@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk Variable";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #08090b;
  --surface: #111317;
  --surface-2: #191c22;
  --surface-3: #23272f;
  --line: #23262e;
  --line-2: #353a45;
  --text: #f4f5f7;
  --soft: #c4c8d1;
  --muted: #878d9a;
  --accent: #c6ff3a;
  --accent-hi: #d6ff6b;
  --accent-ink: #0c1300;
  --like: #ff3b5c;
  --ok: #3ddc97;
  --danger: #ff5d5d;
  --review: #a78bfa;
  --review-ink: #160b33;
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk Variable", "Inter Variable", system-ui, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --r-xs: 6px;
  --bar: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
p { margin: 0 0 12px; }
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }
.ic { flex: none; vertical-align: -4px; }
kbd { font: 600 11px/1 var(--font); padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(8, 9, 11, 0.82); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.topbar-in { height: var(--bar); padding: 0 14px; display: flex; align-items: center; gap: 14px; }
.brand { flex: none; display: inline-flex; align-items: center; }
.brand-word { font: 700 23px/1 var(--display); letter-spacing: -0.055em; color: var(--text); }
.brand-word i { font-style: normal; color: var(--accent); letter-spacing: -0.02em; }
.brand:hover .brand-word i { color: var(--accent-hi); }
.brand-lg .brand-word { font-size: 40px; }

.search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 10px; pointer-events: none; }
.search input[type="search"] { width: 100%; height: 38px; padding: 0 38px 0 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.15s, background 0.15s; }
.search input[type="search"]::placeholder { color: var(--muted); }
.search input[type="search"]:hover { border-color: var(--line-2); }
.search input[type="search"]:focus { background: var(--surface-2); border-color: var(--accent); outline: none; }
.search input:focus ~ kbd { display: none; }

