
:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #f0f0ee;
  --surface-3: #e8e8e5;
  --text: #111111;
  --muted: #6f6f6b;
  --line: #ddddda;
  --line-strong: #c9c9c4;
  --inverse: #ffffff;
  --accent: #111111;
  --danger: #d92d20;
  --success: #15803d;
  --warning: #b45309;
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --radius: 24px;
  --sidebar: 292px;
  --topbar: 86px;
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --surface-3: #202020;
  --text: #f5f5f5;
  --muted: #8d8d8d;
  --line: #2b2b2b;
  --line-strong: #3a3a3a;
  --inverse: #111111;
  --accent: #f5f5f5;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { width: 22px; height: 22px; flex: 0 0 auto; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 20px 20px; display: flex; flex-direction: column; z-index: 40; border-right: 1px solid transparent; background: var(--bg); }
.brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.04em; font-size: 18px; }
.brand img { border-radius: 14px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; display: flex; align-items: center; gap: 14px; background: transparent; cursor: pointer; font-weight: 600; color: var(--text); transition: background .18s ease, transform .18s ease; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--surface-3); }
.nav-item:active { transform: scale(.99); }
.nav-icon { display: grid; place-items: center; }
.nav-item.active .nav-icon svg { stroke-width: 2.4; }
.sidebar-note { margin: 28px 4px 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, var(--surface), var(--surface-2)); }
.sidebar-note strong { display: block; margin: 8px 0 7px; font-size: 15px; line-height: 1.35; }
.sidebar-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-bottom { margin-top: auto; position: relative; }

