/* Layout: single centered column (max 760px) under a brand gradient band; test screens use a sticky status bar + bottom action bar. */
:root {
  --brand-blue: #0563b5;
  --brand-navy: #0a2e63;
  --brand-red: #e10a1c;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --fg: #12233d;
  --fg-2: #4a5a73;
  --line: #d6e0ee;
  --accent: #0563b5;
  --accent-ink: #ffffff;
  --accent-soft: #e3eefb;
  --warn: #c2410c;
  --danger: #d0101f;
  --ok: #15803d;
  --ok-soft: #e4f4ea;
  --danger-soft: #fde8ea;
  --band: linear-gradient(135deg, #0a2e63 0%, #0b4a95 55%, #0563b5 100%);
  --btn: linear-gradient(180deg, #0a6fc8 0%, #0559a6 100%);
  --shadow: 0 1px 2px rgba(10,46,99,.06), 0 8px 24px rgba(10,46,99,.08);
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-num: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1424; --surface: #111e33; --surface-2: #17263f; --fg: #e7eef8; --fg-2: #a6b4c8;
    --line: #243652; --accent: #5aa7ff; --accent-ink: #06182f; --accent-soft: #15325a;
    --warn: #fb923c; --danger: #ff5c68; --ok: #4ade80; --ok-soft: #12321f; --danger-soft: #3a1419;
    --band: linear-gradient(135deg, #06172f 0%, #0a2e63 60%, #0b4a95 100%);
    --btn: linear-gradient(180deg, #2f8cf0 0%, #1f6fd0 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1424; --surface: #111e33; --surface-2: #17263f; --fg: #e7eef8; --fg-2: #a6b4c8;
  --line: #243652; --accent: #5aa7ff; --accent-ink: #06182f; --accent-soft: #15325a;
  --warn: #fb923c; --danger: #ff5c68; --ok: #4ade80; --ok-soft: #12321f; --danger-soft: #3a1419;
  --band: linear-gradient(135deg, #06172f 0%, #0a2e63 60%, #0b4a95 100%);
  --btn: linear-gradient(180deg, #2f8cf0 0%, #1f6fd0 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- band / hero ---------- */
.band { background: var(--band); color: #fff; position: relative; overflow: hidden; }
.band .arc { position: absolute; right: max(-120px, calc((100vw - 760px) / 2 - 300px)); top: -70px; width: 400px; height: 400px; border-radius: 50%; border: 16px solid var(--brand-red); border-top-color: transparent; border-right-color: transparent; transform: rotate(28deg); opacity: .85; pointer-events: none; }
@media (max-width: 640px) { .band .arc { width: 200px; height: 200px; right: -128px; top: -96px; border-width: 10px; opacity: .75; } }
.band-inner { max-width: 760px; margin: 0 auto; padding: 22px 16px 26px; position: relative; }
.brandrow { display: flex; align-items: center; gap: 12px; }
.brandrow .mk { width: 46px; height: 46px; background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.brandrow .mk img { width: 100%; height: 100%; object-fit: contain; }
.brandrow .co { font-weight: 800; letter-spacing: .14em; font-size: 12.5px; text-transform: uppercase; opacity: .95; }
.brandrow .co small { display: block; font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .8; font-size: 12px; }
.hero-title { font-size: clamp(26px, 6vw, 36px); line-height: 1.15; font-weight: 800; margin: 22px 0 6px; text-wrap: balance; letter-spacing: -.01em; }
.hero-sub { margin: 0; opacity: .88; max-width: 52ch; }

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; padding-block: 18px 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
h2 { font-size: 20px; margin: 0; line-height: 1.25; text-wrap: balance; }
h3 { font-size: 16px; margin: 0; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
p { margin: 0; }

/* test list on welcome */
.tests { display: grid; gap: 10px; }
.trow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.trow .no { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.trow .nm { font-weight: 700; }
.trow .ds { font-size: 13.5px; color: var(--fg-2); }
.trow .tm { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.trow.done .no { background: var(--ok-soft); color: var(--ok); }
.total { display: flex; justify-content: space-between; padding: 4px 4px 0; font-weight: 700; }

ul.rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 6px 16px rgba(5,99,181,.28); }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
@media (hover: hover) { .btn-ghost:hover { background: var(--surface-2); } .opt:hover, .pfo:hover { border-color: #8fb8e6; } .btn-primary:hover { filter: brightness(1.06); } }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btnrow > .btn { flex: 1 1 160px; }
.linkbtn { background: none; border: 0; color: var(--fg-2); text-decoration: underline; cursor: pointer; padding: 6px; font-size: 13px; }

/* ---------- form ---------- */
.fsec { display: grid; gap: 12px; }
.fsec + .fsec { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--fg-2); min-width: 0; }
label.f .req { color: var(--danger); }
.inp { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 11px 12px; font-size: 16px; color: var(--fg); min-height: 46px; }
.inp:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
textarea.inp { min-height: 84px; resize: vertical; }
.inp.err { border-color: var(--danger); }
.upper { text-transform: uppercase; }
.hint { font-size: 12.5px; color: var(--fg-2); font-weight: 500; }
.unitrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.errbox { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.work { display: grid; gap: 10px; }
.workrow { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
@media (max-width: 560px) { .workrow { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--line); } }

/* ---------- test chrome ---------- */
.tbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--band); color: #fff; }
.tbar-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.tbar .tt { font-weight: 800; font-size: 15px; line-height: 1.2; min-width: 0; }
.tbar .tt small { display: block; font-weight: 500; opacity: .8; font-size: 12.5px; }
.tbar .sp { flex: 1; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; min-width: 84px; text-align: center; }
.timer.low { background: var(--brand-red); border-color: var(--brand-red); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.25); } }
.pbar { height: 4px; background: rgba(255,255,255,.18); }
.pbar > i { display: block; height: 100%; background: #fff; transition: width .3s ease; }

.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dot { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.dot.ans { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dot.cur { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--fg); }

.stem { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 14px; display: grid; place-items: center; }
.stem img { display: block; width: 100%; height: auto; }
.stem.s1 img { max-width: 540px; }
.stem.s3 img { max-width: 300px; }
.stem.s4 img { max-width: 210px; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opts.n6w { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.opts.n5w { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .opts.n6w { grid-template-columns: repeat(3, minmax(0, 1fr)); } .opts.n5w { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.opt { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 22px 8px 8px; cursor: pointer; display: grid; place-items: center; min-height: 92px; transition: border-color .12s ease, box-shadow .12s ease; }
.opt img { display: block; width: 100%; max-width: 110px; height: auto; }
.opt .lt { position: absolute; top: 5px; left: 7px; font-weight: 800; font-size: 13px; color: #44546b; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.opt.sel { border-color: var(--brand-blue); background: #e6f0fc; box-shadow: 0 0 0 3px rgba(5,99,181,.22); }
.opt.sel .lt { background: var(--brand-blue); color: #fff; }
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qtag { font-size: 13px; font-weight: 700; color: var(--fg-2); }
.pickhint { font-size: 14px; font-weight: 600; color: var(--accent); }

.abar { position: sticky; bottom: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.abar-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px; }
.abar-in .btn { flex: 1; }

.overlay { position: fixed; inset: 0; background: rgba(6,23,47,.55); z-index: 50; display: grid; place-items: center; padding: 16px; }
.overlay .card { max-width: 420px; width: 100%; }

.example { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.example img { display: block; min-width: 520px; width: 100%; }
.exans { font-size: 14.5px; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.note { font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--fg-2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }

/* ---------- Kraepelin ---------- */
.kr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 560px) { .kr { grid-template-columns: 1fr; gap: 12px; } }
.strip { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 0; position: relative; overflow: hidden; }
.strip .cell { height: 44px; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .strip .cell { height: 34px; } }
.strip .dg { grid-column: 2; text-align: center; font-size: 30px; font-weight: 700; color: var(--fg); line-height: 1; }
@media (max-width: 560px) { .strip .dg { font-size: 25px; } }
.strip .cell.far .dg { color: color-mix(in srgb, var(--fg) 35%, transparent); }
.strip .cell.pair { background: var(--accent-soft); }
.strip .cell.pair .dg { color: var(--accent); font-weight: 800; }
.strip .an { grid-column: 3; justify-self: start; font-size: 17px; font-weight: 800; color: var(--fg-2); transform: translateY(-50%); padding-left: 6px; }
.strip .an.ok { color: var(--ok); } .strip .an.bad { color: var(--danger); }
.strip .an.slot { color: var(--accent); }
.strip .arrow { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--fg-2); writing-mode: vertical-rl; rotate: 180deg; letter-spacing: .1em; text-transform: uppercase; }
.kmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.kmeta .lj { font-size: 15px; font-variant-numeric: tabular-nums; }
.lbar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.lbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-blue), #3d8ee0); }
.lbar.low > i { background: var(--brand-red); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { min-height: 62px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 2px 0 var(--line); font-size: 26px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.key.hit { background: var(--accent-soft); transform: translateY(2px); box-shadow: none; }
.key.zero { grid-column: 1 / -1; }
@media (max-width: 560px) { .key { min-height: 54px; font-size: 24px; } }
.flash { position: fixed; left: 50%; top: 40%; transform: translate(-50%,-50%); background: var(--brand-red); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 999px; z-index: 60; letter-spacing: .06em; box-shadow: 0 10px 30px rgba(225,10,28,.35); pointer-events: none; animation: fl .7s ease forwards; }
@keyframes fl { 0% { opacity: 0; transform: translate(-50%,-30%); } 20% { opacity: 1; transform: translate(-50%,-50%); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 16PF ---------- */
.pfq { font-size: 19px; font-weight: 600; line-height: 1.5; text-wrap: pretty; min-height: 3em; }
@media (max-width: 560px) { .pfq { font-size: 17.5px; } }
.pfopts { display: grid; gap: 10px; }
.pfo { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; min-height: 56px; }
.pfo .lt { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--fg-2); }
.pfo.sel { border-color: var(--brand-blue); background: var(--accent-soft); }
.pfo.sel .lt { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.pfprog { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--fg-2); }
.banner { border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* ---------- finish ---------- */
.big-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; max-height: 120px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; user-select: all; }
.fname { font-weight: 700; word-break: break-all; }

/* ---------- HR report ---------- */
.rep h2 { font-size: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.kpi .k { font-size: 12px; font-weight: 700; color: var(--fg-2); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .s { font-size: 12.5px; color: var(--fg-2); }
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-2); background: var(--surface-2); }
table.t td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.ic { border-radius: 8px; padding: 5px 4px; text-align: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ic.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ic.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.ic small { display: block; font-weight: 600; opacity: .85; }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--fg-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; background: var(--surface-2); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
footer.foot { text-align: center; padding: 8px 16px 28px; font-size: 12.5px; color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== v2 additions ===== */
.rowcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.rowhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.exgrid { display: grid; gap: 8px; }
.exrow { display: grid; grid-template-columns: auto auto 44px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.exrow.hl { background: var(--accent-soft); border-color: transparent; }
.exrow .eq { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exrow .eq u { text-decoration: none; color: var(--brand-red); border-bottom: 3px solid var(--brand-red); }
.exrow .arr { color: var(--fg-2); }
.exrow .kp { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.exrow .ex-note { font-size: 14px; color: var(--fg-2); min-width: 0; }
@media (max-width: 560px) { .exrow { grid-template-columns: auto auto 40px; } .exrow .ex-note { grid-column: 1 / -1; } }
.fb { border-radius: 10px; padding: 10px 12px; font-size: 14.5px; background: var(--surface-2); border: 1px solid var(--line); min-height: 46px; }
.fb.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.fb.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.likdemo { display: flex; flex-wrap: wrap; gap: 6px; }
.likdemo .lk { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pfopts.lik .pfo { min-height: 50px; padding: 10px 14px; }
.idbox { border: 2px dashed var(--accent); border-radius: 14px; padding: 14px; text-align: center; background: var(--accent-soft); }
.idbox .idv { font-size: 30px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; user-select: all; }

/* ===== report pages (kertas, selalu terang) ===== */
.pages { overflow-x: auto; padding: 4px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pg { width: 794px; height: 1123px; flex: none; position: relative; overflow: hidden; background: #fff; color: #12233d; font-family: var(--font-ui); font-size: 12.6px; line-height: 1.55; padding: 64px 68px 70px; box-shadow: 0 2px 14px rgba(10,46,99,.18); }
.pg p { margin: 0 0 10px; text-align: justify; }
.pg-h { position: absolute; top: 24px; left: 68px; right: 68px; display: flex; justify-content: space-between; font-size: 10px; color: #6b7a90; border-bottom: 1px solid #dbe3ee; padding-bottom: 6px; letter-spacing: .04em; }
.pg-h span:last-child { color: #e10a1c; font-weight: 700; }
.pg-f { position: absolute; bottom: 26px; left: 68px; right: 68px; display: flex; justify-content: space-between; font-size: 10px; color: #6b7a90; border-top: 1px solid #dbe3ee; padding-top: 6px; }
.pg-t { font-size: 15px; letter-spacing: .06em; color: #0a2e63; margin: 0 0 12px; font-weight: 800; }
.pg-s { font-size: 12.5px; color: #0a2e63; margin: 14px 0 6px; font-weight: 800; }
.pt { width: 100%; border-collapse: collapse; font-size: 11.6px; }
.pt th, .pt td { border: 1px solid #c9d3e0; padding: 5px 8px; vertical-align: top; text-align: left; }
.pt th { background: #0a2e63; color: #fff; font-weight: 700; font-size: 11px; }
.pt tr.cl td { background: #e3ecf7; font-weight: 800; color: #0a2e63; font-size: 10.8px; letter-spacing: .04em; }
.pt.def td { font-size: 10.9px; padding: 3px 8px; line-height: 1.45; }
.pt ul { margin: 0; padding-left: 16px; }
.pt.sm td, .pt.sm th { font-size: 11px; padding: 4px 7px; }
.pt.kv td:first-child { width: 30%; font-weight: 700; color: #0a2e63; }
.formula { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 22px 0 6px; font-size: 12px; }
.formula .frac { display: grid; text-align: center; }
.formula .frac span:first-child { border-bottom: 1.5px solid #12233d; padding: 0 8px 3px; }
.formula .frac span:last-child { padding-top: 3px; }
.idt { font-size: 12px; margin-bottom: 10px; border-collapse: collapse; }
.idt td { padding: 1px 10px 1px 0; }
.idt td:first-child { width: 190px; }
.pt.psy { table-layout: fixed; }
.pt.psy td, .pt.psy th { text-align: center; padding: 4px 0; }
.pt.psy td:first-child, .pt.psy th:first-child { text-align: left; padding-left: 8px; }
.pt.psy td.ps { width: 9%; }
.pt.psy td.ps.g { background: #c8d0db; }
.pt.psy td.ps.ge { box-shadow: inset -3px 0 0 #0a2e63; }
.pt.psy .x { font-weight: 900; font-size: 14px; color: #e10a1c; }
.pt.psy tr.tot td { background: #0a2e63; color: #fff; font-weight: 800; text-align: center; }
.pt.psy tr.tot td:first-child { text-align: left; }
.legend2 { display: flex; gap: 18px; font-size: 10.5px; color: #4a5a73; margin-top: 8px; flex-wrap: wrap; }
.legend2 i { display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.lg-g { background: #c8d0db; }
.pt.two td { width: 50%; font-size: 11.6px; }
.devl { margin: 0 0 14px; padding-left: 20px; }
.devl li { margin-bottom: 7px; }
.recbox { border-radius: 10px; padding: 12px 14px; text-align: center; font-size: 12px; border: 2px solid; }
.recbox b { display: block; font-size: 15px; margin-top: 4px; letter-spacing: .04em; }
.recbox.r2 { border-color: #15803d; color: #15803d; background: #ecf8f0; }
.recbox.r1 { border-color: #b45309; color: #b45309; background: #fdf5e7; }
.recbox.r0 { border-color: #e10a1c; color: #c10a1a; background: #fdecee; }
.sig { margin-top: 26px; width: 260px; margin-left: auto; font-size: 12px; }
.sig-sp { height: 62px; }
.sig-n { font-weight: 800; border-bottom: 1px solid #12233d; padding-bottom: 2px; }
.sig-j { color: #4a5a73; }
.box-note { position: absolute; left: 68px; right: 68px; bottom: 90px; font-size: 10.2px; color: #4a5a73; background: #f3f6fa; border-radius: 8px; padding: 9px 11px; line-height: 1.5; }
.pt.prof td, .pt.prof th { text-align: center; padding: 2px 0; font-size: 10px; line-height: 1.3; }
.pt.prof th { padding: 4px 2px; }
.pt.prof td.fl { text-align: right; padding-right: 6px; width: 25%; }
.pt.prof td.fr { text-align: left; padding-left: 6px; width: 25%; }
.pt.prof td.fn { width: 5%; font-weight: 700; color: #0a2e63; }
.pt.prof td.st { width: 4.5%; }
.pt.prof td.st.lo { background: #f6f8fb; } .pt.prof td.st.hi { background: #f6f8fb; }
.pt.prof td.st.on { background: #0563b5; color: #fff; font-weight: 800; }
.pg.cover { padding: 0; background: #fff; }
.cv-top { height: 330px; background: linear-gradient(135deg, #0a2e63 0%, #0b4a95 55%, #0563b5 100%); position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: space-between; padding: 48px 64px; }
.cv-top::after { content: ""; position: absolute; right: -170px; bottom: -250px; width: 420px; height: 420px; border-radius: 50%; border: 22px solid #e10a1c; border-top-color: transparent; border-right-color: transparent; transform: rotate(28deg); opacity: .9; }
.cv-logo { width: 300px; background: #fff; border-radius: 16px; padding: 10px 16px; display: block; }
.cv-conf { position: relative; z-index: 1; color: #fff; font-weight: 800; letter-spacing: .14em; font-size: 12px; border: 1.5px solid rgba(255,255,255,.7); padding: 6px 12px; border-radius: 999px; }
.cv-title { padding: 56px 64px 0; }
.cv-k { font-size: 30px; font-weight: 800; color: #0a2e63; letter-spacing: .02em; line-height: 1.15; }
.cv-co { font-size: 18px; font-weight: 700; color: #0563b5; margin-top: 8px; }
.cv-job { font-size: 16px; margin-top: 18px; color: #12233d; }
.cv-yr { font-size: 14px; color: #4a5a73; }
.cv-id { margin: 44px 64px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; border-top: 3px solid #e10a1c; padding-top: 22px; }
.cv-id span { display: block; font-size: 11px; color: #6b7a90; text-transform: uppercase; letter-spacing: .08em; }
.cv-id b { font-size: 15px; }
.cv-foot { position: absolute; left: 64px; right: 64px; bottom: 48px; font-size: 10.5px; color: #4a5a73; border-top: 1px solid #dbe3ee; padding-top: 10px; }
.casebox h3 { margin: 4px 0 8px; }
.casebox .t td, .casebox .t th { font-size: 13px; }
.inp.sm { min-height: 38px; padding: 7px 9px; font-size: 14px; }
.t.ed td { padding: 5px 6px; }
.t.ed .jml { text-align: right; font-weight: 700; white-space: nowrap; }
.t.ed tfoot td { font-size: 13.5px; }
.rbrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.rbh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rbh b { flex: 1 1 240px; }

.t.ed { min-width: 720px; }
/* interactive examples */
.excard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.excard .qhead b { font-size: 15px; }
.opt .mk { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; font-weight: 900; font-size: 13px; color: #fff; }
.opt.good { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(21,128,61,.22); background: #eefaf2; opacity: 1; }
.opt.good .mk { display: grid; background: var(--ok); }
.opt.good .lt { background: var(--ok); color: #fff; }
.opt.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(208,16,31,.18); background: #fff4f5; opacity: 1; }
.opt.bad .mk { display: grid; background: var(--danger); }
.opt.bad .lt { background: var(--danger); color: #fff; }
.opt.dim { opacity: .45; }
.opt:disabled { cursor: default; }
.exfb:empty { display: none; }
.exfb.hint { font-size: 14px; color: var(--fg-2); font-weight: 600; }
.exfb.show { border-radius: 10px; padding: 10px 12px; font-size: 14.5px; display: grid; gap: 6px; justify-items: start; }
.exfb.ok { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.exfb.no { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.exfb .exv { display: flex; gap: 8px; align-items: center; }
.exfb.ok .exv { color: var(--ok); } .exfb.no .exv { color: var(--danger); }
.exfb .exi { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; flex: none; }
.exfb.ok .exi { background: var(--ok); } .exfb.no .exi { background: var(--danger); }
.exfb p { margin: 0; color: var(--fg); }
.exfb .linkbtn { padding: 2px 0; }
.opt-tag { font-size: 11.5px; font-weight: 700; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.rpwrap { display: flex; align-items: stretch; }
.rpwrap span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--surface-2); font-weight: 700; color: var(--fg-2); }
.rpwrap .inp { border-radius: 0 10px 10px 0; flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
input[type="date"].inp { display: block; min-height: 46px; text-align: left; }
input[type="date"].inp::-webkit-date-and-time-value { text-align: left; }

/* ===== dashboard HR (Laravel) ===== */
.wrap.wide, .band-inner.wide { max-width: 900px; }
.narrow { max-width: 440px; }
a.btn { text-decoration: none; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.brandrow.hr { flex-wrap: wrap; }
.brandrow .sp { flex: 1; }
.hrnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.hrnav form { margin: 0; }
.hrnav a, .hrnav button { color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; }
@media (hover: hover) { .hrnav a:hover, .hrnav button:hover { background: rgba(255,255,255,.22); } }
.hrnav .who { opacity: .85; padding: 0 4px; }
.statrow { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.toolbar label.f { flex: 1 1 220px; }
.toolbar label.f.st { flex: 0 1 180px; }
.toolbar .btn { min-height: 46px; }
.t.list td { vertical-align: middle; }
.t.list .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.t.list .acts form { margin: 0; }
.t .empty { text-align: center; padding: 22px 10px; color: var(--fg-2); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
@media (max-width: 640px) {
  .t.list thead { display: none; }
  .t.list tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .t.list td { border: 0; padding: 2px 4px; }
  .t.list td:nth-child(4) { grid-column: 1 / -1; }
  .t.list td:nth-child(5) { grid-column: 1 / -1; }
  .t.list .acts { justify-content: flex-start; }
}
.bad-text { color: var(--danger); font-weight: 600; }
