/* =====================================================================
   KoraTools design system
   Helperion and Siromi style: a soft pastel canvas, big rounded cards,
   pill buttons, sheets, toasts, and Kora the pumpkin as a guide.
   Outfit for headings, Figtree for text. Light and dark are both pastel.

   Layout: one centred column (max 1200px), cards on a warm canvas,
   a sticky glass header, a floating tab bar on phones.
   Contrast (measured): text 13.9:1 light / 14.4:1 dark, muted 7.0 / 7.4,
   pumpkin buttons 8.1 / 8.7, category labels 4.7 to 8.9.
   ===================================================================== */

/* Fonts are served from koratools.com: Outfit and Figtree, variable weight, SIL OFL 1.1 (@fontsource-variable 5.3.0). */
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/outfit-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/outfit-latin-wght-normal.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; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/figtree-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/figtree-latin-wght-normal.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; }

/* ---------- Tokens ---------- */
:root {
  --bg: #F6F2EC;
  --surface: #FFFFFF;
  --surface-2: #F3EEE7;
  --surface-3: #E7E0D6;
  --line: rgba(42, 38, 35, .08);
  --ink: #2A2623;
  --ink-2: #625A53;
  --ink-3: #6A615A;
  --pill: #2A2623;
  --pill-ink: #FFF8F1;
  --pill-ink-2: rgba(255, 248, 241, .55);
  --tab-ind: #FFD9BD;
  --tab-ind-ink: #2A2623;
  --brand: #FFAE78;
  --brand-hover: #FFA066;
  --brand-ink: #3B2210;
  --brand-soft: #FFE9D9;
  --brand-text: #A9521E;
  --glass: rgba(255, 255, 255, .62);
  --focus: #F2914F;
  --pdf: #A83E34; --pdf-bg: #FFE4DF;
  --calculator: #2A7149; --calculator-bg: #DDF2E5;
  --text: #6150C2; --text-bg: #ECE8FF;
  --developer: #2D6AA6; --developer-bg: #DDEEFF;
  --convert: #8A5A00; --convert-bg: #FFF0D2;
  --compress: #0E6B6B; --compress-bg: #D9F2F0;
  --photo: #9A2C6B; --photo-bg: #FBE3F0;
  --video: #0B6E99; --video-bg: #DCF0FA;
  --everyday: #4A5A6A; --everyday-bg: #E6ECF2;
  --star: #E9A100; --star-off: #E2D9CC; --heart: #E0456A; --heart-bg: #FFE3EA;
  --ok: #2A7149; --ok-bg: #DDF2E5;
  --warn: #866300; --warn-bg: #FFF2C8;
  --bad: #A83E34; --bad-bg: #FFE4DF;
  --scrim: rgba(40, 26, 16, .34);
  --shadow-s: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 12px -6px rgba(60, 40, 20, .18);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 12px 30px -16px rgba(60, 40, 20, .24);
  --shadow-l: 0 2px 6px rgba(60, 40, 20, .06), 0 30px 60px -30px rgba(60, 40, 20, .42);
  --display: 'Outfit', 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Figtree', 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
  --tabbar-h: 0px;
  color-scheme: light;
}
/* Dark: "midnight pastel". A clean charcoal base (no browns) with glowing pastel accents;
   cards are lit by a thin edge and a soft tint of their colour instead of flat fills. */
