/* ═══════════════════════════════════════════════════════════════════════
   LabelCropTools — soft bento design system
   silver surfaces · white cards · large radii · soft elevation · blue accent
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/instrument-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plexmono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/plexmono-600-latin.woff2') format('woff2'); }

:root {
  --paper: #E8EBEE; --paper-2: #E0E4E8; --card: #FFFFFF; --surface: #E3E7EB;
  --ink: #0B0C0E; --ink-2: #3A4046; --muted: #5F666E;
  --line: rgba(11,12,14,.10); --line-soft: rgba(11,12,14,.07); --line-faint: rgba(11,12,14,.045);
  /* Border for interactive controls — meets WCAG 1.4.11 (3:1) unlike the decorative --line-soft. */
  --line-field: #7C8289;
  --accent: #14639C; --accent-2: #DCE9F3; --accent-ink: #FFFFFF;
  --cta: #0B0C0E; --cta-ink: #FFFFFF;
  --ok: #146B3D; --ok-bg: #E2F3E9; --danger: #C02F34; --danger-bg: #FBE7E7; --info: #14639C; --info-bg: #E4EEF6;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 4px 10px -4px rgba(16,24,40,.09);
  --shadow: 0 2px 4px rgba(16,24,40,.05), 0 14px 32px -12px rgba(16,24,40,.16);
  --shadow-lg: 0 4px 8px rgba(16,24,40,.05), 0 28px 60px -20px rgba(16,24,40,.24);
  --r: 24px; --r-lg: 34px; --r-sm: 15px; --r-xs: 10px;
  --font-display: 'Outfit', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0C0D0F; --paper-2: #131519; --card: #17191D; --surface: #121418; --ink: #F3F5F7; --ink-2: #C4CAD1; --muted: #949BA4; --line: rgba(255,255,255,.10); --line-soft: rgba(255,255,255,.07); --line-faint: rgba(255,255,255,.045); --line-field: #6E757D; --accent: #6BB2EA; --accent-2: #14293B; --accent-ink: #06121C; --cta: #F3F5F7; --cta-ink: #0B0C0E; --ok: #3DBE79; --ok-bg: #0E2418; --danger: #F07177; --danger-bg: #2B1214; --info: #6BB2EA; --info-bg: #0F1E2C; --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 10px -4px rgba(0,0,0,.5); --shadow: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px -12px rgba(0,0,0,.6); --shadow-lg: 0 4px 8px rgba(0,0,0,.4), 0 28px 60px -20px rgba(0,0,0,.7); color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0C0D0F; --paper-2: #131519; --card: #17191D; --surface: #121418; --ink: #F3F5F7; --ink-2: #C4CAD1; --muted: #949BA4; --line: rgba(255,255,255,.10); --line-soft: rgba(255,255,255,.07); --line-faint: rgba(255,255,255,.045); --line-field: #6E757D; --accent: #6BB2EA; --accent-2: #14293B; --accent-ink: #06121C; --cta: #F3F5F7; --cta-ink: #0B0C0E; --ok: #3DBE79; --ok-bg: #0E2418; --danger: #F07177; --danger-bg: #2B1214; --info: #6BB2EA; --info-bg: #0F1E2C; --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 10px -4px rgba(0,0,0,.5); --shadow: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px -12px rgba(0,0,0,.6); --shadow-lg: 0 4px 8px rgba(0,0,0,.4), 0 28px 60px -20px rgba(0,0,0,.7); color-scheme: dark; }

/* ── reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); background-image: radial-gradient(1200px 620px at 18% -8%, rgba(255,255,255,.75), transparent 60%), radial-gradient(900px 500px at 96% 4%, rgba(255,255,255,.45), transparent 62%); background-attachment: fixed; color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; display: block; }
/* The light wash that gives the silver background depth must be far subtler on dark. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background-image: radial-gradient(1100px 560px at 16% -10%, rgba(255,255,255,.055), transparent 62%), radial-gradient(800px 460px at 96% 2%, rgba(255,255,255,.03), transparent 64%); } }
:root[data-theme="dark"] body { background-image: radial-gradient(1100px 560px at 16% -10%, rgba(255,255,255,.055), transparent 62%), radial-gradient(800px 460px at 96% 2%, rgba(255,255,255,.03), transparent 64%); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .85em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cta); color: var(--cta-ink); padding: 11px 18px; border: 0; border-radius: 999px; box-shadow: var(--shadow); z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 28px; height: 28px; }
.ic-xl { width: 40px; height: 40px; }
[hidden] { display: none !important; }
kbd { font: 600 11px/1 var(--font-mono); border: 1.5px solid var(--line-field); border-radius: 5px; padding: 3px 5px; color: var(--muted); background: var(--paper-2); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: 4px; }

/* ── header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line-faint); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.03em; white-space: nowrap; }
.brand-tag { display: none; }
.main-nav { display: flex; align-items: center; gap: 2px; justify-self: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); }
.main-nav a, .nav-btn { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .93rem; padding: 9px 16px; border-radius: 999px; border: 0; background: none; color: var(--ink-2); font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: background .18s, color .18s; }
.main-nav a:hover, .nav-btn:hover { background: var(--surface); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 24px; display: none; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 20px; width: max-content; max-width: min(96vw, 1040px); }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { display: grid; }
.mega-col h3, .mobile-nav h3 { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mega-col h3 a, .mobile-nav h3 a { text-decoration: none; }
.mega-col ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega-col a, .mobile-nav li a { text-decoration: none; font-size: .92rem; display: block; padding: 4px 6px; border-radius: 6px; }
.mega-col a:hover, .mobile-nav li a:hover { background: var(--accent-2); }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 12px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); font-family: inherit; transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-btn:active { transform: translateY(0) scale(.97); box-shadow: var(--shadow-sm); }
.icon-btn .moon, :root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }
.menu-btn { display: none; }
.mobile-nav { border-top: 2px solid var(--line); background: var(--card); padding: 16px 20px 24px; display: grid; gap: 18px; max-height: calc(100dvh - 66px); overflow: auto; }
@media (max-width: 1080px) {
  .main-nav, .icon-btn kbd, .brand-tag { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr auto; height: 68px; }
}
/* .btn sets display later in the sheet, so this needs the extra specificity to win. */
@media (max-width: 620px) { .header-actions .header-cta { display: none; } }
@media (max-width: 380px) { .header-inner .brand-name { display: none; } }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--paper-2); }
.barcode-strip { display: none; }
/* Six children (brand + four tool columns + guides) in six tracks. The count has to
   match: a seventh child used to wrap onto a second row under the brand and open a
   large hole in the middle of the footer. align-items:start stops short columns
   stretching to the tallest one. */
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 30px 24px; padding: 44px 20px 30px; align-items: start; }
.footer-brand p { font-size: .92rem; max-width: 34ch; margin-top: 14px; }
.footer-col h3 { font-size: .95rem; margin-bottom: 10px; }
.footer-col h3 a { text-decoration: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { font-size: .88rem; text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.footer-all:hover { text-decoration: underline; }
.footer-all .ic { transition: transform .16s cubic-bezier(.2,.7,.3,1); }
.footer-all:hover .ic { transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px 30px; border-top: 1.5px solid var(--line-soft); font-size: .88rem; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .95rem/1.2 var(--font-body); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--cta); color: var(--cta-ink); border-color: transparent; }
.btn-primary:hover { background: var(--cta); filter: brightness(1.22); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-sm { padding: 7px 13px; font-size: .85rem; box-shadow: var(--shadow-sm); }
.btn-ghost { box-shadow: none; border-color: var(--line-field); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--line-field); border-radius: 999px; background: var(--card); font: 600 .85rem/1.2 var(--font-body); cursor: pointer; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--line); }
.chip.active { background: var(--cta); color: var(--cta-ink); border-color: transparent; box-shadow: var(--shadow-sm); }

/* ── ticket card ──────────────────────────────────────────────────────── */
.ticket { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ticket-tab { position: absolute; top: -13px; left: 22px; background: var(--card); color: var(--muted); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 5px 14px; font: 600 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.perf { border: 0; border-top: 2px dashed var(--line-soft); margin: 20px 0; }

/* ── hero: bento grid ─────────────────────────────────────────────────── */
.hero { padding: 40px 0 8px; }
.hero-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: stretch; }
.bento { border-radius: var(--r-lg); padding: 28px; position: relative; }
.bento-copy { grid-column: span 7; padding: 22px 8px 8px 0; display: flex; flex-direction: column; justify-content: center; }
.bento-drop { grid-column: span 5; grid-row: span 2; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; padding-bottom: 92px; }
.bento-drop .dropzone { flex: 1; display: grid; place-content: center; }
.bento-drop .status { margin-top: 12px; text-align: center; }
.bento-icons { grid-column: span 7; background: var(--surface); border: 1px solid var(--line-soft); min-height: 230px; overflow: hidden; }
.bento-list { grid-column: span 5; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 14px; display: grid; gap: 8px; align-content: center; }
.bento-stat { grid-column: span 3; background: var(--cta); color: var(--cta-ink); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bento-tag { grid-column: span 4; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }

.eyebrow { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); flex: none; }
.hero-h1 { margin-bottom: 20px; max-width: none; font-size: clamp(2.1rem, 3.3vw, 3.05rem); }
.hl { color: var(--accent); }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin: 26px 0 0; }
.proof { display: flex; align-items: center; gap: 14px; }
.proof-icons { display: flex; }
.proof-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; margin-left: -12px; box-shadow: var(--shadow-sm); color: var(--accent); }
.proof-dot:first-child { margin-left: 0; }
.proof-text { font-size: .84rem; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.proof-text b { color: var(--ink); font-size: .95rem; }

.float-pill { position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 13px 20px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); transition: transform .16s cubic-bezier(.2,.7,.3,1); }
.float-pill:hover { transform: translateY(-2px); }
.float-pill .ic { border: 1px solid var(--line); border-radius: 50%; width: 22px; height: 22px; padding: 3px; }

