/* SimpliTechPro: invoice generator page (invoice-generator.html). Page-scoped .ivg-* classes on
   theme.css tokens (Direction C v3.4); style.css and theme.css stay untouched. */

/* keyboard focus and in-page jumps land below the sticky nav (this page only; scroll-padding, not overflow, SD-005) */
html:has(.ivg-body){scroll-padding-top:150px}

/* ---------- hero: poster (LCP) + film slot ----------
   body.hero-nav (theme.css): the nav is fixed and transparent over the hero, so the hero starts under it and
   its top padding carries the 69px bar (CEO 2026-10-24); invoice-boot.js frosts the bar at the eyebrow. */
.ivg-hero{position:relative;overflow:hidden;padding:133px 0 40px;min-height:300px;display:flex;align-items:flex-end}
/* backdrop drawn in CSS (no image request): navy gradient, soft light, faint grid; no orange */
.ivg-hero__media{position:absolute;inset:0;z-index:0;background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px) 0 0/66px 66px,linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/66px 66px,radial-gradient(60% 70% at 78% 35%,rgba(120,150,190,.2),transparent 70%),radial-gradient(45% 55% at 60% 85%,rgba(90,120,160,.16),transparent 70%),linear-gradient(135deg,#0a1420,#13233a)}
.ivg-hero__poster,.ivg-hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ivg-hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(10,20,32,.92) 0%,rgba(10,20,32,.78) 42%,rgba(10,20,32,.35) 75%,rgba(10,20,32,.2) 100%)}
/* top fade: keeps the see-through nav's links readable over a bright frame of the film */
.ivg-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(10,20,32,.8) 0,rgba(10,20,32,.55) 69px,rgba(10,20,32,0) 190px)}
.ivg-hero__copy{position:relative;z-index:2;width:100%}
/* a soft shadow keeps the headline readable over the brighter film (CEO 2026-10-24: "too faded") */
.ivg-hero h1,.ivg-hero__sub{text-shadow:0 1px 14px rgba(10,20,32,.55)}
.ivg-hero__sub{color:var(--rx-t-hi)}
@media(max-width:720px){.ivg-hero h1,.ivg-hero__sub{text-shadow:0 1px 3px rgba(10,20,32,.7),0 2px 18px rgba(10,20,32,.6)}}
.ivg-hero .rx-eyebrow{display:block;margin-bottom:14px}
.ivg-hero h1{font-family:var(--rx-fdisplay);font-weight:400;font-size:clamp(26px,3.4vw,46px);line-height:1.16;color:#fff;max-width:20ch;margin:0}
.ivg-hero__sub{margin:18px 0 0;max-width:62ch;font-family:var(--rx-fbody);font-size:17px;line-height:1.6;color:var(--rx-t)}
.ivg-hero__btn{margin-top:26px}
/* phones: the hero fills the whole first screen. lvh runs it under iOS 26 Safari's floating glass toolbar
   (svh stopped above it and the light band showed through, CEO's iPhone 2026-10-24); the extra bottom
   padding (lvh - svh = the toolbar) keeps the copy and button above the toolbar. */
@media(max-width:720px){.ivg-hero{padding:145px 0 40px;padding-bottom:calc(40px + 100lvh - 100svh);min-height:100vh;min-height:100lvh}.ivg-hero::before{background:linear-gradient(180deg,rgba(10,20,32,.62) 0%,rgba(10,20,32,.4) 55%,rgba(10,20,32,.5) 100%)}.ivg-hero__sub{font-size:16px}}

/* ---------- tool frame ---------- */
.ivg-toolsec{padding:28px 0 8px;scroll-margin-top:72px}
.ivg-tool{max-width:var(--rx-wrap);margin:0 auto;padding:0 28px}
/* [hidden] always wins over a component's own display (flex / grid) */
.ivg-tool [hidden]{display:none!important}
@media(pointer:coarse){.ivg-keys-hint{display:none}}
.ivg-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ivg-noscript{font-family:var(--rx-fbody);color:var(--rx-t)}

.ivg-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:18px 28px;padding:18px 20px;border:1px solid var(--rx-line-2);background:var(--rx-card)}
.ivg-seg{display:inline-flex;border:1px solid var(--rx-line-2);margin:0;padding:0}
.ivg-seg label{position:relative;cursor:pointer}
.ivg-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.ivg-seg span{display:flex;align-items:center;min-height:46px;padding:0 18px;font-family:var(--rx-fbody);font-size:15px;font-weight:600;color:var(--rx-t);transition:background .2s var(--rx-ease),color .2s var(--rx-ease)}
.ivg-seg label+label span{border-left:1px solid var(--rx-line-2)}
.ivg-seg input:checked+span{background:var(--rx-t-hi);color:var(--rx-navy-deep)}
.ivg-seg input:focus-visible+span{outline:2px solid var(--rx-orange);outline-offset:2px}
.ivg-styles{display:flex;gap:10px;border:0;margin:0;padding:0}
.ivg-styles legend{float:left;width:100%;margin-bottom:6px;padding:0;font-family:var(--rx-fmono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--rx-t-lo)}
.ivg-style{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
.ivg-style input{position:absolute;opacity:0;width:1px;height:1px}
.ivg-style__thumb{display:block;width:58px;height:75px;background:#fff;border:2px solid transparent;outline:1px solid var(--rx-line-2);transition:border-color .2s var(--rx-ease),transform .2s var(--rx-ease)}
.ivg-style__thumb svg{display:block;width:100%;height:100%}
.ivg-style__name{font-family:var(--rx-fbody);font-size:12.5px;color:var(--rx-t-lo)}
.ivg-style input:checked~.ivg-style__thumb{border-color:var(--rx-orange);transform:translateY(-2px)}
.ivg-style input:checked~.ivg-style__name{color:var(--rx-t-hi);font-weight:600}
.ivg-style input:focus-visible~.ivg-style__thumb{outline:2px solid var(--rx-orange);outline-offset:3px}
.ivg-bar__actions{display:flex;gap:10px;margin-left:auto}
.ivg-status{min-height:1.4em;margin:8px 2px 0;font-family:var(--rx-fbody);font-size:14px;color:var(--rx-t)}

/* buttons */
.ivg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border:1px solid var(--rx-line-2);background:transparent;color:var(--rx-t-hi);font-family:var(--rx-fdisplay);font-size:12px;letter-spacing:.03em;text-transform:uppercase;cursor:pointer;border-radius:0;transition:background .2s var(--rx-ease),color .2s var(--rx-ease),border-color .2s var(--rx-ease),transform .15s var(--rx-ease)}
.ivg-btn:hover{border-color:var(--rx-t-hi)}
.ivg-btn:active{transform:translateY(1px)}
.ivg-btn:focus-visible,.ivg-chip:focus-visible,.ivg-iconbtn:focus-visible,.ivg-line__drag:focus-visible{outline:2px solid var(--rx-orange);outline-offset:2px}
.ivg-btn--primary{background:var(--rx-orange);border-color:var(--rx-orange);color:var(--rx-navy-deep);font-weight:700}
.ivg-btn--primary:hover{background:var(--rx-orange-h);border-color:var(--rx-orange-h)}
.ivg-btn--text{min-height:44px;padding:0 6px;border:0;font-family:var(--rx-fbody);font-size:14.5px;text-transform:none;letter-spacing:0;color:#FFF92B;text-decoration:underline;text-underline-offset:3px}
.ivg-btn.is-busy{opacity:.7;cursor:progress}
.ivg-btn:disabled{cursor:progress}

/* ---------- split: form | preview ---------- */
.ivg-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:28px;margin-top:18px;align-items:start}
.ivg-tabs{display:none}
.ivg-mbar{display:none}

.ivg-form{display:flex;flex-direction:column;gap:16px;min-width:0}
.ivg-card{margin:0;border:1px solid var(--rx-line-2);background:var(--rx-card);padding:20px 22px 22px;min-width:0}
.ivg-card--plain{background:transparent}
.ivg-card__title{float:left;width:100%;display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:0;font-family:var(--rx-fdisplay);font-weight:400;font-size:13px;line-height:1.3;text-transform:uppercase;color:#fff}
.ivg-card__title+*{clear:both}
.ivg-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--rx-line-2);font-family:var(--rx-fmono);font-size:12px;color:var(--rx-t-hi)}
.ivg-num[hidden]{display:none}
.ivg-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.ivg-col2{grid-column:1 / -1}
.ivg-field{min-width:0}
.ivg-field>label{display:block;margin-bottom:7px;font-family:var(--rx-fmono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--rx-t-lo)}
.ivg-form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),.ivg-form select,.ivg-form textarea{display:block;width:100%;min-height:46px;padding:11px 13px;font-family:var(--rx-fbody);font-size:16px;line-height:1.35;color:var(--rx-t-hi);background:var(--rx-navy-deep);border:1px solid var(--rx-line-2);border-radius:0;transition:border-color .15s var(--rx-ease),box-shadow .15s var(--rx-ease)}
.ivg-form textarea{resize:vertical;min-height:46px}
.ivg-form input::placeholder,.ivg-form textarea::placeholder{color:var(--rx-t-dim)}
.ivg-form input:focus,.ivg-form select:focus,.ivg-form textarea:focus{outline:none;border-color:var(--rx-orange);box-shadow:0 0 0 3px rgba(232,100,26,.28)}
.ivg-form [aria-invalid="true"]{border-color:#ff8a7a!important}
.ivg-form input[type=date]{color-scheme:dark}
.ivg-help{margin:10px 0 0;font-family:var(--rx-fbody);font-size:13.5px;line-height:1.55;color:var(--rx-t-lo)}
.ivg-help a{color:#FFF92B;text-decoration:underline;text-underline-offset:2px}
.ivg-help:empty{display:none}
.ivg-err{margin:8px 0 0;font-family:var(--rx-fbody);font-size:13.5px;color:#ffb3a8}
.ivg-err:empty{display:none}
.ivg-sub{margin:20px 0 10px;font-family:var(--rx-fmono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--rx-t-lo)}
.ivg-flash{margin:0;padding:12px 14px;border:1px solid rgba(255,249,43,.35);font-family:var(--rx-fbody);font-size:14.5px;color:var(--rx-t-hi)}

/* switch */
.ivg-switch{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;font-family:var(--rx-fbody);font-size:15px;color:var(--rx-t-hi)}
.ivg-switch input{position:absolute;z-index:1;opacity:0;width:44px;height:26px;margin:0;cursor:pointer}
.ivg-switch__ui{flex:0 0 auto;position:relative;width:44px;height:26px;border:1px solid var(--rx-line-2);background:var(--rx-navy-deep);transition:background .2s var(--rx-ease),border-color .2s var(--rx-ease)}
.ivg-switch__ui::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:var(--rx-t-lo);transition:transform .2s var(--rx-ease),background .2s var(--rx-ease)}
.ivg-switch input:checked+.ivg-switch__ui{background:var(--rx-t-hi);border-color:var(--rx-t-hi)}
.ivg-switch input:checked+.ivg-switch__ui::after{transform:translateX(18px);background:var(--rx-navy-deep)}
.ivg-switch input:focus-visible+.ivg-switch__ui{outline:2px solid var(--rx-orange);outline-offset:2px}
.ivg-switch[hidden]{display:none}

/* chips */
.ivg-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--rx-line-2);background:transparent;color:var(--rx-t-hi);font-family:var(--rx-fbody);font-size:14px;cursor:pointer;border-radius:0;transition:background .15s var(--rx-ease),border-color .15s var(--rx-ease)}
.ivg-chip:hover{border-color:var(--rx-t-hi)}
.ivg-chip--radio input{width:16px;height:16px;margin:0;accent-color:var(--rx-orange)}
.ivg-chip--radio:has(input:checked){border-color:var(--rx-t-hi);background:rgba(255,255,255,.06)}
.ivg-radios{display:flex;flex-wrap:wrap;gap:8px;border:0;margin:0 0 14px;padding:0}
.ivg-radios legend{width:100%;margin-bottom:8px;padding:0;font-family:var(--rx-fmono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--rx-t-lo)}

