/* Huvot design system — uCoach Talent Assessment Suite */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #0B2A5B;
  --navy-deep: #061A3A;
  --navy-2: #163D7A;
  --gold: #C9A24E;
  --gold-soft: #F4E7C5;
  --gold-grad: linear-gradient(135deg, #F1D58E 0%, #C9A24E 45%, #A87B30 100%);
  --cream: #F7F4EC;
  --paper: #FFFDF8;
  --ink: #0F1B2D;
  --ink-2: #44506A;
  --ink-3: #7A8499;
  --line: #E6E1D3;
  --line-2: #EFEBE0;
  --ok: #2F6B45;
  --warn: #B7791F;
  --bad: #A3262A;
  /* DISC colours (from the report example) */
  --d: #A3262A; --i: #C8962E; --s: #2F6B45; --c: #1F3F8F;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; }
.brand img.logo { width: auto; height: 46px; display: block; }
.brand img.logo.sm { height: 30px; }
.brand.stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.tagpill { font: 600 9.5px var(--mono); letter-spacing: .16em; color: #E3C27A; background: rgba(201, 162, 78, .14); border-radius: 99px; padding: 3px 9px; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: -2px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 10px; font: 600 14px var(--sans); cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #cfc8b4; background: #fffcf3; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold-grad); border-color: #B8893A; color: var(--navy-deep); }
.btn.gold:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(11, 42, 91, .06); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 15px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; transition: .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(22, 61, 122, .12); }
/* link form: job-description templates, the core module set apart, extra options folded away */
button.chip { font: 600 12.5px var(--sans); padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
button.chip:hover { border-color: #C9A24E; background: #FFF8E6; }
.mod-core { border: 2px solid #E3C27A; background: #FFF8E6; border-radius: 10px; padding: 10px 12px; margin: 0; }
.more-opts { margin: 2px 0 14px; } .more-opts summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* dashboard: getting-started checklist — the one next step stands out, done steps fade */
.setup-bar { height: 6px; background: #ECE7DA; border-radius: 99px; overflow: hidden; margin: 12px 0 10px; }
.setup-bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
.setup-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .setup-list { grid-template-columns: 1fr; } }
.setup-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; position: relative; }
.setup-item .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #EEF2F8; color: var(--navy); }
.setup-item b { display: block; font-size: 14px; } .setup-item small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.setup-item.ok { opacity: .55; border-style: dashed; } .setup-item.ok .dot { background: var(--ok); color: #fff; }
.setup-item.next { border: 2px solid #C9A24E; background: #FFF8E6; } .setup-item.next .dot { background: var(--gold-grad); color: var(--navy-deep); }
.setup-item em { position: absolute; right: 10px; bottom: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #9A6A12; }
a.setup-item:hover { box-shadow: 0 6px 18px rgba(15, 27, 45, .08); }

/* dropdowns: our own arrow with room around it (instead of the browser's cramped one); long options are cut with "…" */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 38px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235A6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
/* a row of filters above a list: fixed, even columns that wrap cleanly on smaller screens */
.filters { display: grid; grid-template-columns: 190px minmax(200px, 280px) 200px minmax(200px, 1fr) auto; gap: 14px; align-items: end; }
.filters label.field { margin: 0; min-width: 0; }
.filters .acts { display: flex; gap: 8px; }
.filters .acts .btn { height: 42px; }
@media (max-width: 1180px) { .filters { grid-template-columns: 1fr 1fr; } .filters .acts { grid-column: 1 / -1; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { font-size: 17px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stat .num { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.stat .lbl { font-size: 13px; color: var(--ink-3); }

/* ---------- pills & tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF1F7; color: var(--navy-2); white-space: nowrap; }
.pill.ok { background: #E5F1E8; color: var(--ok); }
.pill.warn { background: #FBF0DA; color: var(--warn); }
.pill.bad { background: #F7E3E3; color: var(--bad); }
.pill.gold { background: var(--gold-soft); color: #7A5A1C; }
.pill.grey { background: #EFEDE7; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.disc-code { font-weight: 800; letter-spacing: .02em; }
.disc-code .D { color: var(--d); } .disc-code .I { color: var(--i); } .disc-code .S { color: var(--s); } .disc-code .C { color: var(--c); } .disc-code .sep { color: #B9B3A3; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.table tr.click:hover td { background: #FBF8F0; }
.table-wrap { overflow-x: auto; }

/* ---------- app shell (HR + admin) ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy-deep); color: #C9D3E6; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { color: #fff; padding: 2px 8px 22px; }
.side .brand img.logo { height: 52px; }
.side .company { margin: 0 4px 18px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: flex; gap: 10px; align-items: center; }
.side .company .logo { width: 36px; height: 36px; border-radius: 9px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--navy); font-weight: 800; flex: none; }
.side .company .logo img { width: 100%; height: 100%; object-fit: contain; }
.side .company b { color: #fff; font-size: 13.5px; display: block; line-height: 1.25; }
.side .company span { font-size: 11.5px; color: #97A6C2; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #C9D3E6; font-weight: 500; font-size: 14.5px; text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(201, 162, 78, .16); color: #F4E2B5; }
.nav a svg { width: 18px; height: 18px; opacity: .9; }
.side .foot { margin-top: auto; font-size: 12px; color: #7F8FAE; padding: 0 8px; }
.side .foot .me { color: #E3E9F5; font-weight: 600; font-size: 13.5px; }
.main { padding: 28px 36px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.025em; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.mtop { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: var(--navy-deep); color: #fff; padding: 10px 14px; }
  .mtop .brand { color: #fff; } .mtop .brand img { width: 30px; height: 30px; } .mtop .brand b { font-size: 17px; }
  .mtop button { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; cursor: pointer; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 270px; height: 100%; transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(6, 26, 58, .45); }
  .main { padding: 18px 14px 50px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 22px; }
  .page-head .row { flex-wrap: wrap; }
  .card { padding: 16px; }
  .stat .num { font-size: 26px; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs button { white-space: nowrap; padding: 10px 12px; font-size: 14px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr !important; }
  .copybox { min-width: 0 !important; }
  input, select, textarea { font-size: 16px; } /* stops iPhone zooming into fields */
}
/* tables that turn into cards on phones: add class "cards" + data-label on each <td> */
@media (max-width: 700px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 12px; background: #fff; }
  .table.cards td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.cards td::before { content: attr(data-label); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding-top: 3px; flex: none; }
  .table.cards td:first-child { display: block; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; margin-bottom: 4px; }
  .table.cards td:first-child::before { display: none; }
  .table.cards td:empty { display: none; }
}

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(6, 26, 58, .45); display: grid; place-items: center; z-index: 50; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: var(--paper); border-radius: 18px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 30px 80px rgba(6, 26, 58, .3); }
.modal h2 { font-size: 21px; margin-bottom: 6px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#toast div { background: var(--navy-deep); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); animation: pop .2s ease; }
#toast div.err { background: var(--bad); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

.empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty svg { width: 46px; height: 46px; color: var(--gold); margin-bottom: 8px; }
.copybox { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px dashed #D6CDB4; border-radius: 10px; padding: 6px 6px 6px 12px; font: 13px var(--mono); color: var(--navy-2); }
.copybox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { background: none; border: none; padding: 11px 16px; font: 600 14.5px var(--sans); color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); }
.bar { height: 8px; border-radius: 99px; background: #ECE7DA; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
.spinner { width: 22px; height: 22px; border: 3px solid #E5DFCF; border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- AI interview ---------- */
.ov-card { background: linear-gradient(160deg, #FFFFFF, #F1F5FD); border: 1.5px solid #C9D6EE; box-shadow: 0 16px 40px rgba(11, 42, 91, .08); }
.ai-card { background: linear-gradient(160deg, #FFFDF8, #F3ECDA); border-color: #E3D3A8; }
.ai-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.ai-box b { color: var(--ink); display: block; margin-bottom: 4px; }
.ai-box ul, .ai-box ol { margin: 4px 0 0; padding-left: 18px; } .ai-box li { margin-bottom: 3px; } .ai-box p { margin: 0; }
.ai-box.ok { border-left: 3px solid var(--ok); } .ai-box.warn { border-left: 3px solid var(--warn); }
.ai-reason { background: #FBF6E9; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 10px 12px; margin: 10px 0; font-size: 14px; color: var(--ink-2); }
.ai-reason .q { margin-top: 6px; font-style: italic; color: var(--ink-3); }
.transcript { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- DISC report ---------- */
.report { --rp: 26px; }
.report .card { padding: var(--rp); }
.report .hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.report .hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin: 6px 0 2px; }
.report .bigcode { font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.report .label { font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.report .disc-letters { font-size: 30px; font-weight: 800; letter-spacing: .18em; margin-top: 10px; }
.report .chart-card h4 { font-size: 16.5px; font-weight: 700; }
.report .chart-card .label { font-size: 11px; }
.report .chart-card svg { width: 100%; height: auto; display: block; margin: 8px 0; }
.report .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 10px; overflow: hidden; }
.report .three > div { padding: 14px; }
.report .three ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.report .three li { padding: 3px 0; }
.report .three li::before { content: '– '; color: var(--ink-3); }
.report .raw td, .report .raw th { padding: 9px 8px; font-family: var(--mono); font-size: 13px; }
.report .raw td:not(:first-child), .report .raw th:not(:first-child) { text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
@media (max-width: 900px) { .report .hero, .report .three { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .report { --rp: 16px; }
  .report .hero h1 { font-size: 28px; }
  .report .bigcode { font-size: 56px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > div { padding: 12px !important; }
  .report h1 { word-break: break-word; }
}
.modal { width: min(560px, 100%); }
@media (max-width: 600px) { .modal-back { padding: 10px; align-items: end; } .modal { padding: 20px; border-radius: 18px 18px 12px 12px; } .modal .actions { flex-wrap: wrap; } .modal .actions .btn { flex: 1; } }

/* ---------- A4 print document (report, one part per page) ---------- */
#printDoc { display: none; }
.rp { font-family: var(--sans); color: var(--ink); font-size: 10pt; line-height: 1.48; page: hvreport; }
@page hvreport { size: A4; margin: 11mm 15mm 13mm;
  @bottom-left { content: "Huvot · uCoach Talent Assessment Suite · dokumen rahasia"; font: 7pt 'Plus Jakarta Sans', sans-serif; color: #9AA1AE; }
  @bottom-right { content: "Halaman " counter(page) " dari " counter(pages); font: 7pt 'Plus Jakarta Sans', sans-serif; color: #9AA1AE; } }
.rp-page + .rp-page { break-before: page; }
@media screen { .rp-page + .rp-page { margin-top: 30px; padding-top: 28px; border-top: 2px dashed var(--line); } }
.rp p { margin: 0 0 6px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.rp-co { display: flex; align-items: center; gap: 10px; } .rp-co img { height: 32px; max-width: 96px; object-fit: contain; }
.rp-ini { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.rp-co b { display: block; font-size: 10.5pt; line-height: 1.2; } .rp-co span { font-size: 7.8pt; color: var(--ink-3); }
.rp-brand { display: flex; align-items: center; gap: 6px; font-size: 7.8pt; color: var(--ink-3); } .rp-brand img { height: 20px; width: auto; }
.rp-id { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 10px 0 10px; }
.rp-id h1 { font-size: 23pt; line-height: 1.05; margin: 0; letter-spacing: -.02em; font-weight: 800; }
.rp-meta { color: var(--ink-2); font-size: 9.5pt; margin-top: 4px; }
.rp-date { text-align: right; font-size: 8.3pt; color: var(--ink-3); flex: none; } .rp-date > b { display: block; color: var(--ink); font-size: 10pt; }
.rp-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.rp-pills span { font-size: 7.8pt; background: #E7F2EA; color: var(--ok); font-weight: 700; border-radius: 99px; padding: 2px 8px; white-space: nowrap; } .rp-pills span.no { background: #EEF0F4; color: var(--ink-3); }
.rp-verdict { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; background: linear-gradient(135deg, #0B2A5B, #163D7A); color: #fff; border-radius: 14px; padding: 12px 16px 14px; break-inside: avoid; }
.rp-ring { width: 80px; height: 80px; position: relative; margin-bottom: 14px; } .rp-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.rp-ring > div { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.rp-ring b { font-size: 21pt; font-weight: 800; } .rp-ring small { display: block; font-size: 6.8pt; color: #B9C6DE; margin-top: 3px; }
.rp-ring em { position: absolute; left: -10px; right: -10px; bottom: -15px; text-align: center; font-style: normal; font-size: 7pt; color: #B9C6DE; white-space: nowrap; }
.rp-rec { display: inline-block; font-weight: 800; font-size: 10.5pt; padding: 3px 11px; border-radius: 99px; }
.rp-verdict p { margin: 6px 0 0; color: #DCE4F2; font-size: 9.4pt; } .rp-verdict .rp-cons { font-size: 8.6pt; color: #B9C6DE; } .rp-cons b { color: #fff; }
.rp-lead { font-size: 9.4pt; line-height: 1.42; color: var(--ink-2); margin: 7px 0 0; }
.rp-cards { display: grid; gap: 8px; margin: 9px 0 0; }
.rp-card { border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px 10px; background: var(--paper); display: flex; flex-direction: column; break-inside: avoid; }
.rp-lbl { font-size: 8pt; color: var(--ink-3); font-weight: 600; }
.rp-big { font-size: 17pt; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 2px 0 1px; } .rp-big small { font-size: 9pt; font-weight: 700; }
.rp-sub { font-size: 8pt; color: var(--ink-2); line-height: 1.35; }
.rp-viz { margin-top: auto; padding-top: 7px; }
.rp-scale { position: relative; height: 7px; border-radius: 9px; background: linear-gradient(90deg, #E9E4D7 0 33%, #DCD5C3 33% 66%, #CFC6AF 66%); }
.rp-scale i { position: absolute; top: -4px; width: 4px; height: 15px; margin-left: -2px; border-radius: 2px; background: var(--navy); }
.rp-scale-l { display: flex; justify-content: space-between; font-size: 6.6pt; color: var(--ink-3); margin-top: 3px; }
.rp-dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; font-size: 7.6pt; color: var(--ink-2); align-items: center; }
.rp-dots { display: inline-flex; gap: 3px; vertical-align: middle; } .rp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.rp-dots i.mid { background: #B7791F; } .rp-dots i.off { background: #DAD3C1; }
.rp-mini { display: flex; gap: 4px; align-items: flex-end; height: 28px; } .rp-mini div { flex: 1; border-radius: 3px 3px 0 0; }
.rp-mini-l { display: flex; gap: 4px; font-size: 6.8pt; font-weight: 800; } .rp-mini-l span { flex: 1; text-align: center; }
.rp-faint { font-size: 7.6pt; color: var(--ink-3); }
.rp-h2 { font-size: 12.5pt; margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; break-after: avoid; }
.rp-n { font: 600 8pt var(--mono); color: var(--gold); } .rp-hint { font-size: 8pt; font-weight: 500; color: var(--ink-3); }
.rp-intinya { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 6px 12px; font-size: 9.6pt; color: var(--ink-2); margin-bottom: 9px; } .rp-intinya b { color: var(--ink); }
.rp-k { font-size: 8.2pt; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; } .rp-k span { font-weight: 500; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-box { border-radius: 11px; padding: 8px 13px 6px; break-inside: avoid; } .rp-box.ok { background: #E7F2EA; } .rp-box.warn { background: #FBF1DC; }
.rp-box h3 { font-size: 10pt; margin: 0 0 5px; } .rp-box.ok h3 { color: var(--ok); } .rp-box.warn h3 { color: #9A6412; }
.rp-box ul, .rp-plain ul { margin: 0; padding: 0; list-style: none; } .rp-box li, .rp-plain li { padding-left: 18px; position: relative; margin-bottom: 3px; font-size: 9.2pt; line-height: 1.42; }
.rp-box.ok li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.rp-box.warn li::before { content: '!'; position: absolute; left: 4px; color: #9A6412; font-weight: 800; }
.rp-plain li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.rp-qs { counter-reset: q; margin: 0; padding: 0; list-style: none; }
.rp-qs li { counter-increment: q; display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin-bottom: 5px; font-size: 9.3pt; }
.rp-qs li::before { content: counter(q); width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 8.5pt; display: grid; place-items: center; }
.rp-pertes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.rp-pertes > div { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 8.8pt; line-height: 1.4; align-items: start; break-inside: avoid; }
.rp-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #EEF2F8; }
.rp-pl { display: block; font-size: 8.2pt; color: var(--ink-3); font-weight: 600; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; }
.rp-chips span { background: #EEF2F8; color: var(--navy); border-radius: 99px; padding: 2px 9px; font-size: 8.3pt; font-weight: 600; }
.rp-chips.soft span { background: var(--cream); color: var(--ink-2); font-weight: 500; font-size: 8pt; }
.rp-note { font-size: 8.4pt; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #EEF1F7; color: var(--navy-2); break-inside: avoid; } .rp-note.warn { background: #FBF0DA; color: #7A5A1C; }
.rp-disc { display: grid; grid-template-columns: 70mm 1fr; gap: 14px; align-items: start; }
.rp-chart, .rp-side, .rp-panel { border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: #fff; break-inside: avoid; }
.rp-chart svg, .rp-panel svg { width: 100%; height: auto; display: block; }
.rp-cc { font-size: 14pt; font-weight: 800; margin: 1px 0 4px; } .rp-cc span { font-size: 8.6pt; color: var(--ink-2); font-weight: 700; margin-left: 6px; }
.rp-desc { font-size: 9.4pt; }
.rp-keep { break-inside: avoid; }
.rp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-side { background: var(--paper); } .rp-sc svg { width: 100%; height: 92px; display: block; }
.rp-nm { font-weight: 800; font-size: 9.4pt; margin: 4px 0 6px; } .rp-same { display: inline-block; margin-left: 4px; background: #E7F2EA; color: var(--ok); border-radius: 99px; padding: 1px 7px; font-size: 7.2pt; font-weight: 700; }
.rp-hero { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 6px; } .rp-hero b { font-size: 24pt; font-weight: 800; color: var(--navy); line-height: 1; } .rp-hero span { font-weight: 700; }
.rp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.rp-stat { border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; background: var(--paper); }
.rp-stat b { display: block; font-size: 14pt; font-weight: 800; color: var(--navy); line-height: 1.15; } .rp-stat span { font-size: 7.8pt; color: var(--ink-3); }
.rp-stat.dark { background: var(--navy); border-color: var(--navy); } .rp-stat.dark b { color: #fff; font-size: 17pt; } .rp-stat.dark span { color: #C3D0E6; } .rp-stat.dark strong { color: #F1D58E; }
.rp-bars > div { display: grid; grid-template-columns: 96px 1fr 34px; gap: 8px; align-items: center; font-size: 9pt; margin: 4px 0; }
.rp-bars i { height: 9px; background: #EEE9DC; border-radius: 9px; overflow: hidden; display: block; } .rp-bars i b { display: block; height: 100%; background: var(--navy); border-radius: 9px; }
.rp-bars em { font-style: normal; font-family: var(--mono); font-size: 8.4pt; text-align: right; }
.rp-band { display: flex; border-radius: 8px; overflow: hidden; font-size: 6.8pt; text-align: center; }
.rp-band div { flex: 1; padding: 4px 2px; line-height: 1.2; color: var(--ink-2); background: #EEE9DD; } .rp-band div:nth-child(even) { background: #E5DFD0; }
.rp-band .cur { background: var(--navy) !important; color: #fff; font-weight: 700; }
.rp-ws { margin-top: 7px; font-size: 8.4pt; color: var(--ink-2); background: #EEF1F7; border-radius: 8px; padding: 6px 10px; } .rp-ws b { color: var(--navy); }
.rp-metric { display: grid; grid-template-columns: 80px 1fr auto; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line-2); font-size: 9pt; }
.rp-metric small { display: block; font: 500 7pt var(--mono); color: var(--ink-3); } .rp-metric em { font-style: normal; color: var(--ink-3); font-size: 8.2pt; text-align: right; }
.rp-typ { display: grid; grid-template-columns: 1.4fr repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.rp-progs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-prog { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--paper); break-inside: avoid; font-size: 8.4pt; line-height: 1.42; }
.rp-pt { font-weight: 700; font-size: 9pt; } .rp-pt span { display: block; font-weight: 500; font-size: 7.6pt; color: var(--ink-3); }
.rp-pc { display: flex; align-items: center; gap: 8px; margin: 4px 0; } .rp-pc b { background: var(--gold-soft); color: #6A4E12; border-radius: 99px; padding: 1px 9px; font-size: 8.6pt; }
.rp-pc i { flex: 1; max-width: 70px; height: 5px; border-radius: 9px; background: #EEE9DC; overflow: hidden; } .rp-pc u { display: block; height: 100%; background: var(--navy); }
.rp-pc em { font-style: normal; font-size: 7.6pt; color: var(--ink-3); }
.rp-pt span.rp-need { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; font-size: 7.4pt; font-weight: 700; vertical-align: 1px; }
.rp-prog p { margin: 0; color: var(--ink-2); } .rp-prog q { display: block; margin-top: 3px; font-style: italic; color: var(--ink-3); }
.rp-callout { margin-top: 10px; background: #FBF6E9; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 8px 12px; font-size: 9pt; break-inside: avoid; }
.rp-nums { display: grid; gap: 7px; } .rp-nums div { border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; background: var(--paper); }
.rp-nums b { font-size: 18pt; font-weight: 800; color: var(--navy); line-height: 1.1; display: block; } .rp-nums span { font-size: 8.2pt; font-weight: 700; display: block; } .rp-nums em { font-style: normal; font-size: 7.8pt; color: var(--ink-3); }
.rp-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 8.8pt; margin-top: 10px; }
.rp-t th { font-size: 7.6pt; color: var(--ink-3); font-weight: 600; text-align: left; padding: 5px 8px; background: var(--cream); }
.rp-t th:first-child { border-radius: 8px 0 0 8px; } .rp-t th:last-child { border-radius: 0 8px 8px 0; }
.rp-t td { padding: 5px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; } .rp-t tr { break-inside: avoid; }
.rp-tn { font-size: 13pt; color: var(--navy); } .rp-t td div { font-size: 8.3pt; color: var(--ink-2); }
.rp-raw td:not(:first-child), .rp-raw th:not(:first-child) { text-align: center; font-family: var(--mono); }
.rp-dec { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.rp-decp { display: inline-block; border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 9.4pt; }
.rp-lines { height: 70px; background: repeating-linear-gradient(#fff 0 22px, #E6E1D3 22px 23px); }
.rp-foot { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 6px; font-size: 7.3pt; color: #9AA1AE; line-height: 1.5; }

/* ---------- print ---------- */
@page { size: A4; margin: 11mm 12mm; }
@media print {
  body.printing > *:not(#printDoc) { display: none !important; }
  body.printing #printDoc { display: block !important; }
  body.printing { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
  body { background: #fff; }
  .side, .no-print, .tabs, #toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .report .chart-card { break-inside: avoid; }
}
