/* Understaffed site editor. Colors and fonts come from /theme.css (each client's own paint);
   this file is the shared structure: type scale, surfaces, controls, motion. */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow-1: 0 1px 2px rgb(52 19 28 / .06), 0 4px 14px -6px rgb(52 19 28 / .12);
  --shadow-2: 0 2px 4px rgb(52 19 28 / .06), 0 14px 34px -14px rgb(52 19 28 / .28);
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 70%, transparent);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --error: #a1251a; --error-soft: #fdecea; --ok: #2f6b45; --ok-soft: #e6f2ea;
  --step--1: .86rem; --step-0: 1rem; --step-1: 1.15rem; --step-2: 1.45rem; --step-3: clamp(1.9rem, 5.4vw, 2.6rem); --step-4: clamp(2.3rem, 7vw, 3.3rem);
  color-scheme: light;
}
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100dvh; background: var(--ground); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-underline-offset: .18em; }
:focus-visible { outline: none; box-shadow: var(--ring); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Background: her watercolor washes as soft fields of color */
.washes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.washes span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.washes .w1 { width: 46vmax; height: 40vmax; left: -14vmax; top: -12vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--rose) 70%, transparent), transparent); }
.washes .w2 { width: 40vmax; height: 36vmax; right: -14vmax; top: 18vh; background: radial-gradient(closest-side, color-mix(in oklab, var(--sage) 65%, transparent), transparent); }
.washes .w3 { width: 34vmax; height: 30vmax; left: 20vw; bottom: -16vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--gold) 45%, transparent), transparent); }
#app { position: relative; z-index: 1; }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 560; color: var(--deep); letter-spacing: -.01em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h1 em, h2 em { font-style: italic; color: var(--primary); font-weight: 520; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
.eyebrow { font: 600 .72rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.lede { color: var(--muted); font-size: var(--step-1); margin: 12px 0 0; max-width: 46ch; }
.muted { color: var(--muted); }

/* ---- Shell ---- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in oklab, var(--surface) 72%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}
.top .home { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; border-radius: 12px; }
.top .mark { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in oklab, var(--gold) 50%, transparent); flex: none; }
.top .who { display: grid; line-height: 1.15; min-width: 0; }
.top .who b { font: 600 .95rem/1.2 var(--text); color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.top .spacer { flex: 1; }
.wrap { width: min(100% - 32px, 760px); margin: 0 auto; padding: 28px 0 140px; }
@media (min-width: 720px) { .wrap { padding-top: 48px; } .top { padding-inline: 28px; } }
.page { animation: rise .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s var(--ease), box-shadow .2s, border-color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--primary) 80%, transparent); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary[disabled] { background: color-mix(in oklab, var(--primary) 35%, var(--line)); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: color-mix(in oklab, var(--surface) 80%, transparent); border-color: var(--line); color: var(--deep); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--primary) 40%, var(--line)); background: var(--surface); }
.btn-quiet { background: none; color: var(--deep); padding: 0 12px; min-height: 40px; }
.btn-quiet:hover { background: color-mix(in oklab, var(--tint) 60%, transparent); }
.btn-danger { background: var(--error); color: #fff; }
.btn-link-danger { background: none; border: 0; color: var(--error); font-weight: 560; cursor: pointer; padding: 10px 0; display: inline-flex; gap: 8px; align-items: center; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--deep); cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { border-color: color-mix(in oklab, var(--primary) 40%, var(--line)); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.i { width: 18px; height: 18px; }

/* ---- Sign-in ---- */
.signin { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.signin-card {
  width: min(100%, 440px); padding: 34px 28px 28px; border-radius: 28px; text-align: left;
  background: color-mix(in oklab, var(--surface) 70%, transparent); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid color-mix(in oklab, #fff 70%, transparent); box-shadow: var(--shadow-2), inset 0 1px 0 rgb(255 255 255 / .7);
}
.signin-card .logo { height: 54px; width: auto; margin: 0 0 26px; }
.signin-card h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
.signin-card p { color: var(--muted); margin: 10px 0 22px; }
.signin-card form { display: grid; gap: 14px; }
.signin-card .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 4px; }
.code-input { font: 600 1.7rem/1 var(--text) !important; letter-spacing: .5em; text-align: center; padding-left: .5em !important; font-variant-numeric: tabular-nums; }
.fine { font-size: var(--step--1); color: var(--muted); margin-top: 18px; }
.made-by { margin-top: 22px; font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; text-align: center; }

/* ---- Fields ---- */
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-weight: 560; color: var(--deep); font-size: .97rem; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field .count { font-weight: 400; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field .count.over { color: var(--error); font-weight: 600; }
.field .help { font-size: .88rem; color: var(--muted); margin: -2px 0 2px; line-height: 1.45; }
.field .err { font-size: .88rem; color: var(--error); font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.textarea.tall { min-height: 200px; }
.input:hover, .textarea:hover, .select:hover { border-color: color-mix(in oklab, var(--primary) 30%, var(--line)); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.invalid .input, .invalid .textarea, .invalid .select { border-color: var(--error); background: color-mix(in oklab, var(--error-soft) 50%, var(--surface)); }
.affix { position: relative; }
.affix .pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.affix .input { padding-left: 30px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; transition: all .2s; }
.seg button[aria-pressed='true'] { background: var(--deep); color: #fff; border-color: var(--deep); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.switch-row .t { display: grid; gap: 2px; }
.switch-row .t b { font-weight: 560; color: var(--deep); }
.switch-row .t span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; border: 0; background: color-mix(in oklab, var(--muted) 35%, var(--line)); cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .22s var(--ease); }
.switch[aria-checked='true'] { background: var(--primary); }
.switch[aria-checked='true']::after { transform: translateX(20px); }

/* Groups */
.form { display: grid; gap: 22px; }
.group { display: grid; gap: 18px; padding: 20px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--surface) 78%, transparent); border: 1px solid color-mix(in oklab, var(--line) 85%, transparent); box-shadow: var(--shadow-1); }
.group > .ghead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.group > .ghead h3 { font-size: 1.35rem; }
.group > .help { margin-top: -10px; }
.sub { display: grid; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--ground); border: 1px solid var(--line); }
.sub .sub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sub .sub-head b { font-weight: 600; color: var(--deep); }
.sub .tools { display: flex; gap: 6px; }
.add-row { justify-self: start; }
details.more { border-radius: var(--r-lg); border: 1px dashed color-mix(in oklab, var(--primary) 30%, var(--line)); background: color-mix(in oklab, var(--surface) 55%, transparent); }
details.more > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 560; color: var(--deep); border-radius: var(--r-lg); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary span { font-weight: 400; color: var(--muted); font-size: .88rem; }
details.more[open] > summary svg { transform: rotate(180deg); }
details.more > summary svg { transition: transform .2s; }
details.more > .form { padding: 0 20px 20px; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-1); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .main { position: absolute; left: 8px; top: 8px; font: 600 .66rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; background: rgb(255 255 255 / .9); color: var(--deep); padding: 5px 7px; border-radius: 999px; }
.photo .new { position: absolute; right: 8px; top: 8px; font: 600 .66rem/1 var(--text); background: var(--accent); color: var(--deep); padding: 5px 7px; border-radius: 999px; }
.photo .ptools { position: absolute; inset: auto 6px 6px 6px; display: flex; justify-content: space-between; gap: 4px; }
.photo .ptools button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .92); display: grid; place-items: center; cursor: pointer; color: var(--deep); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.photo .ptools button[disabled] { opacity: .3; }
.photo .ptools svg.i { width: 16px; height: 16px; }
.photo-add { aspect-ratio: 1; border-radius: var(--r); border: 1.5px dashed color-mix(in oklab, var(--primary) 45%, var(--line)); background: color-mix(in oklab, var(--surface) 70%, transparent); display: grid; place-items: center; align-content: center; gap: 6px; cursor: pointer; color: var(--primary); font-weight: 560; font-size: .88rem; text-align: center; padding: 8px; transition: background .2s; }
.photo-add:hover { background: var(--surface); }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-add.busy { pointer-events: none; opacity: .7; }

/* ---- Home ---- */
.hello { display: grid; gap: 8px; margin-bottom: 26px; }
.cards { display: grid; gap: 12px; }
.card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 18px; border-radius: var(--r-lg); text-decoration: none; color: inherit;
  background: color-mix(in oklab, var(--surface) 82%, transparent); border: 1px solid color-mix(in oklab, var(--line) 80%, transparent); box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in oklab, var(--primary) 30%, var(--line)); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--tint), color-mix(in oklab, var(--rose) 30%, var(--tint))); color: var(--deep); }
