:root {
  color-scheme: light;
  --ink: #101522;
  --muted: #667085;
  --line: rgba(16, 24, 40, .12);
  --paper: #fcfdff;
  --canvas: #f2f4f8;
  --sidebar: #0b0e17;
  --accent: #315cff;
  --accent-strong: #1d43d7;
  --accent-soft: #e7edff;
  --sport-orange: #ff5a36;
  --danger: #d92d20;
  --warning: #e86f18;
  --success: #15803d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body::before { position: fixed; z-index: 20; inset: 0; pointer-events: none; content: ""; opacity: .025; background-image: radial-gradient(rgba(49,92,255,.8) .45px, transparent .55px); background-size: 4px 4px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #f9fbff; transform: translateY(-150%); }.skip-link:focus { transform: translateY(0); }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; width: 232px; flex-direction: column; background: var(--sidebar); color: #f4f7ff; }
.brand { display: flex; align-items: center; gap: 12px; height: 84px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { display: block; width: 42px; height: 42px; padding: 4px; border: 1px solid rgba(140,164,255,.34); border-radius: 11px; background: rgba(255,255,255,.92); object-fit: contain; box-shadow: 3px 0 0 var(--sport-orange); }
.brand strong, .account strong { display: block; font-size: 14px; }
.brand small, .account small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; letter-spacing: .16em; }
nav { flex: 1; overflow: auto; padding: 14px 12px; }
.nav-section { margin: 0 0 6px; }
.nav-group { display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; background: transparent; color: #667085; cursor: pointer; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-align: left; }
.nav-group b { font-size: 10px; transition: transform .18s ease; }
.nav-section.is-collapsed .nav-group b { transform: rotate(180deg); }
.nav-section.is-collapsed .nav-items { display: none; }
.nav-link { display: flex; align-items: center; min-height: 40px; margin-bottom: 2px; padding: 0 12px; border-radius: 8px; color: #aab4c8; font-size: 13px; font-weight: 560; }
.nav-link:hover { background: #171d2c; color: #f9fbff; }
.nav-link.is-active { background: rgba(49,92,255,.22); color: #f9fbff; box-shadow: inset 2px 0 0 var(--sport-orange); }
.sidebar-foot { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 0 22px; border-top: 1px solid rgba(255,255,255,.08); color: #98a2b3; font-size: 12px; }
.system-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 3px rgba(183,122,22,.16); }
.system-dot.ready { background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.16); }
.main { margin-left: 232px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; height: 84px; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(252,253,255,.94); backdrop-filter: blur(12px); }
.topbar-heading, .top-actions, .breadcrumb, .profile-trigger { display: flex; align-items: center; }
.topbar-heading { min-width: 0; gap: 10px; }
.topbar-copy { min-width: 0; }
.breadcrumb { gap: 7px; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.breadcrumb-separator { opacity: .5; }
.top-actions { position: relative; gap: 8px; }
.sidebar-toggle { display: none; }
.utility-button, .profile-trigger, .primary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 650; }
.primary-button { border-color: var(--accent); background: var(--accent); color: #f7f9ff; }
.profile-trigger { max-width: 156px; }
.profile-trigger strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-count { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; }
.floating-panel { position: absolute; z-index: 20; top: 52px; right: 0; width: 300px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 18px 45px rgba(16,24,40,.18); }
.global-search-panel { width: 360px; }
.global-search-panel input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
#globalSearchResults { display: grid; gap: 4px; max-height: 360px; overflow: auto; margin-top: 9px; }
#globalSearchResults a { display: grid; gap: 3px; padding: 10px; border-radius: 8px; }
#globalSearchResults a:hover { background: var(--accent-soft); }
#globalSearchResults small, .search-empty, .notification-panel span { color: var(--muted); font-size: 11px; }
.notification-panel { display: grid; gap: 8px; }
.profile-menu { display: grid; gap: 12px; }
.section-tabs { position: sticky; z-index: 8; top: 84px; display: flex; gap: 4px; overflow-x: auto; padding: 9px 30px; border-bottom: 1px solid var(--line); background: var(--paper); }
.section-tabs a { flex: 0 0 auto; padding: 8px 11px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.section-tabs a.is-active { background: var(--accent-soft); color: var(--accent-strong); }
.shell-scrim { display: none; }
.kicker { margin: 0 0 5px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(20px, 2vw, 24px); line-height: .95; letter-spacing: -.035em; }
h2 { margin-bottom: 8px; font-size: 18px; }
.account { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.view, .gate { padding: 26px 30px; }
.gate { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 26px 30px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.gate p:not(.kicker) { max-width: 640px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.gate dl { display: grid; grid-template-columns: auto auto; gap: 7px 16px; margin: 0; font-size: 11px; }
.gate dt { color: var(--muted); }.gate dd { margin: 0; color: var(--warning); font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { min-height: 142px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.metric span { color: var(--muted); font-size: 12px; font-weight: 650; }.metric strong { display: block; margin: 14px 0 7px; font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; }.metric small { color: #8a9086; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 14px; margin-top: 14px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.panel > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel > header h2 { margin: 0; }.panel > header a { color: var(--accent); font-size: 12px; font-weight: 700; }
.empty { padding: 44px 20px; color: var(--muted); text-align: center; }
.empty-state { min-height: 260px; padding: 44px; }.empty-state p:not(.kicker) { max-width: 600px; color: var(--muted); line-height: 1.7; }
.resource-layout { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(580px, 1.5fr); gap: 14px; align-items: start; }
.editor { padding: 22px; }.editor h2 { margin-bottom: 18px; }.editor > .field, .form-grid .field { padding: 0 0 16px; }.editor > .button { margin-top: 4px; }.muted-copy { margin: -6px 0 18px; color: var(--muted); line-height: 1.6; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }.form-grid .full { grid-column: 1 / -1; }.check { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.checklist { margin: 0; padding: 10px 20px 18px; list-style: none; }.checklist li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #eaecf0; }.checklist b { color: var(--warning); font-size: 11px; }
.filter-row { display: flex; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.customer-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 10px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.search-field input, .compact-select select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip { min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer; }.chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.table-wrap { overflow: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: 13px 16px; border-bottom: 1px solid #eaecf0; text-align: left; vertical-align: middle; }th { background: #f7f8fb; color: #667085; font-size: 11px; letter-spacing: .04em; }td { font-size: 13px; }.company-cell strong, .company-cell small { display: block; }.company-cell small { margin-top: 4px; color: var(--muted); }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eef1f6; color: #475467; font-size: 10px; font-weight: 700; }.badge.pending { background: #fff1e8; color: var(--warning); }.badge.approved { background: #dcfae6; color: var(--success); }.badge.rejected { background: #fee4e2; color: var(--danger); }
.badge.priority-vip { background: #ebe6ff; color: #5b3ed6; }.badge.priority-high { background: #ffe4dd; color: #b43d21; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 650; }.button.primary { border-color: var(--accent); background: var(--accent); color: #f9fbff; box-shadow: inset 0 -2px 0 rgba(7,11,24,.14); }.button:hover:not(:disabled) { border-color: var(--accent); }.button.primary:hover:not(:disabled) { background: var(--accent-strong); }.button:disabled { cursor: not-allowed; opacity: .55; }
.mono { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.upload-note { margin: -4px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.media-thumbnail { display: grid; width: 64px; height: 48px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #eaecf0; color: var(--ink); object-fit: cover; font-size: 11px; }
.video-thumbnail { background: #111827; color: #8ca4ff; font-size: 18px; }
.media-placeholder { padding: 4px; color: var(--muted); text-align: center; }
.media-list-filters { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto; }
.media-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; }
dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 28%); }
dialog::backdrop { background: rgb(14 17 18 / 55%); backdrop-filter: blur(2px); }
dialog form, dialog > div { display: grid; gap: 14px; }
dialog footer { display: flex; justify-content: flex-end; gap: 10px; }
#mediaReferenceList { display: grid; gap: 8px; max-height: 50vh; overflow: auto; margin: 0; padding: 0; list-style: none; }
#mediaReferenceList li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }.tag-list span { padding: 3px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 9px; font-weight: 750; }
.completeness { min-width: 116px; }.completeness strong, .completeness small { display: block; }.completeness strong { margin-bottom: 5px; font-size: 13px; }.completeness > span { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: #dfe3d6; }.completeness i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }.completeness small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.product-editor .field select[multiple] { min-height: 126px; }
.member-import { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7f8fc; }.member-import .field { padding: 0 0 10px; }.member-import > .muted-copy { margin: 10px 0 0; font-size: 11px; }.member-results { display: grid; gap: 6px; margin-top: 10px; }.member-result { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; }.member-result:hover { border-color: var(--accent); }.member-result span { color: var(--muted); font-size: 11px; }.member-result small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.queue-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid #eaecf0; }.queue-row:last-child { border-bottom: 0; }
dialog { width: 620px; max-width: calc(100vw - 28px); max-height: calc(100vh - 28px); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: 0 24px 70px rgba(16,24,40,.24); }dialog::backdrop { background: rgba(11,14,23,.68); }dialog header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }dialog h2 { margin: 0; }.icon-button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #eef1f6; cursor: pointer; font-size: 20px; }.field { display: block; padding: 18px 22px 0; }.field span { display: block; margin-bottom: 8px; color: #475467; font-size: 12px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }.field textarea { min-height: 100px; resize: vertical; }dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 20px 22px; }
.form-actions { display: flex; gap: 8px; align-items: center; }
.dialog-body { max-height: 55vh; overflow: auto; padding: 20px 22px; }
.detail-grid { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 18px; margin: 0 0 22px; }
.detail-grid dt { color: var(--muted); font-size: 12px; }.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.dialog-body h3 { margin: 22px 0 8px; font-size: 14px; }
.history-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.5fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.history-row span, .history-row small { color: var(--muted); overflow-wrap: anywhere; }
.dialog-section { border-top: 1px solid var(--line); }.dialog-section > h3 { margin: 0; padding: 18px 22px 0; font-size: 14px; }.dialog-section .field { padding: 12px 22px 0; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 18px; border-radius: 10px; background: #101522; color: #f9fbff; box-shadow: 0 12px 34px rgba(16,24,40,.24); }
.designer-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }.designer-intro h2 { margin-bottom: 8px; }.designer-intro p:not(.kicker) { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }.audience-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }.audience-control .chip { min-height: 38px; }
.designer-topbar { position: sticky; z-index: 8; top: 78px; display: flex; align-items: end; gap: 8px; margin: -8px 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }.designer-topbar .compact-field { min-width: 160px; margin-right: auto; }.designer-topbar select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }.designer-library { max-height: 330px; overflow: auto; padding-right: 3px; }.designer-block.is-muted { opacity: .58; }.home-component-preview { display: grid; gap: 5px; margin: 0 0 9px; padding: 12px; border: 1px solid #dfe6cf; border-radius: 11px; background: #fbfdf6; }.home-component-preview strong { font-size: 12px; }.home-component-preview span { color: var(--muted); font-size: 10px; }
.preview-page-logo { display: block; max-width: 132px; max-height: 54px; margin: 10px 0 7px; object-fit: contain; }.preview-native-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 12px -14px -14px; padding: 8px 4px; border-top: 1px solid #dfe4d7; }.preview-native-nav span { display: grid; gap: 3px; place-items: center; font-size: 8px; }.preview-nav-icon { display: grid; width: 20px; height: 20px; place-items: center; }.preview-native-nav img { width: 18px; height: 18px; object-fit: contain; }.preview-native-nav.style-solid { border-radius: 10px 10px 0 0; }.preview-native-nav.style-solid .preview-nav-icon { border-radius: 6px; background: currentColor; }.preview-native-nav.style-solid .preview-nav-icon img { width: 14px; height: 14px; filter: brightness(0) invert(1); }.preview-native-nav.style-icons span { font-size: 7px; }.preview-native-nav.is-fixed { position: sticky; bottom: -14px; }
.designer-shell { display: grid; grid-template-columns: 214px minmax(420px, 1fr) 344px; gap: 16px; align-items: start; }.designer-tools, .designer-canvas, .designer-preview-wrap { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 1px 3px rgba(16,24,40,.05); }.designer-tools { padding: 18px; }.tool-label { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }.tool-button { width: 100%; min-height: 42px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fc; color: var(--ink); cursor: pointer; font-weight: 650; text-align: left; }.tool-button:hover { border-color: var(--accent); background: var(--accent-soft); }.designer-tools hr { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }.compact-field { display: block; }.compact-field span, .designer-field span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }.compact-field input, .designer-field input, .designer-field textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }.compact-field input[type="color"] { min-height: 34px; padding: 3px; cursor: pointer; }.appearance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }.appearance-labels { display: grid; gap: 7px; }.designer-field textarea { min-height: 88px; resize: vertical; }.tool-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.designer-canvas { min-height: 610px; padding: 18px; }.designer-canvas-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.designer-canvas-head span { color: var(--ink); font-weight: 750; }.designer-blocks { display: grid; gap: 10px; padding: 14px 0; }.designer-empty { padding: 52px 20px; border: 1px dashed rgba(111,143,15,.45); border-radius: 14px; background: #f8faef; color: var(--muted); text-align: center; }.designer-empty strong { color: var(--ink); }.designer-empty p { margin: 7px 0 0; font-size: 12px; }.designer-block { border: 1px solid var(--line); border-radius: 14px; background: #fcfdf9; }.designer-block > header { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--line); }.block-order { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: var(--accent-soft); color: #52630e; font-size: 10px; font-weight: 800; }.designer-block header strong { flex: 1; font-size: 13px; }.designer-block header div { display: flex; gap: 4px; }.designer-block .icon-button { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }.danger-button { color: var(--danger); }.designer-block .designer-field { display: block; padding: 12px; }.designer-block .designer-field + .designer-field { padding-top: 0; }.designer-check { margin-top: 4px; padding: 13px 14px; border-radius: 12px; background: #f2f4e9; color: var(--muted); font-size: 12px; line-height: 1.55; }.designer-check strong, .designer-check span { display: block; }.designer-check strong { color: var(--ink); }.designer-check ul { margin: 6px 0 0; padding-left: 17px; color: var(--danger); }.designer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.designer-preview-wrap { position: sticky; top: 102px; padding: 16px; background: #1b1e17; color: #f2f6e9; }.preview-caption { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 750; }.preview-caption small { color: #aeb7a1; font-size: 10px; font-weight: 500; }.phone-frame { width: 278px; margin: 0 auto; overflow: hidden; border: 7px solid #090a08; border-radius: 30px; background: #f6f8f0; color: #1d201a; box-shadow: 0 18px 46px rgba(7,11,24,.38); }.phone-status { display: flex; justify-content: space-between; padding: 10px 14px 6px; font-size: 9px; font-weight: 800; }.phone-page { min-height: 440px; padding: 14px; background: var(--preview-surface, #fbfcf7); }.preview-hero { margin: -14px -14px 14px; padding: 22px 14px 17px; background: #1a1e14; color: #f4f7eb; }.preview-hero.top-white { border: 1px solid #dce1e8; box-shadow: none; }.preview-hero.top-brand { border-bottom: 4px solid var(--preview-accent); box-shadow: 0 8px 18px rgba(111,143,15,.16); }.preview-hero.top-black { border: 1px solid #000; border-radius: 0; box-shadow: none; }.preview-hero.top-graphite { border: 1px solid #47505c; box-shadow: inset 0 -1px rgba(255,255,255,.08), 0 8px 20px rgba(21,24,29,.2); }.preview-hero span { color: var(--preview-accent, var(--accent)); font-size: 9px; font-weight: 800; letter-spacing: .12em; }.preview-hero h2 { margin: 10px 0 7px; font-size: 22px; line-height: 1.06; }.preview-hero p { margin: 0; color: inherit; opacity: .76; font-size: 11px; }.phone-page h3 { margin: 15px 0 8px; font-size: 17px; }.phone-page p { margin: 0 0 12px; color: #596054; font-size: 12px; line-height: 1.65; }.phone-page blockquote { margin: 14px 0; padding: 12px; border-left: 2px solid var(--preview-accent, var(--accent)); background: #edf2df; color: #3d472d; font-size: 12px; line-height: 1.6; }.phone-page figure { margin: 14px 0; }.preview-image { display: grid; width: 100%; min-height: 118px; max-height: 210px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #cdd7b5, #78875a); color: #f8fbf0; object-fit: cover; font-size: 11px; font-weight: 750; }.phone-page figcaption { margin-top: 6px; color: #717967; font-size: 10px; }.phone-nav { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #dfe4d7; background: var(--preview-surface, #fbfcf7); }.phone-nav span { padding: 11px 2px; color: #7a8174; font-size: 8px; text-align: center; }.phone-nav .is-active { color: var(--preview-accent, #607d0e); font-weight: 800; }.designer-history { margin-top: 16px; }
.version-control { display: flex; min-width: 270px; align-items: center; gap: 7px; }.version-control select { min-height: 44px; max-width: 210px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
[data-theme="dark"] { color-scheme: dark; --ink: #edf1fb; --muted: #9ba5b8; --line: rgba(225,232,247,.13); --paper: #151a25; --canvas: #0f131c; --sidebar: #090c13; --accent-soft: #202e58; }
[data-theme="dark"] .topbar { background: rgba(21,26,37,.94); }
[data-theme="dark"] th, [data-theme="dark"] .tool-button, [data-theme="dark"] .member-import { background: #1b2130; color: var(--ink); }
[data-theme="dark"] td, [data-theme="dark"] .checklist li, [data-theme="dark"] .queue-row { border-color: var(--line); }
[data-theme="dark"] .icon-button { background: #242b3b; color: var(--ink); }
@media (max-width: 1240px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.panel-grid { grid-template-columns: 1fr; } }
@media (max-width: 1380px) { .resource-layout, .designer-shell { grid-template-columns: 1fr; }.designer-preview-wrap { position: static; }.designer-preview-wrap .phone-frame { margin: 0; }.designer-intro { align-items: start; flex-direction: column; } }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(49,92,255,.32); outline-offset: 2px; }
@media (max-width: 820px) {
  .designer-topbar { top: 70px; flex-wrap: wrap; }.designer-topbar .compact-field { min-width: 120px; }
  .media-list-filters { grid-template-columns: 1fr 1fr; }
  .sidebar { z-index: 30; width: 254px; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  .shell-scrim { position: fixed; z-index: 29; inset: 0; border: 0; background: rgba(8,11,18,.58); }
  body.nav-open .shell-scrim { display: block; }
  .main { margin-left: 0; }.topbar { height: 70px; padding: 0 20px; }.sidebar-toggle { display: inline-grid; }.section-tabs { top: 70px; padding-inline: 20px; }.view, .gate { padding: 18px 20px; }.gate { margin: 18px 20px 0; }
  .utility-button span:last-child, #notificationTrigger > span { display: none; }
  .primary-button { display: none; }
  .customer-toolbar { grid-template-columns: minmax(180px, 1fr) 160px; }.pagination { grid-column: 1 / -1; justify-content: flex-start; }
  .filter-row { overflow-x: auto; }.filter-row .chip { flex: 0 0 auto; }
  .history-row { grid-template-columns: 1fr; gap: 4px; }.version-control { min-width: 230px; flex-direction: column; align-items: stretch; }.version-control select { max-width: none; }
}
@media (max-width: 640px) {
  .media-list-filters { grid-template-columns: 1fr; }
  .topbar { height: 62px; padding: 0 12px; }.topbar h1 { font-size: 18px; }.breadcrumb { display: none; }.top-actions { gap: 4px; }.top-actions .icon-button, .profile-trigger { min-height: 40px; }.profile-trigger { max-width: 92px; padding-inline: 8px; }.theme-toggle, #notificationTrigger { display: none; }.floating-panel { right: 0; width: min(330px, calc(100vw - 24px)); }.section-tabs { top: 62px; padding: 7px 12px; }.account small { display: none; }.view, .gate { padding: 14px; }.gate { align-items: stretch; flex-direction: column; gap: 18px; margin: 14px 14px 0; }.gate dl { grid-template-columns: minmax(0, 1fr) auto; }
  .metric-grid, .form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.metric { min-height: 118px; }.panel-grid { gap: 10px; }.panel > header { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .customer-toolbar { grid-template-columns: 1fr; padding: 12px 14px; }.pagination { grid-column: auto; flex-wrap: wrap; }.resource-layout { grid-template-columns: minmax(0, 1fr); }.editor { padding: 16px; }.editor > .field, .form-grid .field { padding: 0 0 14px; }
  th, td { padding: 11px 12px; white-space: nowrap; }.company-cell { min-width: 180px; white-space: normal; }.table-wrap { -webkit-overflow-scrolling: touch; }
  dialog { width: calc(100vw - 18px); border-radius: 14px; }.dialog-body { max-height: 42vh; }.detail-grid { grid-template-columns: 74px minmax(0, 1fr); }.toast { right: 10px; bottom: 10px; left: 10px; max-width: none; }
  .designer-tools, .designer-canvas, .designer-preview-wrap { border-radius: 14px; }.designer-preview-wrap .phone-frame { width: min(278px, 100%); margin: 0 auto; }.designer-actions, .form-actions { flex-wrap: wrap; }.version-control { min-width: 210px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Reference-admin parity layer: identical density, geometry and interaction rhythm; Zoki keeps its own palette. */
:root {
  --canvas: #f3f4f6;
  --paper: #ffffff;
  --sidebar: #fbfbfc;
  --ink: #202735;
  --muted: #687184;
  --line: #dde1e7;
  --accent: #315cff;
  --accent-strong: #2447cf;
  --accent-soft: #e9eeff;
}
body::before { display: none; }
.sidebar { width: 238px; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--sidebar); color: var(--ink); }
.brand { height: auto; padding: 0 10px 28px; border: 0; }
.brand-mark { width: 34px; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 3px 0 0 var(--sport-orange); }
.brand strong { font-size: 15px; }.brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
nav { padding: 0; }
.nav-section { margin-bottom: 8px; }
.nav-group { min-height: 30px; padding: 0 10px; color: #8a93a2; font-size: 10px; }
.nav-link { min-height: 38px; margin-bottom: 2px; padding: 0 13px; border-radius: 6px; color: #4b5565; font-weight: 650; }
.nav-link:hover { background: #f0f3fb; color: var(--accent-strong); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 3px 0 0 var(--sport-orange); }
.nav-link.is-locked { justify-content: space-between; color: #8992a2; }
.nav-link.is-locked:hover { background: #f3f5f9; color: #667085; }
.nav-lock { font-size: 10px; font-weight: 760; letter-spacing: .08em; opacity: .75; }
.section-tabs a[aria-disabled="true"] { color: #929bab; }
.sidebar-foot { min-height: 48px; padding: 14px 10px 0; border-color: var(--line); color: var(--muted); }
.main { margin-left: 238px; }
.topbar { height: 104px; padding: 24px 42px; background: rgba(255,255,255,.86); }
.topbar h1 { font-size: 24px; letter-spacing: 0; line-height: 1.2; }
.breadcrumb { margin-bottom: 4px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; font-size: 18px; }
.utility-button, .profile-trigger, .primary-button, .button { min-height: 36px; border-radius: 5px; }
.section-tabs { top: 104px; padding: 8px 42px; }
.section-tabs a { border-radius: 5px; }
.view, .gate { width: 100%; max-width: 1680px; margin-right: auto; margin-left: auto; padding: 24px 32px 48px; }
.gate { margin-top: 24px; }
.metric-grid { gap: 14px; margin-bottom: 23px; }
.metric { min-height: 0; padding: 16px; border-radius: 6px; box-shadow: none; }
.metric strong { margin: 9px 0 0; font-size: 28px; }.metric small { display: block; margin-top: 6px; }
.panel, .designer-tools, .designer-canvas, .designer-preview-wrap { border-radius: 6px; box-shadow: none; }
.panel > header { min-height: 64px; padding: 14px 16px; }
.resource-layout { gap: 14px; }
.table-wrap { border-radius: 6px; }
th, td { padding: 10px 12px; font-size: 12px; }
th { background: #f7f8fa; }
.button { padding: 0 12px; }
.chip { min-height: 36px; border-radius: 5px; }
.field input, .field select, .field textarea, .search-field input, .compact-select select { min-height: 38px; border-radius: 4px; }
.section-description { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.reference-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.reference-page-head h2 { margin: 4px 0 0; font-size: 21px; }
.reference-page-head p:not(.kicker) { margin: 7px 0 0; color: var(--muted); }
.reference-page-actions, .table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.module-body { display: grid; gap: 14px; }
.help-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(115deg, var(--paper), var(--accent-soft)); }
.help-hero h2 { margin-bottom: 8px; font-size: 24px; }.help-hero p:not(.kicker) { max-width: 760px; margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.help-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(49,92,255,.28); border-radius: 999px; background: var(--paper); color: var(--accent-strong); font-size: 11px; font-weight: 800; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.help-card { position: relative; min-height: 300px; padding: 22px; overflow: hidden; }.help-index { position: absolute; top: 12px; right: 16px; color: var(--accent-soft); font-size: 54px; font-weight: 900; line-height: 1; }.help-card h2 { position: relative; margin: 15px 0 18px; }.help-card ol, .help-card ul { position: relative; display: grid; gap: 14px; margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }.help-card li::marker { color: var(--sport-orange); font-weight: 800; }
.help-search-control { display: grid; gap: 7px; max-width: 720px; margin: 0 0 10px; color: var(--ink); font-size: 12px; font-weight: 800; }
.help-search-control input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.help-search-control input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.help-result-count { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.help-page .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-page .help-card { min-height: 0; }
.help-description, .help-roles, .help-implementation p { color: var(--muted); line-height: 1.65; }
.help-roles { display: grid; gap: 3px; padding: 10px 12px; background: var(--accent-soft); border-radius: 6px; }
.help-card h3 { margin: 18px 0 8px; font-size: 13px; }
.help-implementation { margin-top: 16px; border-top: 1px solid var(--line); }
.help-implementation summary { display: flex; align-items: center; min-height: 44px; color: var(--accent-strong); font-weight: 800; cursor: pointer; }
.help-empty-state { grid-column: 1 / -1; width: 100%; }
.reference-list-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reference-list-toolbar .search-field { flex: 1; }
.content-center-filters { flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 12px; }
.content-center-filters input, .content-center-filters select { min-width: 140px; flex: 1 1 160px; }
.content-center-pagination { padding: 14px 0 0; }
.reference-editor-dialog { width: min(820px, calc(100vw - 32px)); border-radius: 6px; }
.reference-editor-body { padding: 8px 22px 20px; }
.reference-form-row { display: grid; grid-template-columns: 150px minmax(280px, 1fr) minmax(140px, .6fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reference-form-row > span { padding-top: 10px; font-weight: 700; }
.reference-form-row input, .reference-form-row textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.reference-form-row textarea { min-height: 120px; resize: vertical; }
.reference-form-row small { padding-top: 10px; color: var(--muted); line-height: 1.5; }
.resource-layout:has(.product-editor.is-hidden) { grid-template-columns: 1fr; }
.product-editor { grid-column: 1 / -1; }
.product-settings-workspace { display: grid; gap: 16px; }
.product-settings-workspace .tag-group-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.product-settings-workspace .tag-group-head { display: flex; gap: 10px; align-items: center; }
.product-settings-workspace .tag-group-head input { flex: 1; }
.product-settings-workspace .tag-option-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.product-settings-workspace .product-settings-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.product-editor-tabs { display: flex; gap: 28px; margin: 0 -22px 20px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.product-editor-tabs button { min-height: 44px; padding: 0; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 750; }
.product-editor-tabs button.is-active { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f131c;
  --paper: #151a25;
  --sidebar: #111621;
  --ink: #edf1fb;
  --muted: #aeb7c8;
  --line: rgba(225,232,247,.13);
  --accent: #5f7dff;
  --accent-strong: #8da2ff;
  --accent-soft: #202e58;
}
[data-theme="dark"] .sidebar { background: #111621; color: var(--ink); }
.home-fixed-preview { display: grid; gap: 7px; margin-top: 10px; padding: 12px; border: 1px solid transparent; }
.home-fixed-preview p, .home-fixed-preview small { margin: 0; color: var(--muted); }
.home-fixed-preview button { justify-self: start; }
.home-fixed-preview.panel-plain { background: transparent; }
.home-fixed-preview.panel-soft { background: var(--surface-soft); }
.home-fixed-preview.panel-outline { border-color: var(--border); background: transparent; }
.home-fixed-preview.radius-none { border-radius: 0; }
.home-fixed-preview.radius-small { border-radius: 8px; }
.home-fixed-preview.radius-medium { border-radius: 16px; }
.home-page-title-preview span { display: block; font-size: 12px; }
.home-component-preview.style-pill { border-radius: 999px; }
.home-component-preview.style-square { border-radius: 0; }
.home-component-preview.style-minimal { padding-inline: 0; border-color: transparent; background: transparent; }
.home-component-preview.quick-style-icon img { object-fit: contain; }
.home-component-preview.quick-style-image img { object-fit: cover; }
.home-component-preview.quick-style-text img { display: none; }
.catalog-preview-filters { grid-template-columns: repeat(3, 1fr); }
.catalog-preview-filters strong { grid-column: 1 / -1; }
.catalog-preview-filters span { padding: 7px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.catalog-preview-results header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.catalog-preview-results header button { border: 0; background: transparent; color: var(--accent); font-size: 9px; cursor: pointer; }
.catalog-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.catalog-preview-list { display: grid; gap: 7px; }
.catalog-preview-card { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.catalog-preview-card.is-visitor-boundary { opacity: .58; filter: blur(.35px); }
.catalog-preview-card.is-visitor-boundary small { color: var(--accent); font-size: 8px; }
.catalog-preview-empty { margin: 0; color: var(--muted); font-size: 10px; }
.role-permission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.role-permission-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised, var(--paper)); }
.role-permission-card h3, .role-permission-card p { margin: 0; }
.permission-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-chips span { padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; }
[data-theme="dark"] .topbar { background: rgba(21,26,37,.94); }
[data-theme="dark"] .nav-link { color: #aeb7c8; }
[data-theme="dark"] .nav-link:hover { background: #1c2433; color: #fff; }
[data-theme="dark"] .nav-link.is-locked { color: #727d91; }
[data-theme="dark"] .nav-link.is-locked:hover { background: #171d29; color: #919caf; }
[data-theme="dark"] th,
[data-theme="dark"] .tool-button,
[data-theme="dark"] .member-import { background: #1b2130; color: var(--ink); }
[data-theme="dark"] td,
[data-theme="dark"] .checklist li,
[data-theme="dark"] .queue-row { border-color: var(--line); }
[data-theme="dark"] .icon-button { background: #242b3b; color: var(--ink); }
@media (max-width: 820px) {
  .sidebar { width: 254px; }
  .main { margin-left: 0; }
  .topbar { height: 70px; padding: 0 20px; }
  .section-tabs { top: 70px; padding-inline: 20px; }
  .reference-page-head { align-items: stretch; flex-direction: column; }
  .reference-form-row { grid-template-columns: 1fr; gap: 7px; }
  .reference-form-row > span, .reference-form-row small { padding-top: 0; }
  .help-grid { grid-template-columns: 1fr; }.help-card { min-height: 0; }
}
@media (max-width: 640px) { .help-hero { align-items: flex-start; flex-direction: column; padding: 18px; }.help-hero h2 { font-size: 21px; } }
@media (max-width: 820px) { .help-page.help-center-workbench { margin: 0; }.help-page .help-grid { grid-template-columns: 1fr; }.help-page .help-search-control input, .help-page .help-implementation summary { min-height: 44px; }.help-page .help-empty-state { width: 100%; min-height: 180px; } }
.selection-request-toolbar header,.selection-request-head,.selection-request-meta,.selection-request-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.selection-request-list{display:grid;gap:16px;margin-top:16px}.selection-request-card{border-left:4px solid var(--accent,#315cff)}.selection-request-head h2{margin:4px 0}.selection-request-meta{justify-content:flex-start;color:var(--muted);font-size:13px}.selection-request-items{display:grid;gap:8px;padding:0;margin:18px 0;list-style:none}.selection-request-items li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.selection-request-items span{color:var(--muted);text-align:right}.selection-request-actions{justify-content:flex-start;margin-top:16px}

/* ZOKI brand preview overrides: keep the shared structure, not the warm palette. */
.designer-empty { border-color: rgba(49,92,255,.42); background: #f4f7ff; }
.designer-block { background: #fff; }
.block-order { background: var(--accent-soft); color: var(--accent); }
.designer-check { background: #f1f4fa; }
.designer-preview-wrap { background: #101522; color: #f3f6ff; }
.preview-caption small { color: #aeb7c8; }
.phone-frame { background: #f5f7fb; color: #151a25; }
.phone-page { background: var(--preview-surface, #fff); }
.preview-hero { background: #101522; color: #f3f6ff; }
.preview-hero.top-brand { box-shadow: 0 8px 18px rgba(49,92,255,.2); }
.phone-page p { color: #687184; }
.phone-page blockquote { background: #eef2ff; color: #273451; }
.preview-image { background: linear-gradient(135deg, #315cff, #101522); color: #f8faff; }
.phone-page figcaption { color: #687184; }
.phone-nav { border-color: #dfe4ef; background: var(--preview-surface, #fff); }
.phone-nav span { color: #778196; }
.phone-nav .is-active { color: var(--preview-accent, #315cff); }

/* ZOKI shell contract: reference geometry, ZOKI graphite / electric-blue / orange palette. */
:root {
  --zoki-sidebar-width: 216px;
  --zoki-topbar-height: 64px;
  --canvas: #e9edf4;
  --paper: #f6f8fc;
  --surface: var(--paper);
  --surface-raised: var(--paper);
  --sidebar: #161b24;
  --ink: #1c2635;
  --muted: #657185;
  --line: rgba(28, 38, 53, .12);
  --accent: #315cff;
  --accent-strong: #2447cf;
  --accent-soft: #e7edff;
}
body { overflow-x: hidden; background: var(--canvas); }
.sidebar { width: var(--zoki-sidebar-width); padding: 16px 12px; border-right: 0; background: #161b24; color: #edf2ff; }
.brand { min-height: 54px; height: auto; padding: 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { width: 32px; height: 32px; border-color: rgba(166,184,255,.32); background: #f2f5fb; }
.brand strong { font-size: 13px; }.brand small { color: #a9b4c8; }
nav { padding: 10px 0; }
.nav-section { margin-bottom: 6px; }
.nav-group { min-height: 30px; padding: 0 9px; color: #95a1b6; }
.nav-link { min-height: 34px; padding: 7px 9px; border-radius: 4px; color: #c8d1e1; font-size: 12px; }
.nav-link:hover { background: #242d3b; color: #fff; }
.nav-link.is-active { background: #283963; color: #fff; box-shadow: inset 3px 0 0 var(--sport-orange); }
.nav-link.is-locked { color: #8f9caf; }.nav-link.is-locked:hover { background: #1e2734; color: #c8d1e1; }
.sidebar-foot { min-height: 48px; padding: 14px 8px 0; border-color: rgba(255,255,255,.1); color: #a9b4c8; }
.main { margin-left: var(--zoki-sidebar-width); background: var(--canvas); }
.topbar { height: var(--zoki-topbar-height); min-height: var(--zoki-topbar-height); padding: 10px 24px; border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.topbar h1 { font-size: 17px; line-height: 1.25; }.breadcrumb { margin-bottom: 3px; font-size: 10px; }
.section-tabs { top: var(--zoki-topbar-height); padding: 6px 24px; background: var(--paper); }
.view, .gate { max-width: 1540px; padding: 20px 24px 56px; }
.gate { margin-top: 20px; background: var(--paper); }
.panel, .metric, .floating-panel { background: var(--paper); }
.icon-button, .utility-button, .profile-trigger, .primary-button, .button { min-height: 36px; border-radius: 4px; }

/* Second-pass page contract: all six navigation groups use the same compact
   hierarchy for panels, tables, editor actions and recoverable list states. */
.table-panel > header,
.selection-request-toolbar > header { min-height: 64px; padding: 14px 16px; }
.table-panel > .table-wrap { border-top: 1px solid var(--line); }
.table-panel > .pagination,
.table-panel > .media-pagination { min-height: 56px; padding: 10px 16px; border-top: 1px solid var(--line); }
.table-panel > .muted-copy[role="status"] { min-height: 38px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.editor > .form-actions { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.selection-request-state { display: grid; min-height: 188px; align-content: center; justify-items: start; gap: 4px; padding: 28px 24px; border-left: 3px solid var(--line); text-align: left; }
.selection-request-state h2 { margin: 0; font-size: 18px; }
.selection-request-state p:not(.kicker) { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.65; }
.selection-request-state .button { margin-top: 10px; }
.selection-request-state.is-loading { border-left-color: var(--accent); }
.selection-request-state.is-error { border-left-color: var(--danger); }
.selection-request-card { overflow: visible; }
.selection-request-card > *:not(.selection-request-head) { margin-right: 16px; margin-left: 16px; }
.selection-request-card .selection-request-head { min-height: 64px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.selection-request-card .selection-request-meta { min-height: 38px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.selection-request-card .selection-request-actions { padding: 14px 0 16px; }
.reference-editor-dialog { border: 0; border-radius: 6px; }
@media (max-width: 640px) {
  .selection-request-state { min-height: 164px; padding: 22px 16px; }
  .selection-request-card > *:not(.selection-request-head) { margin-right: 14px; margin-left: 14px; }
  .table-panel > .pagination,
  .table-panel > .media-pagination { align-items: flex-start; flex-wrap: wrap; padding-inline: 14px; }
}

:root[data-theme="dark"] {
  --canvas: #0e131c;
  --paper: #171e29;
  --sidebar: #111722;
  --ink: #edf2ff;
  --muted: #a8b4c8;
  --line: rgba(227, 235, 255, .13);
  --accent: #6d88ff;
  --accent-strong: #9db0ff;
  --accent-soft: #22345f;
}
:root[data-theme="dark"] .sidebar { background: #111722; }
:root[data-theme="dark"] .topbar { background: color-mix(in srgb, var(--paper) 96%, transparent); }

@media (max-width: 1180px) {
  :root { --zoki-sidebar-width: 196px; }
  .view, .gate { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 820px) {
  :root { --zoki-topbar-height: 78px; }
  .sidebar { z-index: 30; width: min(var(--zoki-sidebar-width), 86vw); transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  .shell-scrim { position: fixed; z-index: 29; inset: 0; border: 0; background: rgba(7, 11, 18, .62); }
  body.nav-open .shell-scrim { display: block; }
  .main { margin-left: 0; min-width: 0; }
  .topbar { height: var(--zoki-topbar-height); min-height: var(--zoki-topbar-height); padding: 10px 18px; }
  .sidebar-toggle { display: inline-grid; width: 44px; min-width: 44px; min-height: 44px; place-items: center; }
  .section-tabs { top: var(--zoki-topbar-height); padding-inline: 18px; }
  .nav-link { min-height: 44px; }
}

@media (max-width: 640px) {
  .topbar { padding-inline: 10px; }.topbar h1 { font-size: 16px; }
  .top-actions { min-width: 0; gap: 4px; }.top-actions > button { min-height: 44px; }
  .section-tabs { padding-inline: 12px; }
}

@media (max-width: 560px) {
  :root { --zoki-topbar-height: 72px; }
  .topbar { padding: 12px; }
  .view, .gate { padding: 16px 12px 32px; }
  .gate { margin: 12px; }
}
