:root {
  color-scheme: dark;
  --bg: #0b1115;
  --panel: #121a20;
  --panel-2: #17232b;
  --panel-3: #20303a;
  --panel-4: #0f181e;
  --line: #2a3a45;
  --line-soft: rgba(255,255,255,.07);
  --text: #eff5f7;
  --muted: #9baeb8;
  --soft: #70828b;
  --green: #22c58b;
  --blue: #4aa3ff;
  --amber: #f6b84b;
  --red: #f05b5b;
  --pink: #ff4f8b;
  --ink: #071015;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,.32);
  --shadow-soft: 0 12px 32px rgba(0,0,0,.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.auth-screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top left, rgba(74,163,255,.18), transparent 34%), var(--bg); }
.auth-panel { width: min(420px, 94vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 12px; }
.auth-panel label { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.auth-panel input, .search-input, .field, select, textarea { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; outline: none; }
.auth-panel input:focus, .search-input:focus, .field:focus, select:focus, textarea:focus { border-color: var(--blue); }
.brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.brand-lockup h1 { margin: 0; font-size: 1.35rem; }
.brand-lockup p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.brand-mark { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--blue)); color: var(--ink); font-weight: 900; }
.brand-mark.small { width: 40px; height: 40px; border-radius: 9px; font-size: .84rem; }
.brand-mark.logo-mark {
  overflow: hidden;
  background: #0f172a;
}
.brand-mark.logo-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
}
.form-note { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.form-note:empty { display: none; }
.form-note a { color: var(--blue); font-weight: 800; text-decoration: none; }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: .85rem; line-height: 1.45; }
.form-error[data-tone="info"] { color: var(--green); }

