:root {
  color-scheme: dark;
  --bg: #07100b;
  --panel: #101914;
  --panel-2: #162219;
  --line: #28372d;
  --text: #eef7f0;
  --muted: #9daf9f;
  --green: #45d06f;
  --green-dark: #216d38;
  --blue: #6c7cff;
  --red: #ef5c64;
  --gold: #e3b94c;
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0, #153321 0, transparent 35%), var(--bg); color: var(--text); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 70px; }
.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 14px max(20px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,16,11,.9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #3d6148; border-radius: 50%; color: var(--green); font-size: 12px; letter-spacing: .08em; }
.topbar nav { display: flex; gap: 8px; }
.topbar nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); }
.topbar nav a:hover { background: var(--panel-2); color: var(--text); }
.account { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.account img { width: 32px; height: 32px; border-radius: 50%; }
.account form { display: inline; }
.link-button { border: 0; background: transparent; color: var(--green); cursor: pointer; }
.hero { min-height: 64vh; display: grid; grid-template-columns: 1.5fr .7fr; align-items: center; gap: 40px; }
.hero h1, .page-title h1 { margin: 6px 0 12px; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero p, .page-title p { max-width: 680px; margin: 0 0 28px; color: var(--muted); font-size: 19px; }
.hero-mark { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #2e5438; border-radius: 50%; background: radial-gradient(circle, #1e6635, #0d1d12 67%); box-shadow: 0 0 90px rgba(69,208,111,.16); color: var(--green); font-size: clamp(28px, 6vw, 70px); font-weight: 900; letter-spacing: -.07em; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.page-title { margin: 22px 0 34px; }
.page-title h1 { font-size: clamp(42px, 6vw, 68px); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), #0d1510); transition: transform .18s, border-color .18s; }
.metric:hover { transform: translateY(-3px); border-color: #4c6954; }
.metric-count { display: block; margin-bottom: 34px; font-size: 52px; font-weight: 850; letter-spacing: -.05em; }
.metric h2 { margin: 0 0 5px; }
.metric p { margin: 0; color: var(--muted); }
.metric.green .metric-count { color: var(--green); }.metric.blue .metric-count { color: var(--blue); }.metric.gold .metric-count { color: var(--gold); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), #0c130e); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.card h1, .card h2 { margin-top: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-head h2 { margin: 5px 0 12px; font-size: 25px; line-height: 1.2; }
.stack { display: grid; gap: 16px; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.subsection { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--green); background: rgba(69,208,111,.06); }
.subsection p { margin-bottom: 0; }
.meta { margin-top: 22px; color: var(--muted); font-size: 14px; }
code { color: #b6c7bb; }
.pills, .actions, .filters, .inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { display: inline-flex; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #cbd9ce; background: #162119; font-size: 12px; font-weight: 750; white-space: nowrap; }
.pill.version { color: var(--green); }.pill.accepted, .pill.converted, .pill.done, .pill.low { color: #78e496; }.pill.rejected, .pill.urgent { color: #ff8990; }.pill.in_progress, .pill.normal { color: #99a4ff; }.pill.review, .pill.high { color: #f0ca67; }
.actions { margin-top: 22px; }
.actions form { margin: 0; }
.vote-box { margin-top: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0a120d; }
.vote-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); }
.vote-summary strong { color: var(--text); }
.vote-actions { margin: 14px 0 0; }
.vote-actions .selected { outline: 2px solid var(--text); outline-offset: 2px; }
.vote-result { margin-top: 10px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid #52615a; border-radius: 11px; background: #233028; color: var(--text); font-weight: 750; cursor: pointer; }
.button:hover { filter: brightness(1.12); }.button.primary, .button.success { border-color: var(--green-dark); background: var(--green-dark); }.button.danger { border-color: #7d3237; background: #6e282d; }
.filters { margin: 26px 0 18px; }
.filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(16,25,20,.8); font-size: 14px; }
.filter.active { border-color: var(--green-dark); color: var(--green); background: rgba(69,208,111,.09); }
.create { margin-bottom: 18px; }
.create summary { cursor: pointer; color: var(--green); font-size: 19px; font-weight: 800; }
.create form { margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 7px; margin-bottom: 16px; color: #dce7de; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #35463a; border-radius: 10px; outline: none; background: #09110c; color: var(--text); padding: 12px 13px; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(69,208,111,.12); }
textarea { min-height: 125px; resize: vertical; }
.inline-form { margin-top: 20px; }
.inline-form label { display: flex; align-items: center; margin: 0; }
.inline-form select { width: auto; min-width: 190px; margin-left: 8px; }
.empty { padding: 42px; border: 1px dashed #34463a; border-radius: var(--radius); color: var(--muted); text-align: center; }
.flash { margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--green-dark); border-radius: 11px; background: rgba(69,208,111,.1); color: #a8edba; }
.flash.error { border-color: #7d3237; background: rgba(239,92,100,.1); color: #ffb0b4; }
footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; }.topbar nav { grid-row: 2; grid-column: 1 / -1; }.account span { display: none; }
  .hero { grid-template-columns: 1fr; padding: 30px 0; }.hero-mark { width: min(60vw, 300px); justify-self: center; }
  .metrics { grid-template-columns: 1fr; }.metric { min-height: 180px; }.metric-count { margin-bottom: 20px; }
  .form-grid { grid-template-columns: 1fr; }.card-head { display: grid; }.inline-form label { display: grid; }.inline-form select { margin: 0; width: 100%; }
}