[data-theme="dark"] {
  --bg: #121117;
  --surface: #1C1B22;
  --surface-2: #24232B;
  --surface-3: #302F38;
  --line: rgba(255, 255, 255, .07);
  --ink: #F4F1F6;
  --ink-2: #BDB8C6;
  --ink-3: #A7A2B0;
  --pill: #F7EFE6;
  --pill-ink: #18161C;
  --pill-ink-2: rgba(24, 22, 28, .55);
  --tab-ind: #FFB38A;
  --tab-ind-ink: #2A160B;
  --brand: #FFB38A;
  --brand-hover: #FFC4A3;
  --brand-ink: #2A160B;
  --brand-soft: #2C2226;
  --brand-text: #FFB98F;
  --glass: rgba(255, 255, 255, .06);
  --focus: #FFB38A;
  --pdf: #FF9E95; --pdf-bg: #2B1C21;
  --calculator: #7FD9A8; --calculator-bg: #17261F;
  --text: #B9AEFF; --text-bg: #211F35;
  --developer: #8EC5FF; --developer-bg: #172333; --convert: #F2C46D; --convert-bg: #2A2416; --compress: #6ED3CC; --compress-bg: #14282A; --photo: #F29AC6; --photo-bg: #2C1A26; --video: #7CCBF0; --video-bg: #13252F; --everyday: #AFC2D6; --everyday-bg: #1C232B; --star: #F7C64B; --star-off: #3A3842; --heart: #FF8FA8; --heart-bg: #3A2129;
  --ok: #7FD9A8; --ok-bg: #17261F;
  --warn: #F2D27A; --warn-bg: #2B2615;
  --bad: #FF9E95; --bad-bg: #2B1C21;
  --scrim: rgba(6, 5, 10, .62);
  --shadow-s: 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 16px -10px rgba(0, 0, 0, .7);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 34px -18px rgba(0, 0, 0, .85);
  --shadow-l: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -26px rgba(0, 0, 0, .95);
  color-scheme: dark;
}
/* Tinted cards: a flat wash of the card's colour over the surface, with a hairline edge */
[data-theme="dark"] .hero-card,
[data-theme="dark"] .cta-band,
[data-theme="dark"] .calc-out,
[data-theme="dark"] .qr-card,
[data-theme="dark"] .pw-show,
[data-theme="dark"] .try-card {
  background: color-mix(in srgb, var(--cat, var(--brand)) 9%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat, var(--brand)) 20%, transparent), 0 24px 50px -30px rgba(0, 0, 0, .9);
}
[data-theme="dark"] .hero-card[data-cat="brand"], [data-theme="dark"] .cta-band[data-cat="brand"] { --cat: var(--brand); }
[data-theme="dark"] .stat-tile, [data-theme="dark"] .guide-art, [data-theme="dark"] .howto i { background: color-mix(in srgb, var(--cat, var(--brand)) 13%, var(--surface)); }
[data-theme="dark"] .tile { background: color-mix(in srgb, var(--cat, var(--ink)) 14%, var(--surface-2)); }
[data-theme="dark"] .chip-glass { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .header { background: color-mix(in srgb, var(--bg) 78%, transparent); }
[data-theme="dark"] .dropzone { background: color-mix(in srgb, var(--cat, var(--brand)) 6%, var(--surface)); }
[data-theme="dark"] .footer { background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
@media (max-width: 860px) { :root { --header-h: 62px; --tabbar-h: 96px; } }

/* Category colours: any element with data-cat gets --cat and --cat-bg */
[data-cat="pdf"] { --cat: var(--pdf); --cat-bg: var(--pdf-bg); }
[data-cat="calculator"] { --cat: var(--calculator); --cat-bg: var(--calculator-bg); }
[data-cat="text"] { --cat: var(--text); --cat-bg: var(--text-bg); }
[data-cat="developer"] { --cat: var(--developer); --cat-bg: var(--developer-bg); }
[data-cat="convert"] { --cat: var(--convert); --cat-bg: var(--convert-bg); }
[data-cat="compress"] { --cat: var(--compress); --cat-bg: var(--compress-bg); }
[data-cat="photo"] { --cat: var(--photo); --cat-bg: var(--photo-bg); }
[data-cat="video"] { --cat: var(--video); --cat-bg: var(--video-bg); }
[data-cat="everyday"] { --cat: var(--everyday); --cat-bg: var(--everyday-bg); }
[data-cat="brand"] { --cat: var(--brand-text); --cat-bg: var(--brand-soft); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
a { color: var(--brand-text); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; }
::selection { background: var(--brand-soft); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 999px; background: var(--pill); color: var(--pill-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: 880px; }
.section { padding-block: 64px 8px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); }
.h-display { font-size: clamp(42px, 6.4vw, 76px); line-height: 1; letter-spacing: -.035em; }
.h-section { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.05; }
.h-card { font-size: 22px; letter-spacing: -.015em; }
.lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.section-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 26px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes sheet-up { from { transform: translate3d(0, 100%, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .in { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .3s; }
.header.scrolled::after { opacity: 1; }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
/* The logo, with KoraTools' star rating just under it */
.brand-box { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.site-rating { display: inline-flex; align-items: center; gap: 5px; height: 24px; margin-top: -2px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 12px/1 var(--body); font-variant-numeric: tabular-nums; cursor: pointer; visibility: hidden; transition: background .2s, transform .3s var(--spring); }
.site-rating.ready { visibility: visible; animation: fade-in .5s var(--ease) both; }
.site-rating:hover { background: var(--glass); color: var(--ink); }
.site-rating:active { transform: scale(.94); }
.site-rating .avg { color: var(--ink); font-weight: 800; }
.site-rating .avg:empty { display: none; }
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars .off, .stars .on { display: inline-flex; gap: 1px; }
.stars .on { position: absolute; inset: 0 auto 0 0; width: calc(var(--v, 0) * 100%); overflow: hidden; color: var(--star); }
.stars .off { color: var(--star-off); }
.stars .ic { width: 12px; height: 12px; flex: none; fill: currentColor; stroke: none; }
.stars-lg .ic { width: 20px; height: 20px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.logo { grid-column: 2; display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform .35s var(--spring); }
.logo img { width: 34px; height: 34px; display: block; transition: transform .5s var(--spring); }
.logo:hover { color: var(--ink); }
.logo:hover img { transform: rotate(-10deg) scale(1.08); }
.logo:active { transform: scale(.95); }
.nav { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .3s var(--spring); }
.nav a:hover { background: var(--glass); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--pill); color: var(--pill-ink); }
.nav a:active { transform: scale(.95); }
.nav .ic { width: 18px; height: 18px; }
.header-tools { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.search { position: relative; flex: 1; min-width: 0; max-width: 300px; }
.search > .ic { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 44px 0 42px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow-s); font-size: 15px; font-weight: 500; outline: none; transition: box-shadow .2s; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { box-shadow: 0 0 0 3px var(--focus), var(--shadow-s); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); min-width: 24px; height: 24px; padding: 0 7px; border-radius: 8px; background: var(--surface-2); color: var(--ink-3); font: 700 12px/24px var(--body); text-align: center; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.results { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 480px); overflow: auto; padding: 8px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-l); animation: pop-in .28s var(--ease); }
.results a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.results a[aria-selected="true"], .results a:hover { background: var(--surface-2); }
.results b { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.results small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .cat { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.results .empty { padding: 14px 12px; font-size: 14.5px; color: var(--ink-2); }
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink); transition: transform .3s var(--spring), background .2s; }
.icon-btn:active { transform: scale(.9); }
.icon-btn .ic { width: 20px; height: 20px; }
.search-btn { display: none; }
.nav a { padding: 0 10px; gap: 6px; }
@media (max-width: 1200px) { .nav a span { display: none; } .nav a { padding: 0 11px; } }
@media (max-width: 860px) {
  .header-inner { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
  .nav { display: none; }
  .search-btn { display: grid; grid-column: 1; grid-row: 1; }
  .logo { justify-self: center; font-size: 20px; }
  .logo img { width: 30px; height: 30px; }
  .header-tools { display: contents; }
  .header-tools > .theme-btn { grid-column: 3; grid-row: 1; }
  .search { display: none; }
  .header.searching .search { display: block; position: absolute; max-width: none; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 6px); }
  .header.searching .search input { height: 52px; box-shadow: var(--shadow-l); }
  .header.searching .results { left: 0; right: 0; width: auto; }
}

/* ---------- Tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { position: fixed; z-index: 110; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--pill); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55); transform: translate3d(-50%, 0, 0); }
  .tab-ind { position: absolute; top: 6px; left: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--tab-ind); transform: translateX(var(--x, 6px)); transition: transform .55s var(--spring); }
  .tabbar a, .tabbar button { position: relative; z-index: 1; width: 54px; height: 54px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--pill-ink-2); transition: color .3s; }
  .tabbar [aria-current="page"] { color: var(--tab-ind-ink); }
  .tabbar .ic { width: 23px; height: 23px; transition: transform .25s var(--spring); }
  .tabbar a:active .ic, .tabbar button:active .ic { transform: scale(.86); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .25s var(--spring), background .2s, color .2s, opacity .2s, box-shadow .2s, filter .2s; }
.btn:active:not(:disabled) { transform: scale(.95); }
.btn:disabled { opacity: .38; cursor: default; box-shadow: none; }
.btn .ic { width: 19px; height: 19px; }
.btn-primary { background: var(--pill); color: var(--pill-ink); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.btn-primary:hover { color: var(--pill-ink); filter: brightness(1.15); }
.btn-brand { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--brand) 90%, #000); }
.btn-brand:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: var(--surface-3); color: var(--ink); }
.btn-glass { background: var(--glass); color: var(--ink); }
.btn-glass:hover { background: var(--surface); color: var(--ink); }
.btn-text { background: none; color: var(--ink-2); padding: 0 12px; }
.btn-text:hover { background: var(--glass); color: var(--ink); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Chips, segmented control ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink-2); font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, transform .3s var(--spring); }
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--pill); color: var(--pill-ink); }
.chip .ic { width: 16px; height: 16px; }
.chip-glass { background: var(--glass); box-shadow: none; color: var(--ink); height: 34px; padding: 0 14px 0 10px; font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-s); transition: transform .5s var(--spring), width .5s var(--spring); }
.seg button { position: relative; z-index: 1; min-height: 42px; padding: 4px 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14.5px; font-weight: 700; transition: color .25s; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.seg button small { font-size: 11.5px; font-weight: 600; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg.block { display: grid; width: 100%; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.value { font-family: var(--display); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.hint { font-size: 13.5px; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--ink); font-size: 16px; font-weight: 500; outline: none; transition: box-shadow .2s, background .2s; }
.textarea { min-height: 160px; padding: 16px 18px; line-height: 1.55; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { background: var(--surface); box-shadow: 0 0 0 3px var(--focus); }
.select { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.input-unit { position: relative; }
.input-unit .input { padding-right: 56px; }
.input-unit span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--pill) var(--p), var(--surface-3) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform .25s var(--spring); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--surface-3); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--pill); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--focus); }
.switch { position: relative; width: 52px; height: 32px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .3s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .45s var(--spring), width .2s var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:active + span::after { width: 31px; }
.switch input:checked:active + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row b { display: block; font-weight: 700; }
.toggle-row small { display: block; color: var(--ink-2); font-size: 13.5px; }
.choice { display: grid; gap: 8px; }
.choice button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--surface-2); text-align: left; transition: box-shadow .2s, background .2s, transform .3s var(--spring); }
.choice button:active { transform: scale(.98); }
.choice button i { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface-3); background: var(--surface); transition: border .2s; }
.choice button b { font-weight: 700; }
.choice button span { font-size: 13.5px; color: var(--ink-2); }
.choice button[aria-checked="true"] { background: var(--surface); box-shadow: 0 0 0 2.5px var(--ink); }
.choice button[aria-checked="true"] i { border: 7px solid var(--ink); }

/* ---------- Cards ---------- */
.card { border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); padding: 24px; }
.card-quiet { box-shadow: var(--shadow-s); }
.tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--cat-bg, var(--surface-2)); color: var(--cat, var(--ink)); }
.tile .ic { width: 22px; height: 22px; }
.tile-lg { width: 60px; height: 60px; border-radius: 20px; }
.tile-lg .ic { width: 28px; height: 28px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; background: var(--glass); }
.tag-pop { color: var(--brand-text); background: var(--brand-soft); }
.tag-new { color: var(--ok); background: var(--ok-bg); }
.hero-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 36px; background: var(--cat-bg, var(--brand-soft)); }
.hero-deco { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink); opacity: .07; pointer-events: none; }
.hero-copy { position: relative; min-width: 0; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.circled { position: relative; display: inline-block; padding: 0 4px; white-space: nowrap; }
.circled svg { position: absolute; left: -16px; top: -12px; width: calc(100% + 32px); height: calc(100% + 26px); fill: none; stroke: var(--ink); stroke-width: 2.4; overflow: visible; pointer-events: none; }
.circled path { stroke-dasharray: 380; stroke-dashoffset: 380; animation: draw 1.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Tool cards (grids and carousels) */
.tcard { position: relative; display: flex; flex-direction: column; min-height: 236px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-s); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .4s var(--spring), box-shadow .3s; }
.tcard:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); }
.tcard:active { transform: scale(.97); }
.tcard-art { position: relative; height: 104px; display: grid; place-items: center; background: var(--cat-bg); }
[data-theme="dark"] .tcard-art { background: color-mix(in srgb, var(--cat) 11%, var(--surface)); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); }
[data-theme="dark"] .tcard-art .tile { background: var(--surface-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 18px -10px rgba(0, 0, 0, .8); }
.tcard-art .tile { width: 60px; height: 60px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-s); transition: transform .5s var(--spring); }
.tcard-art .tile .ic { width: 28px; height: 28px; }
.tcard:hover .tcard-art .tile { transform: rotate(-6deg) scale(1.08); }
.tcard-art .tag { position: absolute; top: 12px; right: 12px; }
.tcard-body { padding: 16px 18px 0; flex: 1; }
.tcard-body b { display: block; font-family: var(--display); font-weight: 600; font-size: 18.5px; letter-spacing: -.015em; line-height: 1.2; }
.tcard-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); font-weight: 500; }
.tcard-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 14px 18px 18px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 800; transition: background .25s, color .25s, gap .3s var(--spring); }
.tcard-go .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.tcard:hover .tcard-go { background: var(--pill); color: var(--pill-ink); gap: 9px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }

/* Carousels */
.row + .row { margin-top: 34px; }
.row-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.row-head .tile { width: 48px; height: 48px; border-radius: 16px; }
.row-head h3 { font-size: 24px; }
.row-head p { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.row-nav { display: flex; align-items: center; gap: 8px; }
.row-nav .see { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.row-nav .see:hover { background: var(--glass); }
.arrow { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); transition: transform .3s var(--spring), opacity .2s; }
.arrow:active { transform: scale(.9); }
.arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: -6px -4px -10px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .row .track > * { opacity: 0; transform: translate3d(28px, 0, 0); }
  .row.seen .track > * { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms), transform .7s var(--ease) calc(var(--i, 0) * 70ms), box-shadow .3s; }
  .row.seen .track > .tcard:hover { transform: translateY(-5px); transition-delay: 0s; }
}
@media (max-width: 640px) {
  .row-head { grid-template-columns: 44px minmax(0, 1fr); }
  .row-nav { grid-column: 1 / -1; }
  .row-nav .see { padding: 0; }
  .arrow { display: none; }
  .track { grid-auto-columns: 74%; }
}

