@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&family=Gupter:wght@400;500;700&display=swap');

/* ── Tokens: supplied palette, all used ─────────────────────────────────── */
:root {
  --ember:       #f17341;
  --parchment:  #f7e9ce;
  --rose:       #ebb7bb;
  --mauve:      #b891a6;
  --violet:     #7a699d;
  --teal:       #6c9591;

  --ink:        #302f3a;
  --ink-soft:   rgba(48,47,58,0.72);
  --ink-faint:  rgba(48,47,58,0.54);
  --paper:      rgba(247,233,206,0.93);
  --paper-solid:#f7e9ce;
  --paper-alt:  #fff4dc;
  --line:       rgba(48,47,58,0.18);
  --line-strong:rgba(48,47,58,0.34);
  --shadow:     8px 8px 0 rgba(48,47,58,0.16);
  --shadow-sm:  4px 4px 0 rgba(48,47,58,0.13);
  --focus:      0 0 0 3px rgba(241,115,65,0.25);

  --ease-calm:  cubic-bezier(.24,.76,.22,1);
  --motion-fast: 160ms;
  --motion-med:  240ms;

  --radius-lg:  12px;
  --radius-md:  8px;
  --radius-sm:  5px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: auto; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Asap", Verdana, Geneva, ui-sans-serif, system-ui, sans-serif;
  background:
    linear-gradient(rgba(122,105,157,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,105,157,0.055) 1px, transparent 1px),
    radial-gradient(circle at 12% 10%, rgba(235,183,187,0.70), transparent 22rem),
    radial-gradient(circle at 84% 8%, rgba(108,149,145,0.58), transparent 28rem),
    radial-gradient(circle at 80% 88%, rgba(184,145,166,0.52), transparent 24rem),
    linear-gradient(135deg, var(--parchment) 0%, #f2d6c6 44%, #d8c5c9 100%);
  background-size: 24px 24px, 24px 24px, auto, auto, auto, auto;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.30;
  background-image:
    repeating-linear-gradient(0deg, rgba(48,47,58,0.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(247,233,206,0.35) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--rose); color: var(--ink); }

body.is-booting {
  overflow: hidden;
  background: #e8e8e8;
}

body.is-booting::before {
  display: none;
}

body.is-booting #app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* Boot loader: canvas-rendered CSS-equivalent of the original Uiverse spinner. */
.spinner {
  width: 180px;
  height: 180px;
  display: block;
}

#app { min-height: 100vh; }


/* ── Shell / topbar ─────────────────────────────────────────────────────── */
.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(247,233,206,0.96), rgba(235,183,187,0.92) 58%, rgba(184,145,166,0.92));
  box-shadow: 0 4px 0 rgba(48,47,58,0.12);
}
.topbar-inner,
.page {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}
.brand-row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(300px, 560px) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.brand-knot {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(247,233,206,0.96), rgba(235,183,187,0.78)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(122,105,157,0.16) 8px 9px);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  transition: none;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(1px 2px 0 rgba(48,47,58,0.12));
}
.brand:hover .brand-knot { box-shadow: 6px 6px 0 rgba(48,47,58,0.14); background: linear-gradient(135deg, rgba(247,233,206,0.98), rgba(235,183,187,0.62)); }
.brand h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Gupter", Georgia, serif;
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 1px 1px 0 rgba(247,233,206,0.70);
}
.brand p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

