:root {
  --bg: #080b10;
  --bg2: #0d121a;
  --panel: rgba(17, 24, 35, .92);
  --panel2: #151f2d;
  --line: rgba(140, 162, 190, .18);
  --text: #edf5ff;
  --muted: #9eb0c5;
  --soft: #c8d6e6;
  --cyan: #72ffd0;
  --green: #4df49f;
  --blue: #7aa7ff;
  --violet: #b58cff;
  --amber: #ff9d2e;
  --red: #ff6f7b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(114, 255, 208, .44) rgba(7, 11, 17, .72);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track {
  background: rgba(7, 11, 17, .72);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 11, 17, .86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(114, 255, 208, .58), rgba(255, 157, 46, .48));
}
*::-webkit-scrollbar-corner { background: rgba(7, 11, 17, .72); }
html { min-width: 320px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -6%, rgba(77, 244, 159, .18), transparent 32rem),
    radial-gradient(circle at 96% 4%, rgba(255, 157, 46, .08), transparent 24rem),
    linear-gradient(180deg, #0b1017, #05080c 48%, #0a0d13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; }
select {
  appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px !important;
}
select option,
select optgroup {
  background: #0b1018;
  color: var(--text);
}
button, a.btn, [data-view], [data-forum], [data-topic], [data-script-release], [data-profile], [data-start-checkout], [data-manage-billing],
[data-delete-download], [data-mod-action], [data-report-message], [data-report-status],
[data-member-role-save], [data-member-ban], [data-scroll-to], [data-topic-picker], [data-new-topic],
[data-reply-focus], [data-reload], [data-auth-reset], [data-auth-login], [data-editor-insert],
[data-template-choice], [data-template-build], [data-template-clear], [data-composer-tab], [data-admin-sync-forums],
[data-follow-profile], [data-message-profile], [data-find-content], [data-like-post],
.editor-file-tool, .upload-tile, .composer-dropzone,
.media-edit-control, .avatar-edit-control, .media-url-details summary { cursor: pointer; }
.hidden { display: none !important; }
.visually-hidden-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
a { color: var(--cyan); }
code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b1018;
  color: #dff8ff;
}

.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: rgba(5, 8, 13, .92);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.topbar-inner, .hero-inner, .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar-inner { min-height: 38px; }
.top-kicker {
  color: var(--green);
  font-weight: 850;
  letter-spacing: .02em;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 22, 33, .96), rgba(10, 15, 23, .92));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .24);
}
.hero-inner { padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-home {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}
.brand-home:hover .ghost-logo,
.brand-home:focus-visible .ghost-logo {
  border-color: rgba(114, 255, 208, .82);
  box-shadow: 0 0 46px rgba(77, 244, 159, .34);
}
.brand-home:focus-visible {
  outline: 2px solid rgba(114, 255, 208, .55);
  outline-offset: 8px;
  border-radius: 14px;
}
.brand > div:last-child { min-width: 0; }
.ghost-logo {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 244, 159, .45);
  border-radius: 16px;
  background: linear-gradient(135deg, #72ffd0, #ff9d2e);
  color: #041018;
  box-shadow: 0 0 42px rgba(77, 244, 159, .22);
}
.ghost-logo span { font-size: 35px; font-weight: 1000; line-height: 1; }
.brand h1 { margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1; letter-spacing: 0; }
.brand p { max-width: 740px; margin: 8px 0 0; color: var(--soft); }

.auth-actions, .button-row, .welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.button-row.vertical {
  align-items: stretch;
  flex-direction: column;
}
.account-menu { position: relative; }
.profile-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(140, 162, 190, .22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 24, 35, .88), rgba(8, 13, 20, .78));
  color: var(--text);
  padding: 5px 9px 5px 5px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}