/* ---------- Tool flow: steps, drop zone, files, options, progress, result ---------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.steps li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.steps ol { display: contents; }
.steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-size: 13px; transition: background .3s, color .3s, transform .4s var(--spring); }
.steps .on { color: var(--ink); }
.steps .on i { background: var(--pill); color: var(--pill-ink); transform: scale(1.1); }
.steps .done i { background: var(--ok-bg); color: var(--ok); }
.steps .sep { width: 28px; height: 2px; border-radius: 2px; background: var(--surface-3); }
.dropzone { position: relative; display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 6vw, 56px) 20px; border-radius: 30px; border: 2.5px dashed color-mix(in srgb, var(--cat, var(--brand-text)) 40%, transparent); background: var(--surface); text-align: center; transition: background .25s, border-color .25s, transform .4s var(--spring); }
.dropzone.over { background: color-mix(in srgb, var(--cat-bg, var(--brand-soft)) 70%, var(--surface)); border-color: var(--cat, var(--brand-text)); transform: scale(1.01); }
.dropzone h3 { font-size: 24px; }
.dropzone p { color: var(--ink-2); font-size: 15px; }
.dropzone .or { font-size: 14px; color: var(--ink-3); }
.dropzone .tile-lg { background: var(--cat-bg, var(--brand-soft)); color: var(--cat, var(--brand-text)); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.file { position: relative; display: grid; gap: 8px; padding: 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); transition: transform .35s var(--spring), box-shadow .25s, opacity .25s; touch-action: none; }
.file.dragging { transform: scale(1.04) rotate(-2deg); box-shadow: var(--shadow-l); z-index: 2; }
.file-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.file-thumb canvas, .file-thumb img { width: 100%; height: 100%; object-fit: contain; }
.file-thumb .badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: var(--cat-bg, var(--surface-3)); color: var(--cat, var(--ink)); font-size: 11px; font-weight: 800; }
.file b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.file .remove { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pill); color: var(--pill-ink); box-shadow: var(--shadow-s); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .3s var(--spring); }
.file:hover .remove, .file:focus-within .remove { opacity: 1; transform: none; }
@media (hover: none) { .file .remove { opacity: 1; transform: none; } }
.file .remove .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.add-more { display: grid; place-items: center; gap: 6px; border: 2px dashed var(--surface-3); border-radius: 22px; background: none; color: var(--ink-2); font-weight: 700; font-size: 14px; min-height: 180px; transition: border-color .2s, color .2s; }
.add-more:hover { border-color: var(--ink-3); color: var(--ink); }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.panel { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; padding: 22px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.panel h3 { font-size: 21px; }
@media (max-width: 860px) { .workbench { grid-template-columns: minmax(0, 1fr); } .panel { position: static; } }
.progress { position: relative; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--v, 0%); border-radius: 999px; background: var(--pill); transition: width .3s var(--ease); }
.progress.indeterminate i { width: 35%; animation: slide 1.2s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.result { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: clamp(28px, 5vw, 48px) 20px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.result h2 { font-size: clamp(26px, 3.4vw, 34px); }
.result .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result .stat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result .stat b { color: var(--ok); }
.next { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.next > span { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Notices, empty states ---------- */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); font-size: 15px; }
.notice .ic { margin-top: 2px; }
.notice b { font-weight: 700; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice a { color: inherit; font-weight: 700; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--ink-2); }

/* ---------- Sheet, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 300; background: var(--scrim); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.scrim.show { opacity: 1; }
.sheet { position: fixed; z-index: 301; left: 0; right: 0; bottom: 0; margin-inline: auto; width: 100%; max-width: 540px; max-height: 88vh; overflow: auto; padding: 10px 22px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 32px 32px 0 0; background: var(--surface); box-shadow: var(--shadow-l); transform: translate3d(0, 105%, 0); transition: transform .5s var(--ease); }
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 999px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet h3 { font-size: 24px; margin-bottom: 12px; }
@media (min-width: 861px) { .sheet { bottom: auto; top: 50%; border-radius: 32px; transform: translate3d(0, calc(-50% + 30px), 0) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .25s; } .sheet.show { transform: translate3d(0, -50%, 0); opacity: 1; } .sheet .grab { display: none; } }
.list { border-radius: 22px; background: var(--surface-2); overflow: hidden; }
.list > a, .list > button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px; border: 0; background: none; text-align: left; color: var(--ink); font-weight: 700; text-decoration: none; }
.list > * + * { border-top: 1px solid var(--line); }
.list small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.list .tile { width: 40px; height: 40px; border-radius: 13px; }
.toast { position: fixed; z-index: 400; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 14px); width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--pill); color: var(--pill-ink); font-size: 14.5px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transform: translate3d(0, -160%, 0); opacity: 0; transition: transform .55s var(--spring), opacity .3s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }
.toast i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tab-ind); color: var(--tab-ind-ink); font-style: normal; flex: none; }

/* ---------- Kora: spots, actor, dock, speech bubble, wardrobe ---------- */
.kora-spot { position: relative; flex: none; width: var(--size, 160px); height: var(--size, 160px); }
.actor { position: relative; width: 100%; height: 100%; transform-origin: 50% 92%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.actor .kora-host { width: 100%; height: 100%; }
.dock { position: fixed; z-index: 120; width: 76px; height: 76px; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.dock .actor { pointer-events: auto; }
.launch { position: fixed; z-index: 120; pointer-events: none; }
.say {
  position: absolute; z-index: 2; bottom: calc(100% - 4px); left: 50%; width: max-content; max-width: min(280px, 70vw);
  padding: 11px 16px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font-size: 14.5px; font-weight: 600; line-height: 1.4; text-align: left;
  transform: translate(-50%, 6px) scale(.92); transform-origin: 50% 100%; opacity: 0; pointer-events: none;
  transition: transform .45s var(--spring), opacity .2s;
}
.say::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 15px; height: 15px; margin-left: -7.5px; background: var(--surface); border-radius: 0 0 4px 0; transform: rotate(45deg); }
.say.show { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.say .say-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.say .say-actions a, .say .say-actions button { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--pill); color: var(--pill-ink); font-size: 13px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; }
.say .say-actions .soft { background: var(--surface-2); color: var(--ink); }
[data-say="left"] .say, .dock .say { left: auto; right: calc(100% + 4px); bottom: 34%; transform: translate(6px, 0) scale(.92); transform-origin: 100% 50%; }
[data-say="left"] .say.show, .dock .say.show { transform: none; }
[data-say="left"] .say::after, .dock .say::after { left: auto; right: -6px; bottom: 18px; margin: 0; transform: rotate(-45deg); }
.wardrobe-stage { height: 200px; border-radius: 28px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 12px; }
.wardrobe-kora { width: 176px; height: 176px; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
.wardrobe-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; transition: transform .3s var(--spring), box-shadow .2s; }
.wardrobe-opt:active { transform: scale(.94); }
.wardrobe-opt[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); color: var(--ink); background: var(--surface); }
.wardrobe-opt .mini { width: 100%; max-width: 72px; aspect-ratio: 1; display: block; }

/* ---------- Content: prose, FAQ, breadcrumbs ---------- */
.prose { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); color: var(--ink); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 21px; color: var(--ink); margin: 1.4em 0 .4em; }
.prose p + p, .prose ul, .prose ol { margin-top: .9em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--ink); }
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--spring); flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Ad spaces (reserved sizes so nothing jumps when ads load) ---------- */
.ad-slot { display: grid; place-items: center; min-height: 280px; border-radius: 24px; background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot:empty::before { content: "Advertisement"; }

/* ---------- Footer ---------- */
.footer { margin-top: 72px; padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); border-radius: 40px 40px 0 0; background: var(--surface); box-shadow: var(--shadow-s); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer .footer-title { font-size: 15px; font-family: var(--body); font-weight: 800; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--ink); }
.footer .promise { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); border-radius: 30px; }
  .hero-art { order: -1; flex-direction: row; align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .circled path { stroke-dashoffset: 0; }
}

