:root {
  --bg: #eef3ef;
  --bg-2: #e7eee8;
  --surface: #ffffff;
  --ink: #17231c;
  --muted: #5d6d64;
  --line: #d7e0d9;
  --fill: #f3f7f4;
  --input: #fffdf6;
  --input-line: #e4d6a8;
  --formula: #eef2ef;
  --accent: #1f7a5c;
  --accent-deep: #155a44;
  --accent-soft: #e4f4ec;
  --bad: #c0362c;
  --bad-soft: #fdecea;
  --warn: #b45309;
  --warn-soft: #fff4e5;
  --good: #1f7a5c;
  --shadow: 0 1px 2px rgba(23, 35, 28, 0.05), 0 14px 36px rgba(23, 35, 28, 0.07);
  --shadow-sm: 0 1px 2px rgba(23, 35, 28, 0.06);
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
}
body {
  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(31, 122, 92, 0.14), transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(196, 123, 18, 0.08), transparent 48%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 22px 16px;
  background: rgba(238, 243, 239, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 224, 217, 0.9);
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.logo {
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(31, 122, 92, 0.28));
}
.brand-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.study-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
}
.study-chip strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 360px);
}
.study-chip span {
  color: var(--muted);
  font-size: 12px;
}

.workbook {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.nav-group { min-width: 0; }
.nav-label {
  margin: 0 0 6px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}
.pills a:hover { background: #fff; color: var(--ink); }
.pills a.on {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 122, 92, 0.28);
}

.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 120px;
}

