:root {
  --bg: #0b0f0e;
  --surface: #131917;
  --surface-soft: #18201d;
  --surface-strong: #202925;
  --text: #f2f7f4;
  --muted: #94a49d;
  --line: #2b3833;
  --line-strong: #3a4a44;
  --primary: #68dfc3;
  --primary-dark: #3fb99f;
  --primary-soft: #17332c;
  --accent: #f2c260;
  --danger: #ff7a72;
  --admin: #9ec5ff;
  --violet: #b7a4ff;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[data-theme="mint"] { --primary: #168f7a; --primary-dark: #0f766e; --primary-soft: #e1f7f1; --accent: #d77c32; --admin: #257f71; --violet: #65539b; }
html[data-theme="ocean"] { --primary: #397bc7; --primary-dark: #285fa4; --primary-soft: #e7f1ff; --accent: #d77c32; --admin: #397bc7; --violet: #65539b; }
html[data-theme="violet"] { --primary: #7757bd; --primary-dark: #6043a3; --primary-soft: #f0ebff; --accent: #cc6d8e; --admin: #7757bd; --violet: #7757bd; }
html[data-theme="rose"] { --primary: #c84f72; --primary-dark: #aa365a; --primary-soft: #ffebef; --accent: #c56b31; --admin: #c84f72; --violet: #7757bd; }
html[data-theme="amber"] { --primary: #a96f08; --primary-dark: #875704; --primary-soft: #fff4d6; --accent: #b64d3e; --admin: #a96f08; --violet: #65539b; }
html[data-theme="cyan"] { --primary: #1689a0; --primary-dark: #0e7085; --primary-soft: #e2f8fb; --accent: #cc6f2d; --admin: #1689a0; --violet: #65539b; }
html[data-theme="red"] { --primary: #bf4a4a; --primary-dark: #9f3434; --primary-soft: #ffebeb; --accent: #b87222; --admin: #bf4a4a; --violet: #7159a7; }
html[data-theme="graphite"] { --primary: #58636b; --primary-dark: #3f484f; --primary-soft: #edf0f2; --accent: #946d38; --admin: #58636b; --violet: #665b78; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 30; height: 70px; border-bottom: 1px solid var(--line); background: rgba(11, 15, 14, 0.96); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; gap: 24px; width: min(1280px, 100%); height: 100%; margin: auto; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: 19px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.brand-mark, .auth-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #82efd6; border-radius: 8px; background: var(--primary); color: #07120f; font-size: 16px; font-weight: 900; box-shadow: 0 0 22px rgba(104, 223, 195, 0.18); }
.desktop-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.desktop-nav a { position: relative; border-radius: 6px; color: var(--muted); padding: 10px 13px; font-size: 14px; text-decoration: none; }
.desktop-nav a:hover { background: var(--surface-soft); color: var(--text); }
.desktop-nav a.active { color: var(--primary); font-weight: 750; }
.desktop-nav a.active::after { position: absolute; right: 13px; bottom: 3px; left: 13px; height: 2px; background: var(--primary); content: ""; }
.header-refresh { flex: none; }
.header-theme { flex: none; }
.header-refresh.is-refreshing { animation: rotate-refresh 0.75s linear infinite; }
.header-refresh:disabled { opacity: 0.55; }
@keyframes rotate-refresh { to { transform: rotate(360deg); } }
.header-login { flex: none; }
.impersonation-banner { position: sticky; top: 70px; z-index: 29; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; border-bottom: 1px solid #d9b36a; background: #fff5de; color: #79520e; padding: 7px 16px; font-size: 13px; }
.impersonation-banner[hidden] { display: none !important; }
.impersonation-banner strong { color: #573a08; }
.impersonation-banner .button { min-height: 32px; border-color: #d9b36a; background: #fffdf8; color: #79520e; padding: 5px 10px; }
.notification-count { display: inline-grid; min-width: 18px; height: 18px; margin-left: 5px; place-items: center; border: 1px solid #7b5148; border-radius: 9px; background: #3e2421; color: #ffb4a5; font-size: 10px; font-weight: 850; vertical-align: 1px; }

.page { width: min(1280px, 100%); margin: 0 auto; padding: 32px 20px 96px; }
.layout { display: grid; grid-template-columns: minmax(0, 748px) 308px; gap: 24px; align-items: start; }
.feed-column, .side-column { min-width: 0; }
.side-column { position: sticky; top: 96px; display: grid; gap: 14px; }
.b-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 22px; align-items: start; }
.b-left-rail { display: grid; gap: 12px; min-width: 0; }
.b-feed-column { min-width: 0; }
.home-control-panel { display: grid; gap: 12px; }
.home-control-panel .feed-intro { align-items: flex-start; padding: 0 2px 4px; }
.home-control-panel .feed-intro h1 { font-size: 28px; }
.home-control-panel .feed-intro p { font-size: 12px; line-height: 1.5; }
.home-control-panel .live-chip { margin-top: 2px; padding: 5px 8px; }
.home-control-panel .toolbar { margin: 0; padding: 14px; }
.home-control-panel .toolbar-row { align-items: stretch; flex-direction: column; }
.home-control-panel .segment { width: 100%; }
.home-control-panel .segment button { flex: 1; }
.b-left-rail .announcement-bar { align-items: flex-start; flex-direction: column; gap: 3px; width: 100%; margin: 0; }
.mobile-secondary-toggle, .mobile-module-tabs { display: none; }
.mobile-secondary-content { display: contents; }
.b-profile-panel .account-panel { margin: 0; box-shadow: none; }
.b-profile-panel .account-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.b-profile-panel .account-panel .button { grid-column: 1 / -1; }
.b-profile-panel .account-panel > div:nth-child(2) { min-width: 0; }
.b-profile-panel .account-panel .button { display: block; margin-top: 11px; width: 100%; text-align: center; }
.b-nav-panel { padding: 15px; }
.b-category-nav { display: grid; gap: 4px; }
.b-category-nav a { display: flex; align-items: center; gap: 8px; border-radius: 5px; color: var(--muted); padding: 9px 8px; font-size: 13px; text-decoration: none; }
.b-category-nav a:hover, .b-category-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 750; }
.category-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.b-help-panel { border-left: 3px solid var(--accent); }
.b-help-panel strong { font-size: 13px; color: var(--accent); }
.b-help-panel p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; font-size: 12px; }
.b-right-rail { gap: 12px; }
.b-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.b-panel-title .side-title { margin-bottom: 11px; }
.b-panel-title > span { color: var(--muted); font-size: 11px; }
.b-trend-list { margin: 0; padding: 0; list-style: none; counter-reset: trend; }
.b-trend-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; border-top: 1px solid var(--line); padding: 11px 0; counter-increment: trend; }
.b-trend-list li strong, .b-trend-list li small { grid-column: 2; }
.b-trend-list li strong { grid-row: 1; }
.b-trend-list li small { grid-row: 2; }
.b-trend-list li:first-child { border-top: 0; padding-top: 0; }
.b-trend-list li::before { content: counter(trend, decimal-leading-zero); color: var(--primary); font-size: 12px; font-weight: 850; }
.b-trend-list strong, .b-trend-list small { display: block; }
.b-trend-list strong { font-size: 12px; line-height: 1.45; }
.b-trend-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.b-trend-link { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; color: inherit; text-decoration: none; }
.b-trend-list li.hotboard-item { display: block; }
.b-trend-list li.hotboard-item::before { content: none; }
.b-trend-link:hover strong, .b-event-link:hover strong { color: var(--primary); }
.hotboard-rank { color: var(--primary); font-size: 12px; font-weight: 850; }
.hotboard-copy { min-width: 0; }
.hotboard-copy strong, .hotboard-copy small { display: block; }
.hotboard-copy strong { font-size: 12px; line-height: 1.45; }
.hotboard-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.hotboard-empty { color: var(--muted); font-size: 12px; list-style: none; padding: 8px 0; }
.b-event-link { color: inherit; text-decoration: none; }
.b-manage-link { display: inline-flex; margin-top: 10px; min-height: 32px; padding: 5px 8px; }
.profile-kicker { display: block; margin-bottom: 4px; color: var(--primary); font-size: 12px; font-weight: 800; }
.hotboard-full-panel { padding: 12px 20px; }
.hotboard-full-list { margin: 0; padding: 0; list-style: none; }
.hotboard-full-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.hotboard-full-list li:last-child { border-bottom: 0; }
.hotboard-full-list .b-trend-link { grid-template-columns: 42px minmax(0, 1fr); align-items: center; }
.hotboard-full-list .hotboard-rank { font-size: 14px; }
.hotboard-full-list .hotboard-copy strong { font-size: 14px; }
.hotboard-admin-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: start; }
.hotboard-admin-row + .hotboard-admin-row { margin-top: 12px; }
.hotboard-admin-rank { padding-top: 20px; color: var(--primary); font-size: 14px; font-weight: 850; text-align: center; }
.settings-group { display: grid; gap: 14px; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); padding: 15px; }
.settings-group legend { color: var(--primary); padding: 0 7px; font-size: 13px; font-weight: 850; }
.notice-preview { border-left: 3px solid var(--accent); border-radius: 6px; background: var(--surface-soft); padding: 14px; }
.notice-preview small, .notice-preview strong { display: block; }
.notice-preview small { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.notice-preview strong { color: var(--accent); font-size: 14px; }
.notice-preview p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.modal-backdrop[hidden] { display: none !important; pointer-events: none !important; }
body.auth-open { overflow: hidden; }
.b-full-button { width: 100%; min-height: 34px; margin-top: 4px; }
.b-event { display: flex; gap: 9px; border-top: 1px solid var(--line); padding: 11px 0 0; margin-top: 2px; }
.b-event + .b-event { margin-top: 10px; }
.event-date { display: grid; place-items: center; width: 42px; height: 36px; border: 1px solid #4e6d8d; border-radius: 5px; background: #17283a; color: var(--admin); font-size: 11px; font-weight: 800; }
.b-event strong, .b-event small { display: block; }
.b-event strong { font-size: 12px; }
.b-event small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.panel, .post-card, .toolbar { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.panel { padding: 19px; }

.feed-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 2px 2px 23px; }
.feed-intro::before { position: absolute; width: 0; height: 0; content: ""; }
.feed-intro h1 { margin: 0; font-size: 31px; line-height: 1.2; }
.feed-intro p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1px solid #285849; border-radius: 14px; background: #11251f; color: var(--primary); padding: 6px 10px; font-size: 12px; font-weight: 750; }
.live-chip::before { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(104, 223, 195, 0.8); content: ""; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 0 20px; }
.page-heading h1 { margin: 0; font-size: 27px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.announcement-bar { display: flex; align-items: baseline; gap: 12px; margin: 0 auto 16px; width: min(1120px, 100%); border: 1px solid #4e452c; border-left: 3px solid var(--accent); border-radius: 6px; background: #1d1a12; color: #e6d49b; padding: 11px 14px; line-height: 1.55; }
.announcement-bar strong { flex: none; color: var(--accent); font-size: 13px; }
.announcement-bar span { min-width: 0; white-space: pre-wrap; word-break: break-word; font-size: 13px; }

.toolbar { padding: 16px; margin-bottom: 14px; }
.category-scroll { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding-bottom: 3px; }
.category-scroll::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; min-height: 35px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-soft); color: #b7c3be; padding: 6px 13px; cursor: pointer; font-size: 13px; }
.filter-chip:hover { border-color: #587069; color: var(--text); }
.filter-chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 750; }
.toolbar-row { display: flex; gap: 10px; margin-top: 13px; }
.search-box { display: flex; flex: 1; }
.search-box input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-right: 0; border-radius: 6px 0 0 6px; background: #0f1513; color: var(--text); padding: 10px 12px; }
.search-box button { border-radius: 0 6px 6px 0; }
.segment { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.segment button { border: 0; background: var(--surface-soft); color: var(--muted); padding: 8px 12px; cursor: pointer; }
.segment button.active { background: #26312d; color: var(--text); font-weight: 750; }

.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #315148; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 850; }

.post-list { display: grid; gap: 13px; }
.post-card { position: relative; overflow: hidden; padding: 18px; }
.post-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--category-color, var(--primary)); content: ""; }
.post-head { display: flex; align-items: center; gap: 11px; }
.post-meta { min-width: 0; flex: 1; }
.post-author { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 800; }
.post-subline { margin-top: 4px; color: var(--muted); font-size: 12px; }
.post-badges { display: flex; align-items: center; gap: 6px; flex: none; }
.category-label, .identity-badge, .pinned-badge, .status-label, .locked-badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 800; }
.category-label { border: 1px solid var(--line); background: var(--surface-soft); }
.identity-badge { border: 1px solid #466d95; background: #17283a; color: var(--admin); }
.identity-badge::before { margin-right: 4px; content: "◆"; font-size: 8px; }
.pinned-badge { border: 1px solid #715d2f; background: #302713; color: var(--accent); }
.pinned-badge::before { margin-right: 4px; content: "↑"; }
.status-pending { background: #302713; color: var(--accent); }
.status-rejected { background: #351b1a; color: var(--danger); }
.status-deleted { background: #252827; color: #aeb9b4; }
.locked-badge { border: 1px solid #5d4e34; background: #282318; color: #e0bd70; }
.post-content { margin: 15px 0 13px; white-space: pre-wrap; word-break: break-word; color: #e7eeea; line-height: 1.75; font-size: 15px; cursor: pointer; }
.post-notes { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.post-note, .edited-note { color: var(--muted); font-size: 11px; }
.post-images { display: grid; gap: 7px; margin: 10px 0 13px; }
.post-images.one { grid-template-columns: 1fr; }
.post-images.two, .post-images.three { grid-template-columns: repeat(2, 1fr); }
.post-image-button { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); padding: 0; cursor: zoom-in; }
.post-image-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.post-images.one .post-image-button { max-height: 620px; aspect-ratio: auto; }
.post-images.one .post-image-button img { width: auto; max-width: 100%; height: auto; max-height: 620px; }
.post-image-button:hover, .post-image-button:focus-visible { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.viewer-open { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(12, 13, 13, .92); padding: 54px 18px 22px; }
.image-viewer[hidden] { display: none; }
.image-viewer-stage { display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.image-viewer img { display: block; max-width: min(94vw, 1400px); max-height: calc(100vh - 130px); object-fit: contain; }
.image-viewer-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 1; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 24px; cursor: pointer; }
.image-viewer-original { border: 1px solid rgba(255,255,255,.4); border-radius: 5px; color: #fff; padding: 8px 12px; text-decoration: none; }
.image-viewer-original:hover, .image-viewer-original:focus-visible { border-color: #fff; background: rgba(255,255,255,.12); }
.post-actions { display: flex; align-items: center; gap: 3px; padding-top: 11px; border-top: 1px solid var(--line); }
.action-button { min-height: 34px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); padding: 7px 9px; cursor: pointer; font-size: 13px; }
.action-button:hover { background: var(--surface-soft); color: var(--text); }
.action-button.active { color: var(--danger); font-weight: 750; }
.action-spacer { flex: 1; }

.side-title { margin: 0 0 13px; font-size: 16px; }
.side-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.side-links a { border: 1px solid transparent; border-radius: 5px; background: var(--surface-soft); color: #b9c5c0; padding: 10px; font-size: 13px; text-decoration: none; }
.side-links a:hover { border-color: #496059; color: var(--primary); }
.side-note { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65; }
.account-panel { display: flex; align-items: center; gap: 11px; }
.account-panel > div:nth-child(2) { min-width: 0; flex: 1; }
.account-panel strong { display: block; font-size: 14px; }
.account-panel span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.button { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-soft); color: var(--text); padding: 8px 15px; cursor: pointer; font-weight: 750; }
.button:hover { border-color: #587069; background: var(--surface-strong); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button-primary { border-color: var(--primary); background: var(--primary); color: #07120f; }
.button-primary:hover { border-color: #8af1d9; background: #7be9cf; }
.button-admin { border-color: #4e6d8d; background: #21384f; color: #d8e9fb; }
.button-admin:hover { background: #294661; }
.button-danger { border-color: #6f3a36; background: #311a19; color: var(--danger); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-block { width: 100%; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 21px; cursor: pointer; }
.icon-button:hover { border-color: #50665f; background: var(--surface-soft); color: var(--primary); }

.form-panel { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 24px; box-shadow: var(--shadow); }
.form-stack { display: grid; gap: 16px; }
.form-stack h2 { margin: 0; font-size: 21px; }
.form-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.form-stack label { display: grid; gap: 7px; color: #c3cdc8; font-size: 14px; font-weight: 700; }
.form-stack input, .form-stack textarea, .form-stack select, .select { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; background: #0e1412; color: var(--text); padding: 11px 12px; }
.form-stack input { min-height: 44px; }
.form-stack textarea { min-height: 160px; resize: vertical; line-height: 1.65; }
.form-stack select option { background: #111815; color: var(--text); }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus, .search-box input:focus { outline: 3px solid rgba(104, 223, 195, 0.22); border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex !important; align-items: center; gap: 8px !important; color: #c4cfca !important; font-weight: 600 !important; }
.checkbox-row input { width: 17px; height: 17px; min-height: 0; accent-color: var(--primary); }
.counter { color: var(--muted); font-size: 12px; text-align: right; }
.publish-options { display: grid; gap: 10px; }
.admin-publish-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #3d5268; border-radius: 6px; background: #131f2a; padding: 13px 14px; }
.admin-publish-option strong, .admin-publish-option span { display: block; }
.admin-publish-option strong { color: #dbeaf9; font-size: 14px; }
.admin-publish-option span { margin-top: 3px; color: #8ea6bb; font-size: 12px; }
.switch { display: inline-flex !important; position: relative; flex: none; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: relative; width: 42px; height: 24px; border: 1px solid #506159; border-radius: 12px; background: #242d29; cursor: pointer; transition: 0.2s; }
.switch span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #89968f; content: ""; transition: 0.2s; }
.switch input:checked + span { border-color: var(--primary); background: #17483d; }
.switch input:checked + span::after { left: 21px; background: var(--primary); }
.switch input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.admin-login-notice { border-left: 3px solid var(--admin); background: #152230; color: #a8bbcc; padding: 10px 12px; font-size: 13px; line-height: 1.55; }
.image-picker { border: 1px dashed #4b5e57; border-radius: 6px; background: #101613; padding: 14px; }
.image-picker input { min-height: 0; border: 0; padding: 0; }
.image-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.image-preview img { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); object-fit: contain; }

.empty-state, .loading-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); padding: 48px 20px; text-align: center; }
.load-more { display: block; margin: 18px auto 0; }
.detail-wrap { max-width: 800px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 15px; color: var(--primary); text-decoration: none; }
.comments { margin-top: 18px; }
.comments h2 { margin: 0 0 12px; font-size: 19px; }
.comment { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 14px; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-time { margin-left: auto; color: var(--muted); }
.comment-body { margin: 9px 0 0; white-space: pre-wrap; color: #dce5e1; line-height: 1.6; }
.comment-form { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 15px; }
.comment-form textarea { width: 100%; min-height: 84px; border: 1px solid var(--line-strong); border-radius: 6px; background: #0e1412; color: var(--text); padding: 10px; resize: vertical; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.comment-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.locked-notice { border: 1px solid #5d4e34; border-radius: 6px; background: #211d14; color: #e0bd70; padding: 13px 14px; }
.profile-head { display: flex; align-items: center; gap: 15px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 20px; }
.profile-head h1 { margin: 0; font-size: 21px; }
.profile-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.profile-head > div:nth-child(2) { min-width: 0; flex: 1; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.profile-tags span { border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-soft); color: var(--muted); padding: 3px 7px; font-size: 11px; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.profile-edit { max-width: none; margin-top: 14px; }
.appeal-box { margin: 10px 0; border-left: 3px solid var(--admin); background: color-mix(in srgb, var(--admin) 10%, var(--surface)); color: var(--text); padding: 10px 12px; font-size: 13px; }
.appeal-box strong { color: var(--admin); }
.appeal-form-note { border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--text); padding: 12px; line-height: 1.6; }
.notification-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { position: relative; width: 100%; min-height: 88px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 14px 16px; color: var(--text); text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.stat-card:nth-child(4) { border-color: #67562e; }
.stat-card strong { display: block; color: var(--primary); font-size: 25px; }
.stat-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.stat-card small { position: absolute; right: 12px; bottom: 12px; color: var(--primary); font-size: 11px; opacity: .68; transform: translateX(-3px); transition: opacity .16s ease, transform .16s ease; }
.stat-card:hover, .stat-card:focus-visible { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: 0 8px 18px rgba(59, 55, 39, .09); transform: translateY(-2px); }
.stat-card:hover small, .stat-card:focus-visible small { opacity: 1; transform: translateX(0); }
.stat-card:active { transform: translateY(0); }
.admin-tabs { display: flex; gap: 7px; margin: 16px 0; overflow-x: auto; }
.admin-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: start; }
.admin-rail { position: sticky; top: 90px; display: grid; gap: 4px; align-content: start; }
.admin-rail .button { width: 100%; border-color: transparent; background: transparent; color: var(--muted); text-align: left; }
.admin-rail .button:hover { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
.admin-rail .button-primary { border-color: var(--line-strong); background: var(--surface); color: var(--primary); }
.admin-rail-label { margin: 10px 8px 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.admin-rail-label:first-child { margin-top: 0; }
.admin-workspace { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.admin-account-layout { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(280px, 1.2fr); gap: 18px; align-items: start; }
.admin-account-note { border-left: 3px solid var(--admin); background: #152230; color: #bdd0e2; padding: 14px; font-size: 13px; line-height: 1.65; }
.admin-account-note strong { color: var(--admin); }
.admin-account-note p { margin: 8px 0 0; }
.admin-create-form { border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); padding: 16px; }
.admin-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 11px; text-align: left; }
.admin-table th { background: var(--surface-soft); color: #b6c2bc; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.review-box { margin: 10px 0; border-left: 3px solid var(--accent); background: #2c2515; color: #e7c77f; padding: 9px 11px; font-size: 13px; }

.admin-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 18px 0 12px; }
.admin-section-head h2 { margin: 0; font-size: 19px; }
.admin-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.admin-filter { flex: none; }
.record-list, .user-list, .log-list, .notification-list { display: grid; gap: 9px; }
.record-card, .user-row, .log-row, .notification-item { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 14px; }
.record-card header, .record-card footer, .notification-item header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.record-card header span, .record-card small, .record-card footer, .notification-item header span, .notification-item small { color: var(--muted); font-size: 12px; }
.record-card header strong { display: block; font-size: 14px; }
.record-card header div span { display: block; margin-top: 4px; }
.record-card p { margin: 11px 0; white-space: pre-wrap; line-height: 1.6; }
.record-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); font-size: 12px; }
.record-status { border-radius: 4px; background: var(--surface-soft); padding: 4px 7px; white-space: nowrap; }
.record-card footer { align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.user-list { gap: 8px; }
.user-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-main { min-width: 180px; flex: 1; }
.user-main strong, .user-main span, .user-main small { display: block; }
.user-main span, .user-main small, .user-state { margin-top: 4px; color: var(--muted); font-size: 12px; }
.user-private-info { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.user-private-info span { display: inline-flex; gap: 5px; margin: 0; }
.user-private-info b { color: var(--text); font-weight: 750; }
.user-security-note { margin-bottom: 10px; }
.impersonate-button { border-color: #d9b36a; background: #fff5de; color: #8d6518; }
.user-state { display: grid; justify-items: start; min-width: 118px; margin-top: 0; }
.role-badge { border: 1px solid #466d95; border-radius: 4px; background: #17283a; color: var(--admin); padding: 3px 7px; font-size: 11px; font-weight: 800; }
.role-superadmin { border-color: #655790; background: #28233c; color: var(--violet); }
.admin-search { display: flex; min-width: min(360px, 100%); }
.admin-search input { min-width: 0; flex: 1; border: 1px solid var(--line-strong); border-right: 0; border-radius: 6px 0 0 6px; background: #0f1513; color: var(--text); padding: 9px 11px; }
.admin-search .button { border-radius: 0 6px 6px 0; }
.export-row { justify-content: flex-end; margin-bottom: 10px; }
.admin-form-panel { max-width: none; margin: 0; }
.log-row { display: grid; grid-template-columns: 130px minmax(150px, 1fr) 150px 120px 110px; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.log-row strong { color: var(--text); }
.log-row code { color: var(--primary); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.history-grid > section { min-width: 0; }
.history-grid h3 { margin: 0 0 9px; font-size: 15px; }
.history-item { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 11px; }
.history-item strong, .history-item span { display: block; font-size: 12px; }
.history-item p { margin: 7px 0; white-space: pre-wrap; line-height: 1.5; font-size: 13px; }
.history-item span { color: var(--muted); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.notification-item header strong { font-size: 14px; }
.notification-item p { margin: 9px 0; white-space: pre-wrap; line-height: 1.6; }
.notification-item.unread { border-left: 3px solid var(--primary); background: #14221d; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, 0.78); padding: 18px; backdrop-filter: blur(10px); }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 8px; background: #111715; padding: 26px; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52); }
.auth-modal { border-top: 3px solid var(--primary); }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin: 0 42px 22px 0; }
.auth-brand strong, .auth-brand span { display: block; }
.auth-brand strong { font-size: 16px; }
.auth-brand div > span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 6px; background: #0d1210; padding: 3px; }
.auth-tabs button { min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.auth-tabs button.active { background: var(--surface-strong); color: var(--primary); font-weight: 800; }
.toast { position: fixed; bottom: 86px; left: 50%; z-index: 90; max-width: min(420px, calc(100vw - 32px)); transform: translateX(-50%); border: 1px solid #43554e; border-radius: 6px; background: #18201d; color: #fff; padding: 11px 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36); font-size: 14px; }
.mobile-nav { display: none; }
.danger-text { color: var(--danger); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side-column, .desktop-nav { display: none; }
  .b-layout { display: flex; flex-direction: column; }
  .b-left-rail { display: grid; order: 1; width: 100%; gap: 10px; }
  .home-control-panel { width: 100%; gap: 8px; }
  .b-feed-column { order: 2; width: 100%; }
  .mobile-secondary-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); padding: 9px 12px; text-align: left; cursor: pointer; }
  .mobile-secondary-toggle > span:first-child { min-width: 0; }
  .mobile-secondary-toggle strong, .mobile-secondary-toggle small { display: block; }
  .mobile-secondary-toggle strong { color: var(--primary); font-size: 14px; }
  .mobile-secondary-toggle small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu-state { color: var(--muted); font-size: 12px; }
  .mobile-menu-chevron { color: var(--primary); font-size: 20px; line-height: 1; transition: transform .18s ease; }
  .mobile-secondary-toggle[aria-expanded="true"] .mobile-menu-chevron { transform: rotate(180deg); }
  .mobile-secondary-content { display: grid; gap: 10px; width: 100%; }
  .mobile-secondary-content.is-collapsed { display: none; }
  .mobile-secondary-content .toolbar { margin-bottom: 0; }
  .mobile-module-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
  .mobile-module-tabs button { min-width: 0; min-height: 40px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 6px; cursor: pointer; font-size: 12px; }
  .mobile-module-tabs button:nth-child(2n) { border-right: 0; }
  .mobile-module-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .mobile-module-tabs button.active { background: var(--primary-soft); color: var(--primary); font-weight: 750; }
  .mobile-secondary-section { display: none; }
  .mobile-secondary-section.is-active { display: block; }
  .b-profile-panel, .b-help-panel { min-width: 0; }
  .header-inner { gap: 10px; }
  .page { padding: 22px 13px 86px; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(15, 21, 19, 0.97); backdrop-filter: blur(14px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; text-decoration: none; }
  .mobile-nav a span { font-size: 20px; line-height: 1; }
  .mobile-nav a.active { color: var(--primary); font-weight: 750; }
  .toolbar-row { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-rail { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
  .admin-rail-label { width: 100%; margin: 5px 0 0; }
  .admin-rail .button { width: auto; flex: 0 0 auto; }
  .admin-workspace { padding: 14px; }
  .admin-account-layout { grid-template-columns: 1fr; }
  .admin-section-head { align-items: stretch; flex-direction: column; }
  .admin-search { min-width: 0; }
  .history-grid { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .site-header { height: 64px; }
  .impersonation-banner { top: 64px; align-items: stretch; flex-direction: column; gap: 6px; padding: 9px 12px; text-align: center; }
  .header-inner { padding: 0 12px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-refresh { width: 36px; height: 36px; margin-left: auto; }
  .header-theme { width: 36px; height: 36px; margin-left: auto; }
  .header-theme + .header-refresh { margin-left: 0; }
  .header-login { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .feed-intro { align-items: flex-start; padding-bottom: 18px; }
  .feed-intro h1 { font-size: 25px; }
  .feed-intro p { max-width: 230px; line-height: 1.55; }
  .live-chip { margin-top: 3px; padding: 5px 8px; }
  .page-heading h1 { font-size: 23px; }
  .post-card { padding: 15px; }
  .post-head { align-items: flex-start; }
  .post-badges { flex-direction: column; align-items: flex-end; }
  .post-actions { gap: 0; overflow-x: auto; }
  .action-button { flex: none; padding: 7px 6px; }
  .form-panel, .modal { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-tabs button { font-size: 12px; }
  .post-images.two, .post-images.three { grid-template-columns: repeat(2, 1fr); }
  .image-preview { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { min-height: 82px; padding: 12px; }
  .stat-card small { position: static; display: block; margin-top: 5px; opacity: 1; transform: none; }
  .announcement-bar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .profile-head { align-items: flex-start; flex-wrap: wrap; }
  .profile-actions { width: 100%; justify-content: flex-start; margin-left: 55px; }
  .user-row .admin-actions { width: 100%; margin-left: 52px; }
  .record-card footer { align-items: flex-start; flex-direction: column; }
  .log-row { grid-template-columns: 1fr; gap: 5px; }
}

/* Campus Editorial B theme: the production site uses the same light editorial
   language as the approved preview while keeping the existing interactions. */
:root {
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-soft: #f1eee5;
  --surface-strong: #ebe6db;
  --text: #252525;
  --muted: #777267;
  --line: #e4ded1;
  --line-strong: #d6cfc2;
  --primary: #2853a5;
  --primary-dark: #1e438c;
  --primary-soft: #e4ebfa;
  --accent: #d77c32;
  --danger: #bc4b42;
  --admin: #316395;
  --violet: #65539b;
  --shadow: 0 10px 22px rgba(59, 55, 39, .08);
}

body { background: var(--bg); color: var(--text); }
.site-header { background: rgba(255, 253, 248, .96); border-color: var(--line); box-shadow: 0 1px 0 rgba(59, 55, 39, .04); }
.brand-mark, .auth-brand-mark { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: none; }
.desktop-nav a.active { background: var(--primary-soft); color: var(--primary); }
.desktop-nav a.active::after { background: var(--primary); }
.icon-button, .button, .segment button, .filter-chip, .toolbar,
.panel, .post-card, .form-panel, .comment, .comment-form, .empty-state,
.loading-panel, .admin-workspace, .record-card, .user-row, .log-row,
.notification-item, .history-item { background: var(--surface); color: var(--text); border-color: var(--line); }
.button-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button-admin { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); color: var(--primary); }
.button-danger { background: #fff0ef; border-color: #e6b1ac; color: var(--danger); }
.button-quiet { color: var(--muted); }
.post-card, .admin-workspace { box-shadow: 0 7px 0 #e8e2d6; }
.post-content { color: var(--text); }
.identity-badge { border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.pinned-badge, .locked-badge { border-color: #d9b36a; background: #fff5de; color: #a16a10; }
.category-label { background: var(--surface-soft); color: var(--muted); }
.status-pending { background: #fff5de; color: #a16a10; }
.status-rejected { background: #fff0ef; color: var(--danger); }
.status-deleted { background: #f0efeb; color: var(--muted); }
.b-nav-panel, .b-help-panel, .b-trend-panel, .b-event-panel { background: var(--surface); border-color: var(--line); }
.b-category-nav a:hover, .b-category-nav a.active { background: var(--primary-soft); color: var(--primary); }
.event-date { border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.review-box { background: #fff5de; border-color: #ead6a4; color: #8d6518; }
.admin-account-note { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); color: var(--text); }
.admin-create-form { background: var(--surface-soft); border-color: var(--line); }
.admin-rail .button { color: var(--muted); }
.admin-rail .button-primary { background: var(--surface); border-color: var(--line); color: var(--primary); }
.admin-search input, .form-stack input, .form-stack textarea, .form-stack select,
.admin-create-form input, .admin-create-form select, .search-box input { background: var(--surface); color: var(--text); border-color: var(--line); }
.modal-backdrop { background: rgba(51, 47, 37, .35); }
.modal { background: var(--surface); border-color: var(--line); box-shadow: 0 20px 50px rgba(59, 55, 39, .18); }
.auth-tabs { background: var(--surface-soft); border-color: var(--line); }
.auth-tabs button.active { background: var(--surface); color: var(--primary); }
.notification-item.unread { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.toast { background: #252525; border-color: #4a4a4a; color: #fff; }
.toast { pointer-events: none; }
.mobile-nav { background: rgba(255, 253, 248, .97); border-color: var(--line); }
.announcement-bar { background: var(--surface); border-color: var(--line); border-left-color: var(--accent); color: var(--text); }
.announcement-bar strong { color: var(--accent); }
.filter-chip { color: var(--muted); }
.filter-chip:hover { border-color: #8ca5d4; color: var(--primary); }
.search-box input, .admin-search input { background: var(--surface); color: var(--text); }
.segment button.active { background: var(--primary-soft); color: var(--primary); }
.live-chip { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); color: var(--primary); }
.live-chip::before { background: var(--primary); box-shadow: 0 0 8px rgba(40, 83, 165, .35); }
.post-content { color: var(--text); }
.side-links a { color: var(--muted); }
.button-primary { color: #fff; }
.admin-login-notice { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--primary); }
.admin-publish-option { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.image-picker { background: var(--surface-soft); border-color: var(--line-strong); }
.locked-notice { background: #fff5de; color: #8d6518; border-color: #ead6a4; }
.role-badge { border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.role-superadmin { border-color: #9b8acb; background: #f0ecfb; color: #65539b; }

@media (max-width: 560px) {
  .modal-backdrop { align-items: start; overflow-y: auto; padding: max(12px, env(safe-area-inset-top)) 10px calc(78px + env(safe-area-inset-bottom)); }
  .modal { width: 100%; max-height: none; margin: 0 auto; padding: 20px 16px; border-radius: 8px; }
  .auth-brand { margin-right: 30px; }
  .auth-tabs { margin-bottom: 16px; }
  .auth-tabs button { min-width: 0; padding: 0 4px; }
  .form-stack { gap: 12px; }
  .form-stack input, .form-stack textarea, .form-stack select { width: 100%; min-width: 0; }
  .button-block { width: 100%; }
}
