/* Watch Studio — the app. Cream, white cards with soft shadows, brown and rose gold. */
:root {
	--brown: #35231c;
	--rose: #b57e77;
	--cream: #f5f1e8;
	--white: #ffffff;
	--oat: #d0bda6;
	--muted: #76675e;
	--line: rgba(53, 35, 28, 0.1);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.14);
	--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px -10px rgba(0, 0, 0, 0.12);
	--on-dark-muted: #a8988b;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--font: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
	/* Space above the logo and title. When the app is drawn underneath the phone's status bar
	   (older installs), leave the status-bar height plus room for the blur iPhone adds below it.
	   When the app starts below the status bar (inset is 0), a small margin is enough. */
	--under-bar: clamp(0px, env(safe-area-inset-top, 0px), 1px);
	--top-gap: calc(env(safe-area-inset-top, 0px) + 8px + var(--under-bar) * 10);
	--top: calc(50px + var(--top-gap));
	--tabs: calc(64px + env(safe-area-inset-bottom, 0px));
	--green: #4f7d50;
	--amber: #b27b2b;
	--red: #a3362a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; background: var(--brown); }
/* The page itself never scrolls: the bars are part of a fixed frame and only the middle scrolls.
   (On iPhone, Safari shifts and tints anything pinned to a scrolling page.) The brown page colour
   is what shows behind the status bar and home indicator. */
body {
	margin: 0; height: 100%; overflow: hidden; background: var(--brown); color: var(--brown); font: 400 16px/1.5 var(--font);
	-webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
.app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--cream); }

[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { flex: none; }

/* Splash */
.splash { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--brown); }
.splash__logo, .logo, .connect__logo { display: block; background: url(../icons/ws-mark-light.svg) center / contain no-repeat; }
.logo { background-image: var(--logo, url(../icons/ws-mark-light.svg)); }
.splash__logo { width: 62px; height: 86px; }

