/* Katzennapfstation-Generator – im Design von Mak3rhub
   (Tokens, Schrift, Druckplatten-Hintergrund und Pill-Filter wie public/style.css von Mak3rhub) */

/* Onest (SIL Open Font License) – selbst gehostet */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bed: #f1f5f5;
  --bed-glow: rgba(9, 117, 112, 0.17);
  --bed-glow-2: rgba(9, 117, 112, 0.11);
  --grain-opacity: 0.95;
  --grain-blend: multiply;
  --surface: #fafcfc;
  --surface-2: #e3eaea;
  --raised: #ffffff;
  --ink: #0f1d20;
  --ink-2: #44575b;
  --ink-3: #5f7276;
  --line: #d4dfe0;
  --line-strong: #b5c5c7;
  --accent: #097570;
  --accent-ink: #ffffff;
  --accent-soft: rgba(9, 117, 112, 0.1);
  --accent-glow: rgba(9, 117, 112, 0.35);
  --focus: #097570;
  --warn-bg: #f6ead0;
  --warn-ink: #6b4a10;
  /* Laser-Vorschau: Holz, Schnitt (rot), Gravur */
  --wood: #e6cd9f;
  --cut: #e0352b;
  --engrave: #3a2414;
  --stage-1: #ffffff;
  --stage-2: #e9eff0;
  --text: 'Onest', 'Helvetica Neue', system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --maxw: 1480px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bed: #172226; --bed-glow: rgba(63, 217, 200, 0.11); --bed-glow-2: rgba(63, 217, 200, 0.05);
    --grain-opacity: 0.35; --grain-blend: screen;
    --surface: #1d2a2e; --surface-2: #273739; --raised: #223135;
    --ink: #e4eeee; --ink-2: #a8babc; --ink-3: #83999c; --line: #2d3f42; --line-strong: #3d5356;
    --accent: #3fd9c8; --accent-ink: #062321; --accent-soft: rgba(63, 217, 200, 0.12); --accent-glow: rgba(63, 217, 200, 0.45);
    --focus: #3fd9c8; --warn-bg: #33291a; --warn-ink: #f0d39a;
    --wood: #d8bc8a; --stage-1: #22343a; --stage-2: #172226;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bed: #172226; --bed-glow: rgba(63, 217, 200, 0.11); --bed-glow-2: rgba(63, 217, 200, 0.05);
  --grain-opacity: 0.35; --grain-blend: screen;
  --surface: #1d2a2e; --surface-2: #273739; --raised: #223135;
  --ink: #e4eeee; --ink-2: #a8babc; --ink-3: #83999c; --line: #2d3f42; --line-strong: #3d5356;
  --accent: #3fd9c8; --accent-ink: #062321; --accent-soft: rgba(63, 217, 200, 0.12); --accent-glow: rgba(63, 217, 200, 0.45);
  --focus: #3fd9c8; --warn-bg: #33291a; --warn-ink: #f0d39a;
  --wood: #d8bc8a; --stage-1: #22343a; --stage-2: #172226;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bed); color: var(--ink);
  font: 400 15px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Druckplatte (PEI) als Hintergrund */
