/* Hallmark · route: reference-led bespoke · component-scope: tool-dialog overlay proof + brand tabs
 * source: user-owned generated concept (near-black mono; faceted contours built from short orthogonal
 *   steps; multiple thin rails tracing one silhouette; dense checker feet + shaded block bands; huge
 *   uppercase white/checker title with offset extrusion; raised eyebrow tab; [ X ] close with checker
 *   ledge; double-framed honest IMAGE PENDING; bracketed H; » markers; checker-shadow GitHub CTA)
 * refine: replaced the detached four-badge footing with an integrated stepped frame — continuous
 *   top shoulders/crown, mid-side bulges (two jogs + protruding vertical), stepped bottom feet —
 *   plus twin continuous contour rails, checker/shading foot bands, close-corner accent and a
 *   dithered upper-white/lower-checker title fill.
 * typography: Times New Roman/Times/Liberation Serif + neutral grayscale on all non-art text (owner-confirmed);
 *   box/block glyphs only in decorative pseudo-geometry (aria-hidden by construction); art fonts untouched
 * Component-scope: skipping macrostructure. No cards altered. No fake OS chrome.
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5
 * Second pass (narrow): fix foot checker repetition (repeat,no-repeat swap) + 3-tone
 *   block rhythm; short-phone 86dvh containment; widened shot-edge vignette;
 *   strengthened Times title keyline/extrusion; dialog-open-only logo dim.
 */
:root {
  --lz-line: #e1e1e1;
  --lz-line-dim: #a0a0a0;
  --lz-panel: #0b0b0b;
  --lz-panel-2: #131313;
  --lz-shot: #101010;
  --lz-checker: rgba(225, 225, 225, .8);
  --lz-checker-soft: rgba(225, 225, 225, .55);
}

/* ---- Logo buttons: pure text, transparent, lower over ledge ---- */
.brand-tab {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  color: #efefef;
  top: -4px;
}
@media (hover: hover) and (pointer: fine) {
  .brand-tab:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .brand-tab:hover .brand-tab__label {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.brand-tab:active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(1px);
}
.brand-tab:focus {
  outline: none;
}
.brand-tab:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.brand-tab:focus-visible .brand-tab__label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 340px) and (max-height: 620px) {
  .brand-tab {
    top: -4px;
  }
  .brand-tab::before {
    inset: -14px -12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-tab:active {
    transform: none;
  }
}

/* ---- Dialog panel: integrated stepped frame (no straight double box) ----
   The visible outline is now the stepped decorative contour below, not a
   rectangular border + offset rings. Negative-space center stays clear. */
.tool-dialog__panel {
  position: relative;
  border-radius: 0;
  border: none;
  background: var(--lz-panel);
  overflow: visible;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

/* Decorative frame layer: stepped contour + twin rails + checker feet.
   aria-hidden in markup, pointer-events:none, painted under head/scroll text. */
.lz-frame {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.lz-frame__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  z-index: 2;
}
.lz-frame__rail {
  vector-effect: non-scaling-stroke;
}
.lz-frame__rail--outer {
  stroke: var(--lz-line);
  stroke-width: 1;
}
.lz-frame__rail--inner {
  stroke: var(--lz-line-dim);
  stroke-width: 1;
}

/* Checker / shading blocks: fill the bottom foot bands + accent the close corner.
   Fixed-size patterns (not stretched) so squares stay square across viewports. */
.lz-blk {
  position: absolute;
  border: none;
  pointer-events: none;
  z-index: 1;
  background-color: #7a7a7a;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .46) 100%),
    repeating-linear-gradient(to right, transparent 0 34px, rgba(0, 0, 0, .34) 34px 36px, transparent 36px 68px, rgba(0, 0, 0, .34) 68px 70px, transparent 70px 118px, rgba(255, 255, 255, .18) 118px 120px, transparent 120px 168px, rgba(0, 0, 0, .34) 168px 170px),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .44) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 100% 100%, 8px 8px, 4px 4px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 0 0, 2px 2px;
}
.lz-blk--footL {
  left: -38px;
  bottom: -16px;
  width: 200px;
  height: 16px;
}
.lz-blk--footR {
  right: -38px;
  bottom: -16px;
  width: 200px;
  height: 16px;
}
.lz-blk--cornerTR {
  right: -15px;
  top: 44px;
  width: 24px;
  height: 11px;
  border: 1px solid var(--lz-line-dim);
  background-color: #6f6f6f;
  background-image:
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%);
  background-size: 7px 7px;
  background-repeat: repeat;
  background-position: 0 0;
}

/* Head + scroll sit above the decorative frame layer. */
.tool-dialog__head {
  border-bottom-color: rgba(225, 225, 225, .28);
  position: relative;
  z-index: 2;
  padding-top: 28px;
}
.tool-dialog__scroll {
  min-width: 0;
  position: relative;
  z-index: 2;
}
.tool-dialog__scroll:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}

/* Raised eyebrow perched on the upper frame line with notch/tab */
.tool-dialog__eyebrow {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  display: inline-block;
  border: 1px solid var(--lz-line);
  background: var(--lz-panel-2);
  color: #d5d5d5;
  padding: 4px 8px;
  margin: 0;
  max-width: calc(100% - 96px);
  box-shadow: 3px 3px 0 rgba(225, 225, 225, .22);
  white-space: normal;
  overflow-wrap: anywhere;
  z-index: 6;
  pointer-events: none;
}
.tool-dialog__eyebrow::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -7px;
  width: 12px;
  height: 6px;
  background: var(--lz-panel-2);
  border-left: 1px solid var(--lz-line);
  border-right: 1px solid var(--lz-line);
  pointer-events: none;
}

/* Large title: live h2 text (no duplicate copy), Times kept, uppercased.
   Upper band solid white; lower band grayscale checker/dither. Offset
   light extrusion survives the hard-edge copy-cut filter. Progressive:
   browsers without background-clip:text fall back to a solid light fill. */
