/* Personal workspace shares the catalogue palette in both themes. */
.dns-account-panel {
  container-type:inline-size;
  display:grid;
  min-width:0;
  gap:clamp(18px, 3vw, 32px);
}
.dns-account-panel .dns-account-identity {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  padding:clamp(24px, 4vw, 48px);
  background:#2347d9;
  color:#fff;
  border-radius:6px;
}
.dns-account-identity::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 0 auto;
  width:42%;
  background:repeating-linear-gradient(125deg, transparent 0 38px, rgb(255 255 255 / 5%) 38px 55px);
  pointer-events:none;
}
.dns-account-intro { min-width:0; flex:1 1 52%; overflow-wrap:anywhere; }
.dns-account-intro h2 {
  margin:0;
  color:inherit;
  font:700 clamp(26px, 3.2vw, 45px)/1.1 var(--edition-sans,system-ui,sans-serif);
  letter-spacing:-.045em;
}
.dns-account-intro p { max-width:48ch; margin:12px 0 0; color:#f1f4ff; line-height:1.5; }
.dns-account-actions { display:grid; justify-items:start; align-content:center; gap:8px; }
.dns-account-actions > small { color:#ecf0ff; }
.dns-account-panel .dns-account-cta {
  display:inline-flex; justify-content:space-between; align-items:center; gap:14px;
  min-height:44px; padding:7px 14px; border-radius:4px; background:#fff; color:#17339d;
  font:650 14px/1.4 var(--edition-sans,system-ui,sans-serif); text-decoration:none;
}
.dns-account-panel .dns-account-signout {
  min-height:32px; padding:2px 4px; border:0; color:#fff; background:transparent;
  font:inherit; font-size:13px; text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.dns-account-actions :is(a,button):focus-visible { outline:2px solid #fff; outline-offset:4px; }
.dns-account-links {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0;
  border-block:1px solid var(--border);
}
.dns-account-links a {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px;
  align-content:center; padding:18px clamp(12px,2vw,25px); min-width:0;
  color:var(--text); text-decoration:none; overflow-wrap:anywhere;
}
.dns-account-links a + a { border-inline-start:1px solid var(--border); }
.dns-account-link-title { font-weight:680; font-size:clamp(15px,1.5vw,20px); }
.dns-account-links small { grid-column:1; color:var(--secondary); font-size:13px; }
.dns-account-arrow { grid-area:1/2/3/3; align-self:center; color:var(--accent); font-size:22px; }
.dns-account-details { display:grid; grid-template-columns:minmax(0, .85fr) minmax(0,1.15fr); gap:clamp(14px,2vw,26px); align-items:start; }
.dns-account-panel :is(.dns-account-access,.dns-account-settings) {
  min-width:0; margin:0; padding:clamp(16px,2.5vw,30px);
  border:1px solid var(--border); border-radius:5px; background:var(--surface);
}
.dns-account-details h2 { margin:0; font-size:clamp(20px,2vw,26px); line-height:1.25; letter-spacing:-.035em; }
.dns-account-access p { max-width:46ch; margin:16px 0; color:var(--secondary); line-height:1.55; }
.dns-account-access small { display:block; color:var(--muted); line-height:1.5; }
.dns-account-access .dns-account-plan {
  display:grid; gap:4px; margin:20px 0 0; padding-block:12px;
  border-block:1px solid var(--border); font-size:13px;
}
.dns-account-plan strong { font-size:clamp(21px,2.5vw,30px); line-height:1.2; color:var(--accent); }
.dns-account-grants { list-style:none; margin:0 0 14px; padding:0; }
.dns-account-grants li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 14px; padding:10px 0; border-block-end:1px solid var(--border); }
.dns-account-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
.dns-account-settings.form-stack :is(input,select) { height:44px; font-size:14px; }
.dns-account-settings.form-stack label { font-size:13px; }
.dns-account-settings.form-stack .button { min-height:44px; }
.dns-account-settings.form-stack small { font-size:13px; }
@container (max-width: 640px) {
  .dns-account-details, .dns-account-links { grid-template-columns:minmax(0,1fr); }
  .dns-account-links a { padding:13px 4px; }
  .dns-account-links a + a { border-inline-start:0; border-block-start:1px solid var(--border); }
}
@container (max-width: 380px) {
  .dns-account-panel .dns-account-identity { display:grid; gap:16px; padding:20px; }
  .dns-account-fields { grid-template-columns:minmax(0,1fr); }
}
@media(hover:hover) and (pointer:fine) {
  .dns-account-links a:hover { background:var(--accent-soft); }
  .dns-account-panel .dns-account-cta:hover { background:#edf1ff; }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .dns-account-arrow { transition:transform 150ms ease-out; }
  .dns-account-links a:hover .dns-account-arrow { transform:translateX(3px); }
}
#workspace-panel,#workspace-content{min-width:0;max-width:100%}
#workspace-content{display:grid;gap:18px;animation:enter .2s ease both}
#workspace-content>.panel-card,#workspace-content>.notice{margin:0}
#workspace-content .panel-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
#workspace-content .panel-card>h2,#workspace-content .panel-card>h3{margin-bottom:12px}
#workspace-content .panel-card>p{margin:10px 0;color:var(--secondary);font-size:12px;line-height:1.7}
#workspace-content .panel-card>small{color:var(--muted);font-size:11px}
.profile-grid,.plan-grid,.cost-grid{display:grid;gap:18px;align-items:start;min-width:0}
.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.plan-grid .panel-card{height:100%;margin:0}
.cost-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));margin-top:18px}
.profile-grid>.panel-card,.cost-grid>*{min-width:0;margin:0}
.form-stack{display:grid;gap:14px}
.form-stack label,.advanced-grid label,.cost-form label{display:grid;gap:6px;min-width:0;font-size:11px;font-weight:550;color:var(--secondary)}
.form-stack input,.form-stack select,.form-stack textarea,.advanced-grid input,.advanced-grid select,.cost-form input,#analytics-days{width:100%;min-width:0;max-width:100%;height:40px;border:1px solid var(--border);border-radius:7px;padding:9px 11px;background:var(--surface);color:var(--text);font:inherit;font-size:12px}
.form-stack input::placeholder,.form-stack textarea::placeholder,.cost-form input::placeholder,.advanced-grid input::placeholder{color:var(--muted);opacity:1}
.form-stack textarea{height:auto;min-height:90px;resize:vertical;line-height:1.6;font-family:inherit}
.form-stack small{color:var(--muted);font-size:11px;font-weight:400;line-height:1.6}
.form-stack>.button{justify-self:start;min-height:40px}
.form-stack textarea:focus-visible,.compare-scroll:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:3px}
.check-field,.form-stack .check-field{display:flex;flex-direction:row;align-items:flex-start;gap:9px;color:var(--secondary);font-size:12px;font-weight:400;line-height:1.6;cursor:pointer}
.check-field input,.form-stack .check-field input{width:16px;height:16px;padding:0;margin:3px 0 0;flex:none;accent-color:var(--accent)}
.advanced-filters{margin:0 24px 16px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}
.advanced-filters>summary{cursor:pointer;padding:12px 14px;font-size:11px;color:var(--secondary);font-weight:550}
.advanced-filters[open]>summary{border-bottom:1px solid var(--border)}
.advanced-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:14px;min-width:0}
.advanced-filters>.advanced-grid{padding:14px}
.advanced-filters .check-field{align-self:end;font-size:11px}
.advanced-filters>.action-wrap{padding:0 14px 14px}
.access-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 26px;padding:13px 16px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--secondary);font-size:11px;line-height:1.6}
.access-banner .button{font-size:10px;min-height:34px}
.action-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#detail-body>.action-wrap{padding:0 32px;margin:20px 0}
.action-wrap>small{font-size:11px;line-height:1.6;color:var(--muted)}
.workspace-empty{display:grid;justify-items:center;gap:10px;text-align:center;padding:28px 16px;color:var(--muted);font-size:12px;line-height:1.7}
.workspace-empty>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--surface-soft);color:var(--accent);font-size:24px}
.workspace-empty>p{max-width:540px}
.saved-item,.feed-item{position:relative;padding:19px 0;border-top:1px solid var(--border);min-width:0}
.saved-item:first-of-type,.feed-item:first-of-type{margin-top:15px}
.saved-item h3,.feed-item h3{font-size:14px;line-height:1.55}
.saved-item p,.feed-item p{margin:7px 0 12px;color:var(--secondary);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.feed-item>small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-bottom:12px}
.feed-item.unread{padding-left:18px}
.feed-item.unread:before{position:absolute;left:0;top:26px;content:"";width:6px;height:6px;background:var(--accent);border-radius:50%}
#bell-button{position:relative}
.unread-badge{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;color:var(--accent-on);background:var(--accent);font-size:9px;font-weight:650;border:2px solid var(--surface)}
.icon-button[data-compare].active{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 35%,var(--border))}
.availability{display:block;max-width:180px;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.5}
.availability-observed{color:var(--green)}
.availability-missing,.availability-error{color:var(--amber)}
.compare-scroll{display:block;width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border:1px solid var(--border);border-radius:8px;margin:18px 0}
.compare-table{width:100%;min-width:660px;table-layout:auto;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.6}
.compare-table th,.compare-table td{min-width:190px;max-width:300px;vertical-align:top;text-align:left;padding:14px 16px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);overflow-wrap:anywhere;white-space:normal}
.compare-table th:first-child,.compare-table td:first-child{min-width:160px}
.compare-table th:last-child,.compare-table td:last-child{border-right:0}
.compare-table tbody tr:last-child>*{border-bottom:0}
.compare-table thead th{background:var(--surface-soft);font-weight:600}
.compare-table tbody th{font-weight:550;color:var(--secondary);background:var(--surface-soft)}
.compare-table th small{display:block;margin:7px 0;color:var(--muted);font-size:10px;font-weight:400}
.compare-table th .button{margin-top:8px;font-size:10px;padding:5px 9px}
.compare-table .product-title{text-align:left;line-height:1.6;white-space:normal;min-width:130px}
.compare-table .comparison-different td{background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}
.compare-table .comparison-incomplete td,.compare-table .comparison-unknown td{color:var(--secondary)}
.comparison-note{padding:12px;border-radius:7px;background:var(--surface-soft);color:var(--secondary)}
.cost-form{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft)}
.cost-form>strong{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.cost-form>small{font-size:11px;color:var(--muted)}
.cost-form>output{display:block;color:var(--secondary);font-size:12px;line-height:1.7;border-top:1px solid var(--border);padding-top:12px;overflow-wrap:anywhere}
.analytics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.analytics-metrics>div{padding:15px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px;min-width:0}
.analytics-metrics small{display:block;color:var(--secondary);font-size:11px;line-height:1.6}
.analytics-metrics strong{display:block;font-size:26px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.4;margin-top:8px}
.price-statistics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.price-statistics .metric-row{min-width:0;gap:14px;font-size:11px}
.price-statistics .metric-row strong{text-align:right;font-variant-numeric:tabular-nums}
.bars{display:grid;gap:14px;margin-top:18px}
.bar-row{display:grid;grid-template-columns:minmax(110px,1.1fr) minmax(55px,1fr) auto;align-items:center;gap:12px;font-size:11px;min-width:0}
.bar-row>span{color:var(--secondary);overflow-wrap:anywhere;line-height:1.6}
.bar-row>div{height:7px;border-radius:4px;background:var(--surface-soft);overflow:hidden}
.bar-row i{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.bar-row strong{min-width:25px;text-align:right;font-size:11px;font-weight:550;font-variant-numeric:tabular-nums}
.daily-bars{max-height:420px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:8px;margin-bottom:16px}
.daily-bars .bar-row{grid-template-columns:100px minmax(70px,1fr) 40px}
.event-totals{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--secondary);font-size:11px;margin-top:15px}
.event-totals>span{padding:5px 0}
.region-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px;margin-top:18px}
.region-status-grid>article{display:grid;gap:7px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);font-size:12px}
.region-status-grid span{font-size:11px;color:var(--secondary)}
.region-status-grid small{font-size:10px;color:var(--muted)}
.jobs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px;margin-top:24px}
.job-card{min-width:0;padding:17px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft)}
.job-card .panel-heading{gap:10px;margin-bottom:13px;align-items:start;flex-wrap:wrap}
.job-card h3{font-size:14px}.job-card dl{display:grid;gap:9px;margin:0 0 17px;font-size:11px}
.job-card dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.job-card dt{color:var(--muted)}.job-card dd{margin:0;color:var(--secondary);text-align:right;overflow-wrap:anywhere}
.job-reason{font-size:11px;line-height:1.7;color:var(--amber);overflow-wrap:anywhere;margin:12px 0}
.history-list{margin-top:14px;border-top:1px solid var(--border);max-height:480px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;padding-right:5px}
.history-controls{margin:14px 0}
.search-regions{min-width:0;margin:0;padding:14px;border:1px solid var(--border);border-radius:8px}
.search-regions legend{padding:0 6px;font-size:12px;color:var(--secondary);font-weight:600}
.region-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:9px 16px;margin-bottom:12px}
.region-choices .check-field{font-size:11px}
.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:11px}
.history-row>div{display:grid;gap:5px;min-width:0}
.history-row small{font-size:10px;color:var(--muted)}
.history-row>strong{text-align:right;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;max-width:180px}
.history-row .history-error{grid-column:1/-1;overflow-wrap:anywhere;color:var(--amber)}
.workspace-pagination{display:flex;justify-content:flex-end;align-items:center;gap:15px;font-size:11px;color:var(--secondary);margin-top:16px}
.search-result-table th:first-child,.search-result-table td:first-child{min-width:270px;max-width:520px}
.search-result-table th:not(:first-child),.search-result-table td:not(:first-child){min-width:150px}
.toast{max-width:min(520px,calc(100vw - 32px));overflow-wrap:anywhere;line-height:1.7}
@media(max-width:1100px){.analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-grid{grid-template-columns:1fr}.profile-grid{gap:14px}.bar-row{grid-template-columns:minmax(100px,1fr) minmax(40px,.8fr) auto;gap:8px}}
@media(max-width:850px){.profile-grid{grid-template-columns:1fr}.price-statistics{grid-template-columns:1fr}.advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.access-banner{align-items:flex-start}}
@media(max-width:680px){#workspace-content{gap:14px}.advanced-filters{margin:0 13px 14px}.advanced-grid{grid-template-columns:1fr}.advanced-filters>.advanced-grid{padding:12px}.access-banner{padding:12px;margin-bottom:24px}.access-banner .button{width:100%}.form-stack input,.form-stack textarea,.form-stack select,.advanced-grid input,.advanced-grid select,.cost-form input,#analytics-days{font-size:16px;min-height:44px}.form-stack>.button{width:100%}.form-stack label,.cost-form label{font-size:12px}.action-wrap .button{min-height:40px}.analytics-metrics{gap:9px}.analytics-metrics>div{padding:12px}.analytics-metrics small{font-size:10px}.analytics-metrics strong{font-size:24px}.compare-table th,.compare-table td{padding:12px;min-width:185px}.compare-table th:first-child,.compare-table td:first-child{min-width:135px}.bar-row{grid-template-columns:minmax(100px,1fr) minmax(40px,.7fr) auto}.daily-bars .bar-row{grid-template-columns:90px minmax(40px,1fr) 30px}.region-status-grid{grid-template-columns:1fr 1fr}.history-row{grid-template-columns:1fr}.history-row>strong{text-align:left;max-width:none}#detail-body>.action-wrap{padding:0 22px}.workspace-pagination{justify-content:space-between}.feed-item p,.saved-item p{font-size:12px}}
@media(max-width:380px){.region-status-grid{grid-template-columns:1fr}.analytics-metrics{grid-template-columns:1fr}.bar-row{grid-template-columns:minmax(85px,1fr) minmax(30px,.5fr) auto}}
@media(prefers-reduced-motion:reduce){#workspace-content{animation:none}}

/* Catalogue and workspace share the Skidarium colour and motion system. */
:root{
  --bg:#f6f4ed;--surface:#fffdf7;--surface-soft:#eeefe4;
  --text:#1c2620;--secondary:#435348;--muted:#59665b;--border:#d4d8c9;
  --accent:#215941;--accent-hover:#143c30;--accent-on:#fff;--accent-soft:#e3edd3;
  --pine:#143c30;--lime:#d4ef71;--display:Georgia,"Times New Roman",serif;
  --figures:Consolas,"Liberation Mono",ui-monospace,monospace;
  --green:#236347;--green-soft:#e0ead8;--amber:#795413;--amber-soft:#f1e9cf;
  --purple:#65528b;--purple-soft:#f0eaf7;--danger:#ad3544;--danger-soft:#fcebed;
  --sidebar:212px;--radius:10px;--radius-small:6px;
  --shadow:none;--shadow-lift:0 7px 19px #143c3014;
  --motion-fast:160ms;--motion-state:220ms;--motion-panel:280ms;--motion-chart:360ms;
  --ease:cubic-bezier(.2,.75,.25,1);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;
  font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
}
[data-theme=dark]{
  --bg:#121c17;--surface:#1a2821;--surface-soft:#25352b;
  --text:#edf1e6;--secondary:#c9d4c8;--muted:#a5b7a8;--border:#3b4d3f;
  --accent:#c6e886;--accent-hover:#d9f79c;--accent-on:#17261c;--accent-soft:#32452c;
  --green:#91d7af;--green-soft:#233f30;--amber:#f4ca77;--amber-soft:#3a3020;
  --purple:#c5b5e5;--purple-soft:#332b40;--danger:#ff9eac;--danger-soft:#422c32;
  --shadow:0 4px 20px #0000000d;--shadow-lift:0 12px 26px #00000026;
}
[data-theme=dark] dialog{box-shadow:-16px 0 60px #00000060}
[data-theme=dark] dialog::backdrop{background:#05060899}
[data-theme=dark] .nav-open .nav-backdrop{background:#05060899}
html{scroll-padding-top:24px;scroll-behavior:auto}
body{font-size:14px;line-height:1.6}
button,input,select,textarea{font-family:inherit}
input,select,textarea{accent-color:var(--accent)}
button,a,input,select,textarea{transition:background-color var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast),box-shadow var(--motion-fast),transform var(--motion-fast)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
button:disabled{opacity:.5}
button:not(:disabled):active,.button:not(:disabled):active{transform:translateY(1px)}
h1,.page-heading h1{font-size:clamp(30px,2.7vw,42px);font-weight:700;letter-spacing:-1.35px;line-height:1.15}
h2,.catalog-title h2{font-size:20px;line-height:1.35;font-weight:650;letter-spacing:-.5px}
h3{font-size:16px;line-height:1.5}
svg{stroke-width:1.65}
.sidebar{padding:26px 14px 16px;overflow-y:auto;scrollbar-width:thin}
.brand{gap:10px;padding:0 10px}.brand-mark{width:37px;height:40px;border-radius:12px 12px 4px 12px;box-shadow:none}
.brand-mark{color:var(--accent-on)}
.tiny-dot,.local-badge span,.progress-fill{background:var(--accent)}
.green,.badge.new{background:var(--amber-soft);color:var(--amber)}
.brand-copy strong{font-size:26px;letter-spacing:-1px}
.brand-copy small{font-size:10px;margin-top:7px}.workspace-label{margin:23px 12px;color:var(--secondary);font-size:11px}
.nav-section-label{font-size:10px;letter-spacing:1.05px;margin-left:12px;margin-right:12px}
.primary-nav{gap:3px}.nav-link{font-size:13px;gap:11px;padding:10px 12px;min-height:42px;font-weight:550;border-radius:9px}
.nav-link svg{width:18px;height:18px}.nav-link.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
.nav-link b{font-size:11px}.categories-label{margin-top:28px}.category-nav{flex:none;max-height:260px}
.category-nav button,.category-nav a{font-size:12px;padding:9px 12px;min-height:38px}.category-nav .category-count{font-size:11px}
.sidebar-bottom{padding-top:24px}.source-card{border:0;background:var(--surface-soft);padding:12px;border-radius:12px}.source-card strong{font-size:12px}.source-card small{font-size:10px}.local-note{font-size:10px;line-height:1.5}
.app-shell{min-width:0}.topbar{height:68px;padding:0 32px;background:var(--bg);border-bottom:1px solid var(--border)}
.topbar-left{font-size:12px}.topbar-actions{gap:10px}.breadcrumb-current{color:var(--text)}.local-badge{font-size:11px;margin-right:8px}
.profile-mark{height:38px;width:38px;font-size:11px;border-radius:11px;color:var(--accent);background:var(--accent-soft)}
.icon-button{width:40px;height:40px;border-radius:10px}.icon-button svg{width:18px;height:18px}
.main-content{padding:32px;max-width:1740px}.page-heading{margin-bottom:22px;align-items:center}.eyebrow{font-size:10px;color:var(--accent);letter-spacing:1.5px;margin-bottom:12px}.eyebrow-line{width:20px}
.page-heading p{font-size:14px;color:var(--secondary);margin-top:12px;max-width:600px}.heading-actions{gap:8px;margin-top:0}
.region-pill{border-radius:12px;min-height:54px;padding:8px 13px;gap:10px;max-width:330px}.region-pill small{display:block;font-size:10px;color:var(--secondary)}.region-pill select{font-size:13px;max-width:270px;padding-top:2px}.refresh-button{height:54px;width:44px}
.region-scope-note{font-size:12px;line-height:1.65;margin:0 0 24px;max-width:1000px}
.stats-grid{gap:12px;margin-bottom:32px}.stat-card{padding:16px 18px 15px;border-radius:12px;box-shadow:none;position:relative}.stat-top{margin-bottom:7px}.stat-top>span:first-child{font-size:12px;color:var(--secondary)}.stat-icon{width:28px;height:28px;border-radius:8px}.stat-card>strong{font-size:30px;font-weight:650;letter-spacing:-1px}.stat-foot{font-size:11px;line-height:1.45;margin-top:7px;gap:5px}.mini-tag{font-size:9px}
.catalog-panel{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;animation:content-in var(--motion-state) var(--ease) both;min-width:0}
.catalog-panel-top{padding:0 0 18px;gap:14px}.catalog-title{gap:12px}.count-pill{font-size:12px;background:var(--surface);padding:3px 9px;border-radius:7px}.catalog-actions{gap:8px}
.button{font-size:13px;font-weight:600;min-height:40px;padding:9px 14px;line-height:1.5;border-radius:9px;gap:8px}
.button.primary{background:var(--accent);color:var(--accent-on);border-color:var(--accent)}.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.button.secondary{background:var(--surface);color:var(--text)}.button.secondary:hover{border-color:var(--accent);background:var(--accent-soft)}
.button svg{width:17px;height:17px}.view-toggle{padding:3px;gap:3px;background:var(--surface);border-radius:10px}.view-toggle button{width:34px;height:34px;border-radius:7px}.view-toggle button.active{color:var(--accent);background:var(--accent-soft)}
.catalog-search-row{display:flex;gap:12px;margin-bottom:22px;min-width:0}.search-box{height:52px;background:var(--surface);border-radius:12px;padding:0 16px;flex:1;border:1px solid var(--border)}.search-box>svg{width:20px;height:20px;color:var(--accent)}.search-box input{font-size:14px}.search-box:focus-within{box-shadow:0 0 0 3px var(--accent-soft);border-color:var(--accent)}.search-box kbd{padding:1px 7px;font-size:12px}
.catalog-layout{display:grid;grid-template-columns:224px minmax(0,1fr);align-items:start;gap:24px;min-width:0}
.catalog-filter-panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;min-width:0;display:grid;gap:20px}
.filter-panel-heading h3{font-size:15px}.filter-panel-heading span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.filter-field{display:grid;gap:7px;min-width:0}.filter-label{font-size:12px;font-weight:600;color:var(--secondary)}
.filter-field select{width:100%;min-width:0;height:42px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);padding:8px;font-size:12px;text-overflow:ellipsis}
.catalog-filter-panel .advanced-filters{margin:0;padding:0;border:0;background:none;border-radius:0;min-width:0}.catalog-filter-panel .advanced-filters>summary{padding:0 0 14px;border:0;font-size:12px;font-weight:600;color:var(--text);line-height:1.5}
.catalog-filter-panel .advanced-grid{padding:0;grid-template-columns:1fr 1fr;gap:15px 10px}.catalog-filter-panel .advanced-grid>label:nth-child(n+3){grid-column:1/-1}
.advanced-grid label,.form-stack label,.cost-form label{font-size:12px;font-weight:600}.advanced-grid input,.advanced-grid select{font-size:12px;min-height:42px;border-radius:8px;padding:8px;width:100%;min-width:0}
.advanced-grid .check-field{font-size:12px;line-height:1.6;font-weight:400}.advanced-grid .check-field input{width:17px;min-height:17px;height:17px;flex:none;margin-top:3px}
.catalog-filter-panel #save-search{margin:20px 0 0;width:100%;font-size:12px;min-height:42px}
.filter-help{font-size:11px;color:var(--muted);line-height:1.7;margin:0}.filters-toggle,.filters-done{display:none}
.catalog-results{min-width:0;max-width:100%}.event-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--border)}
.event-tabs button{font-size:12px;padding:8px 11px;min-height:38px;white-space:nowrap;border-radius:8px;color:var(--secondary)}.event-tabs button:hover{color:var(--accent);background:var(--accent-soft)}.event-tabs button.active{background:var(--text);color:var(--surface)}.event-period{font-size:10px;color:var(--muted);margin-left:auto;padding:4px 0}
.filter-bottom{padding:0 0 16px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.condition-tabs{padding:3px;background:var(--surface);border:1px solid var(--border);border-radius:9px;max-width:100%;width:auto}.condition-tabs button{padding:7px 10px;min-height:34px;font-size:11px;color:var(--secondary);flex:none}.condition-tabs button.active{background:var(--accent-soft);color:var(--accent);box-shadow:none}.sort-wrap{margin-left:auto;align-self:center;max-width:100%;gap:5px}.sort-wrap select{font-size:12px;max-width:215px;padding:5px 0;color:var(--secondary)}
.active-filters{padding:0;gap:7px}.active-filters:not(:empty){padding-bottom:16px}.active-filters button,.filter-chip{font-size:12px;line-height:1.5;padding:6px 10px;border-radius:7px;min-height:34px}
.product-grid{padding:0;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.product-card{position:relative;gap:10px;padding:14px;border:1px solid var(--border);border-radius:14px;box-shadow:none;transition:transform var(--motion-state) var(--ease),box-shadow var(--motion-state),border-color var(--motion-state);overflow:visible}
.product-card:hover,.product-card:focus-within{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 55%,var(--border));box-shadow:var(--shadow-lift)}
.photo-card{height:190px;border-radius:10px;background:var(--surface-soft);border:0;margin-bottom:4px}.product-photo>img{padding:12px;background:#fff}.photo-card>img{transition:transform var(--motion-state) var(--ease)}.product-card:hover .photo-card>img{transform:scale(1.02)}
.photo-placeholder{gap:9px}.photo-card .photo-placeholder small,.photo-detail .photo-placeholder small{font-size:12px}.photo-card .photo-placeholder svg{width:36px;height:36px;stroke-width:1.2}
.card-top{gap:6px;align-items:center;flex-wrap:wrap}.product-card .card-top .product-region{font-size:11px;line-height:1.45;min-width:75px}.card-top .favorite{width:32px;height:32px;border:0;margin-left:auto;background:var(--surface-soft)}
.badge{font-size:11px;font-weight:550;padding:3px 7px;border-radius:5px;white-space:normal;line-height:1.5}.product-card .product-title{font-size:14px;line-height:1.5;font-weight:600;min-height:42px;letter-spacing:-.1px}.product-title{font-size:13px;line-height:1.5}.product-meta{font-size:11px;line-height:1.6;margin-top:0;color:var(--muted)}
.product-card>.product-meta{min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reason-text{font-size:12px;line-height:1.65;color:var(--secondary)}.product-card .reason-text{min-height:40px;-webkit-line-clamp:2;margin-bottom:2px}
.product-checked{font-size:10px;line-height:1.6;color:var(--muted);display:block}.card-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--border)}.card-footer>div:first-child{flex:1 1 115px}
.price-current{font-size:17px;font-weight:700;letter-spacing:-.5px;line-height:1.4;white-space:normal;font-variant-numeric:tabular-nums}.product-card .price-current{font-size:24px;letter-spacing:-.8px}.price-old{font-size:12px;line-height:1.5}.price-missing{font-size:11px;line-height:1.6}.discount{font-size:11px;padding:4px 7px;background:var(--amber-soft);color:var(--amber);border-radius:6px;font-weight:650}.card-footer>.discount{margin-left:auto}.card-footer>.icon-button{width:36px;height:36px;background:var(--surface-soft)}
.favorite.active{color:var(--accent)}.favorite.active svg{fill:var(--accent);stroke:var(--accent)}
.table-wrap{border:1px solid var(--border);border-radius:12px;background:var(--surface);overscroll-behavior-x:contain;max-width:100%;overflow:auto}.products-table{min-width:1040px;table-layout:fixed}.products-table th{font-size:11px;line-height:1.5;letter-spacing:0;color:var(--secondary);padding:14px 12px;border-top:0}.products-table td{font-size:12px;padding:18px 12px}.products-table th:first-child,.products-table td:first-child{padding-left:18px}.products-table th:last-child,.products-table td:last-child{padding-right:14px}.products-table th:nth-child(1){width:32%}.products-table th:nth-child(2){width:12%}.products-table th:nth-child(3){width:15%}.products-table th:nth-child(4){width:9%}.products-table th:nth-child(5){width:23%}.products-table th:nth-child(6){width:9%}
.products-table .price-current{font-size:18px}.products-table .product-title{font-size:13px}.product-cell{gap:12px}.photo-thumb{height:72px;width:64px}.photo-thumb img{padding:5px}.products-table .product-meta,.products-table .product-region{font-size:11px;margin-top:4px}.row-actions{flex-wrap:wrap}.row-actions .icon-button{height:32px;width:32px;background:var(--surface-soft)}
.availability{font-size:11px;line-height:1.5;margin-top:6px}.availability-missing,.availability-error{color:var(--danger)}
.table-status{font-size:14px;background:var(--surface);border:1px dashed var(--border);border-radius:12px;padding:44px 20px}.table-status:empty{display:none}.empty-state h3{font-size:18px}.empty-state p{max-width:430px}
.pagination{padding:20px 0 0;font-size:12px;gap:12px;flex-wrap:wrap}.pagination-controls .icon-button{height:36px;width:36px}.pagination .text-button,.text-button{font-size:12px;min-height:34px}.pagination-controls{gap:12px}
.page-footer{font-size:11px;line-height:1.7;padding-top:30px;gap:20px}.page-footer>div{max-width:75%;gap:8px}.data-disclaimer{font-size:11px;margin-top:8px;max-width:1000px;line-height:1.7}
.panel-card{border-radius:14px;padding:26px;box-shadow:none}.panel-heading{align-items:center;margin-bottom:20px}.panel-card p,#workspace-content .panel-card>p{font-size:14px;line-height:1.75}.panel-card small,#workspace-content .panel-card>small{font-size:12px}.metric-row{font-size:14px;padding:15px 0}.metric-row strong{font-variant-numeric:tabular-nums}.mini-table{font-size:13px}.mini-table th{font-size:12px}.insight-grid{gap:16px}.insight-card{padding:22px}.insight-card strong{font-size:30px}.insight-card p,.insight-card small{font-size:12px}
.notice,.detail-note{font-size:13px;line-height:1.75;border-radius:10px}.access-banner{padding:14px 18px;margin-bottom:20px;border-radius:12px;font-size:12px}.access-banner .button{font-size:12px;min-height:38px}.progress-track{height:8px}
#workspace-content{gap:22px;animation:content-in var(--motion-state) var(--ease)}.profile-grid,.plan-grid{gap:20px}.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-grid .panel-card{display:flex;flex-direction:column;gap:8px;border-top:3px solid var(--accent);padding:24px}.plan-grid .panel-card h2{font-size:24px}.plan-grid .panel-card ul{padding-left:18px;line-height:1.9;font-size:13px;color:var(--secondary)}.plan-grid .button{margin-top:auto}
.form-stack{gap:16px}.form-stack input,.form-stack select,.form-stack textarea,.cost-form input,#analytics-days{font-size:14px;border-radius:9px;min-height:44px;padding:10px 12px}.form-stack small{font-size:12px}.form-stack textarea{min-height:100px}.form-stack>.button{min-height:42px}.check-field,.form-stack .check-field{font-size:13px}.form-stack .check-field input{min-height:17px;height:17px;width:17px}
.saved-item,.feed-item{padding:22px 0}.saved-item h3,.feed-item h3{font-size:16px}.saved-item p,.feed-item p{font-size:13px;margin:8px 0 14px}.feed-item>small{font-size:12px}.feed-item.unread{padding-left:22px}.feed-item.unread:before{top:30px;width:7px;height:7px}.feed-item.unread h3{color:var(--accent)}.action-wrap{gap:10px}.action-wrap>small{font-size:12px}
.workspace-empty{padding:42px 20px;font-size:14px;gap:14px}.workspace-empty>span{height:48px;width:48px;border-radius:14px;background:var(--accent-soft)}
.compare-scroll{border-radius:12px;margin:20px 0;max-height:75vh;overflow:auto}.compare-table{font-size:13px;line-height:1.65;min-width:700px}.compare-table th,.compare-table td{padding:18px;min-width:230px;max-width:340px}.compare-table th:first-child,.compare-table td:first-child{min-width:175px;position:sticky;left:0;background:var(--surface-soft);z-index:1}.compare-table thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px var(--border)}.compare-table thead th:first-child{z-index:3}.compare-table th small{font-size:11px}.compare-table .product-title{font-size:14px;min-width:160px;-webkit-line-clamp:3}.compare-table th .button{font-size:12px;padding:7px 10px}.compare-table .comparison-different td{background:var(--accent-soft)}.comparison-note{font-size:13px;line-height:1.7;padding:14px;border-radius:9px}
.plan-comparison{overflow:auto}.plan-comparison table{width:100%;min-width:620px;border-collapse:collapse;font-size:13px}.plan-comparison th,.plan-comparison td{padding:14px;text-align:left;border-bottom:1px solid var(--border)}.plan-comparison th{color:var(--secondary);background:var(--surface-soft)}
.cost-grid{gap:16px}.cost-form{padding:20px;border-radius:12px}.cost-form>strong{font-size:14px}.cost-form>output,.cost-form>small{font-size:12px}
.analytics-metrics{gap:14px;margin:24px 0}.analytics-metrics>div{border-radius:12px;padding:20px}.analytics-metrics small{font-size:12px}.analytics-metrics strong{font-size:32px;letter-spacing:-1px}.price-statistics .metric-row{font-size:13px}.bars{gap:16px;margin-top:22px}.bar-row{font-size:13px;grid-template-columns:minmax(130px,1.1fr) minmax(80px,1fr) auto;gap:16px}.bar-row>div{height:9px;border-radius:8px}.bar-row i{transform-origin:left;animation:bar-in var(--motion-chart) var(--ease) both}.bar-row strong{font-size:12px}.daily-bars{max-height:440px}.daily-bars .bar-row{grid-template-columns:110px minmax(80px,1fr) 45px}.event-totals{font-size:12px;gap:8px 24px}
.history-list{margin-top:18px;max-height:480px}.history-row{font-size:13px;padding:14px 0;gap:10px}.history-row small{font-size:12px}.history-row>strong{font-size:14px}.history-controls{margin:18px 0}.history-chart{display:block;width:100%;height:auto;min-height:120px;overflow:visible;margin:20px 0;color:var(--accent);animation:chart-in var(--motion-chart) var(--ease) both}.history-chart svg{width:100%;height:auto;overflow:visible;stroke-width:2}.history-chart polyline,.history-chart path{vector-effect:non-scaling-stroke}.history-chart-point{fill:var(--surface);stroke:var(--accent);stroke-width:2}.history-chart-axis{fill:var(--muted);stroke:none;font-size:11px}.history-chart figcaption,.history-chart+small{display:block;color:var(--muted);font-size:12px;margin-top:12px}
.history-chart svg text{fill:var(--muted);stroke:none;font-size:12px}.history-chart .history-chart-axis{fill:none;stroke:var(--border);stroke-width:1}
.search-regions{padding:18px;border-radius:10px}.region-choices{gap:12px 18px}.region-choices .check-field{font-size:12px}.region-status-grid{gap:14px}.region-status-grid>article{padding:18px;border-radius:12px;font-size:14px}.region-status-grid span,.region-status-grid small{font-size:12px}
.job-card{padding:20px;border-radius:12px}.job-card h3{font-size:16px}.job-card dl,.job-reason{font-size:12px}.workspace-pagination{font-size:12px;gap:16px}
dialog{width:min(740px,100%);box-shadow:-16px 0 60px #38250f26;border-left:1px solid var(--border)}dialog[open]{animation:drawer-in var(--motion-panel) var(--ease)}dialog::backdrop{background:#281b0e67;backdrop-filter:blur(3px)}.close-detail{right:22px;top:20px;background:var(--surface);width:40px;height:40px;border-radius:50%}
.detail-head{padding:30px 32px 24px}.detail-kicker{font-size:11px;color:var(--accent);margin-bottom:16px;padding-right:45px;letter-spacing:1.1px}.detail-title{font-size:29px;line-height:1.3;letter-spacing:-.75px;max-width:95%}.detail-head .product-meta{font-size:12px}.photo-detail{height:270px;border-radius:12px;margin-top:24px}.photo-detail>img{padding:20px}.photo-caption{font-size:11px;line-height:1.65;margin-top:10px}.detail-head .detail-prices{margin:22px 0 0;padding:20px 22px;background:var(--accent-soft);border:0;border-radius:12px}.detail-prices .price-current{font-size:36px;line-height:1.25}.detail-prices .price-old{font-size:15px}.detail-prices .discount{font-size:12px}.detail-prices>.badge{font-size:12px}
#detail-body>.detail-grid{padding:24px 32px 0;gap:22px 24px}.detail-grid dt,.detail-grid small{font-size:12px}.detail-grid dd,.detail-grid strong{font-size:14px;margin-top:6px;overflow-wrap:anywhere}.detail-section{padding:0 32px;margin:26px 0}.detail-section h3{font-size:17px;margin-bottom:14px}.detail-section p,.detail-section ul{font-size:14px;line-height:1.8}.detail-section code{font-size:11px}.detail-note{padding:18px;margin:20px 32px;font-size:13px}.detail-actions{padding:0 32px 28px;gap:10px}.detail-actions .button{font-size:14px;min-height:46px}.detail-actions .primary{min-width:200px}#detail-body>.action-wrap{padding:0 32px;margin:24px 0}
.notification-sync-state{font-size:11px;color:var(--danger);max-width:170px;line-height:1.4}.notification-sync-state:empty{display:none}.workspace-sync-state{padding:12px 16px;border-radius:9px;font-size:13px;color:var(--amber);background:var(--amber-soft)}.unread-badge{font-size:10px;min-width:19px;height:19px;right:-5px;top:-5px}
.toast{font-size:13px;border-radius:12px;bottom:24px;padding:14px 20px;max-width:min(540px,calc(100vw - 32px));animation:toast-in var(--motion-state) var(--ease) both;box-shadow:var(--shadow-lift);background:var(--text);color:var(--surface);z-index:100}
.action-confirmed{animation:action-confirm 450ms var(--ease)}.price-updated{animation:price-confirm 450ms var(--ease);outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}.price-update-note{display:block;font-size:11px;color:var(--accent)}
.skeleton-line{background:var(--border)}.is-loading [aria-busy=true]{opacity:.65}
@keyframes content-in{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes bar-in{from{transform:scaleX(.96);opacity:.55}to{transform:scaleX(1);opacity:1}}
@keyframes chart-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes action-confirm{0%,100%{transform:scale(1)}45%{transform:scale(1.12);background:var(--accent-soft)}}
@keyframes price-confirm{0%{background:var(--accent-soft)}100%{background:transparent}}
@keyframes toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(min-width:1800px){.catalog-layout{grid-template-columns:240px minmax(0,1fr)}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1370px) and (min-width:1001px){.catalog-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-content{padding:28px}.topbar{padding:0 28px}.photo-card{height:200px}.filter-bottom{align-items:start}.sort-wrap{margin-left:0}.plan-grid{gap:12px}.plan-grid .panel-card{padding:18px}.event-period{display:none}}
@media(max-width:1100px){.page-heading{flex-wrap:wrap;gap:20px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-grid{grid-template-columns:1fr}.price-statistics{grid-template-columns:1fr}.plan-grid{grid-template-columns:1fr}.plan-grid .panel-card{padding:24px}}
@media(max-width:1000px){
  :root{--sidebar:220px}.sidebar{transform:translateX(-100%);transition:transform var(--motion-panel) var(--ease);box-shadow:var(--shadow-lift);max-height:100dvh}.nav-open .sidebar{transform:none}.nav-open .nav-backdrop{display:block;position:fixed;inset:0;background:#30211066;z-index:39;width:100%;height:100%}.mobile-menu{display:inline-flex}.app-shell{margin:0}.topbar{padding:0 24px}.main-content{padding:28px 24px}.topbar-left{gap:10px}.breadcrumb-muted,.breadcrumb-separator{display:none}
  .catalog-layout{grid-template-columns:minmax(0,1fr);gap:20px}.catalog-filter-panel{display:none}.filters-open .catalog-filter-panel{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px;animation:content-in var(--motion-panel) var(--ease)}.catalog-filter-panel .filter-panel-heading,.catalog-filter-panel .advanced-filters,.catalog-filter-panel .filter-help{grid-column:1/-1}.catalog-filter-panel .advanced-grid{grid-template-columns:1fr 1fr}.catalog-filter-panel .advanced-grid>label:nth-child(3),.catalog-filter-panel .advanced-grid>label:nth-child(4){grid-column:auto}.catalog-filter-panel #save-search{width:auto}.filters-toggle,.filters-done{display:inline-flex}.filters-done{grid-column:1/-1}.filters-toggle{min-width:116px}.filter-help{display:none}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{padding:12px}.photo-card{height:175px}.card-footer .price-current{font-size:22px}.card-top .product-region{max-width:130px}.page-heading h1{font-size:36px}.heading-actions{margin-top:0}.region-pill small{display:block}.region-scope-note{margin:0 0 20px}.catalog-panel-top{padding:0 0 18px}.catalog-actions .button{font-size:12px;padding:9px 12px}.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-grid .panel-card{padding:18px}.insight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-card{height:205px}.page-heading h1{font-size:34px}.plan-grid{grid-template-columns:1fr}.insight-grid{grid-template-columns:1fr}.panel-heading{align-items:flex-start;flex-wrap:wrap}.bar-row{grid-template-columns:minmax(120px,1fr) minmax(60px,1fr) auto}}
@media(max-width:560px){
  .topbar{padding:0 16px;height:62px}.topbar-left{font-size:11px;gap:8px}.topbar-actions{gap:7px}.local-badge{display:none}.profile-mark{display:grid;width:34px;height:36px}.topbar-actions>.icon-button{width:36px;height:36px}.notification-sync-state{position:absolute;top:63px;right:16px;max-width:220px;background:var(--surface);padding:8px;z-index:10;border-radius:8px;border:1px solid var(--border)}
  .main-content{padding:26px 16px}.page-heading{display:block;margin-bottom:18px}.page-heading h1{font-size:32px;letter-spacing:-1.1px}.eyebrow{font-size:9px;letter-spacing:1.15px}.page-heading p{font-size:13px;line-height:1.6;margin-top:10px}.heading-actions{margin-top:20px}.region-pill{flex:1;max-width:calc(100% - 52px);padding:8px 12px}.region-pill select{font-size:13px}.region-scope-note{font-size:11px;line-height:1.7;margin-bottom:20px}
  .stats-grid{gap:10px;margin-bottom:26px}.stat-card{padding:13px 12px;border-radius:11px}.stat-top{gap:4px;margin-bottom:9px;align-items:flex-start}.stat-top>span:first-child{font-size:11px;line-height:1.5}.stat-icon{width:24px;height:24px;flex:none}.stat-icon svg{width:14px;height:14px}.stat-card>strong{font-size:28px}.stat-foot{font-size:10px;line-height:1.5;margin-top:7px;flex-wrap:wrap}.mini-tag{display:none}
  .catalog-title h2{font-size:19px}.catalog-panel-top{flex-wrap:wrap;gap:14px;padding:0 0 16px}.catalog-actions{width:100%;justify-content:flex-start;gap:7px;margin:0}.catalog-actions .button{font-size:12px;min-height:40px}.view-toggle{margin-left:auto}.view-toggle button{width:33px;height:33px}.catalog-search-row{gap:8px;margin-bottom:18px}.search-box{height:48px;padding:0 12px;min-width:0;flex-basis:auto}.search-box input{font-size:14px}.search-box kbd{display:none}.filters-toggle{font-size:12px;min-width:100px;padding:8px 10px}.filters-toggle svg{width:17px}
  .filters-open .catalog-filter-panel{gap:16px;padding:16px;grid-template-columns:1fr}.catalog-filter-panel .filter-field{grid-column:1/-1}.catalog-filter-panel .advanced-grid{grid-template-columns:1fr 1fr;gap:16px 10px}.catalog-filter-panel .advanced-grid>label:nth-child(n+3){grid-column:1/-1}.advanced-grid input,.advanced-grid select,.filter-field select{font-size:16px;height:44px}.advanced-grid .check-field input{min-height:17px;height:17px}.catalog-filter-panel #save-search{width:100%}.catalog-filter-panel .advanced-filters{margin:0}.filters-done{min-height:44px}
  .event-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:12px;margin-bottom:14px;gap:5px;scrollbar-width:thin}.event-tabs button{font-size:12px;min-height:40px;flex-shrink:0}.event-period{display:none}.filter-bottom{gap:12px;padding:0 0 14px;flex-direction:column;align-items:stretch}.condition-tabs{width:100%;justify-content:space-between}.condition-tabs button{font-size:11px;min-height:38px;padding:7px 8px;flex:1}.sort-wrap{align-self:flex-end;margin-left:0}.sort-wrap select{font-size:12px}.active-filters{padding:0}.active-filters:not(:empty){padding-bottom:14px}
  .product-grid{grid-template-columns:1fr;gap:16px;padding:0}.product-card{padding:16px;gap:11px;border-radius:14px}.photo-card{height:230px;margin-bottom:6px}.product-card .product-title{font-size:16px;line-height:1.5;min-height:0}.product-card>.product-meta{font-size:12px}.product-card .reason-text{font-size:13px;line-height:1.7;min-height:0;-webkit-line-clamp:3}.product-card .card-top .product-region{font-size:12px;max-width:none}.card-top .favorite{width:36px;height:36px}.badge{font-size:11px}.card-footer{gap:10px;padding-top:14px}.product-card .price-current{font-size:28px}.card-footer .icon-button{width:40px;height:40px}.product-checked{font-size:11px}.price-old{font-size:13px}.price-missing{font-size:12px}.discount{font-size:12px}.product-card:hover{transform:none}
  .pagination{padding-top:18px;font-size:11px;gap:12px}.pagination-controls .icon-button{height:40px;width:40px}.pagination .text-button{font-size:12px;min-height:40px}.pagination>#range-label{width:100%}.page-footer{display:block;font-size:11px;padding-top:26px}.page-footer>div{max-width:none;gap:8px;flex-wrap:wrap}.page-footer>a{display:inline-block;margin-top:10px}.data-disclaimer{font-size:11px}
  .panel-card{padding:20px 18px}.panel-heading{flex-direction:column;gap:12px}.panel-card h2{font-size:20px}.panel-card p,#workspace-content .panel-card>p{font-size:13px}.metric-row{font-size:13px;gap:16px}.profile-grid,.plan-grid{grid-template-columns:1fr;gap:16px}.plan-grid .panel-card{padding:22px}.form-stack input,.form-stack select,.form-stack textarea,.cost-form input,#analytics-days{font-size:16px;min-height:44px}.form-stack .check-field input{min-height:17px}.form-stack>.button{width:100%}.access-banner{font-size:12px;padding:14px}.access-banner .button{width:100%;min-height:40px}.workspace-empty{padding:30px 12px;font-size:13px}.saved-item h3,.feed-item h3{font-size:15px}.saved-item p,.feed-item p{font-size:13px}.action-wrap .button{min-height:44px}
  .compare-table th,.compare-table td{min-width:220px;padding:14px}.compare-table th:first-child,.compare-table td:first-child{min-width:114px;max-width:114px;width:114px;font-size:12px;overflow-wrap:anywhere}.compare-table .product-title{font-size:13px;min-width:180px}.compare-scroll{max-height:72vh}.plan-comparison th,.plan-comparison td{padding:12px;font-size:12px}.analytics-metrics{gap:10px;margin:20px 0}.analytics-metrics>div{padding:14px}.analytics-metrics strong{font-size:28px}.analytics-metrics small{font-size:11px}.bar-row{font-size:12px;gap:10px;grid-template-columns:minmax(95px,1fr) minmax(40px,.75fr) auto}.daily-bars .bar-row{grid-template-columns:90px minmax(40px,1fr) 35px}.history-row{grid-template-columns:1fr}.history-row>strong{text-align:left;max-width:none}.region-status-grid{grid-template-columns:1fr}.event-totals{font-size:12px}
  dialog{width:100%;border:0}.detail-head{padding:24px 20px 20px}.detail-title{font-size:25px;max-width:100%;line-height:1.35}.detail-kicker{font-size:10px;padding-right:40px}.close-detail{top:14px;right:15px;width:38px;height:38px}.photo-detail{height:220px}.photo-caption{font-size:11px}.detail-head .detail-prices{padding:18px;margin-top:20px}.detail-prices .price-current{font-size:34px}.detail-section{padding:0 20px}.detail-section p,.detail-section ul{font-size:13px}#detail-body>.detail-grid{padding:22px 20px 0;grid-template-columns:1fr 1fr;gap:20px 16px}.detail-grid dd,.detail-grid strong{font-size:13px}.detail-grid dt,.detail-grid small{font-size:11px}.detail-note{margin:20px;font-size:12px;padding:16px}.detail-actions{padding:0 20px 24px;gap:10px}.detail-actions .primary{min-width:100%;font-size:14px}.detail-actions .button{min-height:46px}#detail-body>.action-wrap{padding:0 20px}.toast{bottom:16px;font-size:13px;padding:12px 16px}.workspace-pagination{justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .product-card:hover,.product-card:focus-within,.product-card:hover .photo-card>img,button:not(:disabled):active{transform:none}
  .action-confirmed{outline:2px solid var(--accent);outline-offset:2px}.price-updated{outline:2px solid var(--accent);background:var(--accent-soft)}
}

/* Long model identifiers must not widen the drawer; off-canvas navigation
   remains outside the keyboard order until the user opens it. */
.detail-title{overflow-wrap:anywhere}
.bar-label{text-align:left;line-height:1.6;font-size:inherit;color:var(--accent);padding:0;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 35%,transparent);text-underline-offset:3px;overflow-wrap:anywhere}
.bar-label:hover{text-decoration-color:currentColor}
#workspace-content>*{animation:content-in var(--motion-state) var(--ease) both}
.product-grid:not([hidden]),.table-wrap:not([hidden]){animation:content-in var(--motion-state) var(--ease) both}
@media(max-width:1000px){.sidebar{visibility:hidden}.nav-open .sidebar{visibility:visible}}

/* Public catalogue: service diagnostics remain in the local owner's workspace. */
[data-operator-only][hidden]{display:none!important}
html:not(.operator-view) [data-operator-panel]{display:none!important}
html:not([data-view=catalog]):not([data-view=favorites]) .stats-grid,html:not([data-view=catalog]):not([data-view=favorites]) #region-scope-note{display:none}
html[data-view=profile] .heading-actions,html[data-view=profile] #access-banner,html[data-view=profile] .page-footer,html[data-view=profile] .data-disclaimer,html[data-view=profile] .eyebrow{display:none}
html[data-view=profile] .page-heading{margin-bottom:28px}
html:is([data-view=profile],[data-view=notifications],[data-view=compare]) :is(.categories-label,#sidebar-categories){display:none}
#profile-data-status{display:grid;gap:8px}#profile-data-status[hidden]{display:none}#profile-data-status>span{display:flex;align-items:center;justify-content:space-between;gap:12px}#profile-data-status .button{flex:none}
.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.account-trigger.profile-mark{display:inline-flex;align-items:center;gap:10px;width:auto;height:42px;padding:5px 12px 5px 5px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-size:12px;font-weight:650;text-decoration:none;position:relative;isolation:isolate;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.account-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);transition:transform .25s ease}
.account-avatar svg{width:18px;height:18px}.account-trigger-arrow{width:15px;height:15px;color:var(--muted);transition:transform .25s ease,color .2s ease}
.account-trigger:hover,.account-trigger:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent);background:var(--surface-soft)}
.account-trigger:hover .account-avatar,.account-trigger:focus-visible .account-avatar{transform:rotate(-6deg)}
.account-trigger:hover .account-trigger-arrow{transform:translateX(3px);color:var(--accent)}
.account-trigger:active{transform:scale(.97)}.account-trigger[aria-current=page]{border-color:var(--accent);background:var(--accent-soft)}
.account-trigger[aria-current=page] .account-trigger-arrow{transform:rotate(90deg);color:var(--accent)}
.account-welcome,.account-identity{display:flex;align-items:center;gap:24px;padding:32px}
.account-emblem{display:grid;place-items:center;flex:none;width:72px;height:72px;border-radius:22px;color:var(--accent);background:var(--accent-soft);font-size:28px;font-weight:750;border:1px solid color-mix(in srgb,var(--accent) 20%,transparent)}
.account-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--muted)}
.account-welcome h2,.account-identity h2{font-size:27px;line-height:1.3;margin:8px 0}.account-welcome p,.account-identity p{color:var(--secondary);font-size:14px;line-height:1.7;max-width:620px;margin:8px 0 18px}
.account-welcome small{display:block;color:var(--muted);margin-top:12px}.account-identity p{margin-bottom:0}.account-identity>.button{margin-left:auto;flex:none}
.account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.account-shortcut{display:block;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px;color:var(--text);text-decoration:none;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.account-shortcut>span{width:36px;height:36px;display:grid;place-items:center;font-size:23px;background:var(--accent-soft);color:var(--accent);border-radius:10px;margin-bottom:16px}.account-shortcut h3{font-size:16px;margin:0 0 8px}.account-shortcut p{font-size:12px;line-height:1.65;color:var(--muted);margin:0}.account-shortcut:hover{transform:translateY(-2px);border-color:var(--accent);background:var(--surface-soft)}
.account-shortcut:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.account-identity~.profile-grid .metric-row strong small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
@media(max-width:800px){.account-identity{flex-wrap:wrap}.account-identity>.button{margin:0}.account-shortcuts{gap:12px}.account-shortcut{padding:18px}}
@media(max-width:560px){.account-trigger.profile-mark{height:38px;padding:3px 7px 3px 3px;gap:6px;font-size:11px}.account-trigger-label{font-size:0}.account-trigger-label:after{content:'Кабинет';font-size:11px}.account-avatar{width:28px;height:28px}.account-trigger-arrow{width:13px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat-icon{display:none}.stat-card{padding:12px 9px}.stat-card>strong{font-size:23px}.stat-foot{font-size:9px}.account-welcome{display:block;padding:24px 20px}.account-welcome .account-emblem{margin-bottom:20px}.account-identity{padding:24px 20px;gap:16px}.account-emblem{width:56px;height:56px;border-radius:17px;font-size:24px}.account-identity h2,.account-welcome h2{font-size:23px}.account-shortcuts{grid-template-columns:1fr}.account-shortcut{display:grid;grid-template-columns:38px 1fr;gap:0 14px;padding:18px}.account-shortcut>span{grid-row:span 2;margin:0}.account-shortcut h3{margin:0 0 3px}.topbar-left{min-width:0}.breadcrumb-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.account-trigger,.account-avatar,.account-trigger-arrow,.account-shortcut{animation:none!important;transition:none!important;transform:none!important}}

/* Editorial catalogue masthead and regional product cards */
.brand-mark {
  width: 35px;
  height: 35px;
  color: var(--lime);
  background: var(--pine);
  border-radius: 7px;
}
.brand-mark svg { width: 29px; height: 29px; }
.brand-copy strong { font-size: 24px; letter-spacing: -1.2px; }
.brand-copy small { margin-top: 4px; font-size: 11px; }
.sidebar { background: var(--surface); }
.workspace-label[hidden] + .nav-section-label { margin-top: 24px; }
.nav-section-label { font-weight: 600; font-size: 11px; letter-spacing: 0; }
.nav-link { min-height: 40px; border-radius: 6px; }
.nav-link.active { color: var(--accent-on); background: var(--accent); box-shadow: none; }
.nav-link.active b { color: var(--pine); background: var(--lime); }
.source-card { border-radius: 6px; border-block-start: 1px solid var(--border); }
.topbar { height: 60px; }
.dns-menu-close.icon-button { display: none; }
.dns-home-link { display: none; }
[data-dns-hosted=true] .nav-link.dns-home-link { display: flex; }
[data-dns-hosted=true] .topbar .dns-home-link {
  display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 36px;
  padding: 5px 12px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--border); border-radius: 6px;
  font: inherit; font-size: 14px; font-weight: 650; text-decoration: none;
}
[data-dns-hosted=true] .topbar .dns-home-link svg { width: 16px; height: 16px; flex: none; }
[data-dns-hosted=true] .topbar .dns-home-link:hover { border-color: var(--accent); }
.topbar-left { gap: 14px; min-width: 0; }
.topbar .breadcrumb-current {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 600;
}
.sidebar .category-nav { max-height: none; overflow: visible; }
.category-nav button.category-link > span:first-child {
  overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35;
}
.sidebar .category-count { flex: none; }
.topbar-actions { flex-shrink: 0; }
.main-content { padding-top: 23px; }
h1, .page-heading h1, .catalog-title h2, .detail-title, .account-welcome h2, .account-identity h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.page-heading { margin: 0 0 22px; }
.page-heading h1 { font-size: clamp(33px, 3.4vw, 53px); }
.heading-copy { min-width: 0; }
.ticket-art, .eyebrow { display: none; }
html[data-view=catalog] .page-heading, html:not([data-view]) .page-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, .7fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  gap: 14px 6px;
  min-height: 185px;
  padding: 21px clamp(18px, 3vw, 42px);
  margin: 0;
  color: #fffdf2;
  background: var(--pine);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  isolation: isolate;
}
html[data-view=catalog] .eyebrow, html:not([data-view]) .eyebrow {
  display: flex;
  width: fit-content;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.eyebrow-line { height: 9px; width: 9px; transform: skewX(-24deg); background: var(--lime); }
html[data-view=catalog] .page-heading h1, html:not([data-view]) .page-heading h1 {
  color: #fffdf2;
  font-size: clamp(38px, 3.8vw, 67px);
}
html[data-view=catalog] #page-subtitle, html:not([data-view]) #page-subtitle { display: none; }
html[data-view=catalog] .page-heading .region-scope-note,
html:not([data-view]) .page-heading .region-scope-note {
  max-width: 520px;
  margin: 8px 0 0;
  color: #dae7d4;
  font-size: 13px;
  line-height: 1.5;
}
html[data-view=catalog] .ticket-art, html:not([data-view]) .ticket-art {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  stroke: none;
  mask-image: linear-gradient(90deg, transparent 0, black 12%);
}
html[data-view=catalog] .heading-actions, html:not([data-view]) .heading-actions { grid-column: 1; justify-content: flex-start; }
.page-heading .heading-actions { gap: 6px; }
.region-pill { min-height: 39px; padding: 5px 9px; border-radius: 6px; }
.region-pill small { display: none; }
.region-pill select { padding: 3px; max-width: 260px; min-height: 28px; }
.refresh-button { height: 39px; width: 39px; border-radius: 6px; }
html[data-view=catalog] .region-pill { color-scheme: light; background: #edf3df; border-color: #edf3df; }
html[data-view=catalog] .region-pill select { background: #edf3df; color: #193a2a; }
html[data-view=catalog] .region-pill > svg { color: #315a41; }
html[data-view=catalog] .refresh-button { color: #edf3df; background: transparent; border-color: #809a85; }
html[data-view=catalog] .refresh-button:hover { color: var(--lime); border-color: var(--lime); }
html[data-view=catalog] .heading-actions :focus-visible { outline-color: var(--lime); }
.stats-grid {
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  background: var(--surface);
}
.stat-card {
  padding: 13px clamp(10px, 2vw, 26px);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.stat-card + .stat-card { border-left: 1px solid var(--border); }
.stat-icon, .stat-foot, .stat-foot .mini-tag { display: none; }
.stat-top { margin: 0 0 2px; }
.stat-top > span:first-child { font-size: 12px; }
.stat-card > strong {
  font: 500 clamp(22px, 1.9vw, 32px)/1.2 var(--figures);
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.access-banner {
  gap: 6px 18px;
  padding: 5px 0;
  margin: 0 0 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.access-banner .button {
  width: auto;
  min-height: 30px;
  padding: 3px 1px;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}
.catalog-title h2 { font-size: clamp(26px, 2.15vw, 36px); }
.catalog-panel-top { padding: 0 0 11px; }
.count-pill { border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-variant-numeric: tabular-nums; }
.catalog-search-row { margin-bottom: 16px; }
.search-box { height: 47px; border-color: var(--muted); border-radius: 8px; }
.search-box kbd { color: var(--muted); }
.catalog-filter-panel { gap: 16px; background: transparent; border-radius: 0; border-width: 0 1px 0 0; padding: 2px 16px 0 0; }
.filter-panel-heading h3 { font-size: 17px; }
.filter-field select, .advanced-grid input, .advanced-grid select, .button, .view-toggle, .icon-button { border-radius: 6px; }
.category-picker { position: relative; min-width: 0; }
.category-picker input {
  width: 100%; height: 42px; min-width: 0; padding: 8px 36px 8px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 13px; text-overflow: ellipsis;
}
.category-picker input::placeholder { color: var(--muted); opacity: 1; }
.category-picker input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.category-picker-toggle {
  position: absolute; inset: 1px 1px auto auto;
  width: 34px; height: 40px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 5px;
  color: var(--secondary); background: transparent; cursor: pointer;
}
.category-picker-toggle svg { width: 16px; height: 16px; }
.category-picker input[aria-expanded="true"] ~ .category-picker-toggle svg { transform: rotate(180deg); }
.category-popup {
  position: absolute; z-index: 6; inset-block-start: calc(100% + 4px); inset-inline-start: 0;
  width: max(100%, 17rem); padding: 4px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift);
}
.category-options { max-height: min(18rem, 38dvh); overflow-y: auto; overscroll-behavior: contain; }
.category-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 34px; padding: 6px 9px;
  border-radius: 4px; font-size: 13px; line-height: 1.35; cursor: pointer;
}
.category-option span { min-width: 0; overflow-wrap: anywhere; }
.category-option small { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.category-option[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.category-option.is-active { background: var(--accent-soft); box-shadow: inset 2px 0 var(--accent); }
.category-empty { margin: 0; padding: 10px; color: var(--secondary); font-size: 13px; }
@media (hover: hover) {
  .category-option:hover { background: var(--surface-soft); }
  .category-picker-toggle:hover { color: var(--accent); }
}
@media (max-width: 1000px) {
  .filters-open .filter-field { align-content: start; }
  .category-popup { position: static; width: 100%; margin-top: 5px; box-shadow: none; }
  .category-option { min-height: 42px; }
}
@media (max-width: 560px) {
  .category-picker input { height: 44px; font-size: 16px; }
  .category-picker-toggle { height: 42px; }
}
@media (forced-colors: active) {
  .category-option.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
}
.event-tabs { padding: 0 0 9px; margin: 0 0 10px; }
.event-tabs button, .condition-tabs button { border-radius: 5px; }
.event-tabs button.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.filter-bottom { padding-bottom: 12px; }
.product-card { gap: 7px; padding: 13px; border-radius: 10px; }
.card-image-area { position: relative; }
.card-image-link {
  display: block;
  padding: 0;
  width: 100%;
  border-radius: 6px;
}
.card-image-area .photo-card {
  height: clamp(136px, 12vw, 205px);
  margin: 0;
  border: 1px solid var(--border);
  background-color: var(--surface-soft);
  border-radius: 6px;
}
.photo-placeholder {
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--border) 42%, transparent) 9px 10px);
}
.photo-card .photo-placeholder svg { width: 39px; height: 39px; }
.card-image-area > .discount {
  position: absolute;
  left: 8px;
  top: 8px;
  pointer-events: none;
}
.discount {
  color: #203521;
  background: var(--lime);
  font: 600 12px/1.35 var(--figures);
  border-radius: 3px;
}
.card-image-area > .favorite {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}
.card-top { margin-top: 3px; }
.card-top .badge { border-radius: 4px; }
.product-card .product-title { min-height: 0; font-size: 15px; line-height: 1.42; }
.product-card > .product-meta { min-height: 0; }
.card-price { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.card-price .price-current { font-size: 23px; line-height: 1.16; }
.price-current, .price-old { font-variant-numeric: tabular-nums; }
.product-card .reason-text { min-height: 0; margin: 0; }
.card-footer { margin-top: auto; padding-top: 8px; gap: 5px; }
.card-footer .availability { margin: 0; }
.card-footer .icon-button { width: 34px; height: 34px; }
.panel-card, .account-shortcut { border-radius: 9px; }
.detail-title { font-size: clamp(25px, 3vw, 40px); }
[data-theme=dark] .stats-grid { border-top-color: #527157; }
@media (hover: none), (pointer: coarse) {
  .product-card:hover, .product-card:focus-within, .product-card:hover .photo-card > img { transform: none; }
}
@media (min-width:1001px) {
  .sidebar { padding-top: 22px; }
  .catalog-layout { grid-template-columns: clamp(165px, 14.5vw, 218px) minmax(0, 1fr); gap: 20px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
}
@media (max-width:1000px) {
  .filters-open .catalog-filter-panel { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .dns-menu-close.icon-button { display: grid; place-items: center; position: absolute; right: 10px; top: 20px; width: 32px; height: 32px; }
  .dns-menu-close svg { width: 17px; height: 17px; }
  .sidebar .brand { padding-right: 35px; }
}
@media (max-width:560px) {
  .topbar { height: 55px; padding: 0 12px; }
  .main-content { padding: 13px 12px 22px; }
  .breadcrumb-separator, .breadcrumb-current { flex-shrink: 1; }
  [data-dns-hosted=true] .topbar-left { flex-wrap: nowrap; }
  [data-dns-hosted=true] .topbar .breadcrumb-current { display: none; }
  .topbar-actions { gap: 4px; }
  .topbar-actions > .icon-button, .mobile-menu { width: 34px; height: 36px; }
  html[data-view=catalog] .page-heading, html:not([data-view]) .page-heading {
    grid-template-columns: minmax(0, 1fr);
    padding: 17px 15px;
    min-height: 165px;
    gap: 11px;
  }
  html[data-view=catalog] .page-heading h1, html:not([data-view]) .page-heading h1 { font-size: clamp(30px, 6.6vw, 38px); }
  html[data-view=catalog] .heading-copy, html:not([data-view]) .heading-copy { max-width: 69%; }
  html[data-view=catalog] .ticket-art, html:not([data-view]) .ticket-art { width: 37%; height: 80%; top: 6px; }
  html[data-view=catalog] .page-heading .region-scope-note { font-size: 11px; }
  .heading-actions { margin-top: 0; }
  .region-pill { max-width: calc(100% - 48px); flex: 0 1 auto; }
  .region-pill select { font-size: 13px; }
  .stats-grid { margin-bottom: 7px; }
  .stat-card { padding: 10px 8px; }
  .stat-top > span:first-child { font-size: 10px; line-height: 1.3; }
  .stat-card > strong { font-size: clamp(17px, 4.6vw, 25px); }
  .access-banner { margin-bottom: 13px; flex-wrap: wrap; line-height: 1.4; }
  .access-banner .button { min-height: 30px; }
  .catalog-panel-top { gap: 7px; }
  .catalog-actions { width: auto; flex-wrap: wrap; margin-left: auto; }
  .catalog-actions .button { font-size: 11px; min-height: 34px; padding: 4px 8px; }
  .view-toggle button { width: 28px; height: 29px; }
  .catalog-search-row { margin-bottom: 12px; }
  .card-image-area .photo-card { height: 180px; }
}
@media (max-width:370px) {
  .breadcrumb-current:not(:first-child) { max-width: 70px; }
  .topbar-left { gap: 5px; }
  .catalog-actions { margin: 0; }
  .count-pill { font-size: 10px; }
}

@media (max-width:380px) {
  [data-dns-hosted=true] .topbar .account-trigger {
    width: 38px; height: 38px; padding: 0; justify-content: center;
  }
  [data-dns-hosted=true] .topbar .account-trigger :is(.account-trigger-label, .account-trigger-arrow) {
    display: none;
  }
}

/* A missing photograph takes a single line, leaving room for the item's actual price. */
.card-image-area:has(.photo-card:not(.has-image)) {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 41px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}
.card-image-area:has(.photo-card:not(.has-image)) > .discount {
  position: static;
  order: -1;
  flex: none;
}
.card-image-area:has(.photo-card:not(.has-image)) .card-image-link {
  width: auto;
  flex: 1;
  min-width: 0;
}
.card-image-area .photo-card:not(.has-image) {
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}
.card-image-area .photo-card:not(.has-image) .photo-placeholder {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  background: transparent;
  white-space: nowrap;
}
.card-image-area .photo-card:not(.has-image) .photo-placeholder svg { width: 13px; height: 13px; }
.card-image-area .photo-card:not(.has-image) .photo-placeholder small { font-size: 10px; }
.card-image-area:has(.photo-card:not(.has-image)) > .favorite { position: static; flex: none; width: 33px; height: 33px; }

/* DNS Lab · Индекс цен. */
.edition-b-mix { display: none; }
html[data-edition="b"] {
  & body { font-family: var(--edition-sans); }
  & :is(a,button,input,select,summary,textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  & .sidebar {
    background: var(--index-rail); color: var(--index-rail-ink);
    border-inline-end: 0; scrollbar-color: #50607d transparent;
  }
  & .sidebar .brand, & .sidebar .brand:hover, & .sidebar .brand-copy strong { color: var(--index-rail-ink); }
  & .sidebar .brand-copy strong { display: block; font: 700 23px/1.1 var(--edition-sans); letter-spacing: -.043em; }
  & .sidebar .brand-copy small { margin-top: 3px; font: 400 12px/1.35 var(--edition-sans); }
  & .sidebar :is(.brand-copy small,.nav-section-label,.source-card small,.category-link) { color: var(--index-rail-muted); }
  & .sidebar .source-card { border-color: #3e4a63; background: #212e47; color: #fff; }
  & .sidebar .primary-nav .nav-link { border-radius: 4px; color: #e7ecfa; }
  & .sidebar .primary-nav .nav-link.active { color: #fff; background: var(--index-cobalt); box-shadow: none; }
  & .sidebar .nav-link b { background: #2b3851; color: #dee5fa; font-family: var(--edition-sans); font-weight: 650; }
  & .sidebar .primary-nav .nav-link.active b { color: #1d37a6; background: #fff; }
  & .sidebar .category-count { color: #c6d4f5; }
  & .sidebar .category-link[aria-pressed="true"] { background: var(--index-rail-hover); color: #fff; box-shadow: inset 3px 0 #aec3ff; }
  & .sidebar :is(.source-monogram,.brand-mark) { color: #fff; background: var(--index-cobalt); border-radius: 4px; }
  & .sidebar .brand-mark { flex: 0 0 32px; width: 32px; height: 32px; }
  & .sidebar .dns-menu-close { color: #fff; border-color: #65748d; background: var(--index-rail); }
  & .sidebar :focus-visible { outline-color: #bad2ff; }
  & .topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
  & .topbar a.site-family-link {
    align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 11px;
    border: 1px solid var(--line-strong); border-radius: 6px;
    background: var(--accent-soft); color: var(--accent); font: 600 14px/1.2 var(--edition-sans);
  }
  & .page-heading h1 { color: var(--index-title); font: 700 clamp(31px,3.25vw,51px)/1.06 var(--edition-sans); letter-spacing: -.055em; }
  & :is(.category-count,.count-pill,.price-current) { font-variant-numeric: tabular-nums; }
  & .app-shell .button.primary { border: 1px solid var(--index-cobalt); border-radius: 4px; color: #fff; background: var(--index-cobalt); }
  & .product-card .discount { color: var(--accent); background: var(--accent-soft); border-radius: 3px; font: 700 12px/1.35 var(--edition-sans); }
}
@media (hover: hover) {
  html[data-edition="b"] .sidebar :is(.category-link,.nav-link):hover { background: var(--index-rail-hover); color: #fff; }
  html[data-edition="b"] .app-shell .button.primary:hover { background: #1734a4; }
}
@media (min-width: 1051px) {
  html[data-edition="b"][data-dns-hosted="true"] { --sidebar: 216px; }
  html[data-edition="b"] .sidebar { padding-top: 12px; }
  html[data-edition="b"] .sidebar .brand { min-height: 55px; padding: 0 6px 10px; gap: 10px; flex-shrink: 0; border-bottom: 1px solid #394760; }
  html[data-edition="b"] .topbar { min-height: 67px; }
}
@media (max-width: 620px) {
  html[data-edition="b"] .topbar a.site-family-link { padding: 5px 8px; min-height: 32px; font-size: 13px; gap: 4px; }
}
html:root[data-edition="b"] {
  --index-cobalt: #2347d9;
  --index-rail: #141d32;
  --index-rail-ink: #f5f7ff;
  --index-rail-muted: #b9c3dd;
  --index-rail-hover: #26334e;
  --index-title: #141d32;
  --index-mast: #e4ebff;
  --index-graph-track: #c5d3ff;
  --index-blue-bar: #2347d9;
  --index-light-bar: #8ca9f7;
  --bg: #f4f6f9;
  --surface: #fff;
  --surface-soft: #eef1f6;
  --surface-hover: #edf1ff;
  --text: #141d32;
  --muted: #536079;
  --secondary: #414e66;
  --subtle: #5b667a;
  --line: #d3d9e5;
  --line-soft: #e6eaf1;
  --line-strong: #9ca8be;
  --accent: #2347d9;
  --accent-hover: #1534a8;
  --accent-soft: #e4ebff;
  --accent-ink: #fff;
  --positive: #116045;
  --positive-bg: #e6f2ec;
  --positive-line: #afcfbc;
  --negative: #97382e;
  --negative-bg: #f7eae7;
  --negative-line: #dcb1aa;
  --shadow: none;
  --scrim: #141d3280;
  --edition-sans: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --edition-serif: var(--edition-sans);
  --edition-mono: var(--edition-sans);
  --edition-pine: var(--index-cobalt);
  --edition-lime: var(--accent-soft);
  --edition-title: var(--index-title);
  --edition-header: var(--surface);
  --edition-nav-active: var(--accent-soft);
  --edition-nav-ink: var(--accent);
  --border: var(--line);
  --accent-dim: var(--accent-soft);
  --on-accent: var(--accent-ink);
  --accent-on: var(--accent-ink);
  --green: var(--positive);
  --green-soft: var(--positive-bg);
  --green-dim: var(--positive-bg);
  --green-line: var(--positive-line);
  --text-muted: var(--muted);
  --display: var(--edition-sans);
  --figures: var(--edition-sans);
  --pine: var(--index-cobalt);
  --lime: var(--accent-soft);
  --radius: 5px;
  font-family: var(--edition-sans);
}
html:root[data-edition="b"][data-theme="dark"] {
  --index-title: #f3f5ff;
  --index-mast: #1e2c4c;
  --index-graph-track: #405276;
  --index-blue-bar: #91acff;
  --index-light-bar: #536fb0;
  --bg: #111824;
  --surface: #1a2333;
  --surface-soft: #212d41;
  --surface-hover: #263650;
  --text: #f1f4fd;
  --muted: #b4bfd4;
  --subtle: #a6b3cc;
  --secondary: #c4cee1;
  --line: #354258;
  --line-soft: #2a364a;
  --line-strong: #566984;
  --accent: #a0b6ff;
  --accent-hover: #c0cfff;
  --accent-soft: #2a3b61;
  --accent-ink: #111b30;
  --positive: #9cdebf;
  --positive-bg: #233b33;
  --positive-line: #3e6254;
  --negative: #ffb7b1;
  --negative-bg: #442d33;
  --negative-line: #765059;
  --scrim: #090d17bf;
}
/* DNS catalogue. The share of the two known conditions comes from the API. */
html:root[data-edition="b"][data-dns-base] {
  & .heading-actions { grid-column: 1; }
  & .ticket-art { display: none; }
  & .stats-grid {
    background: var(--surface);
    border: 1px solid var(--line);
    border-width: 0 1px 1px;
    border-radius: 0 0 5px 5px;
  }
  & .stat-card strong {
    color: var(--index-title);
    font: 700 clamp(21px,2vw,32px)/1.05 var(--edition-sans);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.045em;
  }
  & .catalog-title h2, & .account-welcome h2, & .detail-title { font-family: var(--edition-sans); font-weight: 670; }
  & .catalog-title h2 { font-size: clamp(23px,2.1vw,33px); }
  & .catalog-panel, & .panel-card, & .product-card, & .search-box, & .count-pill, & .view-toggle { border-radius: 5px; }
  & .event-tabs button.active, & .view-toggle button.active, & .condition-tabs button.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
  & .product-card .price-current { color: var(--index-title); font-weight: 750; }
  & .catalog-filter-panel { border-color: var(--line); }
  & .stat-top > span:first-child { color: var(--secondary); }
  & .edition-b-mix { display: none; }
  &:is([data-view="catalog"],:not([data-view])) {
    & .page-heading {
      display: grid;
      grid-template-columns: minmax(0,1.18fr) minmax(220px,.82fr);
      gap: 12px clamp(20px,4vw,66px);
      align-content: center;
      align-items: center;
      min-height: 176px;
      border: 1px solid var(--line);
      border-bottom-color: var(--index-graph-track);
      border-radius: 5px 5px 0 0;
      padding: 22px clamp(17px,2.6vw,36px);
      background: var(--index-mast);
      color: var(--index-title);
    }
    & .heading-copy { grid-column: 1; grid-row: 1; max-width: none; }
    & .page-heading .eyebrow { margin-bottom: 7px; color: var(--accent); }
    & .page-heading .eyebrow-line { width: 14px; height: 3px; transform: none; background: var(--accent); }
    & .page-heading h1 {
      color: var(--index-title);
      font: 700 clamp(32px,3.3vw,55px)/1.03 var(--edition-sans);
      letter-spacing: -.055em;
    }
    & .page-heading .region-scope-note { color: var(--secondary); max-width: 60ch; }
    & .heading-actions { grid-row: 2; margin: 0; }
    & .region-pill, & .region-pill select, & .refresh-button {
      color: var(--index-title); border-color: var(--line-strong); background: var(--surface); color-scheme: inherit;
    }
    & .region-pill > svg, & .refresh-button:hover { color: var(--accent); }
    & .edition-b-mix:not([hidden]) {
      display: grid;
      min-width: 0;
      grid-column: 2;
      grid-row: 1 / span 2;
      gap: 13px;
      align-self: center;
      margin: 0;
      padding: 18px 0 18px clamp(16px,2.3vw,34px);
      border-inline-start: 1px solid var(--index-graph-track);
      font-variant-numeric: tabular-nums;
    }
    & .edition-b-mix-title {
      margin: 0;
      color: var(--index-title);
      font-size: 14px; font-weight: 650;
    }
    & .edition-b-mix-bar {
      display: flex; gap: 2px; width: 100%; height: 16px;
      overflow: hidden; border-radius: 2px;
      background: var(--index-graph-track);
    }
    & .edition-b-mix-bar i { min-width: 0; }
    & .edition-b-mix-bar i[data-mix="new"] { width: var(--mix-new,0%); background: var(--index-blue-bar); }
    & .edition-b-mix-bar i[data-mix="used"] { width: var(--mix-used,0%); background: var(--index-light-bar); }
    & .edition-b-mix-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; }
    & .edition-b-mix-legend > span {
      display: inline-flex; align-items: baseline; gap: 5px;
      color: var(--secondary); font-size: 12px; line-height: 1.4;
    }
    & .edition-b-mix-legend > span::before {
      content: ""; width: 7px; height: 7px; display: inline-block; align-self: center;
      background: var(--index-blue-bar);
    }
    & .edition-b-mix-legend > span:nth-child(2)::before { background: var(--index-light-bar); }
    & .edition-b-mix-legend strong { color: var(--index-title); font-weight: 700; }
  }
}
@media (max-width: 720px) {
  html:root[data-edition="b"][data-dns-base]:is([data-view="catalog"],:not([data-view])) {
    & .page-heading { grid-template-columns: minmax(0,1fr); padding: 15px 16px; gap: 10px; }
    & .page-heading h1 { font-size: clamp(30px,7vw,43px); }
    & .heading-actions { grid-column: 1; grid-row: 2; }
    & .edition-b-mix:not([hidden]) {
      grid-column: 1; grid-row: 3; gap: 6px; padding: 10px 0 0;
      border-inline-start: 0; border-top: 1px solid var(--index-graph-track);
    }
    & .edition-b-mix-bar { height: 8px; }
    & .edition-b-mix-title { font-size: 12px; }
    & .edition-b-mix-legend { gap: 4px 12px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-edition="b"] { scroll-behavior: auto; }
  html[data-edition="b"] .edition-b-mix * { animation: none; transition: none; }
}

