:root {
  --bg: #f1f3f8; --panel: #ffffff; --panel2: #f7f8fb; --ink: #17202f; --muted: #5b6680; --faint: #8a93a8;
  --line: #dde2ec; --line2: #c9d1e0; --brand: #001d55; --brandText: #001d55; --red: #ef0220; --redText: #c4001b;
  --tint: #eef2f9; --tint2: #e3e9f5; --ok: #1d7444; --okBg: #e7f5ec; --warn: #8a5a00; --warnBg: #fff4dc; --bad: #c4001b; --badBg: #ffeef0;
  --focus: #2457d6; --shadow: 0 1px 2px rgba(10,22,52,.06), 0 4px 14px rgba(10,22,52,.06);
  --ui: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Montserrat", "Barlow", system-ui, sans-serif;
  --cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1120; --panel: #121a2c; --panel2: #0f1626; --ink: #e5e9f2; --muted: #9aa5bc; --faint: #6f7a92;
  --line: #243049; --line2: #2f3d5b; --brandText: #9fb8ff; --redText: #ff6b78;
  --tint: #18233a; --tint2: #1e2b46; --ok: #5fd08f; --okBg: #123222; --warn: #f3c25b; --warnBg: #33270c; --bad: #ff6b78; --badBg: #3a1218;
  --focus: #7ea2ff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0b1120; --panel: #121a2c; --panel2: #0f1626; --ink: #e5e9f2; --muted: #9aa5bc; --faint: #6f7a92;
  --line: #243049; --line2: #2f3d5b; --brandText: #9fb8ff; --redText: #ff6b78;
  --tint: #18233a; --tint2: #1e2b46; --ok: #5fd08f; --okBg: #123222; --warn: #f3c25b; --warnBg: #33270c; --bad: #ff6b78; --badBg: #3a1218;
  --focus: #7ea2ff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3); color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 15px/1.4 var(--ui); margin: 0; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--brand); color: #fff;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top-in { display: flex; align-items: center; gap: 12px; height: 56px; }
.top-logo { height: 24px; width: auto; display: block; }
.top-app { font: 600 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: #b9c6e6; border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; white-space: nowrap; }
.top-sp { flex: 1; }
.top-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.top-btn:hover { background: rgba(255,255,255,.16); }
.top-btn.red { background: var(--red); border-color: var(--red); }
.top-btn.red:hover { filter: brightness(1.08); }
.top-save { font-size: 12.5px; color: #b9c6e6; white-space: nowrap; }
.top-stripe { height: 3px; background: linear-gradient(90deg, var(--red) 0 22%, transparent 22%); }
@media (max-width: 640px) { .top-app, .top-save { display: none; } .top-logo { height: 18px; } .top-btn .lbl { display: none; } }

/* layout */
.wrap { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 0; min-height: calc(100vh - 59px); }
.edit { border-right: 1px solid var(--line); padding: 18px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
.view { position: sticky; top: 59px; height: calc(100vh - 59px); overflow: auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 40px 24px; min-width: 0; }
.tabs { display: none; }
@media (max-width: 1080px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .edit { border-right: 0; }
  .view { position: static; height: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-bottom: 120px; }
  .tabs { display: flex; position: sticky; top: calc(59px + env(safe-area-inset-top, 0px)); z-index: 15; background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); gap: 4px; }
  .tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 11px 6px 9px; font-weight: 600; color: var(--muted); }
  .tabs button[aria-selected="true"] { color: var(--brandText); border-color: var(--red); }
  body[data-tab="edit"] .view, body[data-tab="check"] .view { display: none; }
  body[data-tab="preview"] .edit, body[data-tab="check"] .edit .card:not(.checkcard), body[data-tab="check"] .edit .notice { display: none; }
}

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.card-n { font: 800 12px/1 var(--head); color: #fff; background: var(--red); min-width: 26px; height: 22px; display: grid; place-items: center; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); padding: 0 6px; }
.card-t { font: 800 13.5px/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--brandText); margin: 0; }
.card-s { color: var(--muted); font-size: 13px; margin-left: auto; text-align: right; }
.card-b { padding: 4px 16px 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

/* fields */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid, .grid.g3 { grid-template-columns: minmax(0, 1fr); } }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f > span { font: 600 11.5px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.f > span em { font-style: normal; color: var(--redText); }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-width: 0; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
textarea { resize: vertical; min-height: 40px; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); background: var(--panel); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1 1 auto; border: 0; background: var(--panel2); padding: 9px 12px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line2); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.btn { border: 1px solid var(--line2); background: var(--panel); border-radius: 8px; padding: 7px 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--brandText); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brandText); padding: 6px 8px; }
.btn.sm { padding: 4px 8px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--muted); display: inline-flex; align-items: center; }
.icon:hover { background: var(--tint); color: var(--ink); }
.icon svg, .btn svg, .top-btn svg, .flagbtn svg, .card-n svg { width: 16px; height: 16px; flex: none; }
.flagbtn svg { width: 14px; height: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; }
.chip { text-align: left; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--tint2); border-color: var(--brandText); color: var(--brandText); }
.chip[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sub { font: 700 12px/1.2 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--brandText); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.sub .btn { margin-left: auto; text-transform: none; letter-spacing: 0; font-family: var(--ui); }
.money { font-variant-numeric: tabular-nums; }

/* findings */
.finding { border: 1px dashed var(--line2); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.ph { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; max-width: 100%; }
.ph input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 13px; padding: 6px 8px; background: var(--panel); }
.ph .icon { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; width: 26px; height: 26px; }
.ph.busy img { opacity: .4; }
.drop { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--line2); border-radius: 8px; min-height: 64px; color: var(--muted); font-weight: 600; background: transparent; width: 100%; }
.drop:hover { border-color: var(--brandText); color: var(--brandText); }

