:root {
  --honey: #ffc21a;
  --honey-deep: #f0ad00;
  --charcoal: #1e1b16;
  --cream: #fff8e7;
  --sky: #4da3ff;
  --berry: #ff5c7a;
  --card: #fffdf8;
  --good: #1f9d55;
  --muted: #6d6458;
  --line: rgba(30, 27, 22, 0.1);
  --shadow: 0 18px 50px rgba(30, 27, 22, 0.08);
  --radius: 28px;
  font-family: Nunito, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 194, 26, 0.55), transparent 32%),
    radial-gradient(circle at 110% 8%, rgba(77, 163, 255, 0.28), transparent 26%),
    radial-gradient(circle at 90% 100%, rgba(255, 92, 122, 0.16), transparent 28%),
    var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 900;
  margin-bottom: 0.35em;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.04em; font-weight: 900; }
h3 { font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 0.35rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  z-index: 80;
}
.skip:focus { top: 1rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem max(24px, calc((100% - 1040px) / 2));
  background: rgba(255, 248, 231, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; grid-column: 1; justify-self: start; }
.brand-bee { width: auto; height: 46px; }
.brand-text { display: flex; align-items: center; line-height: 1; }
.brand-text strong { font-size: 1.22rem; font-weight: 900; letter-spacing: -0.05em; }
.top .brand-text strong { font-size: 1.65rem; }
.desk-nav { display: flex; gap: 1.45rem; font-weight: 800; grid-column: 2; justify-self: center; align-items: center; }
.cat-menu { position: relative; }
.cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0.15rem;
  font-weight: 800;
  cursor: pointer;
}
.cat-toggle svg { width: 12px; height: 12px; }
.cat-drop {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: white;
  border: 1.5px solid var(--charcoal);
  border-radius: 16px;
  padding: 0.35rem;
  box-shadow: 0 16px 40px rgba(30, 27, 22, 0.12);
  z-index: 60;
}
.cat-drop a, .menu-cats a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}
.cat-drop a:hover, .cat-drop a[aria-current="page"] { background: #fff1cc; }
.cat-empty { display: block; padding: 0.55rem 0.75rem; color: var(--muted); font-weight: 700; }
.menu-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6410;
  font-weight: 800;
}
.top-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
.btn.honey.top-cta {
  padding: 0.85rem 1.45rem;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 4px 0 #e0a400;
}
.btn.honey.top-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #e0a400; }
.mobile-random { align-self: stretch; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.desk-nav a { text-decoration: none; }
.desk-nav a[aria-current="page"] { color: #b45309; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.honey { background: var(--honey); color: var(--charcoal); box-shadow: 0 8px 0 #e0a400; }
.btn.honey:hover { background: #ffd24d; }
.btn.honey:active { transform: translateY(2px); box-shadow: 0 2px 0 #e0a400; }
.btn.ghost { background: white; box-shadow: inset 0 0 0 2px var(--charcoal); }
.btn.xl { padding: 1rem 1.5rem; font-size: 1.08rem; }
.btn.berry { background: var(--berry); color: white; }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.92rem; box-shadow: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.burger:hover, .burger[aria-expanded="true"] { background: rgba(30, 27, 22, 0.06); }
.burger span { display: block; width: 18px; height: 2px; background: var(--charcoal); border-radius: 2px; }
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding: 4.6rem 1.15rem calc(1rem + env(safe-area-inset-bottom));
}
.nav-panel[hidden] { display: none !important; }
.nav-panel nav { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-height: 0; overflow: auto; }
.nav-panel .mobile-random {
  width: 100%;
  margin-top: 0.85rem;
  padding: 1.2rem 1.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  box-shadow: 0 5px 0 #e0a400;
}
.nav-panel .menu-links, .nav-panel .menu-cats { display: flex; flex-direction: column; gap: 0; }
.nav-panel .menu-links { margin-bottom: 0.65rem; padding-bottom: 0.45rem; border-bottom: 1px solid rgba(30, 27, 22, 0.08); }
.nav-panel .menu-links a, .nav-panel .menu-cats a {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  padding: 0.42rem 0;
}
.nav-panel .menu-label { margin-top: 0.7rem; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 4vw 1rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #9a6410;
  margin-bottom: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 4px rgba(255, 194, 26, 0.35);
}
.lede { font-size: 1.2rem; line-height: 1.45; max-width: 38rem; color: #3a342c; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero-stage { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.float-bee { position: relative; width: min(150px, 32vw); margin: 0 6% -18px auto; z-index: 2; pointer-events: none; animation: bob 4.5s ease-in-out infinite; }
.trivia-shell { width: 100%; }
.trivia-shell .qcard h2 { padding-right: 0; }
.hero-bee { width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(30, 27, 22, 0.12)); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

.trivia-shell { position: relative; z-index: 1; }

.qcard, .q-card, .post-card, .panel, .login-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qcard { padding: 1.15rem 1.15rem 0.9rem; }
.qcard-kicker { display: flex; align-items: center; gap: 0.4rem; font-weight: 800; color: #c2410c; margin-bottom: 0.45rem; }
.qcard h2, .qcard h3 { font-size: 1.35rem; line-height: 1.2; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin: 0.9rem 0; }
.opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  width: 100%;
  border: 2px solid transparent;
  background: #fff6df;
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font-weight: 800;
}
.opt:hover { border-color: #f0c14b; }
.opt .letter {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  flex: none;
  font-size: 0.85rem;
}
.opt.picked { background: var(--honey); border-color: var(--charcoal); }
.opt.good { background: #d9f8e6; border-color: var(--good); }
.opt.bad { background: #ffe1e7; border-color: var(--berry); }
.opt:disabled { cursor: default; }
.show-answer, .text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--sky);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.quiz-list { display: flex; flex-direction: column; gap: 0.9rem; }
.quiz-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 0.4rem 0 1rem;
  font-weight: 800;
}
.bar { height: 10px; background: white; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); flex: 1; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), #ff8a00); width: 0; }
.score-banner {
  margin: 0 0 1.4rem;
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  background: var(--charcoal);
  color: white;
}
.score-banner strong { font-size: 2rem; letter-spacing: -0.04em; display: block; }
.persona-result { display: grid; justify-items: start; gap: 0.55rem; }
.persona-result img { width: min(100%, 280px); height: auto; border-radius: 18px; background: white; }
.persona-result span { max-width: 46rem; line-height: 1.45; }
.sticky-check {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.qcard { scroll-margin-top: 5.5rem; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
}
.marquee div {
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
  padding: 0.7rem 0;
  animation: slide 28s linear infinite;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wrap { width: min(1120px, calc(100% - 8vw)); margin: 0 auto; }
.section { padding: 2.2rem 0; }
.section-head, .quiz-toolbar, .row-between { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-head a { font-weight: 800; color: var(--sky); }

.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  padding: 0.4rem 0.4rem 0.9rem;
}
.cat-icon, .cover-fallback {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--tile);
  color: white;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--tile) 45%, transparent);
}
.cat-icon svg, .cover-fallback svg { width: 36px; height: 36px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.q-card, .post-card { padding: 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; }
.q-card p, .post-card p { color: var(--muted); font-weight: 600; margin-bottom: 0.4rem; }
.q-card h3 a, .post-card h3 a { text-decoration: none; }
.q-card-foot, .meta-line { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-weight: 800; font-size: 0.92rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  text-decoration: none;
  background: color-mix(in srgb, var(--chip) 18%, white);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.2rem 0.55rem 0.2rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.chip .apple-emoji { width: 16px; height: 16px; }
.apple-emoji { width: 1.15rem; height: 1.15rem; object-fit: contain; display: inline-block; vertical-align: -0.15em; }
.apple-emoji-lg { width: 72px; height: 72px; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.45rem;
  max-height: 360px;
  overflow: auto;
  margin-top: 0.45rem;
}
.icon-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: 1.5px solid #eadfcd;
  background: white;
  border-radius: 12px;
  padding: 0.45rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--charcoal);
}
.icon-pick img { width: 32px; height: 32px; object-fit: contain; }
.icon-pick.on { border-color: var(--charcoal); background: #fff4cc; }
.cover { display: block; border-radius: 18px; overflow: hidden; margin-bottom: 0.45rem; min-height: 140px; background: #fff3cc; }
.cover img, .hero-img { width: 100%; height: 180px; object-fit: cover; }
.hero-img { height: auto; max-height: 460px; border-radius: 28px; margin: 0.5rem 0 1.2rem; }
.cover-fallback { width: 100%; height: 160px; border-radius: 18px; }
.post time { color: var(--muted); font-weight: 800; font-size: 0.9rem; }
.page-head { padding-top: 2.4rem; }
.page-head h1, .post h1, .quiz-article h1, .page-narrow h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.page-narrow { padding-top: 2.4rem; padding-bottom: 3rem; max-width: 760px; }
.crumbs, .meta-line { color: var(--muted); font-weight: 800; }
.crumbs a { color: var(--sky); }
.prose { font-size: 1.12rem; line-height: 1.6; font-weight: 600; }
.prose h2 { margin-top: 1.6rem; }
.prose img { border-radius: 22px; margin: 1rem 0; }
.prose a { color: #0b6bcb; text-decoration: underline; }
.embed-quiz { margin: 1.4rem 0; }
.about-bee { width: 140px; margin: 0.4rem 0 1rem; }
.stack-form, .fields { display: flex; flex-direction: column; gap: 0.8rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 800; }
input, textarea, select {
  border: 2px solid transparent;
  background: white;
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(255, 194, 26, 0.7); }
.flash { background: #d9f8e6; border-radius: 16px; padding: 0.8rem 1rem; font-weight: 800; }
.empty { color: var(--muted); font-weight: 700; }
.missing { padding-bottom: 4rem; }

.foot {
  margin-top: 1rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(30, 27, 22, 0.08);
}
.foot-inner {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem 2rem;
}
.foot-brand p { margin: 0.2rem 0 0; color: var(--muted); font-weight: 700; }
.foot-copy { margin: 0.55rem 0 0; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 1.15rem; }
.foot a { text-decoration: none; font-weight: 800; }
.foot strong { font-size: 1.35rem; letter-spacing: -0.04em; }

.dash-body { min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(440px, 100%); padding: 1.6rem; }
.login-card img { width: 92px; }
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  padding: 1.2rem;
  background: rgba(255, 253, 248, 0.8);
  border-right: 1px solid var(--line);
}
.side nav { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.side button, .ghost-btn {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.side button.active { background: var(--honey); }
.desk { padding: 1.2rem 1.4rem 3rem; }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1.4rem; }
.list { display: flex; flex-direction: column; gap: 0.6rem; }
.list article, .msg {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: white;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.result { align-items: center; }
.result dl { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0; }
.result dl div { min-width: 7rem; }
.result dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #8a7560; }
.result dd { margin: 0; font-weight: 800; }
.badge { font-size: 0.75rem; font-weight: 800; background: #fff3cc; border-radius: 999px; padding: 0.15rem 0.5rem; }
.badge.off { background: #eee; }
.status-filter { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.25rem; margin: 0 0 1rem; border-radius: 999px; background: rgba(0, 0, 0, 0.05); }
.status-filter button { border: 0; background: none; padding: 0.45rem 1rem; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; color: inherit; }
.status-filter button span { font-weight: 700; opacity: 0.6; margin-left: 0.2rem; }
.status-filter button.active { background: var(--honey); }
.editor { display: flex; flex-direction: column; gap: 0.75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.q-edit { background: white; border-radius: 18px; padding: 0.4rem 0.9rem 0.8rem; box-shadow: var(--shadow); }
.q-edit summary { cursor: pointer; font-weight: 900; padding: 0.55rem 0; }
.opt-row { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dropzone, .editor-surface {
  background: white;
  border-radius: 18px;
  min-height: 90px;
  padding: 0.8rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.editor-surface { min-height: 280px; line-height: 1.5; }
.editor-surface.dropping, .dropzone.dropping { box-shadow: inset 0 0 0 3px var(--honey); background: #fff8dc; }
.quiz-chip {
  display: inline-flex;
  margin: 0.4rem 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--honey);
  font-weight: 900;
}
.error { color: #b42346; font-weight: 800; }
.ok { color: var(--good); font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.trivia { margin: 1.6rem 0 0.4rem; }
.trivia-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }
.trivia-q {
  border: 0;
  margin: 1.35rem 0 0;
  padding: 0;
}
.trivia-q legend {
  font-weight: 800;
  font-size: 1.12rem;
  padding: 0;
  margin-bottom: 0.35rem;
}
.trivia-opt {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0.45rem 0;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.trivia-opt input {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--charcoal);
  background: white;
  box-shadow: none;
  flex: none;
}
.trivia-opt input:focus,
.trivia-opt input:focus-visible { outline: none; }
.trivia-opt input:checked {
  background: var(--charcoal);
  box-shadow: inset 0 0 0 3px white;
}
.trivia-opt.good span { color: var(--good); }
.trivia-opt.good span::after { content: " · Correct"; font-weight: 800; }
.trivia-opt.bad span { color: #b42346; text-decoration: line-through; }
.trivia-opt.bad span::after { content: " · Your answer"; font-weight: 800; text-decoration: none; display: inline; }
.trivia-opt.picked span { font-weight: 800; }
.trivia-opt.picked span::after { content: " · Your answer"; font-weight: 800; }
.trivia-submit[disabled] { opacity: 0.72; cursor: wait; }
.trivia-q.missing legend { color: #b42346; }
.trivia-q.missing legend::after { content: "Not answered"; display: block; margin-top: 0.15rem; font-size: 0.85em; }
.trivia-missing {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #fff1f3;
  border: 1px solid rgba(180, 35, 70, 0.25);
  color: #3a342c;
  font-weight: 700;
  line-height: 1.45;
}
.trivia-missing strong { color: #b42346; }
.trivia-jump {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: #b42346;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  box-shadow: none;
}
.trivia-jump:hover { color: var(--charcoal); }
.trivia-gate { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2rem; width: 100%; }
.trivia-gate label { font-size: 1.05rem; }
.trivia-check { flex-direction: row; align-items: center; gap: 0.6rem; }
.trivia-check input { width: 1.15rem; height: 1.15rem; box-shadow: none; }
.trivia-submit { width: 100%; border-radius: 8px; padding: 0.95rem 1rem; }
.trivia-note { color: #3a342c; font-weight: 700; line-height: 1.45; margin: 0.2rem 0 0; }
.share-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 1rem;
}
.share-row a {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.share-row svg { width: 2.15rem; height: 2.15rem; display: block; fill: currentColor; }
.prose .share-row a { text-decoration: none; }
.prose .share-row a.share-fb { color: #0866ff; }
.prose .share-row a.share-x { color: #000; }
.prose .share-row a.share-wa { color: #25d366; }
.prose .share-row a.share-rd { color: #ff4500; }
.prose .share-row a.share-tg { color: #2aabee; }

body.reading {
  background: #fff;
  background-image: none;
}
body.reading .top { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid rgba(30, 27, 22, 0.06); }
.article {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2.4rem 0 1.4rem;
}
.more-quizzes {
  width: min(1040px, calc(100% - 48px));
  margin: 0.6rem auto 3.5rem;
}
.more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.more-head h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.more-quizzes .quiz-grid { margin: 1rem 0 0; }
.article .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #8a8176;
  margin-bottom: 1.4rem;
}
.article .crumbs a { color: #8a8176; text-decoration: none; }
.article .crumbs a:hover { color: var(--charcoal); }
.article .crumbs span:last-child { color: #5c564c; }
.article h1 {
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
}
.article-deck {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #4a453e;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.article-date {
  display: flex;
  gap: 0.8rem;
  color: #8a8176;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.article-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 627;
  max-height: none;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 0 1.8rem;
}
.article .prose { font-size: 1.08rem; line-height: 1.75; color: #241f1a; }
.article .prose h2 { font-size: 1.45rem; margin: 2rem 0 0.7rem; letter-spacing: -0.03em; }
.article .prose p { margin: 0 0 1rem; }
.article .prose img { width: 100%; height: auto; aspect-ratio: 1200 / 627; object-fit: cover; border-radius: 16px; }
.article .img-slot {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 1rem 0;
  border: 2px dashed #e4d7bf;
  border-radius: 16px;
  background: #fffaf0;
}
.article .img-slot figcaption { font-weight: 800; color: #8a7560; text-align: center; padding: 1rem; }
.article .article-note {
  margin: 1.4rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #fff1cc;
  box-shadow: var(--shadow);
}
.article-writer { display: flex; flex-direction: column; gap: 0.65rem; background: white; border-radius: 16px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; box-shadow: var(--shadow); }
.word-slider { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; }
.word-slider input[type="range"] { flex: 1 0 100%; width: 100%; }
.wp-block[data-type="p"],
.wp-block[data-type="h2"],
.wp-block[data-type="h3"],
.wp-block[data-type="h4"],
.wp-block[data-type="note"],
.wp-block[data-type="image"] {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0.2rem 0 0.85rem;
}
#blocks { padding-top: 2.8rem; }
.block-name { padding: 0 0.35rem; color: #8a7560; font-size: 0.78rem; }
.wp-block.is-on { box-shadow: inset 0 0 0 1px rgba(30, 27, 22, 0.16); border-radius: 10px; }
.wp-block > .block-tools {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  top: auto;
  right: auto;
  display: none;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 27, 22, 0.12);
  z-index: 6;
  opacity: 1;
}
.wp-block.is-on > .block-tools { display: flex; }
.title-tools { display: flex; justify-content: flex-end; margin: 0.15rem 0 0.45rem; }
.title-ideas { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 0.9rem; }
.title-ideas[hidden] { display: none !important; }
.title-ideas button {
  text-align: left;
  background: #fff;
  border: 1px solid rgba(30, 27, 22, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 800;
  cursor: pointer;
}
.title-ideas button:hover, .title-ideas button.on { background: #fff1cc; }
.title-ideas button { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.title-ideas small { color: #8a7560; font-weight: 700; }
.meta-field { display: flex; flex-direction: column; gap: 0.35rem; }
.meta-label { display: flex; justify-content: space-between; gap: 0.6rem; font-weight: 800; }
.meta-count { color: #8a7560; font-weight: 700; }
.meta-count.is-off { color: #9a3412; }
.meta-tools { display: flex; gap: 0.35rem; align-items: center; }
.meta-tools input { flex: 1; }
.meta-field .title-ideas { margin-bottom: 0; }
.wp-rich, .wp-block textarea[data-text] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  resize: none;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0.1rem 0;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.75;
  min-height: 1.75em;
  color: #1e1b16;
  field-sizing: content;
}
.wp-rich:focus, .wp-block textarea[data-text]:focus { outline: none; }
.wp-rich a { color: #0b6bcb; text-decoration: underline; }
.wp-rich:empty::before { content: attr(data-placeholder); color: #9a9a9a; }
.wp-block[data-type="h2"] textarea { font-size: 1.75rem; font-weight: 900; line-height: 1.25; min-height: 1.25em; }
.wp-block[data-type="h3"] textarea { font-size: 1.4rem; font-weight: 900; line-height: 1.3; min-height: 1.3em; }
.wp-block[data-type="h4"] textarea { font-size: 1.15rem; font-weight: 900; line-height: 1.35; min-height: 1.35em; }
.link-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(340px, 80vw);
  padding: 0.45rem;
  background: #fff;
  border: 1px solid rgba(30, 27, 22, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 27, 22, 0.12);
}
.link-row { display: flex; gap: 0.3rem; }
.link-row input { flex: 1; min-width: 0; }
.link-apply, .link-unlink {
  border: 0;
  border-radius: 8px;
  background: #fff1cc;
  color: #1e1b16;
  font-weight: 800;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
}
.link-hint { margin: 0.2rem 0.35rem; color: #8a7560; font-size: 0.85rem; font-weight: 700; }
.link-pop[hidden] { display: none !important; }
.link-pop input { width: 100%; min-width: 0; box-sizing: border-box; border-radius: 6px; padding: 0.35rem 0.5rem; box-shadow: none; border: 1px solid #dcdcde; }
.link-results { display: flex; flex-direction: column; max-height: 220px; overflow: auto; }
.link-results button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.35rem;
  cursor: pointer;
  font-weight: 800;
}
.link-results button small { font-weight: 700; color: #757575; }
.link-results button:hover { background: #f6f7f7; }
.wp-drop {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 2px dashed #c8c8c8;
  border-radius: 8px;
  color: #757575;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
}
.wp-drop.has-image { position: relative; display: block; min-height: 0; border: 0; }
.wp-drop img { width: 100%; display: block; border-radius: 8px; }
.crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 627;
  overflow: hidden;
  border-radius: 8px;
  background: #1e1b16;
  cursor: grab;
  touch-action: none;
}
.crop-frame.dragging { cursor: grabbing; }
.crop-frame img[data-movable] {
  position: absolute;
  max-width: none;
  width: auto;
  height: auto;
  border-radius: 0;
  user-select: none;
}
.crop-frame img:not([data-movable]) { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.crop-hint { margin: 0.4rem 0 0; color: #8a7560; font-size: 0.82rem; font-weight: 700; }
.img-replace {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #1e1b16;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.img-remove {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: #1e1b16;
  color: #fff;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.wp-drop.dropping { border-color: #2271b1; }

body.home { background: #fffdf9; }
body.home .top {
  background: #fff1cc;
  border-bottom: 1px solid rgba(30, 27, 22, 0.06);
}
.discover {
  text-align: center;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2.35rem 0 0;
}
.hero-block { position: relative; padding: 0.2rem 0 0.2rem; }
.discover h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  max-width: 100%;
  margin: 0.1rem auto 0.55rem;
  isolation: isolate;
}
.mark {
  position: relative;
  display: inline-block;
  padding: 0 0.14em;
  background: none;
}
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.04em;
  top: 0.12em;
  bottom: 0;
  background: #ffd000;
  transform: rotate(-2deg) skewX(-2deg);
  border-radius: 0.12em;
}
.keep { white-space: nowrap; }
.discover-lede {
  margin: 0 auto;
  max-width: 36rem;
  color: #6d6458;
  font-weight: 700;
  font-size: 1.15rem;
}
.discover-lede a { color: inherit; }
.kind-intro {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2.2rem 0 0.2rem;
  text-align: left;
}
.kind-intro h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0.15rem 0 1rem;
}
.kind-copy {
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 600;
  color: #241f1a;
}
.kind-copy p { margin: 0 0 1rem; }
.kind-copy a { font-weight: 800; }
.kind-shelf.discover { padding-top: 0.4rem; }
.finder {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(680px, 100%);
  margin: 1.35rem auto 0;
  background: white;
  border: 1.5px solid var(--charcoal);
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  box-shadow: 0 12px 34px rgba(30, 27, 22, 0.08);
}
.finder-icon { width: 22px; height: 22px; color: #8a8176; flex: none; }
.finder-field { position: relative; flex: 1; min-width: 0; }
.finder-hint {
  position: absolute;
  inset: 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0;
  color: #8a8176;
  font-weight: 700;
  font-size: 1.02rem;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.finder-field.has-value .finder-hint { visibility: hidden; }
.finder-slot {
  display: inline-grid;
  overflow: hidden;
  height: 1.25em;
  margin: 0 0.12em;
  vertical-align: bottom;
}
.finder-word {
  grid-area: 1 / 1;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.finder-word.enter { transform: translateY(110%); opacity: 0; }
.finder-word.leave { transform: translateY(-110%); opacity: 0; }
.finder input {
  width: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.75rem 0.45rem;
  font-weight: 700;
  font-size: 1.02rem;
}
.finder input:focus { outline: none; }
.finder button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--honey);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.finder button svg { width: 22px; height: 22px; }
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.15rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--charcoal);
  background: white;
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(30, 27, 22, 0.06);
  cursor: pointer;
}
.pill-emoji { font-size: 1.05rem; line-height: 1; }
.pill.on { background: var(--honey); }
.quiz-tools { width: 100%; margin: 1.15rem auto 0; display: flex; justify-content: flex-end; }
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
  margin: 0.7rem auto 3rem;
}
.quiz-tile {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(30, 27, 22, 0.08);
}
.quiz-tile a { display: block; text-decoration: none; color: inherit; }
.quiz-art { position: relative; height: 168px; overflow: hidden; background: #fff6ea; }
.card-pill {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--charcoal);
  background: white;
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(30, 27, 22, 0.12);
}
.quiz-art > svg, .quiz-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill-emoji .apple-emoji { width: 1.05rem; height: 1.05rem; }
.quiz-fallback .apple-emoji-lg, .cover-fallback .apple-emoji-lg { width: 72px; height: 72px; }
.quiz-fallback { display: grid; place-items: center; height: 100%; background: var(--tile, #ffc21a); }
.quiz-fallback svg { width: 64px; height: 64px; }
.quiz-tile-body { padding: 0.95rem 1.05rem 1.1rem; }
.quiz-tile h3 { font-size: 1.28rem; margin-bottom: 0.55rem; }
.quiz-meta {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}
.quiz-tile.shake { animation: quiz-shake 0.45s ease; }
@keyframes quiz-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-0.7deg); }
  55% { transform: translateX(4px) rotate(0.7deg); }
  80% { transform: translateX(-2px) rotate(-0.3deg); }
}
.sort { flex-direction: row; align-items: center; gap: 0.45rem; }
.sort select { border-radius: 999px; padding: 0.45rem 0.75rem; background: white; }

@media (max-width: 900px) {
  .desk-nav, .top-cta { display: none; }
  .burger { display: inline-flex; }
  .hero, .foot, .cat-row, .admin, .grid-2 { grid-template-columns: 1fr; }
  .foot { padding: 1.35rem 0 1.7rem; }
  .foot-inner { width: min(1040px, calc(100% - 32px)); flex-direction: column; align-items: stretch; gap: 1rem; }
  .foot-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    gap: 0.1rem 1.2rem;
    width: 100%;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(30, 27, 22, 0.08);
  }
  .foot-links a { padding: 0.4rem 0; }
  .hero-stage { min-height: 0; }
  .float-bee { position: relative; right: auto; top: auto; width: 140px; margin-left: auto; }
  .trivia-shell { margin-top: 0.4rem; }
  .choices { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .sticky-check { border-radius: 22px; flex-direction: column; align-items: stretch; }
  .discover h1 { font-size: 2.05rem; max-width: none; }
  .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp { grid-template-columns: 1fr; }
  .wp-side { min-height: 0; position: static; }
  .article { width: min(100% - 32px, 740px); padding-top: 1.4rem; }
  .article h1 { font-size: 1.85rem; }
  .article-deck { font-size: 1.05rem; }
  .article-hero { border-radius: 12px; }
}

@media (max-width: 640px) {
  .top { padding: 0.65rem 16px; }
  .top .brand-text strong { font-size: 1.35rem; }
  .discover { width: min(1040px, calc(100% - 32px)); padding-top: 1.35rem; }
  .kind-intro { width: min(760px, calc(100% - 32px)); padding-top: 1.4rem; }
  .kind-intro h1 { font-size: 1.85rem; }
  .discover h1 { font-size: 1.85rem; }
  .keep { white-space: normal; }
  .discover-lede { font-size: 1rem; }
  .finder { margin-top: 1rem; padding-left: 0.75rem; }
  .finder input, .finder-hint { font-size: 0.92rem; }
  .finder button { width: 42px; height: 42px; }
  .quiz-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .quiz-tile h3 { font-size: 1.12rem; }
  .pill { padding: 0.45rem 0.75rem; }
  .article { width: min(100% - 28px, 740px); }
  .more-quizzes { width: min(1040px, calc(100% - 28px)); }
  .article h1 { font-size: 1.7rem; }
  input, textarea, select { font-size: 16px; }
  .nav-panel { padding-top: 4.35rem; }
}

.desk:has(.wp) { padding: 0; background: #f0f0f1; }
.wp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 0; }
.wp-main { padding: 1.4rem 6% 3rem; }
.wp-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.wp-title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  resize: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  padding: 0.2rem 0 0.8rem;
  letter-spacing: -0.04em;
  field-sizing: content;
}
.wp input:focus, .wp textarea:focus { outline: 2px solid #2271b1; }
.wp-block textarea[data-text]:focus, .wp-rich:focus { outline: none; }
.wp-block {
  background: #fff;
  border: 1px solid #dcdcde;
  padding: 0.55rem 0.75rem 0.75rem;
  margin: 0.45rem 0;
}
.block-tools button, .wp-mini {
  border: 0;
  background: transparent;
  color: #1e1b16;
  font-weight: 800;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}
.block-tools button:hover, .wp-mini:hover { background: #fff1cc; }
.wp-h2 { font-size: 1.7rem; font-weight: 900; }
.wp-h3 { font-size: 1.35rem; font-weight: 900; }
.wp-h4 { font-size: 1.1rem; font-weight: 900; }
.wp-dots { margin: 0.2rem 0 0.4rem; padding-left: 1.2rem; }
.wp-dots li { margin: 0.25rem 0; }
.wp-slash { position: relative; display: none; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.wp-slash.is-open { display: flex; }
.wp-plus {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1.5px solid #1e1b16;
  background: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.wp-plus:hover { background: #fff1cc; }
.wp-slash > input { flex: 1; background: transparent; box-shadow: none; border: 0; padding-left: 0; color: #757575; }
.wp-menu[hidden] { display: none !important; }
.wp-menu {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  width: min(260px, 100%);
  background: #fff;
  border: 1px solid #dcdcde;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
.wp-menu button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 0.65rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.wp-menu button small { font-weight: 700; color: #8a7560; }
.wp-menu button:hover { background: #f6f7f7; }
.wp-focus, .wp-box {
  background: #fff;
  border: 1px solid #dcdcde;
  padding: 0.85rem 0.9rem;
  margin-top: 1.2rem;
}
.wp-box h3 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.wp-side {
  background: #fff;
  border-left: 1px solid #dcdcde;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 1rem 1rem 2rem;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.seo-check { display: flex; flex-direction: column; gap: 0.55rem; padding-bottom: 0.85rem; border-bottom: 1px solid #dcdcde; }
.seo-check ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.seo-check li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; font-weight: 700; font-size: 0.92rem; }
.seo-check li b { font-weight: 800; color: #8a7560; }
.seo-check li.ok b { color: #146c36; }
.seo-check li.need b { color: #9a3412; }
.seo-check .btn { width: 100%; }
.link-note { margin: 0; color: #9a3412; font-weight: 700; font-size: 0.88rem; }
.link-note[hidden] { display: none !important; }
.btn.is-saved { background: #dff5e7; box-shadow: 0 8px 0 #9fd8b4; }
.link-ideas { display: flex; flex-direction: column; gap: 0.5rem; }
.link-ideas[hidden] { display: none !important; }
.link-idea { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.7rem; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; font-size: 0.88rem; }
.link-idea-head { display: flex; flex-direction: column; gap: 0.1rem; }
.link-idea-head small { color: var(--muted); font-weight: 700; }
.link-idea p { margin: 0; line-height: 1.45; font-weight: 600; }
.link-idea mark { background: #fff1cc; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; padding: 0 0.1rem; border-radius: 3px; }
.link-idea-old { color: var(--muted); text-decoration: line-through; font-weight: 500 !important; }
.link-idea .wp-mini { align-self: flex-start; }
.link-idea.used { opacity: 0.55; }
.wp-side h2 { font-size: 1rem; margin-bottom: 0.2rem; }
.img-side { display: flex; flex-direction: column; gap: 0.55rem; padding-bottom: 0.85rem; border-bottom: 1px solid #dcdcde; }
.img-side[hidden] { display: none !important; }
.img-side-thumb { width: 100%; aspect-ratio: 1200 / 627; object-fit: cover; border-radius: 8px; border: 1px solid #dcdcde; }
.img-side-thumb[hidden] { display: none; }
.img-side .muted { margin: 0; font-size: 0.85rem; }
.wp-side input:not([type="checkbox"]), .wp-side textarea, .wp-side select { width: 100%; box-sizing: border-box; }
.wp-cat { flex-direction: row; align-items: center; gap: 0.45rem; font-weight: 700; }
.desk:has(.chat) { padding: 0; height: 100vh; overflow: hidden; display: flex; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; background: #fffdf9; }
.chat-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); }
.chat-log { flex: 1; overflow: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble { max-width: min(820px, 100%); background: white; border-radius: 18px; padding: 0.95rem 1.05rem; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.chat-row.mine .chat-bubble { max-width: min(520px, 86%); background: #fff1cc; white-space: pre-wrap; }
.chat-md h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.chat-q { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.chat-q p { white-space: pre-wrap; }
.chat-q ul { list-style: none; margin: 0.45rem 0 0.2rem; display: flex; flex-direction: column; gap: 0.28rem; }
.chat-q li.right { font-weight: 800; }
.chat-q li em { font-style: normal; font-weight: 800; font-size: 0.75rem; background: #e8f8ee; color: #146c36; border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.35rem; }
.chat-q-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; margin-top: 0.45rem; }
.chat-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.chat-extra .error { flex: 1 1 100%; margin: 0; }
.certainty { font-weight: 800; }
.certainty.low { color: #b45309; }
.chat-q-foot .btn { flex: none; }
.fact { flex: 1 1 auto; font-weight: 700; line-height: 1.4; }
.fact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.fact.good { color: var(--good); }
.fact.disputed { color: #b42346; }
.fact.disputed strong { font-weight: 900; }
.fact.busy { color: var(--muted); }
.fact.failed { color: #b45309; }
.fact-links { display: inline-block; font-size: 0.9em; }
.fact-status { flex: 1 1 100%; margin: 0; color: var(--muted); font-weight: 700; }
.settings-head { font-size: 1.25rem; margin: 1.4rem 0 0.2rem; }
.chat-finish { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.chat-compose { display: flex; gap: 0.6rem; align-items: flex-end; padding: 0.8rem 1.2rem 1rem; border-top: 1px solid var(--line); background: #fffdf9; }
.compose-type { display: flex; flex-direction: column; gap: 0.35rem; }
.compose-type select { min-width: 9.5rem; }
.persona-grid { display: grid; gap: 0.7rem; }
.persona-card { display: grid; gap: 0.45rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.persona-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.chat-compose textarea { flex: 1; min-height: 52px; max-height: 160px; resize: vertical; border-radius: 16px; }
.wp-add-cat { display: flex; gap: 0.35rem; align-items: center; margin-top: 0.55rem; }
.wp-add-cat input { flex: 1; min-width: 0; }
.wp-img-preview { width: 100%; border-radius: 8px; aspect-ratio: 1200 / 627; height: auto; max-height: none; object-fit: cover; }
.wp-img-preview[hidden] { display: none !important; }
.featured-box { display: flex; flex-direction: column; gap: 0.45rem; }
.featured-actions { display: inline-flex; gap: 0.3rem; }
.featured-picks { display: flex; flex-direction: column; gap: 0.35rem; }
.featured-picks[hidden] { display: none !important; }
.featured-picks small { color: var(--muted); font-weight: 700; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.featured-pick { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; line-height: 0; }
.featured-pick { aspect-ratio: 1200 / 627; background: rgba(0, 0, 0, 0.06); }
.featured-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-pick:hover, .featured-pick.on { border-color: #e0a400; }

@media (max-width: 900px) {
  .wp { grid-template-columns: 1fr; }
  .wp-side { min-height: 0; position: static; }
  .desk:has(.chat) { height: auto; min-height: 80vh; overflow: visible; }
  .chat { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
.bulk-form textarea { min-height: 12rem; font-family: inherit; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; }
.bulk-usage { margin: 1rem 0 0.4rem; font-weight: 700; }
.bulk-job { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.bulk-job header { gap: 0.8rem; align-items: flex-start; }
.bulk-stage { margin: 0.5rem 0; font-weight: 700; }
.bulk-job summary { cursor: pointer; font-weight: 800; }
.bulk-items { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.bulk-item { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.55rem 0.7rem; border-radius: 10px; background: #fffdf9; border: 1px solid var(--line); }
.bulk-item.done .muted { color: var(--good); font-weight: 700; }
.bulk-item.disputed .muted, .bulk-item.failed .muted { color: #b42346; font-weight: 700; }
.bulk-item .btn { flex: none; }
.search-meter { position: fixed; left: 1rem; bottom: 1rem; width: 198px; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.6rem 0.9rem; border: 1px solid rgba(31, 157, 85, 0.35); border-radius: 12px; background: #effaf3; color: #146c36; font: inherit; font-size: 0.85rem; font-weight: 700; text-align: left; box-shadow: var(--shadow); cursor: pointer; }
.search-meter strong { font-size: 1.15rem; font-weight: 900; }
.search-meter span { font-weight: 600; opacity: 0.85; }
.search-meter.low { background: #fff6e5; color: #8a4b00; border-color: rgba(180, 83, 9, 0.35); }
.search-meter.empty { background: #fff1f3; color: #b42346; border-color: rgba(180, 35, 70, 0.35); }
.bulk-tabs { display: inline-flex; gap: 0.3rem; padding: 0.25rem; margin: 0 0 1rem; border-radius: 999px; background: #f3ead8; }
.bulk-tabs button { border: 0; background: none; padding: 0.45rem 1.1rem; border-radius: 999px; font-weight: 800; cursor: pointer; }
.bulk-tabs button.active { background: var(--honey); }
.bulk-pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.bulk-pick-bar strong { margin-left: auto; }
.bulk-quizzes { display: flex; flex-direction: column; gap: 0.45rem; max-height: 28rem; overflow-y: auto; padding-right: 0.3rem; }
.bulk-quiz-row { display: grid; gap: 0.4rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; }
.bulk-quiz-row.picked { border-color: var(--honey-deep); background: #fff8e1; }
.bulk-quiz-row [name="note"] { display: none; }
.bulk-quiz-row.picked [name="note"] { display: block; }
.good-note { color: var(--good); font-weight: 800; }
.bad-note { color: #b42346; font-weight: 800; }
.schedule-hint { margin: -0.2rem 0 0; font-size: 0.85rem; }
@media (max-width: 900px) { .search-meter { left: auto; right: 0.6rem; bottom: 0.6rem; width: auto; font-size: 0.78rem; } .desk { padding-bottom: 5rem; } }
/* On a phone the search counter covered the post editor's fields. It has nothing to do with posts, so it steps aside there. */
@media (max-width: 900px) { body:has(.wp) .search-meter { display: none; } .desk:has(.wp) { padding-bottom: 1rem; } }
.jump-quiz { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 1.1rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--honey); color: var(--charcoal); font-weight: 900; text-decoration: none; box-shadow: 0 5px 0 #e0a400; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.jump-quiz:hover { background: #ffd24d; transform: translateY(-1px); }
.jump-quiz:active { transform: translateY(3px); box-shadow: 0 2px 0 #e0a400; }
.jump-quiz span { font-size: 1.1em; line-height: 1; }
#quiz { scroll-margin-top: 5.5rem; }
html:has(.jump-quiz) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.jump-quiz) { scroll-behavior: auto; } .jump-quiz { transition: none; } }

/* Personality quiz: step-by-step form */
.pwiz {
  margin: 1.4rem 0 0.6rem;
  padding: clamp(1rem, 3.5vw, 1.75rem);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  scroll-margin-top: 5rem;
}
.pwiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 800; font-size: 0.95rem; color: var(--muted); }
.pwiz-count { color: var(--charcoal); }
.pwiz-bar { height: 10px; margin: 0.55rem 0 1.25rem; background: var(--cream); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pwiz-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--honey), #ff8a00); border-radius: inherit; transition: width 0.35s ease; }
.pwiz-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.pwiz-q.in-right { animation: pwiz-in-right 0.28s ease both; }
.pwiz-q.in-left { animation: pwiz-in-left 0.28s ease both; }
@keyframes pwiz-in-right { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pwiz-in-left { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.pwiz-prompt {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
  outline: none;
}
.pwiz-options { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 640px) { .pwiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pwiz-q.long .pwiz-options { grid-template-columns: 1fr; } }
.pwiz-opt {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pwiz-opt:hover { box-shadow: inset 0 0 0 2px var(--honey-deep); }
.pwiz-opt:active { transform: scale(0.99); }
.pwiz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pwiz-key {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: white;
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 0.9rem;
  font-weight: 900;
}
.pwiz-opt:has(input:checked) { background: #fff4d1; box-shadow: inset 0 0 0 2px var(--honey-deep); }
.pwiz-opt:has(input:checked) .pwiz-key { background: var(--honey); box-shadow: none; }
.pwiz-opt:has(input:focus-visible) { outline: 3px solid rgba(77, 163, 255, 0.6); outline-offset: 2px; }
.pwiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.4rem; }
.pwiz-nav .btn { min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 14px; }
.pwiz-nav .btn.honey { margin-left: auto; box-shadow: 0 5px 0 #e0a400; }
.pwiz-nav .btn.honey:active { transform: translateY(4px); box-shadow: 0 1px 0 #e0a400; }
/* Back and Take it again get the same 5px base as Next, so the buttons line up at the same height. */
.pwiz-nav .btn.ghost, .btn.ghost.pwiz-again { box-shadow: inset 0 0 0 2px var(--charcoal), 0 5px 0 var(--charcoal); }
.pwiz-nav .btn.ghost:active, .btn.ghost.pwiz-again:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--charcoal), 0 1px 0 var(--charcoal); }
.pwiz-nav .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.pwiz-nav .btn[hidden] { display: none; }
.pwiz-error { margin: 0.8rem 0 0; }
.pwiz-result { display: block; }
.prose .pwiz-result-img, .pwiz-result-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 627; object-fit: cover; object-position: center 30%; border-radius: 18px; margin: 0.2rem 0 1rem; background: var(--cream); }
.pwiz-kicker { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--honey); font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.pwiz-got { font-weight: 800; color: var(--muted); }
.pwiz-result h3 { margin: 0 0 0.85rem; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; }
.pwiz-result p { margin: 0 0 0.8rem; line-height: 1.5; }
.pwiz-share-label { display: block; font-weight: 800; font-size: 0.9rem; color: var(--muted); }
.pwiz-result .share-row { margin: 0.35rem 0 0.9rem; }
.pwiz-again { border-radius: 14px; min-height: 3rem; padding: 0.75rem 1.4rem; margin-bottom: 5px; }
.pwiz-next-up { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.pwiz-next-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pwiz-next-head h4 { margin: 0; font-size: 1.15rem; font-weight: 900; letter-spacing: -0.01em; }
.prose .pwiz-all, .pwiz-all { color: var(--charcoal); font-weight: 800; font-size: 0.95rem; text-decoration: underline; text-decoration-color: var(--honey-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.pwiz-next-list { display: grid; gap: 0.6rem; }
.prose .pwiz-next-card, .pwiz-next-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--charcoal);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pwiz-next-card:hover { box-shadow: inset 0 0 0 2px var(--honey-deep); transform: translateY(-2px); }
.pwiz-next-media { display: block; aspect-ratio: 1200 / 627; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #ffe08a, #ffc21a); }
.prose .pwiz-next-media img, .pwiz-next-media img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.pwiz-next-title { font-weight: 800; line-height: 1.25; font-size: 1rem; }
.pwiz-next-go { padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--honey); font-weight: 900; font-size: 0.85rem; white-space: nowrap; }
@media (min-width: 720px) {
  .pwiz-next-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose .pwiz-next-card, .pwiz-next-card { grid-template-columns: 1fr; align-content: start; gap: 0.55rem; padding: 0.5rem 0.5rem 0.75rem; }
  .pwiz-next-title { padding: 0 0.3rem; }
  .pwiz-next-go { justify-self: start; margin-left: 0.3rem; }
}
@media (max-width: 519px) {
  .prose .pwiz-next-card, .pwiz-next-card { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 0.7rem; }
  .pwiz-next-card::after { content: "\203A"; font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--muted); padding-right: 0.15rem; }
  .pwiz-next-go { display: none; }
  .pwiz-next-title { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { .pwiz-next-card { transition: none; } .pwiz-next-card:hover { transform: none; } }
.pwiz-answers { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.pwiz-answers summary { cursor: pointer; font-weight: 800; }
.pwiz-answers ol { margin: 0.8rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.55rem; font-size: 1rem; }
.pwiz-answers li strong { display: block; }
.pwiz-answers li span { color: var(--muted); }
@media (max-width: 640px) {
  .pwiz { border-radius: 18px; margin-left: -4px; margin-right: -4px; }
  .pwiz-opt { min-height: 3.3rem; padding: 0.75rem 0.85rem; }
  .pwiz-nav .btn { flex: 1; }
  .pwiz-nav .btn.honey { flex: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .pwiz-q.in-right, .pwiz-q.in-left { animation: none; }
  .pwiz-bar span, .pwiz-opt { transition: none; }
}

/* Post writer: personality mode */
.persona-facts { padding: 0.7rem 0.85rem; border-radius: 12px; background: #fff4d1; }
.persona-facts[hidden], .para-pick[hidden] { display: none !important; }
.persona-facts p { margin: 0 0 0.45rem; font-weight: 700; line-height: 1.4; }
.persona-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.persona-chips span { padding: 0.2rem 0.6rem; border-radius: 999px; background: white; font-weight: 800; font-size: 0.85rem; box-shadow: inset 0 0 0 1px var(--line); }
.para-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-weight: 800; }
.para-pick label { flex-direction: row; align-items: center; gap: 0.35rem; cursor: pointer; }
.para-pick input { width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; box-shadow: none; accent-color: var(--charcoal); }

/* External link ideas */
.link-idea .ext-url { color: #0b6bcb; font-size: 0.8rem; font-weight: 700; word-break: break-all; line-height: 1.3; }
#link-external { margin-top: 0.15rem; }
.ext-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.ext-row .ext-count { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.85rem; margin-top: 0.15rem; }
.ext-row .ext-count select { width: auto; padding: 0.3rem 0.5rem; }
.ext-progress { border-radius: 10px; background: #fffaeb; box-shadow: inset 0 0 0 1px rgba(240, 173, 0, 0.45); padding: 0.55rem 0.7rem; font-size: 0.82rem; }
.ext-progress[hidden] { display: none !important; }
.ext-progress .ext-live { margin: 0 0 0.35rem; font-weight: 800; display: flex; align-items: center; gap: 0.45rem; }
.ext-progress ol { margin: 0; padding-left: 1.1rem; max-height: 11rem; overflow-y: auto; display: grid; gap: 0.15rem; }
.ext-progress li { line-height: 1.35; }
.ext-progress li.is-ok { color: #15803d; font-weight: 700; }
.ext-progress li.is-bad { color: #9a3412; }
.ext-progress.is-done { opacity: 0.85; }
.ext-spin { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.15); border-top-color: #f0ad00; animation: ext-spin 0.8s linear infinite; }
@keyframes ext-spin { to { transform: rotate(360deg); } }

/* Rewrite marked paragraphs */
.wp-block.is-marked { box-shadow: inset 4px 0 0 var(--rw-accent, #f0ad00), inset 0 0 0 1px var(--rw-accent-soft, rgba(240, 173, 0, 0.45)); border-radius: 10px; background: var(--rw-tint, #fffaeb); }
.wp-block.is-marked .wp-rich { padding-left: 0.9rem; }
.block-tools button.is-marked { background: var(--rw-accent, #f0ad00); color: var(--rw-on-accent, #1e1b16); }
.rw-done { display: flex; align-items: center; gap: 0.5rem; margin: 0.15rem 0 0.4rem; font-size: 0.8rem; font-weight: 800; color: #146c36; }
.rw-done span::before { content: "\2713  "; }
.rw-done button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rw-bar { min-width: 0; position: sticky; bottom: 0.8rem; z-index: 20; display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(30, 27, 22, 0.18), inset 0 0 0 2px var(--rw-accent, #f0ad00); }
.rw-bar[hidden] { display: none !important; }
.rw-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.rw-bar textarea { width: 100%; resize: vertical; min-height: 2.8rem; font-size: 0.95rem; }
.rw-modes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rw-modes label { position: relative; display: inline-flex; flex-direction: row; cursor: pointer; font-weight: 800; font-size: 0.88rem; }
.rw-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rw-modes span { padding: 0.4rem 0.75rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #dcdcde; background: #fff; }
.rw-modes input:checked + span { background: var(--rw-accent, #f0ad00); color: var(--rw-on-accent, #1e1b16); box-shadow: none; }
.rw-modes input:focus-visible + span { outline: 3px solid rgba(77, 163, 255, 0.6); outline-offset: 2px; }
.rw-actions { display: flex; justify-content: flex-end; }
.rw-actions .btn { min-width: 8rem; }
.rw-bar .error, .rw-bar .link-note { margin: 0; }
@media (max-width: 640px) {
  .rw-bar { bottom: 0.4rem; gap: 0.45rem; padding: 0.65rem 0.7rem; }
  .rw-bar textarea { min-height: 2.6rem; font-size: 16px; }
  .rw-modes { gap: 0.35rem; }
  .rw-modes::-webkit-scrollbar { display: none; }
  .rw-modes label { flex: none; font-size: 0.82rem; }
  .rw-modes span { white-space: nowrap; padding: 0.4rem 0.7rem; }
  .wp-block > .block-tools { flex-wrap: wrap; max-width: 100%; }
  .rw-actions .btn { width: 100%; }
}
@media (max-width: 900px) { .wp { grid-template-columns: minmax(0, 1fr); } }

/* Rewrite: pick which posts to link to */
.rw-posts { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.65rem; border-radius: 12px; background: var(--rw-tint, #fffaeb); }
.rw-posts[hidden] { display: none !important; }
.rw-posts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.rw-posts-head small { color: #6d6458; font-weight: 700; font-size: 0.8rem; }
.rw-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rw-chips:empty { display: none; }
.rw-chip { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; padding: 0.3rem 0.45rem 0.3rem 0.7rem; border: 0; border-radius: 999px; background: var(--rw-accent, #f0ad00); color: var(--rw-on-accent, #1e1b16); font: inherit; font-size: 0.82rem; font-weight: 800; text-align: left; cursor: pointer; }
.rw-chip span { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.55); color: #1e1b16; font-size: 0.9rem; line-height: 1; }
.rw-posts input[type="search"] { width: 100%; padding: 0.5rem 0.7rem; border-radius: 10px; font-size: 0.9rem; }
.rw-list { display: flex; flex-direction: column; gap: 0.25rem; max-height: 12.5rem; overflow-y: auto; overscroll-behavior: contain; }
.rw-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.45rem 0.55rem; border: 0; border-radius: 10px; background: #fff; color: #1e1b16; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px #e6e2d8; }
.rw-item:hover { box-shadow: inset 0 0 0 1.5px var(--rw-accent, #f0ad00); }
.rw-item.on { box-shadow: inset 0 0 0 2px var(--rw-accent, #f0ad00); }
.rw-box { flex: none; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 5px; box-shadow: inset 0 0 0 2px #b9b2a4; background: #fff; }
.rw-item.on .rw-box { background: var(--rw-accent, #f0ad00); box-shadow: none; }
.rw-item.on .rw-box::after { content: ""; width: 0.55rem; height: 0.3rem; margin-top: -0.12rem; border-left: 2.5px solid var(--rw-on-accent, #1e1b16); border-bottom: 2.5px solid var(--rw-on-accent, #1e1b16); transform: rotate(-45deg); }
.rw-item-text { display: flex; flex-direction: column; min-width: 0; }
.rw-item-text b { font-size: 0.88rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-item-text small { color: #6d6458; font-weight: 700; font-size: 0.75rem; }
.rw-empty { margin: 0.2rem 0; color: #6d6458; font-weight: 700; font-size: 0.85rem; }
@media (max-width: 640px) {
  .rw-list { max-height: 7.6rem; }
  .rw-bar { max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; }
  .rw-posts input[type="search"] { font-size: 16px; }
}
