/* ===========================================================
   AnroMark — AI Hardware Performance Ladder
   Style: "PassMark classic chart" — dark app bar, tier colour band with
   tier tabs, one dense horizontal-bar ranking table (TPS + TTFT + price
   performance) as the only first-layer content. Filters collapse into a
   row, the compare tool is a second view, analytics is a slide-in drawer.
   Colour tokens come from style.css.
   =========================================================== */

.page-anromark { background: #F4F6F9; }
.page-anromark .ambience { display: none; }
.page-anromark section { padding: 0; margin: 0; }

:root {
  /* Anrotec brand: logo gold (primary) + deep navy (text / app bar). No blue anywhere. */
  --am-navy: #0A2540;
  --am-navy-2: #0E3466;
  --am-band: #F8B500;
  --am-band-2: #E9A600;
  --am-band-3: #D18F00;
  --am-score: #B47C00;
  --am-gold: #F8B500;
  --am-row-alt: #F7F9FC;
  /* Vendor bars: one gold hue, five lightness steps (dark amber → pale gold) */
  --am-bar-nv: #7A4E00; --am-bar-amd: #A86D00; --am-bar-intel: #D18F00;
  --am-bar-apple: #F8B500; --am-bar-qcom: #FFD466; --am-bar-other: #FFE9B3;
  /* TTFT: navy for contrast against the gold ramp */
  --am-ttft: #0A2540;
  --am-spring: cubic-bezier(.22, 1.35, .36, 1);
}

/* ---------- App bar (Anrotec navy) ---------- */
.am-bar { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, var(--am-navy) 0%, var(--am-navy-2) 100%); color: #fff; box-shadow: 0 2px 12px rgba(10,37,64,.28); }
.am-bar-inner { display: flex; align-items: center; gap: 22px; padding: 0 24px; height: 56px; max-width: 1480px; margin: 0 auto; }
.am-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.am-brand img { width: 30px; height: 30px; border-radius: 6px; }
.am-brand strong { font-size: 21px; letter-spacing: -.02em; font-weight: 700; }
.am-brand .am-brand-sub { color: var(--c-gold); }
.am-bar-nav { display: flex; gap: 2px; margin-left: 6px; position: relative; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.am-bar-nav a, .am-bar-nav button {
  position: relative; z-index: 1; font: inherit; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); text-decoration: none;
  padding: 7px 12px; border-radius: 9px; background: transparent; border: 0; cursor: pointer; transition: color .2s, transform .15s var(--am-spring);
}
.am-bar-nav a:hover, .am-bar-nav button:hover { color: #fff; }
.am-bar-nav a:active, .am-bar-nav button:active { transform: scale(.95); }
.am-bar-nav .active { color: #fff; }
.am-bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.am-bar .lang-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.am-bar .lang-toggle button { color: rgba(255,255,255,.8); }
.am-bar .lang-toggle button.active { background: #fff; color: var(--am-navy); }
.am-exit { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); }
.am-exit:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Tier band (Anrotec gold with soft glow) ---------- */
.am-band { position: relative; overflow: hidden; color: var(--am-navy); background: linear-gradient(120deg, #FFD15C 0%, #FAC53A 55%, #F5B91F 100%); }
.am-band::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); pointer-events: none; }
.am-band::after { content: ''; position: absolute; left: -10%; bottom: -70%; width: 45%; height: 160%; background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); pointer-events: none; }
.am-band-inner { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 26px 24px 20px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.am-band h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.am-band h1 em, .am-band h1 .hl { font-style: normal; color: #fff; }
.am-band p { margin: 6px 0 0; font-size: 14.5px; color: rgba(10,37,64,.78); max-width: 760px; }
.am-band-stats { margin-left: auto; display: flex; gap: 22px; }
.am-band-stats div { font-size: 12.5px; color: rgba(10,37,64,.68); }
.am-band-stats b { display: block; font-size: 20px; color: var(--am-navy); font-family: var(--ff-mono); font-weight: 600; }

/* ---------- Tier tabs strip: liquid-glass segmented control ---------- */
.am-tiers-strip { position: relative; z-index: 1; padding: 0 24px 16px; }
.am-tiers {
  position: relative; max-width: 1432px; margin: 0 auto; padding: 5px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-radius: 16px; background: linear-gradient(120deg, rgba(248,181,0,.94), rgba(217,152,0,.94)); border: 1px solid rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(122,78,0,.22);
}
.am-tiers::-webkit-scrollbar { display: none; }
.am-tiers button {
  position: relative; z-index: 1; flex: 1 1 auto; font: inherit; font-size: 14.5px; font-weight: 700; color: rgba(10,37,64,.72); background: transparent; border: 0; cursor: pointer;
  padding: 10px 18px 9px; border-radius: 12px; white-space: nowrap; text-align: left; line-height: 1.2;
  transition: color .25s, transform .18s var(--am-spring);
}
.am-tiers button small { display: block; font-size: 11.5px; font-weight: 500; color: rgba(10,37,64,.55); margin-top: 3px; font-family: var(--ff-mono); transition: color .25s; }
.am-tiers button:hover { color: var(--am-navy); }
.am-tiers button:active { transform: scale(.96); }
.am-tiers button.active { color: var(--am-navy); }
.am-tiers button.active small { color: var(--c-text-soft); }

/* Sliding liquid indicator (positioned by anromark.js) */
.am-liquid {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(10,37,64,.06), 0 6px 16px rgba(10,37,64,.22), 0 1px 2px rgba(10,37,64,.12);
  transition: left .55s var(--am-spring), width .55s var(--am-spring), top .35s var(--am-spring), height .35s var(--am-spring), opacity .2s;
}
.am-liquid::after { content: ''; position: absolute; inset: 1px 1px 55% 1px; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0)); pointer-events: none; }
.am-liquid.no-anim { transition: none; }
.am-liquid.dark { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 14px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); }
.am-liquid.dark::after { inset: 1px 1px 50% 1px; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)); }
.am-liquid.tint { background: rgba(255,255,255,.92); border-color: rgba(248,181,0,.22); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(248,181,0,.18), 0 1px 2px rgba(10,37,64,.08); }
.am-liquid.tint::after { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0)); }

