/* Larkspur demo admin. Self-contained: no build step, no third-party requests. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --canvas: #eef1f3;
  --surface: #ffffff;
  --sunk: #f6f8f9;
  --ink: #17232b;
  --ink-2: #4a5963;
  --muted: #7a8892;
  --line: #dde3e7;
  --line-2: #c9d1d7;
  --accent: #4a4fd6;        /* larkspur blue */
  --accent-ink: #ffffff;
  --accent-soft: #e6e7fb;
  --accent-text: #3a3fc0;
  --warn: #a35d0a;
  --warn-soft: #fbefdc;
  --ok: #1f7a4d;
  --ok-soft: #dff3e8;
  --danger: #b4322a;
  --shadow: 0 1px 2px rgb(23 35 43 / .06), 0 8px 24px -12px rgb(23 35 43 / .18);
  --radius: 10px;
  --side: 15rem;
  --preview: 26rem;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #12181c;
  --surface: #1a2227;
  --sunk: #151c20;
  --ink: #e8edf0;
  --ink-2: #aab6bd;
  --muted: #7d8a92;
  --line: #27323a;
  --line-2: #344049;
  --accent: #8f93ff;
  --accent-ink: #12153d;
  --accent-soft: #262a5a;
  --accent-text: #aeb1ff;
  --warn: #e8a54c;
  --warn-soft: #3a2a14;
  --ok: #5fd39a;
  --ok-soft: #173326;
  --danger: #ff8a80;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font: 15px/1.5 "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.soft { color: var(--ink-2); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ demo ribbon */
.ribbon { display: flex; align-items: center; gap: .75rem; padding: .45rem 1rem; background: var(--ink); color: var(--canvas); font-size: .85rem; }
.ribbon b { font-weight: 600; }
.ribbon .r-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.ribbon a, .ribbon button { background: none; border: 1px solid color-mix(in oklab, var(--canvas) 30%, transparent); color: inherit; border-radius: 6px; padding: .15rem .6rem; text-decoration: none; font-size: .8rem; }
.ribbon a:hover, .ribbon button:hover { border-color: var(--canvas); }
@media (max-width: 640px) { .ribbon .r-hide { display: none; } }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100dvh - 2.2rem); }
.shell.with-preview { grid-template-columns: var(--side) minmax(0, 1fr) var(--preview); }
@media (max-width: 1180px) { .shell.with-preview { grid-template-columns: var(--side) minmax(0, 1fr); } .preview-pane { display: none !important; } }
@media (max-width: 860px) { .shell, .shell.with-preview { grid-template-columns: 1fr; } }