.ic-float { position: absolute; width: 58px; height: 58px; border-radius: 17px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--ink); animation: bob 7s ease-in-out infinite; }
.ic-float .ic { width: 25px; height: 25px; }
.f1 { left: 9%;  top: 16%; animation-delay: -.2s; } .f2 { left: 30%; top: 8%;  animation-delay: -1.1s; }
.f3 { left: 52%; top: 16%; animation-delay: -2s; }  .f4 { left: 73%; top: 9%;  animation-delay: -2.9s; }
.f5 { left: 18%; top: 47%; animation-delay: -3.8s; } .f6 { left: 40%; top: 55%; animation-delay: -4.5s; }
.f7 { left: 62%; top: 47%; animation-delay: -5.2s; } .f8 { left: 82%; top: 52%; animation-delay: -6s; }
.f9 { left: 4%;  top: 72%; animation-delay: -6.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

.list-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-sm); text-decoration: none; color: inherit; transition: background .18s; }
.list-row:hover { background: var(--surface); }
.row-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.row-body { display: grid; gap: 2px; min-width: 0; }
.row-body b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.row-sub { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-go { margin-left: auto; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.list-row:hover .row-go { background: var(--cta); color: var(--cta-ink); border-color: transparent; }

.stat-num { font: 700 3.6rem/1 var(--font-display); letter-spacing: -.045em; }
.bento-stat p { margin: 0; font-size: .92rem; opacity: .78; }
.tag-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill-tag { font-size: .82rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; }
.round-btn { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); text-decoration: none; transition: background .18s, color .18s; }
.round-btn:hover { background: var(--cta); color: var(--cta-ink); border-color: transparent; }
.bento-tag h2 { font-size: 1.32rem; margin: 6px 0 0; }
.bento-tag p { margin: 0; font-size: .92rem; color: var(--muted); }

@media (max-width: 1000px) {
  .bento-copy, .bento-drop, .bento-icons { grid-column: span 12; }
  .bento-drop { padding-bottom: 28px; }
  .bento-drop { grid-row: auto; }
  .bento-list { grid-column: span 12; } .bento-stat { grid-column: span 5; } .bento-tag { grid-column: span 7; }
}
@media (max-width: 680px) {
  .hero { padding: 20px 0 4px; }
  .bento { padding: 22px; border-radius: var(--r); }
  .bento-stat, .bento-tag { grid-column: span 12; }
  .bento-icons { min-height: 190px; }
  .ic-float { width: 48px; height: 48px; border-radius: 14px; }
  .float-pill { position: static; margin-top: 14px; width: 100%; justify-content: center; }
  .hero-cta { gap: 14px; } .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ic-float { animation: none; } }

/* ── dropzone ─────────────────────────────────────────────────────────── */
.dropzone { position: relative; border: 1.5px dashed var(--line-field); border-radius: var(--r); background: var(--surface); padding: 42px 22px 36px; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.dropzone:hover, .dropzone:focus-visible { background: var(--accent-2); border-color: var(--accent); }
.dropzone.over { background: var(--accent-2); border-style: solid; border-color: var(--accent); transform: scale(1.01); }
.dz-tab { position: absolute; top: -10px; left: 18px; background: var(--card); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font: 600 10px/1.6 var(--font-mono); letter-spacing: .12em; color: var(--muted); }
.dz-inner .ic-xl { margin: 0 auto 10px; color: var(--ink); }
.dz-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.dz-sub { font-size: .88rem; color: var(--muted); margin: 0; }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line-soft); border-radius: var(--r-sm); background: var(--paper); font-size: .9rem; }
.file-row.dragging { opacity: .5; }
.file-row .grip { cursor: grab; color: var(--muted); }
.file-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-row .meta { color: var(--muted); font: 500 .8rem/1 var(--font-mono); white-space: nowrap; }
.file-row .tag { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; border-radius: 5px; background: var(--accent-2); border: 1px solid var(--line-soft); }
.file-row .x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; display: inline-flex; }
.file-row .x:hover { color: var(--danger); }
.file-row .mv { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px; display: inline-flex; }