/* ---------- Page: single column, chart is the hero ---------- */
.am-page { max-width: 1480px; margin: 0 auto; padding: 22px 24px 40px; }
.am-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--c-text-soft); }
.am-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.am-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--c-border); background: #F4F7FB; }
.am-filters .am-chip { margin-left: auto; }
.am-filters[hidden] { display: none; }
.am-declare-details { border-top: 1px solid var(--c-border); background: #FBFCFE; }
.am-declare-details summary { cursor: pointer; padding: 10px 16px; font-size: 12.5px; font-weight: 600; color: var(--c-text-soft); list-style: none; }
.am-declare-details summary::-webkit-details-marker { display: none; }
.am-declare-details summary::before { content: '▸ '; }
.am-declare-details[open] summary::before { content: '▾ '; }
.am-declare { padding: 0 16px 14px; font-size: 12.5px; line-height: 1.6; color: var(--c-text-soft); }
.am-declare b { color: var(--c-text); }

/* ---------- Main chart card ---------- */
.am-main { min-width: 0; }
.am-chart-card { background: #fff; border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; }
.am-metric-tabs {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 14px 18px 0; padding: 4px; border-radius: 13px;
  background: rgba(248,181,0,.08); border: 1px solid rgba(248,181,0,.14);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.am-metric-tabs button {
  position: relative; z-index: 1; font: inherit; font-size: 14px; font-weight: 600; color: var(--c-text-soft); padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  transition: color .25s, transform .18s var(--am-spring);
}
.am-metric-tabs button:hover { color: var(--c-text); }
.am-metric-tabs button:active { transform: scale(.97); }
.am-metric-tabs button.active { color: var(--am-score); }
.am-chart-head { text-align: center; padding: 16px 18px 6px; }
.am-chart-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--c-text); }
.am-chart-head p { margin: 4px 0 0; font-size: 13px; color: var(--c-text-soft); }

.am-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #FBFCFE; }
.am-search { position: relative; flex: 1 1 200px; max-width: 280px; }
.am-search input { width: 100%; padding: 7px 10px 7px 32px; border-radius: 7px; border: 1px solid var(--c-border); background: #fff; font: inherit; font-size: 13.5px; color: var(--c-text); }
.am-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--c-text-mute); }
.am-select {
  padding: 7px 28px 7px 10px; border-radius: 7px; border: 1px solid var(--c-border); background: #fff; font: inherit; font-size: 13.5px; color: var(--c-text); appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236B7B92' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.am-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.am-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 7px; border: 1px solid var(--c-border); background: #fff; color: var(--c-text-soft); cursor: pointer; }
.am-chip.active { background: #FFF7E0; border-color: var(--am-band); color: var(--am-score); }
.am-chip.primary { background: var(--am-band); border-color: var(--am-band-2); color: var(--am-navy); }
.am-chip.primary:hover { background: var(--am-band-2); }

/* ---------- Ranking table ---------- */
.am-table-wrap { overflow-x: auto; }
.am-ladder { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.am-ladder th { text-align: left; padding: 10px 12px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-soft); border-bottom: 2px solid var(--c-border); white-space: nowrap; background: #fff; }
.am-ladder th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--c-text-mute); }
.am-ladder th.num, .am-ladder td.num { text-align: right; }
.am-ladder th.ctr, .am-ladder td.ctr { text-align: center; }
.am-ladder td { padding: 7px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.am-ladder tbody tr.r:nth-child(4n+1) td { background: var(--am-row-alt); }
.am-ladder tbody tr.r { cursor: pointer; }
.am-ladder tbody tr.r:hover td { background: #FFF7E0; }
.am-ladder tbody tr.r.open td { background: #FFF1CC; border-bottom-color: transparent; }
.am-ladder tbody tr.r.mine td:first-child { box-shadow: inset 4px 0 0 var(--c-gold); }
.am-rank { font-family: var(--ff-mono); font-weight: 600; color: var(--c-text-soft); width: 44px; }
.am-rank .am-you { display: block; font-size: 10.5px; color: var(--c-gold-text); font-family: var(--ff-sans); white-space: nowrap; }
.am-hw { min-width: 260px; }
.am-hw .t { font-weight: 600; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.am-hw .s { font-size: 12px; color: var(--c-text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.am-vdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.am-badge { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.am-badge.verified { background: #E3F7EA; color: #146C2E; border-color: #B7E4C5; }
.am-badge.prelim { background: #F1F4F8; color: var(--c-text-mute); border-color: var(--c-border); }
.am-badge.value { background: var(--c-gold-soft); color: var(--c-gold-text); border-color: #F5DFA0; }

.am-bar-cell { min-width: 220px; }
.am-hbar { position: relative; height: 14px; background: #EEF1F5; border-radius: 3px; overflow: hidden; }
.am-hbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--am-bar-other); }
.am-hbar i.v-nv { background: var(--am-bar-nv); } .am-hbar i.v-amd { background: var(--am-bar-amd); } .am-hbar i.v-intel { background: var(--am-bar-intel); }
.am-hbar i.v-apple { background: var(--am-bar-apple); } .am-hbar i.v-qcom { background: var(--am-bar-qcom); }
.am-hbar.ttft { height: 10px; }
.am-hbar.ttft i { background: var(--am-ttft); }
.am-score { font-family: var(--ff-mono); font-weight: 600; font-size: 15px; color: var(--am-score); white-space: nowrap; width: 90px; }
.am-score small { display: block; font-family: var(--ff-sans); font-weight: 500; font-size: 11px; color: var(--c-text-mute); }
.am-ttft-cell { width: 150px; }
.am-ttft-val { font-family: var(--ff-mono); font-weight: 600; font-size: 14px; color: #B26A00; white-space: nowrap; }
.am-price { font-family: var(--ff-mono); color: var(--c-text-soft); white-space: nowrap; }
.am-price b { color: var(--c-text); font-weight: 600; }
.am-samples { color: var(--c-text-soft); white-space: nowrap; }
.am-act button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--c-border); background: #fff; color: var(--am-score); cursor: pointer; display: inline-grid; place-items: center; }
.am-act button:hover { border-color: var(--am-band); background: #FFF7E0; }
.am-empty { padding: 40px; text-align: center; color: var(--c-text-mute); }

/* ---------- Disclosure panel (row detail) ---------- */
tr.am-panel-row td { padding: 0 12px 14px; background: #FFF1CC; }
.am-panel { background: #fff; border: 1px solid #F5DFA0; border-radius: 8px; padding: 12px 16px 14px; animation: amdrop .18s var(--ease); }
@keyframes amdrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.am-panel h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text); }
.am-panel h4 .zh { text-transform: none; color: var(--c-text-soft); font-weight: 500; }
.am-panel-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; }
.am-panel-col { padding: 0 16px; border-left: 1px solid var(--c-border); }
.am-panel-col:first-child { padding-left: 0; border-left: 0; }
.am-panel-col h5 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft); }
.am-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; font-size: 13px; }
.am-kv div span { display: block; color: var(--c-text-mute); font-size: 11.5px; }
.am-kv div b { font-weight: 600; color: var(--c-text); font-size: 13px; }
.am-panel-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.am-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 7px; cursor: pointer; border: 1px solid var(--c-border-strong); background: #fff; color: var(--c-text); }
.am-btn:hover { border-color: var(--am-band); color: var(--am-score); }
.am-btn.primary { background: var(--am-band); border-color: var(--am-band-2); color: var(--am-navy); }
.am-btn.primary:hover { background: var(--am-band-2); color: var(--am-navy); }
.am-btn[disabled] { opacity: .5; cursor: default; }

/* ---------- Compare view ---------- */
.am-compare-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--c-border); background: #FBFCFE; }
.am-compare-pick .am-select { min-width: 230px; }
.am-cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.am-cmp-table th, .am-cmp-table td { padding: 9px 14px; border-bottom: 1px solid #EEF1F5; text-align: left; vertical-align: top; }
.am-cmp-table thead th { background: #E9EEF5; font-size: 12.5px; letter-spacing: .03em; }
.am-cmp-table tr.sec td { background: var(--am-row-alt); font-weight: 700; color: var(--c-text); letter-spacing: .02em; }
.am-cmp-table td.dim { color: var(--c-text-soft); white-space: nowrap; }
.am-cmp-table td.diff { color: var(--am-score); font-weight: 600; }
.am-cmp-table td.diff.warn { color: #B45309; }
.am-cmp-actions { padding: 12px 14px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--c-border); }

/* ---------- Analytics drawer (second layer) ---------- */
.am-scrim { position: fixed; inset: 0; background: rgba(10,37,64,.35); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.am-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 95; background: #fff;
  box-shadow: -12px 0 40px rgba(10,37,64,.2); transform: translateX(100%); transition: transform .25s var(--ease);
  display: flex; flex-direction: column;
}
body.am-drawer-open .am-scrim { opacity: 1; pointer-events: auto; }
body.am-drawer-open .am-drawer { transform: none; }
.am-drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--am-navy); color: #fff; }
.am-drawer-head h3 { margin: 0; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.am-drawer-close { margin-left: auto; width: 32px; height: 32px; border-radius: 7px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 18px; }
.am-drawer-body { padding: 14px 18px 18px; overflow-y: auto; }
.am-step { font-weight: 700; font-size: 13.5px; color: var(--c-text); margin: 12px 0 6px; }
.am-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-row2 label { font-size: 12.5px; color: var(--c-text-soft); display: block; margin-bottom: 4px; }
.am-drawer .am-select { width: 100%; }
.am-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.am-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text); padding: 6px 10px; border: 1px solid var(--c-border); border-radius: 7px; background: #fff; }
.am-check input { accent-color: var(--am-band); }
.am-chart-title { text-align: center; font-weight: 700; font-size: 13.5px; margin: 10px 0 4px; color: var(--c-text); }
.am-chart { width: 100%; height: auto; display: block; }
.am-chart .bar { fill: var(--am-band); }
.am-chart .bar.alt { fill: #FFD466; }
.am-chart text { font-family: var(--ff-sans); fill: var(--c-text-soft); font-size: 11px; }
.am-chart .val { fill: var(--c-text); font-weight: 600; }
.am-chart .grid { stroke: var(--c-border); stroke-width: 1; }
.am-chart .axis { stroke: var(--c-border-strong); }
.am-rail-actions { display: flex; gap: 8px; margin-top: 12px; }
.am-rail-actions .am-btn { flex: 1 1 0; text-align: center; }

/* ---------- API-edition additions ---------- */
.am-demo { margin-bottom: 12px; padding: 10px 14px; border-radius: 8px; background: #FFF4D6; border: 1px solid #F5DFA0; color: #7A5200; font-size: 13px; }
.am-demo[hidden] { display: none; }
.am-badge.community { background: #E3F7EA; color: #146C2E; border-color: #B7E4C5; }
.am-vdot.v-nv { background: var(--am-bar-nv); } .am-vdot.v-amd { background: var(--am-bar-amd); } .am-vdot.v-intel { background: var(--am-bar-intel); }
.am-vdot.v-apple { background: var(--am-bar-apple); } .am-vdot.v-qcom { background: var(--am-bar-qcom); } .am-vdot.v-other { background: var(--am-bar-other); }
.am-tiers button.empty { opacity: 1; }
.am-tiers button.empty.active { opacity: 1; }
.am-chip.primary { background: linear-gradient(180deg, #FFC533, var(--am-band)); border-color: var(--am-band-2); color: var(--am-navy); box-shadow: 0 2px 8px rgba(248,181,0,.35); }
.am-btn.primary { background: linear-gradient(180deg, #FFC533, var(--am-band)); border-color: var(--am-band-2); color: var(--am-navy); }
.am-legend i, .am-side-legend i { box-shadow: inset 0 0 0 1px rgba(10,37,64,.08); }
.am-ttft-val { color: var(--am-navy); }
.am-drawer-head { background: linear-gradient(90deg, var(--am-navy), var(--am-navy-2)); }
@media (prefers-reduced-motion: reduce) { .am-liquid, .am-tiers button, .am-metric-tabs button, .am-bar-nav button { transition: none !important; } }
.am-seats { font-family: var(--ff-mono); color: var(--c-text-soft); white-space: nowrap; }
.am-loading { color: var(--c-text-mute); animation: ampulse 1.2s ease-in-out infinite; }
@keyframes ampulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.am-muted { color: var(--c-text-mute); font-size: 12.5px; }
.am-kv-nested { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--c-border); }
.am-kv-nested > span { display: block; font-size: 11.5px; color: var(--c-text-mute); margin-bottom: 4px; }
.am-logs-title { margin: 14px 0 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft); }
.am-logs { width: 100%; border-collapse: collapse; font-size: 12px; font-family: var(--ff-mono); }
.am-logs th, .am-logs td { padding: 4px 8px; border-bottom: 1px solid #EEF1F5; text-align: left; white-space: nowrap; }
.am-logs th { color: var(--c-text-mute); font-weight: 600; }
.am-panel-actions a.am-btn { text-decoration: none; display: inline-block; }
.am-scatter .dot { fill-opacity: .85; stroke: #fff; stroke-width: 1; }
.am-scatter .dot.v-nv { fill: var(--am-bar-nv); } .am-scatter .dot.v-amd { fill: var(--am-bar-amd); } .am-scatter .dot.v-intel { fill: var(--am-bar-intel); }
.am-scatter .dot.v-apple { fill: var(--am-bar-apple); } .am-scatter .dot.v-qcom { fill: var(--am-bar-qcom); } .am-scatter .dot.v-other { fill: var(--am-bar-other); }
.am-scatter .dot:hover { fill-opacity: 1; stroke: var(--am-navy); }
.am-scatter .axis-label { font-size: 10.5px; fill: var(--c-text-mute); }
.am-legend-drawer { justify-content: flex-start; margin-top: 6px; }
#am-an-tab { width: 100%; margin-bottom: 4px; }

/* ---------- Footer strip ---------- */
.am-foot { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--c-text-mute); flex-wrap: wrap; }
.am-foot a { color: var(--c-text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .am-bar-nav { display: none; }
  .am-band h1 { font-size: 24px; }
  .am-band-stats { margin-left: 0; }
  .am-legend { display: none; }
  .am-panel-grid { grid-template-columns: 1fr; gap: 14px; }
  .am-panel-col { padding: 0; border-left: 0; }
}

/* ---------- Brand gold theme: fixed-colour logo and links ---------- */
.am-brand, .am-brand:hover, .am-brand:hover strong { color: #fff; text-decoration: none; }
.am-brand .am-brand-sub, .am-brand:hover .am-brand-sub { color: var(--am-gold); }
.page-anromark a { color: var(--am-score); }
.page-anromark a:hover { color: #8A5E00; }
.page-anromark .am-bar a, .page-anromark .am-bar a:hover { color: inherit; }
.am-tiers button.active { color: var(--am-navy); }
.am-liquid { background: rgba(255,255,255,.92); border-color: #fff; }
.am-search input:focus, .am-select:focus { outline: none; border-color: var(--am-band); box-shadow: 0 0 0 3px rgba(248,181,0,.25); }
.am-metric-tabs { background: rgba(248,181,0,.14); border-color: rgba(248,181,0,.32); }
.am-hbar.ttft i { background: var(--am-ttft); opacity: .85; }
.am-scatter .dot { stroke: rgba(10,37,64,.35); }

/* ---------- Depth pass (+30%): stronger highlights, deeper shadows, bar relief ---------- */
.am-bar { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 4px 18px rgba(10,37,64,.42); }
.am-band { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -22px 34px -24px rgba(122,78,0,.42); }
.am-band::before { background: radial-gradient(closest-side, rgba(255,255,255,.34), rgba(255,255,255,0) 70%); }
.am-tiers {
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -1.5px 0 rgba(122,78,0,.32), 0 12px 32px rgba(122,78,0,.32), 0 2px 4px rgba(122,78,0,.18);
}
.am-liquid {
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -1.5px 0 rgba(10,37,64,.10), 0 10px 24px rgba(10,37,64,.30), 0 2px 5px rgba(10,37,64,.16);
}
.am-liquid::after { inset: 1px 1px 50% 1px; background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0)); }
.am-liquid.tint { box-shadow: inset 0 1.5px 0 #fff, 0 8px 22px rgba(180,124,0,.26), 0 2px 4px rgba(10,37,64,.10); }
.am-liquid.dark { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), 0 8px 20px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.2); }
.am-metric-tabs { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(180,124,0,.18), 0 4px 14px rgba(180,124,0,.12); }
.am-chart-card { box-shadow: 0 14px 36px rgba(10,37,64,.10), 0 2px 4px rgba(10,37,64,.06); }
.am-chip.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 5px 14px rgba(248,181,0,.5), 0 1px 2px rgba(122,78,0,.25); }
.am-btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 5px 14px rgba(248,181,0,.42); }
.am-chip, .am-btn, .am-select, .am-search input { box-shadow: 0 1px 2px rgba(10,37,64,.06), inset 0 1px 0 rgba(255,255,255,.8); }
.am-hbar { box-shadow: inset 0 1px 2px rgba(10,37,64,.10); }
.am-hbar i { background-image: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 55%, rgba(0,0,0,.10)); box-shadow: 0 1px 3px rgba(10,37,64,.22), inset 0 -1px 0 rgba(0,0,0,.08); }
.am-badge { box-shadow: 0 1px 2px rgba(10,37,64,.08), inset 0 1px 0 rgba(255,255,255,.6); }
.am-panel { box-shadow: 0 10px 28px rgba(10,37,64,.12), 0 1px 2px rgba(10,37,64,.06); }
.am-drawer { box-shadow: -16px 0 48px rgba(10,37,64,.28); }
.am-exit, .am-bar .lang-toggle { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.22); }

/* ---------- Experiment: brand-colour mode (CPU brand → GPU brand per row) ---------- */
/* Official brand colours (verified 2026-09-12): NVIDIA Green #76B900 (PMS 376C) · AMD Red #ED1C24 · Intel Classic Blue #0068B5 (PMS 660C, 2020 rebrand) · Apple Black #1D1D1F · Qualcomm Blue #3253DC (PMS 2728C) */
body.am-brand-mode { --am-bar-nv: #76B900; --am-bar-amd: #ED1C24; --am-bar-intel: #0068B5; --am-bar-apple: #1D1D1F; --am-bar-qcom: #3253DC; --am-bar-other: #9AA7B8; }
body.am-brand-mode .am-ladder tbody tr.r td { background: linear-gradient(90deg, var(--am-tint-a, transparent), var(--am-tint-b, transparent)); }
body.am-brand-mode .am-ladder tbody tr.r:hover td { filter: brightness(.97); }
body.am-brand-mode .am-ladder tbody tr.r.open td { box-shadow: inset 0 0 0 999px rgba(10,37,64,.04); }
body.am-brand-mode .am-vdot { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 1px 2px rgba(10,37,64,.25); }
body.am-brand-mode .am-score { color: var(--am-navy); }
.am-legend-brand { display: none; }
body.am-brand-mode .am-legend-brand { display: inline; }
body.am-brand-mode .am-legend-gold { display: none; }
#am-theme.active { background: var(--am-navy); border-color: var(--am-navy); color: #fff; }

/* TPS figure always matches the TTFT figure colour (navy), in both colour modes */
.am-score, body.am-brand-mode .am-score { color: var(--am-navy); }

/* Active-filter affordances */
.am-fcount { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--am-navy); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.am-fcount:empty { display: none; }
.am-filtered-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(10,37,64,.12); color: var(--am-navy); font-size: 10.5px; line-height: 16px; font-weight: 700; vertical-align: 1px; }

/* v1.6: model tag per row, v1.5: signer + flag */
.am-model { display: inline-block; font-family: var(--ff-mono); font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: rgba(10,37,64,.08); color: var(--am-navy); border: 1px solid rgba(10,37,64,.12); vertical-align: 1px; white-space: nowrap; }
.am-signer { color: var(--c-text-soft); font-weight: 600; }
.am-flag { font-size: 13px; line-height: 1; vertical-align: -1px; }

/* Row title: name keeps its width, chips wrap onto the next line instead of squeezing the name */
.am-hw .t { flex-wrap: wrap; row-gap: 4px; }
.am-hw .t > .am-name-text { flex: 1 1 auto; min-width: 0; }
.am-model { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }

/* Brand: wordmark only, no icon */
.am-brand img { display: none; }
.am-brand { gap: 0; }

/* Primary / secondary metric columns (swap with the TPS / TTFT tabs) */
.am-hbar.ttft-primary { height: 14px; }
.am-hbar.ttft-primary i { background: var(--am-ttft); }
.am-metric-mini { width: 118px; }
.am-mini-val { font-family: var(--ff-mono); font-size: 13px; font-weight: 600; color: var(--c-text-soft); white-space: nowrap; }
.am-mini-val small { font-family: var(--ff-sans); font-size: 10.5px; font-weight: 500; color: var(--c-text-mute); }
.am-hbar.mini { height: 6px; margin-top: 4px; }
.am-hbar.ttft.mini i { background: var(--am-ttft); }
.am-score.ttft { color: var(--am-navy); }
.am-ladder th.am-secondary { color: var(--c-text-mute); }

/* Merged hardware cell: brand · model on the first line */
.am-brand-lead { font-weight: 700; color: var(--c-text); }
.am-brand-lead.wl { color: #7A5200; }
.am-sep { color: var(--c-text-mute); font-weight: 400; }
.am-ladder th small { text-transform: none; }

/* Row title: dot and name always share the first line; the name wraps inside its own box, chips wrap after it */
.am-hw .t > .am-vdot { flex: 0 0 auto; }
.am-hw .t > .am-name-text { flex: 1 1 0; min-width: 45%; }
.am-hw .t > .am-model, .am-hw .t > .am-badge { flex: 0 0 auto; }