.profile-menu-button .avatar {
  width: 31px;
  height: 31px;
  font-size: 14px;
  border-color: rgba(114, 255, 208, .48);
}
.profile-menu-button:hover {
  border-color: rgba(114, 255, 208, .45);
  background: rgba(16, 25, 38, .86);
  transform: translateY(-1px);
}
.account-chip-copy {
  display: grid;
  min-width: 0;
  justify-items: start;
}
.account-chip-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}
.account-chevron {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(140, 162, 190, .08);
  color: var(--soft);
  font-size: 10px;
  line-height: 1;
}
.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: 244px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 18, 28, .98);
  box-shadow: var(--shadow);
  padding: 8px;
  backdrop-filter: blur(16px);
}
.profile-menu.hidden { display: none; }
.profile-menu-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.profile-menu-summary .role-line {
  display: block;
  margin-top: 3px;
}
.role-line, .profile-rank-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.profile-rank-line { margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.role-owner { color: #ffd483 !important; border-color: rgba(255, 212, 131, .45) !important; }
.role-admin { color: #ffb4bb !important; border-color: rgba(255, 111, 123, .42) !important; }
.role-moderator { color: #bfffe3 !important; border-color: rgba(77, 244, 159, .38) !important; }
.role-scripter, .role-script_writer { color: #9fffd4 !important; border-color: rgba(114, 255, 208, .38) !important; }
.role-vip, .role-donor, .role-sponsor, .role-patron, .role-elite_donor { color: #ffd7a8 !important; border-color: rgba(255, 157, 46, .38) !important; }
.role-expired { color: #ffb4bb !important; border-color: rgba(255, 111, 123, .34) !important; }
.profile-menu button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
  font-weight: 850;
}
.profile-menu button:hover, .profile-menu button:focus { background: rgba(72, 215, 255, .09); outline: none; }

.btn, .tabs button, .search-box button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 40, .92);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover, .tabs button:hover, .search-box button:hover { background: #1b2a3d; }
.btn.primary {
  border-color: rgba(93, 242, 170, .7);
  background: linear-gradient(180deg, var(--green), #21c987);
  color: #03120c;
}
.btn.ghost { background: rgba(13, 19, 29, .86); }
.btn.admin { border-color: rgba(181, 140, 255, .5); color: #eadfff; }
.btn.compact { min-height: 36px; padding: 8px 11px; }
.btn.full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .62; cursor: wait; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 16, .9);
  backdrop-filter: blur(14px);
}
.nav-inner { min-height: 60px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.tabs button.active {
  border-color: rgba(72, 215, 255, .58);
  background: rgba(72, 215, 255, .12);
  color: #dff8ff;
}
.search-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  flex: 1 1 420px;
  max-width: 520px;
}
.search-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b11;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(72, 215, 255, .75) !important;
  box-shadow: 0 0 0 3px rgba(72, 215, 255, .12);
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(520px, 90vw);
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101722;
  box-shadow: var(--shadow);
  padding: 8px;
}
.search-suggestions.hidden { display: none; }
.search-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}
.search-suggestion:hover, .search-suggestion:focus { background: rgba(72, 215, 255, .09); outline: none; }
.search-suggestion span { color: var(--muted); font-size: 12px; }
.search-suggestion.all { justify-content: start; color: var(--green); font-weight: 900; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 24px 0 60px;
}
.main-view, .sidebar { min-width: 0; }
.loading-card, .notice, .card, .forum-block, .forum-page, .topic-card, .side-card,
.welcome-panel, .profile-hero, .download-card, .member-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 29, 42, .88), rgba(12, 18, 27, .9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
.loading-card, .notice { padding: 16px; }
.notice { margin: 12px 0; color: var(--soft); }
.notice.success { border-color: rgba(93, 242, 170, .45); background: rgba(93, 242, 170, .08); color: #dfffef; }
.notice.error, .form-message.error { border-color: rgba(255, 111, 123, .55); background: rgba(255, 111, 123, .09); color: #ffd9dd; }
.setup-error { color: #ffd9dd; }
.setup-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.side-card { padding: 16px; margin-bottom: 16px; }
.side-card h3, .card h3 { margin: 0 0 12px; font-size: 18px; }
.side-card p, .card p { color: var(--muted); }
.vip-card {
  border-color: rgba(255, 157, 46, .44);
  background: linear-gradient(145deg, rgba(255, 157, 46, .1), rgba(17, 24, 35, .94));
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stats-grid div {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f17;
  padding: 12px;
}
.stats-grid strong { display: block; font-size: 25px; line-height: 1; }
.stats-grid span, .muted, .subtle { color: var(--muted); }

.online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.online-list.empty { display: block; color: var(--muted); }
.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0f17;
  color: var(--text);
  padding: 5px 9px 5px 5px;
}
.member-pill:hover { border-color: rgba(114, 255, 208, .42); background: #101926; }
.member-pill span:last-child {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sidebar-mini-list {
  display: grid;
  gap: 8px;
}
.sidebar-mini-list.empty {
  gap: 4px;
  color: var(--muted);
}
.sidebar-mini-list.empty strong { color: var(--soft); }
.side-topic {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f17;
  color: var(--text);
  padding: 11px;
  text-align: left;
}
.side-topic:hover, .side-topic:focus {
  border-color: rgba(114, 255, 208, .38);
  background: rgba(114, 255, 208, .055);
  outline: none;
}
.side-topic strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-topic > span {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(72, 215, 255, .36);
  border-radius: 999px;
  background: linear-gradient(145deg, #0d1723, #14283a);
  color: var(--cyan);
  object-fit: cover;
  font-weight: 950;
}
.avatar-xs { width: 24px; height: 24px; font-size: 12px; }
.avatar-sm { width: 34px; height: 34px; font-size: 14px; }
.avatar-md { width: 42px; height: 42px; }
.avatar-lg { width: 68px; height: 68px; font-size: 26px; }
.avatar-xl { width: 96px; height: 96px; font-size: 38px; }

.username { font-weight: 950; color: var(--text); }
.username-owner { color: #ffd483; text-shadow: 0 0 18px rgba(255, 202, 99, .22); }
.username-admin { color: #ffb4bb; }
.username-moderator { color: #bfffe3; }
.username-scripter { color: #9fffd4; }
.username-script_writer { color: #9fffd4; }
.username-elite_donor { color: #f8d4ff; text-shadow: 0 0 18px rgba(181, 140, 255, .22); }
.username-patron { color: #ffd483; }
.username-sponsor { color: #7fffe0; }
.username-donor { color: #ffc887; }
.username-vip { color: #ffe2a3; }

.view-head, .toolbar, .forum-page-head, .profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.view-head h2, .forum-page h2, .welcome-panel h2, .topic-title h2, .profile-summary h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 950;
}
.padded { padding: 18px; }
.center { text-align: center; }
.grid.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.prose { font-size: 16px; }
.prose p { color: var(--soft); }

.welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(72, 215, 255, .11), rgba(93, 242, 170, .06)), var(--panel);
}
.welcome-panel p { max-width: 740px; margin: 6px 0 0; color: var(--soft); }
.forum-hero-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(72, 215, 255, .28);
  background:
    linear-gradient(135deg, rgba(72, 215, 255, .14), rgba(93, 242, 170, .07)),
    linear-gradient(180deg, rgba(17, 24, 35, .98), rgba(9, 14, 22, .96));
}
.forum-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 auto;
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 242, 170, .75));
}
.forum-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.forum-hero-actions span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 10, 16, .58);
  color: var(--soft);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 850;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.metric-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f17;
  padding: 13px;
}
.metric-strip strong { display: block; font-size: 28px; line-height: 1; }
.metric-strip span { color: var(--muted); }

.forum-directory { display: grid; gap: 18px; }
.forum-category-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 17, 26, .82);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.forum-category-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(28, 41, 60, .72), rgba(12, 18, 28, .88));
}
.forum-category-head h3 { margin: 0; font-size: 19px; }
.forum-category-head p { margin: 3px 0 0; color: var(--muted); }
.forum-row-list { display: grid; }

.forum-block, .forum-page { margin-bottom: 18px; overflow: hidden; }
.forum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 41, 60, .95), rgba(18, 27, 40, .95));
}
.head-badge, .lock-note, .status-pill, .pin {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 202, 99, .45);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--amber);
  background: rgba(255, 202, 99, .1);
  font-size: 12px;
  font-weight: 950;
}
.status-pill.good { border-color: rgba(93, 242, 170, .5); color: var(--green); background: rgba(93, 242, 170, .1); }
.status-pill.danger, .btn.danger {
  border-color: rgba(255, 111, 123, .55);
  color: #ffd9dd;
  background: rgba(255, 111, 123, .1);
}
.btn.danger:hover { background: rgba(255, 111, 123, .18); }
.danger-link { color: var(--red); }

.forum-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 82px 82px minmax(180px, 250px);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 19, 29, .44);
  transition: background .16s ease, border-color .16s ease;
}
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover, .forum-row:focus { outline: none; background: rgba(114, 255, 208, .055); }
.forum-row.locked { opacity: .72; }
.forum-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 255, 208, .3);
  border-radius: 10px;
  background: #08101a;
  color: #dff8ff;
  font-weight: 950;
}
.forum-icon.large { width: 58px; height: 58px; }
.forum-copy h4 { margin: 0; color: #fff; font-size: 18px; }
.forum-copy p, .forum-latest, .topic-row p { margin: 5px 0 0; color: var(--muted); }
.forum-count { text-align: center; color: var(--muted); }
.forum-count strong, .topic-stat strong { display: block; color: var(--text); font-size: 21px; }
.forum-latest { min-width: 0; font-size: 13px; }
.forum-latest strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.empty-state { display: grid; gap: 3px; padding: 22px; color: var(--muted); }

.forum-page-head { justify-content: flex-start; padding: 20px; border-bottom: 1px solid var(--line); margin: 0; }
.forum-page-head p { margin: 4px 0 0; color: var(--muted); }
.forum-page-stats {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.forum-page-stats div {
  min-width: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f17;
  padding: 9px 11px;
  text-align: center;
}
.forum-page-stats strong { display: block; font-size: 20px; }
.forum-page-stats span { color: var(--muted); font-size: 12px; }
.forum-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  background: rgba(8, 13, 20, .45);
}
.forum-controls label, .member-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.toolbar-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.compact-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 12px;
}
.forum-controls select, .member-admin-actions select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b11;
  color: var(--text);
  padding: 7px 10px;
}
.topic-list { display: grid; }
.topic-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 92px minmax(150px, 220px);
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover, .topic-row:focus { outline: none; background: rgba(114, 255, 208, .055); }
.topic-main h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; word-break: break-word; }
.topic-avatar { display: grid; place-items: center; }
.locked-pin { border-color: rgba(255, 111, 123, .45); color: var(--red); background: rgba(255, 111, 123, .1); }
.topic-stat { text-align: center; color: var(--muted); }
.topic-latest {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}
.topic-latest strong {
  display: block;
  color: var(--soft);
  font-size: 13px;
}
.topic-latest span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-link {
  border: 0;
  background: transparent;
  color: var(--cyan);
  padding: 0;
  font-weight: 850;
}