/* ── Search ─────────────────────────────────────────────────────────────── */
.searchbar {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: none;
}
.searchbar:focus-within { box-shadow: var(--shadow-sm), var(--focus); }
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-right: 2px solid var(--ink);
  outline: 0;
  background: var(--paper-alt);
  color: var(--ink);
  padding: 12px 13px;
  font-size: 16px;
}
.searchbar input::placeholder { color: var(--ink-faint); }
.searchbar button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--ember);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: none;
}
.searchbar button:hover { filter: brightness(0.98) saturate(1.08); background: #ef855f; }

/* ── Auth / buttons ─────────────────────────────────────────────────────── */
.auth-area { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
#clerk-user-button { display: flex; align-items: center; }
.btn-sign-in,
.btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: none;
}
.btn-sign-in,
.btn {
  min-height: 42px;
  background: var(--violet);
  color: #fffdf6;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
}
.btn-sign-in { background: var(--paper-alt); color: var(--ink); font-size: 14px; }
.btn:hover,
.btn-sign-in:hover,
.chip-btn:hover { box-shadow: 5px 5px 0 rgba(48,47,58,0.16); filter: saturate(1.02); }
.btn:active,
.btn-sign-in:active,
.chip-btn:active { box-shadow: 1px 1px 0 rgba(48,47,58,0.16); }
.btn.crimson { background: var(--ember); color: var(--ink); }
.btn.ghost { background: var(--paper-alt); color: var(--ink); }
.btn.danger { background: var(--rose); color: var(--ink); }
.btn.compact { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.btn.icon-btn { gap: 6px; }
.chip-btn {
  min-height: 31px;
  background: #fff7e7;
  color: var(--ink);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 780;
  box-shadow: 2px 2px 0 rgba(48,47,58,0.12);
}

/* ── Page / cards ───────────────────────────────────────────────────────── */
.page { padding: 30px 0 60px; }
.paper, .hero, .sidebar-card, .manager, .guide-card, .frequency-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.paper { padding: 26px; }
.paper::before,
.manager::before,
.sidebar-card::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(48,47,58,0.20);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 20px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 50px);
  background:
    linear-gradient(135deg, rgba(247,233,206,0.95), rgba(235,183,187,0.74)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(48,47,58,0.035) 18px 19px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -82px;
  width: 250px;
  height: 250px;
  border: 2px solid rgba(48,47,58,0.22);
  border-radius: 22px;
  background:
    linear-gradient(45deg, rgba(241,115,65,0.30), rgba(108,149,145,0.28)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(122,105,157,0.18) 10px 13px);
  transform: rotate(9deg);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .entry-topline, .section-title, .mini-meta {
  color: var(--violet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h2 {
  max-width: 780px;
  margin: 10px 0 14px;
  color: var(--ink);
  font-family: "Gupter", Georgia, serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.62;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick-strip { margin-top: 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Guide / sidebars ───────────────────────────────────────────────────── */
.guide-card {
  align-self: stretch;
  border-radius: var(--radius-md);
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(122,105,157,0.96), rgba(108,149,145,0.92)),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(247,233,206,0.12) 12px 13px);
  color: #fff7e7;
  z-index: 1;
  box-shadow: 6px 6px 0 rgba(48,47,58,0.18);
}
.guide-card h4, .sidebar-card h4, .manager h3 {
  margin: 0;
  color: inherit;
  font-family: "Gupter", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.guide-card ol, .clean-list { margin: 14px 0 0; padding-left: 20px; }
.guide-card li, .clean-list li { margin: 10px 0; line-height: 1.55; }

/* ── Layouts ────────────────────────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.result-grid, .entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(260px, 0.78fr);
  gap: 22px;
}
.manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 22px;
  margin-top: 26px;
}

/* ── Word cards / results ───────────────────────────────────────────────── */
.word-card {
  display: block;
  min-height: 210px;
  padding: 26px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: none;
}
.word-card:nth-child(3n+1) { background: linear-gradient(180deg, rgba(247,233,206,0.96), rgba(235,183,187,0.52)); }
.word-card:nth-child(3n+2) { background: linear-gradient(180deg, rgba(247,233,206,0.96), rgba(108,149,145,0.34)); }
.word-card:nth-child(3n+3) { background: linear-gradient(180deg, rgba(247,233,206,0.96), rgba(184,145,166,0.40)); }
.word-card:hover { box-shadow: 7px 7px 0 rgba(48,47,58,0.16); filter: saturate(1.02); background-color: rgba(255,247,231,0.98); }
.word-card::before, .result-item::before {
  content: "";
  display: block;
  width: 44px;
  height: 6px;
  margin-bottom: 15px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember) 0 34%, var(--rose) 34% 67%, var(--teal) 67%);
}
.word-card h3, .result-item h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Gupter", Georgia, serif;
  font-size: clamp(27px, 3.4vw, 39px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.word-card p, .result-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.58;
}

/* ── Tags / badges ──────────────────────────────────────────────────────── */
.tag, .pos-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.tag { background: rgba(108,149,145,0.20); color: var(--ink); }
.pos-badge { background: rgba(241,115,65,0.18); color: var(--ink); vertical-align: middle; }
.muted-tag { opacity: 0.65; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar-stack { display: grid; gap: 18px; align-content: start; }
.sidebar-card { padding: 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.sidebar-card p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.55; }
.sidebar-card h4 { margin-bottom: 12px; }

/* ── Results ────────────────────────────────────────────────────────────── */
.results-header { margin: 0 0 14px; color: var(--ink-soft); font-size: 18px; }
.results-list { padding: 8px; }
.result-item {
  display: block;
  padding: 22px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: none;
}
.result-item + .result-item {
  border-top: 1px solid var(--line);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.result-item:hover { background: rgba(255,247,231,0.72); }

/* ── Entry page ─────────────────────────────────────────────────────────── */
.entry-paper { overflow: hidden; }
.entry-paper::after {
  content: "";
  position: absolute;
  top: -92px;
  right: -62px;
  width: 230px;
  height: 230px;
  border: 2px solid rgba(48,47,58,0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(184,145,166,0.30), rgba(241,115,65,0.20));
  transform: rotate(12deg);
}
.entry-topline, .entry-headword, .entry-submeta, .entry-section { position: relative; z-index: 1; }
.entry-headword {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: "Gupter", Georgia, serif;
  font-size: clamp(54px, 8vw, 102px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.entry-submeta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  color: var(--ink-soft);
  font-weight: 800;
}
.entry-section { margin-top: 28px; }
.section-title { margin: 0 0 12px; }
.def-list { margin: 0; padding-left: 26px; }
.def-list li {
  padding-left: 7px;
  margin-bottom: 12px;
  color: rgba(48,47,58,0.90);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.55;
}
.examples-list { display: grid; gap: 9px; }
.example-line {
  margin: 0;
  border-left: 6px solid var(--ember);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,247,231,0.70);
  color: var(--ink-soft);
  padding: 11px 15px;
  font-size: 17px;
  line-height: 1.62;
}

/* ── Manager panel / forms ──────────────────────────────────────────────── */
.manager { padding: 27px; border-radius: var(--radius-lg); }
.manager-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.manager h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 33px;
}
.form-grid { display: grid; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}
.frequency-field { gap: 8px; }
.frequency-label-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}
.frequency-title { line-height: 1.2; }
.freak-route-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(241,115,65,0.92), rgba(235,183,187,0.86));
  color: var(--ink);
  padding: 7px 13px 8px;
  box-shadow: var(--shadow-sm);
  font-family: "Gupter", Georgia, serif;
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-decoration: none;
  text-transform: none;
}
.freak-route-link:focus-visible { outline: 0; box-shadow: var(--shadow-sm), var(--focus); }
.input, .textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff7e7;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 15px;
  outline: 0;
  box-shadow: inset 2px 2px 0 rgba(48,47,58,0.08);
  transition: none;
}
.textarea { min-height: 108px; resize: vertical; }
.input:focus, .textarea:focus { box-shadow: inset 2px 2px 0 rgba(48,47,58,0.08), var(--focus); background: #fffbf1; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.export-group { display: flex; gap: 0; align-items: center; box-shadow: var(--shadow-sm); }
.export-group select {
  min-height: 42px;
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #fff7e7;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  outline: 0;
  cursor: pointer;
}
.export-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: none; }
.export-group:hover { box-shadow: 5px 5px 0 rgba(48,47,58,0.16); }
.auth-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.auth-gate p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

