/* ==========================================================================
   imissfiles — design system v2
   Ground is always tinted; surfaces are the lightest thing on the page.
   That separation is what light mode was missing.
   ========================================================================== */

@font-face {
  font-family: 'Inter var';
  src: url('/vendor/07671b7654/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The ground is deliberately well below white. Cards are pure white, so the
     gap itself does most of the separation and the shadow only has to confirm
     it. At an 8% gap the panels dissolved into the page. */
  /* Brighter and less yellow than before. The ground no longer carries the
     separation on its own — the shadows below do that — so it can be light. */
  --ground:        #EFEDE9;
  --ground-deep:   #E6E3DD;
  --surface:       #FFFFFF;
  --surface-2:     #F7F6F3;
  --surface-3:     #F0EEEA;

  --line:          rgba(28, 32, 30, 0.09);
  --line-strong:   rgba(28, 32, 30, 0.24);

  --ink:           #121614;
  --ink-2:         #454E4A;
  --ink-3:         #57605A;

  --accent:        #0A6A4E;
  --accent-2:      #06A17A;
  --accent-hi:     #085740;
  --accent-wash:   #E2F0EA;
  --accent-ink:    #FFFFFF;
  --accent-line:   rgba(11, 122, 90, 0.28);

  --warn:          #8A5A00;
  --warn-wash:     #FBF0DC;
  --danger:        #A3272B;
  --danger-wash:   #FAE9E9;
  --ok:            #0B7A5A;
  --ok-wash:       #E2F0EA;

  /* Ambient corner glows: a fixed layer behind the page, green top-left and
     violet top-right. Stays anchored to the viewport so the light follows you
     down the page rather than only lighting the hero. */
  --glow-l: rgba(6, 150, 112, 0.20);
  --glow-r: rgba(116, 84, 214, 0.17);
  --mesh-1: rgba(6, 161, 122, 0.30);
  --mesh-2: rgba(14, 116, 144, 0.22);
  --mesh-3: rgba(124, 92, 220, 0.16);
  --mesh-4: rgba(214, 158, 46, 0.14);

  /* Three-part shadows. A tight contact shadow anchors the object to the page,
     a mid shadow gives it height, and a wide soft one is the ambient falloff.
     Skipping the third is what made the earlier version read as flat. */
  --e1: 0 2px 4px rgba(30, 36, 32, 0.09),
        0 8px 18px rgba(30, 36, 32, 0.13),
        0 20px 42px rgba(30, 36, 32, 0.12);
  --e2: 0 3px 6px rgba(30, 36, 32, 0.10),
        0 12px 26px rgba(30, 36, 32, 0.16),
        0 28px 58px rgba(30, 36, 32, 0.15);
  --e3: 0 4px 8px rgba(28, 34, 30, 0.10),
        0 16px 36px rgba(28, 34, 30, 0.17),
        0 40px 80px rgba(28, 34, 30, 0.18);
  --glow: 0 2px 14px rgba(11, 122, 90, 0.30);

  --sans: 'Inter var', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --t--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --t-0:  clamp(0.96rem, 0.93rem + 0.14vw, 1.05rem);
  --t-1:  clamp(1.12rem, 1.05rem + 0.34vw, 1.32rem);
  --t-2:  clamp(1.38rem, 1.22rem + 0.74vw, 1.92rem);
  --t-3:  clamp(1.80rem, 1.44rem + 1.66vw, 3.00rem);
  --t-4:  clamp(2.35rem, 1.62rem + 3.40vw, 4.90rem);

  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3.25rem; --s8: 5rem;

  --r1: 8px; --r2: 12px; --r3: 18px; --r4: 26px;

  --measure: 66ch;
  --page: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
  /* In dark mode a shadow is black on black and does nothing. Elevation has to
     come from the surface being lighter than the ground, so the steps are
     widened and a hairline top highlight suggests a lit edge. */
  --ground:        #08090B;
  --ground-deep:   #050506;
  --surface:       #1B2026;
  --surface-2:     #232931;
  --surface-3:     #2C333C;

  --line:          rgba(255, 255, 255, 0.13);
  --line-strong:   rgba(255, 255, 255, 0.26);

  --ink:           #F0F3F1;
  --ink-2:         #A8B2AD;
  --ink-3:         #98A29D;

  --accent:        #00D68F;
  --accent-2:      #34E3B0;
  --accent-hi:     #4DECBF;
  --accent-wash:   #0C2620;
  --accent-ink:    #04120D;
  --accent-line:   rgba(0, 214, 143, 0.32);

  --warn:          #E8B761;
  --warn-wash:     #2A2214;
  --danger:        #F58B8B;
  --danger-wash:   #2D1818;
  --ok:            #00D68F;
  --ok-wash:       #0C2620;

  --glow-l: rgba(0, 214, 143, 0.13);
  --glow-r: rgba(140, 110, 245, 0.15);
  --mesh-1: rgba(0, 214, 143, 0.24);
  --mesh-2: rgba(28, 150, 190, 0.20);
  --mesh-3: rgba(140, 110, 245, 0.18);
  --mesh-4: rgba(226, 170, 60, 0.10);

  --e1: 0 2px 4px rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.45),
        0 18px 38px rgba(0, 0, 0, 0.35);
  --e2: 0 3px 6px rgba(0, 0, 0, 0.6),
        0 10px 24px rgba(0, 0, 0, 0.55),
        0 24px 52px rgba(0, 0, 0, 0.45);
  --e3: 0 4px 8px rgba(0, 0, 0, 0.65),
        0 16px 36px rgba(0, 0, 0, 0.6),
        0 40px 80px rgba(0, 0, 0, 0.55);
  --glow: 0 2px 20px rgba(0, 214, 143, 0.32);
  /* a lit top edge, the way a raised surface catches light from above */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-0); line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.06; font-weight: 620; text-wrap: balance; }
h1 { font-size: var(--t-4); letter-spacing: -0.042em; font-weight: 680; }
h2 { font-size: var(--t-2); letter-spacing: -0.028em; }
h3 { font-size: var(--t-1); letter-spacing: -0.018em; }

