/* Data Center 43 แฟ้ม — ส่วนประกอบของหน้าระบบ (ใช้คู่กับ shell.css) ไม่มีสคริปต์หรือสไตล์ฝังในหน้า ตาม CSP */
.dc-content h1 { font-size: 1.45rem; font-weight: 700; line-height: 1.35; margin: 0 0 .35rem; letter-spacing: -.005em; }
.dc-content h2 { font-size: 1.12rem; font-weight: 600; line-height: 1.4; margin: 0 0 .6rem; }
.dc-content h3 { font-size: .98rem; font-weight: 600; margin: 1.3rem 0 .5rem; }
.dc-content p { margin: .35rem 0 .8rem; max-width: 78ch; }
.dc-content a { color: var(--dc-forest); text-underline-offset: 2px; }
.small { font-size: .86rem; } .muted { color: var(--dc-ink-2); } .big { font-size: 1.1rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; letter-spacing: 0; }
.select { user-select: all; word-break: break-all; }
.foot { margin: 28px 0 0; font-size: .78rem; color: var(--dc-ink-2); max-width: none; }

/* ---------- พื้นผิว ---------- */
.card { background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r); padding: 22px 24px; margin-bottom: 18px; position: relative; z-index: 1; }
.card > h1:first-child, .card > h2:first-child { margin-top: 0; }
.narrow { max-width: 440px; margin: 0 auto 16px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid2 > .card, .grid2 > .stack > .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.row.between { justify-content: space-between; align-items: center; }
.grow { flex: 1 1 220px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; align-items: end; }
.empty { padding: 28px 18px; text-align: center; color: var(--dc-ink-2); background: var(--dc-surface-2); border: 1px dashed var(--dc-line); border-radius: var(--dc-r-sm); }
.secret { font-size: 1.5rem; letter-spacing: .1em; margin-top: 6px; user-select: all; font-weight: 600; }

/* ข้อความแจ้ง: แถบสีด้านซ้ายบอกระดับ */
.note { padding: 11px 16px; border-radius: var(--dc-r-sm); margin: 12px 0; background: var(--dc-blue-soft); border-left: 4px solid var(--dc-blue); position: relative; z-index: 1; }
.note.ok { background: var(--dc-forest-soft); border-left-color: var(--dc-forest); }
.note.warn { background: var(--dc-amber-soft); border-left-color: var(--dc-amber); }
.note.bad { background: var(--dc-brick-soft); border-left-color: var(--dc-brick); }

/* ---------- ฟอร์ม ---------- */
.field { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.field > span { color: var(--dc-ink-2); font-weight: 500; }
.dc-content input, .dc-content select, .dc-content button, .auth-main input, .auth-main button { font: inherit; color: inherit; }
.dc-content input:not([type="checkbox"]):not([type="file"]), .dc-content select, .auth-main input:not([type="checkbox"]) {
  min-height: 42px; padding: 8px 12px; border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); background: var(--dc-surface); max-width: 100%;
}
.dc-content input:not([type="checkbox"]):not([type="file"]):focus, .dc-content select:focus, .auth-main input:focus { border-color: var(--dc-forest); outline: 3px solid color-mix(in srgb, var(--dc-forest) 22%, transparent); outline-offset: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--dc-forest); }
input.w5 { width: 5.5em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: var(--dc-r-sm); border: 1px solid var(--dc-line); background: var(--dc-surface); color: var(--dc-ink); cursor: pointer; text-decoration: none; font-weight: 500; }
.btn:hover { border-color: var(--dc-forest); color: var(--dc-forest); }
.btn.pri { background: var(--dc-forest); color: var(--dc-forest-ink); border-color: var(--dc-forest); font-weight: 600; }
.btn.pri:hover { background: color-mix(in srgb, var(--dc-forest) 86%, #000); color: var(--dc-forest-ink); }
.btn.bad { background: var(--dc-brick-soft); border-color: var(--dc-brick); color: var(--dc-brick); }
.btn.sm { min-height: 34px; padding: 4px 12px; font-size: .86rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--dc-forest); font: inherit; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--dc-forest-soft); color: var(--dc-forest); font-size: .82rem; font-weight: 600; }

