/* Pack Assist — the design system.
 *
 * The rulebook is docs/design-system.md (agreed 2026-10-24). This file is that system as tokens
 * and components. Read the doc before changing anything here.
 *
 * The rules that hold it together:
 *   1. Light only. One typeface, Geist, with tabular figures. No monospace, no uppercase labels.
 *   2. Teal is only ever something you can press. Status is green, amber or red.
 *   3. One primary button and one hero figure per screen. Headlines are one weight.
 *   4. Nothing hardcodes a colour, radius or shadow outside :root. A value used twice is a token.
 *   5. Component classes are namespaced; a generic word is only ever a modifier on one of them.
 */

/* Served from this origin, never from Google Fonts: one variable file covers every weight. */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist-variable.woff2) format("woff2")}

:root{
  color-scheme:light;
  /* ---- ground and ink ---- */
  --ground:#F2F4F3;       /* page background */
  --surface:#FFFFFF;      /* cards and controls */
  --well:#F7F8F7;         /* inset areas: arithmetic, tracks, fields */
  --ink:#0B2A30;          /* primary text */
  --ink-2:#4B6166;        /* secondary text */
  --ink-3:#8C9C9F;        /* labels, units, meta */
  --ink-4:#B9C4C6;        /* disabled, empty, placeholders */
  --hair:rgba(11,42,48,.08);
  --hair-2:rgba(11,42,48,.14);
  --scrim:rgba(11,42,48,.32);
  /* ---- the action colour: press only ---- */
  --teal:#1EA1A1; --teal-deep:#178C8C; --teal-tint:rgba(30,161,161,.09);
  /* ---- the one hero figure ---- */
  --midnight:#0C6170; --midnight-deep:#0A4E5A; --on-ink:#FFFFFF; --undo:#7FD6D3; --on-hero:#FFFFFF; --on-hero-2:rgba(255,255,255,.68);
  /* ---- corrugated board ---- */
  --kraft:#C7A173; --kraft-side:#B08A5C; --kraft-top:#DCC09A; --kraft-tint:#F1EBE2; --kraft-line:#8A6A43; --tape:#E9DCC6;
  /* ---- status, never the accent ---- */
  --ok:#2F8A5F;    --ok-tint:#E6F2EB;
  --amber:#C27419; --amber-tint:#FBF0E1; --amber-ink:#7A4A10;
  --red:#B4423B;   --red-tint:#F8E6E4;
  /* ---- shape ---- */
  --r-card:16px; --r-ctl:10px; --r-chip:6px; --r-thumb:12px; --r-pill:999px;
  --sh-card:0 0 0 1px var(--hair),0 1px 2px rgba(11,42,48,.04),0 6px 20px -8px rgba(11,42,48,.10);
  --sh-ctl:0 0 0 1px var(--hair-2),0 1px 1px rgba(11,42,48,.05);
  --sh-lift:0 0 0 1px var(--hair),0 30px 80px -20px rgba(11,42,48,.45);
  --sh-hero:0 1px 2px rgba(10,78,90,.3),0 14px 30px -12px rgba(10,78,90,.55);
  --sh-toast:0 12px 30px -8px rgba(11,42,48,.5);
  --focus:0 0 0 1.5px var(--teal),0 0 0 4px var(--teal-tint);
  /* ---- type and motion ---- */
  --sans:'Geist',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --ease:cubic-bezier(.22,.8,.24,1);
}

/* ============================ base ============================ */
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none !important}
body{font-family:var(--sans);background:var(--ground);color:var(--ink);font-size:14px;line-height:1.5;
  min-height:100dvh;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
h1,h2,h3{font-weight:500;letter-spacing:-.015em;text-wrap:balance}
a{color:var(--teal-deep)}
.m{font-variant-numeric:tabular-nums}
svg.ic{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-3px}
svg.ic.sm{width:14px;height:14px}
.sprite{display:none}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:6px}
footer{margin-top:40px;text-align:center;font-size:12.5px;color:var(--ink-3);line-height:1.6}
footer a{color:var(--ink-2)}

/* Labels, units and status. Sentence case, always. */
.lbl{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--ink-3)}
.u{font-size:.5em;font-weight:400;color:var(--ink-3);margin-left:3px;letter-spacing:0}
.chip{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 7px;border-radius:var(--r-chip);
  font-size:12px;font-weight:500;white-space:nowrap;vertical-align:middle;background:var(--well);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--hair)}
.chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.chip.ok{background:var(--ok-tint);color:var(--ok);box-shadow:none}
.chip.warn{background:var(--amber-tint);color:var(--amber);box-shadow:none}
.chip.bad{background:var(--red-tint);color:var(--red);box-shadow:none}
.chip.mute{background:var(--well);color:var(--ink-2)}
.avatar{width:26px;height:26px;border-radius:50%;background:var(--well);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hair-2);
  display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;flex:none}
.avatar.me{background:var(--ink);color:var(--surface);box-shadow:none}

/* ============================ fields ============================ */
label{display:block;font-size:13px;font-weight:500;color:var(--ink-2);margin:14px 0 6px}
label .opt{font-weight:400;color:var(--ink-3)}
label.tight{margin-top:0}
textarea,input[type=text],input[type=number],input[type=email],input[type=password],
input[type=search],input[type=tel],input[type=url],select{
  width:100%;height:44px;border:0;border-radius:var(--r-ctl);padding:0 13px;font:inherit;font-size:14.5px;
  background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hair-2);transition:box-shadow .15s}
textarea{height:auto;min-height:104px;padding:12px 13px;resize:vertical;line-height:1.6;font-size:14px}
select{padding-right:8px}
::placeholder{color:var(--ink-4)}
textarea:focus,input:focus,select:focus{outline:0;box-shadow:inset 0 0 0 1.5px var(--teal),0 0 0 4px var(--teal-tint)}
.hint{font-size:13px;color:var(--ink-2);margin-top:8px;line-height:1.5}
.err{display:none;background:var(--red-tint);color:var(--red);font-size:13px;padding:11px 14px;border-radius:var(--r-ctl);margin-top:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.check{display:flex;align-items:flex-start;gap:9px;margin:14px 0 0;font-size:13.5px;font-weight:400;color:var(--ink-2);cursor:pointer}
.check input{width:16px;height:16px;margin:2px 0 0;flex:none;accent-color:var(--teal)}
.check b{color:var(--ink);font-weight:500}
.more{margin-top:12px}
.more > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:baseline;gap:8px;padding:6px 2px;font-size:13.5px;font-weight:500;color:var(--teal-deep);flex-wrap:wrap}
.more > summary::-webkit-details-marker{display:none}
.more > summary::before{content:"+";font-size:15px;line-height:1}
.more[open] > summary::before{content:"−"}
.more > summary span{font-weight:400;color:var(--ink-3)}

/* ============================ buttons ============================ */
/* .btn alone is the filled teal action. Full width by default (forms and doors); .auto and .sm
   size to their label. .ghost is the quiet white control; .quiet is a borderless one. */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:44px;margin-top:14px;padding:0 18px;
  border:0;border-radius:var(--r-ctl);background:var(--teal);color:var(--on-ink);font:inherit;font-size:14px;font-weight:500;
  letter-spacing:-.005em;cursor:pointer;text-decoration:none;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(23,140,140,.35),0 0 0 1px var(--teal-deep);
  transition:background .15s,box-shadow .15s,color .15s,transform .1s}
.btn svg.ic{width:16px;height:16px}
.btn:hover:not(:disabled){background:var(--teal-deep)}
.btn:active:not(:disabled){transform:translateY(1px)}

.btn.primary{background:var(--teal);color:var(--on-ink)}
.btn.ghost{background:var(--surface);color:var(--ink);box-shadow:var(--sh-ctl)}
.btn.ghost:hover:not(:disabled){background:var(--surface);color:var(--teal-deep);box-shadow:0 0 0 1px var(--teal),0 1px 1px rgba(11,42,48,.05)}
.btn.quiet{background:transparent;color:var(--teal-deep);box-shadow:none}
.btn.quiet:hover:not(:disabled){background:var(--teal-tint)}
.btn.auto{width:auto;margin:0}
.btn.sm{width:auto;margin:0;height:34px;padding:0 13px;font-size:13px}
.btn.lg{height:46px;font-size:14.5px}
.btn.block{width:100%}
.btn.btn:disabled{background:var(--well);color:var(--ink-4);box-shadow:var(--sh-ctl);cursor:not-allowed;transform:none}
.btn.is-off{pointer-events:none;background:var(--well);color:var(--ink-4);box-shadow:var(--sh-ctl)}
.txt{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:4px 2px;font:inherit;font-size:13.5px;font-weight:500;
  color:var(--teal-deep);cursor:pointer;border-radius:6px;text-decoration:none}
.txt:hover{text-decoration:underline;text-underline-offset:3px}
.txt svg.ic{width:15px;height:15px}
.iconbtn{border:0;background:transparent;color:var(--ink-3);cursor:pointer;padding:6px;border-radius:8px;flex:none;display:inline-flex}
.iconbtn:hover{background:var(--well);color:var(--teal-deep)}

/* Segmented control (the console's demo builder). */
.tabs{display:flex;gap:2px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);border-radius:var(--r-ctl);padding:3px;margin:14px 0}
.tabs button{flex:1;border:0;background:transparent;font:inherit;font-size:13px;font-weight:500;color:var(--ink-2);padding:7px 6px;border-radius:8px;cursor:pointer}
.tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:var(--sh-ctl)}
.pane{display:none}.pane.on{display:block}