p { margin: 0 0 var(--s4); max-width: var(--measure); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
img, svg, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r1); }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Fewer and gentler, not zero. Opacity and colour still transition because
     they aid comprehension; movement and scaling are what cause sickness. */
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, box-shadow !important;
    transition-duration: 160ms !important;
    transform: none !important;
  }
}

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 760px) { .wrap { padding-inline: var(--s6); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: var(--s3) var(--s5); border-radius: 0 0 var(--r2) 0; font-weight: 560;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 76%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.hdr::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.hdr-in { display: flex; align-items: center; gap: var(--s3); min-height: 66px; min-width: 0; }
@media (max-width: 560px) { .hdr-in { gap: var(--s2); } }

.brand {
  display: inline-flex; align-items: center; gap: 0;
  font-size: var(--t-1); font-weight: 660; letter-spacing: -0.038em;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.brand b {
  font-weight: 660;
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-note {
  font-family: var(--mono); font-size: 0.6em; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0;
  padding: 2px 7px; border: 1px solid var(--line); border-radius: 100px; margin-left: var(--s3);
}
/* the tool-count badge is the first thing to go when space is tight */
@media (max-width: 560px) { .brand-note { display: none; } }
@media (max-width: 400px) { .brand { font-size: var(--t-0); } }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; flex-shrink: 0; }
.nav-link {
  /* this class is used on both <a> and <button>; buttons carry a UA default
     background and border that read as a pale box in dark mode */
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: var(--s2) var(--s3); border-radius: var(--r1);
  color: var(--ink-2); text-decoration: none;
  font-size: var(--t--1); font-weight: 520; white-space: nowrap;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.nav-link:hover { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-hide { display: none; }
@media (min-width: 900px) { .nav-hide { display: inline-flex; } }
@media (max-width: 420px) {
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 15px; height: 15px; }
  .nav-trigger { padding: var(--s2); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  cursor: pointer; box-shadow: var(--e1);
  transition: color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.icon-btn:hover { color: var(--accent); transform: translateY(-1px); box-shadow: var(--e2); }
.icon-btn:active { transform: translateY(0) scale(0.95); }
.icon-btn svg { width: 17px; height: 17px; }

.dd { position: relative; }
.dd-panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: max-content; max-width: min(92vw, 720px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); box-shadow: var(--e3); padding: var(--s5);
  display: none; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: var(--s5); transform-origin: top right;
}
.dd[data-open="true"] .dd-panel { display: grid; animation: pop 200ms var(--ease-out); }
.dd[data-open="true"] .dd-mega { animation: popc 220ms var(--ease-out); }
@keyframes popc {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
/* mega menu: anchored to the viewport edge, capped height, real columns */
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-trigger svg { width: 13px; height: 13px; opacity: 0.6; transition: transform 220ms var(--ease-out); }
.dd[data-open="true"] .nav-trigger svg { transform: rotate(180deg); }
.dd[data-open="true"] .nav-trigger { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }

.dd-mega {
  /* anchored to the page, not the trigger — at this width a trigger-anchored
     panel runs off the left edge of the viewport */
  position: fixed;
  top: 72px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 920px);
  max-width: min(94vw, 920px);
  max-height: min(78vh, 560px);
  overflow-y: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
  padding: var(--s6);
  align-items: start;
}
@media (max-width: 900px) { .dd-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); padding: var(--s5); } }

.dd-col { min-width: 0; }
.dd-col h4 {
  display: flex; align-items: baseline; gap: var(--s2);
  font-size: 0.72rem; font-weight: 640; color: var(--ink);
  margin-bottom: var(--s3); padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.dd-col h4 a { color: inherit; text-decoration: none; }
.dd-col h4 a:hover { color: var(--accent); }
.dd-col h4 span {
  margin-left: auto; font-family: var(--mono); font-size: 0.66rem;
  font-weight: 500; color: var(--ink-3);
  padding: 1px 6px; border: 1px solid var(--line); border-radius: 100px;
}
.dd-col ul { list-style: none; margin: 0; padding: 0; }
.dd-col a {
  display: block; padding: 6px var(--s2); border-radius: var(--r1);
  color: var(--ink-2); text-decoration: none; font-size: var(--t--1);
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.dd-col ul a:hover { background: var(--accent-wash); color: var(--accent); }
.dd-all { color: var(--accent) !important; font-weight: 560; margin-top: 2px; }

/* ---------- share menu ---------- */
.share-panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 218px; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); box-shadow: var(--e3);
  display: none; flex-direction: column; gap: 2px;
  transform-origin: top right; z-index: 70;
}
.dd[data-open="true"] .share-panel { display: flex; animation: pop 200ms var(--ease-out); }
.share-item {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); border: 0; border-radius: var(--r2);
  background: none; color: var(--ink); text-decoration: none;
  font-size: var(--t--1); font-weight: 520; cursor: pointer;
  width: 100%; text-align: left; transition: background 130ms var(--ease);
}
.share-item:hover { background: var(--surface-2); color: var(--ink); }
.share-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--ink-2); }
.share-item:hover svg { color: var(--accent); }
.share-item[data-done="true"], .share-item[data-done="true"] svg { color: var(--accent); }
.share-sep { height: 1px; background: var(--line); margin: var(--s2) var(--s3); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 0; padding: var(--s7) 0 var(--s6);
  /* the mesh is inset negatively and would otherwise widen the document */
  overflow: hidden;
}
.hero > *:not(.hero-mesh) { position: relative; z-index: 1; }
@media (min-width: 760px) { .hero { padding: var(--s8) 0 var(--s7); } }

.hero-mesh {
  position: absolute; inset: -45% -4% auto -4%; height: 175%;
  z-index: 0; pointer-events: none; filter: blur(64px); opacity: 1;
  /* clipped to the hero box to keep the document from widening, so fade all
     four edges rather than leaving a hard rectangle */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 50%, transparent 92%),
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image:
    linear-gradient(to bottom, #000 50%, transparent 92%),
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-mesh i { position: absolute; display: block; border-radius: 50%; }
.hero-mesh i:nth-child(1) { width: 46%; height: 62%; left: 4%;  top: 6%;  background: var(--mesh-1); }
.hero-mesh i:nth-child(2) { width: 40%; height: 56%; left: 34%; top: 22%; background: var(--mesh-2); animation-delay: -6s; }
.hero-mesh i:nth-child(3) { width: 38%; height: 50%; left: 58%; top: 2%;  background: var(--mesh-3); animation-delay: -12s; }
.hero-mesh i:nth-child(4) { width: 30%; height: 42%; left: 20%; top: 40%; background: var(--mesh-4); animation-delay: -18s; }

.hero h1 { max-width: 17ch; }
.hero-sub { font-size: var(--t-1); color: var(--ink-2); max-width: 50ch; margin-top: var(--s5); line-height: 1.5; }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 6px var(--s4) 6px var(--s3);
  border: 1px solid var(--line); border-radius: 100px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
  font-size: 0.76rem; font-weight: 520; color: var(--ink-2);
  margin-bottom: var(--s5); box-shadow: var(--e1);
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero > * { animation: rise 420ms var(--ease-out) backwards; }
.hero > *:nth-child(2) { animation-delay: 60ms; }
.hero > *:nth-child(3) { animation-delay: 120ms; }
.hero > *:nth-child(4) { animation-delay: 180ms; }
.hero > *:nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s3) var(--s6); min-height: 48px;
  border: 1px solid transparent; border-radius: 100px;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: var(--accent-ink); font-weight: 570; font-size: var(--t-0);
  letter-spacing: -0.012em; text-decoration: none; cursor: pointer; box-shadow: var(--glow);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); filter: saturate(1.12); box-shadow: var(--e2), var(--glow); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(0.4); }