/* พื้นที่วางไฟล์ zip */
.drop { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border: 2px dashed color-mix(in srgb, var(--dc-forest) 45%, var(--dc-line)); border-radius: var(--dc-r); background: var(--dc-surface-2); cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--dc-forest); background: var(--dc-forest-soft); }
.drop .big { font-weight: 600; color: var(--dc-forest); }
.steps { padding-left: 1.3rem; margin: .4rem 0; } .steps li { margin: .35rem 0; padding-left: .2rem; }
.steps li::marker { color: var(--dc-forest); font-weight: 700; }
.decide { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dc-line); }

/* ---------- ตาราง ---------- */
.tbl { overflow-x: auto; margin: 10px 0; border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); background: var(--dc-surface); }
.dc-content table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.dc-content th, .dc-content td { padding: 9px 12px; border-bottom: 1px solid var(--dc-line-2); text-align: left; vertical-align: top; }
.dc-content thead th { background: var(--dc-surface-2); color: var(--dc-ink-2); font-weight: 600; font-size: .82rem; white-space: nowrap; position: sticky; top: 0; border-bottom-color: var(--dc-line); }
.dc-content tbody tr:hover td { background: color-mix(in srgb, var(--dc-forest-soft) 45%, transparent); }
.dc-content tbody tr:last-child td, .dc-content tbody tr:last-child th { border-bottom: 0; }
td.n, th.n, .num { text-align: right; font-variant-numeric: tabular-nums; }
tr.flag td { background: var(--dc-amber-soft); }
td .row { align-items: center; flex-wrap: nowrap; }

/* ---------- รายการ: แถบค้นหา/กรอง เรียง แบ่งหน้า ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 14px; margin: 12px 0 4px; background: var(--dc-surface-2); border: 1px solid var(--dc-line-2); border-radius: var(--dc-r-sm); }
.filters .field.grow { flex: 1 1 240px; }
.filters .field input[type="search"] { width: 100%; }
.filters .acts { display: flex; gap: 8px; align-items: center; }
.head-row { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
.head-row h1, .head-row h2 { margin: 0; }
a.sortlink { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
a.sortlink:hover { color: var(--dc-forest); }
.sort-ic { font-size: .7rem; opacity: .55; }
th[aria-sort] .sort-ic { opacity: 1; color: var(--dc-forest); }
.pager { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-top: 6px; }
.pager p { margin: 0; }
.pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pg { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 10px; border-radius: var(--dc-r-sm); border: 1px solid var(--dc-line); background: var(--dc-surface); color: var(--dc-ink); text-decoration: none; font-size: .86rem; font-variant-numeric: tabular-nums; }
a.pg:hover { border-color: var(--dc-forest); color: var(--dc-forest); }
.pg.cur { background: var(--dc-forest); border-color: var(--dc-forest); color: var(--dc-forest-ink); font-weight: 600; }
.pg.off { opacity: .45; }
.pg.gap { border-color: transparent; background: none; min-width: 20px; padding: 0; }
td.acts { white-space: nowrap; }
td.acts .btn, td.acts form.inline { margin-right: 4px; }
.card.edit { border-color: var(--dc-forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc-forest) 14%, transparent); }
.card.danger { border-color: var(--dc-brick); }
.card.danger h2 { color: var(--dc-brick); }
.hl-row td { background: var(--dc-forest-soft); }

/* ---------- ตัวเลขสรุป ---------- */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 18px; position: relative; z-index: 1; }
.fig { padding: 12px 16px 12px 14px; border-left: 3px solid var(--dc-forest); background: var(--dc-surface-2); border-radius: 0 var(--dc-r-sm) var(--dc-r-sm) 0; }
.dc-content > .figs .fig { background: var(--dc-surface); border-top: 1px solid var(--dc-line); border-right: 1px solid var(--dc-line); border-bottom: 1px solid var(--dc-line); }
.fig .v { font-size: 1.65rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fig .l { font-size: .82rem; color: var(--dc-ink-2); margin-top: 2px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 10px 0 4px; font-size: .92rem; }
dl.kv dt { color: var(--dc-ink-2); } dl.kv dd { margin: 0; word-break: break-word; }

/* สถานะ */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--dc-line-2); color: var(--dc-ink-2); }
.p-accepted, .p-done, .p-same, .p-seed { background: var(--dc-forest-soft); color: var(--dc-forest); }
.p-sent, .p-ready, .p-queued, .p-running, .p-processing, .p-uploaded, .p-minor { background: var(--dc-blue-soft); color: var(--dc-blue); }
.p-late { background: var(--dc-amber-soft); color: var(--dc-amber); }
.p-failed, .p-rejected, .p-big { background: var(--dc-brick-soft); color: var(--dc-brick); }
.p-discarded { background: var(--dc-line-2); color: var(--dc-ink-2); }

