/* Public dashboard: shared light/dark tokens, native table and dialog semantics. */
:root {
  color-scheme: light;
  --bg:#f6f7fb; --surface:#fff; --surface-soft:#f9f9fd; --surface-hover:#f4f3fc;
  --line:#e5e7f0; --line-strong:#cdd1df; --text:#242638; --muted:#5e6378; --subtle:#62677b;
  --accent:#6958d9; --accent-hover:#5745c7; --accent-soft:#f0edff; --accent-ink:#fff;
  --positive:#166744; --positive-bg:#e9f7ef; --positive-line:#bce3cd;
  --negative:#ad263e; --negative-bg:#fff0f2; --negative-line:#f1c5ce;
  --warning:#8c5c1c; --shadow:0 3px 18px #27245106; --scrim:#15162966;
  font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#15161b; --surface:#1e2028; --surface-soft:#242630; --surface-hover:#2a2939;
  --line:#323542; --line-strong:#4b4e60; --text:#f0f0f7; --muted:#aeb2c4; --subtle:#a0a5b9;
  --accent:#ae9fff; --accent-hover:#c2b7ff; --accent-soft:#302b48; --accent-ink:#211c38;
  --positive:#8ce4b2; --positive-bg:#19382b; --positive-line:#32684e;
  --negative:#ffacbc; --negative-bg:#3d242d; --negative-line:#794352;
  --warning:#e9bc79; --shadow:0 3px 18px #00000014; --scrim:#090b16b3;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { min-width:0; scroll-padding-top:100px; }
body { margin:0; min-width:0; background:var(--bg); color:var(--text); font-size:15px; line-height:1.6; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
a { color:inherit; text-underline-offset:3px; }
a:hover { color:var(--accent); }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
::selection { background:var(--accent-soft); color:var(--text); }
.ui-icon { display:block; flex:0 0 auto; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.skip-link { position:fixed; z-index:2100; top:12px; left:16px; padding:12px 18px; border-radius:8px; background:var(--accent); color:var(--accent-ink); transform:translateY(-180%); }
.skip-link:focus { transform:translateY(0); }
.site-shell { display:grid; grid-template-columns:216px minmax(0,1fr); min-height:100vh; }
.dashboard-workspace { min-width:0; }

/* Independent sidebar scrolling keeps the main workspace at its actual width. */
.dashboard-sidebar { position:sticky; top:0; z-index:40; display:flex; flex-direction:column; gap:16px; min-width:0; height:100dvh; padding:28px 16px 18px; overflow-y:auto; overscroll-behavior:contain; border-right:1px solid var(--line); background:var(--surface); scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.brand { display:inline-flex; align-items:center; gap:10px; min-height:32px; padding:0 8px; text-decoration:none; }
.brand:hover { color:var(--text); }
.brand-copy { font-size:23px; font-weight:800; line-height:1; letter-spacing:-.055em; }
.brand-symbol { display:flex; flex:0 0 auto; align-items:center; justify-content:center; width:32px; height:34px; border-radius:9px; background:var(--accent); color:var(--accent-ink); }
.brand-symbol .ui-icon { width:21px; height:21px; }
.brand-caption { display:block; margin-top:7px; color:var(--subtle); font-size:12px; font-weight:500; line-height:1.3; letter-spacing:0; }
.brand>svg,.brand-mark,.brand-mark svg { width:29px; height:29px; color:var(--accent); }
.brand-mark { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; }
.sidebar-label { margin:0 10px 9px; color:var(--subtle); font-size:12px; font-weight:750; letter-spacing:.11em; line-height:1.5; text-transform:uppercase; }
.sidebar-nav { display:grid; gap:5px; }
.sidebar-nav a { display:flex; align-items:center; gap:11px; min-width:0; min-height:43px; padding:10px 12px; border-radius:8px; color:var(--muted); font-size:14px; font-weight:600; line-height:1.4; text-decoration:none; }
.sidebar-nav a:hover { background:var(--surface-hover); color:var(--text); }
.sidebar-nav a[aria-current="page"] { background:var(--accent-soft); color:var(--accent); }
.sidebar-nav a span { min-width:0; overflow-wrap:anywhere; }
.sidebar-nav .ui-icon { width:18px; height:18px; }
.sidebar-section-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 9px -8px; }
.sidebar-section-heading .sidebar-label { margin:0; }
.sidebar-all { color:var(--accent); font-size:12px; text-decoration:none; }
.sidebar-close { position:absolute; top:21px; right:12px; display:none; align-items:center; justify-content:center; width:34px; height:34px; padding:8px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--muted); }
.sidebar-categories { display:grid; gap:0; }
.sidebar-categories a { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; min-height:38px; padding:8px; border-radius:7px; color:var(--muted); font-size:12px; line-height:1.4; text-decoration:none; }
.sidebar-categories a:hover,.sidebar-categories a[aria-current="page"] { background:var(--accent-soft); color:var(--accent); }
.sidebar-categories a span { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.sidebar-categories .ui-icon { width:15px; height:15px; margin-top:1px; }
.sidebar-categories small { flex:0 0 auto; padding:0 5px; border-radius:4px; background:var(--surface-soft); color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.sidebar-bottom { display:grid; gap:10px; margin-top:auto; padding:18px 10px 2px; border-top:1px solid var(--line); color:var(--subtle); font-size:12px; line-height:1.6; }
.sidebar-bottom a { text-decoration:none; }
.sidebar-bottom p { margin:0; }
.sidebar-scrim { display:none; }

.topbar { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:22px; min-width:0; min-height:66px; padding:10px 28px; border-bottom:1px solid var(--line); background:var(--surface); }
.header-context { flex:0 0 auto; color:var(--muted); font-size:14px; font-weight:600; }
.header-search { flex:1 1 360px; max-width:440px; min-width:0; margin:0 auto 0 0; }
.header-search input { width:100%; min-width:0; min-height:40px; padding:9px 13px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); font-size:14px; }
.header-search input::placeholder { color:var(--subtle); }
.header-search { position:relative; }
.header-search>.ui-icon { position:absolute; top:12px; left:12px; width:16px; height:16px; color:var(--subtle); pointer-events:none; }
.header-search input { padding-left:37px; padding-right:39px; }
.header-search button { position:absolute; top:4px; right:5px; display:inline-flex; align-items:center; justify-content:center; width:31px; height:32px; padding:7px; border:0; border-radius:5px; background:transparent; color:var(--muted); }
.header-search button:hover { background:var(--accent-soft); color:var(--accent); }
.header-search button .ui-icon { width:16px; height:16px; }
.mobile-brand { display:none; color:var(--text); font-size:20px; font-weight:800; letter-spacing:-.05em; text-decoration:none; }
.topbar-actions { display:flex; flex:0 0 auto; align-items:center; gap:10px; margin-left:auto; }
.theme-toggle,.mobile-menu-toggle { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:42px; height:42px; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--muted); }
.theme-toggle:hover,.mobile-menu-toggle:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.mobile-menu-toggle { display:none; }
.theme-toggle>span { display:none; }
.account-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:9px 13px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font-size:14px; font-weight:650; line-height:1.4; text-decoration:none; }
.account-link:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.public-main { width:100%; min-width:0; min-height:calc(100vh - 190px); padding:20px 28px 30px; }
.seo-breadcrumbs { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 7px; min-width:0; margin:0 0 14px; color:var(--subtle); font-size:12px; line-height:1.6; }
.seo-breadcrumbs a { text-decoration:none; }
.seo-breadcrumbs [aria-current="page"] { max-width:700px; min-width:0; color:var(--muted); overflow-wrap:anywhere; }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:16px; }
.page-heading>div { min-width:0; }
.eyebrow { margin:0 0 9px; color:var(--accent); font-size:12px; font-weight:750; letter-spacing:.12em; }
h1 { margin:0; max-width:1100px; font-size:clamp(25px,2.3vw,34px); font-weight:750; line-height:1.25; letter-spacing:-.035em; overflow-wrap:anywhere; }
h2 { margin:28px 0 15px; font-size:21px; font-weight:700; line-height:1.35; letter-spacing:-.025em; }
h3 { margin:20px 0 10px; font-size:17px; line-height:1.4; }
p { margin:12px 0; }
.page-description { max-width:850px; margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.6; }
.public-intro { max-width:980px; overflow-wrap:anywhere; }
.public-note { max-width:1020px; color:var(--muted); font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.public-main>.public-note:last-child { margin:25px 0 0; }
.public-badge { color:var(--accent); font-size:14px; }
.public-links { display:flex; flex-wrap:wrap; gap:10px 20px; margin:20px 0; }
.public-links a { color:var(--accent); font-size:14px; }

.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0; }
.stat-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; gap:3px 10px; min-width:0; padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:var(--shadow); }
.stat-icon { display:flex; grid-column:2; grid-row:1 / span 3; align-items:center; justify-content:center; width:30px; height:30px; border-radius:10px; background:var(--accent-soft); color:var(--accent); }
.stat-icon svg { width:19px; height:19px; }
.stat-label { grid-column:1; color:var(--muted); font-size:12px; line-height:1.5; }
.stat-card strong { display:block; grid-column:1; font-size:clamp(22px,2vw,26px); font-weight:750; line-height:1.25; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.stat-hint { grid-column:1 / -1; margin-top:2px; color:var(--subtle); font-size:12px; line-height:1.5; }
.category-directory-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:20px 0 28px; }
.category-chip { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:12px; min-width:0; min-height:91px; padding:19px 17px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:var(--shadow); font-size:14px; line-height:1.5; text-decoration:none; }
.category-chip:hover { border-color:var(--accent); background:var(--surface-hover); color:var(--text); }
.category-symbol { display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; background:var(--accent-soft); color:var(--accent); }
.category-copy { min-width:0; overflow-wrap:anywhere; }
.category-copy strong { display:block; font-size:14px; font-weight:650; }
.category-copy small { display:block; margin-top:4px; color:var(--subtle); font-size:12px; }
.category-count { align-self:center; padding:3px 7px; border-radius:5px; background:var(--surface-soft); color:var(--accent); font-size:12px; font-weight:650; font-variant-numeric:tabular-nums; }
/* One city card; evidence types remain separate and counts never add overlaps. */
.city-directory { align-items:stretch; }
.city-directory-card { min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:var(--shadow); }
.city-directory-heading { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:10px; padding:2px 0 14px; color:var(--text); text-decoration:none; }
.city-directory-heading .category-symbol { width:36px; height:36px; }
.city-directory-heading .category-copy strong { font-size:14px; line-height:1.4; }
.city-directory-heading:hover strong { color:var(--accent); }
.city-directory-heading .category-count { white-space:nowrap; }
.city-directory-breakdown { display:grid; gap:4px; padding-top:10px; border-top:1px solid var(--line); }
.city-scope { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:32px; padding:5px 8px; border-radius:6px; color:var(--muted); font-size:12px; line-height:1.45; text-decoration:none; }
.city-scope strong { color:var(--text); font-variant-numeric:tabular-nums; }
a.city-scope:hover { background:var(--surface-hover); color:var(--accent); }
.city-scope--physical:not(.city-scope--empty) { background:var(--accent-soft); }
.city-scope--physical:not(.city-scope--empty) strong { color:var(--accent); }
.city-scope--empty { opacity:.58; }
.city-directory-offers { margin:10px 8px 0; color:var(--muted); font-size:10px; line-height:1.5; }
.city-directory-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.city-directory-legend p { margin:0; padding:12px 14px; border:1px solid var(--line); border-radius:8px; font-size:12px; line-height:1.6; }
.city-directory-legend strong,.city-directory-legend span { display:block; }
.city-directory-legend span { margin-top:4px; color:var(--muted); }
.place-filter-note { margin:12px 0; padding:10px 12px; border-left:2px solid var(--accent); background:var(--surface-soft); }
.place-filter-note a { white-space:nowrap; margin-left:5px; }
@media (max-width:700px) { .city-directory-legend { grid-template-columns:minmax(0,1fr); gap:7px; } }