/* ---------- Shell extras ---------- */
.when-dark { display: none; }
[data-theme="dark"] .when-dark { display: contents; }
[data-theme="dark"] .when-light { display: none; }
@media (max-width: 860px) { .more-btn { display: none; } }
.results mark { background: var(--brand-soft); color: inherit; border-radius: 4px; padding: 0 1px; }
.results-label { padding: 8px 12px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.results .tile { width: 40px; height: 40px; border-radius: 13px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
.row.dragging .track { cursor: grabbing; }
.row.dragging .tcard { pointer-events: none; }
.tour-focus { position: relative; z-index: 5; outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 22px; transition: outline-offset .4s var(--spring); }
.actor:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 50%; }

/* Kora's bubble: stays on screen (--nx) and reveals word by word */
.say { transform: translate(calc(-50% + var(--nx, 0px)), 6px) scale(.92); }
.say.show { transform: translate(calc(-50% + var(--nx, 0px)), 0) scale(1); }
.say::after { left: calc(50% - var(--nx, 0px)); }
[data-say="left"] .say, .dock .say { transform: translate(6px, 0) scale(.92); }
[data-say="left"] .say.show, .dock .say.show { transform: none; }
[data-say="left"] .say::after, .dock .say::after { left: auto; }
[data-say="right"] .say { left: calc(100% + 4px); bottom: 34%; transform: translate(-6px, 0) scale(.92); transform-origin: 0 50%; }
[data-say="right"] .say.show { transform: none; }
[data-say="right"] .say::after { left: -6px; bottom: 18px; margin: 0; transform: rotate(135deg); }
@media (prefers-reduced-motion: no-preference) {
  .say.show .w { display: inline-block; animation: word .42s var(--ease) both; animation-delay: calc(var(--w) * 26ms + 60ms); }
}
@keyframes word { from { opacity: 0; transform: translateY(5px); filter: blur(2px); } }
@media (max-width: 640px) { .say { max-width: min(240px, 62vw); font-size: 14px; padding: 10px 14px; } }

/* ---------- Layout helpers ---------- */
.stack { display: grid; gap: 16px; align-content: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Style guide (/design) ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch { display: grid; gap: 2px; padding: 10px 10px 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); }
.swatch span { height: 78px; border-radius: 15px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font: 600 26px var(--display); }
.swatch b { font-size: 14.5px; padding: 0 4px; }
.swatch code, .swatch small { font: 500 12px var(--mono); color: var(--ink-3); padding: 0 4px; }
.type-specimen { display: grid; gap: 22px; }
.type-specimen > div > small { display: block; font: 600 12px var(--mono); color: var(--ink-3); margin-bottom: 4px; }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.face { display: grid; justify-items: center; gap: 2px; padding: 10px 8px 12px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink-2); font-weight: 700; font-size: 13.5px; transition: transform .35s var(--spring), box-shadow .25s; }
.face:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.face:active { transform: scale(.95); }
.face span { width: 88px; height: 88px; display: block; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.icon-grid div { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-s); font: 500 11.5px var(--mono); color: var(--ink-3); text-align: center; word-break: break-all; }
.icon-grid .ic { width: 26px; height: 26px; color: var(--ink); }
.motion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.motion-demo { display: grid; gap: 4px; justify-items: start; text-align: left; border: 0; color: var(--ink); }
.motion-demo b { font: 600 20px var(--display); margin-top: 10px; }
.motion-demo code { font: 500 12px var(--mono); color: var(--brand-text); }
.motion-demo small { color: var(--ink-2); font-size: 14px; }
.motion-demo .ball { width: 100%; height: 56px; border-radius: 16px; background: var(--surface-2); position: relative; }
.motion-demo .ball::after { content: ""; position: absolute; left: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); transform: translateX(var(--to, 0)); }
.motion-demo[data-motion="spring"] .ball::after { transition: transform .7s var(--spring); }
.motion-demo[data-motion="ease"] .ball::after { transition: transform .7s var(--ease); }
.motion-demo.go .ball::after { --to: calc(var(--track, 180px)); }

/* =====================================================================
   Pages (step 2)
   ===================================================================== */
.section-tight { padding-block: 24px 8px; }
[data-reveal] > * { --i: 0; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] > * { opacity: 0; transform: translate3d(0, 22px, 0); }
  [data-reveal].seen > * { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * 60ms), transform .7s var(--ease) calc(var(--i, 0) * 60ms), box-shadow .3s; }
  [data-reveal].seen > .tcard:hover { transform: translateY(-5px); transition-delay: 0s; }
}
.tgrid[data-reveal] > .tcard:nth-child(n) { --i: 0; }

/* Page heroes without a coloured card */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 0 8px; }
.page-hero-text { padding-top: 18px; }
.page-hero-text .h-display { font-size: clamp(38px, 5.4vw, 60px); }
@media (max-width: 640px) { .page-hero .kora-spot { --size: 96px !important; } .page-hero { gap: 10px; } }