/* ── forms ────────────────────────────────────────────────────────────── */
.opts { display: grid; gap: 16px; margin-top: 20px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend, .field > span { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; display: block; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line-field); border-radius: 999px; background: var(--card); font-weight: 600; font-size: .9rem; transition: all .15s; }
.seg label:has(input:checked) span { background: var(--cta); border-color: transparent; box-shadow: var(--shadow-sm); color: var(--cta-ink); }
.seg label:has(input:focus-visible) span { outline: 3px solid var(--info); outline-offset: 2px; }
.seg label:hover span { border-color: var(--line); }
.chks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92rem; font-weight: 500; }
.chk input { width: 18px; height: 18px; accent-color: var(--ink); }
.field { display: grid; gap: 0; min-width: 0; }
.field input, .field select, .field textarea, input[type="search"], input[type="number"], input[type="text"] { font: 500 .95rem/1.3 var(--font-body); padding: 11px 14px; border: 1px solid var(--line-field); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-2); }
.field input[type="color"] { padding: 2px; height: 42px; width: 100%; cursor: pointer; }
.field textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); } }
.runbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.status { margin: 0; font: 500 .88rem/1.4 var(--font-mono); color: var(--muted); min-height: 1.2em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.local-note { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.local-note .ic { color: var(--ok); width: 18px; height: 18px; }
.note { display: flex; gap: 8px; align-items: flex-start; background: var(--info-bg); border: 1.5px solid color-mix(in srgb, var(--info) 40%, transparent); border-radius: var(--r-sm); padding: 10px 12px; font-size: .88rem; }
.note .ic { color: var(--info); flex: none; margin-top: 2px; }
progress { width: 100%; height: 10px; accent-color: var(--ink); }

/* ── tool page ────────────────────────────────────────────────────────── */
.crumbs { padding: 18px 0 6px; font-size: .85rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.tool-hero, .cat-hero { padding: 18px 0 30px; max-width: 820px; }
.tool-hero-icon { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.tool-hero-icon .ic { width: 28px; height: 28px; }
.tool-hero h1 { margin-bottom: 12px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-sm); }
.trust .ic { width: 16px; height: 16px; color: var(--ok); }
.tool-hero .trust { margin-top: 18px; }
.tool-panel { padding: 30px 26px 26px; margin-bottom: 56px; }
@media (max-width: 640px) { .tool-panel { padding: 26px 16px 20px; } }
.tool-content { max-width: 880px; }
.tool-content section { margin-bottom: 52px; }
.tool-content h2 { margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--accent); font: 600 .95rem/1 var(--font-mono); box-shadow: var(--shadow-sm); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }
.steps.big { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps.big li { flex-direction: column; }
@media (max-width: 800px) { .steps.big { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.benefit { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--card); box-shadow: var(--shadow-sm); }
.benefit h3 { margin-bottom: 6px; }
.benefit p, .feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.feature { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-soft); border-radius: var(--r-sm); background: var(--card); }
.feature .ic { color: var(--ok); flex: none; margin-top: 3px; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 14px; top: 10px; font: 400 1.5rem/1 var(--font-mono); color: var(--muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1.5px dashed var(--line-soft); }
.faq-a { padding: 12px 16px 4px; color: var(--ink-2); }
.updated { font-size: .85rem; }
.cat-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── tool cards ───────────────────────────────────────────────────────── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease; overflow: hidden; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-card:hover .tool-icon { background: var(--cta); color: var(--cta-ink); }
.tool-icon { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; place-items: center; margin-bottom: 10px; transition: background .2s, color .2s; }
.tool-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.tool-short { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.tool-go { position: absolute; right: 14px; bottom: 14px; opacity: 0; transform: translateX(-6px); transition: all .15s; }
.tool-card:hover .tool-go { opacity: 1; transform: none; }
.badge { position: absolute; top: 16px; right: 16px; font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--accent-2); color: var(--accent); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; }
.tool-grid.big .tool-card { padding: 22px; }
.tools-section { padding: 72px 20px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter input { width: 300px; max-width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-block { margin-bottom: 36px; }
.cat-title { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin-bottom: 14px; }
.cat-title a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cat-title a:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 30px; border: 2px dashed var(--line-soft); border-radius: var(--r); }
.why-us, .how-it-works { padding-top: 72px; }
.why-us h2, .how-it-works h2 { margin-bottom: 24px; max-width: 24ch; }
.why-card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--card); box-shadow: var(--shadow-sm); }
.why-card .ic { width: 26px; height: 26px; margin-bottom: 12px; color: var(--ink); }
.why-card h3 { margin-bottom: 6px; }
.why-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.faq { padding-top: 40px; }

/* ── preview thumbs ───────────────────────────────────────────────────── */
.preview { margin-top: 20px; }
.preview-title { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs .th { border: 1.5px solid var(--line-soft); border-radius: var(--r-xs); background: #fff; padding: 4px; }
.thumbs .th canvas { width: 100%; height: auto; }
.thumbs .th .cap { font: 500 10px/1.3 var(--font-mono); color: var(--muted); padding: 4px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── tables ───────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1.5px solid var(--line-soft); text-align: left; vertical-align: middle; }
.tbl th { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--paper-2); position: sticky; top: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.picked td { opacity: .45; text-decoration: line-through; }
.tbl td input[type="text"], .tbl td input[type="number"] { padding: 6px 8px; font-size: .9rem; }
.tablewrap { margin-top: 18px; overflow: auto; }
.table-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools input { width: 320px; max-width: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.stat span { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.courier-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.courier-summary .chip { cursor: default; }

/* ── crop tool ────────────────────────────────────────────────────────── */
.crop-stage { display: grid; grid-template-columns: 1fr 290px; gap: 20px; margin-top: 20px; }
@media (max-width: 860px) { .crop-stage { grid-template-columns: 1fr; } }
.crop-canvas-wrap { position: relative; overflow: auto; background: var(--paper-2); border: 2px solid var(--line-soft); border-radius: var(--r-sm); max-height: 72vh; min-height: 300px; padding: 20px; display: flex; justify-content: center; align-items: flex-start; user-select: none; }
.crop-canvas-wrap canvas { box-shadow: 0 2px 12px rgba(0,0,0,.18); background: #fff; }
.crop-inner { position: relative; display: inline-block; }
.cropbox { position: absolute; border: 2px solid var(--info); box-shadow: 0 0 0 100vmax rgba(0,0,0,.42); cursor: move; touch-action: none; }
.cropbox .h { position: absolute; width: 14px; height: 14px; background: var(--info); border: 2px solid #fff; border-radius: 50%; }
.cropbox .nw { left: -8px; top: -8px; cursor: nwse-resize; } .cropbox .n { left: calc(50% - 7px); top: -8px; cursor: ns-resize; } .cropbox .ne { right: -8px; top: -8px; cursor: nesw-resize; }
.cropbox .w { left: -8px; top: calc(50% - 7px); cursor: ew-resize; } .cropbox .e { right: -8px; top: calc(50% - 7px); cursor: ew-resize; }
.cropbox .sw { left: -8px; bottom: -8px; cursor: nesw-resize; } .cropbox .s { left: calc(50% - 7px); bottom: -8px; cursor: ns-resize; } .cropbox .se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.crop-side { display: grid; gap: 14px; align-content: start; }
.crop-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 .9rem/1 var(--font-mono); }
.crop-nav input { width: 58px; padding: 6px; text-align: center; }
.crop-dims { font: 500 .82rem/1.5 var(--font-mono); color: var(--muted); background: var(--paper-2); padding: 8px 10px; border-radius: var(--r-xs); }

/* ── n-up ─────────────────────────────────────────────────────────────── */
.nup-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 860px) { .nup-layout { grid-template-columns: 1fr; } }
.nup-layout .opts { margin-top: 0; }
.sheet { background: var(--paper-2); border: 2px solid var(--line-soft); border-radius: var(--r-sm); padding: 16px; display: flex; justify-content: center; }
.sheet canvas { box-shadow: 0 2px 12px rgba(0,0,0,.18); background: #fff; max-height: 70vh; width: auto; }

/* ── page grid (rotate) ───────────────────────────────────────────────── */
.rot-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.pg { position: relative; border: 2px solid var(--line-field); border-radius: var(--r-sm); background: var(--paper); padding: 8px; display: grid; gap: 6px; cursor: grab; }
.pg.dragging { opacity: .4; }
.pg.deleted { opacity: .35; }
.pg.deleted::after { content: 'DELETED'; position: absolute; inset: 0; display: grid; place-items: center; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--danger); }
.pg canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); transition: transform .15s; margin: 0 auto; }
.pg .pg-n { font: 500 11px/1 var(--font-mono); color: var(--muted); text-align: center; }
.pg .pg-btns { display: flex; justify-content: center; gap: 4px; }
.pg .pg-btns button { border: 1.5px solid var(--line-field); background: var(--card); border-radius: 6px; padding: 4px; cursor: pointer; display: inline-flex; color: var(--ink); }
.pg .pg-btns button:hover { border-color: var(--line); }

/* ── image grid ───────────────────────────────────────────────────────── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.img-grid .im { border: 1.5px solid var(--line-soft); border-radius: var(--r-xs); background: var(--paper); padding: 6px; display: grid; gap: 4px; position: relative; }
.img-grid .im img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 4px; }
.img-grid .im .cap { font: 500 10px/1.3 var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-grid .im .cap b { color: var(--ok); }
.img-grid .im .x { position: absolute; top: 4px; right: 4px; background: var(--card); border: 1.5px solid var(--line-field); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; color: var(--muted); padding: 0; }

/* ── calculators & generators ─────────────────────────────────────────── */
.calc-grid, .gen-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
@media (max-width: 860px) { .calc-grid, .gen-grid { grid-template-columns: 1fr; } }
.calc-in, .gen-in { display: grid; gap: 14px; align-content: start; }
.calc-out { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 22px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 86px; }
.calc-out .big { font: 800 2.4rem/1 var(--font-display); letter-spacing: -0.03em; margin: 4px 0 2px; }
.calc-out .big.neg { color: var(--danger); }
.calc-out .big.pos { color: var(--ok); }
.calc-out .lbl { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.calc-out table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; }
.calc-out td { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.calc-out td:last-child { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out tr.total td { font-weight: 700; border-bottom: 2px solid var(--line); }
.calc-out tr.sub td { color: var(--muted); font-size: .85rem; }
.calc-out .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.calc-out .kpi { border: 1.5px solid var(--line-soft); border-radius: var(--r-xs); padding: 8px; background: var(--card); }
.calc-out .kpi b { display: block; font: 700 1.1rem/1.1 var(--font-display); }
.calc-out .kpi span { font: 600 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.calc-out .warn { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.gen-out { display: grid; gap: 14px; align-content: start; }
.bc-preview, .qr-preview { border: 2px solid var(--line-soft); border-radius: var(--r-sm); background: #fff; padding: 16px; display: grid; gap: 12px; justify-items: center; min-height: 140px; overflow: auto; max-height: 60vh; }
.bc-preview svg { max-width: 100%; height: auto; }
.bc-preview .bc-item { text-align: center; font: 500 12px/1.3 var(--font-mono); color: #333; }
.bc-preview .bc-err { color: var(--danger); font-size: .85rem; }
.qr-preview img, .qr-preview canvas { max-width: 260px; width: 100%; height: auto; image-rendering: pixelated; }
.card-preview { border: 2px solid var(--line-soft); border-radius: var(--r-sm); background: var(--paper-2); padding: 16px; display: flex; justify-content: center; }
.card-preview canvas { max-width: 100%; height: auto; box-shadow: 0 4px 16px rgba(0,0,0,.18); border-radius: 6px; }

/* ── invoice form ─────────────────────────────────────────────────────── */
.inv-form { display: grid; gap: 16px; }
.inv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .inv-cols { grid-template-columns: 1fr; } }
.inv-cols .opt { border: 1.5px solid var(--line-soft); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 10px; }
.inv-cols legend { padding: 0 6px; margin: 0 0 -4px; }
.items { overflow: auto; }
.items .tbl td { padding: 4px 4px; }
.items .tbl td:first-child { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; }
.items .tbl .del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: inline-flex; }
.items .tbl .del:hover { color: var(--danger); }
.items .btn { margin-top: 10px; }
.inv-summary { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* ── command palette ──────────────────────────────────────────────────── */
.cmdk { position: fixed; inset: 0; z-index: 100; background: rgba(18,17,15,.55); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.cmdk-box { width: 100%; max-width: 620px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.cmdk-input input { border: 0; background: none; font-size: 1.05rem; flex: 1; padding: 6px 0; }
.cmdk-input input:focus { box-shadow: none; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow: auto; }
.cmdk-list li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.cmdk-list li a .c { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1.5px solid var(--line-soft); padding: 4px 6px; border-radius: 5px; margin-left: auto; white-space: nowrap; }
.cmdk-list li a .d { color: var(--muted); font-size: .85rem; }
.cmdk-list li a b { font-family: var(--font-display); }
.cmdk-list li.active a, .cmdk-list li a:hover { background: var(--accent-2); }
.cmdk-list .none { padding: 16px; color: var(--muted); text-align: center; }

/* ── toast ────────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; z-index: 110; box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: 90vw; }
.toast.err { background: var(--danger); color: #fff; }

/* ── prose ────────────────────────────────────────────────────────────── */
.prose { padding: 10px 0 40px; }
.prose h2 { margin-top: 36px; font-size: 1.5rem; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose.center { text-align: center; padding-top: 40px; }
.prose.center .tool-grid { text-align: left; margin-top: 30px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.contact-card { padding: 22px; text-decoration: none; display: grid; gap: 4px; }
.contact-card p { margin: 0; color: var(--muted); }

/* ── print ────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .tool-hero, .crumbs, .tool-content, .dropzone, .runbar, .local-note, .table-tools, .cmdk, .toast, .ticket-tab, .file-list { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  .ticket { border: 0; box-shadow: none; padding: 0; }
  .tbl th { position: static; background: #eee; color: #000; }
  .tbl td, .tbl th { border: 1px solid #999; padding: 6px; }
  .stats { display: flex; gap: 12px; }
  .stat { border: 1px solid #000; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ── rotating marketplace logo slot (hero H1) ─────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-h1 { max-width: 18ch; }
.brand-rotator {
  --logo-h: .66em; --chip-pad: .20em;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: calc(var(--logo-h) + 2 * var(--chip-pad));
  width: calc(var(--ar, 3.2) * var(--logo-h) + 2 * var(--chip-pad));
  padding: 0 var(--chip-pad); margin: 0 .12em;
  vertical-align: -.16em; border: 1px solid var(--line); border-radius: .32em;
  background: #fff; box-shadow: var(--shadow-sm);
  overflow: hidden; perspective: 600px;
  transition: width .3s cubic-bezier(.65, 0, .35, 1);
}
.br-item {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-58%) rotateX(72deg); transform-origin: 50% 100%;
  transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.35, .5, 1);
  white-space: nowrap; will-change: transform, opacity;
}
.br-item.is-active { opacity: 1; transform: none; }
.br-item.is-leaving { opacity: 0; transform: translateY(58%) rotateX(-72deg); transform-origin: 50% 0; }
.br-item picture { display: block; }
.br-item img { height: var(--logo-h); width: auto; display: block; }
/* Wordmark fallback for a brand with no logo file yet. Drawn from a data attribute
   so the heading's own text is not duplicated for crawlers. */
.br-word { font-family: var(--font-display); font-weight: 800; font-size: calc(var(--logo-h) * .92); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.br-word::after { content: attr(data-word); }
@media (prefers-reduced-motion: reduce) {
  .brand-rotator { transition: none; }
  .br-item { transition: opacity .22s ease; transform: none; }
  .br-item.is-leaving { transform: none; }
}

/* ── cookie consent ───────────────────────────────────────────────────── */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent { position: fixed; inset: auto 0 0 0; z-index: 120; padding: 16px; }
.consent-box { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px 20px; }
.consent-box h2 { font-size: 1.05rem; margin: 0 0 4px; }
.consent-box p { margin: 0; font-size: .9rem; color: var(--ink-2); max-width: 70ch; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 620px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

/* ── closing call-to-action ───────────────────────────────────────────── */
.cta-band { margin: 56px 0 0; padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.4rem; }
.cta-band p { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 56ch; }
.cta-band .btn { flex-shrink: 0; }

/* ── inline form errors ───────────────────────────────────────────────── */
.field-err { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: var(--danger); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 2px 2px 0 var(--danger); }

/* ── blog ─────────────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-mp, .post-mp-link { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); background: var(--accent-2); border-radius: 999px; padding: 6px 11px; align-self: flex-start; text-decoration: none; }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; line-height: 1.25; letter-spacing: -.02em; }
.post-excerpt { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.post-meta { font: 500 .78rem/1 var(--font-mono); color: var(--muted); margin-top: auto; padding-top: 6px; }
.post-head { padding: 10px 0 28px; }
.post-head h1 { margin: 16px 0 14px; }
.post-byline { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }
.toc { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 20px 24px; margin-bottom: 36px; box-shadow: var(--shadow-sm); }
.toc-t { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: .93rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.post-body { max-width: 68ch; }
.post-body h2 { margin-top: 44px; scroll-margin-top: 96px; }
.post-body h3 { margin-top: 28px; font-size: 1.12rem; scroll-margin-top: 96px; }
.post-body p { line-height: 1.72; }
.post-body a { color: var(--accent); }
.post-body blockquote { margin: 26px 0; padding: 18px 24px; border-left: 3px solid var(--accent); background: var(--accent-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.post-body code { font: 500 .88em var(--font-mono); background: var(--surface); padding: 2px 6px; border-radius: 5px; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.post-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 420px; }
.post-table th, .post-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-table th { font: 600 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); }
.post-tools { margin-top: 52px; }
.post .related { margin-top: 52px; }

/* ── blog: editorial mosaic ───────────────────────────────────────────── */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 14px 0 30px; }
.blog-head .lede { margin: 0; max-width: 46ch; }
.display { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -.045em; line-height: .95; margin: 0 0 14px; text-transform: uppercase; }

.mosaic { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 14px; align-items: stretch; margin-bottom: 64px; min-height: 560px; }
.mo-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mo { position: relative; border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease; min-width: 0; }
a.mo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mo-cat { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.mo .dot { opacity: .5; margin: 0 3px; }
.mo-h { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 0; font-size: 1.32rem; }
.mo-h.big { font-size: clamp(1.5rem, 2.2vw, 2.1rem); text-transform: uppercase; font-weight: 700; letter-spacing: -.035em; }
.mo-h-link { text-decoration: none; color: inherit; }
.mo-h-link:hover .mo-h { color: var(--accent); }
.mo-ex { font-size: .9rem; line-height: 1.55; opacity: .8; }
.mo-ex.clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mo-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 .78rem/1 var(--font-mono); opacity: .72; }
.round-btn.sm { width: 36px; height: 36px; }

/* lead: inverted anchor, full height of the mosaic */
.mo-lead { background: var(--cta); color: var(--cta-ink); border-color: transparent; justify-content: space-between; gap: 18px; }
.mo-lead .round-btn { border-color: color-mix(in srgb, var(--cta-ink) 30%, transparent); color: var(--cta-ink); }
.mo-lead:hover .round-btn { background: var(--cta-ink); color: var(--cta); }
.mo-badge { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cta-ink) 14%, transparent); }
.mo-kicker { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; opacity: .62; display: block; margin-bottom: 14px; }
.mo-mid { display: grid; gap: 14px; }
.mo-lead .mo-cat { padding-right: 60px; }
.mo-lead .mo-h { font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 700; letter-spacing: -.035em; }

/* middle column: tinted feature above a white secondary */
.mo-feature { flex: 1.65; background: var(--accent-2); gap: 13px; }
.mo-corner { position: absolute; top: 20px; right: 20px; background: var(--card); }
.mo-feature .mo-cat { padding-right: 62px; }
.mo-feature .mo-ex { margin: 0; }
.mo-feature .mo-ex a { color: var(--accent); font-weight: 600; }
.mo-rows { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.mo-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 999px; background: var(--card); text-decoration: none; color: inherit; font-weight: 600; font-size: .86rem; line-height: 1.3; transition: background .18s, color .18s, transform .18s; }
.mo-row:hover { background: var(--cta); color: var(--cta-ink); transform: translateX(3px); }
.mo-row .ic { flex: none; }
.mo-wide { flex: 1; background: var(--card); gap: 10px; }

/* right column: tall story above the topics tile */
.mo-tall { flex: 1.9; background: var(--surface); gap: 11px; }
.mo-hot { font: 600 11px/1 var(--font-mono); color: var(--accent); }
.mo-topics { flex: 1; background: var(--accent-2); gap: 16px; justify-content: space-between; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-pills .pill { font-size: .78rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.topic-pills .pill.solid { background: var(--cta); color: var(--cta-ink); border-color: transparent; }
.topic-pills a.pill:hover { background: var(--accent); color: #fff; border-color: transparent; }
.topics-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; color: inherit; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.topics-cta .round-btn { background: var(--card); flex: none; }
.topics-cta:hover .round-btn { background: var(--cta); color: var(--cta-ink); }

@media (max-width: 1100px) {
  .mosaic { grid-template-columns: 1fr 1fr; min-height: 0; }
  .mo-col.right { grid-column: span 2; flex-direction: row; }
  .mo-col.right .mo { flex: 1; }
  .mo-lead { min-height: 420px; }
}
@media (max-width: 720px) {
  .mosaic { grid-template-columns: 1fr; gap: 12px; }
  .mo-col, .mo-col.right { grid-column: auto; flex-direction: column; }
  .mo { padding: 22px; border-radius: var(--r); }
  .mo-lead { min-height: 340px; }
}

/* hub pages get the same inverted lead card, laid out horizontally */
.mo-hub { background: var(--cta); color: var(--cta-ink); border-color: transparent; margin-bottom: 26px; padding: 34px; min-height: 260px; justify-content: space-between; gap: 20px; }
.mo-hub .round-btn { border-color: color-mix(in srgb, var(--cta-ink) 30%, transparent); color: var(--cta-ink); }
.mo-hub:hover .round-btn { background: var(--cta-ink); color: var(--cta); }
.mo-hub .mo-h { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; max-width: 22ch; }
.mo-hub .mo-ex { max-width: 62ch; }
.mo-hub .mo-cat { padding-right: 60px; }
@media (max-width: 720px) { .mo-hub { padding: 24px; min-height: 0; } }

/* ── cover art ────────────────────────────────────────────────────────── */
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 8 / 5; margin: -6px 0 12px; background: var(--surface); }
.post-card { padding: 14px 14px 20px; }
.post-card .post-mp { margin-left: 6px; }
.post-card .post-title, .post-card .post-excerpt, .post-card .post-meta { padding: 0 6px; }

.mo-art { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 8 / 5; background: var(--surface); }
.mo-lead .mo-art { margin-bottom: 4px; }
.mo-art.bleed { margin-top: auto; aspect-ratio: 16 / 9; }
.mo-art.side { aspect-ratio: 1 / 1; flex: none; width: 128px; border-radius: var(--r-sm); }
.mo-wide { flex-direction: row; align-items: stretch; gap: 18px; }
.mo-wide .mo-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.mo-hub { flex-direction: row; align-items: stretch; gap: 26px; }
.mo-hub .mo-art.side { width: 240px; aspect-ratio: 4 / 3; align-self: center; }
.mo-hub .mo-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 1; justify-content: space-between; }

.post-hero { margin: 0 0 34px; border-radius: var(--r); overflow: hidden; aspect-ratio: 8 / 5; background: var(--surface); border: 1px solid var(--line); }

@media (max-width: 720px) {
  .mo-wide, .mo-hub { flex-direction: column; gap: 14px; }
  .mo-art.side, .mo-hub .mo-art.side { width: 100%; aspect-ratio: 8 / 5; }
  .mo-art.bleed { margin-top: 4px; }
}