.topic-card { overflow: hidden; }
.topic-title {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(72, 215, 255, .09), rgba(122, 167, 255, .06));
}
.topic-byline { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); }
.mod-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.post-author {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 20, .55);
  text-align: center;
}
.profile-button {
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--text);
}
.post-count { color: var(--muted); font-size: 13px; }
.author-stats {
  width: 100%;
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.author-stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(140, 162, 190, .12);
  padding-top: 7px;
}
.author-stats dt { color: var(--muted); }
.author-stats dd { margin: 0; color: var(--soft); text-align: right; }
.post-content { min-width: 0; padding: 20px; }
.post-meta { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.post-text {
  color: #f8fbff;
  font-size: 16px;
  line-height: 1.72;
  word-break: break-word;
}
.post-text a, .signature a { color: var(--green); }
.rich-image {
  display: block;
  max-width: min(100%, 520px);
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
  margin: 10px 0;
  background: #05080d;
}
.code-block {
  position: relative;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #07101a, #05080d);
  padding: 42px 14px 14px;
  color: #dff8ff;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.code-block code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: pre;
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 13px;
}
.copy-code-btn, .code-language {
  position: absolute;
  top: 9px;
  min-height: 26px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}
.copy-code-btn {
  right: 9px;
  border: 1px solid rgba(114, 255, 208, .28);
  background: rgba(114, 255, 208, .08);
  color: var(--cyan);
  padding: 4px 8px;
}
.copy-code-btn:hover { background: rgba(114, 255, 208, .14); }
.code-language {
  left: 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(140, 162, 190, .18);
  background: rgba(8, 13, 20, .88);
  color: var(--muted);
  padding: 4px 8px;
}
.code-keyword { color: #72ffd0; }
.code-string { color: #ffd483; }
.code-number { color: #b58cff; }
.code-key { color: #7aa7ff; }
.signature {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}
.post-actions { display: flex; gap: 12px; margin-top: 14px; }
.like-link {
  border: 1px solid rgba(114, 255, 208, .24);
  border-radius: 999px;
  background: rgba(114, 255, 208, .06);
  padding: 4px 9px;
}
.like-link.liked {
  border-color: rgba(255, 157, 46, .38);
  background: rgba(255, 157, 46, .1);
  color: #ffd7a8;
}
.reply-cta, .reply-form { padding: 18px; border-top: 1px solid var(--line); }
.reply-cta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.reply-form, .form { display: grid; gap: 13px; }
.reply-form label, .form label { display: grid; gap: 7px; color: var(--soft); font-weight: 850; }
.reply-form textarea, .form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b11;
  color: var(--text);
  padding: 12px;
  outline: none;
}
.reply-form textarea:focus, .form input:focus, .form textarea:focus, .form select:focus {
  border-color: rgba(114, 255, 208, .58);
  box-shadow: 0 0 0 3px rgba(114, 255, 208, .08);
}
.reply-form textarea, .form textarea { min-height: 135px; resize: vertical; }
.form-message { color: var(--muted); }
.form-message.info { color: #dff8ff; }
.form-message.error, .form-message.success { min-height: 38px; border: 1px solid; border-radius: 8px; padding: 9px 10px; }
.form-message.success { border-color: rgba(93, 242, 170, .5); background: rgba(93, 242, 170, .08); color: #dfffef; }
.form-hint { margin: -5px 0 2px; color: var(--muted); font-size: 13px; }
.rich-editor {
  min-height: 138px;
  line-height: 1.6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.rich-editor.is-dragging {
  border-color: rgba(114, 255, 208, .72);
  box-shadow: 0 0 0 3px rgba(114, 255, 208, .1), inset 0 0 0 1px rgba(114, 255, 208, .2);
  background: rgba(18, 42, 50, .74);
}
.rich-editor.is-uploading {
  cursor: progress;
  opacity: .82;
}
.composer-form textarea { min-height: 138px; }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(140, 162, 190, .14);
  border-radius: 8px 8px 0 0;
  background: rgba(7, 11, 17, .64);
  padding: 5px;
  margin-bottom: 0;
}
.editor-shortcuts {
  margin-left: auto;
  min-width: 0;
  color: #71839a;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
  white-space: normal;
  text-align: right;
}
.editor-toolbar button,
.editor-file-tool span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}
.editor-toolbar button:hover,
.editor-toolbar button:focus,
.editor-file-tool:hover span,
.editor-file-tool:focus-within span {
  border-color: rgba(114, 255, 208, .42);
  background: rgba(114, 255, 208, .07);
  outline: none;
}
.composer-preview {
  border: 1px solid rgba(140, 162, 190, .18);
  border-radius: 10px;
  background: rgba(7, 11, 17, .48);
  overflow: hidden;
}
.composer-preview > strong {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
.composer-preview-body {
  min-height: 96px;
  padding: 13px;
  color: var(--soft);
}
.reply-preview {
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: rgba(7, 11, 17, .36);
  overflow: hidden;
}
.reply-preview summary {
  padding: 10px 12px;
  color: var(--soft);
  font-weight: 850;
  cursor: pointer;
}
.reply-preview[open] summary { border-bottom: 1px solid var(--line); }
.post-text blockquote,
.composer-preview-body blockquote,
.signature blockquote {
  margin: 12px 0;
  border-left: 3px solid rgba(114, 255, 208, .54);
  background: rgba(114, 255, 208, .055);
  color: var(--soft);
  padding: 9px 12px;
}
.post-text h2, .post-text h3, .post-text h4,
.composer-preview-body h2, .composer-preview-body h3, .composer-preview-body h4 {
  margin: 18px 0 8px;
  line-height: 1.2;
}
.post-text ul, .post-text ol,
.composer-preview-body ul, .composer-preview-body ol {
  margin: 10px 0;
  padding-left: 24px;
}

.composer-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(140, 162, 190, .14);
  padding: 0 42px 12px 0;
  margin-bottom: 14px;
}
.composer-modal-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.composer-modal-head p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); }
.composer-mode-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(114, 255, 208, .28);
  border-radius: 999px;
  background: rgba(77, 244, 159, .08);
  color: #bffff0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
.composer-form-modern {
  gap: 10px;
  min-width: 0;
}
.composer-field {
  gap: 7px;
  font-size: 13px;
}
.composer-title-input {
  min-height: 44px;
  border-radius: 9px !important;
  background: #080d14 !important;
  font-size: 17px;
  font-weight: 850;
}
.script-template-builder {
  min-width: 0;
  border: 1px solid rgba(255, 157, 46, .18);
  border-radius: 12px;
  background: rgba(255, 157, 46, .045);
  overflow: hidden;
}
.script-template-builder summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: #ffd7a8;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
}
.script-template-builder summary::-webkit-details-marker { display: none; }
.script-template-builder summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.script-template-builder[open] summary {
  border-bottom: 1px solid rgba(255, 157, 46, .14);
}
.template-builder-body {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 10px;
}
.template-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.template-choice {
  min-height: 30px;
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 999px;
  background: rgba(11, 17, 26, .72);
  color: var(--soft);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.template-choice.active,
.template-choice:hover,
.template-choice:focus-visible {
  border-color: rgba(255, 157, 46, .42);
  background: rgba(255, 157, 46, .11);
  color: #ffd7a8;
  outline: none;
}
.template-panel {
  display: grid;
  gap: 9px;
}
.template-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.template-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 8px;
}
.template-field-grid label {
  gap: 5px;
  color: var(--soft);
  font-size: 12px;
}
.template-field-grid input,
.template-field-grid textarea {
  min-height: 58px;
  border-radius: 8px;
  resize: vertical;
  font-size: 13px;
}
.template-field-grid input {
  min-height: 38px;
  resize: none;
}
.template-builder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.composer-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(140, 162, 190, .18);
  border-radius: 12px;
  background: rgba(7, 11, 17, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.composer-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(140, 162, 190, .14);
  background: rgba(11, 17, 26, .72);
  padding: 6px;
}
.composer-tabs button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 950;
}
.composer-tabs button.active {
  border-color: rgba(114, 255, 208, .28);
  background: rgba(114, 255, 208, .1);
  color: var(--text);
}
.composer-tabs button:hover,
.composer-tabs button:focus-visible {
  border-color: rgba(114, 255, 208, .28);
  color: var(--text);
  outline: none;
}
.composer-panel {
  min-width: 0;
  padding: 8px;
}
.composer-panel .rich-editor {
  width: 100%;
  box-sizing: border-box;
  min-height: 124px;
  max-height: 680px;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #070c13;
  resize: none;
}
.composer-mini-hint {
  margin: 7px 0 0;
  font-size: 12px;
}
.composer-panel .rich-editor::placeholder {
  color: #71839a;
}
.composer-dropzone {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 54px;
  margin-top: 8px;
  border: 1px dashed rgba(114, 255, 208, .28);
  border-radius: 10px;
  background: rgba(114, 255, 208, .045);
  color: var(--soft);
  padding: 9px 12px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.composer-dropzone strong {
  color: #ddfff6;
  font-size: 12px;
}
.composer-dropzone span {
  color: var(--muted);
  font-size: 11px;
}
.composer-dropzone:hover,
.composer-dropzone.is-dragging {
  border-color: rgba(114, 255, 208, .68);
  background: rgba(114, 255, 208, .09);
  transform: translateY(-1px);
}
.composer-rendered-preview {
  min-height: 134px;
  border: 1px solid rgba(140, 162, 190, .13);
  border-radius: 9px;
  background: #070c13;
}
.composer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(140, 162, 190, .12);
  padding-top: 4px;
}
.composer-footer .form-message {
  min-height: 0;
}
.composer-submit {
  width: auto;
  min-width: 132px;
  min-height: 38px;
  padding-inline: 16px;
}
.composer-submit:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.reply-composer {
  gap: 12px;
  background: linear-gradient(180deg, rgba(16, 23, 34, .7), rgba(11, 17, 26, .64));
  border-top-color: rgba(140, 162, 190, .14);
}
.reply-composer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.reply-composer-head label {
  color: var(--text);
  font-size: 16px;
}
.reply-composer-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.profile-theme-ghost { --profile-accent: #72ffd0; --profile-accent-2: #48d7ff; --profile-glow: rgba(77,244,159,.20); --profile-panel: rgba(22, 40, 42, .28); }
.profile-theme-spectral { --profile-accent: #72ffd0; --profile-accent-2: #7aa7ff; --profile-glow: rgba(122,167,255,.22); --profile-panel: rgba(23, 34, 55, .30); }
.profile-theme-ember { --profile-accent: #ff9d2e; --profile-accent-2: #ff6f7b; --profile-glow: rgba(255,157,46,.22); --profile-panel: rgba(58, 35, 30, .30); }
.profile-theme-void { --profile-accent: #b58cff; --profile-accent-2: #48d7ff; --profile-glow: rgba(181,140,255,.20); --profile-panel: rgba(31, 27, 55, .30); }
.profile-theme-gold { --profile-accent: #ffd483; --profile-accent-2: #72ffd0; --profile-glow: rgba(255,212,131,.22); --profile-panel: rgba(61, 51, 30, .30); }

.profile-hero {
  overflow: hidden;
  margin-bottom: 18px;
  border-color: color-mix(in srgb, var(--profile-accent, var(--cyan)) 34%, var(--line));
  box-shadow: 0 24px 70px rgba(0,0,0,.26), 0 0 42px var(--profile-glow, transparent);
}
.profile-cover { height: 108px; background: linear-gradient(135deg, rgba(114, 255, 208, .22), rgba(18, 27, 40, .92)); }
.profile-cover.vip-cover {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 157, 46, .24), transparent 18rem),
    linear-gradient(135deg, rgba(77, 244, 159, .22), rgba(18, 27, 40, .94));
}
.profile-summary {
  justify-content: flex-start;
  padding: 0 22px 20px;
  margin: -50px 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 23, .72) 42%, rgba(12, 18, 27, .92));
}
.profile-summary .avatar {
  border-color: color-mix(in srgb, var(--profile-accent, var(--cyan)) 64%, transparent);
  box-shadow: 0 16px 42px rgba(0,0,0,.38), 0 0 28px var(--profile-glow, transparent);
}
.profile-summary p { margin: 5px 0 0; color: var(--soft); }
.profile-title-block { min-width: 0; }
.profile-title-block h2,
.profile-editor-identity h2 {
  max-width: 100%;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-manage-btn {
  min-height: 26px;
  border: 1px solid rgba(140, 162, 190, .24);
  border-radius: 999px;
  background: rgba(7, 11, 17, .68);
  color: var(--text);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 950;
}
.mini-manage-btn:hover, .mini-manage-btn:focus {
  border-color: color-mix(in srgb, var(--profile-accent, var(--green)) 58%, transparent);
  background: rgba(20, 29, 42, .92);
  outline: none;
}
.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}
.profile-hero-stats div {
  min-width: 0;
  background: linear-gradient(180deg, rgba(18, 27, 40, .86), rgba(10, 15, 23, .88));
  padding: 12px 16px;
}
.profile-hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-hero-stats strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.profile-tabs a, .profile-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 40, .92);
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 850;
}
.profile-tabs a:hover, .profile-tabs button:hover { background: #1b2a3d; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.profile-hero-modern .profile-summary { align-items: flex-end; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.profile-facts { display: grid; gap: 12px; margin: 0; }
.profile-facts div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; word-break: break-word; }
.profile-forum-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-side, .profile-main-panel { min-width: 0; }
.profile-side { display: grid; gap: 12px; }
.profile-stat-card, .activity-feed {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}
.profile-forum-layout.profile-theme-ghost .profile-stat-card,
.profile-forum-layout.profile-theme-ghost .activity-feed,
.profile-forum-layout.profile-theme-spectral .profile-stat-card,
.profile-forum-layout.profile-theme-spectral .activity-feed,
.profile-forum-layout.profile-theme-ember .profile-stat-card,
.profile-forum-layout.profile-theme-ember .activity-feed,
.profile-forum-layout.profile-theme-void .profile-stat-card,
.profile-forum-layout.profile-theme-void .activity-feed,
.profile-forum-layout.profile-theme-gold .profile-stat-card,
.profile-forum-layout.profile-theme-gold .activity-feed {
  border-color: color-mix(in srgb, var(--profile-accent, var(--cyan)) 22%, var(--line));
  background:
    linear-gradient(180deg, var(--profile-panel, transparent), transparent 42%),
    var(--panel);
}
.profile-forum-layout .profile-stat-card h3,
.profile-forum-layout .activity-feed h3 {
  color: var(--profile-accent, var(--text));
}
.profile-stat-card h3, .activity-feed h3 {
  margin: 0 0 10px;
}
.profile-stat-card p { margin: 0 0 12px; color: var(--muted); }
.profile-stat-card.compact { padding: 14px; }
.profile-rank-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.profile-rank-pills span,
.reputation-tier {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(140, 162, 190, .2);
  border-radius: 999px;
  background: rgba(8, 13, 20, .66);
  color: var(--text);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}