/* Tool page */
.tool-title { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin-top: 14px; }
.tool-hero .lede { margin-top: 12px; }
.tool-app { position: relative; display: grid; gap: 18px; padding: clamp(16px, 2.4vw, 26px); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.tool-app .dropzone { border-radius: 26px; background: color-mix(in srgb, var(--cat-bg) 35%, var(--surface)); }
.tool-app .dropzone .hint { display: inline-flex; align-items: center; gap: 6px; }
.tool-app .dropzone .hint .ic { width: 16px; height: 16px; }
.tool-app > .label { margin-bottom: -8px; }
.soon-note { align-items: center; }
.calc-skeleton { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.calc-skeleton .card { display: grid; gap: 12px; align-content: start; background: var(--surface-2); box-shadow: none; }
.sk { display: block; height: 14px; width: 40%; border-radius: 8px; background: var(--surface-3); position: relative; overflow: hidden; }
.sk-bar { width: 100%; height: 10px; margin-bottom: 10px; }
.sk-big { width: 70%; height: 38px; border-radius: 12px; }
.sk-ring { width: 150px; height: 150px; border-radius: 50%; margin: 10px auto 0; background: conic-gradient(var(--cat) 0 62%, var(--surface-3) 0); -webkit-mask: radial-gradient(circle 52px, transparent 98%, #000); mask: radial-gradient(circle 52px, transparent 98%, #000); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .sk, .sk-ring { animation: sk-pulse 1.5s ease-in-out infinite; }
}
@keyframes sk-pulse { 50% { opacity: .55; } }
@media (max-width: 760px) { .calc-skeleton { grid-template-columns: minmax(0, 1fr); } }

.tool-docs { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.tool-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 960px) { .tool-docs { grid-template-columns: minmax(0, 1fr); } .tool-side { position: static; } }
.side-card { display: grid; gap: 12px; padding: 18px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; }
.side-title { font-size: 17px; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.tlinks { display: grid; gap: 6px; }
.tlink { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 16px; color: var(--ink); text-decoration: none; transition: background .2s, transform .3s var(--spring); }
.tlink:hover { background: var(--surface-2); color: var(--ink); }
.tlink:active { transform: scale(.98); }
.tlink .tile { width: 40px; height: 40px; border-radius: 13px; }
.tlink b { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.tlink small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlink > .ic { width: 18px; height: 18px; color: var(--ink-3); }
.tool-docs .tlinks .tlink { margin: 0; }

.howto { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px !important; }
.howto li { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink); font-size: 15.5px; line-height: 1.45; margin: 0 !important; }
.howto i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cat-bg, var(--brand-soft)); color: var(--cat, var(--brand-text)); font: 700 15px var(--display); font-style: normal; }
@media (max-width: 640px) { .howto { grid-template-columns: minmax(0, 1fr); } .howto li { grid-template-columns: 32px minmax(0, 1fr); align-items: center; } }
.prose h2:first-child { margin-top: 0; }
.prose code { font: 500 .9em var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.prose blockquote { margin: 1em 0; padding: 14px 18px; border-radius: 18px; background: var(--brand-soft); color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose a { font-weight: 600; }
.prose .faq { margin-top: 14px; }
.prose-card { max-width: none; padding: clamp(22px, 4vw, 40px); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-s); margin-top: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.toc b { font-weight: 800; color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.toc a { padding: 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--ink); }

/* All tools */
.filter-bar { display: grid; gap: 14px; margin: 18px 0 8px; }
.search-big { max-width: none; }
.search-big input { height: 58px; font-size: 17px; padding-left: 50px; box-shadow: var(--shadow); }
.search-big > .ic { left: 19px; width: 21px; height: 21px; }
.chip .count { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cat-block { padding-top: 34px; }
.cat-block .row-head h2 { font-size: 24px; }
.kora-mini { width: 110px; height: 110px; }
#all-empty { margin-top: 30px; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.guide-card { display: flex; flex-direction: column; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .4s var(--spring), box-shadow .3s; }
.guide-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); }
.guide-art { height: 110px; display: grid; place-items: center; background: var(--cat-bg); }
.guide-art .tile { width: 60px; height: 60px; border-radius: 20px; background: var(--surface); }
.guide-art .tile .ic { width: 28px; height: 28px; }
.guide-body { display: grid; gap: 6px; padding: 16px 18px 0; flex: 1; }
.guide-body small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.guide-body b { font: 600 20px/1.2 var(--display); letter-spacing: -.015em; }
.guide-body span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.guide-card .tcard-go { margin-top: 16px; }
.guide-card:hover .tcard-go { background: var(--pill); color: var(--pill-ink); }
.try-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 20px; padding: 16px 18px; border-radius: 26px; background: var(--cat-bg, var(--brand-soft)); color: var(--ink); text-decoration: none; transition: transform .35s var(--spring); }
.try-card:hover { color: var(--ink); transform: translateY(-3px); }
.try-card .tile { background: var(--surface); }
.try-card small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cat, var(--brand-text)); }
.try-card b { display: block; font: 600 20px var(--display); }
.try-card span > span { display: block; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .try-card { grid-template-columns: auto minmax(0, 1fr); } .try-card .btn { grid-column: 1 / -1; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card { padding: clamp(20px, 3.4vw, 32px); display: grid; gap: 14px; }
.form-card form { display: grid; gap: 18px; }
.form-card .field + .field { margin-top: 0; }
.choice-chips .chip { box-shadow: none; background: var(--surface-2); }
.choice-chips .chip[aria-checked="true"] { background: var(--pill); color: var(--pill-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { font-size: 13.5px; font-weight: 700; color: var(--bad); }
[aria-invalid="true"] { box-shadow: 0 0 0 2.5px var(--bad) !important; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-done { display: grid; justify-items: center; gap: 12px; padding: 30px 10px; text-align: center; }
.contact-mail { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
.contact-mail small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.contact-mail b { display: block; font-weight: 700; word-break: break-all; }
.contact-mail:hover { color: var(--ink); }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.ticks .ic { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }

/* Home */
.hero-home { min-height: 460px; }
.howitworks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how { position: relative; display: grid; gap: 8px; padding: 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-s); overflow: hidden; }
.how b { font: 600 21px var(--display); letter-spacing: -.015em; margin-top: 8px; }
.how small { color: var(--ink-2); font-size: 15px; }
.how-n { position: absolute; right: 18px; top: 4px; font: 700 76px/1 var(--display); color: var(--surface-2); letter-spacing: -.04em; pointer-events: none; }
.how .tile { position: relative; }
@media (max-width: 760px) { .howitworks { grid-template-columns: minmax(0, 1fr); } }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.promise-grid .card { display: grid; gap: 8px; }
.promise-grid .h-card { margin-top: 8px; }
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .faq-split { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(26px, 4vw, 44px); border-radius: 34px; background: var(--cat-bg); }
.cta-band .lede { margin-top: 8px; }

/* Ad spaces */
.ad-wide { min-height: 120px; margin-top: 20px; }
.ad-side { min-height: 600px; }
@media (max-width: 960px) { .ad-side { min-height: 280px; } }

/* =====================================================================
   Tool engine (step 3): workbench, file cards, page thumbnails, results
   ===================================================================== */
.tool-app.drag-over { box-shadow: 0 0 0 3px var(--cat, var(--focus)), var(--shadow); }
.workbench { margin-top: 2px; }
.wb-main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.wb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wb-count { font-weight: 700; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-actions .btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.wb-actions .btn-sm .ic { width: 16px; height: 16px; }
.flip-x .ic { transform: scaleX(-1); }
.wb-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 180px; color: var(--ink-2); font-weight: 600; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--cat, var(--ink)); animation: spin .8s linear infinite; }
.file-thumb .spinner, .page-paper .spinner { position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy .files, .busy .pages, .busy .wb-bar { opacity: .55; pointer-events: none; transition: opacity .3s; }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.file { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: grab; }
.file-thumb canvas, .file-thumb img { display: block; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.file-thumb canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.file .order { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; background: var(--pill); color: var(--pill-ink); font: 700 12.5px var(--body); font-variant-numeric: tabular-nums; }
.file.locked .file-thumb, .file.broken .file-thumb { background: var(--bad-bg); color: var(--bad); }
.file.locked::after { content: "Password"; position: absolute; left: 18px; bottom: 58px; padding: 2px 8px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; }
.dragging { z-index: 20; box-shadow: var(--shadow-l) !important; cursor: grabbing; transition: none !important; }
.sorting { cursor: grabbing; }
.add-more { min-height: 200px; }
.add-more span { display: block; }

.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.page { position: relative; display: grid; gap: 6px; justify-items: center; padding: 8px 8px 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-s); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; transition: box-shadow .2s, transform .3s var(--spring), background .2s; }
.page.mode-remove, .page.mode-keep { cursor: pointer; }
.page:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.page-thumb { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.page-paper { position: relative; width: 82%; height: 82%; display: grid; place-items: center; transform: rotate(var(--rot, 0deg)); transition: transform .5s var(--spring); }
.page-paper canvas { max-width: 100%; max-height: 100%; box-shadow: 0 1px 5px rgba(0, 0, 0, .16); background: #fff; }
.page-no { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.page-rot { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pill); color: var(--pill-ink); box-shadow: var(--shadow-s); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .3s var(--spring); }
.page:hover .page-rot, .page:focus-within .page-rot, .page.turned .page-rot { opacity: 1; transform: none; }
@media (hover: none) { .page-rot { opacity: 1; transform: none; } }
.page-rot .ic { width: 17px; height: 17px; }
.page.turned { box-shadow: 0 0 0 2.5px var(--ink), var(--shadow-s); }
.page-mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .35s var(--spring); pointer-events: none; }
.page-mark .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; color: #fff; stroke-width: 2.4; }
.page.mode-remove .page-mark .ic { background: var(--bad); }
.page.mode-keep .page-mark .ic { background: var(--ok); }
.page.sel .page-mark { opacity: 1; transform: none; }
.page.mode-remove.sel { background: var(--bad-bg); }
.page.mode-remove.sel .page-paper { opacity: .35; transform: rotate(var(--rot, 0deg)) scale(.9); }
.page.mode-keep.sel { box-shadow: 0 0 0 2.5px var(--ok), var(--shadow-s); background: var(--ok-bg); }
.page:active { transform: scale(.97); }
.reorder .page { cursor: grab; }

.panel .panel-form { display: grid; gap: 16px; }
.panel .panel-form .field + .field { margin-top: 0; }
.panel .toggle-row { min-height: 52px; }
.panel-sum { text-align: center; min-height: 1.4em; }
.panel-sum.warn { color: var(--warn); font-weight: 700; }
.panel-msg:empty { display: none; }
.value-sm { font-size: 17px; }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--ink-3); }
.reveal.on { color: var(--ink); }
.input-unit .input + .reveal { right: 6px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-row button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .3s var(--spring), box-shadow .2s; }
.swatch-row button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); transform: scale(1.06); }
.grid9 { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 6px; padding: 8px; border-radius: 18px; background: var(--surface-2); width: max-content; }
.grid9 button { border: 0; border-radius: 10px; background: var(--surface); display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.grid9 button i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); transition: background .2s, transform .3s var(--spring); }
.grid9 button[aria-checked="true"] { background: var(--pill); }
.grid9 button[aria-checked="true"] i { background: var(--pill-ink); transform: scale(1.2); }

.result-tick { background: var(--ok-bg) !important; color: var(--ok) !important; }
.result-tick .ic { stroke-width: 2.6; }
.result-actions { justify-content: center; max-width: 100%; }
.result-actions .btn { max-width: 100%; min-width: 0; }
.btn-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-text { width: min(760px, 100%); min-height: 260px; font: 500 14.5px/1.6 var(--mono); background: var(--surface-2); }
.result-extra:empty { display: none; }
.result-extra { width: 100%; min-width: 0; }
.result-hint { max-width: 520px; margin: 0; }
.result-hint b { color: var(--ink); }

/* Word to PDF: the pages, laid out by docx-preview, in a scrolling frame */
.docx-stage { position: absolute; left: -10000px; top: 0; width: 1400px; visibility: hidden; pointer-events: none; }
.docx-view { width: min(900px, 100%); margin: 4px auto 0; max-height: min(70vh, 760px); overflow: auto; overscroll-behavior: contain; border-radius: 22px; background: var(--surface-3); text-align: left; }
.docx-view .docx-wrapper { background: transparent; padding: 16px 16px 0; }
.docx-view .docx-wrapper > section.docx { box-shadow: var(--shadow-s); margin-bottom: 16px; border-radius: 4px; color: #000; }
section.docx { display: flex; flex-direction: column; }
section.docx > article { flex: 1 0 auto; }
.file-list { width: min(560px, 100%); text-align: left; }
.file-list summary { cursor: pointer; font-weight: 700; color: var(--ink-2); text-align: center; padding: 6px; }
.file-list .tlinks { margin-top: 8px; max-height: 320px; overflow: auto; padding: 2px 10px; }
.file-list .tlink > .ic { color: var(--ink-2); }
.page.in-part { box-shadow: 0 0 0 2.5px var(--part-c, var(--cat)), var(--shadow-s); }
.page[data-part="1"] { --part-c: var(--developer); }
.page[data-part="2"] { --part-c: var(--calculator); }
.page[data-part="3"] { --part-c: var(--text); }
.page[data-part="4"] { --part-c: var(--warn); }
.page[data-part="5"] { --part-c: var(--brand-text); }
.panel .seg button { padding: 4px 10px; white-space: nowrap; }

/* =====================================================================
   Calculators (step 4)
   ===================================================================== */
.tool-app.calc-ready { padding: clamp(16px, 2.6vw, 28px); }
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { display: grid; gap: 22px; align-content: start; }
.calc-in .field + .field { margin-top: 0; }
.cf .label-row { align-items: center; }
.cf-box { display: inline-flex; align-items: center; height: 46px; min-width: 120px; max-width: 62%; padding: 0 14px; border-radius: 14px; background: var(--surface-2); transition: box-shadow .2s, background .2s; }
.cf-box:focus-within { background: var(--surface); box-shadow: 0 0 0 3px var(--focus); }
.cf-box .pre, .cf-box .suf { color: var(--ink-3); font-weight: 700; flex: none; }
.cf-box .pre { margin-right: 4px; }
.cf-box .suf { margin-left: 6px; font-size: 14px; }
.cf-input { width: 100%; min-width: 0; border: 0; background: none; outline: none; text-align: right; font: 600 19px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cf .range { margin-top: 2px; }
.cf-hint { min-height: 1.3em; margin-top: -4px; }
.calc-out { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 26px); border-radius: 28px; background: var(--cat-bg, var(--brand-soft)); }
@media (max-width: 860px) { .calc-out { position: static; } }
.calc-main { display: grid; gap: 2px; }
.calc-main small { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cat, var(--brand-text)); }
.calc-main .big { font: 600 clamp(38px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); }
.calc-main .words { font-weight: 700; color: var(--ink-2); min-height: 1.4em; }
.calc-main .sub { font-size: 14.5px; color: var(--ink-2); }
.calc-main .sub b { color: var(--ink); }
.calc-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cmp { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-s); transition: box-shadow .3s, transform .4s var(--spring); }
.cmp small { font-weight: 800; font-size: 12.5px; color: var(--ink-2); }
.cmp b { font: 600 24px var(--display); letter-spacing: -.02em; }
.cmp span { font-size: 13px; color: var(--ink-2); }
.cmp .tag { position: absolute; right: 10px; top: 10px; }
.cmp.best { box-shadow: 0 0 0 2.5px var(--ok), var(--shadow-s); }
.calc-donut { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut { width: 130px; height: 130px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; }
.donut-track { stroke: color-mix(in srgb, var(--surface) 70%, transparent); }
.seg-arc { transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease); }
.tone-a { stroke: var(--cat, var(--brand)); background: var(--cat, var(--brand)); }
.tone-b { stroke: #F5B98D; background: #F5B98D; }
.tone-c { stroke: var(--text); background: var(--text); }
.tone-d { stroke: var(--developer); background: var(--developer); }
[data-theme="dark"] .tone-b { stroke: #E9A57A; background: #E9A57A; }
.legend { list-style: none; padding: 0; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: 14px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend span { color: var(--ink-2); font-weight: 600; }
.legend b { font-variant-numeric: tabular-nums; }
.legend small { grid-column: 2 / -1; margin-top: -4px; font-size: 12px; color: var(--ink-3); }
.calc-rows { display: grid; gap: 0; margin: 0; border-radius: 18px; background: var(--surface); overflow: hidden; }
.calc-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 16px; }
.calc-rows > div + div { border-top: 1px solid var(--line); }
.calc-rows dt { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.calc-rows dt small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.calc-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc-rows .strong dt, .calc-rows .strong dd { color: var(--ink); font-weight: 800; }
.calc-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.calc-note .ic { width: 16px; height: 16px; margin-top: 3px; }
.calc-notes:empty, .calc-compare:empty { display: none; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-actions .btn-soft { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.calc-more { margin-top: 22px; display: grid; gap: 14px; }
.calc-bars .h-card { font-size: 19px; margin-bottom: 10px; }
.bars-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.bars-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bars-legend i { width: 12px; height: 12px; border-radius: 4px; }
.bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(2px, .5vw, 6px); align-items: end; height: 200px; padding: 0 2px 22px; border-bottom: 1px solid var(--line); }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 0 0; outline-offset: 2px; cursor: default; }
.bar span { display: block; width: 100%; min-height: 0; transition: height .6s var(--ease); }
.bar span:first-child { border-radius: 6px 6px 0 0; }
.bar:hover span, .bar:focus span { filter: brightness(.92); }
.bar em { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.bar-tip { min-height: 1.4em; margin-top: 10px; }
.calc-table { border-radius: 20px; background: var(--surface-2); }
.calc-table summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.table-wrap { max-height: 420px; overflow: auto; padding: 0 8px 8px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th { position: sticky; top: 0; background: var(--surface-2); text-align: right; padding: 8px 10px; font-size: 12.5px; color: var(--ink-2); }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .calc-more .bar span { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i) * 18ms); transform-origin: bottom; }
}
@keyframes grow { from { transform: scaleY(0); } }
.cmp .tag { position: static; order: -1; justify-self: start; margin-bottom: 4px; }
@media (max-width: 520px) {
  .calc-donut { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .donut { width: 104px; height: 104px; }
  .legend li { grid-template-columns: 12px minmax(0, 1fr); }
  .legend b { grid-column: 2; font-size: 15px; }
  .legend small { margin-top: -2px; }
  .cmp b { font-size: 21px; }
}

/* =====================================================================
   Text and developer tools (step 5)
   ===================================================================== */
.tool-app.tt-ready { padding: clamp(14px, 2.4vw, 24px); }
.tt { display: grid; gap: 20px; }
.tt.has-panel { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .tt.has-panel { grid-template-columns: minmax(0, 1fr); } .tt-panel { order: -1; } }
.tt-main { display: grid; gap: 14px; min-width: 0; align-content: start; }
.tt-box { display: grid; gap: 8px; }
.tt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.tt-tools { display: flex; flex-wrap: wrap; gap: 2px; }
.tt-tools .btn-sm { min-height: 34px; padding: 0 10px; font-size: 13.5px; }
.tt-tools .btn-sm .ic { width: 15px; height: 15px; }
.tt-in, .tt-res { min-height: 200px; font-size: 16px; line-height: 1.6; }
.tt-res { background: var(--surface-2); }
.textarea.mono, .tt-in.mono, .tt-res.mono { font: 500 14px/1.55 var(--mono); tab-size: 2; }
.tt-in.bad { box-shadow: 0 0 0 2.5px var(--bad); }
.tt-foot { min-height: 1.4em; }
.tt-badge { font-weight: 800; color: var(--ok); }
.tt-res-actions { margin-top: 2px; }
.tt-actions .chip { height: 42px; }
.tt-msg:empty { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { display: grid; gap: 2px; padding: 16px; border-radius: 20px; background: var(--cat-bg); }
.stat-tile b { font: 600 30px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.stat-tile span { font-weight: 700; font-size: 14px; color: var(--cat); }
.stat-tile small { font-size: 12.5px; color: var(--ink-2); }
.stat-tile.big { grid-column: span 2; }
.stat-tile.big b { font-size: 44px; }
@media (max-width: 420px) { .stat-tile.big { grid-column: span 1; } .stat-tile.big b { font-size: 34px; } }
.kw { margin-top: 6px; }
.kw h3 { font-size: 17px; font-family: var(--body); font-weight: 800; margin-bottom: 8px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-list span { display: inline-flex; gap: 6px; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.kw-list b { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.json-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.json-stats span { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; }

/* QR code */
.qr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 24px; align-items: start; }
@media (max-width: 860px) { .qr { grid-template-columns: minmax(0, 1fr); } .qr-card { order: -1; } }
.qr-form { display: grid; gap: 16px; }
.qr-form .field + .field { margin-top: 0; }
.qr-card { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; justify-items: center; padding: 20px; border-radius: 28px; background: var(--cat-bg); }
.qr-frame { width: 100%; max-width: 300px; aspect-ratio: 1; display: grid; place-items: center; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-frame.empty { color: #6a615a; font-weight: 600; font-size: 14px; text-align: center; }
.qr-card .btn-row { justify-content: center; }
.qr-meta { font-size: 13px; color: var(--ink-2); text-align: center; }

/* Password */
.pw { display: grid; gap: 20px; }
.pw-show { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 10px 10px 10px 20px; border-radius: 24px; background: var(--cat-bg); }
.pw-text { font: 600 clamp(20px, 3.4vw, 30px)/1.3 var(--mono); letter-spacing: .02em; word-break: break-all; color: var(--ink); user-select: all; }
.pw-text .d { color: var(--developer); }
.pw-text .s { color: var(--brand-text); }
.pw-meter { display: grid; gap: 6px; }
.pw-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pw-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: var(--c, var(--bad)); transition: width .5s var(--ease), background .3s; }
.pw-meter p { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.pw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .pw-grid { grid-template-columns: minmax(0, 1fr); } }
.pw-more { display: grid; gap: 6px; }
.pw-more button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--surface-2); font: 500 14.5px var(--mono); color: var(--ink); text-align: left; word-break: break-all; transition: background .2s; }
.pw-more button:hover { background: var(--surface-3); }
.pw-more .ic { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.json-err { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 13px/1.5 var(--mono); overflow-x: auto; white-space: pre; }
@media (max-width: 860px) { .qr-card { position: static; } }

/* =====================================================================
   Kora's assistive button and shortcut menu (like iPhone AssistiveTouch)
   ===================================================================== */
.dock { width: 64px; height: 64px; right: auto; bottom: auto; left: calc(100vw - 74px); top: calc(100vh - 170px); pointer-events: auto; touch-action: none; transform: none; transition: opacity .3s, transform .35s var(--spring); }
.dock::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); opacity: 0; transition: opacity .3s; }
.dock:has(.actor)::before { opacity: 1; }
.dock .actor { position: relative; z-index: 1; padding: 5px 6px 7px; cursor: pointer; }
.dock.snap { transition: left .5s var(--spring), top .5s var(--spring), opacity .3s, transform .35s var(--spring); }
.dock.dragging { transition: none; transform: scale(1.12); cursor: grabbing; }
.dock.idle { opacity: .6; }
.dock.idle:hover, .dock.idle:focus-within { opacity: 1; }
.dock.open { transform: scale(1.1); }
.dock.away, .dock.gone { opacity: 0; transform: scale(.4); pointer-events: none; }
.dock[data-say="right"] .say { right: auto; left: calc(100% + 6px); }
.dock[data-say="right"] .say::after { right: auto; left: -6px; }
.kmenu-scrim { position: fixed; inset: 0; z-index: 290; background: rgba(10, 8, 14, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.kmenu-scrim.show { opacity: 1; }
.kmenu { position: fixed; z-index: 291; width: min(340px, calc(100vw - 32px)); padding: 14px; border-radius: 32px; background: color-mix(in srgb, var(--pill) 95%, transparent); color: var(--pill-ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: scale(.25); opacity: 0; transition: transform .45s var(--spring), opacity .2s; }
.kmenu.show { transform: none; opacity: 1; }
.kmenu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kmenu-grid button { display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; border: 0; border-radius: 22px; background: none; color: inherit; font: 700 12.5px/1.25 var(--body); text-align: center; transition: background .2s, transform .3s var(--spring); }
.kmenu-grid button:hover, .kmenu-grid button:focus-visible { background: color-mix(in srgb, var(--pill-ink) 10%, transparent); outline: none; }
.kmenu-grid button:active { transform: scale(.92); }
.kmenu-grid span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pill-ink) 13%, transparent); }
.kmenu-grid .ic { width: 24px; height: 24px; }
.kmenu-grid b { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kmenu-edit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; margin-top: 8px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--pill-ink) 9%, transparent); color: inherit; font: 700 13.5px var(--body); }
.kmenu-edit .ic { width: 17px; height: 17px; }
.kpick .toggle-row .tile { width: 38px; height: 38px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .dock.snap { transition: none; } }

/* ---------- Likes, rating and sharing ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--surface); box-shadow: var(--shadow-s); }
.hero-actions .btn:hover { background: var(--surface-2); }
.like-btn { position: relative; }
.like-btn .heart { display: inline-grid; transition: transform .3s var(--spring); }
.like-btn .heart .ic { width: 20px; height: 20px; color: var(--heart); transition: fill .2s; }
.like-btn[aria-pressed="true"] { background: var(--heart-bg) !important; color: var(--ink); }
.like-btn[aria-pressed="true"] .heart .ic { fill: var(--heart); }
.like-btn .like-n { min-width: 18px; padding: 0 7px; height: 22px; border-radius: 999px; background: var(--surface-2); font-size: 13px; line-height: 22px; font-variant-numeric: tabular-nums; }
.like-btn[aria-pressed="true"] .like-n { background: color-mix(in srgb, var(--heart) 16%, transparent); }
.like-pop { position: absolute; left: 30px; top: 50%; width: 14px; height: 14px; pointer-events: none; color: var(--heart); }
.like-pop .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.tcard-likes { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tcard-likes .ic { width: 14px; height: 14px; color: var(--heart); fill: var(--heart); stroke: none; }
.helpful { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); width: min(560px, 100%); }
.helpful > span { font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.helpful .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Rate KoraTools */
.rate-stage { height: 150px; display: grid; place-items: center; border-radius: 26px; background: var(--brand-soft); }
.rate-kora { width: 128px; height: 128px; }
.rate-q { margin: 14px 0 6px; text-align: center; font-weight: 700; }
.rate-stars { display: flex; justify-content: center; gap: 6px; }
.rate-stars button { width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 16px; background: none; color: var(--star-off); cursor: pointer; transition: transform .25s var(--spring), color .15s; }
.rate-stars button .ic { width: 40px; height: 40px; fill: currentColor; stroke: none; }
.rate-stars button.lit { color: var(--star); }
.rate-stars button:hover { transform: scale(1.12); }
.rate-stars button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rate-word { min-height: 26px; margin: 4px 0 12px; text-align: center; font-weight: 700; color: var(--ink-2); }
.rate-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--surface-2); }
.rate-sum > p { grid-column: 1 / -1; margin: 0; text-align: center; }
.rate-avg { display: grid; justify-items: center; gap: 4px; }
.rate-avg > b { font: 600 40px/1 var(--display); letter-spacing: -.02em; }
.rate-avg small { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.rate-bars { display: grid; gap: 5px; }
.rate-bars div { display: grid; grid-template-columns: 12px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.rate-bars i { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rate-bars b { display: block; height: 100%; border-radius: 999px; background: var(--star); }
.rate-bars small { text-align: right; font-variant-numeric: tabular-nums; }
.rate-more { margin-top: 12px; text-align: center; }
.rate .btn-row { margin-top: 16px; }

/* Share */
.share-banner { margin: 0; border-radius: 20px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1200 / 630; }
.share-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-say { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 14px; }
.share-kora { width: 46px; height: 46px; display: block; }
.share-say p { position: relative; margin: 0; padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.share-url { color: var(--brand-text); font-weight: 700; overflow-wrap: anywhere; word-break: normal; }
.share-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.share-t { display: grid; justify-items: center; gap: 6px; padding: 10px 2px 8px; border: 0; border-radius: 16px; background: none; color: var(--ink); font: 700 12px/1.2 var(--body); text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, transform .25s var(--spring); }
.share-t:hover { background: var(--surface-2); color: var(--ink); }
.share-t:active { transform: scale(.94); }
.share-i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.share-i .ic { width: 22px; height: 22px; }
[data-k="whatsapp"] .share-i { background: #25D366; color: #0B3B1E; }
[data-k="telegram"] .share-i { background: #2AABEE; color: #fff; }
[data-k="x-logo"] .share-i { background: #111; color: #fff; }
[data-k="facebook"] .share-i { background: #1877F2; color: #fff; }
[data-k="mail"] .share-i, [data-k="link"] .share-i { background: var(--surface-3); color: var(--ink); }
[data-theme="dark"] [data-k="x-logo"] .share-i { background: #F4F1F6; color: #111; }
.share-row { margin-top: 14px; }
.share-row .btn { flex: 1 1 200px; min-height: 48px; }
@media (max-width: 420px) { .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Two inputs side by side in an options panel */
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-pair .field { margin: 0; }

/* ---------- Editors: cropper, card sides, signature placing ---------- */
.editor-host { display: grid; gap: 14px; min-width: 0; }
.editor-wait { min-height: 260px; display: grid; place-items: center; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.editor-tools .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.editor-tools .btn[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); }
.crop { position: relative; width: min(100%, calc(56vh * var(--ar, 1))); margin: 0 auto; overflow: hidden; border-radius: 14px; background: var(--surface-3); touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-img { display: block; width: 100%; height: 100%; }
.crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(10, 8, 12, .55); outline: 2px solid #fff; cursor: move; touch-action: none; }
.crop-box:focus-visible { outline: 3px solid var(--focus); }
.crop-box::before, .crop-box::after { content: ""; position: absolute; pointer-events: none; border: 0 solid rgba(255, 255, 255, .5); }
.crop-box::before { top: 0; bottom: 0; left: 33.33%; right: 33.33%; border-width: 0 1px; }
.crop-box::after { left: 0; right: 0; top: 33.33%; bottom: 33.33%; border-width: 1px 0; }
.crop-h { position: absolute; z-index: 1; width: 36px; height: 36px; touch-action: none; }
.crop-h::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .55); }
.crop-h[data-h="nw"] { left: -10px; top: -10px; cursor: nwse-resize; }
.crop-h[data-h="ne"] { right: -10px; top: -10px; cursor: nesw-resize; }
.crop-h[data-h="sw"] { left: -10px; bottom: -10px; cursor: nesw-resize; }
.crop-h[data-h="se"] { right: -10px; bottom: -10px; cursor: nwse-resize; }
.crop-h[data-h="nw"]::after, .crop-h[data-h="sw"]::after { left: 2px; } .crop-h[data-h="ne"]::after, .crop-h[data-h="se"]::after { right: 2px; }
.crop-h[data-h="nw"]::after, .crop-h[data-h="ne"]::after { top: 2px; } .crop-h[data-h="sw"]::after, .crop-h[data-h="se"]::after { bottom: 2px; }
.crop-size { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font: 700 11.5px/1.7 var(--body); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.crop-box.small .crop-size { display: none; }
.crop.dragging .crop-box { cursor: grabbing; }
.edit-preview { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--surface-2); }
.edit-preview canvas, .edit-preview img { display: block; max-height: 120px; max-width: 45%; border-radius: 6px; background: #fff; box-shadow: var(--shadow-s); image-rendering: auto; }
.edit-preview small { display: block; color: var(--ink-2); font-weight: 600; font-size: 13px; line-height: 1.45; }
.edit-preview b { display: block; font-size: 15px; }
.sides { display: flex; justify-content: center; }
.checks { display: grid; gap: 8px; margin: 0 auto; padding: 0; list-style: none; text-align: left; width: min(420px, 100%); }
.checks li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 600; }
.checks .ic { width: 20px; height: 20px; flex: none; color: var(--ok); stroke-width: 2.4; }
.checks li.no .ic { color: var(--warn); }
.result-shot { display: block; max-width: min(260px, 70%); max-height: 260px; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }

/* Sign PDF */
.sign-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 18px; }
.sign-step span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pill); color: var(--pill-ink); font-size: 14px; }
.sig-card { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface-2); }
.sig-pad { display: block; width: 100%; height: 170px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); touch-action: none; cursor: crosshair; }
.sig-typed { min-height: 90px; margin-top: 10px; padding: 8px 14px; border-radius: 16px; background: #fff; font: 600 52px/1.4 "KT Caveat", "Segoe Script", "Bradley Hand", cursive; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sig-upped img { display: block; max-width: 100%; max-height: 120px; margin-top: 10px; padding: 8px; border-radius: 12px; background: #fff; }
.sig-up { cursor: pointer; }
.sig-row { justify-content: space-between; }
.sig-inks { display: inline-flex; gap: 8px; }
.sig-inks button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-s); cursor: pointer; }
.sig-inks button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--focus); }
.sig-inks i { width: 20px; height: 20px; border-radius: 50%; }
.sign-view { display: grid; gap: 12px; }
.sign-page { position: relative; width: min(100%, 720px); margin: 0 auto; border-radius: 6px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.sign-page canvas { display: block; width: 100%; height: 100%; }
.sign-layer { position: absolute; inset: 0; }
.sign-item { position: absolute; outline: 2px dashed var(--brand); outline-offset: 2px; border-radius: 4px; cursor: move; touch-action: none; user-select: none; }
.sign-item:focus-visible { outline: 3px solid var(--focus); }
.sign-item img { display: block; width: 100%; height: 100%; pointer-events: none; }
.sign-date { display: block; font: 500 12px/1 Helvetica, Arial, sans-serif; white-space: nowrap; pointer-events: none; }
.sign-x { position: absolute; top: -16px; right: -16px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--pill); color: var(--pill-ink); cursor: pointer; }
.sign-x .ic { width: 14px; height: 14px; }
.sign-h { position: absolute; right: -12px; bottom: -12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); box-shadow: 0 1px 5px rgba(0, 0, 0, .4); cursor: nwse-resize; touch-action: none; }
.sign-nav { align-items: center; }
.sign-count { min-width: 110px; text-align: center; font-weight: 700; color: var(--ink-2); }

/* The small label above a group's title takes the group's own colour (5:1 or better on its tint) */
.hero-card[data-cat] .eyebrow { color: var(--cat); }

/* Arrange tools on a group page */
.arrange-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.arrange-bar .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.arrange-bar [aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); }
.tgrid.arranging .tcard { cursor: grab; touch-action: none; user-select: none; outline: 2px dashed color-mix(in srgb, var(--cat) 45%, transparent); outline-offset: 2px; animation: wiggle .5s ease-in-out infinite alternate; }
.tgrid.arranging .tcard:hover { transform: none; }
.tgrid.arranging .tcard.lifted { cursor: grabbing; animation: none; transform: scale(1.04); box-shadow: var(--shadow-l); z-index: 2; }
.arrange-moves { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 3; }
.arrange-moves button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--pill); color: var(--pill-ink); cursor: pointer; }
.arrange-moves .ic { width: 16px; height: 16px; }
@keyframes wiggle { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .tgrid.arranging .tcard { animation: none; } }