/* Quantity stepper. */
.qty{display:inline-flex;align-items:center;height:36px;border-radius:var(--r-ctl);background:var(--surface);box-shadow:var(--sh-ctl);flex:none}
.qty button{width:34px;height:36px;border:0;background:transparent;color:var(--teal-deep);font:inherit;font-size:17px;cursor:pointer;border-radius:var(--r-ctl);line-height:1}
.qty button:hover{background:var(--teal-tint)}
.qty span{min-width:28px;text-align:center;font-size:15px;font-weight:500}

/* Switch. Teal only when on, because on is the pressed state. */
.switch{display:inline-flex;align-items:center;gap:8px;background:none;border:0;font:inherit;font-size:13px;color:var(--ink-2);white-space:nowrap;cursor:pointer;padding:2px 0}
.switch i{position:relative;width:30px;height:18px;border-radius:9px;background:var(--ink-4);transition:background .2s;flex:none}
.switch i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .2s var(--ease)}
.switch[aria-pressed=true] i{background:var(--teal)}
.switch[aria-pressed=true] i::after{transform:translateX(12px)}

/* ============================ cards and notes ============================ */
.card{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:20px 22px}
.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.card-h h3{font-size:15px;font-weight:500;letter-spacing:-.01em}
h3.sec{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;letter-spacing:-.01em;margin:0 0 4px}
h3.sec .hint{margin:0 0 0 auto;font-size:12.5px;color:var(--ink-3);font-weight:400}
.note{display:flex;gap:10px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair-2);border-radius:var(--r-ctl);padding:12px 14px;
  font-size:13px;color:var(--ink-2);line-height:1.5}
.note.warn{background:var(--amber-tint);box-shadow:none;color:var(--amber-ink)}
.note.bad{background:var(--red-tint);box-shadow:none;color:var(--red)}
.note svg.ic{margin-top:1px}
.empty{text-align:center;padding:26px 12px;color:var(--ink-3);font-size:13.5px;line-height:1.5}
.demo-banner{display:none;gap:10px;background:var(--amber-tint);color:var(--amber-ink);font-size:13px;padding:11px 14px;border-radius:var(--r-ctl);line-height:1.45}

/* Key figures: one row of tiles, the hero first on midnight. Shared by the journey and the console. */
.kpis{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:16px}
.kpi{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:18px 20px;display:flex;flex-direction:column;gap:6px;min-width:0}
.kpi-v{font-size:44px;line-height:1;font-weight:500;letter-spacing:-.04em}
.kpi-v .of{font-size:24px;font-weight:400;color:var(--ink-3);letter-spacing:-.02em}
.kpi-v.is-amber{color:var(--amber)}
.kpi-s{font-size:13px;color:var(--ink-3);line-height:1.4}
.kpi-s b{font-weight:500;color:var(--ink-2)}
.kpi.is-hero{background:linear-gradient(160deg,var(--midnight) 0%,var(--midnight-deep) 100%);box-shadow:var(--sh-hero);color:var(--on-hero)}
.kpi.is-hero .lbl,.kpi.is-hero .u,.kpi.is-hero .kpi-s,.kpi.is-hero .kpi-v .of{color:var(--on-hero-2)}
.kpi.is-hero .kpi-s b{color:var(--on-hero)}

/* A checklist: done, waiting. The completion recap and "Before we plan". */
.checks{list-style:none;display:flex;flex-direction:column}
.checks li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-top:1px solid var(--hair);font-size:14px}
.checks li:first-child{border-top:0;padding-top:0}
.checks-mk{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px var(--ink-4)}
.checks-mk svg{width:10px;height:10px;stroke:var(--on-ink);stroke-width:3.2;fill:none}
.checks-mk.is-ok{background:var(--ok);box-shadow:none}
.checks-mk.is-wait{box-shadow:inset 0 0 0 1.5px var(--amber);background:var(--amber-tint)}
.checks-w{font-size:13px;color:var(--ink-3);text-align:right}

/* ============================ toasts ============================ */
#toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;display:flex;flex-direction:column-reverse;align-items:center;
  gap:8px;width:max-content;max-width:min(440px,calc(100vw - 32px));pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:center;gap:10px;background:var(--ink);color:var(--on-ink);border-radius:12px;box-shadow:var(--sh-toast);
  padding:10px 14px 10px 10px;font-size:13.5px;line-height:1.4;animation:toast-in .3s var(--ease)}
.toast svg.ic{width:20px;height:20px;padding:4px;border-radius:50%;background:var(--ok);color:var(--on-ink);stroke-width:3;flex:none}
.toast.warn svg.ic{background:var(--amber)}
.toast.bad svg.ic{background:var(--red)}
.toast.info svg.ic{background:var(--ink-2)}
.toast .msg{flex:1;min-width:0}
.toast .undo{flex:none;background:none;border:0;padding:2px 4px;cursor:pointer;font:inherit;font-size:13.5px;font-weight:500;color:var(--undo);text-decoration:underline}
.toast.leaving{animation:toast-out .18s ease-in forwards}
@keyframes toast-in{from{transform:translateY(14px)}to{transform:none}}
@keyframes toast-out{to{opacity:0;transform:translateY(8px)}}

/* Opening: from the first paint until the visitor is known. Moves, never fades. */
.boot{position:fixed;inset:0;z-index:55;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--ground)}
.boot img{height:26px}
.boot-bar{position:relative;width:120px;height:3px;border-radius:3px;background:var(--hair-2);overflow:hidden}
.boot-bar i{position:absolute;top:0;left:0;width:40px;height:100%;border-radius:3px;background:var(--ink-3);animation:boot 1.1s var(--ease) infinite alternate}
@keyframes boot{to{transform:translateX(80px)}}
.boot-text{font-size:13.5px;color:var(--ink-3)}
html.embed .boot{position:absolute;min-height:320px}

/* ============================ doors: sign in, a demo that didn't open ============================ */
.signin{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;background:var(--ground);overflow-y:auto}
.signin .card{max-width:420px;width:100%;padding:28px}
.signin img{height:24px;margin-bottom:22px;display:block}
.signin h3.sec{font-size:26px;font-weight:400;letter-spacing:-.03em;margin-bottom:6px;display:block}
.signin h3.sec svg{display:none}
.signin input.codefield{font-size:22px;letter-spacing:.14em;font-weight:500;text-align:center;height:54px;text-transform:uppercase}
.signin-other{border-top:1px solid var(--hair);margin-top:20px;padding-top:16px;display:flex;flex-direction:column;gap:10px;font-size:13px;color:var(--ink-2)}
.signin-other > div{display:flex;gap:10px;align-items:flex-start}
.signin-other b{color:var(--ink);font-weight:500}
.signin-other svg.ic{width:16px;height:16px;margin-top:1px;color:var(--ink-3)}

/* Overlays: the /try details form and the box finder. */
.gate{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--scrim);
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);overflow-y:auto}
.gate > .card{max-width:480px;width:100%;margin:auto;border-radius:20px;box-shadow:var(--sh-lift);padding:26px}
.gate h3.sec{font-size:26px;font-weight:400;letter-spacing:-.03em;display:flex;align-items:flex-start;gap:12px}
.gate h3.sec svg{display:none}
.gate-sub{font-size:14px;color:var(--ink-2);margin:6px 0 4px}
.gate-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.gate .hint{margin-top:14px}
@media(max-width:420px){.gate .grid2{grid-template-columns:1fr}}

/* ============================ the customer app ============================ */
.app{min-height:100dvh;display:flex;flex-direction:column}
.app > footer{margin:auto 0 0;padding:32px 20px 28px}
.jwrap{width:100%;max-width:1240px;margin:0 auto;padding:0 max(20px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px))}

/* The top bar: who this is, where you are, the box finder, the courier, the date. */
.topbar{display:flex;align-items:center;gap:16px;min-height:64px;width:100%;max-width:1240px;margin:0 auto;padding:10px max(20px,env(safe-area-inset-right,0px)) 10px max(20px,env(safe-area-inset-left,0px));flex-wrap:wrap}
.topbar .brand img{height:24px;width:auto;display:block}
.crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-3)}
.crumbs .sep{color:var(--ink-4)}
.crumbs .here{color:var(--ink)}
.topbar .spacer{flex:1}
.pick{display:inline-flex;align-items:center;gap:6px;margin:0;height:32px;padding:0 4px 0 12px;border-radius:var(--r-pill);background:var(--surface);
  box-shadow:var(--sh-ctl);font-size:12.5px;font-weight:400;color:var(--ink-2)}
.pick svg.ic{width:15px;height:15px;color:var(--ink-3)}
.pick select{height:30px;border:0;box-shadow:none;background:transparent;width:auto;max-width:260px;padding:0 4px;font-size:12.5px;color:var(--ink-2);border-radius:var(--r-pill)}
.pick select:focus{box-shadow:none}
.pick:focus-within{box-shadow:var(--focus)}
.date{font-size:13px;color:var(--ink-3);white-space:nowrap}
.whoami{font-size:13px;color:var(--ink-3)}
.whoami a{color:var(--ink-2)}
.app > .jwrap > .demo-banner,.app > .jwrap > #prepared-banner{margin-bottom:16px}

