/* ==========================================================================
   Trophy Build Sheets — app styles
   ========================================================================== */
:root{
  --navy:#233354; --navy-deep:#1a2740; --navy-soft:#34466e;
  --gold:#c9b27a; --gold-bright:#e3cf98; --gold-soft:#f3ecd9; --gold-deep:#8f7440;
  --ink:#1d2433; --muted:#6b7489; --line:#dde1e8; --line-soft:#eceef2;
  --paper:#f2f3f6; --white:#fff; --warn:#9a5b12; --warn-bg:#fdf4e4; --ok:#2f6f4a; --danger:#a13a2c;
  --display:'Fraunces',Georgia,serif;
  --body:'Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --r-lg:16px; --r:10px; --r-sm:7px;
  --shadow:0 1px 2px rgba(20,30,55,.06),0 6px 24px rgba(20,30,55,.08);
  --ease:.2s cubic-bezier(.4,.1,.2,1);
  --bar-h:58px;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; font-family:var(--body); font-size:15px; line-height:1.45; color:var(--ink); background:var(--paper);
  font-variant-numeric:tabular-nums; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
:focus-visible{ outline:2.5px solid var(--gold); outline-offset:2px; }
[hidden]{ display:none !important; }
h1,h2,h3{ margin:0; color:var(--navy); }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---------- top bar ---------- */
.bar{ position:sticky; top:0; z-index:30; background:var(--navy); color:#fff; border-bottom:2px solid var(--gold);
  padding-top:env(safe-area-inset-top,0px); }
.bar-in{ max-width:1080px; margin:0 auto; height:var(--bar-h); padding:0 16px; display:flex; align-items:center; gap:12px; }
.brand{ display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; margin-right:auto; min-width:0; }
.brand svg{ width:30px; height:30px; fill:var(--gold); flex:0 0 auto; }
.brand b{ display:block; font-family:var(--display); font-weight:600; font-size:18px; line-height:1.1; white-space:nowrap; }
.brand small{ display:block; font-size:12px; color:var(--gold-bright); opacity:.85; }
.bar-btn{ background:transparent; border:1px solid rgba(255,255,255,.28); color:#fff; border-radius:999px; padding:7px 14px; font-size:14px; white-space:nowrap; }
.bar-btn:hover{ border-color:var(--gold); color:var(--gold-bright); }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:var(--r); padding:10px 16px;
  font-weight:600; font-size:15px; border:1px solid transparent; transition:background var(--ease),border-color var(--ease); white-space:nowrap; }
.btn svg{ width:18px; height:18px; flex:0 0 auto; }
.btn-primary{ background:var(--navy); color:#fff; }
.btn-primary:hover{ background:var(--navy-deep); }
.btn-accent{ background:var(--gold); color:var(--navy-deep); }
.btn-accent:hover{ background:var(--gold-bright); }
.btn-quiet{ background:var(--white); border-color:var(--line); color:var(--navy); }
.btn-quiet:hover{ border-color:var(--navy-soft); }
.btn-text{ background:none; border:0; color:var(--navy); padding:6px 8px; font-weight:600; }
.btn-text:hover{ text-decoration:underline; }
.btn-danger{ color:var(--danger); }
.btn-sm{ padding:6px 11px; font-size:13.5px; border-radius:var(--r-sm); }

/* ---------- order screen ---------- */
.wrap{ max-width:1080px; margin:0 auto; padding:20px 16px 120px; }
.ticket{ background:var(--white); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:18px 18px 14px; }
.ticket-row{ display:grid; grid-template-columns:minmax(120px,1fr) 2.2fr minmax(150px,1fr); gap:12px; }
.fld{ display:block; margin-bottom:10px; }
.fld > span{ display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:4px; }
.fld input,.fld textarea,.fld select,.inp{ width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:var(--r-sm); background:#fbfbfc; }
.fld input:focus,.fld textarea:focus,.fld select:focus,.inp:focus{ outline:none; border-color:var(--navy-soft); background:#fff; box-shadow:0 0 0 3px rgba(201,178,122,.35); }
.fld textarea{ resize:vertical; min-height:44px; }
#fNo{ font-family:var(--display); font-weight:600; font-size:20px; color:var(--navy); padding:6px 12px; }
.price-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:2px 0 10px; font-size:14px; color:var(--muted); }
.price-row .toggle{ display:inline-flex; align-items:center; gap:7px; cursor:pointer; color:var(--ink); }
.price-row .toggle input{ width:18px; height:18px; accent-color:var(--navy); }
.price-row .toggle small{ color:var(--muted); font-size:13px; }
.price-row .rate{ display:inline-flex; align-items:center; gap:4px; padding-left:14px; border-left:1px solid var(--line); }
.price-row .rate input{ width:74px; padding:6px 8px; border:1px solid var(--line); border-radius:var(--r-sm); background:#fbfbfc; text-align:right; }
.price-row .btn-text{ margin-left:auto; font-size:14px; }
.pl-price{ margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.pl-price table{ width:100%; border-collapse:collapse; font-size:14px; }
.pl-price td{ padding:4px 2px; border-bottom:1px solid var(--line-soft); }
.pl-price td.n{ text-align:right; white-space:nowrap; }
.pl-price tfoot td{ font-weight:700; color:var(--navy); border-bottom:0; padding-top:8px; }
.set-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
.set-grid .fld{ margin:0; }
.set-mins{ display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; }
.set-mins label{ display:flex; flex-direction:column; font-size:12.5px; color:var(--muted); gap:3px; }
.set-mins input{ padding:7px 8px; border:1px solid var(--line); border-radius:var(--r-sm); background:#fbfbfc; }
.dialog.wide{ width:min(620px,calc(100vw - 24px)); }
.dialog h4{ margin:16px 0 8px; font-size:14.5px; color:var(--navy); }
.save-state{ font-size:13px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.save-state.dirty{ color:var(--warn); }
.save-state i{ width:7px; height:7px; border-radius:50%; background:currentColor; display:inline-block; }

.sec-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:26px 2px 10px; }
.sec-head h2{ font-family:var(--display); font-weight:600; font-size:24px; }
.sec-head h2 span{ font-family:var(--body); font-size:15px; font-weight:500; color:var(--muted); margin-left:6px; }

.t-row{ display:grid; grid-template-columns:96px 1fr auto; gap:14px; align-items:center; background:var(--white);
  border-radius:var(--r-lg); padding:10px 14px 10px 10px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer;
  border:1px solid transparent; transition:border-color var(--ease); }
.t-row:hover{ border-color:var(--gold); }
.t-thumb{ height:120px; border-radius:12px; background:radial-gradient(ellipse at 50% 35%,#fff 0%,#e9ecf1 80%); display:flex; align-items:flex-end; justify-content:center; padding:6px 4px 4px; }
.t-thumb svg{ width:100%; height:100%; }
.t-main{ min-width:0; }
.t-title{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.t-title h3{ font-family:var(--display); font-weight:600; font-size:19px; }
.t-qty{ font-weight:700; color:var(--gold-deep); font-size:15px; }
.t-type{ color:var(--muted); font-size:13.5px; }
.t-sum{ margin:3px 0 0; font-size:14px; color:var(--ink); }
.t-warn{ margin:5px 0 0; font-size:13px; color:var(--warn); }
.t-actions{ display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
.empty{ text-align:center; padding:40px 20px; background:var(--white); border-radius:var(--r-lg); border:1.5px dashed var(--line); }
.empty svg{ width:44px; height:44px; fill:var(--gold); }
.empty p{ color:var(--muted); margin:8px 0 16px; }

.pick-prev{ margin-top:18px; background:var(--white); border-radius:var(--r-lg); box-shadow:var(--shadow); }
.pick-prev summary{ list-style:none; cursor:pointer; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pick-prev summary::-webkit-details-marker{ display:none; }
.pick-prev summary b{ font-family:var(--display); font-weight:600; color:var(--navy); font-size:18px; }
.pick-prev summary span{ color:var(--muted); font-size:14px; }
.pick-prev summary::after{ content:''; width:9px; height:9px; border-right:2px solid var(--navy); border-bottom:2px solid var(--navy); transform:rotate(45deg); transition:transform var(--ease); flex:0 0 auto; }
.pick-prev[open] summary::after{ transform:rotate(-135deg); }
.pick-body{ padding:0 18px 16px; }
.pl-grp{ font-size:13px; font-weight:700; color:var(--gold-deep); margin:12px 0 4px; }
.pl-row{ display:grid; grid-template-columns:40px 1fr auto; gap:10px; padding:5px 0; border-bottom:1px solid var(--line-soft); font-size:14px; }
.pl-row b{ text-align:right; color:var(--navy); }
.pl-row code, .sku-t{ font-family:var(--body); font-weight:600; font-size:13px; color:var(--ink); letter-spacing:.02em; }
.sku-none{ color:#a3a9b7; font-weight:400; font-size:12.5px; }
.pl-cost{ margin-top:12px; padding:10px 12px; background:var(--gold-soft); border-radius:var(--r-sm); font-size:13.5px; }
.pl-warn{ margin-top:12px; padding:10px 12px; background:var(--warn-bg); border-radius:var(--r-sm); font-size:13.5px; color:var(--warn); }
.pl-warn ul{ margin:4px 0 0; padding-left:18px; }

.actionbar{ position:fixed; left:0; right:0; bottom:0; z-index:25; background:rgba(255,255,255,.94); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-top:1px solid var(--line); padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px)); display:flex; gap:8px; justify-content:center; }
.actionbar .btn-primary{ min-width:150px; }

/* ---------- menus, dialogs, toast ---------- */
.menu{ position:fixed; z-index:60; background:var(--white); border-radius:var(--r); box-shadow:0 12px 40px rgba(20,30,55,.22); padding:6px; min-width:230px; }
.menu button{ display:flex; width:100%; text-align:left; background:none; border:0; padding:10px 12px; border-radius:var(--r-sm); gap:10px; align-items:center; }
.menu button:hover{ background:var(--paper); }
.menu button small{ display:block; color:var(--muted); font-size:12.5px; }
.scrim{ position:fixed; inset:0; z-index:50; background:rgba(20,28,48,.45); }
.dialog{ position:fixed; z-index:55; left:50%; top:50%; transform:translate(-50%,-50%); width:min(440px,calc(100vw - 32px)); max-height:calc(100vh - 40px); overflow:auto;
  background:var(--white); border-radius:var(--r-lg); padding:20px; box-shadow:0 24px 70px rgba(20,30,55,.35); }
.dialog h3{ font-family:var(--display); font-weight:600; font-size:21px; margin-bottom:6px; }
.dialog p{ color:var(--muted); margin:0 0 14px; font-size:14px; }
.dialog .row{ display:flex; gap:8px; justify-content:flex-end; margin-top:14px; }
.toast{ position:fixed; z-index:70; left:50%; bottom:calc(84px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); background:var(--navy-deep); color:#fff;
  padding:10px 18px; border-radius:999px; font-size:14px; box-shadow:0 8px 24px rgba(0,0,0,.25); max-width:calc(100vw - 32px); }

/* drawer (saved orders) */
.drawer{ position:fixed; z-index:55; top:0; right:0; bottom:0; width:min(460px,100vw); background:var(--paper); display:flex; flex-direction:column; box-shadow:-10px 0 40px rgba(20,30,55,.25);
  padding-top:env(safe-area-inset-top,0px); }
.drawer-head{ display:flex; align-items:center; gap:10px; padding:16px; background:var(--white); border-bottom:1px solid var(--line); }
.drawer-head h3{ font-family:var(--display); font-weight:600; font-size:21px; margin-right:auto; }
.drawer-search{ padding:12px 16px 4px; }
.drawer-list{ flex:1; overflow:auto; padding:8px 16px 24px; }
.o-row{ background:var(--white); border-radius:var(--r); padding:12px 14px; margin-bottom:8px; border:1px solid var(--line); }
.o-row b{ font-family:var(--display); font-weight:600; color:var(--navy); font-size:17px; }
.o-row .o-meta{ color:var(--muted); font-size:13.5px; margin:2px 0 8px; }
.o-row .o-btns{ display:flex; gap:6px; flex-wrap:wrap; }
.o-empty{ color:var(--muted); text-align:center; padding:30px 10px; }

/* ---------- editor ---------- */
.editor{ position:fixed; inset:0; z-index:40; background:var(--paper); display:flex; flex-direction:column; }
.ed-bar{ display:flex; align-items:center; gap:12px; padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px; background:var(--navy); color:#fff; border-bottom:2px solid var(--gold); }
.ed-bar h2{ color:#fff; font-family:var(--display); font-weight:600; font-size:19px; margin-right:auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ed-back{ display:inline-flex; align-items:center; gap:4px; background:none; border:0; color:var(--gold-bright); font-weight:600; padding:6px 4px; }
.ed-back svg{ width:18px; height:18px; }
.ed-bar .btn-accent{ padding:8px 18px; }
.ed-body{ flex:1; min-height:0; display:grid; grid-template-columns:minmax(300px,42%) 1fr; }
.ed-stage{ position:relative; background:radial-gradient(ellipse at 50% 30%,#ffffff 0%,#eef0f4 55%,#dfe3ea 100%); display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding:18px 18px 16px; min-height:0; }
.ed-render{ flex:1; width:100%; min-height:0; display:flex; align-items:flex-end; justify-content:center; }
.ed-render svg{ width:100%; height:100%; max-height:100%; }
.ed-height{ margin:8px 0 0; font-size:14px; color:var(--muted); }
.ed-height b{ color:var(--navy); font-family:var(--display); font-size:22px; font-weight:600; margin-right:4px; }
.ed-form{ overflow:auto; background:var(--white); padding:6px 22px 60px; -webkit-overflow-scrolling:touch; }
.sect{ padding:18px 0; border-bottom:1px solid var(--line-soft); }
.sect:last-child{ border-bottom:0; }
.sect > h4{ margin:0 0 10px; font-size:15px; color:var(--navy); font-weight:700; display:flex; align-items:baseline; gap:8px; }
.sect > h4 small{ font-weight:400; color:var(--muted); font-size:13px; }
.two{ display:grid; grid-template-columns:1fr auto; gap:12px; align-items:end; }

.types{ display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:8px; }
.type-card{ background:#fbfbfc; border:1.5px solid var(--line); border-radius:var(--r); padding:6px 4px 7px; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:12.5px; line-height:1.2; text-align:center; color:var(--ink); }
.type-card .tc-art{ height:62px; width:100%; display:flex; align-items:flex-end; justify-content:center; }
.type-card .tc-art svg{ height:100%; width:100%; }
.type-card .tc-art.txt{ align-items:center; font-family:var(--display); color:var(--gold-deep); font-size:26px; }
.type-card[aria-pressed="true"]{ border-color:var(--navy); background:var(--gold-soft); box-shadow:inset 0 0 0 1px var(--navy); font-weight:600; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ border:1.5px solid var(--line); background:#fbfbfc; border-radius:999px; padding:8px 14px; font-size:14px; }
.chip[aria-pressed="true"]{ border-color:var(--navy); background:var(--navy); color:#fff; }
.chip small{ opacity:.75; margin-left:4px; }
.swatches{ display:flex; flex-wrap:wrap; gap:10px; }
.swatch{ display:flex; flex-direction:column; align-items:center; gap:4px; background:none; border:0; padding:0; font-size:12.5px; color:var(--muted); }
.swatch i{ width:44px; height:44px; border-radius:50%; background-size:cover; background-position:center; box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); border:3px solid #fff; outline:1.5px solid var(--line); }
.swatch[aria-pressed="true"]{ color:var(--navy); font-weight:700; }
.swatch[aria-pressed="true"] i{ outline:2.5px solid var(--navy); }

.stepper{ display:inline-flex; align-items:center; border:1.5px solid var(--line); border-radius:var(--r); overflow:hidden; background:#fbfbfc; }
.stepper button{ width:42px; height:42px; border:0; background:none; font-size:22px; color:var(--navy); line-height:1; }
.stepper button:disabled{ color:#c3c8d2; cursor:default; }
.stepper output{ min-width:58px; text-align:center; font-family:var(--display); font-weight:600; font-size:20px; color:var(--navy); }
.height-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:10px; }
.height-row label{ min-width:120px; font-size:14px; color:var(--ink); }
.height-row .range{ font-size:12.5px; color:var(--muted); }

.pick-tile{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#fbfbfc; border:1.5px solid var(--line); border-radius:var(--r); padding:8px 12px 8px 8px; }
.pick-tile:hover{ border-color:var(--navy-soft); }
.pick-tile .pt-img{ width:54px; height:54px; border-radius:8px; background:#eef0f4 center/contain no-repeat; flex:0 0 auto; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:12px; }
.pick-tile b{ display:block; color:var(--navy); }
.pick-tile span{ font-size:13px; color:var(--muted); }
.pick-tile .pt-go{ margin-left:auto; color:var(--navy); font-weight:600; font-size:14px; }
.inline-fields{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; align-items:end; }
.inline-fields .fld{ margin:0; }

.plates-wrap{ overflow-x:auto; margin:0 -4px; padding:0 4px; }
.plates-t{ width:100%; border-collapse:collapse; min-width:520px; }
.plates-t th{ text-align:left; font-size:12.5px; color:var(--muted); font-weight:600; padding:0 4px 4px; }
.plates-t th button{ font-size:12px; font-weight:600; background:none; border:0; color:var(--gold-deep); padding:0 0 0 6px; }
.plates-t td{ padding:3px 4px; }
.plates-t td:first-child{ width:26px; color:var(--muted); font-size:13px; text-align:right; }
.plates-t input{ width:100%; padding:8px 9px; border:1px solid var(--line); border-radius:6px; text-transform:uppercase; font-family:'Times New Roman',Times,serif; font-weight:700; font-size:14px; background:#fbfbfc; }
.plates-t input:focus{ outline:none; border-color:var(--navy-soft); background:#fff; }

.extras-row{ display:grid; grid-template-columns:70px 1fr 120px 36px; gap:6px; margin-bottom:6px; }
.extras-row input{ padding:8px 9px; border:1px solid var(--line); border-radius:6px; background:#fbfbfc; min-width:0; }
.icon-btn{ border:0; background:none; color:var(--muted); border-radius:6px; }
.icon-btn:hover{ color:var(--danger); background:var(--paper); }

.parts-t{ width:100%; border-collapse:collapse; font-size:14px; }
.parts-t td{ padding:5px 4px; border-bottom:1px solid var(--line-soft); vertical-align:top; }
.parts-t td:first-child{ width:34px; text-align:right; font-weight:700; color:var(--navy); }
.parts-t td:last-child{ text-align:right; white-space:nowrap; }
.warn-box{ background:var(--warn-bg); color:var(--warn); border-radius:var(--r-sm); padding:10px 12px; font-size:13.5px; margin-top:10px; }
.warn-box ul{ margin:0; padding-left:18px; }
.cost-line{ margin-top:10px; font-size:13.5px; color:var(--muted); }
.cost-line b{ color:var(--ink); }

/* picker */
.picker{ position:fixed; z-index:56; inset:max(20px,env(safe-area-inset-top)) max(20px,4vw) 20px; margin:auto; max-width:900px; background:var(--white); border-radius:var(--r-lg);
  display:flex; flex-direction:column; overflow:hidden; box-shadow:0 24px 70px rgba(20,30,55,.35); }
.pk-head{ padding:14px 16px 10px; border-bottom:1px solid var(--line); }
.pk-top{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.pk-top h3{ font-family:var(--display); font-weight:600; font-size:21px; margin-right:auto; }
.pk-cats{ display:flex; gap:6px; overflow-x:auto; padding:8px 0 2px; scrollbar-width:none; }
.pk-cats .chip{ padding:6px 12px; font-size:13.5px; white-space:nowrap; }
.pk-grid{ flex:1; overflow:auto; padding:14px 16px 20px; display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); gap:10px; align-content:start; }
.pk-item{ background:#fbfbfc; border:1.5px solid var(--line); border-radius:var(--r); padding:8px 6px; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:13px; line-height:1.2; text-align:center; }
.pk-item:hover{ border-color:var(--navy-soft); }
.pk-item[aria-pressed="true"]{ border-color:var(--navy); background:var(--gold-soft); }
.pk-item .pi-img{ width:100%; height:92px; display:flex; align-items:center; justify-content:center; background:center/contain no-repeat; }
.pk-item .pi-img img{ max-width:100%; max-height:100%; object-fit:contain; }
.pk-item small{ color:var(--muted); font-size:11.5px; }
.pk-custom{ padding:16px; }
.pk-custom .img-drop{ display:flex; align-items:center; gap:12px; }
.pk-custom .img-drop i{ width:72px; height:72px; border-radius:10px; background:#eef0f4 center/contain no-repeat; border:1.5px dashed var(--line); }

/* catalog products */
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; max-height:360px; overflow:auto; padding:2px; }
.opt-selects{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin-top:12px; }

/* ---------- phone / narrow ---------- */
@media (max-width:760px){
  .price-row .rate{ border-left:0; padding-left:0; }
  .ticket-row{ grid-template-columns:1fr 1fr; }
  .ticket-row .fld-cust{ grid-column:1 / -1; order:-1; }
  .t-row{ grid-template-columns:72px 1fr; padding:10px; }
  .t-thumb{ height:100px; }
  .t-actions{ grid-column:1 / -1; flex-direction:row; justify-content:flex-end; border-top:1px solid var(--line-soft); padding-top:6px; }
  .ed-body{ display:block; overflow:auto; -webkit-overflow-scrolling:touch; }
  .ed-stage{ height:52vh; }
  .ed-form{ overflow:visible; padding:4px 16px 80px; }
  .actionbar{ justify-content:stretch; }
  .actionbar .btn{ flex:1; padding:10px 8px; font-size:14px; }
  .actionbar .btn-primary{ min-width:0; flex:1.4; }
  .brand small{ display:none; }
  .bar-btn{ padding:6px 11px; font-size:13px; }
  .bar-btn .lg{ display:none; }
  #btnOrders{ text-transform:capitalize; }
  .brand b{ font-size:16px; }
  .picker{ inset:env(safe-area-inset-top,0px) 0 0; border-radius:0; }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }

/* ==========================================================================
   Phone checklist
   ========================================================================== */
.ck-body{ background:var(--paper); }
.ck-head{ background:var(--navy); color:#fff; padding:calc(14px + env(safe-area-inset-top,0px)) 18px 16px; border-bottom:2px solid var(--gold); position:sticky; top:0; z-index:5; }
.ck-head .ck-brand{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--gold-bright); }
.ck-head .ck-brand svg{ width:18px; height:18px; fill:var(--gold); }
.ck-head h1{ color:#fff; font-family:var(--display); font-weight:600; font-size:25px; margin-top:4px; }
.ck-head p{ margin:2px 0 0; color:#d5dbe8; font-size:14px; }
.ck-prog{ display:flex; align-items:center; gap:10px; margin-top:12px; font-size:14px; }
.ck-prog .track{ flex:1; height:8px; background:rgba(255,255,255,.18); border-radius:99px; overflow:hidden; }
.ck-prog .fill{ height:100%; background:var(--gold); border-radius:99px; transition:width .25s ease; }
.ck-wrap{ max-width:640px; margin:0 auto; padding:14px 12px 60px; }
.ck-strip{ display:flex; gap:10px; overflow-x:auto; padding:4px 2px 12px; }
.ck-strip figure{ margin:0; flex:0 0 auto; width:84px; text-align:center; font-size:12px; }
.ck-strip .art{ height:110px; background:radial-gradient(ellipse at 50% 35%,#fff 0%,#e6e9ef 85%); border-radius:12px; padding:4px; display:flex; align-items:flex-end; }
.ck-strip svg{ width:100%; height:100%; }
.ck-grp{ margin:16px 4px 6px; font-size:14px; font-weight:700; color:var(--gold-deep); }
.ck-item{ display:grid; grid-template-columns:34px 44px 1fr; gap:6px; align-items:center; width:100%; text-align:left; background:var(--white); border:0; border-radius:12px; padding:12px 12px; margin-bottom:6px; box-shadow:0 1px 2px rgba(20,30,55,.06); }
.ck-item .cb{ width:26px; height:26px; border-radius:7px; border:2px solid var(--navy); display:flex; align-items:center; justify-content:center; }
.ck-item .cb svg{ width:16px; height:16px; stroke:#fff; opacity:0; }
.ck-item .q{ font-family:var(--display); font-weight:600; font-size:22px; color:var(--navy); text-align:right; padding-right:6px; }
.ck-item .n{ font-size:15px; line-height:1.3; }
.ck-item .n small{ display:block; color:var(--muted); font-size:13px; font-weight:600; letter-spacing:.02em; }
.ck-item[aria-checked="true"]{ background:#eef4ef; }
.ck-item[aria-checked="true"] .cb{ background:var(--ok); border-color:var(--ok); }
.ck-item[aria-checked="true"] .cb svg{ opacity:1; }
.ck-item[aria-checked="true"] .n,.ck-item[aria-checked="true"] .q{ color:#7c8a80; text-decoration:line-through; }
.ck-tube .n .bar{ display:flex; height:16px; margin-top:6px; border:1px solid var(--navy); border-radius:4px; overflow:hidden; font-size:11px; font-weight:700; color:var(--navy); }
.ck-tube .bar span{ display:flex; align-items:center; justify-content:center; background:var(--gold-soft); border-right:1px solid var(--navy); white-space:nowrap; min-width:0; overflow:hidden; }
.ck-tube .bar span.rest{ background:repeating-linear-gradient(135deg,#eef0f4 0 4px,#fff 4px 8px); color:#9aa1b0; border-right:0; }
.ck-foot{ display:flex; justify-content:center; gap:10px; margin-top:22px; }
.ck-msg{ padding:40px 20px; text-align:center; color:var(--muted); }
