/* Admin layout on top of the board's styles (board/styles.css). Desktop-first: founders use a laptop. */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.side .logo { font-weight: 800; font-size: 18px; margin: 0 0 2px 12px; letter-spacing: -0.02em; }
.side .tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #06CBAA; margin: 0 0 20px 12px; }
.side a { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 7px; color: #C2D2C9; font-size: 14px; font-weight: 600; text-decoration: none; }
.side a[aria-current="page"] { background: #153E2E; color: #fff; font-weight: 700; }
.side a:hover { color: #fff; }
.side .me { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid #2E5A47; font-size: 13px; }
.side .me button { margin-top: 8px; background: none; border: 0; color: #C2D2C9; padding: 0; text-decoration: underline; font-size: 13px; }
.main { padding: 28px 36px 80px; min-width: 0; }
.main h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
.kicker2 { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--deep); margin-bottom: 6px; }
.lede2 { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.kpi .s { font-size: 12px; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #F7FBF8; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--soft); white-space: nowrap; }
.status.live { background: var(--mint); color: var(--deep); }
.status.setting_up { background: #EAF0FF; color: #2A4A9A; }
.status.paused, .status.leaving { background: #FFF1E6; color: var(--warn); }
.status.closed { background: #ECEDEF; color: #4A4E55; }
.flag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn); margin-right: 8px; white-space: nowrap; }
.ok { color: var(--won); font-weight: 700; } .bad { color: var(--warn); font-weight: 700; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.steps .s { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; }
.steps .s.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps .s .n { width: 24px; height: 24px; border-radius: 999px; background: var(--tint); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps .s.done .n { background: var(--won); color: #fff; }
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
pre.code { background: var(--ink); color: #DDE8E1; padding: 14px; border-radius: 10px; font-size: 12px; overflow: auto; max-height: 280px; white-space: pre; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.check .dot { width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--lost); }
.check .dot.y { background: var(--won); } .check .dot.n { background: var(--warn); }
.welcome { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.welcome .h { background: var(--ink); color: #fff; padding: 14px 18px; font-weight: 800; }
.welcome .b { padding: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.sbar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 3px; background: var(--line2); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars .r { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 14px; }
.bars .track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--deep); border-radius: 999px; }
.note { background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--soft); }
.conn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.conn .state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.conn .state i { width: 10px; height: 10px; border-radius: 999px; background: var(--lost); display: inline-block; }
.conn .state.y i { background: var(--won); } .conn .state.n i { background: var(--warn); }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .side .tag, .side .me { display: none; }
  .main { padding: 20px 16px 60px; }
  .kpis, .conn, .grid2, .steps, .row2 { grid-template-columns: 1fr; }
}
