/* Swoozh Icons. Brand: Swoozh Fashion UI Kit (ink #191a25 / #27293a, kit grey #f5f6f8, Playfair Display + Raleway).
   UI layer: shadcn/ui-style tokens and component anatomy (background, muted, border, ring, radius), restyled for Swoozh. */
:root {
  --background: #ffffff; --foreground: #191a25; --ink-2: #27293a;
  --surface: #f5f6f8; --surface-2: #eeeff2; --card: #ffffff;
  --muted-foreground: #757681; --subtle: #a3a4ad;
  --border: #ececef; --input: #e3e4e8; --ring: rgba(25, 26, 37, .14);
  --primary: #191a25; --primary-foreground: #ffffff; --primary-hover: #2c2e3f;
  --night: #0b0b0e; --night-card: #141418; --night-fg: #f4f4f2; --night-muted: #8e8e98;
  --red: #b81530;
  --sh-xs: 0 1px 2px rgba(16, 17, 26, .05);
  --sh-sm: 0 1px 2px rgba(16, 17, 26, .04), 0 2px 8px -2px rgba(16, 17, 26, .06);
  --sh-md: 0 1px 2px rgba(16, 17, 26, .03), 0 12px 32px -8px rgba(16, 17, 26, .10);
  --sh-lg: 0 2px 6px rgba(16, 17, 26, .03), 0 40px 80px -24px rgba(16, 17, 26, .22);
  --radius: 10px; --r-sm: 6px; --r-lg: 16px; --r-xl: 28px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Raleway, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* legacy names used by scripts/markup */
  --ink: var(--foreground); --muted: var(--muted-foreground); --panel: var(--card); --accent-soft: var(--surface); --line: var(--border);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: #0a0a0c; --foreground: #f4f4f2; --ink-2: #f4f4f2;
  --surface: #131317; --surface-2: #1a1a1f; --card: #151519;
  --muted-foreground: #8e8e98; --subtle: #5d5d68;
  --border: rgba(255, 255, 255, .07); --input: rgba(255, 255, 255, .1); --ring: rgba(255, 255, 255, .18);
  --primary: #f4f4f2; --primary-foreground: #0a0a0c; --primary-hover: #ffffff;
  --night: #000000; --night-card: #111114;
  --red: #ff5a52;
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .5); --sh-sm: 0 1px 2px rgba(0, 0, 0, .5); --sh-md: 0 12px 32px -8px rgba(0, 0, 0, .7); --sh-lg: 0 40px 80px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --background: #0a0a0c; --foreground: #f4f4f2; --ink-2: #f4f4f2;
  --surface: #131317; --surface-2: #1a1a1f; --card: #151519;
  --muted-foreground: #8e8e98; --subtle: #5d5d68;
  --border: rgba(255, 255, 255, .07); --input: rgba(255, 255, 255, .1); --ring: rgba(255, 255, 255, .18);
  --primary: #f4f4f2; --primary-foreground: #0a0a0c; --primary-hover: #ffffff;
  --night: #000000; --night-card: #111114;
  --red: #ff5a52;
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .5); --sh-sm: 0 1px 2px rgba(0, 0, 0, .5); --sh-md: 0 12px 32px -8px rgba(0, 0, 0, .7); --sh-lg: 0 40px 80px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
} }

* { box-sizing: border-box; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--background); color: var(--foreground); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--foreground); color: var(--background); }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 24px; }
.label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--foreground); }
.label b { font: 500 12px var(--mono); color: var(--muted-foreground); }