.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: calc(100dvh - 2.2rem); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .65rem; padding: 1rem 1rem .9rem; border-bottom: 1px solid var(--line); }
.brand-mark { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: #23412f; }
.brand b { display: block; font-weight: 650; font-size: .95rem; line-height: 1.2; }
.brand span { font-size: .78rem; color: var(--muted); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: .3rem .6rem; }
.nav { padding: .5rem .6rem 1rem; display: grid; gap: 1px; }
.nav-group { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 1rem .6rem .35rem; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .45rem .6rem; border-radius: 7px; text-decoration: none; color: var(--ink-2); }
.nav a svg { width: 1.05rem; height: 1.05rem; flex: none; opacity: .8; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav a[aria-current="page"] svg { opacity: 1; }
.badge { margin-left: auto; min-width: 1.35rem; padding: 0 .4rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.35rem; }
.side-foot { margin-top: auto; padding: .8rem; border-top: 1px solid var(--line); display: grid; gap: .25rem; }
.side-foot button { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; padding: .45rem .6rem; border-radius: 7px; color: var(--ink-2); text-align: left; }
.side-foot button:hover { background: var(--sunk); color: var(--ink); }
.who { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem 0; font-size: .85rem; }
.avatar { width: 1.9rem; height: 1.9rem; border-radius: 99px; background: #f2c6c2; color: #5b2a26; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }

@media (max-width: 860px) {
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .side .nav, .side .side-foot { display: none; }
  .side.open .nav, .side.open .side-foot { display: grid; }
}

/* ------------------------------------------------------------ main */
.main { min-width: 0; padding: 1.75rem 2rem 4rem; }
@media (max-width: 640px) { .main { padding: 1.25rem 1rem 4rem; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head .lede { margin-top: .35rem; color: var(--ink-2); max-width: 46ch; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1.25rem; }
.grid > * { min-width: 0; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cols-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-h { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-h .more { margin-left: auto; font-size: .85rem; color: var(--muted); text-decoration: none; }
.panel-h .more:hover { color: var(--accent-text); }
.panel-b { padding: 1.1rem; }
.panel-f { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); background: var(--sunk); border-radius: 0 0 var(--radius) var(--radius); }

/* today strip on the dashboard */
.today { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; }
.today a { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--ink-2); }
.today a strong { font-size: 1.35rem; color: var(--ink); font-weight: 650; }
.today a:hover strong { color: var(--accent-text); }
.today .open-dot { width: .55rem; height: .55rem; border-radius: 99px; background: var(--ok); display: inline-block; align-self: center; }
.today .open-dot.closed { background: var(--muted); }

/* ------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.35rem; padding: 0 .95rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 550; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { border-color: transparent; background: var(--sunk); color: var(--ink); }
.btn-danger { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, transparent); }
.btn-sm { min-height: 1.95rem; padding: 0 .65rem; font-size: .85rem; }
.btn svg { width: 1rem; height: 1rem; }
.icon-btn { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); padding: 0; }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 1rem; height: 1rem; }

.field { display: grid; gap: .35rem; align-content: start; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--muted); }
.input { width: 100%; min-height: 2.5rem; padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
textarea.input { min-height: 6rem; resize: vertical; line-height: 1.55; }
select.input { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form { display: grid; gap: 1.1rem; }
.form-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-2 { grid-template-columns: 1fr; } }
.counter { font-size: .78rem; color: var(--muted); justify-self: end; }
.counter.over { color: var(--danger); }

.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 2.3rem; height: 1.3rem; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background-color .15s; }
.switch .track::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: 1rem; height: 1rem; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(1rem); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: var(--sunk); }
.seg button { border: 0; background: none; padding: .3rem .75rem; border-radius: 6px; color: var(--ink-2); font-size: .87rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.new { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.live { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.pill.draft { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.low { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.out { background: color-mix(in oklab, var(--danger) 14%, transparent); border-color: transparent; color: var(--danger); }

/* ------------------------------------------------------------ tables & lists */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); padding: .6rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--sunk); }
.table .r { text-align: right; }
.table-wrap { overflow-x: auto; }
@media (max-width: 720px) { .hide-sm { display: none; } }

.thumb { width: 2.75rem; height: 2.75rem; border-radius: 8px; overflow: hidden; flex: none; background: #f3ede6; }
.thumb svg { display: block; width: 100%; height: 100%; }
.prod-name { display: flex; align-items: center; gap: .75rem; min-width: 12rem; }
.prod-name b { font-weight: 600; display: block; }
.link-btn { display: block; background: none; border: 0; padding: 0; text-align: left; font-weight: 600; }
.link-btn:hover { color: var(--accent-text); text-decoration: underline; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.stepper button { width: 1.9rem; height: 1.9rem; border: 0; background: var(--sunk); font-size: 1rem; line-height: 1; }
.stepper button:hover { background: var(--accent-soft); color: var(--accent-text); }
.stepper span { min-width: 2.4rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.price-input { width: 5.5rem; min-height: 2rem; padding: .25rem .5rem; text-align: right; font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: .85rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list a.row-link { text-decoration: none; display: flex; align-items: center; gap: .85rem; width: 100%; min-width: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.empty { padding: 2rem 1.1rem; text-align: center; color: var(--ink-2); }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 6rem; }
.bars span { flex: 1; background: color-mix(in oklab, var(--accent) 70%, transparent); border-radius: 2px 2px 0 0; min-height: 3px; }
.bars span.wk { background: color-mix(in oklab, var(--accent) 40%, transparent); }
.chart-foot { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .75rem; color: var(--muted); }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); min-height: 30rem; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-list button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: .8rem 1rem; }
.inbox-list button:hover { background: var(--sunk); }
.inbox-list button[aria-current="true"] { background: var(--accent-soft); }
.inbox-list .top { display: flex; align-items: center; gap: .5rem; }
.inbox-list .top b { font-weight: 600; }
.inbox-list .top .when { margin-left: auto; font-size: .78rem; color: var(--muted); }
.inbox-list .unread b::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 99px; background: var(--accent); margin-right: .45rem; vertical-align: .1em; }
.inbox-list .snip { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .15rem; }
.msg { padding: 1.4rem 1.6rem; }
.msg-meta { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; font-size: .9rem; margin: 1rem 0 1.25rem; }
.msg-meta dt { color: var(--muted); }
.msg-meta dd { margin: 0; }
.msg-body { white-space: pre-wrap; line-height: 1.65; max-width: 62ch; }
.msg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .inbox { grid-template-columns: 1fr; } .inbox-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 18rem; } .msg { padding: 1.1rem; } }

/* hours */
.hours-row { display: grid; grid-template-columns: 7rem auto 1fr; align-items: center; gap: 1rem; padding: .6rem 1.1rem; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .times { display: flex; align-items: center; gap: .5rem; }
.hours-row .times input { width: 9.75rem; }
.hours-row.is-closed .times { opacity: .4; pointer-events: none; }
@media (max-width: 640px) { .hours-row { grid-template-columns: 1fr auto; } .hours-row .times { grid-column: 1 / -1; } .hours-row .times input { width: 100%; } }

/* editor */
.editor-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); padding: 0 .5rem; }
.editor-tabs button { border: 0; background: none; padding: .6rem .7rem; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.editor-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.md-preview { padding: 1rem 1.1rem; line-height: 1.65; min-height: 14rem; }
.md-preview h3 { font-size: 1.05rem; margin: 1em 0 .3em; }
.md-preview p + p, .md-preview ul { margin-top: .7em; }
.toolbar { display: flex; gap: .25rem; padding: .4rem .5rem; border-bottom: 1px solid var(--line); background: var(--sunk); }
.toolbar button { border: 0; background: none; border-radius: 6px; padding: .2rem .55rem; font-size: .85rem; color: var(--ink-2); }
.toolbar button:hover { background: var(--surface); color: var(--ink); }
textarea.body-input { border: 0; border-radius: 0; min-height: 16rem; box-shadow: none !important; }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

/* history */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: .7rem; height: .7rem; border-radius: 99px; background: var(--accent); margin: .4rem auto 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .dot.restore { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; }
.media-grid figure { margin: 0; }
.media-grid .tile { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f3ede6; }
.media-grid .tile svg { width: 100%; height: 100%; display: block; }
.media-grid figcaption { font-size: .82rem; margin-top: .4rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ drawer, toast, dialogs */
.drawer-back { position: fixed; inset: 0; background: rgb(15 22 27 / .45); z-index: 60; display: flex; justify-content: flex-end; }
.drawer { width: min(30rem, 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: drawer-in .22s cubic-bezier(.2,.7,.2,1); }
.drawer-h { display: flex; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-h .icon-btn { margin-left: auto; }
.drawer-b { padding: 1.25rem; overflow-y: auto; flex: 1; }
.drawer-f { display: flex; gap: .5rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: var(--sunk); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } }

.toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 80; display: grid; gap: .5rem; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .6rem; background: var(--ink); color: var(--canvas); padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; animation: toast-in .25s cubic-bezier(.2,.7,.2,1); pointer-events: auto; }
.toast .tick { width: 1.2rem; height: 1.2rem; border-radius: 99px; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .75rem; flex: none; }
.toast button { background: none; border: 0; color: inherit; text-decoration: underline; padding: 0 0 0 .3rem; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ------------------------------------------------------------ live preview */
.preview-pane { position: sticky; top: 0; height: calc(100dvh - 2.2rem); border-left: 1px solid var(--line); background: var(--sunk); display: flex; flex-direction: column; }
.preview-h { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.preview-h .live { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ok); font-weight: 600; }
.preview-h .live::before { content: ""; width: .5rem; height: .5rem; border-radius: 99px; background: var(--ok); }
.preview-h .actions { margin-left: auto; display: flex; gap: .35rem; }
.phone { margin: 1.25rem auto; width: 23rem; max-width: calc(100% - 2rem); flex: 1; min-height: 0; border-radius: 2.2rem; padding: .6rem; background: #0f1418; box-shadow: var(--shadow), inset 0 0 0 1px #2a333a; display: flex; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 1.7rem; background: #fff; }
.preview-note { text-align: center; font-size: .8rem; color: var(--muted); padding: 0 1rem 1rem; }

.full-preview { position: fixed; inset: 0; z-index: 70; background: var(--canvas); display: flex; flex-direction: column; }
.full-preview .preview-h { border-bottom: 1px solid var(--line); }
.full-preview .frame-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 1rem; }
.full-preview iframe { border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%; height: 100%; box-shadow: var(--shadow); transition: width .3s cubic-bezier(.2,.7,.2,1); }
.full-preview iframe.is-phone { width: 390px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Phone-size table: placed last so it overrides the regular sizes above. */
@media (max-width: 720px) {
  .table th, .table td { padding: .55rem .4rem; }
  .prod-name { min-width: 0; gap: .5rem; }
  .prod-name .thumb { width: 2.2rem; height: 2.2rem; }
  .price-input { width: 4.4rem; padding-inline: .35rem; }
  .stepper button { width: 1.6rem; }
  .stepper span { min-width: 1.7rem; }
}
@media (max-width: 640px) {
  .full-preview .preview-h { flex-wrap: wrap; }
  .full-preview .preview-h > .muted { display: none; }
  .full-preview .frame-wrap { padding: .5rem; }
}