.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--e1); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); box-shadow: var(--e2); filter: none; }
.btn-sm { padding: var(--s2) var(--s4); min-height: 38px; font-size: var(--t--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* ---------- ambient corner glows ---------- */
body::before {
  content: ""; position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(58rem 38rem at -6% -10%, var(--glow-l), transparent 68%),
    radial-gradient(56rem 36rem at 106% -8%, var(--glow-r), transparent 66%);
}
/* content sits above the glow layer. The header keeps its own higher level —
   setting it to 1 here put it level with .wrap, and because .wrap comes later
   in the DOM it painted over the open dropdown and swallowed its clicks. */
.wrap, .ftr, .sec-sunken { position: relative; z-index: 1; }
.hdr { position: sticky; z-index: 60; }
.hdr-search { position: sticky; z-index: 55; }

@media (prefers-reduced-motion: no-preference) {
  body::before { transition: background 400ms var(--ease); }
}

/* ---------- tool icons ----------
   Colour means file format, not category, so the same hue means the same thing
   on every surface. Hues are spaced so no two formats read as each other:
   PDF red 4°, slides orange 28°, Excel/CSV green 150°, image cyan 190°,
   Word blue 216°, text neutral slate. OCR tools are image to text, so they
   take those two colours rather than a hue of their own. */
:root {
  --f-pdf:    hsl(4 72% 44%);
  --f-word:   hsl(216 74% 42%);
  --f-sheet:  hsl(150 80% 27%);
  --f-slides: hsl(28 82% 42%);
  --f-image:  hsl(190 78% 33%);
  --f-text:   hsl(220 12% 42%);
}
[data-theme="dark"] {
  --f-pdf:    hsl(4 90% 70%);
  --f-word:   hsl(214 88% 71%);
  --f-sheet:  hsl(150 62% 54%);
  --f-slides: hsl(32 88% 62%);
  --f-image:  hsl(190 72% 60%);
  --f-text:   hsl(220 14% 66%);
}

/* source colour (badge behind) and destination colour (badge in front) */
[data-from="pdf"]    { --from: var(--f-pdf); }
[data-from="word"]   { --from: var(--f-word); }
[data-from="sheet"]  { --from: var(--f-sheet); }
[data-from="slides"] { --from: var(--f-slides); }
[data-from="image"]  { --from: var(--f-image); }
[data-from="text"]   { --from: var(--f-text); }

[data-to="pdf"]    { --to: var(--f-pdf); --tint: var(--f-pdf); }
[data-to="word"]   { --to: var(--f-word); --tint: var(--f-word); }
[data-to="sheet"]  { --to: var(--f-sheet); --tint: var(--f-sheet); }
[data-to="slides"] { --to: var(--f-slides); --tint: var(--f-slides); }
[data-to="image"]  { --to: var(--f-image); --tint: var(--f-image); }
[data-to="text"]   { --to: var(--f-text); --tint: var(--f-text); }

.card-i, .bench-i {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px;
  color: var(--tint, var(--f-text));
  background: color-mix(in srgb, var(--tint, var(--f-text)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint, var(--f-text)) 22%, transparent);
  /* the front badge punches out the one behind it, so it needs the tile colour */
  --tile-bg: color-mix(in srgb, var(--tint, var(--f-text)) 10%, var(--surface));
  transition: background 260ms var(--ease), transform 260ms var(--ease-out);
}
.card-i svg, .bench-i svg { width: 20px; height: 20px; }
.card:hover .card-i {
  background: color-mix(in srgb, var(--tint) 18%, transparent);
  --tile-bg: color-mix(in srgb, var(--tint) 18%, var(--surface));
  transform: scale(1.06);
}

.bench-i { width: 34px; height: 34px; border-radius: 10px; }
.bench-i svg { width: 18px; height: 18px; }

/* menu entries get the glyph at text scale */
.dd-i {
  display: inline-grid; place-items: center; width: 16px; height: 16px;
  flex-shrink: 0; opacity: 0.85; color: var(--tint, var(--f-text));
  --tile-bg: var(--surface);
}
.dd-i svg { width: 15px; height: 15px; }
.dd-col ul a { display: flex; align-items: center; gap: var(--s3); }
.dd-col ul a:hover .dd-i { opacity: 1; }

:root { --edge: 0 0 0 0 rgba(0,0,0,0); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s5) var(--s4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); box-shadow: var(--e1), var(--edge);
  text-decoration: none; color: var(--ink); min-height: 104px;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%);
  opacity: 0; transition: opacity 260ms var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e2), var(--edge);
  border-color: var(--accent-line);
  color: var(--ink);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-i { margin-bottom: var(--s3); }
.card-t { font-weight: 590; letter-spacing: -0.018em; font-size: var(--t-0); }
.card-d { font-size: var(--t--1); color: var(--ink-3); line-height: 1.45; display: none; }
@media (min-width: 680px) { .card-d { display: block; } }

/* ---------- sections ---------- */
.sec { padding: var(--s6) 0; }
@media (min-width: 760px) { .sec { padding: var(--s7) 0; } }
.sec-sunken { background: var(--ground-deep); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: var(--s5); }
.sec-head p { color: var(--ink-2); margin: var(--s3) 0 0; }

/* category blocks on the hub: the heading was sitting right on top of the grid */
.cat-block { margin-bottom: var(--s8); }
.cat-block:last-child { margin-bottom: 0; }
.cat-block h3 {
  font-size: var(--t-2); letter-spacing: -0.028em;
  margin-bottom: var(--s3);
}
.cat-block h3 a { color: inherit; text-decoration: none; }
.cat-block h3 a:hover { color: var(--accent); }
.cat-block > p {
  color: var(--ink-2); font-size: var(--t-0);
  margin: 0 0 var(--s5); max-width: 56ch;
}
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s7); margin-bottom: var(--s4); }
.prose h3 { margin-top: var(--s6); margin-bottom: var(--s3); }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.25em; margin: 0 0 var(--s5); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 600; }