.tool-dialog__title {
  font-size: clamp(56px, 5.6vw + 8px, 82px);
  line-height: 1.02;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .005em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(to bottom, #fafafa 0 56%, rgba(250, 250, 250, 0) 56% 100%),
    repeating-conic-gradient(#ececec 0% 25%, #222222 0% 50%);
  background-size: 100% 100%, 6px 6px;
  background-repeat: no-repeat, repeat;
  background-position: 0 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .6px rgba(245, 245, 245, .85);
  /* Live Chromium: text-shadow on background-clip:text kills the gradient
     fill (hollow outline only). Proven fix: none; fallback rule below keeps
     its own extrusion. No drop-shadow substitute (tested too solid). */
  text-shadow: none;
}
/* Long titles (e.g. Mousebridge) scale down so they wrap/scale safely. */
.tool-dialog__title--long {
  font-size: clamp(34px, 3.6vw + 6px, 54px);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .tool-dialog__title {
    color: var(--lz-line);
    -webkit-text-fill-color: var(--lz-line);
    background-image: none;
    -webkit-text-stroke: 0;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 rgba(225, 225, 225, .65);
  }
}
.tool-dialog__sub {
  color: #dedede;
}

/* Bracketed [ X ] close: brackets are pseudo-geometry inside aria-hidden span */
.tool-dialog__close {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #efefef;
}
.tool-dialog__close span::before {
  content: "[ ";
}
.tool-dialog__close span::after {
  content: " ]";
}
@media (hover: hover) and (pointer: fine) {
  .tool-dialog__close:hover {
    background: transparent;
    border-color: transparent;
  }
  .tool-dialog__close:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.tool-dialog__close:active {
  background: transparent;
  border-color: transparent;
}
.tool-dialog__close:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}

/* Doubly framed honest placeholder: edge-tapered checker/dither vignette
   on all four sides; the dark center stays open so IMAGE PENDING reads. */
.tool-dialog__shot {
  position: relative;
  border: 1px solid var(--lz-line);
  border-radius: 0;
  background: var(--lz-shot);
  box-shadow:
    0 0 0 3px var(--lz-panel),
    0 0 0 4px var(--lz-line-dim);
  overflow: hidden;
}
.tool-dialog__shot::before,
.tool-dialog__shot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-image:
    linear-gradient(to bottom, rgba(225, 225, 225, .3), rgba(225, 225, 225, .1)),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .4) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 8px 8px, 4px 4px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 2px 2px;
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.tool-dialog__shot::before {
  top: 0;
}
.tool-dialog__shot::after {
  bottom: 0;
}
.tool-dialog__shot > div {
  position: relative;
  z-index: 1;
}
.lz-shot-edge {
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 22%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to bottom, rgba(225, 225, 225, .28) 0, rgba(225, 225, 225, 0) 28%, rgba(225, 225, 225, .08) 50%, rgba(225, 225, 225, 0) 72%, rgba(225, 225, 225, .28) 100%),
    repeating-linear-gradient(to bottom, transparent 0 18px, rgba(0, 0, 0, .3) 18px 20px, transparent 20px 44px, rgba(255, 255, 255, .12) 44px 46px),
    repeating-conic-gradient(var(--lz-checker-soft) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .3) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 100% 100%, 8px 8px, 4px 4px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 0 0, 2px 3px;
}
.lz-shot-edge--l {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, transparent 100%);
}
.lz-shot-edge--r {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, transparent 100%);
}

/* Bracket ornament around section heading (pseudo only, not in a11y tree) */
.tool-dialog__h {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tool-dialog__h::before {
  content: "┌── ";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--lz-line-dim);
}
.tool-dialog__h::after {
  content: " ──┐";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--lz-line-dim);
}

/* » list markers (Times, grayscale; pseudo, not announced) */
.tool-dialog__list {
  list-style: none;
  padding-left: 4px;
}
.tool-dialog__list li {
  position: relative;
  padding-left: 1.1em;
}
.tool-dialog__list li::before {
  content: "» ";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lz-line-dim);
  font-family: var(--font-copy);
}
.tool-dialog__list li::marker {
  content: "";
}

/* Rectangular double-border CTA with offset checker shadow ONLY outside the face.
   Paint order: ::after sits at z-index:0 above the panel but is clip-pathed to
   the exposed 10px right/bottom strips, so no checker ever crosses the opaque
   face or its letters. Negative z-index sank behind the panel background. */
.tool-dialog__github {
  position: relative;
  overflow: visible;
  border-radius: 0;
  border: 1px solid var(--lz-line);
  background: #1a1a1a;
  color: #efefef;
  box-shadow:
    0 0 0 3px var(--lz-panel),
    0 0 0 4px var(--lz-line-dim);
  margin-right: 14px;
  margin-bottom: 14px;
  max-width: calc(100% - 14px);
}
.tool-dialog__github::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(10px, 10px);
  background-image: repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%);
  background-size: 8px 8px;
  opacity: .8;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(0 calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 0, 100% 0, 100% 100%, 0 100%);
  /* Rightmost 10px column + bottommost 10px row of the offset rect only:
     exactly the L-strip exposed beyond the opaque face. */
}
.tool-dialog__github-label {
  position: relative;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .tool-dialog__github:hover {
    background: #262626;
  }
}
.tool-dialog__github:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}

/* Small-phone containment: internal scroll retained, no horizontal overflow */
.tool-dialog,
.tool-dialog__layout,
.tool-dialog__panel,
.tool-dialog__scroll {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 48rem) {
  .tool-dialog__title {
    font-size: clamp(44px, 14vw, 58px);
  }
  .tool-dialog__title--long {
    font-size: clamp(26px, 8.4vw, 36px);
  }
  .tool-dialog__github {
    white-space: nowrap;
  }
  /* Compact phone: shrink feet + blocks so nothing clips the viewport. */
  .lz-blk--footL,
  .lz-blk--footR {
    left: auto;
    right: auto;
    width: 100px;
    height: 11px;
    bottom: -12px;
    background-size: 100% 100%, 100% 100%, 6px 6px, 3px 3px;
  }
  .lz-blk--footL {
    left: -18px;
  }
  .lz-blk--footR {
    right: -18px;
  }
  .lz-blk--cornerTR {
    right: -10px;
    top: 38px;
    width: 18px;
    height: 9px;
    background-size: 6px 6px;
  }
  .tool-dialog__head {
    padding-top: 30px;
  }
  .tool-dialog__eyebrow {
    left: 12px;
    max-width: calc(100% - 88px);
    font-size: 11px;
  }
  .lz-shot-edge {
    width: 20%;
    top: 12px;
    bottom: 12px;
  }
}
/* 375/414-tuned long-title fit (live prototype 375 x39..271/close x283,
   414 x41..294/close x319, one line, no x-overflow; Glean unaffected):
   scoped 341-420px so 320 short-phone 22px + desktop stay untouched. */