/* logo + colour */
.ivg-drop{display:grid;gap:10px;padding:18px;border:1px dashed var(--rx-line-2);background:var(--rx-navy-deep);transition:border-color .2s var(--rx-ease),background .2s var(--rx-ease)}
.ivg-drop.is-over{border-color:var(--rx-t-hi);background:rgba(255,255,255,.04)}
.ivg-drop__lead{margin:0;font-family:var(--rx-fbody);font-size:15.5px;font-weight:600;color:var(--rx-t-hi);word-break:break-all}
.ivg-drop__hint{margin:4px 0 0;font-family:var(--rx-fbody);font-size:13.5px;color:var(--rx-t-lo)}
.ivg-upload{position:relative;justify-self:start;overflow:hidden}
.ivg-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ivg-upload:focus-within{outline:2px solid var(--rx-orange);outline-offset:2px}
.ivg-logo-has{display:flex;align-items:center;gap:16px}
.ivg-thumb{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:112px;height:72px;padding:8px;background:#fff}
.ivg-thumb img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.ivg-drop__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* logo controls on the preview */
.ivg-logobar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 auto 12px;padding:10px 12px;border:1px solid var(--rx-line-2);background:var(--rx-card)}
.ivg-logobar[hidden]{display:none}
.ivg-logobar__size{display:flex;align-items:center;gap:10px;flex:1 1 200px;min-width:180px;margin:0;font-family:var(--rx-fmono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--rx-t-lo)}
.ivg-logobar__size span{white-space:nowrap}
.ivg-logobar__size input{flex:1;min-width:0;min-height:44px;accent-color:var(--rx-orange)}
.ivg-logobar__btns{display:flex;flex-wrap:wrap;gap:6px}
.ivg-logobar__hint{flex:1 0 100%;margin:0;font-family:var(--rx-fbody);font-size:13px;color:var(--rx-t-lo)}
.ivg-colour{margin-top:16px}
.ivg-colour__row{display:flex;gap:10px}
.ivg-colour__row input[type=color]{flex:0 0 auto;width:58px;height:46px;padding:3px;border:1px solid var(--rx-line-2);background:var(--rx-navy-deep);cursor:pointer}
.ivg-colour__row input[type=color]:focus-visible{outline:2px solid var(--rx-orange);outline-offset:2px}
.ivg-colour__row input:not([type=color]){max-width:140px;font-family:var(--rx-fmono)!important;text-transform:lowercase}

