/* ═══════════════════════════════════════════════════════════
   BBD WORD CLOUD GENERATOR — DESIGN SYSTEM 2026
   Electric Noir  ·  Syne + DM Sans  ·  bigbrickdigital.com
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:         #07090e;
  --surface:    #0e1219;
  --surface-2:  #141b27;
  --surface-3:  #1c2535;
  --border:     rgba(255,255,255,0.07);
  --border-hi:  rgba(255,255,255,0.15);
  --lime:       #c6f135;
  --lime-dim:   rgba(198,241,53,0.12);
  --coral:      #ff5f57;
  --cyan:       #38f5d4;
  --purple:     #a78bfa;
  --amber:      #fbbf24;
  --text:       #dde1ec;
  --text-dim:   #8891a4;
  --radius:     12px;
  --radius-sm:  7px;
  --radius-lg:  20px;
  --ease:       cubic-bezier(.2,.8,.2,1);
  --ease-back:  cubic-bezier(.34,1.56,.64,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── AMBIENT LAYER ── */
#ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(130px); opacity: 0.1;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.orb-1 { width: 700px; height: 700px; background: var(--lime);   top: -300px; right: -200px; animation-delay: 0s; }
.orb-2 { width: 600px; height: 600px; background: var(--cyan);   bottom: -200px; left: -150px; animation-delay: -8s; }
.orb-3 { width: 450px; height: 450px; background: var(--purple); top: 45%; left: 35%; opacity: 0.06; animation-delay: -4s; }

@keyframes orbDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* ── LAYOUT ── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(20px,4vw,56px) clamp(16px,3vw,40px);
}

/* ── HEADER ── */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(36px,5vw,68px);
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px;
}
.logo-pip { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; animation: pip 2.2s ease-in-out infinite; }
@keyframes pip { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(0.8)} }

.back-link {
  font-size: 0.82rem; color: var(--text-dim); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color .2s; letter-spacing: .02em;
}
.back-link:hover { color: var(--lime); }

/* ── HERO ── */
.hero { text-align: center; margin-bottom: clamp(36px,5vw,64px); }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); background: var(--lime-dim); border: 1px solid rgba(198,241,53,.2);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 18px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: pip 2s infinite; }
.hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(2.1rem,5.5vw,4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; color: #fff;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--lime) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: clamp(.95rem,1.8vw,1.1rem); color: var(--text-dim); max-width: 460px; margin: 0 auto; line-height: 1.7; }

/* ── APP SHELL ── */
.app-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px rgba(0,0,0,.55);
  overflow: hidden;
}

/* ── INPUT ZONE ── */
.input-zone {
  padding: clamp(18px,2.5vw,28px);
  border-bottom: 1px solid var(--border);
}

/* ── DRAG OVERLAY ── */
.drop-overlay {
  display: none;
  position: absolute; inset: 0; z-index: 20;
  background: rgba(198,241,53,0.05);
  border: 2px dashed rgba(198,241,53,0.5);
  border-radius: var(--radius-lg);
  align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--lime);
  pointer-events: none;
}
.app-shell.drag-over .drop-overlay { display: flex; }

.input-row {
  display: grid; gap: 10px;
  grid-template-columns: 1fr auto;
  align-items: start;
}
.input-col { display: flex; flex-direction: column; gap: 7px; }
.input-label {
  font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
}
textarea#wordInput {
  width: 100%; min-height: 105px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; line-height: 1.65;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  resize: vertical; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
textarea#wordInput::placeholder { color: var(--text-dim); }
textarea#wordInput:focus {
  outline: none; border-color: rgba(198,241,53,.4);
  box-shadow: 0 0 0 3px rgba(198,241,53,.06);
}
.input-meta { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-dim); }
.char-count.over { color: var(--coral); }