@media (min-width: 341px) and (max-width: 420px) {
  .tool-dialog__title--long {
    font-size: clamp(24px, 7.2vw, 30px);
    letter-spacing: 0;
  }
}
@media (max-width: 340px) {
  /* Narrow phones: keep long titles (e.g. MOUSEBRIDGE) on one line.
     Desktop/tablet + GLEAN 44px phone sizes above are untouched. */
  .tool-dialog__title--long {
    font-size: clamp(21px, 6.8vw, 23px);
    letter-spacing: 0;
  }
}
@media (max-width: 340px) and (max-height: 620px) {
  .tool-dialog {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    max-height: 86dvh;
  }
  .tool-dialog__layout {
    max-height: 86dvh;
  }
  .tool-dialog__panel {
    max-height: 86dvh;
  }
  .tool-dialog__scroll {
    overflow-y: auto;
  }
  /* 320x568 prototype: exact values that yielded one-line MOUSEBRIDGE
     (title rect x34..221, close x233) + one-line eyebrow, no collision.
     Scoped ONLY to short narrow phones so 375/414 keep 11px eyebrow and
     larger title sizes. No ellipsis: copy stays full, h2 stays text. */
  .tool-dialog__title--long {
    font-size: 22px;
    letter-spacing: 0;
  }
  .tool-dialog__eyebrow {
    font-size: 10px;
    letter-spacing: .05em;
    max-width: calc(100% - 72px);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
}
@media (max-width: 1020px) {
  .tool-dialog {
    width: 88vw;
    max-width: 88vw;
  }
}
/* Dialog-open-only: dim the behind-page logo so the raised crown reads.
   Closed landing logo untouched; side art untouched; no opaque rectangle. */
body:has(.tool-dialog[open]) .brand-logo {
  opacity: .12;
}
/* Same live prototype: dim Donate/Creators tabs only while dialog is open.
   Closed landing unchanged; no pointer/position changes. */
body:has(.tool-dialog[open]) .brand-tabs {
  opacity: .12;
}
@media (prefers-reduced-motion: reduce) {
  .tool-dialog__close,
  .tool-dialog__github {
    transition: none;
  }
}

/* ---- Landing cards: stepped-rail siblings of the approved dialog ----
 * Hallmark · route: reference-led bespoke · component-scope: tool-card frame pass
 * source: user-owned dialog DNA (short orthogonal steps; twin continuous
 *   rails; integrated checker/shaded foot bands along bottom segments)
 * refine: retired straight border + chamfered ::before rectangle + detached
 *   ::after foot tabs; one aria-hidden SVG per card (two paths, 1000x1000,
 *   preserveAspectRatio none, non-scaling-stroke) with top shoulders,
 *   mid-side bulges, stepped bottom feet; twin rails ~32 units apart;
 *   jogs ~22u horiz / ~30u vert ≈ 4-7 CSS px at 180-320px card widths.
 *   Face stays dark rectangular (no clip); stepped SVG is the silhouette.
 *   Frame ~10-15% same-shape expansion (113%+11px wide capped to 100vw-8px,
 *   112%+11px tall, centered) capped near viewport edges; modest
 *   card-relative x shifts; narrow-breakpoint inner-rail scaling; reduced
 *   short-phone scroll-end padding for logo clearance. Shot compact checker
 *   frame kept; Times names/descs, links, geometry untouched.
 * states: default · hover(rail brightens) · focus-visible(outline+rail) ·
 *   active · disabled(n/a) · loading(n/a) · error(n/a) · success(n/a silent)
 * contrast: #efefef/#d7d7d7 on #0b0b0b pass; focus ring #e1e1e1 3:1
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 */
.tool-card {
  position: relative;
  background: var(--lz-panel);
  border: 1px solid transparent;
  border-radius: 0;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Retired first-pass straight double rectangle + detached foot tabs:
   the stepped SVG twin rails below are now the only contour. */
.tool-card::before,
.tool-card::after {
  content: none;
  display: none;
}
/* Stepped/faceted decorative frame: one SVG, twin coherent rails.
   aria-hidden in markup; absolute, noninteractive, painted under text
   (frame z-index 0, body/shot z-index 1). Same-shape ~10-15% expansion:
   width min(calc(113% + 11px), 100vw - 8px), height calc(112% + 11px),
   centered via left 50% / top 50% / translate(-50%,-50%), capped near
   viewport edges. overflow visible everywhere so side jogs never clip. */
.tool-card__frame {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(calc(113% + 11px), calc(100vw - 8px));
  height: calc(112% + 11px);
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.tool-card__frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.tool-card__rail {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.tool-card__rail--outer {
  stroke: var(--lz-line);
  stroke-width: 1.5px;
}
.tool-card__rail--inner {
  stroke: var(--lz-line-dim);
  stroke-width: 1px;
}
/* Integrated checker feet: small shaded bands riding the bottom
   stepped segments (not detached tabs). They overlap the bottom rail
   inside the padding strip so no selectable text is covered. */
.tool-card__chk {
  position: absolute;
  bottom: 1px;
  width: 24%;
  height: 9px;
  pointer-events: none;
  background-color: #6f6f6f;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .46) 100%),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .44) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 7px 7px, 3px 3px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 1px 1px;
  opacity: .9;
}
.tool-card__chk--l { left: 17%; }
.tool-card__chk--r { right: 17%; }
/* Content stays above the decorative layer and remains selectable. */
.tool-card__body,
.tool-card__shot {
  position: relative;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .tool-card:hover {
    background: var(--lz-panel-2);
    border-color: transparent;
  }
  .tool-card:hover .tool-card__rail--outer {
    stroke: #f2f2f2;
  }
}
.tool-card:active {
  background: var(--lz-panel);
}
.tool-card:focus {
  outline: none;
}
.tool-card:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 3px;
  border-color: transparent;
}
.tool-card:focus-visible .tool-card__rail--outer {
  stroke: #f2f2f2;
}
.tool-card__name {
  text-transform: none;
}
.tool-card__shot {
  position: relative;
  border: 1px solid var(--lz-line);
  border-radius: 0;
  background: var(--lz-shot);
  box-shadow:
    0 0 0 2px var(--lz-panel),
    0 0 0 3px var(--lz-line-dim);
  overflow: hidden;
}
.tool-card__shot::before,
.tool-card__shot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to bottom, rgba(225, 225, 225, .3), rgba(225, 225, 225, .1)),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .4) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 6px 6px, 3px 3px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 1px 1px;
  opacity: .9;
}
.tool-card__shot::before { top: 0; }
.tool-card__shot::after { bottom: 0; }
.tool-card__shot svg {
  position: relative;
  z-index: 0;
}
/* Narrow Hallmark correction: same faceted frame ~10-15% larger, text/shot
   dimensions unchanged. Centered larger frame + viewport-edge clearance;
   modest card-relative x shifts; narrow-breakpoint inner-rail scaleX;
   reduced 320 short-phone scroll-end padding for logo clearance. */