.tbl-scroll {
  overflow-x: auto; margin: 0 0 var(--s6);
  border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--surface); box-shadow: var(--e1); -webkit-overflow-scrolling: touch;
  /* a fade on the right edge signals there is more table off-screen */
  background-image: linear-gradient(to left, var(--surface), transparent 42px);
  background-attachment: local, scroll;
}
.tbl-scroll::after {
  content: "Scroll for more \2192";
  display: none;
  padding: var(--s2) var(--s4);
  font-size: 0.72rem; color: var(--ink-3);
  border-top: 1px solid var(--line); background: var(--surface-2);
}
@media (max-width: 620px) { .tbl-scroll::after { display: block; } }
table { width: 100%; border-collapse: collapse; font-size: var(--t--1); min-width: 460px; }
@media (max-width: 620px) { th, td { white-space: normal; min-width: 116px; } }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--ink); background: var(--surface-2); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 520; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: var(--s5) 0; cursor: pointer; font-weight: 550; list-style: none;
  display: flex; justify-content: space-between; gap: var(--s5); align-items: baseline;
  transition: color 160ms var(--ease);
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px; align-self: center;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 240ms var(--ease-out); opacity: 0.5;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); opacity: 1; }
.faq details > div { padding-bottom: var(--s5); color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  list-style: none; margin: var(--s5) 0 var(--s4); padding: 0;
  font-size: var(--t--1); color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: var(--s2); opacity: 0.4; }

/* ---------- workbench ---------- */
.bench {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r4);
  box-shadow: var(--e2); overflow: hidden; margin-bottom: var(--s7);
}
.bench-head {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.bench-head h2 { font-size: var(--t-0); font-weight: 600; letter-spacing: -0.018em; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 540; padding: 4px var(--s3); border-radius: 100px;
  background: var(--accent-wash); color: var(--accent);
  border: 1px solid var(--accent-line); margin-left: auto; white-space: nowrap;
}
.bench-body { padding: var(--s5); }
@media (min-width: 760px) { .bench-body { padding: var(--s6); } }

.drop {
  position: relative; overflow: hidden;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r3);
  background: var(--surface-2); padding: var(--s7) var(--s5); text-align: center; cursor: pointer;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.drop:hover { border-color: var(--accent-line); background: var(--surface-3); }
.drop[data-over="true"] { border-color: var(--accent); background: var(--accent-wash); transform: scale(1.006); }
.drop-icon { color: var(--ink-3); margin: 0 auto var(--s4); width: 34px; height: 34px; transition: color 220ms var(--ease), transform 220ms var(--ease-out); }
.drop:hover .drop-icon { color: var(--accent); transform: translateY(-2px); }
.drop[data-over="true"] .drop-icon { color: var(--accent); transform: translateY(-4px); }
.drop-t { font-weight: 570; margin-bottom: var(--s1); font-size: var(--t-1); letter-spacing: -0.02em; }
.drop-h { font-size: var(--t--1); color: var(--ink-3); }
.drop input[type="file"] { display: none; }

.files { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.file {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r2);
  font-size: var(--t--1); transition: border-color 160ms var(--ease);
}
.file:hover { border-color: var(--line-strong); }
.file-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 520; }
.file-s { font-family: var(--mono); color: var(--ink-3); font-size: 0.76rem; flex-shrink: 0; }
.file-x {
  border: 0; background: none; color: var(--ink-3); cursor: pointer;
  padding: 3px 7px; border-radius: var(--r1); line-height: 1; font-size: 1.15rem; flex-shrink: 0;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.file-x:hover { color: var(--danger); background: var(--danger-wash); }
.file[draggable="true"] { cursor: grab; }
.file[data-dragging="true"] { opacity: 0.35; }
.grip { color: var(--ink-3); cursor: grab; flex-shrink: 0; width: 14px; }

.ctrls { display: grid; gap: var(--s5); margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.ctrl-row { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ctrl-row { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: var(--s2); align-content: start; }
.field > label { font-size: var(--t--1); font-weight: 560; }
.field-h { font-size: 0.78rem; color: var(--ink-3); line-height: 1.45; }

input[type="text"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; padding: var(--s3) var(--s4); min-height: 46px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r2);
  font-size: var(--t-0);
  transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); outline: none;
}
textarea { font-family: var(--mono); font-size: var(--t--1); resize: vertical; min-height: 130px; line-height: 1.6; }
input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--accent); background: none; border: 0; padding: 0; }
input[type="range"]:focus { box-shadow: none; }

.check { display: flex; align-items: center; gap: var(--s3); cursor: pointer; font-size: var(--t--1); min-height: 38px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin: 0; min-height: 0; }

.seg { display: flex; flex-wrap: wrap; gap: var(--s2); }
.seg button {
  padding: var(--s2) var(--s4); min-height: 40px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--surface); cursor: pointer;
  font-size: var(--t--1); font-weight: 520; color: var(--ink-2);
  transition: all 180ms var(--ease);
}
.seg button:hover { border-color: var(--accent-line); color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent; box-shadow: var(--glow); font-weight: 560;
}

.status {
  margin-top: var(--s5); padding: var(--s4) var(--s5); border-radius: var(--r2);
  font-size: var(--t--1); display: flex; align-items: center; gap: var(--s3);
  border: 1px solid transparent; animation: rise 320ms var(--ease-out);
}
.status[data-kind="work"] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }
.status[data-kind="ok"]   { background: var(--ok-wash); color: var(--ok); border-color: var(--accent-line); }
.status[data-kind="warn"] { background: var(--warn-wash); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 26%, transparent); }
.status[data-kind="err"]  { background: var(--danger-wash); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 26%, transparent); }

.spin { width: 15px; height: 15px; flex-shrink: 0; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 500ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bar { height: 4px; background: var(--line); border-radius: 100px; overflow: hidden; margin-top: var(--s3); }
/* scaleX rather than width: width runs layout on every frame */
.bar > i {
  display: block; height: 100%; width: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 200ms var(--ease);
}

.out { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.out-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.out-item {
  border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--e1);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.out-item:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.out-item img, .out-item canvas { width: 100%; height: 124px; object-fit: contain; background: var(--surface); }
.out-meta { padding: var(--s3); font-size: 0.76rem; }
.out-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.out-meta span { color: var(--ink-3); font-family: var(--mono); font-size: 0.7rem; }

.stats {
  display: flex; flex-wrap: wrap; gap: var(--s5); padding: var(--s4) var(--s5);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r2); font-size: var(--t--1); margin-bottom: var(--s5);
}
.stats b { color: var(--ink); font-weight: 620; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-3); }

.preview {
  border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--surface-2); padding: var(--s5); max-height: 400px; overflow: auto;
  font-family: var(--mono); font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; line-height: 1.6;
}

