:root {
  color-scheme: dark;
  --bg: #090b0d;
  --bg-soft: #0d1114;
  --surface: #12171a;
  --surface-elevated: #171e21;
  --surface-muted: #101416;
  --border: #253035;
  --border-soft: #1d272b;
  --text: #f2f5f3;
  --text-muted: #97a6a6;
  --text-dim: #657274;
  --emerald: #43d39a;
  --emerald-strong: #25b87e;
  --emerald-soft: #163a30;
  --amber: #e9bb68;
  --amber-soft: #3b2e18;
  --blue: #85b9ef;
  --danger: #ec8888;
  --danger-soft: #3b1f23;
  --focus-ring: #8de8c2;
  --radius: 10px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--border) var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(67, 211, 154, .14); }
body.menu-open { overflow: hidden; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; min-width: 248px; padding: 26px 14px 16px; border-right: 1px solid var(--border-soft); background: #0b0e10; display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 12px 26px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #53e1a8; border-radius: 8px; background: #10231c; color: var(--emerald); font-weight: 800; letter-spacing: -.04em; }
.brand-mark img { width: 22px; height: 22px; object-fit: contain; }
.brand-name { color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.brand-subtitle { color: var(--text-dim); font-size: 11px; margin-top: 1px; }
.workspace-chip { display: flex; align-items: center; gap: 8px; margin: 0 6px 19px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 7px; background: #0f1416; color: var(--text-muted); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex: 0 0 auto; }
.status-dot--muted { background: var(--text-dim); }
.status-dot--danger { background: var(--danger); }
.status-dot--amber { background: var(--amber); }
.nav-list { display: grid; gap: 3px; }
.nav-item, .profile-shortcut, .logout-button { border: 0; background: transparent; color: var(--text-muted); text-align: left; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border-radius: 7px; font-size: 13px; transition: background .15s ease, color .15s ease; }
.nav-item:hover, .nav-item:focus-visible { background: #131a1d; color: var(--text); }
.nav-item.is-active { background: var(--emerald-soft); color: var(--emerald); font-weight: 650; }
.nav-icon { width: 17px; color: currentColor; font-size: 16px; line-height: 1; text-align: center; opacity: .9; }
.sidebar-footer { display: grid; gap: 8px; margin-top: auto; padding-top: 19px; border-top: 1px solid var(--border-soft); }
.profile-shortcut { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; }
.profile-shortcut:hover { background: #131a1d; color: var(--text); }
.profile-shortcut-copy { display: grid; gap: 1px; min-width: 0; flex: 1; }
.profile-shortcut-copy strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-shortcut-copy small { color: var(--text-dim); font-size: 10px; }
.shortcut-arrow { color: var(--text-dim); font-size: 18px; }
.logout-button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; font-size: 11px; }
.logout-button:hover { color: var(--danger); background: var(--danger-soft); }

.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid #315344; border-radius: 50%; background: #152a22; color: var(--emerald); font-weight: 700; }
.avatar--small { width: 27px; height: 27px; font-size: 11px; }
.avatar--top { width: 31px; height: 31px; font-size: 12px; border: 1px solid var(--border); background: var(--surface-elevated); }
.avatar--large { width: 46px; height: 46px; font-size: 16px; }
.avatar--hero { width: 64px; height: 64px; font-size: 21px; }

.main-content { min-width: 0; flex: 1; padding: 0 38px 22px; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 85px; border-bottom: 1px solid var(--border-soft); }
.topbar-leading { display: flex; align-items: center; gap: 10px; }
.eyebrow, .surface-kicker { margin: 0 0 3px; color: var(--text-dim); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.topbar h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.sync-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 11px; }
.login-button { text-decoration: none; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-muted); font-size: 16px; }
.icon-button:hover, .icon-button:focus-visible { color: var(--text); border-color: #3b4b50; }
.icon-button[aria-busy="true"], .button[aria-busy="true"] { cursor: wait; }
.icon-button[aria-busy="true"] { animation: spin .8s linear infinite; }
.mobile-menu { display: none; }
.mobile-nav { display: none; }
.mobile-menu-backdrop { display: none; }

.notice { margin: 18px 0 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-muted); font-size: 12px; }
.notice.is-error { border-color: #61353b; background: #211518; color: #e8a4a4; }
.notice.is-success { border-color: #2b5e4b; background: #12251e; color: #9be8c7; }
.notice.is-warning { border-color: #604b29; background: #211b12; color: #edc77d; }
.is-hidden { display: none !important; }
.view-container { max-width: 1400px; margin: 0 auto; }
.view-panel { display: none; padding: 31px 0 8px; animation: fade-in .15s ease-out; }
.view-panel.is-visible { display: block; }
.view-panel[data-sync-state="loading"] .surface, .view-panel[data-sync-state="loading"] .metric-card { position: relative; overflow: hidden; }
.view-panel[data-sync-state="loading"] .surface::after, .view-panel[data-sync-state="loading"] .metric-card::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.045) 48%, transparent 70%); content: ""; transform: translateX(-100%); animation: shimmer 1.35s ease-in-out infinite; pointer-events: none; }
.view-panel[data-sync-state="stale"] .surface, .view-panel[data-sync-state="stale"] .metric-card { border-color: #4f4128; }
@keyframes fade-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.view-heading h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.03em; }
.view-description { max-width: 640px; margin: 0; color: var(--text-muted); font-size: 12px; }
.period-control { display: flex; align-items: center; gap: 9px; }
.period-control label { color: var(--text-dim); font-size: 11px; }
select, input { min-height: 34px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: var(--surface); color: var(--text); }
select { padding: 0 29px 0 10px; }
input { padding: 7px 10px; }
select:hover, input:hover { border-color: #3b4b50; }

.metric-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.metric-grid--six { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { min-width: 0; min-height: 121px; padding: 17px 17px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.metric-card { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { border-color: #36504a; box-shadow: 0 10px 24px rgba(0,0,0,.16); transform: translateY(-2px); }
.metric-card--primary { border-color: #27634e; background: #111e19; }
.metric-card--rank { border-color: #3e3a26; background: #1a1811; }
.metric-card--history { border-color: #315a70; background: linear-gradient(145deg, #122b3c, #111d28); }
.metric-label { color: var(--text-muted); font-size: 11px; font-weight: 550; }
.metric-value { min-height: 38px; padding-top: 8px; color: var(--text); font-size: 25px; font-weight: 730; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card--primary .metric-value { color: var(--emerald); }
.metric-comparison { min-height: 16px; padding-top: 2px; color: var(--text-dim); font-size: 10px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-comparison--available { color: var(--blue); }
.metric-comparison--muted { color: var(--text-dim); }
.metric-foot { overflow: hidden; color: var(--text-dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.dashboard-grid--main { grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); }
.dashboard-grid--secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.surface { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); contain: layout style; transition: border-color .18s ease, box-shadow .18s ease; }
.surface:hover { border-color: #304247; box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.surface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 19px 0; }
.surface-heading h3 { margin: 0; font-size: 14px; letter-spacing: -.015em; }
.surface-meta { color: var(--text-dim); font-size: 10px; }
.chart-surface { min-height: 324px; }
.chart-wrap { position: relative; min-height: 250px; margin: 14px 18px 18px; border-bottom: 1px solid var(--border-soft); }
.chart-wrap--tall { min-height: 285px; }
.chart-bars { display: flex; align-items: end; gap: 7px; height: 215px; padding: 25px 2px 28px; }
.chart-bar-column { display: flex; flex: 1; min-width: 8px; height: 100%; align-items: end; position: relative; }
.chart-bar-column:focus-visible { border-radius: 5px; }
.chart-bar-column:focus-visible .chart-bar { background: var(--emerald); opacity: 1; }
.chart-bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--emerald-strong); opacity: .78; transform-origin: bottom; animation: bar-rise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--bar-index) * 35ms); will-change: transform, opacity; }
.chart-bar:hover { opacity: 1; background: var(--emerald); }
.chart-bar-label { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: 9px; white-space: nowrap; }
.chart-bar-tooltip { position: absolute; bottom: calc(100% + 5px); left: 50%; display: none; padding: 4px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-elevated); color: var(--text); font-size: 9px; transform: translateX(-50%); white-space: nowrap; z-index: 2; }
.chart-bar-column:hover .chart-bar-tooltip, .chart-bar-column:focus-visible .chart-bar-tooltip { display: block; }
.chart-grid-lines { position: absolute; inset: 27px 0 29px; display: grid; grid-template-rows: repeat(4, 1fr); pointer-events: none; }
.chart-grid-lines span { border-top: 1px dashed #223034; }
.chart-axis-note { position: absolute; right: 0; bottom: 3px; color: var(--text-dim); font-size: 9px; }
.sync-surface { min-height: 324px; }
.pill { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border: 1px solid transparent; border-radius: 99px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.pill--muted { border-color: var(--border); background: #182024; color: var(--text-muted); }
.pill--success { border-color: #2d634e; background: var(--emerald-soft); color: var(--emerald); }
.pill--warning { border-color: #604b29; background: var(--amber-soft); color: var(--amber); }
.pill--danger { border-color: #60333b; background: var(--danger-soft); color: var(--danger); }
.account-summary { display: flex; align-items: center; gap: 12px; margin: 24px 19px 20px; }
.account-summary strong { display: block; font-size: 14px; }
.account-summary span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.detail-list { display: grid; gap: 0; margin: 0 19px; }
.detail-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.detail-list dt { color: var(--text-dim); font-size: 11px; }
.detail-list dd { max-width: 56%; margin: 0; color: var(--text-muted); font-size: 11px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-list--spaced { margin-top: 23px; }
.currency-surface, .insight-surface { min-height: 177px; padding-bottom: 12px; }
.currency-list, .insight-list, .suggestion-list, .activity-list, .breakdown-list { display: grid; gap: 6px; padding: 14px 19px 4px; }
.breakdown-block { padding-top: 12px; }
.breakdown-label { display: block; padding: 0 19px; color: var(--text-dim); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.currency-row, .insight-row, .suggestion-row, .activity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; padding: 7px 9px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface-muted); }
.currency-row strong, .insight-row strong { font-size: 11px; }
.currency-row span, .insight-row span, .suggestion-row span, .activity-row span { color: var(--text-muted); font-size: 11px; }
.currency-row .currency-total { color: var(--emerald); font-weight: 650; }

.empty-state { display: grid; place-items: center; gap: 4px; min-height: 145px; padding: 18px; color: var(--text-muted); text-align: center; }
.empty-state strong { color: var(--text); font-size: 12px; }
.empty-state span:last-child { max-width: 330px; color: var(--text-dim); font-size: 10px; }
.empty-icon { color: var(--text-dim); font-size: 24px; line-height: 1; }
.empty-state--compact { position: absolute; inset: 34px 0 24px; }
.empty-state--row { min-height: 48px; padding: 9px; }
.empty-state--table { min-height: 150px; }

.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 15px; }
.toolbar-note, .form-help { color: var(--text-dim); font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 12px; border: 1px solid transparent; border-radius: 7px; color: var(--text); font-size: 11px; font-weight: 650; }
.button--primary { border-color: #29936c; background: #1e805d; color: #f4fffa; }
.button--primary:hover { background: #27a976; }
.button[aria-busy="true"]::after { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
.button--secondary { border-color: var(--border); background: var(--surface-elevated); color: var(--text-muted); }
.button--secondary:hover { border-color: #42615a; color: var(--text); }
.button--ghost { min-height: 30px; padding: 5px 9px; border-color: var(--border); background: transparent; color: var(--text-muted); font-weight: 500; }
.button--ghost:hover, .button--ghost:focus-visible { color: var(--text); border-color: #42615a; }

.table-surface { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px 13px; }
.table-count { color: var(--text-muted); font-size: 11px; }
.table-filters { display: flex; gap: 8px; }
.table-filters select, .table-filters input { min-height: 31px; font-size: 11px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { padding: 10px 19px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); color: var(--text-dim); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
td { padding: 12px 19px; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); font-size: 11px; }
tbody tr:hover td { background: #151d20; }
.table-primary { color: var(--text); font-weight: 600; }
.transaction-detail-trigger { max-width: 180px; overflow: hidden; border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; text-align: left; text-decoration: underline; text-decoration-color: #42615a; text-underline-offset: 3px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-detail-trigger:hover, .transaction-detail-trigger:focus-visible { color: var(--emerald); text-decoration-color: currentColor; }
.table-secondary { display: block; color: var(--text-dim); font-size: 10px; }
.table-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 19px; color: var(--text-dim); font-size: 10px; }

.rank-highlight { display: flex; align-items: center; gap: 20px; min-height: 145px; margin-bottom: 16px; padding: 22px 25px; border-color: #394129; background: #171a13; }
.rank-number { min-width: 84px; color: var(--amber); font-size: 44px; font-weight: 750; letter-spacing: -.07em; line-height: 1; text-align: center; }
.rank-copy { min-width: 0; flex: 1; }
.rank-copy h3 { margin: 0 0 4px; font-size: 16px; }
.rank-copy p:last-child { margin: 0; color: var(--text-muted); font-size: 11px; }
.rank-stat { display: grid; gap: 4px; min-width: 130px; padding-left: 20px; border-left: 1px solid #3b3928; }
.rank-stat span { color: var(--text-dim); font-size: 10px; }
.rank-stat strong { color: var(--text); font-size: 18px; }
.review-list-surface { min-height: 280px; }
.review-list { display: grid; gap: 8px; padding: 16px 19px 19px; }
.review-row { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface-muted); }
.review-row-header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.review-row-header strong { color: var(--text); font-size: 11px; }
.review-row p { margin: 0; color: var(--text-muted); font-size: 11px; }
.review-row small { color: var(--text-dim); font-size: 10px; }

.goal-surface, .suggestion-surface, .availability-surface, .activity-surface, .profile-surface, .security-surface { min-height: 320px; padding-bottom: 18px; }
.goal-value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 27px 19px 11px; }
.goal-value-row strong { color: var(--emerald); font-size: 30px; letter-spacing: -.04em; }
.goal-value-row span { color: var(--text-muted); font-size: 11px; }
.goal-state-note { min-height: 17px; margin: 8px 19px 0; color: var(--text-dim); font-size: 10px; }
.progress-track, .capacity-track { overflow: hidden; height: 8px; margin: 0 19px; border-radius: 99px; background: #263137; }
.progress-track span, .capacity-track span { display: block; height: 100%; border-radius: inherit; background: var(--emerald); transition: width .25s ease; }
.goal-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 20px 19px; }
.goal-detail-grid > div { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface-muted); }
.goal-detail-grid span { color: var(--text-dim); font-size: 10px; }
.goal-detail-grid strong { color: var(--text-muted); font-size: 12px; }
.goal-form { display: grid; gap: 8px; margin: 22px 19px 0; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.goal-form label { color: var(--text-muted); font-size: 11px; }
.goal-input-row { display: flex; gap: 8px; }
.goal-input-row input { min-width: 0; flex: 1; }
.suggestion-row { align-items: flex-start; justify-content: flex-start; gap: 9px; }
.suggestion-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--emerald-soft); color: var(--emerald); font-size: 12px; }
.availability-surface { padding: 23px 19px; }
.availability-status { display: flex; align-items: center; gap: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.availability-orb { width: 16px; height: 16px; border: 4px solid #2b3537; border-radius: 50%; background: var(--text-dim); box-shadow: 0 0 0 6px #182023; }
.availability-orb.is-on { background: var(--emerald); border-color: #b1f2d7; box-shadow: 0 0 0 6px var(--emerald-soft); }
.availability-orb.is-off { background: var(--danger); border-color: #f7b1b1; box-shadow: 0 0 0 6px var(--danger-soft); }
.availability-status h3 { margin: 0 0 4px; font-size: 17px; }
.availability-status p:last-child { margin: 0; color: var(--text-muted); font-size: 11px; }
.capacity-block { margin-top: 25px; }
.capacity-header, .capacity-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.capacity-header { margin: 0 0 9px; color: var(--text-muted); font-size: 11px; }
.capacity-header strong { color: var(--text); font-size: 15px; }
.capacity-track { margin: 0; }
.capacity-footer { margin-top: 7px; color: var(--text-dim); font-size: 10px; }
.availability-actions { display: grid; gap: 8px; margin-top: 25px; }
.activity-row { justify-content: flex-start; align-items: flex-start; }
.activity-time { min-width: 60px; color: var(--text-dim) !important; font-variant-numeric: tabular-nums; }
.profile-hero { display: flex; align-items: center; gap: 15px; margin: 24px 19px 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.profile-hero h3 { margin: 0 0 3px; font-size: 18px; }
.profile-hero p:last-child { margin: 0; color: var(--text-muted); font-size: 11px; }
.security-list { display: grid; gap: 11px; padding: 22px 19px; }
.security-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface-muted); }
.security-row > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.security-row strong { color: var(--text); font-size: 11px; }
.security-row span:not(.security-icon):not(.pill) { color: var(--text-dim); font-size: 10px; }
.security-icon { color: var(--emerald); font-size: 14px; }
.transaction-dialog { width: min(520px, calc(100vw - 28px)); max-width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .48); }
.transaction-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.transaction-dialog-panel { padding: 20px 20px 18px; }
.transaction-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.transaction-dialog-heading h2 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-dialog-note { margin: 15px 0 4px; color: var(--text-muted); font-size: 11px; }
.detail-list--modal { margin: 13px 0 0; }
.detail-list--modal dd { max-width: 62%; color: var(--text); }
.transaction-dialog-actions { display: flex; justify-content: flex-end; margin-top: 17px; }
.transaction-dialog.is-open { display: block; position: fixed; z-index: 30; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 29px 0 10px; color: var(--text-dim); font-size: 10px; }

@media (max-width: 1180px) {
  .main-content { padding: 0 25px 20px; }
  .metric-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 250px; min-width: 250px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 36px rgba(0, 0, 0, .35); }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-menu-backdrop { position: fixed; z-index: 19; inset: 0; display: block; width: 100%; border: 0; background: rgba(0,0,0,.58); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .mobile-menu-backdrop.is-visible { opacity: 1; pointer-events: auto; backdrop-filter: blur(3px); }
  .main-content { width: 100%; padding: 0 17px 20px; }
  .mobile-menu { display: inline-grid; }
  .topbar { min-height: 72px; }
  .topbar h1 { font-size: 16px; }
  .sync-status { display: none; }
  .login-button { min-height: 31px; padding: 6px 9px; font-size: 10px; }
  .mobile-nav { display: flex; gap: 6px; margin: 12px -2px 0; padding: 3px; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 8px; background: #0d1113; }
  .mobile-nav-item { flex: 0 0 auto; border: 0; border-radius: 6px; padding: 7px 10px; background: transparent; color: var(--text-muted); font-size: 11px; }
  .mobile-nav-item.is-active { background: var(--emerald-soft); color: var(--emerald); }
  .view-panel { padding-top: 24px; }
  .view-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .period-control { width: 100%; justify-content: space-between; }
  .period-control select { min-width: 0; flex: 1; }
  .dashboard-grid--main, .dashboard-grid--secondary { grid-template-columns: 1fr; }
  .metric-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-footer { flex-direction: column; gap: 5px; }
  .rank-highlight { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
  .rank-number { grid-row: span 2; }
  .rank-stat { min-width: 0; padding: 9px 0 0; border-top: 1px solid #3b3928; border-left: 0; }
}
@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; gap: 9px; padding: 10px 0; }
  .topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .metric-grid--six, .metric-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 111px; padding: 13px; }
  .metric-value { font-size: 21px; }
  .chart-wrap { margin-right: 11px; margin-left: 11px; }
  .surface-heading { padding-right: 14px; padding-left: 14px; }
  .currency-list, .insight-list, .suggestion-list, .activity-list, .review-list { padding-right: 14px; padding-left: 14px; }
  .breakdown-list { padding-right: 14px; padding-left: 14px; }
  .breakdown-label { padding-right: 14px; padding-left: 14px; }
  .account-summary, .detail-list { margin-right: 14px; margin-left: 14px; }
  .toolbar-row, .table-toolbar { align-items: flex-start; flex-direction: column; }
  .table-filters { width: 100%; }
  .table-filters input { min-width: 0; flex: 1; }
  .rank-highlight { padding: 18px; }
  .rank-number { min-width: 56px; font-size: 35px; }
  .goal-detail-grid { margin-right: 14px; margin-left: 14px; }
  .goal-form { margin-right: 14px; margin-left: 14px; }
  .goal-input-row { flex-wrap: wrap; }
  .goal-input-row input, .goal-input-row select, .goal-input-row .button { width: 100%; }
  .transaction-dialog-panel { padding: 16px 14px 14px; }
}
@media (max-width: 360px) {
  .main-content { padding-right: 12px; padding-left: 12px; }
  .topbar-actions { justify-content: space-between; gap: 8px; }
  .login-button { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .metric-grid--six, .metric-grid--four, .metric-grid--three { grid-template-columns: 1fr; }
  .metric-card { min-height: 96px; }
  .table-filters { flex-wrap: wrap; }
  .table-filters select, .table-filters input { width: 100%; }
}

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes bar-rise { from { opacity: 0; transform: scaleY(0); } to { opacity: .78; transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* SELLHUB 2026 dashboard visual system */
:root { --bg: #080c12; --bg-soft: #0c1219; --surface: #101a22; --surface-elevated: #17232d; --surface-muted: #0e171f; --border: #29404c; --border-soft: #20313b; --text: #f5fbfb; --text-muted: #a1b4bd; --text-dim: #708993; --emerald: #7dfbd0; --emerald-strong: #3ce1a8; --emerald-soft: #123c38; --amber: #ffcb74; --danger: #ff8b87; --focus-ring: #a5ffe0; --radius: 17px; }
html, body { background: #080c12; }
body { background-image: radial-gradient(circle at 65% -9%, rgba(27,126,139,.17), transparent 36%), radial-gradient(circle at 94% 45%, rgba(22,73,97,.09), transparent 40%); }
.sidebar { background: linear-gradient(175deg, #101923 0%, #0a1119 74%); border-right: 1px solid #24414a; }
.brand-mark { border-radius: 13px; background: linear-gradient(145deg, #b9ffe5, #49cfc5 52%, #3766a4); color: #081420; box-shadow: 0 8px 23px rgba(80,243,198,.19), inset 0 1px 0 rgba(255,255,255,.65); font-weight: 900; }
.brand-name { letter-spacing: .16em; }
.nav-item { border-radius: 11px; margin-bottom: 3px; }
.nav-item.is-active { color: #c5fff0; background: linear-gradient(90deg, rgba(80,248,197,.19), rgba(80,248,197,.025)); box-shadow: inset 3px 0 0 #69efcb; }
.topbar { border-bottom-color: rgba(124,191,197,.13); }
.eyebrow, .surface-kicker { color: #81f0cb; }
.view-panel { animation: fade-in .25s ease-out; }
.surface, .metric-card { background: linear-gradient(145deg, rgba(23,37,47,.94), rgba(12,21,29,.96)); border-color: rgba(103,148,162,.21); border-radius: 17px; box-shadow: 0 14px 35px rgba(0,0,0,.11), inset 0 1px 0 rgba(255,255,255,.035); }
.metric-card { min-height: 138px; position: relative; overflow: hidden; }
.metric-card::before { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, rgba(128,224,214,.26), transparent); content: ""; }
.metric-card--primary { background: linear-gradient(145deg, rgba(19,74,68,.85), rgba(15,33,37,.98)); border-color: rgba(101,242,193,.37); }
.metric-card--rank { background: linear-gradient(145deg, rgba(77,61,30,.7), rgba(28,26,22,.95)); border-color: rgba(246,204,122,.31); }
.metric-value { font-weight: 780; letter-spacing: -.055em; }
.surface-heading h3 { letter-spacing: -.025em; }
.button--primary { background: linear-gradient(120deg, #a9ffda, #4be4c4); color: #071a1f; border-color: #87f9d1; box-shadow: 0 7px 20px rgba(63,228,184,.13); }
.button--primary:hover { background: linear-gradient(120deg, #caffeb, #72f5d1); }
.chart-bar { background: linear-gradient(0deg, #28a89e, #75f7c9); box-shadow: 0 0 22px rgba(81,225,188,.19); }
.chart-bar-label { bottom: -22px; color: #a3b9bd; font-size: 10px; }
.chart-axis-note { color: #90abb1; }

.seller-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 280px; padding: 40px 50px; margin-bottom: 27px; overflow: hidden; border: 1px solid rgba(123,241,208,.3); border-radius: 23px; background: radial-gradient(circle at 78% 44%, rgba(36,119,127,.36), transparent 29%), radial-gradient(circle at 20% 120%, rgba(31,125,124,.28), transparent 45%), linear-gradient(110deg, #10232b 0%, #0a1722 70%, #101d2b 100%); box-shadow: 0 30px 75px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.06); }
.seller-hero::before { position: absolute; inset: 0; content: ""; opacity: .3; background-image: linear-gradient(rgba(139,249,224,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(139,249,224,.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 20%, #000); pointer-events: none; }
.hero-orbit { position: absolute; border: 1px solid rgba(110,243,211,.14); border-radius: 50%; pointer-events: none; }
.hero-orbit--one { width: 480px; height: 480px; right: -80px; top: -100px; }
.hero-orbit--two { width: 360px; height: 360px; right: -20px; top: -45px; }
.seller-hero-copy { position: relative; z-index: 1; max-width: 590px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: #a0f7d9; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.hero-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #80ffd0; box-shadow: 0 0 0 5px rgba(111,253,202,.1), 0 0 14px rgba(108,252,199,.6); }
.seller-hero h2 { margin: 20px 0 9px; font-size: clamp(31px, 4vw, 55px); line-height: 1.03; font-weight: 820; letter-spacing: -.064em; }
.seller-hero h2 em { color: #91f5d9; font-style: normal; }
.seller-hero p { max-width: 480px; margin: 0; color: #a8c0c4; font-size: 13px; line-height: 1.6; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span { padding: 6px 10px; border: 1px solid rgba(156,250,218,.19); border-radius: 999px; background: rgba(9,34,39,.6); color: #b8d9d6; font-size: 10px; font-weight: 650; }
.hero-visual { position: relative; flex: 0 0 305px; height: 200px; z-index: 1; }
.hero-visual-ring { position: absolute; width: 172px; height: 172px; top: 12px; right: 57px; display: grid; place-items: center; border: 1px solid rgba(171,255,229,.63); border-radius: 50%; background: radial-gradient(circle, #254f54 0%, #15303b 56%, #0b1b27 57%); box-shadow: 0 0 0 12px rgba(79,205,199,.07), 0 0 58px rgba(102,239,199,.21), inset 0 0 26px rgba(91,223,193,.26); transform: rotate(-13deg); }
.hero-visual-ring::before { position: absolute; inset: 12px; border: 1px dashed rgba(195,255,231,.4); border-radius: 50%; content: ""; }
.hero-visual-ring img { width: 102px; height: 102px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(108,255,219,.4)); }
.hero-visual-card { position: absolute; display: grid; gap: 2px; border: 1px solid rgba(180,255,228,.24); border-radius: 12px; background: rgba(20,46,54,.83); box-shadow: 0 12px 27px rgba(0,0,0,.23); backdrop-filter: blur(10px); }
.hero-visual-card small { color: #88b2b8; font-size: 8px; letter-spacing: .13em; }
.hero-visual-card--top { top: 0; right: 0; padding: 11px 15px; color: #a1ffe0; font-size: 15px; transform: rotate(8deg); }
.hero-visual-card--top strong { font-size: 10px; letter-spacing: .12em; }
.hero-visual-card--bottom { bottom: 0; left: 0; padding: 10px 15px; transform: rotate(-7deg); }
.hero-wave { color: #96ffe0; font-size: 25px; line-height: 1; letter-spacing: .08em; }

.pulse-section { margin: 27px 0 30px; }
.pulse-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.pulse-heading h2 { margin: 2px 0 4px; font-size: 23px; letter-spacing: -.04em; }
.pulse-heading p:last-child { margin: 0; color: var(--text-muted); font-size: 11px; }
.pulse-live { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #9ff7d3; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.pulse-live .status-dot { background: #7affc7; box-shadow: 0 0 0 4px rgba(122,255,199,.1); }
.pulse-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-bottom: 13px; }
.pulse-metrics article { display: grid; min-height: 105px; padding: 16px 18px; border: 1px solid rgba(116,168,180,.22); border-radius: 15px; background: linear-gradient(150deg, #14232b, #0d171f); }
.pulse-metrics article span { color: #b6cbd0; font-size: 11px; }
.pulse-metrics article strong { color: #e9fcf8; font-size: 29px; font-weight: 800; letter-spacing: -.06em; line-height: 1.1; }
.pulse-metrics article small { color: #728f98; font-size: 10px; }
.pulse-metrics .pulse-metric--good { border-color: rgba(100,244,188,.35); background: linear-gradient(150deg, #16443d, #102723); }
.pulse-metrics .pulse-metric--good strong { color: #91ffcb; }
.pulse-metrics .pulse-metric--late { border-color: rgba(255,139,135,.36); background: linear-gradient(150deg, #4a282c, #231b23); }
.pulse-metrics .pulse-metric--late strong { color: #ffa29d; }
.pulse-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(275px,.9fr); gap: 13px; }
.pulse-chart-card, .pulse-alert-card { min-width: 0; min-height: 328px; overflow: hidden; }
.pulse-legend { display: flex; flex-wrap: wrap; gap: 15px; padding: 0 20px; color: #9eb4bb; font-size: 10px; }
.pulse-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.legend-dot--good { background: #76f2bf; }.legend-dot--late { background: #ff8e8c; }.legend-dot--pending { background: #ffc779; }
.pulse-chart { position: relative; height: 218px; margin: 15px 24px 18px; }
.pulse-gridlines { position: absolute; inset: 16px 0 27px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.pulse-gridlines i { width: 100%; border-top: 1px dashed rgba(126,175,187,.15); }
.pulse-columns { position: relative; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 13px; height: 100%; }
.pulse-column { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-end; outline-offset: 3px; }
.pulse-column-value { color: #d7e9e6; font-size: 11px; font-weight: 700; }
.pulse-bar-track { display: flex; align-items: flex-end; width: min(100%,44px); height: 160px; padding: 0 4px; border-radius: 9px 9px 3px 3px; background: linear-gradient(0deg, rgba(125,216,204,.055), transparent); }
.pulse-bar-stack { display: flex; flex-direction: column-reverse; width: 100%; overflow: hidden; border-radius: 7px 7px 3px 3px; min-height: 0; transition: height .5s ease; }
.pulse-bar-stack span { display: block; min-height: 0; }
.pulse-bar-good { background: linear-gradient(0deg,#2fb49b,#73f2c0); }.pulse-bar-late { background: #ff8686; }.pulse-bar-pending { background: #ffd078; }
.pulse-day { overflow: hidden; max-width: 100%; margin-top: 7px; color: #91a9af; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.pulse-alert-count { padding: 5px 9px; border: 1px solid rgba(255,141,138,.26); border-radius: 999px; color: #ffa7a3; background: rgba(224,95,99,.09); font-size: 10px; }
.pulse-ring-wrap { display: flex; align-items: center; gap: 17px; padding: 0 20px 17px; }
.pulse-ring { display: grid; place-items: center; flex: 0 0 101px; width: 101px; height: 101px; border-radius: 50%; background: conic-gradient(#72f2c0 var(--pulse-rate,0%), #243843 0); box-shadow: 0 0 24px rgba(75,239,181,.08); }
.pulse-ring > div { display: grid; place-content: center; width: 76px; height: 76px; border-radius: 50%; background: #112029; text-align: center; }
.pulse-ring strong { color: #dffff1; font-size: 23px; line-height: 1; }
.pulse-ring span { margin-top: 5px; color: #8eabb2; font-size: 9px; }
.pulse-ring-wrap p { max-width: 150px; color: #92abb1; font-size: 11px; line-height: 1.45; }
.pulse-alert-list { display: grid; gap: 6px; padding: 0 19px 19px; }
.pulse-alert-row { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid rgba(255,153,146,.15); border-radius: 9px; background: rgba(114,52,55,.13); }
.pulse-alert-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #ffd6ce; background: #8d4148; font-size: 12px; font-weight: 800; }
.pulse-alert-row div { display: grid; flex: 1; gap: 1px; }.pulse-alert-row strong { font-size: 11px; }.pulse-alert-row small { color: #9caeb2; font-size: 9px; }
.pulse-alert-row a { color: #a8f9d9; font-size: 17px; text-decoration: none; }
.pulse-empty { display: grid; gap: 3px; justify-items: center; padding: 17px 12px; color: #b0c6c6; text-align: center; font-size: 11px; }
.pulse-empty span { color: #87f8c5; font-size: 20px; }.pulse-empty small { color: #738e94; font-size: 10px; }
@media (max-width: 1180px) { .hero-visual { flex-basis: 250px; }.pulse-grid { grid-template-columns: minmax(0,1.3fr) minmax(245px,.9fr); }.pulse-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 820px) { .seller-hero { padding: 32px; min-height: 255px; }.hero-visual { flex-basis: 180px; transform: scale(.77); transform-origin: center right; }.pulse-grid { grid-template-columns: 1fr; }.pulse-alert-card { min-height: 0; }.pulse-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .seller-hero { padding: 27px 22px; min-height: 276px; }.seller-hero h2 { font-size: 35px; }.hero-visual { position: absolute; right: -44px; bottom: -58px; opacity: .25; transform: scale(.65); }.hero-tags { position: relative; z-index: 2; }.pulse-heading { align-items: flex-start; flex-direction: column; }.pulse-heading h2 { font-size: 21px; }.pulse-metrics { gap: 8px; }.pulse-metrics article { min-height: 93px; padding: 12px; }.pulse-metrics article strong { font-size: 25px; }.pulse-chart { margin: 12px 10px 16px; }.pulse-columns { gap: 4px; }.pulse-day { font-size: 8px; } }

/* V13 — validated administration workspace */
.is-hidden { display: none !important; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.admin-health-surface { margin-bottom: 14px; }
.admin-health-list { display: grid; gap: 8px; padding: 0 18px 18px; }
.admin-health-item { display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: #0c1114; }
.admin-health-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #73e5ba; }
.admin-health-item[data-severity="warning"] .admin-health-dot { background: #e8c26a; }
.admin-health-item[data-severity="error"] .admin-health-dot { background: #e9777b; }
.admin-health-copy { display: grid; gap: 2px; min-width: 0; }
.admin-health-copy strong { font-size: 11px; color: var(--text-primary); }
.admin-health-copy span { font-size: 10px; color: var(--text-muted); line-height: 1.45; overflow-wrap: anywhere; }

.admin-grid--catalog { align-items: start; }
.admin-card { min-width: 0; padding-bottom: 18px; }
.admin-card > label, .admin-textarea-label { display: grid; gap: 7px; margin: 13px 18px 0; color: var(--text-muted); font-size: 11px; font-weight: 650; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 18px; }
.admin-form-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-form-grid label { display: grid; gap: 7px; color: var(--text-muted); font-size: 11px; font-weight: 650; }
.admin-form-grid input, .admin-form-grid select, .admin-card > label input, .admin-card > label select, .admin-textarea-label textarea, #adminCategoryRoles {
  width: 100%; min-height: 39px; border: 1px solid var(--border-soft); border-radius: 8px; padding: 9px 10px; background: #0c1114; color: var(--text-primary); font: inherit; outline: none;
}
.admin-textarea-label textarea { resize: vertical; min-height: 86px; line-height: 1.45; }
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus { border-color: rgba(126,244,203,.55); box-shadow: 0 0 0 3px rgba(83,210,169,.08); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 18px 0; }
.button--danger { border-color: rgba(233,119,123,.36); background: rgba(153,57,62,.15); color: #ffb4b7; }
.button--danger:hover { background: rgba(153,57,62,.25); }
.toggle-row { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 9px !important; }
.toggle-row input { width: 16px !important; min-height: 16px !important; accent-color: #73e5ba; }
.toggle-row--field { align-self: end; min-height: 39px; margin: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: #0c1114; }
.admin-field-action { display: flex; align-items: end; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 10px; }
.admin-color-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 15px 18px 0; }
.admin-color-field { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid var(--border-soft); border-radius: 8px; background: #0c1114; }
.admin-color-field span { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-color-field input[type="color"] { width: 42px; height: 28px; padding: 1px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.admin-separator { height: 1px; margin: 18px; border: 0; background: var(--border-soft); }
.admin-staff-surface { margin-bottom: 14px; }
.admin-staff-user { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.admin-staff-avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: #172327; color: #bff7df; font-size: 10px; font-weight: 800; }
.admin-staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-staff-user div { min-width: 0; display: grid; gap: 1px; }
.admin-staff-user strong, .admin-staff-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-staff-user small { color: var(--text-muted); }
.admin-inline-select { min-width: 100px; border: 1px solid var(--border-soft); border-radius: 7px; padding: 6px 7px; background: #0b1114; color: var(--text-primary); }
.admin-inline-check { width: 16px; height: 16px; accent-color: #73e5ba; }
.admin-footnote { margin: 10px 2px 28px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.metric-value--compact { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
#adminCategoryRoles { min-height: 116px; }
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; }.admin-color-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) { .admin-summary-grid { grid-template-columns: 1fr; }.admin-form-grid,.admin-form-grid--two { grid-template-columns: 1fr; }.admin-color-grid { grid-template-columns: 1fr 1fr; }.admin-actions .button { flex: 1 1 auto; } }

/* Personal site themes. The selection stays on this browser, separate from bot colors. */
.theme-picker { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.theme-picker select { min-height: 32px; border-color: var(--border); background: var(--surface); color: var(--text); font-size: 11px; }
:root[data-theme="ocean"] { --bg: #07121e; --bg-soft: #0a1928; --surface: #102233; --surface-elevated: #183247; --surface-muted: #0e1c2b; --border: #315167; --border-soft: #233d52; --emerald: #8bddff; --emerald-strong: #51bcf2; --emerald-soft: #133b54; --focus-ring: #a7e6ff; }
:root[data-theme="plum"] { --bg: #130f1c; --bg-soft: #191323; --surface: #221b2e; --surface-elevated: #30243e; --surface-muted: #1b1626; --border: #4b3a5d; --border-soft: #362b48; --emerald: #edb9ff; --emerald-strong: #cd8ee9; --emerald-soft: #4a2859; --focus-ring: #f0cbff; }
:root[data-theme="lake"] { --bg: #071315; --bg-soft: #0b1e20; --surface: rgba(12, 34, 35, .88); --surface-elevated: rgba(21, 53, 53, .94); --surface-muted: #102a2b; --border: #376c6b; --border-soft: #244c4d; --emerald: #b9e8e1; --emerald-strong: #82d1c8; --emerald-soft: #174443; --focus-ring: #d8fff7; --text: #e9fffb; --text-muted: #b9dad7; --text-dim: #8db5b2; --shadow: 0 16px 44px rgba(0, 18, 19, .36); }
:root[data-theme="ocean"] body { background: radial-gradient(circle at 72% -5%, rgba(40,122,191,.18), transparent 38%), var(--bg); }
:root[data-theme="plum"] body { background: radial-gradient(circle at 72% -5%, rgba(148,75,171,.2), transparent 38%), var(--bg); }
:root[data-theme="lake"] body { background: linear-gradient(rgba(4, 15, 17, .72), rgba(4, 15, 17, .88)), url("/sellhub_lake_theme.gif") center top / cover fixed, var(--bg); }
:root[data-theme="ocean"] .sidebar, :root[data-theme="plum"] .sidebar { background: var(--bg-soft); border-color: var(--border-soft); }
:root[data-theme="ocean"] .surface, :root[data-theme="ocean"] .metric-card,
:root[data-theme="plum"] .surface, :root[data-theme="plum"] .metric-card { background: linear-gradient(145deg, var(--surface-elevated), var(--surface)); border-color: var(--border); }
:root[data-theme="ocean"] .seller-hero { background: radial-gradient(circle at 80% 36%, rgba(59,151,215,.29), transparent 42%), linear-gradient(120deg, #102f48, #091c32); border-color: #4c9ac4; }
:root[data-theme="plum"] .seller-hero { background: radial-gradient(circle at 80% 36%, rgba(173,90,195,.26), transparent 42%), linear-gradient(120deg, #302039, #1a142b); border-color: #9469a9; }
:root[data-theme="lake"] .sidebar { background: rgba(5, 20, 22, .86); backdrop-filter: blur(14px); }
:root[data-theme="lake"] .surface, :root[data-theme="lake"] .metric-card { background: linear-gradient(145deg, rgba(24, 58, 57, .9), rgba(8, 27, 29, .92)); border-color: var(--border); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
:root[data-theme="lake"] .seller-hero { background: linear-gradient(120deg, rgba(9, 42, 43, .96), rgba(8, 25, 29, .86)), url("/sellhub_lake_theme.gif") center / cover; border-color: #5aa8a0; box-shadow: 0 18px 50px rgba(0, 19, 20, .42); }
:root[data-theme="lake"] .seller-hero::before { opacity: .16; }
:root[data-theme="lake"] .nav-item.is-active { color: var(--emerald); background: var(--emerald-soft); box-shadow: inset 3px 0 0 var(--emerald); }
:root[data-theme="lake"] .brand-mark, :root[data-theme="lake"] .button--primary { background: var(--emerald); border-color: var(--emerald); color: #082022; }
:root[data-theme="lake"] .eyebrow, :root[data-theme="lake"] .surface-kicker { color: var(--emerald); }
:root[data-theme="lake"] .pulse-metrics article { background: rgba(14, 43, 43, .9); border-color: var(--border); }
:root[data-theme="ocean"] .nav-item.is-active, :root[data-theme="plum"] .nav-item.is-active { color: var(--emerald); background: var(--emerald-soft); box-shadow: inset 3px 0 0 var(--emerald); }
:root[data-theme="ocean"] .brand-mark, :root[data-theme="plum"] .brand-mark,
:root[data-theme="ocean"] .button--primary, :root[data-theme="plum"] .button--primary { background: var(--emerald); border-color: var(--emerald); color: var(--bg); }
:root[data-theme="ocean"] .eyebrow, :root[data-theme="plum"] .eyebrow,
:root[data-theme="ocean"] .surface-kicker, :root[data-theme="plum"] .surface-kicker { color: var(--emerald); }
:root[data-theme="ocean"] .pulse-metrics article, :root[data-theme="plum"] .pulse-metrics article { background: var(--surface-elevated); border-color: var(--border); }

:root[data-theme="light"] { color-scheme: light; --bg: #f3f7f8; --bg-soft: #eaf1f3; --surface: #fff; --surface-elevated: #f5f9fa; --surface-muted: #f4f8f9; --border: #c9d9de; --border-soft: #dbe6e9; --text: #172c34; --text-muted: #47626b; --text-dim: #627c85; --emerald: #087c69; --emerald-strong: #0d927b; --emerald-soft: #d8f2e9; --amber: #8b5e12; --amber-soft: #fff1d5; --danger: #aa3b45; --danger-soft: #ffe4e7; --focus-ring: #087c69; --shadow: 0 12px 30px rgba(34,78,92,.08); }
:root { --text-primary: var(--text); }
:root[data-theme="light"] html, :root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] body { background-image: radial-gradient(circle at 70% -5%, rgba(89,188,167,.12), transparent 36%); }
:root[data-theme="light"] .sidebar { background: #eaf2f3; border-color: var(--border); }
:root[data-theme="light"] .brand-mark { background: linear-gradient(145deg, #53bda3, #087c69); color: white; border-color: #087c69; }
:root[data-theme="light"] .brand-mark img, :root[data-theme="light"] .hero-visual-ring img { filter: invert(1) brightness(.25) drop-shadow(0 0 14px rgba(8,124,105,.18)); }
:root[data-theme="light"] .workspace-chip, :root[data-theme="light"] .mobile-nav { background: var(--surface); }
:root[data-theme="light"] .nav-item:hover, :root[data-theme="light"] .profile-shortcut:hover { background: #dcebed; }
:root[data-theme="light"] .nav-item.is-active, :root[data-theme="light"] .mobile-nav-item.is-active { color: var(--emerald); background: var(--emerald-soft); box-shadow: inset 3px 0 0 var(--emerald); }
:root[data-theme="light"] .topbar { border-color: var(--border-soft); }
:root[data-theme="light"] .eyebrow, :root[data-theme="light"] .surface-kicker { color: var(--emerald); }
:root[data-theme="light"] .surface, :root[data-theme="light"] .metric-card { background: var(--surface); border-color: var(--border-soft); box-shadow: var(--shadow); }
:root[data-theme="light"] .metric-card--primary { background: #e3f7ef; border-color: #9cd8bf; }
:root[data-theme="light"] .metric-card--rank, :root[data-theme="light"] .rank-highlight { background: #fff6e4; border-color: #e8d5a7; }
:root[data-theme="light"] .seller-hero { background: radial-gradient(circle at 78% 37%, rgba(113,207,179,.2), transparent 42%), linear-gradient(120deg, #e5f5f0, #d7eaf1); border-color: #9dcfc7; box-shadow: var(--shadow); }
:root[data-theme="light"] .seller-hero::before { opacity: .08; }
:root[data-theme="light"] .seller-hero h2, :root[data-theme="light"] .seller-hero p, :root[data-theme="light"] .hero-kicker, :root[data-theme="light"] .seller-hero h2 em { color: var(--text); }
:root[data-theme="light"] .hero-tags span { background: rgba(255,255,255,.72); color: var(--text-muted); border-color: var(--border); }
:root[data-theme="light"] .pulse-metrics article, :root[data-theme="light"] .pulse-metrics .pulse-metric--good, :root[data-theme="light"] .pulse-metrics .pulse-metric--late { background: var(--surface); border-color: var(--border); }
:root[data-theme="light"] .pulse-metrics article span, :root[data-theme="light"] .pulse-metrics article small, :root[data-theme="light"] .pulse-metrics article strong { color: var(--text); }
:root[data-theme="light"] .pulse-metrics .pulse-metric--good strong { color: var(--emerald); }
:root[data-theme="light"] .pulse-metrics .pulse-metric--late strong { color: var(--danger); }
:root[data-theme="light"] .pulse-ring > div { background: var(--surface); }
:root[data-theme="light"] .pulse-ring strong, :root[data-theme="light"] .pulse-column-value { color: var(--text); }
:root[data-theme="light"] .pulse-empty, :root[data-theme="light"] .pulse-ring-wrap p, :root[data-theme="light"] .pulse-day { color: var(--text-muted); }
:root[data-theme="light"] .admin-health-item, :root[data-theme="light"] .admin-form-grid input, :root[data-theme="light"] .admin-form-grid select, :root[data-theme="light"] .admin-card > label input, :root[data-theme="light"] .admin-card > label select, :root[data-theme="light"] .admin-textarea-label textarea, :root[data-theme="light"] #adminCategoryRoles, :root[data-theme="light"] .toggle-row--field, :root[data-theme="light"] .admin-color-field, :root[data-theme="light"] .admin-inline-select { background: var(--surface-elevated); color: var(--text); border-color: var(--border); }
:root[data-theme="light"] .admin-health-copy strong { color: var(--text); }
:root[data-theme="light"] .pill--muted { background: var(--surface-elevated); }
:root[data-theme="light"] tbody tr:hover td { background: var(--surface-muted); }
:root[data-theme="light"] .chart-grid-lines span { border-color: var(--border-soft); }
