:root { --bg: #101820; --panel: #1b2630; --line: #33434f; --text: #f1f4f6; --muted: #9fb0bc; --accent: #f2a33a; --ok: #58c48a; --bad: #ef6f6c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, sans-serif; padding-bottom: env(safe-area-inset-bottom); }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
main { padding: 16px; max-width: 560px; margin: auto; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--panel); color: var(--muted); }
.pill.off { color: var(--bg); background: var(--accent); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button { font: inherit; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-height: 48px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); width: 100%; }
.tile { min-height: 92px; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
label.uncertain { color: var(--accent); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 11px; margin-top: 4px; }
.lead { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font-weight: 400; margin-bottom: 8px; }
.lead small { display: block; color: var(--muted); }
.status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.status.done { color: var(--ok); }
.status.failed { color: var(--bad); }
.note { color: var(--muted); font-size: 14px; }
.error { color: var(--bad); font-size: 14px; }
a { color: var(--accent); }
.shell { display: flex; min-height: 100vh; }
nav { width: 200px; flex: none; border-right: 1px solid var(--line); padding: 14px 10px; }
nav strong { display: block; padding: 4px 10px 14px; }
nav a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
nav a.on { background: var(--panel); color: var(--accent); }
.page { flex: 1; min-width: 0; padding: 20px 24px; max-width: 1200px; }
.page h1 { font-size: 22px; margin: 0 0 14px; }
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bar input, .bar select { width: auto; margin: 0; }
.bar button, .small { padding: 8px 12px; min-height: 0; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border-radius: 10px; padding: 14px; }
.kpi b { display: block; font-size: 24px; }
.kpi span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.link { cursor: pointer; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; }
.lane { background: var(--panel); border-radius: 10px; padding: 8px; min-height: 200px; }
.lane h3 { font-size: 13px; color: var(--muted); margin: 4px 4px 8px; }
.deal { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; font-size: 14px; }
.deal select { padding: 5px; font-size: 13px; }
.muted { color: var(--muted); }
.feed { font-size: 14px; border-left: 2px solid var(--line); padding: 2px 0 2px 10px; margin: 8px 0; }
@media (max-width: 720px) { .shell { display: block; } nav { width: auto; border: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; } nav strong { display: none; } nav a { white-space: nowrap; } .page { padding: 14px; } }
