:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6973;
  --line: #d9e1e7;
  --panel: #ffffff;
  --panel-soft: #f5f7f4;
  --page: #f3f6f4;
  --accent: #167c6b;
  --accent-dark: #0f5d51;
  --blue: #245b8f;
  --rose: #a24b58;
  --shadow: 0 20px 60px rgba(23, 32, 38, 0.09);
  --nav-width: 244px;
  --nav-collapsed: 76px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(22, 124, 107, 0.1), transparent 32rem),
    var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.dashboard-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr;
  width: var(--nav-width);
  padding: 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 8px 0 28px rgba(23, 32, 38, 0.08);
}

.nav-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  margin-bottom: 14px;
}

.nav-brand a,
.nav-links a {
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 8px;
  text-decoration: none;
}

.nav-brand a {
  gap: 10px;
}

.brand-mark,
.nav-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--accent-dark);
  font-size: 0.82rem;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.nav-label strong,
.nav-label small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.nav-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.nav-toggle span {
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--accent-dark);
  border-left: 3px solid var(--accent-dark);
  transform: rotate(-45deg);
}

.nav-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-links a {
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 850;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-dark);
  background: #e4f1ee;
}

.nav-icon {
  width: 28px;
  height: 28px;
  background: rgba(22, 124, 107, 0.12);
  font-size: 0.86rem;
}

.page-shell {
  min-height: 100vh;
  margin-left: var(--nav-width);
  transition: margin-left 180ms ease;
}

body.nav-collapsed .dashboard-nav {
  width: var(--nav-collapsed);
}

body.nav-collapsed .nav-brand {
  grid-template-columns: 1fr;
}

body.nav-collapsed .nav-toggle {
  order: -1;
}

body.nav-collapsed .nav-toggle span {
  transform: rotate(135deg);
}

body.nav-collapsed .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

body.nav-collapsed .nav-brand a,
body.nav-collapsed .nav-links a {
  justify-content: center;
}

body.nav-collapsed .page-shell {
  margin-left: var(--nav-collapsed);
}

.app-header,
main {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 46px 0 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.app-header p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.header-meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 260px;
}

.header-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 850;
}

.tool-card a,
.tool-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.section-heading p,
.tool-card p {
  color: var(--muted);
}

.tool-section {
  padding: 8px 0 58px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 360px;
  margin-bottom: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(23, 32, 38, 0.06);
}

.featured-tool {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(22, 124, 107, 0.12), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.tool-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: #e4f1ee;
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.status {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.is-ready {
  color: var(--accent-dark);
}

.is-planned {
  color: var(--blue);
}

.is-new {
  color: var(--rose);
}

.tool-card a,
.tool-card-action {
  min-height: 40px;
}

.tool-card-action {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-soft);
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-tool {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .dashboard-nav {
    right: 0;
    bottom: auto;
    width: 100%;
    height: 68px;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    gap: 10px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-brand {
    margin-bottom: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    justify-content: end;
    overflow-x: auto;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  body.nav-collapsed .dashboard-nav {
    width: 100%;
  }

  body.nav-collapsed .nav-label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: hidden;
  }

  .page-shell,
  body.nav-collapsed .page-shell {
    margin-top: 68px;
    margin-left: 0;
  }

  .app-header {
    align-items: start;
    flex-direction: column;
  }

  .header-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .featured-tool {
    grid-column: auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
