:root {
  --ink: #16221d;
  --ink-soft: #56645d;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --line: #d9d8cf;
  --brand: #0b6b50;
  --brand-dark: #074b39;
  --brand-soft: #dcece4;
  --lime: #c6e45b;
  --lime-soft: #edf6c9;
  --coral: #ed7459;
  --coral-soft: #fbe4dd;
  --blue: #3267b1;
  --blue-soft: #e1eafa;
  --amber: #b66b0d;
  --amber-soft: #f6ead7;
  --shadow: 0 18px 50px rgba(18, 38, 30, 0.09);
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(198, 228, 91, .18), transparent 24rem),
    var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 34, 29, .1);
  background: rgba(244, 241, 233, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: #fff;
  background: var(--brand);
  box-shadow: inset -7px -7px 0 rgba(198, 228, 91, .35);
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--ink);
}

.page-shell { min-height: calc(100vh - 68px); }

.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 9vw, 110px) clamp(20px, 4vw, 56px) 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--lime); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
}
h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.2; letter-spacing: -.015em; }

.lead { max-width: 710px; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.micro { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18, 38, 30, .1); }
.btn-primary { border-color: var(--brand); color: #fff; background: var(--brand); }
.btn-dark { border-color: var(--ink); color: #fff; background: var(--ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-small { min-height: 36px; padding: 7px 11px; font-size: 13px; }

.hero-orbit {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.orbit-core {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 30px 60px rgba(7, 75, 57, .25);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}
.orbit-core span { display: block; margin-top: 6px; color: var(--lime); font-size: 12px; font-weight: 700; }
.orbit-ring { position: absolute; width: 360px; height: 360px; border: 1px dashed rgba(7, 75, 57, .3); border-radius: 50%; }
.orbit-item {
  position: absolute;
  z-index: 3;
  width: 124px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.orbit-item:nth-of-type(2) { top: 16px; left: calc(50% - 62px); }
.orbit-item:nth-of-type(3) { right: 2px; top: 132px; }
.orbit-item:nth-of-type(4) { right: 34px; bottom: 22px; }
.orbit-item:nth-of-type(5) { left: 34px; bottom: 22px; }
.orbit-item:nth-of-type(6) { left: 2px; top: 132px; }

.metric-strip {
  max-width: 1128px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric { padding: 22px clamp(14px, 3vw, 30px); border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 29px; letter-spacing: -.04em; }
.metric span { color: var(--ink-soft); font-size: 13px; }

.section { max-width: 1240px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 56px); }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading p { color: var(--ink-soft); font-size: 17px; }
.section-dark { max-width: none; color: #f8f5ed; background: var(--ink); }
.section-dark .section-inner { max-width: 1128px; margin: 0 auto; }
.section-dark .muted, .section-dark .section-heading p { color: #abb8b1; }

.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role-card {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.role-index { color: var(--brand); font-size: 13px; font-weight: 850; letter-spacing: .07em; }
.role-card h3 { margin-top: 35px; font-size: 24px; }
.role-card p { color: var(--ink-soft); }
.role-card .link-arrow { margin-top: auto; color: var(--brand-dark); font-weight: 800; }

.journey {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 14px;
}
.journey-step { position: relative; min-width: 135px; padding: 34px 18px 0 0; }
.journey-step::before { content: ""; position: absolute; top: 11px; left: 10px; right: 0; height: 2px; background: #53615a; }
.journey-step:last-child::before { right: calc(100% - 20px); }
.journey-dot { position: absolute; z-index: 2; top: 5px; left: 4px; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: var(--lime); }
.journey-step strong { display: block; margin-bottom: 6px; }
.journey-step span { color: #abb8b1; font-size: 13px; }

.architecture { display: grid; gap: 10px; }
.arch-layer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, .6);
}
.arch-layer strong { color: var(--brand-dark); }
.arch-items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 8px; background: var(--brand-soft); font-size: 13px; font-weight: 650; }
.chip-blue { background: var(--blue-soft); }
.chip-amber { background: var(--amber-soft); }
.chip-coral { background: var(--coral-soft); }

.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.idea { padding: 4px 4px 18px; border-bottom: 1px solid var(--line); }
.idea-number { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: var(--brand-dark); background: var(--lime); font-weight: 850; }

.prototype-note {
  max-width: 1128px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 30px auto 70px;
  padding: 24px 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brand);
}
.prototype-note p { margin: 0; color: #dcece4; }

/* Role workspaces */
.workspace { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side-nav {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, .55);
}
.side-label { margin: 0 10px 14px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.side-nav a { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px 12px; border-radius: 11px; color: var(--ink-soft); font-size: 14px; font-weight: 650; text-decoration: none; }
.side-nav a:hover, .side-nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 7px; font-size: 10px; font-weight: 850; }
.side-project { margin-top: 30px; padding: 15px; border-radius: 14px; color: #fff; background: var(--brand-dark); }
.side-project span { color: #bad3c8; font-size: 12px; }
.side-project strong { display: block; margin: 6px 0 10px; }
.mini-progress { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.2); }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }

.workspace-main { max-width: 1440px; width: 100%; padding: 34px clamp(18px, 3vw, 42px) 80px; overflow: hidden; }
.workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.workspace-header h1 { margin: 6px 0 8px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
.profile { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 850; }
.profile strong, .profile span { display: block; }
.profile span { color: var(--ink-soft); font-size: 11px; }

.status-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: var(--lime-soft); }
.status-banner p { margin: 0; }
.status-banner strong { color: var(--brand-dark); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; }
.stack { min-width: 0; display: grid; gap: 18px; align-content: start; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-accent { color: #fff; border-color: var(--brand-dark); background: var(--brand-dark); }
.panel-accent .muted { color: #bad3c8; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.panel-head p, .panel-head h2, .panel-head h3 { margin-bottom: 0; }
.panel-head h2 { font-size: 26px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { min-height: 118px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.kpi .value { display: block; margin: 12px 0 2px; font-size: 29px; font-weight: 850; letter-spacing: -.04em; }
.kpi .delta { color: var(--brand); font-size: 12px; font-weight: 700; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-warning { color: #83510d; background: var(--amber-soft); }
.tag-danger { color: #9b3f2d; background: var(--coral-soft); }
.tag-blue { color: #27558e; background: var(--blue-soft); }

.task-list { display: grid; gap: 3px; }
.task-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--brand); font-size: 12px; font-weight: 850; }
.task-row.done .task-check { color: #fff; border-color: var(--brand); background: var(--brand); }
.task-row strong, .task-row span { display: block; }
.task-row span { color: var(--ink-soft); font-size: 12px; }
.task-date { text-align: right; font-size: 12px; }

.event-card { position: relative; overflow: hidden; }
.event-card::after { content: "03"; position: absolute; right: -4px; bottom: -40px; color: rgba(255,255,255,.07); font-size: 160px; font-weight: 900; }
.event-date { display: inline-flex; flex-direction: column; margin-bottom: 35px; color: var(--lime); }
.event-date strong { font-size: 50px; line-height: .9; }
.event-card h3 { max-width: 350px; font-size: 25px; }
.event-meta { display: grid; gap: 8px; margin: 18px 0; color: #dcece4; font-size: 13px; }

.timeline { display: grid; grid-template-columns: repeat(6, minmax(100px,1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.module { min-width: 106px; padding: 13px; border-radius: 14px; background: var(--paper); }
.module.complete { background: var(--brand-soft); }
.module.active { color: #fff; background: var(--brand); }
.module .num { font-size: 11px; font-weight: 850; opacity: .75; }
.module strong { display: block; margin: 22px 0 4px; font-size: 13px; }
.module span { display: block; font-size: 11px; opacity: .75; }

.artifact-flow { display: grid; grid-template-columns: repeat(7, minmax(135px,1fr)); gap: 10px; overflow-x: auto; padding: 4px 0 10px; }
.artifact { position: relative; min-height: 155px; padding: 15px; border-top: 3px solid var(--line); background: var(--paper); }
.artifact.complete { border-color: var(--brand); }
.artifact.current { border-color: var(--lime); background: var(--lime-soft); }
.artifact .num { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.artifact strong { display: block; margin: 25px 0 8px; font-size: 13px; }
.artifact p { margin: 0; color: var(--ink-soft); font-size: 11px; }

.score-ring { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) 0 74%, rgba(255,255,255,.15) 74%); }
.score-ring::before { content: attr(data-value); width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-dark); font-size: 19px; font-weight: 850; }

.review-box { padding: 16px; border-left: 3px solid var(--lime); border-radius: 0 12px 12px 0; background: var(--paper); }
.review-box p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.team-name { font-weight: 750; }
.bar { min-width: 90px; height: 7px; overflow: hidden; border-radius: 99px; background: var(--paper); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.bar.warning i { background: var(--amber); }
.bar.danger i { background: var(--coral); }

.heatmap { display: grid; grid-template-columns: 150px repeat(6, 1fr); gap: 5px; align-items: center; font-size: 11px; }
.heat-head { color: var(--ink-soft); text-align: center; }
.heat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat-cell { min-height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 750; }
.heat-cell.med { color: #83510d; background: var(--amber-soft); }
.heat-cell.low { color: #9b3f2d; background: var(--coral-soft); }

.route-steps { display: grid; gap: 12px; }
.route-step { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; }
.route-step .step-no { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--brand-dark); background: var(--lime-soft); font-weight: 850; }
.route-step p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }

.ai-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(18, 38, 30, .27);
  cursor: pointer;
  font-weight: 800;
}
.ai-launcher::before { content: "AI"; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--brand-dark); background: var(--lime); font-size: 11px; }
.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 49;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(18, 38, 30, .25);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.ai-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; color: #fff; background: var(--brand-dark); }
.ai-head strong, .ai-head span { display: block; }
.ai-head span { color: #bad3c8; font-size: 11px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; color: inherit; background: rgba(255,255,255,.1); cursor: pointer; }
.ai-body { display: grid; gap: 12px; padding: 18px; }
.bubble { max-width: 88%; padding: 11px 13px; border-radius: 14px 14px 14px 4px; background: var(--brand-soft); font-size: 13px; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-prompts button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 11px; }
.ai-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ai-input input { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.site-footer { max-width: 1128px; display: flex; justify-content: space-between; gap: 20px; margin: 30px auto 0; padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

@media (max-width: 1050px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 78px minmax(0,1fr); }
  .side-nav { padding: 24px 12px; }
  .side-label, .side-nav a span:not(.nav-icon), .side-project { display: none; }
  .side-nav a { justify-content: center; padding: 10px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .topbar { padding-inline: 18px; }
  .nav-toggle { display: block; }
  .topnav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .topnav.open { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-orbit { min-height: 390px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); margin-inline: 20px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .arch-layer { grid-template-columns: 1fr; gap: 10px; }
  .prototype-note { margin-inline: 20px; flex-direction: column; }
  .workspace-header { align-items: flex-start; }
  .profile { display: none; }
}

@media (max-width: 620px) {
  .role-grid, .idea-grid { grid-template-columns: 1fr; }
  .workspace { display: block; }
  .side-nav { position: sticky; top: 68px; z-index: 20; width: 100%; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(244, 241, 233, .95); }
  .side-nav a { flex: 0 0 auto; }
  .workspace-main { padding-top: 24px; }
  .status-banner { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .task-row { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .task-row > :nth-child(n+3) { grid-column: 2; justify-self: start; text-align: left; }
  .heatmap { grid-template-columns: 100px repeat(6, 44px); overflow-x: auto; }
  .ai-launcher { right: 16px; bottom: 16px; }
  .ai-launcher span { display: none; }
  .ai-panel { right: 16px; bottom: 72px; }
  .site-footer { flex-direction: column; margin-inline: 20px; }
}

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