/* URL fetch input */
.url-bar {
  display: flex; gap: 8px; align-items: center;
}
.url-bar input {
  flex: 1; padding: 8px 12px;
  font-family: 'DM Sans', sans-serif; font-size: .85rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s;
}
.url-bar input::placeholder { color: var(--text-dim); font-size: .82rem; }
.url-bar input:focus { outline: none; border-color: rgba(56,245,212,.35); }
.btn-url {
  padding: 8px 14px; font-size: .8rem; font-weight: 600; font-family: 'Syne', sans-serif;
  background: rgba(56,245,212,.12); border: 1px solid rgba(56,245,212,.25);
  color: var(--cyan); border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-url:hover { background: rgba(56,245,212,.2); transform: translateY(-1px); }
.btn-url:active { transform: translateY(0); }

/* ── EXCLUSION PILLS ── */
.exclusions-bar {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
  padding: 12px clamp(18px,2.5vw,28px);
  background: rgba(255,255,255,.015);
  border-bottom: 1px solid var(--border);
  min-height: 46px;
}
.exclusions-label { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); margin-right: 4px; }
.exclusion-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 11px; border-radius: 999px;
  font-size: .78rem; background: rgba(255,95,87,.1); border: 1px solid rgba(255,95,87,.25); color: var(--coral);
  cursor: pointer; transition: background .2s, transform .15s;
  user-select: none;
}
.exclusion-pill:hover { background: rgba(255,95,87,.2); transform: scale(1.04); }
.exclusion-pill .pill-x { font-size: .7rem; opacity: .7; }
.exclusions-empty { font-size: .78rem; color: var(--text-dim); font-style: italic; }

/* ── CONTROLS BAR ── */
.controls-bar {
  padding: clamp(16px,2.2vw,22px) clamp(18px,2.5vw,28px);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.018);
}
.controls-grid {
  display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-end;
}

/* Control group */
.ctrl-group { display: flex; flex-direction: column; gap: 7px; }
.ctrl-label { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }

select, input[type="number"] {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
  padding: 8px 10px; cursor: pointer; transition: border-color .2s;
  min-width: 110px;
}
select:focus, input[type="number"]:focus { outline: none; border-color: rgba(198,241,53,.35); }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--lime) 0%, var(--lime) var(--pct, 50%), var(--surface-3) var(--pct, 50%), var(--surface-3) 100%);
  border: none; padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--bg); cursor: pointer;
  box-shadow: 0 0 6px rgba(198,241,53,.5);
  transition: transform .15s var(--ease-back);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
input[type="range"]:focus { outline: none; }

/* Color swatches */
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s var(--ease-back), border-color .15s;
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active { border-color: #fff; transform: scale(1.2); }

/* Background color picker */
.bg-picker-wrap {
  display: flex; gap: 6px; align-items: center;
}
.bg-swatch {
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s var(--ease-back), border-color .15s;
}
.bg-swatch:hover { transform: scale(1.2); }
.bg-swatch.active { border-color: #fff; transform: scale(1.15); }

/* Switch toggle */
.toggle-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.toggle-wrap .ctrl-label { margin-bottom: 0; cursor: pointer; }
.toggle { position: relative; width: 34px; height: 19px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border);
  transition: background .25s; cursor: pointer;
}
.toggle input:checked ~ .toggle-track { background: rgba(198,241,53,.35); border-color: rgba(198,241,53,.5); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--text-dim); transition: transform .25s var(--ease-back), background .25s;
}
.toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(15px); background: var(--lime); }

/* ── ACTION BAR ── */
.action-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 16px clamp(18px,2.5vw,28px);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.action-bar-left { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.action-bar-right { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 999px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: .87rem;
  letter-spacing: .01em; cursor: pointer; border: none;
  transition: transform .2s var(--ease), box-shadow .3s, filter .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }

.btn-primary { background: var(--lime); color: #050a00; box-shadow: 0 4px 18px rgba(198,241,53,.22); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(198,241,53,.38); filter: brightness(1.06); }
.btn-primary.loading .btn-spinner { display: block; }
.btn-primary.loading .btn-text { opacity: .6; }

.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--border-hi); }

.btn-icon { background: rgba(255,255,255,.05); color: var(--text-dim); border: 1px solid var(--border); padding: 9px 14px; }
.btn-icon:hover { color: var(--text); background: rgba(255,255,255,.09); }

.btn-danger { background: rgba(255,95,87,.08); color: var(--coral); border: 1px solid rgba(255,95,87,.2); }
.btn-danger:hover { background: rgba(255,95,87,.16); }

.btn-spinner { display: none; width: 13px; height: 13px; border: 2px solid rgba(5,10,0,.25); border-top-color: #050a00; border-radius: 50%; animation: spin .55s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CANVAS ZONE ── */
.canvas-zone {
  position: relative;
  padding: clamp(16px,2.5vw,28px);
  background: var(--surface);
}
#canvasWrap {
  position: relative;
  width: 100%; aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .35s;
}
#canvasWrap.has-cloud { border-color: rgba(198,241,53,.15); }
#canvasWrap canvas { display: block; width: 100% !important; height: 100% !important; }

/* Empty state */
.empty-state {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  pointer-events: none;
  transition: opacity .3s;
}
.empty-state.hidden { opacity: 0; }
.empty-icon { font-size: 2.8rem; opacity: .18; }
.empty-hint { font-size: .85rem; color: var(--text-dim); opacity: .55; }