.app-shell { height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { min-height: 0; background: linear-gradient(180deg, #0f171c, #0b1115); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar-head { min-height: 72px; padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar-head strong { display: block; font-size: .98rem; }
.sidebar-head span { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.nav-list { padding: 10px; display: grid; gap: 4px; overflow-y: auto; }
.nav-button { width: 100%; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: var(--radius); padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; min-height: 42px; }
.nav-button:hover { background: var(--panel-2); color: var(--text); }
.nav-button.active { color: var(--text); background: rgba(74,163,255,.14); border-color: rgba(74,163,255,.34); }
.nav-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nav-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--soft); flex: none; }
.nav-button.active .nav-dot { background: var(--blue); }
.nav-count { color: var(--soft); font-size: .72rem; font-weight: 800; min-width: 24px; min-height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.045); }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.current-user { color: var(--muted); font-size: .78rem; line-height: 1.4; word-break: break-word; }
.current-user strong { color: var(--text); display: block; }
.role-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.role-strip span { display: inline-flex; border-radius: 999px; padding: 3px 7px; background: rgba(74,163,255,.1); color: #c9e2ff; font-size: .66rem; font-weight: 800; }

.workspace { min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.topbar { min-height: 74px; padding: 14px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(11,17,21,.94); backdrop-filter: blur(18px); }
.kicker { margin: 0 0 3px; color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; }
.topbar h2 { margin: 0; font-size: 1.28rem; }
.top-actions { display: flex; align-items: center; gap: 8px; min-width: min(540px, 50vw); }
.search-input { min-width: 250px; }
.content { flex: 1; min-height: 0; overflow: auto; padding: 20px 22px 32px; }

.button { border: 0; border-radius: var(--radius); color: var(--text); background: var(--panel-3); padding: 9px 12px; font-weight: 800; font-size: .84rem; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; min-height: 38px; }
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.primary { background: var(--green); color: var(--ink); }
.button.secondary { background: var(--panel-2); border: 1px solid var(--line); }
.button.subtle { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.button.warn { background: var(--amber); color: #201204; }
.button.danger { background: var(--red); color: white; }
.button.blue { background: var(--blue); color: #06121d; }
.button.pink { background: var(--pink); color: white; }
.button.small { padding: 6px 9px; min-height: 31px; font-size: .76rem; }
.button.full { width: 100%; }

.hero-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: linear-gradient(180deg, var(--panel), var(--panel-4)); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow-soft); }
.stat span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.stat strong { display: block; font-size: 1.7rem; margin-top: 6px; }
.stat em { display: block; color: var(--soft); font-style: normal; font-size: .76rem; margin-top: 2px; }

.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { min-height: 58px; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel-title { margin: 0; font-size: .98rem; }
.panel-copy { margin: 3px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.panel-body { padding: 14px 16px; }
.work-surface { display: grid; gap: 14px; }
.section-command { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(18,26,32,.98), rgba(15,24,30,.98)); box-shadow: var(--shadow-soft); }
.section-command h3 { margin: 0; font-size: 1.02rem; }
.section-command p { margin: 4px 0 0; max-width: 760px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.section-overline { margin: 0 0 4px !important; color: var(--green) !important; font-size: .68rem !important; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.section-command__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sync-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.035); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric-card { min-height: 72px; display: grid; align-content: center; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.metric-card span { color: var(--muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { color: var(--text); font-size: 1.08rem; line-height: 1.1; }
.metric-card.good { border-color: rgba(34,197,139,.28); background: rgba(34,197,139,.075); }
.metric-card.warn { border-color: rgba(246,184,75,.28); background: rgba(246,184,75,.075); }
.metric-card.bad { border-color: rgba(240,91,91,.28); background: rgba(240,91,91,.075); }
.metric-card.info { border-color: rgba(74,163,255,.28); background: rgba(74,163,255,.075); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: .72rem; }
.chip.active { background: rgba(34,197,139,.14); border-color: rgba(34,197,139,.42); color: var(--green); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; }
th, td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .82rem; }
th { position: sticky; top: 0; background: var(--panel-2); z-index: 2; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
th:last-child, td:last-child { position: sticky; right: 0; background: inherit; box-shadow: -12px 0 18px rgba(0,0,0,.16); }
th:last-child { z-index: 3; background: var(--panel-2); }
tbody tr { background: var(--panel); }
tbody tr:nth-child(even) { background: rgba(255,255,255,.012); }
tbody tr:hover td { background: rgba(255,255,255,.035); }
tbody tr.row-warn { box-shadow: inset 3px 0 0 rgba(246,184,75,.75); }
tbody tr.row-bad { box-shadow: inset 3px 0 0 rgba(240,91,91,.75); }
tbody tr.row-good { box-shadow: inset 3px 0 0 rgba(34,197,139,.55); }
tbody tr.row-assisted { box-shadow: inset 3px 0 0 rgba(74,163,255,.85); }
.title-cell { font-weight: 800; color: var(--text); }
.subline { color: var(--soft); font-size: .75rem; margin-top: 3px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.money { color: var(--green); font-weight: 800; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 160px; }
.inline-pills, .status-stack { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: .67rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--panel-3); color: var(--muted); }
.pill.good { color: var(--green); background: rgba(34,197,139,.13); }
.pill.info { color: var(--blue); background: rgba(74,163,255,.13); }
.pill.warn { color: var(--amber); background: rgba(246,184,75,.13); }
.pill.bad { color: var(--red); background: rgba(240,91,91,.13); }
.pill.pink { color: var(--pink); background: rgba(255,79,139,.13); }

.queue-list { display: grid; gap: 9px; }
.queue-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 11px; display: grid; gap: 5px; text-align: left; color: var(--text); }
.queue-item:hover { border-color: rgba(74,163,255,.34); filter: brightness(1.04); }
.queue-item strong { font-size: .86rem; }
.queue-item span { color: var(--muted); font-size: .76rem; }
.queue-item.assisted-stop { border-color: rgba(74,163,255,.24); }
.queue-item.assisted-stop strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.assisted-desk { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(74,163,255,.045); padding: 12px; }
.link-button { display: inline-flex; align-items: center; min-height: 26px; width: fit-content; border: 1px solid rgba(74,163,255,.34); border-radius: 999px; padding: 4px 9px; color: #c9e2ff; background: rgba(74,163,255,.1); text-decoration: none; font-size: .72rem; font-weight: 900; text-transform: none; letter-spacing: 0; }
.link-button:hover { filter: brightness(1.12); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mini-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px; display: grid; gap: 8px; }
.mini-card strong { font-size: .95rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }

.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; align-items: start; }
.ops-grid + .table-wrap { margin-top: 12px; }
.ops-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); padding: 13px; display: grid; gap: 12px; min-width: 0; }
.ops-card:hover { border-color: rgba(74,163,255,.34); }
.ops-card.warn { box-shadow: inset 3px 0 0 rgba(246,184,75,.72), var(--shadow-soft); }
.ops-card.bad { box-shadow: inset 3px 0 0 rgba(240,91,91,.75), var(--shadow-soft); }
.ops-card.good { box-shadow: inset 3px 0 0 rgba(34,197,139,.58), var(--shadow-soft); }
.ops-card.info { box-shadow: inset 3px 0 0 rgba(74,163,255,.7), var(--shadow-soft); }
.ops-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ops-card__head > div { min-width: 0; }
.ops-card__head span { display: inline-flex; color: var(--green); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.ops-card__head h4 { margin: 0; font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.ops-card__head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.ops-card__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 48%; }
.ops-card__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.ops-card__meta > div { min-width: 0; border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(0,0,0,.13); padding: 9px; }
.ops-card__meta span { display: block; color: var(--soft); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ops-card__meta strong { display: block; color: var(--text); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.ops-card__meta strong span { color: var(--soft); font-size: .72rem; font-weight: 700; text-transform: none; letter-spacing: 0; margin: 3px 0 0; }
.ops-card__actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-start; }
.onboarding-panel { margin-bottom: 12px; border: 1px solid rgba(74,163,255,.28); border-radius: var(--radius); background: rgba(74,163,255,.08); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.onboarding-panel strong { font-size: .9rem; }
.onboarding-panel span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.timeline-list { display: grid; gap: 9px; }
.timeline-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 11px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.timeline-item.warn { box-shadow: inset 3px 0 0 rgba(246,184,75,.72); }
.timeline-item.bad { box-shadow: inset 3px 0 0 rgba(240,91,91,.75); }
.timeline-item.good { box-shadow: inset 3px 0 0 rgba(34,197,139,.58); }
.timeline-item strong { display: block; font-size: .84rem; text-transform: capitalize; }
.timeline-item span { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; overflow-wrap: anywhere; }
.timeline-item em { color: var(--soft); font-style: normal; font-size: .72rem; text-align: right; min-width: 180px; }
.settings-stack { display: grid; gap: 9px; margin-top: 12px; }
.settings-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 11px; display: grid; gap: 5px; }
.settings-card strong { font-size: .84rem; }
.settings-card span { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.settings-card em { color: var(--soft); font-style: normal; font-size: .7rem; }
.ads-manager { display: grid; gap: 12px; }
.ads-command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-campaign-shell { display: grid; gap: 0; border-radius: var(--radius); min-width: 0; }
.ad-campaign-shell .ops-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.funnel-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: var(--panel-2); }
.funnel-strip div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--line-soft); }
.funnel-strip div:last-child { border-right: 0; }
.funnel-strip span { display: block; color: var(--soft); font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.funnel-strip strong { display: block; margin-top: 3px; color: var(--text); font-size: .84rem; overflow-wrap: anywhere; }

.catalogue-workbench { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; align-items: start; }
.catalogue-sidebar { min-width: 0; }
.category-stack { display: grid; gap: 8px; max-height: calc(100vh - 330px); overflow: auto; }
.category-card { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--text); padding: 10px; display: grid; gap: 4px; text-align: left; }
.category-card:hover, .category-card.active { border-color: rgba(74,163,255,.45); background: rgba(74,163,255,.11); }
.category-card strong { font-size: .84rem; }
.category-card span, .category-card em { color: var(--muted); font-size: .72rem; font-style: normal; }
.catalogue-main { display: grid; gap: 12px; min-width: 0; }
.catalogue-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.catalogue-toolbar h3 { margin: 0; font-size: 1rem; }
.catalogue-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.catalogue-quick-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.catalogue-quick-stats span { min-height: 28px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 9px; color: var(--muted); background: rgba(255,255,255,.045); border: 1px solid var(--line-soft); font-size: .72rem; font-weight: 800; }
.filter-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.filter-panel > div { display: grid; gap: 6px; }
.filter-panel > div > span { color: var(--soft); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.chip span { margin-left: 4px; color: inherit; opacity: .75; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; align-items: start; }
.listing-card { min-width: 0; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); }
.listing-card:hover { border-color: rgba(74,163,255,.34); }
.listing-media { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 7px; overflow: hidden; background: var(--panel-3); }
.listing-media img, .listing-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-media__empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--soft); background: linear-gradient(135deg, rgba(74,163,255,.12), rgba(34,197,139,.1)); font-weight: 900; letter-spacing: .08em; }
.media-badge { position: absolute; left: 7px; bottom: 7px; display: inline-flex; min-height: 22px; align-items: center; border-radius: 999px; padding: 0 7px; background: rgba(0,0,0,.62); color: white; font-size: .64rem; font-weight: 900; }
.listing-main { min-width: 0; display: grid; gap: 8px; align-content: start; }
.listing-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.listing-head h4 { margin: 0; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.listing-head p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.listing-meta, .listing-seller { display: flex; flex-wrap: wrap; gap: 5px; }
.listing-seller span { color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 7px; font-size: .68rem; font-weight: 800; }
.listing-actions { justify-content: flex-start; min-width: 0; }
.listing-detail-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.listing-detail-media { border-radius: var(--radius); overflow: hidden; background: var(--panel-3); min-height: 220px; }
.listing-detail-copy { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 14px; display: grid; align-content: start; gap: 10px; }
.listing-detail-copy h4 { margin: 0; font-size: 1.05rem; }
.listing-detail-copy p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .84rem; }

.detail-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 12px; }
.detail-section h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.detail-item { border: 1px solid rgba(255,255,255,.055); border-radius: 7px; padding: 9px; background: rgba(0,0,0,.12); min-width: 0; }
.detail-item span { display: block; color: var(--soft); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.detail-item strong { display: block; color: var(--text); font-size: .84rem; overflow-wrap: anywhere; }
.detail-item strong > span { display: block; margin-top: 5px; }
.detail-item .link-button { margin-top: 5px; }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.loading { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.loading strong { color: var(--text); }
.loading span { font-size: .82rem; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 10020; display: grid; place-items: start center; overflow: auto; padding: 36px 16px; }
.modal { width: min(820px, 96vw); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head, .modal-foot { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.modal-body { padding: 18px; display: grid; gap: 12px; }
.modal-foot { border-top: 1px solid var(--line); border-bottom: 0; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
textarea.field { min-height: 96px; resize: vertical; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.check-tile { border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius); padding: 10px; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .84rem; }
.check-tile input { margin-top: 2px; }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 10030; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 11px 12px; box-shadow: var(--shadow); color: var(--text); font-size: .84rem; pointer-events: none; }
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }

@media (max-width: 1040px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .sidebar, .workspace, .topbar, .content { min-width: 0; width: 100%; max-width: 100vw; }
  .sidebar { position: static; min-height: auto; overflow: hidden; }
  .nav-list { display: flex; overflow-x: auto; padding: 10px; width: 100%; max-width: 100vw; }
  .nav-button { width: auto; white-space: nowrap; min-width: max-content; flex: 0 0 auto; }
  .sidebar-foot { display: none; }
  .workspace { height: auto; min-height: 100vh; }
  .topbar { position: sticky; top: 0; z-index: 5; flex-direction: column; align-items: stretch; }
  .top-actions { min-width: 0; }
  .hero-grid, .section-grid, .metric-row, .catalogue-workbench, .listing-detail-hero, .ads-command-grid { grid-template-columns: 1fr; }
  .category-stack { max-height: none; }
  .section-command { flex-direction: column; }
  .section-command__right { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .content { padding: 14px; }
  .top-actions, .toolbar { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .search-input { min-width: 0; }
  .section-command { padding: 13px; }
  .actions { justify-content: flex-start; }
  .catalogue-toolbar { flex-direction: column; }
  .catalogue-quick-stats { justify-content: flex-start; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 92px minmax(0, 1fr); }
  .listing-media { min-height: 92px; }
  .ops-grid { grid-template-columns: 1fr; }
  .funnel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-strip div:nth-child(even) { border-right: 0; }
  .ops-card__head, .onboarding-panel, .timeline-item { flex-direction: column; }
  .ops-card__badges { max-width: none; justify-content: flex-start; }
  .timeline-item em { min-width: 0; text-align: left; }
}

/* 2026 admin console UI upgrade */
:root {
  --bg: #090d10;
  --canvas: #0d1317;
  --panel: #11191e;
  --panel-2: #151f25;
  --panel-3: #1d2a32;
  --panel-4: #0b1115;
  --line: #263640;
  --line-soft: rgba(255,255,255,.075);
  --text: #f2f7f8;
  --muted: #b2c2ca;
  --soft: #74878f;
  --green: #25d18f;
  --blue: #58a9ff;
  --amber: #f7bd52;
  --red: #ff6262;
  --pink: #f25591;
  --ink: #071015;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
  --shadow-soft: 0 14px 34px rgba(0,0,0,.22);
}

html, body {
  background:
    linear-gradient(180deg, #0c1114 0%, #090d10 42%, #080b0d 100%);
  color: var(--text);
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.42), transparent 62%);
}

.auth-screen {
  background:
    linear-gradient(135deg, rgba(37,209,143,.1), transparent 34%),
    linear-gradient(220deg, rgba(88,169,255,.12), transparent 36%),
    var(--bg);
}

.auth-panel {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(21,31,37,.98), rgba(13,19,23,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.46);
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  background: linear-gradient(180deg, rgba(12,18,22,.98), rgba(8,12,15,.99));
  border-right: 1px solid rgba(255,255,255,.09);
  box-shadow: 18px 0 44px rgba(0,0,0,.18);
}

.sidebar-head {
  min-height: 76px;
  padding: 18px 16px;
  border-bottom-color: rgba(255,255,255,.08);
}

.sidebar-head strong {
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.sidebar-head span {
  color: var(--soft);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.brand-mark {
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), transparent 35%),
    linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 10px 26px rgba(37,209,143,.13);
}

.nav-list {
  padding: 11px 10px 16px;
  gap: 10px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group-title {
  padding: 7px 10px 5px;
  color: var(--soft);
  font-size: .7rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-button {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #93a7b0;
}

.nav-button:hover {
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.nav-button.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(88,169,255,.25), rgba(37,209,143,.12));
  border-color: rgba(88,169,255,.34);
  box-shadow: inset 3px 0 0 var(--blue);
}

.nav-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dot {
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.nav-button.active .nav-dot {
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.nav-count {
  min-width: 25px;
  min-height: 21px;
  background: rgba(255,255,255,.07);
  color: #c8d6dc;
}

.sidebar-foot {
  padding: 14px;
  border-top-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  font-weight: 900;
  font-size: .74rem;
  letter-spacing: .02em;
}

.current-user {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}

.workspace {
  background: rgba(13,19,23,.6);
}

.topbar {
  min-height: 86px;
  padding: 16px 24px;
  border-bottom-color: rgba(255,255,255,.09);
  background: rgba(9,13,16,.82);
  backdrop-filter: blur(18px) saturate(1.2);
}

.topbar-title {
  min-width: 220px;
}

.kicker {
  margin-bottom: 4px;
  color: var(--green);
}

.topbar h2 {
  font-size: 1.36rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.topbar-copy {
  display: block;
  max-width: 720px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.top-actions {
  min-width: min(680px, 58vw);
  justify-content: flex-end;
}

.search-shell {
  flex: 1;
  min-width: 300px;
  max-width: 520px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.search-shell span {
  color: var(--soft);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.search-glyph {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--soft);
  border-radius: 999px;
  flex: 0 0 auto;
  opacity: .9;
}

.search-glyph::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  border-radius: 999px;
  background: var(--soft);
  transform: rotate(45deg);
}

.search-input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.search-input:focus {
  border-color: transparent;
}

.search-shell:focus-within {
  border-color: rgba(88,169,255,.58);
  background: rgba(88,169,255,.075);
}

.sync-refresh {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.sync-refresh:hover {
  border-color: rgba(88,169,255,.38);
  background: rgba(88,169,255,.075);
}

.sync-refresh span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

.sync-refresh strong {
  color: var(--text);
  font-size: .78rem;
  font-weight: 900;
}

.content {
  padding: 22px 24px 34px;
}

.button {
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  transition: border-color .14s ease, background .14s ease, transform .14s ease, filter .14s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.button.primary,
.button.blue,
.button.warn,
.button.danger,
.button.pink {
  border-color: transparent;
}

.button.secondary {
  background: rgba(255,255,255,.055);
}

.button.subtle {
  background: rgba(255,255,255,.025);
}

.work-surface {
  gap: 12px;
}

.section-command,
.panel,
.metric-card,
.stat,
.ops-card,
.filter-panel,
.catalogue-toolbar,
.listing-card,
.table-wrap,
.assisted-desk {
  border-color: rgba(255,255,255,.095);
  box-shadow: var(--shadow-soft);
}

.section-command {
  padding: 17px 18px;
  background:
    linear-gradient(180deg, rgba(21,31,37,.98), rgba(14,20,24,.98));
}

.section-command h3 {
  font-size: 1.05rem;
}

.section-command p {
  color: #9fb0b8;
}

.metric-row {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.metric-card {
  min-height: 76px;
  background: linear-gradient(180deg, rgba(21,31,37,.96), rgba(14,20,24,.96));
}

.metric-card strong {
  font-size: 1.14rem;
}

.hero-grid {
  gap: 14px;
}

.stat {
  min-height: 112px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(21,31,37,.98), rgba(13,19,23,.98));
}

.stat strong {
  font-size: 1.85rem;
  letter-spacing: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(21,31,37,.97), rgba(14,20,24,.97));
}

.panel-head {
  border-bottom-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.018);
}

.panel-title {
  font-size: 1rem;
}

.ops-grid {
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 12px;
}

.ops-card {
  padding: 14px;
  background: linear-gradient(180deg, rgba(21,31,37,.98), rgba(13,19,23,.98));
}

.ops-card__head h4 {
  font-size: 1rem;
}

.ops-card__meta > div,
.detail-item {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.075);
}

.ops-card__actions,
.listing-actions {
  padding-top: 2px;
}

.table-wrap {
  background: rgba(17,25,30,.98);
}

table {
  min-width: 1120px;
}

th {
  top: 0;
  background: #162129;
  color: #a7b7bf;
}

th, td {
  padding: 13px 13px;
  border-bottom-color: rgba(255,255,255,.075);
}

tbody tr:hover td {
  background: rgba(88,169,255,.055);
}

tbody tr.row-assisted {
  box-shadow: inset 4px 0 0 rgba(88,169,255,.95);
}

.pill {
  border: 1px solid rgba(255,255,255,.07);
}

.queue-item,
.category-card,
.settings-card,
.timeline-item {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.08);
}

.queue-item:hover,
.category-card:hover,
.category-card.active {
  border-color: rgba(88,169,255,.48);
  background: rgba(88,169,255,.08);
}

.catalogue-workbench {
  grid-template-columns: 330px minmax(0, 1fr);
}

.category-stack {
  padding-right: 2px;
}

.listing-card {
  grid-template-columns: 132px minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(21,31,37,.98), rgba(13,19,23,.98));
}

.listing-media,
.listing-detail-media {
  background: #23313a;
}

.filter-panel {
  background: rgba(17,25,30,.96);
}

.chip {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.09);
}

.chip.active {
  background: rgba(37,209,143,.13);
  border-color: rgba(37,209,143,.44);
}

.detail-section {
  background: rgba(21,31,37,.96);
  border-color: rgba(255,255,255,.095);
}

.modal-backdrop {
  background: rgba(4,7,9,.76);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(900px, 96vw);
  background: linear-gradient(180deg, #151f25, #0f171c);
  border-color: rgba(255,255,255,.12);
}

.modal-head,
.modal-foot {
  border-color: rgba(255,255,255,.09);
}

.modal-head {
  background: rgba(255,255,255,.025);
}

.auth-panel input,
.field,
select,
textarea {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
}

.auth-panel input:focus,
.field:focus,
select:focus,
textarea:focus {
  border-color: rgba(88,169,255,.62);
  background: rgba(88,169,255,.06);
}

.toast {
  background: #121b21;
  border-color: rgba(255,255,255,.11);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(3,6,8,.62);
  backdrop-filter: blur(4px);
}

body.nav-locked {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 14px 34px rgba(0,0,0,.2);
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    display: none;
  }

  .nav-group {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .nav-group-title {
    padding: 8px 10px 5px;
  }

  .nav-button {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .app-shell.nav-open .nav-list {
    position: fixed;
    left: 12px;
    top: 70px;
    bottom: 14px;
    z-index: 10020;
    width: min(340px, calc(100vw - 24px));
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14,21,25,.99), rgba(8,12,15,.99));
    box-shadow: 0 28px 80px rgba(0,0,0,.52);
  }

  .app-shell.nav-open .sidebar {
    z-index: 10030;
  }

  .topbar {
    align-items: stretch;
  }

  .top-actions {
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .search-shell {
    max-width: none;
  }

  .metric-row,
  .catalogue-workbench,
  .ads-command-grid,
  .section-grid,
  .listing-detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .content {
    padding: 14px;
  }

  .sidebar-head {
    min-height: 58px;
    padding: 10px 14px;
  }

  .sidebar-head span {
    display: none;
  }

  .brand-mark.small {
    width: 30px;
    height: 30px;
  }

  .nav-list {
    padding: 12px;
  }

  .nav-group-title {
    display: block;
  }

  .nav-button {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 7px;
  }

  .nav-label {
    gap: 7px;
  }

  .nav-label span:last-child {
    overflow: visible;
    text-overflow: clip;
    font-size: .76rem;
  }

  .nav-dot {
    width: 5px;
    height: 16px;
  }

  .nav-count {
    display: none;
  }

  .topbar {
    padding: 14px;
  }

  .topbar-title {
    min-width: 0;
  }

  .topbar h2 {
    font-size: 1.18rem;
  }

  .top-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .search-shell {
    min-width: 0;
    width: auto;
    flex: 1 1 100%;
  }

  .sync-refresh {
    width: 100%;
    justify-content: space-between;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .listing-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .section-command {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .search-label {
    display: none;
  }

  .listing-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .listing-media {
    min-height: 86px;
  }

  .button.small {
    min-height: 30px;
    padding: 6px 8px;
  }
}

/* Vennuzo admin reference pass */
:root {
  --bg: #f4f6fb;
  --canvas: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #eef2f7;
  --panel-4: #ffffff;
  --line: #dbe2ee;
  --line-soft: rgba(15, 23, 42, .08);
  --text: #1f2533;
  --muted: #667185;
  --soft: #8a95a8;
  --green: #12b8a6;
  --blue: #7c3aed;
  --amber: #b7791f;
  --red: #dc2626;
  --pink: #a855f7;
  --ink: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, .09);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, .06);
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

body::before {
  display: none;
}

.auth-screen {
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, .06), transparent 34%),
    #f3f5fa;
}

.auth-panel {
  width: min(980px, calc(100vw - 40px));
  min-height: 520px;
  display: grid;
  grid-template-columns: .9fr 1.12fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .12);
}

.auth-brand-side {
  min-width: 0;
  padding: 38px 32px 32px;
  display: grid;
  align-content: space-between;
  gap: 32px;
  background: #151b29;
  color: #ffffff;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-brand-lockup strong {
  display: block;
  font-size: 1rem;
}

.auth-brand-lockup span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.68);
  font-size: .78rem;
}

.auth-brand-side h1 {
  max-width: 330px;
  margin: 12px 0 0;
  color: #ffffff;
  font-size: clamp(2.45rem, 6vw, 3.45rem);
  line-height: .98;
  letter-spacing: 0;
}

.auth-eyebrow {
  margin: 0;
  color: #a78bfa;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-badges span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.035);
  font-size: .75rem;
  font-weight: 800;
}

.auth-form-side {
  min-width: 0;
  padding: 52px 40px;
  display: grid;
  align-content: center;
  gap: 13px;
  color: var(--text);
  background: #ffffff;
}

.auth-form-side h1 {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.15;
}

.auth-panel label {
  color: #344054;
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

.auth-panel input,
.field,
select,
textarea,
.search-input {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cbd5e1;
}

.auth-panel input:focus,
.field:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 58, 237, .56);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  background: #f4f6fb;
  color: var(--text);
}

.sidebar {
  background: #1b1930;
  color: rgba(255,255,255,.88);
  border-right: 0;
  box-shadow: 16px 0 40px rgba(15, 23, 42, .12);
}

.sidebar-head {
  border-bottom: 0;
}

.sidebar-head strong {
  color: #ffffff;
}

.sidebar-head span {
  color: rgba(255,255,255,.62);
}

.brand-mark,
.brand-mark.small {
  color: #ffffff;
  background: #121827;
  box-shadow: none;
}

.brand-mark.logo-mark {
  border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(circle at 50% 44%, rgba(255,255,255,.08), transparent 62%), #0f172a;
}

.nav-group-title {
  color: rgba(255,255,255,.48);
}

.nav-button {
  color: rgba(255,255,255,.72);
  border-color: transparent;
  background: transparent;
}

.nav-button:hover {
  color: #ffffff;
  background: rgba(255,255,255,.08);
}

.nav-button.active {
  color: #ffffff;
  background: #23355f;
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 4px 0 0 #14b8a6;
}

.nav-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255,255,255,.09);
}

.nav-button.active .nav-dot {
  background: linear-gradient(135deg, #14b8a6, #7c3aed);
}

.nav-count {
  color: #ffffff;
  background: rgba(255,255,255,.12);
}

.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.1);
  background: transparent;
}

.current-user {
  color: rgba(255,255,255,.64);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
}

.current-user strong {
  color: #ffffff;
}

.role-strip span {
  color: #d8b4fe;
  background: rgba(124, 58, 237, .18);
}

.workspace {
  background: #f4f6fb;
}

.topbar {
  min-height: 70px;
  padding: 14px 32px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #dbe2ee;
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
  backdrop-filter: blur(14px);
}

.kicker {
  color: #344054;
  font-size: .74rem;
}

.topbar h2 {
  color: #1f2533;
  font-size: 1.22rem;
}

.topbar-copy {
  color: #667185;
}

.top-actions {
  min-width: min(680px, 55vw);
}

.search-shell,
.sync-refresh {
  border-color: #d0d7e2;
  background: #ffffff;
  box-shadow: none;
}

.search-shell:focus-within,
.sync-refresh:hover {
  border-color: rgba(124, 58, 237, .48);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .08);
}