/* Speech to text */
.stt-top { display: grid; gap: 14px; justify-items: center; margin-bottom: 16px; text-align: center; }
.stt-top .field { width: min(360px, 100%); text-align: left; }
.stt-mic { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 800 18px var(--body); cursor: pointer; box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.stt-mic .ic { width: 26px; height: 26px; }
.stt-mic:active { transform: scale(.96); }
.stt-mic[aria-pressed="true"] { background: var(--bad); color: #fff; animation: stt-pulse 1.4s ease-in-out infinite; }
.stt-mic:disabled { opacity: .5; cursor: not-allowed; }
.stt-live { min-height: 22px; max-width: 560px; margin: 0; }
.stt-actions { margin-top: 12px; }
@keyframes stt-pulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--bad) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .stt-mic[aria-pressed="true"] { animation: none; } }

/* Tutorial video beside the how-to steps */
.howto-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; }
.howto-wrap .howto { grid-template-columns: minmax(0, 1fr); }
.howto-wrap .howto li { grid-template-columns: 32px minmax(0, 1fr); align-items: center; }
.howto-video { margin: 18px 0 8px; display: grid; gap: 10px; justify-items: center; }
.howto-video .phone { position: relative; width: 100%; max-width: 220px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 6px solid var(--surface); }
.howto-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.howto-video .demo-sound { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); min-height: 40px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; box-shadow: var(--shadow-s); }
.howto-video .demo-sound .ic { width: 16px; height: 16px; }
.howto-video figcaption { font-size: 14px; color: var(--ink-2); text-align: center; }
@media (max-width: 640px) { .howto-wrap { grid-template-columns: minmax(0, 1fr); } .howto-video .phone { max-width: 240px; } }