/* Word hover tooltip */
#wordTooltip {
  position: fixed; z-index: 1000; pointer-events: none;
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--surface-3); border: 1px solid var(--border-hi);
  font-size: .8rem; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  display: none;
  transition: opacity .15s;
}
#wordTooltip.visible { display: block; }

/* ── STATS BAR ── */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding: 12px clamp(18px,2.5vw,28px);
  border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--text-dim);
  background: rgba(255,255,255,.012);
}
.stat strong { color: var(--text); font-weight: 600; margin-right: 3px; }

/* ── SIDE PANEL (Word Table) ── */
.panel-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.panel-overlay.open { opacity: 1; pointer-events: auto; }

.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 51; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.side-panel.open { transform: translateX(0); }

.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; }
.panel-close {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.panel-close:hover { background: rgba(255,255,255,.08); color: var(--text); }

.panel-search {
  padding: 14px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.panel-search input {
  width: 100%; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: .88rem;
  transition: border-color .2s;
}
.panel-search input::placeholder { color: var(--text-dim); }
.panel-search input:focus { outline: none; border-color: rgba(198,241,53,.35); }

.panel-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

.word-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 24px; cursor: pointer;
  transition: background .15s;
}
.word-row:hover { background: rgba(255,255,255,.04); }
.word-row.excluded { opacity: .4; text-decoration: line-through; }
.word-rank { font-size: .7rem; color: var(--text-dim); width: 22px; text-align: right; flex-shrink: 0; }
.word-text { flex: 1; font-size: .9rem; color: var(--text); }
.word-bar-wrap { width: 80px; flex-shrink: 0; }
.word-bar-bg { height: 4px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.word-bar-fill { height: 100%; background: var(--lime); border-radius: 4px; transition: width .4s var(--ease); }
.word-count { font-size: .78rem; color: var(--text-dim); width: 28px; text-align: right; flex-shrink: 0; }
.word-exclude-btn {
  width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: .75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.word-exclude-btn:hover { background: rgba(255,95,87,.12); color: var(--coral); border-color: rgba(255,95,87,.3); }

.panel-foot {
  padding: 14px 24px; border-top: 1px solid var(--border); flex-shrink: 0;
  display: flex; gap: 8px;
}
.panel-copy-btn {
  flex: 1; padding: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-dim); font-family: 'Syne', sans-serif;
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.panel-copy-btn:hover { background: rgba(255,255,255,.09); color: var(--text); }

/* ── FAQ ── */
.faq-section {
  margin-top: clamp(44px,6vw,88px);
  padding-bottom: clamp(32px,4vw,56px);
}
.section-eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.section-heading { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: clamp(22px,3.5vw,36px); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s; }
.faq-item:hover { border-color: var(--border-hi); }
.faq-btn {
  width: 100%; background: transparent; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 20px;
  font-family: 'DM Sans', sans-serif; font-size: clamp(.93rem,1.8vw,1.02rem); font-weight: 500;
  color: var(--text); text-align: left; transition: color .2s;
}
.faq-btn:hover { color: var(--lime); }
.faq-icon {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  transition: transform .38s var(--ease), background .25s, border-color .25s, color .25s;
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--lime-dim); border-color: rgba(198,241,53,.3); color: var(--lime); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease); }
.faq-body.open { max-height: 400px; }
.faq-inner {
  padding: 0 20px 17px;
  font-size: .93rem; line-height: 1.75; color: var(--text-dim);
}
.faq-inner ul { padding-left: 18px; }
.faq-inner li + li { margin-top: 5px; }
.faq-inner strong { color: var(--text); }

/* ── FOOTER ── */
.site-footer {
  margin-top: clamp(36px,5vw,68px);
  padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: var(--text-dim);
}
.site-footer a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--lime); }

/* ── TOAST ── */
#toastStack {
  position: fixed; bottom: 26px; right: 26px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 11px 16px; border-radius: var(--radius);
  background: #1a2133; border: 1px solid var(--border-hi);
  font-size: .84rem; color: var(--text);
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: 280px; backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: none; }
.toast.s { border-color: rgba(198,241,53,.4); }
.toast.e { border-color: rgba(255,95,87,.4); }
.toast.i { border-color: rgba(56,245,212,.3); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .controls-grid { gap: 14px 16px; }
  select, input[type="range"], input[type="number"] { min-width: 90px; }
  .action-bar { flex-direction: column; }
  .action-bar-left, .action-bar-right { width: 100%; }
  .btn { justify-content: center; }
  .input-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
