.tool-card,
.dialog,
.dialog-backdrop,
.menu,
#toasts {
  --ground: #0a0a0a;
  --ink: #ededed;
  --ink-dim: #a1a1a1;
  --ink-faint: #858585;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --hover: rgba(255, 255, 255, 0.07);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--ink);
}
:is(.tool-card, .dialog, .menu, #toasts) p {
  margin: 0;
  color: inherit;
}
:is(.tool-card, .dialog, .menu, #toasts) a {
  text-underline-offset: 2px;
}
:is(.tool-card, .dialog, .menu, #toasts) :is(button, input, select, textarea) {
  font-family: inherit;
}
.tool-card {
  background: var(--app-panel, rgba(22, 22, 25, 0.97));
  border: 1px solid var(--app-on, rgba(255, 255, 255, 0.12));
  border-radius: var(--app-radius, 12px);
  box-shadow: var(--app-shadow, 0 3px 8px rgba(20, 28, 50, 0.18), 0 26px 48px rgba(20, 28, 50, 0.3));
  color: var(--app-ink, #ededed);
  padding: var(--card-pad, 12px 16px 16px);
  max-height: calc(100svh - var(--nav-h, 58px) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tool-card:not(:has(*)) { display: none; }
.tool[data-state='empty'] .tool-card,
.tool[data-state='baked'] .tool-card { display: none; }
.tool-card .tool-rot { margin-right: auto; }
.tool {
  position: relative;
  --tool-card-w: 316px;
  --tool-card-inset: 22px;
  --tool-stage-pad: clamp(18px, 2.4vw, 38px);
  --tool-stage-h: clamp(500px, 58vw, 860px);
}
.tool-stage-col { min-width: 0; }
@media (min-width: 921px) and (not (pointer: coarse)) {
  .tool-card {
    position: absolute;
    top: calc(var(--tool-card-inset) + var(--tool-verbs-h));
    right: var(--tool-card-inset);
    width: var(--tool-card-w);
    max-height: calc(var(--tool-stage-h) - var(--tool-card-inset) * 2);
    z-index: 3;
  }
}
.tool-stage {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--tool-stage-h);
  padding: var(--tool-stage-pad);
  padding-right: calc(var(--tool-card-inset) * 2 + var(--tool-card-w));
  background: var(--desk, #e9e9e9);
}
.tool-canvas {
  display: block;
  box-shadow: var(--lift, 0 4px 14px rgba(20, 28, 50, 0.3));
}
.tool-stage.tool-pannable { cursor: grab; }
.tool-stage.tool-panning { cursor: grabbing; }
.tool-stage.tool-panning { user-select: none; }
.tool-stage { touch-action: pan-x pan-y; }
.tool-stage.tool-pannable { touch-action: none; }
.tool.dropping .tool-stage {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.tool-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(46rem, 92%);
  padding: 24px 0;
  text-align: center;
}
.tool-drop-ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.tool-drop[hidden] { display: none; }
.tool-drop-title {
  max-width: 24rem;
  font: 600 clamp(21px, 2.1vw, 26px)/1.2 var(--sans);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tool-drop-claim {
  max-width: 30rem;
  font: 400 15.5px/1.6 var(--sans);
  color: var(--ink-dim);
}
.tool-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-5);
  --tf-lead: 10px;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.tool-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tool-fact-value { margin: 0; }
.tool-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: stretch;
  --tool-foot-h: 25px;
  min-height: 198px;
  padding: calc(26px + var(--tool-foot-h)) 22px;
  border: 1px solid var(--line);
}
.tool-drop-area .tool-drop-note { margin-top: 0; }
.tool-drop-foot {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  visibility: hidden;
}
.tool-drop-area[data-busy] .tool-drop-foot { visibility: visible; }
.tool-drop-area[data-busy] .tool-open-btn,
.tool-drop-area[data-busy] .tool-drop-note { opacity: 0.45; }
.tool-drop-status {
  font: 500 var(--fs-slug, 10.5px)/1.6 var(--mono);
  color: var(--ink-dim);
}
.tool-drop-area .tool-prog {
  width: min(220px, 70%);
  margin-top: 0;
  background: var(--line);
}
.tool-drop-area .tool-prog-fill { background: var(--ink-dim); }
.tool-drop-error:empty { display: none; }
.tool-drop-error {
  max-width: 34ch;
  font: 400 var(--fs-note)/1.5 var(--sans);
  color: #a2560c;
}
.tool-compare {
  --at: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.tool-compare-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--lift, 0 4px 14px rgba(20, 28, 50, 0.3));
  --frame-h: calc(var(--tool-stage-h) - var(--tool-stage-pad) * 2 - 88px);
  width: min(100%, calc(var(--frame-h) * 0.8));
  aspect-ratio: 4 / 5;
}
.tool-compare picture { display: contents; }
.tool-compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tool-compare-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--at) * 1%) 0 0);
}
.tool-compare-bar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: ew-resize;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.tool-compare-bar::-webkit-slider-runnable-track {
  height: 100%;
  border: 0;
  background: none;
  box-shadow: none;
}
.tool-compare-bar::-moz-range-track {
  height: 100%;
  border: 0;
  background: none;
  box-shadow: none;
}
.tool-compare-bar::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  cursor: ew-resize;
}
.tool-compare-bar::-moz-range-thumb {
  width: 22px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  cursor: ew-resize;
}
.tool-compare-line,
.tool-compare-grip {
  position: absolute;
  left: calc(var(--at) * 1%);
  pointer-events: none;
  z-index: 3;
}
.tool-compare-line {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
  background: #ececec;
}
.tool-compare-grip {
  top: 50%;
  width: 10px;
  height: 15px;
  transform: translate(-50%, -50%);
  background: #ececec;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.tool-compare-bar:focus-visible { outline: none; }
.tool-compare-frame:has(.tool-compare-bar:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
.tool-compare-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font: 500 var(--fs-slug, 10.5px)/1.4 var(--mono);
  color: var(--ink-faint);
}
.tool-fact-key {
  display: flex;
  align-items: center;
  gap: var(--tf-lead);
  font: 500 var(--fs-slug, 10.5px)/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.tool-fact-key > .tool-ico { color: var(--ink-dim); }
.tool-fact-value {
  padding-left: calc(16px + var(--tf-lead));
  font: 400 var(--fs-note)/1.5 var(--sans);
  color: var(--ink-dim);
}
.tool-drop :is(p, dl, dd) { margin-block: 0; }
.tool-drop-note,
.tool-limits {
  font: 500 var(--fs-slug, 10.5px)/1.6 var(--mono);
  color: var(--ink-faint);
}
.tool-drop-note { margin-top: -6px; }
.tool-stage > picture { display: contents; }
.tool-stage > .tool-baked,
.tool-stage > picture > .tool-baked {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  object-fit: contain;
}
.tool-arm .btn { background: var(--ground, #f9fafc); }
.tool-arm .btn:hover { background: var(--ground, #f9fafc); border-color: var(--line-strong); }
.tool-arm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-arm[hidden] { display: none; }
.tool {
  --tool-verbs-h: 42px;
}
.tool-verbs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  height: calc(var(--tool-verbs-h) - 26px);
  margin: 0 0 26px;
  visibility: hidden;
}
.tool[data-state='live'] .tool-verbs,
.tool[data-state='saving'] .tool-verbs { visibility: visible; }
.tool-verb {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.12s;
}
.tool-verb:hover { color: var(--ink); }
.tool-verb:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.tool-mat { margin-left: auto; min-width: 0; text-align: right; }
.tool-sprite { display: none; }
.tool-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.btn:has(> .tool-ico) {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.tool-stage-col > .hero-cap { min-height: 1.6em; }
.tool-open-btn { position: relative; overflow: hidden; flex: 0 0 auto; cursor: pointer; }
.tool-file-in {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 0;
  cursor: pointer;
}
.tool-open-btn:focus-within { outline: var(--focus-ring); outline-offset: 2px; }
.tool-limits { margin: 0; max-width: 40rem; }
.tool[data-state='empty'] .hero-cap { visibility: hidden; }
.tool[data-state='empty'] .tool-stage,
.tool[data-state='baked'] .tool-stage { padding-right: var(--tool-stage-pad); }
.tool[data-state='baked'] .tool-baked { max-width: 100%; max-height: 100%; }
.tool[data-state='empty'] .tool-canvas,
.tool[data-state='baked'] .tool-canvas { display: none; }
.tool[data-state='live'] .tool-baked,
.tool[data-state='saving'] .tool-baked { display: none; }
.tool-baked,
.tool-canvas { flex: 0 0 auto; }
@media (min-width: 861px) and (not (pointer: coarse)) {
  .tool[data-state='empty'] .tool-drop {
    flex-direction: row;
    align-items: center;
    gap: 44px;
    width: min(66rem, 94%);
  }
  .tool[data-state='empty'] .tool-drop-ask,
  .tool[data-state='empty'] .tool-compare { flex: 1 1 0; }
  .tool[data-state='empty'] .tool-drop-ask {
    align-items: flex-start;
    text-align: left;
  }
  .tool[data-state='empty'] .tool-drop-title,
  .tool[data-state='empty'] .tool-drop-claim { max-width: none; }
}
@media (max-width: 860px), (pointer: coarse) {
  .tool[data-state='empty'] .tool-stage {
    aspect-ratio: auto;
    max-height: none;
  }
  .tool-compare {
    align-self: stretch;
    width: 100%;
  }
  .tool-compare-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 52svh;
  }
}
@media (max-width: 620px) {
  .tool-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px), (pointer: coarse) {
  .tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .tool-stage {
    padding: var(--tool-stage-pad);
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .tool-card { max-height: none; overflow: visible; }
}
@media (max-width: 720px), (pointer: coarse) {
  .tool {
    --tool-stage-pad: 10px;
    --tool-gbtn: 40px;
    --tool-gpad: 4px;
    --tool-glass-bg: rgba(255, 255, 255, 0.52);
    --tool-glass-lit: rgba(255, 255, 255, 0.82);
    --tool-glass-rim: rgba(255, 255, 255, 0.75);
    --tool-glass-edge: rgba(20, 28, 50, 0.09);
  }
  .tool-stage {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 60svh;
  }
  .tool[data-state='empty'] .tool-stage {
    aspect-ratio: auto;
    max-height: none;
    min-height: min(46svh, 62vw);
  }
  .tool-stage-col > .tool-compare { display: none; }
  .tool[data-state='empty'] .tool-stage-col > .tool-compare {
    display: flex;
    margin-top: 44px;
  }
  .tool-verbs .tool-rot { display: none; }
  .tool-stage-col > .tool-verbs { display: none; }
  .tool-card { display: none; }
  .tool-stage > .tool-dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
  }
  .tool-dock > .tool-reopen {
    pointer-events: auto;
    margin: 0;
    min-height: 40px;
    padding: 0 18px;
    font: 500 11px/1 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink, #171d30);
    background: var(--ground, #f9fafc);
    border: 1px solid var(--ink, #171d30);
    border-radius: 0;
    cursor: pointer;
  }
  .tool-dock > .tool-reopen:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
  .tool-editor {
    position: fixed;
    inset: 0;
    z-index: 24;
    display: flex;
    flex-direction: column;
    background: var(--desk, #e9e9e9);
    color: var(--ink, #171d30);
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
             env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .tool-editor[hidden] { display: none; }
  .tool-ed-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line, rgba(20, 28, 50, 0.14));
  }
  .tool-ed-verbs,
  .tool-ed-ways {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .tool-ed-head .tool-verb { color: var(--ink, #171d30); }
  .tool-ed-head .tool-verb:disabled { color: var(--ink-dim, #4a5368); cursor: default; }
  .tool-shot {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
  }
  .tool-shot.tool-pannable { cursor: grab; }
  .tool-shot.tool-panning { cursor: grabbing; user-select: none; }
  .tool-shot { touch-action: none; }
  .tool-glass {
    background: var(--tool-glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.7);
    backdrop-filter: blur(20px) saturate(1.7);
    border: 1px solid var(--tool-glass-edge);
    border-radius: 50%;
    color: var(--ink, #171d30);
    box-shadow: inset 0 1px 0 var(--tool-glass-rim),
      0 1px 1px rgba(20, 28, 50, 0.06), 0 6px 16px -10px rgba(20, 28, 50, 0.4);
  }
  .tool-gbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tool-gbtn);
    height: var(--tool-gbtn);
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-dim, #4a5368);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
  }
  @media (hover: hover) {
    .tool-gbtn:hover { background: var(--tool-glass-lit); color: var(--ink, #171d30); }
  }
  .tool-readout {
    position: absolute;
    top: calc(10px + var(--tool-gbtn) + var(--tool-gpad) * 2 + 2px + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 0;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 0 1px var(--desk, #e9e9e9), 0 0 6px var(--desk, #e9e9e9), 0 0 12px var(--desk, #e9e9e9);
  }
  .tool-readout[hidden] { display: none; }
  .tool-readout-name {
    font: 400 11px/1.2 var(--mono);
    color: var(--ink-faint);
  }
  .tool-readout-val {
    font: 500 11px/1.2 var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
  }
  .tool-ring {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 14px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding: 0 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .tool-ring::-webkit-scrollbar { display: none; }
  .tool-tile {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 70px;
    padding: 0;
    appearance: none;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    touch-action: pan-x;
  }
  .tool-tile-face {
    position: relative;
    display: block;
    padding: var(--tool-gpad);
  }
  .tool-arc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
    overflow: visible;
  }
  .tool-arc circle,
  .tool-arc path {
    fill: none;
    stroke-linecap: round;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
  }
  .tool-arc-track { stroke: rgba(20, 28, 50, 0.12); }
  .tool-arc-fill { stroke: var(--ink, #171d30); }
  .tool-tile-name {
    font: 400 10px/1.2 var(--sans);
    text-align: center;
    color: var(--ink-faint);
    overflow-wrap: anywhere;
    transition: color 0.12s;
  }
  .tool-tile.tool-tile-down .tool-gbtn {
    background: var(--tool-glass-lit);
    color: var(--ink, #171d30);
  }
  .tool-tile.tool-tile-down .tool-tile-face {
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 var(--tool-glass-rim),
      0 1px 1px rgba(20, 28, 50, 0.08), 0 10px 22px -10px rgba(20, 28, 50, 0.45);
  }
  .tool-tile.tool-tile-down .tool-tile-name { color: var(--ink, #171d30); }
  .tool-tile.tool-tile-open .tool-tile-face { background: var(--tool-glass-lit); }
  .tool-tile.tool-tile-open .tool-tile-name { color: var(--ink, #171d30); }
  .tool-tile.tool-tile-open .tool-gbtn { color: var(--ink, #171d30); }
  .tool-tile:focus-visible { outline: none; }
  .tool-tile:focus-visible .tool-tile-face {
    outline: var(--focus-ring);
    outline-offset: 2px;
  }
  .tool-tile[hidden] { display: none; }
  .tool-ed-slider {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: var(--tool-gpad) 14px;
    border-radius: 999px;
  }
  .tool-ed-slider[hidden] { display: none; }
  .tool-ed-slider-in { flex: 1 1 auto; min-width: 0; }
  .tool-ed-slider .ctl-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--tool-gbtn);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink, #171d30);
    --ctl-label-w: 76px;
  }
  .tool-ed-slider .ctl-label {
    flex: 0 0 var(--ctl-label-w);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0 0 0 4px;
    border: 0;
    border-radius: 0;
    background: none;
    appearance: none;
    font: 400 11px/1.2 var(--sans);
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink, #171d30);
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tool-ed-slider .ctl-swap-mark { color: var(--ink-dim, #4a5368); opacity: 1; }
  .tool-ed-slider .ctl-val {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
    padding: 0 4px 0 0;
    border: 0;
    background: none;
    font: 400 11px/1.2 var(--sans);
    color: var(--ink, #171d30);
    text-align: right;
    white-space: nowrap;
  }
  .tool-ed-slider .ctl-track {
    flex: 1 1 auto;
    min-width: 60px;
    height: var(--tool-gbtn);
    display: flex;
    align-items: center;
    background: none;
    border: 0;
  }
  .tool-ed-slider { --tool-knob: 18px; }
  .tool-ed-slider .ctl-range { height: var(--tool-gbtn); touch-action: pan-y; }
  .tool-ed-slider .ctl-range::-webkit-slider-runnable-track { height: 2px; background: rgba(20, 28, 50, 0.12); border-radius: 1px; }
  .tool-ed-slider .ctl-range::-webkit-slider-thumb {
    width: var(--tool-knob);
    height: var(--tool-knob);
    margin-top: calc((2px - var(--tool-knob)) / 2);
    border-radius: 50%;
    background: var(--tool-glass-lit);
    border: 1px solid var(--tool-glass-edge);
    box-shadow: inset 0 1px 0 var(--tool-glass-rim),
      0 1px 1px rgba(20, 28, 50, 0.06), 0 6px 16px -10px rgba(20, 28, 50, 0.4);
  }
  .tool-ed-slider .ctl-range:hover::-webkit-slider-thumb { background: #fff; }
  .tool-ed-slider .ctl-range::-moz-range-track { height: 2px; background: rgba(20, 28, 50, 0.12); border-radius: 1px; }
  .tool-ed-slider .ctl-range::-moz-range-thumb {
    width: var(--tool-knob);
    height: var(--tool-knob);
    border-radius: 50%;
    background: var(--tool-glass-lit);
    border: 1px solid var(--tool-glass-edge);
    box-shadow: inset 0 1px 0 var(--tool-glass-rim), 0 1px 1px rgba(20, 28, 50, 0.06);
  }
  .tool-ed-slider .ctl-chan,
  .tool-ed-slider .ctl-thresh { display: none; }
  .tool[data-editing] .tool-stage-col,
  .tool[data-editing] .tool-card { pointer-events: none; }
}
@media (pointer: coarse) {
  .tool-verb { padding: 11px 0; margin: -11px 0; }
}
.tool-bar { display: none; }
.tool-editor[hidden],
.tool-reopen[hidden],
.tool-stage > .tool-dock[hidden] { display: none; }
@media (min-width: 721px) and (not (pointer: coarse)) {
  .tool-editor,
  .tool-verbs .tool-reopen,
  .tool-stage > .tool-dock { display: none; }
}
.menu-sheet.paper-menu {
  flex-direction: column;
  max-height: 80svh;
  overflow: hidden;
  max-height: 95svh;
  --ground: #f9fafc;
  --ink: #171d30;
  --ink-dim: #4a5368;
  --ink-faint: #5f697e;
  --line: rgba(28, 42, 85, 0.13);
  --line-strong: rgba(28, 42, 85, 0.32);
  --hover: rgba(28, 42, 85, 0.05);
  --panel: #ffffff;
  --panel-thick: #ffffff;
  --accent: #20222b;
  --accent-ink: #f4f5f8;
  color: var(--ink);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
  border-color: rgba(20, 28, 50, 0.14);
  box-shadow: 0 -8px 30px -12px rgba(20, 28, 50, 0.35);
}
.menu-sheet .paper-preview-cap {
  flex: 0 0 auto;
  width: 100%;
  align-items: center;
  padding-bottom: var(--sp-2, 8px);
}
.menu-sheet .paper-shot { max-width: 100%; }
.menu-sheet .paper-shot-note,
.menu-sheet .paper-process { display: none; }
.menu-sheet .paper-preview-name,
.menu-sheet .paper-preview-print,
.menu-sheet .paper-preview-blurb { text-align: center; max-width: 300px; }
.menu-sheet .paper-preview-blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
}
.menu-sheet .paper-list {
  flex: 1 1 auto;
  width: 100%;
  min-height: 96px;
  max-height: none !important;
}
.menu-sheet .paper-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--sp-2, 8px);
  width: 100%;
  padding-top: var(--sp-2, 8px);
  border-top: 1px solid var(--line);
}
.menu-sheet .paper-foot-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-0, 2px);
}
.menu-sheet .paper-foot-name {
  font: 500 var(--fs-ui) / 1.2 var(--sans);
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menu-sheet .paper-foot-sub {
  font: 400 var(--fs-micro) / 1.35 var(--sans);
  color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menu-sheet .paper-foot-sub:empty { display: none; }
.menu-sheet .paper-use { flex: 0 0 auto; }
.menu-sheet.paper-menu .btn-primary:hover,
.menu-sheet.paper-menu .btn-primary:active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tool-save-status { margin-top: var(--stack-prose); }
.tool-prog {
  height: 2px;
  margin-top: var(--sp-2);
  border-radius: 1px;
  background: var(--on);
  overflow: hidden;
}
.tool-prog[hidden] { display: none; }
.tool-prog-fill {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.12s linear;
}
.tool-after {
  grid-column: 1;
  display: grid;
  grid-template-columns: clamp(200px, 22%, 240px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  animation: tool-after-in 0.22s ease-out both;
}
@keyframes tool-after-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.tool-after[hidden] { display: none; }
.tool-after-pic { display: block; }
.tool-after-pic img { display: block; width: 100%; height: auto; }
.tool-after-say { display: flex; flex-direction: column; align-items: flex-start; }
.tool-after-say .cta-word { margin-top: 20px; }
@media (max-width: 860px) {
  .tool-after {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .tool-after-pic { width: min(240px, 62%); }
}
.phead:has(.tool) + .feat { margin-top: clamp(40px, 5vh, 64px); }
.phead:has(.tool) + .feat > .fs:first-child { padding-top: clamp(40px, 5vh, 64px); }
.fs-lead .hero-acts { margin-top: 26px; }
.fs > .fs-art + .hero-fine { margin-top: clamp(40px, 5vh, 56px); }
@media (prefers-reduced-motion: reduce) {
  .tool-prog-fill { transition: none; }
  .tool-after { animation: none; }
}