.reputation-tier {
  width: max-content;
  margin-top: 7px;
  border-color: rgba(114, 255, 208, .3);
  color: var(--cyan);
}
.rep-helpful { color: #9ef5c6 !important; border-color: rgba(114, 255, 208, .28) !important; }
.rep-respected { color: #7aa7ff !important; border-color: rgba(122, 167, 255, .32) !important; }
.rep-trusted { color: #ffd483 !important; border-color: rgba(255, 212, 131, .38) !important; }
.rep-legendary { color: #ff9d2e !important; border-color: rgba(255, 157, 46, .42) !important; }
.profile-action-btn {
  min-width: 104px;
  justify-content: center;
}
.profile-visitor-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 9px 0;
  text-align: left;
}
.profile-visitor-row:last-child { border-bottom: 0; }
.profile-visitor-row:hover,
.profile-visitor-row:focus-visible {
  color: var(--cyan);
  outline: none;
}
.profile-visitor-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.message-preview-list {
  display: grid;
  gap: 8px;
}
.message-preview-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(140, 162, 190, .14);
  border-radius: 10px;
  background: rgba(7, 11, 17, .48);
  color: var(--text);
  padding: 10px;
  text-align: left;
}
.message-preview-row:hover,
.message-preview-row:focus-visible {
  border-color: rgba(114, 255, 208, .35);
  background: rgba(114, 255, 208, .06);
  outline: none;
}
.message-preview-row small {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-preview-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.profile-progress {
  height: 8px;
  border-radius: 999px;
  background: #070b11;
  overflow: hidden;
}
.profile-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber));
}
.profile-main-panel {
  display: grid;
  gap: 14px;
}
.profile-main-panel .profile-tabs {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 8px;
}
.activity-feed {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.activity-feed h3 {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 20, .45);
}
.activity-feed > p {
  margin: 0;
  padding: 18px;
  color: var(--soft);
}
.activity-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 16px 18px;
  text-align: left;
}
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover, .activity-row:focus {
  background: rgba(114, 255, 208, .055);
  outline: none;
}
.activity-row strong {
  display: block;
  color: #fff;
  font-size: 16px;
}
.activity-row small, .activity-row em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}
.mini-topic {
  display: grid;
  width: 100%;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f17;
  color: var(--text);
  padding: 12px;
  text-align: left;
  margin-bottom: 10px;
}
.mini-topic > span { color: var(--muted); }
.mini-topic .username-owner { color: #ffd483; }
.mini-topic .username-vip { color: #ffe2a3; }
.profile-preview { display: grid; justify-items: start; gap: 12px; }
.profile-posts { margin-top: 18px; }
.profile-signature { margin-top: 18px; }
.profile-editor-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.profile-editor-stack {
  display: grid;
  min-width: 0;
  gap: 18px;
}
.profile-editor-preview, .profile-editor-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 29, 42, .84), rgba(12, 18, 27, .9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .26);
  overflow: hidden;
}
.profile-editor-preview {
  position: sticky;
  top: 78px;
}
.profile-editor-shell.profile-theme-ghost .profile-editor-preview,
.profile-editor-shell.profile-theme-ghost .profile-editor-card,
.profile-editor-shell.profile-theme-spectral .profile-editor-preview,
.profile-editor-shell.profile-theme-spectral .profile-editor-card,
.profile-editor-shell.profile-theme-ember .profile-editor-preview,
.profile-editor-shell.profile-theme-ember .profile-editor-card,
.profile-editor-shell.profile-theme-void .profile-editor-preview,
.profile-editor-shell.profile-theme-void .profile-editor-card,
.profile-editor-shell.profile-theme-gold .profile-editor-preview,
.profile-editor-shell.profile-theme-gold .profile-editor-card {
  border-color: color-mix(in srgb, var(--profile-accent, var(--cyan)) 26%, var(--line));
  background:
    linear-gradient(180deg, var(--profile-panel, transparent), transparent 46%),
    linear-gradient(180deg, rgba(20, 29, 42, .88), rgba(12, 18, 27, .92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .26), 0 0 34px var(--profile-glow, transparent);
}
.editor-cover {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background-size: cover !important;
  background-position: center !important;
  padding: 14px;
  transition: filter .16s ease, border-color .16s ease;
}
.media-edit-control:hover { filter: brightness(1.08); }
.media-edit-control span, .avatar-edit-control span {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(5, 8, 13, .72);
  color: var(--text);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.profile-editor-identity {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 0 22px 22px;
  margin-top: -48px;
}
.profile-editor-identity > div { min-width: 0; }
.profile-editor-identity h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.avatar-edit-control {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}
.avatar-edit-control .avatar {
  width: 104px;
  height: 104px;
  font-size: 40px;
  border-width: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}
.profile-editor-shell .avatar-edit-control .avatar {
  border-color: color-mix(in srgb, var(--profile-accent, var(--cyan)) 58%, transparent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32), 0 0 24px var(--profile-glow, transparent);
}
.avatar-edit-control span {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0;
  font-size: 0;
  border-color: rgba(114, 255, 208, .38);
  background: rgba(5, 8, 13, .84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.avatar-edit-control span::before {
  content: "+";
  font-size: 18px;
  line-height: 1;
}
.avatar-edit-control:hover span { transform: translateY(-1px); }
.profile-editor-card { padding: 20px; }
.account-summary-card { align-self: start; }
.profile-style-picker {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--profile-accent, var(--cyan)) 20%, rgba(140, 162, 190, .16));
  border-radius: 12px;
  background: linear-gradient(135deg, var(--profile-panel, transparent), rgba(7, 11, 17, .36) 52%);
  padding: 14px;
}
.profile-style-picker strong { display: block; }
.profile-style-picker span { color: var(--muted); font-size: 13px; }
.profile-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.profile-style-option {
  position: relative;
  display: grid !important;
  gap: 7px !important;
  min-width: 0;
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: rgba(11, 17, 26, .78);
  padding: 8px;
}
.profile-style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.profile-style-option.active,
.profile-style-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--profile-accent, var(--cyan)) 62%, transparent);
  box-shadow: 0 0 0 3px var(--profile-glow, rgba(114, 255, 208, .08));
}
.profile-style-swatch {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.profile-style-option strong {
  font-size: 12px;
  color: var(--text);
}
.form-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.upload-tile {
  position: relative;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed rgba(72, 215, 255, .48);
  border-radius: 10px;
  background: rgba(72, 215, 255, .055);
  color: var(--text);
  text-align: center;
  padding: 16px;
}
.upload-tile:hover { border-color: rgba(93, 242, 170, .65); background: rgba(93, 242, 170, .07); }
.upload-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-tile span { color: var(--muted); font-size: 13px; }
.media-url-details {
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: rgba(7, 11, 17, .42);
  padding: 0;
  overflow: hidden;
}
.media-url-details summary {
  padding: 12px 14px;
  color: var(--soft);
  font-weight: 850;
}
.media-url-details[open] summary { border-bottom: 1px solid var(--line); }
.media-url-details .form-grid { padding: 14px; }

.search-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.search-group h3 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  background: rgba(8, 13, 20, .45);
}
.search-results { display: grid; }
.search-result {
  display: grid;
  gap: 4px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: rgba(72, 215, 255, .055); outline: none; }
