:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #111013;
  --surface-raised: #17151a;
  --line: #252228;
  --muted: #96909a;
  --text: #f5f3f5;
  --accent: #d58baf;
  --accent-strong: #e6a6c3;
  --green: #8eae91;
  --danger: #ca7e89;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(1px); }
.ambient-one { width: 550px; height: 550px; top: -270px; left: 17%; background: radial-gradient(circle, rgba(84,38,61, .13), transparent 70%); }
.ambient-two { width: 490px; height: 490px; right: -210px; top: 40%; background: radial-gradient(circle, rgba(84,38,61, .09), transparent 70%); }
.topbar { min-height: 84px; max-width: 1320px; margin: auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; min-width: 210px; font-size: 18px; font-weight: 760; letter-spacing: -.06em; }
.wordmark-light { color: var(--accent-strong); }
.wordmark small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .2em; }
.wordmark-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(230,166,195, .43); border-radius: 11px; color: var(--accent-strong); font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px; color: #a4aaa0; border: 1px solid transparent; background: transparent; border-radius: 8px; cursor: pointer; font-size: 12px; }
.nav-item span { font-size: 17px; }
.nav-item:hover, .nav-item.active { color: var(--text); background: rgba(255,255,255,.045); border-color: var(--line); }
.nav-item.active::after { position: absolute; content: ""; width: 17px; height: 2px; left: 16px; bottom: -8px; background: var(--accent-strong); }
.topbar-actions { min-width: 210px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, border .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button span { font-size: 16px; }
.button-primary { color: #150e12; background: var(--accent-strong); }
.button-primary:hover { background: #f0bfd2; }
.button-secondary, .button-discord { color: var(--text); background: rgba(255,255,255,.045); border-color: var(--line); }
.button-secondary:hover, .button-discord:hover { border-color: rgba(230,166,195, .5); }
.button-compact { min-height: 38px; padding: 0 13px; gap: 8px; }
.icon-button { width: 39px; height: 39px; color: var(--accent-strong); border: 1px solid rgba(230,166,195,.3); border-radius: 9px; background: rgba(213,139,175,.08); font-size: 22px; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); border: 0; background: transparent; cursor: pointer; font-size: 11px; }
.logout-button, .text-button { color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 11px; }
.logout-button:hover, .text-button:hover { color: var(--accent-strong); }
.avatar { width: 36px; height: 36px; display: inline-grid; flex: 0 0 auto; place-items: center; object-fit: cover; border-radius: 50%; background: #252228; }
.avatar-fallback { color: var(--accent-strong); border: 1px solid rgba(230,166,195,.35); font-weight: 700; }

.app-main { max-width: 1320px; min-height: calc(100vh - 145px); margin: auto; padding: 42px 36px 64px; }
.welcome-card { min-height: 590px; display: grid; grid-template-columns: 1.04fr .96fr; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(125deg, rgba(17,16,19,.98), rgba(11,10,13,.93)); }
.welcome-copy { padding: clamp(36px, 6vw, 82px); align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.eyebrow i { width: 6px; height: 6px; display: inline-block; background: var(--accent-strong); border-radius: 50%; box-shadow: 0 0 14px var(--accent); }
h1, h2, p { margin-top: 0; }
.welcome-copy h1 { margin: 22px 0 18px; font-size: clamp(42px, 6.5vw, 76px); line-height: .99; letter-spacing: -.075em; font-weight: 690; }
.welcome-copy h1 em, .feed-heading h1 em, .page-heading h1 em { color: var(--accent-strong); font-style: normal; }
.welcome-copy > p { max-width: 475px; margin-bottom: 26px; color: #a49ba6; font-size: 15px; line-height: 1.8; }
.access-note { display: flex; align-items: center; gap: 12px; margin-top: 38px; color: #96909a; font-size: 10px; line-height: 1.7; }
.access-lock { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; color: var(--accent-strong); border: 1px solid var(--line); border-radius: 7px; }
.welcome-art { min-height: 480px; position: relative; display: grid; place-items: center; overflow: hidden; border-left: 1px solid var(--line); background: radial-gradient(ellipse at 50% 54%, rgba(213,139,175,.12), transparent 57%), linear-gradient(160deg, #141116, #0b0e0b); }
.art-orbit { position: absolute; width: 350px; height: 350px; border: 1px solid rgba(230,166,195,.17); border-radius: 50%; }
.orbit-b { width: 255px; height: 255px; border-color: rgba(230,166,195,.26); }
.art-mark { width: 175px; height: 175px; display: grid; place-items: center; position: relative; border: 1px solid rgba(230,166,195,.48); border-radius: 50%; color: #f4e7ef; background: radial-gradient(circle, rgba(213,139,175,.16), rgba(10,9,13,.6)); box-shadow: 0 0 90px rgba(213,139,175,.1), inset 0 0 44px rgba(213,139,175,.12); font-size: 92px; font-weight: 680; letter-spacing: -.12em; }
.art-mark span { color: var(--accent-strong); font-size: 21px; transform: translate(22px, -33px); }
.art-label { position: absolute; left: 40px; right: 40px; display: flex; justify-content: space-between; color: #776f7b; font-size: 8px; letter-spacing: .18em; }
.art-label-top { top: 35px; }
.art-label-bottom { bottom: 35px; }
.art-label-bottom b { color: var(--accent-strong); font-weight: 650; }
.art-tick { position: absolute; width: 20px; height: 1px; background: var(--accent-strong); }
.art-tick-one { top: 26%; right: 18%; transform: rotate(35deg); }
.art-tick-two { bottom: 24%; left: 17%; transform: rotate(-35deg); }

.app-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(250px, 330px); justify-content: center; gap: 34px; }
.event-banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; min-height: 75px; margin-bottom: -11px; padding: 14px 20px; border: 1px solid rgba(230,166,195,.24); border-radius: 10px; background: linear-gradient(100deg, rgba(84,38,61,.15), rgba(17,16,19,.92)); }
.event-pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 14px var(--accent); }
.event-banner div { display: grid; gap: 4px; }
.event-banner small, .event-lock { color: var(--accent-strong); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.event-banner strong { font-size: 13px; }
.event-banner div span { color: var(--muted); font-size: 11px; }
.event-lock { margin-left: auto; }
.content-column { min-width: 0; }
.page-view { min-width: 0; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 8px 0 20px; }
.feed-heading h1, .page-heading h1 { margin: 11px 0 0; font-size: 34px; letter-spacing: -.06em; font-weight: 640; }
.stories-strip { display: flex; gap: 18px; overflow-x: auto; margin-bottom: 23px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(17,16,19,.9); scrollbar-width: thin; }
.story-card { min-width: 65px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #a49ba6; border: 0; background: transparent; font-size: 9px; }
.story-button { cursor: pointer; }
.story-ring { width: 54px; height: 54px; display: grid; place-items: center; padding: 3px; border: 1.5px solid var(--accent); border-radius: 50%; background: #0b0a0d; }
.story-ring .avatar { width: 45px; height: 45px; }
.story-button.viewed .story-ring { border-color: #66616b; }
.story-add { width: 54px; height: 54px; color: var(--accent-strong); border: 1px dashed rgba(230,166,195,.6); border-radius: 50%; background: rgba(213,139,175,.08); font-size: 23px; cursor: pointer; }
.story-empty { flex-direction: row; min-width: 145px; }
.post-card { overflow: hidden; margin-bottom: 21px; border: 1px solid var(--line); border-radius: 10px; background: #111013; }
.post-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; }
.post-author { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; cursor: pointer; }
.post-author span:last-child { display: grid; gap: 4px; }
.post-author strong, .side-profile strong { font-size: 11px; }
.post-author small, .side-profile small { color: var(--muted); font-size: 9px; }
.more-button { padding: 8px; color: var(--muted); border: 0; background: transparent; cursor: pointer; letter-spacing: 2px; }
.post-image { width: 100%; max-height: 680px; display: block; aspect-ratio: 1 / 1; object-fit: cover; background: #070708; }
.post-actions { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px 2px; }
.post-actions > div { display: flex; gap: 10px; }
.post-action { width: 34px; height: 34px; color: #d6cbd4; border: 0; background: transparent; font-size: 23px; cursor: pointer; }
.post-action:hover, .post-action.liked { color: var(--accent-strong); }
.post-date { color: var(--muted); font-size: 9px; }
.like-count { margin: 0 15px 7px; padding: 0; color: #f5f3f5; border: 0; background: transparent; font-size: 10px; font-weight: 720; cursor: pointer; }
.post-caption { margin: 0 15px 8px; color: #c8becb; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-caption strong { color: var(--text); }
.comment-toggle { margin: 0 15px 8px; padding: 0; color: var(--muted); border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.comment-list { display: none; margin: 0 15px 7px; }
.comment-list.expanded { display: grid; gap: 5px; }
.comment-line { margin: 0; color: #b7acba; font-size: 10px; line-height: 1.5; }
.comment-line strong { color: var(--text); }
.comment-form { display: flex; align-items: center; gap: 8px; margin: 0 14px; border-top: 1px solid var(--line); }
.comment-form input { min-width: 0; flex: 1; padding: 12px 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 10px; }
.comment-form button { padding: 9px 0 9px 10px; color: var(--accent-strong); border: 0; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.empty-state { display: grid; justify-items: center; gap: 12px; margin-top: 25px; padding: 60px 28px; text-align: center; border: 1px dashed rgba(230,166,195,.24); border-radius: 12px; background: rgba(17,16,19,.72); }
.empty-state h2 { margin: 4px 0 0; font-size: 19px; }
.empty-state p { color: var(--muted); font-size: 11px; }
.empty-mark { width: 54px; height: 54px; display: grid; place-items: center; color: var(--accent-strong); border: 1px solid rgba(230,166,195,.4); border-radius: 15px; font-size: 26px; }
.side-column { padding-top: 13px; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: rgba(17,16,19,.84); }
.community-card { min-height: 200px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 5%, rgba(84,38,61,.15), transparent 42%), #111013; }
.side-card-head { display: flex; justify-content: space-between; }
.live-indicator { color: #66616b; font-size: 10px; }
.live-indicator.community-live { color: var(--accent-strong); text-shadow: 0 0 12px var(--accent); }
.community-card h2 { margin: 20px 0 10px; font-size: 20px; line-height: 1.2; letter-spacing: -.04em; }
.community-card > p { max-width: 250px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.side-card-foot { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 7px; letter-spacing: .13em; }
.side-card-foot b { color: var(--accent-strong); }
.side-profile { margin-top: 14px; }
.side-profile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.side-profile-top > div { display: grid; gap: 4px; }
.side-profile .text-button { display: block; margin-top: 10px; padding: 0; }
.side-legal { margin: 19px 4px; color: #827784; font-size: 8px; letter-spacing: .11em; }
.side-legal span { color: var(--accent); }
.site-footer { max-width: 1320px; min-height: 60px; margin: auto; padding: 0 36px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #96909a; font-size: 8px; letter-spacing: .13em; }
.site-footer i { color: var(--accent-strong); font-style: normal; }
.site-footer b { margin-left: 9px; color: var(--accent-strong); }

.page-heading { margin: 13px 0 23px; }
.page-heading h1 { margin-top: 10px; }
.page-heading p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.search-form { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-form > span { color: var(--accent-strong); font-size: 20px; }
.search-form input { min-width: 0; flex: 1; padding: 14px 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-form button { padding: 8px 11px; color: var(--accent-strong); border: 0; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.person-card { display: grid; justify-items: center; gap: 8px; padding: 18px 12px; text-align: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.person-card .avatar { width: 56px; height: 56px; }
.person-card strong { font-size: 11px; }
.person-card > span { margin-top: -5px; color: var(--muted); font-size: 9px; }
.person-card small { color: #a49ba6; font-size: 9px; }
.person-card .button { min-height: 33px; font-size: 9px; }

.profile-card { display: grid; grid-template-columns: 130px 1fr; gap: 22px; margin: 12px 0 27px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(120deg, #151218, #111013); }
.profile-hero { position: relative; display: grid; place-items: center; min-height: 130px; }
.profile-hero .avatar { width: 95px; height: 95px; position: relative; z-index: 1; border: 3px solid #111013; }
.profile-halo { position: absolute; width: 115px; height: 115px; border: 1px solid rgba(230,166,195,.43); border-radius: 50%; box-shadow: 0 0 25px rgba(213,139,175,.1); }
.profile-details { align-self: center; }
.profile-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-title h1 { margin: 8px 0 3px; font-size: 23px; letter-spacing: -.04em; }
.profile-handle { margin: 0; color: var(--muted); font-size: 10px; }
.profile-bio { margin: 13px 0; color: #c8becb; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.profile-stats { display: flex; gap: 20px; color: var(--muted); font-size: 9px; }
.profile-stats b { color: var(--text); }
.profile-post-heading { display: flex; align-items: end; justify-content: space-between; padding: 0 1px 11px; border-bottom: 1px solid var(--line); }
.profile-post-heading h2 { margin: 5px 0 0; font-size: 16px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 13px; }
.profile-grid-item { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; background: var(--surface); cursor: pointer; }
.profile-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.profile-grid-item:hover img { transform: scale(1.04); }
.profile-grid-item span { position: absolute; right: 8px; bottom: 8px; padding: 4px 6px; color: white; border-radius: 5px; background: rgba(0,0,0,.65); font-size: 9px; }
.empty-inline { margin: 0; padding: 18px 0; color: var(--muted); font-size: 10px; }
.loading-panel { padding: 30px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 11px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.admin-stats article { min-height: 91px; display: grid; align-content: center; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-stats span, .admin-stats small { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.admin-stats b { font-size: 22px; line-height: 1; }
.admin-panel { margin: 13px 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: rgba(17,16,19,.83); }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.admin-panel-heading h2 { margin: 5px 0 0; font-size: 16px; letter-spacing: -.03em; }
.admin-count { color: var(--muted); font-size: 9px; }
.status-badge { padding: 6px 9px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.status-online { color: var(--accent-strong); border-color: rgba(230,166,195,.3); }
.status-offline { color: #c18e82; }
.admin-settings-form, .modal-form { display: grid; gap: 14px; }
.admin-settings-form > label:not(.event-toggle), .modal-form > label:not(.upload-drop) { display: grid; gap: 7px; color: #c8becb; font-size: 10px; }
.admin-settings-form input:not([type="checkbox"]), .admin-settings-form textarea, .modal-form input:not([type="file"]), .modal-form textarea { width: 100%; padding: 11px 12px; color: var(--text); outline: none; border: 1px solid var(--line); border-radius: 6px; background: #0b0e0b; font-size: 11px; resize: vertical; }
.admin-settings-form input:focus, .admin-settings-form textarea:focus, .modal-form input:focus, .modal-form textarea:focus { border-color: rgba(230,166,195,.55); }
.field-hint { color: var(--muted); font-size: 9px; font-weight: 400; }
.event-toggle { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #111013; cursor: pointer; }
.event-toggle input { position: absolute; opacity: 0; }
.toggle-art { width: 35px; height: 20px; position: relative; flex: 0 0 auto; border-radius: 12px; background: #302a33; transition: background .15s; }
.toggle-art::after { content: ""; width: 14px; height: 14px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; transition: transform .15s; }
.event-toggle input:checked + .toggle-art { background: #80566c; }
.event-toggle input:checked + .toggle-art::after { transform: translateX(15px); }
.event-toggle > span:last-child { display: grid; gap: 4px; }
.event-toggle b { font-size: 10px; }
.event-toggle small { color: var(--muted); font-size: 9px; }
.admin-discord-ids { display: grid; gap: 7px; padding: 11px 0; border-top: 1px solid var(--line); }
.admin-discord-ids span { display: flex; justify-content: space-between; gap: 10px; }
.admin-discord-ids small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.admin-discord-ids b { overflow-wrap: anywhere; text-align: right; font-size: 9px; font-weight: 500; }
.inline-error { margin-bottom: 13px; padding: 10px; color: #f0bfd2; border: 1px solid rgba(202,126,137,.35); border-radius: 6px; background: rgba(202,126,137,.08); font-size: 10px; }
.compact-search { margin: 0 0 12px; }
.compact-search input { padding: 11px 0; }
.moderation-list { display: grid; }
.moderation-row, .audit-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.moderation-row .avatar { width: 32px; height: 32px; }
.moderation-row > div { min-width: 0; flex: 1; }
.moderation-row strong { font-size: 10px; }
.moderation-row strong small { color: var(--muted); font-size: 9px; font-weight: 400; }
.moderation-row p { margin: 4px 0 2px; overflow: hidden; color: #96909a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.moderation-row time, .audit-row small { color: var(--muted); font-size: 8px; }
.danger-button, .restore-button { flex: 0 0 auto; padding: 7px 9px; color: #e4a7a7; border: 1px solid rgba(202,126,137,.25); border-radius: 6px; background: rgba(202,126,137,.07); font-size: 9px; cursor: pointer; }
.restore-button { color: var(--accent-strong); border-color: rgba(230,166,195,.25); background: rgba(213,139,175,.07); }
.audit-row { align-items: flex-start; }
.audit-row > div { display: grid; gap: 4px; }
.audit-row strong { font-size: 10px; }
.audit-dot { width: 7px; height: 7px; margin: 4px 3px; border-radius: 50%; background: var(--accent-strong); }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.modal { width: min(100%, 480px); max-height: min(90vh, 780px); overflow: auto; padding: 21px; border: 1px solid rgba(230,166,195,.2); border-radius: 12px; background: #111013; box-shadow: 0 22px 90px rgba(0,0,0,.48); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal-heading h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.04em; }
.modal-close { width: 30px; height: 30px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: 20px; cursor: pointer; }
.modal-form { gap: 15px; }
.modal-form .button { margin-top: 2px; }
.upload-drop { min-height: 150px; display: grid; justify-items: center; align-content: center; gap: 8px; border: 1px dashed rgba(230,166,195,.33); border-radius: 8px; background: rgba(213,139,175,.035); cursor: pointer; }
.upload-drop input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent-strong); border: 1px solid rgba(230,166,195,.4); border-radius: 50%; font-size: 20px; }
.upload-drop strong { font-size: 11px; }
.upload-drop small { color: var(--muted); font-size: 9px; }
.modal-post-image, .story-viewer img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 7px; background: #070708; }
.story-viewer { display: grid; justify-items: start; gap: 10px; }
.story-viewer p { margin: 0; color: #f5f3f5; font-size: 12px; white-space: pre-wrap; }
.story-viewer small { color: var(--muted); font-size: 9px; }
.people-list { display: grid; }
.people-list article { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.people-list article > div { display: grid; gap: 4px; }
.people-list strong { font-size: 11px; }
.people-list small { color: var(--muted); font-size: 9px; }
.modal-open { overflow: hidden; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 22px; max-width: min(430px, calc(100% - 48px)); padding: 12px 16px; opacity: 0; transform: translateY(12px); pointer-events: none; color: #f5f3f5; border: 1px solid rgba(230,166,195,.3); border-radius: 7px; background: #17151a; box-shadow: 0 12px 35px rgba(0,0,0,.3); font-size: 11px; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .app-main { padding: 28px 22px 48px; }
  .topbar { padding: 0 22px; gap: 15px; }
  .wordmark { min-width: auto; }
  .topbar-actions { min-width: auto; }
  .app-layout { grid-template-columns: minmax(0, 680px); }
  .side-column { display: none; }
  .welcome-card { grid-template-columns: 1fr .75fr; min-height: 500px; }
  .welcome-copy { padding: 36px; }
  .welcome-art { min-height: 420px; }
  .art-orbit { width: 280px; height: 280px; }
  .orbit-b { width: 210px; height: 210px; }
  .art-mark { width: 140px; height: 140px; font-size: 75px; }
}

@media (max-width: 640px) {
  .topbar { min-height: 70px; padding: 0 15px; flex-wrap: wrap; }
  .wordmark { gap: 8px; font-size: 15px; }
  .wordmark-icon { width: 31px; height: 31px; }
  .wordmark small { font-size: 7px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .button { min-height: 36px; gap: 8px; padding: 0 10px; font-size: 9px; }
  .topbar-actions .avatar { width: 29px; height: 29px; }
  .user-chip { gap: 5px; padding: 0; font-size: 9px; }
  .logout-button { font-size: 9px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 3px; padding-bottom: 8px; }
  .nav-item { min-height: 34px; gap: 5px; padding: 0 8px; font-size: 9px; }
  .nav-item span { font-size: 14px; }
  .nav-item.active::after { bottom: -4px; left: 9px; }
  .app-main { min-height: calc(100vh - 120px); padding: 17px 13px 36px; }
  .welcome-card { min-height: 0; grid-template-columns: 1fr; }
  .welcome-copy { padding: 35px 24px 27px; }
  .welcome-copy h1 { font-size: clamp(43px, 13vw, 65px); }
  .welcome-copy > p { font-size: 13px; }
  .access-note { margin-top: 26px; }
  .welcome-art { min-height: 275px; border-top: 1px solid var(--line); border-left: 0; }
  .art-orbit { width: 220px; height: 220px; }
  .orbit-b { width: 165px; height: 165px; }
  .art-mark { width: 112px; height: 112px; font-size: 60px; }
  .art-label { left: 18px; right: 18px; font-size: 7px; }
  .art-label-top { top: 19px; }
  .art-label-bottom { bottom: 19px; }
  .feed-heading { align-items: center; margin-top: 8px; }
  .feed-heading h1, .page-heading h1 { font-size: 27px; }
  .event-banner { align-items: flex-start; padding: 13px; }
  .event-lock { max-width: 95px; text-align: right; line-height: 1.5; }
  .stories-strip { gap: 12px; padding: 11px; }
  .post-image { max-height: 550px; }
  .profile-card { grid-template-columns: 76px 1fr; gap: 12px; padding: 14px; }
  .profile-hero { min-height: 75px; }
  .profile-hero .avatar { width: 63px; height: 63px; }
  .profile-halo { width: 72px; height: 72px; }
  .profile-title { align-items: flex-start; }
  .profile-title h1 { font-size: 17px; }
  .profile-title .button { min-height: 32px; padding: 0 8px; font-size: 8px; }
  .profile-bio { margin: 9px 0; font-size: 9px; }
  .profile-stats { gap: 10px; font-size: 8px; }
  .people-grid { gap: 8px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-panel { padding: 13px; }
  .admin-discord-ids span { display: grid; gap: 5px; }
  .admin-discord-ids b { text-align: left; }
  .site-footer { min-height: 55px; padding: 0 14px; font-size: 7px; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

body:not(.is-authenticated) .ambient,
body:not(.is-authenticated) .topbar,
body:not(.is-authenticated) .site-footer {
  display: none;
}
body:not(.is-authenticated) .app-main {
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}
.welcome-card {
  position: relative;
  isolation: isolate;
  grid-template-columns: 72px minmax(0, 1.25fr) minmax(340px, .75fr);
  width: 100%;
  height: 100svh;
  min-height: 640px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #070708;
}
.landing-rail {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 22px;
  padding: 20px 10px;
  border-right: 1px solid #28242b;
  background: #08080a;
}
.brand-login { display: inline-flex; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #654154;
  border-radius: 9px;
  color: var(--accent-strong);
  font: 600 19px/1 Georgia, serif;
}
.landing-rail-label,
.landing-rail-index {
  color: #827784;
  font-size: 8px;
  letter-spacing: .17em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.landing-rail-index { margin-top: auto; color: #5d5661; }
.landing-main {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.5vw, 56px);
}
.landing-topline,
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #827784;
  font-size: 8px;
  letter-spacing: .15em;
}
.landing-topline > span:last-child,
.landing-footer b { color: #b7acba; }
.landing-topline i,
.landing-info-foot i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(142,174,145,.5);
}
.landing-content {
  width: min(760px, 100%);
  padding: 36px 0 48px;
}
.landing-content .eyebrow {
  color: #b58a9e;
  font-size: 9px;
  letter-spacing: .19em;
}
.landing-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 20px 0 24px;
  font-size: clamp(48px, 7vw, 108px);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 500;
}
.landing-title strong { color: var(--accent-strong); font-weight: 600; }
.login-description {
  max-width: 520px;
  margin: 0;
  color: #a49ba6;
  font-size: 12px;
  line-height: 1.75;
}
.landing-main .button-discord {
  width: min(360px, 100%);
  min-height: 46px;
  justify-content: flex-start;
  margin-top: 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #150e12;
  background: var(--accent);
  font-weight: 650;
}
.landing-main .button-discord:hover { background: var(--accent-strong); }
.landing-main .button-discord svg { width: 18px; height: 18px; }
.landing-main .button-discord span:last-child { margin-left: auto; font-size: 16px; }
.landing-access-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #928895;
  font-size: 9px;
  line-height: 1.7;
}
.landing-access-note .lock-mark {
  width: 31px;
  height: 31px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #302a33;
  border-radius: 7px;
  color: var(--accent);
}
.landing-footer {
  border-top: 1px solid #252228;
  padding-top: 14px;
  font-size: 8px;
}
.landing-footer i { color: var(--accent); font-style: normal; }
.landing-footer b { font-weight: 650; }
.landing-info {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(26px, 3.5vw, 52px);
  border-left: 1px solid #2a252c;
  background: #0b0a0d;
}
.landing-info > :not(.landing-watermark) { position: relative; z-index: 1; }
.landing-info-head,
.landing-info-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #827784;
  font-size: 8px;
  letter-spacing: .13em;
}
.landing-info-head { padding-bottom: 17px; border-bottom: 1px solid #252228; }
.landing-info-head span:last-child { color: #b7acba; }
.landing-system-status,
.landing-info-row {
  border: 1px solid #302a33;
  border-radius: 8px;
  background: #111013;
}
.landing-system-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 11px;
  padding: 12px;
}
.landing-system-status > div { display: flex; align-items: center; gap: 9px; }
.landing-system-status strong { font-size: 10px; font-weight: 550; }
.landing-system-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(213,139,175,.4);
}
.landing-system-indicator.community-live { background: var(--green); box-shadow: 0 0 10px rgba(142,174,145,.5); }
.landing-status { color: #b58a9e; font: 7px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.landing-status-live { color: var(--green); }
.landing-info-list { display: grid; gap: 8px; }
.landing-info-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 9px;
  padding: 11px 12px;
}
.landing-info-index { color: var(--accent); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.landing-info-row strong { display: block; margin: 0 0 4px; font-size: 10px; font-weight: 600; }
.landing-info-row p { margin: 0; color: #928895; font-size: 9px; line-height: 1.5; }
.landing-info-arrow { padding-top: 1px; color: #827784; font-size: 7px; letter-spacing: .08em; text-align: right; }
.landing-image-card {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  margin-top: 13px;
  border: 1px solid #302a33;
  border-radius: 8px;
  background: #111013;
}
.landing-image-card-head,
.landing-image-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  color: #827784;
  font-size: 7px;
  letter-spacing: .11em;
}
.landing-image-stage {
  position: relative;
  display: grid;
  min-height: 125px;
  flex: 1;
  place-items: center;
  overflow: hidden;
  border-block: 1px solid #302a33;
  background: radial-gradient(ellipse at center, rgba(213,139,175,.11), transparent 64%), #0b0a0d;
}
.landing-image-stage::before,
.landing-image-stage::after {
  position: absolute;
  width: 150px;
  height: 74px;
  border: 1px solid rgba(213,139,175,.18);
  border-radius: 50%;
  content: "";
}
.landing-image-stage::after { transform: rotate(-38deg); }
.landing-image-placeholder { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.landing-image-placeholder-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230,166,195,.45);
  border-radius: 50%;
  color: #f4e7ef;
  background: rgba(213,139,175,.08);
  font: 500 31px/1 Georgia, serif;
}
.landing-image-placeholder strong,
.landing-image-placeholder small { display: block; }
.landing-image-placeholder strong { font-size: 8px; letter-spacing: .14em; }
.landing-image-placeholder small { margin-top: 4px; color: #827784; font-size: 7px; letter-spacing: .08em; }
.landing-carousel-count { position: absolute; right: 11px; bottom: 9px; color: var(--accent-strong); font: 7px ui-monospace, SFMono-Regular, Consolas, monospace; }
.landing-info-foot { margin-top: 15px; padding-top: 12px; border-top: 1px solid #252228; }
.landing-info-foot strong { color: #b7acba; font-size: 7px; font-weight: 500; }
.landing-watermark {
  position: absolute;
  z-index: 0;
  right: -.04em;
  bottom: -.19em;
  color: rgba(213,139,175,.035);
  font-size: clamp(210px, 31vw, 440px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.1em;
  pointer-events: none;
}
.topbar { background: var(--bg); border-bottom-color: var(--line); }
.topbar .button-discord { border-color: var(--line); background: rgba(255,255,255,.045); color: var(--text); }
.nav-item:hover,
.nav-item.active { border-color: var(--line); background: rgba(255,255,255,.045); }
.event-banner { border-color: rgba(230,166,195,.24); background: linear-gradient(100deg, rgba(84,38,61,.15), rgba(17,16,19,.92)); }
.event-pulse { background: var(--accent-strong); box-shadow: 0 0 14px var(--accent); }
.event-banner small,
.event-lock { color: var(--accent-strong); }
.side-card,
.post-card,
.profile-card,
.page-heading,
.admin-panel,
.loading-panel,
.modal,
.admin-stats article { border-color: var(--line); background-color: var(--surface); }
.button-primary { color: #150e12; background: var(--accent); }
.button-primary:hover { background: var(--accent-strong); }
.icon-button,
.avatar-fallback,
.restore-button { color: var(--accent-strong); border-color: rgba(230,166,195,.3); background: rgba(213,139,175,.08); }
.event-toggle input:checked + .toggle-art { background: #80566c; }
.upload-drop { border-color: rgba(230,166,195,.33); background: rgba(213,139,175,.035); }
.upload-icon { color: var(--accent-strong); border-color: rgba(230,166,195,.4); }

@media (max-width: 960px) {
  .welcome-card {
    grid-template-columns: 54px minmax(0, 1fr);
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .landing-main { min-height: 680px; }
  .landing-info {
    grid-column: 2;
    min-height: 440px;
    border-top: 1px solid #29252b;
    border-left: 0;
  }
}
@media (max-width: 640px) {
  .welcome-card { grid-template-columns: minmax(0, 1fr); }
  .landing-rail {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid #29252b;
    padding: 10px 16px;
  }
  .landing-rail-label,
  .landing-rail-index { margin: 0; writing-mode: initial; transform: none; }
  .landing-main { min-height: 620px; padding: 22px; }
  .landing-topline { font-size: 7px; }
  .landing-title { font-size: clamp(43px, 12vw, 68px); }
  .landing-info { grid-column: 1; min-height: 520px; padding: 25px 20px; }
  .landing-image-stage { min-height: 145px; }
  .landing-footer { align-items: flex-start; flex-direction: column; font-size: 7px; }
}