/* header ------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding: 0 32px;
  background: color-mix(in srgb, var(--background) 80%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 1px 0 var(--border); }
.brand { grid-column: 1; grid-row: 1; display: inline-flex; align-items: baseline; gap: 8px; color: var(--foreground); text-decoration: none; justify-self: start; }
.logotype { font: 700 26px/1 var(--serif); letter-spacing: -.02em; }
.brand .sub { font: 600 10px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted-foreground); }
.nav { grid-column: 2; grid-row: 1; display: flex; gap: 40px; justify-self: center; }
.nav a { color: var(--muted-foreground); font: 600 11.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--foreground); }
.top-r { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 6px; justify-self: end; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer; color: var(--foreground); transition: background .2s; }
.icon-btn:hover { background: var(--surface); }

/* buttons (shadcn variants: default, secondary, outline, ghost, link) -------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer;
  font: 600 14px/1 var(--sans); letter-spacing: .01em; color: var(--foreground); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--sh-xs); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.secondary { background: var(--surface); } .btn.secondary:hover { background: var(--surface-2); }
.btn.outline { background: var(--card); box-shadow: inset 0 0 0 1px var(--input), var(--sh-xs); } .btn.outline:hover { background: var(--surface); }
.btn.ghost:hover, .btn:not(.primary):not(.secondary):not(.outline):not(.light):hover { background: var(--surface); }
.btn.light { background: var(--night-fg); color: #0b0b0e; } .btn.light:hover { background: #fff; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.mono span:first-child { font: 500 13.5px var(--mono); }
.btn.mono [data-icon] { color: var(--muted-foreground); }
.btn.danger.on { color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn [data-icon="arrow-right"] { transition: transform .25s var(--ease); } .btn:hover [data-icon="arrow-right"] { transform: translateX(3px); }
.link { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
.copy { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted-foreground); cursor: pointer; transition: background .2s, color .2s; }
.copy:hover { background: var(--surface); color: var(--foreground); }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-md); }

/* landing (minimal) -------------------------------------------------------------------------------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--p) 100% no-repeat, var(--input); }
.slider::-moz-range-track { height: 4px; border-radius: 4px; background: var(--input); } .slider::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--primary); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--card); border: 2px solid var(--primary); box-shadow: var(--sh-sm); transition: box-shadow .2s; }
.slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--primary); }
.slider:focus-visible { box-shadow: none; } .slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ring); }
.m-hero { position: relative; height: var(--h, 780px); overflow-x: clip; }
.m-hero .play { position: absolute; inset: 0; }
.play-in { position: absolute; left: 0; top: 0; transform-origin: 50% 50%;
  transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--s, 1)) perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.play-in > * { position: absolute; }
.m-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; pointer-events: none; }
.m-copy .cta { pointer-events: auto; justify-content: center; }
.m-hero h1 { font-size: calc(112px * var(--s, 1)); line-height: .94; letter-spacing: -.045em; margin: 0 0 calc(28px * var(--s, 1)); }
.m-hero h1 em { display: block; }
.m-hero .lead { margin: 0 0 36px; max-width: min(430px, calc(470px * var(--s, 1))); color: var(--muted-foreground); font-size: 18px; line-height: 1.6; }
.m-hero .lead b { color: var(--foreground); font-weight: 600; }
.m-hero.mob { overflow: clip; }
.m-hero.mob h1 { font-size: clamp(52px, 15vw, 88px); margin-bottom: 20px; }
.m-hero.mob .lead { max-width: 330px; margin-bottom: 28px; font-size: 16.5px; }
.m-hero.mob .cta .mono { display: none; }
.pat { inset: 0; }
.fl { position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 22%; background: var(--card); color: var(--foreground); cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 17, 26, .04), 0 14px 30px -14px rgba(16, 17, 26, .2); transition: filter .4s var(--ease), opacity .4s var(--ease);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r, 0deg)) scale(var(--k, 1)); will-change: transform; }
.fl .ii { width: 42%; height: 42%; }
.fl.hot { filter: none !important; opacity: 1 !important; }
:root[data-theme="dark"] .fl { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 36px -18px #000; }
.pc { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 10px;
  box-shadow: 0 1px 2px rgba(16, 17, 26, .04), 0 18px 40px -16px rgba(16, 17, 26, .18); will-change: transform;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r, 0deg)) scale(var(--k, 1)); }
:root[data-theme="dark"] .pc { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 48px -20px #000; }
.pc button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.ii { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; } .ii svg { width: 100%; height: 100%; }
.c-toast { padding: 12px 18px; gap: 10px; border-radius: 12px; background: var(--primary); color: var(--primary-foreground); font-size: 13.5px; font-weight: 600;
  opacity: 0; scale: .9; translate: 0 10px; transition: opacity .35s var(--ease), scale .35s var(--ease), translate .35s var(--ease); }
.c-toast.show { opacity: 1; scale: 1; translate: 0 0; }
.c-atc { }
.ink-btn { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px 0 20px !important; border-radius: 10px; background: var(--primary) !important; color: var(--primary-foreground) !important;
  font-size: 15px !important; font-weight: 600 !important; transition: transform .2s var(--ease), background .2s; min-width: 196px; }
.ink-btn:hover { background: var(--primary-hover) !important; } .ink-btn:active { transform: scale(.97); }
.ink-btn .ii { transition: transform .35s var(--ease); } .ink-btn.done .ii { transform: rotate(-360deg); }
.c-prod { width: 220px; padding: 0; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; border-radius: 18px; }
.c-prod .ph { position: relative; aspect-ratio: 330 / 290; background: var(--surface); }
.c-prod img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c-prod .tag { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.fav { position: absolute !important; right: 12px; bottom: 12px; display: grid !important; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff !important; color: #191a25 !important;
  box-shadow: var(--sh-sm); transition: transform .25s var(--ease); }
.fav:hover { transform: scale(1.08); } .fav .ii { width: 18px; height: 18px; }
.fav.on { color: #b81530 !important; } .fav.pop .ii { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.c-prod .info { display: grid; gap: 2px; padding: 14px 16px 16px; }
.c-prod .info b { font-size: 14px; } .c-prod .info small { color: var(--muted-foreground); font-size: 12px; } .c-prod .info .price { font-weight: 700; font-size: 14px; margin-top: 6px; }
.c-rate { padding: 12px 16px; gap: 12px; }
.c-rate .stars { display: flex; gap: 2px; } .c-rate .stars button { display: grid; place-items: center; width: 24px; height: 24px; color: #e8a33d; transition: transform .2s var(--ease); }
.c-rate .stars button:hover { transform: scale(1.15); } .c-rate .ii { width: 22px; height: 22px; }
.c-rate b { font-size: 15px; min-width: 26px; }
.c-ship { padding: 14px 20px; gap: 12px; border-radius: 12px; background: var(--primary); color: var(--primary-foreground); font-size: 13.5px; font-weight: 600; cursor: default; }
.c-ship .ii { transition: transform .6s var(--ease); } .c-ship:hover .ii { transform: translateX(8px); }
.c-nav { gap: 2px; padding: 6px; }
.c-nav button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; transition: background .2s; } .c-nav button:hover { background: var(--surface); }
.c-nav .on { color: #b81530; }
.t2 { display: grid; line-height: 1.3; } .t2 b { font-size: 13.5px; font-weight: 700; } .t2 small { font-size: 11.5px; color: var(--muted-foreground); white-space: nowrap; } .t2 b { white-space: nowrap; }
.c-search { width: 290px; padding: 8px 8px 8px 16px; gap: 10px; border-radius: 14px; }
.c-search > .ii { color: var(--muted-foreground); } .c-search .q { font-size: 14px; font-weight: 500; white-space: nowrap; }
.c-search .caret { width: 1.5px; height: 18px; margin-left: -8px; background: var(--foreground); animation: blink 1s steps(1) infinite; margin-right: auto; }
@keyframes blink { 50% { opacity: 0; } }
.c-search button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface) !important; }
.c-search button .ii { width: 18px; height: 18px; }
.c-notif { padding: 10px 18px 10px 10px; gap: 12px; }
.c-notif .bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); }
.c-notif .bell .ii { width: 18px; height: 18px; } .c-notif .bell i { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #b81530; box-shadow: 0 0 0 2px var(--surface); }
.c-care { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px; }
.c-care .row { display: flex; gap: 12px; } .c-care .ii { width: 24px; height: 24px; color: var(--muted-foreground); transition: color .2s, transform .2s var(--ease); cursor: default; }
.c-care .ii.on { color: var(--foreground); transform: scale(1.15); } .c-care small { font-size: 12px; font-weight: 600; }
.c-promo { padding: 8px 8px 8px 16px; gap: 12px; } .c-promo b { letter-spacing: .08em; }
.c-promo button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface) !important; margin-left: 6px; }
.c-promo button .ii { width: 16px; height: 16px; } .c-promo button.on { color: #4c9912 !important; }
.c-track { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 18px; cursor: pointer; }
.c-track .steps { display: flex; align-items: center; gap: 8px; } .c-track .steps .ii { color: var(--subtle); transition: color .3s; } .c-track .steps .ii.on { color: var(--foreground); }
.c-track .steps i { width: 40px; height: 2px; border-radius: 2px; background: var(--input); transition: background .3s; } .c-track .steps i.on { background: var(--foreground); }
.c-track small { font-size: 12px; font-weight: 600; }
.badge { position: absolute; right: 5px; top: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #b81530; color: #fff; font: 700 10px/16px var(--sans); font-style: normal; text-align: center; }
.badge.bump { animation: pop .45s var(--ease); }

.m-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-facts > div { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 24px; background: var(--surface); }
.m-facts .dot { display: grid !important; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: var(--sh-xs); }
.m-facts p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.m-facts b { font-weight: 700; }
.m-facts small { display: block; color: var(--muted-foreground); font-size: 13px; font-weight: 500; }

.m-features { padding-top: 168px; }
.m-h { font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.035em; margin: 0 0 48px; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft { display: flex; flex-direction: column; min-height: 400px; padding: 36px; border-radius: 28px; background: var(--surface); color: var(--foreground); }
.ft .art { flex: 1; display: grid; place-items: center; min-height: 200px; margin-bottom: 28px; }
.ft h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.ft p { margin: 8px 0 0; color: var(--muted-foreground); font-size: 14.5px; }
.ft.ink { background: var(--foreground); color: var(--background); }
.ft.red { background: var(--red); color: #fff; }
.ft.ink p, .ft.red p { color: color-mix(in srgb, currentColor 62%, transparent); }
.art-cluster { grid-template-columns: repeat(3, auto); gap: 30px 40px !important; align-content: center; justify-content: center; }
.art-grid svg { width: 168px; height: 168px; overflow: visible; }
.art-grid .gl { stroke: currentColor; stroke-width: .04; opacity: .22; }
.art-grid .kl { fill: none; stroke: currentColor; stroke-width: .06; opacity: .45; }
.art-grid .ic { fill: currentColor; }
.art-pair { display: flex !important; gap: 40px; align-items: center; justify-content: center; }
.art-weight { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.art-weight svg { color: var(--red); }
.art-weight small { font: 500 12px var(--mono); color: var(--muted-foreground); }
.art-sizes { display: flex !important; align-items: flex-end; justify-content: center; gap: 26px; }
.art-fmt { display: flex !important; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.art-fmt span { padding: 8px 14px; border-radius: 99px; background: var(--card); box-shadow: var(--sh-xs); font-size: 13px; font-weight: 600; }

.m-close { text-align: center; padding-top: 184px; }
.m-close h2 { font-size: clamp(48px, 6.4vw, 96px); line-height: .98; letter-spacing: -.045em; margin: 0 0 40px; }
.m-close .cta { justify-content: center; }
.m-close .credit { margin: 48px 0 0; color: var(--muted-foreground); font-size: 14px; }
.m-close .credit code { color: var(--foreground); }
.doc p code, .doc li code, .doc td code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 12.5px; }

/* footer */
footer.foot { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; max-width: 1200px; margin: 136px auto 0; padding: 40px 32px 48px; color: var(--muted-foreground); font-size: 13.5px; border-top: 1px solid var(--border); }
footer.foot .logotype { color: var(--foreground); font-size: 22px; }
footer.foot nav { display: flex; gap: 28px; } footer.foot nav a { text-decoration: none; font-weight: 500; } footer.foot nav a:hover { color: var(--foreground); }
footer.foot .ver { margin-left: auto; font: 500 12px var(--mono); color: var(--subtle); }

