/* Inter (SIL Open Font License 1.1) — self-hosted for performance */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   ShelbyTools design system
   - Tokens on :root, dark theme via [data-theme="dark"] or system preference
   - Category accent via --h (OKLCH hue) set inline on elements
   ========================================================================== */

:root {
  --h: 268;
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-sunk: #f0f0f2;
  --ink: #0d0f14;
  --ink-2: #3a3f4b;
  --ink-3: #6b7180;
  --ink-4: #9aa0ad;
  --line: #e5e6ea;
  --line-2: #d7d9df;
  --accent: oklch(0.52 0.2 var(--h));
  --accent-ink: oklch(0.45 0.19 var(--h));
  --accent-soft: oklch(0.96 0.03 var(--h));
  --accent-line: oklch(0.88 0.07 var(--h));
  --brand: #9a740a;
  --good: #0f9d6b;
  --good-soft: #e7f7f0;
  --warn: #b7791f;
  --warn-soft: #fdf6e7;
  --bad: #d43d3d;
  --bad-soft: #fdeeee;
  --shadow-sm: 0 1px 2px rgb(16 18 27 / 0.05);
  --shadow: 0 1px 2px rgb(16 18 27 / 0.04), 0 4px 16px -4px rgb(16 18 27 / 0.08);
  --shadow-lg: 0 2px 4px rgb(16 18 27 / 0.04), 0 24px 48px -12px rgb(16 18 27 / 0.18);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --max: 1360px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0c10;
  --bg-elev: #13151b;
  --bg-sunk: #0f1015;
  --ink: #f3f4f7;
  --ink-2: #c9ccd5;
  --ink-3: #9096a5;
  --ink-4: #646a78;
  --line: #22252e;
  --line-2: #2d313c;
  --accent: oklch(0.72 0.16 var(--h));
  --accent-ink: oklch(0.8 0.13 var(--h));
  --accent-soft: oklch(0.26 0.05 var(--h));
  --accent-line: oklch(0.38 0.08 var(--h));
  --good: #34d399;
  --good-soft: #0f2a21;
  --warn: #f6c453;
  --warn-soft: #2b2310;
  --bad: #f87171;
  --bad-soft: #2d1414;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 24px 64px -12px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* Accent tokens are computed where declared, so re-declare them wherever a category sets --h;
   otherwise every page keeps the :root hue. */
[style*="--h:"] {
  --accent: oklch(0.52 0.2 var(--h));
  --accent-ink: oklch(0.45 0.19 var(--h));
  --accent-soft: oklch(0.96 0.03 var(--h));
  --accent-line: oklch(0.88 0.07 var(--h));
}
:root[data-theme="dark"] [style*="--h:"] {
  --accent: oklch(0.72 0.16 var(--h));
  --accent-ink: oklch(0.8 0.13 var(--h));
  --accent-soft: oklch(0.26 0.05 var(--h));
  --accent-line: oklch(0.38 0.08 var(--h));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, canvas, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: oklch(0.85 0.1 var(--h)); color: #000; }
.i { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -0.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--bg); background: var(--ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 4px 12px -4px rgb(0 0 0 / 0.35); }
.logo-mark svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a, .nav button { padding: 7px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.nav a:hover, .nav button:hover, .nav button[aria-expanded="true"] { background: var(--bg-sunk); color: var(--ink); }
.nav .i { width: 16px; height: 16px; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px; min-width: 240px;
  border: 1px solid var(--line); background: var(--bg-elev); border-radius: 10px; color: var(--ink-3); font-size: 14px;
  box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.search-btn:hover { border-color: var(--line-2); }
.search-btn .i { width: 17px; height: 17px; }
.kbd { margin-left: auto; font: 500 11.5px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--ink-3); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn .i { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .search-btn { min-width: 0; width: 38px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn .kbd { display: none; }
  .menu-btn { display: grid; }
}

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mega .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: 18px; padding-bottom: 22px; height: auto; align-items: stretch; }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; align-items: flex-start; }
.mega a:hover { background: var(--bg-sunk); }
.mega b { display: block; font-size: 14.5px; font-weight: 600; }
.mega small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-3); }
.mega-foot a { display: inline-flex; padding: 0; color: var(--accent-ink); font-weight: 600; }
.mega-foot a:hover { background: none; text-decoration: underline; }

/* Mobile drawer */
.drawer { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--bg); overflow-y: auto; padding: 16px 16px 40px; }
.drawer a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 550; }
.drawer a:hover { background: var(--bg-sunk); }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* Category chip icon */
.cat-ico {
  --h: 268;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line);
}
.cat-ico .i { width: 20px; height: 20px; }
.cat-ico.sm { width: 34px; height: 34px; border-radius: 9px; }
.cat-ico.sm .i { width: 17px; height: 17px; }
.cat-ico.lg { width: 56px; height: 56px; border-radius: 15px; }
.cat-ico.lg .i { width: 28px; height: 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.2; font-weight: 700; color: var(--ink); }
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 72px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(640px 280px at 50% -80px, rgb(255 92 31 / 0.14), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.pill b { background: var(--ink); color: var(--bg); padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.045em; line-height: 1.04; margin: 22px auto 0; max-width: 860px; font-weight: 780; }
.h-soft { color: var(--ink-4); }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-3); max-width: 620px; margin: 18px auto 0; }
.hero-search { position: relative; max-width: 620px; margin: 32px auto 0; }
.hero-search input {
  width: 100%; height: 60px; padding: 0 130px 0 54px; font-size: 17px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--bg-elev); box-shadow: var(--shadow-lg); outline: none;
}
.hero-search input:focus { border-color: var(--accent); box-shadow: var(--shadow-lg), 0 0 0 4px oklch(0.6 0.2 var(--h) / 0.15); }
.hero-search > .i { position: absolute; left: 20px; top: 20px; color: var(--ink-3); }
.hero-search .kbd { position: absolute; right: 16px; top: 19px; }
.hero-results { position: absolute; left: 0; right: 0; top: 68px; z-index: 20; text-align: left; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 420px; overflow-y: auto; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { width: 16px; height: 16px; color: var(--good); }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.quick a { font-size: 13.5px; padding: 6px 12px; border-radius: 99px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2); }
.quick a:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; }
.section-head p { color: var(--ink-3); margin-top: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); white-space: nowrap; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tcard {
  position: relative; display: flex; gap: 14px; padding: 18px; border-radius: var(--r-lg);
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.tcard h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.015em; }
.tcard p { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin-top: 3px; }
.tcard .badge { position: absolute; top: 12px; right: 12px; }