/* ---------- Shell ---------- */
.top {
	flex: none; position: sticky; top: 0; z-index: 50; height: var(--top);
	padding: var(--top-gap) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
	display: flex; align-items: center; gap: 4px; background: var(--brown); color: var(--cream);
}
.top { transition: box-shadow 0.2s var(--ease); }
.top.is-raised { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35); }
@media (prefers-reduced-motion: reduce) { .top { transition: none; } }
.top__brand { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; }
.logo { width: 28px; height: 40px; background-size: contain; }
.top__back { width: 32px; margin-left: -4px; }
.top__title { flex: 1; min-width: 0; margin-left: 4px; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__side { display: flex; }
.top__btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--oat); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.top__btn:hover, .top__btn:active { color: var(--cream); background: rgba(245, 241, 232, 0.08); }
.view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; outline: none; }
.view > * { flex: none; }
.view { padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
.tabs {
	flex: none; position: relative; z-index: 50; height: var(--tabs);
	padding: 4px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
	display: flex; align-items: flex-start; justify-content: space-around;
	background: var(--white); border-top: 1px solid var(--line);
}
.tab { flex: 1 1 0; min-width: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; line-height: 1; }
.tab__label { white-space: nowrap; }
.tab.is-active { color: var(--brown); }
.tab__icon { width: 52px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tab.is-active .tab__icon { background: color-mix(in srgb, var(--rose) 22%, transparent); }
.tab--add .tab__icon { background: var(--brown); color: var(--cream); }
.tab--add.is-active .tab__icon { background: var(--rose); }
.app--bare .top, .app--notabs .tabs { display: none; }
.app--bare .view { padding-top: calc(env(safe-area-inset-top, 0px) + 28px); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.view--editor { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Pieces ---------- */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cardhead h2 { font-size: 17px; font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
	border: 1px solid rgba(53, 35, 28, 0.18); background: var(--white); color: var(--brown); font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	white-space: nowrap; min-width: 0; transition: transform 0.12s var(--ease), background-color 0.16s var(--ease);
}
.btnrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.btn--danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: transparent; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; }
.iconbtn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { background: var(--cream); color: var(--brown); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea, .dialnew input[type="text"] {
	width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(53, 35, 28, 0.18); background: var(--white);
	font-size: 16px; font-weight: 400; color: var(--brown); appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376675e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; border-color: transparent; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.form-msg { padding: 12px 16px; border-radius: 12px; background: #fbeeec; color: var(--red); font-size: 14px; }
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 28px 0; }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 16px; text-align: center; color: var(--muted); background: var(--white); border-radius: 16px; box-shadow: var(--shadow-soft); }

/* The stock tag: Watch Studio's signature, on every watch and beside each count on Home. */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #eef3ee; color: #2f5a31; white-space: nowrap; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--reserved { background: #f7efe0; color: #855a17; }
.pill--sold { background: #f5e8e6; color: #8f5d56; }
.pill--draft { background: #ecebe8; color: #5c554f; }

/* ---------- Connect ---------- */
.connect { max-width: 440px; width: 100%; margin: 0 auto; padding-top: 6vh; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.connect__logo { width: 64px; height: 64px; margin: 0 auto 8px; background-image: url(../icons/ws-mark.svg); }
.connect__title { font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.connect__lead { color: var(--muted); }
.connect__form { display: flex; flex-direction: column; gap: 16px; text-align: left; margin-top: 8px; }
.connect__manual { font-size: 14px; }
.connect__manual summary { cursor: pointer; color: var(--muted); padding: 8px 0; }
.connect__manual[open] { display: flex; flex-direction: column; gap: 12px; }
.connect__manual .field { margin-top: 8px; }
.connect__foot, .connect__back { font-size: 13px; color: var(--muted); }
.connect__credit { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); order: 99; margin-top: 8px; }

/* ---------- Home ---------- */
.banner { background: var(--brown); color: var(--cream); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.banner .eyebrow { color: var(--oat); }
.banner__value { margin-top: 8px; font-size: clamp(36px, 9vw, 48px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.banner__note { margin-top: 4px; font-size: 13px; color: var(--on-dark-muted); }
.banner__stats { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.banner__stats a { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(245, 241, 232, 0.07); text-decoration: none; transition: background-color 0.16s var(--ease); }
.banner__stats a:hover { background: rgba(245, 241, 232, 0.12); }
.banner__stats strong { font-size: 24px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.banner__stats span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--oat); white-space: nowrap; }
.stat__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; }
.stat__dot--in_stock { background: #9cc79d; }
.stat__dot--reserved { background: #e0b36a; }
.stat__dot--sold { background: #d9a29b; }
.stat__dot--drafts { background: #bdb3a8; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.sechead h2 { font-size: 18px; font-weight: 500; }
.sechead a { margin: -12px -8px; padding: 12px 8px; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--rose) 75%, #000); text-decoration: none; }

/* ---------- Watch cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wcard { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.wcard__top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: -4px -8px 4px 0; }
.wcard__media { height: 132px; border-radius: 8px; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wcard.is-sold .wcard__media { opacity: 0.6; }
.wcard__media img { max-width: 90%; max-height: 124px; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity 0.2s var(--ease); }
.wcard__media img.is-loaded { opacity: 1; }
.wcard__ph { color: var(--oat); }
.wcard__brand { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard__model { font-size: 15px; font-weight: 500; line-height: 1.25; }
.wcard__model a { text-decoration: none; }
.wcard__meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.wcard__price { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Inventory ---------- */
.search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-soft); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; appearance: none; -webkit-appearance: none; }
.search:focus-within { outline: 2px solid var(--rose); outline-offset: 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(53, 35, 28, 0.16); background: var(--white); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip span { font-weight: 400; opacity: 0.7; }
.chip.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.selectrow select { width: 100%; min-height: 44px; padding: 0 44px 0 16px; border-radius: 999px; border: 1px solid rgba(53, 35, 28, 0.16); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376675e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; font-size: 15px; appearance: none; -webkit-appearance: none; }
.count { font-size: 13px; color: var(--muted); min-height: 20px; }
.more { display: flex; justify-content: center; }

/* ---------- Editor ---------- */
.editor { display: flex; flex-direction: column; gap: 16px; }
.editor__side, .editor__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.photos__empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0; border-radius: 12px; background: var(--cream); color: var(--muted); font-size: 14px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.is-uploading img { opacity: 0.55; }
.photo__main { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--brown); color: var(--cream); font-size: 11px; font-weight: 500; }
.photo__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.7); overflow: hidden; }
.photo__bar i { display: block; height: 100%; background: var(--brown); transition: width 0.2s var(--ease); }
.photo__err { position: absolute; inset: auto 0 40px 0; padding: 4px 8px; background: var(--red); color: #fff; font-size: 11px; line-height: 1.3; }
.photo__tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 2px; padding: 4px; background: linear-gradient(transparent, rgba(53, 35, 28, 0.55)); }
.photo.is-uploading .photo__tools { background: none; }
.photo__tools button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.photoadd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.photoadd .btn { padding: 0 12px; font-size: 14px; }
.seg { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend, .dials legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg__item { position: relative; flex: 1 1 90px; }
.seg__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg__item span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(53, 35, 28, 0.18); background: var(--white); font-weight: 500; font-size: 14px; text-align: center; line-height: 1.2; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.seg__item input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--cream); }
/* Stock status: the same tag as on every watch, a dot in its colour and a tinted box when chosen. */
.seg[data-status] .seg__item { flex-basis: 72px; min-width: 0; }
.seg[data-status] .seg__item span { gap: 6px; padding: 0 4px; }
.seg[data-status] .seg__item span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tag); }
.seg__item--in_stock { --tag: #2f5a31; --tag-bg: #eef3ee; }
.seg__item--reserved { --tag: #855a17; --tag-bg: #f7efe0; }
.seg__item--sold { --tag: #8f5d56; --tag-bg: #f5e8e6; }
.seg[data-status] .seg__item input:checked + span { background: var(--tag-bg); border-color: var(--tag); color: var(--tag); box-shadow: inset 0 0 0 1px var(--tag); }
.seg__item input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.toggles { display: flex; gap: 24px; margin-top: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle__ui { width: 44px; height: 28px; border-radius: 999px; background: #d9d2c6; position: relative; transition: background-color 0.2s var(--ease); }
.toggle__ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--brown); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--rose); outline-offset: 2px; }
.dials { border: 0; padding: 0; margin: 0 0 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 16px 4px 6px; border-radius: 999px; border: 1px solid rgba(53, 35, 28, 0.16); background: var(--white); font-size: 14px; cursor: pointer; }
.swatch.is-on { border-color: var(--brown); box-shadow: 0 0 0 1px var(--brown); background: var(--cream); font-weight: 500; }
.swatch__chip { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(53, 35, 28, 0.25); display: inline-flex; align-items: center; justify-content: center; }
.swatch__chip--none { background: repeating-linear-gradient(45deg, #fff 0 4px, #e6ddd1 4px 8px); }
.swatch--add { border-style: dashed; color: var(--muted); }
.dialnew { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--cream); }
.dialnew input[type="color"] { width: 48px; height: 48px; padding: 0; border: 1px solid rgba(53, 35, 28, 0.25); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; }
.dialnew input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.dialnew input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.dialnew input[type="text"] { flex: 1 1 160px; width: auto; }
.savebar {
	position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	background: var(--white); border-top: 1px solid var(--line);
}
.savebar__state { font-size: 13px; color: var(--muted); display: none; }
.savebar__btns { flex: 1; display: flex; justify-content: flex-end; gap: 8px; min-width: 0; }
.savebar__btns .btn { padding: 0 20px; }
.savebar__btns .btn--primary { flex: 1; max-width: 280px; }

/* ---------- Website ---------- */
.sitecard { display: flex; flex-direction: column; gap: 4px; }
.sitecard__name { font-size: 24px; font-weight: 500; line-height: 1.2; margin-top: 4px; }
.sitecard__url { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.sitecard .btnrow { margin-top: 16px; }

/* ---------- Settings home ---------- */
.profile { display: flex; align-items: center; gap: 12px; }
.profile__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--cream); }
.profile__name { font-size: 18px; font-weight: 500; }
.profile__site { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.list { padding: 4px 8px; }
.list__item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; font-size: 16px; cursor: pointer; color: var(--brown); }
.list__item:last-child { border-bottom: 0; }
.list__item span { flex: 1; min-width: 0; }
.list__item > .i:first-child { color: var(--muted); }
.list__item > .i:last-child { color: var(--oat); }
.list__item.is-danger, .list__item.is-danger > .i:first-child { color: var(--red); }
.listhead { margin: 8px 4px -4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.about { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 16px 0; }

/* ---------- Set-up screens: Settings, Brands, lists ---------- */
.fold { padding: 0; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 20px; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; }
.fold > summary > .i { color: var(--oat); transition: transform 0.2s var(--ease); }
.fold[open] > summary > .i { transform: rotate(90deg); }
.fold__intro { padding: 0 20px; margin-top: -8px; }
.setfields { display: flex; flex-direction: column; gap: 16px; padding: 16px 20px 20px; }
.field__help { font-size: 13px; font-weight: 400; color: var(--muted); }
.field--short { max-width: 220px; }
.toggle--row { display: flex; justify-content: flex-start; font-weight: 500; line-height: 1.35; }
.toggle--row .toggle__ui { flex: none; }
.seg--plain { margin: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.seg--plain .seg__item input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.colorfield { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.colorfield input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(53, 35, 28, 0.25); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; flex: none; }
.colorfield input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.colorfield input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.colorfield label { flex: 1; }
.linkbtn { border: 0; background: none; padding: 8px 0; color: color-mix(in srgb, var(--rose) 75%, #000); font-size: 14px; font-weight: 500; text-decoration: underline; cursor: pointer; }
.linkbtn.is-danger { color: var(--red); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; align-self: flex-start; }
.logofield { display: flex; align-items: center; gap: 16px; }
.logofield__preview { flex: none; width: 76px; height: 96px; border-radius: 12px; background: var(--brown); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logofield__preview.is-default { background: var(--brown) url(../icons/ws-mark-light.svg) center / 40px auto no-repeat; }
.logofield__preview img { max-width: 60px; max-height: 80px; }
.logofield--wide { margin-top: 16px; }
.logofield.logofield--wide .logofield__preview { width: 120px; height: 64px; background: #8a7a70; }
.logofield.logofield--wide .logofield__preview img { max-width: 104px; max-height: 48px; }
.logofield__preview.is-empty:not(.is-default)::after { content: "None"; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.logofield .field__help { display: block; margin-top: 8px; }
.logofield__label { font-weight: 500; margin-bottom: 8px; }
.logofield__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.brand__meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rows { display: flex; flex-direction: column; margin: 12px 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main small { color: var(--muted); font-size: 13px; }

/* ---------- Compact settings (grouped lists, slim rows) ---------- */
.sprofile { display: flex; align-items: center; gap: 12px; padding: 4px; }
.sprofile__name { font-size: 20px; font-weight: 500; line-height: 1.2; }
.sprofile__site { margin-top: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.search--flat { height: 44px; box-shadow: none; background: color-mix(in srgb, var(--brown) 7%, var(--cream)); }
.search--flat input { font-size: 16px; }
.sgroup { display: flex; flex-direction: column; gap: 8px; }
.sgroup__title { margin: 8px 4px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.sgroup__intro { margin: 0 4px; }
.sgroup__rows { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.srow, .setrow {
	width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line);
	background: none; text-align: left; text-decoration: none; font-size: 15px; color: var(--brown); cursor: pointer;
}
.sgroup__rows > :last-child { border-bottom: 0; }
.srow > .i:first-child { color: var(--muted); }
.srow > .i:last-child { color: var(--oat); }
.srow__label, .setrow__label { flex: 1; min-width: 0; }
.srow__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); white-space: normal; }
.srow__val { flex: none; max-width: 62%; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__val.is-match { font-size: 0; }
.srow__val.is-match::after { content: attr(data-match); font-size: 13px; color: color-mix(in srgb, var(--rose) 75%, #000); text-transform: capitalize; }
.srow__val .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(53, 35, 28, 0.2); }
.srow.is-danger, .srow.is-danger > .i:first-child { color: var(--red); }
.srow:active { background: color-mix(in srgb, var(--brown) 5%, transparent); }
.setrow { cursor: pointer; line-height: 1.3; }
.setrow input[type="checkbox"] { position: absolute; opacity: 0; }
.setrow .toggle__ui { flex: none; }
.setrow input:checked + .toggle__ui { background: var(--brown); }
.setrow input:checked + .toggle__ui::after { transform: translateX(16px); }
.setrow input:focus-visible + .toggle__ui { outline: 2px solid var(--rose); outline-offset: 2px; }
.setrow--color { cursor: default; }
.setrow--color input[type="color"] { flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(53, 35, 28, 0.25); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; }
.setrow--color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.setrow--color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.setrow--color .linkbtn { font-size: 13px; padding: 4px 0; }
.sblock { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-soft); }
.editor--compact { gap: 20px; }
.editor--compact .sgroup { gap: 8px; }
.editor--compact .field input, .editor--compact .field select, .editor--compact .field textarea { min-height: 44px; }
.editor--compact .seg__item span { min-height: 40px; font-size: 14px; }
.editor--compact .pv { padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Settings pages: headed groups, each a white card of rows (same look as the main Settings screen). */
.setgroup { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.setrow__text { flex: 1 1 130px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setrow__text .setrow__label { flex: none; cursor: inherit; }
.setrow__help { font-size: 13px; line-height: 1.4; color: var(--muted); }
/* More options: fine-tuning tucked under one closed row on each settings page. */
.moreopts > summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(53, 35, 28, 0.16); border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 500; cursor: pointer; }
.moreopts > summary::-webkit-details-marker { display: none; }
.moreopts > summary .i { color: var(--muted); transition: transform 0.2s var(--ease); }
.moreopts[open] > summary { margin-bottom: 12px; }
.moreopts[open] > summary .i { transform: rotate(90deg); }
.moreopts__body { display: flex; flex-direction: column; gap: 12px; }
.setrow--ctl { cursor: default; flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.setrow--ctl > :last-child:not(.setrow__text), .setrow--ctl > .rseg, .setrow--ctl > .rowselect, .setrow--ctl > .fontpick { margin-left: auto; }
.rowselect { flex: 0 1 auto; max-width: 100%; height: 40px; padding: 0 36px 0 12px; border: 1px solid rgba(53, 35, 28, 0.18); border-radius: 10px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376675e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--brown); font: inherit; font-size: 15px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.rowselect:focus-visible, .rownum:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; }
.rownum { flex: none; width: 84px; height: 40px; padding: 0 12px; border: 1px solid rgba(53, 35, 28, 0.18); border-radius: 10px; background: var(--white); color: var(--brown); font: inherit; font-size: 15px; text-align: center; }
.rseg { flex: none; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 100%; padding: 4px; border-radius: 12px; background: var(--cream); }
.rseg__item { position: relative; min-width: 0; }
.rseg__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rseg__item span { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.rseg__item input:checked + span { background: var(--white); color: var(--brown); box-shadow: 0 1px 3px rgba(53, 35, 28, 0.18); }
.rseg__item input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 1px; }
.setstack { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.setstack[hidden] { display: none; }
.setstack__label { font-size: 15px; font-weight: 400; color: var(--brown); }
.setstack.field input, .setstack.field textarea { min-height: 44px; border-radius: 10px; font-size: 15px; }
.setstack.field textarea { min-height: 84px; }
.setrow--ctl > .fontpick { width: auto; max-width: 100%; min-height: 40px; padding: 0 12px 0 16px; border-radius: 10px; font-size: 18px; gap: 8px; }
.sgroup__rows > .typerow { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.sgroup__rows > .typerow:last-child, .sgroup__rows > .setstack:last-child { border-bottom: 0; }
/* The last row on show has no line under it, even when hidden rows follow. */
.sgroup__rows > *:not(:has(~ *:not([hidden]))) { border-bottom: 0; }
/* Text styles: a card per piece of text with a live sample, letter-case buttons and − / + steppers. */
.sgroup__title--sub { margin-top: 8px; }
.typerow { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-soft); min-width: 0; }
.typerow__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.typerow__name { font-weight: 500; font-size: 15px; }
.typerow__sample { max-width: 60%; padding: 4px 12px; border-radius: 8px; background: var(--cream); font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caseseg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: var(--cream); }
.caseseg__item { position: relative; }
.caseseg__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.caseseg__item span { display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.caseseg__item input:checked + span { background: var(--white); color: var(--brown); box-shadow: 0 1px 3px rgba(53, 35, 28, 0.18); }
.caseseg__item input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 1px; }
.typerow__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stepper { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stepper__label { font-size: 12px; color: var(--muted); }
.stepper__ctl { display: flex; align-items: center; height: 40px; padding: 4px; border-radius: 12px; background: var(--cream); }
.stepper__ctl button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--white); color: var(--brown); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(53, 35, 28, 0.18); }
.stepper__ctl button:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.stepper__ctl output { flex: 1; min-width: 0; text-align: center; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Font picker */
.fontpick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid rgba(53, 35, 28, 0.2); border-radius: 12px; background: var(--white); color: var(--brown); font-size: 20px; text-align: left; cursor: pointer; }
.fontpick .i { color: var(--muted); flex: none; }
.sheet--list .sheet__actions { max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.sheet--list .sheet__btn { flex: none; font-size: 20px; }
.sheet__btn small { flex: none; font-size: 12px; color: var(--muted); font-family: var(--font); }
/* Theme: tabs for each part of the website's look. */
.themetabs { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.themetabs::-webkit-scrollbar { display: none; }
.themetabs__tab { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(53, 35, 28, 0.18); background: var(--white); color: var(--brown); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.themetabs__tab.is-on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
/* Live preview. Phone: pinned at the top while the settings scroll underneath (Preview / Full screen
   opens it full size). Tablet and wider: pinned on the right. */
.editor--compact .pv--sticky:not(.pv--full) { position: sticky; top: -16px; z-index: 6; margin: 0 -16px; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.pv--sticky:not(.pv--full) .pv__scroll { max-height: 36vh; }
/* Phones: a slim strip showing the phone view only; tap it for full screen. */
@media (max-width: 699px) {
	.pv--sticky:not(.pv--full) .pv__label { display: none; }
	.pv--sticky:not(.pv--full) .pv__scroll:has(.pv__frame--phone) .pv__frame:not(.pv__frame--phone) { display: none; }
	.editor--compact .pv--sticky:not(.pv--full) .pv__scroll { max-height: 152px; overflow: hidden; cursor: zoom-in; }
}
.pv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv__head .sgroup__title { margin: 0; }
.pv__scroll { display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 12px; }
.pv__scroll .pv__frame { flex: none; margin: 0 auto; max-width: 100%; }
.pv__scroll .pv__frame--phone { margin-left: 0; }
/* Full-screen preview */
.editor--compact .pv.pv--full { position: fixed !important; inset: 0; width: auto; z-index: 80; margin: 0 !important; padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important; border: 0 !important; border-radius: 0 !important; background: var(--cream) !important; display: flex; flex-direction: column; gap: 12px; }
.pv.pv--full .pv__scroll { display: flex !important; flex: 1; min-height: 0; max-height: none !important; }
.pv.pv--full .pv__fullbtn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(53, 35, 28, 0.08); color: var(--brown); font-size: 18px; text-decoration: none; }
.savebar__preview { flex: none; }
.pv__label { margin: 2px 2px -2px; font-size: 12px; color: var(--muted); }
.pv__frame--phone { width: 100%; max-width: 390px; }
.pv__note { margin: 0; }
.sgroup__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.editor--compact .logofield__preview { width: 60px; height: 76px; }
.sdetails { font-size: 13px; color: var(--muted); padding: 0 4px; }
.sdetails summary { cursor: pointer; padding: 8px 0; }
.sdetails .diag { padding: 8px 0 0; }
.about { padding-top: 0; }

/* The loading screen and the finished page */
.busy { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--brown) 90%, transparent); animation: fade 0.2s var(--ease); }
.busy__box { max-width: 320px; text-align: center; color: var(--cream); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.busy__spin { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgba(245, 241, 232, 0.25); border-top-color: var(--cream); animation: spin 0.9s linear infinite; margin-bottom: 8px; }
.busy__title { font-size: 20px; font-weight: 500; line-height: 1.25; }
.busy__sub { font-size: 15px; line-height: 1.5; color: var(--oat); white-space: pre-line; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { max-width: 460px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 8px; }
.done__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.3); animation: pop 0.35s var(--ease); }
.done__title { font-size: 24px; font-weight: 500; line-height: 1.2; margin-top: 4px; }
.done__sub { color: var(--muted); }
.done__card { width: 100%; display: flex; gap: 16px; align-items: center; text-align: left; margin: 8px 0; padding: 12px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.done__media { flex: none; width: 116px; height: 116px; border-radius: 12px; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--oat); }
.done__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.done__info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.done__model { font-size: 17px; font-weight: 500; line-height: 1.25; }
.done__price { font-size: 17px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.done__actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.done__edit { font-size: 14px; color: var(--muted); padding: 8px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

/* Enhance photos */
.enhance { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.enhance .btn:disabled { opacity: 0.55; }
.photo__done { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brown); display: flex; align-items: center; justify-content: center; }
.photo__busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 500; color: var(--brown); }
.photo__crop { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.photo__crop:hover { background: var(--white); }

/* Crop a photo to the website's square: full screen, dark, the square in the middle. */
html.is-cropping, html.is-cropping body { overflow: hidden; }
.cropper { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: #140e0b; color: #fff; animation: fade 0.2s var(--ease); }
.cropper__bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px; }
.cropper__bar h2 { margin: 0; font-size: 16px; font-weight: 600; text-align: center; white-space: nowrap; }
.cropper__bar [data-cancel] { justify-self: start; }
.cropper__done { justify-self: end; }
.cropper__text { min-height: 44px; padding: 0 4px; border: 0; background: none; color: #fff; font: 500 15px/1 var(--font); cursor: pointer; }
.cropper__text:hover { text-decoration: underline; text-underline-offset: 3px; }
.cropper__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.cropper__stage.is-dragging { cursor: grabbing; }
.cropper__stage:focus-visible .cropper__frame { outline: 2px solid var(--rose); outline-offset: 4px; }
.cropper__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; pointer-events: none; }
.cropper__frame { position: absolute; border: 1.5px solid rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 100vmax rgba(20, 14, 11, 0.66); pointer-events: none; }
.cropper__frame i { position: absolute; background: rgba(255, 255, 255, 0.32); }
.cropper__frame i:nth-child(1), .cropper__frame i:nth-child(2) { top: 0; bottom: 0; width: 1px; }
.cropper__frame i:nth-child(1) { left: 33.333%; }
.cropper__frame i:nth-child(2) { left: 66.666%; }
.cropper__frame i:nth-child(3), .cropper__frame i:nth-child(4) { left: 0; right: 0; height: 1px; }
.cropper__frame i:nth-child(3) { top: 33.333%; }
.cropper__frame i:nth-child(4) { top: 66.666%; }
/* What a computer shows: the photo box there is about 3:2, so the top and bottom of the square are trimmed. */
.cropper__band { position: absolute; left: 0; right: 0; top: 15.5%; bottom: 15.5%; border-top: 1.5px dashed rgba(255, 255, 255, 0.85); border-bottom: 1.5px dashed rgba(255, 255, 255, 0.85); }
.cropper__band span { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(20, 14, 11, 0.55); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.cropper__foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.cropper__hint { margin: 0; max-width: 420px; color: var(--on-dark-muted); font-size: 13px; line-height: 1.4; text-align: center; }
.cropper__zoom { display: flex; align-items: center; gap: 8px; width: min(100%, 420px); }
.cropper__zoom input { flex: 1; min-width: 0; accent-color: #fff; }
.cropper__step { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cropper__step:hover { background: rgba(255, 255, 255, 0.18); }
.cropper__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }

/* Write-it-for-me and the Bin */
.writebar { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.writebar .btn { align-self: flex-start; }
.binrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.binrow__img { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--oat); }
.binrow__img img { width: 100%; height: 100%; object-fit: cover; }
.binrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.binrow__text strong { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.binrow__text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.binrow .btn--small { min-height: 40px; padding: 0 12px; font-size: 14px; align-self: center; }
.iconbtn.is-danger { color: var(--red); }
.sheet__btn.is-danger .i { color: var(--red); }

/* Live previews in Settings */
.pv { padding: 0 20px 20px; }
.pv .eyebrow { margin-bottom: 8px; }
.pv__frame { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); }
.pv__frame iframe { display: block; border: 0; transform-origin: 0 0; pointer-events: none; }
.pv__frame .hint { padding: 16px; }

.diag { font: 12px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; padding: 4px 20px 20px; }

/* ---------- Sheets and toasts ---------- */
.sheet-shade { position: fixed; inset: 0; z-index: 90; background: rgba(20, 14, 11, 0.4); animation: fade 0.2s var(--ease); }
.sheet {
	position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px));
	background: var(--white); border-radius: 20px 20px 0 0; box-shadow: 0 -16px 48px -20px rgba(0, 0, 0, 0.35); animation: up 0.22s var(--ease);
}
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: #ddd5c8; margin: 0 auto 12px; }
.sheet__title { font-size: 17px; font-weight: 500; text-align: center; padding: 0 12px; }
.sheet__sub { font-size: 14px; color: var(--muted); text-align: center; padding: 4px 12px 0; }
.sheet__actions { display: flex; flex-direction: column; margin-top: 12px; }
.sheet:focus { outline: none; }
/* Laid-out sheets (a watch's menu): status boxes, centred buttons, side-by-side pairs. */
.sheet__actions--laid { gap: 8px; margin-top: 16px; }
.sheet__row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.sheet__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 80px; padding: 12px 8px; border: 2px solid transparent; border-radius: 16px; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform 0.12s var(--ease); }
.sheet__tile:active { transform: scale(0.98); }
.sheet__tile.is-current { border-color: currentColor; cursor: default; }
.sheet__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.sheet__tile--in_stock { background: #eef3ee; color: #2f5a31; }
.sheet__tile--reserved { background: #f7efe0; color: #855a17; }
.sheet__tile--sold { background: #f5e8e6; color: #8f5d56; }
.sheet__block { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid rgba(53, 35, 28, 0.16); border-radius: 999px; background: var(--white); color: var(--brown); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color 0.16s var(--ease), transform 0.12s var(--ease); }
.sheet__block:hover { background: var(--cream); }
.sheet__block:active { transform: scale(0.98); }
.sheet__block.is-primary { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.sheet__block.is-danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.sheet__tile:focus-visible, .sheet__block:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.sheet__btn { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: none; font-size: 16px; text-align: left; cursor: pointer; }
.sheet__btn span { flex: 1; }
.sheet__btn:hover, .sheet__btn:focus-visible { background: var(--cream); }
.sheet__btn.is-current { font-weight: 500; }
.sheet__btn.is-danger { color: var(--red); font-weight: 500; }
.sheet--confirm .sheet__title { font-size: 20px; }
.sheet--confirm .sheet__sub { font-size: 15px; padding-top: 8px; }
.sheet--confirm .sheet__actions { margin-top: 20px; }
.sheet__btn--main { justify-content: center; min-height: 52px; border-radius: 999px; background: var(--brown); color: var(--cream); font-weight: 500; text-align: center; }
.sheet__btn--main span { flex: none; }
.sheet__btn--main:hover, .sheet__btn--main:focus-visible { background: var(--brown); filter: brightness(1.15); }
.sheet__btn--main.is-danger { background: var(--red); color: #fff; }
.sheet__btn--main.is-danger .i { color: #fff; }
.sheet__cancel { width: 100%; min-height: 52px; margin-top: 8px; border: 0; border-radius: 999px; background: var(--cream); font-weight: 500; font-size: 16px; cursor: pointer; }
.toast {
	position: fixed; z-index: 100; left: 50%; bottom: calc(var(--tabs) + 16px); transform: translateX(-50%); max-width: min(92vw, 440px);
	padding: 12px 20px; border-radius: 12px; background: var(--brown); color: var(--cream); font-size: 14px; font-weight: 500; text-align: center; box-shadow: var(--shadow); animation: up 0.2s var(--ease);
}
.toast--error { background: var(--red); color: #fff; }
.app--notabs ~ .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast { animation-name: toastup; }
@keyframes toastup { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- Sales and invoices ---------- */
.banner__stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(245, 241, 232, 0.07); }
.banner__stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.invlist { display: flex; flex-direction: column; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-soft); overflow: hidden; }
.invlist .empty { box-shadow: none; border-radius: 0; }
.invlist .loading { padding: 32px 0; }
.invrow { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--brown); text-decoration: none; transition: background-color 0.16s var(--ease); }
.invrow:last-child { border-bottom: 0; }
.invrow:active, .invrow:hover { background: color-mix(in srgb, var(--brown) 4%, transparent); }
.invrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.invrow__main strong { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invrow__main small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invrow__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.invrow__side b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.invform .card { display: flex; flex-direction: column; gap: 16px; }
.buyerpick { position: relative; min-width: 0; }
.buyerlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.buyerlist__head { padding: 8px 16px 4px; font-size: 12px; color: var(--muted); }
.buyerlist button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 8px 16px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.buyerlist__head + button, .buyerlist button:first-child { border-top: 0; }
.buyerlist button:hover, .buyerlist button:focus-visible { background: var(--cream); }
.buyerlist strong { font-size: 15px; font-weight: 500; }
.buyerlist small { font-size: 13px; color: var(--muted); }
.invform .cardhead { margin-bottom: 0; }
.invform .seg { margin: 0; }
.invform__pay:has(> .field:not([hidden])) { display: grid; }
.invform__pay:not(:has(> .field:not([hidden]))) { display: none; }
.invwatch { flex-direction: row !important; align-items: center; gap: 12px !important; padding: 12px; }
.invwatch__media { flex: none; width: 72px; height: 72px; border-radius: 8px; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--oat); }
.invwatch__media img { max-width: 90%; max-height: 64px; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity 0.2s var(--ease); }
.invwatch__media img.is-loaded { opacity: 1; }
.invwatch__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.invwatch__brand { font-size: 12px; font-weight: 500; color: var(--muted); }
.invwatch__model { font-size: 16px; font-weight: 500; line-height: 1.25; }
.invhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invhead__num { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.invlayout { display: flex; flex-direction: column; gap: 16px; }
.invside { display: flex; flex-direction: column; gap: 12px; }
.invtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.invtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 76px; padding: 12px 8px; border: 1px solid rgba(53, 35, 28, 0.14); border-radius: 12px; background: var(--white); color: var(--brown); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.16s var(--ease), transform 0.12s var(--ease); }
.invtile:hover { background: var(--cream); }
.invtile:active { transform: scale(0.98); }
.invtile .i { color: var(--muted); }
.paycard { display: flex; flex-direction: column; gap: 12px; }
.paycard .cardhead { margin-bottom: 0; }
.invside__delete { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 12px 8px; text-decoration: none; }
/* Cancelled sales: struck-through rows, the nudge for a watch back on sale, the stamp and the credit-note card. */
.invrow.is-ended .invrow__main strong, .invrow.is-ended .invrow__side b { color: var(--muted); }
.invrow.is-ended .invrow__side b { text-decoration: line-through; }
.invrow__warn { color: var(--red) !important; white-space: normal !important; }
.invwarn { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.invwarn p { margin: 0; font-size: 14px; }
.invended { display: flex; flex-direction: column; gap: 12px; }
.invended .cardhead { margin-bottom: 0; }
.invended .hint { margin: 0; }
.paper__stamp { display: inline-block; margin-left: 12px; padding: 2px 10px; border: 2px solid #b42318; border-radius: 6px; color: #b42318; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 4px; transform: rotate(-5deg); }
.paper { padding: 24px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); color: var(--brown); font-size: 14px; line-height: 1.5; }
.paper__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.paper__top.is-band { margin: -24px -24px 0; padding: 24px; border-radius: 16px 16px 0 0; background: var(--band); }
.paper__top.is-band .paper__who, .paper__top.is-band .paper__who strong, .paper__top.is-band .paper__logo strong { color: var(--band-ink); }
.paper__top.is-band .paper__who { opacity: 0.85; }
.paper__logo img { display: block; max-width: 140px; max-height: 56px; }
.paper__logo strong { font-size: 18px; font-weight: 500; }
.paper__who { text-align: right; font-size: 12px; color: var(--muted); white-space: pre-line; }
.paper__who strong { display: block; color: var(--brown); font-size: 14px; font-weight: 500; }
.paper h2 { margin: 24px 0 4px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.paper__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; }
.paper__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.paper__cols p { white-space: pre-line; overflow-wrap: anywhere; }
.paper__label { font-size: 12px; color: var(--muted); }
.paper__item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.paper__item small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.paper__sum { max-width: 280px; margin: 12px 0 0 auto; }
.paper__sum div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.paper__sum .due { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.paper__small { margin-top: 16px; font-size: 12px; color: var(--muted); white-space: pre-line; }
.paper__small strong { color: var(--brown); font-weight: 500; }

/* Invoices or purchases, at the top of Sales */
.salestabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--brown) 7%, var(--cream)); }
.salestabs__tab { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.salestabs__tab.is-on { background: var(--white); color: var(--brown); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
/* Purchase orders: choose the watch from Inventory */
.pickwatch, .pickwatch [data-finder] { display: flex; flex-direction: column; gap: 8px; }
.pickwatch__list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.pickwatch__list > .hint { padding: 16px; }
.pickwatch__row, .pickwatch__chosen { display: flex; align-items: center; gap: 12px; }
.pickwatch__row { width: 100%; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); color: var(--brown); text-align: left; cursor: pointer; transition: background-color 0.16s var(--ease); }
.pickwatch__row:last-child { border-bottom: 0; }
.pickwatch__row:hover, .pickwatch__row:focus-visible { background: var(--cream); }
.pickwatch__row .invwatch__media { width: 56px; height: 56px; background: var(--cream); }
.pickwatch__chosen { padding: 12px; border-radius: 12px; background: var(--cream); }
.pickwatch__chosen .invwatch__media { background: var(--white); }
.invform__wide { grid-column: 1 / -1; }
.costline { margin-top: 12px; }
.costline a { color: color-mix(in srgb, var(--rose) 75%, #000); }
.invtiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* The watch photo beside it on the paper, and lines to sign on purchase orders */
.paper__what { display: flex; align-items: center; gap: 16px; min-width: 0; }
.paper__pic { flex: none; width: 72px; height: 72px; border-radius: 8px; background: var(--cream); object-fit: contain; }
.paper__sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 32px; }
.paper__sign span { display: block; height: 40px; border-bottom: 1px solid var(--brown); }
.paper__sign p { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Tablet and desktop: side rail, wider grid ---------- */
@media (min-width: 600px) {
	.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
	.wcard { padding: 16px; }
	.wcard__media { height: 170px; }
	.wcard__media img { max-height: 156px; }
	.savebar__state { display: block; }
	.home__add { align-self: flex-start; width: auto; }
}
@media (min-width: 900px) {
	:root { --top: 76px; --top-gap: 0px; --tabs: 0px; --rail: 88px; }
	.pv__frame { max-width: 820px; }
	.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
	.top { grid-column: 2; grid-row: 1; padding: 0 32px; background: var(--cream); color: var(--brown); }
	.top__back { width: 44px; margin-left: -12px; }
	.top__brand { display: none; }
	.top__title { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; margin-left: 8px; }
	.top__btn { color: var(--muted); }
	.top__btn:hover { background: rgba(53, 35, 28, 0.06); color: var(--brown); }
	.tabs {
		grid-column: 1; grid-row: 1 / span 2; width: var(--rail); height: auto; flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px;
		padding: 24px 0; background: var(--brown); box-shadow: none;
	}
	.tabs::before { content: ""; flex: none; width: 40px; height: 56px; margin-bottom: 16px; background: var(--logo, url(../icons/ws-mark-light.svg)) center / contain no-repeat; }
	.tab { flex: none; width: 64px; height: 60px; color: color-mix(in srgb, var(--oat) 85%, transparent); }
	.tab.is-active { color: var(--cream); }
	.tab--add .tab__icon { width: 48px; height: 48px; background: var(--rose); color: #fff; }
	.tab--add { height: 72px; }
	.view { grid-column: 2; grid-row: 2; padding: 8px 40px 64px; gap: 20px; }
	.view > * { width: 100%; }
	.view > .home__add { width: auto; padding: 0 28px; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); }
	.view > .savebar { width: auto; max-width: none; } /* Fixed to the bottom: runs from the side rail to the right edge. */
	.app--notabs .tabs { display: flex; }
	.view--editor { padding-bottom: 120px; }
	.app--bare { display: flex; }
	.app--bare .tabs { display: none; }
	.app--bare .view { padding: 40px; }
	.savebar { left: var(--rail); padding-left: 40px; padding-right: 40px; }
	.toast { bottom: 28px; }
	.app--notabs ~ .toast { bottom: 96px; }
	.sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 20px; animation-name: fade; }
	.banner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; padding: 32px; }
	.banner__stats { grid-row: 1 / span 3; grid-column: 2; margin: 0; min-width: 420px; }
	.banner__stats--2 { min-width: 280px; }
	/* Invoice: the paper fills the width, with sending and payment in a column beside it. */
	.invlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
	.invside { order: 2; position: sticky; top: 0; }
	.paper { order: 1; padding: 48px; }
	.paper__top.is-band { margin: -48px -48px 0; padding: 40px 48px; }
	/* Sales: one line per invoice across the full width. */
	.invrow { min-height: 64px; padding: 12px 20px; }
	.invrow__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 24px; }
	.invrow__side { flex-direction: row; align-items: center; gap: 16px; min-width: 200px; justify-content: flex-end; }
	/* New invoice: the watch across the top, buyer and sale side by side. */
	.invform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
	.invform > :not(.card), .invform > .invwatch, .invform > .invform__full { grid-column: 1 / -1; }
	.view > .salestabs { width: 360px; }
	/* Pages with a single full-width button (Add a brand): the button sits at its natural size. */
	.view > .btn--block { width: auto; align-self: flex-start; padding: 0 28px; }
	.moreopts > summary { width: fit-content; min-width: 280px; }
	/* Brands: closed cards two or three across; an open one grows in place. */
	.editor[data-list] { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px 20px; align-items: start; }
	/* Settings: two columns of groups on wide screens instead of one narrow column. */
	.view:has(> .sprofile) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px 24px; }
	.view:has(> .sprofile) > :not(.sgroup) { grid-column: 1 / -1; }
	.view:has(> .sprofile) > .sgroup, .view:has(> .sprofile) > .sprofile, .view:has(> .sprofile) > .search--flat { max-width: none; }
	.photos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
/* Wide screens: the watch editor in two columns (photos and price kept in view on the left), and each
   settings page's groups side by side, two at most, so nothing sits in a narrow strip with empty space beside it. */
@media (min-width: 1100px) {
	.editor--watch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
	.editor__side, .editor__main { gap: 20px; }
	.editor__side { position: sticky; top: 0; }
	.editor--compact:not(.editor--split) > .sgroup:has(> .setgroup ~ .setgroup), .editor--compact:not(.editor--split) .moreopts__body:has(> .setgroup ~ .setgroup) {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start;
	}
	.editor--compact:not(.editor--split) > .sgroup > :not(.setgroup) { grid-column: 1 / -1; }
	/* A page with one long group: its rows two across inside the one card, split by a hairline. */
	.editor--compact:not(.editor--split) > .sgroup:not(:has(> .setgroup ~ .setgroup)) .sgroup__rows:has(> :nth-child(4)) {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
		background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, var(--white);
	}
	.editor--compact:not(.editor--split) > .sgroup:not(:has(> .setgroup ~ .setgroup)) .sgroup__rows:has(> :nth-child(4)) > :nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* Theme pages use the full width of the screen. */
@media (min-width: 900px) {
	.view.view--wide > *:not(.savebar), .view.view--wide .editor { max-width: none; }
}
/* From tablet width up: settings and live preview side by side. */
@media (min-width: 700px) {
	/* Split view: settings on the left, preview fills the rest of the width. */
	.editor--compact.editor--split, .sgroup.sgroup--split { max-width: none; }
	.sgroup--split { display: grid; grid-template-columns: minmax(280px, 460px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
	.themetabs { margin: 0; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; }
	.sgroup--split > .sgroup__body { grid-column: 1; grid-row: 1; }
	.editor--compact .sgroup--split > .pv--sticky:not(.pv--full) { display: flex; position: sticky; grid-column: 2; grid-row: 1; top: 0; z-index: 6; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-soft); }
	.savebar__preview { display: none; }
	.sgroup--split .pv--sticky:not(.pv--full) .pv__scroll { max-height: calc(100vh - 250px); }
	.sgroup--split .pv__frame { max-width: none; }
	.sgroup--split .pv__frame--phone { max-width: 390px; }
}
