/* BrewShipper label studio (/create/). Only .ls-* classes live here; the nav, footer,
   buttons and tokens come from css/site.css (the shared design system, since 2026-11-03;
   css/label-chrome.css is no longer loaded). UI type stays Abril Fatface and
   Open Sans; the label typefaces are drawn on the canvas, never used in the UI copy. */

.ls-page {
  --surface: #ffffff;
  --desk: #f1eae0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 26, 16, .06), 0 12px 32px -12px rgba(42, 26, 16, .18);
  --stage-h: min(740px, calc(100vh - var(--navh) - 150px));
  background: var(--cream);
}

/* ── Intro ── */
.ls-intro { padding: clamp(22px, 3vw, 40px) 0 clamp(16px, 2vw, 24px); }
.ls-intro-in { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
.ls-h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -0.005em; margin-bottom: 10px; text-wrap: balance; }
.ls-intro .lede { max-width: 60ch; font-size: 17px; }
.ls-intro .eyebrow { margin-bottom: 10px; }
.ls-facts { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); padding-bottom: 6px; }
.ls-facts li { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.ls-facts .i { color: var(--brown); }
.ls-noscript { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
/* Without JavaScript the designer cannot draw anything: show only the noscript note. */
.no-js .ls { display: none; }
.no-js .ls-noscript { margin-bottom: clamp(48px, 7vw, 88px); }

/* ── Shell ── */
.ls { padding-bottom: clamp(48px, 6vw, 88px); }
.ls-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 14px; position: relative; }

/* Steps */
.ls-steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 4px 14px; list-style: none; }
.ls-steps li { min-width: 0; }
.ls-steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left; color: var(--muted); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s; position: relative; }
.ls-steps button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); }
.ls-steps .is-done button::after, .ls-steps .is-active button::after { background: var(--brown); }
.ls-steps button:not(:disabled):hover { background: rgba(83, 47, 27, .05); color: var(--ink); }
.ls-steps button:disabled { cursor: default; opacity: .85; } /* still 4.7:1, readable before it unlocks */
.ls-steps .is-active button { color: var(--ink); opacity: 1; }
.ls-step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--line-strong); flex: none; background: #fff; }
.ls-steps .is-active .ls-step-n { background: var(--brown); border-color: var(--brown); color: #fff; }
.ls-steps .is-done .ls-step-n { background: rgba(83, 47, 27, .1); border-color: transparent; color: var(--brown); }
.ls-step-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Grid: stage left, panel right */
.ls-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); gap: 14px; align-items: start; }