/* Video tools: start/end picker and the Reels preview (assets/js/video-kit.js) */
.vk { display: grid; gap: 14px; }
.vk-stage { border-radius: 20px; overflow: hidden; background: #111; display: grid; place-items: center; max-height: 60vh; }
.vk-video { width: 100%; max-height: 60vh; display: block; cursor: pointer; }
.vk-track { position: relative; height: 44px; }
.vk-fill { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.vk-sel { position: absolute; top: 14px; height: 16px; border-radius: 99px; background: var(--cat, var(--brand)); opacity: .85; }
.vk-head { position: absolute; top: 8px; width: 3px; height: 28px; margin-left: -1px; border-radius: 2px; background: var(--ink); pointer-events: none; }
.vk-track input[type=range] { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.vk-track input[type=range]::-webkit-slider-runnable-track { background: none; }
.vk-track input[type=range]::-moz-range-track { background: none; }
.vk-track input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 4px solid var(--cat, var(--brand)); box-shadow: var(--shadow-s); cursor: grab; }
.vk-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 4px solid var(--cat, var(--brand)); cursor: grab; }
.vk-read { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.vk-read b { color: var(--ink); font-variant-numeric: tabular-nums; }
.vk-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vk-btns .btn { min-height: 42px; padding: 0 14px; font-size: 14.5px; }
.vk-reframe { justify-items: center; }
.vk-frame { padding: 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); }
.vk-canvas { display: block; border-radius: 12px; max-width: 100%; height: auto; }
.vk-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vk-reframe .range { width: min(420px, 100%); }

/* Photo editors (Photo Editor, Meme Maker, YouTube Thumbnail Maker) */
.ed-stage { position: relative; display: grid; place-items: center; padding: 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); }
.ed-canvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; border-radius: 12px; }
.ed-thumb .ed-canvas { width: 100%; max-height: none; }
.ed-time { position: absolute; right: calc(10px + 1.6%); bottom: calc(10px + 2.6%); padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .82); color: #fff; font: 700 12px var(--body); pointer-events: none; }
.ed-pick { display: grid; gap: 8px; margin-top: 4px; }
.editor-tools [data-ed="compare"].on { background: var(--pill); color: var(--pill-ink); }