.card .ic svg.i { width: 22px; height: 22px; }
.card b { font: 560 1.35rem/1.1 var(--display); color: var(--deep); display: block; }
.card span.d { color: var(--muted); font-size: .9rem; line-height: 1.4; display: block; margin-top: 3px; }
.card .n { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .go { color: var(--primary); }
.card.feature { background: linear-gradient(135deg, var(--deep), color-mix(in oklab, var(--deep) 75%, var(--primary))); color: #fff; border-color: transparent; }
.card.feature b { color: #fff; }
.card.feature span.d { color: color-mix(in oklab, #fff 75%, transparent); }
.card.feature .ic { background: color-mix(in oklab, #fff 14%, transparent); color: var(--accent); }
.card.feature .go { color: var(--accent); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 14px; }
.section-title h2 { font-size: 1.7rem; }

.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.change { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: color-mix(in oklab, var(--surface) 70%, transparent); border: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.change .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 25%, transparent); }
.change b { font-weight: 500; color: var(--deep); display: block; line-height: 1.35; }
.change small { color: var(--muted); font-size: .8rem; }
.empty { padding: 26px; border-radius: var(--r-lg); text-align: center; color: var(--muted); border: 1px dashed var(--line); }

/* ---- Lists ---- */
.list-head { display: grid; gap: 16px; margin-bottom: 22px; }
.list-head .bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 220px; position: relative; }
.search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; border-radius: 999px; min-height: 46px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tile { display: grid; text-decoration: none; color: inherit; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid color-mix(in oklab, var(--line) 80%, transparent); box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile .img { aspect-ratio: 1; background: var(--tint); position: relative; overflow: hidden; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .img img { transform: scale(1.04); }
.tile .meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.tile .meta b { font: 560 1.18rem/1.15 var(--display); color: var(--deep); }
.tile .meta span { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font: 600 .66rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--deep); }
.badge.sold { background: var(--deep); color: #fff; }
.badge.hidden { background: #fff; color: var(--muted); }
.badge.star { background: var(--accent); }

/* ---- Editor chrome ---- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; margin: 0 0 16px -4px; padding: 6px 8px; border-radius: 10px; }
.back:hover { color: var(--deep); background: color-mix(in oklab, var(--tint) 50%, transparent); }
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid color-mix(in oklab, var(--line) 80%, transparent); box-shadow: 0 -10px 30px -20px rgb(52 19 28 / .35);
}
.savebar .in { width: min(100%, 760px); margin: 0 auto; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.savebar .state { font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; }
.savebar .state .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.savebar .state.clean .pip { background: var(--sage); }
.savebar .btn { min-width: 128px; }
.danger-zone { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.confirm { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--error-soft); border: 1px solid color-mix(in oklab, var(--error) 30%, transparent); }
.confirm .row { display: flex; gap: 10px; flex-wrap: wrap; }
.formerr { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--error-soft); color: var(--error); font-weight: 500; }

/* ---- Publish tracker + toast ---- */
#tracker { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 64px); width: min(100% - 24px, 520px); pointer-events: none; }
#tracker .pub { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--deep); color: #fff; box-shadow: var(--shadow-2); animation: rise .3s var(--ease) both; }
#tracker .pub b { font-weight: 560; display: block; }
#tracker .pub small { color: color-mix(in oklab, #fff 72%, transparent); }
#tracker .pub a { color: var(--accent); font-weight: 600; white-space: nowrap; }
#tracker .pub.live { background: var(--ok); }
#tracker .pub.failed { background: var(--error); }
#tracker .pub .x { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 4px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
#toast { position: fixed; z-index: 50; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); pointer-events: none; }
#toast .t { padding: 12px 18px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 500; box-shadow: var(--shadow-2); animation: rise .25s var(--ease) both; }

/* ---- Misc ---- */
.boot { min-height: 70dvh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in oklab, var(--primary) 20%, transparent); border-top-color: var(--primary); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--tint), color-mix(in oklab, var(--tint) 50%, var(--surface)), var(--tint)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { padding: 22px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 10px; }
.notice ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
code { font-size: .86em; background: var(--tint); padding: 2px 6px; border-radius: 6px; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 2px; z-index: 30; }
.menu-pop .me { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop .me b { display: block; color: var(--deep); }
.menu-pop .me small { color: var(--muted); }
.menu-pop a, .menu-pop button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--deep); background: none; border: 0; cursor: pointer; text-align: left; font-weight: 500; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--tint); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(150deg, var(--tint), color-mix(in oklab, var(--gold) 35%, var(--tint))); font: 600 .95rem/1 var(--text); color: var(--deep); cursor: pointer; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Utility classes (the strict CSP forbids inline style attributes) */
.sk-row { height: 64px; }
.sk-tile { aspect-ratio: .78; }
.sk-page { height: 60vh; }
.gap-24 { height: 24px; }
.span-all { grid-column: 1 / -1; }
.form.tight { gap: 12px; }
.strlist { display: grid; gap: 8px; }
.strrow { display: flex; gap: 8px; }
.strrow .icon-btn { width: 50px; height: 50px; }
.ed-head { display: grid; gap: 10px; margin-bottom: 26px; }

/* Titles get focus on page change for screen readers; no visible ring needed there */
h1[tabindex="-1"]:focus { box-shadow: none; outline: none; }
