/* G2D+ Advanced & Business worksheets — shared styles (used with /assets/g2d.css). Copyright © 2026 by JSC Innovations PTY LTD */
.save-state { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); white-space: nowrap; }
.save-state.err { color: var(--nogo); }
@media (max-width: 640px) { .save-state { display: none; } }
.nav-tool { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; }
.nav-tool:hover { color: #fff; border-color: #555; }

/* Progress pills */
.progress { position: sticky; top: 3.5rem; z-index: 20; background: rgba(17,17,17,.95); border-bottom: 1px solid var(--line); }
.progress .wrap { display: flex; gap: .35rem; padding-top: .75rem; padding-bottom: .75rem; overflow-x: auto; scrollbar-width: none; }
.progress .wrap::-webkit-scrollbar { display: none; }
.pill { flex: 1 0 auto; font-family: 'Work Sans', sans-serif; font-size: 12px; letter-spacing: .04em; color: var(--dim); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; white-space: nowrap; }
.pill:hover { color: #fff; border-color: #555; }
.pill.done { color: var(--muted); border-color: #444; }
.pill.active { color: #fff; background: var(--orange); border-color: var(--orange); }
.pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.step { display: none; animation: g2dIn .4s ease; }
.step.active { display: block; }
.hint em { color: #d4d4d4; }
.card > .label + .hint { margin-top: -.15rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .35rem; }
.card-head .label { margin: 0; }
.mini-label { font-family: 'Work Sans', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ws-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.pair { display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; align-items: start; margin-bottom: .75rem; }
.pair:last-child { margin-bottom: 0; }
.pair .tag, .tag { font-family: 'Work Sans', sans-serif; font-weight: 600; color: var(--orange); padding-top: .7rem; }
.pair .cols { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pair .cols { grid-template-columns: 2fr 3fr; } .pair .cols.kpi { grid-template-columns: 3fr 2fr 10rem; } }

/* Segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: .375rem; overflow: hidden; background: var(--panel-2); }
.seg label { cursor: pointer; position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg button { display: block; font-family: 'Work Sans', sans-serif; font-size: 13px; padding: .45rem .85rem; color: var(--muted); border: 0; border-right: 1px solid var(--line-2); background: none; cursor: pointer; }
.seg label:last-child span, .seg button:last-child { border-right: 0; }
.seg span:hover, .seg button:hover { color: #fff; }
.seg input:checked + span, .seg button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.seg input:focus-visible + span, .seg button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.seg.mini span, .seg.mini button { font-size: 12px; padding: .3rem .6rem; }
.seg.num span { min-width: 2.1rem; text-align: center; padding: .4rem .5rem; }
.seg.scale input[value=poor]:checked + span { background: rgba(248,113,113,.2); color: var(--nogo); }
.seg.scale input[value=neutral]:checked + span { background: #333; color: #fff; }
.seg.scale input[value=fav]:checked + span { background: rgba(74,222,128,.18); color: var(--go); }
.seg.scale input[value=perfect]:checked + span { background: var(--orange); color: #fff; }
.seg.regret input[value=Low]:checked + span { background: rgba(74,222,128,.18); color: var(--go); }
.seg.regret input[value=Medium]:checked + span { background: rgba(250,204,21,.16); color: var(--cond); }
.seg.regret input[value=High]:checked + span { background: rgba(248,113,113,.2); color: var(--nogo); }

/* Verdict cards */
.verdicts { display: grid; gap: .6rem; }
.verdict { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: .375rem; cursor: pointer; background: var(--panel-2); position: relative; margin: 0; }
.verdict input { position: absolute; opacity: 0; pointer-events: none; }
.verdict .badge { flex: 0 0 auto; margin-top: .15rem; }
.verdict.go .badge { color: var(--go); } .verdict.cond .badge { color: var(--cond); } .verdict.nogo .badge { color: var(--nogo); }
.verdict .desc { color: #d4d4d4; font-style: italic; font-size: 15px; }
.verdict.go.checked { border-color: var(--go); background: rgba(74,222,128,.07); }
.verdict.cond.checked { border-color: var(--cond); background: rgba(250,204,21,.07); }
.verdict.nogo.checked { border-color: var(--nogo); background: rgba(248,113,113,.07); }
.verdict:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.suggest { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); margin: 0 0 .75rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.suggest b { color: #fff; font-weight: 600; }
.reveal { display: none; margin-top: 1rem; }
.reveal.show { display: block; animation: g2dIn .3s ease; }
.callout.red { border-color: var(--nogo); background: rgba(248,113,113,.06); }
.callout.green { border-color: var(--go); background: rgba(74,222,128,.05); }
.callout.yellow { border-color: var(--cond); background: rgba(250,204,21,.05); }
.callout .actions { margin-top: .6rem; }

.screening { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: 1.25rem; }
.screening .mini-label { flex: 0 0 auto; }
.screening input { flex: 1 1 16rem; }
.rejected { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--dim); margin: -.6rem 0 1.25rem; }
.rejected s { color: var(--muted); }

/* Emotional factor builder */
.emo-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.emo-tab { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: .375rem; padding: .45rem .8rem; cursor: pointer; }
.emo-tab:hover { color: #fff; border-color: #555; }
.emo-tab[aria-selected="true"] { color: #fff; border-color: var(--orange); background: var(--orange-soft); }
.emo-tab .count { display: inline-block; min-width: 1.3rem; margin-left: .3rem; padding: 0 .3rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; text-align: center; }
.emo-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.emo-panel { border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; background: #141414; }
.emo-prompt { font-style: italic; color: #d4d4d4; margin: 0 0 .75rem; }
.emo-add { display: flex; gap: .5rem; margin-top: .85rem; }
.emo-add input { flex: 1; }
.chip.more { border-style: dashed; color: var(--muted); }
.emo-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.emo-item { border: 1px solid var(--line-2); border-radius: .375rem; padding: .6rem .7rem; background: var(--panel-2); }
.emo-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.emo-name { font-weight: 600; flex: 1 1 8rem; }
.emo-item input.emo-note { margin-top: .5rem; font-size: 15px; padding: .45rem .65rem; }
.x { background: none; border: 1px solid transparent; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; padding: .1rem .4rem; border-radius: .25rem; }
.x:hover { color: #fff; border-color: var(--line-2); }
.x:focus-visible { outline: 2px solid #fff; }
.emo-empty { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--dim); margin: 1rem 0 0; }
.emo-overview { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); margin: .85rem 0 0; }

/* Category combobox */
.cat-row { display: grid; grid-template-columns: 2.6rem 1fr 6.5rem; gap: .6rem; align-items: start; margin-bottom: .75rem; }
.cb { position: relative; }
.cb-meta { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); margin-top: .3rem; min-height: 1.1em; }
.domain { display: inline-block; font-family: 'Work Sans', sans-serif; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(248,119,37,.45); border-radius: .25rem; padding: .05rem .4rem; }
.domain.custom { color: var(--muted); border-color: var(--line-2); }
.cb-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + .25rem); max-height: 18rem; overflow-y: auto; margin: 0; padding: .3rem; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: .375rem; box-shadow: 0 18px 36px rgba(0,0,0,.55); }
.cb-group { font-family: 'Work Sans', sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); padding: .55rem .55rem .2rem; }
.cb-opt { padding: .4rem .55rem; border-radius: .25rem; cursor: pointer; font-size: 15px; color: #e5e5e5; }
.cb-opt small { color: var(--dim); font-family: 'Work Sans', sans-serif; font-size: 11px; margin-left: .4rem; }
.cb-opt.active, .cb-opt:hover { background: var(--panel-2); color: #fff; }
.cb-opt mark { background: none; color: var(--orange); font-weight: 600; }
.cb-empty { padding: .5rem; color: var(--dim); font-size: 14px; }
.weight { position: relative; }
.weight input { padding-right: 1.7rem; }
.weight::after { content: "%"; position: absolute; right: .7rem; top: .72rem; color: var(--dim); font-family: 'Work Sans', sans-serif; font-size: 14px; pointer-events: none; }
.popular { margin: 0 0 1rem; }
.popular .mini-label { display: block; margin-bottom: .4rem; }
.total-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .85rem; margin-top: .25rem; }
.total-num { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 15px; }
.total-num.ok { color: var(--go); } .total-num.bad { color: var(--cond); } .total-num.over { color: var(--nogo); }
.meter { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: .5rem; }
.meter > i { display: block; height: 100%; background: var(--orange); transition: width .25s; }
.meter.ok > i { background: var(--go); } .meter.over > i { background: var(--nogo); }

/* Matrix */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.matrix { width: 100%; min-width: 34rem; border-collapse: separate; border-spacing: 0; font-size: 15px; }
table.matrix th, table.matrix td { padding: .5rem .45rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
table.matrix thead th { font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .03em; vertical-align: bottom; }
table.matrix thead th small { display: block; font-weight: 400; color: var(--dim); }
table.matrix th.opt { text-align: left; font-weight: 600; min-width: 8rem; }
table.matrix td input { width: 3.6rem; text-align: center; padding: .45rem .3rem; }
table.matrix .contrib { display: block; font-family: 'Work Sans', sans-serif; font-size: 11px; color: var(--dim); margin-top: .2rem; }
table.matrix .tot { font-family: 'Work Sans', sans-serif; font-weight: 600; min-width: 6rem; }
table.matrix .tot .meter { margin-top: .3rem; }
table.matrix tr.leader th.opt, table.matrix tr.leader .tot { color: var(--orange); }
table.matrix tr.leader td, table.matrix tr.leader th { background: rgba(248,119,37,.06); }
.rank { font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--dim); }
tr.leader .rank { color: #fff; background: var(--orange); border-radius: 999px; padding: .1rem .5rem; }
.leader-line { font-family: 'Work Sans', sans-serif; font-size: 14px; color: var(--muted); margin: 1rem 0 0; }
.leader-line b { color: var(--orange); }

/* Hidden forces chips */
.chip small { color: var(--dim); font-size: 11px; margin-left: .25rem; }
.chip.on small { color: rgba(255,255,255,.8); }
.chip[aria-disabled="true"] { opacity: .45; }
.counter { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); }
.counter.full { color: var(--orange); }
.toast-inline { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--orange); min-height: 1.2em; margin-top: .5rem; }
.picked { display: grid; gap: .5rem; margin-top: .9rem; }
.picked .row-note { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: .6rem; align-items: center; }
.picked .row-note b { font-family: 'Work Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--orange); }
.picked input { font-size: 15px; padding: .5rem .7rem; }
@media (max-width: 560px) { .picked .row-note { grid-template-columns: 1fr; gap: .25rem; } }

/* Sub-factor ratings */
.subf { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.subf:first-child { border-top: 0; padding-top: 0; }
.subf:last-child { padding-bottom: 0; }
.subf .name b { display: block; }
.subf .name small { color: var(--muted); font-style: italic; font-size: 14px; }
.subf input[type=text] { font-size: 15px; padding: .5rem .7rem; }
@media (min-width: 760px) { .subf { grid-template-columns: 13rem 1fr; } .subf .ctl { display: grid; gap: .5rem; } }
.scale-key { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); margin: 0 0 1rem; }

/* Risk register + heat map */
.risk-row { display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.risk-row:first-child { border-top: 0; padding-top: 0; }
.risk-body { display: grid; gap: .55rem; }
.risk-rates { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: flex-end; }
.rate-grp { display: grid; gap: .25rem; }
.risk-score { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 13px; padding: .35rem .65rem; border-radius: .3rem; border: 1px solid var(--line-2); color: var(--dim); }
.lvl-low { color: #052e16 !important; background: var(--go) !important; border-color: var(--go) !important; }
.lvl-med { color: #422006 !important; background: var(--cond) !important; border-color: var(--cond) !important; }
.lvl-high { color: #fff !important; background: var(--orange) !important; border-color: var(--orange) !important; }
.lvl-crit { color: #fff !important; background: #dc2626 !important; border-color: #dc2626 !important; }
.heat-wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.heat { display: grid; grid-template-columns: 1.2rem repeat(5, 2.4rem); grid-auto-rows: 2.4rem; gap: 3px; font-family: 'Work Sans', sans-serif; font-size: 11px; }
.heat .ax { color: var(--dim); display: grid; place-items: center; }
.heat .cell { border-radius: 3px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 1px; opacity: .3; }
.heat .cell.has { opacity: 1; }
.heat .cell b { font-size: 10px; background: rgba(0,0,0,.55); color: #fff; border-radius: 2px; padding: 0 2px; }
.heat-legend { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--muted); display: grid; gap: .35rem; }
.heat-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }

/* Regret */
.regret-row { display: grid; gap: .5rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.regret-row:first-of-type { border-top: 0; padding-top: 0; }
.regret-row .head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.regret-row .head b small { font-weight: 400; color: var(--muted); font-style: italic; }
.regret-row textarea { min-height: 3.6rem; font-size: 15px; }

/* Stage 4 */
.conf { display: flex; align-items: center; gap: 1rem; }
.conf input[type=range] { flex: 1; accent-color: var(--orange); height: 2rem; }
.conf output { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 22px; min-width: 4.5rem; text-align: right; color: var(--orange); }
.conf output.unset { font-size: 13px; color: var(--dim); font-weight: 500; }
.lights { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: #444; margin-right: .4rem; vertical-align: -1px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.dot.go { background: var(--go); } .dot.cond { background: var(--cond); } .dot.nogo { background: var(--nogo); }

/* Review */
.period h3 small { font-weight: 400; font-style: italic; color: var(--muted); font-size: 15px; }
.grid-2 { display: grid; gap: .9rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 label.field, .grid-2 .field { margin: 0; }
.grid-2 textarea { min-height: 4.5rem; }
ul.questions { margin: 0; padding-left: 1.2rem; color: #d4d4d4; font-style: italic; }
.period-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.period-head input[type=date] { max-width: 12rem; }

/* Toolkit */
.toolkit { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.tool { text-align: left; display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line-2); border-radius: .4rem; background: var(--panel-2); color: #fff; cursor: pointer; font: inherit; margin: 0; }
.tool:hover { border-color: #555; }
.tool:focus-visible, .tool:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.tool b { font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 600; }
.tool small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tool.primary { border-color: var(--orange); background: var(--orange-soft); }
.premium-hint { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); border: 1px dashed rgba(248,119,37,.45); border-radius: .4rem; padding: .6rem .85rem; margin-bottom: 1.25rem; }
.premium-hint a { color: var(--orange); }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); margin-bottom: 1.25rem; }
.doc-bar b { color: #fff; font-weight: 600; }
.status { font-family: 'Work Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: .25rem; border: 1px solid currentColor; color: var(--muted); white-space: nowrap; }
.status.s-approved { color: var(--go); } .status.s-rejected { color: var(--nogo); } .status.s-in-review { color: var(--cond); } .status.s-draft { color: var(--muted); }
.status.s-decided { color: var(--go); } .status.s-reviewing { color: var(--cond); } .status.s-open { color: #e5e5e5; } .status.s-closed { color: var(--dim); }
/* My Decisions (account) */
.cloud-pill { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }
.cloud-pill.on { color: var(--go); border-style: solid; border-color: rgba(74,222,128,.4); }
.cloud-line { font-family: 'Work Sans', sans-serif; font-size: 14px; color: var(--muted); margin: 0 0 .5rem; }
.cloud-line b { font-weight: 600; color: #e5e5e5; }
.cloud-line span { color: var(--dim); }
.cloud-line.ok b { color: var(--go); }
.cloud-line.bad b { color: var(--nogo); }
.cloud-card .actions { margin-top: .5rem; }
.pend-box { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pm-body .notice .btn { margin-left: .5rem; }
.appr { border: 1px solid var(--line-2); border-radius: .4rem; padding: .9rem; background: var(--panel-2); margin-bottom: .75rem; }
.appr .row { margin-bottom: .6rem; }
.appr textarea { min-height: 3.5rem; }
.appr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }

/* Modal lists */
.g2d-modal .box.wide { width: min(46rem, 100%); max-height: 88vh; overflow-y: auto; }
.lib-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.lib-item { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; border: 1px solid var(--line-2); border-radius: .4rem; padding: .7rem .85rem; background: var(--panel-2); }
.lib-item.current { border-color: var(--orange); }
.lib-item .meta { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .2rem; }
.lib-item .t { font-weight: 600; }
.lib-item .actions { gap: .35rem; justify-content: flex-end; }
@media (max-width: 560px) { .lib-item { grid-template-columns: 1fr; } .lib-item .actions { justify-content: flex-start; } }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 1rem; }
table.cmp th, table.cmp td { border: 1px solid var(--line-2); padding: .4rem .55rem; text-align: left; vertical-align: top; white-space: pre-wrap; }
table.cmp th { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--muted); font-weight: 600; }
table.cmp tr.diff td { background: rgba(248,119,37,.08); }
table.cmp tr.diff td:last-child { color: var(--orange); }

.pro-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%) translateY(1rem); z-index: 90; font-family: 'Work Sans', sans-serif; font-size: 14px; background: #222; border: 1px solid var(--line-2); color: #fff; padding: .6rem 1rem; border-radius: .4rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 2rem); }
.pro-toast.show { opacity: 1; transform: translateX(-50%); }

/* Summary / report */
.sum-section { margin-bottom: 2rem; }
.sum-section h3 { font-size: 13px; font-family: 'Work Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.sum-row { display: grid; grid-template-columns: 1fr; gap: .15rem; margin-bottom: .8rem; }
@media (min-width: 640px) { .sum-row { grid-template-columns: 13rem 1fr; gap: 1rem; } }
.sum-row dt { color: var(--muted); font-size: 15px; }
.sum-row dd { margin: 0; white-space: pre-wrap; }
.sum-row dd.empty { color: #555; font-style: italic; }
table.rt { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: .5rem; }
table.rt th, table.rt td { border: 1px solid var(--line-2); padding: .45rem .6rem; vertical-align: top; text-align: left; white-space: pre-wrap; }
table.rt th { font-family: 'Work Sans', sans-serif; font-size: 12px; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
table.rt td.num { text-align: center; white-space: nowrap; }
table.rt tr.lead td { color: var(--orange); font-weight: 600; }
.report-cover { border: 1px solid var(--line-2); border-top: 3px solid var(--orange); border-radius: .4rem; padding: 1.4rem 1.5rem; margin-bottom: 2rem; background: var(--panel); }
.report-cover h2 { margin: .4rem 0 1rem; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem 1.25rem; }
.cover-grid div span { display: block; font-family: 'Work Sans', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cover-grid div b { font-weight: 600; white-space: pre-wrap; }
.rec-box { border-left: 3px solid var(--orange); background: rgba(248,119,37,.06); padding: .9rem 1.1rem; border-radius: 0 .4rem .4rem 0; margin-bottom: 1.25rem; }
.rec-box p { margin: .15rem 0; }
.print-footer { display: none; }
.vchip { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .08em; padding: .15rem .5rem; border-radius: .25rem; border: 1px solid currentColor; white-space: nowrap; }
.vchip.go { color: var(--go); } .vchip.cond { color: var(--cond); } .vchip.nogo { color: var(--nogo); }
.ws-copy { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); text-align: center; margin-top: 2.5rem; }

@media print {
  @page { margin: 16mm 14mm 20mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .progress, .ws-nav, .no-print, .pro-toast, .g2d-modal { display: none !important; }
  main.page { padding: 0; }
  .step { display: none !important; }
  #step-summary { display: block !important; animation: none; }
  .card, .report-cover { background: none; border-color: #999; }
  .report-cover { border-top-color: #f87725; }
  .sum-section { break-inside: auto; }
  .sum-section h3 { color: #b4500f; border-color: #999; break-after: avoid; }
  .sum-row { break-inside: avoid; }
  .sum-row dt, .cover-grid div span { color: #444; }
  .sum-row dd.empty { color: #999; }
  table.rt th, table.rt td { border-color: #999; color: #000; }
  table.rt tr { break-inside: avoid; }
  table.rt tr.lead td { color: #b4500f; }
  .rec-box { background: #fff6ef; }
  .vchip.go { color: #15803d; } .vchip.cond { color: #a16207; } .vchip.nogo { color: #b91c1c; }
  .status { color: #000; }
  .lvl-low, .lvl-med, .lvl-high, .lvl-crit, .dot, .rec-box { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-footer { display: block; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font-family: 'Work Sans', sans-serif; font-size: 8pt; color: #555; border-top: 1px solid #ccc; padding-top: 3pt; background: #fff; }
  .report-detail { break-before: page; }
  footer.site { border: 0; padding: 1rem 0 0; }
  footer.site p { color: #444; }
}