.search-shell span,
.sync-refresh span {
  color: #667185;
}

.search-glyph,
.search-glyph::after {
  border-color: #667185;
}

.search-glyph::after {
  background: #667185;
}

.sync-refresh strong {
  color: #1f2533;
}

.content {
  padding: 24px 32px 38px;
  background: #f4f6fb;
}

.section-command,
.panel,
.metric-card,
.stat,
.ops-card,
.filter-panel,
.catalogue-toolbar,
.listing-card,
.table-wrap,
.assisted-desk,
.detail-section,
.queue-item,
.category-card,
.settings-card,
.timeline-item,
.mini-card {
  color: var(--text);
  border-color: #dbe2ee;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.section-command {
  background: #ffffff;
}

.section-command p,
.panel-copy,
.subline,
.muted,
.mini-card p,
.timeline-item span,
.settings-card span,
.queue-item span,
.listing-head p,
.listing-detail-copy p,
.catalogue-toolbar p,
.topbar-copy {
  color: #667185;
}

.section-overline,
.ops-card__head span,
.filter-panel > div > span,
.detail-item span,
.metric-card span,
.stat span,
th,
.kicker {
  color: #667185 !important;
}

.panel,
.table-wrap {
  overflow: hidden;
}

.panel-head,
.modal-head,
.modal-foot {
  border-color: #dbe2ee;
  background: #f8fafc;
}