/* One GET form keeps primary search and advanced filters together. */
.catalog-panel { min-width:0; margin:16px 0; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:var(--shadow); }
.panel-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; padding:16px 20px 12px; }
.panel-title>div { min-width:0; }
.panel-kicker { display:block; margin:0 0 4px; color:var(--subtle); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.panel-title h2 { margin:0; font-size:19px; }
.result-count { max-width:100%; margin:0 0 0 auto; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.catalog-tabs { display:flex; align-items:stretch; gap:23px; max-width:100%; padding:0 22px; overflow-x:auto; border-bottom:1px solid var(--line); scrollbar-width:thin; }
.catalog-tabs a { display:inline-flex; align-items:center; gap:7px; flex:0 0 auto; min-height:46px; padding:11px 1px; border-bottom:2px solid transparent; color:var(--muted); font-size:14px; font-weight:650; line-height:1.4; text-decoration:none; }
.catalog-tabs a[aria-current="page"] { border-color:var(--accent); color:var(--accent); }
.tab-count { padding:1px 6px; border-radius:4px; background:var(--surface-soft); font-size:12px; font-variant-numeric:tabular-nums; }
.catalog-tabs a[aria-current="page"] .tab-count { background:var(--accent-soft); }
.public-filters { min-width:0; margin:0; padding:14px 20px 12px; }
.public-filters label { display:flex; flex-direction:column; gap:6px; min-width:0; }
.filter-main { display:grid; grid-template-columns:minmax(180px,1fr) minmax(150px,210px) minmax(150px,180px) auto; align-items:end; gap:12px; min-width:0; }
.control-label { color:var(--muted); font-size:12px; font-weight:600; line-height:1.5; }
.public-filters input,.public-filters select { display:block; width:100%; max-width:100%; min-width:0; min-height:42px; padding:10px 11px; border:1px solid var(--line-strong); border-radius:7px; background:var(--surface); color:var(--text); font-size:14px; line-height:1.5; }
.public-filters input::placeholder { color:var(--subtle); }
.public-filters select { text-overflow:ellipsis; }
.public-filters input:hover,.public-filters select:hover { border-color:var(--accent); }
.search-input-wrap { position:relative; display:block; min-width:0; }
.search-input-wrap>.ui-icon { position:absolute; top:13px; left:12px; width:16px; height:16px; color:var(--subtle); pointer-events:none; }
.public-filters .search-input-wrap input { padding-left:37px; }
.public-filters .filter-more { margin:12px 0 0; padding:0; border:0; }
.public-filters .filter-more>summary { width:fit-content; max-width:100%; padding:7px 0; color:var(--muted); font-size:14px; font-weight:600; cursor:pointer; }
.public-filters .filter-more>summary::marker { color:var(--accent); }
.public-filters .filter-more>summary { display:flex; align-items:center; flex-wrap:wrap; gap:7px; list-style:none; }
.public-filters .filter-more>summary::-webkit-details-marker { display:none; }
.filter-more>summary>.ui-icon { width:16px; height:16px; }
.filter-more>summary::after { content:""; width:6px; height:6px; margin:0 2px 3px 5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.filter-more[open]>summary::after { margin-top:4px; transform:rotate(225deg); }
.filter-number { padding:0 5px; border-radius:4px; background:var(--accent-soft); color:var(--accent); font-size:12px; }
.filter-summary-hint { margin-left:5px; color:var(--subtle); font-size:12px; font-weight:400; }
.filter-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:15px 12px; min-width:0; padding:15px 0 3px; }
.public-filter-actions { display:flex; align-items:end; flex-wrap:wrap; gap:9px; min-width:0; }
.filter-more .public-filter-actions { margin-top:15px; }
.settings-primary,.settings-secondary,.reset-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; max-width:100%; min-height:42px; padding:10px 15px; border:1px solid var(--line-strong); border-radius:7px; font:inherit; font-size:14px; font-weight:650; line-height:1.5; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.settings-primary { border-color:var(--accent); background:var(--accent); color:var(--accent-ink); }
.settings-primary:hover { border-color:var(--accent-hover); background:var(--accent-hover); color:var(--accent-ink); }
.settings-secondary,.reset-button { background:var(--surface); color:var(--muted); }
.settings-secondary:hover,.reset-button:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.active-filters { display:flex; flex-wrap:wrap; gap:7px; padding:0 22px 15px; }
.active-filters:empty { display:none; }
.filter-chip { display:inline-flex; align-items:center; gap:7px; max-width:100%; padding:4px 8px; border:1px solid var(--line); border-radius:5px; background:var(--surface-soft); color:var(--muted); font-size:12px; line-height:1.5; text-decoration:none; overflow-wrap:anywhere; }
.filter-chip:hover { border-color:var(--accent); color:var(--accent); }
.filter-chip .ui-icon { width:13px; height:13px; }
.catalog-results-meta { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 18px; padding:0 22px 14px; color:var(--subtle); font-size:12px; }
.catalog-results-meta p { margin:0; }
.catalog-results-meta strong { color:var(--muted); font-weight:650; font-variant-numeric:tabular-nums; }
.empty-state { padding:40px 22px 48px; color:var(--muted); text-align:center; }
.empty-state>.ui-icon { width:26px; height:26px; margin:0 auto 14px; color:var(--accent); }
.empty-state h2 { margin:0 0 10px; color:var(--text); font-size:19px; }
.empty-state p { margin-bottom:22px; }
.panel-link { color:var(--accent); font-size:14px; font-weight:600; text-decoration:none; }
.panel-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; padding:19px 22px; color:var(--subtle); font-size:12px; }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:28px; }
.section-heading h2 { margin:0; }
.section-heading>a { color:var(--accent); font-size:14px; text-decoration:none; }
.guide-cards { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:25px; margin:24px 0; padding:25px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.guide-cards h2 { margin:6px 0 12px; font-size:21px; }
.guide-cards p { color:var(--muted); font-size:14px; }
.guide-cards .public-links { display:grid; gap:10px; margin:0; }
.guide-cards .public-links a { padding:12px 14px; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); font-size:14px; text-decoration:none; }
.category-advice { display:flex; align-items:flex-start; gap:9px; margin-top:20px; color:var(--muted); font-size:14px; }
.category-advice .ui-icon { width:17px; height:17px; margin-top:2px; color:var(--accent); }
.guide-link { color:var(--accent); font-size:14px; }

