/* 现货雷达亮暗主题：暖白墨绿与深绿青柠共用布局，覆盖库存、原生控件、状态与弹窗。 */
:root {
  color-scheme: light;
  --paper: #f5f5ed;
  --white: #fffefa;
  --ink: #1d392f;
  --muted: #64705e;
  --line: #dde1d5;
  --lime: #d2ee75;
  --lime-pale: #edf4d6;
  --danger: #9b4928;
  --subtle: #647158;
  --header: #fffefa8c;
  --soft-surface: #f0f2e9;
  --rule: #e7eadd;
  --hover-bg: #f8faef;
  --hover-border: #a9bd87;
  --empty-bg: #fffefa4d;
  --accent-ink: #52752c;
  --accent-text: #1d392f;
  --accent-muted: #435326;
  --accent-border: #bed86e;
  --action-border: #dbe7c0;
  --badge-ink: #557328;
  --badge-bg: #ecf3d5;
  --success: #526e33;
  --focus: #47713d;
  --live: #749a33;
  --live-halo: #e7edda;
  --ovh-ink: #315b72;
  --ovh-bg: #e5edf0;
  --hetzner-ink: #a24d39;
  --hetzner-bg: #f3e7df;
  --mevspace-ink: #756249;
  --mevspace-bg: #eeeade;
  --warning-bg: #fcf6e7;
  --warning-border: #e4d5b4;
  --warning-text: #8f6129;
  --price-bg: #f0f5e3;
  --price-line: #dce5c7;
  --button-bg: #1d392f;
  --button-text: #fffefa;
  --button-hover: #34513b;
  --brand-bg: #1d392f;
  --dialog-border: #cad4b8;
  --dialog-shadow: #18322630;
  --dialog-backdrop: #172c245f;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2368755e'/%3E%3C/svg%3E");
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
/* 深色保留同一套青柠强调；正文与次要文字同时提高对比，不反转品牌与价格卡的文字。 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10211b;
  --white: #172b22;
  --ink: #e4eddd;
  --muted: #b0bea7;
  --line: #34483b;
  --lime: #c5e76c;
  --lime-pale: #293f27;
  --danger: #edb98c;
  --subtle: #acbca0;
  --header: #13271f;
  --soft-surface: #1d3228;
  --rule: #314537;
  --hover-bg: #1f3628;
  --hover-border: #8fba64;
  --empty-bg: #172b2266;
  --accent-ink: #c5e76c;
  --accent-text: #182918;
  --accent-muted: #435326;
  --accent-border: #96b754;
  --action-border: #526a3e;
  --badge-ink: #d0e991;
  --badge-bg: #2e4426;
  --success: #c5e76c;
  --focus: #c5e76c;
  --live: #c5e76c;
  --live-halo: #304429;
  --ovh-ink: #b4d8e1;
  --ovh-bg: #263d41;
  --hetzner-ink: #edbdab;
  --hetzner-bg: #442f29;
  --mevspace-ink: #e0d0a7;
  --mevspace-bg: #3b3828;
  --warning-bg: #392e1d;
  --warning-border: #74572f;
  --warning-text: #e7c28b;
  --price-bg: #223820;
  --price-line: #466039;
  --button-bg: #c5e76c;
  --button-text: #172b22;
  --button-hover: #d7f19a;
  --brand-bg: #243d2d;
  --dialog-border: #4f6547;
  --dialog-shadow: #00000070;
  --dialog-backdrop: #050f0ccf;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23acbca0'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .38; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button svg, .search-field svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button { color: var(--ink); }
button, select, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: var(--accent-text); background: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 20px; background: var(--button-bg); color: var(--button-text); }
.skip-link:focus { top: 10px; }
.site-header { height: 88px; border-bottom: 1px solid var(--line); background: var(--header); }
.header-inner { max-width: 1344px; height: 100%; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 60px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; border-radius: 11px; background: var(--brand-bg); padding: 4px; }
.brand-mark svg { fill: none; stroke: var(--lime); stroke-width: 1.3; }
.brand-mark .radar-point { fill: var(--lime); stroke: none; }
.brand-name { font-size: 21px; font-weight: 650; letter-spacing: .5px; line-height: 1.1; }
.brand-name > span { display: block; margin-top: 7px; font: 9px/1 var(--mono); letter-spacing: 2.7px; }
.header-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-shrink: 0; }
.theme-picker { display: flex; align-items: center; gap: 7px; padding: 0 9px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.theme-picker svg { width: 16px; height: 16px; fill: none; stroke: var(--subtle); stroke-width: 1.4; stroke-linecap: round; }
.theme-picker select { width: 92px; padding: 0 16px 0 0; border: 0; color: var(--ink); background: transparent var(--select-arrow) no-repeat right center; appearance: none; cursor: pointer; font-size: 11px; }
.theme-picker:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.theme-picker select:focus-visible { outline: none; }
.nav-link { color: var(--muted); transition: color .15s; }
.nav-link:hover { color: var(--ink); }
.header-schedule { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--live-halo); flex-shrink: 0; }
.page-shell { max-width: 1344px; margin: 0 auto; padding: 38px 40px 0; }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 10px; font: 10px/1.5 var(--mono); letter-spacing: 1.65px; color: var(--subtle); }
.mini-cross { margin-right: 7px; font-size: 16px; }
h1 { margin: 0; font: 600 34px/1.3 var(--serif); letter-spacing: 1px; }
.intro-copy { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.sync-panel { border-left: 1px solid var(--line); padding-left: 24px; min-width: 270px; }
.sync-label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.sync-panel p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }
.sync-panel time { margin-left: 8px; color: var(--ink); font-family: var(--mono); }
.sync-panel .next-scan { margin-top: 3px; font-size: 10px; }
.sync-divider { padding: 0 8px; color: var(--line); }
.icon-button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; border-radius: 50%; transition: background .15s; }
.icon-button:hover { background: var(--lime-pale); }
.icon-button svg { width: 17px; height: 17px; }
#refresh-button { margin-left: auto; }
.is-refreshing svg { animation: spin 1s linear infinite; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-card { padding: 20px 22px 17px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
.stat-accent { background: var(--lime); border-color: var(--accent-border); color: var(--accent-text); }
.stat-accent .stat-label { color: var(--accent-text); }
.stat-label { margin: 0; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.stat-icon { color: var(--subtle); font: 19px var(--serif); }
.stat-accent .stat-icon { color: var(--accent-text); }
.stat-value { margin: 12px 0 8px; font: 42px/1 var(--serif); letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: 8px; color: var(--subtle); font: 13px var(--sans); letter-spacing: 0; }
.stat-price { font-size: 37px; }
.stat-price .currency-code { margin-left: 6px; font: 11px var(--mono); }
.stat-note { margin: 0; color: var(--subtle); font-size: 10px; }
.stat-accent .stat-note { color: var(--accent-muted); }
.recent-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
h2 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: .1px; }
.heading-tag { margin-left: 11px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; font-weight: 400; color: var(--subtle); vertical-align: middle; }
.text-button { padding: 0; border: 0; background: transparent; font-size: 11px; }
.text-button span { margin-left: 8px; font-size: 17px; }
.text-button:hover { color: var(--accent-ink); }
.recent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.recent-card { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 17px 18px 15px; width: 100%; transition: border-color .18s, transform .18s; }
.recent-card:hover { border-color: var(--hover-border); transform: translateY(-2px); }
.recent-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.provider-chip { display: inline-flex; align-items: center; gap: 5px; font: 10px/1.5 var(--mono); font-weight: 600; letter-spacing: .1px; }
.provider-glyph { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 4px; font-size: 9px; font-weight: 700; color: var(--ovh-ink); background: var(--ovh-bg); }
.provider-hetzner .provider-glyph { color: var(--hetzner-ink); background: var(--hetzner-bg); }
.provider-mevspace .provider-glyph { color: var(--mevspace-ink); background: var(--mevspace-bg); }
.event-pill { display: inline-block; font: 9px/1.7 var(--sans); padding: 0 6px; border-radius: 3px; color: var(--badge-ink); background: var(--badge-bg); }
.recent-card h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-card-spec { color: var(--muted); font-size: 11px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--rule); }
.recent-card-price { font: 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.recent-card-price small { font: 9px var(--sans); margin-left: 5px; color: var(--muted); }
.relative-time { font-size: 9px; color: var(--subtle); }
.recent-empty { grid-column: 1/-1; min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px dashed var(--line); border-radius: 8px; background: var(--empty-bg); }
.empty-radar { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; font: 29px var(--serif); color: var(--subtle); }
.recent-empty h3 { margin: 0 0 5px; font-size: 13px; font-weight: 500; }
.recent-empty p { margin: 0; font-size: 11px; color: var(--muted); }
.inventory-section { margin-top: 38px; }
.inventory-note { margin: 0; color: var(--subtle); font-size: 10px; }
.note-dot { padding: 0 7px; }
.inventory-panel { background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.inventory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 19px 21px 15px; }
.view-switch { display: flex; gap: 4px; padding: 4px; background: var(--soft-surface); border-radius: 6px; }
.view-switch button { background: transparent; border: 0; border-radius: 4px; padding: 7px 14px; font-size: 12px; white-space: nowrap; }
.view-switch button[aria-pressed="true"] { background: var(--button-bg); color: var(--button-text); }
.view-switch button span { display: inline-block; margin-left: 7px; font: 10px var(--mono); opacity: .65; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 11px; height: 37px; border-radius: 5px; width: 310px; }
.search-field:focus-within { border-color: var(--focus); }
.search-field svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--subtle); }
.search-field input { border: 0; width: 100%; min-width: 0; background: transparent; font-size: 12px; color: var(--ink); padding: 0; outline: none; }
input::placeholder { color: var(--subtle); }
.search-field kbd { font: 10px var(--mono); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; color: var(--subtle); }
.filter-grid { display: grid; grid-template-columns: 1.15fr .95fr .85fr 1fr .85fr 1.1fr auto; gap: 12px; align-items: end; padding: 0 21px 19px; }
.filter-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 10px; color: var(--subtle); }
.filter-grid select, .price-field { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); font-size: 11px; }
.filter-grid select { padding: 0 25px 0 9px; appearance: none; background-image: var(--select-arrow); background-position: right 10px center; background-repeat: no-repeat; }
.price-field { display: flex; align-items: center; padding: 0 8px; gap: 3px; }
.price-field input { width: 100%; min-width: 0; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 11px; outline: none; }
.price-field:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.price-field span { font: 9px var(--mono); color: var(--subtle); }
.reset-button { padding: 9px 0 8px 3px; white-space: nowrap; border: 0; background: transparent; font-size: 10px; color: var(--subtle); }
.reset-button:hover { text-decoration: underline; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 9px 21px; background: var(--soft-surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.results-bar p { margin: 0; color: var(--subtle); }
.results-bar #result-count { color: var(--accent-ink); }
.results-bar strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.inventory-table { border-collapse: collapse; width: 100%; min-width: 1000px; text-align: left; }
.inventory-table th { padding: 14px 14px 11px; font-size: 10px; color: var(--subtle); font-weight: 400; }
.inventory-table th:first-child, .inventory-table td:first-child { padding-left: 22px; }
.inventory-table th:last-child, .inventory-table td:last-child { padding-right: 22px; }
.inventory-table td { padding: 17px 14px; vertical-align: top; border-top: 1px solid var(--rule); font-size: 11px; }
.inventory-table tbody tr { transition: background .15s; }
.inventory-table tbody tr:hover { background: var(--hover-bg); }
.server-cell { width: 29%; min-width: 240px; }
.server-heading { display: flex; gap: 7px; align-items: center; margin-bottom: 6px; }
.server-name { font-size: 13px; font-weight: 600; text-align: left; background: transparent; border: 0; padding: 0; }
.server-name:hover { color: var(--accent-ink); }
.server-cpu { margin: 0 0 8px; color: var(--subtle); font-size: 10px; }
.server-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.server-meta .provider-chip { font-size: 9px; }
.server-meta .provider-glyph { width: 17px; height: 17px; font-size: 7px; }
.variant-tag { color: var(--subtle); font-size: 9px; }
.table-main { display: block; font-size: 12px; line-height: 1.7; font-weight: 500; font-variant-numeric: tabular-nums; }
.table-sub { display: block; font-size: 10px; color: var(--subtle); line-height: 1.8; }
.ram-value { font-family: var(--mono); font-size: 13px; letter-spacing: -.5px; }
.ram-value small { font: 9px var(--sans); margin-left: 3px; color: var(--subtle); }
.storage-cell { width: 16%; min-width: 155px; }
.country-line { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.country-code { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font: 8px/1.8 var(--mono); color: var(--subtle); }
.price-cell { min-width: 162px; }
.monthly-price { display: block; white-space: nowrap; font: 22px/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.monthly-price small { font: 9px var(--sans); margin-left: 3px; color: var(--subtle); }
.price-tax { font-size: 9px; color: var(--subtle); margin: 3px 0 7px; }
.fee-line { display: block; font-size: 9px; color: var(--subtle); line-height: 1.8; }
.fee-line b { font-weight: 400; color: var(--muted); }
.action-cell { width: 62px; text-align: right; }
.offer-link { display: inline-flex; align-items: center; justify-content: center; background: var(--lime-pale); width: 31px; height: 31px; border-radius: 5px; border: 1px solid var(--action-border); font-size: 19px; transition: background .15s; }
.offer-link:hover { background: var(--lime); color: var(--accent-text); }
.detail-link { display: block; border: 0; background: transparent; padding: 7px 0 0; font-size: 9px; margin-left: auto; color: var(--subtle); }
.detail-link:hover { color: var(--ink); }
.pagination { padding: 15px 21px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--subtle); }
.pagination p { margin: 0; }
.pagination > div { display: flex; align-items: center; gap: 16px; }
.page-button { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 15px; }
.page-button:hover:not(:disabled) { background: var(--lime-pale); }
.inventory-footnote { margin: 10px 0 0; font-size: 10px; color: var(--subtle); }
.inventory-footnote > span { color: var(--subtle); margin-right: 5px; }
.feedback { padding: 12px 16px; border: 1px solid var(--warning-border); background: var(--warning-bg); color: var(--warning-text); border-radius: 6px; margin-bottom: 16px; font-size: 12px; }
.feedback button { margin-left: 10px; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.inline-feedback { margin: 12px 20px; }
.loading-state { min-height: 200px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.loading-state p { margin: 13px 0 3px; font-size: 12px; }
.loading-state > span:last-child { font-size: 10px; color: var(--muted); }
.loading-indicator { width: 25px; height: 25px; border: 2px solid var(--line); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-state { text-align: center; padding: 39px 20px 36px; }
.empty-state h3 { margin: 14px 0 5px; font-size: 15px; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 12px; margin: 0 0 19px; }
.secondary-button { border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 7px 14px; font-size: 11px; }
.secondary-button:hover { background: var(--lime-pale); }
.sources-section { margin-top: 42px; }
.sources-section h2 { font-size: 17px; }
.source-interval { font-size: 10px; color: var(--subtle); }
.provider-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.provider-card { background: var(--soft-surface); border: 1px solid var(--line); border-radius: 6px; padding: 15px 17px; }
.provider-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.provider-status { font-size: 9px; color: var(--success); display: flex; align-items: center; gap: 5px; }
.provider-status::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.provider-status.degraded { color: var(--warning-text); }
.provider-status.pending { color: var(--subtle); }
.provider-card-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 15px; font-size: 10px; color: var(--subtle); }
.provider-card-bottom strong { color: var(--ink); font: 17px var(--serif); margin-right: 4px; }
.provider-stale { margin: 7px 0 0; color: var(--warning-text); font-size: 9px; }
.source-caption { margin: 12px 0 0; font-size: 10px; color: var(--subtle); }
.source-placeholder { grid-column: 1/-1; margin: 0; padding: 20px; text-align: center; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
.site-footer { max-width: 1264px; margin: 39px auto 0; padding: 21px 0 29px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--subtle); }
.site-footer > div { display: flex; align-items: center; gap: 22px; }
.footer-brand { color: var(--muted); font-size: 12px; font-weight: 600; }
.footer-brand span { margin-left: 7px; font: 8px var(--mono); letter-spacing: 1px; color: var(--subtle); }
.site-footer p, .site-footer > span { margin: 0; font-size: 10px; }
.mobile-inventory { display: none; }
.offer-dialog { width: min(760px, calc(100% - 32px)); max-height: min(90vh, 900px); margin: auto; padding: 0; border: 1px solid var(--dialog-border); border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 25px 90px var(--dialog-shadow); }
.offer-dialog::backdrop { background: var(--dialog-backdrop); backdrop-filter: blur(3px); }
.dialog-shell { padding: 25px 28px 28px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.dialog-header .eyebrow { margin: 0; }
.dialog-close { width: 33px; height: 33px; }
.dialog-title { font-size: 25px; margin: 14px 0 6px; }
.dialog-cpu { margin: 0; font-size: 13px; color: var(--muted); }
.dialog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dialog-specs { margin: 24px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.dialog-specs > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dialog-specs > div:nth-last-child(-n+3) { border-bottom: 0; }
.dialog-specs dt { color: var(--subtle); font-size: 10px; }
.dialog-specs dd { margin: 5px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.dialog-price-panel { padding: 18px 20px; border: 1px solid var(--price-line); background: var(--price-bg); border-radius: 6px; }
.dialog-price-head { display: flex; align-items: center; gap: 14px; }
.dialog-price-head .monthly-price { font-size: 32px; }
.dialog-price-head .price-tax { margin: 0; font-size: 10px; }
.dialog-fees { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 13px; }
.dialog-fees .fee-line { font-size: 11px; }
.dialog-fees .fee-line b { margin-left: 7px; }
.variants-heading { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; }
.variants-heading h3 { margin: 0; font-size: 14px; }
.variants-heading span { font-size: 10px; color: var(--muted); }
.variant-list { display: grid; gap: 10px; }
.variant-card { border: 1px solid var(--line); padding: 14px 16px; border-radius: 5px; }
.variant-main { display: flex; gap: 15px; align-items: center; justify-content: space-between; }
.variant-name { font-size: 12px; font-weight: 600; }
.variant-main .monthly-price { font-size: 21px; }
.variant-main > div:last-child { display: flex; align-items: center; gap: 12px; }
.variant-description { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.variant-fees { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 9px; font-size: 10px; color: var(--subtle); }
.variant-fees b { font-weight: 400; color: var(--muted); }
.dialog-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.dialog-footer p { margin: 0; font-size: 10px; color: var(--subtle); }
.primary-button { display: inline-flex; align-items: center; gap: 22px; border: 1px solid var(--button-bg); background: var(--button-bg); color: var(--button-text); border-radius: 5px; padding: 10px 18px; font-size: 12px; white-space: nowrap; }
.primary-button:hover { background: var(--button-hover); }
.dialog-fineprint { color: var(--subtle); font-size: 10px; margin: 13px 0 0; }
.dialog-loading { padding: 28px 0; display: flex; align-items: center; gap: 15px; }
.dialog-loading h2 { font-size: 17px; }
.dialog-error { padding: 24px 0; }
.dialog-error h2 { font-size: 18px; margin-bottom: 10px; }
.dialog-error p { font-size: 12px; color: var(--muted); }
.noscript-message { position: fixed; bottom: 20px; left: 20px; right: 20px; padding: 15px; background: var(--button-bg); color: var(--button-text); border-radius: 6px; z-index: 50; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1440px) { .page-shell { padding-top: 44px; } }
@media (max-width: 1200px) {
  .header-inner, .page-shell { padding-left: 28px; padding-right: 28px; }
  .site-footer { margin-left: 28px; margin-right: 28px; }
  .filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)) auto; row-gap: 13px; }
  .filter-grid label:nth-child(4) { grid-column: 1; }
  .reset-button { grid-row: 1/3; grid-column: 4; align-self: center; }
  .stat-card { padding-left: 17px; padding-right: 17px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 32px; }
  .header-nav { gap: 22px; }
  .sync-panel { min-width: 220px; padding-left: 18px; }
  .sync-panel .next-scan { max-width: 210px; }
  .sync-divider { padding: 0 5px; }
  .stats-grid { gap: 10px; }
  .stat-note { font-size: 9px; }
  .stat-value { font-size: 36px; }
  .stat-price { font-size: 31px; }
  .provider-card-top { align-items: flex-start; flex-direction: column; gap: 9px; }
  .provider-card-bottom { flex-wrap: wrap; gap: 3px; }
}
@media (max-width: 700px) {
  .site-header { height: 73px; }
  .header-inner { padding-left: 20px; padding-right: 20px; gap: 0; }
  .brand-mark { width: 37px; height: 37px; border-radius: 9px; }
  .brand-name { font-size: 18px; }
  .brand-name > span { font-size: 8px; letter-spacing: 2.2px; }
  .header-nav { display: none; }
  .header-schedule { display: none; }
  .header-actions { gap: 0; }
  .theme-picker { height: 34px; gap: 6px; padding: 0 8px; }
  .theme-picker select { width: 84px; font-size: 10px; }
  .page-shell { padding: 26px 20px 0; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 23px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: 30px; }
  .intro-copy { font-size: 12px; max-width: 330px; }
  .sync-panel { display: flex; flex-wrap: wrap; width: 100%; align-items: center; column-gap: 14px; row-gap: 4px; padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .sync-label { gap: 7px; font-size: 11px; width: 100%; }
  .sync-panel p { margin: 0; font-size: 10px; }
  .sync-panel .next-scan { max-width: none; margin-top: 0; font-size: 9px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .stat-card { padding: 15px 16px 13px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 37px; margin: 10px 0 8px; }
  .stat-price { font-size: 32px; }
  .stat-note { font-size: 9px; }
  .recent-section { margin-top: 29px; }
  .section-heading { gap: 10px; }
  h2 { font-size: 17px; }
  .heading-tag { margin-left: 5px; font-size: 8px; padding: 2px 5px; }
  .text-button { font-size: 10px; white-space: nowrap; }
  .text-button span { margin-left: 2px; font-size: 14px; }
  .recent-grid { display: flex; gap: 10px; overflow-x: auto; padding: 1px 1px 7px; margin: 0 -1px; scroll-snap-type: x mandatory; }
  .recent-card { flex: 0 0 80%; scroll-snap-align: start; }
  .recent-card:hover { transform: none; }
  .recent-empty { width: 100%; min-width: 100%; min-height: 116px; padding: 18px; justify-content: flex-start; gap: 13px; }
  .recent-empty p { font-size: 10px; }
  .recent-empty .empty-radar { width: 38px; height: 38px; flex-shrink: 0; font-size: 24px; }
  .inventory-section { margin-top: 28px; }
  .inventory-heading { display: block; }
  .inventory-note { margin-top: 7px; font-size: 9px; }
  .inventory-toolbar { flex-direction: column; align-items: stretch; gap: 14px; padding: 15px; }
  .view-switch { align-self: flex-start; }
  .view-switch button { padding: 7px 14px; font-size: 11px; }
  .search-field { width: 100%; height: 38px; }
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 15px 14px; }
  .filter-grid label:nth-child(4) { grid-column: auto; }
  .filter-grid label { font-size: 10px; }
  .filter-grid select, .price-field { height: 37px; font-size: 11px; }
  .reset-button { grid-column: 1/-1; grid-row: auto; justify-self: end; padding: 0; margin-top: -2px; font-size: 10px; }
  .results-bar { padding: 9px 15px; font-size: 9px; }
  #page-sync { font-size: 8px; white-space: nowrap; }
  .table-wrap { display: none; }
  .mobile-inventory { display: grid; }
  .mobile-card { padding: 17px 15px; border-bottom: 1px solid var(--line); }
  .mobile-card:last-child { border-bottom: 0; }
  .mobile-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .mobile-card .server-heading { margin: 9px 0 4px; }
  .mobile-card .server-name { font-size: 14px; }
  .mobile-card .server-cpu { font-size: 10px; margin-bottom: 12px; }
  .mobile-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .mobile-specs > div { display: flex; align-items: baseline; gap: 6px; }
  .mobile-specs .spec-label { color: var(--subtle); font-size: 9px; min-width: 24px; flex-shrink: 0; }
  .mobile-specs .spec-value { font-size: 10px; color: var(--muted); }
  .mobile-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
  .mobile-card .monthly-price { font-size: 26px; }
  .mobile-card .price-tax { margin: 2px 0 4px; font-size: 9px; }
  .mobile-card .fee-line { font-size: 9px; }
  .mobile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
  .mobile-order { display: inline-flex; gap: 10px; align-items: center; border-radius: 4px; border: 1px solid var(--action-border); padding: 6px 11px; background: var(--lime-pale); font-size: 10px; }
  .mobile-actions .detail-link { padding: 0; font-size: 10px; }
  .pagination { padding: 12px 15px; font-size: 9px; }
  .pagination > div { gap: 10px; }
  .inventory-footnote { font-size: 9px; line-height: 1.8; }
  .sources-section { margin-top: 30px; }
  .sources-section .section-heading { display: block; }
  .sources-section h2 { font-size: 16px; }
  .source-interval { display: inline-block; margin-top: 7px; font-size: 9px; }
  .provider-grid { grid-template-columns: 1fr; gap: 8px; }
  .provider-card { padding: 13px 15px; }
  .provider-card-top { flex-direction: row; align-items: center; }
  .provider-card-bottom { margin-top: 9px; }
  .source-caption { font-size: 9px; }
  .site-footer { margin: 28px 20px 0; padding-top: 17px; padding-bottom: 23px; align-items: flex-start; }
  .site-footer > div { display: block; }
  .footer-brand { font-size: 11px; }
  .footer-brand span { font-size: 7px; }
  .site-footer p { margin-top: 5px; font-size: 9px; }
  .site-footer > span { padding-top: 2px; font-size: 8px; }
  .dialog-shell { padding: 19px 18px 22px; }
  .dialog-title { font-size: 22px; }
  .dialog-specs { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 19px 0; }
  .dialog-specs > div { padding: 12px; }
  .dialog-specs > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .dialog-specs > div:nth-last-child(-n+2) { border-bottom: 0; }
  .dialog-price-panel { padding: 15px; }
  .dialog-fees { gap: 6px 15px; }
  .dialog-fees .fee-line { font-size: 10px; }
  .variant-card { padding: 12px; }
  .variant-main { gap: 8px; }
  .variant-name { font-size: 11px; }
  .variant-main .monthly-price { font-size: 19px; }
  .variant-main > div:last-child { gap: 8px; }
  .variant-fees { gap: 4px 12px; font-size: 9px; }
  .dialog-footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .dialog-footer .primary-button { width: 100%; justify-content: space-between; }
}
@media (max-width: 360px) {
  .header-inner, .page-shell { padding-left: 15px; padding-right: 15px; }
  .heading-tag { display: none; }
  .header-schedule { font-size: 9px; }
  .stat-card { padding-left: 12px; padding-right: 12px; }
  .stat-price { font-size: 28px; }
  .stat-note { font-size: 8px; }
  .pagination > div { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
