/* ---------- tokens ----------
   Light: a warm afternoon daydream, sunlight through leaves.
   Dark: the same garden by moonlight. Visitors pick with the ☀ ☾ ◐ switch (data-theme on <html>),
   and "match this device" falls back to the system setting. */
:root {
  color-scheme: light;
  --bg: #f3eef4;
  --sky: linear-gradient(to bottom left, #fcf1e3 0%, #f6edee 42%, #ebe5f3 100%);
  --glow: radial-gradient(ellipse 45% 35% at 100% 0%, rgba(255, 233, 190, 0.7), transparent 70%);
  --shade: radial-gradient(ellipse 85% 75% at 82% 18%, rgba(105, 85, 125, 0.13), transparent 72%);
  --beam: #fff6de;   --beam-o: 0.75;
  --leaf: #6c5c7c;   --leaf-o: 0.26;
  --dapple: #fff0cf; --dapple-o: 0.85; --dapple-soft: 1; /* hazy, creamy sunlight: soft like the moonlight version */
  --prism-spot: 0.4; /* rainbow edges on spots: faint in daylight */
  --mote: #fff1c9;   --grain-o: 0.045;
  --prism-o: 0.15;   --prism-beam-o: 0.16; --prism-blend: normal;
  --surface: rgba(255, 253, 251, 0.82);
  --surface-solid: #fffdfb;
  --surface-2: rgba(244, 237, 241, 0.9);
  --field: rgba(255, 255, 255, 0.78);
  --edge: rgba(255, 255, 255, 0.75);
  --ink: #1f2440;
  --ink-2: #4a4e6b;
  --muted: #72778f;
  --line: rgba(110, 90, 135, 0.16);
  --rose: #b4577f;
  --rose-deep: #96426a;
  --rose-soft: #f7e4ec;
  --lilac: #8d7bc4;
  --lilac-soft: #ece7f8;
  --gold: #a98443;
  --danger: #c0392b;
  --ok: #2f7d5b;
  --primary: linear-gradient(135deg, #b4577f 0%, #9a5f9e 55%, #8467b3 100%);
  --header: rgba(250, 245, 246, 0.66);
  --logo-glow: 0 0 22px rgba(255, 228, 180, 0.9);
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(60, 40, 80, 0.05), 0 10px 30px -10px rgba(90, 60, 120, 0.2);
  --shadow-lift: 0 2px 6px rgba(60, 40, 80, 0.06), 0 24px 46px -16px rgba(150, 70, 120, 0.38);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121124;
    --sky: linear-gradient(to bottom left, #2b2444 0%, #1a1831 45%, #0e0e1d 100%);
    --glow: radial-gradient(ellipse 65% 55% at 100% 0%, rgba(190, 178, 255, 0.3), transparent 70%);
    --shade: none;
    --beam: #cbc2ff;   --beam-o: 0.24;
    --leaf: #04040c;   --leaf-o: 0.62;
    --dapple: #d6d0ff; --dapple-o: 0.22; --dapple-soft: 1;
    --mote: #ffe39a;   --grain-o: 0.07;
  --prism-o: 0.12;   --prism-beam-o: 0.14; --prism-blend: screen;
    --surface: rgba(30, 28, 50, 0.8);
    --surface-solid: #1e1c33;
    --surface-2: rgba(44, 40, 68, 0.9);
    --field: rgba(20, 19, 36, 0.7);
    --edge: rgba(255, 255, 255, 0.07);
    --ink: #f1ecf8;
    --ink-2: #cbc5dd;
    --muted: #9c97b6;
    --line: rgba(200, 190, 255, 0.13);
    --rose: #e79bbb;
    --rose-deep: #f4b8d0;
    --rose-soft: rgba(231, 155, 187, 0.16);
    --lilac: #baaaf0;
    --lilac-soft: rgba(186, 170, 240, 0.16);
    --gold: #dcbd7c;
    --danger: #f08a7e;
    --ok: #72d1a3;
    --primary: linear-gradient(135deg, #c2608e 0%, #a064a8 55%, #8068c4 100%);
    --header: rgba(19, 18, 35, 0.62);
    --logo-glow: 0 0 20px rgba(190, 170, 255, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.4), 0 26px 50px -16px rgba(150, 115, 235, 0.38);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121124;
  --sky: linear-gradient(to bottom left, #2b2444 0%, #1a1831 45%, #0e0e1d 100%);
  --glow: radial-gradient(ellipse 65% 55% at 100% 0%, rgba(190, 178, 255, 0.3), transparent 70%);
    --shade: none;
  --beam: #cbc2ff;   --beam-o: 0.24;
  --leaf: #04040c;   --leaf-o: 0.62;
  --dapple: #d6d0ff; --dapple-o: 0.22; --dapple-soft: 1;
  --mote: #ffe39a;   --grain-o: 0.07;
  --prism-o: 0.12;   --prism-beam-o: 0.14; --prism-blend: screen;
  --surface: rgba(30, 28, 50, 0.8);
  --surface-solid: #1e1c33;
  --surface-2: rgba(44, 40, 68, 0.9);
  --field: rgba(20, 19, 36, 0.7);
  --edge: rgba(255, 255, 255, 0.07);
  --ink: #f1ecf8;
  --ink-2: #cbc5dd;
  --muted: #9c97b6;
  --line: rgba(200, 190, 255, 0.13);
  --rose: #e79bbb;
  --rose-deep: #f4b8d0;
  --rose-soft: rgba(231, 155, 187, 0.16);
  --lilac: #baaaf0;
  --lilac-soft: rgba(186, 170, 240, 0.16);
  --gold: #dcbd7c;
  --danger: #f08a7e;
  --ok: #72d1a3;
  --primary: linear-gradient(135deg, #c2608e 0%, #a064a8 55%, #8068c4 100%);
  --header: rgba(19, 18, 35, 0.62);
  --logo-glow: 0 0 20px rgba(190, 170, 255, 0.45);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.4), 0 26px 50px -16px rgba(150, 115, 235, 0.38);
}

/* a gentle cross-fade when someone flips between light and dark */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease !important;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: transparent; /* the komorebi layer behind everything is the page background */
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: 56px; }
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(32px, 4vw, 44px); }
h2 { font-size: 25px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 36px 20px 0; }
.page-title { margin-top: 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 32px 0 8px; }
.page-head .page-title { margin: 0 0 6px; }
.page-head p { margin: 0; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
::selection { background: var(--rose-soft); }

/* ---------- komorebi: light through leaves, behind every page ---------- */
.komorebi { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.komorebi > :where(div) { position: absolute; inset: 0; } /* low specificity, so layers can overhang the edges */
.k-sky { background: var(--glow), var(--shade, none), var(--sky); }
.k-beams, .k-leaves { inset: -5%; will-change: transform, opacity; }
.k-beams {
  background: var(--beam); opacity: var(--beam-o);
  -webkit-mask: url(/k/beams.webp) right top / cover no-repeat; mask: url(/k/beams.webp) right top / cover no-repeat;
  animation: k-breathe 15s ease-in-out infinite alternate;
}
.k-leaves {
  background: var(--leaf); opacity: var(--leaf-o); transform-origin: 100% 0;
  -webkit-mask: url(/k/leaves.webp) right top / cover no-repeat; mask: url(/k/leaves.webp) right top / cover no-repeat;
  animation: k-sway 9s ease-in-out infinite alternate;
}
/* a fainter second layer of leaves moving out of step, so the shadows change shape in the wind */
.k-leaves-2 { opacity: calc(var(--leaf-o) * 0.45); animation-duration: 6s; animation-delay: -3s; }
/* the sun spots, drawn and moved by komorebi.js */
.k-spots { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a soft rainbow sheen drifting through the sunbeams: each shaft picks up a different colour */
@property --prism-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.k-prism {
  inset: -5%; opacity: calc(var(--prism-beam-o) * var(--beam-k, 1)); mix-blend-mode: var(--prism-blend);
  background: repeating-conic-gradient(from var(--prism-turn) at 106% -22%,
    hsl(350 95% 72%) 0deg, hsl(35 95% 70%) 2.6deg, hsl(60 95% 68%) 5.2deg, hsl(140 80% 66%) 7.8deg,
    hsl(200 90% 70%) 10.4deg, hsl(265 85% 74%) 13deg, hsl(350 95% 72%) 15.6deg);
  -webkit-mask: url(/k/beams.webp) right top / cover no-repeat; mask: url(/k/beams.webp) right top / cover no-repeat;
  animation: k-prism 40s linear infinite;
}
@keyframes k-prism { to { --prism-turn: 15.6deg; } }
/* once komorebi.js is running, the wind drives the leaves and beams instead of the CSS loops */
.k-live .k-leaves { animation: none; }
.k-live .k-beams { animation: none; opacity: calc(var(--beam-o) * var(--beam-k, 1)); }
.k-grain { background: url(/k/grain.png); opacity: var(--grain-o); mix-blend-mode: overlay; }
.k-motes i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--mote);
  box-shadow: 0 0 8px 2px var(--mote); opacity: 0; animation: k-mote 18s linear infinite;
}
.k-motes i:nth-child(1)  { top: 9%;  right: 14%; animation-delay: -2s; }
.k-motes i:nth-child(2)  { top: 18%; right: 31%; animation-delay: -7s; animation-duration: 22s; }
.k-motes i:nth-child(3)  { top: 27%; right: 9%;  animation-delay: -11s; width: 3px; height: 3px; }
.k-motes i:nth-child(4)  { top: 6%;  right: 42%; animation-delay: -4s; animation-duration: 25s; }
.k-motes i:nth-child(5)  { top: 36%; right: 22%; animation-delay: -15s; width: 5px; height: 5px; }
.k-motes i:nth-child(6)  { top: 14%; right: 55%; animation-delay: -9s; animation-duration: 20s; width: 3px; height: 3px; }
.k-motes i:nth-child(7)  { top: 44%; right: 6%;  animation-delay: -13s; animation-duration: 24s; }
.k-motes i:nth-child(8)  { top: 23%; right: 47%; animation-delay: -1s; animation-duration: 27s; width: 3px; height: 3px; }
.k-motes i:nth-child(9)  { top: 52%; right: 30%; animation-delay: -17s; animation-duration: 21s; }
.k-motes i:nth-child(10) { top: 31%; right: 63%; animation-delay: -6s; animation-duration: 26s; width: 3px; height: 3px; }
@keyframes k-breathe { from { opacity: calc(var(--beam-o) * 0.65); } to { opacity: var(--beam-o); } }
@keyframes k-sway {
  from { transform: rotate(0deg) translate(0, 0); }
  to   { transform: rotate(1.1deg) translate(-0.5%, 0.35%); }
}
@keyframes k-mote {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: 0.75; }
  80%  { opacity: 0.55; }
  100% { opacity: 0; transform: translate(-90px, 70px); }
}
@media (prefers-reduced-motion: reduce) {
  .komorebi * { animation: none !important; }
  .k-motes { display: none; }
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--header);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.logo {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 30px; color: var(--ink);
  letter-spacing: 0.01em; line-height: 1; text-shadow: var(--logo-glow); white-space: nowrap;
}
.logo:hover { color: var(--rose); text-decoration: none; }
.logo.small { font-size: 20px; }
.top-tools { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; border: 1px solid var(--line); background: var(--field); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px;
}
.theme-switch {
  display: inline-flex; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; margin: 0;
  background: var(--field);
}
.theme-switch button {
  width: 30px; height: 28px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 14px; line-height: 1; transition: color 0.16s ease, background 0.16s ease;
}
.theme-switch button:hover { color: var(--gold); }
.theme-switch button[aria-checked="true"] { background: var(--gold); color: var(--surface-solid); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link { color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; position: relative; display: inline-flex; align-items: center; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.bell .badge {
  position: absolute; top: 2px; right: 2px; background: var(--rose); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 5px; min-width: 18px; text-align: center;
}
.admin-link { color: var(--gold); font-weight: 600; }
.upload-plus { display: none; }
.admin-link .badge { top: -2px; right: -6px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 999px; display: flex; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column;
}
.menu-pop a, .menu-pop button {
  display: block; text-align: left; padding: 9px 12px; border-radius: 9px; color: var(--ink); font: inherit; font-size: 15px;
  background: none; border: 0; width: 100%; cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 15px;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.1s; white-space: nowrap;
}
.btn:hover { border-color: var(--rose); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgba(150, 70, 130, 0.6); }
.btn-primary:hover { color: #fff; border-color: transparent; box-shadow: 0 10px 26px -8px rgba(150, 70, 140, 0.7); filter: brightness(1.05); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 14px; }
.btn-wide { width: 100%; padding: 12px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--rose); text-decoration: underline; }
.danger-text:hover { color: var(--danger); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 20px 44px; max-width: 780px; margin: 0 auto; }
.eyebrow {
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); letter-spacing: 0.04em;
  margin: 0 auto 14px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 36px; height: 1px; background: linear-gradient(to right, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.hero h1 { font-size: clamp(40px, 6.4vw, 66px); font-weight: 500; line-height: 1.08; text-shadow: var(--logo-glow); }
.hero h1 em { color: var(--rose); font-style: italic; }
.hero p { color: var(--ink-2); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.welcome { margin: 24px 0 0; }
.welcome p { margin: 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; margin: 24px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--ink); border-image: linear-gradient(to right, var(--rose), var(--gold)) 1; }

/* ---------- photo grid (masonry) ---------- */
.grid { columns: 5 230px; column-gap: 16px; }
.grid.masonry { columns: auto; display: flex; gap: 16px; align-items: flex-start; }
.mcol { flex: 1; min-width: 0; }
.card {
  display: block; break-inside: avoid; margin-bottom: 16px; background: var(--surface);
  border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); text-decoration: none; color: var(--ink); }
.card-img { position: relative; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: auto; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1), filter 0.9s ease; }
.card:hover .card-img img { transform: scale(1.035); filter: brightness(1.04) saturate(1.05); }
/* a soft wash of light passes over a photo when you hover it */
.card-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 240, 210, 0.35), transparent 60%);
}
.card:hover .card-img::after { opacity: 1; }
.card.sensitive .card-img img, .card.sensitive:hover .card-img img { filter: blur(22px) saturate(0.8); transform: scale(1.1); }
.show-sensitive .card.sensitive .card-img img { filter: none; transform: none; }
.pill {
  position: absolute; top: 10px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(20, 20, 30, 0.6); color: #fff; backdrop-filter: blur(6px);
}
.pill-multi { right: 10px; }
.pill-sens { left: 10px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; }
.card-user { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink-2); }
.card-user span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-stats { display: flex; gap: 10px; color: var(--muted); flex-shrink: 0; }
.empty {
  text-align: center; padding: 60px 20px; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--serif); font-size: 21px; font-style: italic;
}
.pager { text-align: center; margin: 24px 0; }