.cat-grid { columns: 3 300px; column-gap: 16px; }
.ccard { break-inside: avoid; margin-bottom: 16px; padding: 18px; border-radius: var(--r-xl); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ccard-head { display: flex; gap: 12px; align-items: center; }
.ccard-head h3 { font-size: 16.5px; letter-spacing: -0.02em; }
.ccard-head small { color: var(--ink-3); font-size: 13px; }
.ccard-go { margin-left: auto; width: 32px; height: 32px; flex: none; border-radius: 99px; display: grid; place-items: center; color: var(--ink-3); border: 1px solid var(--line); transition: all .2s ease; }
.ccard-go .i { width: 15px; height: 15px; }
.ccard-head:hover .ccard-go { background: var(--accent); border-color: transparent; color: #fff; transform: translateX(2px); }
.ccard-head:hover h3 { color: var(--accent-ink); }
.ccard ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard li a { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; font-size: 13.5px; color: var(--ink-2); background: var(--bg-sunk); border: 1px solid var(--line); transition: background .15s, border-color .15s, color .15s; }
.ccard li a:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.ccard li a.more { background: transparent; border-style: dashed; color: var(--ink-3); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); letter-spacing: .01em; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); padding-top: 22px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; color: var(--ink-4); }

/* ---------- Page head ---------- */
.phead { padding: 18px 0 26px; display: flex; gap: 18px; align-items: flex-start; }
.phead h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; line-height: 1.08; }
.phead p.sub { color: var(--ink-3); font-size: 17px; margin-top: 8px; max-width: 760px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .i { width: 15px; height: 15px; }
.phead-actions { margin-left: auto; display: flex; gap: 8px; }
.fav-btn[aria-pressed="true"] { color: #e5a50a; border-color: #e5a50a55; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 720px) {
  .phead { flex-wrap: wrap; }
  .phead > .cat-ico { display: none; }
  .phead-actions { margin-left: 0; }
}

/* ---------- Tool layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1080px) { .layout { grid-template-columns: minmax(0, 1fr); } .aside { display: none; } }
.aside { position: sticky; top: 84px; display: grid; gap: 16px; }
.aside-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.aside-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 650; margin-bottom: 8px; }
.aside-card a { display: flex; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.aside-card a:hover { background: var(--bg-sunk); color: var(--ink); }

.tool {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: 28px;
}
@media (max-width: 640px) { .tool { padding: 18px; border-radius: var(--r-lg); } }

/* ---------- Tool UI primitives ---------- */
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field > label output, .label output { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.input, .field input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), .field select, .field textarea, .textarea, .select {
  width: 100%; min-width: 0; height: 44px; padding: 0 13px; border-radius: 10px; font-size: 15.5px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s; font-variant-numeric: tabular-nums;
}
.field textarea, .textarea { height: auto; min-height: 160px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
textarea.mono, .textarea.mono { font-family: var(--mono); font-size: 13.5px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .textarea:focus, .select:focus {
  border-color: var(--accent); background: var(--bg-elev); box-shadow: 0 0 0 4px oklch(0.6 0.2 var(--h) / 0.14);
}
.field select, .select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7180' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; }
.field input[aria-invalid="true"] { border-color: var(--bad); }

/* input with prefix/suffix addon */
.ig { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ig:focus-within { border-color: var(--accent); background: var(--bg-elev); box-shadow: 0 0 0 4px oklch(0.6 0.2 var(--h) / 0.14); }
.field .ig input, .ig input, .ig select { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; flex: 1; }
.ig .addon { display: grid; place-items: center; padding: 0 12px; font-size: 14px; color: var(--ink-3); font-weight: 550; background: var(--bg-sunk); white-space: nowrap; }
.ig .addon:first-child { border-right: 1px solid var(--line); }
.ig .addon:last-child { border-left: 1px solid var(--line); }
.ig select { flex: none; width: auto; padding-right: 30px !important; }

/* range */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; margin: 8px 0 4px;
  background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line-2) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgb(0 0 0 / .2); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgb(0 0 0 / .2); cursor: grab; }

/* checkbox / radio / switch */
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
input[type="color"] { width: 44px; height: 44px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; }

/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--bg-sunk); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--ink-3); transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.active, .seg button[aria-selected="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg.full { display: flex; } .seg.full button { flex: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); border-color: transparent; }
.btn-accent { background: var(--accent); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .btn-accent { color: #0b0c10; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-sunk); border-color: transparent; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* results */
.result { border-radius: var(--r-lg); padding: 22px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.result-label { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.result-value { font-size: clamp(30px, 5vw, 44px); font-weight: 780; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--ink); word-break: break-word; }
.result-sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.result.good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); } .result.good .result-label { color: var(--good); }
.result.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); } .result.warn .result-label { color: var(--warn); }
.result.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); } .result.bad .result-label { color: var(--bad); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; border-radius: var(--r); background: var(--bg-sunk); border: 1px solid var(--line); min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--ink-3); font-weight: 550; }
.stat-value { font-size: 20px; font-weight: 720; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; word-break: break-word; }