/* The journey's timeline: four fixed nodes. A reached node stays done; nothing is ever removed. */
.tl-card{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:18px 24px 16px;margin:4px 0 28px}
.tl{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none}
.tl::before,.tl::after{content:"";position:absolute;top:6px;left:6px;height:1.5px;border-radius:2px}
.tl::before{width:75%;background:var(--hair-2)}
.tl::after{width:var(--tl-fill,0);background:var(--ink);transition:width .6s var(--ease)}
.tl-node{position:relative;min-width:0}
.tl-node button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;cursor:default;width:100%;background:none;border:0;padding:0;font:inherit;color:inherit}
.tl-pt{position:relative;width:13px;height:13px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ink-4);display:grid;place-items:center;transition:all .25s var(--ease)}
.tl-pt svg{width:8px;height:8px;stroke:var(--on-ink);stroke-width:3.5;fill:none;opacity:0;transform:scale(.3);transition:all .25s var(--ease)}
.tl-nm{font-size:14px;font-weight:500;color:var(--ink-3);line-height:1.2}
.tl-mt{font-size:12.5px;line-height:1.25;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tl-node.is-done .tl-pt{background:var(--ink);box-shadow:none}
.tl-node.is-done .tl-pt svg{opacity:1;transform:none}
.tl-node.is-done .tl-nm{color:var(--ink)}
.tl-node.is-done .tl-mt{color:var(--ink-3)}
.tl-node.is-done button{cursor:pointer}
.tl-node.is-done button:hover .tl-nm{color:var(--teal-deep);text-decoration:underline;text-underline-offset:3px}
.tl-node.is-now .tl-pt{background:var(--surface);box-shadow:inset 0 0 0 4px var(--ink),0 0 0 5px rgba(11,42,48,.07)}
.tl-node.is-now .tl-nm{color:var(--ink);font-weight:600}
.tl-node.is-now .tl-mt{color:var(--ink-2)}
.tl-node.is-pop .tl-pt{animation:pop .5s var(--ease)}
@keyframes pop{40%{transform:scale(1.45)}}

/* One step at a time. */
.jv{padding-bottom:24px}
/* The content moves in, never the step itself: a transformed step would carry the phone's fixed
   action bar along with it. */
.jv.is-in > :not(.stephead),.jv.is-in > .stephead > .t{animation:jv-in .35s var(--ease)}
@keyframes jv-in{from{transform:translateY(8px)}}
.stephead{display:flex;align-items:flex-end;gap:24px;margin-bottom:22px}
.stephead .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.stephead h1{font-size:42px;line-height:1.05;font-weight:400;letter-spacing:-.035em}
.stephead p{font-size:15px;color:var(--ink-2);max-width:62ch}
.stephead .acts{display:flex;gap:8px;align-items:center;flex:none}
.jgrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:start}
.jgrid.is-stretch{align-items:stretch}
.j8{grid-column:span 8;min-width:0}
.j4{grid-column:span 4;min-width:0}
.jstack{display:flex;flex-direction:column;gap:16px}
.jv .kpis{margin-bottom:16px}

/* ---- 1 · Add ---- */
.bench{display:flex;flex-direction:column;gap:12px;min-width:0}
.addpane{display:none}.addpane.on{display:flex;flex-direction:column;gap:12px;flex:1}
.drop{position:relative;flex:1;display:grid;place-items:center;min-height:380px;border-radius:var(--r-card);cursor:pointer;overflow:hidden;
  background:radial-gradient(circle at 1px 1px,var(--hair-2) 1px,transparent 1.2px) 0 0/18px 18px,var(--surface);box-shadow:var(--sh-card)}
.drop::before{content:"";position:absolute;inset:16px;border:1.5px dashed var(--ink-4);border-radius:10px;transition:border-color .2s;pointer-events:none}
.drop:hover::before,.drop.is-over::before{border-color:var(--teal)}
.drop-crop{position:absolute;width:16px;height:16px;border:0 solid var(--ink-3);pointer-events:none}
.drop-crop.a{top:9px;left:9px;border-top-width:1.5px;border-left-width:1.5px}
.drop-crop.b{top:9px;right:9px;border-top-width:1.5px;border-right-width:1.5px}
.drop-crop.c{bottom:9px;left:9px;border-bottom-width:1.5px;border-left-width:1.5px}
.drop-crop.d{bottom:9px;right:9px;border-bottom-width:1.5px;border-right-width:1.5px}
.drop-idle{position:relative;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding:32px}
.drop-lens{width:88px;height:88px;border-radius:50%;background:var(--teal);color:var(--on-ink);display:grid;place-items:center;
  box-shadow:0 0 0 10px var(--teal-tint),inset 0 1px 0 rgba(255,255,255,.2);transition:transform .25s var(--ease),box-shadow .25s}
.drop-lens svg{width:34px;height:34px;stroke-width:1.6}
.drop:hover .drop-lens{transform:scale(1.05);box-shadow:0 0 0 14px var(--teal-tint)}
.drop-idle h2{font-size:30px;font-weight:400;letter-spacing:-.03em;margin-top:6px}
.drop-idle p{font-size:15px;color:var(--ink-2);max-width:42ch}
.drop-how{display:flex;gap:26px;flex-wrap:wrap;justify-content:center;margin-top:10px;font-size:13px;color:var(--ink-3)}
.drop-how span{display:flex;align-items:center;gap:8px}
.drop-how i{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--hair-2);display:grid;place-items:center;font-style:normal;font-size:11.5px;font-weight:600;color:var(--ink-2);background:var(--surface)}
.drop-busy{position:relative;display:none;flex-direction:column;align-items:center;gap:20px;padding:24px}
.drop.is-ready,.drop.is-busy{cursor:default}
.drop.is-ready .drop-idle,.drop.is-busy .drop-idle{display:none}
.drop.is-ready .drop-busy,.drop.is-busy .drop-busy{display:flex}
.drop-shot{position:relative;width:220px;height:220px;border-radius:14px;overflow:hidden;background:var(--well);box-shadow:0 0 0 1px var(--hair-2),0 16px 40px -12px rgba(11,42,48,.35)}
.drop-shot img{display:block;width:100%;height:100%;object-fit:cover}
.drop-sweep{position:absolute;left:0;right:0;height:48px;top:-48px;background:linear-gradient(180deg,transparent,rgba(255,255,255,.3) 80%,var(--on-ink) 100%);opacity:0}
.drop.is-reading .drop-sweep{opacity:1;animation:sweep 1.2s var(--ease) infinite alternate}
@keyframes sweep{to{top:calc(100% - 48px)}}
.drop-reticle{position:absolute;inset:16px;border:1.5px solid rgba(255,255,255,.85);border-radius:6px;opacity:0;transform:scale(1.15);transition:all .4s var(--ease)}
.drop.is-reading .drop-reticle{opacity:1;transform:none}
.drop-bar{width:220px;height:3px;border-radius:3px;background:var(--hair-2);overflow:hidden}
.drop-bar i{display:block;height:100%;width:0;background:var(--ink);transition:width .9s var(--ease)}
.drop.is-busy .drop-bar i{width:100%}
.drop-read{text-align:center;min-height:48px}
.drop-read b{display:block;font-size:20px;font-weight:500;letter-spacing:-.02em}
.drop-read span{font-size:13.5px;color:var(--ink-3)}
.drop-ready-acts{display:flex;gap:8px;align-items:center}
.drop.is-busy .drop-ready-acts{display:none}
#analyzing{display:none}

.methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.method{display:flex;align-items:center;gap:14px;padding:16px 18px;border:0;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--sh-card);
  text-align:left;font:inherit;color:var(--ink);cursor:pointer;transition:box-shadow .15s;min-width:0}
.method:hover{box-shadow:0 0 0 1px var(--teal),0 6px 20px -8px rgba(11,42,48,.1)}
.method-ico{width:40px;height:40px;border-radius:10px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);display:grid;place-items:center;color:var(--ink-2);flex:none}
.method-ico svg.ic{width:19px;height:19px}
.method b{display:block;font-size:14.5px;font-weight:500;letter-spacing:-.01em}
.method span span{font-size:13px;color:var(--ink-3)}
.addcard{flex:1;min-height:380px}
.addcard .card-h{margin-bottom:6px}

.ask{background:var(--amber-tint);border-radius:var(--r-card);padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.ask-q{font-size:21px;font-weight:500;letter-spacing:-.02em;color:var(--amber-ink)}
.ask-note{font-size:13.5px;color:var(--amber-ink)}
.ask-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-top:4px}
.ask-opt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;cursor:pointer;background:var(--surface);border:0;border-radius:var(--r-ctl);
  padding:12px 14px;font:inherit;color:var(--ink);box-shadow:var(--sh-ctl);transition:box-shadow .15s}
.ask-opt:hover{box-shadow:0 0 0 1px var(--teal)}
.ask-opt b{font-size:14.5px;font-weight:500;color:var(--teal-deep)}
.ask-opt span{font-size:12.5px;color:var(--ink-3)}

