/* FitLocally: one stylesheet, light and dark. Quiet, product-page style: white space, system type, one blue. */
:root {
  --bg: #ffffff; --alt: #f5f5f7; --card: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --faint: #737378; --line: #d2d2d7;
  --link: #0066cc; --blue: #0071e3; --blue-ink: #ffffff; --seg: #e8e8ed; --seg-on: #ffffff;
  --ok: #248a3d; --low: #b25000; --no: #86868b; --track: #e8e8ed; --bar-ok: #34c759; --bar-low: #ff9f0a; --bar-over: #ff3b30;
  --header: rgba(251, 251, 253, .8); --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --alt: #161617; --card: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --faint: #98989d; --line: #424245;
    --link: #2997ff; --seg: #2c2c2e; --seg-on: #48484a; --ok: #30d158; --low: #ff9f0a; --no: #86868b; --track: #333336;
    --header: rgba(22, 22, 23, .8); --shadow: 0 2px 12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #161617; --card: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245; --link: #2997ff;
  --seg: #2c2c2e; --seg-on: #48484a; --ok: #30d158; --low: #ff9f0a; --track: #333336; --header: rgba(22, 22, 23, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.num, table td, .cmp-big, .stat-num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.center { text-align: center; }
.note, .asof { color: var(--muted); font-size: 14px; letter-spacing: -0.01em; }
code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--alt); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(34px, 5.5vw, 56px); margin: 6px 0 14px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 18px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.eyebrow { display: block; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; margin: 0; }
.lead { font-size: clamp(19px, 2.2vw, 21px); line-height: 1.4; color: var(--ink); max-width: 760px; margin: 0 0 10px; }
.center.page-head .lead, .page-head.center .lead { margin-left: auto; margin-right: auto; }
.link-arrow { color: var(--link); font-weight: 400; white-space: nowrap; }
.link-arrow::after { content: " ›"; }
.textbtn { font: inherit; font-size: 15px; color: var(--link); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.textbtn:hover { text-decoration: underline; }

main { padding-top: 28px; padding-bottom: 80px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 4px; }
.crumbs [aria-current] { color: var(--ink); margin: 0; }
.page-head { margin: 16px 0 40px; }
.page-head.center { text-align: center; }
.block { margin: 72px 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: 40px; }

/* Hero */
.hero { text-align: center; padding: 44px 0 6px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; margin: 0 auto 12px; max-width: 860px; }
.hero-sub { font-size: clamp(17px, 2vw, 19px); line-height: 1.4; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Finder (home) */
.finder { background: var(--alt); border-radius: 28px; padding: 36px 32px 24px; text-align: center; }
.sel-q { font-size: 24px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.015em; }
.seg { display: inline-flex; background: var(--seg); border-radius: 14px; padding: 4px; gap: 2px; flex-wrap: wrap; justify-content: center; }
.seg button { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 132px; }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--seg-on); box-shadow: var(--shadow); font-weight: 600; }
.seg-small button { flex-direction: row; min-width: 0; padding: 7px 16px; font-size: 14px; }
.seg-icon { width: 34px; height: 26px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; opacity: .85; }
.seg-gpu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M2 5h28v14H2zM6 19v4M12 19v4M18 19v4'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='23' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.seg-mac { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Crect x='3' y='3' width='28' height='17' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M13 24h8M17 20v4' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.seg-minipc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Crect x='5' y='6' width='24' height='14' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 16h6' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.sel-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.sel-k { font-size: 14px; font-weight: 600; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 820px; }
.pill { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.pill:hover { border-color: var(--faint); }
.pill[aria-pressed="true"] { border: 2px solid var(--blue); padding: 9px 17px; font-weight: 600; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap select { font: inherit; font-size: 19px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 44px 10px 18px; min-width: 280px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.finder .textbtn { margin-top: 18px; }
.custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 620px; margin: 14px auto 0; text-align: left; }
.custom .note { grid-column: 1 / -1; margin: 0; }
.custom[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select { font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
.placeholder { color: var(--muted); margin: 0; padding: 22px; background: var(--alt); border-radius: 18px; text-align: center; }

/* Result */
.result { margin-top: 28px; }
.result[hidden] { display: none; }
.pick { display: block; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; margin: 0 0 22px; text-align: left; }
.pick:hover { border-color: var(--faint); }
.pick:hover { text-decoration: none; }
.pick:hover .link-arrow { text-decoration: underline; }
.pick-name { display: block; font: 600 clamp(28px, 3.6vw, 40px)/1.08 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -0.015em; margin: 6px 0 8px; }
.pick-meta { display: block; font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.pick .mem { max-width: 420px; margin: 0; }
.pick-why { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 560px; }
article > .pick { text-align: left; }
article > .pick .mem { margin: 0; }
article > .pick .pick-why { margin-left: 0; }
.result .seg { display: flex; width: fit-content; margin: 0 auto 18px; }
.result-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(110px, .7fr); gap: 4px 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.list .l-name a { font-weight: 600; color: var(--ink); }
.list .sub, td .sub { display: block; font-size: 13px; color: var(--muted); }
.list .l-mem { font-size: 14px; color: var(--muted); }
.list .l-speed { font-size: 14px; text-align: right; }
@media (max-width: 600px) {
  .list li { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .list .l-name { grid-column: 1 / -1; }
  .list .l-mem { grid-column: 1; grid-row: 2; }
  .list .l-speed { grid-column: 2; grid-row: 2; align-self: start; }
}

/* Bars */
.mem, .gauge { display: block; height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.mem > span, .gauge > span { display: block; height: 100%; border-radius: 999px; background: var(--bar-ok); transition: width .4s ease; }
.mem-low > span { background: var(--bar-low); }
.mem-over > span { background: repeating-linear-gradient(45deg, var(--bar-over) 0 5px, transparent 5px 9px); }
.gauge > span { background: var(--blue); }
.memcell { min-width: 140px; }

/* Verdicts */
.b { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--alt); }
.b-ok, .v-ok { color: var(--ok); }
.b-low, .v-low { color: var(--low); }
.b-no, .v-no { color: var(--no); }
.src { font-size: 12px; color: var(--faint); white-space: nowrap; }
.legend { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.legend .b { margin-left: 8px; }
.legend .b:first-child { margin-left: 0; }

/* Model page tiles */
.tile-group h3 { font-size: 14px; color: var(--muted); margin: 26px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; color: var(--ink); background: var(--alt); border-radius: 18px; padding: 14px 16px; border: 2px solid transparent; }
.tile:hover { text-decoration: none; border-color: var(--line); }
.tile-name { font-weight: 600; font-size: 15px; }
.tile-verdict { font-size: 14px; font-weight: 600; }
.tile-ok .tile-verdict { color: var(--ok); }
.tile-low .tile-verdict { color: var(--low); }
.tile-no .tile-verdict { color: var(--no); }
.tile-detail { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile.is-mine { border-color: var(--blue); }
.tile.is-mine::before { content: "Your machine"; font-size: 11px; font-weight: 600; color: var(--blue); margin-bottom: 2px; }
tr.is-mine td { background: var(--alt); }
tr.is-mine td:first-child::after { content: " · yours"; color: var(--blue); font-size: 13px; }

/* "Your machine" answer on model pages */
.mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 14px; padding: 16px 22px; margin-bottom: 8px; }
.mine[hidden] { display: none; }
.mine > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.mine-k { font-size: 14px; color: var(--muted); width: 100%; }
.mine-v { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; }
.mine-d { color: var(--muted); font-size: 15px; }

/* Hardware page */
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.sold { font-size: 15px; color: var(--muted); max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 12px; }
.stats > div { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.stat-num { display: block; font: 600 40px/1.1 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -0.015em; }
.stat-num small { font-size: 19px; color: var(--muted); }
.stat-label, .stat-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.stats .gauge { max-width: 240px; margin-top: 12px; }
.setmine { font: inherit; font-size: 15px; padding: 8px 18px; border-radius: 980px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.setmine:hover { border-color: var(--faint); }
.setmine[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.hw-producer { margin-top: 28px; }
.hw-producer h3 { font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hw-list { list-style: none; margin: 0; padding: 0; }
.hw-list li { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 8px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hw-model { font-weight: 600; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.vchip { font-size: 14px; color: var(--ink); background: var(--alt); border-radius: 980px; padding: 5px 13px; border: 1.5px solid transparent; }
.vchip:hover { text-decoration: none; border-color: var(--line); }
.vchip.is-mine { border-color: var(--blue); }
@media (max-width: 600px) { .hw-list li { grid-template-columns: 1fr; } }

.measured { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 28px 0; }
.big { font: 600 40px/1.1 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -0.015em; margin: 4px 0; }
.measured p:last-child { margin: 6px 0 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.facts div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Tables */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
details.all > summary { cursor: pointer; font: 600 21px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; color: var(--link); margin-bottom: 14px; list-style: none; }
details.all > summary::after { content: " ›"; }
details.all[open] > summary::after { content: " ⌄"; }

/* Models index */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; position: sticky; top: 53px; z-index: 5; background: var(--bg); padding: 12px 0; }
.count { margin: 0 0 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 680px) { .filters { grid-template-columns: 1fr; position: static; } .count { margin: 0; } }
.empty { text-align: center; color: var(--muted); padding: 24px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--alt); border-radius: 18px; padding: 20px 22px; color: var(--ink); transition: transform .2s ease; }
.card:hover { text-decoration: none; transform: scale(1.015); }
.card strong { font-size: 17px; font-weight: 600; }
.card-spec { color: var(--muted); font-size: 14px; }

/* Operator ads */
.offer { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 28px 0; }
.offer p { margin: 0 0 6px; }
.offer-label { font-size: 12px; color: var(--muted); }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.how-grid > div { background: var(--alt); border-radius: 18px; padding: 24px; }
.how-k { font-weight: 600; font-size: 19px; margin: 0 0 6px; }
.how-grid p { margin: 0; color: var(--muted); }
.how-grid .how-k { color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Compare */
.cmp { margin-top: 8px; }
.cmp-cols, .cmp-cells { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 24px; }
.cmp-cols:has(.cmp-col:nth-child(2):last-child), .cmp-cells:has(.cmp-cell:nth-child(2):last-child) { --n: 2; }
.cmp-col { text-align: center; }
.cmp-sticky { padding-bottom: 18px; }
.selc { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; text-align: left; }
.selc-row { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.selc-row select { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--alt); border: 0; border-radius: 10px; padding: 9px 32px 9px 12px; width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.selc-row select:disabled { opacity: .55; cursor: default; background-image: none; }
.cmp-producer { font-size: 14px; color: var(--muted); margin: 0; }
.cmp-name { font-size: clamp(21px, 2.6vw, 28px); margin: 2px 0 2px; }
.cmp-variant { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.cmp-sec { border-top: 1px solid var(--line); padding: 36px 0 8px; }
.cmp-sec h2 { font-size: clamp(24px, 3vw, 32px); }
.cmp-row { padding: 16px 0; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-rowlabel { text-align: center; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.cmp-rowlabel a { color: var(--ink); }
.cmp-cell { text-align: center; min-width: 0; }
.cmp-cell p { margin: 0; }
.cmp-big { font: 600 clamp(32px, 4.4vw, 48px)/1.05 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -0.015em; }
.cmp-big small { font-size: .45em; color: var(--muted); }
.cmp-mid { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.cmp-k { font-size: 14px; color: var(--muted); margin-top: 4px !important; }
.cmp-cell .gauge { max-width: 180px; margin: 8px auto 2px; }
.cmp-verdict { font-size: 19px; font-weight: 600; }
.cmp-ad { font-size: 12px; color: var(--muted); }
@media (max-width: 734px) {
  .cmp-cols, .cmp-cells { --n: 2 !important; gap: 14px; }
  .cmp-col:nth-child(3), .cmp-cell[data-col="2"] { display: none; }
}

/* Footer */
.foot { background: var(--alt); color: var(--muted); font-size: 13px; padding: 22px 0 36px; line-height: 1.5; }
.foot p { margin: 0 0 10px; max-width: 900px; }
@media (min-width: 760px) {
  .foot .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
  .foot .wrap > p { margin: 0; }
  .foot .wrap > .foot-links { grid-column: 1 / -1; }
}
.foot a { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .finder { padding: 26px 14px 18px; border-radius: 22px; }
  .seg button { min-width: 0; flex: 1; padding: 10px 10px; font-size: 14px; }
  .seg { display: flex; }
  .select-wrap, .select-wrap select { width: 100%; min-width: 0; }
  .pick { padding: 24px 18px; border-radius: 22px; }
  .block { margin: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Home: two tasks */
.modes { text-align: center; margin: 0 0 18px; }
.modes .seg button { flex-direction: row; gap: 10px; min-width: 0; padding: 12px 20px; font-size: 16px; }
.seg-speed { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M4 22a13 13 0 0 1 26 0' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M17 22l7-9' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.modes .seg-icon { width: 26px; height: 20px; }
.search-wrap { max-width: 560px; margin: 0 auto 18px; }
.bigsearch { font: inherit; font-size: 19px; width: 100%; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.bigsearch:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
#by-model .sel-k { display: block; margin-bottom: 10px; }
#by-model .pill .muted { font-weight: 400; }
.mhead { text-align: center; margin-bottom: 18px; }
.mhead h2 { margin: 6px 0 6px; }
.section-sub { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.mhead .result-links { margin-top: 10px; }

/* Fastest-machines ranking */
.ranking .rk-filter { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 18px; }
.ranking .rk-filter button:disabled { opacity: .4; cursor: default; }
.rk { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rk > li { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rk > li[hidden] { display: none; }
.rk-pos { font-size: 15px; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
.rk-name a { font-weight: 600; color: var(--ink); }
.rk-name .sub { display: block; font-size: 13px; color: var(--muted); }
.rk-speed { font-size: 14px; color: var(--muted); }
.rk-num { font-size: 21px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.spd { display: block; height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.spd > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.rk-mem { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk > li.is-mine { background: var(--alt); border-radius: 12px; }
.rk > li.is-mine .rk-name a::after { content: "  Your machine"; font-size: 12px; font-weight: 600; color: var(--blue); }
.ranking [data-rk-more] { display: block; margin: 10px auto 0; }
.rk-no { margin-top: 16px; font-size: 15px; color: var(--muted); }
.rk-no summary { cursor: pointer; color: var(--link); }
.rk-no a.is-mine { font-weight: 600; }
@media (max-width: 640px) {
  .rk > li { grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 12px; }
  .rk-name { grid-column: 2; }
  .rk-speed { grid-column: 3; grid-row: 1; text-align: right; }
  .rk-speed .spd { display: none; }
  .rk-mem { grid-column: 2 / -1; grid-row: 2; }
  .modes .seg button { font-size: 14px; padding: 10px 10px; gap: 6px; }
  .modes .seg-icon { display: none; }
}

/* Compare: model picker and "Running" section */
.cmp-model { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--alt); border-radius: 22px; padding: 22px; margin: 0 0 30px; }
.cmp-model label { font-size: 15px; font-weight: 600; color: var(--muted); }
.cmp-running h2 a { color: var(--ink); }
.cmp-running .cmp-big { font-size: clamp(30px, 4vw, 44px); }
.cmp-running .gauge { max-width: 200px; }
@media (max-width: 600px) { .cmp-model .select-wrap, .cmp-model select { width: 100%; min-width: 0; } }
.ranking .rk-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ranking .rk-filter button { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 640px) { .ranking .rk-filter { width: 100%; margin-left: 0; justify-content: flex-start; } }


/* ===== 2026 pass: tool-first home, search, compare change, sorting ===== */
.noscroll { overflow: hidden; }

/* Search palette */
.palette { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); backdrop-filter: blur(2px); }
.palette-box { position: relative; width: 100%; max-width: 620px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; animation: pal-in .14s ease-out; }
@keyframes pal-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.palette-input { font: inherit; font-size: 19px; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; background: transparent; color: var(--ink); outline: none; }
.palette-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.palette-group { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px 4px; }
.palette-list a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.palette-list a:hover { text-decoration: none; }
.palette-list [aria-selected="true"] a { background: var(--blue); color: #fff; }
.palette-list [aria-selected="true"] .palette-sub { color: rgba(255, 255, 255, .8); }
.palette-sub { color: var(--muted); font-size: 14px; white-space: nowrap; }
.palette-empty { padding: 18px 12px; color: var(--muted); }
.palette-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.palette-foot kbd + kbd { margin-left: -2px; }

/* Home tool */
.tool { border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; margin-top: 8px; }
.tool-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.tool-tabs button { font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 10px 12px; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tool-tabs button:hover { color: var(--ink); }
.tool-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.tool-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 520px; }
.tool-side { background: var(--alt); border-right: 1px solid var(--line); padding: 20px; }
.tool-main { padding: 24px 28px 28px; min-width: 0; }
.side-k { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 18px 0 8px; text-transform: none; }
.tool-side .side-k:first-child, .tool-side #by-model > .side-k:first-child { margin-top: 0; }
.tool-side .sel-row { align-items: stretch; margin-top: 18px; gap: 8px; }
.tool-side .sel-k { font-size: 12px; text-align: left; }
.tool-side .pills { justify-content: flex-start; gap: 6px; }
.tool-side .pill { font-size: 14px; padding: 7px 12px; min-height: 36px; border-radius: 10px; }
.tool-side .pill[aria-pressed="true"] { padding: 6px 11px; }
.tool-side .select-wrap, .tool-side .select-wrap select { width: 100%; min-width: 0; }
.tool-side .select-wrap select { font-size: 16px; padding: 9px 40px 9px 12px; border-radius: 10px; }
.seg-type { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.seg-type button { min-width: 0; padding: 10px 6px; font-size: 13px; gap: 4px; }
.seg-type .seg-icon { width: 28px; height: 20px; }
.tool-side .textbtn { font-size: 14px; margin-top: 14px; }
.tool-side .custom { grid-template-columns: 1fr; margin-top: 8px; }
.search { font: inherit; font-size: 16px; width: 100%; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
.mlist { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.mrow { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.mrow:hover { background: var(--card); }
.mrow[aria-selected="true"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--blue); }
.mrow-name { font-size: 15px; font-weight: 600; }
.mrow-meta { font-size: 12px; color: var(--muted); }
.empty-state { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-height: 300px; }
.empty-state[hidden] { display: none; }
.empty-k { font-size: 19px; color: var(--muted); margin: 0; max-width: 460px; }
.qbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.qbtn { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 980px; padding: 8px 14px; cursor: pointer; }
.qbtn:hover { border-color: var(--ink); }
.tool-main .seg-small { display: flex; width: fit-content; margin: 0 0 14px; }
.tool-main .result-links { justify-content: flex-start; gap: 22px; margin-top: 18px; }
.tool-main .mhead { text-align: left; margin-bottom: 14px; }
.tool-main .mhead h2 { font-size: clamp(26px, 3vw, 34px); }
.tool-main .ranking .rk-filter { margin: 0 0 14px; }
.tool-main .list li { padding: 13px 2px; }
.skel { display: flex; flex-direction: column; gap: 12px; }
.skel span { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--alt) 0%, var(--track) 50%, var(--alt) 100%); background-size: 200% 100%; animation: skel 1.1s linear infinite; }
.skel span:first-child { height: 120px; border-radius: 18px; }
.skel span:nth-child(3) { width: 80%; } .skel span:nth-child(4) { width: 60%; }
@keyframes skel { to { background-position: -200% 0; } }
@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; min-height: 0; }
  .tool-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-main { padding: 20px 16px 22px; }
  .empty-state { min-height: 0; }
  .mlist { max-height: 260px; }
}
@media (max-width: 600px) { .tool { border-radius: 18px; margin-left: -4px; margin-right: -4px; } .tool-tabs { padding: 0 8px; } .tool-tabs button { font-size: 14px; } }

/* Home: comparisons list and method line */
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.block-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; }
.pair-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pair-list a { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.pair-list a:hover { text-decoration: none; background: var(--alt); }
.pair-list a::after { content: "›"; color: var(--faint); margin-left: 4px; }
.pr-name { font-weight: 600; flex: 1; }
.pr-stat { color: var(--muted); font-size: 15px; }
.method-line { color: var(--muted); font-size: 15px; max-width: 760px; margin: -24px 0 0; }

/* Compare: one name per column, selectors on demand */
.changebtn { font: inherit; font-size: 14px; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 980px; padding: 5px 14px; margin-top: 6px; cursor: pointer; }
.changebtn:hover { border-color: var(--faint); }
.changebtn[aria-expanded="true"] { border-color: var(--blue); }
.cmp-col .selc { margin: 12px 0 0; padding: 12px; background: var(--alt); border-radius: 14px; }
.cmp-col .selc[hidden] { display: none; }
.cmp-col .selc-row select { background-color: var(--card); }
.cmp-col .cmp-cell[data-key="head"] .link-arrow, .cmp-cell[data-key="head"] .link-arrow { display: block; margin-top: 2px; font-size: 13px; }

/* Sortable tables */
.sortbtn { font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.sortbtn:hover { color: var(--ink); }
.sortbtn[aria-sort]::after { content: " ↓"; color: var(--ink); }
.sortbtn[aria-sort="ascending"]::after { content: " ↑"; }
.speedcol[hidden] { display: none; }
.empty-state { justify-content: flex-start; min-height: 0; height: auto; padding-top: 8px; }
.tool-grid { min-height: 420px; }
/* Ranking inside the home tool: two-line rows so names don't wrap */
.tool-main .rk > li { grid-template-columns: 28px minmax(0, 1fr) minmax(150px, 220px); column-gap: 14px; }
.tool-main .rk-name { grid-column: 2; }
.tool-main .rk-speed { grid-column: 3; grid-row: 1 / span 2; }
.tool-main .rk-mem { grid-column: 2; grid-row: 2; }
@media (max-width: 640px) { .tool-main .rk > li { grid-template-columns: 26px minmax(0, 1fr) auto; } .tool-main .rk-speed { grid-row: 1; } }
.slow { color: var(--low); }
.slowtag { font-size: 11px; font-weight: 600; color: var(--low); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; }
.tool-main .seg-small { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tool-main .seg-small button { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) {
  .tool-side .pills { display: grid; grid-template-columns: 1fr 1fr; }
  .tool-side .pill { font-size: 13px; padding: 7px 8px; }
  .tool-main .seg-small button { font-size: 13px; padding: 7px 12px; }
}


/* ===== Header ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; text-decoration: none; }
.top { position: sticky; top: 0; z-index: 20; background: var(--header); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); align-self: center; }
.brand:hover { text-decoration: none; }
.mark { display: block; flex-shrink: 0; }
.mark-bg { fill: var(--ink); }
.mark-fg { fill: var(--bg); }
.mark-ac { fill: #0a84ff; }
.wordmark { font: 650 18px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -0.025em; }
.byline { font-size: 12px; line-height: 1; color: var(--muted); white-space: nowrap; padding: 4px 0 0 10px; border-left: 1px solid var(--line); height: 18px; display: inline-flex; align-items: center; }
.byline:hover { color: var(--ink); text-decoration: none; }
.mainnav { display: flex; align-self: stretch; gap: 4px; }
.mainnav a { position: relative; display: flex; align-items: center; padding: 0 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.mainnav a:hover { color: var(--ink); text-decoration: none; }
.mainnav a[aria-current] { color: var(--ink); font-weight: 600; }
.mainnav a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.top-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
.searchbtn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; color: var(--muted); background: var(--alt); border: 1px solid var(--line); border-radius: 10px; height: 36px; padding: 0 6px 0 12px; flex: 0 1 360px; min-width: 150px; cursor: pointer; }
.searchbtn:hover { color: var(--ink); border-color: var(--faint); }
.searchbtn-label { flex: 1; text-align: left; }
.searchbtn-icon { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; flex-shrink: 0; }
.searchbtn-icon::after { content: ""; position: absolute; width: 5px; height: 1.6px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(45deg); }
kbd { font: 11px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; background: var(--card); }
.myhw { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 980px; font-size: 13px; font-weight: 600; color: var(--ink); max-width: 220px; }
.myhw:hover { border-color: var(--faint); text-decoration: none; }
.myhw[hidden] { display: none; }
#myhw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myhw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bar-ok); flex-shrink: 0; }
.menubtn { display: none; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; position: relative; color: var(--ink); }
.menubtn span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.menubtn span:first-child { top: 14px; }
.menubtn span:last-child { top: 21px; }
.menubtn[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.menubtn[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.mobile-menu nav > a { font: 600 24px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -0.015em; color: var(--ink); padding: 10px 0; }
.mobile-menu nav > a[aria-current] { color: var(--muted); }
.mobile-menu .mm-mine { font: 15px/1.4 -apple-system, BlinkMacSystemFont, sans-serif !important; color: var(--muted) !important; margin-top: 10px; letter-spacing: 0 !important; }
.mobile-menu .mm-mine[hidden] { display: none; }
.mobile-menu .mm-mine strong { color: var(--ink); }
.mm-by { font-size: 13px; color: var(--muted); margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 1000px) {
  .top-row { gap: 16px; }
  .searchbtn kbd { display: none; }
}
@media (max-width: 760px) {
  .top-row { height: 52px; gap: 8px; }
  .mainnav, .myhw, .searchbtn kbd { display: none !important; }
  .menubtn { display: block; }
  .searchbtn { flex: 0 0 36px; min-width: 0; width: 36px; height: 36px; padding: 0; justify-content: center; background: none; border: 0; }
  .searchbtn-label { display: none; }
  .searchbtn-icon { width: 15px; height: 15px; }
  .brand-wrap { gap: 6px; }
}
.filters { top: 57px; }
.searchbtn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top > .wrap.top-row { max-width: 1200px; }
.sb-short { display: none; }
@media (max-width: 1000px) { .sb-long { display: none; } .sb-short { display: inline; } .myhw { max-width: 170px; } }

/* Section jump pills (hardware index) */
.jump { position: sticky; top: 57px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; margin: 0 0 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump a { font-size: 14px; color: var(--ink); background: var(--alt); border: 1px solid var(--line); border-radius: 980px; padding: 5px 14px; white-space: nowrap; }
.jump a:hover { text-decoration: none; border-color: var(--faint); }
#gpus, #macs, #minipcs, section[id] { scroll-margin-top: 110px; }
@media (max-width: 760px) { .jump { top: 52px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #gpus, #macs, #minipcs { scroll-margin-top: 106px; } }

/* Copyable commands */
.cmd { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; }
.cmd code { min-width: 0; }
.copy { font: inherit; font-size: 12px; line-height: 1.4; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 980px; padding: 2px 10px; cursor: pointer; flex: 0 0 auto; }
.copy:hover { border-color: var(--faint); }
.copy:active { background: var(--alt); }

/* Compare: two-of-three note on phones */
.cmp-mobile-note { display: none; margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 734px) { .cmp-mobile-note { display: block; } }

/* Slow speeds inside tables and rankings */
td .slowtag, .rk .slowtag, .rk-speed .slowtag, .cmp-cell .slowtag { margin-left: 6px; vertical-align: 1px; white-space: nowrap; display: inline-block; line-height: 1.5; }
td .slow, .rk-speed .slow { color: var(--low); }
td:has(.slowtag) { white-space: nowrap; }