.stat,
.metric-card {
  background: #ffffff;
}

.metric-card.good,
.stat.good {
  border-color: rgba(18,184,166,.28);
  background: #ecfdf9;
}

.metric-card.warn {
  border-color: rgba(183,121,31,.26);
  background: #fffbeb;
}

.metric-card.bad {
  border-color: rgba(220,38,38,.22);
  background: #fef2f2;
}

.metric-card.info {
  border-color: rgba(124,58,237,.22);
  background: #f5f3ff;
}

.button {
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  color: #1f2533;
  background: #ffffff;
  box-shadow: none;
}

.button:hover {
  transform: none;
  border-color: #b8c2d3;
  filter: none;
}

.button.primary {
  color: #ffffff;
  background: #138b7e;
  border-color: #138b7e;
}

.button.blue {
  color: #ffffff;
  background: #7c3aed;
}

.button.warn {
  color: #3d2b06;
  background: #fbbf24;
}

.button.danger {
  color: #ffffff;
  background: #dc2626;
}

.button.pink {
  color: #ffffff;
  background: #9333ea;
}

.button.secondary,
.button.subtle {
  color: #344054;
  background: #ffffff;
  border-color: #d0d7e2;
}

.button.full {
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.12);
}

table {
  color: #1f2533;
}

th {
  background: #f8fafc;
  border-bottom-color: #dbe2ee;
}