/* The order panel: a big count, then what's in it. */
.ocard{display:flex;flex-direction:column}
.ocard-big{display:flex;align-items:baseline;gap:10px;margin:2px 0 4px}
.ocard-big b{font-size:52px;line-height:1;font-weight:500;letter-spacing:-.045em}
.ocard-big span{font-size:20px;color:var(--ink-3);letter-spacing:-.02em}
.ocard-sub{font-size:13.5px;color:var(--ink-3);margin-bottom:14px}
.oline{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--hair)}
.oline.is-landed{animation:landed .7s var(--ease)}
.oline.is-landed .thumb{animation:glow 1.4s var(--ease)}
@keyframes landed{0%{transform:translateY(-8px)}}
@keyframes glow{0%,45%{box-shadow:0 0 0 3px var(--ok-tint),inset 0 0 0 1px var(--ok)}}
.oline b{display:block;font-size:15px;font-weight:500;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oline-d{display:block;font-size:13px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oline-q{font-size:20px;font-weight:500;letter-spacing:-.02em}
.oline-q small{font-size:13px;color:var(--ink-3);font-weight:400;margin-right:2px}
.oslot{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--hair);color:var(--ink-4);font-size:13.5px}
.oslot i{width:60px;height:60px;border-radius:var(--r-thumb);border:1.5px dashed var(--ink-4);flex:none}
.ocard-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--hair);font-size:13px;color:var(--ink-3);display:flex;justify-content:space-between;gap:12px}
.ocard-foot b{color:var(--ink);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#demo-unsized .hint{margin-top:12px}
.flyer{position:fixed;z-index:90;border-radius:12px;overflow:hidden;pointer-events:none;transition:all .65s var(--ease);box-shadow:0 10px 30px -8px rgba(11,42,48,.4)}
.flyer img{display:block;width:100%;height:100%;object-fit:cover}

/* Product thumbnails sit on kraft: a photo when there is one, otherwise a line drawing. */
.thumb{width:60px;height:60px;border-radius:var(--r-thumb);background:var(--kraft-tint);display:grid;place-items:center;overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(176,138,92,.18);flex:none}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb svg{width:60%;height:60%}

/* Library, paste and type panes. */
.libitem{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--hair)}
.libitem:first-child{border-top:0}
.libitem .nm{font-size:14.5px;font-weight:500;min-width:0}
.libitem .sp{display:block;font-size:12.5px;color:var(--ink-3);font-weight:400}
.panel{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:14px 18px}
.panel .head{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:500;color:var(--ink-2);cursor:pointer}
.panel .head .chev{margin-left:auto;transition:transform .2s;color:var(--ink-3)}
.panel.open .head .chev{transform:rotate(180deg)}
.panel .body{display:none;margin-top:12px}.panel.open .body{display:block}
.panel .row{display:flex;gap:8px}.panel .row input{flex:1}
.connected{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ok);font-weight:500}
.connected button{background:none;border:0;color:var(--ink-2);font-size:12.5px;text-decoration:underline;cursor:pointer;margin-left:auto;font-family:inherit}

/* ---- 2 · Check: one card per item ---- */
.icards{display:flex;flex-direction:column;gap:12px}
.icard{display:grid;grid-template-columns:132px minmax(0,1fr);gap:22px;align-items:start;padding:20px 22px;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);cursor:default}
.icard.is-needs{box-shadow:0 0 0 1.5px var(--amber),0 6px 20px -8px rgba(194,116,25,.25)}
.icard.is-focus:not(.is-needs){box-shadow:0 0 0 1px var(--hair-2),0 6px 20px -8px rgba(11,42,48,.16)}
.icard .thumb{width:132px;height:132px;border-radius:14px}
.icard-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.icard h3{font-size:19px;font-weight:500;letter-spacing:-.02em;overflow-wrap:anywhere}
.icard-acts{display:flex;gap:4px;margin-left:auto}
.specs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid var(--hair);align-items:end}
.specs > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.specs b{font-size:24px;font-weight:500;letter-spacing:-.03em;line-height:1.1}
.specs b .u{font-size:13px}
.specs .is-amber b{color:var(--amber)}
.specs .is-missing b{color:var(--ink-4)}
.specs-ctl{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.icard-ask{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px;padding:14px 16px;border-radius:12px;background:var(--amber-tint)}
.icard-ask p{flex:1;min-width:200px;font-size:14.5px;font-weight:500;color:var(--amber-ink)}
.icard-ask .o{display:flex;gap:8px;flex-wrap:wrap}
.icard-edit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end;margin-top:14px;padding:14px;border-radius:12px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair)}
.icard-edit label{margin:0 0 6px}
.icard-edit input{height:40px}
.tip{display:flex;gap:12px;align-items:baseline;margin-top:12px;font-size:13.5px;color:var(--ink-2);line-height:1.45}
.tip-tag{flex:none;font-size:12px;font-weight:500;color:var(--kraft-line);padding:2px 8px;border-radius:5px;background:var(--kraft-tint)}
.icard-note{margin-top:10px;font-size:13px;color:var(--ink-3)}
.dimfig svg{display:block;width:100%;height:auto}
.dimfig text{font:500 11px var(--sans);fill:var(--ink-2)}
.aside-note{padding:18px 20px;border-radius:var(--r-card);box-shadow:inset 0 0 0 1px var(--hair-2);font-size:13.5px;color:var(--ink-2)}
.aside-note b{display:block;color:var(--ink);font-weight:500;font-size:14.5px;margin-bottom:4px}

/* ---- 3 · Plan ---- */
.plan-wait{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;border-radius:var(--r-card);box-shadow:inset 0 0 0 1.5px var(--hair-2);
  padding:64px 20px;color:var(--ink-3);font-size:14px;margin-bottom:16px}
.plan-wait b{font-size:20px;font-weight:500;color:var(--ink)}
.parcel{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;padding:18px 22px;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card)}
.parcel + .parcel{margin-top:12px}
.parcel.is-in{animation:rise .55s var(--ease) both}
@keyframes rise{from{transform:translateY(14px)}}
.parcel-art svg{width:150px;height:auto;display:block}
.parcel-art text{font:500 10px var(--sans);fill:var(--ink-2)}
.parcel-fill{display:block;text-align:center;font-size:12.5px;color:var(--ink-3);margin-top:4px}
.parcel-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:2px}
.parcel h3{font-size:16px;font-weight:500;letter-spacing:-.01em}
.parcel-box{font-size:13px;color:var(--ink-3);margin-bottom:10px}
.parcel-conts{list-style:none;margin:0 0 14px;display:flex;flex-direction:column;gap:3px;font-size:13.5px;color:var(--ink-2)}
.parcel-conts li{display:flex;gap:8px}
.parcel-conts .x{font-weight:500;color:var(--ink);min-width:26px;flex:none}
.parcel-acts{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}
.pmeter{display:grid;grid-template-columns:48px minmax(0,1fr) 72px;gap:6px 12px;align-items:center;font-size:12.5px;color:var(--ink-3)}
.pmeter-tr{height:4px;border-radius:4px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);overflow:hidden}
.pmeter-tr i{display:block;height:100%;width:0;border-radius:4px;background:var(--ink-3);transition:width .8s var(--ease)}
.pmeter-tr i.is-ok{background:var(--ok)}
.pmeter-tr i.is-amber{background:var(--amber)}
.pmeter-v{font-weight:500;font-size:13px;color:var(--ink);text-align:right}
.pmeter-v.is-amber{color:var(--amber)}
#plan-notes{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.plan-alert{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.plan-alert:empty{display:none}
#plan-notes:empty{display:none}
.plan-foot{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--ink-3)}
.plan-foot svg{margin-top:2px}
#waitlist:empty{display:none}
#waitlist{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.waititem .btn{margin-top:8px}
.waitdone{display:block;font-style:normal;font-weight:500;margin-top:8px}
.wait-email{display:inline-block;width:min(240px,100%);height:34px;margin:8px 8px 0 0;font-size:13px;vertical-align:bottom}

.explain-lead{font-size:14px;color:var(--ink-2);margin-bottom:14px}
.calc{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;font-size:13px;padding:14px;border-radius:var(--r-ctl);background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);margin-bottom:14px}
.calc-k{color:var(--ink-3)}
.calc-r{text-align:right;color:var(--ink)}
.calc-t{border-top:1px dashed var(--hair-2);padding-top:8px;font-weight:500}
.calc-r.calc-t.is-amber{color:var(--amber)}
.calc-r.calc-t.is-ok{color:var(--ok)}
.explain .fine{font-size:12.5px;color:var(--ink-3);line-height:1.5}

