/* Client portal and owner CRM. Builds on /styles.css: same ink, paper, signal and type.
   Extra tokens: --chart passes the dataviz lightness band on --ink (#f05a2c, L 0.66).
   Status colors always sit beside a text label, never alone. */

:root {
  --chart: #f05a2c;
  --good: #4fc883;
  --warn: #f2c14e;
  --bad: var(--signal);
  --side-w: 248px;
}

body.portal { min-height: 100vh; }
.boot { padding: 48px var(--gutter); color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.strong { font-weight: 650; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.loading { color: var(--muted); padding: 24px 0; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--paper); font: inherit; font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--signal); }
.link-btn.armed, .btn.armed { color: var(--signal); }
.btn-quiet { min-height: 40px; padding: 8px 14px; background: transparent; color: var(--paper); border-color: var(--line); font-size: .9375rem; }
.btn-quiet:hover { border-color: var(--signal); background: transparent; color: var(--paper); }
.btn-quiet.armed { border-color: var(--signal); }
.btn[disabled] { cursor: progress; }

/* Frame */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--ink); overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 0; }
.side-label { padding: 22px 22px 6px; }
.side-sub { padding: 0 22px 18px; font-weight: 650; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.side-sub:empty { display: none; }
.side-panel { display: flex; flex-direction: column; flex: 1; }
.side nav { padding: 10px 0; }
.side nav a { display: grid; grid-template-columns: 2.1rem 1fr auto; align-items: center; min-height: 44px; padding: 8px 22px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9875rem; }
.side nav a:hover { color: var(--paper); background: var(--ink-2); }
.side nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.side nav .n { font: 500 .75rem/1 var(--mono); }
.side nav a[aria-current="page"] .n { color: var(--signal-dark); }
.side-group { padding: 18px 22px 6px; font: 500 .75rem/1.3 var(--mono); color: var(--muted); }
.nav-badge { min-width: 1.6rem; padding: 3px 6px; background: var(--signal); color: var(--ink); font: 600 .75rem/1 var(--mono); text-align: center; }
.side-foot { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.side-user { font-weight: 650; overflow-wrap: anywhere; }
.side-user span { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; }
.side-link { color: var(--muted); font-size: .9375rem; }
.side-link:hover { color: var(--paper); }
.live { font: 500 .75rem/1.3 var(--mono); color: var(--muted); }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--good); vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite; }
.live.off::before { background: var(--warn); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.menu-btn { display: none; min-height: 40px; padding: 8px 14px; background: transparent; color: var(--paper); border: 1px solid var(--line); font: 600 .9375rem var(--sans); cursor: pointer; }

.main { width: 100%; max-width: 1240px; padding: clamp(28px, 4vw, 56px) var(--gutter) 96px; }
.main:focus { outline: none; }

/* Page furniture */
.page-head { margin-bottom: clamp(24px, 3vw, 36px); }
.page-head h1 { margin: 14px 0 10px; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 720; line-height: 1.03; letter-spacing: -.03em; overflow-wrap: anywhere; }
.page-intro { max-width: 44rem; color: var(--muted); font-size: 1.0625rem; }
.head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.head-meta a { color: var(--muted); }
.head-actions { margin-top: 18px; }
.head-progress { display: flex; align-items: center; gap: 14px; max-width: 520px; margin-top: 16px; }
.head-progress .progress { flex: 1; }
.section-title { margin: 40px 0 16px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }

.card { margin: 0 0 16px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); background: var(--ink); }
.card-title { margin-bottom: 16px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.sub-title { margin: 28px 0 12px; font-size: 1.0625rem; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .card { margin: 0; }
.grid-2 + .card, .grid-2 + .grid-2, .tiles + .grid-2, .grid-2 + .section-title { margin-top: 16px; }
.align-start { align-items: start; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--muted); background: var(--ink-2); color: var(--paper); }
.notice.warn { border-left-color: var(--warn); }
.notice.ok { border-left-color: var(--good); }
.empty { color: var(--muted); padding: 6px 0; }
.ok-line { color: var(--paper); }
.ok-line::before { content: "[+] "; font-family: var(--mono); color: var(--good); }

.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin: 0 0 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tiles.n1 { --cols: 1; }
.tiles.n2 { --cols: 2; }
.tiles.n3 { --cols: 3; }
.tile { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile-label { font: 500 .8125rem/1.35 var(--mono); color: var(--muted); }
.tile-value { margin-top: 8px; font-size: clamp(1.4rem, 2.2vw, 1.875rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.tile-sub { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.hero-card { padding-block: clamp(24px, 3vw, 36px); }
.hero-fig { margin: 10px 0 8px; font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.headline-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.headline-pair .card { margin: 0; }
.headline-pair .hero-fig { font-size: clamp(2.2rem, 4.6vw, 4rem); }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--line); font: 500 .75rem/1 var(--mono); color: var(--paper); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; background: var(--muted); }
.pill.good::before { background: var(--good); }
.pill.warn::before { background: var(--warn); }
.pill.bad::before { background: var(--bad); }

.progress { height: 6px; min-width: 80px; background: var(--line); }
.progress > span { display: block; height: 100%; background: var(--signal); transition: width .3s; }
.progress-cell { min-width: 140px; }
.progress-cell .progress { display: inline-block; width: 90px; margin-right: 10px; vertical-align: middle; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9875rem; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font: 500 .75rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { font-weight: 600; }
.cell-sub { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.row-warn td { color: var(--signal); }

.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 8px 20px; margin: 12px 0; }
.facts dt { font: 500 .8125rem/1.7 var(--mono); color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }

.subnav { display: flex; margin: 0 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav a { padding: 12px 16px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--paper); }
.subnav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--signal); }

/* Forms */
.form { display: block; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 6px; }
.field .hint { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.field legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
fieldset.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field-static-label { margin-bottom: 7px; font-weight: 600; }
.field-static { padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--signal); }
input[type="month"], input[type="date"] { color-scheme: dark; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { flex: none; margin-top: 2px; }
.check label { margin: 0; font-weight: 500; }
.form .form-status { margin-top: 12px; }
.radio-row, .svc-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.field label.pick { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); font-weight: 400; cursor: pointer; }
.pick:hover { border-color: var(--muted); }
.pick:has(input:checked) { border-color: var(--signal); background: var(--ink-2); }
.pick input { flex: none; margin-top: 2px; }
.pick span { display: grid; gap: 2px; }
.add-panel { border-color: var(--signal); }

.switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 1.5px solid var(--muted); background: transparent; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 15px; height: 15px; background: var(--muted); transition: transform .15s, background .15s; }
.switch[aria-checked="true"] { border-color: var(--signal); background: var(--signal); }
.switch[aria-checked="true"]::after { transform: translateX(19px); background: var(--ink); }
.switch-list { display: grid; }
.switch-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.switch-list li:first-child { border-top: 0; }

/* Charts */
.chart-card { margin: 0 0 16px; }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 200px auto; column-gap: 12px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; margin: -.5em 0; font: 500 .6875rem/1 var(--mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.chart-plot { position: relative; }
.chart-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.chart-cols { position: absolute; inset: 0; display: flex; align-items: stretch; }
.chart-col { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.chart-col:focus-visible { outline-offset: -2px; }
.chart-bar { display: block; width: min(24px, 60%); background: var(--chart); border-radius: 4px 4px 0 0; }
.chart-col.on .chart-bar, .chart-col:hover .chart-bar { background: var(--signal); }
.chart-cap { position: absolute; left: 50%; transform: translateX(-50%); font: 500 .75rem/1 var(--mono); color: var(--paper); white-space: nowrap; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 7px 10px; background: var(--paper); color: var(--ink); font: 500 .8125rem/1 var(--mono); white-space: pre; pointer-events: none; z-index: 2; }
.chart-x { grid-column: 2; display: flex; padding-top: 8px; font: 500 .6875rem/1 var(--mono); color: var(--muted); }
.chart-x span { flex: 1; text-align: center; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: var(--muted); text-align: center; font-size: .9375rem; }
.chart-table { margin-top: 16px; font-size: .9375rem; }
.chart-table summary { color: var(--muted); cursor: pointer; }

/* Client pages */
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-color: var(--signal); }
.banner-title { margin: 6px 0 4px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.banner-side { display: grid; gap: 14px; min-width: min(280px, 100%); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s; }
.svc-card:hover { border-color: var(--paper); background: var(--ink-2); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-top h3 { font-size: 1.1875rem; font-weight: 700; }
.svc-metrics { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.svc-metrics dt { color: var(--muted); font-size: .9375rem; }
.svc-metrics dd { font-weight: 650; }
.svc-foot { margin-top: auto; color: var(--muted); font-size: .875rem; }

.timeline { display: grid; }
.timeline li { padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline-date { font: 500 .75rem/1.4 var(--mono); color: var(--muted); }
.timeline h3 { margin: 4px 0; font-size: 1.0625rem; font-weight: 650; }

.ob-steps { display: grid; border: 1px solid var(--line); }
.ob-step + .ob-step { border-top: 1px solid var(--line); }
.ob-head { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px clamp(16px, 2.2vw, 24px); color: inherit; text-decoration: none; }
a.ob-head:hover { background: var(--ink-2); }
.ob-num { font: 500 .8125rem var(--mono); color: var(--signal); }
.ob-step.done .ob-num { color: var(--good); }
.ob-step.locked { color: var(--muted); }
.ob-step.locked .ob-num { color: var(--muted); }
.ob-title { font-weight: 700; font-size: 1.0625rem; }
.ob-sum { display: block; margin-top: 2px; font-weight: 400; font-size: .9375rem; color: var(--muted); }
.ob-body { padding: 4px clamp(16px, 2.2vw, 24px) 24px calc(2.6rem + 12px + clamp(16px, 2.2vw, 24px)); }
a.ob-head[aria-expanded="true"] { background: var(--ink-2); }
.ob-step:has(a.ob-head[aria-expanded="true"]) .ob-body { background: var(--ink-2); }
.ob-steps.owner .ob-body { padding-top: 0; }

.guide { margin-bottom: 24px; }
.guide h3 { margin-bottom: 6px; font-size: 1.1875rem; font-weight: 700; }
.collab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--signal); }
.collab .tile-label { flex-basis: 100%; }
.collab-email { font: 600 1.0625rem var(--mono); overflow-wrap: anywhere; }
.guide-steps { margin: 6px 0 16px; counter-reset: guide; }
.guide-steps li { display: grid; grid-template-columns: 2.4rem 1fr; padding: 10px 0; border-top: 1px solid var(--line); counter-increment: guide; }
.guide-steps li::before { content: "[" counter(guide) "]"; font: 500 .8125rem/1.8 var(--mono); color: var(--signal); }

.doc { margin: 0 0 16px; padding: clamp(22px, 4vw, 48px); background: var(--paper); color: var(--ink); line-height: 1.6; }

/* Owner pages */
.tasks { display: grid; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task input { margin-top: 3px; }
.task-title { font-weight: 600; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; color: var(--muted); font-size: .875rem; }
.task-meta .overdue { color: var(--signal); font-weight: 600; }
.task-form + .tasks, .task-form + .empty { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.mini-list { display: grid; gap: 10px; }
.enquiries { display: grid; }
.enquiry.new { border-left: 3px solid var(--signal); }
.enquiry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.enquiry-head .card-title { margin: 0 0 4px; }
.enquiry-side { display: grid; justify-items: end; gap: 6px; }
.enquiry .tile-label { margin-bottom: 8px; }
.enquiry .form-actions { margin-top: 18px; }
.link-result { margin-top: 18px; }
.link-box { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); background: var(--ink-2); overflow-wrap: anywhere; font-size: .875rem; user-select: all; }
.archived summary { cursor: pointer; font-weight: 650; }
.tab-body { min-height: 200px; }
.tab-count { margin-left: 8px; padding: 2px 6px; border: 1px solid var(--line); font: 500 .6875rem/1 var(--mono); color: var(--muted); }
.tab-count.hot { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.fx-note { margin: -4px 0 16px; }

/* Messages */
.thread { display: grid; gap: 10px; margin-bottom: 16px; }
.msg { max-width: 44rem; padding: 12px 14px; border: 1px solid var(--line); background: var(--ink-2); }
.msg.mine { justify-self: end; border-color: var(--muted-dark); background: var(--ink); }
.msg.unread { border-left: 3px solid var(--signal); }
.msg-meta { margin-bottom: 4px; font: 500 .75rem/1.4 var(--mono); color: var(--muted); }
.thread-form textarea { min-height: 84px; }

/* Files */
.uploader { display: grid; justify-items: start; gap: 8px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.uploader label.btn { cursor: pointer; }
.file-input:focus-visible + .hint, .uploader:focus-within label.btn { outline: 2px solid var(--signal); outline-offset: 3px; }
.uploader .form-status { margin: 0; }

/* View as client */
fieldset.read-only { min-width: 0; margin: 0; padding: 0; border: 0; }
.preview-nav { margin-bottom: 20px; }
.preview-body { padding: clamp(16px, 2.4vw, 28px); border: 1px dashed var(--muted-dark); }
.tab-body > .head-progress { margin: 0 0 20px; }

/* Sign in */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 5vw, 64px); border-right: 1px solid var(--line); }
.auth-side .wordmark { font-size: 2rem; }
.auth-tag { max-width: 22rem; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.auth-main { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.auth-card { width: min(100%, 440px); }
.auth-card h1 { margin: 14px 0 18px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.05; }
.auth-lede { margin-bottom: 22px; color: var(--muted); }
.auth-card .form .btn[type="submit"] { width: 100%; }
.auth-card .link-btn { margin-top: 14px; }
.auth-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.setup-steps { margin: 0 0 22px; counter-reset: setup; }
.setup-steps li { position: relative; padding: 12px 0 12px 2.4rem; border-top: 1px solid var(--line); counter-increment: setup; color: var(--muted); }
.setup-steps li strong { color: var(--paper); }
.setup-steps li::before { content: "[" counter(setup) "]"; position: absolute; left: 0; font: 500 .8125rem/1.9 var(--mono); color: var(--signal); }
.qr-wrap { margin: 14px 0; }
.qr { display: block; width: 196px; height: 196px; }
.secret summary { cursor: pointer; color: var(--paper); }
.secret p { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); word-spacing: .3em; overflow-wrap: anywhere; }
.codes { margin-bottom: 22px; }
.code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--line); }
.code-list li { padding: 10px 14px; background: var(--ink); font: 500 1rem var(--mono); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--paper); color: var(--ink); font-weight: 600; transform: translate(-50%, 150%); transition: transform .2s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .grid-2, .headline-pair { grid-template-columns: minmax(0, 1fr); }
  .tiles { --cols: 3; }
  .tiles.n2, .tiles.n4 { --cols: 2; }
}

@media (max-width: 760px) {
  .tiles, .tiles.n3 { --cols: 2; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; z-index: 10; height: auto; max-height: 100vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { padding: 12px var(--gutter); }
  .side-label, .side-sub { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .side-panel { display: none; }
  .side.open .side-panel { display: flex; }
  .side nav a, .side-group { padding-inline: var(--gutter); }
  .side-foot { padding-inline: var(--gutter); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { gap: 18px; padding: 24px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-tag { font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .ob-body { padding-left: clamp(16px, 2.2vw, 24px); }
  .ob-head { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .ob-head .pill { grid-column: 2; justify-self: start; }
  .chart { grid-template-rows: 160px auto; }
  .chart-x span:nth-child(even) { visibility: hidden; }
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task > .link-btn { grid-column: 2; justify-self: start; }
  .tiles, .tiles.n2, .tiles.n3 { --cols: 1; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .code-list { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .side, .no-print, .notice, .toast, .skip { display: none !important; }
  .app { display: block; }
  body.portal { background: #fff; color: #000; }
  .main { padding: 0; }
  .card { border: 0; padding: 0; }
  .doc { padding: 0; background: #fff; }
}