td {
  border-bottom-color: #e6ebf2;
}

th:last-child,
td:last-child {
  background: inherit;
  box-shadow: -12px 0 18px rgba(15,23,42,.06);
}

th:last-child {
  background: #f8fafc;
}

tbody tr {
  background: #ffffff;
}

tbody tr:nth-child(even) {
  background: #fbfcfe;
}

tbody tr:hover td {
  background: #f4f7fb;
}

.pill {
  border-color: rgba(15,23,42,.08);
  color: #667185;
  background: #f1f5f9;
}

.pill.good {
  color: #0f766e;
  background: #ccfbf1;
}

.pill.info {
  color: #5b21b6;
  background: #ede9fe;
}

.pill.warn {
  color: #92400e;
  background: #fef3c7;
}

.pill.bad {
  color: #b91c1c;
  background: #fee2e2;
}

.pill.pink {
  color: #7e22ce;
  background: #f3e8ff;
}

.money {
  color: #0f766e;
}

.chip,
.catalogue-quick-stats span,
.listing-seller span,
.sync-pill {
  color: #475467;
  background: #f8fafc;
  border-color: #dbe2ee;
}

.chip.active,
.category-card.active {
  color: #0f766e;
  background: #ecfdf9;
  border-color: rgba(18,184,166,.32);
}