.search-result span { color: var(--muted); }
.profile-result { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }

.member-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.member-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  color: var(--text);
  padding: 18px;
  text-align: left;
}
.member-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.member-card span:last-child { color: var(--muted); }
.download-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}
.download-card .btn { width: 100%; grid-column: span 2; text-align: center; }
.download-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(72, 215, 255, .18), rgba(93, 242, 170, .1));
  color: var(--cyan);
  font-weight: 950;
}
.download-card h3 { margin: 0; }
.download-card p { margin: 4px 0; color: var(--muted); }
.download-card span { color: var(--muted); font-size: 13px; }
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(72, 215, 255, .55);
  border-radius: 10px;
  background: rgba(72, 215, 255, .06);
  color: var(--soft);
  text-align: center;
  padding: 20px;
}
.dropzone.is-dragging { background: rgba(93, 242, 170, .12); border-color: var(--green); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.benefit-list { display: grid; gap: 10px; margin: 0 0 18px; padding-left: 20px; color: var(--soft); }
.benefit-list li::marker { color: var(--cyan); }

.script-network-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(114, 255, 208, .22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(114, 255, 208, .08), rgba(18, 27, 40, .86));
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 18px;
}
.script-network-panel h3 { margin: 0 0 5px; }
.script-network-panel p { margin: 0; color: var(--soft); }
.script-network-panel.api-panel {
  border-color: rgba(255, 157, 46, .22);
  background: linear-gradient(135deg, rgba(255, 157, 46, .07), rgba(18, 27, 40, .84));
}
.script-browser-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(114, 255, 208, .24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(114, 255, 208, .12), rgba(255, 157, 46, .06)),
    rgba(12, 18, 27, .94);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.script-browser-hero h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.script-browser-hero p:not(.eyebrow) { margin: 8px 0 0; max-width: 720px; color: var(--soft); }
