/* Generated from design-system/tokens.json. Do not hand-edit; re-export the design system and rebuild. */
:root { --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --tap-min: 44px; --tile-height: 72px; --tile-height-phone: 50px; --tile-min-s: 56px; --tile-min-l: 92px; --tile-min-phone-s: 44px; --tile-min-phone-l: 64px; --content-max: 1200px; --header-gap: 24px; --sticker-rim-width: 4px; --sticker-rim-width-phone: 3px; --flap-row: 46px; --focus-gap-width: 2px; --focus-ring-width: 3px; --draft-side-width: 320px; --radius-tile: 16px; --radius-tile-inner: 12px; --radius-tile-phone: 13px; --radius-tile-inner-phone: 10px; --radius-row: 18px; --radius-row-inner: 14px; --radius-field: 24px; --radius-bar: 20px; --radius-inner: 12px; --radius-small: 10px; --radius-tooltip: 6px; --radius-pill: 999px; --shadow-sticker-resting: 0 0 0 1px rgba(22,22,22,0.05), 0 1px 0 rgba(22,22,22,0.08), 0 4px 8px rgba(22,22,22,0.10); --shadow-sticker-lifted: 0 0 0 1px rgba(22,22,22,0.05), 0 2px 0 rgba(22,22,22,0.08), 0 10px 16px rgba(22,22,22,0.14); --shadow-sticker-peeling: 0 8px 10px rgba(22,22,22,0.18); --shadow-flap: -2px 3px 2px rgba(22,22,22,0.25); --shadow-float: 0 10px 24px rgba(22,22,22,0.20); --shadow-bar: 0 -10px 24px rgba(22,22,22,0.10); --duration-quick: 150ms; --duration-base: 220ms; --duration-fly: 400ms; --duration-toast: 4000ms; --easing-out: cubic-bezier(0.2, 0.8, 0.2, 1); --easing-in: cubic-bezier(0.4, 0, 1, 1); --bp-tablet: 600px; --bp-desktop: 1024px; --bp-side-panel: 1100px; --z-draft: 6; --z-popover: 8; --z-toast: 9; --font-brand: 'Bricolage Grotesque', system-ui, sans-serif; --font-sans: 'DM Sans', system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --font-symbol: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', 'Apple Color Emoji', 'Segoe UI Emoji', system-ui, sans-serif; --font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
:root { --page: #f8f8f6; --ink: #161616; --muted: #4a4a48; --surface: #fdfdfc; --surface-bar: #fdfdfc; --surface-sunken: #f8f8f6; --selected: #161616; --on-selected: #fdfdfc; --inverse: #161616; --on-inverse: #fdfdfc; --accent: #ff4fa3; --on-accent: #161616; --accent-icon: #c2185b; --error: #a3221a; --line-strong: #161616; --line: #161616; --field-line: #8e8e8d; --line-subtle: #dcdcd7; --tag: #ffe3f0; --focus-ring: #161616; --focus-gap: #f8f8f6; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #fdfdfc; --sticker-face-1: #fdfdfc; --sticker-face-2: #f5f5f2; --sticker-face-3: #efefeb; --sticker-ink: #1a1a1a; --sticker-flap-1: #d9d9d3; --sticker-flap-2: #f4f4f0; --sticker-flap-3: #fdfdfc; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }
@media (prefers-color-scheme: dark) { :root:not([data-ss-theme]) { --page: #1b1b1e; --ink: #f4f4f6; --muted: #b4b4ba; --surface: #28282c; --surface-bar: #222226; --surface-sunken: #2e2e33; --selected: #ff4fa3; --on-selected: #161616; --inverse: #f4f4f6; --on-inverse: #161616; --accent: #ff4fa3; --on-accent: #161616; --accent-icon: #ff4fa3; --error: #ff9e94; --line-strong: #f4f4f6; --line: #737378; --field-line: #737378; --line-subtle: #4a4a50; --tag: #5e324a; --focus-ring: #f4f4f6; --focus-gap: #1b1b1e; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #3b3b40; --sticker-face-1: #36363b; --sticker-face-2: #2f2f34; --sticker-face-3: #2a2a2e; --sticker-ink: #f4f4f6; --sticker-flap-1: #24242a; --sticker-flap-2: #46464d; --sticker-flap-3: #55555c; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); } }
:root[data-ss-theme="offwhite"] { --page: #f8f8f6; --ink: #161616; --muted: #4a4a48; --surface: #fdfdfc; --surface-bar: #fdfdfc; --surface-sunken: #f8f8f6; --selected: #161616; --on-selected: #fdfdfc; --inverse: #161616; --on-inverse: #fdfdfc; --accent: #ff4fa3; --on-accent: #161616; --accent-icon: #c2185b; --error: #a3221a; --line-strong: #161616; --line: #161616; --field-line: #8e8e8d; --line-subtle: #dcdcd7; --tag: #ffe3f0; --focus-ring: #161616; --focus-gap: #f8f8f6; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #fdfdfc; --sticker-face-1: #fdfdfc; --sticker-face-2: #f5f5f2; --sticker-face-3: #efefeb; --sticker-ink: #1a1a1a; --sticker-flap-1: #d9d9d3; --sticker-flap-2: #f4f4f0; --sticker-flap-3: #fdfdfc; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }
:root[data-ss-theme="offwhite-dark"] { --page: #1b1b1e; --ink: #f4f4f6; --muted: #b4b4ba; --surface: #28282c; --surface-bar: #222226; --surface-sunken: #2e2e33; --selected: #ff4fa3; --on-selected: #161616; --inverse: #f4f4f6; --on-inverse: #161616; --accent: #ff4fa3; --on-accent: #161616; --accent-icon: #ff4fa3; --error: #ff9e94; --line-strong: #f4f4f6; --line: #737378; --field-line: #737378; --line-subtle: #4a4a50; --tag: #5e324a; --focus-ring: #f4f4f6; --focus-gap: #1b1b1e; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #3b3b40; --sticker-face-1: #36363b; --sticker-face-2: #2f2f34; --sticker-face-3: #2a2a2e; --sticker-ink: #f4f4f6; --sticker-flap-1: #24242a; --sticker-flap-2: #46464d; --sticker-flap-3: #55555c; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }
:root[data-ss-theme="lemon"] { --page: #fff4bf; --ink: #141414; --muted: #4a4430; --surface: #fdfdfc; --surface-bar: #fdfdfc; --surface-sunken: #fff9dc; --selected: #141414; --on-selected: #fdfdfc; --inverse: #141414; --on-inverse: #fdfdfc; --accent: #ff4fa3; --on-accent: #141414; --accent-icon: #c2185b; --error: #a3221a; --line-strong: #141414; --line: #141414; --field-line: #918d7e; --line-subtle: #ecd36a; --tag: #ffe3f0; --focus-ring: #141414; --focus-gap: #fff4bf; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #fdfdfc; --sticker-face-1: #fdfdfc; --sticker-face-2: #f5f5f2; --sticker-face-3: #efefeb; --sticker-ink: #1a1a1a; --sticker-flap-1: #d9d9d3; --sticker-flap-2: #f4f4f0; --sticker-flap-3: #fdfdfc; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }
:root[data-ss-theme="lemon-dark"] { --page: #16150e; --ink: #fff7d6; --muted: #cfc6a0; --surface: #26241a; --surface-bar: #1e1d14; --surface-sunken: #2b291e; --selected: #ffe66b; --on-selected: #141414; --inverse: #fff7d6; --on-inverse: #141414; --accent: #ff4fa3; --on-accent: #141414; --accent-icon: #ff4fa3; --error: #ff9e94; --line-strong: #ffe66b; --line: #747055; --field-line: #777360; --line-subtle: #545037; --tag: #5c2f3c; --focus-ring: #fff7d6; --focus-gap: #16150e; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #3d3a2a; --sticker-face-1: #383526; --sticker-face-2: #323022; --sticker-face-3: #2c2a1e; --sticker-ink: #f4f4f6; --sticker-flap-1: #24221a; --sticker-flap-2: #46432f; --sticker-flap-3: #56523a; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }
:root[data-ss-theme="bubblegum"] { --page: #fdf1f6; --ink: #141414; --muted: #4d4448; --surface: #fdfdfc; --surface-bar: #fdfdfc; --surface-sunken: #fdf1f6; --selected: #141414; --on-selected: #fdfdfc; --inverse: #141414; --on-inverse: #fdfdfc; --accent: #ff4fa3; --on-accent: #141414; --accent-icon: #c2185b; --error: #a3221a; --line-strong: #141414; --line: #141414; --field-line: #8f898c; --line-subtle: #f2b8d4; --tag: #ffe3f0; --focus-ring: #141414; --focus-gap: #fdf1f6; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #fdfdfc; --sticker-face-1: #fdfdfc; --sticker-face-2: #f5f5f2; --sticker-face-3: #efefeb; --sticker-ink: #1a1a1a; --sticker-flap-1: #d9d9d3; --sticker-flap-2: #f4f4f0; --sticker-flap-3: #fdfdfc; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }
:root[data-ss-theme="bubblegum-dark"] { --page: #171215; --ink: #fbeef4; --muted: #c9b3bd; --surface: #261d22; --surface-bar: #1f181c; --surface-sunken: #2d2328; --selected: #ff4fa3; --on-selected: #141414; --inverse: #fbeef4; --on-inverse: #141414; --accent: #ff4fa3; --on-accent: #141414; --accent-icon: #ff4fa3; --error: #ff9e94; --line-strong: #ff4fa3; --line: #78666f; --field-line: #796e73; --line-subtle: #57444e; --tag: #5c2a42; --focus-ring: #fbeef4; --focus-gap: #171215; --swatch-offwhite: #f8f8f6; --swatch-lemon: #fff4bf; --swatch-bubblegum: #fdd3e7; --swatch-line: rgba(22,22,22,0.18); --sticker-rim: #3f3239; --sticker-face-1: #3a2e34; --sticker-face-2: #33282e; --sticker-face-3: #2d2328; --sticker-ink: #f4f4f6; --sticker-flap-1: #271f23; --sticker-flap-2: #4a3b42; --sticker-flap-3: #5a4951; --sticker-copied: var(--accent); --sticker-copied-ink: #1a1a1a; --sticker-backing: rgba(22,22,22,0.10); }

/* design-system/bundle.css, the base. Adapted only as noted in build.py: data-theme renamed to data-ss-theme, preview scaffolding removed. */
/* So Symbol component styles. Reads only tokens.css custom properties. Prefix: ss- */
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.45; }
* { box-sizing: border-box; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:root { --ss-ring: 0 0 0 var(--focus-gap-width) var(--focus-gap), 0 0 0 calc(var(--focus-gap-width) + var(--focus-ring-width)) var(--focus-ring); }
:focus { outline: none; }
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ss-ring); }
.ss-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ss-ic { width: 20px; height: 20px; flex-shrink: 0; }


/* ---------- icon button ---------- */
.ss-ibtn { width: 44px; height: 44px; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.ss-ibtn--sm { width: 36px; height: 36px; }
.ss-ibtn--lg { width: 48px; height: 48px; }
.ss-ibtn--filled { background: var(--accent); color: var(--on-accent); }
.ss-ibtn--outline { border: 2px solid var(--ink); }
.ss-ibtn--surface { background: var(--surface); }
.ss-ibtn--ghost:hover { background: var(--surface-sunken); }
.ss-ibtn--filled:hover { filter: brightness(1.05); }
.ss-ibtn--outline:hover { background: var(--surface-sunken); }
.ss-ibtn--square { border-radius: var(--radius-small); width: 40px; height: 40px; }
.ss-ibtn--square[aria-pressed="true"] { background: var(--surface-sunken); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.ss-ibtn--square[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 1.5px var(--field-line), var(--ss-ring); }

/* ---------- groups: nav tabs, segmented, size, mode ---------- */
.ss-group { display: inline-flex; gap: 2px; background: var(--surface); padding: var(--space-1); border-radius: var(--radius-pill); align-items: center; }
.ss-group > button:not(.ss-swatch), .ss-group > a { border: 0; background: transparent; color: var(--ink); border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ss-group > button[aria-pressed="true"]:not(.ss-swatch), .ss-group > [aria-current="page"] { background: var(--selected); color: var(--on-selected); font-weight: 600; }
.ss-group > button:not([aria-pressed="true"]):not(.ss-swatch):hover, .ss-group > a:not([aria-current="page"]):hover { background: var(--surface-sunken); }
.ss-tabs { gap: 6px; padding: 5px; }
.ss-tabs > a { font-size: 15px; padding: 9px 18px; white-space: nowrap; }
.ss-seg > button { padding: 7px 14px; }
.ss-size > button, .ss-mode > button { width: 34px; height: 34px; padding: 0; font-weight: 700; }
.ss-size > button:nth-child(1) { font-size: 12px; }
.ss-size > button:nth-child(2) { font-size: 15px; }
.ss-size > button:nth-child(3) { font-size: 19px; }
.ss-size > button[aria-pressed="true"] { font-weight: 700; }
/* phone */
.ss-phone .ss-tabs, .ss-tabs--full { display: flex; width: 100%; gap: 4px; padding: var(--space-1); }
.ss-phone .ss-tabs > a, .ss-tabs--full > a { flex: 1; padding: 11px 8px; min-height: var(--tap-min); min-width: 0; }
.ss-phone .ss-seg { display: flex; width: 100%; }
.ss-phone .ss-seg > button { flex: 1; min-height: var(--tap-min); }
.ss-phone .ss-size > button { width: var(--tap-min); height: var(--tap-min); }

/* ---------- theme picker ---------- */
.ss-picker { gap: 8px; padding: 6px 10px; }
.ss-picker__label { font-size: 13px; font-weight: 500; color: var(--muted); padding-right: 2px; }
.ss-swatch { width: 30px; height: 30px; border-radius: var(--radius-pill); padding: 0; border: 1.5px solid var(--swatch-line); flex-shrink: 0; }
.ss-swatch--offwhite { background: var(--swatch-offwhite); }
.ss-swatch--lemon { background: var(--swatch-lemon); }
.ss-swatch--bubblegum { background: var(--swatch-bubblegum); }
.ss-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.ss-swatch:focus-visible { box-shadow: none; outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 4px; }
.ss-swatch[aria-pressed="true"]:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); outline-offset: 6px; }
.ss-picker-btn { width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-pill); border: 0; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ss-picker-btn .ss-swatch { width: 22px; height: 22px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); pointer-events: none; }
.ss-menu { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-row); box-shadow: var(--shadow-float); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 200px; z-index: var(--z-popover); }
.ss-menu > button { display: flex; align-items: center; gap: 12px; min-height: var(--tap-min); padding: 0 12px; border: 0; background: transparent; border-radius: 12px; font-size: 15px; text-align: left; }
.ss-menu > button:hover { background: var(--surface-sunken); }
.ss-menu > button .ss-swatch { width: 24px; height: 24px; pointer-events: none; }
.ss-menu > button[aria-pressed="true"] { font-weight: 600; }
.ss-menu > button[aria-pressed="true"] .ss-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

/* ---------- header ---------- */
.ss-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: var(--space-5) var(--space-12); }
.ss-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.ss-brand__mark { width: 36px; height: 36px; border-radius: 11px; border: 2px dashed var(--line); flex-shrink: 0; }
.ss-header__tools { display: flex; align-items: center; gap: 14px; }
.ss-logo { display: block; height: 27px; width: auto; }
.ss-phone .ss-logo { height: 23px; }
.ss-logo--dark { display: none; }
[data-ss-theme$="-dark"] .ss-logo--light { display: none; }
[data-ss-theme$="-dark"] .ss-logo--dark { display: block; }
.ss-brand { border-radius: 8px; }
.ss-phone .ss-header { padding: 12px 16px 8px; }
.ss-phone .ss-brand { font-size: 19px; gap: 8px; }
.ss-phone .ss-brand__mark { width: 30px; height: 30px; border-radius: 9px; }
.ss-phone .ss-header__tools { gap: 6px; }
.ss-phone-nav { padding: 4px 16px 0; }

/* ---------- search and text fields ---------- */
.ss-field { position: relative; width: 100%; }
.ss-field__input { width: 100%; font-size: 18px; line-height: 1.4; padding: 14px 56px 14px 22px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); }
.ss-field__input::-webkit-search-cancel-button { display: none; }
textarea.ss-field__input { border-radius: var(--radius-field); resize: none; display: block; }
.ss-field__clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.ss-field--text .ss-field__clear { top: 12px; transform: none; }
.ss-field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ss-phone .ss-field__input { font-size: 17px; padding: 13px 52px 13px 18px; }
.ss-phone textarea.ss-field__input { border-radius: 20px; padding: 12px 50px 12px 16px; }
.ss-phone .ss-field__clear { right: 4px; width: var(--tap-min); height: var(--tap-min); }
.ss-phone .ss-field--text .ss-field__clear { top: 4px; }

/* ---------- filter chip ---------- */
.ss-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ss-chip { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-pill); border: 2px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.ss-chip:hover { background: var(--surface-sunken); }
.ss-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.ss-phone .ss-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 40px; margin-right: -16px; -webkit-mask-image: linear-gradient(90deg, #161616 calc(100% - 48px), rgba(22,22,22,0)); mask-image: linear-gradient(90deg, #161616 calc(100% - 48px), rgba(22,22,22,0)); }
.ss-phone .ss-chip { min-height: var(--tap-min); flex-shrink: 0; }

/* ---------- results count, empty state ---------- */
.ss-count { margin: 0; font-size: 14px; color: var(--muted); }
.ss-count b { color: var(--ink); font-weight: 600; }
.ss-empty { padding: var(--space-10) var(--space-4); text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ss-empty p { margin: 0; max-width: 40ch; }
.ss-empty b { color: var(--ink); }
.ss-empty .ss-chip { min-height: var(--tap-min); }

/* ---------- stickers: shared ---------- */
.ss-sticker { position: relative; display: block; padding: 0; border: 0; background: transparent; color: var(--sticker-ink); text-align: left; transition: transform var(--duration-quick) var(--easing-out); }
.ss-sticker__body { position: absolute; inset: 0; display: block; }
.ss-sticker__rim { display: block; position: absolute; inset: 0; padding: var(--sticker-rim-width); background: var(--sticker-rim); box-shadow: var(--shadow-sticker-resting); transition: box-shadow var(--duration-quick) var(--easing-out); }
.ss-sticker__face { display: flex; height: 100%; background: linear-gradient(160deg, var(--sticker-face-1) 0%, var(--sticker-face-2) 55%, var(--sticker-face-3) 100%); }
.ss-sticker__backing, .ss-sticker__flap { display: none; }
.ss-sticker:hover, .ss-sticker.is-lifted, .ss-sticker:focus-visible { transform: translateY(-3px); }
.ss-sticker:hover .ss-sticker__rim, .ss-sticker.is-lifted .ss-sticker__rim, .ss-sticker:focus-visible .ss-sticker__rim { box-shadow: var(--shadow-sticker-lifted); }
.ss-sticker:focus-visible, .ss-sticker.is-focus { box-shadow: var(--ss-ring); }
.ss-sticker.is-focus { transform: translateY(-3px); }
.ss-sticker.is-focus .ss-sticker__rim { box-shadow: var(--shadow-sticker-lifted); }
/* copied: peeling corner */
.ss-sticker.is-copied { transform: rotate(-3deg) translateY(-4px); animation: ss-peel var(--duration-base) var(--easing-out); }
.ss-sticker.is-copied .ss-sticker__backing { display: block; position: absolute; inset: 0; background: var(--sticker-backing); }
.ss-sticker.is-copied .ss-sticker__body { filter: drop-shadow(0 8px 10px rgba(22,22,22,0.18)); }
.ss-sticker.is-copied .ss-sticker__rim { box-shadow: none; clip-path: var(--ss-clip); }
.ss-sticker.is-copied .ss-sticker__face { background: var(--sticker-copied); color: var(--sticker-copied-ink); }
.ss-sticker.is-copied .ss-sticker__flap { display: block; position: absolute; top: 0; filter: drop-shadow(-2px 3px 2px rgba(22,22,22,0.25)); animation: ss-flap var(--duration-base) var(--easing-out); transform-origin: 0 100%; }
.ss-sticker__flap > span { display: block; width: 100%; height: 100%; clip-path: polygon(0 0, 100% 100%, 0 100%); background: linear-gradient(45deg, var(--sticker-flap-1) 0%, var(--sticker-flap-2) 70%, var(--sticker-flap-3) 100%); }
@keyframes ss-peel { from { transform: none; } to { transform: rotate(-3deg) translateY(-4px); } }
@keyframes ss-flap { from { transform: scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- symbol tile ---------- */
.ss-tile { width: 76px; height: var(--tile-height); border-radius: var(--radius-tile); --ss-clip: polygon(0 0, calc(60% - 1.5px) 0, 100% calc(40% + 1.5px), 100% 100%, 0 100%); }
.ss-tile .ss-sticker__rim, .ss-tile .ss-sticker__backing { border-radius: var(--radius-tile); }
.ss-tile .ss-sticker__face { border-radius: var(--radius-tile-inner); align-items: center; justify-content: center; font-family: var(--font-symbol); font-size: 30px; line-height: 1; }
.ss-tile.is-emoji .ss-sticker__face { font-family: var(--font-emoji); }
.ss-tile .ss-sticker__flap { left: 60%; width: 40%; height: 40%; }
.ss-tile__cp { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); white-space: nowrap; background: var(--inverse); color: var(--on-inverse); font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1.3; padding: 4px 8px; border-radius: var(--radius-tooltip); opacity: 0; pointer-events: none; transition: opacity var(--duration-quick); }
.ss-tile:hover .ss-tile__cp, .ss-tile:focus-visible .ss-tile__cp, .ss-tile.is-lifted .ss-tile__cp, .ss-tile.is-focus .ss-tile__cp { opacity: 1; }
.ss-tile.is-copied .ss-tile__cp { opacity: 0; }
/* Square tiles: display size sets a minimum tile size; the grid fits as many columns as the width allows. */
.ss-grid { --tile-min: var(--tile-height); display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr)); gap: var(--space-3); padding-top: 40px; }
.ss-grid .ss-sticker.ss-tile, .ss-recent__row .ss-sticker.ss-tile { height: auto; aspect-ratio: 1; }
.ss-grid .ss-tile { width: auto; }
.ss-phone .ss-grid { --tile-min: var(--tile-height-phone); gap: var(--space-2); }
.ss-phone .ss-tile, .ss-tile--phone { height: var(--tile-height-phone); border-radius: var(--radius-tile-phone); --sticker-rim-width: var(--sticker-rim-width-phone); }
.ss-phone .ss-tile .ss-sticker__rim, .ss-phone .ss-tile .ss-sticker__backing, .ss-tile--phone .ss-sticker__rim, .ss-tile--phone .ss-sticker__backing { border-radius: var(--radius-tile-phone); }
.ss-phone .ss-tile .ss-sticker__face, .ss-tile--phone .ss-sticker__face { border-radius: var(--radius-tile-inner-phone); font-size: 24px; }
.ss-tile--phone { width: 56px; }
/* display size S and L (M is the default) */
.ss-size-s .ss-grid, .ss-size-s .ss-recent__row { --tile-min: var(--tile-min-s); } .ss-size-s .ss-tile { height: 56px; } .ss-size-s .ss-tile .ss-sticker__face { font-size: 22px; }
.ss-size-l .ss-grid, .ss-size-l .ss-recent__row { --tile-min: var(--tile-min-l); } .ss-size-l .ss-tile { height: 92px; } .ss-size-l .ss-tile .ss-sticker__face { font-size: 40px; }

/* ---------- fancy text row ---------- */
.ss-row { width: 100%; min-height: 70px; border-radius: var(--radius-row); --ss-clip: polygon(0 0, calc(100% - var(--flap-row) - 1.5px) 0, 100% calc(var(--flap-row) + 1.5px), 100% 100%, 0 100%); }
.ss-row .ss-sticker__body { position: relative; }
.ss-row .ss-sticker__rim { position: relative; border-radius: var(--radius-row); }
.ss-row .ss-sticker__backing { border-radius: var(--radius-row); }
.ss-row .ss-sticker__face { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 12px 16px; border-radius: var(--radius-row-inner); }
.ss-row__name { font-size: 14px; color: var(--muted); }
.ss-row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ss-row__out { font-family: var(--font-symbol); font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.ss-row__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ss-row__copy { color: var(--accent-icon); }
.ss-row .ss-sticker__flap { right: 0; width: var(--flap-row); height: var(--flap-row); }
.ss-row.is-copied .ss-row__name { color: var(--sticker-copied-ink); }
.ss-row.is-copied .ss-row__tags, .ss-row.is-copied .ss-row__copy { visibility: hidden; }
.ss-row.is-copied { transform: rotate(-0.6deg) translateY(-2px); }
@keyframes ss-peel-row { from { transform: none; } to { transform: rotate(-0.6deg) translateY(-2px); } }
.ss-row.is-copied { animation-name: ss-peel-row; }
.ss-phone .ss-row { border-radius: 16px; --flap-row: 38px; }
.ss-phone .ss-row .ss-sticker__rim, .ss-phone .ss-row .ss-sticker__backing { border-radius: 16px; }
.ss-phone .ss-row .ss-sticker__rim { padding: 3px; }
.ss-phone .ss-row .ss-sticker__face { grid-template-columns: minmax(0, 1fr) 24px; gap: 10px; padding: 10px 12px; border-radius: 13px; }
.ss-phone .ss-row__name { font-size: 12px; }
.ss-phone .ss-row__out { font-size: 20px; }
.ss-phone .ss-row__main { gap: 4px; }
.ss-rows { display: flex; flex-direction: column; gap: 10px; }
.ss-phone .ss-rows { gap: 8px; }

/* ---------- caveat tag ---------- */
.ss-tag { display: inline-block; font-size: 12px; line-height: 1.35; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--tag); color: var(--ink); }

/* ---------- toggletip ---------- */
.ss-tt { position: relative; display: inline-block; }
.ss-tt__btn { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 6px; font-size: 14px; color: var(--muted); border-radius: 8px; min-height: 32px; }
.ss-tt__btn .ss-ic { width: 16px; height: 16px; }
.ss-tt__btn:hover, .ss-tt__btn[aria-expanded="true"] { color: var(--ink); }
.ss-tt__btn[aria-expanded="true"] span { text-decoration: underline; text-underline-offset: 3px; }
.ss-tt__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: var(--z-popover); width: min(440px, calc(100vw - 32px)); padding: 16px 18px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-row); box-shadow: var(--shadow-float); font-size: 14px; line-height: 1.5; animation: ss-fade var(--duration-quick) var(--easing-out); }
.ss-tt__panel[hidden] { display: none; }
.ss-tt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ss-tt__title { margin: 6px 0 0; font-family: var(--font-brand); font-weight: 700; font-size: 15px; }
.ss-tt__head .ss-ibtn { margin: -4px -8px 0 0; }
.ss-tt__panel ul { margin: 8px 0; padding-left: 20px; }
.ss-tt__panel p { margin: 6px 0 0; }
.ss-phone .ss-tt__btn { min-height: var(--tap-min); padding: 10px 2px; }
@keyframes ss-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- toast ---------- */
.ss-toast { display: inline-flex; align-items: center; gap: 10px; background: var(--inverse); color: var(--on-inverse); padding: 8px 10px 8px 12px; border-radius: var(--radius-pill); font-size: 15px; box-shadow: var(--shadow-float); white-space: nowrap; z-index: var(--z-toast); animation: ss-toast-in var(--duration-base) var(--easing-out); }
.ss-toast__badge { display: inline-flex; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; flex-shrink: 0; }
.ss-toast__badge .ss-ic { width: 16px; height: 16px; }
.ss-toast__cp { font-family: var(--font-mono); font-weight: 500; font-size: 12px; opacity: 0.8; }
.ss-toast__undo { background: none; border: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; padding: 0 8px; border-radius: var(--radius-pill); }
.ss-toast__undo:focus-visible { box-shadow: 0 0 0 2px var(--inverse), 0 0 0 5px var(--on-inverse); }
.ss-phone .ss-toast { font-size: 14px; gap: 8px; }
.ss-phone .ss-toast__undo { min-height: var(--tap-min); }
.ss-toast.is-leaving { animation: ss-toast-out var(--duration-quick) var(--easing-in) forwards; }
@keyframes ss-toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ss-toast-out { to { opacity: 0; transform: translateY(20px); } }

/* ---------- draft bar ---------- */
.ss-draft { display: flex; align-items: flex-end; gap: 12px; background: var(--surface-bar); border: 0; border-top: 1.5px solid var(--field-line); border-radius: 0; box-shadow: var(--shadow-bar); padding: 14px 48px 16px; color: var(--ink); z-index: var(--z-draft); }
.ss-draft__label { font-family: var(--font-brand); font-weight: 700; font-size: 15px; white-space: nowrap; align-self: center; }
.ss-draft__field { flex: 1; min-width: 0; font-size: 20px; line-height: 1.4; border: 1.5px solid var(--field-line); background: var(--surface-sunken); border-radius: var(--radius-inner); padding: 9px 14px; color: var(--ink); resize: none; display: block; min-height: 48px; max-height: calc(5 * 1.4em + 20px); overflow-y: auto; field-sizing: content; }
.ss-draft__btns { display: flex; gap: 12px; align-items: center; }
.ss-draft__pos { display: flex; gap: 2px; padding-left: 8px; border-left: 1.5px solid var(--line-subtle); }
.ss-draft__note { font-size: 14px; color: var(--muted); margin: 0; }
.ss-draft--side { flex-direction: column; align-items: stretch; width: var(--draft-side-width); border: 0; border-left: 1.5px solid var(--field-line); border-radius: 0; box-shadow: -10px 0 24px rgba(22,22,22,0.10); padding: 20px 16px; gap: 14px; }
.ss-draft--side .ss-draft__label { align-self: flex-start; }
.ss-draft--side .ss-draft__field { flex: none; }
.ss-draft--side .ss-draft__btns { justify-content: space-between; }
.ss-phone .ss-draft, .ss-draft--phone { border: 0; border-top: 1.5px solid var(--field-line); border-radius: 0; padding: 12px 16px 22px; gap: 8px; }
.ss-phone .ss-draft__field, .ss-draft--phone .ss-draft__field { font-size: 18px; min-height: var(--tap-min); padding: 9px 12px; }
.ss-phone .ss-draft__btns, .ss-draft--phone .ss-draft__btns { gap: 8px; }
.ss-draft--phone .ss-draft__label, .ss-draft--phone .ss-draft__pos { display: none; }
@media (max-width: 1099px) { .ss-draft__pos.ss-wide-only { display: none; } }

/* ---------- recently copied ---------- */
.ss-recent { display: flex; flex-direction: column; gap: 10px; }
.ss-recent__head { display: flex; align-items: center; gap: 8px; }
.ss-recent__title { margin: 0; font-size: 14px; font-weight: 600; }
.ss-recent__clear { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: var(--radius-tooltip); }
@media (pointer: coarse) { .ss-recent__clear { min-height: var(--tap-min); padding-inline: 8px; } }
.ss-recent__row { display: flex; gap: var(--space-3); overflow-x: auto; padding: 36px 4px 10px; scrollbar-width: thin; }
.ss-recent__row { --tile-min: var(--tile-height); }
.ss-recent__row .ss-tile { flex-shrink: 0; width: var(--tile-min); }
.ss-phone .ss-recent__row { --tile-min: var(--tile-height-phone); }
.ss-phone .ss-size-s .ss-grid, .ss-phone .ss-size-s .ss-recent__row { --tile-min: var(--tile-min-phone-s); } .ss-phone .ss-size-s .ss-tile .ss-sticker__face { font-size: 18px; }
.ss-phone .ss-size-l .ss-grid, .ss-phone .ss-size-l .ss-recent__row { --tile-min: var(--tile-min-phone-l); } .ss-phone .ss-size-l .ss-tile .ss-sticker__face { font-size: 30px; }
.ss-phone .ss-recent__row { gap: var(--space-2); margin-right: -16px; padding-right: 16px; }

/* ---------- footer ---------- */
.ss-footer { padding: var(--space-6) var(--space-12); border-top: 1.5px dashed var(--line-subtle); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.ss-footer p { margin: 0; }
.ss-footer a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.ss-footer small { font-size: 12px; }
.ss-phone .ss-footer { padding: var(--space-6) var(--space-4); }

/* ---------- tablet (600 to 1023px): apply .ss-tablet to the page wrapper ---------- */
.ss-tablet .ss-header { flex-wrap: wrap; padding: var(--space-5) var(--space-8); row-gap: var(--space-3); }
.ss-tablet .ss-header > nav { order: 3; }
.ss-tablet .ss-header__break { order: 2; flex-basis: 100%; height: 0; }

.ss-tablet .ss-main { padding: 0 var(--space-8); }
.ss-tablet .ss-draft { padding-left: var(--space-8); padding-right: var(--space-8); }
.ss-tablet .ss-footer { padding: var(--space-6) var(--space-8); }
.ss-header__break { display: none; }
.ss-tablet .ss-header__break { display: block; }
.ss-main { padding: 0 var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); }
.ss-toolbar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.ss-toolbar .ss-chips { flex: 1; min-width: 0; }

/* ---------- touch screens: every control 44px, whatever the width ---------- */
@media (pointer: coarse) {
  .ss-ibtn--sm, .ss-ibtn--square { width: var(--tap-min); height: var(--tap-min); }
  .ss-size > button, .ss-mode > button { width: var(--tap-min); height: var(--tap-min); }
  .ss-seg > button, .ss-tabs > a, .ss-chip, .ss-tt__btn, .ss-toast__undo { min-height: var(--tap-min); }
  .ss-picker { gap: 14px; }
  .ss-swatch { position: relative; }
  .ss-swatch::after { content: ""; position: absolute; inset: -8px; border-radius: var(--radius-pill); }
}
.ss-touch .ss-ibtn--sm, .ss-touch .ss-ibtn--square, .ss-touch .ss-size > button, .ss-touch .ss-mode > button { width: var(--tap-min); height: var(--tap-min); }
.ss-touch .ss-seg > button, .ss-touch .ss-tabs > a, .ss-touch .ss-chip, .ss-touch .ss-tt__btn { min-height: var(--tap-min); }
.ss-touch .ss-picker { gap: 14px; }
/* no hover lift where there is no hover; focus and the toast still show the code point */
@media (hover: none) {
  .ss-sticker:hover:not(:focus-visible) { transform: none; }
  .ss-sticker:hover:not(:focus-visible) .ss-sticker__rim { box-shadow: var(--shadow-sticker-resting); }
  .ss-tile:hover:not(:focus-visible) .ss-tile__cp { opacity: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ss-sticker, .ss-sticker__rim, .ss-tile__cp { transition: none; }
  .ss-sticker:hover, .ss-sticker.is-lifted, .ss-sticker:focus-visible, .ss-sticker.is-focus { transform: none; }
  .ss-sticker.is-copied, .ss-row.is-copied { animation: none; transform: none; }
  .ss-sticker.is-copied .ss-sticker__flap { animation: none; }
  .ss-tt__panel { animation: ss-fade-only var(--duration-quick) linear; }
  .ss-toast { animation: ss-fade-only var(--duration-quick) linear; }
  .ss-toast.is-leaving { animation: ss-fade-out-only var(--duration-quick) linear forwards; }
}
@keyframes ss-fade-only { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-fade-out-only { to { opacity: 0; } }

/* ---------- category section: heading with count, then a symbol grid ---------- */
.ss-section { overflow-x: clip; overflow-clip-margin: var(--space-12); }
.ss-section__title { margin: 0 0 14px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); display: flex; gap: 8px; }
.ss-section__count { color: var(--muted); font-weight: 500; }
.ss-section .ss-grid { padding-top: 0; }

/* ---------- placeholder text in fields ---------- */
.ss-field__input::placeholder, .ss-draft__field::placeholder { color: var(--muted); opacity: 1; }

/* ---------- content width: header, main and footer stop at content-max and center ---------- */
.ss-header, .ss-main, .ss-footer { max-width: var(--content-max); margin-inline: auto; box-sizing: border-box; }

/* ---------- draft bar shadow in dark themes ---------- */
[data-ss-theme$="-dark"] .ss-draft { box-shadow: 0 -10px 24px rgba(22,22,22,0.45); }
[data-ss-theme$="-dark"] .ss-draft--side { box-shadow: -10px 0 24px rgba(22,22,22,0.45); }

/* ---------- space between header and content: desktop only ---------- */
.ss-main { padding-top: var(--header-gap); }
.ss-tablet .ss-main, .ss-phone .ss-main { padding-top: 8px; }

/* ---------- cut line: reserved style, not used yet ---------- */
/* A 2px dashed rule in `line` (ink on light, 3:1 grey on dark), like the cut line on a sticker sheet.
   Tried on the draft bar 2026-11-19 and set aside because nothing else on the site uses it. Keep for a future feature. */
.ss-cut-line { border: 0; border-top: 2px dashed var(--line); }

/* ---------- button: text button with a Tabler icon (2026-11-19) ---------- */
.ss-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px 0 20px; border-radius: var(--radius-pill); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.ss-btn .ss-ic { width: 18px; height: 18px; }
.ss-btn--primary { background: var(--accent); color: var(--on-accent); border: 0; }
.ss-btn--secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

/* ---------- form inputs: pill input, text area, select, error (2026-11-19) ---------- */
.ss-form { display: flex; flex-direction: column; gap: 18px; }
.ss-form__row { display: flex; flex-direction: column; gap: 8px; }
.ss-form__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.ss-form__label span { font-weight: 400; color: var(--muted); }
.ss-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 18px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; }
textarea.ss-input { min-height: 120px; border-radius: 20px; resize: vertical; line-height: 1.45; }
.ss-select { position: relative; display: block; }
.ss-select .ss-input { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.ss-select .ss-ic { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink); width: 18px; height: 18px; }
.ss-input[aria-invalid="true"] { border-color: var(--error); }
.ss-form__error { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--error); margin: 0; }
.ss-form__error .ss-ic { width: 16px; height: 16px; flex-shrink: 0; }
/* hint between label and field; send failure shown above the actions (2026-11-19) */
.ss-form__hint { margin: -2px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ss-form__send-error:empty { display: none; }
.ss-form__send-error .ss-form__error { align-items: flex-start; line-height: 1.4; }
.ss-form__send-error .ss-form__error .ss-ic { margin-top: 2px; }

/* ---------- dialog: contact form popup (2026-11-19) ---------- */
.ss-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-sizing: border-box; padding: 32px; border: 0; border-radius: var(--radius-field); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); overflow-y: auto; }
.ss-dialog::backdrop { background: rgba(22, 22, 22, 0.40); }
[data-ss-theme$="-dark"] .ss-dialog::backdrop, [data-ss-theme$="-dark"] .ss-dialog::backdrop { background: rgba(22, 22, 22, 0.60); }
.ss-dialog__inner { display: flex; flex-direction: column; gap: 24px; }
.ss-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ss-dialog__title { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.ss-dialog__intro { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.ss-dialog__close { margin: -8px -10px 0 0; flex-shrink: 0; }
.ss-dialog__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ss-dialog__note { font-size: 12px; color: var(--muted); }
.ss-dialog__sent { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ss-dialog__badge { width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; }
.ss-dialog__sent-title { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 22px; }
.ss-dialog__sent p { margin: 0; }
.ss-phone .ss-dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: no-preference) { .ss-dialog[open] { animation: ss-fade var(--duration-quick) var(--easing-out); } }

/* ---------- example sticker: a copyable example line on the Inspo page (2026-11-19) ---------- */
.ss-example { display: block; width: 100%; padding: var(--sticker-rim-width); border: 0; border-radius: var(--radius-row); background: var(--sticker-rim); box-shadow: var(--shadow-sticker-resting); text-align: left; font: inherit; color: var(--sticker-ink); cursor: pointer; transition: transform var(--duration-quick) var(--easing-out), box-shadow var(--duration-quick) var(--easing-out); }
.ss-example__face { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius-row-inner); background: linear-gradient(160deg, var(--sticker-face-1) 0%, var(--sticker-face-2) 60%, var(--sticker-face-3) 100%); }
.ss-example__text { font-family: var(--font-symbol); font-size: 20px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.ss-example__copy { color: var(--accent-icon); display: inline-flex; }
@media (hover: hover) { .ss-example:hover { transform: translateY(-3px); box-shadow: var(--shadow-sticker-lifted); } }
.ss-example:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-sticker-lifted), 0 0 0 var(--focus-gap-width) var(--focus-gap), 0 0 0 calc(var(--focus-gap-width) + var(--focus-ring-width)) var(--focus-ring); outline: none; }
.ss-example.is-copied .ss-example__face { background: var(--sticker-copied); color: var(--sticker-copied-ink); }
.ss-example.is-copied .ss-example__copy { color: var(--sticker-copied-ink); }
@media (prefers-reduced-motion: reduce) { .ss-example, .ss-example:hover, .ss-example:focus-visible { transform: none; transition: none; } }

/* ---------- Inspo & FAQ page (2026-11-19) ---------- */
.ss-page-h2 { margin: 24px 0 0; font-family: var(--font-brand); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.ss-inspo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.ss-phone .ss-inspo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ss-usecase { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ss-usecase h3, .ss-faq h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ss-usecase p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ss-faq { display: flex; flex-direction: column; max-width: 760px; }
.ss-faq__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1.5px solid var(--line-subtle); }
.ss-faq__item > div { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 680px; }
.ss-faq__item ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ss-faq__item p { margin: 0; }
.ss-faq a, .ss-footer__links a, .ss-footer__links button { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- footer links (2026-11-19) ---------- */
.ss-footer__links { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
.ss-footer__links button { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (pointer: coarse) { .ss-footer__links a, .ss-footer__links button { display: inline-flex; align-items: center; min-height: var(--tap-min); } }


/* ================= Page layer =================
   Layout that puts the design system components together, plus the few
   adaptations the real site needs and the previews did not: safe-area insets,
   the sticky search bar, the fixed draft bar and the toolbar grid.

   Component styles belong in the design system, not here. Everything the
   prototype's page layer used to patch (peel seam, logo size, draft bar edge,
   content width, header gap, the tile size scale, the 2026-11-19 components)
   is in design-system/bundle.css v14 and has been removed from this file.
*/

[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Page gutter as a variable so the safe-area inset can be folded into it.
   Values follow the design system README's layout table (16 / 32 / 48). */
:root { --gutter: var(--space-12); --draft-space: 0px; --toast-bottom: 24px; }
:root.ss-tablet { --gutter: var(--space-8); }
:root.ss-phone { --gutter: var(--space-4); }

body { min-height: 100vh; padding-bottom: var(--draft-space); overflow-x: clip; }
/* paint the notch area with the page colour so the sticky bar does not show through */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--page); }
:root .ss-header, :root .ss-main, :root .ss-footer, :root .bar {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.ss-footer { width: 100%; }

/* ---------- header ---------- */
.ss-brand { padding: 4px 2px; margin: -4px -2px; }
.ss-phone .ss-header { flex-wrap: wrap; row-gap: var(--space-2); }
.ss-phone .ss-header > nav { order: 3; }
.ss-phone .ss-header__break { display: block; order: 2; flex-basis: 100%; height: 0; }
.ss-phone .only-big { display: none !important; }
:root:not(.ss-phone) .only-phone { display: none !important; }
.ss-mode .ss-ic { width: 18px; height: 18px; }
.theme-pop { position: relative; }
.theme-pop .ss-menu { position: absolute; right: 0; top: calc(100% + var(--space-2)); }

/* ---------- page heading and intro ---------- */
.ss-phone .ss-main { gap: var(--space-3); }
.page-h1 { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.ss-phone .page-h1 { font-size: 30px; line-height: 1.15; }
.sub { margin: -4px 0 0; color: var(--muted); max-width: 65ch; }

/* ---------- search, filters and count stay in reach while scrolling ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 7; background: var(--page); display: flex; flex-direction: column; gap: var(--space-3);
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-block: var(--space-2); }
.ss-phone .bar { gap: 10px; }

/* ---------- toolbar: toggletip, type, chips, display size ---------- */
.tools { display: grid; gap: var(--space-3); align-items: start; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tt tt tt" "seg chips size"; }
.t-tt { grid-area: tt; justify-self: start; margin-top: -4px; }
.t-seg { grid-area: seg; } .t-chips { grid-area: chips; min-width: 0; } .t-size { grid-area: size; justify-self: end; }
.ss-tablet .tools--sym { grid-template-areas: "tt tt tt" "seg . size" "chips chips chips"; }
.ss-phone .tools--sym { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tt size" "seg seg" "chips chips"; row-gap: 10px; }
.tools--fancy, .tools--cat { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tt tt" "chips size"; }
.ss-phone .tools--fancy, .ss-phone .tools--cat { grid-template-areas: "tt size" "chips chips"; row-gap: 10px; }
.ss-phone .t-tt { margin-top: 0; }
/* room for the focus ring inside the sideways-scrolling chip row on phones */
.ss-phone .ss-chips { padding-block: 6px; margin-block: -6px; padding-left: 6px; margin-left: -6px; }

/* ---------- symbol sections ---------- */
#out, #results { display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
/* The code point tooltip sits above the tile and can be wider than it. Give the
   section room so a hidden tooltip never widens the page; ss.js keeps visible ones on screen. */
.ss-section, .ss-recent { padding-inline: var(--space-3); margin-inline: calc(-1 * var(--space-3)); }
.ss-tile { touch-action: manipulation; }
.ss-recent__row { margin-top: -26px; }

/* ---------- fancy text ---------- */
/* preview size follows the display size control: S 18, M 22 (bundle), L 28; phones 16 / 20 / 25 */
.ss-size-s .ss-row__out { font-size: 18px; } .ss-size-l .ss-row__out { font-size: 28px; }
.ss-phone .ss-size-s .ss-row__out { font-size: 16px; } .ss-phone .ss-size-l .ss-row__out { font-size: 25px; }
.fancy-input { display: flex; flex-direction: column; }
.ss-phone .ss-field__label { margin-bottom: 6px; }
#styles { padding-top: 6px; }

/* ---------- toggletip extras ---------- */
.ss-tt__panel .placeholder { color: var(--muted); }
.ss-tt__panel a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- empty search ---------- */
.ss-empty b { font-weight: 600; }

/* ---------- category and hub pages ---------- */
/* Composed from the design system's chip, not a new control: the related
   categories are links, so they carry aria-current instead of aria-pressed. */
.ss-related { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 0; }
.ss-related a { text-decoration: none; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-pill); border: 2px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.ss-related a:hover { background: var(--surface-sunken); }
.ss-related a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
@media (pointer: coarse) { .ss-related a { min-height: var(--tap-min); } }
/* .ss-main is a flex column with its own gap, so the rows inside carry no margin */
.ss-back-row { margin: 0; }
.ss-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.ss-back .ss-ic { width: 16px; height: 16px; }
@media (pointer: coarse) { .ss-back { min-height: var(--tap-min); } }
.ss-related-head { margin: 28px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- footer ---------- */
.ss-footer { margin-top: 40px; }

/* ---------- draft bar: fixed at the bottom, flush and full width ---------- */
/* The bar spans the viewport; its content stays in the content-max column. */
.ss-draft { position: fixed; z-index: var(--z-draft); margin: 0; }
.ss-draft__note { display: none; }
:root .ss-draft:not(.ss-draft--side) { left: 0; right: 0; bottom: 0;
  padding-top: 14px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - var(--content-max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100% - var(--content-max)) / 2 + var(--gutter))); }
:root.ss-phone .ss-draft:not(.ss-draft--side) { padding-top: var(--space-3); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.ss-phone .ss-draft__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ss-phone .ss-draft .ss-ibtn--lg { width: var(--tap-min); height: var(--tap-min); }
.ss-draft.ss-draft--side { top: 0; bottom: 0; right: 0; left: auto; overflow-y: auto;
  padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.ss-draft--side .ss-draft__note { display: block; }
body.draft-side { padding-right: var(--draft-side-width); }
/* on phones the draft stays one line until it has focus, then grows to five */
:root.ss-phone .ss-draft__field:not(:focus) { height: var(--tap-min) !important; max-height: var(--tap-min); padding-top: 0; padding-bottom: 0; line-height: 41px; overflow: hidden; }

/* ---------- toast: centred above the draft bar, or beside the side panel ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: var(--toast-bottom); display: flex; justify-content: center; pointer-events: none; z-index: var(--z-toast); padding-inline: var(--space-4); }
body.draft-side .toast-wrap { right: var(--draft-side-width); }
.ss-toast { pointer-events: auto; max-width: 100%; }
.ss-toast__msg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