.pages { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); margin-top: var(--s4); }
.pg {
  position: relative; border: 2px solid var(--line); border-radius: var(--r2);
  overflow: hidden; background: var(--surface); cursor: grab; aspect-ratio: 3 / 4; box-shadow: var(--e1);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease-out), opacity 200ms var(--ease);
}
.pg:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.pg canvas { width: 100%; height: 100%; object-fit: contain; }
.pg[data-sel="false"] { opacity: 0.3; }
.pg[data-sel="true"] { border-color: var(--accent); }
.pg-n {
  position: absolute; bottom: 5px; left: 5px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--ground); font-family: var(--mono); font-size: 0.62rem; padding: 2px 6px; border-radius: 5px;
}
.pg-r {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px;
  display: grid; place-items: center; border: 0; border-radius: 7px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(6px); color: var(--ink-2); cursor: pointer; font-size: 0.74rem;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.pg-r:hover { background: var(--accent); color: var(--accent-ink); }

.note { padding: var(--s5); border-radius: var(--r2); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--t--1); color: var(--ink-2); margin-bottom: var(--s5); }
.note b { color: var(--ink); }
.note-accent { background: var(--accent-wash); border-color: var(--accent-line); }
.note p:last-child { margin-bottom: 0; }

.priv { display: flex; align-items: center; gap: var(--s3); font-size: var(--t--1); color: var(--ink-2); margin-bottom: var(--s5); }
.priv svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

.promises { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); gap: var(--s7); } }
.promise h3 { margin-bottom: var(--s3); font-size: var(--t-1); }
.promise p { font-size: var(--t--1); color: var(--ink-2); margin: 0; }
.promise-i {
  color: var(--accent); width: 26px; height: 26px; margin-bottom: var(--s4);
  padding: 7px; box-sizing: content-box; background: var(--accent-wash);
  border: 1px solid var(--accent-line); border-radius: var(--r2);
}

.ad { margin: var(--s7) auto; min-height: 100px; max-width: 728px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
@media (min-width: 760px) { .ad { min-height: 120px; } }
.ad:empty, .ad:not(:has(ins)) { min-height: 0; margin: 0; border: 0; background: none; }
body[data-busy="true"] .ad, body[data-busy="true"] .adsbygoogle { visibility: hidden; }

.ftr { border-top: 1px solid var(--line); background: var(--ground-deep); padding: var(--s8) 0 var(--s6); margin-top: var(--s8); }
.ftr-top { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-bottom: var(--s7); }
@media (min-width: 760px) { .ftr-top { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.ftr-about p { font-size: var(--t--1); color: var(--ink-2); max-width: 38ch; }
.ftr-contact { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s2); }
.ftr-contact a {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-size: var(--t--1); color: var(--ink-2); text-decoration: none;
  padding: 5px 0; transition: color 150ms var(--ease);
}
.ftr-contact svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; transition: color 150ms var(--ease); }
.ftr-contact a:hover, .ftr-contact a:hover svg { color: var(--accent); }
.ftr h4 { font-size: var(--t--1); margin-bottom: var(--s4); font-weight: 620; }
.ftr h4 a { color: var(--ink); text-decoration: none; }
.ftr h4 a:hover { color: var(--accent); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.ftr ul a { font-size: var(--t--1); color: var(--ink-2); text-decoration: none; }
.ftr ul a:hover { color: var(--accent); }
.ftr-btm { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; padding-top: var(--s5); border-top: 1px solid var(--line); font-size: var(--t--1); color: var(--ink-3); }
.ftr-btm nav { display: flex; flex-wrap: wrap; gap: var(--s5); margin-left: auto; }
.ftr-btm a { color: var(--ink-3); text-decoration: none; }
.ftr-btm a:hover { color: var(--accent); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Workbench pass — search, success sheet, trust chip, consent spacing
   ========================================================================== */

/* ---------- tool search ---------- */
.search {
  display: flex; align-items: center; gap: var(--s3);
  max-width: 520px; margin-top: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 100px;
  box-shadow: var(--e1);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.search input {
  flex: 1; min-width: 0; min-height: 0;
  border: 0; background: none; padding: 0;
  font-size: var(--t-0); color: var(--ink);
}
.search input:focus { box-shadow: none; outline: none; border: 0; background: none; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.search kbd {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 7px; flex-shrink: 0;
}
@media (max-width: 560px) { .search kbd { display: none; } }

.search-results { margin-top: var(--s5); }
.search-results:empty { display: none; }
.search-empty { color: var(--ink-2); margin-top: var(--s5); font-size: var(--t--1); }

/* ---------- trust chip ---------- */
.trust-chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin: 0 0 var(--s5); padding: 5px var(--s4);
  border-radius: 100px; font-size: var(--t--1);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2);
}
.trust-chip b { font-weight: 560; color: var(--ink); }

/* ---------- success sheet ---------- */
.success-sheet {
  margin-bottom: var(--s6); padding: var(--s5);
  border-radius: var(--r3);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  animation: rise 220ms var(--ease-out);
}
.ss-top { display: flex; align-items: flex-start; gap: var(--s4); }
.ss-tick {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  color: var(--accent);
}
.ss-kicker { margin: 0; font-weight: 600; color: var(--ink); letter-spacing: -0.018em; }
.ss-stat { margin: var(--s1) 0 0; font-size: var(--t--1); color: var(--ink-2); }
.ss-x {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 1.4rem; line-height: 1;
  padding: 0 var(--s2); border-radius: var(--r1);
}
.ss-x:hover { color: var(--ink); }

.ss-h {
  font-size: var(--t--1); font-weight: 620; color: var(--ink-2);
  margin: var(--s5) 0 var(--s3);
}
.ss-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ss-grid .card { min-height: 0; padding: var(--s4); }
.ss-grid .card-i { width: 30px; height: 30px; border-radius: 9px; margin-bottom: var(--s2); }
.ss-grid .card-i svg { width: 17px; height: 17px; }
.ss-grid .card-d { display: block; }

.ss-intent {
  margin: var(--s4) 0 0; font-size: var(--t--1);
  color: var(--ink-2); max-width: 60ch;
}
.ss-foot {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--accent-line);
}
.ss-ask { margin: 0 0 var(--s3); font-size: var(--t--1); color: var(--ink-2); }
.ss-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }

/* icon-only actions are square; the support action carries a label */
.ss-act {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none;
  font-size: var(--t--1); font-weight: 540;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease-out);
}
.ss-act svg { width: 17px; height: 17px; flex-shrink: 0; }
.ss-act-wide { width: auto; padding-inline: var(--s4) var(--s5); }
@media (hover: hover) and (pointer: fine) {
  .ss-act:hover { border-color: var(--accent); color: var(--accent); }
}
.ss-act:active { transform: scale(.97); transition-duration: 120ms; }
.ss-act.is-done { border-color: var(--accent); color: var(--accent); }
.ss-hint { font-size: 0.78rem; color: var(--ink-2); }