/* How to pack it, and the 3D player. */
#steps-card{margin-top:16px}
.step{display:flex;gap:12px;padding:11px 8px;border-top:1px solid var(--hair);cursor:pointer;border-radius:10px;margin:0 -8px}
.step:first-child{border-top:0}
.step:hover{background:var(--well)}
.step.active{background:var(--well);box-shadow:inset 0 0 0 1px var(--hair-2)}
.step .n{flex:none;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--ink-4);color:var(--ink-2);font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}
.step.active .n{background:var(--ink);color:var(--on-ink);box-shadow:none}
.step b{font-size:14px;font-weight:500}
.step p{font-size:13px;color:var(--ink-2);margin-top:2px;line-height:1.45}
.parcelpick{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.parcelpick button{border:0;background:var(--surface);box-shadow:var(--sh-ctl);border-radius:8px;padding:7px 12px;font:inherit;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer}
.parcelpick button[aria-pressed=true]{box-shadow:0 0 0 1.5px var(--teal);color:var(--ink)}
.res{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#player-card{display:none;position:relative;margin-bottom:12px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);border-radius:var(--r-card);overflow:hidden}
#p3d{width:100%;aspect-ratio:4/3;max-height:360px;position:relative}
#p3d canvas{display:block;width:100% !important;height:100% !important}
.p3d-controls{display:flex;align-items:center;gap:9px;padding:10px 12px;background:var(--surface);border-top:1px solid var(--hair)}
.p3d-controls .pbtn{width:34px;height:34px;border-radius:var(--r-ctl);border:0;background:var(--teal);color:var(--on-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.p3d-controls .pbtn.ghost{background:var(--surface);color:var(--teal-deep);box-shadow:var(--sh-ctl)}
.p3d-dots{flex:1;display:flex;gap:5px}
.p3d-dots button{flex:1;height:5px;border-radius:3px;border:0;background:var(--hair-2);cursor:pointer;padding:0}
.p3d-dots button.on{background:var(--ink)}
.p3d-step-label{position:absolute;top:12px;left:12px;right:12px;color:var(--ink);font-size:13.5px;font-weight:500;display:flex;align-items:center;gap:8px;pointer-events:none}
.p3d-step-label .num{background:var(--ink);color:var(--on-ink);width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;flex:none}

/* ---- 4 · Order ---- */
.bill-big{font-size:52px;line-height:1;font-weight:500;letter-spacing:-.045em;margin:4px 0 4px}
.bill-sub{font-size:13px;color:var(--ink-3)}
.split{display:flex;height:6px;border-radius:6px;overflow:hidden;gap:2px;margin:18px 0 8px}
.split:empty{display:none}
.split i{display:block;height:100%}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-3)}
.legend > span{display:inline-flex;align-items:center;gap:6px}
.legend > span::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--c)}
.legend b{font-weight:500;color:var(--ink-2)}
.bill-sec{margin-top:20px}
.bline{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 0;border-top:1px solid var(--hair)}
.bill-sec .lbl + .bline,.bill-sec .lbl + div > .bline:first-child{border-top:0}
.bline .thumb,.prot .thumb{width:48px;height:48px;border-radius:10px}
.bline b{display:block;font-size:14px;font-weight:500}
.bline span{font-size:12.5px;color:var(--ink-3)}
.bline .bline-amt{font-size:14px;font-weight:500;color:var(--ink)}
#protective{display:flex;flex-direction:column}
.prot{display:grid;grid-template-columns:20px 48px minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;padding:13px 0;border:0;border-top:1px solid var(--hair);background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
.prot:first-child{border-top:0}
.prot .thumb{background:var(--well);box-shadow:inset 0 0 0 1px var(--hair)}
.prot b{display:block;font-size:14px;font-weight:500}
.prot-why{font-size:12.5px;color:var(--ink-3)}
.prot-amt{font-size:14px;font-weight:500}
.prot[aria-pressed=false] .prot-amt{color:var(--ink-4);text-decoration:line-through}
.prot:hover b{color:var(--teal-deep)}
.prot.is-oos{cursor:default;grid-template-columns:20px 48px minmax(0,1fr)}
.prot.is-oos img{filter:grayscale(1);opacity:.65}
.prot.is-oos:hover b{color:inherit}
.chk{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;box-shadow:inset 0 0 0 1.5px var(--ink-4);background:var(--surface);transition:all .15s}
.chk svg{width:12px;height:12px;stroke:var(--on-ink);stroke-width:3;fill:none;opacity:0}
[aria-pressed=true] > .chk{background:var(--teal);box-shadow:none}
[aria-pressed=true] > .chk svg{opacity:1}
.prot.is-oos .chk{box-shadow:inset 0 0 0 1.5px var(--hair-2);background:var(--well)}
.pay-row{display:flex;justify-content:space-between;font-size:13.5px;padding:7px 0;color:var(--ink-2)}
.pay-row span:last-child{color:var(--ink);font-weight:500}
.pay-row.is-total{border-top:1px solid var(--hair);margin-top:4px;padding-top:12px;font-weight:500;color:var(--ink)}
.pay-btns{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.pay-btns .btn{margin:0;height:46px;font-size:14.5px}
.pay-note{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;color:var(--ink-3);margin-top:12px}
.pay-note svg.ic{width:14px;height:14px;margin-top:1px}
.capture .row{display:flex;gap:8px}
.capture .row input{flex:1}
.capture .row .btn{margin:0}
.capture-more{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.capture-more .grid2{gap:8px}
#capture-msg .note{margin-top:10px}
.fin-seal{width:56px;height:56px;border-radius:50%;background:var(--ok);display:grid;place-items:center;color:var(--on-ink);box-shadow:0 0 0 8px var(--ok-tint);animation:pop .6s var(--ease)}
.fin-seal svg{width:26px;height:26px;stroke:var(--on-ink);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:28;stroke-dashoffset:28;animation:draw .5s .2s var(--ease) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.fin h3{font-size:24px;font-weight:500;letter-spacing:-.025em;margin:20px 0 4px}
.fin p{font-size:13.5px;color:var(--ink-2);margin-bottom:16px}
.fin .checks li{animation:fin-row .4s var(--ease) both}
@keyframes fin-row{from{transform:translateX(-8px)}}

/* The box finder's results. */
.finder-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 6px}
.finder-fields label{margin:0 0 6px;font-size:12.5px;color:var(--ink-3)}
.finder-fields input{height:46px;background:var(--well);font-size:17px;font-weight:500}
.fit{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--hair)}
.fit:first-child{border-top:0}
.fit b{display:block;font-size:14px;font-weight:500}
.fit span{font-size:12.5px;color:var(--ink-3)}
.fit-kg{font-size:14px;font-weight:500;color:var(--ink)}
#finder-list{max-height:min(46vh,420px);overflow-y:auto;margin-top:8px}

@media(max-width:1000px){
  .j8,.j4{grid-column:1/-1}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drop,.addcard{min-height:340px}
}
@media(max-width:720px){
  .crumbs,.date{display:none}
  .stephead{flex-direction:column;align-items:stretch}
  .stephead h1{font-size:32px}
  .stephead .acts{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:12px max(16px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
    background:rgba(255,255,255,.94);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 -1px 0 var(--hair)}
  .stephead .acts .btn{height:46px}
  .stephead .acts .btn:last-child{flex:1}
  .jv{padding-bottom:96px}
  #toasts{bottom:92px}
  .tl-card{padding:14px 14px 12px}
  .tl-nm{font-size:12px;padding-right:8px}.tl-mt{font-size:11px;padding-right:8px}
  .methods{grid-template-columns:minmax(0,1fr)}
  .icard{grid-template-columns:72px minmax(0,1fr);gap:14px;padding:16px}
  .icard .thumb{width:72px;height:72px}
  .specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .specs-ctl{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
  .icard-edit{grid-template-columns:repeat(2,minmax(0,1fr))}
  .parcel{grid-template-columns:minmax(0,1fr)}.parcel-art svg{width:130px}
  .kpi-v{font-size:34px}
  .bill-big,.ocard-big b{font-size:42px}
  .card{padding:16px}
  .finder-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pick select{max-width:190px}
}

/* Who sees what. A visitor from an ad and a prospect on a demo have no Reorder Desk or saved
   library; on /try the plan saves itself to the details given at the gate. */
body.try #save-plan,body.demo #save-plan,body.try #desk,body.demo #desk,body.try .method[data-pane=library],body.demo .method[data-pane=library],body.try #capture{display:none !important}

/* ============================ the embed (/embed) ============================ */
/* Inside an iframe on a landing page, sized to its content by the parent: nothing sized to the
   viewport, no site furniture, overlays open at the top. */
html.embed,html.embed body{min-height:0;height:auto}
html.embed .app{min-height:0}
html.embed .app > footer,html.embed .topbar .brand,html.embed .crumbs,html.embed .date,html.embed .whoami{display:none}
html.embed .topbar{min-height:0;padding-top:12px;padding-bottom:12px}
html.embed .gate{position:absolute;align-items:flex-start;padding-top:24px;min-height:100%}
html.embed #toasts{position:absolute;top:16px;bottom:auto}
html.embed .stephead h1{font-size:34px}
html.embed .drop,html.embed .addcard{min-height:360px}
@media(max-width:720px){html.embed .stephead .acts{position:static;background:none;box-shadow:none;padding:0;backdrop-filter:none}html.embed .jv{padding-bottom:24px}}

/* ============================ the console shell ============================ */
/* A light sidebar of sections and a page per section. */
.shell{display:flex;min-height:100dvh;background:var(--ground);--gutter:32px;--stack:16px}
.sidenav{width:232px;flex:none;background:var(--ground);border-right:1px solid var(--hair);display:flex;flex-direction:column;gap:22px;
  padding:18px 14px 14px;position:sticky;top:0;height:100dvh}
.sidenav .brand{display:flex;align-items:center;justify-content:space-between;padding:0 6px}
.sidenav .brand img{height:22px;width:auto;display:block}
.sidenav .brand .tag{font-size:12.5px;font-weight:500;color:var(--ink-3)}
.navgroup{display:flex;flex-direction:column;gap:4px}
.navgroup .label{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--ink-3);padding:0 10px;margin-bottom:2px}
.navgroup .label::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--ink-4)}
.nav{display:flex;flex-direction:column;gap:1px}
.nav a{display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;border-radius:9px;font-size:13.5px;color:var(--ink-2);text-decoration:none}
.nav a:hover{color:var(--ink)}
.nav a svg.ic{width:16px;height:16px;color:var(--ink-3)}
.nav a[aria-current=page]{background:var(--surface);color:var(--ink);font-weight:500;box-shadow:var(--sh-ctl)}
.nav a[aria-current=page] svg.ic{color:var(--ink)}
.sidenav .spacer{flex:1}
.sidenav .me{display:flex;align-items:center;gap:10px;padding:10px;border-radius:var(--r-ctl);background:var(--surface);box-shadow:var(--sh-ctl)}
.sidenav .me .avatar{width:30px;height:30px;font-size:12px;background:var(--ink);color:var(--surface);box-shadow:none}
.sidenav .me .who{flex:1;min-width:0;line-height:1.25}
.sidenav .me .who b{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidenav .me .who span{font-size:12px;color:var(--ink-3)}
.sidenav .me .who a{color:var(--ink-2)}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:30px var(--gutter) 22px}
.pagehead h1{font-size:40px;font-weight:400;line-height:1.05;letter-spacing:-.035em;margin:0}
.pagehead p{margin:8px 0 0;font-size:15px;color:var(--ink-2)}
.pagehead .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page{padding:0 var(--gutter) var(--gutter);display:flex;flex-direction:column;gap:var(--stack)}
.view{display:flex;flex-direction:column;gap:var(--stack)}
.main > footer{padding:0 var(--gutter) 24px}
.view .cols{margin-top:0}
#prospect-record,#pe{display:flex;flex-direction:column;gap:var(--stack)}
.view .placeholder{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--hair-2);border-radius:var(--r-card);padding:44px 24px;text-align:center;color:var(--ink-2);font-size:14px;line-height:1.55;max-width:560px}
.view .placeholder b{display:block;font-size:20px;font-weight:500;color:var(--ink);margin-bottom:6px}
.cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.jwrap > .cols{display:block}
@media(max-width:880px){
  .shell{flex-direction:column;--gutter:18px}
  .sidenav{width:auto;height:auto;position:static;border-right:0;border-bottom:1px solid var(--hair);flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px}
  .sidenav .brand{width:100%}
  .navgroup{flex-direction:row;align-items:center;gap:4px}
  .navgroup .label{display:none}
  .nav{flex-direction:row;flex-wrap:wrap}
  .nav a{height:32px;font-size:13px}
  .sidenav .spacer,.sidenav .me{display:none}
  .pagehead{padding:20px var(--gutter) 14px;flex-wrap:wrap}
  .pagehead h1{font-size:30px}
  .page{padding:0 var(--gutter) 24px}
  .cols{grid-template-columns:minmax(0,1fr)}
}

