/* ─────────────────────────────────────────────────────────
   Bonnet dashboard
   ───────────────────────────────────────────────────────── */

:root {
  --cream: #FAF6F0;
  --paper: #FFFFFF;
  --ink: #241B14;
  --ink-2: #6A5D52;
  --ink-3: #9B8E82;
  --line: #ECE4D9;
  --line-2: #DDD2C3;
  --honey: #C98A2E;
  --honey-deep: #9E6A1C;
  --butter: #F7EAD0;
  --butter-2: #FBF3E3;
  --live: #2E7D52;
  --live-soft: #E3F1E8;
  --danger: #B5432F;
  --danger-soft: #FBE9E5;
  --display: "Young Serif", Georgia, serif;
  --ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(36, 27, 20, .04), 0 8px 24px -12px rgba(36, 27, 20, .12);
  --shadow-lg: 0 30px 80px -20px rgba(36, 27, 20, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar: 0px; /* the menu's height above the page: 0 beside it, a slim bar on phones */
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
iframe { display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
code { font-size: .88em; padding: .1em .35em; border-radius: 4px; background: var(--butter-2); }

h1, h2, h3 { font-family: var(--display); font-weight: 450; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
.muted { color: var(--ink-2); }
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--honey-deep); margin-bottom: .35rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 40px; padding: .5rem 1.05rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--primary:hover { background: #3a2c21; border-color: #3a2c21; box-shadow: 0 8px 20px -10px rgba(36,27,20,.6); }
.btn--sm { min-height: 34px; padding: .35rem .85rem; font-size: .84rem; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--lg { min-height: 50px; padding: .75rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--butter-2); border-color: transparent; color: var(--ink); }
.btn--dashed { width: 100%; border-style: dashed; background: transparent; color: var(--ink-2); }
.btn--dashed:hover { background: var(--paper); color: var(--ink); }
.btn--current { background: var(--live-soft); border-color: transparent; color: var(--live); opacity: 1 !important; }

.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  text-decoration: none; transition: background-color .15s, color .15s;
}
.iconbtn:hover:not(:disabled) { background: var(--butter); color: var(--ink); }
.iconbtn:disabled { opacity: .3; cursor: default; }
.iconbtn--sm { width: 30px; height: 30px; border-radius: 8px; }
.iconbtn--sm .ico { width: 16px; height: 16px; }
.iconbtn--danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }

/* ── Menu: a side bar down the left ───────────────────
   The Bonnet logo at the top, the tools, then News and Help, with Account,
   Sign out and Bonnet's own social links at the bottom. Preview and Download
   live in the top bar (.appbar), in the top right corner of every screen.
   It stays put while the page scrolls. Below 900px it folds into a slim bar
   across the top (--topbar is its height; sticky things sit below it). */
:root { --side: 236px; }
.has-sidenav { padding-left: var(--side); --topbar: 0px; }
.sidenav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: var(--side);
  display: flex; flex-direction: column; gap: 1.1rem; padding: 1.25rem .85rem 1rem;
  background: var(--cream); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
}
.wordmark { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.sidenav .wordmark { padding: .1rem .55rem .25rem; }
.wordmark__logo { display: block; height: 38px; width: auto; margin-top: 2px; }
.wordmark__text { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; }
.wordmark:hover { color: var(--honey-deep); }
.wordmark--lg { justify-content: center; margin-bottom: 1.25rem; }
.wordmark--lg .wordmark__logo { height: 68px; }
/* The top bar beside the menu: Preview and Download, top right, on every builder screen.
   It's --topbar tall, so sticky things and the editor sit below it. */
.has-appbar { --topbar: 60px; }
.appbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: .5rem; height: var(--topbar);
  padding: 0 clamp(1rem, 2.5vw, 1.75rem); background: rgba(250, 246, 240, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.appbar .wordmark { margin-right: auto; } /* the Bonnet logo on the left, Preview and Download on the right */
.appbar .wordmark__logo { height: 32px; margin: 0; }
/* Beside the menu, the bar runs the full width of the screen, over the menu's
   top, and the menu starts below it (so its own copy of the logo steps aside). */
@media (min-width: 901px) {
  .has-appbar .appbar { margin-left: calc(-1 * var(--side)); padding-left: 1.4rem; }
  .has-appbar .sidenav { top: var(--topbar); }
  .has-appbar .sidenav > .wordmark { display: none; }
}
.sidenav__nav, .sidenav__end { display: grid; gap: .15rem; }
.sidenav__nav--more { padding-top: .9rem; border-top: 1px solid var(--line); }
.sidenav__end { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); }
:is(.sidenav__nav, .sidenav__end) > a, .sidenav__signout button {
  position: relative; display: flex; align-items: center; gap: .65rem;
  padding: .5rem .7rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.sidenav__signout { display: contents; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; } /* a button that looks like a link (Sign out in forms) */
.sidenav__signout button { width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; text-align: left; }
:is(.sidenav__nav, .sidenav__end) > a:hover, .sidenav__signout button:hover { color: var(--ink); background: var(--butter-2); }
:is(.sidenav__nav, .sidenav__end) > a[aria-current] { color: var(--ink); background: var(--butter); }
:is(.sidenav__nav, .sidenav__end) > a .ico, .sidenav__signout .ico { color: var(--ink-3); }
:is(.sidenav__nav, .sidenav__end) > a[aria-current] .ico { color: var(--honey-deep); }
.sidenav__dot { position: absolute; right: .75rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 3px var(--butter-2); } /* something new in News */
.sidenav__label { margin: 0 0 .2rem; padding: 0 .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sidenav__count { margin-left: auto; min-width: 1.35rem; padding: .05rem .4rem; border-radius: 999px; background: var(--honey); color: #fff; font-size: .72rem; text-align: center; }
/* An admin viewing someone's account read-only. */
.sidenav__viewing { display: grid; gap: .5rem; padding: .75rem; border-radius: 12px; background: var(--ink); color: var(--cream); font-size: .82rem; line-height: 1.35; }
.sidenav__viewing .ico { width: 15px; height: 15px; vertical-align: -3px; }
.sidenav__viewing .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.is-readonly .add-section, .is-readonly .savebar .btn--primary { display: none; }
.sidenav__social { display: flex; align-items: center; gap: .25rem; margin: .4rem 0 0; padding: 0 .7rem; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.sidenav__social span { margin-right: auto; }
.brand-ico svg { width: 15px; height: 15px; fill: currentColor; }
.btn .brand-ico svg { display: block; }

@media (max-width: 900px) {
  .has-sidenav { padding-left: 0; --topbar: 60px; }
  .sidenav {
    position: sticky; bottom: auto; width: auto; height: var(--topbar); flex-direction: row; align-items: center; gap: .5rem;
    padding: 0 .75rem; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(250, 246, 240, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .sidenav .wordmark { padding: 0 .25rem 0 0; flex-shrink: 0; }
  .wordmark__logo { height: 28px; }
  /* On phones the menu is the bar across the top; Preview and Download pin to its right end. */
  .has-appbar .sidenav { padding-right: 6.5rem; }
  .appbar { position: fixed; top: 0; right: 0; z-index: 41; height: var(--topbar); padding: 0 .75rem 0 1.25rem; border-bottom: 0;
    background: linear-gradient(90deg, rgba(250, 246, 240, 0), rgba(250, 246, 240, .97) 1.1rem); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .appbar span, .appbar .wordmark { display: none; } /* the menu bar already shows the logo */
  .appbar .btn { padding: .5rem; min-width: 36px; }
  .sidenav__nav, .sidenav__end { display: flex; flex-shrink: 0; gap: .1rem; }
  .sidenav__nav--more, .sidenav__end { padding: 0 0 0 .5rem; margin: 0; border-top: 0; border-left: 1px solid var(--line); }
  :is(.sidenav__nav, .sidenav__end) > a, .sidenav__signout button { padding: .5rem; }
  :is(.sidenav__nav, .sidenav__end) span, .sidenav__social { display: none; }
  .sidenav__dot { right: .2rem; top: .45rem; margin: 0; }
}

/* ── Page layout ──────────────────────────────────────── */
.page { width: min(100% - 2.5rem, 1200px); margin: 2.5rem auto 6rem; }
.page--narrow { max-width: 640px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.page-head p { max-width: 62ch; margin-top: .5rem; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.empty { padding: 3rem; text-align: center; }
.empty p { margin-top: 1rem; }

.pill { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; background: var(--butter); color: var(--honey-deep); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.pill--home { background: var(--ink); color: var(--cream); margin-right: .35rem; }

.notice { padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--butter-2); border: 1px solid var(--butter); font-size: .9rem; }
.notice a { font-weight: 600; }
.notice--error { background: var(--danger-soft); border-color: #F2CFC7; color: var(--danger); }

/* ── Dashboard ────────────────────────────────────────── */
.hello {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.5rem; border-radius: calc(var(--r) * 1.4);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(231, 180, 90, .35), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(201, 138, 46, .14), transparent 60%),
    var(--butter-2);
  border: 1px solid var(--butter);
}
.hello { position: relative; }
.hello h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 400; }
/* The bee in the hello banner: flipped to face the greeting, drifting in a
   lazy loop, his bubble saying hello in one language after another. */
.hello__bee { position: absolute; top: clamp(1rem, 2.5vw, 1.75rem); right: clamp(1.25rem, 3vw, 2.5rem); gap: .9rem; animation: hello-drift 9s ease-in-out infinite; }
.hello__bee .bee { width: 74px; }
.hello__bee .bee__svg { transform: scaleX(-1); }
.hello__bee .bee-say__bubble { display: grid; min-width: 9.5rem; padding: .6rem 1rem .55rem; text-align: center; box-shadow: var(--shadow); }
.hello__bee .bee-say__bubble::before { left: auto; right: -7px; border-width: 1px 1px 0 0; } /* the tail points right, to the bee */
.hello__bee .bee-say__bubble span { font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.hello__bee [data-hello] > * { transition: opacity .35s ease, translate .35s ease; }
.hello__bee [data-hello].is-swapping > * { opacity: 0; translate: 0 4px; }
@keyframes hello-drift {
  0%, 100% { translate: 0 0; }
  25% { translate: -10px 6px; }
  50% { translate: -4px -8px; }
  75% { translate: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) { .hello__bee { animation: none; } }
@media (max-width: 760px) { .hello__bee { position: static; order: -1; animation: none; } }
.hello p.muted { max-width: 54ch; margin-top: .75rem; font-size: 1.02rem; }

.dash-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); margin-bottom: 1.25rem; }
.checklist { padding: 1.5rem; }
.progress { height: 6px; margin: 1rem 0 1.25rem; border-radius: 99px; background: var(--butter-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--honey), #E7B45A); transition: width .6s var(--ease); }
.checklist ol { list-style: none; padding: 0; display: grid; gap: .25rem; }
.checklist li a { display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.checklist li a:hover { background: var(--butter-2); }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; flex-shrink: 0; transition: all .3s var(--ease); }
.tick .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.is-done .tick { background: var(--live); border-color: var(--live); color: #fff; }
.is-done a { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.checklist .notice { margin-top: 1rem; }

.tile { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 24px 40px -24px rgba(36,27,20,.3); }
.tile__body { padding: 1.25rem 1.5rem 1.5rem; }
.tile__body h3 { font-size: 1.5rem; }
.tile__preview { position: relative; height: 180px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--cream); }
.tile__preview iframe { width: 1280px; height: 900px; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
@media (min-width: 600px) { .tile__preview iframe { transform: scale(.3); } }
.swatches { display: flex; gap: 4px; margin-top: .6rem; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.mini-list { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .1rem; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mini-list li:last-child { border: 0; }
.status { font-size: .72rem; font-weight: 700; padding: .1rem .55rem; border-radius: 99px; }
.status--live { color: var(--live); background: var(--live-soft); }
.status--draft { color: var(--ink-2); background: #F1ECE5; }
.brand-chip { display: flex; align-items: center; min-height: 72px; margin: .5rem 0; }
.brand-chip img { max-height: 64px; width: auto; }
.brand-chip__text { font-size: 1.9rem; line-height: 1.1; }

.how { padding: 1.75rem; }
.how__steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding: 0; margin-top: 1.25rem; list-style: none; counter-reset: s; }
.how__steps li { counter-increment: s; color: var(--ink-2); }
.how__steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: .75rem; border-radius: 50%; background: var(--butter); color: var(--honey-deep); font-family: var(--display); font-weight: 600; }
.how__steps strong { display: block; color: var(--ink); }
.how__tour { margin: 1.5rem 0 0; font-size: .88rem; }
.how__tour a { color: var(--honey-deep); font-weight: 600; }

/* ── Page list ────────────────────────────────────────── */
.table-card { overflow: hidden; }
.pages-table { width: 100%; border-collapse: collapse; }
.pages-table th { padding: .8rem 1.25rem; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: #FCFAF6; border-bottom: 1px solid var(--line); }
.pages-table td { padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pages-table tr:last-child td { border-bottom: 0; }
.pages-table tbody tr { transition: background-color .15s; }
.pages-table tbody tr:hover { background: #FDFBF7; }
.page-name { display: block; font-weight: 650; font-size: 1rem; text-decoration: none; }
.page-name:hover { color: var(--honey-deep); }
.page-home { display: inline-flex; vertical-align: -2px; margin-left: .4rem; color: var(--ink-3); }
.page-home .ico { width: 15px; height: 15px; }
.page-url { display: flex; align-items: center; font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; }
.row-actions .btn { margin-right: .35rem; }
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .pages-table td, .pages-table th { padding-inline: .75rem; }
  .row-actions [data-action="up"], .row-actions [data-action="down"] { display: none; }
}

.status-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem .35rem .6rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .82rem; font-weight: 700; transition: all .2s;
}
.status-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-toggle.status--live { color: var(--live); background: var(--live-soft); }
.status-toggle.status--live .status-toggle__dot { box-shadow: 0 0 0 3px rgba(46,125,82,.18); }
.status-toggle.status--draft { color: var(--ink-2); background: #F1ECE5; }
.status-toggle:hover { border-color: currentColor; }

/* ── Modals ───────────────────────────────────────────── */
.modal { margin: auto; width: min(100% - 2rem, 640px); max-height: min(100% - 2rem, 860px); padding: 0; border: 0; border-radius: calc(var(--r) * 1.3); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal--wide { width: min(100% - 2rem, 1080px); }
.modal--example { width: min(100% - 2rem, 520px); }
.example-note { display: grid; gap: .85rem; padding: 2rem 2rem 1rem; text-align: center; }
.example-note__bee { justify-self: center; width: 76px; }
.example-note__bee .bee { display: block; width: 100%; }
.example-note h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.example-note p { color: var(--ink-2); line-height: 1.55; }
.example-note__aside { padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--butter-2); color: var(--ink); }
.modal::backdrop { background: rgba(36, 27, 20, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__inner { display: flex; flex-direction: column; max-height: min(100vh - 2rem, 860px); max-height: min(100dvh - 2rem, 860px); } /* a real limit, so the body scrolls and the footer stays put */
.modal__head, .modal__foot { flex-shrink: 0; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.modal__body { flex: 1 1 auto; min-height: 0; padding: 1.5rem; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: #FCFAF6; }

.page-head__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.tpl-intro { margin-top: .75rem; font-size: .9rem; }
/* The template picker's tabs: one per kind of page, pinned while the list scrolls. */
.tpl-tabs { position: sticky; top: -1.5rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 1.25rem 0 1.25rem; padding-top: .25rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.tpl-tabs button { padding: .7rem .1rem; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s; }
.tpl-tabs button:hover { color: var(--ink); }
.tpl-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--honey); }
.tpl-tabs button:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.tpl-tabs b { font-weight: 600; color: var(--ink-3); }
.tpl__name .pill { margin-left: .25rem; vertical-align: 1px; }
.tpl-cat { margin: 1.75rem 0 .75rem; font-size: .75rem; font-family: var(--ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tpl-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tpl { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .5rem .5rem .85rem; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.tpl:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tpl input { position: absolute; opacity: 0; }
.tpl:has(input:checked) { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.2); }
.tpl:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }
.tpl__thumb { display: block; height: 150px; margin-bottom: .5rem; border-radius: var(--r-sm); overflow: hidden; background: var(--cream); }
.tpl__thumb iframe { width: 1200px; height: 1000px; border: 0; transform: scale(.17); transform-origin: 0 0; pointer-events: none; }
.tpl__name { font-weight: 700; padding-inline: .35rem; }
.tpl__desc { font-size: .82rem; color: var(--ink-2); padding-inline: .35rem; line-height: 1.4; }

/* ── Form controls ────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 1rem; }
.field--inline { margin-bottom: .5rem; }
.field__label { font-size: .84rem; font-weight: 650; color: var(--ink); }
.field__hint { font-size: .78rem; font-weight: 400; color: var(--ink-3); }
.field__label .field__hint { margin-left: .35rem; }
.field input[type="date"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="password"], .field textarea, .field select, .addr {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 2.6rem; }
.field input:focus, .field textarea:focus, .field select:focus, .addr:focus-within { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.16); }
.field select { appearance: none; padding-right: 2rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A5D52' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 16px; }
.field select + input { margin-top: .4rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field-row .field + .field { margin-top: 0; }
.addr { display: flex; align-items: center; padding: 0 .8rem; color: var(--ink-3); font-size: .9rem; }
.addr input { flex: 1; min-width: 0; padding: .6rem .1rem; border: 0; background: transparent; color: var(--ink); outline: none; font-size: .95rem; }
.addr input:disabled { color: var(--ink-3); }

.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; cursor: pointer; }
.check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.switch { appearance: none; position: relative; width: 36px !important; height: 20px !important; flex-shrink: 0; border-radius: 99px; background: var(--line-2); transition: background-color .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch:checked { background: var(--live); }
.switch:checked::after { transform: translateX(16px); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 12px; background: #F1ECE5; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36,27,20,.14); }
.seg input:focus-visible + span { outline: 2px solid var(--honey); }
.seg--sm span { padding: .35rem .7rem; font-size: .8rem; }
.swatch-dot { width: .8rem; height: .8rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(36,27,20,.18); flex-shrink: 0; }
.swatch-dot--auto { background: conic-gradient(var(--text, #241B14) 0 50%, var(--bg, #fff) 0); }
.name-box { display: grid; gap: .25rem; }
.seg--icons span { padding: .4rem .6rem; }
.seg--pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.seg--pics label { display: grid; } /* every tile in a row as tall as the tallest */
.seg--pics span { flex-direction: column; justify-content: flex-start; gap: .45rem; height: 100%; padding: .7rem .75rem .55rem; text-align: center; line-height: 1.25; }
.seg--pics img { display: block; width: 88px; height: auto; opacity: .75; transition: opacity .2s; }
.seg--pics input:checked + span img, .seg--pics label:hover img { opacity: 1; }

.imgfield { display: flex; align-items: center; gap: 1rem; }
.imgfield__thumb { position: relative; display: grid; place-items: center; width: 84px; height: 84px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--cream); border: 1px dashed var(--line-2); overflow: hidden; color: var(--ink-3); }
.imgfield__thumb img { width: 100%; height: 100%; object-fit: cover; }
.imgfield__thumb--logo { width: 160px; height: 84px; background: repeating-conic-gradient(#F4EFE8 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.imgfield__thumb--logo img { object-fit: contain; padding: .5rem; }
.imgfield__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.imgfield__actions .field__hint { flex-basis: 100%; }
.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23C98A2E' stroke-width='2.5' stroke-dasharray='40 20' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") no-repeat center / 26px; }

/* ── Brand Designer ───────────────────────────────────── */
.brand-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .brand-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (min-width: 1000px) { .brand-layout--solo { grid-template-columns: minmax(0, 64rem); } } /* Brand Designer: no previews beside it, so the logo steps have the room */
.brand-main { display: grid; gap: 1.25rem; }
.form-card { padding: 1.5rem; }
.form-card > h2 { margin-bottom: 1rem; }
.form-card > p.muted { margin: -.5rem 0 1rem; }
.form-card > .field__hint { display: block; margin-top: .75rem; }
.logo-upload { margin-top: 1.25rem; }
/* Custom logo by Honey Butter (Brand Designer › Logo): the offer. While it's
   showing, the saved logo choice beside it stops looking picked. */
.seg.is-custom input[name="brand.logo_mode"]:checked + span { background: none; box-shadow: none; color: var(--ink-2); }
.seg .ico { width: 15px; height: 15px; color: var(--honey); }
.logo-custom { margin-top: 1.25rem; padding: 1.4rem 1.5rem 1.2rem; border-radius: var(--r); background: linear-gradient(135deg, var(--butter-2), #FFF 65%); border: 1px solid var(--line-2); }
.logo-custom__intro { display: flex; gap: 1.1rem; align-items: flex-start; }
.logo-custom__intro .bee { width: 64px; flex-shrink: 0; }
.logo-custom h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-bottom: .3rem; }
.logo-custom__intro p.muted { font-size: .92rem; }
.logo-custom__list { display: grid; gap: .55rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.logo-custom__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.logo-custom__list .ico { color: var(--honey); margin-top: .12rem; }
.logo-custom__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.logo-custom__price { margin: 0; }
.logo-custom__price strong { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.logo-custom__price span { color: var(--ink-2); font-size: .85rem; }
.logo-custom__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.logo-custom > .field__hint { margin-top: .9rem; }
.brand-aside { position: sticky; top: calc(var(--topbar) + 1.5rem); }
.brand-navpreview { padding: 1rem; margin-bottom: 1.5rem; }
.brand-navpreview__frame { position: relative; height: 70px; overflow: hidden; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; transition: height .25s; }
.brand-navpreview__frame iframe { position: absolute; top: 0; left: 0; width: 1240px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.brand-preview { padding: 1rem; }
/* Social Studio: the post drawn at full size, shown fitted to the column. */
.social-preview { padding: 1rem; display: grid; gap: .75rem; }
.social-preview__stage { display: grid; place-items: center; min-height: 240px; padding: .75rem; border-radius: var(--r-sm); background: #EFE9E1; }
.social-preview__stage canvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; box-shadow: var(--shadow); }
.social-preview__size { margin: 0; font-size: .8rem; text-align: center; }
.social-bee { align-items: flex-start; }
.social-bee[hidden] { display: none; }
.social-bee .bee { width: 52px; }
.social-bee .bee-say__bubble { font-size: .85rem; }
.social-bee .bee-say__bubble::before { top: 1.3rem; }
.social-tools { display: flex; gap: .5rem; margin-top: -.5rem; }
@media (max-width: 999px) { .social-layout .brand-aside { display: block; position: static; } }
.brand-preview__frame { height: 560px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.brand-preview__frame iframe { width: 1200px; height: 2000px; border: 0; transform: scale(.29); transform-origin: 0 0; }
/* Bonnet Wall (wall.php): the address, as bonnet.me/ then their name; the preview at phone size. */
.wall-address { display: flex; align-items: center; gap: .1rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.wall-address:focus-within { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.16); }
.wall-address__base { color: var(--muted); white-space: nowrap; }
.field .wall-address input[type="text"] { flex: 1; min-width: 0; padding-left: 0; border: 0; box-shadow: none; background: transparent; }
.wall-share { display: flex; gap: .5rem; margin-top: .75rem; }
.wall-preview { width: min(100%, 320px); height: 660px; margin-inline: auto; }
.wall-preview iframe { width: 390px; height: 805px; transform: scale(.82); }
@media (max-width: 999px) { .brand-aside { display: none; } }

.savebar {
  position: sticky; bottom: 1rem; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding: .65rem .65rem .65rem 1.25rem;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: box-shadow .3s, border-color .3s;
}
.savebar__msg { font-size: .9rem; color: var(--ink-2); }
.savebar.is-dirty { border-color: var(--honey); box-shadow: 0 12px 30px -12px rgba(201,138,46,.5); }
.savebar.is-dirty .savebar__msg { color: var(--honey-deep); font-weight: 600; }

/* ── Theme Explorer ───────────────────────────────────── */
.theme-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.theme { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.theme:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 30px 50px -30px rgba(36,27,20,.35); }
.theme.is-current { border-color: var(--live); box-shadow: 0 0 0 3px var(--live-soft), var(--shadow); }
.theme__star { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0; margin-right: -.4rem; /* beside the theme's name */
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .2s, background-color .15s; }
.theme__star:hover { background: var(--butter-2); }
.theme__star svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.theme__star[aria-pressed="true"] svg { fill: var(--honey); stroke: var(--honey); }
.ready-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem 1rem; margin-top: .75rem; }
.ready-list__dots { display: inline-flex; }
.ready-list__dots i { width: 12px; height: 12px; border-radius: 50%; margin-right: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.theme__ready { margin: .25rem 0 .75rem; }
.theme.is-notready .theme-spec { opacity: .55; } /* Honey Butter: hidden from clients */
.theme-filter--ready { border-style: dashed; }
.theme-filters__stars { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; }
.theme-filter--star[aria-pressed="true"] { background: var(--honey); border-color: var(--honey); color: #fff; }
.theme__preview { position: relative; display: block; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); }
/* Specimen: the theme's heading font set big and cropped, a line of body text,
   and its colors as stacked bands. Sizes follow the card width (cqw). */
.theme-spec { display: flex; flex-direction: column; justify-content: center; height: auto; aspect-ratio: 16 / 9; padding: 5% 6.5%; background: var(--s-bg); container-type: inline-size; text-decoration: none; overflow: hidden; }
/* The theme's name in its display font, its palette as a row of squares, and its description in its body font */
.theme-spec__name { display: block; font-family: var(--s-display); font-weight: var(--s-weight); font-style: var(--s-style); text-transform: var(--s-case); letter-spacing: var(--s-track); font-size: 13cqw; line-height: .95; color: var(--s-text); white-space: nowrap; overflow: hidden; margin-bottom: 5cqw; }
.theme-spec__pattern { position: absolute; inset: 0; background-repeat: repeat; opacity: .16; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 80%); mask-image: linear-gradient(to bottom, #000 25%, transparent 80%); }
.theme-spec > :not(.theme-spec__pattern, .theme__open) { position: relative; }
.theme-spec__colors { display: flex; gap: 2cqw; margin-bottom: 4.5cqw; }
.theme-spec__colors i { width: 9cqw; aspect-ratio: 1; border-radius: 1.4cqw; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-text) 18%, transparent); }
.theme-spec__body { max-width: 92%; font-family: var(--s-body); font-size: 3.9cqw; line-height: 1.35; color: var(--s-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme__open { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .7rem; border-radius: 99px; background: rgba(36,27,20,.85); color: #fff; font-size: .78rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: all .25s var(--ease); }
.theme__open .ico { width: 14px; height: 14px; }
.theme__preview:hover .theme__open, .theme__preview:focus-visible .theme__open { opacity: 1; transform: none; }
.theme__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.theme__title { display: flex; align-items: center; justify-content: space-between; }
.theme__title h2 { font-size: 1.5rem; }
.theme__title .swatches { margin: 0; }
.theme__title .swatches i { width: 18px; height: 18px; }
.theme__fonts { font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-bottom: .5rem; }
.theme__body .btn { margin-top: auto; }

/* ── Editor ───────────────────────────────────────────── */
.is-editor { height: 100vh; overflow: hidden; }
/* While editing a page, the menu folds down to its icons to give the editor
   room. Hovering it (or tabbing into it) opens it back out over the editor,
   without nudging anything. (Phones keep their bar across the top.) */
@media (min-width: 901px) {
  .is-editor { --side: 68px; }
  .is-editor .sidenav { width: 68px; overflow-x: hidden; transition: width .3s var(--ease), box-shadow .3s; }
  .is-editor .sidenav:is(:hover, :focus-within) { width: 236px; box-shadow: 30px 0 60px -34px rgba(36, 27, 20, .4); }
  .is-editor :is(.sidenav__nav, .sidenav__end) > a, .is-editor .sidenav__signout button { overflow: hidden; white-space: nowrap; }
  .is-editor .sidenav :is(.sidenav__nav, .sidenav__end) span, .is-editor .sidenav__social, .is-editor .sidenav__viewing span { opacity: 0; transition: opacity .12s; }
  .is-editor .sidenav:is(:hover, :focus-within) :is(.sidenav__nav, .sidenav__end) span,
  .is-editor .sidenav:is(:hover, :focus-within) :is(.sidenav__social, .sidenav__viewing span) { opacity: 1; transition: opacity .2s .1s; }
  .is-editor .sidenav:not(:hover, :focus-within) .sidenav__dot { right: auto; left: 1.85rem; top: .45rem; margin: 0; } /* the News dot sits on its icon */
  .is-editor .sidenav:not(:hover, :focus-within) .sidenav__viewing { padding: .5rem; }
  .is-editor .sidenav:not(:hover, :focus-within) .sidenav__viewing .btn { display: none; }
}
.editor { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; height: calc(100vh - var(--topbar)); }
.editor__panel { display: flex; flex-direction: column; min-height: 0; background: var(--cream); border-right: 1px solid var(--line); }
.editor__bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.editor__title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.editor__title strong { font-family: var(--display); font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-state { font-size: .76rem; color: var(--ink-3); }
.save-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .35rem; border-radius: 50%; background: currentColor; vertical-align: .1em; }
.save-state.is-saved { color: var(--live); }
.save-state.is-pending, .save-state.is-saving { color: var(--honey-deep); }
.save-state.is-error { color: var(--danger); font-weight: 600; }
.editor__scroll { flex: 1; overflow-y: auto; padding: 1rem 1rem 4rem; scroll-padding: 1rem; }

.panel-section { margin-bottom: 1rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.panel-section > summary { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.1rem; font-weight: 650; cursor: pointer; list-style: none; }
.panel-section > summary::-webkit-details-marker { display: none; }
.panel-section > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.7px solid var(--ink-3); border-bottom: 1.7px solid var(--ink-3); rotate: 45deg; translate: 0 -2px; transition: rotate .25s var(--ease); }
.panel-section[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.panel-section__body { padding: 0 1.1rem 1.1rem; display: grid; gap: 1rem; }
.panel-section__body .field + .field { margin-top: 0; }

.blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; } /* long summaries ellipsize instead of widening the panel */
.blocks__empty { padding: 2rem 1.25rem; text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.block { border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.block.is-open { border-color: var(--line-2); box-shadow: var(--shadow); }
.block__head { display: flex; align-items: center; gap: .25rem; padding: .35rem .4rem .35rem .35rem; cursor: grab; }
.block.is-dragging { position: relative; z-index: 5; box-shadow: var(--shadow); border-color: var(--honey); transition: none; cursor: grabbing; }
.block.is-dragging .block__body, .list-item.is-dragging .list-item__body { display: none; }
.list-item__head, .list-item__toggle { cursor: grab; }
.list-item.is-dragging { position: relative; z-index: 5; box-shadow: var(--shadow); border-color: var(--honey); cursor: grabbing; }
.list.is-sorting, .list.is-sorting * { cursor: grabbing; user-select: none; }
.blocks.is-sorting, .blocks.is-sorting * { cursor: grabbing; user-select: none; }
.block--hero .block__head { cursor: auto; }
.block__toggle { cursor: grab; flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .4rem; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.block__toggle:hover .block__icon { background: var(--butter); color: var(--honey-deep); }
.block__icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--butter-2); color: var(--ink-2); transition: all .2s; }
.block.is-open .block__icon { background: var(--ink); color: var(--cream); }
.block__label { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.block__label strong { font-size: .92rem; }
.block__summary { font-size: .8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block__tools { display: flex; gap: 0; opacity: .5; transition: opacity .2s; }
.block:hover .block__tools, .block.is-open .block__tools, .list-item:hover > .list-item__head .block__tools, .block__tools:focus-within { opacity: 1; }
.block__body:empty { display: none; }
.block__body { padding: .5rem 1.1rem 1.25rem; border-top: 1px solid var(--line); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .75rem; padding-top: .5rem; }
.fields > * { grid-column: 1 / -1; }
.fields > .field--half { grid-column: auto; }
.fields .field + .field { margin-top: 0; }

.list { display: grid; gap: .5rem; }
.list-item { border-radius: var(--r-sm); border: 1px solid var(--line); background: #FDFBF8; }
.list-item.is-open { background: var(--paper); border-color: var(--line-2); }
.list-item__head { display: flex; align-items: center; padding: .2rem .25rem .2rem .2rem; }
.list-item__toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; padding: .45rem .4rem; border: 0; background: transparent; text-align: left; font-size: .88rem; font-weight: 600; }
.list-item__summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { display: grid; color: var(--ink-3); transition: rotate .25s var(--ease); rotate: -90deg; }
.chev .ico { width: 15px; height: 15px; }
.list-item.is-open > .list-item__head .chev { rotate: 0deg; }
.list-item__body { padding: 0 .85rem .9rem; }
.list-item__body:empty { display: none; }
.list-item__body .fields { padding-top: 0; }
.list .list { padding: .75rem; border-radius: var(--r-sm); background: var(--cream); }
.list__actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.list__actions--top { margin-bottom: .35rem; }

.photo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.photo { display: flex; flex-direction: column; gap: .3rem; }
.photo__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--cream); cursor: pointer; color: var(--ink-3); transition: box-shadow .2s; }
.photo__img:hover { box-shadow: 0 0 0 2px var(--honey); }
.photo__img.is-empty { border: 1.5px dashed var(--line-2); }
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo input[type="text"] { width: 100%; padding: .3rem .5rem; font-size: .78rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.photo input[type="text"]:focus { outline: none; border-color: var(--honey); }
.photo__tools { display: flex; justify-content: center; }

.add-section {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  margin-top: .9rem; padding: 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: transparent; color: var(--ink-2); font-weight: 650;
  transition: all .2s;
}
.add-section:hover { border-color: var(--honey); background: var(--butter-2); color: var(--ink); }

.block-picker { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.picker-item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); text-align: left; transition: all .2s var(--ease); }
.picker-item:hover { border-color: var(--honey); background: var(--butter-2); transform: translateY(-1px); }
.picker-item__icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--butter); color: var(--honey-deep); }
.picker-item__text { display: flex; flex-direction: column; gap: .15rem; }
.picker-item__text span { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }

.editor__preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #EDE6DC; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line-2); }
.preview-bar .seg { background: rgba(255,255,255,.55); }
.preview-stage { flex: 1; min-height: 0; padding: 1rem; display: flex; justify-content: center; }
.preview-frame { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 20px 50px -20px rgba(36,27,20,.35); transition: width .45s var(--ease), border-radius .45s; }
.preview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-stage.is-mobile .preview-frame { width: 390px; max-height: 844px; border-radius: 28px; box-shadow: 0 0 0 10px #241B14, 0 30px 60px -20px rgba(36,27,20,.6); }

@media (max-width: 860px) {
  .is-editor { height: auto; overflow: auto; }
  .editor { grid-template-columns: minmax(0, 1fr); height: auto; } /* minmax(0…): wide rows (a section's tabs) can't push it past the screen */
  .editor__panel { border-right: 0; min-width: 0; }
  .editor .seg { max-width: 100%; }
  .editor__scroll { overflow: visible; }
  .editor__preview { height: 80vh; }
}

/* ── Sign in ──────────────────────────────────────────── */
.auth { background:
  radial-gradient(60% 50% at 80% 10%, rgba(231,180,90,.28), transparent 70%),
  radial-gradient(50% 50% at 10% 90%, rgba(201,138,46,.16), transparent 70%),
  var(--cream); }
.auth-wrap { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { width: min(100%, 420px); padding: 2.5rem 2rem 2rem; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 1rem; }
.auth-brand { display: grid; justify-items: center; gap: .35rem; }
.auth-brand .bee { width: 64px; }
.auth-brand .wordmark--lg { margin-bottom: .25rem; }
.auth-help a { color: var(--honey-deep); font-weight: 600; }
.auth-card h1 { text-align: center; font-size: 1.7rem; }
.auth-card > p.muted { text-align: center; margin-top: -.5rem; }
/* Paying for Bonnet (welcome.php): PayPal's buttons, then Cash App folded away underneath. */
.pay-box { display: grid; gap: .6rem; }
.pay-buttons { min-height: 48px; }
.pay-note { margin: 0; font-size: .9rem; text-align: center; color: var(--ink-soft, var(--muted)); }
.pay-note.is-bad { color: #b3261e; }
.pay-cash { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; }
.pay-cash summary { cursor: pointer; font-weight: 600; }
.pay-cash ol { margin: .8rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .95rem; }
.auth-card .field + .field { margin-top: 0; }
.auth-card .btn { margin-top: .5rem; }
.auth-help { font-size: .8rem; color: var(--ink-3); text-align: center; }

/* ── Toasts ───────────────────────────────────────────── */
.toasts { position: fixed; left: 50%; bottom: 1.5rem; z-index: 100; display: grid; gap: .5rem; justify-items: center; translate: -50% 0; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .95rem; max-width: min(92vw, 520px); opacity: 0; transform: translateY(10px); transition: all .35s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast .bee-say__bubble { box-shadow: var(--shadow-lg); }
.nudge { position: fixed; top: calc(var(--topbar) + 1rem); right: 1.25rem; z-index: 110; width: min(360px, calc(100vw - 7.5rem)); padding: 1.1rem 1.25rem 1.15rem; padding-right: 2.6rem;
  border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateX(24px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.nudge.is-in { opacity: 1; transform: none; }
.nudge > .bee { position: absolute; right: calc(100% + .95rem); top: 0; }
.nudge::before { content: ""; position: absolute; left: -7px; top: 1.35rem; width: 12px; height: 12px; background: #fff; border: solid var(--line-2); border-width: 0 0 1px 1px; rotate: 45deg; }
.nudge p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink); }
.nudge__actions { display: flex; gap: .5rem; margin-top: .85rem; }
.nudge__x { position: absolute; top: .55rem; right: .6rem; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.nudge__x:hover { background: var(--cream); }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; } }
.check--top { align-items: flex-start; }
.check--top input { margin-top: .15rem; flex-shrink: 0; }

/* Theme Explorer: who nearby uses each theme */
.area-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.area-bar__text { flex: 1 1 280px; display: flex; flex-direction: column; line-height: 1.4; }
.area-bar__text .muted { font-size: .88rem; }
.area-bar__zip { width: 130px; }
.nearby { align-self: flex-start; padding: .25rem .7rem; border-radius: 99px; background: var(--butter); color: var(--honey-deep); font-size: .78rem; font-weight: 700; }
.nearby--unique { background: var(--live-soft); color: var(--live); }
.range { display: flex; align-items: center; gap: .75rem; }
.range input { flex: 1; accent-color: var(--honey); }
.range__out { min-width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .9rem; }
.colorpick { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; }
.field__hint--switch { padding-left: calc(36px + .6rem); }
.field .addr input[type="text"] { border: 0; box-shadow: none; padding: .6rem .1rem; background: transparent; border-radius: 0; }

/* ── Media ────────────────────────────────────────────── */
.media-notice { margin-bottom: 1.25rem; }
/* Originals | Cropped & blurred: tabs across the top of the library. */
.media-tabs { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.media-tabs label { position: relative; cursor: pointer; }
.media-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.media-tabs span { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .1rem; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 600; color: var(--ink-2); transition: color .2s, border-color .2s; }
.media-tabs label:hover span { color: var(--ink); }
.media-tabs input:checked + span { color: var(--ink); border-bottom-color: var(--honey); }
.media-tabs input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.media-tabs b { font-weight: 600; color: var(--ink-3); }
.media-tabs__star { width: 15px; height: 15px; }
.media-tabs input:checked + span .media-tabs__star { fill: var(--honey); stroke: var(--honey); }
.media-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.media-bar .seg b { font-weight: 600; color: var(--ink-3); }
.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.media-none { grid-column: 1 / -1; padding: 2rem 0; text-align: center; }
.media-card { display: flex; flex-direction: column; overflow: hidden; transition: opacity .2s; }
.media-card.is-busy { opacity: .6; }
.media-card.is-unused { border-color: #F2CFC7; }
.media-card__img { display: block; aspect-ratio: 3 / 4; /* portrait: most photos are */ background: repeating-conic-gradient(#F4EEE6 0 25%, #FBF8F3 0 50%) 0 0 / 16px 16px; border-bottom: 1px solid var(--line); }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; } /* trimmed from the bottom, so heads stay in */
.media-card.is-busy .media-card__img { animation: media-pulse 1.2s ease-in-out infinite alternate; }
@keyframes media-pulse { to { opacity: .45; } }
.media-card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: .75rem .85rem .9rem; } /* never wider than the card, however long the file name */
.media-card__top { display: flex; align-items: center; gap: .25rem; }
.media-card__name { flex: 1; min-width: 0; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-card__tools { display: flex; flex-shrink: 0; margin-right: -.35rem; }
.media-card__star[aria-pressed="true"] { color: var(--honey); }
.media-card__star[aria-pressed="true"] .ico { fill: var(--honey); }
.media-card__meta { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.media-card__status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.media-card__used { min-width: 0; font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill .ico { width: 12px; height: 12px; margin-right: .2rem; stroke-width: 2.6; }
.pill--live { background: var(--live-soft); color: var(--live); }
.pill--danger { background: var(--danger-soft); color: var(--danger); }
.pill--soft { background: #F1ECE5; color: var(--ink-2); }
.media-drop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(36, 27, 20, .45); backdrop-filter: blur(3px); pointer-events: none; }
.media-drop p { display: flex; align-items: center; gap: .6rem; padding: 1.25rem 1.75rem; border: 2px dashed var(--honey); border-radius: var(--r); background: var(--paper); font-weight: 650; box-shadow: var(--shadow-lg); }

/* Media library picker (Bonnet.pickMedia) */
.picker-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.5rem; border-bottom: 1px solid var(--line); }
.picker-bar .check { font-size: .88rem; }
.picker-status { display: inline-flex; align-items: center; gap: .55rem; margin: 0 auto 0 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.picker-status[hidden] { display: none; }
.spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--honey); animation: spinner .8s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.picker-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); min-height: 200px; align-content: start; }
.picker-note { grid-column: 1 / -1; padding: 3rem 0; text-align: center; }
.picker-tile { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: .35rem .35rem .5rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); text-align: left; transition: border-color .15s, box-shadow .15s; }
.picker-tile:hover { border-color: var(--line-2); }
.picker-tile.is-chosen { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.2); }
.picker-tile__img { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: repeating-conic-gradient(#F4EEE6 0 25%, #FBF8F3 0 50%) 0 0 / 14px 14px; }
.picker-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.picker-tile__name { font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: .15rem; }
.picker-tile__meta { margin-top: -.25rem; font-size: .72rem; color: var(--ink-3); padding-inline: .15rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-tile__used { font-size: .72rem; font-weight: 600; color: var(--honey-deep); padding-inline: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.picker-tile__tag { position: absolute; top: .7rem; left: .7rem; padding: .05rem .45rem; border-radius: 99px; background: var(--danger-soft); color: var(--danger); font-size: .66rem; font-weight: 700; }
.picker-tile__check { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--honey); color: #fff; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.picker-tile__check .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.picker-tile__img { position: relative; }
.picker-tile__star { position: absolute; bottom: .35rem; right: .35rem; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.picker-tile__star .ico { width: 14px; height: 14px; fill: var(--honey); stroke: var(--honey); }
.picker-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.picker-filters .check { font-size: .88rem; }
.picker-filters .check[hidden] { display: none; }
.picker-open { margin-right: auto; }
.picker-open .ico { width: 15px; height: 15px; }

/* ── Account ──────────────────────────────────────────── */
.page--account { max-width: 760px; }
.account-cards { display: grid; gap: 1.25rem; }
.form-card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.25rem; }
.form-card__foot .muted { font-size: .88rem; }
.account-forgot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ── Site Settings panels ─────────────────────────────── */
[data-groups] { gap: .75rem; }
.settings-group { overflow: hidden; }
.settings-group__head { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem 1.05rem 1.5rem; cursor: pointer; list-style: none; transition: background-color .15s; }
.settings-group__head::-webkit-details-marker { display: none; }
.settings-group__head:hover { background: #FDFBF7; }
.settings-group__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.settings-group__text h2 { font-size: 1.15rem; }
.settings-group__desc { max-width: 68ch; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.settings-group__chev { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; color: var(--ink-3); transition: rotate .25s var(--ease), background-color .15s; }
.settings-group__head:hover .settings-group__chev { background: var(--butter-2); color: var(--ink); }
.settings-group[open] .settings-group__chev { rotate: 180deg; }
.settings-group__body { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.settings-group__note { margin-bottom: 1rem; font-size: .9rem; }

/* Brand Designer: name style tiles. The .bn-name rules are copied from
   site/base.css so the tiles look like the real site. */
.name-styles { margin-top: 1.25rem; }
.name-styles > .field__label { display: block; margin-bottom: .6rem; }
.name-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
.name-tile { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: .5rem .5rem .6rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.name-tile:hover { border-color: var(--line-2); }
.name-tile input { position: absolute; opacity: 0; }
.name-tile:has(input:checked) { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.2); }
.name-tile:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }
.name-tile__sample { display: grid; place-items: center; min-height: 92px; padding: .75rem; border-radius: 6px; background: var(--cream); overflow: hidden; text-align: center;
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); letter-spacing: var(--display-tracking); text-transform: var(--display-case); font-size: 1.35rem; line-height: 1; color: var(--ink); }
.name-tile__label { font-size: .8rem; font-weight: 650; text-align: center; }
.name-tile .bn-name { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: .45em; }
.name-tile .bn-name__rest { font-family: var(--font-body); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .32em; font-size: .36em; line-height: 1.3; }
/* Stacked styles: first name on top, the rest centered beneath it */
.name-tile .bn-name--stacked, .name-tile .bn-name--italic, .name-tile .bn-name--capstack, .name-tile .bn-name--rule, .name-tile .bn-name--lined, .name-tile .bn-name--ornament { flex-direction: column; align-items: center; row-gap: .1em; }
.name-tile .bn-name--stacked .bn-name__rest, .name-tile .bn-name--italic .bn-name__rest, .name-tile .bn-name--capstack .bn-name__rest, .name-tile .bn-name--rule .bn-name__rest, .name-tile .bn-name--lined .bn-name__rest, .name-tile .bn-name--ornament .bn-name__rest { line-height: 1; text-align: center; padding-left: .32em; } /* balances the trailing letter space */
.name-tile .bn-name--italic .bn-name__first { font-style: italic; }
.name-tile .bn-name--capstack .bn-name__first { text-transform: uppercase; letter-spacing: .06em; font-size: .8em; }
.name-tile .bn-name--rule, .name-tile .bn-name--lined { align-items: stretch; text-align: center; }
.name-tile .bn-name--rule .bn-name__rest { margin-top: .2em; padding-top: .35em; border-top: 1px solid; } /* a snug rule between the two names */
.name-tile .bn-name--lined .bn-name__rest { display: flex; align-items: center; gap: .9em; padding-left: 0; }
.name-tile .bn-name--lined .bn-name__rest::before, .name-tile .bn-name--lined .bn-name__rest::after { content: ""; flex: 1; min-width: 1.6em; height: 1px; background: currentColor; opacity: .55; }
.name-tile .bn-name--lined .bn-name__rest::after { margin-left: -.32em; }
.name-tile .bn-name--ornament .bn-name__rest::before { content: "\2726"; display: block; margin: .05em 0 .3em; font-size: 1.2em; letter-spacing: 0; line-height: 1; color: var(--accent); }
.name-tile .bn-name--caps { font-family: var(--font-body); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; font-size: .62em; margin-right: -.3em; }
.name-tile :is(.bn-name--script-first, .bn-name--script-last, .bn-name--script-full) { flex-wrap: nowrap; align-items: baseline; column-gap: .45em; white-space: nowrap; font-size: .72em; } /* fits the tile */
.name-tile :is(.bn-name--script-first, .bn-name--script-last, .bn-name--script-full) .bn-name__rest { font: inherit; letter-spacing: inherit; text-transform: none; line-height: inherit; }
.name-tile :is(.bn-name--script-first .bn-name__first, .bn-name--script-last .bn-name__rest, .bn-name--script-full .bn-name__first, .bn-name--script-full .bn-name__rest) {
  font-family: var(--font-script, cursive); font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1.45em; line-height: 1;
}
/* Boxed: first and last name stacked, both in the heading font, white on a
   solid block of the text color (black on Paper) with .5rem all around. */
.name-tile :is(.bn-name--boxed, .bn-name--outlined) { flex-direction: column; align-items: center; text-align: center; row-gap: 0; padding: .5rem; font-size: .75em; line-height: .92; }
.name-tile :is(.bn-name--boxed, .bn-name--outlined) .bn-name__rest { font: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; }
.name-tile .bn-name--boxed { background: var(--box-fill, var(--text, var(--ink))); color: var(--box-ink, var(--bg, #fff)); }
.name-tile .bn-name--boxed.is-tint-accent .bn-name__rest { color: color-mix(in oklch, var(--accent) 55%, var(--box-ink, var(--bg, #fff))); } /* the accent can match the box */
.name-tile .bn-name--outlined { border: 2px solid var(--box-line, currentColor); }
/* Last name color (Brand Designer › Last name color) */
.name-tile .is-tint-accent :is(.bn-name__rest, .bn-name__tint) { color: var(--accent); }
.name-tile .is-tint-muted :is(.bn-name__rest, .bn-name__tint) { color: var(--muted); }
.name-tile .is-tint-custom :is(.bn-name__rest, .bn-name__tint) { color: var(--name-tint); }
/* Each name's own color (Brand Designer), drawn from variables on the name;
   only when one is set, so the theme's look stays otherwise. On dark
   backgrounds — a hero photo, a dark section, a light theme's dark footer —
   the on-dark pair is used instead ('auto' there = the light lettering). */
.name-tile [style*="--first-ink"] .bn-name__first { color: var(--first-ink); }
.name-tile [style*="--last-ink"] :is(.bn-name__rest, .bn-name__tint) { color: var(--last-ink); }

.name-tint { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.name-tint .colorpick { width: 48px; height: 36px; }
.form-card > .field-row + .field__hint { margin: .5rem 0 1rem; }

/* Theme Explorer: style filters */
.theme-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.5rem; }
.theme-filter { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .35rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s; }
.theme-filter span { font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.theme-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.theme-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.theme-filter[aria-pressed="true"] span { color: rgba(250,246,240,.6); }
.theme-filters__hint { margin-left: .4rem; font-size: .84rem; }
.theme__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.25rem 0 .5rem; }
.theme__tags span { padding: .1rem .55rem; border-radius: 99px; background: var(--butter-2); color: var(--honey-deep); font-size: .7rem; font-weight: 700; letter-spacing: .03em; }

/* Theme Explorer: color palettes */
.palettes { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.palettes__label { font-size: .74rem; font-weight: 700; color: var(--ink-3); margin-right: .15rem; }
.palette { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .4rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: .78rem; font-weight: 600; color: var(--ink-2); transition: border-color .15s, box-shadow .15s; }
.palette:hover { border-color: var(--ink-3); color: var(--ink); }
.palette[aria-checked="true"] { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.palette__dots { display: inline-flex; }
.palette__dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--paper), inset 0 0 0 1px rgba(0,0,0,.12); }
.palette__dots i + i { margin-left: -4px; }

/* Page editor: the pinned page hero, just below Page settings */
.page-hero:not(:empty) { margin-bottom: .6rem; }
.block--hero { border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--honey); }

/* Table field: a grid of small text boxes */
.tablefield__scroll { overflow-x: auto; margin: 0 -.25rem; }
.tablefield { border-collapse: separate; border-spacing: 3px; }
.tablefield td { padding: 0; }
.tablefield input { width: 100%; min-width: 6.5rem; padding: .4rem .5rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); font-size: .84rem; }
.tablefield input:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.16); }
.tablefield tr:first-child td, .tablefield td.tablefield__tool { text-align: center; }
.tablefield__tool { width: 30px; }
.tablefield__tool .iconbtn { opacity: .45; } .tablefield__tool .iconbtn:hover { opacity: 1; }
.tablefield__grid .list__actions { margin-top: .5rem; }

/* Field tabs (a {type: 'tab'} entry in a field list, like ACF) */
.ftabs-wrap { margin-top: .25rem; }
/* Position pad ('grid' choices): a small 3 × 3 picture of the photo; each spot shows three lines of
   text aligned the way the words would sit there. The picked one is dark. */
.posgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 10px; background: #F1ECE5; }
.posgrid__cell { position: relative; display: grid; height: 42px; padding: 8px 12px; border-radius: 7px; cursor: pointer; transition: background-color .2s; }
.posgrid__cell.is-off { cursor: default; }
.posgrid__cell input { position: absolute; opacity: 0; pointer-events: none; }
.posgrid__lines { display: grid; align-content: center; gap: 4px; width: min(100%, 64px); } /* short lines, like a few words, whatever the width */
.posgrid__lines i { display: block; height: 3px; border-radius: 2px; background: #C9BFB2; transition: background-color .2s; }
.posgrid__lines i:nth-child(1) { width: 62%; } .posgrid__lines i:nth-child(2) { width: 100%; } .posgrid__lines i:nth-child(3) { width: 70%; }
.posgrid__cell.is-mid .posgrid__lines { justify-self: center; justify-items: center; }
.posgrid__cell.is-right .posgrid__lines { justify-self: end; justify-items: end; }
.posgrid__cell:hover .posgrid__lines i { background: var(--ink-3); }
.posgrid__cell:has(input:checked) { background: var(--paper); box-shadow: 0 1px 3px rgba(36,27,20,.14); }
.posgrid__cell:has(input:checked) .posgrid__lines i { background: var(--ink); }
.posgrid__cell:has(input:focus-visible) { outline: 2px solid var(--honey); }
.fields--below { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); } /* the fields after a set of tabs ({type: 'tabs_end'}) */
.ftabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; margin-bottom: .9rem; padding: 3px; border-radius: 12px; background: #F1ECE5; }
.ftabs__tab { flex: 1 0 auto; padding: .45rem .6rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.ftabs__tab:hover { color: var(--ink); }
.ftabs__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36,27,20,.14); }
.ftabs__tab:focus-visible { outline: 2px solid var(--honey); }
.ftabs__panel[hidden] { display: none; }

/* Page Builder: sections inside a tab are indented under their Tab */
.block.is-in-tab { margin-left: 1.25rem; position: relative; }
.block.is-in-tab::before { content: ""; position: absolute; left: -.8rem; top: -.6rem; bottom: -.6rem; width: 2px; border-radius: 2px; background: var(--honey); opacity: .45; }
.block--tab { border-color: var(--honey); background: color-mix(in srgb, var(--honey) 7%, var(--paper)); }
.block--tabend { border-style: dashed; }

/* Media › crop tool */
.crop__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.crop__group:first-child { grid-column: 1 / -1; } /* the plain shapes: a full row */
/* Wide screens: the shapes in a column beside the photo, so the photo keeps its room */
@media (min-width: 900px) {
  .crop__layout { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .crop__layout .crop__groups { grid-template-columns: minmax(0, 1fr); margin: 0; max-height: min(600px, 62vh); overflow-y: auto; padding-right: .25rem; scrollbar-width: thin; }
}
.crop__ratios { display: flex; flex-wrap: wrap; }
.crop__label { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.crop__label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Each choice's little outline of its shape */
.crop__shape { display: inline-block; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 2px; opacity: .55; }
.crop__shape.is-free { border-style: dashed; }
.seg input:checked + span .crop__shape { opacity: 1; background: var(--butter); }
.crop__stage { display: grid; place-items: center; padding: 1rem; border-radius: var(--r-sm); background: repeating-conic-gradient(#EFE8DE 0 25%, #F7F2EA 0 50%) 0 0 / 18px 18px; overflow: hidden; }
.crop__frame { position: relative; overflow: hidden; cursor: grab; touch-action: none; user-select: none; box-shadow: 0 0 0 1px rgba(36,27,20,.25), 0 14px 40px -18px rgba(36,27,20,.5); background: #fff; }
.crop__frame.is-dragging { cursor: grabbing; }
.crop__img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop__grid { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(255,255,255,.55) 0 calc(33.333% + .5px), transparent 0 calc(66.666% - .5px), rgba(255,255,255,.55) 0 calc(66.666% + .5px), transparent 0),
              linear-gradient(transparent calc(33.333% - .5px), rgba(255,255,255,.55) 0 calc(33.333% + .5px), transparent 0 calc(66.666% - .5px), rgba(255,255,255,.55) 0 calc(66.666% + .5px), transparent 0); }
.crop__zoom { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; font-size: .86rem; font-weight: 600; }
.crop__zoom input { flex: 1; min-width: 12rem; accent-color: var(--honey); }
.crop__layout .crop__zoom { flex-wrap: wrap; } /* the size note drops below the slider when it's long */
.crop__size { min-width: 7rem; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.crop__hint { margin-right: auto; font-size: .82rem; }
.crop__stage.is-loading .crop__frame { opacity: .4; }
/* Blur tool (admin.js blurPhoto): the whole photo, with oval spots that blur
   what's behind them (a preview; the saved blur is done on the server). */
.blur__how { margin: 0 0 .9rem; font-size: .9rem; color: var(--ink-2); }
.blur__frame { position: relative; overflow: visible; cursor: crosshair; touch-action: none; user-select: none; box-shadow: 0 0 0 1px rgba(36,27,20,.25), 0 14px 40px -18px rgba(36,27,20,.5); background: #fff; }
.blur__img { display: block; width: 100%; height: 100%; pointer-events: none; }
.blur__stage.is-loading .blur__frame { opacity: .4; }
.blur__spot { position: absolute; border-radius: 50%; cursor: move;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.85), 0 0 0 3px rgba(36,27,20,.25); }
.blur__spot.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--honey); }
.blur__handle { position: absolute; right: 14.6%; bottom: 14.6%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--honey), 0 2px 6px rgba(0,0,0,.3); cursor: nwse-resize; }
.blur__del { position: absolute; right: 14.6%; top: 14.6%; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.blur__del .ico { width: 14px; height: 14px; }
.blur__turn { position: absolute; left: 50%; top: -30px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--honey), 0 2px 6px rgba(0,0,0,.3); cursor: grab; }
.blur__turn::after { content: ""; position: absolute; left: 50%; top: 16px; width: 2px; height: 14px; margin-left: -1px; background: var(--honey); } /* the stem down to the oval */
.blur__spot:not(.is-selected) :is(.blur__handle, .blur__del, .blur__turn) { display: none; }
.blur .crop__zoom .seg { flex: none; }
.blur__count { margin-left: auto; font-weight: 500; }

/* Storyteller */
.page--narrow { max-width: 900px; }
.story-edit__top { display: flex; align-items: center; gap: .6rem; }
.story-edit__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .story-edit__row { grid-template-columns: 1fr; } }
.story-edit .form-card > * + * { margin-top: 1rem; }
.story-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: .5rem 0 .6rem; padding: .35rem; border-radius: 12px; background: #F1ECE5; }
.story-toolbar button { display: inline-flex; align-items: center; gap: .3rem; height: 32px; padding: 0 .65rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; }
.story-toolbar button:hover { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36,27,20,.12); }
.story-toolbar .ico { width: 15px; height: 15px; }
.story-toolbar__sep { width: 1px; height: 20px; margin: 0 .2rem; background: var(--line-2); }
.story-body { width: 100%; min-height: 420px; padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); font: 400 .98rem/1.7 ui-monospace, "SF Mono", Menlo, monospace; resize: vertical; }
.story-body:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.2); }

/* The bee's word bubble (the bee himself is in bee.css). */
.bee-say { display: flex; align-items: center; gap: .95rem; }
.bee-say__bubble { position: relative; margin: 0; padding: .7rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.45; }
.bee-say__bubble::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: inherit; border: inherit; border-width: 0 0 1px 1px; rotate: 45deg; }
.bee-say__bubble a { font-weight: 600; }
.bee-say--note { grid-column: 1 / -1; align-items: flex-start; }
.bee-say--note .bee { width: 56px; }
.bee-say--note .bee-say__bubble::before { top: 1.4rem; }
.bee-say--note strong { display: block; margin-bottom: .2rem; font-family: var(--display); font-size: 1.02rem; font-weight: 600; }
.bee-say--error .bee-say__bubble { background: var(--danger-soft); border-color: #F2CFC7; color: var(--danger); }

/* ── First-visit tour (assets/tour.js) ───────────────────
   The bee flies from one top-bar item to the next and explains it. The
   spotlight is a ring whose huge shadow dims everything else. */
.tour-spot { position: fixed; z-index: 120; border-radius: 12px; box-shadow: 0 0 0 3px var(--honey), 0 0 0 9999px rgba(36, 27, 20, .5); pointer-events: none;
  transition: top .55s var(--ease), left .55s var(--ease), width .55s var(--ease), height .55s var(--ease), border-radius .55s var(--ease); }
.tour-spot.is-none { box-shadow: 0 0 0 0 transparent, 0 0 0 9999px rgba(36, 27, 20, .5); }
.tour-block { position: fixed; inset: 0; z-index: 119; }
.tour-guide { position: fixed; z-index: 121; width: min(380px, calc(100vw - 2rem)); align-items: flex-start;
  transition: top .65s var(--ease), left .65s var(--ease), opacity .3s var(--ease); }
.tour-guide .bee { width: 72px; margin-top: -.25rem; }
.tour-guide .bee-say__bubble { flex: 1; padding: 1rem 1.15rem .9rem; box-shadow: var(--shadow-lg); }
.tour-guide .bee-say__bubble::before { top: 2rem; }
.tour-guide h3 { margin: 0 0 .3rem; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.tour-guide p { margin: 0; color: var(--ink-2); font-weight: 400; }
.tour-guide__foot { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; }
.tour-guide__count { margin-right: auto; color: var(--ink-3); font-size: .78rem; }
.tour-guide.is-flying .bee { animation-duration: .9s; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-guide { transition: none; } }


/* A photo list with a minimum size (Slideshow): a note, and a badge on small photos. */
.field__warn { margin: .25rem 0 .5rem; padding: .55rem .8rem; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: .84rem; }
.photo.is-small .photo__img { position: relative; box-shadow: 0 0 0 2px var(--danger); }
.photo.is-small .photo__img::after { content: "Small"; position: absolute; left: .35rem; top: .35rem; padding: .1rem .45rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; }

/* Page settings on a cover page: what it is, in place of the settings it doesn't have. */
.cover-note { display: flex; gap: .6rem; align-items: flex-start; margin: .25rem 0 .5rem; padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--butter-2); border: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); }
.cover-note .ico { color: var(--honey); margin-top: .1rem; }

/* Promotion Hub (social.php): Social | Email signature tabs, and the signature's
   preview (a white "email" with a few grey lines of message above it) and how-to. */
.promo-tabs { position: static; margin-top: 0; background: none; }
[data-sig-out] img { max-width: none; } /* the signature keeps its own sizes, as in an inbox */
.promo-tabs button { display: inline-flex; align-items: center; gap: .45rem; }
.promo-tabs .ico { width: 17px; height: 17px; color: var(--honey); }
.promo-intro { margin: 0 0 1.25rem; max-width: 70ch; }
.sig-preview { padding: 1rem; border-radius: var(--r-sm); background: #EFE9E1; }
.sig-preview__mail { padding: 1.25rem 1.25rem 1.5rem; border-radius: 8px; background: #fff; box-shadow: var(--shadow); overflow-x: auto; }
.sig-preview__lines { display: grid; gap: .45rem; margin: 0 0 1.25rem; }
.sig-preview__lines i { display: block; height: 7px; border-radius: 4px; background: #EEEAE4; }
.sig-preview__lines i:nth-child(2) { width: 85%; }
.sig-preview__lines i:nth-child(3) { width: 55%; }
.sig-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.sig-howto { margin-top: 1.5rem; padding: 1.5rem 1.75rem; }
.sig-howto h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 600; margin-bottom: .35rem; }
.sig-howto > p { margin-bottom: 1rem; }
.sig-howto details { border-top: 1px solid var(--line); }
.sig-howto summary { padding: .85rem 0; font-weight: 700; cursor: pointer; }
.sig-howto ol { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .4rem; font-size: .92rem; color: var(--ink-2); }
.sig-howto b { color: var(--ink); }

/* Help (help.php) and News (news.php). */
.help-topic { margin-top: 1.25rem; }
.help-topic details p { margin: 0 0 1rem; color: var(--ink-2); font-size: .94rem; max-width: 70ch; }
.help-topic a { color: var(--honey-deep); font-weight: 600; }
.help-news { margin-top: 1.5rem; text-align: center; }
.page--news { max-width: 820px; }
.news-list { display: grid; gap: 1.25rem; }
.news-post { padding: 1.5rem 1.75rem; }
.news-post h2 { font-family: var(--display); font-size: 1.45rem; font-weight: 600; margin: .35rem 0 .6rem; }
.news-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; font-size: .85rem; color: var(--ink-3); }
.news-post__body { color: var(--ink-2); }
.news-post__body > * + * { margin-top: .7em; }
.news-post__body ul { padding-left: 1.2rem; }
.news-post__tools { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.news-tag--improved { background: #E4EEF8; color: #2C5A86; }
.news-tag--fixed { background: var(--live-soft); color: var(--live); }
.news-tag--news { background: #F1E6F3; color: #7A3D86; }
.news-form { margin-bottom: 1.5rem; }
.news-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.news-form__foot { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.news-form__foot .check { margin-right: auto; }

/* Support (support.php): the ticket list beside the open conversation. */
.ticket-new { margin-bottom: 1.5rem; }
.ticket-new__foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.support-layout { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .support-layout { grid-template-columns: 1fr; } }
.ticket-list { padding: .4rem; display: grid; gap: .15rem; }
.ticket-list__empty { padding: 1rem; margin: 0; }
.ticket-row { display: grid; gap: .15rem; padding: .7rem .85rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.ticket-row:hover { background: var(--butter-2); }
.ticket-row.is-open { background: var(--butter); color: var(--ink); }
.ticket-row__subject { font-weight: 600; }
.ticket-row.is-unread .ticket-row__subject { color: var(--ink); }
.ticket-row.is-unread .ticket-row__subject::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--honey); vertical-align: 1px; }
.ticket-row__meta { font-size: .8rem; color: var(--ink-3); }
.ticket-thread { padding: 1.25rem 1.5rem; display: grid; gap: 1rem; }
.ticket-thread--empty { place-items: center; min-height: 200px; }
.ticket-thread__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ticket-thread__head h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.ticket-messages { display: grid; gap: .75rem; max-height: 55vh; overflow-y: auto; padding-right: .25rem; }
.ticket-msg { max-width: 85%; padding: .75rem 1rem; border-radius: 14px 14px 14px 4px; background: var(--cream); border: 1px solid var(--line); }
.ticket-msg.is-mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--butter-2); border-color: var(--line-2); }
.ticket-msg__who { margin: 0 0 .25rem; font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.ticket-msg__body { font-size: .93rem; }
.ticket-reply { display: grid; gap: .6rem; }
.ticket-reply textarea { width: 100%; padding: .7rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); font: inherit; resize: vertical; }
.ticket-reply .btn { justify-self: end; }

/* Accounts (accounts.php). */
.accounts-search { width: min(100%, 320px); padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); font: inherit; background: var(--paper); }
.account-name { display: grid; gap: .1rem; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.account-name:hover strong { color: var(--honey-deep); }
.account-name .muted { font-size: .8rem; }
.account-status--pending_payment { background: #FDF0D5; color: #8A5A00; }
.account-status--suspended { background: #F6E3EA; color: #8E2A4C; }
.account-status--disabled { background: var(--danger-soft); color: var(--danger); }
.account-status--active { background: var(--live-soft); color: var(--live); }
.row-actions { text-align: right; }
.account-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem 1rem; margin: 0 0 1.25rem; padding: 1rem; border-radius: var(--r-sm); background: var(--cream); }
.account-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.account-facts dd { margin: 0; font-weight: 600; }
.account-danger { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.account-danger__row { display: flex; gap: .5rem; align-items: flex-end; }
.account-danger__row .field { flex: 1; margin: 0; }
.account-delete { margin-top: .75rem; color: var(--danger); }
#account-details .field-row, #new-account .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* sign-up: a field only bots fill in */

.account-who { margin: -1rem 0 1rem; color: var(--ink-2); }

/* Overview (admin.php): stat tiles, then cards for disk, themes, people and the server. */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: grid; gap: .2rem; padding: 1.2rem 1.35rem; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.stat__label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat__big { font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1.1; }
.stat__sub { font-size: .84rem; color: var(--ink-2); }
.stat--hot { border-color: var(--honey); background: var(--butter-2); }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-card { padding: 1.35rem 1.5rem; }
.admin-card--wide { grid-column: 1 / -1; }
.admin-card h2 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: .9rem; }
.admin-card__line { margin: .6rem 0 1rem; font-size: .92rem; color: var(--ink-2); }
.meter { height: 10px; border-radius: 999px; background: var(--cream); overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--honey), #E7B45A); }
.admin-facts { display: grid; gap: .55rem; margin: 0; }
.admin-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-facts dt { color: var(--ink-2); }
.admin-facts dd { margin: 0; font-weight: 600; text-align: right; }
.admin-facts--grid { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
.admin-facts--grid > div:nth-last-child(2) { border-bottom: 0; }
.bar-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bar-list li { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: .75rem; font-size: .9rem; }
.bar-list i { height: 8px; border-radius: 999px; background: var(--cream); position: relative; overflow: hidden; }
.bar-list i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--honey); }
.bar-list b { text-align: right; }
.people { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.people li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.people li:last-child { border-bottom: 0; }
.people a { margin-right: auto; text-decoration: none; color: var(--ink); }
.people .muted { font-size: .82rem; }
.sidenav__site { justify-content: center; }
.sidenav__example { margin-top: .75rem; }

.ticket-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ticket-filter a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.ticket-filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ticket-filter b { font-weight: 600; opacity: .6; }
.ticket-cat { font-weight: 600; color: var(--honey-deep); }
.ticket-cat-pill { margin-right: .35rem; }

/* Settings (bonnet-settings.php). */
.page--narrow-wide { max-width: 820px; }
.bonnet-settings { display: grid; gap: 1.25rem; }
.bonnet-settings .form-card > p.muted { margin: -.25rem 0 1rem; font-size: .9rem; }

/* Landing page editor (landing-edit.php): the form beside the page, shrunk to fit. */
.page--landing-edit { max-width: 1400px; }
@media (min-width: 1000px) { .landing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.landing-preview { padding: 1rem; display: grid; gap: .6rem; }
.landing-preview__frame { height: 72vh; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.landing-preview__frame iframe { width: 166.67%; height: 166.67%; border: 0; transform: scale(.6); transform-origin: 0 0; }
.landing-note { margin-top: 1rem; font-size: .86rem; }

/* Support inbox › Messages (Contact us notes). */
.inbox-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .1rem; margin-bottom: -1px; border-bottom: 2px solid transparent; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.inbox-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--honey); }
.inbox-tabs a b { font-weight: 600; color: var(--ink-3); }
.inbox-note { margin: -.5rem 0 1rem; font-size: .9rem; }
.msg-list { display: grid; gap: 1rem; }
.msg { padding: 1.1rem 1.35rem; display: grid; gap: .6rem; }
.msg.is-unread { border-color: var(--honey); background: var(--butter-2); }
.msg header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.msg header a { color: var(--honey-deep); font-size: .9rem; }
.msg header .muted { margin-left: auto; font-size: .82rem; }
.msg p { margin: 0; color: var(--ink-2); }
.msg footer { display: flex; gap: .5rem; align-items: center; }
.blog-side { display: grid; gap: .6rem; }
.blog-delete { color: var(--danger); }

/* Young Serif (the display font) comes in one weight and no italic: wherever
   it's used, it shows as drawn, never as a faked bolder or slanted copy.
   (Only here, not page-wide, so theme fonts in previews keep their own ways.) */
h1, h2, h3, h1 *, h2 *, h3 *, .wordmark__text, .hello__bee .bee-say__bubble span, .how__steps li, .logo-custom__price strong,
.editor__title strong, .bee-say--note strong, .stat__big { font-synthesis: none; }
.wordmark__text { font-style: normal; }

/* ── Logo Studio (logo-studio.php, assets/studio.js) ───── */
.page--wide { width: min(100% - 2.5rem, 1400px); }
.studio-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.studio-bar .field { margin: 0; min-width: 160px; }
.studio-section { margin-bottom: 2.5rem; }
.studio-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.studio-section__head h2 { font-size: 1.5rem; } .studio-section__head h2 .muted { font: 500 .95rem var(--ui); }
.studio-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .9rem; }
.studio-tile { cursor: default; background: var(--paper); }
.studio-tile:has(input:checked) { border-color: var(--line); box-shadow: none; } /* its switch isn't a selection */
.studio-tile .name-tile__sample { min-height: 130px; background: var(--bg); color: var(--text); font-size: 1.6rem; }
.studio-tile.is-off .name-tile__sample { opacity: .35; filter: grayscale(1); }
.name-tile .bn-studio-logo { overflow: visible; } /* its own size; scaled to fit with the rest (admin.js fitLogo) */
.name-tile__sample { position: relative; }
:is(.name-tile__sample, .logo-flow__sample) > .logo-fit { position: absolute; left: 50%; top: 50%; display: inline-block; width: max-content; max-width: none; transform: translate(-50%, -50%); transform-origin: center; } /* out of the flow, so every tile keeps the same height */
.studio-switch { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.studio-switch input { position: static; opacity: 1; accent-color: var(--honey-deep); }
.studio-tile__actions { display: flex; justify-content: center; align-items: center; gap: .25rem; }
.studio-empty { margin-bottom: 1rem; }
.studio-edited { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; border-radius: 99px; background: var(--butter); color: var(--honey-deep); font-size: .68rem; }
.studio-stage { --fi: var(--first-ink, currentColor); --la: var(--last-ink, currentColor); }

.studio-open { overflow: hidden; }
.studio-editor { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); }
.studio-editor[hidden] { display: none; }
.studio-editor__bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.studio-editor__name { width: 200px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: 600 1rem var(--ui); }
.studio-scope-pick { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.studio-scope-pick select { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 7px; font: 600 .82rem var(--ui); background: #fff; }
.studio-tools { display: flex; flex-wrap: wrap; gap: .3rem; flex: 1; }
/* The loading monogram (logo-studio.php): its own two letters to add, in place of the name buttons. */
.studio-editor:not(.is-monogram) .studio-tools :is([data-add="fi"], [data-add="li"]),
.studio-editor.is-monogram .studio-tools :is([data-add="first"], [data-add="last"], [data-add="full"], [data-add="initials"]) { display: none; }
.studio-mono .name-tile__sample { font-size: 2.6rem; }
.studio-mono__plain { font-family: var(--font-display); font-weight: var(--heading-weight, 400); line-height: 1; }
.studio-editor__end { display: flex; gap: .35rem; align-items: center; }
.studio-editor__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr 290px; }
.studio-layers, .studio-inspector { overflow-y: auto; padding: 1rem; background: var(--paper); }
.studio-layers { border-right: 1px solid var(--line); }
.studio-inspector { border-left: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .7rem; overflow-x: hidden; } /* every row fits the panel */
.studio-inspector > *, .studio-field > *, .studio-row > * { min-width: 0; }
.studio-label { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.studio-layers ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .2rem; }
.studio-layers li { display: flex; align-items: center; gap: .2rem; padding: .35rem .5rem; border-radius: 8px; font-size: .84rem; cursor: pointer; }
.studio-layers li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-layers li:hover { background: var(--butter-2); } .studio-layers li.is-on { background: var(--butter); font-weight: 600; }
.studio-layers li button { border: 0; background: none; padding: 0 .25rem; color: var(--ink-3); cursor: pointer; }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.studio-row { display: flex; gap: .5rem; } .studio-row > * { flex: 1; min-width: 0; }
.studio-row--btns .btn { justify-content: center; }
.studio-center-all { margin-bottom: .4rem; } .studio-center-all .btn { flex: 1; }
.studio-label--sub { margin-top: 1rem; }
.studio-inspector .studio-row .studio-num input[type=range] { display: none; } /* X and Y: the boxes only, side by side */
.studio-inspector .studio-row .studio-num input[type=number] { flex: 1; width: auto; min-width: 0; }
.studio-layers .studio-row label { display: grid; gap: .2rem; font-size: .75rem; font-weight: 600; }
.studio-layers input[type=number] { width: 100%; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 6px; }
.studio-field { display: grid; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.studio-field select, .studio-field input[type=text] { width: 100%; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-weight: 500; background: #fff; }
.studio-num { display: flex; align-items: center; gap: .4rem; }
.studio-num input[type=range] { flex: 1; min-width: 0; accent-color: var(--honey-deep); }
.studio-num input[type=number] { flex: none; width: 4.2rem; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 500; }
.studio-color { display: flex; gap: .35rem; } .studio-color select { flex: 1; min-width: 0; } .studio-color input[type=color] { width: 2.2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.studio-attach { display: grid; gap: .6rem; padding: .7rem; border-radius: 10px; background: var(--butter-2); border: 1px solid var(--line); }
.studio-check { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; }
.studio-hint { font-size: .78rem; color: var(--ink-3); line-height: 1.45; }
.studio-bgs { display: flex; gap: .25rem; margin: .75rem 0; }
.studio-bgs button { flex: 1; padding: .35rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: 600 .75rem var(--ui); cursor: pointer; }
.studio-bgs button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.studio-stage { display: grid; place-items: center; padding: 3rem; overflow: auto; background: var(--bg); color: var(--text);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.4px); background-size: 16px 16px; }
.studio-stage[data-bg=surface] { background-color: var(--surface); }
.studio-stage[data-bg=dark] { background: #1d1814 linear-gradient(135deg, #3a2c22, #120e0b); color: #fff; }
.studio-canvas { width: min(100%, 980px); height: auto; overflow: visible; touch-action: none; user-select: none; }
.studio-canvas [data-id] { cursor: move; }
.studio-canvas__bounds { fill: none; stroke: color-mix(in srgb, currentColor 30%, transparent); stroke-width: 1; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; pointer-events: none; }
.studio-guide { stroke: #E0457B; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.studio-sel { fill: none; stroke: #2F7FF0; pointer-events: none; }
.studio-handle { fill: #fff; stroke: #2F7FF0; cursor: nwse-resize; }
.studio-upload { margin: .75rem 0 1rem; cursor: pointer; }
.studio-orns { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.studio-orn { position: relative; }
.studio-orn button[data-orn-add] { display: grid; gap: .35rem; width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); cursor: pointer; font: 500 .75rem var(--ui); color: var(--ink-2); }
.studio-orn button[data-orn-add]:hover { border-color: var(--honey); }
.studio-orn svg { width: 100%; height: 70px; }
.studio-orn__del { position: absolute; top: .25rem; right: .3rem; border: 0; background: none; font-size: 1.1rem; color: var(--ink-3); cursor: pointer; }
@media (max-width: 1000px) { .studio-editor__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; } .studio-layers, .studio-inspector { max-height: 30vh; } }


/* First-run setup (setup.php): a new account's name, style, theme and logo, one step at a time. */
.setup { width: min(100% - 2rem, 1120px); margin: 0 auto; padding: 2rem 0 3rem; }
.setup__head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.setup__brand { display: flex; align-items: center; gap: .6rem; }
.setup__brand svg { width: 34px; height: auto; }
.setup__steps { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.setup__steps li { display: flex; align-items: center; gap: .4rem; padding: .35rem .8rem .35rem .4rem; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.setup__steps li a { display: contents; color: inherit; text-decoration: none; }
.setup__steps li span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; }
.setup__steps li.is-done { color: var(--ink-2); }
.setup__steps li.is-done span { background: var(--butter); border-color: var(--butter); color: var(--honey-deep); }
.setup__steps li[aria-current] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.setup__steps li[aria-current] span { background: var(--honey); border-color: var(--honey); color: #fff; }
.setup__body h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); max-width: 24ch; }
.setup__lead { max-width: 60ch; margin: .6rem 0 1.75rem; color: var(--ink-2); font-size: 1.05rem; }
.setup__error { padding: .6rem .9rem; border-radius: var(--r-sm); background: #FCE8E6; color: #A1261A; font-weight: 600; }
.setup__names { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; max-width: 640px; }
.setup__names .input { font-size: 1.15rem; padding: .8rem 1rem; }
/* Your site (setup.php): two quick questions, then the two kinds of site */
.setup__ask { display: grid; gap: 1.5rem; max-width: 760px; }
.setup__q { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; border: 0; }
.setup__q legend { width: 100%; margin-bottom: .6rem; font-weight: 650; }
.setup__q[hidden] { display: none; }
.setup__shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .75rem; }
.setup__shape { position: relative; display: block; padding: 1.1rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.setup__shape:hover { border-color: var(--line-2); }
.setup__shape input { position: absolute; opacity: 0; }
.setup__shape:has(input:checked) { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.2); }
.setup__shape:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }
.setup__shape > span { display: block; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.setup__shape strong { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; color: var(--ink); font-size: 1.05rem; }
.setup__pick { padding: .15rem .55rem; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: .72rem; font-style: normal; font-weight: 650; }
.setup__pick[hidden] { display: none; }
.setup__chips { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 760px; }
.setup__chip { position: relative; cursor: pointer; }
.setup__chip input { position: absolute; opacity: 0; }
.setup__chip span { display: inline-block; padding: .75rem 1.3rem; border: 1.5px solid var(--line); border-radius: 99px; background: var(--paper); font-weight: 600; transition: border-color .2s, background .2s; }
.setup__chip:hover span { border-color: var(--line-2); }
.setup__chip input:checked + span { border-color: var(--honey); background: var(--butter); color: var(--honey-deep); }
.setup__chip input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.setup__chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.setup__themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.setup-theme { padding: 0; overflow: hidden; gap: 0; background: var(--paper); }
.setup-theme__spec { position: relative; display: flex; align-items: flex-start; }
.setup-theme__logo { position: relative; display: block; max-width: 100%; margin-bottom: 4.5cqw; font-size: 9cqw; line-height: 1; color: var(--s-text); }
.setup-theme__logo .bn-studio-logo { max-width: 100%; }
.setup-theme__foot { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding: .7rem .9rem .8rem; }
.setup-theme__tags { font-size: .8rem; color: var(--ink-3); }
.setup__more { margin-top: 1.5rem; }
.setup__more summary { cursor: pointer; font-weight: 600; color: var(--honey-deep); margin-bottom: 1rem; }
.setup-logos { margin-top: 0; }
.setup-logos .name-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.setup-logos .name-tile__sample { min-height: 130px; background: var(--bg); color: var(--text); font-size: 1.6rem; }
.setup__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .6rem; margin-top: 2rem; padding: 1rem 0; background: linear-gradient(transparent, var(--cream) 35%); }
.setup__out { margin-top: 1rem; text-align: center; font-size: .85rem; color: var(--ink-3); }
.setup-logos.is-fitting .name-grid { opacity: .35; transition: opacity .3s; pointer-events: none; } /* fitting the logos to their name (setup.js) */

/* ── Brand Designer › Logo, in three steps (brand.php .logo-flow, assets/brand.js) ─
   1 the designs; once one is picked they slide into a narrow column down the left,
   like tabs, and 2 its variations (or 3 its colors) take the room beside them. */
.logo-flow__tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .75rem; padding: 3px; border-radius: 12px; background: #F1ECE5; width: fit-content; }
.logo-flow__tabs button { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .85rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.logo-flow__tabs button span { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(0,0,0,.07); font-size: .72rem; }
.logo-flow__tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.logo-flow__tabs [aria-selected="true"] span { background: var(--honey); color: #fff; }
.logo-flow__hint { margin: 0 0 .85rem; }
.logo-flow__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.logo-flow[data-step="2"] .logo-flow__body, .logo-flow[data-step="3"] .logo-flow__body { grid-template-columns: 9.5rem minmax(0, 1fr); }
/* The designs as a narrow column: one per row, smaller, the picked one marked like a tab. */
.logo-flow:not([data-step="1"]) .logo-flow__rail { grid-template-columns: 1fr; gap: .4rem; max-height: 34rem; overflow-y: auto; padding: 3px; scrollbar-width: thin; }
.logo-flow:not([data-step="1"]) .logo-flow__rail .name-tile { padding: .35rem; gap: .3rem; }
.logo-flow:not([data-step="1"]) .logo-flow__rail .name-tile__sample { min-height: 58px; padding: .4rem; font-size: 1rem; }
.logo-flow:not([data-step="1"]) .logo-flow__rail .name-tile__label { font-size: .68rem; font-weight: 600; line-height: 1.25; }
.logo-flow__panel { animation: logo-flow-in .45s var(--ease, cubic-bezier(.2,.7,.2,1)); min-width: 0; }
@keyframes logo-flow-in { from { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .logo-flow__panel { animation: none; } }
.logo-flow.is-loading .logo-flow__panel { opacity: .5; transition: opacity .2s; }
/* Step 2: a row for each way of setting the capitals, the last name's sizes across. */
.logo-flow__heads, .logo-flow__row { display: grid; grid-template-columns: 5.5rem repeat(5, minmax(0, 1fr)); gap: .4rem; align-items: center; }
.logo-flow__heads { margin-bottom: .3rem; font-size: .68rem; font-weight: 650; color: var(--ink-3); text-align: center; }
.logo-flow__row { margin-bottom: .4rem; }
.logo-flow__row.is-one { grid-template-columns: 5.5rem minmax(0, 1fr); max-width: 22rem; }
.logo-flow__label { font-size: .74rem; font-weight: 650; color: var(--ink-2); }
.logo-flow__tile { display: flex; flex-direction: column; gap: .3rem; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; font: inherit; }
.logo-flow__tile:hover { border-color: var(--line-2); }
.logo-flow__tile[aria-pressed="true"] { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(201,138,46,.2); }
.logo-flow__tile:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.logo-flow__sample { position: relative; display: grid; place-items: center; min-height: 64px; padding: .4rem; border-radius: 5px; background: var(--ground, #fff); overflow: hidden;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.1rem; line-height: 1; color: var(--ink); }
.logo-flow__sample .bn-studio-logo { overflow: visible; }
:is(.logo-flow__sample, .logo-flow__rail .name-tile__sample) .bn-name--studio { display: inline-block; line-height: 0; --fi: var(--first-ink, currentColor); --la: var(--last-ink, currentColor); } /* the colorway's colors (as site/base.css) */
.logo-flow__gap { display: block; }
.logo-flow__note { margin: 0; padding: 1rem; border-radius: var(--r-sm); background: var(--cream); color: var(--ink-2); font-size: .9rem; }
/* Step 3: the colorways on a light ground, then on a dark one. */
.logo-flow__group { margin: 0 0 .45rem; font-size: .8rem; font-weight: 650; }
.logo-flow__group:not(:first-child) { margin-top: 1rem; }
.logo-flow__colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: .5rem; }
.logo-flow__colors .logo-flow__sample { min-height: 78px; }
.logo-flow__colors small { font-size: .72rem; font-weight: 600; text-align: center; padding-bottom: .2rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .logo-flow[data-step="2"] .logo-flow__body, .logo-flow[data-step="3"] .logo-flow__body { grid-template-columns: minmax(0, 1fr); }
  .logo-flow:not([data-step="1"]) .logo-flow__rail { display: none; } /* (the Design tab brings them back) */
  .logo-flow__heads, .logo-flow__row { grid-template-columns: 4rem repeat(5, minmax(0, 1fr)); gap: .25rem; }
}
/* Bigger logos throughout, and the designs' names held back until a variation is picked (step 3: the picked one's only). */
.logo-flow__rail.name-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .75rem; }
.logo-flow[data-step="1"] .logo-flow__rail .name-tile__sample { min-height: 132px; font-size: 1.7rem; }
.logo-flow .logo-flow__rail .name-tile__label { display: none; }
.logo-flow[data-step="3"] .logo-flow__rail .name-tile:has(input:checked) .name-tile__label { display: block; }
.logo-flow[data-step="2"] .logo-flow__body, .logo-flow[data-step="3"] .logo-flow__body { grid-template-columns: 12rem minmax(0, 1fr); }
.logo-flow:not([data-step="1"]) .logo-flow__rail .name-tile__sample { min-height: 84px; font-size: 1.25rem; }
.logo-flow__sample { min-height: 96px; }
.logo-flow__colors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.logo-flow__colors .logo-flow__sample { min-height: 120px; }