.panel { padding: 18px; border-radius: var(--r-lg); background: var(--bg-sunk); border: 1px solid var(--line); }
.output { font-family: var(--mono); font-size: 13.5px; padding: 14px; border-radius: var(--r); background: var(--bg-sunk); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-all; min-height: 48px; }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--ink-2); }
.note .i { width: 17px; height: 17px; margin-top: 2px; color: var(--ink-3); }
.note-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.note-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.note-good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }

/* tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); max-height: 460px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { position: sticky; top: 0; background: var(--bg-sunk); font-size: 12.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; z-index: 1; }
.table tbody tr:hover { background: var(--bg-sunk); }
.table tbody tr:last-child td { border-bottom: 0; }

/* meter / progress */
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease, background .3s; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { width: 100%; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }

/* drop zone */
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 36px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-sunk); color: var(--ink-3); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-2); }
.drop .i { width: 32px; height: 32px; color: var(--accent); }
.drop b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--ink-2); }
button.chip:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- Article / content ---------- */
.article { margin-top: 40px; }
.prose { max-width: 760px; font-size: 16.5px; color: var(--ink-2); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; letter-spacing: -0.03em; margin-top: 2.1em; color: var(--ink); }
.prose h3 { font-size: 19.5px; margin-top: 1.7em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-4); }
.prose code { font-family: var(--mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--ink); }
.prose .formula, .prose pre { font-family: var(--mono); font-size: 14.5px; padding: 16px 18px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--ink); overflow-x: auto; white-space: pre-wrap; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: var(--bg-sunk); }
.prose blockquote { border-left: 3px solid var(--line-2); padding-left: 16px; color: var(--ink-3); }
.prose .callout { padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); font-size: 15.5px; }

.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--line); margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }

.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-elev); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 620; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); font-size: 15.5px; }

.updated { margin-top: 28px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }

/* ---------- Ads ---------- */
.ad { margin: 28px auto; text-align: center; min-height: 120px; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.ad-ph { display: grid; place-items: center; min-height: 110px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-4); font-size: 12.5px; }
.ad-top { min-height: 100px; margin: 16px auto 24px; }
.ad-top .ad-ph { min-height: 90px; }
.ad-side { min-height: 280px; margin: 0; }
.ad-side .ad-ph { min-height: 260px; }
.ad[data-empty] { display: none; }

