/* CosplayFC Manager — unified workspace UI.
   Responsive, accessible, self-contained: no JS or icon CDN needed for forms. */
:root {
  color-scheme: light;
  --ink: #222338;
  --ink-subtle: #656a7e;
  --primary: #5934d7;
  --primary-deep: #4723bd;
  --primary-soft: #f0ecff;
  --surface: #f6f7fc;
  --surface-container: #fff;
  --line: #e7e8f1;
  --line-strong: #d6d8e6;
  --success: #147452;
  --success-bg: #e8f7f0;
  --danger: #b8374c;
  --danger-bg: #fff0f2;
  --warning: #9a6408;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 7px 28px rgba(35, 30, 77, .045), 0 1px 4px rgba(35, 30, 77, .04);
  --shadow-raised: 0 18px 48px rgba(40, 29, 93, .13);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--surface); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { font-family: var(--font-head); letter-spacing: -.035em; line-height: 1.27; margin: 0 0 12px; }
h1 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; }
h2 { font-size: 1.13rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; }
p { margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a999ff; outline-offset: 3px; }
::selection { background: #ded5ff; color: #29136f; }
code { display: inline-block; background: #f1effa; color: #554195; padding: 2px 7px; border-radius: 6px; font-size: .86em; word-break: break-word; }
.muted { color: var(--ink-subtle); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-xs { width: 13px; height: 13px; }
.icon-lg { width: 24px; height: 24px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: white; color: var(--primary); border: 2px solid var(--primary); border-radius: 9px; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* Workspace shell */
.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; z-index: 30; color: #e9e5fb; background: #181429; border-right: 1px solid #27213c; }
.sidebar-brand { min-height: 94px; display: flex; align-items: center; gap: 13px; padding: 24px 23px 20px; color: white; }
.sidebar-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 20px rgba(116, 92, 234, .22); }
.sidebar-brand-copy { display: flex; flex-direction: column; line-height: 1.3; gap: 3px; }
.sidebar-brand-copy strong { font-size: 16px; font-family: var(--font-head); font-weight: 800; letter-spacing: -.04em; }
.sidebar-brand-copy small { font-size: 10px; color: #aaa2c5; font-weight: 600; letter-spacing: .05em; }
.sidebar-scroll { padding: 3px 13px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #48405d transparent; flex: 1 1 auto; }
.sidebar-section { margin-bottom: 22px; }
.nav-label { margin: 0 10px 9px; font-size: 10px; color: #89819e; font-weight: 800; letter-spacing: .14em; }
.nav-item { position: relative; display: flex; gap: 12px; align-items: center; min-height: 43px; border-radius: 10px; padding: 10px 12px; color: #c3bed6; font-weight: 550; font-size: 13px; transition: color .15s, background .15s; }
.nav-item .icon { width: 18px; height: 18px; color: #aca4c4; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { color: #fff; background: #2c2543; }
.nav-item.active { color: #fff; background: linear-gradient(110deg, #6c4be7, #5030c5); box-shadow: 0 5px 16px rgba(68, 37, 153, .3); font-weight: 700; }
.nav-item.active .icon { color: #fff; }
.sidebar-bottom { padding: 10px 14px 20px; border-top: 1px solid #29243e; }
.sidebar-workspace-note { border: 1px solid #38304f; border-radius: 12px; background: #211b36; padding: 12px; display: flex; gap: 11px; align-items: flex-start; }
.sidebar-workspace-note .icon { color: #a899ff; }
.sidebar-workspace-note strong, .sidebar-workspace-note span { display: block; }
.sidebar-workspace-note strong { font-size: 11px; margin-bottom: 2px; color: #faf9ff; }
.sidebar-workspace-note span { font-size: 11px; color: #a7a0be; line-height: 1.5; }
.sidebar-account { display: flex; align-items: center; gap: 11px; padding: 17px 8px 0; }
.sidebar-account-avatar, .profile-avatar { display: grid; place-items: center; flex: 0 0 auto; background: #e9e3ff; color: #6a4ad3; border-radius: 12px; width: 37px; height: 37px; }
.sidebar-account strong, .sidebar-account small { display: block; max-width: 155px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.sidebar-account strong { font-weight: 700; font-size: 12px; }
.sidebar-account small { color: #a9a1be; font-size: 11px; }
.sidebar-backdrop { display: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { height: 78px; max-width: 1490px; padding: 0 clamp(20px, 3vw, 48px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-leading, .header-actions, .header-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.header-eyebrow { display: flex; align-items: center; gap: 6px; color: #9293a3; font-size: 11px; font-weight: 600; }
.header-current { color: #2d2a43; font-family: var(--font-head); font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { gap: 15px; }
.header-divider { height: 31px; width: 1px; background: var(--line); }
.header-profile { gap: 9px; }
.profile-avatar { width: 35px; height: 35px; border-radius: 11px; }
.profile-meta { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; max-width: 140px; }
.profile-meta strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; }
.profile-meta span { font-size: 10px; color: var(--ink-subtle); }
.logout-form { margin: 0; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-subtle); transition: background .16s, color .16s; }
.icon-button:hover { color: var(--primary); background: var(--primary-soft); }
.menu-toggle { display: none; }
.content { width: 100%; max-width: 1490px; padding: 34px clamp(20px, 3vw, 48px) 68px; margin: 0 auto; flex: 1 0 auto; min-width: 0; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 3vw, 48px); font-size: 11px; color: #a0a2b0; border-top: 1px solid var(--line); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-head h1 { margin-bottom: 7px; }
.page-desc { margin: 0; color: var(--ink-subtle); max-width: 700px; font-size: 13px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; text-transform: uppercase; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.page-head-actions { flex: 0 0 auto; }
.count-pill { padding: 7px 12px; border-radius: 999px; color: #6342ca; background: #eae4ff; font-size: 12px; font-weight: 750; }

/* Buttons and controls */
.btn-primary, .btn-ghost, .btn-danger, .page-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; border: 1px solid transparent; min-height: 42px; padding: 10px 16px; color: inherit; font-family: var(--font-head); font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.4; transition: background .16s, transform .16s, box-shadow .16s, color .16s; }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(89, 52, 215, .14); }
.btn-primary:hover { color: #fff; background: var(--primary-deep); box-shadow: 0 6px 18px rgba(89, 52, 215, .22); transform: translateY(-1px); }
.btn-ghost { color: #504c6a; background: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--primary); border-color: #c7b9ff; background: #faf8ff; }
.btn-danger { color: var(--danger); border-color: #f3c7d0; background: var(--danger-bg); }
.btn-danger:hover { background: #ffe1e7; }
.btn-sm { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 11px; }
.btn-block { display: flex; width: 100%; }
.btn-primary .icon, .btn-ghost .icon, .btn-danger .icon { width: 16px; height: 16px; }
.surface-card, .post-form, .post-list, .post-detail, .comments, .activities, .empty-state, .table-wrap { background: var(--surface-container); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.surface-card { padding: 24px; }
.surface-card h2 { margin-bottom: 5px; }
.section-description { font-size: 12px; color: var(--ink-subtle); margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; gap: 11px; justify-content: space-between; margin: 30px 0 15px; }
.section-heading h2 { margin: 0; }
.section-heading-meta { font-size: 12px; color: var(--ink-subtle); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 750; color: #47435f; }
.field small { font-size: 11px; color: #9292a3; font-weight: 450; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field select, .field textarea, .filter-bar select, .inline-form select { appearance: none; width: 100%; min-height: 44px; padding: 10px 13px; color: #25243c; background: #fff; border: 1px solid #dfe1eb; border-radius: 10px; font-family: var(--font-body); font-size: 13px; transition: box-shadow .17s, border-color .17s; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar select:focus, .inline-form select:focus { outline: none; border-color: #9579ef; box-shadow: 0 0 0 3px #efe9ff; }
.field input:disabled { background: #f5f5fa; color: #747689; cursor: not-allowed; }
.field input::placeholder, .field textarea::placeholder { color: #a8a8b6; }
.field textarea { resize: vertical; min-height: 110px; }
.field select, .filter-bar select, .inline-form select { padding-right: 35px; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2375758a' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right 11px center; }
.field-check { flex-direction: row; align-items: center; gap: 10px; }
.field-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.field-check span { color: #4c4b62; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
.form-error { color: var(--danger); background: var(--danger-bg); padding: 12px 14px; border-radius: 10px; font-size: 12px; }
.post-form { padding: clamp(20px, 3vw, 30px); }
.post-form h2 { margin-bottom: 20px; }
.post-form .field:last-of-type { margin-bottom: 12px; }
.form-panel { max-width: 860px; }

/* Flash messages */
.flash { display: flex; align-items: flex-start; gap: 9px; padding: 13px 16px; border-radius: 11px; margin-bottom: 20px; font-size: 12px; font-weight: 650; border: 1px solid transparent; }
.flash-success { background: var(--success-bg); border-color: #c5ead8; color: var(--success); }
.flash-error { background: var(--danger-bg); border-color: #f8d3d9; color: var(--danger); }

/* Dashboard and filters */
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.metric-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.metric-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #f0ecff; color: var(--primary); margin-bottom: 12px; }
.metric-icon.green { color: #087c62; background: #e0f8ef; }
.metric-icon.orange { color: #a96a17; background: #fff4dd; }
.metric-value { font: 800 26px/1.25 var(--font-head); letter-spacing: -.045em; color: #262442; margin-bottom: 3px; }
.metric-caption { color: var(--ink-subtle); font-size: 11px; font-weight: 550; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: white; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.filter-caption { display: flex; align-items: center; gap: 8px; color: #514b71; font-weight: 750; font-size: 12px; margin-right: 8px; }
.filter-bar select { width: auto; min-width: 160px; font-size: 12px; min-height: 40px; }
.filter-bar .btn-ghost { min-height: 40px; }

/* Feed */
.post-list { overflow: hidden; }
.post-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 23px; border-bottom: 1px solid #eeeef5; transition: background .15s; }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: #fcfbff; }
.post-row-main { min-width: 0; flex: 1; }
.post-row-title { margin-bottom: 10px; }
.post-row-title a { font: 800 14px/1.5 var(--font-head); color: #2b2943; letter-spacing: -.015em; }
.post-row-title a:hover { color: var(--primary); }
.post-row-meta { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; font-size: 11px; color: #87899c; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item .icon { width: 13px; height: 13px; }
.post-row-open { width: 31px; height: 31px; background: #f5f3fe; color: #7459c4; display: grid; place-items: center; border-radius: 9px; flex-shrink: 0; margin-top: 5px; }
.post-row-open .icon { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; border-radius: 7px; font-weight: 750; letter-spacing: .01em; font-size: 10px; padding: 4px 9px; white-space: nowrap; line-height: 1.5; }
.badge-type-IDEA { color: #7042b5; background: #f0eaff; }
.badge-type-DEVELOPMENT { color: #2556a2; background: #eaf2ff; }
.badge-type-BUG { color: #a45120; background: #fff0e3; }
.badge-status-PENDING { color: #986109; background: #fff4dc; }
.badge-status-REVIEWING { color: #4758a5; background: #eef0ff; }
.badge-status-REJECTED { color: var(--danger); background: var(--danger-bg); }
.badge-status-NEW { color: var(--success); background: #e5f7ec; }
.badge-status-IN_PROGRESS { color: #235ea4; background: #e9f3ff; }
.badge-status-TESTING { color: #7445a9; background: #f3eaff; }
.badge-status-DONE { color: #16795e; background: #e0f7ee; }
.badge-ok { color: var(--success); background: #e6f5ed; }
.badge-off { color: #687181; background: #eef0f4; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 20px; }
.page-link { border-color: var(--line-strong); background: #fff; color: var(--primary); min-height: 35px; padding: 7px 11px; }
.page-link:hover { background: var(--primary-soft); }
.page-info { color: #818397; font-size: 12px; }
.empty-state { padding: 64px 20px; text-align: center; }
.empty-state .empty-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 18px; color: #8b6ddc; background: #f2efff; }
.empty-state h2 { font-size: 15px; }
.empty-state p { font-size: 12px; color: var(--ink-subtle); margin: 4px 0 16px; }

/* Post, comments, activity */
.post-detail { padding: clamp(20px, 3vw, 34px); margin-bottom: 20px; }
.post-detail-head { border-bottom: 1px solid var(--line); padding-bottom: 23px; }
.post-detail-head h1 { max-width: 820px; line-height: 1.35; }
.post-detail-head .post-row-meta { margin-top: 17px; }
.post-content { margin-top: 23px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; color: #404057; min-height: 50px; }
.admin-actions, .author-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-form { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.inline-form select { width: auto; min-width: 140px; min-height: 34px; font-size: 11px; padding: 6px 32px 6px 10px; }
.comments, .activities { padding: clamp(20px, 3vw, 28px); margin-bottom: 20px; }
.section-title-with-icon { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.section-title-with-icon h2 { margin: 0; }
.section-title-with-icon .icon { color: var(--primary); }
.comment-list { display: flex; flex-direction: column; gap: 13px; margin: 16px 0 22px; }
.comment-row { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fcfcff; }
.comment-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.comment-author { font-size: 12px; color: #3f395c; font-weight: 800; }
.comment-time { color: #9394a3; font-size: 11px; }
.comment-content { font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }
.activity-list { position: relative; list-style: none; margin: 10px 0 0; padding: 0 0 0 22px; }
.activity-list:before { position: absolute; top: 12px; bottom: 12px; left: 7px; width: 2px; background: #e8e3f9; content: ""; }
.activity-list li { position: relative; padding: 8px 12px 13px; font-size: 12px; margin-bottom: 8px; border-radius: 9px; background: #faf9fe; overflow-wrap: anywhere; }
.activity-list li:before { position: absolute; left: -20px; top: 15px; content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8b6be3; border: 2px solid white; box-shadow: 0 0 0 2px #e6dfff; }
.activity-list time { display: block; font-size: 10px; color: #9091a0; margin-top: 4px; }

/* Admin tables */
.table-wrap { overflow-x: auto; margin-bottom: 26px; scrollbar-width: thin; }
.table { border-collapse: collapse; width: 100%; min-width: 630px; background: white; }
.table th, .table td { text-align: left; padding: 15px 17px; font-size: 12px; border-bottom: 1px solid #eff0f5; vertical-align: middle; }
.table th { color: #8a89a2; background: #fafaff; text-transform: uppercase; font-weight: 800; font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbff; }
.table strong { color: #32304a; }
.table .muted { font-size: 11px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.table .row-actions { border-bottom: 0; }
.table-actions { white-space: nowrap; }
.inline-form { white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: 18px; align-items: start; }
.help-panel { padding: 24px; background: #efebff; border: 1px solid #e2d9ff; border-radius: 16px; }
.help-panel .help-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: white; color: var(--primary); margin-bottom: 14px; }
.help-panel h2 { color: #35256a; }
.help-panel p { font-size: 12px; color: #625789; line-height: 1.8; }
.help-list { padding-left: 18px; margin: 8px 0 0; color: #625789; font-size: 12px; line-height: 2; }

/* Login */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 26px; background: radial-gradient(circle at 8% 16%, #eae4ff 0, transparent 33%), radial-gradient(circle at 91% 87%, #e8ecff 0, transparent 35%), #f7f7fc; }
.auth-shell { width: 100%; max-width: 960px; min-height: 560px; display: grid; grid-template-columns: 1fr .95fr; background: white; border: 1px solid #e6e3f5; border-radius: 25px; overflow: hidden; box-shadow: 0 28px 85px rgba(41, 25, 97, .13); }
.auth-story { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; color: #fff; background: linear-gradient(145deg, #20143e, #4d29ae 72%, #5a3dd1); overflow: hidden; }
.auth-story:after { position: absolute; z-index: -1; content: ""; width: 350px; height: 350px; right: -160px; top: 115px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.04), 0 0 0 135px rgba(255,255,255,.03); }
.auth-story-brand { display: flex; align-items: center; gap: 12px; font: 800 15px var(--font-head); }
.auth-story-brand img { width: 39px; height: 39px; object-fit: cover; border-radius: 10px; }
.auth-story-body { position: relative; z-index: 1; padding: 10px 0 22px; }
.auth-story-body .eyebrow { color: #c6b3ff; }
.auth-story-body h2 { font-size: clamp(1.7rem, 2.9vw, 2.6rem); letter-spacing: -.05em; line-height: 1.2; margin-bottom: 16px; }
.auth-story-body p { max-width: 300px; color: #d7ccef; font-size: 13px; line-height: 1.85; }
.auth-story-bottom { display: flex; gap: 9px; flex-wrap: wrap; }
.auth-story-bottom span { border: 1px solid rgba(255,255,255,.19); border-radius: 999px; font-size: 10px; font-weight: 700; padding: 7px 12px; color: #f1edff; background: rgba(255,255,255,.07); }
.auth-card { display: flex; justify-content: center; flex-direction: column; padding: clamp(28px, 5vw, 56px); }
.auth-compact-brand { display: none; align-items: center; gap: 11px; color: #2f2750; font: 800 13px var(--font-head); margin-bottom: 27px; }
.auth-compact-brand img { width: 37px; height: 37px; object-fit: cover; border-radius: 10px; }
.auth-card-header { margin-bottom: 28px; }
.auth-title { font-size: 1.65rem; color: #24203e; margin-bottom: 7px; }
.auth-subtitle { font-size: 12px; color: var(--ink-subtle); margin: 0; line-height: 1.75; }
.auth-form { display: flex; flex-direction: column; }
.auth-form .field { margin-bottom: 17px; }
.auth-form button[type=submit] { margin-top: 8px; }
.auth-footnote { font-size: 11px; color: #a09db1; text-align: center; margin-top: 25px; }

/* Responsive */
@media (max-width: 1140px) {
  .profile-meta { display: none; }
  .header-actions { gap: 10px; }
}
@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; }
  .sidebar-bottom { display: none; }
  .sidebar-brand { min-height: 70px; padding: 14px 18px; }
  .sidebar-scroll { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 8px; }
  .sidebar-section { margin: 0; }
  .nav-label { display: none; }
  .nav-item { display: inline-flex; }
  .has-js .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(290px, 85vw); height: 100dvh; transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; box-shadow: var(--shadow-raised); }
  .has-js .sidebar-scroll { display: block; padding: 10px 13px 25px; }
  .has-js .sidebar-section { margin-bottom: 23px; }
  .has-js .nav-label { display: block; }
  .has-js .sidebar-bottom { display: block; }
  .has-js .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop { display: none; }
  .has-js .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(20, 15, 40, .58); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
  .has-js .nav-open .sidebar-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .has-js .menu-toggle { display: inline-grid; }
  .header-inner { height: 70px; }
  .content { padding-top: 26px; }
}
@media (max-width: 740px) {
  .header-create { padding: 9px; min-height: 36px; }
  .header-create span { display: none; }
  .header-divider, .header-profile { display: none; }
  .header-inner { gap: 10px; padding: 0 16px; }
  .header-current { font-size: 13px; }
  .header-eyebrow { font-size: 9px; }
  .content { padding: 22px 15px 46px; }
  .app-footer { padding: 14px 16px; }
  .app-footer span:last-child { display: none; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: 22px; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .page-head { flex-direction: column; gap: 12px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn-primary { width: 100%; }
  .form-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .surface-card, .post-form, .comments, .activities, .post-detail { padding: 18px; }
  .post-row { padding: 17px; gap: 9px; }
  .post-row-open { display: none; }
  .filter-bar { gap: 8px; padding: 12px; }
  .filter-caption { width: 100%; }
  .filter-bar select { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .filter-bar button { width: 100%; }
  .auth-body { padding: 15px; }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; max-width: 440px; }
  .auth-story { display: none; }
  .auth-compact-brand { display: flex; }
  .auth-card { padding: 35px 23px; }
}
@media (max-width: 420px) {
  .header-current { max-width: 150px; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .metric-card:last-child { grid-column: auto; }
  .filter-bar select { flex-basis: 100%; }
  .page-link { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