/* ---------- avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.avatar-letter {
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600;
  background: linear-gradient(135deg, var(--rose-soft), var(--lilac-soft)); color: var(--rose);
}

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; }
.field-label { font-weight: 500; font-size: 15px; }
.form small { font-weight: 400; color: var(--muted); font-size: 13px; }
input, textarea, select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px var(--lilac-soft); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: auto; margin-top: 4px; accent-color: var(--rose); }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.notice-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface-solid)); color: var(--danger); }
.notice-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface-solid)); color: var(--ok); }
.auth {
  max-width: 460px; margin: 48px auto 0; padding: 32px 30px; background: var(--surface);
  border: 1px solid var(--edge); border-radius: 24px; box-shadow: var(--shadow);
}
.auth h1 { text-align: center; }
.panel { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel h2 { font-size: 22px; }
.panel.danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.avatar-form { flex-direction: row; align-items: center; gap: 20px; }
.avatar-form > div { display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* upload */
.drop {
  position: relative; border: 2px dashed color-mix(in srgb, var(--rose) 35%, var(--line)); border-radius: var(--radius); background: var(--surface);
  text-align: center; transition: border-color 0.15s, background 0.15s;
}
.drop.over { border-color: var(--rose); background: var(--rose-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop label { padding: 40px 20px; cursor: pointer; font-weight: 400; align-items: center; }
.drop label strong { color: var(--rose); font-size: 18px; }
.drop.has-files label { padding: 18px 20px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.previews:empty { display: none; }
.previews figure { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; background: rgba(20,20,30,.6); color: #fff; padding: 2px 7px; border-radius: 999px; }
.preview-x {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(20, 20, 30, 0.65); color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
}

/* doll picker */
.picker { position: relative; display: flex; flex-direction: column; gap: 8px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--lilac-soft); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; }
.chip-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chip-x:hover { color: var(--danger); }
.picker-results {
  position: absolute; top: calc(100% - 24px); left: 0; right: 0; z-index: 5; list-style: none; margin: 0; padding: 6px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
}
.picker-results li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.picker-results li:hover, .picker-results li.active { background: var(--surface-2); }
.picker-results li.none { cursor: default; color: var(--muted); }

/* ---------- post page ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; margin-top: 28px; align-items: start; }
.post-photos { display: flex; flex-direction: column; gap: 14px; position: relative; }
.post-photo { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lift); border: 1px solid var(--edge); }
.post-photo img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; background: var(--surface-2); }
.post-photos.sens .post-photo img { filter: blur(30px); }
.show-sensitive .post-photos.sens .post-photo img { filter: none; }
.show-sensitive .reveal { display: none; }
.reveal {
  position: absolute; z-index: 2; top: 120px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.75); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer;
}
.post-side {
  position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; padding: 22px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow);
}
.author { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.author form { margin: 0; }
.author-link { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.author-link:hover { text-decoration: none; color: var(--ink); }
.author-link span { display: flex; flex-direction: column; line-height: 1.25; }
.caption { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: var(--ink); }
.post-dolls { display: flex; flex-direction: column; gap: 6px; }
.doll-chip, .person-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 15px;
}
.doll-chip:hover, .person-chip:hover { border-color: var(--rose); text-decoration: none; color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 14px; background: var(--rose-soft); color: var(--rose-deep); padding: 4px 11px; border-radius: 999px; }
.tag:hover { text-decoration: none; filter: brightness(0.97); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.actions form { margin: 0; }
.like {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 500; cursor: pointer;
}
.like .heart { color: var(--rose); font-size: 18px; line-height: 1; }
.like.liked { background: var(--rose-soft); border-color: var(--rose); }
.like:hover { border-color: var(--rose); }
.owner-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.owner-actions a { color: var(--muted); }
.comments h2 { font-size: 22px; }
.comment { display: flex; gap: 10px; margin-bottom: 14px; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-head a { color: var(--ink); }
.inline { display: inline; margin: 0; }
.comment-form { gap: 8px; align-items: flex-end; }
.report summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--danger); }
.report-small { display: inline-block; }
.report-form { margin-top: 10px; gap: 8px; min-width: 240px; }
.report[open] { background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.more { margin-top: 48px; }

/* ---------- dolls ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.filters input { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 220px; }
.doll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.doll-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: var(--ink); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}
.doll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); text-decoration: none; color: var(--ink); }
.doll-cover { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--rose-soft), var(--lilac-soft)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.doll-cover img { width: 100%; height: 100%; object-fit: cover; }
.doll-placeholder { font-family: var(--serif); font-style: italic; font-size: 56px; color: var(--rose); opacity: 0.55; }
.doll-placeholder.big { font-size: 110px; }
.doll-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.doll-info strong { font-size: 16px; line-height: 1.3; }
.doll-info .muted { font-size: 14px; }
.doll-head { display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin: 28px 0 32px; align-items: start; }
.doll-head-cover { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--rose-soft), var(--lilac-soft)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift); border: 1px solid var(--edge); }
.doll-head-cover img { width: 100%; height: 100%; object-fit: cover; }
.doll-head-info { display: flex; flex-direction: column; gap: 12px; }
.doll-head-info h1 { margin: 0; }
.brand-link { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--gold); }
.facts { color: var(--ink-2); margin: 0; }
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-2); margin: 0; }
.stat-row strong { color: var(--ink); }
.collect { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.doll-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.owners { margin-bottom: 28px; }
.avatar-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- profile ---------- */
.profile { display: flex; gap: 28px; align-items: center; margin: 36px 0 8px; }
.profile-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-info h1 { margin: 0; }
.profile-info p { margin: 0; }
.profile-info .row form { margin: 0; }

/* ---------- notifications ---------- */
.notifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.notifs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.notifs a { background: var(--surface); border: 1px solid var(--edge); }
.notifs a:hover { background: var(--surface-solid); text-decoration: none; }
.notifs li.unread a { background: var(--rose-soft); }
.notif-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }

/* ---------- admin ---------- */
.report-row { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; flex-wrap: wrap; }
.report-row p { margin: 4px 0 0; }
.report-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.report-actions form { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; border-top: 0; }
.table td form { margin: 0; }
.pill-inline { font-size: 11px; font-weight: 600; background: var(--lilac-soft); color: var(--lilac); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.pill-inline.danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface-solid)); color: var(--danger); }
.search-section { margin-bottom: 32px; }