/* ── Dark / quiet card ──────────────────────────────────────────────────── */
.quiet-card {
  background:
    linear-gradient(145deg, rgba(48,47,58,0.94), rgba(122,105,157,0.90)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(247,233,206,0.10) 12px 13px);
  color: #fff7e7;
}
.quiet-card h3, .quiet-card h4, .quiet-card .eyebrow, .quiet-card .section-title { color: #fff7e7; }
.quiet-card p, .quiet-card .clean-list { color: rgba(255,247,231,0.82); }
.quiet-card .chip-btn { background: rgba(247,233,206,0.14); color: #fff7e7; border-color: rgba(247,233,206,0.50); }
.quiet-card .muted { color: rgba(255,247,231,0.64); }
.quiet-card .section-title { margin-top: 18px; }

/* ── Notices / misc ─────────────────────────────────────────────────────── */
.notice {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: rgba(108,149,145,0.22);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.notice.error { background: rgba(235,183,187,0.62); color: var(--ink); }
.empty { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.empty-card { min-height: 210px; display: flex; align-items: center; }
.muted { color: var(--ink-faint); }
.sim-note { color: var(--ink-faint); font-size: 13px; line-height: 1.45; }
.compose-card { background: linear-gradient(180deg, rgba(247,233,206,0.96), rgba(184,145,166,0.26)); }
.frequency-card { padding: 22px; background: linear-gradient(160deg, rgba(247,233,206,0.95), rgba(108,149,145,0.28)); }
.frequency-card strong { color: var(--violet); }



/* Explicitly prevent hover/focus/tap motion. The boot loader is the only animated UI. */
.brand-knot, .brand-logo, .searchbar, .searchbar button, .btn-sign-in, .btn, .chip-btn,
.word-card, .result-item, .input, .textarea, .export-group {
  transition: none;
}

/* ── No interaction motion: loader only ────────────────────────────────── */
.hero, .paper, .manager, .sidebar-card, .guide-card, .frequency-card,
.word-card, .result-item, .tag, .pos-badge, .chip-btn {
  animation: none;
  will-change: auto;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .brand-row { grid-template-columns: 1fr; gap: 12px; }
  .auth-area { justify-content: flex-start; }
  .hero,
  .result-grid,
  .entry-grid,
  .manage-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .topbar-inner, .page { width: min(100% - 24px, 1180px); }
  .frequency-label-row { align-items: center; }
  .freak-route-link { min-height: 42px; font-size: 31px; }
  .brand { align-items: flex-start; }
  .brand-knot { width: 43px; height: 43px; }
  .brand-logo { width: 39px; height: 39px; }
  .searchbar { flex-direction: column; }
  .searchbar input { border-right: 0; border-bottom: 2px solid var(--ink); }
  .searchbar button { width: 100%; }
  .home-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .manager-head { flex-direction: column; }
  .export-group { width: 100%; }
  .export-group select { flex: 1; min-width: 0; }
  .form-actions .btn { flex: 1 1 auto; }
  #delete-btn { margin-left: 0 !important; }
  .paper, .hero, .manager { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Public intake mode ─────────────────────────────────────────────────── */
.brand-row-public {
  grid-template-columns: minmax(250px, 1fr) auto;
}
.searchbar-placeholder { display: none; }
.auth-buttons { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.public-page {
  display: grid;
  gap: 24px;
  padding-top: clamp(18px, 3vw, 34px);
}
.public-manage {
  display: block;
  margin-top: 0;
}
.public-compose {
  max-width: 860px;
  margin: 0 auto;
}
.cooldown-card {
  display: grid;
  gap: 4px;
}
.input:disabled,
.textarea:disabled,
select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 940px) {
  .brand-row-public { grid-template-columns: 1fr; }
}

/* ── Editor raid controls ───────────────────────────────────────────────── */
.editor-tools { display: grid; align-content: start; gap: 16px; }
.raid-card {
  border: 1px solid rgba(247,233,206,0.36);
  border-radius: var(--radius-md);
  background: rgba(247,233,206,0.10);
  padding: 16px;
}
.raid-card p {
  margin: 9px 0 0;
  color: rgba(255,247,231,0.82);
  line-height: 1.5;
}
.raid-controls { display: grid; gap: 10px; margin-top: 14px; }
.dark-field { color: rgba(255,247,231,0.78); }
.dark-field .input {
  border-color: rgba(247,233,206,0.70);
  background: rgba(255,247,231,0.92);
  color: var(--ink);
}
.countdown { font-variant-numeric: tabular-nums; }

/* ── Emoji dopamine burst ───────────────────────────────────────────────── */
.emoji-burst {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.emoji-pop {
  position: fixed;
  bottom: -42px;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1;
  filter: drop-shadow(2px 3px 0 rgba(48,47,58,0.16));
  animation: snack-pop 1600ms var(--ease-calm) forwards;
  will-change: transform, opacity;
}
.kiss-pop {
  font-size: clamp(30px, 4.6vw, 50px);
  animation-duration: 1850ms;
}
@keyframes snack-pop {
  0%   { transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.72); opacity: 0; }
  12%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { transform: translate3d(var(--dx), calc(-1 * var(--dy)), 0) rotate(28deg) scale(1.08); opacity: 0; }
}

@media (max-width: 940px) {
  .brand-row-public { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .emoji-pop { animation: none !important; opacity: 0; }
}