.ops-card__meta > div,
.detail-item {
  background: #f8fafc;
  border-color: #e6ebf2;
}

.ops-card__meta span,
.detail-item span {
  color: #7b8798 !important;
}

.listing-card {
  background: #ffffff;
}

.listing-media,
.listing-detail-media {
  background: #e8edf5;
}

.listing-media__empty {
  color: #64748b;
  background: linear-gradient(135deg, #eef2ff, #ecfdf9);
}

.modal-backdrop {
  background: rgba(15, 23, 42, .42);
}

.modal {
  background: #ffffff;
  border-color: #dbe2ee;
}

.modal-head h3,
.listing-detail-copy h4,
.panel-title,
.section-command h3,
.ops-card__head h4,
.timeline-item strong,
.settings-card strong {
  color: #1f2533;
}

.toast {
  color: #1f2533;
  background: #ffffff;
  border-color: #dbe2ee;
  box-shadow: var(--shadow);
}

.mobile-menu-button {
  color: #ffffff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.nav-backdrop {
  background: rgba(15, 23, 42, .38);
}

@media (max-width: 1040px) {
  .sidebar {
    background: #1b1930;
  }

  .app-shell.nav-open .nav-list {
    background: #1b1930;
    border-color: rgba(255,255,255,.12);
  }

  .topbar {
    padding: 14px 18px;
  }

  .content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .auth-panel {
    grid-template-columns: 1fr;
    width: min(460px, calc(100vw - 28px));
  }

  .auth-brand-side {
    min-height: 230px;
    padding: 26px 24px;
  }

  .auth-brand-side h1 {
    font-size: 2.25rem;
  }

  .auth-form-side {
    padding: 30px 24px;
  }
}
