:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --panel: #f1f0ec;
  --ink: #0b0b0b;
  --ink2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --ring: rgba(11, 11, 11, .10);
  --accent: #2a78d6;
  --lv-hard: #184f95;
  --lv-mid: #3987e5;
  --lv-easy: #86b6ef;
  --lv-int: #d6d4cc;
  --heat: #184f95;
  --b-ok: #c9d3de;
  --b-l1: #f5d5b8;
  --b-l23: #eea36f;
  --b-l3: #d9622b;
  --b-no: #8f3512;
  --fact: #e6f0fb;
  --infer: #fff3d6;
  --norec: #ecebe6;
  --good: #006300;
  --warn-bg: #fff6e8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d; --surface: #1a1a19; --panel: #242422; --ink: #f0efec; --ink2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --ring: rgba(255, 255, 255, .10); --accent: #3987e5;
    --lv-hard: #9ec5f4; --lv-mid: #3987e5; --lv-easy: #1c5cab; --lv-int: #4a4944; --heat: #9ec5f4;
    --b-ok: #4f5966; --b-l1: #8a6a52; --b-l23: #c27a45; --b-l3: #e0713c; --b-no: #f2a582;
    --fact: #1d2a3a; --infer: #3a3020; --norec: #2c2c2a; --good: #0ca30c; --warn-bg: #2e2619;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d; --surface: #1a1a19; --panel: #242422; --ink: #f0efec; --ink2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --ring: rgba(255, 255, 255, .10); --accent: #3987e5;
  --lv-hard: #9ec5f4; --lv-mid: #3987e5; --lv-easy: #1c5cab; --lv-int: #4a4944; --heat: #9ec5f4;
  --b-ok: #4f5966; --b-l1: #8a6a52; --b-l23: #c27a45; --b-l3: #e0713c; --b-no: #f2a582;
  --fact: #1d2a3a; --infer: #3a3020; --norec: #2c2c2a; --good: #0ca30c; --warn-bg: #2e2619;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Leelawadee UI", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: Consolas, ui-monospace, monospace; font-size: 13px; background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--grid); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 18px; padding-bottom: 8px; }