.main-area { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { min-height: var(--topbar); position: sticky; top: 0; z-index: 30; padding: 18px clamp(24px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar h1 { margin: 0; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.04em; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 8px; }
.content-wrap { width: min(1120px, calc(100% - 48px)); margin: 8px auto 110px; }

.icon-button { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: transform .18s ease, background .18s ease; }
.icon-button:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-button.small { width: 34px; height: 34px; border-radius: 10px; }
.icon-button.small svg { width: 18px; }
.avatar-button, .avatar { display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--inverse); font-weight: 800; }
.avatar-button { width: 44px; height: 44px; border: 0; cursor: pointer; }
.avatar { width: 44px; height: 44px; }
.avatar.large { width: 48px; height: 48px; }

.thread-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.02); }
.hero-card { margin-bottom: 18px; }
.composer-row { min-height: 88px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.composer-placeholder { flex: 1; text-align: left; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--surface); font-weight: 700; cursor: pointer; transition: transform .18s ease, opacity .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--inverse); }
.button.ghost { background: transparent; }
.button.compact { min-height: 40px; padding: 0 16px; border-radius: 13px; }
.button.full { width: 100%; }
.button.danger-button { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 142px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; }
.stat-card > span { color: var(--muted); font-size: 13px; }
.stat-card strong { margin-top: auto; font-size: 34px; letter-spacing: -.05em; }
.stat-card small { margin-top: 4px; color: var(--muted); }
.status-good { color: var(--success) !important; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.feed-card { overflow: hidden; }
.section-head { min-height: 78px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.section-head h2, .quick-card h2, .settings-card h2, .component-card h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.03em; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feed-item { padding: 22px; display: flex; gap: 16px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 13px; }
.feed-dot.done { background: var(--accent); color: var(--inverse); border-color: var(--accent); }
.feed-dot svg { width: 17px; }
.feed-content { min-width: 0; flex: 1; }
.feed-meta { display: flex; justify-content: space-between; gap: 18px; }
.feed-meta span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.feed-content p { margin: 7px 0 14px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.feed-actions button, .feed-actions a { border: 0; padding: 0; display: inline-flex; gap: 6px; align-items: center; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.feed-actions svg { width: 17px; }
.side-stack { display: grid; gap: 18px; }
.quick-card, .mini-chart-card, .settings-card, .component-card { padding: 22px; }
.quick-card > h2 { margin-bottom: 16px; }
.quick-link { min-height: 66px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.quick-link > svg { width: 18px; color: var(--muted); }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 13px; }
.quick-link small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.quick-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.quick-icon svg { width: 18px; }
.mini-chart-card .section-head { padding: 0 0 18px; min-height: auto; }
.mini-chart { height: 155px; display: flex; align-items: end; gap: 7px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.mini-chart i { flex: 1; min-height: 8px; border-radius: 8px 8px 2px 2px; background: var(--accent); opacity: .9; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 10px; }

.popover { position: absolute; z-index: 80; min-width: 240px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); box-shadow: var(--shadow); }
.menu-popover { bottom: 58px; left: 0; }
.profile-popover { top: 54px; right: 0; }
.popover-title { padding: 8px 10px 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.popover-link { width: 100%; min-height: 42px; padding: 0 10px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 10px; background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; }
.popover-link:hover { background: var(--surface-3); }
.popover-link svg { width: 18px; }
.popover-link.danger { color: var(--danger); }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 6px; margin-bottom: 8px; border-radius: 14px; background: var(--surface); }
.theme-switch button { height: 38px; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; cursor: pointer; }
.theme-switch button.active { background: var(--surface-3); }
.theme-switch svg { width: 18px; }
.account-summary { padding: 8px 8px 12px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); margin-bottom: 7px; }
.account-summary strong, .account-summary span { display: block; }
.account-summary span { max-width: 150px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; }

.flash, .alert { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; line-height: 1.5; }
.flash { width: min(1120px, calc(100% - 48px)); margin: 0 auto 14px; }
.flash.success, .alert.success { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); color: var(--success); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.flash.error, .alert.error { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }

.floating-action { position: fixed; right: 34px; bottom: 28px; z-index: 35; width: 72px; height: 72px; border: 1px solid var(--line-strong); border-radius: 22px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.floating-action svg { width: 30px; height: 30px; }
.mobile-nav { display: none; }
.mobile-only { display: none; }
.sidebar-scrim { display: none; }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(0,0,0,.58); backdrop-filter: blur(8px); }
.modal-card { width: min(560px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }
.modal-head h2 { margin: 5px 0 0; letter-spacing: -.04em; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.search-card { padding: 12px; }
.search-input-wrap { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.command-list { display: grid; gap: 4px; margin-top: 10px; }
.command-list a { min-height: 48px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; }
.command-list a:hover { background: var(--surface-2); }
.command-list span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-2); font-size: 10px; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--surface-2); color: var(--text); }
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { padding: 13px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent); }
.password-field > div { position: relative; }
.password-field input { padding-right: 52px; }
.password-field button { position: absolute; inset: 2px 2px 2px auto; width: 46px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.password-field svg { width: 19px; }

.toast-stack { position: fixed; right: 24px; bottom: 110px; z-index: 150; display: grid; gap: 8px; }
.toast { max-width: 340px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: .2s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }

.blank-canvas { min-height: 430px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.blank-icon { width: 68px; height: 68px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 22px; background: var(--surface-2); }
.blank-icon.small { width: 48px; height: 48px; margin-bottom: 10px; }
.blank-canvas h2, .profile-content h2 { margin: 8px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.blank-canvas p, .profile-content p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.65; }
.blank-actions { margin-top: 22px; display: flex; gap: 10px; }
.code-hint { margin-top: 18px; overflow: hidden; }
.code-hint pre { margin: 0; padding: 24px; overflow: auto; background: var(--surface-2); color: var(--text); font-size: 13px; line-height: 1.7; }

.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.component-card.full-width { grid-column: 1 / -1; }
.component-card .section-head { min-height: auto; padding: 0 0 18px; margin-bottom: 18px; }
.component-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full-span { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.success { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.badge.warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.badge.neutral { color: var(--muted); background: var(--surface-2); }
.stack { display: grid; gap: 10px; }
.empty-inline { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.empty-inline strong { color: var(--text); }
.empty-inline span { margin-top: 5px; font-size: 12px; }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-list > div { padding: 18px; border-radius: 16px; background: var(--surface-2); }
.metric-list span, .metric-list small { display: block; color: var(--muted); font-size: 11px; }
.metric-list strong { display: block; margin: 14px 0 5px; font-size: 25px; letter-spacing: -.04em; }

.profile-hero { padding: 28px; display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--inverse); font-size: 34px; font-weight: 800; }
.profile-copy { flex: 1; }
.profile-copy h2 { margin: 5px 0 6px; font-size: 27px; letter-spacing: -.04em; }
.profile-copy p { margin: 0; color: var(--muted); }
.profile-tabs { margin-top: 18px; overflow: hidden; }
.tab-list { min-height: 66px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tab-list button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.tab-list button.active { color: var(--text); border-color: var(--text); }
.profile-content { min-height: 330px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.settings-form { display: grid; gap: 16px; }
.form-actions { padding-top: 4px; }
.muted { color: var(--muted); line-height: 1.55; font-size: 13px; }
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.theme-cards button { min-height: 82px; border: 1px solid var(--line); border-radius: 15px; display: grid; place-items: center; align-content: center; gap: 7px; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.theme-cards button.active { border-color: var(--text); color: var(--text); }
.theme-cards svg { width: 20px; }
.danger-zone { border-color: color-mix(in srgb, var(--warning) 32%, var(--line)); }

.auth-body { min-height: 100vh; overflow-x: hidden; display: grid; place-items: center; background: #090909; color: #f5f5f5; position: relative; }
.auth-shell { width: min(480px, calc(100% - 32px)); position: relative; z-index: 2; padding: 42px 0; }
.auth-brand { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 18px; letter-spacing: -.03em; }
.auth-brand img { border-radius: 15px; }
.auth-card { padding: 30px; border: 1px solid #292929; border-radius: 28px; background: rgba(17,17,17,.94); box-shadow: 0 28px 90px rgba(0,0,0,.45); backdrop-filter: blur(16px); }
.auth-card h1 { margin: 8px 0 8px; font-size: 28px; letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 22px; color: #8d8d8d; line-height: 1.55; font-size: 13px; }
.auth-form { display: grid; gap: 14px; }
.auth-body .field input { background: #111; border-color: #303030; color: #f5f5f5; }
.auth-body .field > span { color: #d7d7d7; }
.auth-body .button.primary { background: #f5f5f5; border-color: #f5f5f5; color: #111; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #737373; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #292929; }
.auth-feature-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.auth-feature-row span { padding: 6px 9px; border: 1px solid #2d2d2d; border-radius: 999px; color: #8d8d8d; font-size: 10px; }
.auth-foot { margin: 16px 0 0; text-align: center; color: #6f6f6f; font-size: 11px; }
.auth-foot code { color: #a7a7a7; }
.auth-orbit { position: fixed; width: 430px; height: 430px; border: 46px solid #141414; border-radius: 50%; display: grid; place-items: center; color: #d9d9d9; opacity: .65; transform: rotate(-20deg); }
.auth-orbit::after { content: ""; position: absolute; inset: 56px; border: 2px solid #292929; border-radius: 50%; }
.auth-orbit span { width: 580px; position: absolute; top: 42px; left: 50%; transform: translateX(-50%); text-align: center; font-weight: 800; font-size: 30px; letter-spacing: .08em; white-space: nowrap; }
.orbit-left { left: -250px; top: -170px; }
.orbit-right { right: -260px; bottom: -170px; transform: rotate(150deg); }

@media (max-width: 980px) {
  :root { --sidebar: 260px; }
  .dashboard-grid, .settings-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout .side-stack { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar: 76px; }
  .mobile-only { display: inline-grid; }
  .sidebar { width: min(86vw, 310px); transform: translateX(-105%); transition: transform .24s ease; box-shadow: var(--shadow); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: block; pointer-events: none; opacity: 0; background: rgba(0,0,0,.45); transition: opacity .2s ease; }
  .sidebar-open .sidebar-scrim { pointer-events: auto; opacity: 1; }
  .main-area { margin-left: 0; }
  .topbar { padding: 14px 16px; }
  .topbar p { display: none; }
  .topbar-actions .icon-button:nth-child(2) { display: none; }
  .content-wrap, .flash { width: min(100% - 24px, 720px); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 122px; }
  .side-stack, .settings-layout .side-stack { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: 1fr; }
  .component-card.full-width { grid-column: auto; }
  .floating-action { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 50; min-height: 70px; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); }
  .mobile-nav a, .mobile-nav button { min-height: 48px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; color: var(--muted); font-size: 9px; }
  .mobile-nav a.active { color: var(--text); }
  .mobile-nav svg { width: 20px; }
  .mobile-nav .mobile-compose { width: 52px; height: 52px; min-height: 52px; margin: 0 auto; border-radius: 17px; background: var(--accent); color: var(--inverse); transform: translateY(-8px); }
  .mobile-nav .mobile-compose svg { width: 25px; }
  .auth-orbit { opacity: .3; }
}

@media (max-width: 560px) {
  .content-wrap { margin-top: 0; }
  .thread-card, .stat-card { border-radius: 19px; }
  .composer-row { padding: 15px; }
  .composer-row .avatar { width: 38px; height: 38px; }
  .composer-row .button { display: none; }
  .section-head, .feed-item { padding: 18px; }
  .feed-meta { display: block; }
  .feed-meta span { display: block; margin-top: 4px; }
  .blank-canvas { min-height: 390px; padding: 40px 18px; }
  .blank-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .metric-list { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-avatar { width: 72px; height: 72px; }
  .profile-hero .button { width: 100%; }
  .auth-card { padding: 24px 20px; border-radius: 23px; }
  .auth-card h1 { font-size: 25px; }
  .auth-orbit { width: 300px; height: 300px; border-width: 34px; }
  .auth-orbit span { font-size: 20px; width: 420px; top: 32px; }
  .orbit-left { left: -190px; top: -120px; }
  .orbit-right { right: -200px; bottom: -120px; }
  .modal-card { padding: 20px; border-radius: 22px; }
  .toast-stack { right: 12px; left: 12px; bottom: 88px; }
  .toast { max-width: none; }
}

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