:root {
  --primary: #0f2a4a; --accent: #1fa2ff; --bg: #f5f7fa; --panel: #ffffff; --ink: #0f172a; --muted: #64748b;
  --line: #e2e8f0; --green: #16a34a; --green-bg: #dcfce7; --yellow: #ca8a04; --yellow-bg: #fef9c3; --red: #dc2626; --red-bg: #fee2e2;
  --gray: #94a3b8; --gray-bg: #f1f5f9; --radius: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.25; } h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { white-space: pre-wrap; background: var(--gray-bg); padding: 12px; border-radius: 8px; overflow: auto; }
table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
textarea { min-height: 120px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.btn { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-weight: 500; }
.btn:hover { background: var(--gray-bg); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn.primary:hover { filter: brightness(1.1); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--red); border-color: #fecaca; } .btn.sm { padding: 4px 8px; font-size: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .grow { flex: 1; } .right { margin-left: auto; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: ui-monospace, Menlo, monospace; }
.nav { background: var(--primary); color: #fff; padding: 0 20px; display: flex; align-items: center; gap: 18px; height: 52px; }
.nav a { color: #fff; opacity: .85; } .nav a:hover, .nav a.active { opacity: 1; text-decoration: none; }
.nav .brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; opacity: 1; }
.nav .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav select { width: auto; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); padding: 5px 8px; }
.nav .who { margin-left: auto; font-size: 12px; opacity: .8; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 18px 20px 60px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.flash { background: #ecfeff; border: 1px solid #a5f3fc; color: #155e75; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.warn { background: var(--yellow-bg); border: 1px solid #fde68a; color: #713f12; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.stat .n { font-size: 24px; font-weight: 700; } .stat .l { font-size: 12px; color: var(--muted); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--gray-bg); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col h3 { display: flex; justify-content: space-between; margin-bottom: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gray); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.card.green { border-left-color: var(--green); } .card.yellow { border-left-color: var(--yellow); } .card.red { border-left-color: var(--red); }
.card .t { font-weight: 600; display: block; color: var(--ink); margin-bottom: 3px; }
.card .m { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--gray-bg); color: var(--muted); border: 1px solid var(--line); }
.chip.green { background: var(--green-bg); color: #166534; border-color: #bbf7d0; } .chip.yellow { background: var(--yellow-bg); color: #854d0e; border-color: #fde68a; }
.chip.red { background: var(--red-bg); color: #991b1b; border-color: #fecaca; } .chip.blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green { background: var(--green-bg); color: #166534; } .badge.yellow { background: var(--yellow-bg); color: #854d0e; }
.badge.red { background: var(--red-bg); color: #991b1b; } .badge.gray { background: var(--gray-bg); color: var(--muted); }
.bar { height: 6px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; margin-top: 6px; } .bar i { display: block; height: 100%; background: var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 500; }
.tabs a.active { color: var(--ink); background: #fff; border: 1px solid var(--line); border-bottom-color: #fff; margin-bottom: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } .board { grid-auto-columns: minmax(260px, 80vw); } }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; font-size: 13px; } .kv b { color: var(--muted); font-weight: 500; }
.gate { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.gate .i { width: 18px; text-align: center; font-weight: 700; } .ok { color: var(--green); } .no { color: var(--red); } .hm { color: var(--yellow); }
.md h1 { font-size: 18px; } .md h2 { font-size: 15px; margin-top: 16px; } .md blockquote { border-left: 3px solid var(--line); margin: 6px 0; padding: 2px 10px; color: #334155; background: #f8fafc; }
.md table td, .md table th { font-size: 12.5px; }
.needs { color: #b91c1c; font-weight: 600; }
.timeline li { padding: 4px 0; } .timeline .past { color: var(--muted); text-decoration: line-through; }
.login { max-width: 380px; margin: 80px auto; }
details summary { cursor: pointer; color: var(--muted); }
.evidence { font-size: 12.5px; color: #334155; background: #f8fafc; border-left: 3px solid var(--accent); padding: 6px 10px; margin: 6px 0; }

.row select, .row input[type=text], .row input[type=url], .row input[type=password], .row input[type=file] { width: auto; }
.row .grow { flex: 1 1 200px; }
.toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