/* line items */
.ivg-lines{display:flex;flex-direction:column;gap:8px}
.ivg-line{display:grid;grid-template-columns:30px repeat(4,minmax(0,1fr));grid-template-areas:"drag desc desc desc desc" ". qty unit price amt" ". opts opts opts opts" ". err err err err";gap:8px 10px;padding:12px 14px 6px 6px;border:1px solid var(--rx-line);background:var(--rx-navy-deep);transition:box-shadow .15s var(--rx-ease),border-color .15s var(--rx-ease)}
.ivg-line.is-dragging{position:relative;z-index:3;border-color:var(--rx-t-hi);box-shadow:0 12px 30px rgba(0,0,0,.5)}
.ivg-line__drag{grid-area:drag;align-self:start;width:30px;min-height:46px;border:0;background:transparent;color:var(--rx-t-lo);cursor:grab;touch-action:none;font-size:13px;letter-spacing:-3px}
.ivg-line__drag:active{cursor:grabbing}
.ivg-line__desc{grid-area:desc}.ivg-line__qty{grid-area:qty}.ivg-line__unit{grid-area:unit}.ivg-line__price{grid-area:price}
.ivg-line__amtcell{grid-area:amt;min-width:0}
.ivg-line__amt{min-height:46px;display:flex;align-items:center;justify-content:flex-end;padding:0 2px;border-bottom:1px solid var(--rx-line-2);font-family:var(--rx-fmono);font-size:15px;color:var(--rx-t-hi);white-space:nowrap}
.ivg-line label,.ivg-line__lab{display:block;margin-bottom:5px;font-family:var(--rx-fmono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--rx-t-lo)}
.ivg-line__amtcell .ivg-line__lab{text-align:right}
.ivg-line .ivg-line__price input,.ivg-line .ivg-line__qty input{text-align:right;font-family:var(--rx-fmono)!important;font-size:15px!important}
.ivg-line textarea{min-height:46px;height:46px;resize:none;overflow:hidden}
.ivg-line__opts{grid-area:opts;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.ivg-line__err{grid-area:err;margin:0;font-family:var(--rx-fbody);font-size:13px;color:#ffb3a8}
.ivg-line__err:empty{display:none}
.ivg-chk{display:inline-flex!important;align-items:center;gap:7px;min-height:44px;margin:0!important;font-family:var(--rx-fbody)!important;font-size:13.5px!important;letter-spacing:0!important;text-transform:none!important;color:var(--rx-t)!important;cursor:pointer}
.ivg-chk input{width:16px;height:16px;margin:0;accent-color:var(--rx-orange)}
.ivg-iconbtn{min-height:44px;padding:0 8px;border:0;background:transparent;color:var(--rx-t-lo);font-family:var(--rx-fbody);font-size:13.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ivg-iconbtn:hover{color:var(--rx-t-hi)}
.ivg-lines__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:12px}
.ivg-lines__foot .ivg-help{margin:0}

/* quote stages */
.ivg-stages{display:flex;flex-direction:column;gap:8px}
.ivg-stage{display:grid;grid-template-columns:minmax(0,1fr) 92px 100px auto;gap:8px;align-items:center}
.ivg-pct{position:relative;display:block}
.ivg-pct input{padding-right:28px!important;text-align:right;font-family:var(--rx-fmono)!important}
.ivg-pct span{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-family:var(--rx-fmono);color:var(--rx-t-lo)}
.ivg-stage__amt{text-align:right;font-family:var(--rx-fmono);font-size:14.5px;color:var(--rx-t-hi)}

/* totals panel */
.ivg-totals{margin-top:16px;border-top:1px solid var(--rx-line)}
.ivg-trow{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--rx-line);font-family:var(--rx-fbody);font-size:15px;color:var(--rx-t)}
.ivg-trow span:last-child{font-family:var(--rx-fmono);color:var(--rx-t-hi);white-space:nowrap;font-variant-numeric:tabular-nums}
.ivg-trow--note span:first-child{color:var(--rx-t-lo);font-size:13.5px}
.ivg-trow--total{font-size:18px;font-weight:700;color:var(--rx-t-hi)}
.ivg-trow--total span:last-child{color:var(--rx-t-hi);font-size:19px}
.ivg-convert{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.ivg-clear{margin-top:16px;font-family:var(--rx-fbody);font-size:14.5px;color:var(--rx-t)}
.ivg-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;border:1px solid var(--rx-line-2)}
.ivg-confirm[hidden]{display:none}
.ivg-confirm p{flex:1 0 100%;margin:0 0 2px;color:var(--rx-t-hi)}
.ivg-clear .ivg-btn[hidden]{display:none}

/* ---------- live preview: paper on the dark page ---------- */
.ivg-preview{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto;padding:0 6px 24px;scrollbar-width:thin;scrollbar-color:var(--rx-navy-mid) transparent}
.ivg-preview__head{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px;font-family:var(--rx-fmono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--rx-t-lo)}
/* desktop: the whole Letter page fits the screen height (612 / 792 = 0.7727), band included */
.ivg-stack{display:flex;flex-direction:column;gap:22px;width:100%;max-width:max(440px,calc((100vh - 150px) * .7727));margin:0 auto}
.ivg-preview:has(.ivg-logobar:not([hidden])) .ivg-stack{max-width:max(420px,calc((100vh - 262px) * .7727))}
.ivg-page{position:relative;aspect-ratio:612/792;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.4),0 18px 40px rgba(0,0,0,.45),0 40px 90px rgba(0,0,0,.35)}
.ivg-sheet{display:block;width:100%;height:100%}
.ivg-logo-area{position:absolute;pointer-events:none;outline:1px dashed transparent;transition:outline-color .15s}
.ivg-logo-area.is-on{outline-color:rgba(59,130,246,.55)}
.ivg-snapline{position:absolute;width:0;border-left:1px solid #3b82f6;pointer-events:none}
.ivg-logo-hit{position:absolute;cursor:move;touch-action:none;outline:1px dashed transparent;outline-offset:1px;transition:outline-color .15s}
.ivg-logo-hit:hover,.ivg-logo-hit.is-selected,.ivg-logo-hit:focus-visible{outline:1.5px solid #3b82f6}
.ivg-logo-hit:focus-visible{box-shadow:0 0 0 3px rgba(59,130,246,.35)}
.ivg-logo-handle{position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;background:#fff;border:2px solid #3b82f6;cursor:nwse-resize;opacity:0;transition:opacity .15s}
.ivg-logo-hit:hover .ivg-logo-handle,.ivg-logo-hit.is-selected .ivg-logo-handle,.ivg-logo-hit:focus-visible .ivg-logo-handle{opacity:1}

/* undo toast */
.ivg-undo{position:fixed;left:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:6px;padding:8px 10px 8px 16px;border:1px solid var(--rx-line-2);background:var(--rx-navy-mid);box-shadow:0 10px 30px rgba(0,0,0,.45);font-family:var(--rx-fbody);font-size:14.5px;color:var(--rx-t-hi)}
.ivg-undo[hidden]{display:none}

/* ---------- tablet + phone: Edit / Preview tabs, sticky download bar ---------- */
@media(max-width:1100px){
  .ivg-split{grid-template-columns:1fr}
  .ivg-tabs{display:flex;position:sticky;top:64px;z-index:20;margin-top:14px;border:1px solid var(--rx-line-2);background:var(--rx-navy)}
  .ivg-tab{flex:1;min-height:46px;border:0;background:transparent;color:var(--rx-t);font-family:var(--rx-fbody);font-size:15px;font-weight:600;cursor:pointer}
  .ivg-tab[aria-selected="true"]{background:var(--rx-t-hi);color:var(--rx-navy-deep)}
  .ivg-tab:focus-visible{outline:2px solid var(--rx-orange);outline-offset:-3px}
  .ivg-tool[data-view="edit"] .ivg-preview{display:none}
  .ivg-tool[data-view="preview"] .ivg-form{display:none}
  .ivg-preview{position:static;max-height:none;overflow:visible;padding:0}
  .ivg-stack{max-width:640px}
  .ivg-bar__actions{display:none}
  .ivg-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(13,21,32,.97);border-top:1px solid var(--rx-line-2)}
  /* the bar waits off screen until the tool reaches the screen (.is-on from invoice-boot.js) */
  .ivg-mbar{transform:translateY(100%);visibility:hidden;transition:transform .25s var(--rx-ease),visibility 0s linear .25s}
  .ivg-mbar.is-on{transform:none;visibility:visible;transition:transform .25s var(--rx-ease)}
  .ivg-mbar__total{font-family:var(--rx-fmono);font-size:17px;color:var(--rx-t-hi)}
  .ivg-body{padding-bottom:76px}
  .ivg-undo{bottom:86px}
}
@media(max-width:720px){
  .ivg-tool{padding:0 16px}
  .ivg-bar{padding:14px;gap:14px}
  .ivg-seg{width:100%}
  .ivg-seg label{flex:1}
  .ivg-seg span{justify-content:center;padding:0 4px;font-size:13.5px;white-space:nowrap}
  .ivg-stack{max-width:none}
  .ivg-grid{grid-template-columns:1fr}
  .ivg-card{padding:16px 14px 18px}
  .ivg-line{grid-template-columns:30px minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.3fr);grid-template-areas:"drag desc desc desc" ". qty unit price" ". amt amt amt" ". opts opts opts" ". err err err";padding:12px 10px 6px 4px}
  .ivg-line__amtcell{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .ivg-line__amtcell .ivg-line__lab{margin:0}
  .ivg-line__amt{min-height:32px;border-bottom:0}
  .ivg-stage{grid-template-columns:minmax(0,1fr) 84px}
  .ivg-undo{left:16px;right:16px}
}

/* ---------- guide + product section ---------- */
.ivg-guide .rx-h2{max-width:28ch}
.ivg-list{margin:16px 0 0 20px;padding:0;max-width:72ch;font-family:var(--rx-fbody);font-size:16px;line-height:1.7;color:var(--rx-t)}
.ivg-list li{margin-top:8px}
.ivg-list strong{color:var(--rx-t-hi)}
.ivg-list--small{font-size:14.5px}
.ivg-list a,.ivg-guide .rx-prose a{color:#FFF92B;text-decoration:underline;text-underline-offset:2px}
.ivg-small{margin-top:18px;font-family:var(--rx-fbody);font-size:13.5px;color:var(--rx-t-lo)}
.ivg-h3{font-family:var(--rx-fdisplay);font-weight:400;font-size:14px;text-transform:uppercase;color:#fff;margin:0}
.ivg-tablewrap{margin-top:18px;max-width:900px;overflow-x:auto}
.ivg-table{min-width:560px}
.ivg-how{padding-top:72px}
.ivg-how__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center}
.ivg-how .rx-eyebrow{display:block;margin-bottom:12px}
.ivg-feats{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px}
.ivg-feats li{padding:14px 16px;border:1px solid var(--rx-line);font-family:var(--rx-fbody);font-size:15px;line-height:1.6;color:var(--rx-t)}
.ivg-feats strong{display:block;margin-bottom:2px;font-family:var(--rx-fdisplay);font-weight:400;font-size:12.5px;text-transform:uppercase;color:#fff}
.ivg-how__cta{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:26px}
.ivg-textlink{display:inline-flex;align-items:center;min-height:44px;font-family:var(--rx-fbody);font-size:15px;font-weight:700;color:#FFF92B;text-decoration:underline;text-underline-offset:3px}
.ivg-shots{position:relative;margin:0;padding:0 0 40px}
.ivg-device--laptop{border:10px solid #1b2636;border-bottom-width:16px;border-radius:10px;background:#1b2636;box-shadow:0 30px 70px rgba(0,0,0,.5)}
.ivg-device--laptop .ivg-device__screen{aspect-ratio:16/10}
.ivg-device--phone{position:absolute;right:-8px;bottom:0;width:30%;border:7px solid #1b2636;border-radius:18px;background:#1b2636;box-shadow:0 20px 50px rgba(0,0,0,.55)}
.ivg-device--phone .ivg-device__screen{aspect-ratio:9/19;border-radius:11px}
.ivg-device__screen{overflow:hidden;background:var(--rx-navy-mid)}
.ivg-device__screen img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.ivg-shots figcaption{position:absolute;left:0;bottom:6px;font-family:var(--rx-fbody);font-size:13px;color:var(--rx-t-lo)}
.ivg-sources{padding-bottom:64px}
@media(max-width:900px){.ivg-how__grid{grid-template-columns:1fr;gap:32px}}

/* ---------- print fallback: only the document pages, Letter, no margins ---------- */
.ivg-print{display:none}
@media print{
  @page{size:letter;margin:0}
  body>*:not(.ivg-print){display:none!important}
  .ivg-print{display:block;width:8.5in}
  .ivg-print-page{width:8.5in;height:11in;page-break-after:always;break-after:page;overflow:hidden}
  .ivg-print-page:last-child{page-break-after:auto;break-after:auto}
  .ivg-print-page svg{display:block;width:8.5in;height:11in}
  .ivg-body{padding:0;background:#fff}
  .ivg-mbar,.ivg-undo{display:none!important}
}

@media(prefers-reduced-motion:reduce){
  .ivg-btn,.ivg-chip,.ivg-seg span,.ivg-style__thumb,.ivg-switch__ui,.ivg-switch__ui::after,.ivg-line,.ivg-drop,.ivg-mbar,.ivg-mbar.is-on{transition:none}
}

/* ---------- the approved hero poster + film (Business, CEO-approved 2026-10-24): the right two-thirds on
   desktop so the person stays clear of the headline; full-bleed on phones ---------- */
.ivg-hero__poster,.ivg-hero__video{object-position:50% 35%}
@media(min-width:721px){
  .ivg-hero{min-height:429px}
  .ivg-hero__sub{max-width:min(62ch,60%)} /* tablets: the text stays on the dark side, off the bright film */
  .ivg-hero__poster,.ivg-hero__video{left:34%;width:66%}
  .ivg-hero::before{background:linear-gradient(90deg,#0a1420 0%,#0a1420 34%,rgba(10,20,32,.78) 40%,rgba(10,20,32,.42) 50%,rgba(10,20,32,.1) 62%,rgba(10,20,32,0) 70%)}
}

/* ---------- guide sections: text beside a photo, sides alternate; stacked on phones ---------- */
.ivg-gs{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:center}
.ivg-gs--flip .ivg-gs__text{order:2}
.ivg-gs__fig{margin:0}
.ivg-gs__fig img{display:block;width:100%;height:auto;aspect-ratio:1600/1074;object-fit:cover;border:1px solid var(--rx-line)}
.ivg-banner{display:block;width:100%;height:auto;aspect-ratio:12/5;object-fit:cover;object-position:62% 45%;margin-bottom:36px;border:1px solid var(--rx-line)}
@media(max-width:900px){
  .ivg-gs{grid-template-columns:1fr;gap:20px}
  .ivg-gs--flip .ivg-gs__text{order:0}
  .ivg-banner{aspect-ratio:16/10}
}

/* ---------- iPhone date fields: Safari gives them their own minimum width and centred text, so they ran
   past the card (CEO's iPhone, 2026-10-24). Plain fields that can shrink, text on the left. ---------- */
.ivg-form input[type=date]{-webkit-appearance:none;appearance:none;min-width:0;max-width:100%;text-align:left}
.ivg-form input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0}

/* ---------- the generator on a light band (CEO 2026-10-24: "make the generator's sections bright").
   The Direction C tokens are redefined for this section only, so every .ivg-* component follows; the page
   above and below stays dark. Colours that were fixed for a dark background are set again below. ---------- */
.ivg-toolsec{--rx-card:#ffffff;--rx-navy-deep:#f5f7fa;--rx-navy:#e9eef4;--rx-navy-mid:#dfe5ec;--rx-line:rgba(13,21,32,.10);--rx-line-2:rgba(13,21,32,.2);--rx-t-hi:#0d1520;--rx-t:#2c3a4b;--rx-t-lo:#556273;--rx-t-dim:#8792a0;background:var(--rx-navy);padding:36px 0 40px;color-scheme:light}
.ivg-toolsec .ivg-card__title{color:var(--rx-t-hi)}
.ivg-toolsec .ivg-btn--primary{color:#0a1420}
.ivg-toolsec .ivg-btn--text,.ivg-toolsec .ivg-help a{color:#a8430b}
.ivg-toolsec .ivg-err,.ivg-toolsec .ivg-line__err{color:#b42318}
.ivg-toolsec .ivg-form [aria-invalid="true"]{border-color:#d92d20!important}
.ivg-toolsec .ivg-flash{border-color:rgba(232,100,26,.5)}
.ivg-toolsec .ivg-chip--radio:has(input:checked){background:rgba(13,21,32,.05)}
.ivg-toolsec .ivg-drop.is-over{background:#eef2f7}
.ivg-toolsec .ivg-thumb{border:1px solid var(--rx-line-2)}
.ivg-toolsec .ivg-form input[type=date]{color-scheme:light}
.ivg-toolsec .ivg-page{box-shadow:0 1px 3px rgba(13,21,32,.14),0 14px 36px rgba(13,21,32,.16)}
.ivg-toolsec .ivg-mbar{background:rgba(13,21,32,.97);border-top-color:rgba(255,255,255,.14);--rx-t-hi:#eef3f8}
.ivg-toolsec .ivg-undo{background:#0d1520;border-color:#0d1520;color:#eef3f8}
.ivg-toolsec .ivg-undo .ivg-btn--text{color:#FFF92B}