/* ============================ console components ============================ */
.surface{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);display:flex;flex-direction:column;overflow:hidden}
.surface-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:16px 20px 12px}
.surface-head h2{font-size:15px;font-weight:500;letter-spacing:-.01em;margin:0;min-width:0}
.surface-head .tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.surface-head .tools a:not(.btn){font-size:13px;font-weight:500;color:var(--teal-deep);text-decoration:none}
.surface-body{padding:4px 20px 20px}
.surface-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:12.5px;color:var(--ink-3);border-top:1px solid var(--hair)}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{font-size:12.5px;font-weight:500;color:var(--ink-3);padding:8px 20px 10px;border-bottom:1px solid var(--hair);text-align:left;white-space:nowrap}
.tbl td{padding:13px 20px;border-bottom:1px solid var(--hair);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover td{background:var(--well)}
.tbl th.num,.tbl td.num{text-align:right}
.tbl td.m{white-space:nowrap}
.tbl .sub{display:block;font-size:12.5px;color:var(--ink-3);margin-top:1px}
.tbl .who{display:flex;align-items:center;gap:10px}
.tbl td.end{text-align:right;white-space:nowrap}
.tbl td.end .btn{display:inline-flex}
.tbl a.rowlink{color:inherit;text-decoration:none;font-weight:500}
.tbl a.rowlink:hover{color:var(--teal-deep)}
.tblwrap{overflow-x:auto}

/* Figures that are the point: tiles, the first one the hero. */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.stat{display:flex;flex-direction:column;gap:6px;padding:16px 18px;min-width:0;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card)}
.stat .k{font-size:12.5px;font-weight:500;color:var(--ink-3)}
.stat .v{font-size:38px;font-weight:500;line-height:1.05;letter-spacing:-.04em}
.stat .n{font-size:12.5px;color:var(--ink-3)}
.stat .n.ok{color:var(--ok)}.stat .n.warn{color:var(--amber)}
.stats > .stat:first-child{background:linear-gradient(160deg,var(--midnight),var(--midnight-deep));box-shadow:var(--sh-hero);color:var(--on-hero)}
.stats > .stat:first-child .k,.stats > .stat:first-child .n{color:var(--on-hero-2)}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Where a prospect is: the same timeline as the customer's journey. */
.stepper{display:flex;align-items:flex-start;gap:0;padding:18px 24px 16px;overflow-x:auto}
.pst{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:14px;font-weight:500;color:var(--ink-3);white-space:nowrap;flex:none}
.pst i{width:13px;height:13px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--ink-4);background:var(--surface);display:grid;place-items:center;font-size:0;font-style:normal}
.pst i svg.ic{width:8px;height:8px;stroke:var(--on-ink);stroke-width:3.5}
.pst.done{color:var(--ink)}.pst.done i{background:var(--ink);box-shadow:none}
.pst.now{color:var(--ink);font-weight:600}.pst.now i{background:var(--surface);box-shadow:inset 0 0 0 4px var(--ink),0 0 0 5px rgba(11,42,48,.07)}
.stepline{flex:1;height:1.5px;background:var(--hair-2);min-width:24px;margin:6px 10px 0}
.stepline.done{background:var(--ink)}

.filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.filters .btn.sm{background:var(--surface);color:var(--ink-2);box-shadow:var(--sh-ctl)}
.filters .btn.sm:hover:not(:disabled){background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--teal)}
.filters .btn.sm[aria-pressed=true]{background:var(--teal);color:var(--on-ink);box-shadow:0 0 0 1px var(--teal-deep)}
.search{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:var(--r-ctl);background:var(--surface);box-shadow:var(--sh-ctl);font-size:13px;color:var(--ink)}
.search input{border:0;outline:0;background:transparent;font:inherit;flex:1;min-width:0;color:var(--ink);height:auto;padding:0;border-radius:0;box-shadow:none}
.search input:focus{box-shadow:none}
.search:focus-within{box-shadow:var(--focus)}
.search svg.ic{width:14px;height:14px;color:var(--ink-3)}
.feed{display:flex;flex-direction:column}
.feed .ev{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--hair)}
.feed .ev:first-child{border-top:0}
.feed .ev .what{flex:1;min-width:0;line-height:1.4;font-size:13.5px}
.feed .ev .when{display:block;font-size:12.5px;color:var(--ink-3);margin-top:2px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{margin:0}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.donext{display:flex;flex-direction:column}
.next-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px 20px;border-top:1px solid var(--hair)}
.next-row:first-child{border-top:0}
.next-what{min-width:0;line-height:1.35}
.next-what b{display:block;font-size:14px;font-weight:500}
.next-what span{display:block;font-size:12.5px;color:var(--ink-3);margin-top:2px;overflow-wrap:anywhere}
.next-row .btn{margin:0}
#ov-next .empty{padding:28px 20px}
.funnel{display:grid;grid-template-columns:132px minmax(0,1fr) 40px;gap:10px 12px;align-items:center;padding:6px 20px 20px;font-size:13px;color:var(--ink-2)}
.funnel .track{height:8px;border-radius:4px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);overflow:hidden}
.funnel .track i{display:block;height:100%;border-radius:4px;background:var(--ink)}
.funnel .track.good i{background:var(--ok)}
.funnel .track.warn i{background:var(--amber)}
.funnel b{text-align:right;font-size:17px;font-weight:500;color:var(--ink)}
@media(max-width:880px){
  .next-row{grid-template-columns:auto minmax(0,1fr) auto;padding:12px 16px}
  .next-row .chip{display:none}
  .funnel{grid-template-columns:110px minmax(0,1fr) 34px}
}
/* The console's own order lines (the demo builder). */
.lines{border-top:1px solid var(--hair);margin-top:14px}
.line{display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-bottom:1px solid var(--hair)}
.line .thumb{width:42px;height:42px;border-radius:10px}
.line .body{flex:1;min-width:0}
.line .nm{font-size:14.5px;font-weight:500;line-height:1.3;word-break:break-word}
.line .spec{font-size:12.5px;color:var(--ink-3);margin-top:2px}
.line .spec .warn{color:var(--amber);font-weight:500}
.src{display:inline-block;font-size:12px;font-weight:500;border-radius:5px;padding:1px 7px;margin-left:6px;background:var(--well);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--hair)}
.src.warn,.src.est{background:var(--amber-tint);color:var(--amber);box-shadow:none}
.src.ok,.src.library{background:var(--ok-tint);color:var(--ok);box-shadow:none}

/* ============================ the proposal document ============================ */
/* Blocks rendered by lib/proposals.js: the same markup on the rep's editor, the prospect's page
   and the print page. */