.bed {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 18%, var(--bed-glow), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, var(--bed-glow-2), transparent 70%),
    radial-gradient(50% 45% at 12% 100%, var(--bed-glow-2), transparent 70%);
}
.bed-plane {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 1.4 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
}

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; min-height: 66px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bed) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; flex: none;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand-word { display: inline-flex; align-items: baseline; }
.brand-3 { display: inline-block; width: 0.49em; height: 0.708em; margin: 0 0.05em 0 0.04em; color: var(--accent); }
.crumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.crumb::before { content: ''; width: 1px; height: 22px; background: var(--line-strong); }
.crumb b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn-quiet {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: 10px; padding: 0 13px; font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.btn-quiet:hover { color: var(--accent); border-color: var(--accent); }
.btn-quiet svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-quiet.small { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; border: 0; padding: 0 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 22px -12px var(--accent-glow);
}
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-accent svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

/* ---------- Layout ---------- */
.app {
  position: relative; z-index: 1; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px;
  padding: 22px var(--gutter) 56px; max-width: var(--maxw); margin: 0 auto;
}
.intro { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.intro h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.intro p { margin: 6px 0 0; color: var(--ink-2); max-width: 62ch; }

.panel {
  align-self: start; position: sticky; top: 86px; max-height: calc(100vh - 106px); overflow: auto;
  padding: 4px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.link-reset {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: var(--ink-2);
  font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-reset:hover { color: var(--accent); }
.panel section { padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.panel section:last-of-type { border-bottom: 0; }
.panel h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field { display: block; margin: 0 0 13px; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 12.5px; text-align: right; }
.num { display: flex; align-items: center; gap: 10px; }
.num input[type=range] { flex: 1; min-width: 0; }
.num input[type=number] { width: 76px; }
.num i { font-style: normal; color: var(--ink-3); font-size: 12.5px; width: 22px; }
input[type=number], input[type=text], select {
  height: 34px; border: 1px solid var(--line-strong); background: var(--raised); border-radius: 9px; padding: 0 10px; width: 100%;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
}
select {
  appearance: none; cursor: pointer; padding-right: 32px;
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%237a857f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center / 12px;
}
input[type=number]:focus, input[type=text]:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=range] { accent-color: var(--accent); height: 4px; cursor: pointer; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Geänderte Einstellungen wie im Slicer: Beschriftung in Akzentfarbe + ↺ zum Zurücksetzen */
.field > span { align-items: center; }
.field.changed > span:first-child { color: var(--accent); }
.rst {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: auto; margin-left: 2px; padding: 0;
  border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent); cursor: pointer; flex: none;
}
.rst:hover { background: var(--accent); color: var(--accent-ink); }
.rst svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.field > span > em { margin-left: auto; }
.pill.changed { box-shadow: inset 0 0 0 1px var(--accent); }
.count:not(:empty) {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 7px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; text-decoration: none;
}
.link-reset:disabled, .btn-quiet:disabled { opacity: .45; cursor: default; color: var(--ink-3); border-color: var(--line-strong); }
.link-reset:disabled:hover { color: var(--ink-3); }

/* Segmentschalter (wie „Preis“ bei Mak3rhub) */
.seg { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; }
.seg button {
  flex: 1; height: 30px; border: 0; background: transparent; border-radius: 999px; padding: 0 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--bed); font-weight: 600; }

/* Schalter als Filter-Pills mit Häkchen */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); user-select: none; white-space: nowrap;
}
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill:hover { color: var(--ink); border-color: var(--ink-3); }
.pill:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.pill:has(input:checked)::before {
  content: ''; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px);
}
.pill:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; gap: 6px; margin: -5px 0 13px; flex-wrap: wrap; }
.chips button {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; height: 26px; padding: 0 10px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums;
}
.chips button:hover { border-color: var(--accent); color: var(--ink); }
.chips button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.foot { color: var(--ink-3); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- Bühne ---------- */
.stage { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.box { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.viewer { position: relative; height: min(58vh, 580px); min-height: 320px;
  background: radial-gradient(110% 85% at 50% 15%, var(--stage-1) 0%, var(--stage-2) 100%); }
.viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-hint { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.extrude { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.extrude.on { opacity: 1; }
.extrude span {
  position: absolute; inset: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transform-origin: left;
  animation: extrude 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes extrude { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stats { display: flex; gap: 6px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: baseline; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
.stat b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); }
.viewer-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.mini input[type=range] { width: 110px; }

.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.notice ul { margin: 4px 0 0; padding-left: 18px; }

.sheets-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.tabs button:hover { color: var(--ink); border-color: var(--ink-3); }
.tabs button.on { background: var(--raised); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tabs .bad { color: var(--cut); font-weight: 700; }
.sheet-actions { display: flex; gap: 6px; }
.sheet { padding: 16px; background: var(--surface-2); }
.sheet svg { width: 100%; height: auto; display: block; }
.sheet-note { padding: 10px 16px 14px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); }
.legend { display: inline-flex; gap: 14px; margin-right: 12px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

.howto { padding: 18px 22px 8px; }
.howto h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.howto ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.howto li { margin-bottom: 9px; }
.howto b { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bed);
  padding: 9px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none;
}
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .panel { position: static; max-height: none; order: 2; }
  .stage { order: 1; }
  .viewer { height: 50vh; }
  .crumb { display: none; }
  .top-actions .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .top { gap: 10px; }
  .brand-word { display: none; }
  .btn-quiet .lbl { display: none; }
}

/* Vorschaumodus für den Katalog: nur die 3D-Ansicht, transparenter Hintergrund */
.thumb-mode body { background: transparent; }
.thumb-mode .bed, .thumb-mode .top, .thumb-mode .intro, .thumb-mode .panel, .thumb-mode .viewer-bar, .thumb-mode .viewer-hint,
.thumb-mode .notice, .thumb-mode .stage > .box:not(:first-child), .thumb-mode .toast { display: none !important; }
.thumb-mode .viewer { position: fixed; inset: 0; height: auto; background: transparent; }
.thumb-mode .box { border: 0; background: transparent; }

/* ---------- Einbindung in Mak3rhub: Bereichs-Reiter, Fußzeile, Feedback ---------- */
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--ink-3); }
.area-nav { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface) 75%, transparent); }
.area-nav a { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.area-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.area-nav a[aria-current='page'] { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 760px) { .area-nav a { padding: 6px 9px; font-size: 13px; } }
@media (max-width: 520px) { .area-nav { display: none; } }

.legend .sw-cut { background: var(--cut); }
.legend .sw-engrave { background: var(--engrave); height: 8px; }
.load-error { position: relative; z-index: 1; padding: 64px var(--gutter); max-width: 60ch; }
.load-error h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.02em; }
.load-error p { color: var(--ink-2); }
.offscreen { position: fixed; left: -3000px; top: 0; width: 640px; height: 480px; border: 0; }
.offscreen.small { width: 480px; height: 360px; }
.empty { color: var(--ink-2); }

.site-foot {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 36px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 13px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot button.linklike { border: 0; background: none; padding: 0; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.site-foot button.linklike:hover { color: var(--accent); }

.cat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-count { color: var(--ink-3); font-size: 13.5px; }

/* Feedback-Dialog (natives <dialog>) */
.fb { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--raised); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.fb::backdrop { background: rgba(10, 24, 27, .45); backdrop-filter: blur(2px); }
.fb form { display: grid; gap: 14px; padding: 22px 22px 18px; }
.fb h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.fb .fb-intro { margin: -6px 0 0; color: var(--ink-2); font-size: 14px; }
.fb .fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fb .fb-kinds label { position: relative; }
.fb .fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb .fb-kinds span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.fb .fb-kinds input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.fb .fb-kinds input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.fb label.fb-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fb textarea, .fb input[type='email'], .fb input[type='text'] { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 10px 12px; font: 400 15px/1.5 var(--text); }
.fb textarea { min-height: 120px; resize: vertical; }
.fb .fb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.fb .fb-check input { margin-top: 3px; accent-color: var(--accent); }
.fb .fb-shot { max-width: 180px; border-radius: 8px; border: 1px solid var(--line); }
.fb .fb-note { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.fb .fb-status { margin: 0; min-height: 1em; font-size: 13.5px; color: var(--warn-ink); }
.fb .fb-actions { display: flex; justify-content: flex-end; gap: 8px; }
.fb .fb-done { padding: 34px 22px; font-size: 16px; text-align: center; }
.fb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