/* toast (sonner-like) */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 100px); z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--card); color: var(--foreground); padding: 12px 18px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; box-shadow: 0 0 0 1px var(--border), var(--sh-md); transition: transform .4s var(--ease); }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4c9912; }
.toast.show { transform: translate(-50%, 0); }

/* icon library ------------------------------------------------------------------------------------- */
.page-h { max-width: 1520px; margin: 0 auto; padding: 72px 32px 40px; text-align: center; }
.page-h h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: .95; letter-spacing: -.04em; }
.page-h p:not(.eyebrow) { color: var(--muted-foreground); margin: 20px auto 0; font-size: 17px; max-width: 460px; }
.page-h .eyebrow { margin-bottom: 20px; }
#icons { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1520px; margin: 0 auto; padding: 0 32px 100px; }
.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; padding: 8px 4px 32px 0; scrollbar-width: none; }
.side h4 { margin: 4px 0 12px 12px; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .22em; color: var(--subtle); }
.cat { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; text-align: left; color: var(--muted-foreground); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.cat:hover { background: var(--surface); color: var(--foreground); }
.cat.on { background: var(--surface); color: var(--foreground); font-weight: 700; }
.cat small { font: 500 11px var(--mono); color: var(--subtle); }
.browse-head { display: none; }
.toolbar { position: sticky; top: 72px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 16px; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.search { flex: 1 1 280px; position: relative; }
.search input { width: 100%; height: 44px; padding: 0 44px 0 44px; border: 0; border-radius: var(--radius); background: var(--surface); outline: none; transition: background .2s, box-shadow .2s; }
.search input::placeholder { color: var(--muted-foreground); }
.search input:focus { background: var(--card); box-shadow: 0 0 0 1px var(--input), 0 0 0 4px var(--ring); }
.search > span { position: absolute; left: 15px; top: 0; bottom: 0; display: flex !important; align-items: center; color: var(--muted-foreground); pointer-events: none; }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted-foreground); background: var(--card); box-shadow: var(--sh-xs); border-radius: 4px; padding: 1px 7px; }
.search input:not(:placeholder-shown) + kbd, .search input:focus + kbd { display: none; }
.seg { display: inline-flex; align-items: center; height: 44px; padding: 4px; border-radius: var(--radius); background: var(--surface); }
.seg button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: var(--r-sm); cursor: pointer; color: var(--muted-foreground); font-weight: 600; font-size: 13px; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: var(--card); color: var(--foreground); box-shadow: var(--sh-sm); }
.ctl { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--muted-foreground); font-size: 12.5px; font-weight: 600; }
.ctl input[type=range] { width: 72px; margin: 0; accent-color: var(--primary); }
.ctl b { min-width: 2.4ch; text-align: right; color: var(--foreground); font: 500 12px var(--mono); }
.ctl input[type=color] { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.toggle { cursor: pointer; transition: color .2s; } .toggle:hover { color: var(--foreground); } .toggle.on { color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.count { color: var(--muted-foreground); font: 500 12px var(--mono); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell, 100px), 1fr)); gap: 4px; }
.tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 8px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; color: var(--icon, var(--foreground)); transition: background .2s, box-shadow .25s; }
.tile svg { transition: transform .3s var(--ease); }
.tile:hover { background: var(--surface); }
.tile:hover svg { transform: translateY(-7px); }
.tile.sel { background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--sh-md); }
.tile span { position: absolute; left: 6px; right: 6px; bottom: 10px; font: 500 10.5px var(--sans); text-align: center; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .3s var(--ease); }
.tile:hover span, .tile:focus-visible span, .tile.sel span { opacity: 1; transform: none; }
.tile.sel svg { transform: translateY(-7px); }
.tile.flagged { box-shadow: inset 0 0 0 1.5px var(--red); }
.tile .flag { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: none; } .tile.flagged .flag { display: block; }
.section { padding: 56px 0 0; }
.section:first-child { padding-top: 12px; }
.section header { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px 4px; }
.section h3 { font-size: 26px; letter-spacing: -.02em; } .section header small { color: var(--subtle); font: 500 12px var(--mono); }
.section header button { margin-left: auto; border: 0; background: none; color: var(--muted-foreground); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: var(--r-sm); transition: background .2s, color .2s; }
.section header button:hover { background: var(--surface); color: var(--foreground); }
.empty { padding: 120px 0; text-align: center; color: var(--muted-foreground); font: italic 500 24px var(--serif); }