.script-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.script-market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.script-market-stats div {
  min-height: 64px;
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 27, 40, .78), rgba(8, 13, 20, .82));
  padding: 10px 12px;
}
.script-market-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.script-market-stats strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.script-browser-tools {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 145px) minmax(128px, 155px) minmax(128px, 155px);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 13, 20, .92);
  padding: 10px;
  margin-bottom: 14px;
  backdrop-filter: blur(16px);
}
.script-browser-tools input,
.script-browser-tools select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b11;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
.script-browser-tools input:focus,
.script-browser-tools select:focus {
  border-color: rgba(114, 255, 208, .58);
  box-shadow: 0 0 0 3px rgba(114, 255, 208, .08);
}
.script-browser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.script-browser-layout-empty {
  grid-template-columns: minmax(0, 1fr);
}
.script-release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.script-browser-layout-empty .script-release-grid {
  grid-template-columns: 1fr;
}
.script-empty-market {
  border: 1px solid rgba(114, 255, 208, .20);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(114, 255, 208, .07), rgba(255, 157, 46, .035)),
    rgba(12, 18, 27, .92);
  box-shadow: var(--shadow);
  padding: 16px;
}
.script-empty-head {
  max-width: 760px;
  margin-bottom: 14px;
}
.script-empty-head h3 {
  margin: 0;
  font-size: 22px;
}
.script-empty-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--soft);
}
.script-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.script-section-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: rgba(7, 11, 17, .46);
  color: var(--text);
  padding: 13px;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.script-section-card:hover,
