/* pipe schedule chart — on top of calc.css */
main.ps { --em: #f7f8fb; --ok: var(--good-ink); --okbg: #e9f4ee; --hx: #f1f4fa; --cls: var(--moment); }   /* theme: keep (light exactly as before the dark work: on #e6f2eb the current wall in --sel is under 4.5:1; dark in theme-hand) */

/* ---------- toolbar: search, standard, what the cells show ---------- */
.ps-chart { padding: 14px 16px 12px; min-width: 0; }
.ps-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ps-find { position: relative; flex: 1 1 360px; min-width: 0; max-width: 620px; }
.ps-q { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--text-3); }
.ps-q:focus-within { border-color: var(--sel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sel) 12%, transparent); color: var(--sel); }
.ps-q { position: relative; }
.ps-q svg { flex: none; }
.ps-hintspot { position: absolute; left: 12px; top: 0; bottom: 0; width: 16px; pointer-events: none; }
.ex-wrap { position: relative; margin-left: auto; }
.ps-q input { border: 0; outline: 0; background: none; padding: 9px 0; font-size: 14px; width: 100%; min-width: 0; color: var(--text); }
.ps-q input::placeholder { color: var(--text-5); }
.ps-q input::-webkit-search-cancel-button { cursor: pointer; }
.ps-res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); max-height: 340px; overflow-y: auto; }
.ps-res li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.ps-res li.on, .ps-res li:hover { background: var(--sel-bg); }
.ps-res li b { font-weight: 600; font-size: 13.5px; }
.ps-res li span { font-size: 12.5px; color: var(--text-3); text-align: right; white-space: nowrap; }
.ps-res li small { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }
.ps-res li.info { cursor: default; background: none; font-size: 12.5px; color: var(--text-3); display: block; }
.ps-res mark, .pst mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; margin: 0 -1px; }
.ps-std { flex: none; }
.ps-std button { padding: 6px 12px; }
.ps-std button small { color: var(--text-3); font-weight: 400; margin-left: 5px; font-size: 11.5px; }
.ps-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.ps-show { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ps-show .lab, .ps-cond .lab { font-size: 12px; color: var(--text-3); margin-right: 3px; }
.ps-show .chip { padding: 3px 11px; font-size: 12.5px; }
.ps-show .chip[aria-pressed="true"] { border-color: var(--text-2); color: var(--text); background: var(--surface); font-weight: 500; }
.ps-show .chip:disabled { opacity: .45; cursor: not-allowed; }
.ps-cond { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-2); min-width: 0; }
.ps-cond[hidden] { display: none; }
.ps-cond .cf { display: flex; align-items: center; gap: 6px; }
.ps-cond select { width: auto; max-width: 200px; padding-top: 4px; padding-bottom: 4px; }
.ps-cond .num { width: 92px; }
.ps-cond .num input { padding-top: 4px; padding-bottom: 4px; }
.ps-sub { margin: 10px 0 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.ps-sub b { color: var(--text); font-weight: 600; }
.ps-sub .key { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; white-space: nowrap; }
.ps-sub .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }

/* ---------- the chart ---------- */
.ps-tablewrap { margin: 0 -4px; }
.ps-tablewrap.scroll { overflow-x: auto; scrollbar-width: thin; }
table.pst { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.pst col.c-sz { width: 104px; }
.pst thead th { position: sticky; top: var(--fb-top, 0px); z-index: 3; background: var(--surface); padding: 6px 6px 5px; text-align: right; font-weight: 500; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pst thead tr.grp th { top: var(--fb-top, 0px); padding-bottom: 2px; font-size: 11.5px; color: var(--text-3); font-weight: 400; text-align: center; border-bottom: 0; }
.pst thead tr.grp th span { display: block; border-bottom: 1px solid var(--line); padding-bottom: 3px; margin: 0 4px; }
.pst thead tr.hd th { top: calc(var(--fb-top, 0px) + 22px); border-bottom: 1px solid var(--line-2); }
.pst thead tr.hd th b { font-weight: 600; color: var(--text); font-size: 13px; }
.pst thead th.sz { text-align: left; }
.pst thead th.em b { color: var(--text); }
.pst thead th.em { background: var(--em); }
.pst thead th.gs, .pst td.gs { border-left: 1px solid var(--line-2); }
.pst thead tr.hd th small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.pst th[scope=row] { position: sticky; left: 0; z-index: 1; background: inherit; text-align: left; padding: 0 8px; white-space: nowrap; line-height: 1.15; border-right: 1px solid var(--line); }
.pst th[scope=row] b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pst th[scope=row] small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.pst tbody tr { background: var(--surface); }
.pst tbody tr:nth-child(even) { background: var(--surface-2); }
.pst td { height: 36px; padding: 0 6px; border-left: 1px solid var(--fill-1); text-align: right; cursor: pointer; white-space: nowrap; position: relative; }
.pst td.em { background: var(--em); }
.pst td .v { font-weight: 500; color: var(--text); }
.pst td .bd { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .03em; line-height: 15px; padding: 0 3px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; color: var(--cls); background: var(--steel-100); }
.pst td .bd.ne { color: var(--warn-ink); background: var(--warn-bg); }
.pst td .eq { font-size: 10.5px; color: var(--text-3); margin-right: 5px; }
.pst td.na { cursor: default; color: var(--steel-350); text-align: center; }
.pst td.none { cursor: default; text-align: left; color: var(--text-3); font-size: 12px; white-space: normal; line-height: 1.3; }
.pst td.none a { color: var(--text-2); }
/* cross-hair */
.pst tbody tr:hover th[scope=row], .pst tbody tr:hover td { background: var(--hx); }
.pst .hx { background: var(--hx); }
.pst thead th.hx { background: var(--sel-bg-2); }
.pst tbody tr:hover td.hx { background: var(--sel-line); }
.pst td:focus-visible { outline: 2px solid var(--sel); outline-offset: -2px; }
.pst td.sel { box-shadow: inset 0 0 0 2px var(--sel); background: var(--sel-bg); }
.pst td.sel .v { color: var(--sel); }
/* pressure mode */
.pst td.ok .v { color: var(--ok); }
.pst td.ok { background-image: linear-gradient(var(--okbg), var(--okbg)); background-size: 100% 100%; }
.pst td.no .v { color: var(--text-3); font-weight: 400; }   /* not a standard wall for this size: grey, still AA */
.pst td.best::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid var(--ok); border-radius: 5px; pointer-events: none; }
.pst td.sel.best::after { border-color: var(--sel); }
.pst td .star { color: var(--warn-ink); font-weight: 600; margin-left: 1px; }
/* search hits */
.pst td.hit { background: var(--x-fdf3cf, #fdf3cf) !important; }
.pst td.flash { animation: psflash 1.4s ease-out; }
.pst th.flash { animation: psflash 1.4s ease-out; }
@keyframes psflash { 0% { box-shadow: inset 0 0 0 3px var(--x-f2b705, #f2b705); } 100% { box-shadow: inset 0 0 0 3px rgba(242, 183, 5, 0); } }
@media (prefers-reduced-motion: reduce) { .pst td.flash, .pst th.flash { animation: none; } }
.ps-foot { margin: 10px 0 0; line-height: 1.5; }
.ps-tablewrap.scroll + .ps-foot::before { content: "Scroll the table sideways for the heavier schedules. "; }
.ps-colpick { display: none; }

/* ---------- dock: the selected (or hovered) pipe, always in view under the chart ---------- */
.ps-dock { position: sticky; bottom: 10px; z-index: 15; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 9px 14px; background: color-mix(in srgb, var(--surface) 97%, transparent); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .08); }
.ps-dock svg { display: block; }
.ps-dock .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-dock .t small { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.ps-dock .nums { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.ps-dock .nums b { color: var(--text); font-weight: 600; }
.ps-dock .nums .p b { color: var(--ok); }
.ps-dock .nums .p.bad b { color: var(--bad); }
.ps-dock .go { white-space: nowrap; }
.ps-dock.preview { border-color: var(--x-c7d4f3, #c7d4f3); }

/* ---------- detail ---------- */
.ps-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; scroll-margin-top: 12px; }
.ps-dhead { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 12px 16px; flex-wrap: wrap; }
.ps-dtitle { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; min-width: 0; }
.ps-dtitle h2 { font-size: 16px; }
.ps-dsel { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ps-dsel select { width: auto; max-width: 260px; }
.ps-dact { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.ps-dact a.btn { text-decoration: none; }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.ps-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ps-xswrap { display: grid; }
#xs { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
#xs .ring { cursor: pointer; }
table.ps-pt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ps-pt td { padding: 5px 6px; border-bottom: 1px solid var(--fill-1); vertical-align: baseline; }
.ps-pt tr:last-child td { border-bottom: 0; }
.ps-pt td.k { color: var(--text-2); white-space: nowrap; }
.ps-pt td.v { text-align: right; white-space: nowrap; }
.ps-pt td.v b { font-weight: 600; color: var(--text); }
.ps-pt td.v small { color: var(--text-3); margin-left: 3px; font-size: 11.5px; }
.ps-pt td.fx { color: var(--text-3); font-size: 12px; font-style: italic; padding-left: 14px; }
.ps-pt td.fx sup, .ps-pt td.fx sub { font-size: .86em; }
.ps-pt .fm { display: none; }
.ps-pt tr.sec td { padding-top: 12px; font-size: 11.5px; color: var(--text-3); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; border-bottom: 1px solid var(--line); }

.ps-prgrid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px 26px; }
.ps-prin { display: grid; gap: 6px; align-content: start; }
.ps-prin .f { grid-template-columns: minmax(0, 1fr) 132px; }
.ps-prin .f > label { grid-template-columns: minmax(0, 1fr); }
.ps-prin .f.full { grid-template-columns: minmax(0, 1fr); }
.ps-prin select { width: 100%; }
.ps-prin .mnote { font-size: 12px; color: var(--text-3); line-height: 1.45; margin: 4px 0 0; }
.ps-prin .mnote a { color: var(--text-2); }
.ps-prres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; margin-bottom: 4px; }
.ps-prres .big { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.ps-prres .big small { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.ps-prres .k { font-size: 12px; color: var(--text-3); }
.ps-prres .ms { font-size: 13px; }
.ps-prres .line { flex-basis: 100%; font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; }
.ps-prres .line b { color: var(--text); font-weight: 600; }
.ps-prres .warn { color: var(--warn-ink); }
.ps-prres .bad { color: var(--bad-ink); }
#pt { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; margin-top: 4px; }
.ps-pthint { margin: 2px 0 0; }
.ps-rev { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.ps-rev h3 { font-size: 14px; font-weight: 600; margin: 0; }
.ps-revt td.l b { font-weight: 600; }
.ps-revt tr.lt td { background: var(--okbg); }
.ps-revt tr.lt td.l { color: var(--ok); }
.ps-revt tr.cur td.l { color: var(--sel); font-weight: 600; }
.ps-revt tr.other td { color: var(--text-3); }
.ps-revt td .tag { font-size: 11px; color: var(--ok); margin-left: 6px; font-weight: 500; }
.ps-revt .msbar { min-width: 110px; }
.ps-revt tr.toggle td { text-align: left; cursor: pointer; color: var(--text-2); font-size: 12.5px; }

.ps-fits h2 { margin-bottom: 12px; }
.ps-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 26px; }
.ps-fgrid h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.ps-fgrid p { margin: 0 0 6px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ps-fgrid p b { color: var(--text); font-weight: 600; }
.ps-ft { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ps-ft td, .ps-ft th { padding: 4px 6px; border-bottom: 1px solid var(--fill-1); text-align: right; }
.ps-ft th { font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.ps-ft td:first-child, .ps-ft th:first-child { text-align: left; }
.ps-ft tr.okc td { color: var(--ok); }
.ps-ft tr.lo td { font-weight: 600; }
.ps-ft tr.no td { color: var(--ps-no, #6f7176); }
.ps-src li { scroll-margin-top: 80px; }
.ps-src li:target { background: var(--warn-bg); }
.sec-tag { font-style: normal; font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.step .where { font-size: 12px; color: var(--text-3); margin: 6px 0 0; line-height: 1.6; }
.ps-chk { font-size: 12.5px; }
.ps-chk td, .ps-chk th { padding: 3px 8px 3px 0; text-align: left; }
.ps-flags { max-height: 240px; overflow-y: auto; font-size: 12px; }

@media (max-width: 1180px) {
  .ps-dgrid { grid-template-columns: minmax(0, 1fr); }
  .ps-prgrid { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ps-prgrid { grid-template-columns: minmax(0, 1fr); }
  .ps-fgrid { grid-template-columns: minmax(0, 1fr); }
}
/* phones: one schedule at a time, wall · ID · weight (or pressure) side by side */
@media (max-width: 760px) {
  .ps-chart { padding: 12px 12px 10px; }
  .ex-wrap { margin-left: 0; }
  .ex-menu { left: 0; right: auto; min-width: 0; width: calc(100vw - 56px); }
  .ps-std { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-std button { padding: 6px 4px; font-size: 12.5px; }
  .ps-std button small { display: none; }
  .ps-colpick { display: flex; width: 100%; overflow-x: auto; scrollbar-width: thin; margin: 0 0 8px; }
  .ps-colpick button { padding: 5px 10px; flex: 1 0 auto; }
  .ps-colpick.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .ps-colpick.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
  .ps-colpick.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  .pst col.c-sz { width: 92px; }
  .pst td { height: 40px; font-size: 14px; }
  .pst thead tr.hd th { top: var(--fb-top, 0px); }
  .ps-dock { grid-template-columns: 36px minmax(0, 1fr); bottom: 6px; padding: 8px 10px; }
  .ps-dock .go { display: none; }
  .ps-dock .nums { gap: 1px 12px; font-size: 12px; }
  .ps-dsel select { max-width: 44vw; }
  .ps-dsel select#dWall { max-width: 100%; }   /* the wall label ('Sch 40 (STD) · 3.91 mm') is never cut: it takes its own row when it must */
  .ps-revt th:nth-child(2), .ps-revt td:nth-child(2) { display: none; }
  .ps-revt .msbar { min-width: 84px; margin: 0; }
  .ps-cond .num { width: 84px; }
  .ps-pt td.fx { display: none; }
  .ps-pt td.k { white-space: normal; }
  .ps-pt .fm { display: block; font-size: 11.5px; color: var(--text-3); font-style: italic; margin-top: 1px; }
  .pst td.sel { box-shadow: none; background: var(--sel-bg); }
  .pst td .bd { display: none; }
  .ps-dock .t small { display: none; }
}
.ps-pt sub, .ps-pt .fm sub { font-size: .9em; }
@media (max-width: 760px) { .ps-dock .cx { display: none; } }
/* wall table: section icon per row and the failure preview card (lug pattern; screen only) */
.ps-revt td.chk { display: flex; align-items: center; gap: 10px; white-space: normal; }
.ps-revt td.chk .th { flex: none; width: 46px; height: 46px; margin: -10px 0; display: block; }
/* the thumbnails reach a few px past their rows: room under the last one, so the table's scroll box doesn't cut it */
.table-wrap:has(> .ps-revt) { padding-bottom: 4px; }
.ps-revt td.chk .th svg { display: block; }
.ps-revt td.chk:focus-visible { outline: 2px solid var(--sel); outline-offset: -2px; border-radius: 6px; }
.ps-pv { position: fixed; z-index: 60; width: 236px; padding: 8px 8px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 24, 30, .14); pointer-events: none; font-size: 12px; color: var(--text); }
.ps-pv[hidden] { display: none; }
.ps-pv svg { display: block; width: 220px; height: auto; margin: 4px 0 6px; }
.ps-pv .pv-h { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-pv .pv-c { color: var(--text-2); line-height: 1.35; }
.ps-pv .pv-m { margin-top: 4px; color: var(--text-3); }
@media print { .ps-pv { display: none !important; } }
/* tolerances: the standard picker, the side figures and the wall chips */
.ps-dgrid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.ps-tolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -2px 0 10px; font-size: 12.5px; color: var(--text-3); }
.ps-tolbar .tf { display: flex; align-items: center; gap: 6px; }
.ps-tolbar select { width: auto; max-width: 240px; padding-top: 4px; padding-bottom: 4px; }
.ps-tolbar .num input { padding-top: 4px; padding-bottom: 4px; }
.ps-tolbar .note { margin: 0; }
.ps-xswrap { grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 14px; align-items: start; }
.ps-xsside { display: grid; gap: 10px; }
.ps-fig { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 6px; background: var(--surface-2); }
.ps-fig figcaption { font-size: 12px; color: var(--text-3); line-height: 1.35; margin: 0 2px 4px; }
.ps-fig svg { display: block; width: 100%; height: auto; }
.ps-walls { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.ps-wh { font-size: 12px; color: var(--text-3); margin: 0 0 6px; }
.ps-ladder { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-ladder button { display: grid; gap: 1px; justify-items: start; min-width: 84px; padding: 6px 12px 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text-2); text-align: left; }
.ps-ladder button b { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.ps-ladder button span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ps-ladder button:hover, .ps-ladder button.hov { border-color: var(--line-2); background: var(--hx); }
.ps-ladder button[aria-pressed="true"] { border-color: var(--sel); background: var(--sel-bg); }
.ps-ladder button[aria-pressed="true"] b, .ps-ladder button[aria-pressed="true"] span { color: var(--sel); }
.ps-ladder button.plain b { font-weight: 500; color: var(--text-2); }
.ps-ladder button.more { align-content: center; color: var(--text-2); font-size: 12.5px; background: var(--surface-2); }
@media (max-width: 1180px) { .ps-dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ps-xswrap { grid-template-columns: minmax(0, 1fr); } .ps-ladder button { min-width: 0; flex: 1 0 30%; } }
.ps-dcol { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 760px) { .ps-pt td.v { white-space: normal; } }
.ps-none { margin: 0 0 10px; padding: 10px 12px; border-radius: 9px; background: var(--bad-bg); color: var(--text); font-size: 13px; line-height: 1.5; }
.ps-none b { color: var(--bad); font-weight: 600; }
.ps-link { margin: -2px 0 2px; }
.ps-link .linkb { border: 0; background: none; padding: 0; font: inherit; color: var(--sel); cursor: pointer; text-decoration: underline; }
/* panel labels wrap to a second line instead of ending in an ellipsis (T029 QA) */
.f > label span { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.3; }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-6e7177: #85827f; --x-a9bfd0: #3e4d59; --x-b3b9c0: #4a4e53; --x-c47a4a: #eaaa83; --x-c7d4f3: #333b4f;
    --x-cfe5d8: #2a3830; --x-f2b705: #f2c257; --x-fdf3cf: #2e2810;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-6e7177: #85827f; --x-a9bfd0: #3e4d59; --x-b3b9c0: #4a4e53; --x-c47a4a: #eaaa83; --x-c7d4f3: #333b4f;
    --x-cfe5d8: #2a3830; --x-f2b705: #f2c257; --x-fdf3cf: #2e2810;
  }
}
/* theme-auto:end */

/* theme-hand:start · dark values picked by hand (materials keep their real tone); they override the rule above */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ps-no: var(--text-3); }   /* theme: keep */
  :root:not([data-theme="light"]) main.ps { --em: var(--surface-2); --okbg: var(--good-bg); --hx: var(--steel-50); }
}
@media screen {
  :root[data-theme="dark"] { --ps-no: var(--text-3); }   /* theme: keep */
  :root[data-theme="dark"] main.ps { --em: var(--surface-2); --okbg: var(--good-bg); --hx: var(--steel-50); }
}
/* theme-hand:end */