/* ---------- Footer ---------- */
.ftr { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-elev); padding: 56px 0 28px; font-size: 14px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 960px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }
.ftr h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; font-weight: 650; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.ftr a { color: var(--ink-2); }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr-brand p { color: var(--ink-3); margin-top: 12px; max-width: 320px; }
.ftr-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
.ftr-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Command palette ---------- */
.cmdk-bg { position: fixed; inset: 0; z-index: 90; background: rgb(10 12 18 / .45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk { width: 100%; max-width: 620px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-in input { flex: 1; height: 58px; border: 0; outline: none; background: transparent; font-size: 17px; }
.cmdk-in .i { color: var(--ink-3); }
.cmdk-list { max-height: 55vh; overflow-y: auto; padding: 6px; }
.res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); }
.res b { display: block; font-weight: 600; color: var(--ink); font-size: 15px; }
.res small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res > div { min-width: 0; }
.res.sel, .res:hover { background: var(--bg-sunk); }
.res-group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }
.res-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Toast & consent ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: toast-in .22s ease; }
.toast .i { width: 17px; height: 17px; color: var(--good); }
.toast.err .i { color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.consent { position: fixed; z-index: 95; left: 16px; right: 16px; bottom: 16px; max-width: 460px; margin-left: auto; padding: 18px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--ink-2); }
.consent b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.consent a { color: var(--accent-ink); text-decoration: underline; }
.consent .row { margin-top: 14px; }