.pd{font-size:15px;line-height:1.65;color:var(--ink)}
.pd .pd-h{font-size:22px;font-weight:500;letter-spacing:-.02em;margin:30px 0 8px;line-height:1.25}
.pd .pd-h:first-child{margin-top:0}
.pd .pd-p{margin:0 0 12px}
.pd .pd-ul{margin:0 0 12px 18px;padding:0;line-height:1.7}
.pd a{color:var(--teal-deep)}
.pd .pd-card{display:flex;gap:14px;align-items:center;box-shadow:inset 0 0 0 1px var(--hair-2);border-radius:var(--r-card);padding:12px 14px;margin:6px 0 14px;background:var(--surface)}
.pd .pd-card img,.pd .pd-card .pd-thumb{width:64px;height:64px;border-radius:var(--r-thumb);object-fit:cover;background:var(--kraft-tint);flex:none}
.pd .pd-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pd .pd-card-body b{font-weight:500}
.pd .pd-card-body span{font-size:13px;color:var(--ink-2)}
.pd .pd-card-body .pd-note{color:var(--ink-3)}
.pd .pd-price{text-align:right;flex:none}
.pd .pd-price b{display:block;font-size:19px;font-weight:500;letter-spacing:-.02em}
.pd .pd-price span{font-size:12px;color:var(--ink-3)}
.pd .pd-gone{box-shadow:inset 0 0 0 1px var(--hair-2);border:1px dashed var(--ink-4);color:var(--ink-3)}
.pd .pd-pack{box-shadow:inset 0 0 0 1px var(--hair-2);border-radius:var(--r-card);overflow:hidden;margin:6px 0 14px;background:var(--surface)}
.pd .pd-pack-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;background:var(--well);border-bottom:1px solid var(--hair);font-size:13px}
.pd .pd-snap{font-size:12px;color:var(--ink-2);background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);border-radius:var(--r-chip);padding:2px 8px;white-space:nowrap}
.pd .pd-parcel{display:flex;gap:12px;align-items:flex-start;padding:11px 16px;border-bottom:1px solid var(--hair)}
.pd .pd-parcel > div{flex:1;min-width:0}
.pd .pd-parcel b{display:block;font-size:14px;font-weight:500}
.pd .pd-parcel span{font-size:13px;color:var(--ink-2)}
.pd .pd-parcel span.m{white-space:nowrap;flex:none}
.pd .pd-parcel span.pd-num,.pd .pd-num{width:30px;height:30px;border-radius:8px;background:var(--kraft-tint);color:var(--kraft-line);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:12px;flex:none}
.pd .pd-pack-foot{display:flex;justify-content:space-between;gap:12px;padding:11px 16px;font-size:13px;color:var(--ink-2)}
.pd .pd-pack-foot b{color:var(--ink);font-weight:500}
.pd .pd-pricing{box-shadow:inset 0 0 0 1px var(--hair-2);border-radius:var(--r-card);overflow:hidden;margin:6px 0 14px;background:var(--surface)}
.pd .pd-pricing table{width:100%;border-collapse:collapse;font-size:13.5px}
.pd .pd-pricing th{font-size:12.5px;font-weight:500;color:var(--ink-3);padding:10px 16px;border-bottom:1px solid var(--hair);text-align:left}
.pd .pd-pricing td{padding:11px 16px;border-bottom:1px solid var(--hair);vertical-align:top}
.pd .pd-pricing .num{text-align:right;white-space:nowrap}
.pd .pd-pricing s{color:var(--ink-3);font-weight:400}
.pd .pd-sub{display:block;font-size:12px;color:var(--ink-3)}
.pd .pd-disc{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:var(--r-chip);font-size:12px;font-weight:500;background:var(--ok-tint);color:var(--ok);margin-left:6px}
.pd .pd-totals{display:grid;grid-template-columns:1fr auto;gap:4px 24px;justify-content:end;padding:12px 16px;background:var(--well);font-size:13.5px;text-align:right}
.pd .pd-totals > span:nth-child(odd){color:var(--ink-2)}
.pd .pd-grand{font-weight:500}
.pd .pd-totals .pd-grand.m{font-size:20px;letter-spacing:-.02em}
.pd .pd-valid{padding:8px 16px;font-size:12.5px;color:var(--ink-3);border-top:1px solid var(--hair)}
.pd .pd-fig{margin:6px 0 14px}
.pd .pd-fig img{display:block;width:100%;border-radius:var(--r-card);box-shadow:0 0 0 1px var(--hair)}
.pd .pd-fig figcaption{font-size:13px;color:var(--ink-3);margin-top:6px}
.pd .pd-file{display:flex;flex-direction:column;gap:2px;box-shadow:inset 0 0 0 1px var(--hair-2);border-radius:var(--r-ctl);padding:10px 12px;background:var(--surface);margin:6px 0 14px;text-decoration:none;color:var(--ink)}
.pd .pd-file b{font-size:14px;font-weight:500}
.pd .pd-file span{font-size:12px;color:var(--ink-3)}

/* The editor: the same document, with affordances only where the cursor is. */
.pe-doc{position:relative;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:36px 48px 40px}
.pe-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:22px;border-bottom:1px solid var(--hair);margin-bottom:20px}
.pe-head .eyebrow{font-size:12.5px;font-weight:500;color:var(--ink-3)}
.pe-head h1{font-size:40px;font-weight:400;line-height:1.08;letter-spacing:-.035em;margin:8px 0 8px;outline:0;min-width:200px}
.pe-head h1:empty::before{content:"Give the proposal a title";color:var(--ink-4)}
.pe-head .meta{font-size:13.5px;color:var(--ink-2)}
.pe-head img{height:24px;width:auto;margin-top:4px}
.pe-block{position:relative;border-radius:10px;margin:0 -10px;padding:0 10px}
.pe-block:hover{background:var(--well)}
.pe-block.selected{box-shadow:0 0 0 1.5px var(--teal);background:var(--well)}
.pe-block [contenteditable]{outline:0;min-height:1.2em}
.pe-block [contenteditable]:empty::before{content:attr(data-placeholder);color:var(--ink-4)}
.pe-gutter{position:absolute;left:-40px;top:2px;display:none;flex-direction:column;gap:4px}
.pe-block:hover .pe-gutter,.pe-block.selected .pe-gutter{display:flex}
.pe-gutter button{width:28px;height:28px;border-radius:8px;border:0;background:var(--surface);color:var(--ink-3);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--sh-ctl);padding:0}
.pe-gutter button:hover{color:var(--teal-deep)}
.pe-gutter button.on{color:var(--ink);box-shadow:0 0 0 1.5px var(--ink)}
.pe-cardtools{position:absolute;right:6px;top:-12px;display:none;gap:4px;background:var(--surface);border-radius:9px;padding:3px;box-shadow:var(--sh-ctl);z-index:2}
.pe-block:hover .pe-cardtools,.pe-block.selected .pe-cardtools,.pe-block.editing .pe-cardtools{display:flex}
.pe-cardtools .btn.sm{height:26px;padding:0 8px;font-size:12px}
.pe-menu{position:absolute;left:0;top:100%;width:300px;background:var(--surface);border-radius:12px;box-shadow:var(--sh-lift);padding:6px;z-index:6}
.pe-menu .label{padding:6px 10px 4px;font-size:12.5px;font-weight:500;color:var(--ink-3)}
.pe-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:transparent;border-radius:8px;font:inherit;font-size:13.5px;color:var(--ink);cursor:pointer;text-align:left}
.pe-menu button:hover,.pe-menu button.on{background:var(--well)}
.pe-menu button span{flex:1}
.pe-menu button small{display:block;font-size:12px;color:var(--ink-3)}
.pe-menu button i{width:26px;height:26px;border-radius:7px;background:var(--well);display:inline-flex;align-items:center;justify-content:center;color:var(--ink-2);flex:none}
.pe-fmt{position:absolute;display:flex;gap:2px;padding:4px;background:var(--ink);border-radius:10px;box-shadow:var(--sh-toast);z-index:7}
.pe-fmt button{height:30px;min-width:30px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:var(--on-ink);font:inherit;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.pe-fmt button:hover{background:rgba(255,255,255,.14)}
.pe-panel{box-shadow:inset 0 0 0 1px var(--hair-2);border-radius:12px;padding:14px;margin:6px 0 14px;background:var(--well);display:flex;flex-direction:column;gap:10px}
.pe-panel .row{display:grid;gap:8px;align-items:end}
.pe-panel .row.price{grid-template-columns:minmax(0,3fr) 70px 110px 110px auto}
.pe-panel .row.order{grid-template-columns:minmax(0,3fr) 70px 70px 70px 80px 70px auto}
.pe-panel input,.pe-panel select{height:36px;padding:0 10px;font-size:13px;border-radius:8px}
.pe-panel .actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pe-panel .hint{margin:0}
.pe-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);position:sticky;top:12px;z-index:5}
.pe-status .meta{font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pe-status .tools{display:flex;align-items:center;gap:8px;flex:none}
.pe-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.pe-wrap .pe-docwrap{padding-left:44px}
.pe-empty{color:var(--ink-3);font-size:14px;padding:6px 0}
@media(max-width:1100px){.pe-wrap{grid-template-columns:1fr}.pe-wrap .pe-docwrap{padding-left:34px}}
.pe-doc.readonly .pe-gutter,.pe-doc.readonly .pe-cardtools,.pe-doc.readonly #pe-newline{display:none !important}
.pe-doc.readonly .pe-block:hover{background:transparent}
.pe-tplsel{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 6px 0 12px;border-radius:var(--r-ctl);background:var(--surface);box-shadow:var(--sh-ctl);font-size:13px;color:var(--ink-3);margin:0}
.pe-tplsel select{border:0;box-shadow:none;background:transparent;font:inherit;font-size:13px;color:var(--ink);height:30px;padding:0 4px;max-width:200px;width:auto}
.pe-tpldesc{margin-top:8px;height:36px;font-size:13px;width:100%;max-width:520px}
.pe-start{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:32px 44px 36px}
.pe-start .eyebrow{font-size:12.5px;font-weight:500;color:var(--ink-3)}
.pe-start h2{font-size:30px;font-weight:400;letter-spacing:-.03em;margin:8px 0 6px}
.pe-start .hint{margin:0 0 18px;max-width:560px}
.pe-start-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.pe-start-card{display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px 16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--sh-card);font:inherit;color:var(--ink);cursor:pointer}
.pe-start-card:hover{box-shadow:0 0 0 1px var(--teal),0 6px 20px -8px rgba(11,42,48,.1)}
.pe-start-card b{font-weight:500}
.pe-start-card span{font-size:13px;color:var(--ink-2)}
.pe-start-card small{font-size:12px;color:var(--ink-3);margin-top:4px}
.pe-lockchip{position:absolute;right:8px;top:-10px;display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:var(--r-chip);font-size:12px;font-weight:500;background:var(--surface);box-shadow:var(--sh-ctl);color:var(--ink-2);z-index:1}
.pe-block.locked{background:var(--well);margin-top:14px;padding-top:8px;padding-bottom:4px}
.pe-block.locked [contenteditable=false]{cursor:default}

