:root {
  --ink: #f4f1e8;
  --muted: #a8aa9f;
  --faint: #777b71;
  --base: #0b0d0b;
  --panel: #121511;
  --panel-2: #171b15;
  --line: #2d3328;
  --lime: #c8f560;
  --lime-2: #8fbe35;
  --orange: #ff8a3d;
  --red: #ff675f;
  --blue: #71b7ff;
  --shadow: 0 16px 46px rgba(0,0,0,.35);
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--base); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); background: var(--base); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.noise { position: fixed; inset: 0; pointer-events: none; opacity: .18; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E"); }
.shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }

.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 24px 18px; background: rgba(11,13,11,.93); backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px 11px 11px 3px; background: var(--lime); color: #13170d; display: grid; place-items: center; font-weight: 950; letter-spacing: -2px; box-shadow: 0 0 24px rgba(200,245,96,.18); }
.brand-copy strong { display: block; letter-spacing: -.4px; }
.brand-copy span { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; }
.nav { display: grid; gap: 5px; }
.nav button { width: 100%; border: 0; background: transparent; border-radius: 10px; padding: 11px 12px; color: var(--muted); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.nav button:hover { background: #171a15; color: var(--ink); }
.nav button.active { background: var(--lime); color: #11150b; font-weight: 800; }
.nav .count { min-width: 22px; padding: 2px 6px; border: 1px solid currentColor; border-radius: 99px; text-align: center; font: 10px var(--mono); opacity: .7; }
.sidebar-foot { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; background: var(--panel); }
.local-dot { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 10px var(--lime); }

.main { min-width: 0; padding: 24px 34px 60px; }
.topbar { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.release-select { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
select, input, textarea { color: var(--ink); background: #0e110d; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--lime-2); box-shadow: 0 0 0 3px rgba(200,245,96,.08); }
.top-actions { display: flex; gap: 8px; }
.icon-btn, .button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.icon-btn:hover, .button:hover { border-color: #59634e; background: var(--panel-2); }
.button.primary { background: var(--lime); color: #11150b; border-color: var(--lime); font-weight: 850; }
.button.primary:hover { background: #d5ff79; }
.button.danger { border-color: rgba(255,103,95,.4); color: #ffaaa5; }
.button.small { padding: 7px 10px; font-size: 12px; }

.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: 1.7px; font: 700 11px var(--mono); margin-bottom: 10px; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 60px); line-height: .98; letter-spacing: -3.1px; max-width: 900px; }
h2 { margin: 0; letter-spacing: -1.3px; font-size: 26px; }
h3 { margin: 0; letter-spacing: -.5px; font-size: 17px; }
p { color: var(--muted); line-height: 1.6; }
.lead { font-size: 16px; max-width: 760px; }
.hero { padding: 28px 0 34px; }
.hero-line { display: inline; color: var(--faint); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { border: 1px solid var(--line); border-radius: 99px; padding: 7px 10px; color: var(--muted); background: rgba(18,21,17,.8); font-size: 12px; }
.pill.good { color: var(--lime); border-color: rgba(200,245,96,.3); }
.pill.warn { color: var(--orange); border-color: rgba(255,138,61,.35); }

.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.grid.two { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: linear-gradient(145deg, rgba(24,28,22,.96), rgba(16,19,15,.96)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.stat .label { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 30px; margin: 8px 0 3px; letter-spacing: -1.4px; }
.stat small { color: var(--faint); }
.stat strong.lime { color: var(--lime); }
.stat strong.orange { color: var(--orange); }
.stat strong.red { color: var(--red); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 34px 0 14px; }
.section-head p { margin: 5px 0 0; font-size: 13px; }

.next-action { position: relative; overflow: hidden; background: var(--lime); color: #12160c; padding: 26px; border-radius: 22px; box-shadow: 0 20px 50px rgba(129,168,41,.15); }
.next-action::after { content: "1"; position: absolute; right: 20px; bottom: -42px; font-size: 160px; line-height: 1; font-weight: 950; color: rgba(20,26,10,.08); }
.next-action .eyebrow { color: #35430f; }
.next-action h2 { max-width: 620px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -2px; }
.next-action p { color: #405015; max-width: 680px; margin-bottom: 20px; }
.next-action .button { background: #11150b; border-color: #11150b; color: var(--ink); position: relative; z-index: 1; }
.guardrail { display: grid; gap: 12px; }
.guardrail-row { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.guardrail-row:last-child { border: 0; padding-bottom: 0; }
.guardrail-row b { font-size: 13px; }
.guardrail-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.45; }
.checkmark { color: var(--lime); font-weight: 900; }

.priority-list { display: grid; gap: 10px; }
.priority { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #10130f; }
.rank { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #242a1f; color: var(--lime); font: 800 13px var(--mono); }
.priority b { display: block; font-size: 14px; }
.priority small { color: var(--faint); }
.progress { height: 7px; background: #292e26; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.status-badge.verified { color: var(--lime); border-color: rgba(200,245,96,.28); }
.status-badge.blocked { color: var(--red); border-color: rgba(255,103,95,.3); }
.status-badge.approval { color: var(--orange); border-color: rgba(255,138,61,.3); }
.status-badge.progressing { color: var(--blue); border-color: rgba(113,183,255,.3); }
.status-badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 7px 11px; cursor: pointer; font-size: 12px; }
.filter.active { color: #10140a; background: var(--lime); border-color: var(--lime); font-weight: 800; }
.item-list { display: grid; gap: 10px; }
.work-item { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: rgba(16,19,15,.75); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; }
.work-item h3 { font-size: 15px; }
.work-item p { font-size: 12px; margin: 5px 0 0; }
.item-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.tag { color: var(--faint); background: #20251d; border-radius: 6px; padding: 4px 7px; font: 10px var(--mono); }
.item-actions { display: flex; gap: 6px; }

.decision-feature { border-color: rgba(200,245,96,.25); }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.option { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #0e110d; cursor: pointer; }
.option:hover, .option.selected { border-color: var(--lime-2); transform: translateY(-1px); }
.option.recommended::after { content: "Recommended"; position: absolute; right: 10px; top: 10px; font: 700 9px var(--mono); text-transform: uppercase; color: var(--lime); }
.option h3 { padding-right: 70px; }
.option p { font-size: 12px; margin-bottom: 0; }
.option ul { color: var(--muted); padding-left: 17px; font-size: 12px; line-height: 1.55; }
.option input { margin: 0 6px 0 0; accent-color: var(--lime); }
.decision-footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.decision-footer small { color: var(--faint); }

.checklist-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.checklist-tab { white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.checklist-tab.active { color: var(--ink); border-color: var(--lime-2); background: #1b2117; }
.check-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--lime); margin-top: 2px; }
.check-row.done .check-label { color: var(--faint); text-decoration: line-through; }
.check-label { font-size: 14px; }
.check-note { color: var(--faint); font-size: 11px; margin-top: 4px; }
.verified-toggle { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 11px; }
.verified-toggle.on { color: var(--lime); }

.note-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.note-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #10130f; }
.note-card .type { color: var(--orange); font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.note-card p { font-size: 13px; margin-bottom: 0; }
.note-card footer { display: flex; justify-content: space-between; margin-top: 12px; color: var(--faint); font-size: 10px; }

.empty { text-align: center; padding: 38px 18px; color: var(--faint); border: 1px dashed var(--line); border-radius: 14px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.68); display: grid; place-items: center; padding: 18px; backdrop-filter: blur(7px); }
.modal { width: min(620px, 100%); max-height: 90vh; overflow: auto; background: #151914; border: 1px solid #3a4233; border-radius: 20px; padding: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.close { border: 0; background: transparent; color: var(--muted); font-size: 23px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--muted); font-size: 12px; }
textarea { resize: vertical; min-height: 92px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; max-width: 340px; color: #11150b; background: var(--lime); border-radius: 12px; padding: 12px 15px; font-weight: 750; box-shadow: var(--shadow); animation: toast-in .25s ease; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

.mobile-head { display: none; }
@media (max-width: 1040px) {
  .grid.stats { grid-template-columns: repeat(2,1fr); }
  .grid.two { grid-template-columns: 1fr; }
  .option-grid, .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 15; left: 0; top: 0; width: 268px; transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-head { display: flex; align-items: center; gap: 10px; }
  .main { padding: 18px 16px 46px; }
  .topbar { align-items: flex-start; }
  .release-select > span { display: none; }
  .top-actions .label { display: none; }
  .grid.stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat { padding: 15px; }
  .stat strong { font-size: 24px; }
  h1 { letter-spacing: -2px; }
  .form-grid, .note-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; }
  .decision-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .grid.stats { grid-template-columns: 1fr; }
  .top-actions { gap: 4px; }
  .icon-btn { padding: 8px 9px; }
}
