/* Seated app shell and shared components (2026-10 rebrand).
   Needs tokens.css first. Buttons follow Rota Done's "ink with the tick":
   square ink buttons, one filled button per view, the plum tile inside it. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font-sans); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
/* hidden means hidden, whatever display a class gives (buttons, grids). */
[hidden] { display: none !important; }
.sd-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Logo ------------------------------------------------------------- */
.sd-logo { display: inline-flex; align-items: center; gap: calc(var(--sd-logo-size, 22px) * 0.34); vertical-align: middle; }
.sd-logo-mark { flex: none; display: block; }
.sd-logo-word { font-weight: 800; font-size: calc(var(--sd-logo-size, 22px) * 0.82); letter-spacing: -0.05em; line-height: 1; }
.sd-logo-dot { color: var(--brand); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background-color .12s, color .12s, border-color .12s;
}
.btn-primary { background: var(--action); color: var(--on-action); gap: 12px; padding-left: 12px; box-shadow: 0 1px 2px rgba(17,22,29,.18), inset 0 1px 0 rgba(255,255,255,.08); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn { transition: background-color .12s, color .12s, border-color .12s, transform .1s ease-out; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary:hover { background: var(--action-strong); }
.btn-primary .bt { position: relative; display: block; flex: none; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary .bt::after { content: ""; position: absolute; right: 5px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-secondary:hover { background: var(--wash); }
.btn-quiet { background: transparent; color: var(--text); padding: 0 12px; }
.btn-quiet:hover { background: var(--wash); }
.btn-danger { background: transparent; color: var(--bad); padding: 0 12px; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 9%, transparent); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-sm.btn-primary { padding-left: 8px; gap: 9px; }
.btn-sm.btn-primary .bt { width: 18px; height: 18px; border-radius: 5px; }
.btn-sm.btn-primary .bt::after { right: 4px; bottom: 4px; width: 4px; height: 4px; }
.btn-block { width: 100%; height: 50px; font-size: 16px; border-radius: 14px; }

/* ---- Fields ----------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label a { font-weight: 500; font-size: 13px; color: var(--muted); text-underline-offset: 3px; }
.field label a:hover { color: var(--text); }
/* One text box everywhere: filled, soft corners, a plum ring when you're in it. */
.input, .field input, .field select, .field textarea {
  height: 48px; width: 100%; padding: 0 14px; font: inherit; font-size: 16px;
  background: var(--surface2); color: var(--text);
  border: 1px solid transparent; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { height: auto; padding: 11px 14px; line-height: 1.5; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { background: color-mix(in srgb, var(--text) 7%, var(--surface2)); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted2); }
.field select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); outline: none; }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---- Messages --------------------------------------------------------- */
.flash { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flash li { padding: 11px 14px; border-radius: var(--radius); font-size: 14px;
  background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 26%, transparent); }
.flash li.info { background: var(--surface); color: var(--text); border-color: var(--border); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius); background: var(--brand-wash); font-size: 14px; }
.notice form { margin: 0; }

/* ---- App shell -------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
  height: 60px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.top-logo { text-decoration: none; display: inline-flex; }
.top-venue { font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; padding-left: 16px; border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.top-venue:hover { color: var(--text); }
.top-nav { display: flex; gap: 2px; margin-left: 6px; }
.top-nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--text); background: var(--wash); }
.top-nav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-user { font-size: 14px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--wash); color: var(--text); }
.top form { margin: 0; }

.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 36px 24px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
.page-head h1 .dot { color: var(--brand); }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.card-pad { padding: 22px 24px; }
.card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.card .sub { margin: 0; color: var(--muted); font-size: 14px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--border-soft); }
.rows > li:first-child { border-top: 0; }
.who { min-width: 0; flex: 1; }
.who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); font-weight: 700; font-size: 14px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.tag-brand { background: var(--brand-wash); color: var(--brand-text); }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; display: flex; gap: 6px; align-items: center; }
.row-actions select { height: 36px; padding: 0 30px 0 10px; font: inherit; font-size: 14px; border: 1px solid transparent; border-radius: 10px; background-color: var(--surface2); background: var(--surface); color: var(--text); }

.venue-tile { display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-decoration: none; transition: border-color .12s; }
.venue-tile:hover { border-color: var(--border-strong); }
.venue-tile .initial { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-wash); color: var(--brand-text); font-weight: 800; font-size: 18px; }
.venue-tile .arrow { margin-left: auto; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .field.narrow { flex: 0 1 160px; }

@media (max-width: 760px) {
  /* No backdrop-filter here: it would make .top the containing block for
     the fixed tab bar below and pin the bar inside the header. */
  .top { gap: 10px; padding: 0 14px; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top-venue { max-width: 130px; padding-left: 10px; }
  .top-user { display: none; }
  .top-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
  .top-nav a { flex: 1; justify-content: center; height: 44px; padding: 0 4px; white-space: nowrap; font-size: 14px; }
  .top-nav a[aria-current="page"] { box-shadow: inset 0 2px 0 var(--brand); }
  .page { padding: 24px 16px 96px; }
  .page-head h1 { font-size: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .rows > li { flex-wrap: wrap; padding: 14px 16px; }
  .row-actions { width: 100%; justify-content: flex-start; padding-left: 50px; }
  .card-pad { padding: 18px 16px; }
}

/* ---- Sub tabs (Settings: Bookings / Venue page) ---------------------- */
.subtabs { display: flex; gap: 4px; align-items: center; margin: -8px 0 20px; border-bottom: 1px solid var(--border); }
.subtabs a { padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.subtabs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); }
.subtabs .subtabs-out { margin-left: auto; font-weight: 500; }
.auth-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.auth-perks span { display: inline-flex; align-items: center; gap: 6px; }
.auth-perks span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b3fb0' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat; }

/* ==== App pages refresh (2026-10-13): Settings, Venue page, Billing, Team ====
   The same language as the diary's panels: soft cards with a hairline, filled
   rounded fields with a plum focus ring, a segmented control for the tabs,
   switches, pill choices, a floating save bar. Selectors carry .page so they
   beat each page's own <style> block, which loads after this file. */
.page .card { border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--border-soft), 0 1px 2px rgba(17,22,29,.04); }
.page .card-pad { padding: 22px 24px 24px; }
.page .card h2 { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.page .card h2 + .sub { margin-bottom: 16px; }
.page .card .sub { font-size: 13.5px; line-height: 1.45; }
.page .stack { gap: 14px; }
.page .page-head { margin-bottom: 20px; }
/* fields */
.page .field label { font-size: 13px; font-weight: 600; color: var(--text); }
.page .field input, .page .field select, .page .field textarea, .page .card .field textarea,
.page .hours input[type=time], .page .sit input, .page .rv form input, .page .inline-form input, .page .inline-form select {
  height: 44px; border: 1px solid transparent; border-radius: 12px; background: var(--surface2); font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.page .field textarea, .page .card .field textarea { height: auto; padding: 11px 14px; line-height: 1.5; }
.page .field input:hover, .page .field select:hover, .page .field textarea:hover, .page .hours input[type=time]:hover, .page .sit input:hover {
  background: color-mix(in srgb, var(--text) 7%, var(--surface2)); }
.page .field input:focus, .page .field select:focus, .page .field textarea:focus, .page .hours input[type=time]:focus,
.page .sit input:focus, .page .rv form input:focus, .page .inline-form input:focus, .page .inline-form select:focus {
  outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.page .field input::placeholder, .page .field textarea::placeholder { color: var(--muted2); }
.page .hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* tabs as a segmented control */
.page .subtabs { gap: 2px; margin: -4px 0 20px; padding: 3px; border: 0; border-radius: 12px; background: var(--surface2); width: max-content; max-width: 100%; }
.page .subtabs a { padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: background-color .15s, color .15s; }
.page .subtabs a:hover { color: var(--text); }
.page .subtabs a[aria-current="page"] { box-shadow: 0 1px 3px rgba(17,22,29,.12), 0 0 0 .5px var(--border-soft); background: var(--surface); color: var(--text); }
.page .subtabs .subtabs-out { margin-left: 8px; color: var(--brand-text); }
/* pill choices and the price picker */
.page .checks label { height: 36px; border: 0; border-radius: 999px; background: var(--surface2); font-weight: 550; transition: background-color .15s, color .15s; }
.page .checks label:hover { background: color-mix(in srgb, var(--text) 9%, var(--surface2)); }
.page .checks label:has(input:checked) { background: var(--brand); color: var(--on-brand); }
.page .checks input { accent-color: var(--on-brand); }
.page .price label { border: 0; border-radius: 10px; background: var(--surface2); }
.page .price label:has(input:checked) { background: var(--brand); color: var(--on-brand); }
.page .choice label { border: 0; border-radius: 14px; background: var(--surface2); padding: 14px 16px; }
.page .choice label:has(input:checked) { background: var(--brand-wash); box-shadow: inset 0 0 0 2px var(--brand); }
/* switches */
.page .switch { gap: 14px; }
.page .switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: var(--border); cursor: pointer; transition: background-color .2s; }
.page .switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .28s cubic-bezier(.34, 1.4, .64, 1); }
.page .switch input:checked { background: var(--brand); }
.page .switch input:checked::after { transform: translateX(18px); }
.page .switch input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* hours */
.page .hours td { border-top-color: var(--border-soft); padding: 7px 8px 7px 0; }
.page .day input { accent-color: var(--brand); }
.page .linkbox { border-radius: 12px; }
/* the save bar floats */
.page .savebar { position: sticky; z-index: 30; display: flex; align-items: center; justify-content: flex-end; bottom: 16px; padding: 10px 10px 10px 18px; margin: 0 auto; width: max-content; max-width: 100%; border-radius: 16px; gap: 14px;
  transition: transform .32s cubic-bezier(.2,.9,.3,1.15), opacity .2s; }
.page .savebar.is-idle { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
.page .savebar-say { font-size: 14px; font-weight: 550; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .page .savebar { transition: opacity .15s; } .page .savebar.is-idle { transform: none; } }
.page .savebar {
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px var(--border-soft), 0 12px 32px -12px rgba(17,22,29,.35); }
/* lists of people */
.page .rows > li { padding: 13px 24px; border-top-color: var(--border-soft); }
.page .avatar { color: #fff; font-size: 13px; background: linear-gradient(160deg, hsl(var(--h, 265) 46% 60%), hsl(var(--h, 265) 50% 43%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.page .tag { border-radius: 999px; height: 24px; padding: 0 10px; }
/* photos */
.page .vp-photo { border: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--border-soft); }
.page .vp-drop { border-radius: 14px; border-width: 1.5px; background: var(--surface2); }
.page .flash li { border-radius: 12px; }
.page .flash li.info { border: 0; background: var(--brand-wash); color: var(--text); }
.page .notice { border-radius: 14px; }
@media (max-width: 760px) {
  .page .card-pad { padding: 18px 16px 20px; }
  .page .subtabs { width: 100%; overflow-x: auto; }
  .page .savebar { bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; }
  .page .rows > li { padding: 13px 16px; }
}
.page .checks label { position: relative; padding: 0 14px; }
.page .checks input { position: absolute; opacity: 0; pointer-events: none; }
.page .checks label:has(input:checked)::before { content: ""; width: 12px; height: 12px; margin-left: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.page .checks label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.page .subtabs a { white-space: nowrap; flex: none; }

/* ==== Account menu, tab bar icons, toasts (2026-10-13 audit) ==================
   One account button instead of name + theme switch + Sign out; on a phone
   that frees the top bar for the venue. */
.top-nav svg { display: none; }
.acct { position: relative; }
.acct summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border-radius: 999px; cursor: pointer; list-style: none; color: var(--text); }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { background: var(--wash); }
.acct-ava { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.acct-name { font-size: 14px; font-weight: 550; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; transition: transform .2s; }
.acct[open] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; width: 270px; padding: 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 0 0 1px var(--border-soft), 0 18px 48px -12px rgba(17,22,29,.35); transform-origin: top right; animation: acct-in .18s cubic-bezier(.2,.9,.3,1.2); }
@keyframes acct-in { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.acct-who { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; }
.acct-who b { font-size: 14.5px; }
.acct-who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acct-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 500 14.5px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.acct-item:hover { background: var(--wash); }
.acct-item.is-out { color: var(--bad); }
.acct form { margin: 0; border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 4px; }
.acct-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 6px 0 12px; font-size: 14.5px; font-weight: 500; }
.acct-seg { display: flex; padding: 2px; border-radius: 10px; background: var(--surface2); }
.acct-seg button { height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 13px var(--font-sans); cursor: pointer; }
.acct-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(17,22,29,.14); }

/* Toasts: good news floats in at the top and goes on its own. */
.sd-toasts { position: fixed; left: 50%; top: 72px; z-index: 2000; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.sd-toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--action); color: var(--on-action); font-size: 14.5px; font-weight: 550;
  box-shadow: 0 16px 40px -14px rgba(17,22,29,.5); animation: sd-toast 5.2s cubic-bezier(.2,.9,.3,1) forwards; }
.sd-toast svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
html.dark .sd-toast svg { stroke: var(--brand-strong); }
@keyframes sd-toast { 0% { opacity: 0; transform: translateY(-10px) scale(.96); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .sd-toast { animation: sd-toast-plain 5.2s linear forwards; } @keyframes sd-toast-plain { 0%, 90% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } } }
.flash-page { margin: 0 0 18px; }
main:not(.page) > .flash-page { margin: 12px 16px; }

@media (max-width: 760px) {
  .acct-name, .acct-chev { display: none; }
  .acct summary { padding: 0 4px; }
  /* Tab bar: icon over a short label, like every iPhone app. */
  .top-nav { padding: 4px 4px calc(2px + env(safe-area-inset-bottom)); }
  .top-nav a { flex-direction: column; gap: 3px; height: 50px; font-size: 11px; font-weight: 600; color: var(--muted2); }
  .top-nav a[aria-current="page"] { box-shadow: none; color: var(--brand-text); }
  .top-nav svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .top-nav a[aria-current="page"] svg { stroke-width: 2.2; }
  .top-venue { max-width: 190px; }
  .sd-toasts { top: 12px; }
}
/* Settings tabs, with the public page link beside them rather than squeezed in. */
.subtabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 20px; }
.subtabs-row .subtabs { margin: 0 !important; }
.subtabs-row .subtabs-out { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.subtabs-row .subtabs-out:hover { text-decoration: underline; text-underline-offset: 3px; }
.subtabs-row .subtabs-out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .subtabs-row .subtabs { width: 100%; } .subtabs-row .subtabs a { flex: 1; text-align: center; } .subtabs-row { gap: 4px; } }