.eyebrow { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.2; }
.lede { margin: 2px 0 0; color: var(--ink2); }
.top-side { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.chip { display: inline-block; font-size: 12.5px; color: var(--ink2); background: var(--panel); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.theme { border: 1px solid var(--grid); background: var(--surface); color: var(--ink); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.nav { display: flex; gap: 20px; padding-bottom: 10px; overflow-x: auto; }
.nav a { color: var(--ink2); font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* sections */
.sec { padding: 36px 0 8px; scroll-margin-top: 110px; }
h2 { font-size: 22px; margin: 0 0 2px; }
h3 { font-size: 17px; margin: 28px 0 10px; }
.sub { margin: 0 0 18px; color: var(--ink2); font-size: 14px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--grid); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.kpi .who { font-weight: 700; font-size: 16px; }
.kpi .big { font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .cap { font-size: 12.5px; color: var(--muted); }
.kpi .row2 { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.kpi .row2 b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); margin: 4px 0 10px; }
.legend .grp { color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* comparison grid */
.cmp { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.crow { display: grid; grid-template-columns: 130px 1.25fr .8fr 1.25fr 1fr; gap: 22px; padding: 14px 18px; border-top: 1px solid var(--grid); align-items: center; }
.crow.head { border-top: 0; background: var(--panel); padding-top: 10px; padding-bottom: 10px; }
.crow.head div { font-size: 13px; font-weight: 700; }
.crow.head small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.cname b { font-size: 17px; display: block; }
.cname small { color: var(--ink2); font-size: 12.5px; }
.ptitle { display: none; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.barline { display: flex; align-items: center; gap: 8px; }
.bar { display: flex; height: 24px; gap: 2px; clip-path: inset(0 0 0 0); }
.bar > i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; min-width: 2px; overflow: hidden; white-space: nowrap; cursor: default; }
.bar > i:last-child { border-radius: 0 5px 5px 0; }
.bar.full { width: 100%; }
.tot { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.mini { display: grid; grid-template-columns: 34px 1fr 78px; gap: 6px; align-items: center; font-size: 12px; margin: 2px 0; }
.mini .lab { color: var(--ink2); text-align: right; }
.mini .trk { height: 11px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.mini .fil { height: 100%; border-radius: 3px; transform-origin: left center; }
.mini .val b { font-variant-numeric: tabular-nums; }
.mini .val span { color: var(--muted); }
.on-dark { color: #fff; }
.on-light { color: #0b0b0b; }

/* ladder */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 22px; }
.rung { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 14px; min-height: 150px; box-shadow: var(--shadow); }
.rung h4 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.rung h4 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.pchip { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pchip b { font-size: 16px; }
.pchip .meta { font-size: 12px; color: var(--ink2); text-align: right; line-height: 1.35; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.badge.tl { background: #6250d6; color: #fff; }
.badge.vh { background: #1baf7a; color: #04120c; }
.badge.lv { background: var(--surface); color: var(--ink2); border: 1px solid var(--grid); font-weight: 400; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.role::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--rc, var(--accent)); }
.role .rt { font-size: 13px; color: var(--muted); }
.role .rw { font-size: 24px; font-weight: 700; margin: 0 0 2px; }
.role .rs { color: var(--ink2); margin: 0 0 10px; }
.ev { list-style: none; margin: 0; padding: 0; }
.ev li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--grid); font-size: 14px; }
.ev li:first-child { border-top: 0; }
.lbl { font-size: 11px; font-weight: 700; text-align: center; border-radius: 4px; padding: 1px 0; align-self: start; margin-top: 2px; color: var(--ink); }
.lbl.FACT { background: var(--fact); }
.lbl.INFER { background: var(--infer); }
.lbl.NO-RECORD { background: var(--norec); }
.watch { margin: 10px 0 0; padding: 10px 12px; background: var(--warn-bg); border-radius: 8px; font-size: 13.5px; }
.watch b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.watch p { margin: 2px 0; }
.cu { font-size: 12px; white-space: nowrap; }

.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.lvc { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.lvc .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.lvc .hd b { font-size: 18px; }
.lvc .lvname { font-weight: 700; color: var(--accent); }
.lvc ul { margin: 0; padding-left: 18px; font-size: 14px; }
.lvc li { margin: 3px 0; }
.lvc .next { margin-top: 10px; font-size: 13.5px; background: var(--panel); border-radius: 8px; padding: 8px 10px; }
.lvc .next b { display: block; font-size: 12.5px; color: var(--muted); }
.caveat { margin-top: 18px; font-size: 13.5px; color: var(--ink2); background: var(--surface); border: 1px dashed var(--axis); border-radius: 10px; padding: 12px 16px; }
.caveat ul { margin: 4px 0 0; padding-left: 18px; }

/* tabs + person */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 1px solid var(--grid); background: var(--surface); color: var(--ink2); padding: 7px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h4 { margin: 0 0 8px; font-size: 15px; }
.phead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.phead .nm { font-size: 22px; font-weight: 700; }
.phead .fl { color: var(--muted); font-size: 13px; }
.pk { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.pk div { font-size: 12.5px; color: var(--muted); }
.pk b { display: block; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.find li { grid-template-columns: 78px 1fr; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 400; padding: 6px 8px; border-bottom: 1px solid var(--grid); }
td { padding: 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pname a, .pname span { font-weight: 700; }
.pname small { display: block; color: var(--muted); font-size: 12px; }
.lvb { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; cursor: help; white-space: nowrap; }
td .bar { height: 20px; }
.more { margin-top: 10px; border: 1px solid var(--grid); background: var(--surface); color: var(--ink2); border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.days { font-weight: 700; font-variant-numeric: tabular-nums; }
.days small { font-weight: 400; color: var(--muted); }

.method { padding-left: 18px; color: var(--ink2); font-size: 14px; }
.method li { margin: 4px 0; }
.foot { color: var(--muted); font-size: 12.5px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--grid); margin-top: 20px; }

.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 8px; max-width: 320px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.tip b { color: inherit; }

/* สายงานและภาษา */
.pchip .lean { font-size: 12.5px; color: var(--ink2); }
.badge.ty { background: var(--panel); color: var(--ink); border: 1px solid var(--grid); }
.heat { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); overflow-x: auto; }
.hgrid { display: grid; grid-template-columns: 104px repeat(7, minmax(78px, 1fr)) 78px; gap: 2px; min-width: 760px; }
.hgrid > div { padding: 7px 8px; border-radius: 4px; }
.hgrid .hh { font-size: 12px; color: var(--ink2); line-height: 1.3; align-self: end; padding-bottom: 6px; }
.hgrid .hn { align-self: center; }
.hgrid .hn small { display: block; font-size: 11.5px; color: var(--ink2); }
.hc { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; cursor: default; }
.hc small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.hu { text-align: center; font-size: 13px; color: var(--muted); align-self: center; }
.hlegend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); margin-top: 10px; }
.hlegend i { display: inline-block; width: 120px; height: 10px; border-radius: 4px; }
.teamnote { margin-top: 14px; background: var(--warn-bg); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.teamnote ul { margin: 4px 0 0; padding-left: 18px; }
.teamnote li { margin: 3px 0; }
.levels.wide { grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); }
.lvc .ss { margin: 0 0 10px; color: var(--ink2); font-size: 14px; }
.langs { list-style: none; margin: 0 0 10px; padding: 0; }
.langs li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--grid); font-size: 13.5px; }
.langs li:first-child { border-top: 0; }
.lang { justify-self: start; align-self: start; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); }
.lang.main { background: var(--accent); color: var(--surface); }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.skills span { font-size: 12px; background: var(--panel); border-radius: 6px; padding: 2px 8px; color: var(--ink2); }
.lvc h5 { margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }

/* ClickUp links: list chips, card lists, all-projects table */
.pname .lists { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.pname .lists a { font-weight: 400; font-size: 11.5px; background: var(--panel); border-radius: 5px; padding: 1px 7px; }
.cbtn { border: 1px solid var(--grid); background: var(--surface); color: var(--accent); border-radius: 7px; padding: 3px 9px; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cbtn:hover { border-color: var(--accent); }
.cbtn[aria-expanded="true"] { background: var(--panel); }
tr.xrow > td { background: var(--panel); padding: 6px 10px 10px; }
.ctab { font-size: 13px; }
.ctab th { padding: 4px 6px; }
.ctab td { padding: 5px 6px; }
.ctab td.dt { white-space: nowrap; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ctab td.who { color: var(--ink2); }
.res { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; }
.res .sw { flex-shrink: 0; }
.holders { line-height: 1.9; }
.hold { display: inline-flex; align-items: center; gap: 5px; background: var(--panel); border-radius: 999px; padding: 1px 9px; margin: 0 4px 2px 0; font-size: 12.5px; white-space: nowrap; cursor: default; }
.hold b { font-variant-numeric: tabular-nums; }
tr.int .pname > a, tr.int .pname > span { color: var(--ink2); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* มอบงานต่อ */
td.par { font-weight: 700; white-space: nowrap; }
.fitcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fitcols ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.fitcols h5 { margin: 0 0 4px; }
.hc.few { font-weight: 400; font-style: italic; outline: 1.5px dashed currentColor; outline-offset: -4px; }
#assign .levels { margin-top: 14px; }

/* animation start states (only when anime.js is available; see animation.js) */
.anim .reveal { opacity: 0; }

@media (max-width: 900px) {
  .top { position: static; }
  .sec { scroll-margin-top: 8px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .crow { grid-template-columns: 1fr; gap: 10px; }
  .crow.head { display: none; }
  .ptitle { display: block; }
  .ladder, .roles { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .top-in { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 24px; }
  .hide-sm { display: none; }
  .levels, .levels.wide { grid-template-columns: 1fr; }
  .langs li { grid-template-columns: 1fr; gap: 4px; }
  .fitcols { grid-template-columns: 1fr; }
  td.par { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.nodata { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line, #8884); border-left: 4px solid #d9822b; border-radius: 10px; background: var(--card, transparent); line-height: 1.7; }
.nodata a { color: inherit; text-decoration: underline; }

/* ===================================================================== readability layer (2026-11-16)
   bigger type, plain status pills (icon + word + colour), "how to read" boxes, collapsible detail, numbered sections */
:root { --st-good: #0ca30c; --st-warn: #fab219; --st-bad: #d03b3b; }
body { font-size: 16px; line-height: 1.65; }
h2 { font-size: 26px; margin-bottom: 4px; }
h3 { font-size: 18px; }
.sub { font-size: 15.5px; }
.note { font-size: 13px; }
th { font-size: 13px; color: var(--ink2); font-weight: 700; }
.legend { font-size: 14px; }
.nav { gap: 22px; }
.nav a { font-size: 15px; }
.nav a[href="#summary"] { color: var(--ink); font-weight: 700; }
.chip { font-size: 13px; }
.hgrid .hh { font-size: 13px; }
.hc small { font-size: 12px; }
.hlegend { font-size: 13px; flex-wrap: wrap; }
.pname small { font-size: 13px; }
.pname .lists a { font-size: 12.5px; }
.mini { font-size: 13px; }
.crow.head small { font-size: 12.5px; }
.badge { font-size: 12.5px; }
.lbl { font-size: 12px; padding: 2px 4px; }
.ev li, .find li { grid-template-columns: 92px 1fr; font-size: 15px; }
.lvc ul, .fitcols ul { font-size: 15px; }
.lvc .next { font-size: 14.5px; }
.lvc .next b { font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.caveat { font-size: 14.5px; margin-top: 10px; }
.dotted { border-bottom: 1px dotted currentColor; cursor: help; }

/* numbered sections: read top to bottom */
main { counter-reset: sec; }
.sec > h2::before { counter-increment: sec; content: counter(sec); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 16px; margin-right: 10px; vertical-align: 3px; }

/* status pill: icon + word + colour, never colour alone */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; line-height: 1.3; padding: 2px 10px 2px 7px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.st i { font-style: normal; font-size: 12px; }
.st.good { background: var(--st-good); color: #fff; }
.st.warn { background: var(--st-warn); color: #0b0b0b; }
.st.bad { background: var(--st-bad); color: #fff; }
.st.big { font-size: 16px; padding: 5px 14px 5px 10px; }
.st.big i { font-size: 14px; }

/* ten dots = "8 in 10" */
.dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--grid); }
.dots.good i.on { background: var(--st-good); }
.dots.warn i.on { background: var(--st-warn); }
.dots.bad i.on { background: var(--st-bad); }

/* how to read */
.howto { background: var(--panel); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; color: var(--ink2); line-height: 1.75; }
.howto > b:first-child { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.howto b.k { color: var(--ink); }
.howto .st { font-size: 12.5px; }

/* one-minute summary */
.answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ans { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.ans .q { font-size: 14px; color: var(--ink2); }
.ans .a { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 2px 0 4px; }
.ans .w { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.sumcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.sumc { background: var(--surface); border: 1px solid var(--grid); border-top: 6px solid var(--grid); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sumc.st-good { border-top-color: var(--st-good); }
.sumc.st-warn { border-top-color: var(--st-warn); }
.sumc.st-bad { border-top-color: var(--st-bad); }
.sumc .sh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sumc .nm { font-size: 24px; font-weight: 700; line-height: 1.2; }
.sumc .pos { font-size: 14px; color: var(--ink2); }
.sumc .ten { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 14px 0 12px; padding: 10px 12px; background: var(--panel); border-radius: 10px; font-size: 16px; }
.sumc .ten b { font-size: 19px; }
.sumc .ten small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.45; }
dl.qa { display: grid; grid-template-columns: 118px 1fr; gap: 8px 10px; margin: 0 0 12px; font-size: 15px; }
dl.qa dt { font-weight: 700; display: flex; align-items: flex-start; gap: 6px; }
dl.qa dd { margin: 0; color: var(--ink); }
.ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; flex-shrink: 0;
  background: var(--panel); color: var(--ink2); border: 1px solid var(--grid); margin-top: 2px; }
.ic.ok { background: var(--st-good); color: #fff; border-color: transparent; }
.ic.no { background: var(--st-warn); color: #0b0b0b; border-color: transparent; }
.go { margin-top: auto; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.go:hover { background: var(--accent); color: #fff; }

/* team table: pill under the name */


/* assign table */
table.asg td { vertical-align: top; padding: 12px 8px; font-size: 15px; }
table.asg .who { display: block; font-size: 17px; }
table.asg .pos, .okc small { display: block; font-size: 13px; color: var(--ink2); font-weight: 400; }
.okc { white-space: nowrap; }
.lvc .hd .st { flex-shrink: 0; }
.fitcols h5 { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink); }
.fitcols > div { background: var(--panel); border-radius: 10px; padding: 10px 12px; }

/* "show more" detail blocks */
details.more-d { margin: 14px 0; }
details.more-d > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--grid); border-radius: 10px; font-weight: 700; font-size: 15.5px; color: var(--ink); box-shadow: var(--shadow); }
details.more-d > summary::-webkit-details-marker { display: none; }
details.more-d > summary::before { content: "▸"; color: var(--accent); font-size: 15px; width: 14px; }
details.more-d[open] > summary::before { content: "▾"; }
details.more-d > summary::after { content: "กดเพื่อเปิด"; margin-left: auto; font-weight: 400; font-size: 13px; color: var(--muted); white-space: nowrap; }
details.more-d[open] > summary::after { content: "กดเพื่อปิด"; }
details.more-d > summary:hover { border-color: var(--accent); }
details.more-d[open] > summary { margin-bottom: 12px; }
details.caveat-d > summary { font-weight: 400; color: var(--ink2); box-shadow: none; background: transparent; border-style: dashed; }
details.card.more-d { padding: 0; }
details.card.more-d > summary { border: 0; box-shadow: none; border-radius: 12px; }
details.card.more-d[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--grid); border-radius: 12px 12px 0 0; }
details.card.more-d > :not(summary) { margin: 12px 16px 14px; }

/* person tab */
.pwrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.pwrap .card { margin-bottom: 0; }
.pstats .fl { font-size: 14px; color: var(--ink2); }
.pk div { font-size: 13.5px; color: var(--ink2); }
.pk b { font-size: 24px; }

/* glossary */
dl.gloss { display: grid; grid-template-columns: 210px 1fr; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; overflow: hidden; }
dl.gloss dt, dl.gloss dd { padding: 10px 16px; border-top: 1px solid var(--grid); margin: 0; }
dl.gloss dt { font-weight: 700; background: var(--panel); }
dl.gloss dt:first-of-type, dl.gloss dt:first-of-type + dd { border-top: 0; }
dl.gloss dd { color: var(--ink2); }

@media (max-width: 900px) {
  .answers { grid-template-columns: 1fr 1fr; }
  .pwrap { grid-template-columns: 1fr; }
  dl.gloss { grid-template-columns: 1fr; }
  dl.gloss dd { border-top: 0; padding-top: 0; }
  .sec > h2::before { width: 28px; height: 28px; font-size: 15px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .answers { grid-template-columns: 1fr; }
  .sumcards { grid-template-columns: 1fr; }
  dl.qa { grid-template-columns: 1fr; gap: 2px; }
  dl.qa dd { margin-bottom: 8px; }
  .ans .a { font-size: 20px; }
  table.asg thead { display: none; }
  table.asg tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
  table.asg td { border: 0; padding: 0; }
  table.asg td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  table.asg td.par { grid-column: 1 / -1; grid-row: 3; font-size: 14px; }
  table.asg td.par::before { content: "ให้พร้อมกันได้: "; font-weight: 400; color: var(--ink2); }
  table.asg td.okc { grid-column: 2; grid-row: 1; text-align: right; }
  details.more-d > summary::after { display: none; }
}
.cname small { display: block; }
.cname .st { display: inline-flex; margin: 4px 0 4px; }
details.card.more-d > table { width: calc(100% - 32px); }
@media (max-width: 560px) {
  td, th { padding-left: 5px; padding-right: 5px; }
  .cbtn { padding: 3px 6px; }
  .card { overflow-x: auto; }
}

/* link to the separate catalog page (works.php) */
.nav a.ext { margin-left: auto; color: var(--accent); font-weight: 700; }