/* ตารางการนำส่งรายเดือน */
.gridtbl th[scope="row"] { white-space: nowrap; font-weight: 500; }
.gridtbl td.c, .gridtbl th.c { text-align: center; padding: 7px 4px; min-width: 52px; }
.c a, .c span { display: inline-grid; place-items: center; width: 32px; height: 30px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.c.acc a, .legend .acc { background: var(--dc-forest-soft); color: var(--dc-forest); }
.c.acc-late a, .legend .acc-late { background: var(--dc-amber-soft); color: var(--dc-amber); }
.c.seed a { background: var(--dc-forest-soft); color: var(--dc-forest); }
.c.sent a, .legend .sent { background: var(--dc-blue-soft); color: var(--dc-blue); }
.c.miss span, .legend .miss { background: var(--dc-brick-soft); color: var(--dc-brick); }
.c.open span, .legend .open { color: var(--dc-ink-2); }
.legend .c { display: inline-block; min-width: 26px; text-align: center; border-radius: 6px; margin: 0 4px 0 12px; font-weight: 700; }
.legend .c:first-child { margin-left: 0; }

/* ชุดข้อมูลในหน้าตรวจ */
details { margin: 14px 0; border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); padding: 0 14px; background: var(--dc-surface); }
details > summary { cursor: pointer; padding: 11px 0; font-weight: 600; }
details[open] { padding-bottom: 14px; }
.dslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.dslist a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 9px; border-radius: 6px; text-decoration: none; color: var(--dc-ink); font-size: .88rem; }
.dslist a:hover, .dslist a[aria-current="true"] { background: var(--dc-forest-soft); }

/* ---------- หน้าข้อมูลรายบุคคล: ลายน้ำชื่อผู้ใช้+เวลา และห้ามพิมพ์ ---------- */
.watermark { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; display: flex; flex-wrap: wrap; gap: 70px 90px; padding: 40px; transform: rotate(-24deg) scale(1.4); opacity: .06; user-select: none; }
.watermark span { font-size: 15px; white-space: nowrap; color: var(--dc-ink); }
@media print {
  body.sensitive .dc-content { display: none !important; }
  body.sensitive::after { content: "หน้านี้มีข้อมูลรายบุคคล ไม่อนุญาตให้พิมพ์"; display: block; padding: 40px; font-size: 20px; }
}