/* All seven semantic columns remain available; medium widths scroll locally. */
.table-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; border:1px solid var(--line); border-radius:10px; scrollbar-width:thin; scrollbar-color:var(--line-strong) var(--surface-soft); }
.catalog-panel>.table-scroll { border-right:0; border-left:0; border-radius:0; }
.data-table { width:100%; min-width:1000px; border-collapse:collapse; table-layout:fixed; background:var(--surface); text-align:left; }
.data-table th { padding:13px 12px; border-bottom:1px solid var(--line); background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:650; line-height:1.5; vertical-align:bottom; }
.data-table th:nth-child(1) { width:25%; }
.data-table th:nth-child(2) { width:13%; }
.data-table th:nth-child(3) { width:10%; }
.data-table th:nth-child(4) { width:10%; }
.data-table th:nth-child(5) { width:17%; }
.data-table th:nth-child(6) { width:13%; }
.data-table th:nth-child(7) { width:12%; }
.data-table td { padding:18px 12px; border-bottom:1px solid var(--line); color:var(--text); font-size:14px; line-height:1.65; vertical-align:top; overflow-wrap:anywhere; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:var(--surface-hover); }
.product-heading { display:flex; align-items:flex-start; gap:8px; min-width:0; }
.product-name { display:block; min-width:0; color:var(--text); font-size:14px; font-weight:650; line-height:1.65; text-decoration:none; overflow-wrap:anywhere; }
.product-heading .product-name { flex:1 1 auto; }
.product-name:hover { color:var(--accent); text-decoration:underline; }
.quick-view-button { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:36px; height:36px; padding:8px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--muted); }
.quick-view-button .ui-icon { width:16px; height:16px; }
.quick-view-button:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.product-meta { display:block; margin-top:7px; color:var(--subtle); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.product-meta:empty { display:none; }
.product-subline { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-top:7px; }
.product-subline:empty,.product-subline:has(> .product-meta:empty):not(:has(> .offer-count-link)) { display:none; }
.product-subline .product-meta { margin-top:0; }
.offer-count-link { display:inline-flex; flex:0 1 auto; align-items:center; gap:7px; max-width:100%; min-height:30px; padding:4px 7px 4px 9px; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:600; line-height:1.5; text-decoration:none; white-space:nowrap; }
.offer-count-link:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.offer-count-link__count { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; min-width:20px; min-height:20px; padding:0 5px; border-radius:4px; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.offer-count-link .ui-icon { width:14px; height:14px; color:var(--accent); }
.product-table .reason-text { color:var(--muted); display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; line-height:1.65; max-height:3.3em; overflow:hidden; overflow-wrap:anywhere; }
.data-table .price-now { font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.discount-chip { display:table; max-width:100%; margin-top:6px; padding:1px 5px; border-radius:4px; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:650; line-height:1.5; }
.data-table s { color:var(--subtle); font-size:12px; font-variant-numeric:tabular-nums; }
.data-table .checked { color:var(--subtle); font-size:12px; }
.check-warning { display:block; margin-top:5px; color:var(--warning); font-size:12px; line-height:1.5; }
.stock-badge { position:relative; display:inline-block; max-width:100%; min-width:0; padding:4px 7px 4px 17px; border:1px solid var(--line-strong); border-radius:14px; background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:650; line-height:1.5; white-space:normal; overflow-wrap:normal; word-break:normal; vertical-align:top; }
.stock-badge::before { content:""; position:absolute; top:11px; left:7px; width:4px; height:4px; border-radius:50%; background:currentColor; }
.stock-badge--in { border-color:var(--positive-line); background:var(--positive-bg); color:var(--positive); }
.stock-badge--out { border-color:var(--negative-line); background:var(--negative-bg); color:var(--negative); }
.stock-badge--unknown { border-color:var(--line-strong); background:var(--surface-soft); color:var(--muted); }
.public-pagination { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:22px 0; }
.catalog-panel>.public-pagination { margin:0; padding:18px 22px; }
.public-pagination a,.public-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:36px; min-height:36px; padding:7px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--muted); font-size:12px; line-height:1.5; text-decoration:none; }
.public-pagination a:hover { border-color:var(--accent); color:var(--accent); }
.public-pagination [aria-current="page"] { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); font-weight:650; }
.catalog-panel>p { margin:16px 22px; }

.public-product { min-width:0; }
.product-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; align-items:start; gap:22px; min-width:0; }
.product-information { min-width:0; }
.product-section { min-width:0; margin-bottom:18px; padding:24px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:var(--shadow); }
.product-section h2 { margin:0 0 18px; font-size:18px; }
.product-section p:last-child { margin-bottom:0; }
.product-purchase { position:sticky; top:102px; min-width:0; padding:24px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:var(--shadow); }
.public-price { margin:0 0 8px; color:var(--text); font-size:clamp(30px,3vw,38px); font-weight:750; line-height:1.2; letter-spacing:-.045em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.old-price { margin:0 0 17px; color:var(--muted); font-size:14px; line-height:1.6; }
.old-price s { font-variant-numeric:tabular-nums; }
.seller-action { margin:20px 0 0; }
.seller-action .settings-primary { width:100%; min-height:44px; }
.seller-action .public-note { margin:10px 0 0; font-size:12px; }
.public-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; margin:16px 0; }
.public-details>div { min-width:0; }
.public-details dt { color:var(--muted); font-size:12px; }
.public-details dd { margin:6px 0 0; color:var(--text); font-size:14px; font-weight:550; overflow-wrap:anywhere; }
.public-prose { max-width:900px; padding:25px 28px; border:1px solid var(--line); border-radius:11px; background:var(--surface); font-size:14px; line-height:1.85; overflow-wrap:anywhere; }
.public-prose h2:first-child { margin-top:0; }
.public-prose li { margin:10px 0; }
.public-prose a { color:var(--accent); }
.public-main details { padding:17px 0; border-bottom:1px solid var(--line); }
.public-main summary { cursor:pointer; font-weight:650; line-height:1.6; }
.public-main summary::marker { color:var(--accent); }
.public-main details p { color:var(--muted); }
.site-footer { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:15px 25px; min-width:0; padding:20px 28px 26px; border-top:1px solid var(--line); color:var(--subtle); font-size:12px; }
.site-footer nav { display:flex; flex-wrap:wrap; gap:9px 16px; min-width:0; }
.site-footer a { text-decoration:none; }

