:root {
  color: #17231c;
  background: #f4f5ef;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --ink: #17231c;
  --muted: #68736b;
  --line: #dfe3db;
  --paper: #ffffff;
  --lime: #d7ff64;
  --peach: #ffd9bd;
  --blue: #cbe5ff;
  --sidebar: #17231c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f4f5ef;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 42px;
  padding: 30px 22px 24px;
  color: #edf2eb;
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #aab5ad;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  color: #aeb8b0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-item span {
  width: 20px;
  color: #7e8c82;
  font-size: 1.1rem;
  text-align: center;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #fff;
  background: #223228;
  outline: none;
}

.nav-item.is-active {
  color: var(--ink);
  background: var(--lime);
}

.nav-item.is-active span {
  color: inherit;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #92a097;
  font-size: 0.72rem;
}

.sidebar-footer code {
  color: #c8d1ca;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(215 255 100 / 10%);
}

.main-content {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 36px clamp(24px, 4vw, 64px) 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #7d877f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #2e4135;
  outline: 3px solid rgb(23 35 28 / 14%);
  outline-offset: 2px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 260px;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 48px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 22px;
  color: #f8fbf6;
  background: var(--ink);
}

.hero h2 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: #b9c4bb;
  line-height: 1.65;
}

.hero .eyebrow {
  color: var(--lime);
}

.hero-art {
  position: relative;
  min-height: 180px;
}

.hero-art span {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.hero-art span:nth-child(1) {
  right: 10%;
  bottom: -40px;
  width: 190px;
  height: 190px;
  background: var(--lime);
}

.hero-art span:nth-child(2) {
  right: 42%;
  bottom: 14px;
  width: 112px;
  height: 112px;
  background: var(--peach);
}

.hero-art span:nth-child(3) {
  right: 5%;
  bottom: 108px;
  width: 76px;
  height: 76px;
  border: 16px solid var(--blue);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.metrics article,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 30px rgb(31 43 35 / 4%);
}

.metrics article {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 22px;
  border-radius: 16px;
}

.metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: span 3;
  place-items: center;
  margin-right: 15px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.metric-icon.lime {
  background: var(--lime);
}

.metric-icon.peach {
  background: var(--peach);
}

.metric-icon.blue {
  background: var(--blue);
}

.metrics p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.metrics strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.metrics small {
  margin-top: 5px;
  color: #929b94;
  font-size: 0.68rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 20px;
  margin-top: 20px;
}

.panel {
  min-height: 360px;
  padding: 26px;
  border-radius: 18px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #78827a;
  background: #f0f2ed;
  font-size: 0.66rem;
  font-weight: 750;
}

.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8f9f5;
  font-size: 1.45rem;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.empty-state p {
  max-width: 350px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.next-steps ul {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: grid;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eceee9;
}

.next-steps li:last-child {
  border-bottom: 0;
}

.next-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #526057;
  background: #edf0ea;
  font-size: 0.7rem;
  font-weight: 800;
}

.next-steps strong,
.next-steps small {
  display: block;
}

.next-steps strong {
  margin-bottom: 3px;
  font-size: 0.78rem;
}

.next-steps small {
  color: #8a948c;
  font-size: 0.66rem;
}

.next-steps b {
  color: #33704a;
  font-size: 0.64rem;
}

.next-steps b.muted {
  color: #879188;
}

dialog {
  width: min(420px, calc(100% - 32px));
  padding: 30px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(14 22 17 / 28%);
  text-align: center;
}

dialog::backdrop {
  background: rgb(16 25 19 / 52%);
  backdrop-filter: blur(3px);
}

.dialog-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: var(--lime);
  font-size: 1.4rem;
}

dialog h2 {
  margin-bottom: 9px;
  letter-spacing: -0.03em;
}

dialog p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding-inline: 12px;
  }

  .brand > span:last-child,
  .nav-item:not(.is-active)::after,
  .nav-item {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
    width: 48px;
    padding: 0;
  }

  .nav-item span {
    font-size: 1.1rem;
  }

  .sidebar-footer span:not(.status-dot) {
    display: none;
  }

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

  .hero-art {
    display: none;
  }

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

@media (max-width: 640px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: auto;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 7px 14px env(safe-area-inset-bottom);
    border-top: 1px solid #304137;
  }

  .brand,
  .sidebar-footer {
    display: none;
  }

  .sidebar nav {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: space-around;
  }

  .nav-item {
    width: 44px;
    min-height: 42px;
  }

  .nav-item.is-active {
    color: var(--lime);
    background: #283a2e;
  }

  .main-content {
    padding: 24px 16px 94px;
  }

  .topbar {
    margin-bottom: 24px;
  }

  .primary-button {
    padding-inline: 13px;
  }

  .hero {
    min-height: 0;
    padding: 30px 24px;
    border-radius: 17px;
  }

  .hero h2 {
    font-size: 2.15rem;
  }

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

  .panel {
    min-height: 330px;
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