.script-section-card:focus-visible {
  border-color: rgba(114, 255, 208, .45);
  background: rgba(114, 255, 208, .07);
  outline: none;
  transform: translateY(-1px);
}
.script-section-card.paid {
  border-color: rgba(255, 157, 46, .22);
}
.script-section-card.paid:hover,
.script-section-card.paid:focus-visible {
  border-color: rgba(255, 157, 46, .48);
  background: rgba(255, 157, 46, .07);
}
.script-section-card p {
  margin: 6px 0 0;
  color: var(--soft);
}
.script-section-action {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 1000;
}
.script-section-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(114, 255, 208, .26);
  border-radius: 10px;
  background: rgba(114, 255, 208, .08);
  color: var(--cyan);
  font-weight: 1000;
}
.script-empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.script-release-card,
.script-side-card,
.store-product {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 29, 42, .92), rgba(11, 17, 26, .92));
  box-shadow: var(--shadow);
}
.script-release-card.paid { border-color: rgba(255, 157, 46, .28); }
.script-release-card.free { border-color: rgba(114, 255, 208, .20); }
.script-release-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 15px;
  text-align: left;
}
.script-release-main:hover,
.script-release-main:focus-visible {
  background: rgba(114, 255, 208, .045);
  outline: none;
}
.script-release-icon,
.script-side-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(114, 255, 208, .28);
  background: rgba(114, 255, 208, .08);
  color: var(--cyan);
  font-weight: 1000;
}
.script-release-icon { width: 58px; height: 58px; }
.script-release-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.script-release-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.script-release-main p { margin: 6px 0 0; color: var(--soft); }
.script-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.script-release-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.script-release-badges span {
  border: 1px solid rgba(140, 162, 190, .18);
  border-radius: 999px;
  background: rgba(140, 162, 190, .08);
  color: var(--soft);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}
.script-release-badges span.good {
  border-color: rgba(114, 255, 208, .28);
  background: rgba(114, 255, 208, .08);
  color: #bffff0;
}
.script-release-badges span.warning {
  border-color: rgba(255, 157, 46, .28);
  background: rgba(255, 157, 46, .08);
  color: #ffd7a8;
}
.script-type-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(114, 255, 208, .34);
  border-radius: 999px;
  background: rgba(114, 255, 208, .08);
  color: var(--green);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 950;
}
.script-type-pill.paid {
  border-color: rgba(255, 157, 46, .42);
  background: rgba(255, 157, 46, .1);
  color: #ffd7a8;
}
.script-release-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 10px 15px 15px;
}
.script-market-side {
  display: grid;
  gap: 12px;
}
.script-detail-modal {
  display: grid;
  gap: 14px;
}
.script-detail-modal h2 {
  margin: 0;
}
.script-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.script-detail-facts div {
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: rgba(7, 11, 17, .42);
  padding: 10px 12px;
}
.script-detail-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.script-detail-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 900;
}
.script-side-card {
  overflow: hidden;
  padding-bottom: 6px;
}
.script-side-card h3 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}
.script-side-card p { padding: 0 15px; }
.script-side-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(140, 162, 190, .12);
  background: transparent;
  color: var(--text);
  padding: 11px 15px;
  text-align: left;
}
.script-side-row:last-child { border-bottom: 0; }
.script-side-row:hover,
.script-side-row:focus-visible {
  background: rgba(114, 255, 208, .045);
  outline: none;
}
.script-side-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.script-side-row small { display: block; color: var(--muted); margin-top: 3px; }
.script-side-icon { width: 36px; height: 36px; }
.script-side-icon.paid {
  border-color: rgba(255, 157, 46, .38);
  background: rgba(255, 157, 46, .1);
  color: #ffd7a8;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.store-product {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}
.store-product h3 { margin: 0; }
.store-product p { margin: 0; color: var(--soft); }
.store-product .btn,
.store-product .status-pill {
  justify-self: stretch;
  margin-top: 4px;
}
.store-product-art {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(114, 255, 208, .2), rgba(255, 157, 46, .26));
  color: #071018;
  font-size: 30px;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}
.vip-product { border-color: rgba(255, 157, 46, .35); }
.vip-product .store-product-art {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.35), transparent 4.5rem),
    linear-gradient(135deg, rgba(255, 157, 46, .34), rgba(114, 255, 208, .20));
}
.donor-sponsor .store-product-art { background: linear-gradient(135deg, rgba(114,255,208,.28), rgba(72,215,255,.16)); }
.donor-patron .store-product-art { background: linear-gradient(135deg, rgba(255,212,131,.34), rgba(255,157,46,.20)); }
.donor-elite .store-product-art { background: linear-gradient(135deg, rgba(181,140,255,.34), rgba(255,157,46,.22), rgba(114,255,208,.18)); }
.billing-note {
  margin: 12px 0 0;
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 10px;
  background: rgba(7, 11, 17, .36);
  color: var(--soft);
  padding: 11px 12px;
  line-height: 1.45;
}
.api-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.api-doc-card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.api-doc-card h3 { margin: 0; }
.api-doc-card p { margin: 0; }
.code-preview {
  min-width: 0;
  overflow: hidden;
}

