/* Agent Prompt Library. A research report page: white paper, navy ink, thin rules, square corners,
   one blue for links and selection. No gradients, no shadows, no glows. */

:root {
  --page: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #0B1F33;
  --muted: #4A5565;
  --faint: #6F7B8A;
  --rule: #D0D7DE;
  --line: #B8C0CC;
  --grid: #E7EBF0;
  --shade: #F3F5F8;
  --blue: #1A4E9A;
  --fill: #E2E9F2;
  --tok: #DCE6F3;
  --scrim: rgba(11, 31, 51, .42);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1240px;
  --gutter: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0A111A; --paper: #0D1520; --ink: #E7ECF2; --muted: #A9B4C2; --faint: #8592A3;
    --rule: #233041; --line: #3A4A5E; --grid: #192433; --shade: #142030; --blue: #7FAAE6; --fill: #172A40;
    --tok: #1D3550; --scrim: rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0A111A; --paper: #0D1520; --ink: #E7ECF2; --muted: #A9B4C2; --faint: #8592A3;
  --rule: #233041; --line: #3A4A5E; --grid: #192433; --shade: #142030; --blue: #7FAAE6; --fill: #172A40;
  --tok: #1D3550; --scrim: rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 var(--sans); overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.noscript { padding: 24px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 30px; }
.mark { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; letter-spacing: -.005em; }
.mark:hover { text-decoration: none; }
.nav { display: flex; gap: 24px; align-self: stretch; }
.nav a, .mnav a { color: var(--muted); display: flex; align-items: center; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.nav a:hover, .mnav a:hover { color: var(--ink); text-decoration: none; }
.nav a.on, .mnav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.bar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; min-width: 0; }
.searchbtn { display: flex; align-items: center; gap: 8px; width: 300px; height: 34px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--faint); font-size: 13.5px; cursor: text; text-align: left; min-width: 0; }
.searchbtn .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbtn:hover { border-color: var(--line); }
kbd { font: 11px var(--mono); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; color: var(--faint); }
.iconbtn { width: 34px; height: 34px; flex: none; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.iconbtn:hover { background: var(--shade); }
.mnav { display: none; gap: 22px; padding: 0 var(--gutter); height: 40px; border-top: 1px solid var(--rule); }

/* ---------- page ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 24px; outline: none; min-height: 60vh; }
.hero { padding: 44px 0 0; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
h1 { font-size: 34px; line-height: 1.12; font-weight: 650; letter-spacing: -.016em; margin: 8px 0 12px; }
.lede { max-width: 74ch; color: var(--muted); font-size: 16px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid var(--ink); }
.stat { padding: 14px 16px 0 0; min-width: 0; }
.stat b { display: block; font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { font-size: 12.5px; color: var(--muted); }

.section { padding: 44px 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { font-size: 21px; line-height: 1.2; font-weight: 650; margin: 4px 0 0; letter-spacing: -.01em; }
.sec-head .note { font-size: 13px; color: var(--muted); }
h3 { font-size: 15px; font-weight: 650; margin: 0; }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; }

/* the four steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 16px; }
.steps > div { min-width: 0; }
.steps .k { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 2px; }
.steps p { font-size: 14px; color: var(--muted); margin: 5px 0 0; }

/* controls */
.input { height: 38px; border: 1px solid var(--rule); border-radius: 3px; padding: 0 11px; font: inherit; font-size: 15px; background: var(--paper); color: var(--ink); width: 280px; max-width: 100%; }
.input:focus { border-color: var(--blue); outline: none; }
.input::placeholder { color: var(--faint); }
select.input { width: 100%; padding-right: 28px; }
.btn { height: 38px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.btn:hover { background: var(--shade); text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.btn.primary:hover { background: var(--ink); opacity: .9; }
.toolrow { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.toolrow h2 { font-size: 21px; line-height: 1.2; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.toolrow .note { font-size: 13px; color: var(--muted); }
.toolrow > * { min-width: 0; max-width: 100%; }

/* finder */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; margin-top: 18px; align-items: start; }
.side { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; padding: 0 6px 24px 0; scrollbar-width: thin; }
.side a { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0 4px 10px; color: var(--muted); font-size: 13.5px; border-left: 2px solid var(--rule); line-height: 1.35; }
.side a:hover { color: var(--ink); text-decoration: none; }
.side a.on { color: var(--ink); border-left-color: var(--blue); font-weight: 600; }
.side a.off, .side a.off .c { color: var(--faint); opacity: .7; }
.side .c { font-variant-numeric: tabular-nums; color: var(--faint); font-size: 12.5px; font-weight: 400; }
.side .grp { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 18px 0 5px 12px; }
.side .grp:first-child { margin-top: 0; }
.pane { min-width: 0; }
.pickers { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 4px; }
.pickers label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

.qlabel { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.taskgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.taskgrid button { background: var(--paper); border: 0; padding: 10px 12px 11px; text-align: left; cursor: pointer; min-width: 0; display: flex; flex-direction: column; gap: 2px; min-height: 64px; }
.taskgrid button:hover { background: var(--shade); }
.taskgrid .tn { font-size: 14px; font-weight: 600; line-height: 1.3; display: flex; justify-content: space-between; gap: 8px; }
.taskgrid .tn i { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.taskgrid .ta { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.taskgrid button.on { background: var(--fill); box-shadow: inset 0 -2px 0 var(--blue); }
.taskgrid button.off { color: var(--faint); }
.taskgrid button.off .tn { color: var(--faint); }
.taskgrid .all { grid-column: 1 / -1; min-height: 0; flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 12px; }

.filterrow { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.filterrow .input { width: 340px; }
.filterrow .count { font-size: 13px; color: var(--muted); margin-left: auto; }

.plist { margin-top: 4px; }
.plist .grp { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 22px 0 7px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; }
.plist .grp a { color: var(--faint); font-weight: 600; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 210px 72px; gap: 4px 24px; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); align-items: start; }
.prow:hover { background: var(--shade); box-shadow: -8px 0 0 var(--shade), 8px 0 0 var(--shade); text-decoration: none; }
.prow .pn { font-weight: 600; font-size: 15px; line-height: 1.35; }
.prow .ps { font-size: 13.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .pm { font-size: 13px; color: var(--muted); line-height: 1.4; padding-top: 1px; }
.prow .pw { font-size: 12.5px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; }
.prow .pm-m { display: none; }
.more { margin: 16px 0 0; }

/* prompt page */
.crumbs { font-size: 13px; color: var(--faint); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.ph { padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.ph h1 { margin: 6px 0 8px; }
.ph .lede { font-size: 16.5px; }
.meta { font-size: 13.5px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.meta span { white-space: nowrap; }
.meta span.wrap { white-space: normal; }
@media (max-width: 420px) { .meta span { white-space: normal; } }
.meta .code { white-space: normal; overflow-wrap: anywhere; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 26px; align-items: start; }
.fieldbox { padding: 16px 18px 16px; background: var(--shade); border: 1px solid var(--rule); border-radius: 3px; }
.fieldbox label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fieldrow { display: flex; gap: 8px; flex-wrap: wrap; }
.fieldrow .input { flex: 1 1 240px; width: auto; font-size: 16px; }
.fieldbox .hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ptext { margin-top: 26px; max-width: 76ch; }
.pp { margin: 0 0 18px; }
.pp .lab { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pp .body { font-size: 15.5px; line-height: 1.66; white-space: pre-line; overflow-wrap: anywhere; }
.tok { background: var(--tok); color: var(--ink); padding: 0 3px; border-radius: 2px; font-weight: 600; }
.tok.empty { color: var(--blue); font-weight: 600; }
.aside { position: sticky; top: 76px; }
.aside .blk { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.aside .blk:last-child { border-bottom: 0; }
.aside h3 { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.aside ol { margin: 0; padding: 0 0 0 22px; font-size: 13.5px; color: var(--ink); }
.aside ol li { padding: 2px 0; }
.aside ol li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
.aside p { font-size: 13.5px; color: var(--muted); margin: 0; }
.aside .links a { display: block; font-size: 13.5px; padding: 3px 0; }
.aside .links span { color: var(--faint); font-size: 12.5px; }
.copybar { display: none; }
.copybar.on { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--paper); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.cb-in { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter); display: flex; gap: 8px; align-items: center; }
.cb-t { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-t span { color: var(--muted); margin-left: 10px; }
body.has-bar .foot-in { padding-bottom: 96px; }

/* brief options and the answer check */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.tries button, .linkbtn { background: none; border: 0; padding: 2px 3px; color: var(--blue); font: inherit; font-size: 13px; cursor: pointer; }
.tries button:hover, .linkbtn:hover { text-decoration: underline; }
.fieldbox .chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.chk input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
textarea.input { display: block; width: 100%; height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.notesbox { margin-top: 10px; }
.notesbox[hidden] { display: none; }
.checksec { margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--ink); }
.checksec h2 { font-size: 19px; line-height: 1.25; font-weight: 650; margin: 2px 0 4px; letter-spacing: -.01em; }
.checksec > p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.score { font-size: 14px; margin: 14px 0 8px; color: var(--muted); }
.score b { color: var(--ink); font-weight: 650; }
.secs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.secs li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.secs li span { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); white-space: nowrap; padding-top: 2px; }
.secs li.miss { font-weight: 600; }
.secs li.miss span { color: var(--ink); }
.follow { margin-top: 14px; padding: 14px 16px; background: var(--shade); border: 1px solid var(--rule); border-radius: 3px; }
.follow .lab { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.follow p { margin: 4px 0 12px; font-size: 14.5px; line-height: 1.6; }
.follow p:last-child { margin-bottom: 0; }
@media (min-width: 1101px) {
  .ptext { max-width: none; }
  .pp { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 0 22px; }
  .pp .lab { text-align: right; padding-top: 5px; margin: 0; }
  .pp .body { grid-column: 2; max-width: 70ch; }
}

/* how to use */
.prose { max-width: 76ch; }
.prose p { margin: 10px 0 0; }
.prose code, .tbl code { font: 12.5px var(--mono); background: var(--shade); padding: 1px 4px; border-radius: 3px; }
.big-steps { counter-reset: s; margin: 18px 0 0; padding: 0; list-style: none; max-width: 80ch; }
.big-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.big-steps li::before { counter-increment: s; content: counter(s); font-size: 22px; font-weight: 650; color: var(--faint); font-variant-numeric: tabular-nums; line-height: 1.2; }
.big-steps h3 { font-size: 16px; }
.big-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 16px; }
.vs > div { background: var(--paper); padding: 16px 18px; min-width: 0; }
.vs h3 { font-size: 14px; }
.vs .q { font: 13px/1.55 var(--mono); background: var(--shade); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; margin: 10px 0 12px; overflow-wrap: anywhere; }
.vs ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.vs li { padding: 2px 0; }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 16px; }
.parts > div { background: var(--paper); padding: 14px 16px; min-width: 0; }
.parts .v { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.parts .l { font-size: 14px; font-weight: 600; margin-top: 2px; }
.parts p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.source-line { font-size: 11.5px; color: var(--faint); margin-top: 10px; }

/* agents */
pre.code-block { background: var(--shade); border: 1px solid var(--rule); border-radius: 3px; padding: 12px 14px; font: 12.5px/1.6 var(--mono); overflow-x: auto; margin: 10px 0 0; color: var(--ink); white-space: pre; max-width: 100%; }
.tblwrap { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.tbl th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 9px 12px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td:first-child, .tbl th:first-child { padding-left: 0; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 16px; }
.cols3 p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* search */
.pal { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: none; }
.pal.on { display: flex; align-items: flex-start; justify-content: center; padding-top: 11vh; }
.pal-box { width: min(680px, calc(100% - 32px)); background: var(--paper); border: 1px solid var(--ink); }
.pal input { width: 100%; height: 52px; border: 0; border-bottom: 1px solid var(--rule); padding: 0 16px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); outline: none; }
.pal-res { max-height: 62vh; overflow: auto; padding-bottom: 6px; }
.pal-res .h { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 12px 16px 4px; }
.pal-res a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 16px; color: var(--ink); font-size: 14px; }
.pal-res a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-res a span:last-child { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.pal-res a.on, .pal-res a:hover { background: var(--shade); text-decoration: none; }
.pal-res .none { padding: 16px; color: var(--muted); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--paper); font-size: 13.5px; padding: 9px 14px; border-radius: 3px; display: none; max-width: calc(100% - 32px); text-align: center; }

footer { border-top: 1px solid var(--rule); margin-top: 56px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 40px; font-size: 12.5px; color: var(--faint); }
.foot-in p { margin: 4px 0; }
.foot-in a { color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .searchbtn { width: 220px; }
  .layout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .taskgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats .stat:nth-child(n+4) { padding-top: 16px; }
  .pgrid { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
  .prow { grid-template-columns: minmax(0, 1fr) 170px 70px; gap: 4px 16px; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { display: block; }
  .aside { position: static; margin-top: 28px; border-top: 1px solid var(--ink); padding-top: 18px; }
  .cols3, .parts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .parts { gap: 1px; }
}
@media (pointer: coarse) {
  .mark { display: flex; align-items: center; min-height: 44px; }
  .searchbtn, .iconbtn { height: 40px; }
  .iconbtn { width: 40px; }
  .sec-head .note a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .side a { padding-top: 11px; padding-bottom: 11px; }
  .aside .links a { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .aside .links a:last-child { border-bottom: 0; }
  .input { font-size: 16px; }
  .taskgrid button { min-height: 72px; }
  .taskgrid .all { min-height: 44px; }
  .tries button, .linkbtn { min-height: 40px; padding: 0 8px; }
  .fieldbox .chk { min-height: 40px; }
  .chk input { width: 20px; height: 20px; }
}
@media (max-width: 760px) {
  .cb-t { display: none; }
  .copybar .btn { flex: 1; height: 44px; }
  .copybar .btn.link { flex: 0 0 auto; }
  :root { --gutter: 16px; }
  .bar-in { height: 52px; gap: 12px; }
  .nav { display: none; }
  .mnav { display: flex; }
  .searchbtn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .iconbtn { width: 38px; height: 38px; }
  .searchbtn .t, .searchbtn kbd { display: none; }
  .mnav a { min-height: 40px; }
  .hero { padding-top: 26px; }
  h1 { font-size: 27px; }
  .lede { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:nth-child(n+3) { padding-top: 14px; }
  .stat b { font-size: 21px; }
  .section { padding-top: 32px; }
  .steps { gap: 18px; }
  .layout { display: block; margin-top: 12px; }
  .side { display: none; }
  .pickers { display: grid; }
  .taskgrid, .qlabel { display: none; }
  .filterrow .input { width: 100%; }
  .filterrow .count { margin-left: 0; }
  .prow { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .prow .pm, .prow .pw { display: none; }
  .prow .pm-m { display: block; font-size: 12.5px; color: var(--faint); margin-top: 3px; }
  .prow:hover { box-shadow: none; }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .ph .lede { font-size: 15.5px; }
  .fieldbox { padding: 14px; }
  .fieldrow .input { flex: 1 1 100%; }
  .fieldrow .btn { flex: 1 1 auto; }
  .pp .body { font-size: 15px; }
  .big-steps li { grid-template-columns: 32px minmax(0, 1fr); }
  .tbl { font-size: 13.5px; }
  .tbl td, .tbl th { padding-left: 8px; padding-right: 8px; }
  .btn { height: 42px; }
  .input { height: 42px; font-size: 16px; }

}
@media (max-width: 420px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pickers { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .bar, .mnav, footer, .side, .pickers, .taskgrid, .filterrow, .fieldbox, .aside, .copybar, .checksec { display: none !important; } .pgrid, .layout { display: block; } }