/* ---------- network-tab figure ---------- */
.netdemo {
  border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--surface); overflow: hidden;
  margin: 0 0 var(--s5); box-shadow: var(--e1);
  font-family: var(--mono); font-size: 0.76rem;
}
.netdemo-bar {
  display: flex; gap: var(--s2); align-items: center;
  padding: var(--s2) var(--s4);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  color: var(--ink-3); font-size: 0.7rem;
}
.netdemo-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); display: block;
}
.netdemo table { min-width: 0; font-size: 0.74rem; }
.netdemo th, .netdemo td { padding: var(--s2) var(--s4); }
.netdemo td:last-child, .netdemo th:last-child { text-align: right; }
.netdemo .nd-none {
  padding: var(--s4); color: var(--ink-3);
  border-top: 1px dashed var(--line); text-align: center;
}

/* ---------- consent banner must not cover the workbench ----------
   Secure Privacy injects a fixed bottom bar. Its markup is not ours and the
   class names are not guaranteed stable, so we reserve space at the document
   level rather than restyling their element — that keeps the dropzone and the
   primary buttons reachable even if the vendor changes their DOM. */
body { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 900px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 901px) {
  body { padding-bottom: 84px; }
}
/* once consent is answered the bar goes away and the reserve is not needed */
body[data-consent="done"] { padding-bottom: env(safe-area-inset-bottom); }

/* ---------- header search overlay ---------- */
.hdr-search {
  position: sticky; top: 66px; z-index: 55;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding: var(--s4) 0 var(--s5);
  animation: rise 240ms var(--ease-out);
}
.hdr-search .search { margin-top: 0; max-width: 620px; }
.hdr-search-x {
  border: 0; background: none; color: var(--ink-3);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  padding: 0 var(--s1); border-radius: var(--r1); flex-shrink: 0;
}
.hdr-search-x:hover { color: var(--ink); }
.hdr-search .search-results { max-height: 60vh; overflow-y: auto; }
/* The homepage and category hubs already carry an inline field, so the header
   button is only needed where there is not one. */
body[data-has-inline-search] .hdr-search-btn { display: none; }


/* ---------- tool page hero mark ----------
   The format-coloured icon at display size, so a tool page reads as its own
   thing rather than a template with the name swapped. Same glyph as the card
   and the workbench header, one scale up. */
.hero-i {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  margin-bottom: var(--s4);
  color: var(--tint, var(--f-text));
  background: color-mix(in srgb, var(--tint, var(--f-text)) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tint, var(--f-text)) 26%, transparent);
  box-shadow: var(--e1);
  --tile-bg: color-mix(in srgb, var(--tint, var(--f-text)) 12%, var(--surface));
}
.hero-i svg { width: 34px; height: 34px; }
@media (min-width: 760px) {
  .hero-i { width: 72px; height: 72px; border-radius: 20px; }
  .hero-i svg { width: 38px; height: 38px; }
}
.hero-tool h1 { margin-top: 0; }

/* ---------- guide pages ---------- */
kbd {
  font-family: var(--mono); font-size: 0.82em;
  padding: 1px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-bottom-width: 2px; color: var(--ink);
}
.prose code {
  font-family: var(--mono); font-size: 0.86em;
  padding: 1px 5px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink);
}
.prose ol li { margin-bottom: var(--s3); }

/* ---------- camera capture ---------- */
.drop-cam {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-top: var(--s4);
}
.drop-cam svg { width: 16px; height: 16px; }

.cam {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(8, 10, 9, 0.82);
  backdrop-filter: blur(8px);
  padding: var(--s4);
  animation: rise 220ms var(--ease-out);
}
.cam-box {
  width: min(96vw, 900px);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r3);
  box-shadow: var(--e3);
  overflow: hidden;
}
.cam-video {
  display: block; width: 100%;
  max-height: min(70vh, 640px);
  background: #000; object-fit: contain;
  transition: opacity 120ms;
}
.cam-msg { padding: var(--s6); text-align: center; color: var(--ink-2); }
.cam-bar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--line);
}
.cam-count { font-family: var(--mono); font-size: var(--t--1); color: var(--accent); font-weight: 560; }
.cam-note {
  margin: 0; padding: var(--s3) var(--s5) var(--s4);
  font-size: 0.76rem; color: var(--ink-3);
}

/* ---------- keep coming back ---------- */
.keep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 760px) { .keep-list { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.keep-list li {
  /* text left, illustration right; the art is decorative so it shrinks first */
  display: flex; align-items: flex-end; gap: var(--s4);
  padding: var(--s4) var(--s5); border-radius: var(--r2);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1);
  font-size: var(--t--1); color: var(--ink-2); line-height: 1.5;
  overflow: hidden;
}
.keep-txt { flex: 1 1 auto; min-width: 0; }
.keep-art {
  flex: 0 0 auto; width: auto; height: 78px;
  align-self: flex-end; margin-bottom: calc(var(--s4) * -1);
  object-fit: contain; object-position: bottom;
}
@media (min-width: 1100px) { .keep-art { height: 92px; } }
@media (max-width: 759px)  { .keep-art { height: 86px; } }
.keep-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.drop-cam-primary { margin: 0 0 var(--s4); font-size: var(--t-0); min-height: 48px; padding-inline: var(--s6); }
.drop-cam-primary svg { width: 18px; height: 18px; }

/* ---------- guides hub list ---------- */
.guide-list { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s3); }
.guide-list li {
  padding: var(--s4) var(--s5); border-radius: var(--r2);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1);
}
.guide-list a { text-decoration: none; }
.guide-list strong { display: block; color: var(--ink); font-size: var(--t-0); letter-spacing: -0.018em; }
.guide-list a:hover strong { color: var(--accent); }
.guide-list span { display: block; margin-top: 3px; font-size: var(--t--1); color: var(--ink-2); line-height: 1.5; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--s3); }
.brand-roo {
  width: 34px; height: auto; flex-shrink: 0;
  /* the artwork is a raster cutout, so keep its own ratio and never stretch */
  object-fit: contain;
}
@media (min-width: 760px) { .brand-roo { width: 42px; } }
.brand-word { display: inline-block; }

/* the category filter needs real space before the first section heading */
.seg-filter { margin-bottom: var(--s6); }
@media (min-width: 760px) { .seg-filter { margin-bottom: var(--s7); } }

/* ==========================================================================
   Review pass — mobile tool hero, bench header, tap targets
   ========================================================================== */

/* ---------- 1. get the dropzone into the first screen on phones ----------
   Measured: on a 390x844 viewport the drop target sat 698px down, so a visitor
   arriving from search saw a title and no tool. The hero is compressed on
   tool pages only — the homepage hero is a landing page and keeps its scale. */
