/* SVOYO · UI/UX Pro Max: Data-Dense Dashboard */
:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #19283e;
  background: #f4f6fa;
  font-synthesis: none;
  --primary: #1e40af;
  --primary-hover: #17358f;
  --primary-soft: #edf2ff;
  --surface: #fff;
  --canvas: #f4f6fa;
  --text: #19283e;
  --muted: #59677b;
  --subtle: #66758a;
  --border: #dce3ed;
  --border-strong: #8795a9;
  --nav-bg: #121f35;
  --nav-text: #bdc9db;
  --good: #eaf6ef;
  --good-text: #216340;
  --medium: #fff7e5;
  --medium-text: #805b12;
  --bad: #fff0eb;
  --bad-text: #a43c25;
  --neutral: #f3f5f9;
  --radius: 12px;
  --shadow: 0 2px 4px #182b4804, 0 8px 24px #182b4803;
  --series-0: #1e40af;
  --series-1: #087f75;
  --series-2: #a65f0a;
  --series-3: #ae3d69;
  --series-4: #516da8;
  --series-5: #64752a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 7px; padding: 10px 15px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background-color 160ms, border-color 160ms, box-shadow 160ms; }
button:disabled { opacity: .6; cursor: default; }
button[aria-busy="true"] { cursor: wait; }
button:active:not(:disabled) { filter: brightness(.95); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
main:focus { outline: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input:disabled, select:disabled { color: var(--muted); background: var(--neutral); }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.primary { background: var(--primary); color: #fff; box-shadow: 0 2px 3px #1e40af12; }
.primary:hover:not(:disabled) { background: var(--primary-hover); }
.secondary { background: var(--surface); color: #36465e; border-color: var(--border-strong); }
.secondary:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.text-button { background: none; padding: 9px 0; color: var(--muted); justify-content: flex-start; }
.text-button:hover { color: var(--primary); text-decoration: underline; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; background: var(--surface); color: var(--primary); padding: 12px 18px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 32px 18px 20px; display: flex; flex-direction: column; background: var(--nav-bg); color: var(--nav-text); z-index: 3; }
.sidebar :focus-visible { outline-color: #a5bfff; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: #fff; text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: 1px; }
.brand-icon { width: 38px; height: 40px; flex: 0 0 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 23px; font-weight: 700; letter-spacing: -.8px; }
.sidebar .brand-icon { background: #365fe6; }
.brand-sub { display: block; margin-top: 1px; color: var(--nav-text); font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.store-card { display: flex; align-items: center; gap: 10px; margin: 35px 0 32px; padding: 13px 10px; border: 1px solid #3d4e68; background: #1b2a42; border-radius: 9px; }
.store-avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #33425a; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 700; }
.store-card strong { display: block; font-size: 13px; color: #fff; }
.eyebrow, .section-kicker, .nav-caption { font-size: 10px; font-weight: 650; letter-spacing: 1.3px; line-height: 1.6; }
.eyebrow, .section-kicker { color: var(--subtle); }
.store-card .eyebrow { color: var(--nav-text); font-size: 8px; letter-spacing: 1px; }
.store-badge { margin-left: auto; padding: 3px 7px; color: #b5cdff; border-radius: 4px; background: #283e61; font-size: 10px; }
.nav-caption { padding: 0 12px; color: #a3b3cb; font-size: 8px; margin-bottom: 12px; }
nav { display: grid; gap: 7px; }
.nav-button { justify-content: flex-start; width: 100%; padding: 13px 12px; text-align: left; background: none; color: var(--nav-text); gap: 11px; font-weight: 500; }
.nav-button:hover { background: #20314d; color: #fff; }
.nav-button.active { background: #2d4b8a; color: #fff; box-shadow: inset 3px 0 #a4bfff; }
.nav-button .dot { margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 24px 10px 0; }
.sidebar-bottom p { font-size: 11px; line-height: 1.8; color: #b2bfd2; }
.sidebar-bottom .text-button { color: var(--nav-text); font-size: 12px; gap: 10px; }
.live-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d8e2f1; }
.live-label .icon { width: 15px; height: 15px; flex-basis: 15px; }
.dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #edb34f; }
.dot.valid { background: #52c997; }
main { margin-left: 236px; padding: 0 36px 20px; max-width: 2200px; min-width: 0; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; margin-bottom: 26px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.workspace-bar>span:first-child { font-weight: 600; }
.breadcrumb-divider { margin: 0 10px; color: var(--subtle); }
.workspace-time { font-variant-numeric: tabular-nums; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
h1 { margin: 7px 0; font-size: clamp(24px, 2.1vw, 32px); font-weight: 700; letter-spacing: -.8px; line-height: 1.25; text-wrap: balance; }
.page-header p, .panel-heading p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #eddaaa; border-radius: 5px; background: var(--medium); color: var(--medium-text); font-size: 11px; font-weight: 500; }
.badge::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.badge.valid { color: var(--good-text); background: var(--good); border-color: #c9e4d4; }
.badge.error { color: var(--bad-text); background: var(--bad); border-color: #efcabb; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.summary-card { padding: 19px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.summary-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.summary-label .icon { color: var(--primary); width: 17px; height: 17px; }
.summary-card strong { display: block; margin: 13px 0 7px; font-size: 32px; font-weight: 650; letter-spacing: -.8px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.summary-card .time-value { font-size: 21px; letter-spacing: -.5px; min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; }
.summary-card small { display: block; color: var(--muted); font-size: 11px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; padding: 24px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.panel-heading>div { min-width: 0; }
h2 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.4; color: var(--text); letter-spacing: -.25px; text-wrap: balance; }
.section-kicker { display: block; margin-bottom: 4px; font-size: 9px; }
.product-form { padding: 16px; background: var(--canvas); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; }
.grow { flex: 1; }
.product-list { margin-bottom: 20px; }
.catalog-columns, .product-item { display: grid; grid-template-columns: minmax(160px,1.5fr) minmax(180px,1.1fr) minmax(135px,.9fr) 60px 74px; gap: 16px; align-items: center; }
.catalog-columns { background: var(--canvas); padding: 10px 14px; color: var(--muted); border-radius: 6px; font-size: 10px; }
.product-item { position: relative; text-decoration: none; color: inherit; padding: 18px 14px; padding-left: 66px; border-bottom: 1px solid var(--border); transition: background-color 160ms; grid-template-columns: minmax(108px,1.5fr) minmax(180px,1.1fr) minmax(135px,.9fr) 60px 74px; }
.product-item:hover { background: #f5f8ff; }
.product-icon { position: absolute; left: 14px; width: 36px; height: 40px; background: var(--primary-soft); color: var(--primary); border: 1px solid #dce5fc; border-radius: 8px; display: grid; place-items: center; }
.product-name { min-width: 0; }
.product-item strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.product-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 400; }
.product-trend { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-average { font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; color: var(--primary); font-variant-numeric: tabular-nums; }
.product-average small { font-size: 9px; letter-spacing: 0; max-width: 110px; }
.product-sparkline { width: 90px; height: 42px; flex: 1; min-width: 40px; max-width: 160px; overflow: visible; }
.product-sparkline path { fill: none; stroke: var(--primary); stroke-width: 2; }
.product-sparkline circle { fill: var(--primary); }
.product-no-data { color: var(--muted); font-size: 11px; }
.product-context { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.product-query-count { text-align: center; font-size: 19px; font-variant-numeric: tabular-nums; }
.product-open { display: flex; gap: 5px; align-items: center; justify-content: flex-end; color: var(--primary); font-size: 11px; font-weight: 600; }
.product-open .icon { width: 15px; height: 15px; flex-basis: 15px; }
.query-form { display: flex; align-items: flex-end; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); }
.query-form>label:first-child { flex: 0 1 220px; }
.query-form>label:nth-child(3) { flex: 0 0 125px; }
.query-form textarea { height: 44px; min-height: 44px; }
.query-form .grow { position: relative; padding-bottom: 0; }
.field-hint { font-size: 10px; font-weight: 400; color: var(--muted); }
.query-form>label:not(.grow), .query-form>button { margin-bottom: 22px; }
.tracking-list:not(:empty) { border-top: 1px solid var(--border); }
.tracking-row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.tracking-row:last-child { border: 0; padding-bottom: 0; }
.tracking-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tracking-main strong { display: block; font-size: 13px; font-weight: 600; }
.tracking-main small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.status-text { font-size: 11px; color: var(--muted); background: var(--neutral); padding: 4px 8px; border-radius: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions button { padding: 8px 10px; min-height: 36px; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px; background: var(--canvas); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; }
.filters label { flex: 1 1 145px; }
.filters label:nth-child(3) { flex-grow: 1.2; }
.filters label:last-child { flex-grow: 1.4; }
.analytics-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--neutral); border: 1px solid var(--border); }
.segmented button { background: none; color: var(--muted); min-height: 36px; padding: 8px 12px; font-size: 12px; font-weight: 500; }
.segmented button.selected { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px #182b481a; font-weight: 600; }
.analytics-toolbar label { display: flex; flex-direction: row; align-items: center; gap: 12px; max-width: 100%; }
.analytics-toolbar select { width: auto; max-width: 320px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0; overflow-wrap: anywhere; }
.table-scroll { width: 100%; max-height: 570px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 14px 16px; text-align: center; font-weight: 400; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); min-width: 115px; }
.data-table thead th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #f6f8fb; font-size: 11px; font-weight: 500; }
.data-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 220px; max-width: 300px; background: var(--surface); text-align: left; white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
.data-table thead th:first-child { z-index: 2; background: #f6f8fb; }
.data-table tbody tr:hover th, .data-table tbody tr:hover td:not(.good):not(.medium):not(.bad) { background: #eff3fa; }
.data-table tbody tr:last-child>* { border-bottom: 0; }
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table .good { background: var(--good); color: var(--good-text); }
.data-table .medium { background: var(--medium); color: var(--medium-text); }
.data-table .bad { background: var(--bad); color: var(--bad-text); }
.data-table .neutral { background: var(--neutral); color: var(--muted); }
.cell-note { display: block; margin-top: 4px; font-size: 10px; line-height: 1.6; color: var(--muted); white-space: normal; max-width: 300px; overflow-wrap: anywhere; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; }
.swatch.good { background: var(--good); color: var(--good-text); }
.swatch.medium { background: var(--medium); color: var(--medium-text); }
.swatch.bad { background: var(--bad); color: var(--bad-text); }
.swatch.neutral { background: var(--neutral); color: var(--muted); }
.chart { width: 100%; overflow: auto; }
.chart>svg { display: block; width: 100%; min-width: 600px; }
.chart text { font-family: "Segoe UI", Arial, sans-serif; fill: var(--muted); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: inline-flex; gap: 7px; align-items: baseline; }
.chart-legend i { display: inline-block; width: 16px; height: 3px; flex-shrink: 0; }
.series-0 { background: var(--series-0); }.series-1 { background: var(--series-1); }.series-2 { background: var(--series-2); }.series-3 { background: var(--series-3); }.series-4 { background: var(--series-4); }.series-5 { background: var(--series-5); }
.empty-state { padding: 36px 24px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.9; background: #fcfdff; }
.empty-state strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.product-list>.empty-state { border: 1px dashed var(--border-strong); border-radius: 8px; margin-top: 14px; }
.notice, .source-warning { padding: 13px 16px; margin-bottom: 20px; border-radius: 7px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.notice { color: var(--bad-text); background: var(--bad); border: 1px solid #efcabb; }
.notice.success { color: var(--good-text); background: var(--good); border-color: #c9e4d4; }
.source-warning { color: var(--medium-text); background: var(--medium); border: 1px solid #eddaaa; border-left: 3px solid #b77c15; }
.error { color: var(--bad-text); }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; min-height: 32px; margin-bottom: 16px; text-decoration: none; color: var(--primary); font-size: 12px; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.product-detail { border-top: 3px solid var(--primary); }
.product-detail h2 { font-size: 24px; overflow-wrap: anywhere; }
.product-detail .hint { margin-bottom: 0; }
.session-panel, .help-panel { max-width: 960px; }
.session-info { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 20px; margin: 0 0 24px; background: var(--canvas); border: 1px solid var(--border); border-radius: 8px; }
.session-info dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.session-info dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#session-result { font-size: 13px; overflow-wrap: anywhere; }
.help-panel ol { padding-left: 23px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.help-panel li { padding: 4px 0 4px 7px; }
.help-panel li::marker { color: var(--primary); font-weight: 700; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 8px 0; color: var(--muted); font-size: 10px; }
.login-layout { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(400px,1.1fr); min-height: 100vh; background: var(--surface); }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(30px,5vw,80px); background: var(--nav-bg); color: #fff; }
.login-wordmark { font-size: 25px; font-weight: 750; letter-spacing: 2px; }
.login-wordmark>span { font-size: 10px; color: #bdc9db; font-weight: 400; letter-spacing: 1.5px; }
.login-intro .eyebrow { color: #afc5f6; }
.login-intro h2 { margin: 16px 0 20px; font-size: clamp(38px,4vw,60px); line-height: 1.12; letter-spacing: -2px; color: #fff; }
.login-intro p { color: #bdc9db; max-width: 340px; line-height: 1.8; font-size: 14px; }
.login-intro small { color: #bdc9db; font-size: 11px; margin-top: 30px; }
.login-features { display: grid; gap: 18px; margin-top: 36px; color: #d7e2f5; font-size: 12px; }
.login-features>span { display: flex; align-items: center; gap: 12px; }
.login-features .icon { color: #a9c1ff; }
.login-card { align-self: center; justify-self: center; width: 100%; max-width: 490px; padding: 48px; }
.login-card>.brand-icon { margin-bottom: 30px; }
.login-card>.eyebrow { display: block; }
.login-card h1 { margin: 8px 0 12px; font-size: 28px; }
.login-card>p { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.login-card>.primary { width: 100%; justify-content: space-between; margin-top: 20px; }
.login-card label { font-size: 13px; }
.login-card input { min-height: 48px; margin-top: 3px; }
.login-help { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; font-size: 12px; color: var(--muted); }
.login-help summary { cursor: pointer; min-height: 32px; }
.login-help code { background: var(--neutral); padding: 2px 4px; border-radius: 4px; font-size: 11px; }
@media (min-width:1600px) { main { padding-right: 48px; padding-left: 48px; }.summary-card { padding: 22px 24px; } }
@media (max-width:1250px) {
  .sidebar { width: 212px; padding-inline: 14px; } main { margin-left: 212px; padding-inline: 24px; }
  .header-right { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .catalog-columns, .product-item { grid-template-columns: minmax(130px,1.3fr) minmax(150px,1fr) 54px 65px; }
  .product-item { grid-template-columns: minmax(78px,1.3fr) minmax(150px,1fr) 54px 65px; }
  .catalog-columns>span:nth-child(3), .product-context { display: none; }
  .product-sparkline { width: 50px; }.product-average { font-size: 22px; }
  .summary-card { padding: 16px; }.summary-label { font-size: 11px; }.summary-card .time-value { font-size: 18px; }
  .query-form { flex-wrap: wrap; }.query-form>.grow { flex-basis: calc(100% - 250px); }
  .query-form>label:nth-child(3) { flex-basis: 180px; }.query-form>button { margin-left: auto; }.query-form>label:nth-child(3), .query-form>button { margin-bottom: 0; }
}
@media (max-width:960px) {
  .sidebar { width: 190px; padding-inline: 12px; }.brand { padding-inline: 5px; font-size: 21px; }.nav-button { font-size: 12px; padding-inline: 10px; }.nav-caption { font-size: 7px; }
  main { margin-left: 190px; padding-inline: 20px; }.panel { padding: 20px; }.summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.summary-card .time-value { font-size: 21px; }
  .product-sparkline { display: none; }.catalog-columns, .product-item { grid-template-columns: minmax(140px,1fr) 110px 44px; }.product-item { grid-template-columns: minmax(88px,1fr) 110px 44px; }.catalog-columns>span:last-child, .product-open { display: none; }
  .tracking-row { flex-wrap: wrap; }.tracking-row .row-actions { width: 100%; }.tracking-main { flex-basis: 65%; }
}
@media (max-width:760px) {
  body { font-size: 16px; }.sidebar { position: static; width: 100%; padding: 18px 20px 12px; gap: 14px; }.brand { font-size: 21px; padding: 0; width: fit-content; }.brand-icon { width: 32px; height: 34px; flex-basis: 32px; font-size: 21px; }.brand-sub { font-size: 9px; }
  .store-card, .nav-caption { display: none; }.sidebar { position: relative; }.sidebar-bottom { position: absolute; right: 20px; top: 14px; padding: 0; margin: 0; }.sidebar-bottom p, .sidebar-bottom .live-label { display: none; }.sidebar-bottom .text-button { font-size: 10px; }nav { display: flex; gap: 8px; }.nav-button { width: auto; flex: 1; justify-content: center; font-size: 12px; padding: 10px 8px; }.nav-button.active { box-shadow: none; }.nav-button .dot { margin-left: 2px; }
  main { margin-left: 0; padding: 0 16px 16px; }.workspace-bar { margin-bottom: 20px; padding-block: 14px; font-size: 10px; }.page-header { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }.page-header .eyebrow { font-size: 8px; }h1 { font-size: 27px; }.page-header p { font-size: 12px; }
  .header-right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }.header-right .secondary { min-height: 40px; padding: 8px 12px; }
  .summary-grid { gap: 10px; margin-bottom: 20px; }.summary-card { padding: 15px 13px; border-radius: 9px; }.summary-label { font-size: 11px; }.summary-label .icon { width: 15px; height: 15px; flex-basis: 15px; }.summary-card strong { font-size: 30px; }.summary-card .time-value { font-size: 18px; }.summary-card small { font-size: 10px; }
  .panel { padding: 18px 16px; margin-bottom: 20px; border-radius: 10px; }.panel-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }.panel-heading p { font-size: 12px; }.panel-heading button { font-size: 12px; }h2 { font-size: 17px; }
  .catalog-columns { display: none; }.product-item { display: grid; grid-template-columns: 36px minmax(0,1fr) 44px; gap: 12px; padding: 16px 0; }.product-icon { position: static; grid-column: 1; grid-row: 1; }.product-name { grid-column: 2 / 4; min-width: 0; }.product-item strong { font-size: 14px; }.product-trend { margin-left: 0; grid-column: 2; grid-row: 2; }.product-average { min-width: 0; }.product-average small { max-width: 110px; }.product-sparkline { display: block; max-width: 120px; }.product-query-count { padding-right: 4px; grid-column: 3; grid-row: 2; }.product-open { display: flex; grid-column: 2 / 4; width: 100%; min-height: 28px; }.product-context { display: none; }
  .query-form { display: grid; grid-template-columns: 1fr; padding-top: 20px; gap: 14px; }.query-form>label:not(.grow), .query-form>button { margin: 0; }.query-form>.grow { grid-row: 2; }.query-form textarea { height: 76px; }.query-form button { width: 100%; }.inline-form { flex-wrap: wrap; }.inline-form label { width: 100%; flex-basis: 100%; }.inline-form button { width: 100%; }
  label { font-size: 12px; }input, select, textarea { font-size: 16px; }.field-hint { font-size: 11px; }.tracking-main strong { font-size: 14px; }.row-actions button { min-height: 44px; font-size: 12px; }.status-text { max-width: 100%; overflow-wrap: anywhere; }
  .filters { padding: 12px; gap: 14px 10px; }.filters label { flex: 1 1 calc(50% - 10px); min-width: 0; }.filters label:nth-child(3), .filters label:last-child { flex-basis: 100%; }
  .analytics-toolbar { align-items: stretch; gap: 14px; }.segmented { width: 100%; }.segmented button { flex: 1; padding: 9px 5px; font-size: 11px; min-height: 42px; white-space: normal; }.analytics-toolbar label { width: 100%; font-size: 12px; }.analytics-toolbar select { flex: 1; min-width: 0; max-width: none; }
  .data-table th:first-child { min-width: 135px; max-width: 180px; }.data-table th, .data-table td { padding: 12px; }.legend { gap: 9px 14px; }.empty-state { padding: 28px 16px; }.hint { font-size: 11px; }
  .product-detail h2 { font-size: 21px; }.session-info { grid-template-columns: 1fr; gap: 15px; padding: 16px; }.session-panel .badge { max-width: 100%; }.session-panel .primary { width: 100%; }.help-panel ol { font-size: 14px; }
  footer { font-size: 10px; line-height: 1.8; }.login-layout { grid-template-columns: 1fr; }.login-intro { min-height: auto; padding: 28px 24px; gap: 30px; }.login-intro h2 { font-size: 36px; margin-block: 12px; letter-spacing: -1px; }.login-intro p { margin-bottom: 0; }.login-features, .login-intro>small { display: none; }.login-card { max-width: 500px; padding: 32px 24px; }.login-card>.brand-icon { display: none; }.login-card h1 { font-size: 26px; }.login-card .primary { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* BormoStats calendar, sized for the tracker filter row. */
.date-range-filter { display: flex; flex-direction: column; gap: 7px; flex: 1.3 1 230px; min-width: 0; }
.date-range-filter > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.date-range-panel button { min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; font-weight: 400; }
.date-range-panel select { width: auto; border: 0; }
.date-range-panel button:disabled { opacity: .35; }
.date-range-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.date-range-trigger svg { color: var(--muted); }
.date-range-trigger:hover, .date-range-trigger[aria-expanded=true] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.date-range-trigger:focus-visible, .date-range-panel :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.date-range-panel { position: fixed; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr) 190px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 12px 32px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.05); font-size: 13px; font-variant-numeric: tabular-nums; }
.date-range-panel button, .date-range-panel select { cursor: pointer; }
.date-range-panel button { transition: background-color .12s, color .12s; }
.date-range-panel button:disabled { cursor: default; opacity: .35; }
.date-range-calendars { min-width: 0; }
.date-range-hint { height: 0; }
.date-range-hint > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.date-range-hint button { position: absolute; top: 3px; right: 3px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.date-range-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.date-range-month { min-width: 0; padding: 8px 8px 12px; }
.date-range-month-heading { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 40px; background: transparent; }
.date-range-month-heading select { min-width: 0; max-width: 115px; min-height: 32px; padding: 0 4px; border-radius: 6px; color: inherit; background: transparent; font-weight: 600; text-transform: capitalize; }
.date-range-month-heading option { background: var(--surface); }
.date-range-month-heading > button { display: grid; place-items: center; min-width: 28px; height: 32px; border-radius: 6px; }
.date-range-weekdays, .date-range-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.date-range-weekdays { padding: 10px 0 8px; text-align: center; color: var(--muted); font-weight: 600; }
.date-range-days button { min-height: 32px; width: 100%; border-radius: 6px; font-size: 12px; }
.date-range-days .outside { color: var(--subtle); }
.date-range-days .duplicate { visibility: hidden; }
.date-range-days .selected { color: #fff; background: var(--primary); }
.date-range-days .endpoint, .date-range-days [aria-current=date] { font-weight: 800; }
.date-range-days button:hover:not(:disabled):not(.selected), .date-range-month-heading > button:hover:not(:disabled), .date-range-hint button:hover { background: var(--primary-soft); }
.date-range-days .selected:hover { background: var(--primary-hover); }
.date-range-presets { padding: 10px 8px; border-left: 1px solid var(--border); background: var(--canvas); }
.date-range-presets h3 { margin: 0 0 6px; padding-right: 24px; font-weight: 600; font-size: 13px; }
.date-range-presets > button { display: block; width: 100%; min-height: 35px; padding: 7px 10px; border-radius: 6px; text-align: left; font-weight: 600; }
.date-range-presets > button:hover, .date-range-presets > button[aria-pressed=true] { background: var(--primary-soft); }
.date-range-presets .date-range-period-title { margin-top: 10px; }
.date-range-periods { display: flex; gap: 4px; }
.date-range-periods button, .date-range-periods input { width: 42px; height: 32px; border: 1px solid var(--border); border-radius: 7px; text-align: center; background: var(--surface); }
.date-range-periods form { min-width: 0; flex: 1; }
.date-range-periods input { width: 100%; min-width: 0; padding: 0 4px; }
@media (max-width: 650px) {
  .date-range-panel { grid-template-columns: minmax(0, 1fr); }
  .date-range-presets { border-left: 0; border-top: 1px solid var(--border); }
  .date-range-presets > button { display: inline-block; width: 50%; font-size: 12px; }
  .date-range-periods { max-width: 320px; }
}
@media (max-width: 480px) {
  .date-range-months { grid-template-columns: minmax(0, 1fr); }
  .date-range-month-heading { justify-content: space-between; }
  .date-range-days button { min-height: 40px; }
}

@media (pointer: coarse) {
  .date-range-days button, .date-range-month-heading > button, .date-range-month-heading select, .date-range-presets > button, .date-range-periods button, .date-range-periods input { min-height: 40px; }
}

.date-range-trigger { min-height: 44px; width: 100%; justify-content: flex-start; border-color: var(--border-strong); border-radius: 7px; font-weight: 600; white-space: nowrap; }
.date-range-trigger > span:last-child { margin-left: auto; }
.date-range-panel:focus { outline: none; }
.date-range-panel .date-range-month-heading > button { min-width: 24px; height: 32px; font-size: 24px; }
.date-range-panel .date-range-month-heading select { max-width: 102px; padding: 0 2px; font-size: 12px; }
.date-range-panel .date-range-hint button { font-size: 22px; }
.date-range-panel .date-range-presets > button { justify-content: flex-start; font-size: 12px; min-height: 32px; padding: 6px 8px; }
.date-range-panel .date-range-periods button { flex-shrink: 0; width: 34px; }
.date-range-panel .date-range-periods input { height: 32px; min-height: 32px; font-size: 12px; }
@media (max-width: 650px) { .date-range-panel .date-range-presets > button { display: inline-flex; } }
@media (max-width: 480px) { .date-range-filter { flex-basis: 100%; } }
@media (pointer: coarse) { .date-range-panel .date-range-presets > button, .date-range-panel .date-range-periods input { min-height: 40px; } }

.product-icon img, .catalog-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.product-picker { width: min(820px, calc(100vw - 32px)); max-height: 85vh; padding: 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); box-shadow: 0 24px 80px #14213d40; }
.product-picker::backdrop { background: #14213d80; }
.picker-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.catalog-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.catalog-row .grow { min-width: 0; overflow-wrap: anywhere; }
.catalog-row strong { display: block; font-size: 13px; }
.catalog-row small { display: block; color: var(--muted); margin-top: 6px; }
.catalog-image { width: 56px; height: 64px; flex-shrink: 0; display: grid; place-items: center; background: var(--canvas); border-radius: 6px; }
#seller-api-form { display: grid; gap: 12px; }
@media(max-width: 600px) { .product-picker { padding: 16px; } .catalog-row { gap: 10px; flex-wrap: wrap; } .catalog-row .grow { flex-basis: calc(100% - 72px); } .catalog-row button { margin-left: 66px; } }