/* Closed native dialogs remain hidden; the open drawer owns its inner scroll. */
body.preview-open { overflow:hidden; }
.quick-view-dialog { position:fixed; inset:0 0 0 auto; width:min(600px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; margin:0; padding:0; border:0; border-left:1px solid var(--line); background:var(--bg); color:var(--text); box-shadow:-12px 0 60px #0000001c; }
.quick-view-dialog[open] { display:flex; flex-direction:column; }
.quick-view-dialog::backdrop { background:var(--scrim); }
.quick-view-header { display:flex; flex:0 0 auto; align-items:flex-start; justify-content:space-between; gap:20px; padding:23px 24px; border-bottom:1px solid var(--line); background:var(--surface); }
.quick-view-header h2 { min-width:0; margin:0; font-size:19px; line-height:1.5; overflow-wrap:anywhere; }
.quick-view-header button { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:36px; height:36px; padding:8px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--muted); }
.quick-view-header button:hover { border-color:var(--accent); color:var(--accent); }
.quick-view-body { flex:1 1 auto; min-height:0; padding:22px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.quick-view-body .product-layout { display:flex; flex-direction:column; gap:18px; }
.quick-view-body .product-information,.quick-view-body .product-purchase { width:100%; }
.quick-view-body .product-purchase { position:static; }
.quick-view-body .product-information { display:flex; flex-direction:column; }

.quick-view-body .product-section { padding:20px; }
.quick-view-body .public-details { gap:18px; }
.quick-view-footer { display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; padding:17px 24px; border-top:1px solid var(--line); background:var(--surface); }
.quick-view-footer a { color:var(--accent); font-size:14px; font-weight:650; }
.quick-view-footer a.settings-primary { color:var(--accent-ink); }
.quick-view-navigation { display:flex; align-items:center; gap:9px; margin-right:auto; }
.quick-view-navigation button { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; padding:8px; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface); color:var(--text); }
.quick-view-navigation button:hover:not(:disabled) { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.quick-view-prev .ui-icon { transform:rotate(180deg); }
.quick-view-position { min-width:50px; color:var(--muted); font-size:12px; text-align:center; font-variant-numeric:tabular-nums; }

/* Specificity exceeds the analytics script's standalone fallback styles. */
.public-site .analytics-consent { border-color:var(--line-strong); background:var(--surface); color:var(--text); box-shadow:0 8px 35px #0000001f; font-size:14px; }
.public-site .analytics-consent a { color:var(--accent); }
.public-site .analytics-consent button { min-height:40px; border-color:var(--line-strong); border-radius:7px; background:var(--surface-soft); color:var(--text); font-size:14px; }
.public-site .analytics-consent button[data-choice="yes"] { border-color:var(--accent); background:var(--accent); color:var(--accent-ink); }
.public-site .analytics-consent button:hover { border-color:var(--accent); }
.public-site .analytics-settings { color:var(--subtle); }

@media (min-width:1600px) {
  .public-main { padding:32px 40px; }
  .topbar,.site-footer { padding-inline:40px; }
  .category-directory-list { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:1279px) {
  .stats { gap:11px; }
  .stat-card { padding:12px; }
  .stat-icon { width:30px; height:30px; }
  .stat-label { font-size:12px; }
  .filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .category-directory-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-layout { grid-template-columns:minmax(0,1fr) 290px; gap:18px; }
  .product-section,.product-purchase { padding:20px; }
  .header-context { display:none; }
}
@media (max-width:1050px) {
  .site-shell { grid-template-columns:minmax(0,1fr); }
  .dashboard-sidebar { position:fixed; inset:0 auto 0 0; z-index:100; width:min(280px,calc(100vw - 48px)); transform:translateX(-100%); visibility:hidden; transition:transform .18s ease,visibility .18s; }
  .sidebar-open .dashboard-sidebar { transform:translateX(0); visibility:visible; }
  body.sidebar-open { overflow:hidden; }
  .sidebar-scrim { position:fixed; inset:0; z-index:90; display:block; width:100%; height:100%; margin:0; padding:0; border:0; background:var(--scrim); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease,visibility .18s; }
  .sidebar-open .sidebar-scrim { opacity:1; visibility:visible; pointer-events:auto; }
  .mobile-menu-toggle { display:inline-flex; }
  .sidebar-close { display:inline-flex; }
  .mobile-brand { display:inline-block; }
  .topbar { gap:14px; }
  .sidebar-nav a { min-height:44px; }
}
@media (max-width:850px) {
  .public-main { padding:22px; }
  .topbar { padding:12px 22px; min-height:68px; }
  .site-footer { padding-inline:22px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat-card { padding:12px 14px; }
  .stat-icon { width:30px; height:30px; }
  .stat-label { font-size:12px; }
  .stat-card strong { font-size:24px; }
  .table-scroll,.catalog-panel>.table-scroll { padding:0 18px; overflow:visible; border:0; border-radius:0; }
  .data-table,.data-table tbody { display:block; width:100%; min-width:0; background:transparent; }
  .data-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .data-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 22px; min-width:0; margin:0 0 14px; padding:20px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
  .data-table tbody tr:hover { background:var(--surface); }
  .data-table td { display:block; min-width:0; max-width:100%; padding:0; border:0; font-size:14px; }
  .data-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:var(--subtle); font-size:12px; font-weight:500; line-height:1.5; }
  .data-table td:first-child { grid-column:1 / -1; padding-bottom:15px; border-bottom:1px solid var(--line); }
  .data-table td:first-child::before { display:none; }
  .data-table td:nth-child(2) { grid-column:1; grid-row:2 / span 2; }
  .data-table td:nth-child(3) { grid-column:2; grid-row:2; }
  .data-table td:nth-child(4) { grid-column:2; grid-row:3; }
  .data-table td:nth-child(5) { grid-column:1 / -1; }
  .data-table td:nth-child(6) { grid-column:1; }
  .data-table td:nth-child(7) { grid-column:2; }
  .product-name { font-size:14px; }
  .product-meta { font-size:12px; }
  .quick-view-button { width:36px; height:36px; }
  .data-table .price-now { font-size:17px; }
  .data-table .checked,.data-table s { font-size:12px; }
  .stock-badge { font-size:12px; padding:4px 8px 4px 18px; }
  .stock-badge::before { top:11px; }
  .product-layout { grid-template-columns:minmax(0,1fr); }
  .product-purchase { position:static; }
}
@media (max-width:600px) {
  html { scroll-padding-top:140px; }
  .topbar { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:10px 12px; }
  .mobile-brand { grid-column:2; grid-row:1; }
  .topbar-actions { grid-column:3; grid-row:1; justify-self:end; }
  .account-link { width:42px; padding:10px; }
  .account-link>span { display:none; }
  .header-search { grid-row:2; grid-column:1 / -1; width:100%; max-width:none; margin:0; }
  .header-search input { min-height:38px; }
  .filter-main { grid-template-columns:minmax(0,1fr) auto; }
  .filter-main .search-control { grid-column:1 / -1; }
  .filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-summary-hint { display:none; }
  .category-directory-list { grid-template-columns:minmax(0,1fr); gap:10px; }
  .category-chip { min-height:78px; padding:16px; }
  .panel-title { padding:19px 18px 14px; }
  .catalog-tabs { gap:18px; padding-inline:18px; }
  .public-filters { padding:17px 18px 13px; }
  .active-filters { padding-inline:18px; }
  .catalog-results-meta { padding-inline:18px; }
  .result-count { margin-left:0; }
  .catalog-panel>.public-pagination { padding:14px 18px; }
  .public-prose { padding:22px; }
  .guide-cards { grid-template-columns:minmax(0,1fr); gap:17px; padding:22px; }
  .panel-footer { padding-inline:18px; }
  .quick-view-header { padding:18px; }
  .quick-view-header h2 { font-size:17px; }
  .quick-view-body { padding:17px; }
  .quick-view-footer { padding:15px 18px; }
  .quick-view-footer>.settings-secondary { flex:1 1 200px; }
  .quick-view-navigation { justify-content:space-between; flex:1 1 130px; }
}
@media (max-width:400px) {
  .public-main { padding:19px 14px; }
  .topbar { padding-inline:14px; }
  .topbar-actions { gap:8px; }
  .account-link { padding-inline:10px; font-size:12px; }
  h1 { font-size:25px; }
  .page-description { font-size:14px; }
  .page-heading { margin-bottom:20px; }
  .stats { gap:9px; }
  .stat-card { grid-template-columns:minmax(0,1fr); padding:11px 12px; gap:3px; }
  .stat-icon { display:none; }
  .stat-card strong { font-size:23px; }
  .stat-label { font-size:12px; }
  .stat-hint { font-size:12px; }
  .public-filters { padding-inline:13px; }
  .filter-grid { gap:12px 9px; }
  .public-filters input,.public-filters select { padding-inline:8px; font-size:12px; }
  .filter-main { gap:11px 9px; }
  .filter-main .settings-primary { padding-inline:12px; }
  .panel-title,.catalog-tabs { padding-inline:14px; }
  .active-filters { padding-inline:14px; }
  .catalog-results-meta { padding-inline:14px; }
  .table-scroll,.catalog-panel>.table-scroll { padding-inline:11px; }
  .data-table tbody tr { padding:15px 13px; gap:13px 12px; }
  .product-name { font-size:14px; }
  .public-pagination { gap:5px; }
  .public-pagination a,.public-pagination span { min-width:32px; padding-inline:8px; }
  .catalog-panel>.public-pagination { padding-inline:13px; }
  .product-section,.product-purchase { padding:19px; }
  .public-details { gap:19px 14px; }
  .public-details dd { font-size:14px; }
  .public-prose { padding:19px; font-size:14px; }
  .site-footer { display:block; padding-inline:14px; }
  .site-footer nav { margin-top:14px; }
  .quick-view-body { padding:12px; }
  .quick-view-body .product-section,.quick-view-body .product-purchase { padding:17px; }
  .public-site .analytics-consent { left:10px; right:10px; bottom:10px; padding:14px; }
  .public-site .analytics-consent-actions { gap:8px; }
  .public-site .analytics-consent button { flex:1 1 auto; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .dashboard-sidebar,.sidebar-scrim { transition:none; }
}

/* Shared motion for public pages and the existing account UI.
   Content is visible without animation; no persistent layer promotion or JS library. */
@keyframes skidarium-rise {
  from { opacity:0; transform:translateY(9px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes skidarium-drawer-in {
  from { opacity:0; transform:translateX(48px); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes skidarium-dialog-in {
  from { opacity:0; transform:translateY(10px) scale(.98); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes skidarium-fade { from { opacity:0; } to { opacity:1; } }
@keyframes skidarium-spin { to { transform:rotate(360deg); } }
@keyframes skidarium-product-next {
  from { opacity:0; transform:translateX(34px) scale(.985); }
  to { opacity:1; transform:translateX(0) scale(1); }
}
@keyframes skidarium-product-previous {
  from { opacity:0; transform:translateX(-34px) scale(.985); }
  to { opacity:1; transform:translateX(0) scale(1); }
}
@keyframes skidarium-product-out { to { opacity:0; transform:translateY(-8px); } }
@keyframes skidarium-price-in {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

@media (prefers-reduced-motion:no-preference) {
  /* Native same-origin page transitions preserve links, history and new tabs.
     Unsupported browsers still receive the ordinary product entrance below. */
  @view-transition { navigation:auto; }
  ::view-transition-old(root) { animation:skidarium-fade .16s ease reverse both; }
  ::view-transition-new(root) { animation:skidarium-fade .24s ease both; }
  .public-main>.public-product { view-transition-name:product-detail; }
  ::view-transition-old(product-detail) { animation:skidarium-product-out .18s ease both; }
  ::view-transition-new(product-detail) { animation:skidarium-product-next .4s cubic-bezier(.22,1,.36,1) both; }
  /* Only actual surfaces transition when changing themes, not every table cell. */
  :is(body.public-site,body.dashboard-legacy),
  :is(.public-site,.dashboard-legacy) :is(.topbar,.dashboard-sidebar,.catalog-panel,
    .stat-card,.category-chip,.product-section,.product-purchase,.public-prose,
    .guide-cards,.quick-view-dialog,.quick-view-header,.quick-view-footer,
    .page-gate,.settings-card,.seo-landing,.email-auth-dialog,.product-detail-dialog) {
    transition:background-color .22s ease,color .18s ease,border-color .22s ease;
  }
  .public-site :is(.page-heading,.public-prose),
  .dashboard-legacy :is(.page-gate,.seo-landing,.settings-card) {
    animation:skidarium-rise .32s cubic-bezier(.22,1,.36,1) backwards;
  }
  .public-site .stat-card { animation:skidarium-rise .36s cubic-bezier(.22,1,.36,1) backwards; }
  .public-site .stat-card:nth-child(2) { animation-delay:35ms; }
  .public-site .stat-card:nth-child(3) { animation-delay:70ms; }
  .public-site .stat-card:nth-child(4) { animation-delay:105ms; }
  .public-main>.catalog-panel,
  .public-main>.public-product .product-section,
  .public-main>.public-product .product-purchase {
    animation:skidarium-rise .38s cubic-bezier(.22,1,.36,1) 60ms backwards;
  }
  .public-site .category-chip:nth-child(-n+6) { animation:skidarium-rise .32s ease-out backwards; }
  .public-site .category-chip:nth-child(2),.public-site .category-chip:nth-child(5) { animation-delay:35ms; }
  .public-site .category-chip:nth-child(3),.public-site .category-chip:nth-child(6) { animation-delay:70ms; }

  :is(.public-site,.dashboard-legacy) :is(.settings-primary,.settings-secondary,
    .account-link,.theme-toggle,.legacy-theme-toggle,.mobile-menu-toggle,.sidebar-close,
    .quick-view-button,.quick-view-close,.quick-view-prev,.quick-view-next,.reset-button,.auth-provider-primary),
  .public-site :is(.sidebar-nav a,.sidebar-categories a,.catalog-tabs a,
    .public-pagination a,.category-chip,.filter-chip),
  .dashboard-legacy :is(.main-nav a,.theme-choice button,.pagination button) {
    transition:transform .16s ease,background-color .2s ease,color .18s ease,
      border-color .2s ease,box-shadow .2s ease;
  }
  :is(.public-site,.dashboard-legacy) :is(.settings-primary,.settings-secondary,
    .account-link,.theme-toggle,.legacy-theme-toggle,.mobile-menu-toggle,
    .quick-view-button,.quick-view-close,.quick-view-prev,.quick-view-next,.auth-provider-primary):active:not(:disabled),
  .public-site .public-pagination a:active { transform:scale(.97); }
  .public-site .data-table tbody tr { transition:background-color .16s ease; }
  :is(.public-site,.dashboard-legacy) :is(input,select,textarea) {
    transition:background-color .2s ease,border-color .18s ease,box-shadow .18s ease;
  }
  :is(.theme-toggle,.legacy-theme-toggle)>svg { transition:transform .32s cubic-bezier(.22,1,.36,1); }
  :is(.theme-toggle,.legacy-theme-toggle)[aria-pressed="true"]>svg { transform:rotate(35deg); }
  .public-site .filter-more>summary::after { transition:transform .2s ease; }
  .public-site .filter-more[open] :is(.filter-grid,.public-filter-actions) { animation:skidarium-rise .2s ease-out; }

  /* Native close/Escape and focus return stay immediate. Opening alone animates,
     so cleared or private product content never lingers in a closing drawer. */
  .public-site .quick-view-dialog[open] { animation:skidarium-drawer-in .36s cubic-bezier(.22,1,.36,1); }
  .dashboard-legacy :is(.email-auth-dialog,.product-detail-dialog,.ad-dialog)[open] { animation:skidarium-dialog-in .24s cubic-bezier(.22,1,.36,1); }
  :is(.public-site,.dashboard-legacy) dialog[open]::backdrop { animation:skidarium-fade .22s ease-out; }
  .quick-view-body>.public-product { animation:skidarium-product-next .38s cubic-bezier(.22,1,.36,1); }
  .quick-view-body>.public-product[data-preview-direction="previous"] { animation-name:skidarium-product-previous; }
  .quick-view-body .product-purchase,
  .public-main>.public-product .product-purchase { animation:skidarium-rise .4s cubic-bezier(.22,1,.36,1) 30ms backwards; }
  .quick-view-body .product-section,
  .public-main>.public-product .product-section { animation:skidarium-rise .42s cubic-bezier(.22,1,.36,1) 95ms backwards; }
  .quick-view-body .product-section:first-child,
  .public-main>.public-product .product-section:last-child { animation-delay:150ms; }
  .public-product .public-price { animation:skidarium-price-in .42s cubic-bezier(.22,1,.36,1) 70ms backwards; }
  .public-product .seller-action { animation:skidarium-rise .4s cubic-bezier(.22,1,.36,1) 140ms backwards; }
  .quick-view-body[aria-busy="true"]::before {
    content:""; display:block; width:22px; height:22px; margin:2px 0 14px;
    border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%;
    animation:skidarium-spin .8s linear infinite;
  }
  @media (hover:hover) and (pointer:fine) {
    .public-site .category-chip:hover { transform:translateY(-2px); box-shadow:0 7px 18px #211c3810; }
    :is(.public-site,.dashboard-legacy) :is(.settings-primary,.settings-secondary,.account-link):hover { transform:translateY(-1px); }
    :is(.public-site,.dashboard-legacy) :is(.settings-primary,.settings-secondary,.account-link):active { transform:translateY(0) scale(.98); }
  }
  @media (max-width:1050px) {
    .public-site .dashboard-sidebar { transition:transform .26s cubic-bezier(.22,1,.36,1),visibility .26s,background-color .22s ease; }
    .public-site .sidebar-scrim { transition:opacity .22s ease,visibility .22s; }
  }
}

/* Also overrides any older account animations. Closed elements keep native state. */
@media (prefers-reduced-motion:reduce) {
  @view-transition { navigation:none; }
  ::view-transition-old(*),::view-transition-new(*),::view-transition-group(*) { animation:none!important; }
  html { scroll-behavior:auto!important; }
  :is(.public-site,.dashboard-legacy),
  :is(.public-site,.dashboard-legacy) *,
  :is(.public-site,.dashboard-legacy) *::before,
  :is(.public-site,.dashboard-legacy) *::after,
  :is(.public-site,.dashboard-legacy) dialog::backdrop {
    animation:none!important; transition:none!important; scroll-behavior:auto!important;
  }
}

/* Browse categories before entering the result list. No product media is loaded. */
.catalog-entry { min-width:0; margin:14px 0 18px; }
.category-shortcuts,.type-shortcuts { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; max-width:100%; min-width:0; margin:12px 0; padding:3px 3px 9px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; list-style:none; }
.category-shortcuts>a,.type-shortcuts>a { display:inline-flex; flex:0 0 auto; align-items:center; gap:7px; max-width:100%; min-height:38px; padding:6px 11px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font-size:14px; line-height:1.45; text-decoration:none; overflow-wrap:anywhere; }
.category-shortcuts>a:hover,.type-shortcuts>a:hover,.category-shortcuts>[aria-current="page"],.type-shortcuts>[aria-current="page"] { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.category-shortcuts .ui-icon,.type-shortcuts .ui-icon { width:17px; height:17px; }
.category-shortcuts small,.type-shortcuts small { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.category-shortcuts .category-count { padding:0 5px; font-size:12px; }
.catalog-summary-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 20px; margin:10px 0 14px; color:var(--muted); font-size:14px; line-height:1.6; }
.catalog-summary-line strong { color:var(--text); font-weight:650; font-variant-numeric:tabular-nums; }
.catalog-summary-line p { margin:0; }

/* Text-first product summary. DOM order is also the visual and keyboard order. */
.product-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,330px); align-items:start; gap:20px; min-width:0; margin-bottom:20px; }
.product-summary>.product-purchase { position:static; }
.product-condition { min-width:0; }
.product-condition h2 { margin:0 0 12px; font-size:20px; }
.product-condition .public-intro { margin:0 0 16px; font-size:16px; line-height:1.7; }
.product-condition .public-details { margin-bottom:0; }
.product-details { min-width:0; }
.product-details>.public-details { margin:0; }
.product-details .public-note { margin:8px 0 0; }
.product-purchase .stock-badge { font-size:13px; }
.product-purchase .public-links { margin:14px 0; }
.product-purchase .public-note { font-size:13px; }
.quick-view-body .product-summary { grid-template-columns:minmax(0,1fr); }
.quick-view-body .product-layout { display:block; }
.quick-view-body .product-purchase { margin-bottom:18px; }

/* Semantic desktop offers become self-contained cards on narrow screens. */
.table-scroll:has(>.catalog-offer-table) { padding:0; max-width:100%; min-width:0; overflow-x:auto; }
.catalog-offer-table.product-table { width:100%; min-width:760px; table-layout:fixed; border-collapse:collapse; }
.catalog-offer-table.product-table th { font-size:12px; }
.catalog-offer-table.product-table th,.catalog-offer-table.product-table td { padding:14px 12px; vertical-align:top; white-space:normal; overflow-wrap:anywhere; }
.catalog-offer-table.product-table th:nth-child(1) { width:15%; }
.catalog-offer-table.product-table th:nth-child(2) { width:18%; }
.catalog-offer-table.product-table th:nth-child(3) { width:13%; }
.catalog-offer-table.product-table th:nth-child(4) { width:26%; }
.catalog-offer-table.product-table th:nth-child(5) { width:13%; }
.catalog-offer-table.product-table th:nth-child(6) { width:15%; }
.catalog-offer-table td small { display:block; margin-top:6px; color:var(--muted); font-size:12px; line-height:1.5; }
.catalog-offer-table td>s { display:block; margin-top:6px; color:var(--muted); font-size:13px; font-weight:400; opacity:1; }
.catalog-offer-table .old-price { display:block; margin:6px 0 0; color:var(--muted); font-size:12px; font-weight:400; line-height:1.6; }
.catalog-offer-table .public-note { margin:8px 0; font-size:13px; line-height:1.6; }
.catalog-offer-table details { margin-top:8px; }
.catalog-offer-table tbody tr[aria-current="true"] { background:var(--accent-soft); }
.catalog-offer-table tbody tr[aria-current="true"] td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
.catalog-offer-table .stock-badge { font-size:12px; }
.catalog-offer-table .checked { font-size:12px; }

/* Compact variant choices: main product section retains the complete reason. */
.offer-options { min-width:0; }
.offer-options-heading { display:flex; align-items:center; gap:8px; min-width:0; }
.offer-options-heading h2 { margin:0; }
.offer-options-intro { margin:6px 0 12px; }
.offer-options-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:9px; min-width:0; max-width:1120px; }
.offer-choice { min-width:0; max-width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); overflow-wrap:anywhere; }
.offer-choice[aria-current="true"] { border-color:var(--accent); box-shadow:inset 3px 0 0 var(--accent); }
.offer-choice-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 10px; min-width:0; }
.offer-choice-name { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.offer-choice-link { display:inline-flex; align-items:center; gap:6px; min-height:30px; max-width:100%; padding:3px 6px; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); color:var(--text); font-size:11px; line-height:1.5; font-weight:600; text-decoration:none; }
.offer-choice-link:hover { border-color:var(--accent); color:var(--accent); background:var(--surface-hover); }
.offer-choice-link:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.offer-choice-link .ui-icon { width:13px; height:13px; flex:none; color:var(--muted); }
.offer-choice-selected { color:var(--accent); font-size:10px; font-weight:600; }
.offer-choice-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:7px; min-width:0; margin-left:auto; }
.offer-choice-price { color:var(--text); font-size:17px; line-height:1.3; font-variant-numeric:tabular-nums; }
.offer-choice .stock-badge { padding:3px 6px 3px 15px; font-size:10px; }
.offer-choice .stock-badge::before { top:9px; left:6px; }
.offer-choice-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 12px; margin:6px 0; color:var(--muted); font-size:10px; line-height:1.5; }
.offer-choice-sku,.offer-choice-old-price,.offer-choice-checked { min-width:0; }
.offer-choice-checked { margin-left:auto; }
.offer-choice-location { min-width:0; margin-top:6px; }
.offer-choice-location .geography-cell { font-size:11px; line-height:1.45; }
.offer-choice-condition { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; max-height:2.9em; overflow:hidden; overflow-wrap:anywhere; margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.45; }
.offer-choice-regions { min-width:0; margin-top:6px; font-size:11px; line-height:1.5; }
.offer-choice-regions summary { cursor:pointer; color:var(--muted); }
.offer-choice-regions .public-note { margin:6px 0 0; font-size:11px; line-height:1.6; }
.offer-choice-regions details { margin-top:6px; }
.quick-view-body .offer-options-list { grid-template-columns:minmax(0,1fr); }
.quick-view-body .offer-options { padding:14px; }
@media (max-width:700px) {
  .offer-options-list { grid-template-columns:minmax(0,1fr); }
  .offer-choice { padding:10px 11px; }
}
@media (pointer:coarse) { .offer-choice-link { min-height:40px; } }

@media (max-width:1180px) and (min-width:851px) {
  .data-table:not(.catalog-offer-table) { min-width:760px; }
}
@media (max-width:1000px) {
  .table-scroll:has(>.catalog-offer-table) { overflow:visible; }
  .catalog-offer-table.product-table,.catalog-offer-table.product-table tbody { display:block; width:100%; min-width:0; background:transparent; }
  .catalog-offer-table.product-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .catalog-offer-table.product-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; min-width:0; margin:0 0 14px; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
  .catalog-offer-table.product-table tbody tr[aria-current="true"] { border-color:var(--accent); background:var(--accent-soft); }
  .catalog-offer-table.product-table tbody tr:last-child { margin-bottom:0; }
  .catalog-offer-table.product-table td { display:block; grid-column:auto; grid-row:auto; width:auto; min-width:0; max-width:100%; padding:0; border:0; font-size:14px; }
  .catalog-offer-table.product-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:var(--muted); font-size:12px; font-weight:500; line-height:1.5; }
  .catalog-offer-table.product-table td:first-child { grid-column:1 / -1; padding-bottom:12px; border-bottom:1px solid var(--line); box-shadow:none; }
  .catalog-offer-table.product-table td:first-child::before { display:none; }
  .catalog-offer-table.product-table td:nth-child(4) { grid-column:1 / -1; }
  .catalog-offer-table.product-table .price-now { font-size:18px; }
}
@media (max-width:850px) {
  .product-summary { grid-template-columns:minmax(0,1fr); gap:14px; }
  .product-layout { gap:14px; }
  .product-summary .product-purchase { margin:0; }
  .category-shortcuts,.type-shortcuts { flex-wrap:nowrap; gap:8px; padding:3px 3px 9px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
  .category-shortcuts>a,.type-shortcuts>a { flex:0 0 auto; max-width:85vw; min-height:44px; }
  .category-shortcuts>a:focus-visible,.type-shortcuts>a:focus-visible { outline-offset:0; }
  .product-name { font-size:15px; }
  .data-table td { font-size:14px; }
  .data-table .price-now { font-size:19px; }
  .data-table .checked,.data-table s,.data-table td::before { font-size:12px; }
  .quick-view-button { width:44px; height:44px; }
  .public-pagination a,.public-pagination span { min-width:44px; min-height:44px; }
}
@media (max-width:600px) {
  .header-search input,.public-filters input,.public-filters select { font-size:16px; min-height:44px; }
  .header-search>.ui-icon { top:14px; }
  .header-search button { top:4px; height:36px; }
  .public-filters .search-input-wrap>.ui-icon { top:15px; }
  .page-heading { margin-bottom:14px; }
  .page-description { font-size:14px; }
  .seo-breadcrumbs { font-size:12px; margin-bottom:12px; }
  .product-section,.product-purchase { padding:18px; }
  .product-condition .public-intro { font-size:15px; }
  .public-details { gap:15px 18px; }
  .public-details dt { font-size:12px; }
  .public-details dd { font-size:14px; }
  .catalog-summary-line { gap:3px 14px; font-size:13px; margin-bottom:10px; }
  .public-main>.page-heading .eyebrow { margin-bottom:6px; font-size:12px; }
  .catalog-offer-table.product-table tbody tr { padding:15px; gap:14px 16px; }
}
@media (max-width:360px) {
  .catalog-offer-table.product-table tbody tr,.public-details { grid-template-columns:minmax(0,1fr); }
  .catalog-offer-table.product-table td { grid-column:1; }
}

/* One catalogue search and a visible region selector. */
.header-catalog-link { display:inline-flex; align-items:center; gap:8px; min-height:42px; margin-right:auto; padding:8px 10px; border-radius:7px; color:var(--accent); font-size:14px; font-weight:600; text-decoration:none; }
.header-catalog-link:hover { background:var(--accent-soft); }
.catalog-entry form { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,250px) auto; align-items:end; gap:12px; min-width:0; margin:0; padding:0; }
.catalog-entry label { display:flex; flex-direction:column; gap:6px; min-width:0; }
.catalog-entry input,.catalog-entry select { display:block; width:100%; max-width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface); color:var(--text); font:inherit; font-size:15px; line-height:1.5; }
.catalog-entry .search-input-wrap input { padding-left:37px; }
.catalog-entry .settings-primary { min-height:44px; }
.offer-regions { margin-top:14px; }
@media (max-width:900px) {
  .filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-main .search-control { grid-column:1 / -1; }
  .filter-main .public-filter-actions { grid-column:1 / -1; }
  .filter-main .public-filter-actions .settings-primary { min-width:130px; }
}
@media (max-width:600px) {
  .catalog-entry form { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
  .catalog-entry .search-control { grid-column:1 / -1; }
  .catalog-entry input,.catalog-entry select { font-size:16px; }
  .header-catalog-link { display:none; }
  .topbar:has(.header-catalog-link) { grid-template-rows:auto; }
  .filter-main .settings-primary { grid-column:1 / -1; width:100%; }
}

/* Verified product location and separate seller delivery policy. */
.geography-cell{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font-size:12px;line-height:1.45}.delivery-badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:2px 7px;border-radius:5px;border:1px solid #345e83;background:#162e46;color:#9bd1ff;font-size:10px;font-weight:600;line-height:18px;vertical-align:middle}.delivery-badge svg{width:13px;height:13px;flex:none}.geo-approximate{color:var(--text-muted,#a4adbf)}.geo-approximate small{display:block;font-size:10px;font-weight:400;margin-top:2px}.geo-address{display:block;font-size:12px;font-weight:400;margin-top:6px}.geography-note{font-size:11px;line-height:1.6;margin-top:12px;max-width:1000px}.product-table td[data-label="Где находится"]{padding-top:12px;padding-bottom:12px}.theme-light .delivery-badge,[data-theme="light"] .delivery-badge{color:#185b94;border-color:#b3d4f2;background:#eaf4ff}

/* Account redesign. Scoped to /account; catalogue, checkout and authentication
   retain their own layouts. Theme colours come from the shared site tokens. */
html[data-theme] body.account-redesign {
  background: var(--bg);
  background-image: none;
}
body.account-redesign main.account-mode > #accountChrome:not([hidden]) { display: block !important; }
body.account-redesign #accountChrome,
body.account-redesign #settingsView,
body.account-redesign #favoritesView,
body.account-redesign #guestAccountView {
  width: 100%;
  max-width: 1160px;
  min-width: 0;
  margin-inline: auto;
}
body.account-redesign #mainContent { padding-block: 28px 36px; }
body.account-redesign .account-page { padding-top: 0; }
body.account-redesign .account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
body.account-redesign .account-heading > div { min-width: 0; }
body.account-redesign .account-heading .eyebrow {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
}
body.account-redesign .account-heading h1 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
body.account-redesign .account-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
body.account-redesign .account-heading > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
body.account-redesign .account-heading > a:hover { color: var(--accent); border-color: var(--line-strong); }
body.account-redesign .account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
body.account-redesign .account-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}
body.account-redesign .account-avatar .ui-icon { width: 23px; height: 23px; }
body.account-redesign .account-identity { flex: 1; min-width: 0; }
body.account-redesign #accountName { display: block; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
body.account-redesign #settingsEmail { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
body.account-redesign .account-role {
  flex: 0 0 auto;
  max-width: 45%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.account-redesign .account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  margin: 18px 0 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
body.account-redesign .account-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
body.account-redesign .account-nav .ui-icon { width: 17px; height: 17px; }
body.account-redesign .account-nav a:hover { color: var(--text); background: var(--surface-hover); }
body.account-redesign .account-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
body.account-redesign .account-nav :is([data-account-favorites], [data-account-unread]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
body.account-redesign .account-overview { display: grid; gap: 18px; min-width: 0; }
body.account-redesign .account-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.account-redesign .account-shortcut {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
body.account-redesign .account-shortcut:hover { border-color: var(--line-strong); background: var(--surface-hover); color: var(--text); }
body.account-redesign .account-shortcut > .ui-icon:first-child { width: 21px; height: 21px; color: var(--accent); }
body.account-redesign .account-shortcut > :is(div, span):not(.account-metric):not(.account-shortcut-icon) { min-width: 0; flex: 1; }
body.account-redesign .account-shortcut strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.45; }
body.account-redesign .account-shortcut :is(small, p) { display: block; margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
body.account-redesign .account-shortcut .account-metric { flex: 0 0 auto; margin-left: auto; color: var(--text); font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
body.account-redesign .account-shortcut > .ui-icon:last-child { width: 16px; height: 16px; color: var(--subtle); }
body.account-redesign .account-shortcut-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
body.account-redesign .account-overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
html[data-theme] body.account-redesign :is(.account-panel, .settings-card, #favoritesView > .panel) {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}
body.account-redesign .account-panel-heading { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; }
body.account-redesign .account-panel-heading > .ui-icon { width: 18px; height: 18px; color: var(--muted); }
body.account-redesign :is(.account-panel, .settings-card) h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
body.account-redesign :is(.account-panel, .settings-card) h3 { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
body.account-redesign .settings-kicker { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
body.account-redesign .account-access .plan-status { margin: 0; color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
body.account-redesign .settings-detail { margin: 9px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
body.account-redesign #categoryAccessSummary { margin: 0 0 16px; font-size: 12px; }
html[data-theme] body.account-redesign :is(.settings-primary, .settings-secondary, .back-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
html[data-theme] body.account-redesign .settings-primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
html[data-theme] body.account-redesign .settings-primary:hover:not(:disabled) { background: var(--accent-hover); }
html[data-theme] body.account-redesign :is(.settings-secondary, .back-button):hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-hover); }
body.account-redesign .account-payment-details { min-width: 0; margin: 20px -22px -22px; border-top: 1px solid var(--line); }
body.account-redesign .account-payment-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 14px 22px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
body.account-redesign .account-payment-details summary::-webkit-details-marker { display: none; }
body.account-redesign .account-payment-details summary::after { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin: -3px 2px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
body.account-redesign .account-payment-details[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
body.account-redesign .account-payment-details summary:hover { color: var(--text); }
body.account-redesign .account-payment-details > :not(summary) { margin-inline: 22px; }
body.account-redesign .account-payment-details .table-scroll { max-width: calc(100% - 44px); margin-top: 0; }
body.account-redesign .account-payment-details > .settings-detail:last-child { margin-block: 10px 18px; }
body.account-redesign .account-appearance .theme-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 15px 0 0; }
html[data-theme] body.account-redesign .account-appearance .theme-choice button { display: block; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); text-align: left; font-size: 13px; font-weight: 600; }
html[data-theme] body.account-redesign .account-appearance .theme-choice button:hover { border-color: var(--line-strong); }
html[data-theme] body.account-redesign .account-appearance .theme-choice button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
body.account-redesign .theme-miniature { display: flex; gap: 7px; height: 66px; min-width: 0; padding: 8px; border: 1px solid #dfe1ea; border-radius: 4px; background: #f5f6fa; }
body.account-redesign [data-theme-choice="dark"] .theme-miniature { border-color: #3d4050; background: #181a21; }
body.account-redesign .mini-sidebar { display: block; width: 23%; min-width: 14px; border-radius: 2px; background: #e2dff6; }
body.account-redesign [data-theme-choice="dark"] .mini-sidebar { background: #3a3455; }
body.account-redesign .mini-lines { display: flex; flex: 1; flex-direction: column; gap: 5px; padding-top: 3px; min-width: 0; }
body.account-redesign .mini-lines::before, body.account-redesign .mini-lines::after, body.account-redesign .mini-lines > i { content: ""; display: block; height: 5px; border-radius: 2px; background: #d8dbe6; }
body.account-redesign .mini-lines::before { width: 68%; }
body.account-redesign .mini-lines::after { width: 85%; }
body.account-redesign [data-theme-choice="dark"] .mini-lines::before, body.account-redesign [data-theme-choice="dark"] .mini-lines::after, body.account-redesign [data-theme-choice="dark"] .mini-lines > i { background: #414555; }
body.account-redesign .theme-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding-inline: 2px; }
body.account-redesign .theme-label::after { content: ""; width: 13px; height: 13px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 50%; }
body.account-redesign [aria-pressed="true"] .theme-label::after { border: 4px solid var(--accent); background: var(--surface); }
body.account-redesign .account-help-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 0 2px; color: var(--muted); font-size: 12px; }
body.account-redesign .account-help-row a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; text-decoration: none; }
body.account-redesign .account-help-row a:hover { color: var(--accent); }
body.account-redesign .account-help-row .ui-icon { width: 15px; height: 15px; }
body.account-redesign .account-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 0 0 17px; }
body.account-redesign .account-section-heading > div { min-width: 0; }
body.account-redesign .account-section-heading h2 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.025em; }
body.account-redesign .account-section-heading p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.account-redesign .account-referral-feature { display: flex; align-items: center; gap: 15px; padding: 0 0 19px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
body.account-redesign .account-referral-feature > .ui-icon, body.account-redesign .account-referral-feature > .account-feature-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 12px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
body.account-redesign .account-referral-feature > div:not(.account-feature-icon) { min-width: 0; }
body.account-redesign .account-referral-feature h2 { font-size: 20px; }
body.account-redesign .account-referral-feature p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
body.account-redesign #referralSection > label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
body.account-redesign .account-referral-input { display: flex; align-items: stretch; gap: 9px; max-width: 650px; min-width: 0; }
html[data-theme] body.account-redesign .account-referral-input input { width: 100%; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font-size: 13px; }
body.account-redesign .account-referral-input button { flex: 0 0 auto; }
body.account-redesign .referral-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.account-redesign .account-referral-benefit { margin: 18px 0 0; padding: 12px 15px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--accent-soft); color: var(--muted); font-size: 13px; line-height: 1.6; }
body.account-redesign .account-referral-benefit strong { color: var(--text); }
body.account-redesign .account-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; padding: 32px 20px; text-align: center; }
body.account-redesign .account-empty > .ui-icon { width: 38px; height: 38px; padding: 8px; box-sizing: content-box; color: var(--accent); border-radius: 13px; background: var(--accent-soft); }
body.account-redesign .account-empty :is(h2, h3, strong) { margin: 4px 0 0; color: var(--text); font-size: 16px; line-height: 1.4; font-weight: 650; }
body.account-redesign .account-empty p { max-width: 380px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.account-redesign .account-empty a { margin-top: 6px; }
body.account-redesign .account-guest { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 30px; width: 100%; padding: 30px; text-align: left; }
body.account-redesign .account-guest > div { min-width: 0; }
body.account-redesign .account-guest-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
body.account-redesign .account-guest h1 { font-size: 27px; line-height: 1.2; }
body.account-redesign .account-guest p { color: var(--muted); font-size: 14px; line-height: 1.65; }
body.account-redesign .account-guest #guestSignIn { margin-top: 5px; }
body.account-redesign .account-guest .secondary-link { display: block; width: fit-content; margin-top: 13px; color: var(--muted); font-size: 12px; }
body.account-redesign .account-guest-features { display: grid; gap: 16px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); list-style: none; }
body.account-redesign .account-guest-features > :is(li, div) { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
body.account-redesign .account-guest-features .ui-icon { width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
body.account-redesign .account-guest-features strong { display: block; font-size: 13px; font-weight: 650; }
body.account-redesign .account-guest-features :is(small, p) { display: block; margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
body.account-redesign .notification-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
body.account-redesign .notification-heading > div { flex: 1; min-width: min(240px, 100%); }
body.account-redesign .notification-heading .settings-detail { margin-bottom: 0; }
html[data-theme] body.account-redesign .notification-item { gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
html[data-theme] body.account-redesign .notification-item.unread { border-left: 3px solid var(--accent); background: var(--accent-soft); }
body.account-redesign .notification-item > div { min-width: 0; }
body.account-redesign .notification-item :is(strong, p) { overflow-wrap: anywhere; }
body.account-redesign .notification-item strong { font-size: 13px; }
body.account-redesign .notification-item small { color: var(--subtle); font-size: 11px; }
body.account-redesign .notification-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 7px; }
body.account-redesign #favoritesView .panel-heading { padding: 0; margin: 0 0 16px; }
body.account-redesign #favoritesView .panel-heading h2 { margin: 0; font-size: 16px; }
body.account-redesign #favoritesView .panel-heading p { margin: 5px 0 0; max-width: 720px; font-size: 12px; }
body.account-redesign .table-scroll { max-width: 100%; min-width: 0; overflow: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 8px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
body.account-redesign .data-table { min-width: 660px; font-size: 12px; }
body.account-redesign .data-table :is(th, td) { padding: 12px; }
body.account-redesign .data-table th { font-size: 11px; }
body.account-redesign #favoritesView .product-table { min-width: 920px; }
body.account-redesign #favoritesView .product-table .reason { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: 3.2em; }
body.account-redesign #favoritesView .pagination { gap: 12px; margin: 16px 0 0; padding: 0; color: var(--muted); font-size: 12px; }
body.account-redesign .settings-admin { gap: 16px; }
body.account-redesign .settings-admin .settings-card > h2 { margin-bottom: 8px; }
html[data-theme] body.account-redesign :is(.settings-form input, .settings-form select, .settings-form textarea, .admin-table input, .admin-table select, .admin-user-search input) { max-width: 100%; min-width: 0; border-color: var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font-size: 13px; }
body.account-redesign :is(.settings-form label, .admin-user-search label) { color: var(--muted); font-size: 12px; }
html[data-theme] body.account-redesign .account-link { border-color: var(--line); background: var(--surface); color: var(--text); }
html[data-theme] body.account-redesign .account-link:hover, html[data-theme] body.account-redesign .account-link[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-hover); color: var(--accent); }

@media (max-width: 1180px) {
  body.account-redesign .account-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.account-redesign .account-nav { gap: 3px; }
  body.account-redesign .account-nav a { padding-inline: 10px; }
}
@media (max-width: 760px) {
  body.account-redesign #mainContent { padding-block: 22px 28px; }
  body.account-redesign .account-heading { align-items: flex-start; margin-bottom: 18px; gap: 14px; }
  body.account-redesign .account-heading > a { padding: 8px 10px; font-size: 12px; }
  body.account-redesign .account-profile { padding: 16px; }
  body.account-redesign .account-nav { margin: 14px 0 20px; padding-bottom: 10px; }
  body.account-redesign .account-nav a { gap: 6px; padding-inline: 9px; font-size: 12px; }
  body.account-redesign .account-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.account-redesign .account-overview { gap: 14px; }
  body.account-redesign .account-shortcuts { gap: 10px; }
  body.account-redesign .account-shortcut { gap: 10px; padding: 15px; }
  body.account-redesign .account-shortcut .account-metric { font-size: 20px; }
  html[data-theme] body.account-redesign :is(.account-panel, .settings-card, #favoritesView > .panel) { padding: 19px; }
  body.account-redesign .account-payment-details { margin: 18px -19px -19px; }
  body.account-redesign .account-payment-details summary { padding-inline: 19px; }
  body.account-redesign .account-payment-details > :not(summary) { margin-inline: 19px; }
  body.account-redesign .account-payment-details .table-scroll { max-width: calc(100% - 38px); }
  body.account-redesign .account-guest { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  body.account-redesign .account-guest-features { padding: 18px; }
  body.account-redesign .account-guest-mark { margin-bottom: 16px; }
  /* Keep native table structure, with scrolling restricted to its own panel. */
  body.account-redesign .data-table, body.account-redesign #favoritesView .data-table { display: table; }
  body.account-redesign .data-table thead { display: table-header-group; position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
  body.account-redesign .data-table tbody { display: table-row-group; }
  body.account-redesign .data-table tr { display: table-row; }
  body.account-redesign .data-table td { display: table-cell; }
  body.account-redesign .data-table td::before { display: none; }
}
@media (max-width: 520px) {
  body.account-redesign .account-heading { flex-wrap: wrap; gap: 12px; }
  body.account-redesign .account-heading h1 { font-size: 26px; }
  body.account-redesign .account-heading p:not(.eyebrow) { font-size: 13px; }
  body.account-redesign .account-heading > a { min-height: 36px; }
  body.account-redesign .account-profile { flex-wrap: wrap; gap: 11px; }
  body.account-redesign .account-avatar { width: 42px; height: 42px; border-radius: 10px; font-size: 16px; }
  body.account-redesign .account-identity { flex-basis: calc(100% - 58px); }
  body.account-redesign #accountName { font-size: 15px; }
  body.account-redesign #settingsEmail { font-size: 12px; }
  body.account-redesign .account-role { max-width: 100%; margin-left: 53px; padding: 3px 7px; font-size: 11px; }
  body.account-redesign .account-nav { gap: 5px; }
  body.account-redesign .account-nav a { min-height: 39px; padding: 8px; }
  body.account-redesign .account-nav .ui-icon { width: 16px; height: 16px; }
  body.account-redesign .account-shortcuts { grid-template-columns: minmax(0, 1fr); }
  body.account-redesign .account-shortcut { padding: 14px 16px; }
  body.account-redesign .account-section-heading h2 { font-size: 18px; }
  body.account-redesign .account-referral-feature { align-items: flex-start; gap: 12px; }
  body.account-redesign .account-referral-feature h2 { font-size: 18px; }
  body.account-redesign .account-referral-feature > .ui-icon, body.account-redesign .account-referral-feature > .account-feature-icon { width: 40px; height: 40px; padding: 10px; }
  body.account-redesign .account-referral-input { flex-wrap: wrap; }
  body.account-redesign .account-referral-input input { flex-basis: 100%; }
  body.account-redesign .account-referral-input button { width: 100%; }
  body.account-redesign .account-guest h1 { font-size: 24px; }
  body.account-redesign .account-guest #guestSignIn { width: 100%; }
  body.account-redesign .notification-item { flex-direction: column; gap: 12px; }
  body.account-redesign .account-empty { min-height: 220px; padding: 24px 10px; }
  body.account-redesign .account-help-row { gap: 4px 16px; }
  body.account-redesign .theme-miniature { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  body.account-redesign :is(.account-shortcut, .account-nav a, .theme-choice button, .account-link) { transition: none; }
}

/* Integration refinements for the existing shell. */
body.account-redesign .account-payment-details summary::before { content:none; }
body.account-redesign .account-help-row > span { display:inline-flex; align-items:center; gap:8px; }
body.account-redesign .account-guest-features h2 { margin:0; font-size:14px; line-height:1.5; }
body.account-redesign :is(#settingsTitle,#favoritesTitle,#guestAccountTitle):focus { outline:none; }
body.account-redesign :is(.settings-card,.account-panel) { animation:none; }

body.account-redesign .account-loading { padding:32px; border:1px solid var(--border); border-radius:16px; }
body.account-redesign .account-loading p { color:var(--muted); }