.nav { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.iconbtn { position: relative; width: 38px; height: 38px; padding: 0; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; color: var(--soft); cursor: pointer; transition: background 0.15s, color 0.15s; }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.dot { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--like); color: #fff; font: 700 10px/16px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

.menu { position: relative; margin-left: 4px; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; transition: box-shadow 0.15s; }
.menu summary:hover, .menu[open] summary { box-shadow: 0 0 0 2px var(--accent); }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); animation: rise 0.16s var(--ease); }
.menu-who { padding: 8px 12px 10px; font: 700 15px var(--display); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-sm); text-align: left; cursor: pointer; color: var(--soft); }
.menu-pop a .ic { width: 17px; height: 17px; color: var(--muted); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-3); color: var(--text); }
.menu-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- sort + tag bar ---------- */
.subbar { position: sticky; top: var(--bar); z-index: 20; background: rgba(8, 9, 11, 0.82); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.subbar-in { display: flex; align-items: center; gap: 14px; padding: 8px 14px; }
.seg { flex: none; display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg a { padding: 5px 15px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color 0.15s, background 0.15s; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--text); color: var(--bg); }
.rail { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); padding-right: 40px; }
.rail::-webkit-scrollbar { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--soft); font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.chip:hover { color: var(--accent); border-color: var(--accent); background: rgba(198, 255, 58, 0.06); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s; }
.btn:hover { background: var(--surface-3); border-color: #474d5a; }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost { background: none; border-color: transparent; color: var(--soft); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: rgba(255, 93, 93, 0.12); border-color: var(--danger); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-follow[aria-pressed="false"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-follow[aria-pressed="false"]:hover { background: #fff; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.linkbtn:hover { color: var(--text); text-decoration: underline; }

/* ---------- page shells ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap-wall { max-width: none; padding: 6px 6px 64px; }
.wrap-form { max-width: 780px; }
.wrap-auth { max-width: 440px; padding-top: 56px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.wrap-wall .page-head { padding: 22px 10px 8px; }
.page-head p { margin: 6px 0 0; }

.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); color: var(--soft); }
.notice a { text-decoration: underline; color: var(--text); }
.notice-ok { border-left-color: var(--ok); }
.notice-draft { border-left-color: #ffb020; }
.notice-removed { border-left-color: var(--danger); }

.empty { margin: 16px 10px; padding: 64px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty-lg { border: 0; padding-top: 90px; }
.empty-code { font: 700 96px/1 var(--display); letter-spacing: -0.05em; color: var(--surface-3); margin-bottom: 10px; }
.empty .btn { margin-top: 10px; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--soft); font: 700 10px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.badge-underage, .badge-nonconsensual { background: rgba(255, 93, 93, 0.16); color: var(--danger); }

/* ---------- the wall ----------
   Justified rows: every tile keeps its cover's shape (--r = width / height),
   rows fill the full width, order is preserved. Pure CSS. */
.wall { --row: 320px; display: flex; flex-wrap: wrap; gap: 6px; }
.wall::after { content: ""; flex-grow: 999999; }
.wall-compact { --row: 220px; }
.tile { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row)); overflow: hidden; border-radius: var(--r-xs); background: var(--surface); isolation: isolate; }
.tile::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.tile-link { position: absolute; inset: 0; }
.tile-link img, .tile-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-link img { transition: transform 0.6s var(--ease), opacity 0.4s; }
.js .tile-link img:not(.is-in) { opacity: 0; }
.tile-live { opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.tile.is-live .tile-live { opacity: 1; }
.tile-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.tile-blank .ic { width: 38px; height: 38px; }

.tile-top, .tile-info { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.tile-top { top: 0; padding: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(8, 9, 11, 0.66); backdrop-filter: blur(6px); font: 600 11.5px/1 var(--font); color: #fff; }
.pill .ic { width: 12px; height: 12px; }
.pill-video { background: var(--accent); color: var(--accent-ink); }
.pill-draft { background: #ffb020; color: #1c1200; }
.pill-removed { background: var(--danger); color: #fff; }

.tile-info { bottom: 0; padding: 44px 11px 10px; background: linear-gradient(180deg, transparent, rgba(4, 5, 7, 0.55) 45%, rgba(4, 5, 7, 0.92)); display: flex; flex-direction: column; gap: 2px; transition: padding 0.3s var(--ease); }
.tile-repost { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ok); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-repost .ic { width: 13px; height: 13px; flex: none; }
.profile-tabs { margin: 0 0 18px; }
.tile-title { font: 600 14px/1.3 var(--font); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.tile-meta a { pointer-events: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta a:hover { color: var(--accent); }
.tile-stats { flex: none; display: flex; gap: 9px; }
.tile-stats span { display: inline-flex; align-items: center; gap: 3px; }
.tile-stats .ic { width: 13px; height: 13px; }

.tile-dots { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 3px; padding: 5px 6px; pointer-events: none; }
.tile-dots i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); }
.tile-dots i.on { background: #fff; }
.tile.is-live .tile-top { opacity: 0; }
.tile-top { transition: opacity 0.2s; }

@media (hover: hover) {
  .tile:hover .tile-link img { transform: scale(1.045); }
  .tile:hover .tile-info { padding-bottom: 14px; }
  .tile::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
  .tile:hover::after { opacity: 1; }
}

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 30px 10px 0; }
.pager > :first-child { justify-self: start; }
.pager > :last-child { justify-self: end; }

/* ---------- avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: none; vertical-align: middle; }
.avatar-blank { color: #fff; font-family: var(--display); font-weight: 700; line-height: 1; }

/* ---------- album viewer ---------- */
.viewer { width: 100%; max-width: 1560px; margin: 0 auto; padding: 14px 14px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "media side" "more more"; gap: 18px; align-items: start; }
.viewer-media { grid-area: media; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.viewer-side { grid-area: side; position: sticky; top: calc(var(--bar) + 14px); max-height: calc(100vh - var(--bar) - 28px); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.viewer-more { grid-area: more; margin-top: 26px; }
.viewer-more h2 { margin: 0 4px 12px; }
.viewer-more h2 a:hover { color: var(--accent); }

.strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { position: relative; flex: none; width: 58px; height: 58px; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-2); opacity: 0.6; transition: opacity 0.15s, box-shadow 0.15s; }
.strip a:hover { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.strip b { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.strip b .ic { width: 10px; height: 10px; }

.shot { position: relative; margin: 0; display: flex; justify-content: center; background: #020203; border-radius: var(--r-sm); overflow: hidden; scroll-margin-top: calc(var(--bar) + 14px); }
.shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - var(--bar) - 28px); cursor: zoom-in; }
.shot video { display: block; width: 100%; max-height: calc(100vh - var(--bar) - 28px); background: #000; }
.shot figcaption { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(8, 9, 11, 0.66); backdrop-filter: blur(6px); font: 600 11.5px/1.4 var(--font); color: #fff; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.shot:hover figcaption { opacity: 1; }

.side-card, .comments { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-card { display: flex; flex-direction: column; gap: 14px; }
.side-card h1 { font-size: 24px; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.by-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.by-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.by-text strong { font-family: var(--display); font-size: 16px; }
.by-user:hover strong { color: var(--accent); }
.by-text small { color: var(--muted); font-size: 12.5px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.facts strong { color: var(--text); font-family: var(--display); font-size: 15px; }
.album-desc { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }

.actions { display: flex; align-items: center; gap: 6px; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s; }
.act:hover { background: var(--surface-3); }
.act:active { transform: scale(0.96); }
.act .ic { width: 18px; height: 18px; }
.act-like { flex: 1; }
.act-like[aria-pressed="true"] { color: #fff; border-color: var(--like); background: var(--like); }
.act-like[aria-pressed="true"] .ic { fill: currentColor; animation: pop 0.35s var(--ease); }
.act-save[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.act-repost[aria-pressed="true"] { color: var(--ok); border-color: var(--ok); }
.act-repost[aria-pressed="true"] .ic { animation: pop 0.35s var(--ease); }
.act-save[aria-pressed="true"] .ic { fill: currentColor; }
.act-quiet { width: 40px; padding: 0; border-color: transparent; background: none; color: var(--muted); margin-left: auto; }
@keyframes pop { 40% { transform: scale(1.45); } }

.modbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--muted); font-size: 12.5px; }
.modbar .ic { width: 16px; height: 16px; }
.modbar form { margin: 0; }
.modbar form:first-of-type { margin-left: auto; }

.comments h2 { font-size: 16px; margin-bottom: 14px; }
.comments h2 span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.comments-login a { color: var(--accent); }
.comments-none { margin: 0; }
.comment-form { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.comment-form textarea { flex: 1; min-height: 38px; padding: 8px 14px; border-radius: 19px; background: var(--bg); resize: none; field-sizing: content; max-height: 160px; }
.send { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.send:hover { background: var(--accent-hi); }
.send:active { transform: scale(0.94); }
.send .ic { width: 18px; height: 18px; stroke-width: 2.400; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 10px; }
.comment-main { min-width: 0; flex: 1; }
.comment-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.500px; }
.comment-top a:hover { color: var(--accent); }
.comment-top .muted { font-size: 12px; }
.comment-tools { margin-left: auto; display: flex; gap: 10px; opacity: 0; transition: opacity 0.15s; }
.comment:hover .comment-tools, .comment:focus-within .comment-tools { opacity: 1; }
.comment-tools form { margin: 0; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field > span { font-weight: 600; font-size: 13.500px; color: var(--soft); }
.field small { font-weight: 400; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-fixed { flex: 0 0 220px; }
.field-end { justify-content: flex-end; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198, 255, 58, 0.14); outline: none; }
textarea { resize: vertical; min-height: 44px; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--soft); }
.check input, .radio input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check a { text-decoration: underline; color: var(--text); }
.attest { padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-error { margin: 0; padding: 10px 13px; border-radius: var(--r-sm); background: rgba(255, 93, 93, 0.1); border: 1px solid rgba(255, 93, 93, 0.55); color: #ffb4b4; }

.authbox { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.authbox h1 { font-size: 26px; }
.authbox input { background: var(--bg); }
.authbox-alt { margin: 0; text-align: center; }
.authbox-alt a { color: var(--accent); }

.panel { margin-top: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel h2 { margin-bottom: 14px; }
.panel h2 .muted { font-weight: 500; }
.panel input, .panel textarea, .panel select { background: var(--bg); }
.panel-danger { border-color: rgba(255, 93, 93, 0.3); }
.avatar-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-form input[type="file"] { flex: 1; min-width: 180px; color: var(--muted); }

/* ---------- uploader ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--surface); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(198, 255, 58, 0.05); }
.dropzone .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 4px; }
.dropzone strong { font: 700 17px var(--display); }
.dropzone span { font-size: 13px; }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.filelist:empty { display: none; }
.file { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.file img, .file video { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 9, 11, 0.8); color: #fff; cursor: pointer; display: grid; place-items: center; }
.file-x:hover { background: var(--danger); }
.file-x .ic { width: 14px; height: 14px; }
.file-kind { position: absolute; left: 5px; top: 5px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.file-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, 0.5); }
.file-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }
.file.is-done .file-bar i { background: var(--ok); width: 100%; }
.file.is-failed { outline: 2px solid var(--danger); outline-offset: -2px; }
.file-msg { position: absolute; inset: auto 0 4px 0; padding: 4px 6px; background: rgba(40, 8, 8, 0.94); color: #ffb4b4; font-size: 11px; line-height: 1.3; }

.manage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.manage-item { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.manage-item.is-cover { outline: 2px solid var(--accent); outline-offset: -2px; }
.manage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manage-item .card-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.manage-kind, .manage-cover { position: absolute; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(8, 9, 11, 0.8); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.manage-kind { left: 6px; }
.manage-kind .ic { width: 12px; height: 12px; }
.manage-cover { right: 6px; background: var(--accent); color: var(--accent-ink); }
.manage-tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: flex-end; gap: 6px; }
.manage-tools .btn { background: rgba(8, 9, 11, 0.85); border-color: transparent; }
.manage-tools .ic { width: 15px; height: 15px; }

/* ---------- profile ---------- */
.hero { height: 170px; background:
  radial-gradient(700px 260px at 18% 0%, hsl(var(--h) 80% 45% / 0.55), transparent 70%),
  radial-gradient(600px 240px at 85% 20%, hsl(calc(var(--h) + 70) 80% 50% / 0.4), transparent 70%),
  linear-gradient(180deg, var(--surface-2), var(--bg)); }
.profile { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: -64px 10px 22px; }
.profile > .avatar { box-shadow: 0 0 0 5px var(--bg); font-size: 48px; }
.profile-main { flex: 1; min-width: 220px; }
.profile-main h1 { font-size: 32px; }
.profile-bio { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); max-width: 640px; }
.profile .facts { margin-top: 10px; }
.profile-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; }
.profile-actions form { margin: 0; }

/* ---------- notifications ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); color: var(--soft); }
.note:hover { background: var(--surface); }
.note.is-new { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.note p { margin: 0; }
.note strong { color: var(--text); }
.note p a:not(:first-child) { color: var(--text); text-decoration: underline; }
.note .muted { margin-left: 6px; font-size: 12.5px; }

/* ---------- moderation ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tiles li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.tiles strong { font: 700 28px/1.1 var(--display); letter-spacing: -0.03em; }
.tiles span { color: var(--muted); font-size: 13px; }
.reports, .rows { list-style: none; margin: 0; padding: 0; }
.report { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.report.is-urgent { box-shadow: inset 3px 0 0 var(--danger); padding-left: 14px; }
.report-main { min-width: 0; flex: 1 1 320px; }
.report-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.report-target { margin: 6px 0 0; overflow-wrap: anywhere; }
.report-target a { text-decoration: underline; font-weight: 600; }
.report-details { margin: 6px 0 0; padding: 8px 11px; background: var(--bg); border-radius: var(--r-sm); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--soft); }
.report-acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rows li span { min-width: 0; overflow-wrap: anywhere; }
.rows form { margin: 0; }
.rows a { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }

/* ---------- dialog, toast, lightbox ---------- */
.dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); }
.dialog[open] { animation: rise 0.18s var(--ease); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
.dialog form { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dialog p { margin: 0 0 4px; font-size: 14px; }
.dialog textarea { margin-top: 6px; background: var(--bg); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 11px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); animation: toast-in 0.22s var(--ease); overflow-wrap: anywhere; }
.toast.is-error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2, 2, 3, 0.97); animation: fade 0.15s; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font: 600 13px var(--font); color: rgba(255, 255, 255, 0.7); }
.lightbox-x, .lightbox-nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background 0.15s; }
.lightbox-x:hover, .lightbox-nav:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox-x { top: 12px; right: 12px; width: 42px; height: 42px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- age gate ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(900px 480px at 50% -10%, rgba(198, 255, 58, 0.13), transparent 70%),
  radial-gradient(700px 420px at 50% 115%, rgba(255, 59, 92, 0.1), transparent 70%); }
.gate-box { width: min(440px, 100%); padding: 36px 30px 26px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.gate-18 { margin-top: 6px; padding: 5px 14px; border: 2px solid var(--accent); border-radius: 999px; color: var(--accent); font: 700 15px/1 var(--display); letter-spacing: 0.04em; }
.gate-box h1, .gate-box h2 { font-size: 30px; margin: 0; }
/* Laid over the real page for visitors who have not confirmed yet. */
.gate-over { position: fixed; inset: 0; z-index: 1000; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  background-color: rgba(8, 9, 11, 0.8); }
body.gated { overflow: hidden; }
body.gated > :not(.gate-over):not(script):not(.toast) { filter: blur(22px) saturate(0.6); pointer-events: none; user-select: none; }
.gate-box p { margin: 0; color: var(--soft); }
.gate-box form { width: 100%; margin: 6px 0 0; }
.gate-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--muted) !important; margin-top: 4px !important; }
.gate-links a:hover { color: var(--text); }

/* ---------- prose (policy pages) ---------- */
.prose h1 { margin-bottom: 20px; font-size: 36px; }
.prose h2 { margin: 30px 0 10px; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }
.prose .lead { font-size: 18px; color: var(--text); }
.draft-note { padding: 10px 13px; border: 1px dashed #ffb020; border-radius: var(--r-sm); color: #ffb020 !important; font-size: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-in { padding: 18px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.footer-18 { padding: 2px 8px; border: 1.5px solid var(--muted); border-radius: 999px; font: 700 11px var(--display); color: var(--muted); }
.footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.footer nav a:hover { color: var(--text); }

/* ---------- moderation ---------- */
.notice-pending { border-left-color: var(--review); }
.notice .ic { width: 17px; height: 17px; flex: none; }
.notice-pending .ic { color: var(--review); }
.notice-sent { flex-wrap: nowrap; align-items: flex-start; border-left-color: var(--ok); color: var(--text); }
.notice-sent > span { flex: 1; min-width: 0; }
.notice-sent .ic { color: var(--ok); margin-top: 2px; }

/* Bulk poster: one row per file. */
.wrap-bulk { max-width: 980px; }
.bulk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bulk-list:empty { display: none; }
.bulk-row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.bulk-row.is-done { border-color: rgba(61, 220, 151, 0.5); }
.bulk-row.is-failed { border-color: rgba(255, 93, 93, 0.65); }
.bulk-thumb { position: relative; width: 112px; aspect-ratio: 16 / 10; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-2); }
.bulk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bulk-thumb img:not([src]) { visibility: hidden; }
.bulk-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bulk-fields input[type="text"] { padding: 8px 11px; }
.bulk-title { font-weight: 600; }
.bulk-meta { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 170px; text-align: right; }
.bulk-side .file-x { position: static; }
.bulk-state { font-size: 13px; color: var(--muted); }
.bulk-state.is-done { color: var(--ok); }
.bulk-state.is-failed { color: #ffb4b4; }
.bulk-state a { color: var(--text); text-decoration: underline; }
.bulk-row .file-bar { height: 3px; }
.bulk-row.is-done .file-bar i { background: var(--ok); width: 100%; }
@media (max-width: 640px) {
  .bulk-row { grid-template-columns: 84px minmax(0, 1fr); }
  .bulk-thumb { width: 84px; }
  .bulk-side { grid-column: 1 / -1; width: auto; flex-direction: row-reverse; justify-content: space-between; align-items: center; text-align: left; }
}
.pill-pending { background: var(--review); color: var(--review-ink); }
.menu summary { position: relative; }
.mod-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--review); box-shadow: 0 0 0 2px var(--bg); }
.menu-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--review); color: var(--review-ink); font: 700 11px/20px var(--font); text-align: center; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #03140b; }
.btn-ok:hover { background: #5be8ab; border-color: #5be8ab; }
select.mod-select { width: auto; max-width: 100%; height: 30px; padding: 0 10px; font-size: 13px; background: var(--bg); }

.modbar { flex-direction: column; align-items: stretch; gap: 8px; }
.modbar-head { display: flex; align-items: center; gap: 8px; }
.modbar-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.modbar-row select.mod-select { flex: 1; min-width: 150px; }
.modbar form:first-of-type { margin-left: 0; }
.modbar .linkbtn { font-size: 12px; }

.mod-settings { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.mod-settings strong { color: var(--soft); font-weight: 600; }
.tiles li.tile-hot { border-color: var(--review); }
.tiles li.tile-hot strong { color: var(--review); }
.panel-note { font-size: 13.5px; margin: -6px 0 12px; }

.queue { list-style: none; margin: 0; padding: 0; }
.q-item { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.q-item.is-urgent { box-shadow: inset 3px 0 0 var(--danger); padding-left: 14px; }
.q-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.q-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity 0.15s; }
a.q-thumbs:hover img { opacity: 0.85; }
.q-thumbs.q-one { grid-template-columns: 1fr; }
.q-thumbs.q-one img { aspect-ratio: 4 / 3; }
.q-none { grid-column: 1 / -1; display: grid; place-items: center; aspect-ratio: 3 / 1; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.q-main { min-width: 0; }
.q-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.q-title { display: block; margin-top: 6px; font: 600 16px/1.3 var(--display); overflow-wrap: anywhere; }
a.q-title:hover { color: var(--accent); }
.q-meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.q-meta a { color: var(--soft); }
.q-meta a:hover { color: var(--accent); }
.q-details { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.q-details li { padding: 7px 10px; background: var(--bg); border-radius: var(--r-sm); font-size: 13.5px; color: var(--soft); overflow-wrap: anywhere; white-space: pre-wrap; }
.q-acts { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.q-acts select.mod-select { width: 100%; }
.q-row { display: flex; gap: 6px; }
.q-row .btn { flex: 1; }
.badge-hold-new, .badge-hold-changed { background: rgba(167, 139, 250, 0.16); color: var(--review); }
.badge-hold-words, .badge-copyright, .badge-spam { background: rgba(255, 176, 32, 0.14); color: #ffb020; }
.badge-hold-reported, .badge-illegal { background: rgba(255, 93, 93, 0.16); color: var(--danger); }

.log { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.log li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--soft); }
.log time { flex: none; width: 64px; color: var(--muted); font-size: 12px; padding-top: 1px; }
.log li.is-severe strong { color: #ffb020; }
.log a { color: var(--text); text-decoration: underline; }

.note-sys { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--review); display: grid; place-items: center; flex: none; }

@media (max-width: 860px) {
  .q-item { grid-template-columns: 120px minmax(0, 1fr); }
  .q-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .q-acts select.mod-select { width: auto; flex: 1; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .viewer { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 10px 56px; }
  .viewer-side { display: contents; }
  .side-card { order: 1; }
  .viewer-media { order: 2; }
  .comments { order: 3; }
  .viewer-more { order: 4; margin-top: 14px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .topbar-in { gap: 8px; padding: 0 10px; }
  .brand-word { font-size: 20px; }
  .search input[type="search"] { padding-right: 12px; }
  .nav .btn { padding: 0 11px; }
  .nav .btn-ghost { display: none; }
  .subbar-in { padding: 7px 10px; gap: 10px; }
  .seg a { padding: 5px 11px; }
  .wrap-wall { padding: 3px 3px 56px; }
  .wall { --row: 200px; gap: 3px; }
  .wall-compact { --row: 150px; }
  .tile { border-radius: 3px; }
  .tile-info { padding: 34px 8px 7px; }
  .tile-title { font-size: 13px; }
  .tile-stats span:last-child { display: none; }
  h1 { font-size: 24px; }
  .side-card h1 { font-size: 21px; }
  .field-fixed { flex-basis: 100%; }
  .comment-tools { opacity: 1; }
  .shot { border-radius: 0; margin: 0 -10px; }
  .shot figcaption { opacity: 1; }
  .act span[data-label], .act > span:not([data-count]) { display: none; }
  .act { padding: 0 13px; }
  .hero { height: 120px; }
  .profile { margin-top: -48px; }
  .profile > .avatar { width: 88px !important; height: 88px !important; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