.admin-grid { margin-top: 18px; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f17;
  padding: 12px;
}
.admin-row p { margin: 4px 0; }
.admin-row span { color: var(--muted); font-size: 13px; }
.member-admin-row { grid-template-columns: minmax(0, 1fr); }
.member-admin-actions { flex-wrap: wrap; justify-content: flex-start; }
.admin-member-search { margin-bottom: 10px; }
.admin-member-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b11;
  color: var(--text);
  padding: 10px 12px;
}
.admin-member-search input:focus {
  border-color: rgba(114, 255, 208, .58);
  box-shadow: 0 0 0 3px rgba(114, 255, 208, .08);
  outline: none;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.mini-stats div {
  border: 1px solid rgba(140, 162, 190, .14);
  border-radius: 9px;
  background: rgba(7, 11, 17, .58);
  padding: 10px;
}
.mini-stats strong { display: block; font-size: 20px; line-height: 1; }
.mini-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.admin-sublist {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 157, 46, .18);
  border-radius: 10px;
  background: rgba(255, 157, 46, .05);
  padding: 10px;
  margin: 10px 0 12px;
}
.inline-row-link {
  border: 0;
  background: transparent;
  color: var(--cyan);
  padding: 0;
  text-align: left;
  font-weight: 850;
}
.inline-row-link:hover,
.inline-row-link:focus-visible { color: var(--text); outline: none; }
.compact-facts div { grid-template-columns: 82px minmax(0, 1fr); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .72);
  padding: 18px;
}
.modal-backdrop.hidden { display: none; }
.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(22, 31, 45, .98), rgba(13, 19, 29, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62);
  padding: 24px;
}
.modal.modal-wide { width: min(820px, 100%); }
.modal.modal-composer {
  width: min(940px, calc(100vw - 32px));
  padding: 20px;
  max-height: min(900px, calc(100dvh - 34px));
  overflow-x: hidden;
  overflow-y: auto;
}
.modal h2 { margin: 0 36px 12px 0; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(140, 162, 190, .16);
  border-radius: 999px;
  background: rgba(7, 11, 17, .7);
  color: var(--muted);
  font-weight: 950;
}
.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 111, 123, .4);
  color: var(--text);
  background: rgba(255, 111, 123, .1);
  outline: none;
}
.footer {
  border-top: 1px solid var(--line);
  background: #05080d;
  color: var(--muted);
  padding: 26px 0;
  font-size: 13px;
}
.footer-inner { display: grid; gap: 20px; }
.footer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.footer-stats div {
  min-height: 58px;
  border: 1px solid rgba(140, 162, 190, .14);
  border-radius: 12px;
  background: rgba(11, 17, 26, .72);
  padding: 10px 12px;
}
.footer-stats strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}
.footer-stats span { color: var(--muted); }
.footer-members {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 17, 26, .8);
  padding: 16px;
}
.footer-member-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-member-list.empty { color: var(--muted); }
.footer-member {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0f17;
  color: var(--text);
  padding: 5px 9px 5px 5px;
}
.footer-member:hover { border-color: rgba(72, 215, 255, .42); background: #101926; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 40, .76);
  color: var(--text);
  padding: 8px 10px;
  font-weight: 850;
}
.footer-links button:hover { background: #1b2a3d; }

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}
.toast {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 23, 34, .96);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 12px 14px;
  font-weight: 850;
  animation: toast-in .18s ease-out both;
}
.toast-success { border-color: rgba(93, 242, 170, .45); }
.toast-error { border-color: rgba(255, 111, 123, .55); }
.toast-out { animation: toast-out .22s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.skeleton-card { display: grid; gap: 10px; }
.skeleton-line {
  display: block;
  width: 68%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(72, 215, 255, .08), rgba(255,255,255,.14), rgba(72, 215, 255, .08));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}
.skeleton-line.wide { width: 88%; }
@keyframes skeleton-shimmer { to { background-position: -220% 0; } }

.empty-state.polished {
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(72, 215, 255, .28);
  border-radius: 9px;
  padding: 14px;
  background: rgba(72, 215, 255, .05);
}
.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.diagnostic-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 23, 34, .92);
  padding: 14px;
}
.diagnostic-card span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.diagnostic-card strong { display: block; margin-top: 4px; }

@media (max-width: 960px) {
  .layout, .grid.two, .welcome-panel, .profile-grid, .profile-forum-layout, .profile-editor-shell, .diagnostics-grid, .script-network-panel, .api-doc-grid, .script-browser-hero, .script-browser-layout, .script-browser-tools, .script-section-grid, .script-detail-facts { grid-template-columns: 1fr; }
  .script-market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-market-stats div:last-child { grid-column: 1 / -1; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-editor-preview { position: static; }
  .hero-inner, .nav-inner { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .search-box input { width: auto; min-width: 0; }
  .search-suggestions { left: 0; right: auto; width: 100%; }
  .forum-row { grid-template-columns: 48px minmax(0, 1fr) 78px; }
  .forum-row .forum-count + .forum-count, .forum-latest { grid-column: 2 / -1; text-align: left; }
  .forum-page-stats { margin-left: 0; }
  .topic-row { grid-template-columns: 42px minmax(0, 1fr) 80px; }
  .topic-latest { grid-column: 2 / -1; }
  .post { grid-template-columns: 1fr; }
  .post-author { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-row { grid-template-columns: 1fr; }
  .form-grid.two-col, .upload-grid { grid-template-columns: 1fr; }
  .footer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal.modal-composer { width: min(100%, 780px); }
  .script-hero-actions { justify-content: flex-start; }
  .profile-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1200px); }
  .modal-backdrop { align-items: start; padding: 10px; }
  .modal, .modal.modal-composer {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 12px;
  }
  .composer-modal-head {
    flex-direction: column;
    gap: 8px;
    padding-right: 34px;
  }
  .composer-footer {
    grid-template-columns: 1fr;
  }
  .composer-submit {
    width: 100%;
  }
  .script-template-builder summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .template-field-grid { grid-template-columns: 1fr; }
  .template-choice { width: 100%; text-align: left; }
  .script-browser-tools { position: static; }
  .script-release-main { grid-template-columns: 1fr; }
  .script-release-title-row { flex-direction: column; }
  .profile-style-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero-stats { grid-template-columns: 1fr 1fr; }
  .topbar-inner { align-items: stretch; flex-direction: column; padding: 8px 0; }
  .profile-menu-button { width: 100%; justify-content: flex-start; }
  .btn, .auth-actions .btn { width: 100%; }
  .brand {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: flex-start;
  }
  .brand p { overflow-wrap: anywhere; }
  .ghost-logo { width: 56px; height: 56px; border-radius: 14px; }
  .ghost-logo span { font-size: 30px; }
  .view-head, .toolbar, .auth-actions, .profile-summary { align-items: stretch; flex-direction: column; }
  .profile-editor-identity { align-items: start; flex-direction: column; }
  .footer-stats { grid-template-columns: 1fr 1fr; }
  .forum-controls, .forum-controls label, .mod-actions, .member-admin-actions { align-items: stretch; flex-direction: column; }
  .forum-controls select, .member-admin-actions select { width: 100%; }
  .search-box { grid-template-columns: 1fr; }
  .forum-row, .topic-row, .download-card { grid-template-columns: 1fr; }
  .forum-latest, .forum-row .forum-count + .forum-count, .topic-latest { grid-column: auto; }
  .forum-count { text-align: left; }
  .topic-stat { text-align: left; }
  .profile-result { grid-template-columns: auto minmax(0, 1fr); }
  .profile-result span { grid-column: 2; }
}