/* ---------- Misc pages ---------- */
.page-narrow { max-width: 800px; margin: 0 auto; padding: 40px 0 64px; }
.az { columns: 3 260px; column-gap: 32px; }
.az section { break-inside: avoid; margin-bottom: 26px; }
.az h2 { font-size: 15px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.az ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.az a { color: var(--ink-2); font-size: 14.5px; }
.az a:hover { color: var(--accent-ink); text-decoration: underline; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cat-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 99px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 14px; font-weight: 550; white-space: nowrap; color: var(--ink-2); }
.cat-strip a:hover, .cat-strip a.on { border-color: var(--accent-line); color: var(--ink); background: var(--accent-soft); }
.cat-strip .cat-ico { width: 26px; height: 26px; border-radius: 7px; }
.cat-strip .cat-ico .i { width: 15px; height: 15px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.feature h3 { font-size: 16.5px; margin: 14px 0 6px; }
.feature p { color: var(--ink-3); font-size: 14.5px; }
.empty { padding: 32px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

@media print {
  .hdr, .ftr, .aside, .ad, .article, .crumbs, .phead-actions, .consent, .toasts, .no-print { display: none !important; }
  body { background: #fff; }
  .tool { box-shadow: none; border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Mobile overflow guards (found by the 390px overflow audit) ---------- */
/* Long unbroken strings (hashes, URLs, code, data URIs) must wrap instead of widening the page. */
.tool, .prose, .result-value, .output { overflow-wrap: anywhere; }
.prose code, .tool code { overflow-wrap: anywhere; word-break: break-word; }
/* Flex/grid children default to min-width:auto, which lets wide content blow out the layout. */
.tool .row > *, .tool .row-between > *, .tool .stats > *, .tool .grid-2 > *, .tool .grid-3 > *, .tool .grid-4 > *, .tool .split > * { min-width: 0; }
.result, .panel, .stat { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  /* Let button labels wrap and button rows flow onto new lines on phones. */
  .btn { white-space: normal; height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
  .btn-sm { min-height: 34px; }
  .tool [class*="row"], .tool [class*="actions"], .tool [class*="btn-group"], .tool [class*="toolbar"] { flex-wrap: wrap; }
  .tool .label { flex-wrap: wrap; white-space: normal; }
  .tool pre, .tool textarea { max-width: 100%; }
}
/* Inputs have an intrinsic width (~150px); let every grid/flex child inside tools shrink below it. */
.tool .stack > *, .tool .stack-sm > *, .tool .field > *, .tool .panel > *, .tool [style*="grid-template-columns"] > *, .tool [style*="display:flex"] > *, .tool [style*="display: flex"] > * { min-width: 0; }
.tool input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), .tool select, .tool textarea { min-width: 0; max-width: 100%; }
/* Inputs inside an addon group (.ig) get the same sizing whether or not they sit in a .field */
.ig input, .ig select { height: 42px; padding: 0 12px; font-size: 15.5px; outline: none; color: var(--ink); width: 100%; }

/* ---------- Legacy tool markup compatibility ----------
   ~40 tools were authored against the old design system (classes like .card/.form-group/.result-box and
   --p-* / --text-muted variables). Map them onto the current tokens so they render like every other tool.
   ponytail: compat shim; migrate those tools to .panel/.field/.result and delete this block when touched. */
.tool {
  --p-primary: var(--accent); --primary: var(--accent); --p-accent: var(--accent-ink);
  --p-surface: var(--bg-sunk); --bg-secondary: var(--bg-sunk); --bg-alt: var(--bg-sunk);
  --p-text: var(--ink); --text: var(--ink); --text-sub: var(--ink-2);
  --p-text-muted: var(--ink-3); --text-muted: var(--ink-3);
  --p-border: var(--line); --border: var(--line);
  --p-danger: var(--bad); --font-mono: var(--mono);
}
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-grid > *, .card > * { min-width: 0; }
.card { display: grid; gap: 16px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--line); min-width: 0; }
.tool > .card:only-child { padding: 0; border: 0; background: none; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.form-group { display: grid; gap: 6px; min-width: 0; }
.form-group > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form-group input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not(.input),
.form-group select:not(.select):not(.input), .form-group textarea:not(.textarea):not(.input) {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; font-size: 15.5px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none;
}
.form-group textarea, textarea.input { height: auto; min-height: 120px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.checkbox-label { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-outline { background: transparent; box-shadow: none; }
.quick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.btn-sub { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 550; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--ink-2); transition: border-color .15s, color .15s, background .15s; }
.btn-sub:hover { border-color: var(--line-2); color: var(--ink); }
.btn-sub.active, .btn-sub[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.result-box { border-radius: var(--r-lg); padding: 22px; background: var(--accent-soft); border: 1px solid var(--accent-line); min-width: 0; }
.result-box .result-label { display: block; }
.result-val { font-size: clamp(28px, 5vw, 40px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.result-val.highlight { color: var(--accent-ink); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat-box { padding: 12px 14px; border-radius: var(--r); background: var(--bg-sunk); border: 1px solid var(--line); min-width: 0; }
/* Numbers in tables must not break mid-digit; scroll the card instead. */
.card { overflow-x: auto; }
.tool td, .tool th { overflow-wrap: normal; word-break: normal; }
/* Buttons/labels: never break mid-word, never shrink below their longest word (the .tool overflow-wrap:anywhere
   guard above made "Clear" render as "Cle/ar" in squeezed flex/grid rows on phones). */
.tool :is(button, .btn, label, .seg, .chip) { overflow-wrap: normal; word-break: normal; }
.tool :is(button, .btn) { min-width: min-content; }
/* .note is flex for "icon + text"; without an icon each text run became its own squeezed column. */
.note:not(:has(> .i, > svg)) { display: block; }

/* ---------- Premium layer: per-category colour ----------
   Every surface below reads --h (category hue, set inline in markup), so each category gets its own colour. */
.cat-ico {
  /* Soft tint + coloured glyph: category colour without shouting. */
  background: linear-gradient(160deg, oklch(0.965 0.025 var(--h)), oklch(0.92 0.045 var(--h)));
  color: oklch(0.5 0.13 var(--h));
  border: 0;
  box-shadow: inset 0 0 0 1px oklch(0.88 0.04 var(--h) / 0.7);
}
:root[data-theme="dark"] .cat-ico {
  background: linear-gradient(160deg, oklch(0.33 0.045 var(--h)), oklch(0.27 0.04 var(--h)));
  color: oklch(0.83 0.09 var(--h));
  box-shadow: inset 0 0 0 1px oklch(0.4 0.05 var(--h) / 0.6);
}

/* Tool cards: soft category glow + gradient border on hover */
.tcard { padding: 20px; overflow: hidden; }
.tcard::before, .tcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.tcard::before { /* 1px gradient ring */
  padding: 1px;
  background: linear-gradient(140deg, oklch(0.7 0.18 var(--h)), oklch(0.7 0.18 var(--h) / 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tcard::after { background: radial-gradient(220px 140px at 0 0, oklch(0.7 0.18 var(--h) / 0.12), transparent 70%); }
.tcard:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 16px 36px -16px oklch(0.5 0.2 var(--h) / 0.5); }
.tcard:hover::before, .tcard:hover::after { opacity: 1; }
.tcard:hover h3 { color: var(--accent-ink); }

/* Category cards: tinted header wash */
.ccard { position: relative; overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ccard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 110px; pointer-events: none;
  background: radial-gradient(120% 100% at 0 0, oklch(0.7 0.17 var(--h) / 0.16), transparent 70%); }
.ccard > * { position: relative; }
.ccard:hover { border-color: var(--accent-line); box-shadow: 0 16px 40px -20px oklch(0.5 0.2 var(--h) / 0.45); }

/* Tool + category page header glow, tool card accent bar */
.phead { position: relative; }
.phead::before { content: ''; position: absolute; z-index: -1; top: -110px; left: -140px; width: min(760px, 100vw); height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, oklch(0.7 0.17 var(--h) / 0.18), transparent); }
.tool { position: relative; }
.tool::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, oklch(0.68 0.19 var(--h)), oklch(0.62 0.2 calc(var(--h) + 40)), transparent); }

/* Primary buttons in the category colour */
.btn-primary, .btn-primary:hover {
  background: linear-gradient(140deg, oklch(0.6 0.2 var(--h)), oklch(0.5 0.22 calc(var(--h) + 25)));
  color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 8px 18px -10px oklch(0.5 0.2 var(--h) / 0.9);
}
.btn-primary:hover { filter: brightness(1.08); }

/* Hero quick links + category strip feel tactile */
.quick a, .cat-strip a { transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.quick a:hover { transform: translateY(-1px); border-color: var(--accent-line); background: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  .tcard, .tcard:hover, .quick a:hover, .ccard li a:hover .i { transform: none; transition: none; }
}

/* Hero quick links carry a tiny category tile */
.cat-ico.xs { width: 20px; height: 20px; border-radius: 6px; }
.cat-ico.xs .i { width: 12px; height: 12px; }
.hero .quick a { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; }
.pill b { background: var(--brand); color: #fff; }

/* ---------- Home: bento showcase ---------- */
.bento-sec { padding-top: 8px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(270px, auto); gap: 16px; }
.bento-tile.big { grid-column: span 2; grid-row: span 2; }
.bento-tile.wide { grid-column: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-tile.big { grid-row: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .bento-tile.big, .bento-tile.wide { grid-column: auto; } }
.bento-tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 50% 0%, oklch(0.7 0.17 var(--h) / 0.16), transparent 72%); }
.bento-tile:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 28px 56px -28px oklch(0.45 0.2 var(--h) / 0.5); }
.bento-prev { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 26px 26px 0; min-width: 0; }
.bento-cap { padding: 18px 76px 24px 26px; }
.bento-cap h3 { font-size: 17.5px; letter-spacing: -0.02em; }
.bento-cap p { color: var(--ink-3); font-size: 14px; margin-top: 3px; line-height: 1.5; }
.bento-go { position: absolute; right: 22px; bottom: 26px; width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--ink-2); transition: all 0.25s ease; }
.bento-go .i { width: 17px; height: 17px; }
.bento-tile:hover .bento-go { background: var(--accent); border-color: transparent; color: #fff; transform: translateX(3px); }

/* preview pieces */
.pv { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.pv-label { font-size: 12px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-ink); }
.pv-big { font-size: clamp(38px, 4.6vw, 56px); font-weight: 780; letter-spacing: -0.045em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pv-big small { font-size: 0.45em; color: var(--ink-3); letter-spacing: -0.02em; }
.pv-split { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.pv-donut { width: 116px; height: 116px; flex: none; border-radius: 50%;
  background: conic-gradient(oklch(0.62 0.17 150) 0 80%, oklch(0.72 0.14 200) 0 95%, oklch(0.8 0.15 70) 0);
  -webkit-mask: radial-gradient(circle closest-side, transparent 64%, #000 65%); mask: radial-gradient(circle closest-side, transparent 64%, #000 65%); }
.pv-legend { flex: 1; min-width: 0; display: grid; gap: 10px; font-size: 13.5px; }
.pv-legend span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; }
.pv-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.pv-legend b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-track { margin-top: 24px; }
.pv-track > div { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.pv-track > div b { color: var(--ink); }
.pv-track > span { position: relative; display: block; height: 6px; margin-top: 10px; border-radius: 99px; background: var(--bg-sunk); }
.pv-track > span i { position: absolute; inset: 0 55% 0 0; border-radius: inherit; background: var(--accent); }
.pv-track > span i::after { content: ''; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); transform: translateY(-50%); box-shadow: var(--shadow-sm); }
@media (max-width: 420px) { .pv-split { flex-direction: column; align-items: stretch; } .pv-donut { align-self: center; } }

.pv-files { display: grid; gap: 10px; }
.pv-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; min-width: 0; }
.pv-file > div { min-width: 0; }
.pv-file b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-file small { color: var(--ink-3); font-size: 12px; }
.pv-file .ok { margin-left: auto; color: var(--good); }
.pv-file .ok .i { width: 18px; height: 18px; }
.fx { flex: none; width: 34px; height: 40px; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 6px; font-size: 8.5px; font-weight: 760; letter-spacing: 0.04em; color: #fff; background: var(--c); clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); }
.pv-bar { height: 5px; margin: 0 12px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.pv-bar i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), oklch(0.7 0.18 calc(var(--h) + 30))); }

.pv-code { background: #0d0f14; border: 1px solid rgb(255 255 255 / 0.07); border-radius: 16px; padding: 14px 18px 18px; box-shadow: var(--shadow); color: #c9ccd5; overflow: hidden; }
.pv-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pv-head > i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.pv-valid { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #34d399; }
.pv-valid .i { width: 14px; height: 14px; }
.pv-code pre { margin: 0; font: 13.5px/1.75 var(--mono); white-space: pre; overflow: hidden; }
.pv-code .k { color: #7dd3fc; } .pv-code .s { color: #86efac; } .pv-code .n { color: #fdba74; } .pv-code .b { color: #c4b5fd; } .pv-code .p { color: #6b7280; }

/* ---------- Home: stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-elev); box-shadow: var(--shadow-sm); overflow: hidden; }
.stats-band > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.stats-band > div:first-child { border-left: 0; }
.stats-band b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 780; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-band span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 720px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band > div { padding: 20px; }
  .stats-band > div:nth-child(odd) { border-left: 0; }
  .stats-band > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Closing call-to-action ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 52px 56px; border-radius: 28px; background: #0d0f14; color: #f3f4f7; border: 1px solid rgb(255 255 255 / 0.08); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px 280px at 92% 0%, rgb(255 92 31 / 0.32), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1.05; }
.cta h2 span { color: #8b90a0; }
.cta p { color: #9aa0ad; margin-top: 12px; }
.cta kbd { font: 600 12px var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.06); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-brand, .btn-inv { height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.btn-brand { background: var(--brand); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 12px 28px -12px rgb(255 92 31 / 0.9); }
.btn-brand:hover { border-color: transparent; filter: brightness(1.07); }
.btn-inv { background: rgb(255 255 255 / 0.06); color: #fff; border-color: rgb(255 255 255 / 0.16); box-shadow: none; }
.btn-inv:hover { border-color: rgb(255 255 255 / 0.4); }
@media (max-width: 640px) { .cta { padding: 34px 24px; border-radius: 22px; } .cta-actions, .cta-actions .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) { .bento-tile, .bento-tile:hover, .bento-tile:hover .bento-go { transform: none; transition: none; } }

.pv-chart { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pv-chart > div { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.pv-chart > div b { color: var(--ink); }
.pv-chart svg { width: 100%; height: 84px; margin-top: 10px; overflow: visible; }
.pv-chart .a { fill: oklch(0.65 0.17 var(--h) / 0.16); }
.pv-chart .l { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
/* Phones: hero quick links become one swipeable row instead of a tall stack */
@media (max-width: 640px) {
  .hero .quick { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
  .hero .quick::-webkit-scrollbar { display: none; }
  .hero .quick a { flex: none; }
}

/* ---------- Media tools (video + AI image) ---------- */
.vt-preview video, .vt-media { display: block; width: 100%; max-height: 60vh; border-radius: var(--r); background: #000; object-fit: contain; }
img.vt-media { background: repeating-conic-gradient(var(--bg-sunk) 0 25%, var(--bg-elev) 0 50%) 0 0 / 20px 20px; }
.vt-mark canvas { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--bg-sunk); cursor: crosshair; touch-action: none; }
.vt-mark canvas[width="0"] { display: none; }
.vt-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.vt-frames button { padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunk); }
.vt-frames button:hover { border-color: var(--accent); }
.vt-frames img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ip-stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-sunk); }
.ip-stage canvas { display: block; width: 100%; height: auto; }
.ip-stage #mask { position: absolute; inset: 0; height: 100%; opacity: 0.55; cursor: crosshair; touch-action: none; }
.bg-out { border-radius: var(--r); overflow: hidden; background: repeating-conic-gradient(var(--bg-sunk) 0 25%, var(--bg-elev) 0 50%) 0 0 / 20px 20px; }
.bg-out canvas { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }

/* ---------- Home: category tiles (uniform grid, 7 × 2 on desktop) ---------- */
.ctiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ctile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 16px 16px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ctile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, oklch(0.7 0.15 var(--h) / 0.13), transparent 65%); }
.ctile .cat-ico { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px; }
.ctile .cat-ico .i { width: 21px; height: 21px; }
.ctile-name { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); line-height: 1.25; }
.ctile-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ctile-go { position: absolute; top: 18px; right: 14px; color: var(--ink-4); opacity: 0; transform: translateX(-4px); transition: all .2s ease; }
.ctile-go .i { width: 16px; height: 16px; }
.ctile:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 14px 30px -18px oklch(0.45 0.18 var(--h) / 0.55); }
.ctile:hover .ctile-go { opacity: 1; transform: none; color: var(--accent); }
.ctile:hover .ctile-name { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .ctile, .ctile:hover, .ctile-go { transform: none; transition: none; } }
@media (max-width: 640px) {
  .ctile { flex-direction: row; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; }
  .ctile .cat-ico { width: 36px; height: 36px; margin: 0; }
  .ctile .cat-ico .i { width: 18px; height: 18px; }
  .ctile-name { font-size: 14px; }
  .ctile-count { display: none; }
  .ctile-go { display: none; }
}

/* ---------- Tool pages: wide canvas, tool spans the full width ---------- */
.wrap-tool > .tool { margin-bottom: 8px; }
@media (min-width: 1100px) { .wrap-tool > .tool { padding: 32px 36px; } }
.wrap-tool > .layout { margin-top: 28px; }
.wrap-tool .vt-preview video, .wrap-tool .vt-media { max-height: 70vh; }

/* ---------- All tools: sections of tool cards ---------- */
.az { columns: auto; }
.az-sec { margin-bottom: 44px; scroll-margin-top: 90px; }
.az-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.az .az-head h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.az-head h2 a:hover { color: var(--accent-ink); }
.az-head small { color: var(--ink-3); font-size: 13px; }
.az-head .link-arrow { margin-left: auto; font-size: 14px; color: var(--accent-ink); }
.az-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.tcard.mini { padding: 12px 14px; gap: 12px; align-items: center; border-radius: 14px; }
.tcard.mini h3 { font-size: 14.5px; }
.tcard.mini p { font-size: 13px; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cat-strip { position: sticky; top: 64px; z-index: 5; padding: 10px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 640px) { .az-head .link-arrow { display: none; } .az-grid { grid-template-columns: minmax(0, 1fr); } }

/* Tool pages: no stacked gaps between the tool and the guide; guide fills its column up to the sidebar */
.wrap-tool > .layout { margin-top: 32px; }
.wrap-tool .article { margin-top: 0; }
.wrap-tool .prose { max-width: none; }
.wrap-tool .prose > :first-child { margin-top: 0; }
.wrap-tool .aside { top: 84px; }
@media (min-width: 720px) { .wrap-tool .prose table { display: table; } }
/* Editing canvases never taller than the screen: tall/portrait images shrink to fit, centred */
.ip-stage { width: fit-content; max-width: 100%; margin-inline: auto; }
.ip-stage > canvas:first-child { width: auto; height: auto; max-width: 100%; max-height: 72vh; }
.ip-stage #mask, .ip-stage #ov { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.vt-mark { display: flex; justify-content: center; }
.vt-mark canvas { width: auto; max-width: 100%; max-height: 72vh; }
.bg-out { display: flex; justify-content: center; }
.bg-out canvas { width: auto; max-width: 100%; max-height: 60vh; }
/* Text sections use the full page width (no half-screen column), no extra gap above the first heading */
.prose { max-width: none; }
.prose > :first-child { margin-top: 0; }

/* ---------- ShelbyTools brand: charcoal + brushed brass ---------- */
:root[data-theme="dark"] { --brand: #d4af37; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: none; box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.45); color: inherit; }
.logo-mark svg { width: 34px; height: 34px; display: block; }
.logo-word { letter-spacing: -0.03em; }
.logo-accent { color: var(--brand); font-weight: 600; }
.pill b { background: var(--brand); color: #15130f; }
.btn-brand { background: linear-gradient(180deg, #f0d277, #c49a26); color: #15130f; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 12px 28px -14px rgb(201 163 91 / 0.9); }
.cta::before { background: radial-gradient(560px 280px at 92% 0%, rgb(201 163 91 / 0.28), transparent 70%), linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; }
.hero::before { background: radial-gradient(640px 280px at 50% -80px, rgb(201 163 91 / 0.16), transparent 70%); }

/* Crest + engraved wordmark */
.logo { gap: 11px; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.55); }
.logo-mark svg { width: 38px; height: 38px; }
.logo-word svg { display: block; height: 15px; width: auto; }
.wm-accent { fill: var(--brand); }
@media (max-width: 380px) { .logo-word svg { height: 12px; } }
:root[data-theme="dark"] .logo-mark { box-shadow: 0 0 0 1px rgb(212 175 55 / 0.35), 0 6px 16px -6px rgb(0 0 0 / 0.6); }

/* Deco Diamond logo: free-standing mark (no tile), Montserrat wordmark */
.logo-mark, :root[data-theme="dark"] .logo-mark { width: 34px; height: 34px; border-radius: 0; box-shadow: none; background: none; filter: drop-shadow(0 3px 8px rgb(212 175 55 / 0.28)); }
.logo-mark svg { width: 34px; height: 34px; }
.logo { gap: 12px; }
.logo-word svg { height: 15px; }