/* Resume Maker */
.rz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 24px; align-items: start; }
.rz-form { display: grid; gap: 14px; min-width: 0; }
.rz-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 20px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-s); }
.rz-bar .seg { min-width: 260px; }
.rz-bar-btns { display: flex; gap: 4px; margin-left: auto; }
.rz-sec { padding: 4px 16px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-s); }
.rz-sec > summary { padding: 14px 0 10px; font: 700 17px var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.rz-sec > summary::after { content: '+'; color: var(--ink-2); }
.rz-sec[open] > summary::after { content: '\2212'; }
.rz-sec > summary::-webkit-details-marker { display: none; }
.rz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rz-wide { grid-column: 1 / -1; }
.rz-list { display: grid; gap: 12px; margin-bottom: 12px; }
.rz-item { padding: 14px; border-radius: 16px; background: var(--bg); }
.rz-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rz-item-head .btn { min-height: 34px; padding: 0 8px; font-size: 14px; }
.rz-side { position: sticky; top: calc(var(--header-h, 72px) + 14px); display: grid; gap: 12px; }
.rz-paper { aspect-ratio: 595 / 842; border-radius: 10px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.rz-canvas { width: 100%; height: auto; display: block; }
.rz-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.rz-pager .btn { min-height: 38px; width: 42px; padding: 0; }
.rz-note { text-align: center; }
@media (max-width: 960px) { .rz { grid-template-columns: minmax(0, 1fr); } .rz-side { position: static; max-width: 460px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) { .rz-grid { grid-template-columns: minmax(0, 1fr); } .rz-bar .seg { min-width: 0; width: 100%; } .rz-bar-btns { margin-left: 0; } }

/* Tool and guide cards show the tool's picture (assets/img/og/card) */
.tcard-art.tcard-pic { display: block; height: auto; aspect-ratio: 1200 / 630; overflow: hidden; }
.tcard-pic img, .guide-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--spring); }
.tcard:hover .tcard-pic img, .guide-card:hover .guide-pic img { transform: scale(1.045); }
.guide-art.guide-pic { position: relative; display: block; height: auto; aspect-ratio: 1200 / 630; overflow: hidden; padding: 0; }
.share-card { margin: 0; padding: 0; overflow: hidden; }
.share-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.share-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.share-card .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .tcard:hover .tcard-pic img, .guide-card:hover .guide-pic img { transform: none; } }
.tcard-pic img[data-src]:not([data-src-done]) { opacity: 0; }
.tcard-pic img { transition: transform .6s var(--spring), opacity .3s; }
/* Full screen: show the whole video, never cropped */
.howto-video video:fullscreen { object-fit: contain; background: #000; }
.howto-video video:-webkit-full-screen { object-fit: contain; background: #000; }

/* View counts: footer strip on every page, badge on tool pages */
.site-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 6px 0 18px; padding: 12px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-s); font-size: 14px; color: var(--ink-2); }
.site-views[hidden] { display: none; }
.site-views b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 800; }
.sv-live { display: inline-flex; align-items: center; gap: 7px; }
.sv-live i { width: 9px; height: 9px; border-radius: 50%; background: #22A55B; box-shadow: 0 0 0 0 rgba(34, 165, 91, .5); animation: sv-pulse 2s infinite; }
@keyframes sv-pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 165, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 165, 91, 0); } }
.views-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.views-pill[hidden] { display: none; }
.views-pill .ic { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .sv-live i { animation: none; } }

/* Age calculator and Text to PDF */
.age { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.age-in, .age-out { padding: 20px; display: grid; gap: 14px; }
.age-label { font-weight: 700; color: var(--ink-2); margin: 0; }
.age-big { margin: 0; font: 600 22px var(--display); line-height: 1.3; }
.age-big b { font-size: 44px; color: var(--cat, var(--brand-text)); font-weight: 800; }
.tp { display: grid; gap: 14px; }
.tp-opts { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.tp-opts .seg { min-width: 240px; }
@media (max-width: 760px) { .age { grid-template-columns: minmax(0, 1fr); } }
.footer-follow { margin-top: 10px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.footer-follow a { color: var(--brand-text); font-weight: 600; }