@media (max-width: 759px) {
  .hero-tool { padding-top: var(--s4); padding-bottom: var(--s4); }
  .hero-tool h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.5rem);
    line-height: 1.08;
    max-width: 20ch;
  }
  .hero-tool .hero-sub {
    font-size: var(--t-0);
    margin-top: var(--s3);
    max-width: 46ch;
  }
  .hero-tool .hero-i {
    width: 44px; height: 44px; border-radius: 13px;
    margin-bottom: var(--s3);
  }
  .hero-tool .hero-i svg { width: 24px; height: 24px; }
  .bench { margin-top: var(--s4); }
}

/* ---------- 2. bench header should not wrap to two rows ---------- */
.bench-head {
  display: flex; align-items: center; gap: var(--s3);
  flex-wrap: nowrap;
}
.bench-head h2 { flex: 1 1 auto; min-width: 0; }
.bench-head .tag { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
  /* the badge repeats the privacy line directly below it, so on the narrowest
     screens it is redundant rather than worth a second row */
  .bench-head .tag { display: none; }
}

/* ---------- 3. tap targets ----------
   Header controls measured 37-38px against a 44px guideline. Setting a
   min-width pushed the header to 404px inside a 360px viewport, so the hit
   area is grown with a pseudo-element instead — it overflows the button
   without affecting layout width. */
@media (max-width: 900px) {
  .icon-btn, .nav-trigger { position: relative; }
  .icon-btn::after, .nav-trigger::after {
    content: ""; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px;
  }
  /* inline text links: pad the block axis only, which does not widen the row */
  .crumbs a, .ftr-col a, .ftr nav a {
    display: inline-block; padding-block: 7px;
  }
}

}

/* ==========================================================================
   Landing lede — one column, search first
   ========================================================================== */
.lede { position: relative; padding: var(--s7) 0 var(--s8); }
@media (min-width: 760px) { .lede { padding: var(--s8) 0; } }

.lede-mesh { position: absolute; inset: -12% -6% auto -6%; height: 130%; z-index: -1; pointer-events: none; }
.lede-mesh i { position: absolute; display: block; border-radius: 50%; filter: blur(78px); opacity: .5; }
.lede-mesh i:nth-child(1) { width: 34rem; height: 26rem; left: -8%; top: -16%; background: var(--mesh-1); }
.lede-mesh i:nth-child(2) { width: 30rem; height: 24rem; right: 2%;  top: 4%;  background: var(--mesh-3); }

.lede h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.035em;
  max-width: 15ch; margin: 0;
}
.lede-sub { font-size: var(--t-1); color: var(--ink-2); line-height: 1.5; max-width: 48ch; margin: var(--s5) 0 0; }
.lede .search { margin-top: var(--s6); max-width: 32rem; }
.lede-jump { margin: var(--s5) 0 0; font-size: var(--t--1); color: var(--ink-3); line-height: 1.9; max-width: 52ch; }
.lede-jump a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.lede-jump a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ==========================================================================
   Proof bubble — the claim is checkable from every page, not just the home one
   ========================================================================== */
.proof-fab {
  position: fixed; right: var(--s5);
  /* sits above the consent bar, which reserves space at the document level */
  bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  z-index: 70;
  width: 56px; height: 56px; padding: 0;
  border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--e2);
  display: grid; place-items: center;
  /* a slight overshoot on the way up reads as a hop rather than a slide */
  transition:
    transform 260ms cubic-bezier(.34, 1.56, .64, 1),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}
.proof-fab img {
  width: 40px; height: 40px; display: block;
  transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1);
}

/* the ring lives on a pseudo-element so it can scale independently of the
   button, which keeps the hop and the highlight from fighting each other */
.proof-fab::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0; transform: scale(.86);
  transition: opacity 200ms var(--ease), transform 260ms cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}

/* keyboard focus always; hover only on devices that really hover, or a tap
   leaves the button stuck in its hover state */
.proof-fab:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--e3);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
}
.proof-fab:focus-visible::before { opacity: .55; transform: scale(1); }
.proof-fab:focus-visible img { transform: rotate(-7deg) scale(1.06); }

@media (hover: hover) and (pointer: fine) {
  .proof-fab:hover {
    transform: translateY(-6px);
    box-shadow: var(--e3);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  }
  .proof-fab:hover::before { opacity: .55; transform: scale(1); }
  /* he leans toward the page as he rises */
  .proof-fab:hover img { transform: rotate(-7deg) scale(1.06); }
}

/* press: compress, so the click has weight */
.proof-fab:active {
  transform: translateY(-2px) scale(.97);
  transition-duration: 120ms;
}
.proof-fab:active img { transform: rotate(-3deg) scale(.98); }

/* open: stays lifted with the ring on, so the button reflects panel state */
.proof-fab[aria-expanded="true"] {
  transform: translateY(-6px);
  box-shadow: var(--e3);
  border-color: var(--accent);
}
.proof-fab[aria-expanded="true"]::before { opacity: 1; transform: scale(1); }
.proof-fab[aria-expanded="true"] img { transform: rotate(-7deg); }

/* First visit of a session only: the bubble is easy to miss, and a single
   gentle hop points at it. Emil's frequency table puts first-time moments in
   the "can add delight" band — the mistake before was replaying it on every
   page load, which moved it into "seen often, remove". */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .proof-fab[data-greet] { animation: greet 420ms var(--ease-out) 1200ms 1; }
}
@keyframes greet {
  0%   { transform: none; }
  40%  { transform: translateY(-8px); }
  70%  { transform: translateY(-2px); }
  100% { transform: none; }
}

/* one ripple outward on open — confirms the click landed */
.proof-fab::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .proof-fab[aria-expanded="true"]::after { animation: fabRipple 260ms var(--ease-out) 1; }
}
@keyframes fabRipple {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
  .proof-fab, .proof-fab img, .proof-fab::before { transition-duration: 1ms; }
  .proof-fab:hover, .proof-fab:focus-visible,
  .proof-fab[aria-expanded="true"] { transform: none; }
  .proof-fab:hover img, .proof-fab:active img,
  .proof-fab[aria-expanded="true"] img { transform: none; }
}
@media (max-width: 900px) { .proof-fab { bottom: calc(96px + env(safe-area-inset-bottom)); } }