@media (min-width: 851px) {
  .tool-card { left: -10px; }
}
@media (max-width: 768px) {
  .tool-card { left: 7.5px; }
}
@media (min-width: 561px) and (max-width: 850px) {
  .tool-card__frame { width: min(calc(115% + 11px), calc(100vw - 8px)); }
}
@media (min-width: 421px) and (max-width: 540px) {
  .tool-card__rail--inner { transform-box: fill-box; transform-origin: center; transform: scaleX(1.05); }
}
@media (min-width: 541px) and (max-width: 560px) {
  .tool-card__rail--inner { transform-box: fill-box; transform-origin: center; transform: scaleX(1.04); }
}
@media (max-width: 420px) {
  .tool-card__rail--inner { transform-box: fill-box; transform-origin: center; transform: scaleX(1.02); }
}
@media (max-width: 340px) and (max-height: 620px) {
  .tools { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card::before,
  .tool-card::after,
  .tool-card__shot::before,
  .tool-card__shot::after {
    animation: none;
    transition: none;
  }
}

/* Hallmark · route: reference-led bespoke · component: all-tools button · genre: atmospheric · theme: reference-led lunar
 * source: user visual map (monochrome sci-fi command plate; thick squared corner brackets;
 *   nested double hairline rails; raised dark beveled face; side ticks/chevrons/dot + top/bottom
 *   hairlines; bold » ALL TOOLS « with gray extrusion; [ SELECT ] interrupting bottom rail;
 *   dither/checker grounding shadow). Monochrome only; Times soft-retro live text, no rasterized
 *   text, no pixel font. Native no-op <button type=button> stays accessible + inert; covered guard kept.
 * states: default · hover(rail brightens) · focus-visible(outline+rail) · active(press nudge) ·
 *   disabled(n/a intentional no-op, stays enabled/focusable) · loading(n/a) · error(n/a) · success(n/a silent inert)
 *   (8-state demo wrapper omitted per brief: inert future route, no fake states)
 * contrast: #f4f4f4 on #0c0c0c pass; focus ring var(--lz-line) 3:1 on panel (same pair as cards)
 * Component-scope: skipping macrostructure. No arc/moon/stars/logo/cards/dialog/dims/content/JS touched.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 */
.all-tools {
  position: absolute;
  top: 50%;
  left: calc(68vw + clamp(64px, 6vw, 90px));
  transform: translate(-50%, -50%);
  width: 142px;
  height: 45px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px 7px;
  box-sizing: border-box;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .13) 0, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .5) 100%),
    linear-gradient(to bottom, #1b1b1b 0, #0e0e0e 46%, #070707 100%);
  background-color: var(--lz-panel);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .65),
    0 2px 10px rgba(0, 0, 0, .5);
  color: #f4f4f4;
  font-family: var(--font-copy);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  transition: background-color 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.all-tools__frame {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 0;
}
.all-tools__frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.all-tools__bracket {
  fill: none;
  stroke: #ededed;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}
.all-tools__rail {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.all-tools__rail--outer {
  stroke: var(--lz-line);
  stroke-width: 1;
  opacity: .95;
}
.all-tools__rail--inner {
  stroke: var(--lz-line-dim);
  stroke-width: 1;
  opacity: .9;
}
.all-tools__tick {
  fill: none;
  stroke: var(--lz-line-dim);
  stroke-width: 1;
}
.all-tools__chev-svg {
  fill: none;
  stroke: var(--lz-line-dim);
  stroke-width: 1;
}
.all-tools__dot {
  fill: var(--lz-line-dim);
  stroke: none;
}
.all-tools__chk {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -8px;
  height: 6px;
  pointer-events: none;
  background-color: #5a5a5a;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .5) 100%),
    repeating-conic-gradient(var(--lz-checker-soft) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .3) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 6px 6px, 3px 3px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 1px 1px;
  opacity: .55;
}
.all-tools__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  font-weight: 700;
  letter-spacing: .08em;
  color: #f4f4f4;
  text-shadow: 1px 1px 0 rgba(160, 160, 160, .5), 2px 2px 0 rgba(0, 0, 0, .85);
  filter: url(#lunarz-copy-cut);
}
.all-tools__chev {
  font-weight: 700;
  color: #f4f4f4;
}
.all-tools__text {
  font-weight: 700;
}
.all-tools__select {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0 6px;
  background: #0c0c0c;
  color: #bdbdbd;
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: .18em;
  white-space: nowrap;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .all-tools:hover {
    background-color: var(--lz-panel-2);
  }
  .all-tools:hover .all-tools__bracket {
    stroke: #ffffff;
  }
  .all-tools:hover .all-tools__rail--outer {
    stroke: #f2f2f2;
  }
}
.all-tools:active {
  transform: translate(-50%, calc(-50% + 1px));
  background-color: var(--lz-panel);
}
.all-tools:focus {
  outline: none;
}
.all-tools:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.all-tools:focus-visible .all-tools__bracket,
.all-tools:focus-visible .all-tools__rail--outer {
  stroke: #f2f2f2;
}
@media (max-width: 1050px) {
  .all-tools {
    left: calc(68vw + 45px);
    width: 78px;
    height: 24px;
    padding: 0 6px;
    font-size: 10.5px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .14),
      inset 0 -1px 0 rgba(0, 0, 0, .6),
      0 1px 6px rgba(0, 0, 0, .5);
  }
  .all-tools__bracket {
    stroke-width: 2.5px;
  }
  .all-tools__label {
    letter-spacing: .035em;
    text-shadow: 1px 1px 0 rgba(160, 160, 160, .45), 1px 1px 0 rgba(0, 0, 0, .85);
  }
  .all-tools__tick,
  .all-tools__dot,
  .all-tools__chev-svg,
  .all-tools__chev,
  .all-tools__select {
    display: none;
  }
  .all-tools__chk {
    bottom: -6px;
    height: 4px;
    left: 16%;
    right: 16%;
    background-size: 100% 100%, 5px 5px, 3px 3px;
  }
}
/* 1024-wide short case: room to grow toward ~94px without touching cards. */
@media (min-width: 1000px) and (max-width: 1050px) and (min-height: 600px) {
  .all-tools {
    left: calc(68vw + 53px);
    width: 94px;
    height: 30px;
    font-size: 11.5px;
  }
}
/* 1000-1050 left shift for arc clearance (~6px) + card clearance (~4-11px):
   applies at all heights so the 78px short-height frame also clears. */
@media (min-width: 1000px) and (max-width: 1050px) {
  .all-tools {
    left: calc(68vw + 53px);
  }
}
/* Decorative text chevrons hidden at <=1200px; live ALL TOOLS text + bold
   bracket/dual rails kept. Label stays one-line inside both inner rails. */
@media (max-width: 1200px) {
  .all-tools__chev {
    display: none;
  }
}
/* 1051-1200: 104px / 12.5px keeps SELECT bottom detail; chevrons stay hidden.
   Arc clearance ~12px, card clearance ~2.8px at 1051 per source prototype. */
@media (min-width: 1051px) and (max-width: 1200px) {
  .all-tools {
    width: 104px;
    font-size: 12.5px;
  }
}
/* 1201-1279: 134px fits; chevrons stay hidden until 1280 (label overflowed
   by ~0.6px with chevrons). Full 1280 chevrons/SELECT/shadow untouched. */
@media (min-width: 1201px) and (max-width: 1279px) {
  .all-tools {
    width: 134px;
  }
  .all-tools__chev {
    display: none;
  }
}
@media (max-height: 660px) and (min-width: 1051px) {
  .all-tools {
    height: 40px;
  }
  .all-tools__select {
    bottom: 1px;
  }
}
@media (max-height: 620px) and (max-width: 1050px) {
  .all-tools {
    height: 24px;
  }
  .all-tools__chk {
    height: 3px;
    bottom: -5px;
  }
}
@media (max-width: 340px) and (max-height: 620px) {
  .all-tools {
    top: calc(50% - 28px);
    left: calc(68vw + 43.4px);
    width: 76px;
  }
  .all-tools__label {
    letter-spacing: 0;
  }
}
@media (min-width: 1280px) {
  .all-tools__label {
    letter-spacing: .03em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .all-tools {
    transition: none;
  }
  .all-tools:active {
    transform: translate(-50%, -50%);
  }
}
/* Scroll-state guard: hidden only while button rect enters fixed logo region on short scrolled phones (JS toggles class). */
.all-tools--covered { visibility: hidden; }

/* Hallmark · route: reference-led bespoke · component: tools-directory dialog · genre: atmospheric · theme: reference-led lunar
 * source: user-owned mono raster map (near full-screen dark plate; symmetric stepped twin rails;
 *   mid-side nodes; thin top/bottom rules; inset field; side + foot checker bands; corner ticks;
 *   interior scanline shading; ample blank field; top search line; bottom live status)
 * refine: native dialog 94vw/92dvh full-height (92vw <=960, 100vw-24 tiny); twin measured stepped SVG
 *   rails hugging panel edge (outer/inner paths per browser prototype); side/foot checker only outside
 *   reading face; horizontal search >=701px, stacked <=700px; 2-up tiles >=701px; foot bottom pad 50/46px
 *   for rail clearance with internal field scroll; per-tile stepped double-rail SVG frames (true jogs);
 *   Times soft-retro live copy; visible focus/hover/active; reduced-motion fallback.
 * Component-scope: skipping macrostructure. Landing cards/dialog art/copy untouched.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 (component refinement; no 58-gate audit run)
 */
.tools-directory {
  padding: 0;
  border: none;
  background: transparent;
  width: 94vw;
  max-width: 94vw;
  height: 92dvh;
  max-height: 92dvh;
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: visible;
  color: var(--tool-ink);
}
.tools-directory::backdrop {
  background: rgba(2, 6, 14, .64);
}
.tools-directory__layout {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.tools-directory__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: var(--lz-panel);
  border: none;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  overflow: visible;
}
.lz-dir-frame {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.lz-dir-frame__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  z-index: 2;
}
.lz-dir-frame__rail {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.lz-dir-frame__rail--outer {
  stroke: var(--lz-line);
  stroke-width: 1;
}
.lz-dir-frame__rail--inner {
  stroke: var(--lz-line-dim);
  stroke-width: 1;
}
.lz-dir-blk {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-color: #6f6f6f;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .46) 100%),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .44) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 8px 8px, 4px 4px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 2px 2px;
}
.lz-dir-blk--footL {
  left: 12%;
  bottom: -14px;
  width: 200px;
  max-width: 28%;
  height: 14px;
}
.lz-dir-blk--footR {
  right: 12%;
  bottom: -14px;
  width: 200px;
  max-width: 28%;
  height: 14px;
}
.lz-dir-blk--sideL {
  left: -12px;
  top: 22%;
  width: 12px;
  height: 120px;
  max-height: 30%;
}
.lz-dir-blk--sideR {
  right: -12px;
  top: 22%;
  width: 12px;
  height: 120px;
  max-height: 30%;
}
.lz-dir-blk--cornerTL,
.lz-dir-blk--cornerTR {
  top: 44px;
  width: 22px;
  height: 10px;
  border: 1px solid var(--lz-line-dim);
  background-color: #6f6f6f;
  background-image: repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%);
  background-size: 7px 7px;
  background-repeat: repeat;
}
.lz-dir-blk--cornerTL { left: -11px; }
.lz-dir-blk--cornerTR { right: -11px; }
.tools-directory__head,
.tools-directory__search,
.tools-directory__field,
.tools-directory__foot {
  position: relative;
  z-index: 2;
}
.tools-directory__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 34px 12px;
  border-bottom: 1px solid rgba(225, 225, 225, .28);
  flex: 0 0 auto;
}
.tools-directory__title {
  margin: 0;
  font-family: var(--font-copy);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(20px, 1.6vw + 12px, 30px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f4f4f4;
  filter: url(#lunarz-copy-cut);
  overflow-wrap: anywhere;
  min-width: 0;
  white-space: nowrap;
}
.tools-directory__close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.tools-directory__close span::before { content: "[ "; }
.tools-directory__close span::after { content: " ]"; }
@media (hover: hover) and (pointer: fine) {
  .tools-directory__close:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.tools-directory__close:active { transform: translateY(1px); }
.tools-directory__close:focus { outline: none; }
.tools-directory__close:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.tools-directory__search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 34px 12px;
  border-bottom: 1px solid rgba(225, 225, 225, .18);
  flex: 0 0 auto;
}
.tools-directory__label {
  display: block;
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-copy);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: #d7d7d7;
  filter: url(#lunarz-copy-cut);
  white-space: nowrap;
}
.tools-directory__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.tools-directory__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--tool-border);
  border-radius: 0;
  background: #0e0e0e;
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 15px;
  line-height: 1.4;
  outline: 2px solid transparent;
  outline-offset: 1px;
}
.tools-directory__input::placeholder { color: #8f8f8f; }
@media (hover: hover) and (pointer: fine) {
  .tools-directory__input:hover { background: #141414; }
}
.tools-directory__input:focus { outline: none; border-color: var(--tool-border-hover); }
.tools-directory__input:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 1px;
}
.tools-directory__btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid var(--lz-line);
  border-radius: 0;
  background: #1a1a1a;
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (hover: hover) and (pointer: fine) {
  .tools-directory__btn:hover { background: #262626; }
}
.tools-directory__btn:active { transform: translateY(1px); }
.tools-directory__btn:focus { outline: none; }
.tools-directory__btn:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.tools-directory__field {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 16px 34px;
  padding: 18px;
  box-sizing: border-box;
  min-width: 0;
  overflow-y: auto;
  overflow-x: clip;
  border: 1px solid rgba(225, 225, 225, .22);
  background-color: #0a0a0a;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px);
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #747474 #171717;
}
.tools-directory__field:focus { outline: none; }
.tools-directory__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 52px;
  justify-content: center;
  justify-items: center;
  align-content: start;
  align-items: start;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 32px 30px;
  box-sizing: border-box;
  min-height: 100%;
}
/* Directory cards reuse the landing .tool-card paint exactly (frame/body/shot
   inherited, no look duplicated here): size/alignment/containment/focus only. */
.tools-directory__card.tool-card {
  left: auto;
  margin: 0;
  width: clamp(180px, min(15.625vw, 27.778vh), 300px);
  max-width: 100%;
  justify-self: center;
  align-self: start;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
@media (max-width: 768px) {
  .tools-directory__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    max-width: 420px;
    padding: 26px 30px 28px;
  }
  .tools-directory__card.tool-card {
    width: min(100%, 280px);
  }
}
.tools-directory__empty {
  margin: 0;
  padding: 28px 12px;
  font-family: var(--font-copy);
  font-size: 15px;
  line-height: 1.6;
  color: #d7d7d7;
  text-align: center;
  filter: url(#lunarz-copy-cut);
  overflow-wrap: anywhere;
}
.tools-directory__foot {
  flex: 0 0 auto;
  padding: 10px 34px 50px;
  padding-bottom: max(50px, 6dvh);
}
.tools-directory__status {
  margin: 0;
  font-family: var(--font-copy);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: #bdbdbd;
  filter: url(#lunarz-copy-cut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tools-directory,
.tools-directory__layout,
.tools-directory__panel,
.tools-directory__field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.tools-directory[open] .tools-directory__panel {
  animation: dir-in 180ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@keyframes dir-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
html:has(#tools-directory[open]),
body:has(#tools-directory[open]) { overflow: hidden; }
body:has(.tools-directory[open]) .tools { scrollbar-width: none; }
body:has(.tools-directory[open]) .brand-logo,
body:has(.tools-directory[open]) .brand-tabs { opacity: .12; }
body:has(.tools-directory[open]) .tools { opacity: .42; }
/* <=960px: keep full-height panel; stack search + tiles only <=700px. */
@media (max-width: 60rem) {
  .tools-directory {
    width: 92vw;
    max-width: 92vw;
    height: 92dvh;
    max-height: 92dvh;
  }
  .tools-directory__layout,
  .tools-directory__panel { height: 100%; max-height: 100%; min-height: 0; }
  .tools-directory__head { padding: 26px 22px 10px; }
  .tools-directory__search { padding: 12px 22px 10px; }
  .tools-directory__field { margin: 12px 22px; padding: 14px; }
  .tools-directory__foot { padding: 10px 22px 46px; padding-bottom: max(46px, 6dvh); }
  .lz-dir-blk--sideL, .lz-dir-blk--sideR {
    top: 26%;
    height: 84px;
    width: 8px;
  }
  .lz-dir-blk--sideL { left: -8px; }
  .lz-dir-blk--sideR { right: -8px; }
  .lz-dir-blk--footL, .lz-dir-blk--footR {
    bottom: -10px;
    height: 10px;
    width: 120px;
  }
  .lz-dir-blk--cornerTL, .lz-dir-blk--cornerTR {
    top: 38px;
    width: 16px;
    height: 8px;
  }
  .lz-dir-blk--cornerTL { left: -8px; }
  .lz-dir-blk--cornerTR { right: -8px; }
}
/* Compact search stacks + single column only at <=700px (960 keeps 2-up). */
@media (max-width: 700px) {
  .tools-directory__search {
    display: block;
    padding: 12px 22px 10px;
  }
  .tools-directory__label { margin: 0 0 8px; white-space: normal; }
  .tools-directory__row { flex-wrap: wrap; align-items: stretch; }
  .tools-directory__input { flex: 1 1 100%; }
  .tools-directory__btn { flex: 1 1 auto; }
  .tools-directory__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 340px) and (max-height: 620px) {
  .tools-directory { width: calc(100vw - 24px); max-width: calc(100vw - 24px); height: 92dvh; max-height: 92dvh; }
  .tools-directory__title { font-size: 19px; }
  .tools-directory__head { padding: 24px 16px 10px; }
  .tools-directory__search { padding: 10px 16px; }
  .tools-directory__field { margin: 10px 16px; }
  .tools-directory__foot { padding: 8px 16px 46px; padding-bottom: max(46px, 6dvh); }
}
/* Narrow-phone directory fix (<=414px, scoped to directory children only):
   replaces the old <=414/<=340 narrowing that clipped cards to 220/180px.
   Placed after the <=60rem/<=340 field rules so it wins the cascade;
   <=768 one-column breakpoint + desktop sizing above untouched.
   Frame/body/shot ART inherited from .tool-card; sizing/containment only. */
@media (max-width: 414px) {
  .tools-directory__field { padding: 8px; }
  .tools-directory__list { max-width: none; gap: 40px; padding: 20px 8px 12px; }
  .tools-directory__card.tool-card { width: min(100%, 280px); --dir-shot: clamp(64px, 19vw, 78px); grid-template-columns: minmax(0, 1fr) var(--dir-shot); column-gap: 8px; padding: 8px; min-height: 164px; }
  .tools-directory__card .tool-card__shot { width: var(--dir-shot); height: var(--dir-shot); }
  .tools-directory__card .tool-card__name { font-size: clamp(13px, 3.7vw, 15px); }
  .tools-directory__card .tool-card__desc { font-size: 13px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-directory[open] .tools-directory__panel { animation: none; }
  .tools-directory__btn, .tools-directory__card { transition: none; }
  .tools-directory__btn:active, .tools-directory__card:active { transform: none; }
}

/* Hallmark · route: reference-led bespoke · component: donate dialog · genre: atmospheric · theme: reference-led lunar
 * source: owner-written visual map of user-owned donate mockup (twin silver rails, stepped/chamfered
 *   silhouette, mid-side jogs, checker/dither rails, double-rail CHOOSE METHOD + DONATION DETAILS fieldsets;
 *   amount/submit/txid/cancel explicitly out of scope, not built)
 * refine: balanced two-box popup (methods ~42% / details ~58%), dark inset method list, light recessed
 *   QR placeholder plate + dark wallet strip, Times soft-retro copy, decor behind text only
 * states: default · hover · focus-visible · active · disabled(n/a) · loading(n/a) · error(n/a) · success(n/a silent)
 *   + selected (pale face/black type, aria-pressed) + inert Ko-fi (no handler, aria-disabled, honest label)
 * contrast: #efefef/#d7d7d7 on #0b0b0b pass; selected #0b0b0b on #e1e1e1 pass; focus ring #e1e1e1 3:1
 * Component-scope: skipping macrostructure. Moon/stars/arc/logo/cards/all-tools/directory/tool-detail untouched.
 * Hallmark · pre-emit critique: P5 H4 E5 S5 R5 V5 (component refinement; no 58-gate audit run)
 */
.donate-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: min(1060px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(88dvh, 720px);
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: visible;
  color: var(--tool-ink);
}
.donate-dialog::backdrop {
  background: rgba(2, 6, 14, .64);
}
.donate-layout {
  width: 100%;
  max-height: min(88dvh, 720px);
  box-sizing: border-box;
}
.donate-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  max-height: min(88dvh, 720px);
  box-sizing: border-box;
  background: var(--lz-panel);
  border: none;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  overflow: visible;
}
.donate-frame {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.donate-frame__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  z-index: 2;
}
.donate-frame__rail {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.donate-frame__rail--outer {
  stroke: var(--lz-line);
  stroke-width: 1;
}
.donate-frame__rail--inner {
  stroke: var(--lz-line-dim);
  stroke-width: 1;
}
.donate-blk {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-color: #6f6f6f;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .46) 100%),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .44) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 8px 8px, 4px 4px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 2px 2px;
}
.donate-blk--footL {
  left: 12%;
  bottom: -14px;
  width: 180px;
  max-width: 26%;
  height: 14px;
}
.donate-blk--footR {
  right: 12%;
  bottom: -14px;
  width: 180px;
  max-width: 26%;
  height: 14px;
}
.donate-blk--cornerTR {
  right: -11px;
  top: 40px;
  width: 22px;
  height: 10px;
  border: 1px solid var(--lz-line-dim);
  background-color: #6f6f6f;
  background-image: repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%);
  background-size: 7px 7px;
  background-repeat: repeat;
}
.donate-head,
.donate-body {
  position: relative;
  z-index: 2;
}
.donate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 30px 12px;
  border-bottom: 1px solid rgba(225, 225, 225, .28);
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  background: var(--lz-panel);
}
.donate-title {
  margin: 0;
  font-family: var(--font-copy);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(22px, 1.6vw + 12px, 32px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f4f4f4;
  filter: url(#lunarz-copy-cut);
  overflow-wrap: anywhere;
  min-width: 0;
}
.donate-title:focus {
  outline: none;
}
.donate-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.donate-close span::before { content: "[ "; }
.donate-close span::after { content: " ]"; }
@media (hover: hover) and (pointer: fine) {
  .donate-close:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.donate-close:active { transform: translateY(1px); }
.donate-close:focus { outline: none; }
.donate-close:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.donate-body {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  grid-auto-rows: auto;
  gap: 20px;
  padding: 18px 30px 52px;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #5a5a5a #0a0a0a;
}
.donate-body::-webkit-scrollbar {
  width: 8px;
}
.donate-body::-webkit-scrollbar-track {
  background: transparent;
}
.donate-body::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 4px;
  border: 2px solid #0a0a0a;
}
@media (hover: hover) and (pointer: fine) {
  .donate-body::-webkit-scrollbar-thumb:hover {
    background: #5f5f5f;
  }
}
.donate-field {
  margin: 0;
  padding: 16px 16px 18px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--lz-line-dim);
  box-shadow:
    0 0 0 3px var(--lz-panel),
    0 0 0 4px rgba(225, 225, 225, .22);
  background: #0a0a0a;
  color: var(--tool-ink);
  font-family: var(--font-copy);
  font-style: normal;
}
.donate-legend {
  padding: 0 10px;
  font-family: var(--font-copy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #efefef;
  background: var(--lz-panel-2);
  border: 1px solid var(--lz-line);
  filter: url(#lunarz-copy-cut);
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.donate-kicker {
  margin: 4px 0 12px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--tool-faint);
  filter: url(#lunarz-copy-cut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donate-methods {
  display: grid;
  gap: 12px;
}
.donate-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 1px solid var(--lz-line-dim);
  border-radius: 0;
  background: transparent;
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 15px;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), border-color 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.donate-method__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  filter: url(#lunarz-copy-cut);
}
.donate-method__code,
.donate-method__soon {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--tool-faint);
  filter: url(#lunarz-copy-cut);
}
.donate-method.is-selected {
  background: var(--lz-line);
  border-color: var(--lz-line);
  color: var(--lz-panel);
}
.donate-method.is-selected .donate-method__name,
.donate-method.is-selected .donate-method__code {
  color: var(--lz-panel);
  filter: none;
}
@media (hover: hover) and (pointer: fine) {
  .donate-method:not(.is-selected):not(.donate-method--inert):hover {
    background: var(--lz-panel-2);
    border-color: var(--lz-line);
  }
  .donate-method--inert:hover {
    background: transparent;
    border-color: var(--lz-line-dim);
  }
}
.donate-method:active { transform: translateY(1px); }
.donate-method--inert:active { transform: none; }
.donate-method:focus { outline: none; }
.donate-method:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.donate-method--inert {
  cursor: default;
  opacity: .62;
  border-style: dashed;
}
.donate-method--link {
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .donate-method--link:hover .donate-method__code {
    color: #efefef;
  }
}
.donate-field--details {
  background-color: #0a0a0a;
}
.donate-detail-label {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #efefef;
  filter: url(#lunarz-copy-cut);
  overflow-wrap: anywhere;
  min-width: 0;
}
.donate-qr {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 26px 18px;
  box-sizing: border-box;
  border: 1px solid var(--lz-line);
  background-color: var(--lz-line-dim);
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, .22) 100%),
    repeating-conic-gradient(rgba(11, 11, 11, .14) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(11, 11, 11, .08) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 14px 14px, 7px 7px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 3px 3px;
  overflow: hidden;
}
.donate-qr__finder {
  position: absolute;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 6px solid var(--lz-panel);
  background: transparent;
  box-shadow: 0 0 0 1px var(--lz-panel);
  pointer-events: none;
}
.donate-qr__finder::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--lz-panel);
}
.donate-qr__finder--tl { left: 10px; top: 10px; }
.donate-qr__finder--tr { right: 10px; top: 10px; }
.donate-qr__finder--bl { left: 10px; bottom: 10px; }
.donate-qr__overlay {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  background: var(--lz-panel);
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donate-qr__code {
  display: none;
  position: relative;
  z-index: 1;
  width: min(230px, 72%);
  height: auto;
  border: 1px solid var(--lz-panel);
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .35);
}
.donate-qr__code.is-active {
  display: block;
}
.donate-qr--real .donate-qr__finder,
.donate-qr--real .donate-qr__overlay {
  display: none;
}
.donate-copy {
  display: inline-block;
  margin: 10px auto 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--lz-line);
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 13px;
  letter-spacing: .12em;
  cursor: pointer;
}
.donate-copy { display: block; margin-left: auto; margin-right: auto; }
@media (hover: hover) and (pointer: fine) {
  .donate-copy:hover { background: rgba(225, 225, 225, .12); }
}
.donate-copy:active { transform: translateY(1px); }
.donate-copy:focus { outline: none; }
.donate-copy:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.donate-address {
  margin: 12px 0 0;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid var(--lz-line-dim);
  background: var(--lz-panel-2);
  color: var(--tool-muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  overflow-wrap: anywhere;
  min-width: 0;
  filter: url(#lunarz-copy-cut);
}
.donate-network {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tool-faint);
  filter: url(#lunarz-copy-cut);
  overflow-wrap: anywhere;
}
.donate-warn {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--lz-line-dim);
  color: #efefef;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  filter: url(#lunarz-copy-cut);
}
.donate-dialog,
.donate-layout,
.donate-panel,
.donate-body,
.donate-field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.donate-dialog[open] .donate-panel {
  animation: donate-in 180ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@keyframes donate-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
body:has(.donate-dialog[open]) .brand-logo,
body:has(.donate-dialog[open]) .brand-tabs {
  opacity: .12;
}
body:has(.donate-dialog[open]) .tools {
  opacity: .42;
  scrollbar-width: none;
}
body:has(.donate-dialog[open]) .tools::-webkit-scrollbar {
  display: none;
}
@media (max-width: 60rem) {
  .donate-dialog {
    width: 92vw;
    max-width: 92vw;
    max-height: 92dvh;
  }
  .donate-layout,
  .donate-panel {
    max-height: 92dvh;
  }
  .donate-head {
    padding: 24px 20px 10px;
  }
  .donate-body {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    gap: 18px;
    padding: 16px 20px 24px;
  }
  .donate-field {
    min-height: auto;
    height: auto;
    align-self: start;
    overflow: visible;
  }
  .donate-blk--footL,
  .donate-blk--footR {
    bottom: -10px;
    height: 10px;
    width: 120px;
  }
  .donate-blk--cornerTR {
    top: 36px;
    width: 16px;
    height: 8px;
    right: -8px;
  }
}
@media (max-width: 340px) and (max-height: 620px) {
  .donate-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
  .donate-head {
    padding: 22px 16px 10px;
  }
  .donate-body {
    padding: 14px 16px 20px;
  }
  .donate-legend {
    font-size: 12px;
    white-space: normal;
  }
  .donate-kicker {
    white-space: normal;
  }
  .donate-method {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .donate-dialog[open] .donate-panel { animation: none; }
  .donate-body { scroll-behavior: auto; }
  .donate-method,
  .donate-close {
    transition: none;
  }
  .donate-method:active,
  .donate-close:active {
    transform: none;
  }
}

/* Hallmark · route: reference-led bespoke · component: creators dialog · genre: atmospheric · theme: reference-led lunar
 * source: existing .donate-dialog DNA (twin rails, stepped silhouette, checker feet/corner, Times copy)
 * refine: small centered single-panel popup (max ~440px), two equal links, no large donate size copied
 * states: default · hover · focus-visible · active (dialog open/close native; links outbound only)
 * contrast: #efefef/#d7d7d7 on #0b0b0b pass; focus ring #e1e1e1 3:1
 * Component-scope: skipping macrostructure. Donate/tool detail/directory/cards/logo untouched.
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 (component refinement; no 58-gate audit run)
 */
.creators-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(88dvh, 520px);
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: visible;
  color: var(--tool-ink);
}
.creators-dialog::backdrop {
  background: rgba(2, 6, 14, .64);
}
.creators-layout {
  width: 100%;
  max-height: min(88dvh, 520px);
  box-sizing: border-box;
}
.creators-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  max-height: min(88dvh, 520px);
  box-sizing: border-box;
  background: var(--lz-panel);
  border: none;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  overflow: visible;
}
.creators-frame {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.creators-frame__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  z-index: 2;
}
.creators-frame__rail {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.creators-frame__rail--outer {
  stroke: var(--lz-line);
  stroke-width: 1;
}
.creators-frame__rail--inner {
  stroke: var(--lz-line-dim);
  stroke-width: 1;
}
.creators-blk {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-color: #6f6f6f;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .46) 100%),
    repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%),
    repeating-conic-gradient(rgba(225, 225, 225, .44) 0% 25%, transparent 0% 50%);
  background-size: 100% 100%, 8px 8px, 4px 4px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 2px 2px;
}
.creators-blk--footL {
  left: 14%;
  bottom: -12px;
  width: 110px;
  max-width: 26%;
  height: 12px;
}
.creators-blk--footR {
  right: 14%;
  bottom: -12px;
  width: 110px;
  max-width: 26%;
  height: 12px;
}
.creators-blk--cornerTR {
  right: -10px;
  top: 38px;
  width: 20px;
  height: 10px;
  border: 1px solid var(--lz-line-dim);
  background-color: #6f6f6f;
  background-image: repeating-conic-gradient(var(--lz-checker) 0% 25%, transparent 0% 50%);
  background-size: 7px 7px;
  background-repeat: repeat;
}
.creators-head,
.creators-body {
  position: relative;
  z-index: 2;
}
.creators-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 22px 12px;
  border-bottom: 1px solid rgba(225, 225, 225, .28);
  flex: 0 0 auto;
}
.creators-title {
  margin: 0;
  font-family: var(--font-copy);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(20px, 1.2vw + 14px, 26px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f4f4f4;
  filter: url(#lunarz-copy-cut);
  overflow-wrap: anywhere;
  min-width: 0;
}
.creators-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: #efefef;
  font-family: var(--font-copy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.creators-close span::before { content: "[ "; }
.creators-close span::after { content: " ]"; }
@media (hover: hover) and (pointer: fine) {
  .creators-close:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.creators-close:active { transform: translateY(1px); }
.creators-close:focus { outline: none; }
.creators-close:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
}
.creators-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 18px 22px 50px;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: clip;
}
.creators-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 12px 10px;
  box-sizing: border-box;
  border: 1px solid var(--lz-line-dim);
  border-radius: 0;
  background: transparent;
  color: #efefef;
  font-family: var(--font-copy);
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), border-color 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (hover: hover) and (pointer: fine) {
  .creators-link:hover {
    background: var(--lz-panel-2);
    border-color: var(--lz-line);
  }
}
.creators-link:active { transform: translateY(1px); }
.creators-link:focus { outline: none; }
.creators-link:focus-visible {
  outline: 2px solid var(--lz-line);
  outline-offset: 2px;
  border-color: var(--lz-line);
}
.creators-dialog,
.creators-layout,
.creators-panel,
.creators-body {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.creators-dialog[open] .creators-panel {
  animation: creators-in 180ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@keyframes creators-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
body:has(.creators-dialog[open]) .brand-logo,
body:has(.creators-dialog[open]) .brand-tabs {
  opacity: .12;
}
body:has(.creators-dialog[open]) .tools {
  opacity: .42;
  scrollbar-width: none;
}
body:has(.creators-dialog[open]) .tools::-webkit-scrollbar {
  display: none;
}
@media (max-width: 380px) {
  .creators-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: 92dvh;
  }
  .creators-layout,
  .creators-panel {
    max-height: 92dvh;
  }
  .creators-head {
    padding: 22px 16px 10px;
  }
  .creators-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px 42px;
  }
  .creators-link {
    width: 100%;
    white-space: nowrap;
  }
  .creators-blk--footL,
  .creators-blk--footR {
    bottom: -10px;
    height: 10px;
    width: 84px;
  }
  .creators-blk--cornerTR {
    top: 34px;
    width: 16px;
    height: 8px;
    right: -8px;
  }
}
@media (max-width: 340px) and (max-height: 620px) {
  .creators-dialog {
    max-height: 86dvh;
  }
  .creators-layout,
  .creators-panel {
    max-height: 86dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .creators-dialog[open] .creators-panel { animation: none; }
  .creators-link,
  .creators-close {
    transition: none;
  }
  .creators-link:active,
  .creators-close:active {
    transform: none;
  }
}