/* ============================ comments ============================ */
.cmt{padding:12px 0;border-top:1px solid var(--hair)}
.cmt:first-child{border-top:0}
.cmt-head{display:flex;gap:10px;align-items:center;font-size:13px}
.cmt-head .avatar{width:26px;height:26px;font-size:10px}
.cmt-head b{font-weight:500}
.cmt-head .sub{color:var(--ink-3)}
.cmt-when{display:block;font-size:12px;color:var(--ink-3);margin-top:1px}
.cmt-on{font-size:12.5px;color:var(--ink-3);margin:6px 0 2px;font-style:italic}
.cmt-on:hover{color:var(--teal-deep);cursor:pointer}
.cmt-body{font-size:13.5px;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.cmt-reply{margin-top:8px;padding:8px 10px;border-radius:8px;font-size:13px;background:var(--well);white-space:pre-wrap;overflow-wrap:anywhere}
.cmt-reply.staff{background:var(--kraft-tint)}
.cmt-reply b{font-weight:500}
.cmt-form{display:flex;gap:8px;align-items:center;margin-top:8px}
.cmt-form input,.cmt-form textarea{flex:1;height:34px;font-size:13px;padding:0 10px;min-width:0}
.cmt-form .avatar{width:22px;height:22px;font-size:10px}
.cmt-who{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.cmt-who input{height:36px;font-size:13px}
.cmt-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:8px}
.cmt.resolved{opacity:.7}
.cmt.needs .cmt-head b::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);margin-left:6px;vertical-align:middle}
.cmt-empty{font-size:13px;color:var(--ink-3);padding:6px 0}

/* ============================ the proposal on the prospect's page ============================ */
.pp{width:100%;max-width:1240px;margin:0 auto 28px;padding:0 max(20px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px))}
.pp-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.pp-tools .hint{margin:0}
.pp-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
@media(min-width:1000px){.pp-grid{grid-template-columns:minmax(0,1fr) 320px}}
.pp-doc{position:relative;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh-card);overflow:hidden}
.pp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:36px 48px 26px;border-bottom:1px solid var(--hair)}
.pp-head .eyebrow{font-size:12.5px;font-weight:500;color:var(--ink-3)}
.pp-head h1{font-size:42px;font-weight:400;line-height:1.05;letter-spacing:-.035em;margin:10px 0 10px}
.pp-head .meta{font-size:13.5px;color:var(--ink-2)}
.pp-head .meta b{color:var(--ink);font-weight:500}
.pp-head img{height:24px;width:auto;margin-top:4px}
#pp-body{padding:30px 48px 4px}
.pp-foot{display:flex;justify-content:space-between;gap:12px;margin:26px 48px 0;padding:12px 0 26px;border-top:1px solid var(--hair);font-size:12px;color:var(--ink-3)}
.pp-rail{position:sticky;top:16px;display:flex;flex-direction:column;gap:12px}
.pp-rail .label{font-size:13px;font-weight:500;color:var(--ink-3);margin:6px 0 0 4px}
.pp-rail .surface{padding:4px 18px}
.pp-rail .hint{margin:0 4px;font-size:12.5px;color:var(--ink-3)}
.pp-decide{padding:18px !important;display:flex;flex-direction:column;gap:12px}
.pp-total{display:flex;flex-direction:column;gap:2px;padding-bottom:14px;border-bottom:1px solid var(--hair)}
.pp-total span{font-size:12.5px;font-weight:500;color:var(--ink-3)}
.pp-total b{font-size:40px;font-weight:500;letter-spacing:-.04em;line-height:1.05}
.pp-accept{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin-top:26px;padding:18px 20px;border-radius:var(--r-card);background:var(--well);box-shadow:inset 0 0 0 1px var(--hair)}
.pp-accept .ttl{font-weight:500;font-size:16px;display:flex;align-items:center;gap:8px}
.pp-accept .ttl .ic{color:var(--ok)}
.pp-accept .sub{font-size:13px;color:var(--ink-2);margin-top:2px}
.pp-accept .cmt-who{margin-top:10px}
.pp-accept input[type=text]{height:38px;font-size:13px}
.pp-accept .err{display:block;color:var(--red);font-size:12.5px;margin-top:6px;background:none;padding:0}
.pp-accept .acts{display:flex;flex-direction:column;gap:8px;min-width:240px}
.pp-accept .acts .btn{margin:0;width:100%}
.pp-accept.done{background:var(--ok-tint);box-shadow:none}
.pp-doc > .pp-accept.done{margin:8px 48px 0}
.pp-decide .pp-accept{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:0;background:none;box-shadow:none}
.pp-decide .pp-accept .cmt-who{grid-template-columns:1fr;margin-top:10px}
.pp-decide .pp-accept input[type=text],.pp-decide .pp-accept input[type=email]{margin-top:8px}
.pp-decide .pp-accept .acts{min-width:0}
.pp-done{display:flex;flex-direction:column;gap:10px;background:var(--ok-tint);border-radius:var(--r-ctl);padding:12px}
.pp-done .ttl{display:flex;align-items:center;gap:8px;font-weight:500;color:var(--ok);font-size:14px}
.pp-done .btn,.pp-decide > .btn{margin:0}
.pp-done-sub{font-size:13px;color:var(--ink-2);line-height:1.5}
mark.pp-mark{background:rgba(194,116,25,.2);color:inherit;border-radius:3px;padding:1px 0;cursor:pointer}
mark.pp-mark.on{background:rgba(194,116,25,.4)}
#pp-hl{position:absolute;z-index:6;height:32px;padding:0 12px;border:0;border-radius:9px;background:var(--ink);color:var(--on-ink);font:inherit;font-size:13px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;box-shadow:var(--sh-toast)}
#pp-pop{position:absolute;z-index:7;width:340px;max-width:calc(100% - 20px);background:var(--surface);border-radius:14px;box-shadow:var(--sh-lift);padding:14px}
#pp-pop .on{font-size:12.5px;color:var(--ink-3);margin-bottom:8px}
#pp-pop textarea{min-height:64px;font-size:13.5px}
#pp-pop .who{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:8px}
#pp-pop .who .avatar{width:24px;height:24px;font-size:10px}
#pp-pop .err{display:block;color:var(--red);font-size:12.5px;margin-top:6px;background:none;padding:0}
@media(max-width:999px){.pp-rail{position:static}}
@media(max-width:640px){
  .pp-head{padding:24px 18px 20px;flex-direction:column;align-items:flex-start}
  .pp-head h1{font-size:30px}
  #pp-body{padding:22px 18px 4px}
  .pp-doc > .pp-accept.done{margin:8px 18px 0}
  .pp-foot{margin:22px 18px 0}
  .pp-accept{grid-template-columns:1fr}.pp-accept .acts{min-width:0}
}

/* ============================ motion ============================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important}
}

/* ============================ print ============================ */
/* The proposal alone, on paper. Download PDF is the browser's print dialog. */
@media print{
  @page{margin:16mm 14mm}
  body{background:var(--on-ink);color:#000}
  body.has-proposal .topbar,body.has-proposal .jwrap,body.has-proposal .cols,body.has-proposal .demo-banner,body.has-proposal #prepared-banner,body.has-proposal footer,body.has-proposal .signin,body.has-proposal #toasts{display:none !important}
  .pp-tools,.pp-rail,#pp-hl,#pp-pop,#pp-accept,.pp-accept .acts{display:none !important}
  .pp-accept.done{background:transparent;box-shadow:none;padding:12px 0 0;margin:12px 0 0}
  .pp-grid{display:block}
  mark.pp-mark{background:transparent !important;color:inherit}
  .pp{margin:0;padding:0;max-width:none}
  .pp-doc{box-shadow:none;border-radius:0}
  .pp-head{padding:0 0 22px}
  #pp-body{padding:20px 0 0}
  .pp-foot{margin:26px 0 0}
  .pd .pd-card,.pd .pd-pack,.pd .pd-pricing,.pd .pd-parcel,.pd .pd-fig{break-inside:avoid}
  .pd .pd-h{break-after:avoid}
  .pd a{color:inherit;text-decoration:none}
}
