:root {
  --bg: #f3f5f9; --panel: #fff; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
  --accent: #1d4ed8; --accent-ink: #1e3a8a; --accent-2: #eff4ff;
  --ok: #15803d; --ok-bg: #ecfdf3; --warn: #b45309; --warn-bg: #fffbeb; --bad: #b91c1c; --bad-bg: #fef2f2; --hl: rgba(250, 204, 21, .30);
  --c-TRANSMISSAO: #1d4ed8; --c-ONUS: #ea580c; --c-CONSTRICAO: #dc2626; --c-CANCELAMENTO: #64748b; --c-RETIFICACAO: #7c3aed;
  --c-CADASTRAL: #0d9488; --c-ABERTURA: #0f172a; --c-OUTRO: #94a3b8;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; height: 58px;
  background: rgba(11, 18, 32, .97); color: #fff; backdrop-filter: blur(8px); }
.brand { font-size: 17px; cursor: pointer; display: flex; align-items: center; gap: 10px; letter-spacing: -.2px; font-weight: 500; }
.brand b { color: #93b4ff; font-weight: 700; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid #334155; border-radius: 99px; padding: 2px 9px; color: #94a3b8; }
#userbox { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #cbd5e1; }
#userbox .who { display: flex; align-items: center; gap: 9px; }
#userbox .av { width: 30px; height: 30px; border-radius: 50%; background: #1e293b; display: grid; place-items: center; font-weight: 700; color: #93b4ff; font-size: 12px; }
#userbox .role { font-size: 11px; color: #94a3b8; }
#userbox button { background: transparent; color: #cbd5e1; border: 1px solid #334155; border-radius: 8px; padding: 5px 12px; cursor: pointer; }
#userbox button:hover { border-color: #64748b; }
main { padding: 26px 28px 60px; max-width: 1560px; margin: 0 auto; }

/* base */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
h1 { font-size: 24px; margin: 2px 0 6px; letter-spacing: -.4px; } h2 { font-size: 16px; margin: 0 0 14px; letter-spacing: -.2px; } h3 { font-size: 13px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .ink { color: var(--ink); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 14px; cursor: pointer; font-weight: 500; color: var(--ink-2); transition: all .12s; }
.btn:hover { border-color: var(--line-2); background: #f8fafc; text-decoration: none; }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 1px 2px rgba(29,78,216,.3); }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 1px 10px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); background: #fff; white-space: nowrap; line-height: 20px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; }
.chip.info { background: var(--accent-2); color: var(--accent); border-color: #c7d7fe; }
.cat { color: #fff; border: none; }
input[type=text], input[type=date], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: #fff; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
.notice { border: 1px solid #fde68a; background: var(--warn-bg); padding: 10px 14px; border-radius: 10px; font-size: 13px; color: #78350f; }

/* login */
.login { max-width: 820px; margin: 48px auto; padding: 32px; }
.login h1 { font-size: 28px; }
.users { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.user-card { text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: all .12s; }
.user-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.12); transform: translateY(-1px); }

/* home */
.home { display: grid; grid-template-columns: 390px 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .home { grid-template-columns: 1fr; } }
.drop { border: 2px dashed var(--line-2); border-radius: 12px; padding: 30px 16px; text-align: center; color: var(--muted); cursor: pointer; background: #f8fafc; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-2); color: var(--accent); }
.drop .ic { font-size: 28px; display: block; margin-bottom: 4px; }
.filelist { font-size: 12px; margin: 10px 0; max-height: 160px; overflow: auto; color: var(--ink-2); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 8px 10px; }
table.list td { border-bottom: 1px solid #f1f5f9; padding: 11px 10px; vertical-align: middle; }
table.list tr.click:hover td { background: #f8fafc; cursor: pointer; }

/* documento */
.dochead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.back { font-size: 12.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1px; }
.kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 24px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .bar { height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin: 3px 0; } .kpi .bar i { display: block; height: 100%; background: var(--ok); }
.kpi.is-bad { border-color: #fecaca; background: linear-gradient(#fff, var(--bad-bg)); } .kpi.is-bad b { color: var(--bad); }
.kpi.is-INCONCLUSIVA .kpi-status { color: var(--bad); font-size: 18px; } .kpi.is-PROPOSTA .kpi-status { color: var(--warn); font-size: 18px; } .kpi.is-VALIDADA .kpi-status { color: var(--ok); font-size: 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.count { font-size: 11px; border-radius: 99px; padding: 0 7px; line-height: 18px; color: #fff; } .count.bad { background: var(--bad); } .count.warn { background: var(--warn); }

/* processamento como linha de metrô */
.pipeline-card { padding: 26px 28px 30px; }
.pipe-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pipe { display: flex; position: relative; }
.pipe::before { content: ""; position: absolute; left: 7%; right: 7%; top: 13px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.stop { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; gap: 2px; }
.stop .dotw { width: 32px; height: 32px; display: grid; place-items: center; position: relative; z-index: 1; }
.stop .dotw i { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid #cbd5e1; display: block; }
.stop.done .dotw i { border-color: var(--accent); background: var(--accent); }
.stop.done::before, .stop.cur::before { content: ""; position: absolute; top: 13px; height: 6px; right: 50%; left: -50%; background: var(--accent); }
.stop:first-child::before { display: none; }
.stop.cur .dotw i { border-color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.stop b { font-size: 13px; margin-top: 6px; } .stop small { font-size: 11.5px; color: var(--muted); }
.stop:not(.done):not(.cur) b { color: var(--muted); font-weight: 500; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,.45); } 50% { box-shadow: 0 0 0 10px rgba(29,78,216,0); } }

/* mapa metrô */
.metro-card { padding: 0; overflow: hidden; }
.metro-sum { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: 13.5px; }
.metro-sum .lg { display: inline-block; width: 18px; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: 7px; }
.metro-scroll { overflow-x: auto; padding: 4px 0; }
svg.metro { display: block; font-family: inherit; }
.metro .tname { font-size: 13px; font-weight: 700; fill: var(--ink); } .metro .tsub { font-size: 11px; fill: var(--muted); }
.metro .trunk { stroke: #0f172a; stroke-width: 6; stroke-linecap: round; }
.metro .trunk-gap { stroke: var(--bad); stroke-width: 3; stroke-dasharray: 4 5; }
.metro .prop { stroke: var(--c-TRANSMISSAO); stroke-width: 10; stroke-linecap: round; }
.metro .bline { stroke-width: 8; stroke-linecap: round; } .metro .bline.ended { opacity: .55; }
.metro .term { stroke-width: 5; stroke-linecap: round; }
.metro .drop { stroke: #cbd5e1; stroke-width: 1.5; stroke-dasharray: 3 4; } .metro .drop-c { stroke: #94a3b8; }
.metro .arc { fill: none; stroke: var(--c-RETIFICACAO); stroke-width: 2; stroke-dasharray: 5 4; opacity: .8; }
.metro .endline { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 2 5; }
.metro .endtxt { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); } .metro .endtxt2 { font-size: 10.5px; fill: var(--muted); }
.metro .tl { font-size: 11px; font-weight: 600; text-anchor: middle; fill: var(--ink-2); }
.metro .ty { font-size: 10.5px; text-anchor: middle; fill: var(--muted); }
.metro .st { cursor: pointer; } .metro .st:hover circle { filter: drop-shadow(0 0 4px rgba(29,78,216,.5)); }
.metro .st.sel circle { stroke-width: 6; filter: drop-shadow(0 0 6px rgba(29,78,216,.6)); }
.metro .st.sel .tl, .metro .st.sel .slbl { fill: var(--accent); }
.metro .st.is-cancel .tl { text-decoration: line-through; fill: var(--muted); }
.metro .st-int { fill: #fff; stroke: #0f172a; stroke-width: 5; }
.metro .st-x { fill: #f1f5f9; stroke: #94a3b8; stroke-width: 4; } .metro .xmark { stroke: var(--bad); stroke-width: 2.5; stroke-linecap: round; }
.metro .st-b { fill: #fff; stroke-width: 5; }
.metro .slbl { font-size: 11.5px; font-weight: 700; text-anchor: middle; fill: var(--ink); } .metro .snat { font-size: 10.5px; text-anchor: middle; fill: var(--muted); }
.metro .scan { font-size: 10.5px; text-anchor: middle; fill: var(--bad); font-weight: 600; } .metro .scur { font-size: 10.5px; text-anchor: middle; fill: var(--accent); font-weight: 700; }
.metro .blbl { font-size: 11.5px; font-weight: 600; } .metro .bend { font-size: 11px; fill: var(--muted); font-weight: 600; }
.metro .pill { font-size: 10.5px; font-weight: 800; fill: #fff; text-anchor: middle; letter-spacing: .06em; }
.metro .gapst circle { fill: var(--bad-bg); stroke: var(--bad); stroke-width: 2.5; stroke-dasharray: 3 3; }
.metro .q { font-size: 13px; font-weight: 800; text-anchor: middle; fill: var(--bad); } .metro .gapl { fill: var(--bad); }
.metro .revdot { fill: var(--ok); stroke: #fff; stroke-width: 2; }
.metro-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: center; }
.metro-legend span { display: inline-flex; align-items: center; gap: 6px; }
.metro-legend i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid; display: inline-block; background: #fff; }
.metro-legend .lg-gap { border: 2px dashed var(--bad); background: var(--bad-bg); }
.metro-legend .lg-rev { border: 2px solid #fff; background: var(--ok); box-shadow: 0 0 0 1px var(--ok); width: 10px; height: 10px; }
.metro-legend .lg-arc { border: none; border-top: 2px dashed var(--c-RETIFICACAO); border-radius: 0; width: 18px; height: 0; }
.viewer-under { margin-top: 18px; }

/* linha do tempo + visualizador */
.split { display: grid; grid-template-columns: minmax(340px, 450px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.timeline { max-height: calc(100vh - 330px); overflow: auto; padding: 2px 6px 2px 2px; }
.act { position: relative; border: 1px solid var(--line); border-left: 5px solid var(--c-OUTRO); border-radius: 11px; background: #fff; padding: 10px 13px; margin-bottom: 9px; cursor: pointer; transition: all .12s; }
.act:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.act.sel { box-shadow: 0 0 0 2px var(--accent); }
.act.cancelled { opacity: .6; } .act.cancelled .lbl { text-decoration: line-through; }
.act .lbl { font-weight: 700; font-variant-numeric: tabular-nums; }
.gap { border: 1.5px dashed #fca5a5; background: var(--bad-bg); color: var(--bad); border-radius: 11px; padding: 8px 13px; margin-bottom: 9px; font-size: 12.5px; }
.confbar { display: inline-block; width: 46px; height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; vertical-align: middle; } .confbar i { display: block; height: 100%; }
.viewer { position: sticky; top: 76px; }
.pagebox { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #e2e8f0; }
.pagebox img { display: block; max-width: 100%; height: auto; }
.hl { position: absolute; background: var(--hl); outline: 2px solid #f59e0b; pointer-events: none; border-radius: 2px; }
.hl.line { outline: none; background: rgba(250, 204, 21, .22); }
.evtext { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 280px; overflow: auto; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.hyp { font-size: 11px; color: var(--warn); margin-left: 4px; font-weight: 500; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pg { border: 1px solid var(--line); border-radius: 12px; padding: 9px; background: #fff; font-size: 12px; }
.pg img { width: 100%; height: 200px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--line); }
.status-banner { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 12px; }
.status-banner.INCONCLUSIVA { background: var(--bad-bg); color: var(--bad); border: 1px solid #fecaca; }
.status-banner.PROPOSTA { background: var(--warn-bg); color: var(--warn); border: 1px solid #fde68a; }
.status-banner.VALIDADA { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0; }
.quote { border-left: 3px solid var(--line-2); padding: 6px 12px; color: var(--ink-2); font-size: 12.5px; margin: 6px 0; background: #f8fafc; border-radius: 0 8px 8px 0; }
.issue { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 9px; background: #fff; }
.issue.BLOQUEANTE { border-left: 5px solid var(--bad); } .issue.ALERTA { border-left: 5px solid var(--warn); } .issue.resolvida { opacity: .6; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 50; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #c7d7fe; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.legend .chip { cursor: pointer; } .legend .chip.off { opacity: .3; }

/* IA */
.ai-badge { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, #8b5cf6, #c2410c); }
.btn.ai { border-color: #ddd6fe; background: #faf5ff; color: #5b21b6; }
.btn.ai:hover { background: #f3e8ff; }
.ai-card { margin-top: 16px; background: linear-gradient(180deg, #fff, #faf5ff); border-color: #ede9fe; }
.side { display: flex; flex-direction: column; }
.ai-panel { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid #ede9fe; background: #faf5ff; }
.ai-panel.err { background: var(--bad-bg); border-color: #fecaca; color: var(--bad); }
.ai-panel.running { align-items: center; }
.ai-box { border: 1px solid #ede9fe; background: #fcfaff; border-radius: 11px; padding: 12px 14px; margin: 14px 0; }
.ai-box h3 { margin: 12px 0 6px; }
.div-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.div-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 8px; border-bottom: 1px solid #ede9fe; }
.div-table td { padding: 5px 8px; border-bottom: 1px solid #f3f0ff; }
.warn-text { color: var(--warn); }
/* exclusão */
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn.danger { color: var(--bad); border-color: #fecaca; background: #fff; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.danger-solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.del-confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--bad); background: var(--bad-bg); border: 1px solid #fecaca; border-radius: 9px; padding: 4px 6px 4px 10px; max-width: 520px; flex-wrap: wrap; }

.title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn { border: 1px solid transparent; background: none; border-radius: 7px; padding: 2px 7px; cursor: pointer; color: var(--muted); font-size: 15px; }
.icon-btn:hover { border-color: var(--line); color: var(--accent); background: #fff; }
.title-input { font-size: 20px !important; font-weight: 700; max-width: 560px; padding: 5px 10px !important; }

.login-form { max-width: 380px; }
input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: #fff; }

/* guia */
.help-link { color: #cbd5e1; border: 1px solid #334155; border-radius: 8px; padding: 4px 11px; font-size: 12.5px; }
.help-link:hover { color: #fff; border-color: #64748b; text-decoration: none; }
.welcome { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--accent-2); border: 1px solid #c7d7fe; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.help { max-width: 880px; margin: 0 auto; }
.help h1 { font-size: 28px; margin-top: 8px; }
.help .lead { font-size: 15.5px; color: var(--ink-2); }
.help section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; box-shadow: var(--shadow); scroll-margin-top: 76px; }
.help section h2 { font-size: 18px; }
.help li { margin: 6px 0; }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.help-toc a { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.help-toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.steps li { padding-left: 4px; }
.pipe-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.pipe-mini div { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; background: #f8fafc; }
.pipe-mini b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; }
.h-st { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px dashed; vertical-align: middle; margin-right: 4px; }
.help-kv { grid-template-columns: 190px 1fr; }
@media (max-width: 640px) { .help-kv { grid-template-columns: 1fr; } }
.elapsed { font-variant-numeric: tabular-nums; font-size: 12px; color: #6d28d9; margin-left: 6px; }

.quota { border: 1px solid #c7d7fe; background: var(--accent-2); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 13px; }
.quota .bar { height: 6px; background: #dbe4ff; border-radius: 3px; overflow: hidden; margin: 6px 0; }
.quota .bar i { display: block; height: 100%; background: var(--accent); }
.quota.low { border-color: #fde68a; background: var(--warn-bg); } .quota.low .bar i { background: var(--warn); }
.quota.full { border-color: #fecaca; background: var(--bad-bg); color: var(--bad); } .quota.full .bar i { background: var(--bad); }