/* scope blocks */
.block { border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 14px; background: var(--panel); overflow: hidden; }
.block-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; background: var(--tint); border-bottom: 1px solid var(--line); }
.block-n { font: 800 12px/1 var(--head); color: #fff; background: var(--brand); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.block-t { flex: 1; min-width: 0; }
.block-t input { font: 600 15.5px/1.2 var(--ui); background: transparent; border-color: transparent; padding: 5px 6px; color: var(--brandText); }
.block-t input:hover { border-color: var(--line2); }
.block-t small { display: block; color: var(--muted); font-size: 12px; padding-left: 7px; }
.block-tot { font: 700 14px/1 var(--ui); color: var(--brandText); white-space: nowrap; }
.block-b { padding: 12px; }
.block.closed .block-b { display: none; }
.units { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.stepper button { border: 0; background: var(--panel2); width: 34px; height: 36px; font-size: 18px; font-weight: 700; color: var(--brandText); }
.stepper output { min-width: 40px; text-align: center; font: 700 16px/36px var(--ui); }
.tag { width: 92px !important; padding: 7px 8px !important; font-weight: 600; }
.eqwrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
.eq { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13.5px; }
.eq th { font: 600 11px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 7px 6px; background: var(--panel2); }
.eq td { padding: 3px; border-top: 1px solid var(--line); }
.eq input { padding: 6px 7px; font-size: 13.5px; border-radius: 6px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.li { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 3px 2px; border-radius: 8px; }
.li:hover { background: var(--panel2); }
.li .num { font: 700 13px/32px var(--ui); color: var(--faint); text-align: right; }
.li input[type=checkbox] { margin: 10px 0 0 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.li textarea { resize: none; min-height: 34px; padding: 6px 8px; font-size: 14.5px; background: transparent; border-color: transparent; overflow: hidden; }
.li textarea:hover { border-color: var(--line2); }
.li.addon .num::after { content: "+"; color: var(--redText); font-weight: 800; margin-left: 1px; }
.li.addon textarea { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--red) 55%, transparent); }
.li.off textarea { text-decoration: line-through; color: var(--faint); }
.li .tools { display: flex; gap: 0; opacity: .25; padding-top: 2px; }
.li:hover .tools, .li:focus-within .tools { opacity: 1; }
.li .edited { font: 600 10.5px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--warn); background: var(--warnBg); border-radius: 4px; padding: 3px 5px; margin-top: 8px; border: 0; }
.li .addon-badge { font: 600 10.5px/1 var(--cond); text-transform: uppercase; color: var(--brandText); background: var(--tint2); border-radius: 4px; padding: 3px 5px; }
@media (hover: none) { .li .tools { opacity: 1; } }
@media (max-width: 600px) {
  .li { grid-template-columns: 20px 20px minmax(0, 1fr); }
  .li .tools { grid-column: 3; justify-content: flex-end; display: none; opacity: 1; }
  .li:focus-within .tools { display: flex; }
}
.addline { display: flex; gap: 6px; margin-top: 6px; }
.addline input { flex: 1; }

/* price lines */
.lines { display: flex; flex-direction: column; gap: 8px; }
.ln { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; background: var(--panel); }
.ln.off { opacity: .5; }
.ln.miss { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: color-mix(in srgb, var(--badBg) 50%, var(--panel)); }
.ln select { padding: 6px 6px; font-size: 13px; }
.ln .desc { font-size: 14px; padding: 6px 8px; }
.ln .amt { font: 700 14.5px/1 var(--ui); text-align: right; min-width: 92px; color: var(--brandText); font-variant-numeric: tabular-nums; }
.ln .amt.miss { color: var(--bad); font-size: 12px; }
.ln .nums { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ln .nums label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ln .nums input[type=text], .ln .nums input[type=number] { width: 84px; padding: 5px 7px; font-size: 14px; }
.ln .nums input.w { width: 130px; }
.ln .nums .x { margin-left: auto; display: flex; gap: 2px; }
.ln .calc { font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .ln { grid-template-columns: minmax(0, 1fr) auto; } .ln select.kind { grid-column: 1 / -1; } }

/* totals */
.tots { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tots div { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tots div:first-child { border-top: 0; }
.tots .big { background: var(--brand); color: #fff; font: 800 18px/1.2 var(--head); }
.tots .over { background: var(--badBg); color: var(--bad); font-weight: 700; }

/* checks */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.checks li button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; border-radius: 8px; display: grid; grid-template-columns: 20px 1fr; gap: 6px; align-items: start; font-size: 14px; }
.checks li button:hover { background: var(--panel2); }
.checks .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.checks .lvl-block .dot { background: var(--bad); }
.checks .lvl-warn .dot { background: #e0a100; }
.checks .lvl-info .dot { background: var(--line2); }
.allgood { background: var(--okBg); color: var(--ok); padding: 10px 12px; border-radius: 8px; font-weight: 600; }

/* view toolbar */
.vbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vbar .meta { margin-right: auto; display: flex; gap: 8px; align-items: center; min-width: 0; }
.vbar .qn { font: 800 15px/1 var(--head); color: var(--brandText); white-space: nowrap; }
.vbar select { width: auto; padding: 6px 8px; font-size: 13.5px; }
.flagbtn { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; border: 1px solid transparent; }
.flagbtn.bad { background: var(--badBg); color: var(--bad); }
.flagbtn.ok { background: var(--okBg); color: var(--ok); }
.flagbtn.warn { background: var(--warnBg); color: var(--warn); }
.notice { background: var(--warnBg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #0f1830; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.3); z-index: 60; font-weight: 600; max-width: calc(100vw - 32px); }

/* overlays */
.ov { position: fixed; inset: 0; background: rgba(6,12,28,.55); z-index: 40; display: flex; justify-content: flex-end; }
.ov.center { justify-content: center; align-items: flex-start; padding: calc(40px + env(safe-area-inset-top, 0px)) 16px 16px; overflow: auto; }
.sheet { background: var(--panel); width: min(520px, 100%); height: 100%; overflow: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 16px; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
.modal { background: var(--panel); width: min(760px, 100%); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.modal-h, .sheet-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-h { padding: 0 0 12px; margin-bottom: 12px; }
.modal-h h2, .sheet-h h2 { font: 800 15px/1.2 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--brandText); margin: 0; flex: 1; }
.modal-b { padding: 14px 16px 18px; max-height: calc(100vh - 160px); overflow: auto; }
.pick-cat { font: 700 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.pick button { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.pick button:hover { border-color: var(--brandText); background: var(--tint); }
.pick b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.pick small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.qlist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.qrow { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.qrow:hover { border-color: var(--brandText); }
.qrow.cur { border-color: var(--red); }
.qrow b { color: var(--brandText); font-size: 14.5px; }
.qrow .r { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.qrow small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font: 700 10.5px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 8px; background: var(--tint2); color: var(--brandText); }
.pill.sent { background: var(--warnBg); color: var(--warn); }
.pill.approved { background: var(--okBg); color: var(--ok); }
.pill.declined { background: var(--badBg); color: var(--bad); }
.nest { display: flex; flex-direction: column; gap: 8px; }
.nest .nf { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.nest .nf span { font: 600 12px/1.3 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.nest .nf pre { margin: 0; white-space: pre-wrap; font: 14px/1.4 var(--ui); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .nest .nf { grid-template-columns: minmax(0, 1fr) auto; } .nest .nf span { grid-column: 1 / -1; } }
.confirm { display: inline-flex; gap: 6px; align-items: center; background: var(--badBg); color: var(--bad); border-radius: 8px; padding: 4px 6px 4px 10px; font-weight: 600; font-size: 13px; }
.logo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.logo-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: #fff; color: #17202f; }
.logo-item img { max-height: 28px; max-width: 120px; }

/* ───────── preview paper (a printed page: fixed paper colors in both themes) ───────── */
.paperwrap { padding-bottom: 30px; }
.pv-page { position: relative; background: #fff; color: #1b2333; max-width: 860px; margin: 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 50px rgba(10,22,52,.14); border-radius: 4px; padding: 0 clamp(18px, 5.5%, 52px) 30px; font: 14px/1.45 var(--ui); overflow: hidden; }
.pv-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #001d55 0 5%, #ef0220 5% 20%, #001d55 20%); }
.pv-mark { position: absolute; right: -30px; bottom: 40px; width: 46%; opacity: .05; pointer-events: none; }
.pv-mark img { width: 100%; }
.pv-draft { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-32deg); font: 800 clamp(70px, 16vw, 170px)/1 var(--head); color: #ef0220; opacity: .07; pointer-events: none; letter-spacing: .06em; }
.pv-head { display: flex; justify-content: space-between; align-items: stretch; margin: 0 calc(-1 * clamp(18px, 5.5%, 52px)); min-height: 96px; }
.pv-logo { width: clamp(150px, 34%, 290px); height: auto; align-self: center; margin-left: clamp(18px, 5.5%, 52px); }
.pv-tag { background: #001d55; color: #fff; padding: 18px clamp(18px, 5.5%, 52px) 14px 70px; clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%); text-align: right; position: relative; display: flex; flex-direction: column; justify-content: center; }
.pv-tag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 70px; background: linear-gradient(115deg, transparent 0 38%, #ef0220 38% 52%, transparent 52%); }
.pv-tag-t { font: 800 clamp(20px, 3vw, 30px)/1 var(--head); letter-spacing: .18em; }
.pv-tag-n { font-size: 12.5px; color: #c7d1e8; margin-top: 4px; }
.pv-title { margin: 26px 0 6px; }
.pv-kicker { font: 600 12px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #ef0220; }
.pv-title h1 { font: 800 clamp(20px, 2.6vw, 27px)/1.15 var(--head); color: #001d55; margin: 6px 0 0; text-wrap: balance; }
.pv-missing { border: 1.5px solid #ef0220; background: #fff5f6; border-radius: 6px; padding: 10px 14px; margin: 14px 0 4px; }
.pv-missing strong { font: 700 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #ef0220; }
.pv-missing ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.pv-missing li.lvl-block { color: #b00018; }
.pv-missing li.lvl-warn { color: #7a5a00; }
.pv-h { display: flex; align-items: center; gap: 12px; font: 800 16px/1.2 var(--head); letter-spacing: .07em; text-transform: uppercase; color: #001d55; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #d5dbe7; }
.pv-n { color: #ef0220; display: inline-flex; align-items: center; gap: 8px; }
.pv-n::before { content: ""; width: 13px; height: 19px; background: #ef0220; clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
.pv-glance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 34%); }
.pv-gl-l { background: #eef2f9; padding: 14px 16px 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pv-refs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.pv-kv { margin-bottom: 10px; min-width: 0; }
.pv-kv span, .pv-refs span { display: block; font: 600 11px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #5d6880; }
.pv-kv b, .pv-refs b { font-weight: 500; overflow-wrap: anywhere; }
.pv-refs div { margin-bottom: 10px; min-width: 0; }
.pv-total { background: #001d55; color: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.pv-total-l { font: 600 12px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #c7d1e8; }
.pv-total-v { font: 800 clamp(22px, 3vw, 30px)/1.1 var(--head); margin: 6px 0; font-variant-numeric: tabular-nums; }
.pv-total-s { font-size: 12.5px; color: #c7d1e8; }
.pv-rec { margin-top: 10px; background: #f7f8fb; border-left: 4px solid #ef0220; padding: 10px 14px; color: #001d55; font-weight: 500; font-size: 15px; }
.pv-rec span { display: block; font: 600 11px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #5d6880; margin-bottom: 4px; }
.pv-p { margin: 0 0 10px; max-width: 75ch; }
.pv-muted { color: #5d6880; }
.pv-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 6px 0 14px; }
.pv-photos figure { margin: 0; }
.pv-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 3px; max-width: 100%; }
.pv-photos figcaption { font-size: 12.5px; font-style: italic; color: #5d6880; text-align: center; margin-top: 5px; }
.pv-scope { margin-bottom: 18px; }
.pv-scope-h { display: flex; align-items: stretch; background: #eef2f9; margin-bottom: 8px; }
.pv-scope-n { background: #001d55; color: #fff; font: 800 13px/1 var(--head); width: 30px; display: grid; place-items: center; flex: none; }
.pv-scope-h h3 { font: 600 16px/1.2 var(--cond); color: #001d55; margin: 0; padding: 8px 10px; flex: 1; }
.pv-chip { font: 600 11px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: #ef0220; align-self: center; padding: 0 10px; white-space: nowrap; }
.pv-chip.red { background: #ef0220; color: #fff; padding: 3px 7px; border-radius: 2px; }
.pv-explain { font-size: 13px; color: #5d6880; margin: -4px 0 10px; }
.pv-explain::before { content: "What is this? "; font-weight: 600; color: #001d55; }
.pv-note { font-size: 13px; font-style: italic; color: #5d6880; margin: 0 0 6px; }
.pv-steps { margin: 0 0 6px; padding-left: 26px; }
.pv-steps li { margin-bottom: 3px; padding-left: 3px; }
.pv-steps li::marker { color: #001d55; font-weight: 700; }
.pv-tablewrap { overflow-x: auto; margin-bottom: 12px; }
.pv-page table { border-collapse: collapse; width: 100%; font-size: 13px; }
.pv-eq th { font: 600 11px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: #5d6880; text-align: left; padding: 5px 6px; border-bottom: 1px solid #d5dbe7; }
.pv-eq td { padding: 4px 6px; }
.pv-parts th, .pv-price th { background: #001d55; color: #fff; font: 600 11px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 7px 8px; }
.pv-parts td, .pv-price td { padding: 7px 8px; vertical-align: top; }
.pv-parts tbody tr:nth-child(even), .pv-price tbody tr:nth-child(even) { background: #f5f7fb; }
.pv-page .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-sub { font-size: 11.5px; color: #5d6880; }
.pv-brand { font: 600 14px/1 var(--cond); color: #001d55; }
.pv-brandlogo { max-height: 22px; max-width: 110px; }
.pv-price td:first-child { font: 600 12.5px/1.3 var(--cond); color: #001d55; white-space: nowrap; }
.pv-price td:nth-child(3) { color: #5d6880; font-size: 12.5px; }
.pv-price tr.miss td:last-child { color: #ef0220; font-weight: 700; }
.pv-price tfoot td { background: #eef2f9; font-weight: 600; text-align: right; }
.pv-price tfoot tr.tot td { background: #001d55; color: #fff; font: 800 14px/1.2 var(--head); }
.pv-h4 { font: 700 12.5px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #001d55; margin: 16px 0 8px; }
.pv-h4.ok { color: #1f6f43; }
.pv-h4.no { color: #ef0220; }
.pv-pricebox { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 10px 0; }
.pv-pricebox span { background: #eef2f9; font: 800 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #001d55; padding: 18px 16px; }
.pv-pricebox b { background: #001d55; color: #fff; font: 800 24px/1 var(--head); padding: 14px 18px; display: flex; align-items: center; }
.pv-pricebox em { grid-column: 1 / -1; font-size: 12px; color: #5d6880; text-align: right; margin-top: 4px; }
.pv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid #d5dbe7; border-top: 4px solid #001d55; }
.pv-opt { padding: 14px; border-right: 1px solid #d5dbe7; background: #fafbfd; position: relative; }
.pv-opt:last-child { border-right: 0; }
.pv-opt.rec { background: #fff; box-shadow: inset 0 4px 0 #ef0220; }
.pv-opt-flag { display: inline-block; background: #ef0220; color: #fff; font: 600 11px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; margin-bottom: 8px; }
.pv-opt-n { font: 600 16px/1.2 var(--cond); color: #001d55; }
.pv-opt-v { font: 800 22px/1.2 var(--head); color: #001d55; margin: 4px 0 8px; }
.pv-opt.rec .pv-opt-v { color: #ef0220; }
.pv-opt ul { margin: 0; padding-left: 18px; font-size: 13px; }
.pv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 640px) { .pv-two, .pv-glance, .pv-photos { grid-template-columns: minmax(0, 1fr); } .pv-gl-l { grid-template-columns: minmax(0, 1fr); } .pv-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-check, .pv-x { list-style: none; padding: 0; margin: 0 0 8px; font-size: 13.5px; }
.pv-check li, .pv-x li { position: relative; padding-left: 22px; margin-bottom: 5px; }
.pv-check li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 9px; height: 5px; border-left: 2px solid #1f8a4c; border-bottom: 2px solid #1f8a4c; transform: rotate(-45deg); }
.pv-x li::before, .pv-x li::after { content: ""; position: absolute; left: 6px; top: 3px; width: 2px; height: 11px; background: #ef0220; transform: rotate(45deg); }
.pv-x li::after { transform: rotate(-45deg); }
.pv-dots { margin: 0 0 10px; padding-left: 18px; font-size: 13.5px; }
.pv-dots li { margin-bottom: 4px; }
.pv-notice { background: #eef2f9; border-left: 4px solid #001d55; padding: 10px 14px; margin: 8px 0; font-size: 13px; }
.pv-notice b { font: 600 14px/1.2 var(--cond); color: #001d55; }
.pv-notice p { margin: 4px 0 0; }
.pv-small { font-size: 12px; color: #5d6880; }
.pv-optpick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.pv-optpick span { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.pv-optpick i { width: 13px; height: 13px; border: 1.5px solid #001d55; display: inline-block; }
.pv-sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin: 6px 0 16px; }
.pv-sign div span { display: block; border-bottom: 1px solid #1b2333; height: 34px; }
.pv-sign em { font-style: normal; font-size: 12px; color: #5d6880; }
.pv-rep { background: #f7f8fb; border-left: 4px solid #ef0220; padding: 9px 14px; font-size: 13.5px; color: #5d6880; }
.pv-rep b { color: #001d55; }
.pv-terms { columns: 2 260px; column-gap: 26px; font-size: 12px; color: #2b3447; }
.pv-terms p { margin: 0 0 7px; break-inside: avoid; }
.pv-terms b { color: #001d55; }
.pv-foot { margin-top: 26px; padding-top: 10px; border-top: 1px solid #d5dbe7; font-size: 11.5px; color: #5d6880; }

/* about-us page in the preview */
.pv-mkt { margin-top: 34px; padding-top: 26px; border-top: 2px dashed #d5dbe7; }
.pv-mkt-hero { position: relative; overflow: hidden; background: #001d55; color: #fff; padding: 20px 22px; }
.pv-mkt-hero .pv-kicker { color: #ff8a95; }
.pv-mkt-hero h2 { font: 800 clamp(18px, 2.4vw, 23px)/1.2 var(--head); margin: 6px 0 8px; text-wrap: balance; max-width: 34ch; }
.pv-mkt-hero p { margin: 0; color: #d7def0; max-width: 72ch; font-size: 14px; }
.pv-mkt-mark { position: absolute; right: -10px; bottom: -18px; width: 120px; opacity: .14; pointer-events: none; }
.pv-mkt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.pv-card { background: #f8f9fc; padding: 14px 16px; position: relative; }
.pv-card.lead { background: #eef2f9; }
.pv-card::before { content: ""; display: block; width: 32px; height: 5px; background: #ef0220; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); margin-bottom: 8px; }
.pv-card h3 { font: 600 17px/1.2 var(--cond); color: #001d55; margin: 0 0 6px; }
.pv-card p { margin: 0 0 8px; font-size: 13px; }
.pv-card ul { margin: 0; padding-left: 18px; font-size: 13px; }
.pv-card li::marker { color: #ef0220; }
.pv-creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid #ef0220; border-bottom: 1px solid #d5dbe7; margin-bottom: 16px; }
.pv-creds div { padding: 9px 10px; border-left: 1px solid #d5dbe7; min-width: 0; }
.pv-creds div:first-child { border-left: 0; }
.pv-creds b { display: block; font: 600 13px/1.25 var(--cond); color: #001d55; }
.pv-creds span { font-size: 12px; color: #5d6880; overflow-wrap: anywhere; }
.pv-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.pv-quotes figure { margin: 0; }
.pv-quotes blockquote { margin: 0 0 6px; font-style: italic; color: #001d55; font-size: 14px; position: relative; padding-top: 18px; }
.pv-quotes blockquote::before { content: "\201C"; position: absolute; top: -8px; left: -2px; font: 800 40px/1 var(--head); color: #ef0220; }
.pv-quotes figcaption { font-size: 12px; color: #5d6880; }
.pv-quotes figcaption b { display: block; color: #1b2333; font-weight: 600; }
.pv-brands { font-size: 12.5px; color: #5d6880; margin: 0 0 12px; }
.pv-brands span { font: 600 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #001d55; margin-right: 8px; }
.pv-contact { background: #001d55; color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center; }
.pv-contact b { font: 800 14px/1.3 var(--head); }
.pv-contact span { color: #d7def0; font-size: 13px; }
@media (max-width: 640px) { .pv-mkt-cards, .pv-quotes { grid-template-columns: minmax(0, 1fr); } .pv-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-creds div:nth-child(3) { border-left: 0; } }