/* ── Stage ── */
.ls-stage { position: sticky; top: calc(var(--navh) + 14px); display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 12px; height: var(--stage-h); min-height: 520px; }
.ls-panes-switch { display: none; }
.ls-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: var(--radius); overflow: hidden; }
.ls-pane-label { background: var(--desk); background-image: radial-gradient(rgba(83, 47, 27, .07) 1px, transparent 1.2px); background-size: 16px 16px; }
.ls-pane-bag { background: radial-gradient(120% 90% at 50% 38%, #f6f0e8 0%, #e7ddd0 58%, #d8ccbd 100%); }
.ls-stage[data-bag="white"] .ls-pane-bag { background: radial-gradient(120% 90% at 50% 38%, #e9e1d6 0%, #d3c7b8 60%, #bfb2a2 100%); }

.ls-toolbar, .ls-bagbar { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0; flex-wrap: wrap; position: relative; z-index: 2; }
.ls-bagbar { justify-content: space-between; gap: 8px; }
.ls-tool { height: 36px; min-width: 36px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; color: var(--ink); background: rgba(255, 255, 255, .72); border: 1px solid rgba(83, 47, 27, .1); font-size: 13px; font-weight: 600; transition: background-color .15s, border-color .15s, opacity .15s; }
.ls-tool:hover:not(:disabled) { background: #fff; border-color: var(--line-strong); }
.ls-tool:disabled { opacity: .4; cursor: default; }
.ls-tool[aria-pressed="true"], .ls-tool[aria-pressed="true"]:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.ls-tool .i { width: 17px; height: 17px; }
.ls-tool-sep { width: 1px; height: 20px; background: rgba(83, 47, 27, .16); margin: 0 4px; }
.ls-tool-spacer { flex: 1; }

.ls-canvas-box, .ls-bag-box { position: relative; flex: 1; min-height: 0; }
.ls-editor { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline: none; }
.ls-editor.can-drag { touch-action: none; }
.ls-editor:focus-visible { box-shadow: inset 0 0 0 3px var(--brown); border-radius: 12px; }
.ls-editor.is-grabbing { cursor: grabbing !important; }
.ls-bag { position: absolute; inset: 8px 8px 0; width: calc(100% - 16px); height: calc(100% - 8px); object-fit: contain; display: block; }
.ls-busy { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); }

.ls-drop-veil { position: absolute; inset: 10px; border: 2px dashed var(--brown); border-radius: 14px; background: rgba(250, 246, 240, .82); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--brown); pointer-events: none; }
.ls-drop-veil .i { width: 28px; height: 28px; }
.ls-shell.is-dragging .ls-drop-veil { display: flex; }

.ls-legend { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; width: max-content; max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(42, 26, 16, .1); font-size: 11.5px; color: var(--muted); pointer-events: none; }
.ls-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ls-key { width: 16px; height: 0; border-top: 2px solid; display: inline-block; }
.ls-key-trim { border-color: #d6336c; }
.ls-key-safe { border-top-style: dashed; border-color: #0e8cb8; }
.ls-key-bleed { border-top-style: dotted; border-color: rgba(42, 26, 16, .5); }

.ls-pane-note { padding: 4px 16px 12px; font-size: 12px; color: var(--muted); text-align: center; }

.ls-mini-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(83, 47, 27, .12); }
.ls-mini-seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ls-mini-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ls-bagdot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.ls-bagdot-black { background: #232224; }
.ls-bagdot-white { background: #efede8; }
.ls-mini-seg button[aria-pressed="true"] .ls-bagdot-black { border-color: rgba(255, 255, 255, .5); }

/* ── Panel ── */
.ls-panel { background: #fff; border-radius: var(--radius); padding: 10px 14px 0; min-width: 0; display: flex; flex-direction: column; }
.ls-step { display: none; }
.ls-step.is-active { display: block; animation: ls-in .28s var(--ease); }
@keyframes ls-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ls-step-h { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.12; margin-bottom: 6px; outline: none; }
.ls-step-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; max-width: 46ch; }

.ls-field { margin-bottom: 20px; min-width: 0; }
.ls-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ls-label output { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.ls-hint { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.ls-hint a { color: var(--brown); font-weight: 600; }
.ls-error { font-size: 13.5px; color: var(--error); font-weight: 600; margin-top: 7px; }
.ls-note { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(83, 47, 27, .06); margin-bottom: 14px; }
.ls-note-warn { background: #fbf1df; color: #5d4100; }

.ls-panel input[type="text"], .ls-panel input[type="email"], .ls-panel input[type="tel"], .ls-panel input[type="date"], .ls-panel textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 11px 13px; font-size: 16px; line-height: 1.4; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.ls-panel textarea { resize: vertical; min-height: 84px; }
.ls-panel ::placeholder { color: #a8988b; opacity: 1; }
.ls-panel input:focus, .ls-panel textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(83, 47, 27, .14); }
.ls-panel input[type="date"] { min-height: 48px; }
.has-error input, .has-error textarea { border-color: var(--error); }
.ls-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ls-row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.ls-link { color: var(--brown); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.ls-restored { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; background: rgba(83, 47, 27, .06); border-radius: 12px; padding: 8px 12px; margin: 4px 0 16px; color: var(--ink); }

/* Upload */
.ls-drop { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: #fcfaf7; text-align: left; transition: border-color .15s, background-color .15s; }
.ls-drop:hover { border-color: var(--brown); background: #f8f2ea; }
.ls-drop-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brown); color: #fff; display: grid; place-items: center; flex: none; }
.ls-drop-ic .i { width: 20px; height: 20px; }
.ls-drop-t { display: grid; gap: 1px; font-size: 13.5px; color: var(--muted); }
.ls-drop-t strong { font-size: 15.5px; color: var(--ink); }
.ls-shell.is-dragging .ls-drop { border-color: var(--brown); background: #f8f2ea; }
.ls-shell.has-art #ls-drop, .ls-shell.has-art #ls-drop-hint { display: none; }

.ls-file { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0 14px; }
.ls-file-thumb { width: 52px; height: 52px; border-radius: 10px; flex: none; background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.ls-file-thumb img { max-width: 44px; max-height: 44px; object-fit: contain; }
.ls-file-meta { display: grid; min-width: 0; flex: 1; }
.ls-file-name { font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-file-sub { font-size: 12.5px; color: var(--muted); }
.ls-file-actions { display: flex; gap: 8px; }

/* Templates */
.ls-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ls-tpl { position: relative; cursor: pointer; display: block; }
.ls-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.ls-tpl-card { display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; height: 100%; }
.ls-tpl:hover .ls-tpl-card { border-color: var(--line-strong); transform: translateY(-1px); }
.ls-tpl-img { display: grid; place-items: center; background: var(--desk); border-radius: 9px; padding: 10px 0; margin-bottom: 6px; }
.ls-tpl-img canvas { width: 46%; aspect-ratio: var(--label-ar, 1 / 2); height: auto; display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 14px -6px rgba(42, 26, 16, .35); border-radius: 2px; background: #fff; }
.ls-tpl-name { font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.ls-tpl-blurb { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ls-tpl input:checked + .ls-tpl-card { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown) inset; }
.ls-tpl input:focus-visible + .ls-tpl-card { outline: 3px solid var(--brown); outline-offset: 2px; }

/* Tabs */
.ls-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: #f4eee6; margin-bottom: 18px; }
.ls-tabs [role="tab"] { height: 40px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color .15s, color .15s; }
.ls-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(42, 26, 16, .12); }
.ls-tabpanel { outline: none; }

.ls-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ls-chipbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; transition: border-color .15s, background-color .15s; }
.ls-chipbtn:hover { border-color: var(--brown); background: #fbf7f2; }
.ls-chipbtn .i { width: 17px; height: 17px; }

/* Range */
.ls-range-field input[type="range"] { width: 100%; accent-color: var(--brown); height: 28px; }
.ls-range-field input[type="range"]:disabled { opacity: .4; }

.ls-dpi { font-size: 13px; line-height: 1.5; padding: 10px 12px 10px 34px; border-radius: 10px; margin-bottom: 14px; position: relative; }
.ls-dpi::before { content: ''; position: absolute; left: 13px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ls-dpi.is-good { background: #e9f4ec; color: #1f5a37; }
.ls-dpi.is-warn { background: #fbf1df; color: #5d4100; }
.ls-dpi.is-bad { background: #fbe7e3; color: #7d2216; }

.ls-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; padding: 4px 0; }
.ls-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brown); flex: none; }
.ls-check-sm { font-size: 13px; margin-top: 6px; }

/* Fonts */
.ls-fonts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ls-font { position: relative; cursor: pointer; }
.ls-font input { position: absolute; opacity: 0; pointer-events: none; }
.ls-font span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px; border: 1.5px solid var(--line); text-align: center; transition: border-color .15s; }
.ls-font em { font-style: normal; font-size: 26px; line-height: 1.1; color: var(--ink); }
.ls-font b { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.ls-font:hover span { border-color: var(--line-strong); }
.ls-font input:checked + span { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown) inset; }
.ls-font input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 2px; }

/* Swatches */
.ls-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-swatch { position: relative; cursor: pointer; }
.ls-swatch input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ls-swatch input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ls-swatch span { display: block; width: 40px; height: 40px; border-radius: 50%; padding: 3px; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.ls-swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.ls-swatch b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ls-swatch:hover span { transform: scale(1.06); }
.ls-swatch input:checked + span, .ls-swatch.is-on span { border-color: var(--brown); }
.ls-swatch input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 2px; }
.ls-swatch-custom:focus-within span { outline: 3px solid var(--brown); outline-offset: 2px; }
.ls-swatch-auto i { background: linear-gradient(135deg, #17171a 0 50%, #f7f4ee 50% 100%); }
.ls-swatch-logo i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 0 0 5px #fff; }

/* Bag cards */
.ls-bagcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-bagcard { position: relative; cursor: pointer; }
.ls-bagcard input { position: absolute; opacity: 0; pointer-events: none; }
.ls-bagcard span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); transition: border-color .15s; }
.ls-bagchip { grid-row: 1 / 3; width: 30px; height: 40px; border-radius: 5px 5px 4px 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; }
.ls-bagchip::after { content: ''; position: absolute; left: 8px; right: 8px; top: 14px; bottom: 6px; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ls-bagchip-black { background: linear-gradient(90deg, #1a191b, #3a393c 45%, #1a191b); }
.ls-bagchip-white { background: linear-gradient(90deg, #d9d5ce, #fbfaf7 45%, #d9d5ce); }
.ls-bagcard strong { font-size: 15px; color: var(--ink); }
.ls-bagcard em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ls-bagcard input:checked + span { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown) inset; }
.ls-bagcard input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 2px; }

/* Chips */
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-chip { position: relative; cursor: pointer; }
.ls-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ls-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; transition: border-color .15s, background-color .15s, color .15s; }
.ls-chip:hover span { border-color: var(--brown); }
.ls-chip input:checked + span { background: var(--brown); border-color: var(--brown); color: #fff; }
.ls-chip input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 2px; }
.has-error .ls-chip span { border-color: rgba(155, 44, 31, .5); }
.ls-chips-stack { flex-direction: column; align-items: flex-start; gap: 6px; }

.ls-more { border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin-bottom: 20px; }
.ls-more summary { cursor: pointer; padding: 13px 0; font-weight: 700; font-size: 14px; color: var(--ink); list-style: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ls-more summary::-webkit-details-marker { display: none; }
.ls-more summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(83, 47, 27, .08); color: var(--brown); font-weight: 700; align-self: center; }
.ls-more[open] summary::before { content: '\2212'; }
.ls-more[open] { padding-bottom: 4px; }

/* Summary (step 4) */
.ls-summary { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: #f7f1ea; margin: 10px 0 22px; }
.ls-summary-figs { position: relative; width: 132px; height: 160px; }
.ls-sum-bag { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ls-sum-label { position: absolute; right: -6px; bottom: 4px; width: 38px; height: auto; aspect-ratio: var(--label-ar, 1 / 2); object-fit: cover; box-shadow: 0 2px 8px rgba(42, 26, 16, .3); border-radius: 2px; background: #fff; }
.ls-sum-bag:not([src]), .ls-sum-label:not([src]) { visibility: hidden; }
.ls-summary-line { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ls-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-dl { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--ink); }
.ls-dl:hover { border-color: var(--brown); }
.ls-dl .i { width: 16px; height: 16px; }

.ls-timing { font-size: 13px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #e9f4ec; color: #1f5a37; }
.ls-timing.is-rush { background: #fbf1df; color: #5d4100; }
.ls-fine { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.ls-form-error { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fbe7e3; color: #7d2216; font-size: 14px; font-weight: 600; }
.ls-form-error a { color: inherit; }

/* Actions */
.ls-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; padding: 14px 0 14px; margin-top: auto; background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); }
.ls-actions .btn { min-height: 48px; }
.ls-next, .ls-submit { margin-left: auto; }
.ls-back .i { transition: transform .2s; }
.ls-back:hover .i { transform: translateX(-3px); }
.ls-submit[disabled] { opacity: .7; cursor: progress; }

/* Success */
.ls-success { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 40px); }
.ls-success-fig { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(42, 26, 16, .08); }
.ls-success-fig img { width: 100%; height: auto; display: block; }
.ls-success-fig img:not([src]) { visibility: hidden; }
.ls-success-h { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; margin-bottom: 12px; outline: none; }
.ls-success-p { font-size: 17px; color: var(--text); margin-bottom: 10px; max-width: 48ch; }
.ls-success-rush, .ls-success-upload { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; max-width: 52ch; }
.ls-success-upload a { color: var(--brown); font-weight: 700; }
.ls-success-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.ls-success-home a { color: var(--brown); font-weight: 600; font-size: 14.5px; }
.ls-phone { font-size: 14.5px; color: var(--muted); }

/* Toast */
/* Hidden state clears the 92 px mobile offset too: a two-line toast used to stay half on screen. */
.ls-toast { position: fixed; left: 50%; bottom: 22px; z-index: 200; transform: translate(-50%, calc(100% + 140px)); display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); pointer-events: none; }
.ls-toast.is-on { transform: translate(-50%, 0); pointer-events: auto; }
.ls-toast button { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; flex: none; padding: 4px; }
.ls-toast:empty { display: none; }

.ls-nav-ctas { display: flex; gap: 10px; }

/* ── Tablet and phone ── */
@media (max-width: 1080px) {
  .ls-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, 1fr); }
  .ls-fonts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ls-intro-in { grid-template-columns: 1fr; }
  .ls-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .ls-shell { padding: 8px; border-radius: 20px; }
  .ls-grid { grid-template-columns: 1fr; gap: 8px; }
  .ls-steps ol { gap: 2px; padding: 2px 2px 8px; }
  .ls-steps button { padding: 8px 6px; justify-content: center; gap: 6px; }
  .ls-steps button::after { left: 6px; right: 6px; }
  .ls-steps .ls-step-t { font-size: 13px; }
  .ls-steps li:not(.is-active) .ls-step-t { display: none; }
  /* The stage stays in view while editing, one pane at a time. */
  :root { --stage-m: clamp(280px, 44vh, 440px); }
  html:has(.ls-shell:not([data-step="4"])) { scroll-padding-top: calc(var(--navh) + var(--stage-m) + 16px); scroll-padding-bottom: 96px; }
  /* While typing on a phone the keyboard takes half the screen: the preview steps back
     to a small live view without its tools. builder.js sets ls-typing on focus and clears
     it a moment after blur, so a tap that ends the typing still lands where it was aimed. */
  html.ls-typing { --stage-m: clamp(150px, 26vh, 220px); }
  html.ls-typing :is(.ls-toolbar, .ls-bagbar, .ls-panes-switch) { display: none; }
  html.ls-typing .ls-pane { padding: 6px 0; }
  .ls-stage { position: sticky; top: var(--navh); z-index: 20; grid-template-columns: 1fr; height: var(--stage-m); min-height: 0; gap: 0; background: #fff; padding-bottom: 6px; border-radius: 0 0 var(--radius) var(--radius); }
  .ls-shell[data-step="4"] .ls-stage { display: none; }
  .ls-steps ol { display: flex; }
  .ls-steps li { flex: 0 0 52px; }
  .ls-steps li.is-active { flex: 1 1 auto; }
  .ls-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .ls-panes-switch { display: inline-flex; position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(83, 47, 27, .14); box-shadow: 0 4px 14px rgba(42, 26, 16, .12); }
  .ls-seg { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .ls-seg[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .ls-stage[data-pane="label"] .ls-pane-bag, .ls-stage[data-pane="bag"] .ls-pane-label { display: none; }
  .ls-pane { padding-bottom: 46px; }
  .ls-pane-note { display: none; }
  .ls-legend { padding-bottom: 4px; }
  .ls-panel { padding: 6px 6px 0; }
  .ls-actions { padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
  .ls-success { grid-template-columns: 1fr; }
  .ls-success-fig { max-width: 300px; }
}
@media (max-width: 560px) {
  .ls-intro { padding-top: 22px; }
  .ls-h1 { font-size: clamp(32px, 9vw, 40px); }
  .ls-intro .lede { font-size: 16px; }
  .ls-facts { font-size: 13px; }
  .ls .wrap { width: calc(100% - 16px); }
  .ls-templates { grid-template-columns: repeat(2, 1fr); }
  .ls-fonts { grid-template-columns: repeat(3, 1fr); }
  .ls-row2 { grid-template-columns: 1fr; }
  .ls-bagbar { padding: 8px 8px 0; }
  .ls-mini-seg button { padding: 0 9px; font-size: 12px; }
  .ls-tool-text span { display: none; }
  .ls-tool-text { width: 36px; padding: 0; }
  .ls-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ls-downloads { justify-content: center; }
  .ls-actions .btn { flex: 1; padding-left: 16px; padding-right: 16px; }
  .ls-actions .ls-back { flex: 0 0 auto; }
  .ls-success-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ls-step.is-active { animation: none; }
  .ls-toast, .ls-tpl-card, .ls-swatch span, .ls-steps button { transition: none; }
}

/* Shared nav (css/site.css) hides the ghost CTA between 961 and 1180 px to make room for
   "Request a quote". The studio header has only "Book a call", so keep it. */
@media (min-width: 961px) { .ls-page .nav-ctas .btn-ghost { display: inline-flex; } }