/* drawer (shadcn sheet) */
.drawer { position: fixed; right: 16px; bottom: 16px; top: 88px; width: min(420px, calc(100vw - 32px)); z-index: 30; background: var(--card); border-radius: 20px; box-shadow: 0 0 0 1px var(--border), var(--sh-lg); display: flex; flex-direction: column; transform: translateX(calc(100% + 40px)); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 20px 16px 8px 24px; }
.drawer header h3 { font: 600 15px var(--sans); letter-spacing: 0; } .drawer header .icon-btn { margin-left: auto; }
.drawer .body { overflow: auto; padding: 12px 24px 28px; display: grid; gap: 22px; align-content: start; grid-auto-rows: max-content; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.big { display: grid; place-items: center; gap: 12px; padding: 36px 0 16px; border-radius: var(--r-lg); background: var(--surface); color: var(--icon, var(--foreground)); }
.big small { color: var(--muted-foreground); font: 600 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.meta { font: 600 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tags button { border: 0; background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--muted-foreground); transition: background .2s, color .2s; } .tags button:hover { background: var(--surface-2); color: var(--foreground); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer .actions .btn:not(.primary) { background: var(--surface); } .drawer .actions .btn:not(.primary):hover { background: var(--surface-2); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.tabs button { border: 0; background: none; padding: 6px 10px; cursor: pointer; color: var(--muted-foreground); font-size: 12.5px; font-weight: 600; border-radius: var(--r-sm); transition: background .2s, color .2s, box-shadow .2s; }
.tabs button.on { background: var(--card); color: var(--foreground); box-shadow: var(--sh-sm); }
pre.code { margin: 0; padding: 18px 20px; background: #0b0b0e; color: #e7e7e4; border-radius: var(--radius); overflow: auto; white-space: pre-wrap; word-break: break-all; max-height: 220px; line-height: 1.7; }
textarea.note { width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--foreground); font: inherit; resize: vertical; }
.fontdemo { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted-foreground); } .fontdemo i { font-size: 28px; color: var(--icon, var(--foreground)); }
.reviewbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 25; display: none; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--sh-lg); font-size: 13.5px; font-weight: 600; }
.reviewbar.show { display: flex; } .reviewbar .btn { background: var(--surface); height: 34px; }

/* docs --------------------------------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 96px; padding: 72px 32px 120px; max-width: 1120px; margin: 0 auto; }
.doc aside { position: sticky; top: 104px; align-self: start; display: grid; gap: 2px; }
.doc aside a { color: var(--muted-foreground); padding: 6px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.doc aside a:hover { color: var(--foreground); background: var(--surface); }
.doc h1 { font-size: clamp(48px, 5.6vw, 80px); line-height: .98; letter-spacing: -.04em; margin: 0 0 28px; }
.doc h2 { font-size: 34px; letter-spacing: -.025em; margin: 88px 0 16px; scroll-margin-top: 100px; }
.doc p, .doc li { color: color-mix(in srgb, var(--foreground) 78%, var(--background)); line-height: 1.8; }
.doc pre { padding: 20px 24px; background: #0b0b0e; color: #e7e7e4; border-radius: var(--radius); overflow: auto; line-height: 1.75; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 12px 16px 12px 0; vertical-align: top; } .doc th { color: var(--muted-foreground); font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.doc tr td { border-top: 1px solid var(--border); }
.demo { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-lg); background: var(--surface); color: var(--foreground); }

/* responsive --------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .m-grid { grid-template-columns: 1fr 1fr; }
  .m-facts { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; padding: 0 16px; height: 64px; } .nav { display: none; } .top-r { grid-column: 2; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .m-features { padding-top: 112px; } .m-close { padding-top: 128px; }
  footer.foot { margin-top: 96px; padding: 32px 16px 40px; gap: 20px; }
  #icons { grid-template-columns: 1fr; gap: 0; padding: 0 16px 80px; } .page-h { padding: 48px 16px 28px; }
  .side { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; } .side h4 { display: none; } .cat { white-space: nowrap; width: auto; gap: 8px; background: var(--surface); }
  .toolbar { top: 64px; } .ctl.size { display: none; }
  .doc { grid-template-columns: 1fr; padding: 40px 16px 80px; } .doc aside { display: none; }
}
@media (max-width: 640px) {
  .m-grid { grid-template-columns: 1fr; } .ft { min-height: 340px; padding: 28px; }
  .m-close .cta .btn { width: 100%; }
  footer.foot .ver { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .pc, .c-toast { transition: none; } * { scroll-behavior: auto !important; } }