/* ---------- prose ---------- */
.prose li { margin-bottom: 10px; }
.prose h2 { margin-top: 36px; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid transparent; border-image: linear-gradient(to right, transparent, var(--gold), transparent) 1;
  padding: 24px 20px; color: var(--muted); font-size: 14px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1320px; width: 100%; margin: 0 auto;
}
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); }

/* ---------- people lists (followers, following, blocked) ---------- */
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.person {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius-sm);
}
.people.compact .person { padding: 6px 10px; background: transparent; border-color: var(--line); }
.person form { margin: 0; }
.person-main { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.person-main:hover { text-decoration: none; }
.person-main > span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person-bio { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-row a { color: var(--ink-2); }
.stat-row a:hover { color: var(--rose); text-decoration: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(12, 10, 24, 0.9); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; animation: lb-in 0.25s ease;
}
.lightbox[hidden], .lightbox button[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 96vw; max-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; }
.lightbox img { max-width: 96vw; max-height: 86vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 46px; height: 46px; border-radius: 50%;
  font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.no-scroll { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- explore ---------- */
.explore-section { margin: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.tagcloud .tag { padding: 6px 13px; }
.tagcloud .tag .muted { font-size: 0.8em; margin-left: 2px; }

/* ---------- about, contact, admin extras ---------- */
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.unread-row { background: var(--rose-soft); margin: 0 -24px; padding: 14px 24px; border-radius: 0; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; max-width: 70ch; }
.copy-field { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.form.row { align-items: flex-end; }

/* ---------- messages (private and group chats) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row.spread { justify-content: space-between; }
.chat-inbox h1 { margin: 0; }
.chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chat-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); color: var(--ink);
}
.chat-row:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.chat-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.chat-preview { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row.unread .chat-preview { color: var(--ink); font-weight: 500; }
.chat-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(180, 87, 127, 0.5); }
.group-badge { background: var(--lilac-soft); color: var(--lilac); font-family: var(--serif); }

.chat-page { padding-bottom: 0; }
.chat-back { margin: 0 0 10px; }
.chat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.chat-head h1 { margin: 0; font-size: 30px; line-height: 1.1; }
.chat-head p { margin: 2px 0 0; }
.chat-people summary { cursor: pointer; font-weight: 500; }
.chat-people[open] summary { margin-bottom: 12px; }
.chat-members { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chat-members li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-members form { margin: 0; }
.chat-mini-form { margin-bottom: 14px; }

.chat-box { padding: 6px 0 12px; }
.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.msg-mine .msg-body { align-items: flex-end; }
.msg-name { font-size: 12px; color: var(--muted); padding-left: 12px; }
.bubble {
  margin: 0; padding: 9px 14px; border-radius: 18px 18px 18px 6px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); color: var(--ink); line-height: 1.45;
}
.msg-mine .bubble { background: var(--primary); color: #fff; border-color: transparent; border-radius: 18px 18px 6px 18px; }
.bubble-gone, .msg-mine .bubble-gone { background: transparent; color: var(--muted); border: 1px dashed var(--line); box-shadow: none; font-style: italic; font-size: 14px; }
.msg-photo { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); max-width: 260px; }
.msg-photo img { display: block; width: 100%; height: auto; }
.msg-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 6px; }
.msg-meta form { margin: 0; }
.msg-meta .report summary { font-size: 12px; }
.msg-note { align-self: center; max-width: 100%; font-size: 13px; color: var(--muted); text-align: center; }

.chat-compose {
  position: sticky; bottom: 0; z-index: 5; margin: 0 -20px; padding: 10px 20px 14px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.chat-compose-row {
  display: flex; align-items: flex-end; gap: 8px; padding: 6px; border-radius: 26px;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.chat-compose textarea {
  flex: 1; resize: none; border: 0; background: transparent; padding: 9px 4px; font: inherit; color: var(--ink);
  min-height: 40px; max-height: 180px; outline: none; box-shadow: none;
}
.chat-compose .btn { border-radius: 999px; }
.chat-attach { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); cursor: pointer; flex-shrink: 0; }
.chat-attach:hover { background: var(--surface-2); color: var(--rose); }
.chat-attach-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.chat-attach-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.chat-compose .notice { margin-bottom: 8px; }
.chat-request p { margin-top: 0; }

.report-chat { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--line); }
.report-chat p { margin: 2px 0; }
.report-chat-msg { color: var(--ink); }
.report-chat-photo { max-width: 160px; border-radius: 10px; margin-top: 6px; display: block; }

/* ---------- albums ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.album-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.album-card:hover { text-decoration: none; color: var(--ink); }
/* a little stack of prints behind the cover, like a photo book */
.album-cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(160deg, var(--rose-soft), var(--lilac-soft));
  box-shadow: var(--shadow); border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}
.album-cover::before, .album-cover::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--shadow); z-index: -1; transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.album-cover::before { transform: rotate(-4deg) translate(-4px, 3px); }
.album-cover::after { transform: rotate(3deg) translate(5px, 2px); }
.album-card:hover .album-cover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.album-card:hover .album-cover::before { transform: rotate(-7deg) translate(-8px, 6px); }
.album-card:hover .album-cover::after { transform: rotate(6deg) translate(9px, 4px); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.album-card, .album-cover { isolation: isolate; }
.album-info { display: flex; flex-direction: column; line-height: 1.3; padding: 0 2px; }
.album-new .album-cover { border: 2px dashed color-mix(in srgb, var(--rose) 40%, var(--line)); background: var(--surface); }
.album-new .album-cover::before, .album-new .album-cover::after { display: none; }
.album-plus { font-family: var(--serif); font-size: 64px; color: var(--rose); line-height: 1; }
.album-head { margin: 28px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.album-head h1 { margin: 0; }
.album-head p { margin: 0; }
.album-owner { display: inline-flex; align-items: center; gap: 8px; }
.album-chooser .row { gap: 10px; }
.album-chooser select, .album-chooser input { flex: 1 1 180px; width: auto; }
.post-albums { display: flex; flex-direction: column; gap: 6px; }
.album-tools summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.album-tools summary::-webkit-details-marker { display: none; }
.album-tools summary:hover { color: var(--rose); }
.album-tools-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; align-items: flex-start; }
.album-tool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.album-tool form { margin: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--surface-2); flex-direction: row !important; }
.pick img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, opacity 0.3s ease; }
.pick.sensitive img { filter: blur(14px); }
.show-sensitive .pick.sensitive img { filter: none; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-tick {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.8); color: transparent; border: 2px solid rgba(255, 255, 255, 0.9); font-size: 14px; font-weight: 700;
}
.pick:has(input:checked) { box-shadow: 0 0 0 3px var(--rose); }
.pick:has(input:checked) .pick-tick { background: var(--rose); color: #fff; border-color: #fff; }
.pick:has(input:checked) img { transform: scale(0.94); border-radius: 8px; }
.pick:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 2px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--bg) 60%, transparent); }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .post { grid-template-columns: 1fr; }
  .post-side { position: static; }
  .doll-head { grid-template-columns: 1fr; }
  .doll-head-cover { max-width: 320px; }
}
@media (max-width: 720px) {
  .top-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .logo { font-size: 23px; white-space: nowrap; }
  .top-tools { order: 3; flex-basis: 100%; max-width: none; }
  .theme-switch button { width: 28px; height: 30px; }
  .nav { gap: 2px; }
  .hide-sm { display: none; }
  .nav .btn { padding: 7px 14px; font-size: 14px; }
  .nav .upload-btn { padding: 4px 12px; }
  .upload-text { display: none; }
  .upload-plus { display: inline; font-size: 22px; line-height: 1; }
  .nav-link { padding: 7px 9px; font-size: 14px; }
  .wrap { padding: 0 16px; }
  .narrow { padding: 24px 16px 0; }
  .grid { columns: 2 150px; column-gap: 10px; }
  .grid.masonry { gap: 10px; }
  .card { margin-bottom: 10px; border-radius: 14px; }
  .auth { margin: 24px 16px 0; padding: 26px 20px; }
  .post-side { padding: 18px; }
  .card-meta { padding: 8px 10px; font-size: 13px; }
  .card-user .avatar { display: none; }
  .doll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero { padding: 48px 16px 28px; }
  .eyebrow { font-size: 17px; }
  .hero p { font-size: 16px; }
  .avatar-form { flex-direction: column; align-items: flex-start; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
  .lightbox button { width: 40px; height: 40px; font-size: 26px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .unread-row { margin: 0 -16px; padding: 14px 16px; }
  .msg { max-width: 92%; }
  .chat-compose { margin: 0 -16px; padding: 8px 12px 12px; }
  .chat-head h1 { font-size: 25px; }
}
