/* Zafago Brief — phần riêng của hệ thống brief (nạp sau app.css). Chỉ dùng biến màu của app.css để sáng / tối luôn khớp.
   Không có style nội tuyến trong HTML (CSP) — độ rộng thanh % đặt bằng JS qua data-w. */
:root {
  --s-accept: #178F55;
  --s-cond: #D9A21B;
  --s-reject: #C2362B;
  --s-pending: #A9AFC2;
  --info: #3B5BDB;
  --info-soft: #E8EDFF;
  --missing-bg: #FFF3CF;
  --missing-ink: #8A5A00;
}
:root[data-theme="dark"] {
  --s-accept: #1E9558;
  --s-cond: #D09A30;
  --s-reject: #E35A47;
  --s-pending: #5E6A8E;
  --info: #9AB0FF;
  --info-soft: rgb(120 150 255 / .16);
  --missing-bg: rgb(240 190 90 / .16);
  --missing-ink: #F0BE5A;
}

/* ---- Tiện ích ---- */
[hidden] { display: none !important; }
.mt0 { margin-top: 0; }
.small { font-size: 12px; }
.hint { font-size: 12px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.offscreen { position: fixed; left: -9999px; top: 0; }
.spacer { flex: 1; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--muted); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li + li { margin-top: 2px; }
.btn.block { width: 100%; justify-content: center; text-align: center; }
a.btn.block { display: flex; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .btn.danger { color: #1A0A06; }
.badge { white-space: nowrap; }
.badge.info { background: var(--info-soft); color: var(--info); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.small { padding: 6px 10px; }
.page-sub { margin: -8px 0 14px; max-width: 900px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); cursor: pointer; }
.chip-static { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.form-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.empty-state { text-align: center; padding: 36px 18px; }
.empty-state h2 { margin: 0 0 6px; font-size: 18px; }
.empty-state .btn { margin-top: 10px; }
.modal.wide { max-width: 980px; }
.modal .body { overflow-wrap: anywhere; }
.confirm-body p { margin: 0 0 10px; }
h2.sec { font-size: 16px; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
h2.sec.inline { display: inline-flex; margin: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.card .sec-head { margin: 0 0 12px; }
.sec-head h2.sec { margin: 0; }
h4.sub { margin: 16px 0 8px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.banner { margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.toolbar select { min-width: 0; }

/* ---- Đăng nhập ---- */
.login-sub { margin: 4px 0 18px; }
.login-foot { font-size: 12px; margin: 14px 0 0; }
.login-back { margin: -2px 0 14px; }

/* ---- Bảng → thẻ ở màn hẹp (.table-wrap.cards) ---- */
.brief-link { text-decoration: none; font-weight: 600; color: var(--ink) !important; }
.brief-link:hover { text-decoration: underline; }
.brief-link .code { font-weight: 500; }
td.col-main { min-width: 220px; }
@media (max-width: 760px) {
  .table-wrap.cards { border: 0; box-shadow: none; overflow: visible; }
  .table-wrap.cards table.data, .table-wrap.cards tbody, .table-wrap.cards tr, .table-wrap.cards td { display: block; width: 100%; }
  .table-wrap.cards table.data { background: transparent; }
  .table-wrap.cards thead { display: none; }
  .table-wrap.cards tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
  .table-wrap.cards td, .table-wrap.cards td.num { white-space: normal; border: 0; padding: 4px 0; text-align: left; display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
  .table-wrap.cards td::before { content: attr(data-label); flex: 0 0 34%; max-width: 130px; color: var(--muted); font-size: 12px; padding-top: 2px; }
  .table-wrap.cards td[data-label=""]::before, .table-wrap.cards td.col-main::before { display: none; }
  .table-wrap.cards td > .cv { flex: 1; min-width: 0; }
  .table-wrap.cards td.col-main { display: block; font-size: 15px; }
  .table-wrap.cards td.col-wide { display: block; }
  .table-wrap.cards td.col-wide::before { display: block; max-width: none; margin-bottom: 4px; }
  .sidenav a.navtoggle { display: none; }
  .table-wrap.cards tbody tr:hover td { background: transparent; }
}

/* ---- Huy hiệu mảng: tên + AI + Duyệt ---- */
.lpills { display: flex; flex-wrap: wrap; gap: 6px; }
.lpill { display: inline-flex; flex-wrap: wrap; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; line-height: 1.2; background: var(--surface); max-width: 100%; }
.lpill > span { padding: 4px 7px; white-space: nowrap; }
.lpill-name { font-weight: 700; background: var(--surface-2); color: var(--ink); }
.lpill-ai, .lpill-hu { font-weight: 600; }
.lpill-hu { border-left: 1px dashed var(--line); }
.ok.lpill-ai, .ok.lpill-hu { background: var(--ok-soft); color: var(--ok-text); }
.warn.lpill-ai, .warn.lpill-hu { background: var(--warn-soft); color: var(--warn); }
.err.lpill-ai, .err.lpill-hu { background: var(--err-soft); color: var(--err); }
.none.lpill-ai, .none.lpill-hu { color: var(--muted); }
a.lpill-ai { display: inline-block; padding: 3px 9px; border-radius: 999px; text-decoration: none; margin: 2px 2px 2px 0; }
@media (max-width: 420px) { .lpill > span { padding: 4px 5px; } }

/* ---- Việc của tôi ---- */
.home-grid { grid-template-columns: minmax(0, 1fr); }
.home-card.wide { grid-column: 1 / -1; }
.home-card .table-wrap.cards { box-shadow: none; }

/* ---- Nộp / sửa brief ---- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.form-side { position: sticky; top: 0; }
.form-side h3 { margin: 0 0 8px; font-size: 15px; }
.form-actions { display: grid; gap: 8px; margin: 12px 0 10px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.checklist li.ok { color: var(--ok-text); }
.checklist li.todo { color: var(--muted); }
.checklist li.warn { color: var(--warn); }
.check-row-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--btn-border); border-radius: 999px; cursor: pointer; color: var(--ink); background: var(--surface); }
.check-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
textarea { width: 100%; resize: vertical; }
#f_raw_text { min-height: 220px; }
.dropzone { border: 2px dashed var(--btn-border); border-radius: 12px; padding: 22px 16px; text-align: center; cursor: pointer; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .12s, background .12s; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); outline: none; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .link { color: var(--brand-dark); text-decoration: underline; }
:root[data-theme="dark"] .dropzone .link { color: var(--accent-text); }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); flex-wrap: wrap; }
.file-row.new { border-style: dashed; }
.file-ext { flex: none; min-width: 42px; text-align: center; font-size: 10px; font-weight: 800; padding: 3px 4px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); }
.file-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .form-side { position: static; }
}

/* ---- Chi tiết brief ---- */
.record-head { display: flex; gap: 12px 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.rh-main { flex: 1 1 320px; min-width: 0; }
.rh-code { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; color: var(--muted); font-size: 13px; }
.record-head h1 { font-size: 22px; margin: 4px 0 2px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.rh-client { font-size: 15px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.rh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; align-items: start; }
.rg-main, .rg-side { display: grid; gap: 14px; min-width: 0; }
.rg-main > *, .rg-side > * { min-width: 0; }
@media (max-width: 1100px) { .record-grid { grid-template-columns: minmax(0, 1fr); } }
.an-meta { margin: 0; }

.progress-card { display: flex; gap: 16px; align-items: flex-start; border-left: 4px solid var(--brand); }
.progress-card h2 { margin: 0 0 10px; font-size: 17px; }
.pc-body { flex: 1; min-width: 0; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.progress span { display: block; height: 100%; width: 5%; border-radius: 999px; background: var(--brand-gradient); transition: width 1s linear; }
.spinner { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fail-card { border-left: 4px solid var(--err); }
.fail-card h2 { margin: 0 0 10px; font-size: 17px; }

dl.kv.card-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; margin: 0; }
.card-kv .kv-row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.card-kv dt { font-size: 13px; color: var(--muted); }
.card-kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.missing { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--missing-bg); color: var(--missing-ink); font-size: 12px; font-weight: 700; }
.kv-row.is-missing { background: linear-gradient(90deg, var(--missing-bg), transparent 70%); }
.missing-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--missing-bg); color: var(--ink); }
.missing-box ul { margin-top: 4px; }
@media (max-width: 760px) {
  dl.kv.card-kv { grid-template-columns: minmax(0, 1fr); }
  .card-kv .kv-row { grid-template-columns: 1fr; gap: 2px; }
}
.summary { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.jump { margin-top: 10px; font-size: 13px; color: var(--muted); }

.line-card { border-top: 4px solid var(--line); }
.line-card.tone-ok { border-top-color: var(--s-accept); }
.line-card.tone-warn { border-top-color: var(--s-cond); }
.line-card.tone-err { border-top-color: var(--s-reject); }
.line-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.line-head h3 { margin: 0; font-size: 18px; }
.rec-badge { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.rec-badge.ok { background: var(--ok-soft); color: var(--ok-text); }
.rec-badge.warn { background: var(--warn-soft); color: var(--warn); }
.rec-badge.err { background: var(--err-soft); color: var(--err); }
.scope { margin: 10px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.line-top { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 16px; margin-top: 12px; align-items: start; }
.reasons ul { margin-top: 4px; }
@media (max-width: 760px) { .line-top { grid-template-columns: 1fr; } }
.scorebox { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.score-head b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.scorebar { position: relative; height: 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0 4px; overflow: hidden; }
.scorebar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s-pending); border-radius: 999px; }
.scorebar .fill.ok { background: var(--s-accept); }
.scorebar .fill.warn { background: var(--s-cond); }
.scorebar .fill.err { background: var(--s-reject); }
.scorebar .mark { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .55; }
.coverage { margin-top: 6px; }
.gi { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; }
.gi.ok { background: var(--ok-soft); color: var(--ok-text); }
.gi.err { background: var(--err-soft); color: var(--err); }
.gi.unk { background: var(--warn-soft); color: var(--warn); }
td.gi-col { width: 36px; }
table.data tr.gate-fail td { background: var(--err-soft); }
.line-card .table-wrap { box-shadow: none; }
.evidence summary { cursor: pointer; color: var(--brand-dark); font-size: 13px; }
:root[data-theme="dark"] .evidence summary { color: var(--accent-text); }
.evidence blockquote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.decision { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.decision h4.sub { margin-top: 0; }
.decision-cur { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 10px; }
.note-text { flex-basis: 100%; margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.seg-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--btn-border); border-radius: 10px; cursor: pointer; background: var(--surface); font-weight: 600; min-height: 44px; }
.choice small { font-weight: 400; color: var(--muted); }
.choice.on.ok { border-color: var(--s-accept); background: var(--ok-soft); color: var(--ok-text); }
.choice.on.warn { border-color: var(--s-cond); background: var(--warn-soft); color: var(--warn); }
.choice.on.err { border-color: var(--s-reject); background: var(--err-soft); color: var(--err); }
.choice input { accent-color: currentColor; }
@media (max-width: 560px) { .seg-choice { grid-template-columns: 1fr; } }

.questions { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.questions li { overflow-wrap: anywhere; }
.price-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.price-opt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); overflow-wrap: anywhere; }
.price-opt h4 { margin: 2px 0 6px; font-size: 15px; }
.price-opt p { margin: 0 0 6px; font-size: 13px; }
.po-n { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.po-price { font-weight: 700; color: var(--accent-text); }
.diag { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.diag p { margin: 4px 0 0; overflow-wrap: anywhere; }

.raw summary { cursor: pointer; list-style-position: inside; }
.raw-text { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.history { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.history li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hv { font-weight: 800; min-width: 28px; }
.hmeta { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.comments { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }
.c-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 6px 10px; margin-top: 2px; border-radius: 10px; background: var(--surface-2); }
.comment-form { display: grid; gap: 6px; justify-items: end; }
.outcome-edit summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); padding: 6px 0; }
:root[data-theme="dark"] .outcome-edit summary { color: var(--accent-text); }
.outcome-form { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.outcome-form .field select, .outcome-form .field input { width: 100%; }
.value-preview { font-weight: 600; color: var(--ink); }
.old-analysis .card { box-shadow: none; margin-bottom: 12px; }

/* ---- Tiêu chí ---- */
.thresholds { margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.crit-list { display: grid; gap: 10px; margin-bottom: 8px; }
.crit { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.crit header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.crit p { margin: 0; }
.crit.off { opacity: .6; }
.crit.edit.dirty { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); opacity: 1; }
.crit-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.crit .field { margin-bottom: 8px; }
.crit .field input, .crit .field select { width: 100%; }
.dirty-note { color: var(--brand-dark); font-weight: 600; }
.empty-line { padding: 10px 0; }
@media (max-width: 760px) { .crit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .crit-grid .field:first-child { grid-column: 1 / -1; } }
.role-list { display: grid; gap: 6px; }
.role-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.role-opt span { display: flex; flex-direction: column; }
.role-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.role-opt input { margin-top: 4px; }

/* ---- Tổng hợp ---- */
.kpi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-tiles .kpi-group { border-top-color: var(--brand); }
.stats-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.stats-grid > .chart-card { grid-column: 1 / -1; }
.stats-grid .table-wrap { box-shadow: none; }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .kpi-tiles { grid-template-columns: 1fr 1fr; } .kpi-tiles .kpi-group:last-child { grid-column: 1 / -1; } .kpi-group { padding: 12px 14px; } }
.chart-card { position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; margin-right: 6px; vertical-align: -1px; }
.legend .sw { margin-right: 0; }
.chart-box { width: 100%; min-height: 230px; }
.chart-box svg { display: block; max-width: 100%; }
.chart-box .grid { stroke: var(--line); stroke-width: 1; }
.chart-box .axis { stroke: var(--btn-border); stroke-width: 1; }
.chart-box .tick { fill: var(--muted); font-size: 11px; }
.chart-box .val { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart-box .hit { fill: transparent; cursor: pointer; }
.chart-box .bar:hover .hit, .chart-box .bar:focus .hit { fill: var(--hover); fill-opacity: .5; }
.chart-box .bar:focus { outline: none; }
rect.s-accept { fill: var(--s-accept); }
rect.s-cond { fill: var(--s-cond); }
rect.s-reject { fill: var(--s-reject); }
rect.s-pending { fill: var(--s-pending); }
span.s-accept, i.s-accept { background: var(--s-accept); }
span.s-cond, i.s-cond { background: var(--s-cond); }
span.s-reject, i.s-reject { background: var(--s-reject); }
span.s-pending, i.s-pending { background: var(--s-pending); }
.chart-tip { position: absolute; z-index: 5; min-width: 160px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; pointer-events: none; }
.chart-tip div { display: flex; align-items: center; }
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stackbar { display: flex; gap: 2px; width: 100%; min-width: 90px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.stackbar span { display: block; height: 100%; }
td.bar-col { width: 22%; }
.gate-fails { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.gf-head { overflow-wrap: anywhere; }
.gf-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.gf-bar .track { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gf-bar .track span { display: block; height: 100%; border-radius: 999px; }