.proof-pop {
  position: fixed; z-index: 71;
  /* anchored on both edges so it can never be wider than the viewport —
     100vw includes the scrollbar and was pushing the page sideways */
  left: var(--s4); right: var(--s4);
  width: auto; max-width: 380px; margin-left: auto;
  bottom: calc(var(--s5) + 68px + env(safe-area-inset-bottom));
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r3);
  box-shadow: var(--e3);
  overflow: hidden;
  /* it belongs to the bubble at bottom-right, so it grows from there */
  transform-origin: bottom right;
  /* a transition rather than keyframes: the bubble can be toggled rapidly and
     a transition retargets from its current position instead of restarting */
  opacity: 1; transform: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@starting-style {
  .proof-pop { opacity: 0; transform: translateY(6px) scale(0.96); }
}
@media (max-width: 900px) { .proof-pop { bottom: calc(96px + 68px + env(safe-area-inset-bottom)); } }

.proof-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: var(--t--1);
}
.proof-head strong { flex: 1 1 auto; font-weight: 590; color: var(--ink); }
.proof-x {
  border: 0; background: none; cursor: pointer; color: var(--ink-3);
  font-size: 1.3rem; line-height: 1; padding: 0 var(--s1); border-radius: var(--r1);
}
.proof-x:hover { color: var(--ink); }
.proof-live {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.proof-scroll { max-height: 46vh; overflow-y: auto; }
.proof-pop table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.74rem; }
.proof-pop td { padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.proof-pop tr:last-child td { border-bottom: 0; }
.pr-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.pr-dir { color: var(--accent); text-align: center; width: 2.5rem; }
.pr-size { text-align: right; white-space: nowrap; color: var(--ink-3); }
.proof-wait { color: var(--ink-3); }
.proof-sum { margin: 0; padding: var(--s4) var(--s5); font-size: var(--t--1); line-height: 1.55; color: var(--ink-2); border-top: 1px solid var(--line); }
.proof-sum b { color: var(--ink); font-weight: 600; }
.proof-note { margin: 0; padding: 0 var(--s5) var(--s5); font-size: 0.74rem; color: var(--ink-3); line-height: 1.5; }
.proof-note a { color: var(--ink-2); }


}

/* ---------- exits ----------
   Enter is eased-out and unhurried; leaving should be quicker, because the
   person has already decided. Closed state is held off-screen by opacity and
   transform only, so nothing reflows. */
.dd .dd-panel, .dd .dd-mega, .dd .share-panel {
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
}
.dd:not([data-open="true"]) .dd-panel,
.dd:not([data-open="true"]) .dd-mega,
.dd:not([data-open="true"]) .share-panel {
  opacity: 0; transform: translateY(-4px) scale(.985);
}

/* visually hidden, still announced — there was no such utility, so the
   bubble's label was rendering as visible text beside the icon */
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ==========================================================================
   Three shapes, not three card grids
   The page previously ran 8 cards, then 3 cards, then 56 cards — same radius,
   same shadow, different content. Each section now takes the shape its content
   actually wants: a rail to start, illustrated cards where there is art to
   hold, and a dense index for the catalogue.
   ========================================================================== */

/* ---------- the rail: six quick picks, read as a row of tools ---------- */
.rail-sec { padding-top: var(--s6); }
.rail-h {
  font-size: var(--t-0); font-weight: 600; color: var(--ink-2);
  margin: 0 0 var(--s4); letter-spacing: -0.01em;
}
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
@media (min-width: 700px)  { .rail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .rail { grid-template-columns: repeat(4, 1fr); } }

.rail a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 2px var(--s4); align-items: center;
  padding: var(--s4) var(--s5);
  background: var(--surface); text-decoration: none; height: 100%;
  transition: background 160ms var(--ease);
}
.rail a:hover { background: var(--surface-2); }
.rail-i { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; color: var(--tint, var(--f-text)); --tile-bg: var(--surface); }
.rail-i svg { width: 24px; height: 24px; }
.rail-t { font-weight: 580; color: var(--ink); font-size: var(--t--1); letter-spacing: -0.012em; }
.rail-d { font-size: 0.78rem; color: var(--ink-3); line-height: 1.35; }

/* ---------- the index: 56 tools as a list you can actually scan ---------- */
.index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 640px)  { .index { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); } }
@media (min-width: 1080px) { .index { grid-template-columns: repeat(3, 1fr); } }

.index a {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4);
  align-items: baseline;
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: color 140ms var(--ease);
}
.index a:hover { color: var(--accent); }
.index a:hover .index-i { opacity: 1; transform: translateX(1px); }
.index-i {
  grid-row: 1 / 3; align-self: center;
  display: grid; place-items: center; width: 22px; height: 22px;
  color: var(--tint, var(--f-text)); opacity: .72;
  --tile-bg: var(--ground);
  transition: opacity 140ms var(--ease), transform 140ms var(--ease-out);
}
.index-i svg { width: 19px; height: 19px; }
.index-n { font-weight: 560; font-size: var(--t--1); letter-spacing: -0.012em; }
.index-d { font-size: 0.76rem; color: var(--ink-3); line-height: 1.35; }

/* ---------- one orchestrated entrance, not a fade on every section ----------
   A single page-load sequence in the lede. Nothing else on the page animates
   on arrival; scattered entrances are the generated-page default. */
@media (prefers-reduced-motion: no-preference) {
  .lede-say > * { animation: lift 440ms var(--ease-out) both; }
  .lede-say > h1            { animation-delay: 0ms; }
  .lede-say > .lede-sub     { animation-delay: 70ms; }
  .lede-say > [data-search] { animation-delay: 140ms; }
  .lede-say > .lede-jump    { animation-delay: 210ms; }

  /* the bubble announces itself once, after the page has settled, then stops */
}
@keyframes lift {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
}

/* tool-page header: same unhurried entrance as the landing lede, staggered so
   the icon, title and summary arrive in reading order rather than together */
@media (prefers-reduced-motion: no-preference) {
  .hero-tool > .hero-i    { animation-delay: 0ms; }
  .hero-tool > h1         { animation-delay: 70ms; }
  .hero-tool > .hero-sub  { animation-delay: 140ms; }
}

/* the search field on a category hub needs air before the index starts —
   without it the first row reads as part of the search control */
.cat-page [data-search] { margin-bottom: var(--s6); }
@media (min-width: 760px) { .cat-page [data-search] { margin-bottom: var(--s7); } }

/* tip link carries its own coffee icon now the header one is gone */


/* after files are added the drop target shrinks to a strip; it still accepts
   drops and clicks, it just stops occupying a third of the screen */
.drop.drop-compact {
  min-height: 0; padding: var(--s3) var(--s4);
  display: flex; align-items: center; gap: var(--s3);
  transition: padding 200ms var(--ease);
}
.drop.drop-compact .drop-icon { width: 18px; height: 18px; margin: 0; }
.drop.drop-compact .drop-t { font-size: var(--t--1); margin: 0; }
.drop.drop-compact .drop-h, .drop.drop-compact .drop-cam { display: none; }