/* ---------- หน้าเข้าสู่ระบบ ---------- */
body.auth { min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); min-height: 100vh; }
.auth-side { background: var(--dc-rail); color: var(--dc-rail-ink); padding: 56px 48px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.auth-side .mark { width: 56px; height: 56px; margin-bottom: 18px; }
.auth-title { font-size: 2rem; line-height: 1.25; margin: 0; font-weight: 700; }
.auth-org { color: var(--dc-rail-dim); margin: 0 0 18px; }
.auth-points { list-style: none; padding: 0; margin: 10px 0 auto; display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.auth-points li { padding-left: 22px; position: relative; line-height: 1.55; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--dc-lamduan); }
.auth-fine { font-size: .8rem; color: var(--dc-rail-dim); margin-top: 32px; max-width: 40ch; }
.auth-ver { font-size: .74rem; color: var(--dc-rail-dim); margin-top: auto; }
.foot-ver { white-space: nowrap; }
.auth-side::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(242, 207, 107, .09); pointer-events: none; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.auth-main .narrow { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-main .card { padding: 30px 30px 26px; }
.auth-main .note { max-width: 420px; margin: 0 auto 14px; width: 100%; }
.auth-main h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
.auth-main .stack { margin-top: 18px; }
.auth-main .btn.pri { width: 100%; }

@media (max-width: 860px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  dl.kv { grid-template-columns: 1fr; gap: 0; } dl.kv dd { margin-bottom: 8px; }
  .card { padding: 16px; }
  td .row { flex-wrap: wrap; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px; gap: 4px; }
  .auth-side .mark { width: 44px; height: 44px; margin-bottom: 8px; }
  .auth-title { font-size: 1.5rem; }
  .auth-points, .auth-fine { display: none; }
  .auth-org { margin-bottom: 0; }
  .auth-main { justify-content: flex-start; padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { body.dc * { transition: none !important; animation: none !important; } }

/* ---------- เปรียบเทียบข้อมูลระหว่างหน่วย ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.pick { position: relative; margin: 0; padding: 0; border: 0; background: none; }
details.pick > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); background: var(--dc-surface); font-weight: 500; font-size: .88rem; list-style: none; }
details.pick > summary::-webkit-details-marker { display: none; }
details.pick > summary::after { content: "▾"; font-size: .75rem; color: var(--dc-ink-2); }
details.pick[open] > summary { border-color: var(--dc-forest); }
.pick-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--dc-forest); color: var(--dc-forest-ink); font-size: .75rem; font-weight: 700; }
.pick-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: max-content; min-width: 280px; max-width: min(420px, 86vw); max-height: 320px; overflow: auto; padding: 6px; background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.pick-list label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: .88rem; cursor: pointer; }
.pick-list label:hover { background: var(--dc-forest-soft); }
.cmp-wrap { max-height: 70vh; }
table.cmp th small, table.cmp td small { display: block; font-size: .72rem; font-weight: 400; color: var(--dc-ink-2); white-space: normal; }
table.cmp thead th { white-space: normal; min-width: 108px; vertical-align: bottom; z-index: 2; }
table.cmp th.cmp-unit { position: sticky; left: 0; z-index: 1; background: var(--dc-surface); min-width: 210px; max-width: 280px; font-weight: 500; text-align: left; }
table.cmp thead th.cmp-unit { z-index: 3; background: var(--dc-surface-2); }
table.cmp tfoot th, table.cmp tfoot td { background: var(--dc-surface-2); font-weight: 600; border-top: 1px solid var(--dc-line); }
table.cmp td.c-good { background: var(--dc-forest-soft); color: var(--dc-forest); font-weight: 600; }
table.cmp td.c-bad { background: var(--dc-brick-soft); color: var(--dc-brick); font-weight: 600; }
table.cmp td.c-small { color: var(--dc-ink-2); }
table.cmp sup { margin-left: 2px; }
.legend .lg { display: inline-block; padding: 1px 8px; border-radius: 6px; margin-right: 6px; }
.legend .lg.c-good { background: var(--dc-forest-soft); color: var(--dc-forest); }
.legend .lg.c-bad { background: var(--dc-brick-soft); color: var(--dc-brick); }
.legend .lg.c-small { background: var(--dc-line-2); color: var(--dc-ink-2); }
svg.cmp-rank { display: block; width: 100%; height: auto; font-family: inherit; }
svg.cmp-rank .rk-l { font-size: 12.5px; fill: var(--dc-ink); }
svg.cmp-rank .rk-v { font-size: 12.5px; fill: var(--dc-ink); font-variant-numeric: tabular-nums; }
svg.cmp-rank .rk-bg { fill: var(--dc-line-2); }
svg.cmp-rank .rk-b { fill: var(--dc-ink-2); }
svg.cmp-rank .rk-good { fill: var(--dc-forest); }
svg.cmp-rank .rk-bad { fill: var(--dc-brick); }
svg.cmp-rank .rk-small { fill: var(--dc-line); }
svg.cmp-rank .rk-med { stroke: var(--dc-ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
svg.cmp-rank .rk-ml { font-size: 11.5px; fill: var(--dc-ink-2); }

/* ---------- สร้างตัวชี้วัด (KPI) ---------- */
.kpi-h1 { margin: 0 0 14px; }
.kpi-form [hidden] { display: none !important; }
.kpi-form .formgrid .kwide { grid-column: span 2; }
@media (max-width: 640px) { .kpi-form .formgrid .kwide { grid-column: auto; } }
fieldset.kta { border: 1px solid var(--dc-line-2); border-radius: var(--dc-r-sm); padding: 10px 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
fieldset.kta legend, fieldset.kslot legend { font-size: .82rem; font-weight: 600; color: var(--dc-ink-2); padding: 0 6px; }
.kslots { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
fieldset.kslot { border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); padding: 10px 14px 14px; margin: 0; background: var(--dc-surface); min-width: 0; }
.kpi-form.js fieldset.kslot.off { background: var(--dc-surface-2); border-style: dashed; }
.kslot-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.kslot-params { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 10px; align-items: flex-end; }
.kpi-form.js .kslot.off .kslot-params { display: none; }
.kslot-params .field.grow { flex: 1 1 200px; }
.kpi-save { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tpl { border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tpl h3 { margin: 0; font-size: .95rem; }
.tpl p { margin: 0; }
.tpl .btn { margin-top: auto; align-self: flex-start; }
.card.danger details { border: 0; padding: 0; margin: 0; background: none; }
.card.danger summary { color: var(--dc-brick); }

/* วิเคราะห์ › ตัวชี้วัด (KPI) */
.ka-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; border-bottom: 1px solid var(--dc-line); }
.ka-tabs a { padding: 8px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--dc-r-sm) var(--dc-r-sm) 0 0; margin-bottom: -1px; color: var(--dc-ink-2); font-weight: 600; text-decoration: none; }
.ka-tabs a:hover { color: var(--dc-ink); }
.ka-tabs a[aria-current="page"] { color: var(--dc-forest); background: var(--dc-surface); border-color: var(--dc-line); }
.ka-filters.js .acts { display: none; }
.ka-filters .row { align-self: center; }
.ka-head { margin: 2px 0 14px; }
.ins-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ins { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: var(--dc-r-sm); background: var(--dc-surface-2); border-left: 4px solid var(--dc-line); }
.ins small { display: block; margin-top: 3px; font-size: .76rem; color: var(--dc-ink-2); }
.ins-tag { flex: 0 0 auto; min-width: 76px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: .74rem; font-weight: 700; background: var(--dc-line-2); color: var(--dc-ink-2); }
.ins-bad { border-left-color: var(--dc-brick); } .ins-bad .ins-tag { background: var(--dc-brick-soft); color: var(--dc-brick); }
.ins-warn { border-left-color: var(--dc-amber); } .ins-warn .ins-tag { background: var(--dc-amber-soft); color: var(--dc-amber); }
.ins-tip { border-left-color: var(--dc-blue); } .ins-tip .ins-tag { background: var(--dc-blue-soft); color: var(--dc-blue); }
.ins-good { border-left-color: var(--dc-forest); } .ins-good .ins-tag { background: var(--dc-forest-soft); color: var(--dc-forest); }
.ins-more { margin-top: 10px; }
.ins-more > summary { cursor: pointer; font-weight: 600; color: var(--dc-forest); margin-bottom: 8px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sc { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--dc-line); border-radius: var(--dc-r-sm); background: var(--dc-surface); color: inherit; text-decoration: none; }
.sc:hover, .sc:focus-visible { border-color: var(--dc-forest); }
.sc-name { font-size: .92rem; line-height: 1.35; }
.sc-v { font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
svg.ka-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
svg.ka-svg.sc-bar { margin: 4px 0 2px; }
svg.ka-svg.mini { max-width: 360px; margin-top: 6px; }
svg.ka-svg .gl { stroke: var(--dc-line-2); stroke-width: 1; }
svg.ka-svg .ax { stroke: var(--dc-line); stroke-width: 1.5; }
svg.ka-svg .tk { font-size: 11px; fill: var(--dc-ink-2); font-variant-numeric: tabular-nums; }
svg.ka-svg .lb, svg.ka-svg .vl { font-size: 12px; fill: var(--dc-ink); font-variant-numeric: tabular-nums; }
svg.ka-svg .mut { fill: var(--dc-ink-2); }
svg.ka-svg .lb.tgt { fill: var(--dc-amber); font-weight: 600; }
svg.ka-svg .bg { fill: var(--dc-line-2); }
svg.ka-svg .bar-neu { fill: var(--dc-ink-2); }
svg.ka-svg .bar-good { fill: var(--dc-forest); }
svg.ka-svg .bar-bad { fill: var(--dc-brick); }
svg.ka-svg .ci { fill: none; stroke: var(--dc-ink); stroke-width: 1.3; }
svg.ka-svg .ln-pool { stroke: var(--dc-ink); stroke-width: 1.3; stroke-dasharray: 4 3; }
svg.ka-svg .ln-tgt { stroke: var(--dc-amber); stroke-width: 1.6; stroke-dasharray: 6 4; }
svg.ka-svg .ln-tgt2 { stroke: var(--dc-ink); stroke-width: 2; }
svg.ka-svg .lim95 { fill: none; stroke: var(--dc-ink-2); stroke-width: 1.2; stroke-dasharray: 5 4; }
svg.ka-svg .lim998 { fill: none; stroke: var(--dc-ink-2); stroke-width: 1.2; }
svg.ka-svg .pt { stroke: var(--dc-surface); stroke-width: 1.5; }
svg.ka-svg .pt-neu { fill: var(--dc-ink-2); }
svg.ka-svg .pt-good { fill: var(--dc-forest); }
svg.ka-svg .pt-bad { fill: var(--dc-brick); }
svg.ka-svg .pt-warn { fill: var(--dc-amber); }
svg.ka-svg .pt-oth { fill: var(--dc-ink-2); opacity: .35; }
svg.ka-svg .pt.pt-focus { stroke: var(--dc-ink); stroke-width: 2; }
svg.ka-svg .box { fill: var(--dc-forest-soft); stroke: var(--dc-forest); stroke-width: 1.4; }
svg.ka-svg .whk { fill: none; stroke: var(--dc-forest); stroke-width: 1.4; }
svg.ka-svg .med { stroke: var(--dc-ink); stroke-width: 2.4; }
svg.ka-svg .tgt-mk { fill: var(--dc-amber); }
svg.ka-svg .ln-unit { fill: none; stroke: var(--dc-ink-2); stroke-width: 1; opacity: .3; }
svg.ka-svg path.ln-pool2 { fill: none; stroke: var(--dc-ink); stroke-width: 2.6; }
svg.ka-svg path.ln-focus { fill: none; stroke: var(--dc-amber); stroke-width: 2.6; }
svg.ka-svg circle.ln-pool2 { fill: var(--dc-ink); stroke: var(--dc-surface); stroke-width: 1.2; }
svg.ka-svg circle.ln-focus { fill: var(--dc-amber); stroke: var(--dc-surface); stroke-width: 1.2; }
svg.ka-svg circle.ln-pool2.hollow { fill: var(--dc-surface); stroke: var(--dc-ink); stroke-width: 1.6; }
svg.ka-svg circle.ln-focus.hollow { fill: var(--dc-surface); stroke: var(--dc-amber); stroke-width: 1.6; }
svg.ka-svg .proj { fill: none; stroke: var(--dc-ink-2); stroke-width: 2; stroke-dasharray: 3 4; }
.pill.ka-good { background: var(--dc-forest-soft); color: var(--dc-forest); }
.pill.ka-bad { background: var(--dc-brick-soft); color: var(--dc-brick); }
.pill.ka-warn { background: var(--dc-amber-soft); color: var(--dc-amber); }
table.hm td { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.hm thead th a { color: inherit; }
table.hm th.cmp-unit a { color: inherit; text-decoration: none; }
table.hm th.cmp-unit a:hover { text-decoration: underline; }
table.hm td.hm-pass, .hm-legend .hm-pass, table.hm td.hm-hi, .hm-legend .hm-hi { background: var(--dc-forest-soft); color: var(--dc-forest); font-weight: 600; }
table.hm td.hm-near, .hm-legend .hm-near { background: var(--dc-amber-soft); color: var(--dc-amber); font-weight: 600; }
table.hm td.hm-fail, .hm-legend .hm-fail, table.hm td.hm-lo, .hm-legend .hm-lo { background: var(--dc-brick-soft); color: var(--dc-brick); font-weight: 600; }
table.hm td.hm-hi, .hm-legend .hm-hi, table.hm td.hm-lo, .hm-legend .hm-lo { font-weight: 500; font-style: italic; }
table.hm td.hm-hid, table.hm td.hm-na, .hm-legend .hm-hid { color: var(--dc-ink-2); background: var(--dc-surface-2); }
table.hm tr.hm-pool th, table.hm tr.hm-pool td { background: var(--dc-surface-2); font-weight: 600; }
.hm-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 4px 0 10px; }
.hm-legend span { padding: 2px 8px; border-radius: 6px; }
tr.ka-focus td { background: var(--dc-amber-soft); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mini-c p { margin: 0; }
details.ka-method > summary { cursor: pointer; }
details.ka-method ul { margin-bottom: 0; }