.sheet-head { margin-bottom: 28px; max-width: 46rem; }
.hero-actions { margin-top: 20px; }
.hero-actions .btn { min-height: 46px; padding: 0 22px; }
.kicker {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.lede, .help { color: var(--muted); }
.lede { margin: 12px 0 0; font-size: 17px; line-height: 1.45; }
.help { margin: 0 0 14px; font-size: 14px; }

.floor-block {
  border: 1px solid rgba(215, 224, 217, 0.9);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  margin: 0 0 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.floor-block h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.floor-block h3 {
  margin: 20px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted-block {
  background: linear-gradient(180deg, #f7faf8, #eef3ef);
  border-style: dashed;
}

.floor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.floor-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.floor-grid label, .choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.wide { grid-column: 1 / -1; }

.in {
  background: var(--input);
  border: 1px solid var(--input-line);
  border-radius: 12px;
  padding: 9px 12px;
  min-height: 42px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.in:hover { border-color: #d3c48a; }
.in:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 122, 92, 0.16);
}
.in::placeholder { color: #b3b8b4; font-weight: 400; }
.in.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 100%;
}
.floor-grid .in.num { max-width: 11rem; }

.floor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.floor-table th,
.floor-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
}
.floor-table thead th {
  background: var(--fill);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.floor-table thead th:first-child { border-radius: 10px 0 0 0; }
.floor-table thead th:last-child { border-radius: 0 10px 0 0; }
.floor-table tbody th { background: var(--fill); font-weight: 650; width: 8rem; }
.floor-table tbody tr:last-child td { border-bottom: 0; }
.floor-table tr.dup td { background: var(--bad-soft); }
.floor-table tr.warn td { background: var(--warn-soft); }
.lookup-id { max-width: 192px; }
.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}
.formula {
  background: var(--formula);
  text-align: right;
  color: #3b4941;
  white-space: nowrap;
  min-width: 4.5rem;
  border-radius: 8px;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 -6px;
  padding: 0 6px;
}
.floor-table .in {
  min-width: 6.5rem;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
}
.floor-table .in.num { min-width: 4.5rem; }

.floor-actions {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 224, 217, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.row-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.row-title h2 { margin: 0; }
.is-auto { border-style: dashed; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
}
.btn:hover { background: var(--fill); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(31, 122, 92, 0.24);
}
.btn.primary:hover { background: var(--accent-deep); }
.btn.danger { color: var(--bad); border-color: #f0c4c0; background: #fffaf9; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { min-height: 32px; font-size: 12px; padding: 0 12px; flex-shrink: 0; }

.study-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.study-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.study-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.study-grid strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.study-grid .plant { color: var(--muted); font-size: 14px; flex: 1; }
.study-grid .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.study-grid em { font-style: normal; color: var(--accent-deep); font-weight: 700; }
.empty {
  color: var(--muted);
  padding: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  border: 1px dashed var(--line);
}

.feed { list-style: none; margin: 24px 0 0; padding: 0; }
.feed li { border-bottom: 1px solid var(--line); }
.feed a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px;
}
.feed a:hover { background: transparent; }
.feed strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.feed span { color: var(--muted); font-size: 14px; }
.feed .meta { text-align: right; color: var(--muted); }
.feed em { font-style: normal; color: var(--ink); }

.clock {
  font-size: clamp(56px, 12vw, 80px);
  font-weight: 200;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th, .sheet-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.flag-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flag, .banner {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}
.flag, .banner.error {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid #f3c9c4;
}
.flag.warn, .banner.warn {
  background: var(--warn-soft);
  border-color: #f3d5a8;
  color: var(--warn);
}
.banner.ok {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid #cfe8d9;
  margin-bottom: 16px;
}
.flag.inline {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 6px 10px;
  font-size: 12px;
}
.floor-block.has-err {
  border-color: #f0c4c0;
  box-shadow: 0 0 0 4px rgba(192, 54, 44, 0.06);
}
.floor-table tr.err td { background: #fff6f5; }
.floor-table tr.gray-travel td.formula { color: var(--muted); }
.formula-box {
  display: flex;
  align-items: center;
  background: var(--formula);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  min-height: 42px;
  color: #3b4941;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}
.kpi-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--fill);
  border-radius: 14px;
}
.kpi-row span { font-size: 12px; color: var(--muted); font-weight: 700; }
.kpi-row b {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.kpi-row .bad { color: var(--bad); }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.status.amber { background: var(--warn-soft); color: var(--warn); }
.status.red { background: var(--bad-soft); color: var(--bad); }

.alloc-bar {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--fill);
  margin: 10px 0 16px;
}
.alloc-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.alloc-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.alloc-legend i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }

.picker {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  max-width: 360px;
}
.picker label { width: 100%; }

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.account-meta strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}
.account-meta em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.inline-form { display: inline; }
.pill-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pill-btn:hover { background: #fff; color: var(--ink); }

.land-hero { max-width: 40rem; margin-bottom: 36px; }
.land-cta { margin-top: 22px; }
.land-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.land-panel { margin-top: 8px; }
.steps {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.steps li { margin: 8px 0; }
.steps strong { color: var(--ink); }

.is-public .topbar { padding-bottom: 14px; }
.is-public .brand-row {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.is-public .site-actions { justify-self: end; }
.is-public .stage {
  max-width: 1120px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.site-nav,
.site-actions {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}
.site-nav { justify-content: center; }
.site-actions { justify-content: flex-end; }
.site-nav a,
.site-login {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.site-nav a:hover,
.site-login:hover { color: var(--ink); }
.site-actions .btn.primary { color: #fff; }

.is-landing {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.72), transparent 56%),
    radial-gradient(ellipse 70% 45% at 8% 12%, rgba(31, 122, 92, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 8%, rgba(196, 123, 18, 0.1), transparent 46%),
    var(--bg);
}
.is-landing .topbar {
  background: transparent;
  border-bottom: none;
  padding: 22px 36px;
}
.is-landing .brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.is-landing .site-actions { justify-self: end; }
.is-landing .stage {
  max-width: none;
  padding: 0;
}
.is-landing h1,
.is-landing h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.is-landing h1 {
  font-size: clamp(36px, 6vw, 72px);
  max-width: min(16ch, 100%);
  margin: 0 auto;
  padding: 0 8px;
}
.is-landing h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin: 0;
}

.sz-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.sz-center { text-align: center; }
.sz-center .sz-lede,
.sz-center h2 { margin-left: auto; margin-right: auto; }
.sz-lede {
  max-width: 38rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.sz-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.sz-cta .btn { min-height: 48px; padding: 0 24px; font-size: 15px; }

.sz-hero {
  padding: 108px 24px 0;
  text-align: center;
}
.sz-canvas {
  position: relative;
  width: min(920px, 100%);
  margin: 72px auto 0;
  padding-bottom: 48px;
}
.sz-float {
  position: absolute;
  left: -28px;
  top: 48px;
  z-index: 2;
  width: min(280px, 42%);
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: left;
}
.sz-float-kicker {
  margin: 0 0 4px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sz-float h3 { margin: 0 0 12px; font-size: 16px; }
.sz-float ul { margin: 0; padding: 0; list-style: none; }
.sz-float li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.sz-float li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1.5px var(--line);
  flex: none;
}
.sz-float li.done { color: var(--ink); }
.sz-float li.done::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23f4f7f5' stroke-width='1.8' stroke-linecap='round' d='M2.5 6.2 5 8.6 9.5 3.6'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: none;
}
.sz-float li.on { color: var(--accent-deep); }
.sz-float li.on::before {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.sz-doc {
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 24px 60px rgba(23, 35, 28, 0.12);
  padding: 28px 36px 40px;
  text-align: left;
  min-height: 420px;
}
.sz-doc-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sz-doc h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 22px 0 8px;
  max-width: 16ch;
}
.sz-doc-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.sz-doc-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sz-doc-kpis em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.sz-doc-kpis b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 560;
}
.sz-doc-bar {
  height: 10px;
  margin: 18px 0 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 8%, #7a9084 8% 16%, #c5d4cb 16% 22%, #e7eee8 22% 100%);
}
.sz-doc table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.sz-doc th,
.sz-doc td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--fill);
}
.sz-doc th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sz-band {
  padding: 96px 0 80px;
  scroll-margin-top: 88px;
}
.sz-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}
.sz-pillars a {
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 22px;
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-sm);
  min-height: 180px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.sz-pillars a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sz-pillars span {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 750;
}
.sz-pillars strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.sz-pillars p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.sz-chapter {
  padding: 48px 0;
  scroll-margin-top: 88px;
}
.sz-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px 56px;
  align-items: center;
}
.sz-split.flip { grid-template-columns: 1.1fr 0.9fr; }
.sz-split.flip .sz-copy { order: 2; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }
.sz-copy .sz-icon .icon { width: 20px; height: 20px; }
.waiting-link .icon { width: 19px; height: 19px; }
.sz-copy .sz-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 0 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #f4f7f5;
  font-size: 18px;
}
.sz-copy h2 { max-width: 14ch; }
.sz-copy p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.sz-copy .btn { margin-top: 8px; }
.sz-mock {
  min-height: 320px;
  padding: 28px 24px 0;
  border-radius: 28px 28px 0 0;
  display: flex;
  align-items: flex-end;
}
.sz-mock.sage { background: #b7cfc2; }
.sz-mock.cream { background: #d8e4db; }
.sz-mock.blush { background: #c9d6cc; }
.sz-window {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--fill);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.preview-bar em { font-style: normal; color: var(--muted); font-weight: 600; }
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 16px 8px;
}
.preview-kpis div {
  background: var(--fill);
  border-radius: 12px;
  padding: 10px 12px;
}
.preview-kpis span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview-kpis b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 560;
}
.preview-alloc {
  height: 10px;
  margin: 6px 16px 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 8%, #7a9084 8% 16%, #c5d4cb 16% 22%, #e7eee8 22% 100%);
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.preview-table th,
.preview-table td {
  padding: 10px 16px 14px;
  text-align: left;
  color: var(--muted);
}
.preview-table th {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.preview-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
.preview-table tr.bad td { background: var(--bad-soft); color: var(--bad); }

.land-tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.land-tag.on { background: var(--accent-soft); color: var(--accent-deep); }

.sz-flow {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  text-align: left;
}
.sz-flow li {
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 18px;
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-sm);
}
.sz-flow span {
  display: block;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.sz-flow strong { display: block; font-size: 15px; }
.sz-flow p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.sz-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  text-align: left;
  align-items: stretch;
}
.sz-plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 22px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.sz-plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.sz-plan-tag {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 750;
}
.sz-plan-name { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.sz-plan-for { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sz-price { margin: 22px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.sz-price b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sz-price span { color: var(--muted); font-size: 14px; }
.sz-plan-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.sz-plan ul {
  list-style: none;
  margin: 22px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}
.sz-plan li {
  position: relative;
  padding-left: 24px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
}
.sz-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 14px;
  height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sz-plan .btn { justify-content: center; min-height: 44px; }
.sz-enterprise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--fill);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 22px;
  text-align: left;
}
.sz-enterprise strong { font-size: 17px; }
.sz-enterprise p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.sz-enterprise .btn { flex-shrink: 0; }
.sz-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0 0;
  text-align: left;
}
.sz-terms dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.sz-terms dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.sz-terms-foot { margin-top: 18px; }

.sz-close {
  padding: 100px 0 80px;
  scroll-margin-top: 88px;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45) 30%, transparent);
}
.sz-request {
  position: relative;
  width: min(560px, 100%);
  margin: 36px auto 0;
  padding: 26px 24px 22px;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.sz-request .in { width: 100%; }
.sz-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.sz-request-actions .btn { min-height: 46px; padding: 0 22px; }
.sz-request-actions .btn.primary { flex: 1; }
.sz-request .help { margin: 0; }
.owner-tabs { margin: 0 0 16px; }
.owner-request-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.owner-request-head h2 { margin-bottom: 2px; }
.owner-note { margin: 12px 0 16px; padding: 12px 14px; background: var(--fill); border-radius: 12px; white-space: pre-wrap; }
.owner-actions { align-items: center; gap: 10px; }
.owner-actions label.check { margin-right: auto; flex-direction: row; align-items: center; }
.owner-link { width: 100%; }
.sz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sz-request-done { width: min(560px, 100%); margin: 32px auto 0; }
.sz-creds {
  width: min(520px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.sz-creds dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.sz-creds dd {
  margin: 2px 0 0;
  font-weight: 650;
  white-space: nowrap;
}

.sz-foot {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(215, 224, 217, 0.9);
  color: var(--muted);
  font-size: 14px;
}
.sz-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 28px;
}
.sz-foot strong { color: var(--ink); font-size: 18px; }
.sz-foot p { margin: 8px 0 0; max-width: 28ch; }
.sz-foot span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}
.sz-foot a { display: block; margin: 6px 0; }
.sz-foot a:hover { color: var(--ink); }

.consult-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  align-items: start;
}
.consult-kpis {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.consult-kpis dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.consult-kpis dd { margin: 2px 0 0; font-weight: 650; }
.consult-flags {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 13px;
}
.consult-chat {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}
.consult-log {
  min-height: 260px;
  max-height: 48vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding-right: 4px;
}
.consult-msg {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--fill);
}
.consult-msg.you {
  align-self: flex-end;
  background: var(--accent-soft);
}
.consult-msg p { margin: 0; white-space: pre-wrap; }
.consult-composer {
  margin: 0 -6px -6px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(228, 244, 236, 0.45), transparent 42%),
    var(--fill);
}
.consult-composer-label {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.consult-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.consult-prompts button {
  appearance: none;
  border: 1px solid rgba(215, 224, 217, 0.95);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.consult-prompts button:hover {
  background: var(--accent-soft);
  border-color: rgba(31, 122, 92, 0.28);
  color: var(--accent-deep);
}
.consult-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}
.consult-form textarea {
  width: 100%;
  min-height: 72px;
  max-height: 180px;
  resize: vertical;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(215, 224, 217, 0.95);
  border-radius: 14px;
  background: #fff;
  outline: none;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}
.consult-form textarea::placeholder { color: #8a9a91; }
.consult-form textarea:hover { border-color: #c5d4cb; }
.consult-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 122, 92, 0.16);
}
.consult-form .btn {
  min-height: 48px;
  min-width: 88px;
  padding: 0 20px;
}

@media (max-width: 1100px) {
  .consult-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .consult-form { grid-template-columns: 1fr; }
  .consult-form .btn { width: 100%; }
}

.auth-wrap { max-width: 28rem; }
.auth-card { margin-top: 8px; }
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.auth-form .btn { margin-top: 4px; }
.demo-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

@media (max-width: 1100px) {
  .sz-flow { grid-template-columns: repeat(3, 1fr); }
  .sz-pillars { grid-template-columns: 1fr 1fr; }
  .sz-float { left: 16px; top: 24px; }
  .sz-plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .sz-terms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .floor-grid, .floor-grid.three, .grid-form { grid-template-columns: 1fr; }
  .stage { padding: 24px 16px 96px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .study-chip { display: none; }
  .account-meta { display: none; }
  .brand-row { margin-bottom: 10px; }
  .is-public .brand-row,
  .is-landing .brand-row {
    display: flex;
    justify-content: space-between;
  }
  .is-public .site-nav,
  .is-landing .site-nav { display: none; }
  .sz-split,
  .sz-split.flip,
  .sz-foot-grid,
  .sz-doc-kpis,
  .preview-kpis { grid-template-columns: 1fr; }
  .sz-split.flip .sz-copy { order: 0; }
  .is-landing .stage { padding: 0; }
}
@media (max-width: 720px) {
  .sz-flow { grid-template-columns: 1fr 1fr; }
  .sz-pillars,
  .sz-terms,
  .sz-creds { grid-template-columns: 1fr; }
  .sz-request { grid-template-columns: 1fr; padding: 22px 18px 18px; }
  .sz-request-actions .btn { flex: 1 1 100%; }
  .sz-enterprise { flex-direction: column; align-items: stretch; }
  .sz-float { position: relative; left: 0; top: 0; width: 100%; margin-bottom: 14px; }
  .sz-hero { padding-top: 108px; }
  .is-landing h1 { max-width: none; }
}

/* ---- Decision loop ---------------------------------------------------- */
.link { color: var(--accent-deep); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31, 122, 92, 0.35); }
.muted { color: var(--muted); font-size: 13px; }
.bad { color: var(--bad); }
.good { color: var(--accent-deep); }
.top-gap { margin-top: 12px; }
.form-end { display: flex; align-items: end; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.in.compact { min-height: 34px; padding: 4px 10px; width: auto; }
textarea.in { resize: vertical; font: inherit; line-height: 1.45; }
.mono, code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.empty.small { padding: 14px; font-size: 14px; }
.inline-h { display: inline; margin: 0; }
details > summary { cursor: pointer; }
details.floor-block > summary { list-style: none; }
details.floor-block > summary::after { content: " ▾"; color: var(--muted); }
.pair { display: flex; gap: 6px; }
.formula-note { margin-top: 12px; font-size: 12px; }

.decision-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.decision-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid rgba(215, 224, 217, 0.9);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.decision-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.decision-card.overdue { border-left-color: var(--bad); }
.decision-card strong { font-size: 18px; letter-spacing: -0.02em; }
.decision-card p { margin: 0; color: var(--muted); font-size: 14px; }
.decision-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kind { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-deep); }
.decision-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.decision-meta.big { margin-top: 16px; font-size: 14px; align-items: center; }
.decision-meta .save { color: var(--accent-deep); font-weight: 700; }
.decision-meta .cost { color: var(--warn); font-weight: 700; }
.decision-meta .ref { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.decision-meta .lock { color: var(--warn); font-weight: 650; }
.wide-head { max-width: 60rem; }

.dstatus {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--fill);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.dstatus.sent, .dstatus.acknowledged, .dstatus.scheduled, .dstatus.question { background: #eef4fb; color: #1f5f99; border-color: #d3e3f3; }
.dstatus.approved, .dstatus.done, .dstatus.held { background: var(--accent-soft); color: var(--accent-deep); border-color: #cfe8d9; }
.dstatus.rejected, .dstatus.failed, .dstatus.cancelled { background: var(--bad-soft); color: var(--bad); border-color: #f3c9c4; }
.dstatus.draft { background: var(--warn-soft); color: var(--warn); border-color: #f3d5a8; }
.dstatus.received { background: #f3eefb; color: #5b3e99; border-color: #e1d6f3; }

.decision-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.decision-grid.even { grid-template-columns: 1fr 1fr; }
.floor-table.kv th { width: 34%; font-size: 12.5px; color: var(--muted); }
.floor-table.kv td div + div { margin-top: 2px; }

.message { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: #fff; }
.message.in { background: #fbf9ff; border-color: #e7def5; }
.message header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.message .subject { margin: 0 0 6px; font-weight: 650; }
.message-edit { display: flex; flex-direction: column; gap: 8px; }
pre.body {
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13.5px/1.5 var(--sans);
  background: var(--fill);
  border-radius: 10px;
  padding: 10px 12px;
}
pre.body.small { font: 12px/1.45 ui-monospace, Menlo, monospace; }
.proposal { border-color: #e1d6f3; box-shadow: 0 0 0 4px rgba(91, 62, 153, 0.06); }
.proposal blockquote { margin: 12px 0; padding: 8px 12px; border-left: 3px solid #c9b8ea; color: var(--ink); background: #fbf9ff; border-radius: 0 10px 10px 0; }
.meeting { padding: 10px 0; border-bottom: 1px solid var(--line); }
.meeting:last-of-type { border-bottom: 0; }
.attendees { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0; }
.attendees legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.scenario-row { display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr 1fr; gap: 10px; margin-bottom: 10px; }
.scenario-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi-row b.good { color: var(--accent-deep); }
.kpi-row b.bad { color: var(--bad); }

@media (max-width: 900px) {
  .decision-grid, .decision-grid.even { grid-template-columns: 1fr; }
  .scenario-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .scenario-row { grid-template-columns: 1fr; }
}
.floor-grid label.check, .stack label.check, .attendees label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.attendees label.check .muted { margin-left: auto; }
.kpi-row.compact b { font-size: 21px; }

/* ---------- Navigation: study step bar, results tabs, account menu ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.study-chip { text-decoration: none; padding: 4px 8px; border-radius: 10px; }
.study-chip:hover { background: rgba(255, 255, 255, 0.7); }
.time-it { min-height: 40px; gap: 6px; padding: 0 16px; font-size: 14px; }
.time-it .icon { width: 16px; height: 16px; }

.study-nav {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.study-nav::-webkit-scrollbar { display: none; }
.stepper {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}
.stepper a,
.nav-tail a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-tail a { padding: 0 12px; }
.stepper a:hover,
.nav-tail a:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.stepper i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.stepper small { font-size: 11px; font-weight: 600; color: #8a9a91; margin-left: -2px; }
.stepper a.done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper a.on,
.nav-tail a.on { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(31, 122, 92, 0.24); }
.stepper a.on i { background: #fff; border-color: #fff; color: var(--accent-deep); }
.stepper a.on small { color: rgba(255, 255, 255, 0.8); }
.nav-sep { width: 1px; height: 24px; background: var(--line); flex-shrink: 0; }
.nav-tail { display: flex; gap: 4px; flex-shrink: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 999px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover,
.account-menu[open] summary { background: rgba(255, 255, 255, 0.8); }
.caret { color: var(--muted); font-size: 11px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 240px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.menu-panel a,
.menu-panel button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}
.menu-panel a:hover,
.menu-panel button:hover { background: var(--fill); }
.menu-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.menu-label {
  margin: 10px 12px 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-label:first-child { margin-top: 4px; }

.results-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}
.results-tabs a {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.results-tabs a:hover { color: var(--ink); background: #fff; }
.results-tabs a.on { background: var(--ink); color: #fff; }

/* ---------- Utilization: green inside the plant's good range, red outside ---------- */
.status.green { background: var(--accent-soft); color: var(--accent-deep); }
.status.gray { background: var(--fill); color: var(--muted); }
.kpi-row b.red, .kpi-row .red { color: var(--bad); }
.kpi-row b.green { color: var(--accent-deep); }
.floor-table td.util-red { color: var(--bad); font-weight: 700; }
.floor-table td.util-green { color: var(--accent-deep); font-weight: 700; }
.band-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.band-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pct-in { display: inline-flex; align-items: center; gap: 6px; }
.pct-in i { font-style: normal; font-weight: 700; color: var(--ink); }
.pct-in .in.num { width: 6.5rem; }
.band-preview {
  display: flex;
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bad-soft);
}
.band-preview .bad-zone { background: var(--bad-soft); }
.band-preview .bad-zone:last-child { flex: 1; }
.band-preview .good-zone { background: var(--accent); }

/* ---------- "So what" summary on result pages ---------- */
.so-what {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.so-what.red { border-left-color: var(--bad); }
.so-what .so-icon { font-size: 22px; line-height: 1.2; }
.so-what h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.so-what p { margin: 0; color: var(--muted); }
.so-what ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.so-what li { margin: 4px 0; }
.so-what .so-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Armed delete (click twice) ---------- */
.btn.armed { background: var(--bad); color: #fff; border-color: var(--bad); }

@media (max-width: 860px) {
  .time-it { min-height: 38px; padding: 0 12px; }
  .stepper a { padding-right: 10px; }
  .nav-sep { display: none; }
  .menu-panel { width: min(260px, calc(100vw - 28px)); }
}

/* ---------- Studies home ---------- */
.welcome {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  margin: 0 0 22px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-soft) 100%);
  border: 1px solid var(--line);
}
.welcome > div:first-child { max-width: 40rem; }
.welcome .kicker { margin-bottom: 6px; }
.welcome h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.welcome p { margin: 0; color: var(--muted); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.study-grid li { position: relative; }
.study-grid strong { padding-right: 84px; }
.study-grid .meta { align-items: center; flex-wrap: wrap; }
.study-grid .open-link { margin-left: auto; }
.study-grid .progress { display: flex; flex-direction: column; gap: 6px; }
.study-grid .progress em { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.progress-bar { display: block; height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.study-grid a.time-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 0;
  box-shadow: none;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}
.study-grid a.time-chip:hover { background: var(--accent); color: #fff; transform: none; }

/* ---------- Capture: built for one hand, gloves and a noisy floor ---------- */
.capture-shell { max-width: 34rem; margin: 0 auto; }
.capture-form { display: flex; flex-direction: column; gap: 16px; }
.cap-what { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.in.big { min-height: 54px; font-size: 16px; font-weight: 600; }
.capture-shell .clock {
  text-align: center;
  font-size: clamp(64px, 20vw, 104px);
  line-height: 1.05;
  margin: 6px 0 0;
  color: var(--ink);
}
.capture-shell .clock.running { color: var(--accent-deep); }
.laps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.laps li { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.cap-buttons { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.cap-btn {
  min-height: 88px;
  border-radius: 24px;
  border: 0;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  box-shadow: var(--shadow);
}
.cap-btn:active { transform: scale(0.98); }
.cap-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.cap-btn.go { background: var(--accent); color: #fff; }
.cap-btn.stop { background: var(--bad); color: #fff; }
.cap-btn.lap { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.cap-btn.save { background: var(--ink); color: #fff; min-height: 72px; font-size: 21px; }
.cap-reset { align-self: center; }
.cap-note { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.cap-note .optional, .cap-details summary span { color: var(--muted); font-weight: 500; font-size: 13px; }
.cap-details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.6); }
.cap-details summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14px; }
.cap-details[open] summary { border-bottom: 1px solid var(--line); }
.cap-details .grid-form { padding: 14px 16px 16px; }
.cap-status { margin: 14px 0 4px; text-align: center; font-weight: 650; color: var(--muted); }
.cap-status.ok { color: var(--accent-deep); }
.cap-foot { text-align: center; }
[hidden] { display: none !important; }
.capture-shell select.in, .capture-shell .in { width: 100%; max-width: 100%; min-width: 0; }
.study-nav { position: relative; }
.stepper a { position: relative; }
.floor-grid > label, .floor-grid > div { min-width: 0; }
.in { max-width: 100%; }
.optional { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.flag .code, .flag.inline .code { margin-left: 6px; font-size: 11px; font-weight: 600; opacity: 0.6; font-family: ui-monospace, Menlo, monospace; }
.admin-only { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-only summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.admin-only label { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- What-if ---------- */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.presets .help { margin: 0 4px 0 0; }
.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.scenario { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.scenario-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(200px, 1fr) minmax(180px, 0.8fr);
  gap: 12px;
  width: 100%;
  align-items: end;
}
.scenario-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.scenario-row .sc-type { font-size: 14px; color: var(--ink); }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.compare-col { padding: 16px 18px; border-radius: 16px; background: var(--fill); }
.compare-col.after { background: var(--accent-soft); }
.compare-head { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare dl { margin: 0; display: grid; gap: 8px; }
.compare dl div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.compare dt { color: var(--muted); font-size: 14px; }
.compare dd { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
.compare dd small { font-size: 12px; font-weight: 700; margin-left: 4px; }
.compare dd.util-red { color: var(--bad); }
.compare dd.util-green { color: var(--accent-deep); }
.compare-arrow { align-self: center; font-size: 26px; color: var(--muted); }
.compare-total { margin: 16px 0 0; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.compare-total span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.save-decision { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.save-decision .help { margin: 0; }
@media (max-width: 860px) {
  .scenario-row { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; }
}

/* Keep a focused field clear of the sticky header and the floating Save bar. */
html { scroll-padding-top: 150px; scroll-padding-bottom: 110px; }
.floor-actions { bottom: 10px; padding: 10px; }
.study-grid .status { text-transform: none; }

/* ---------- Deleting studies ---------- */
.study-grid.deletable a:not(.time-chip) { padding-bottom: 58px; }
.card-delete { position: absolute; left: 18px; bottom: 14px; }
.danger-zone { margin-top: 40px; border-color: #f0c4c0; }
.danger-zone h2 { color: var(--bad); }
.study-grid li { display: flex; }
.study-grid li > a:not(.time-chip) { flex: 1; }
.btn.danger.armed, .btn.danger.armed:hover { background: var(--bad); border-color: var(--bad); color: #fff; }

/* =====================================================================
   Quiet fields: plain white inputs, readable values, a clear focus ring.
   ===================================================================== */
.floor-grid label, .choice, .stack label, .grid-form label, .band-row label, .scenario-row label {
  font-size: 13px;
  font-weight: 600;
  color: #3b4941;
}
.in {
  background: #fff;
  border: 1px solid #d3dcd6;
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 42px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 35, 28, 0.03);
}
.in:hover { border-color: #b4c3ba; }
.in:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.18);
}
.in::placeholder { color: #a3ada7; font-weight: 400; }
select.in {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6d64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.in.num { text-align: right; font-variant-numeric: tabular-nums; }
.floor-grid .in.num { max-width: 9rem; }
.floor-table .in { min-height: 36px; padding: 6px 9px; font-size: 14px; border-radius: 8px; }
.floor-table select.in { padding-right: 28px; background-position: right 9px center; }
.floor-table .in.num { min-width: 5rem; max-width: 7rem; }
.floor-table td:has(> .in) { padding: 6px 6px; }
.formula-box {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--fill);
  border: 1px dashed #d3dcd6;
  color: #3b4941;
  font-size: 15px;
  font-weight: 500;
}
/* Units sit inside the box, after the number. */
.unit-in { position: relative; display: inline-flex; align-items: center; width: 100%; max-width: 11rem; }
.unit-in .in { width: 100%; max-width: none; padding-right: 3.2rem; }
.unit-in i {
  position: absolute;
  right: 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  pointer-events: none;
}

/* =====================================================================
   Report style: calculated numbers read as finished output, not cells.
   ===================================================================== */
.formula {
  background: none;
  border-radius: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.floor-table thead th {
  background: none;
  border-bottom: 1px solid #c9d4cd;
  padding-top: 6px;
  padding-bottom: 8px;
}
.floor-table tbody tr:hover td { background: rgba(31, 122, 92, 0.035); }
.floor-table tbody th { background: none; color: var(--muted); font-weight: 600; }
.floor-table td.formula.total, .floor-table tr:last-child td.formula[colspan] { font-weight: 700; }
.floor-table td.util-red, .floor-table td.util-green { font-weight: 650; }
.kpi-row div { background: #fff; border: 1px solid var(--line); }
.kpi-row b {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: proportional-nums;
}
.kpi-row b.red { color: var(--bad); }
.kpi-row b.green { color: var(--accent-deep); }

/* =====================================================================
   Hero figure: exactly one per page, sans, large.
   ===================================================================== */
.so-what { gap: 28px; align-items: stretch; padding: 24px 26px; }
.so-what.neutral { border-left-color: var(--ink); }
.hero-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 13rem;
  max-width: 17rem;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}
.hero-figure b {
  font-family: var(--sans);
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.so-what.red .hero-figure b { color: var(--bad); }
.so-what.green .hero-figure b { color: var(--accent-deep); }
.hero-figure span { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.hero-figure em { font-style: normal; font-size: 13px; color: var(--muted); }
.so-text { min-width: 0; }
.so-text h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.so-text p { margin: 0; color: var(--muted); }
.so-text ul { margin: 10px 0 0; padding-left: 18px; }
.so-text li { margin: 4px 0; }
.so-text .so-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* =====================================================================
   Crew range bars (bullet-graph style): bar = utilization, band = good range.
   ===================================================================== */
.range-head h2 { margin-bottom: 4px; }
.range-rows { display: grid; gap: 4px; margin-top: 10px; }
.range-row, .range-axis {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) 1fr 11rem;
  gap: 16px;
  align-items: center;
}
.range-row { padding: 7px 8px; border-radius: 10px; outline: none; }
.range-row:hover, .range-row:focus-visible { background: var(--fill); }
.range-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.range-name b { font-size: 14px; }
.range-name em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.range-track { position: relative; height: 14px; border-radius: 999px; background: var(--fill); }
.range-band {
  position: absolute;
  top: -5px;
  bottom: -5px;
  border-radius: 6px;
  background: rgba(31, 122, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 92, 0.25);
}
.range-hundred { position: absolute; top: -7px; bottom: -7px; width: 0; border-left: 1px dashed #9fb0a6; }
.range-fill {
  position: absolute;
  left: 0;
  top: 3px;
  height: 8px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.range-fill.red { background: var(--bad); }
.range-fill.gray { background: #b7c3bc; }
.range-over { position: absolute; right: -14px; top: -5px; color: var(--bad); font-weight: 800; }
.range-value { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
.range-value b { font-size: 16px; font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }
.range-axis { padding: 0 8px; margin-bottom: 2px; }
.range-track.ticks { background: none; height: 16px; }
.range-track.ticks i {
  position: absolute;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.range-track.ticks i:first-child { transform: none; }
.range-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: 18rem;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.range-tip b { display: block; font-size: 13px; }
.range-row:hover .range-tip, .range-row:focus-visible .range-tip { opacity: 1; }

/* In-cell share bar on By part: a quiet magnitude cue next to the number. */
.share-bar {
  display: inline-block;
  width: calc(var(--w) * 0.6);
  max-width: 60%;
  height: 6px;
  margin-right: 8px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0.55;
  vertical-align: middle;
}

@media (max-width: 860px) {
  .so-what { flex-direction: column; gap: 14px; }
  .hero-figure { border-right: 0; padding-right: 0; max-width: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .hero-figure b { font-size: 44px; }
  .range-row, .range-axis { grid-template-columns: 1fr; gap: 6px; }
  .range-axis { display: none; }
}
.unit-in .in.num, .floor-grid .unit-in .in.num, .floor-table .unit-in .in.num { max-width: none; width: 100%; }
.floor-table .unit-in { max-width: 9rem; }
.floor-table .in:not(.num) { min-width: 12rem; width: 100%; }

/* ---------- Ideas worth a look ---------- */
.ideas .row-title { align-items: flex-start; gap: 16px; }
.ideas .row-title .help { margin: 4px 0 0; max-width: 46rem; }
.idea-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.idea {
  display: grid;
  grid-template-columns: 1fr 15rem auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.idea.taken { opacity: 0.6; }
.idea-main strong { display: block; font-size: 16px; letter-spacing: -0.01em; margin: 2px 0 4px; }
.idea-main p { margin: 0; color: var(--muted); font-size: 14px; }
.idea-main .kind { margin: 0; }
.idea-record { margin-top: 6px !important; font-size: 13px !important; color: var(--accent-deep) !important; font-weight: 600; }
.ai-tag { color: #6d4bb8; }
.idea-numbers { display: flex; flex-direction: column; gap: 1px; }
.idea-numbers b { font-size: 18px; }
.idea-numbers span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .idea { grid-template-columns: 1fr; } }

/* ---------- Waiting on you ---------- */
.waiting-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 17px; }
.waiting-link:hover { background: rgba(255, 255, 255, 0.8); }
.waiting-link .badge { position: absolute; top: -2px; right: -4px; }
.inbox-group { margin-bottom: 26px; }
.inbox-group h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 19px; }
.decide-panel.focus { box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.35), var(--shadow); }

/* ---------- Pipeline board ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 0 0 18px; }
.filter-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3b4941; min-width: 14rem; }
.board { display: grid; grid-template-columns: repeat(6, minmax(14rem, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 12rem; }
.board-col header h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 15px; }
.board-col header p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.board-col .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--fill); border-radius: 999px; padding: 1px 8px; }
.board-col .col-total { color: var(--accent-deep) !important; font-weight: 650; }
.board-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow-sm); }
.board-card:hover { box-shadow: var(--shadow); }
.board-card.overdue { border-left-color: var(--bad); }
.board-card strong { font-size: 14px; line-height: 1.3; letter-spacing: -0.01em; }
.board-card .kind { font-size: 10.5px; }
.board-meta { font-size: 12px; color: var(--muted); }
.board-card .save { font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.board-empty { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Contact timeline ---------- */
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 6px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 8px 0 8px 18px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--muted); }
.timeline li.tl-good::before { border-color: var(--accent); background: var(--accent-soft); }
.timeline li.tl-bad::before { border-color: var(--bad); background: var(--bad-soft); }
.timeline li.tl-in::before { border-color: #1f5f99; }
.timeline li.tl-out::before { border-color: var(--accent); }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.timeline b { display: block; font-size: 13px; }
.filter-row.compact { margin: 0; } .filter-row.compact select { min-width: 12rem; }
.run-now { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .run-now h2 { margin-bottom: 2px; } .run-now .help { margin: 0; }
.plant-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.plant-chips a { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.plant-chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.board { grid-template-columns: repeat(6, minmax(10.5rem, 1fr)); gap: 10px; }
.board-col { padding: 10px; }



.time-it { white-space: nowrap; }

/* ---------- Ask MinuteProof: same building blocks as What-if ---------- */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ask-col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ask-convo .row-title { align-items: center; gap: 12px; }
.ask-chat-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ask-chat-tools select { max-width: 15rem; }
.ask-log { display: flex; flex-direction: column; gap: 12px; max-height: 58vh; min-height: 14rem; overflow-y: auto; padding-right: 4px; }
.ask-empty { margin: auto 0; padding: 26px; text-align: center; color: var(--muted); background: var(--fill); border-radius: 14px; }
.ask-msg { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
.ask-msg.user { align-self: flex-end; align-items: flex-end; }
.ask-who { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ask-body { padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.ask-msg.user .ask-body { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ask-msg.assistant .ask-body { background: var(--fill); border: 1px solid var(--line); border-top-left-radius: 4px; }
.ask-body.error { background: var(--warn-soft) !important; border-color: #f2d3a6 !important; color: #7c4a0a; }
.ask-body p { margin: 0 0 8px; }
.ask-body p:last-of-type { margin-bottom: 0; }
.ask-body ul, .ask-body ol { margin: 4px 0 8px; padding-left: 20px; }
.ask-body li { margin: 3px 0; }
.ask-body code { font-size: 13px; background: rgba(23, 35, 28, 0.06); padding: 1px 5px; border-radius: 5px; }
.ask-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ask-chips:empty { display: none; }
.ask-chip {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; text-align: left; font: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.ask-chip:hover { box-shadow: var(--shadow); }
.ask-chip.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.14); }
.ask-chip strong { font-size: 14.5px; }
.ask-chip .kind { font-size: 10.5px; }
.ask-chip .muted { font-size: 12.5px; }
.ask-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ask-typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.ask-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8fa59a; animation: ask-dot 1.1s infinite ease-in-out; }
.ask-typing i:nth-child(2) { animation-delay: 0.15s; }
.ask-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ask-form { display: flex; flex-direction: column; gap: 8px; }
.ask-form > label { font-size: 13px; font-weight: 600; color: #3b4941; }
.ask-form textarea { width: 100%; resize: vertical; min-height: 64px; }
.ask-form-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.ask-model { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #3b4941; }
.ask-model select { max-width: 16rem; }
.formula-box.compact { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.ask-form .help { margin: 0; font-size: 12.5px; }
.ask-card .row-title { align-items: flex-start; gap: 12px; }
.ask-card .row-title h2 { margin: 0; }
.ask-card .row-title .help { margin: 2px 0 0; }
.ask-card .kicker { margin-bottom: 4px; }
.ask-card-body { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.ask-card-body .range-row, .ask-card-body .range-axis { grid-template-columns: 6.5rem minmax(0, 1fr) 9.5rem; gap: 10px; }
.ask-card-body .kpi-row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.ask-card-body .kpi-row b { font-size: 20px; }
.ask-kpis { grid-template-columns: repeat(3, 1fr); }
.ask-kpis b { font-size: 22px; }
@media (max-width: 1000px) { .ask-grid { grid-template-columns: 1fr; } }
select.in.compact { padding-right: 30px; background-position: right 10px center; }
.ask-tools .status, #ask-status { text-transform: none; }
.ask-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ask-card { position: sticky; top: 150px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; }
.ask-card .row-title { flex-wrap: wrap; }
.ask-card .row-title > div:first-child { flex: 1 1 14rem; min-width: 0; }
.ask-card-body { overflow-y: auto; min-height: 0; padding-right: 4px; }
.ask-card-body .floor-table { font-size: 12.5px; }
.ask-card-body .floor-table td, .ask-card-body .floor-table th { padding: 6px 8px; }
.presets { min-width: 0; }
.ask-chat-tools select { min-width: 0; }
@media (max-width: 1000px) { .ask-card { position: static; max-height: none; } }
@media (max-width: 640px) {
  .ask-convo .row-title { flex-wrap: wrap; }
  .ask-chat-tools { flex-wrap: wrap; width: 100%; }
  .ask-chat-tools select { flex: 1; max-width: none; }
  .ask-model { flex-wrap: wrap; }
}
.ask-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ask-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ask-kpis b { font-size: 18px; } .ask-kpis div { padding: 10px; } }
