/* ==========================================================================
   si7b.com — small model index
   Editorial field-guide visual system
   ========================================================================== */

:root {
  --ink: #14231b;
  --ink-soft: #24352a;
  --ink-muted: #4c5d51;
  --paper: #f3f0e6;
  --paper-deep: #e9e5d8;
  --card: #fffdf7;
  --lime: #c9ef4a;
  --lime-strong: #d9ff62;
  --lime-ink: #314300;
  --coral: #e86546;
  --muted: #69736a;
  --line: #d3d0c2;
  --line-strong: #b6b7aa;
  --line-soft: #e6e2d6;
  --white: #fffdf7;
  --danger: #a64027;
  --serif: "Source Han Serif CN", "Noto Serif CJK SC", "Songti SC", STSong, SimSun, Georgia, serif;
  --sans: Aptos, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --max-width: 1380px;
  --header-height: 70px;
  --radius: 2px;
  --focus: var(--ink);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.filters-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero .fit-card :focus-visible,
.runbook :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin-top: 0;
}

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker--light {
  color: rgba(243, 240, 230, 0.56);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 101, 70, 0.12);
}

.mono-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mono-label--light {
  color: rgba(243, 240, 230, 0.52);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--paper);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
  background: rgba(243, 240, 230, 0.6);
  color: #5d675f;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.select-shell {
  position: relative;
  display: block;
}

.select-shell select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 12px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
}

.select-shell > .icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 13px;
  height: 13px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.select-shell--compact select {
  width: 142px;
  height: 36px;
  padding-left: 10px;
  font-size: 12px;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  overflow: visible;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(243, 240, 230, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.brand-glyph {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

.brand-period {
  color: var(--lime);
}

.brand-descriptor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid rgba(243, 240, 230, 0.18);
  color: rgba(243, 240, 230, 0.74);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.brand-descriptor span {
  color: rgba(243, 240, 230, 0.35);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a,
.primary-nav button {
  position: relative;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: rgba(243, 240, 230, 0.58);
  font-size: 12.5px;
  line-height: 1;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav button:hover {
  color: var(--paper);
}

.primary-nav .is-current {
  color: var(--paper);
}

.primary-nav .is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 1px;
  background: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.compare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(243, 240, 230, 0.2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-size: 11.5px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.compare-trigger:hover {
  border-color: rgba(243, 240, 230, 0.48);
  background: rgba(243, 240, 230, 0.05);
}

.compare-trigger .icon {
  width: 15px;
  height: 15px;
  color: rgba(243, 240, 230, 0.65);
}

.compare-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(201, 239, 74, 0.13);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.header-cta:hover {
  border-color: var(--lime-strong);
  background: var(--lime-strong);
}

.header-cta .icon {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 81% 5%, rgba(201, 239, 74, 0.22), transparent 27%),
    var(--paper);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 35, 27, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 35, 27, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 402px;
  gap: clamp(44px, 6.5vw, 104px);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 32px 58px;
}

.hero-copy {
  min-width: 0;
  animation: reveal-up 600ms var(--ease) both;
}

.hero-kicker {
  color: #59675c;
}

.hero h1 {
  max-width: 800px;
  margin: 0 0 25px;
  font-family: var(--serif);
  font-size: clamp(55px, 5.7vw, 82px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.marker-word {
  position: relative;
  display: inline-block;
  z-index: 0;
  isolation: isolate;
  white-space: nowrap;
}

.marker-word::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.035em;
  right: -0.045em;
  bottom: 0.055em;
  height: 0.31em;
  background: var(--lime);
  transform: rotate(-1.1deg) skewX(-5deg);
  transform-origin: left center;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 0;
  color: #46554a;
  font-size: 16.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 650px;
  height: 62px;
  margin-top: 31px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  background: var(--card);
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.hero-search:focus-within {
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--lime);
  transform: translate(-1px, -1px);
}

.hero-search .search-icon {
  width: 19px;
  height: 19px;
  color: var(--ink-soft);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.hero-search input::placeholder {
  color: #858c83;
  opacity: 1;
}

.hero-search input::-webkit-search-cancel-button {
  display: none;
}

.hero-search kbd {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: #777f77;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 1px 0 var(--line-strong);
}

.search-clear {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.search-clear .icon {
  width: 12px;
  height: 12px;
}

.quick-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 19px;
}

.quick-entry-label {
  margin-right: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-entry button {
  min-height: 27px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  color: #536057;
  font-size: 11.5px;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.quick-entry button:hover {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

/* Device-fit card */

.fit-card {
  position: relative;
  align-self: center;
  padding: 26px 27px 23px;
  border: 1px solid #304137;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--ink);
  box-shadow: 11px 11px 0 var(--lime);
  color: var(--paper);
  animation: reveal-up 700ms 100ms var(--ease) both;
}

.fit-card::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(201, 239, 74, 0.55);
  border-right: 1px solid rgba(201, 239, 74, 0.55);
}

.fit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fit-card .mono-label {
  color: rgba(243, 240, 230, 0.55);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(243, 240, 230, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(201, 239, 74, 0.1);
}

.fit-card h2 {
  margin: 21px 0 9px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: -0.035em;
}

.fit-intro {
  margin-bottom: 23px;
  color: rgba(243, 240, 230, 0.52);
  font-size: 12px;
  line-height: 1.65;
}

.fit-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: rgba(243, 240, 230, 0.54);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.035em;
}

.fit-label span:last-child {
  color: rgba(243, 240, 230, 0.3);
}

.memory-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.memory-picker button {
  height: 40px;
  border: 1px solid rgba(243, 240, 230, 0.18);
  border-radius: 1px;
  background: rgba(243, 240, 230, 0.025);
  color: rgba(243, 240, 230, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.memory-picker button:hover {
  border-color: rgba(201, 239, 74, 0.55);
  color: var(--paper);
}

.memory-picker button.is-active {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.fit-readout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px dashed rgba(243, 240, 230, 0.17);
}

.fit-number {
  display: flex;
  align-items: baseline;
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.fit-number > span:first-child {
  font-size: 47px;
}

.fit-number-total {
  margin-left: 4px;
  color: rgba(243, 240, 230, 0.34);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.fit-number-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.fit-number-copy strong {
  color: rgba(243, 240, 230, 0.86);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.fit-number-copy span {
  color: rgba(243, 240, 230, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
}

.budget-meter {
  position: relative;
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  background: rgba(243, 240, 230, 0.1);
}

.budget-meter span {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--lime);
  transition: width 400ms var(--ease);
}

.fit-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: rgba(243, 240, 230, 0.32);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fit-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 47px;
  margin-top: 21px;
  padding: 0 16px;
  border: 1px solid var(--lime);
  border-radius: 1px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.fit-cta:hover {
  border-color: var(--lime-strong);
  background: var(--lime-strong);
}

.fit-cta .icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.fit-cta:hover .icon {
  transform: translateX(3px);
}

.fit-note {
  margin: 10px 0 0;
  color: rgba(243, 240, 230, 0.3);
  font-size: 9.5px;
  line-height: 1.6;
}

.fit-card.is-pulsing {
  animation: soft-pulse 700ms var(--ease);
}

.hero-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px 23px;
  border-top: 1px solid var(--line);
}

.hero-stats {
  display: flex;
  align-items: center;
  margin: 0;
}

.hero-stats > div {
  padding: 0 25px;
  border-left: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.hero-stats small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-foot-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
  text-align: right;
}

.hero-foot-note span {
  color: var(--coral);
  font-family: var(--mono);
}

/* --------------------------------------------------------------------------
   Model index
   -------------------------------------------------------------------------- */

.index-section {
  scroll-margin-top: calc(var(--header-height) + 16px);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 60px;
  align-items: end;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 32px 0;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 55px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: 455px;
  margin: 0 0 5px auto;
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.index-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 32px 98px;
}

/* Filters */

.filters {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
  border-top: 1.5px solid var(--ink);
}

.mobile-filter-head {
  display: none;
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.075em;
}

.filter-title button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.filter-title button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filter-group {
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--line);
}

.filter-group--last {
  padding-bottom: 15px;
}

.filter-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.filter-group-head h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.filter-group-head > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.check-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 3px 0;
  color: #47564c;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}

.filter-check:hover {
  color: var(--ink);
}

.filter-check input {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  background: var(--card);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.filter-check input:hover {
  border-color: var(--ink);
}

.filter-check input:checked {
  border-color: var(--ink);
  background: var(--ink);
}

.filter-check input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 3px;
  height: 7px;
  border-right: 1.5px solid var(--lime);
  border-bottom: 1.5px solid var(--lime);
  transform: rotate(43deg);
}

.filter-count {
  margin-left: auto;
  color: #9a9f96;
  font-family: var(--mono);
  font-size: 8.5px;
}

.filter-check input:checked ~ .filter-count {
  color: var(--ink-muted);
}

.filter-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.segmented button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  transition:
    background 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}

.segmented button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.segmented button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.license-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.license-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 3px 0;
  color: #47564c;
  font-size: 12px;
  cursor: pointer;
}

.license-options input {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
}

.license-options input:checked {
  border-color: var(--ink);
  background: conic-gradient(var(--ink) 0 100%);
  box-shadow: inset 0 0 0 3px var(--card);
}

.license-options label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.license-options i {
  color: #9a9f96;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.favorites-only {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #47564c;
  font-size: 12px;
  cursor: pointer;
}

.favorites-only > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.favorites-only i {
  color: #9a9f96;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.favorites-only input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.switch {
  position: relative;
  display: block;
  width: 30px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-deep);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8d958c;
  transition:
    transform 180ms var(--ease),
    background 160ms ease;
}

.favorites-only input:checked + .switch {
  border-color: var(--ink);
  background: var(--lime);
}

.favorites-only input:checked + .switch i {
  background: var(--ink);
  transform: translateX(13px);
}

.favorites-only input:focus-visible + .switch {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.filter-footnote {
  margin: 15px 0 0;
  color: #8a9189;
  font-size: 9px;
  line-height: 1.65;
}

.mobile-apply {
  display: none;
}

/* Results toolbar */

.results {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.results-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.results-summary p {
  margin: 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.results-summary p strong {
  margin-right: 2px;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

#resultContext {
  overflow: hidden;
  color: #858c83;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.mobile-filter-button {
  display: none;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 13px;
}

.active-filters-label {
  margin-right: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 5px 2px 8px;
  border: 1px solid #ccd6ae;
  border-radius: 1px;
  background: #eef5d7;
  color: #3d4f18;
  font-size: 10px;
  line-height: 1.35;
}

.filter-pill button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5e6d3d;
}

.filter-pill button:hover {
  background: rgba(49, 67, 0, 0.09);
}

.filter-pill .icon {
  width: 9px;
  height: 9px;
}

#clearActiveFilters {
  min-height: 24px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
}

#clearActiveFilters:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Model cards */

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

@media (min-width: 1280px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.model-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 365px;
  flex-direction: column;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition:
    transform 220ms var(--ease),
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.model-card:hover {
  z-index: 1;
  border-color: #b1b4a6;
  box-shadow: 0 13px 32px rgba(20, 35, 27, 0.075);
  transform: translateY(-3px);
}

.model-card.is-compared {
  border-color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--ink),
    0 9px 24px rgba(20, 35, 27, 0.06);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 29px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #8c938b;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.3;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.card-serial {
  color: var(--ink);
  font-weight: 700;
}

.card-meta-divider {
  width: 9px;
  height: 1px;
  background: var(--line-strong);
}

.local-flag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.detail-vendor .local-flag {
  margin-left: 6px;
  vertical-align: 1px;
}

.card-fit {
  overflow: hidden;
  color: #7e867e;
  text-overflow: ellipsis;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.favorite-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  color: #7c857c;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.favorite-button:hover {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.favorite-button.is-active {
  border-color: #d8e4b5;
  background: #eff6d9;
  color: var(--ink);
}

.favorite-button.is-active .icon {
  fill: currentColor;
}

.favorite-button .icon {
  width: 14px;
  height: 14px;
}

.card-compare {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
  background: transparent;
  color: #747e75;
  font-size: 9px;
  line-height: 1;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.card-compare:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.card-compare .icon {
  width: 11px;
  height: 11px;
}

.card-compare.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.card-compare.is-active .icon {
  color: var(--lime);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
}

.model-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: #eef1e1;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(20, 35, 27, 0.12);
}

.card-title-block {
  min-width: 0;
  padding-top: 1px;
}

.model-vendor {
  margin: 0 0 3px;
  overflow: hidden;
  color: #858d85;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.model-name-button {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.032em;
  text-align: left;
  overflow-wrap: anywhere;
}

.model-name-button:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card-summary {
  display: -webkit-box;
  min-height: 61px;
  margin: 14px 0 0;
  overflow: hidden;
  color: #57645a;
  font-size: 12.5px;
  line-height: 1.66;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-tags {
  min-height: 23px;
  margin-top: 13px;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.card-specs > div {
  min-width: 0;
}

.card-specs dt {
  margin-bottom: 4px;
  color: #959c94;
  font-size: 8.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.card-specs dd {
  margin: 0;
  overflow: hidden;
  color: #39483e;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-soft);
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 58%;
  overflow: hidden;
  color: #6d776e;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7a9a52;
}

.license-badge.license-community::before {
  background: var(--coral);
}

.card-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.card-open:hover {
  border-color: var(--ink);
}

.card-open .icon {
  width: 11px;
  height: 11px;
}

.empty-state {
  margin-top: 22px;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 253, 247, 0.4);
  text-align: center;
}

.empty-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.empty-glyph .icon {
  width: 25px;
  height: 25px;
}

.empty-glyph span {
  position: absolute;
  right: -19px;
  bottom: 1px;
  color: #8d948b;
  font-family: var(--mono);
  font-size: 9px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.empty-state p {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state > button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}

.library-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  background: rgba(255, 253, 247, 0.38);
}

.library-note-mark {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.library-note p {
  margin: 0;
  color: #7c857d;
  font-size: 9.5px;
  line-height: 1.65;
}

.library-note button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 9.5px;
  white-space: nowrap;
}

.library-note button:hover {
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Runbook
   -------------------------------------------------------------------------- */

.runbook {
  position: relative;
  scroll-margin-top: var(--header-height);
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(243, 240, 230, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 240, 230, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 76px 76px;
  color: var(--paper);
}

.runbook::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -120px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(201, 239, 74, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.runbook-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 92px 32px 64px;
}

.runbook-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 64px;
  align-items: end;
}

.runbook-head h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.runbook-head > p {
  max-width: 420px;
  margin: 0 0 4px auto;
  color: rgba(243, 240, 230, 0.48);
  font-size: 13px;
  line-height: 1.85;
}

.runbook-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: start;
  margin-top: 58px;
}

.runbook-steps {
  border-top: 1px solid rgba(243, 240, 230, 0.16);
}

.runbook-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 17px;
  padding: 23px 0 24px;
  border-bottom: 1px solid rgba(243, 240, 230, 0.16);
}

.step-number {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.runbook-step h3 {
  margin: 0 0 7px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.runbook-step p {
  margin: 0;
  color: rgba(243, 240, 230, 0.44);
  font-size: 12px;
  line-height: 1.75;
}

.debug-console {
  min-width: 0;
  border: 1px solid rgba(243, 240, 230, 0.16);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--lime);
  color: var(--ink);
}

.debug-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 20px;
}

.debug-head h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.055em;
}

.console-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5f8d21;
  box-shadow: 0 0 0 3px rgba(95, 141, 33, 0.12);
}

.debug-tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eae6d9;
  scrollbar-width: none;
}

.debug-tabs::-webkit-scrollbar {
  display: none;
}

.debug-tabs button {
  min-width: 116px;
  flex: 1 0 auto;
  min-height: 42px;
  padding: 8px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #707a70;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.debug-tabs button:last-child {
  border-right: 0;
}

.debug-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.55);
}

.debug-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--lime);
}

.debug-panel {
  min-height: 357px;
  padding: 24px;
}

.error-code {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid #eccabc;
  border-radius: 1px;
  background: #f8e3db;
  color: #9a442b;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
}

.debug-panel h4 {
  margin: 15px 0 7px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.debug-panel > p {
  margin-bottom: 13px;
  color: #667068;
  font-size: 11.5px;
  line-height: 1.75;
}

.debug-panel pre {
  margin: 0 0 15px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid #2a3a2e;
  border-radius: 1px;
  background: #101b14;
  color: #d7f59d;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.75;
  white-space: pre;
}

.debug-panel ol {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #515f54;
  font-size: 11px;
  line-height: 1.65;
}

.debug-panel li::marker {
  color: #849276;
  font-family: var(--mono);
  font-size: 9px;
}

.runbook-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid rgba(243, 240, 230, 0.16);
}

.runbook-footer p {
  margin: 0;
  color: rgba(243, 240, 230, 0.63);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.runbook-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(243, 240, 230, 0.34);
  color: var(--lime);
  font-size: 11px;
}

.runbook-footer a:hover {
  border-color: var(--lime);
}

.runbook-footer .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #0e1a13;
  color: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 62px 32px 49px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-wordmark {
  width: fit-content;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.footer-wordmark span {
  color: var(--lime);
}

.footer-brand p {
  margin: 5px 0 0;
  color: rgba(243, 240, 230, 0.6);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.015em;
}

.footer-domain {
  color: rgba(243, 240, 230, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 48px;
}

.footer-nav > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav h2 {
  margin: 0 0 6px;
  color: rgba(243, 240, 230, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-nav a,
.footer-nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(243, 240, 230, 0.67);
  font-size: 11.5px;
  line-height: 1.6;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--lime);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 15px 32px 19px;
  border-top: 1px solid rgba(243, 240, 230, 0.1);
  color: rgba(243, 240, 230, 0.27);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Compare tray
   -------------------------------------------------------------------------- */

.compare-tray {
  position: fixed;
  z-index: 75;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 26, 19, 0.96);
  border-top: 1px solid rgba(201, 239, 74, 0.22);
  color: var(--paper);
  box-shadow: 0 -14px 40px rgba(20, 35, 27, 0.18);
  backdrop-filter: blur(10px);
}

.tray-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tray-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tray-label > span {
  color: rgba(243, 240, 230, 0.58);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.tray-label strong {
  display: flex;
  align-items: baseline;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}

.tray-label strong i {
  color: rgba(243, 240, 230, 0.3);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.tray-models {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.tray-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 208px;
  min-height: 32px;
  padding: 3px 5px 3px 9px;
  border: 1px solid rgba(243, 240, 230, 0.18);
  border-radius: 1px;
  color: rgba(243, 240, 230, 0.8);
  font-size: 10px;
  white-space: nowrap;
}

.tray-model-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tray-model button {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(243, 240, 230, 0.42);
}

.tray-model button:hover {
  background: rgba(243, 240, 230, 0.1);
  color: var(--paper);
}

.tray-model .icon {
  width: 9px;
  height: 9px;
}

.tray-empty {
  height: 32px;
  border: 1px dashed rgba(243, 240, 230, 0.15);
  flex: 1;
}

.tray-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.tray-clear {
  min-height: 35px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(243, 240, 230, 0.45);
  font-size: 10px;
}

.tray-clear:hover {
  border-color: rgba(243, 240, 230, 0.4);
  color: var(--paper);
}

.tray-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--lime);
  border-radius: 1px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.tray-open:not(:disabled):hover {
  background: var(--lime-strong);
}

.tray-open:disabled {
  border-color: rgba(243, 240, 230, 0.14);
  background: rgba(243, 240, 230, 0.06);
  color: rgba(243, 240, 230, 0.28);
}

.tray-open .icon {
  width: 14px;
  height: 14px;
}

body.has-tray {
  padding-bottom: 68px;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(9, 17, 12, 0.66);
  backdrop-filter: blur(4px);
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.dialog-close:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.dialog-close .icon {
  width: 14px;
  height: 14px;
}

.modal-shell {
  max-height: min(90dvh, 900px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.modal-head .kicker {
  margin-bottom: 11px;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

/* Detail drawer */

.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(760px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.detail-dialog[open] {
  animation: drawer-in 320ms var(--ease) both;
}

.detail-shell {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
}

.detail-close {
  position: fixed;
  z-index: 4;
  top: 20px;
  right: 20px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 0 rgba(20, 35, 27, 0.14);
}

.detail-close:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.detail-header {
  padding: 40px 48px 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(20, 35, 27, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
}

.detail-header .kicker {
  margin-bottom: 22px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-right: 20px;
}

.detail-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

.detail-vendor {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detail-title {
  margin: 0;
  max-width: 560px;
  font-family: var(--sans);
  font-size: clamp(26px, 3.3vw, 37px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.detail-summary {
  max-width: 620px;
  margin: 17px 0 16px 63px;
  color: #4f5d52;
  font-size: 13.5px;
  line-height: 1.75;
}

.detail-header .tag-row {
  margin-left: 63px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-specs dt {
  margin-bottom: 4px;
  color: #858d85;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detail-specs dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-body {
  padding: 28px 48px 52px;
}

.detail-local {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #d8e4b5;
  background: #f5f9e6;
}

.detail-local-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.detail-local-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.detail-local p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 10.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.detail-local a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-local a .icon {
  width: 11px;
  height: 11px;
}

.fit-verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  border: 1px solid #ccd6ae;
  background: #eff5da;
}

.fit-verdict--tight {
  border-color: #e4cba2;
  background: #faf1de;
}

.fit-verdict--over {
  border-color: #e9c1b3;
  background: #fbe9e2;
}

.verdict-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #546f24;
}

.fit-verdict--tight .verdict-icon {
  color: #986d27;
}

.fit-verdict--over .verdict-icon {
  color: var(--danger);
}

.verdict-icon .icon {
  width: 15px;
  height: 15px;
}

.verdict-copy {
  min-width: 0;
}

.verdict-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.verdict-copy p {
  margin: 0;
  color: #68745f;
  font-size: 10.5px;
  line-height: 1.6;
}

.fit-verdict--tight .verdict-copy p {
  color: #7f6c4c;
}

.fit-verdict--over .verdict-copy p {
  color: #8d604f;
}

.verdict-budget {
  margin-left: auto;
  padding-left: 14px;
  border-left: 1px solid rgba(20, 35, 27, 0.12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.verdict-budget strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.detail-section {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.section-number {
  display: block;
  margin-bottom: 12px;
  color: #969d95;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-section > h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.fit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fit-column {
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.fit-column h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.fit-column h4 .marker {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.fit-column--yes h4 .marker {
  background: #deedbc;
  color: #4f6d1a;
}

.fit-column--no h4 .marker {
  background: #f1d7cc;
  color: #9a442b;
}

.fit-column p {
  margin: 0;
  color: #5c685f;
  font-size: 11.5px;
  line-height: 1.7;
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watch-list li {
  position: relative;
  padding-left: 17px;
  color: #59665c;
  font-size: 11.5px;
  line-height: 1.7;
}

.watch-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 7px;
}

.code-tab {
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 1px 1px 0 0;
  background: var(--paper);
  color: #7c857d;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.code-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.code-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #0f1a13;
  color: #d8f6ad;
}

.code-box pre {
  margin: 0;
  padding: 15px 55px 15px 15px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-command {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 2px 7px;
  border: 1px solid rgba(201, 239, 74, 0.35);
  border-radius: 1px;
  background: rgba(201, 239, 74, 0.08);
  color: var(--lime);
  font-size: 9px;
  line-height: 1;
}

.copy-command:hover {
  background: rgba(201, 239, 74, 0.16);
}

.copy-command.is-copied {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.copy-command .icon {
  width: 11px;
  height: 11px;
}

.command-note {
  margin: 8px 0 0;
  color: #8a928a;
  font-size: 9px;
  line-height: 1.6;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: check-item;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #59665c;
  font-size: 11.5px;
  line-height: 1.7;
  counter-increment: check-item;
}

.check-list li::before {
  content: counter(check-item, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: #96a089;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 2.4;
}

.detail-repo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: transparent;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
}

.detail-repo:hover {
  background: var(--ink);
  color: var(--lime);
}

.detail-repo .icon {
  width: 13px;
  height: 13px;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.detail-license-note {
  max-width: 58%;
  color: #8a928a;
  font-size: 9px;
  line-height: 1.6;
}

/* Compare dialog */

.compare-dialog {
  width: min(1060px, calc(100vw - 32px));
  max-width: 1060px;
  max-height: calc(100dvh - 32px);
  background: transparent;
}

.compare-content {
  padding: 20px 24px 25px;
}

.compare-empty {
  padding: 58px 20px;
  text-align: center;
}

.compare-empty h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.compare-empty p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.compare-empty button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  min-width: 730px;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 12px 13px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.65;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  background: var(--paper);
}

.compare-table thead th:first-child {
  width: 118px;
}

.compare-label {
  color: #8a928a;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.compare-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.compare-heading-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: #eef1e1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.compare-heading-copy {
  min-width: 0;
}

.compare-heading-copy strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-heading-copy span {
  display: block;
  overflow: hidden;
  color: #8a928a;
  font-family: var(--mono);
  font-size: 7.5px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare-remove {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin: -3px -4px 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ca39b;
}

.compare-remove:hover {
  background: #f2dfd7;
  color: var(--danger);
}

.compare-remove .icon {
  width: 10px;
  height: 10px;
}

.compare-table td.is-best {
  background: #f1f7de;
  color: var(--ink);
  font-weight: 650;
}

.compare-table td.compare-text {
  color: #566259;
  font-size: 10.5px;
}

.compare-table td.compare-tags {
  line-height: 1.8;
}

.compare-table .open-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 9.5px;
}

.compare-table .open-mini:hover {
  border-color: var(--ink);
}

.compare-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  color: #8a928a;
  font-size: 9px;
}

.compare-actions button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.compare-actions button:hover {
  border-color: var(--ink);
}

/* Criteria dialog */

.info-dialog {
  width: min(810px, calc(100vw - 32px));
  max-width: 810px;
  max-height: calc(100dvh - 32px);
  background: transparent;
}

.criteria-content {
  padding: 28px 30px 25px;
}

.criteria-lede {
  max-width: 660px;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.65;
  letter-spacing: -0.025em;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.criteria-grid article {
  min-height: 138px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.criteria-grid article > span {
  display: block;
  margin-bottom: 14px;
  color: #9aa198;
  font-family: var(--mono);
  font-size: 8px;
}

.criteria-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.criteria-grid p {
  margin: 0;
  color: #6b756d;
  font-size: 11px;
  line-height: 1.75;
}

.criteria-note {
  margin-top: 22px;
  padding: 17px 18px;
  border-left: 3px solid var(--lime);
  background: var(--paper);
}

.criteria-note h3 {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.criteria-note p {
  margin: 0;
  color: #6b756d;
  font-size: 10.5px;
  line-height: 1.75;
}

.criteria-note p + p {
  margin-top: 5px;
}

.criteria-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  color: #9aa198;
  font-family: var(--mono);
  font-size: 8px;
}

.criteria-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.criteria-foot a:hover {
  border-color: var(--ink);
}

.criteria-foot .icon {
  width: 11px;
  height: 11px;
}

/* Toast, backdrop, noscript */

.toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 24px;
  padding: 10px 15px;
  border: 1px solid rgba(243, 240, 230, 0.15);
  border-radius: 1px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 8px 26px rgba(20, 35, 27, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 1px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.has-tray .toast {
  bottom: 88px;
}

.filter-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(9, 17, 12, 0.54);
  backdrop-filter: blur(2px);
}

.noscript-note {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  background: var(--coral);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Legibility pass
   Keep the archival density, but never let working copy disappear.
   -------------------------------------------------------------------------- */

.primary-nav a,
.primary-nav button {
  font-size: 13px;
}

.compare-trigger {
  font-size: 12px;
}

.header-cta {
  font-size: 12.5px;
}

.hero-search input {
  font-size: 15px;
}

.quick-entry button {
  font-size: 12px;
}

.hero-stats dt {
  font-size: 9px;
}

.hero-stats dd {
  font-size: 16px;
}

.hero-stats small {
  font-size: 9.5px;
}

.hero-foot-note {
  font-size: 11px;
}

.fit-card .mono-label,
.fit-label {
  font-size: 9.5px;
}

.fit-intro {
  font-size: 12.5px;
}

.fit-number-copy strong {
  font-size: 12.5px;
}

.fit-number-copy span {
  font-size: 9.5px;
}

.fit-meta {
  font-size: 8.5px;
}

.fit-note {
  font-size: 10px;
}

.filter-title {
  font-size: 10px;
}

.filter-title button {
  font-size: 11px;
}

.filter-group-head h3 {
  font-size: 13px;
}

.filter-group-head > span {
  font-size: 8.5px;
}

.filter-check {
  font-size: 13px;
}

.filter-count {
  font-size: 9px;
}

.segmented button {
  font-size: 10px;
}

.license-options label {
  font-size: 12.5px;
}

.license-options i {
  font-size: 9px;
}

.favorites-only {
  font-size: 12.5px;
}

.filter-footnote {
  font-size: 10px;
}

.results-summary p {
  font-size: 10.5px;
}

#resultContext {
  font-size: 10.5px;
}

.sort-control {
  font-size: 9.5px;
}

.select-shell--compact select {
  font-size: 12.5px;
}

.mobile-filter-button {
  font-size: 11px;
}

.active-filters-label {
  font-size: 9px;
}

.filter-pill {
  font-size: 10.5px;
}

#clearActiveFilters {
  font-size: 10.5px;
}

.card-meta {
  font-size: 9px;
}

.model-vendor {
  font-size: 8.5px;
}

.card-summary {
  min-height: 68px;
  font-size: 13.5px;
  line-height: 1.68;
}

.tag {
  font-size: 10px;
}

.card-specs dt {
  font-size: 9px;
}

.card-specs dd {
  font-size: 11.5px;
}

.license-badge {
  font-size: 9px;
}

.card-open {
  font-size: 10.5px;
}

.empty-state p {
  font-size: 13px;
}

.library-note p {
  font-size: 10.5px;
}

.library-note button {
  font-size: 10px;
}

.runbook-step p {
  font-size: 12.5px;
}

.debug-tabs button {
  font-size: 11.5px;
}

.error-code {
  font-size: 9px;
}

.debug-panel > p {
  font-size: 12px;
}

.debug-panel pre {
  font-size: 10.5px;
}

.debug-panel ol {
  font-size: 11.5px;
}

.modal-head h2 {
  line-height: 1.24;
}

.detail-summary {
  font-size: 14px;
}

.detail-specs dt {
  font-size: 9px;
}

.detail-specs dd {
  font-size: 12.5px;
}

.verdict-copy strong {
  font-size: 12.5px;
}

.verdict-copy p {
  font-size: 11.5px;
}

.fit-column p {
  font-size: 12.5px;
}

.watch-list li,
.check-list li {
  font-size: 12.5px;
}

.command-note {
  font-size: 10px;
}

.copy-command {
  font-size: 10px;
}

.detail-license-note {
  font-size: 10px;
}

.compare-table th,
.compare-table td {
  font-size: 11.5px;
}

.compare-heading-copy strong {
  font-size: 12.5px;
}

.compare-heading-copy span {
  font-size: 8.5px;
}

.compare-label {
  font-size: 9px;
}

.compare-table td.compare-text {
  font-size: 11px;
}

.criteria-grid p {
  font-size: 12px;
}

.criteria-note p {
  font-size: 11.5px;
}

.criteria-foot a {
  font-size: 10.5px;
}

.footer-nav a,
.footer-nav button {
  font-size: 12px;
}

.footer-meta {
  font-size: 9px;
}

/* Raise the floor on low-contrast secondary copy. */
.brand-descriptor {
  color: rgba(243, 240, 230, 0.8);
}

.brand-descriptor span {
  color: rgba(243, 240, 230, 0.48);
}

.fit-card .mono-label,
.fit-label {
  color: rgba(243, 240, 230, 0.64);
}

.fit-label span:last-child {
  color: rgba(243, 240, 230, 0.44);
}

.live-label {
  color: rgba(243, 240, 230, 0.52);
}

.fit-intro {
  color: rgba(243, 240, 230, 0.64);
}

.fit-number-copy span {
  color: rgba(243, 240, 230, 0.52);
}

.fit-meta {
  color: rgba(243, 240, 230, 0.47);
}

.fit-note {
  color: rgba(243, 240, 230, 0.5);
}

.quick-entry button {
  color: #4d5b51;
}

.filter-group-head > span,
.filter-count,
.license-options i,
.favorites-only i {
  color: #727b73;
}

.filter-footnote {
  color: #6c766d;
}

#resultContext {
  color: #667269;
}

.filter-pill {
  color: #364a12;
}

.card-meta,
.card-fit {
  color: #637066;
}

.model-vendor {
  color: #69756b;
}

.card-specs dt {
  color: #707970;
}

.card-tags .tag {
  color: #516056;
}

.license-badge {
  color: #5d6a60;
}

.library-note p {
  color: #5d6a60;
}

.empty-state p {
  color: #606c62;
}

.runbook-head > p {
  color: rgba(243, 240, 230, 0.61);
}

.runbook-step p {
  color: rgba(243, 240, 230, 0.59);
}

.command-note {
  color: #6a756c;
}

.detail-specs dt {
  color: #6e786f;
}

.compare-label {
  color: #68746a;
}

.compare-heading-copy span {
  color: #6e796f;
}

.compare-actions {
  color: #6f796f;
}

.criteria-foot {
  color: #777f76;
}

.footer-domain {
  color: rgba(243, 240, 230, 0.44);
}

.footer-meta {
  color: rgba(243, 240, 230, 0.47);
}

.footer-nav h2 {
  color: rgba(243, 240, 230, 0.44);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(45px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 11px 11px 0 var(--lime);
  }
  45% {
    box-shadow: 11px 11px 0 var(--lime), 0 0 0 7px rgba(201, 239, 74, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(54px, 5.9vw, 72px);
  }

  .index-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 35px;
  }

  .runbook-grid {
    gap: 42px;
  }
}

@media (max-width: 980px) {
  .brand-descriptor {
    display: none;
  }

  .primary-nav {
    margin-left: 8px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding-top: 55px;
    padding-bottom: 46px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(54px, 8vw, 74px);
  }

  .fit-card {
    width: min(100%, 560px);
    margin-right: 11px;
  }

  .hero-foot {
    align-items: flex-start;
  }

  .hero-foot-note {
    max-width: 360px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 38px;
  }

  .index-layout {
    display: block;
    padding-top: 28px;
  }

  .filters {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(370px, 92vw);
    margin: 0;
    padding: 0 22px 22px;
    overflow-y: auto;
    border-top: 0;
    background: var(--paper);
    box-shadow: 16px 0 45px rgba(20, 35, 27, 0.14);
    transform: translateX(-103%);
    transition: transform 280ms var(--ease);
  }

  body.filters-open .filters {
    transform: translateX(0);
  }

  .mobile-filter-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -22px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .filter-title {
    padding-top: 18px;
  }

  .mobile-apply {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    border-radius: 1px;
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 -9px 18px var(--paper);
  }

  .mobile-apply .icon {
    width: 14px;
    height: 14px;
    color: var(--lime);
  }

  .mobile-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: var(--card);
    color: var(--ink);
    font-size: 10px;
  }

  .mobile-filter-button .icon {
    width: 13px;
    height: 13px;
  }

  .mobile-filter-button span {
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--lime);
    font-family: var(--mono);
    font-size: 8px;
  }

  .runbook-head {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .runbook-head > p {
    max-width: 610px;
    margin: 0;
  }

  .runbook-grid {
    grid-template-columns: 1fr;
    gap: 49px;
  }

  .runbook-inner {
    padding-top: 72px;
  }

  .debug-panel {
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    display: none;
  }

  .header-inner {
    gap: 18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .section-intro {
    max-width: 610px;
    margin-left: 0;
  }

  .hero-foot {
    flex-direction: column;
    gap: 13px;
  }

  .hero-foot-note {
    max-width: 100%;
    text-align: left;
  }

  .footer-meta {
    flex-wrap: wrap;
    gap: 7px 20px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .brand-glyph {
    font-size: 24px;
  }

  .header-actions {
    gap: 5px;
  }

  .compare-trigger {
    padding: 0 8px;
    gap: 5px;
  }

  .compare-trigger-text {
    display: none;
  }

  .header-cta {
    min-height: 37px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-inner {
    padding: 43px 20px 38px;
  }

  .hero h1 {
    margin-bottom: 19px;
    font-size: clamp(47px, 12vw, 67px);
    letter-spacing: -0.055em;
  }

  .hero-lede {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-search {
    height: 56px;
    margin-top: 25px;
    padding: 0 13px;
    gap: 9px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .hero-search:focus-within {
    box-shadow: 5px 5px 0 var(--lime);
  }

  .hero-search input {
    font-size: 13px;
  }

  .hero-search kbd {
    display: none;
  }

  .quick-entry {
    gap: 2px;
    margin-top: 16px;
  }

  .quick-entry-label {
    width: 100%;
    margin-bottom: 3px;
  }

  .fit-card {
    width: calc(100% - 9px);
    padding: 22px 20px 20px;
    box-shadow: 9px 9px 0 var(--lime);
  }

  .fit-card h2 {
    margin-top: 18px;
    font-size: 30px;
  }

  .fit-intro {
    margin-bottom: 19px;
  }

  .fit-number > span:first-child {
    font-size: 41px;
  }

  .hero-foot {
    padding: 17px 20px 20px;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats > div {
    padding: 0 14px;
  }

  .hero-stats > div:first-child {
    padding-left: 0;
  }

  .hero-stats > div:last-child {
    padding-right: 0;
  }

  .hero-stats dd {
    font-size: 13px;
  }

  .hero-stats small {
    font-size: 8px;
  }

  .section-heading {
    padding: 59px 20px 0;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .section-intro {
    font-size: 12.5px;
  }

  .index-layout {
    padding: 25px 20px 70px;
  }

  .results-toolbar {
    align-items: center;
    min-height: 34px;
  }

  .results-summary {
    display: block;
  }

  .results-summary p strong {
    font-size: 22px;
  }

  #resultContext {
    display: none;
  }

  .toolbar-actions {
    gap: 7px;
  }

  .sort-control > span:first-child {
    display: none;
  }

  .select-shell--compact select {
    width: 126px;
    height: 34px;
    padding-left: 8px;
  }

  .model-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 16px;
  }

  .model-card {
    min-height: 0;
    padding: 16px;
  }

  .card-summary {
    min-height: 0;
    -webkit-line-clamp: 4;
  }

  .card-specs {
    margin-top: 16px;
  }

  .library-note {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    margin-top: 18px;
  }

  .library-note-mark {
    grid-column: 1 / -1;
  }

  .library-note p {
    font-size: 9px;
  }

  .library-note button {
    align-self: start;
    font-size: 9px;
  }

  .runbook-inner {
    padding: 60px 20px 42px;
  }

  .runbook-head h2 {
    font-size: 40px;
  }

  .runbook-grid {
    margin-top: 40px;
    gap: 39px;
  }

  .runbook-step {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .debug-console {
    box-shadow: 8px 8px 0 var(--lime);
  }

  .debug-head {
    display: block;
    padding: 19px 18px 17px;
  }

  .debug-head h3 {
    font-size: 21px;
  }

  .console-status {
    display: inline-flex;
    margin-top: 10px;
  }

  .debug-tabs button {
    min-width: 103px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .debug-panel {
    min-height: 0;
    padding: 19px 18px 21px;
  }

  .debug-panel h4 {
    font-size: 22px;
  }

  .runbook-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 51px;
    padding-top: 21px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 36px;
    padding: 44px 20px 35px;
  }

  .footer-nav {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .footer-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 20px 18px;
  }

  .compare-tray {
    padding-right: 12px;
    padding-left: 12px;
  }

  .tray-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tray-label {
    width: 100%;
    justify-content: space-between;
  }

  .tray-models {
    order: 2;
    width: calc(100% - 120px);
    overflow-x: auto;
  }

  .tray-model {
    max-width: 155px;
  }

  .tray-actions {
    order: 3;
    margin-left: auto;
  }

  .tray-empty {
    width: 100%;
    flex: 1;
  }

  .tray-clear {
    display: none;
  }

  body.has-tray {
    padding-bottom: 124px;
  }

  body.has-tray .toast {
    bottom: 138px;
  }

  .detail-close {
    top: 13px;
    right: 13px;
  }

  .detail-header {
    padding: 28px 20px 22px;
  }

  .detail-header .kicker {
    margin-bottom: 16px;
    padding-right: 35px;
  }

  .detail-mark {
    width: 37px;
    height: 37px;
    font-size: 13px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .detail-title {
    font-size: 26px;
  }

  .detail-summary {
    margin: 14px 0;
    font-size: 12.5px;
  }

  .detail-header .tag-row {
    margin-left: 0;
  }

  .detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 19px;
    padding-top: 15px;
  }

  .detail-body {
    padding: 20px 20px 36px;
  }

  .fit-verdict {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px 11px;
    padding: 13px;
  }

  .verdict-copy {
    flex: 1;
    min-width: calc(100% - 45px);
  }

  .verdict-budget {
    width: 100%;
    margin-left: 42px;
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .verdict-budget strong {
    display: inline;
    margin-left: 4px;
  }

  .fit-columns {
    grid-template-columns: 1fr;
  }

  .fit-column {
    min-height: 0;
  }

  .detail-section {
    padding: 22px 0;
  }

  .code-box pre {
    font-size: 10px;
  }

  .detail-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 13px;
  }

  .detail-license-note {
    max-width: 100%;
  }

  .modal-head {
    padding: 20px 18px 17px;
  }

  .modal-head h2 {
    font-size: 28px;
  }

  .compare-content {
    padding: 16px;
  }

  .compare-dialog,
  .info-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .criteria-content {
    padding: 20px 18px;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .criteria-grid article {
    min-height: 0;
    padding: 15px;
  }

  .criteria-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    width: max-content;
    max-width: calc(100vw - 30px);
    font-size: 10px;
  }
}

@media (max-width: 460px) {
  .header-inner {
    padding: 0 15px;
    gap: 10px;
  }

  .brand-glyph {
    font-size: 22px;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 37px;
    padding: 0;
  }

  .compare-trigger {
    min-width: 37px;
    height: 37px;
    justify-content: center;
  }

  .header-actions {
    gap: 4px;
  }

  .hero-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    font-size: clamp(44px, 12.6vw, 58px);
  }

  .hero-kicker {
    font-size: 8.5px;
    letter-spacing: 0.09em;
  }

  .quick-entry button {
    padding-right: 6px;
    padding-left: 6px;
  }

  .fit-card {
    padding: 20px 16px 18px;
  }

  .fit-card h2 {
    font-size: 28px;
  }

  .hero-foot {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-stats > div {
    padding: 0 9px;
  }

  .section-heading {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-heading h2 {
    font-size: 37px;
  }

  .index-layout {
    padding-right: 16px;
    padding-left: 16px;
  }

  .results-toolbar {
    gap: 6px;
  }

  .mobile-filter-button {
    padding: 0 8px;
  }

  .select-shell--compact select {
    width: 115px;
    font-size: 11px;
  }

  .sort-control {
    gap: 0;
  }

  .active-filters {
    align-items: flex-start;
  }

  .active-filters-label {
    width: 100%;
  }

  .runbook-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .runbook-head h2 {
    font-size: 36px;
  }

  .footer-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-meta {
    padding-right: 16px;
    padding-left: 16px;
  }

  .detail-header,
  .detail-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .detail-title {
    font-size: 23px;
  }

  .tray-models {
    width: 100%;
    order: 2;
  }

  .tray-actions {
    width: 100%;
    justify-content: flex-end;
    order: 3;
  }

  .tray-open {
    min-height: 36px;
  }

  body.has-tray {
    padding-bottom: 156px;
  }

  body.has-tray .toast {
    bottom: 170px;
  }
}

/* --------------------------------------------------------------------------
   Readability floor
   Compact archival metadata is intentional; microscopic working copy is not.
   -------------------------------------------------------------------------- */

.hero-stats dt { font-size: 10px; }
.hero-stats small { font-size: 10px; }
.hero-foot-note { font-size: 12px; }
.fit-card .mono-label,
.fit-label { font-size: 10px; }
.fit-intro { font-size: 13px; }
.fit-number-copy strong { font-size: 13px; }
.fit-number-copy span { font-size: 10.5px; }
.fit-meta { font-size: 10px; }
.fit-note { font-size: 11px; }
.filter-title { font-size: 11px; }
.filter-group-head > span { font-size: 10px; }
.filter-count { font-size: 10px; }
.segmented button { font-size: 11px; }
.license-options i { font-size: 10px; }
.filter-footnote { font-size: 11px; }
.results-summary p,
#resultContext { font-size: 11px; }
.sort-control { font-size: 10.5px; }
.active-filters-label { font-size: 10px; }
.filter-pill,
#clearActiveFilters { font-size: 11px; }
.card-meta { font-size: 10px; }
.model-vendor { font-size: 10px; }
.card-summary { font-size: 14px; }
.tag { font-size: 11px; }
.card-specs dt { font-size: 10px; }
.card-specs dd { font-size: 12.5px; }
.license-badge { font-size: 10px; }
.card-open { font-size: 11.5px; }
.library-note p { font-size: 12px; }
.library-note button { font-size: 11px; }
.runbook-step p { font-size: 13px; }
.debug-tabs button { font-size: 12px; }
.error-code { font-size: 10px; }
.debug-panel pre { font-size: 11.5px; }
.command-note,
.copy-command,
.detail-license-note { font-size: 11px; }
.detail-specs dt { font-size: 10px; }
.detail-specs dd { font-size: 13px; }
.compare-heading-copy span,
.compare-label { font-size: 10px; }
.compare-table th,
.compare-table td { font-size: 12px; }
.compare-table td.compare-text { font-size: 11.5px; }
.criteria-foot a { font-size: 11px; }
.footer-nav a,
.footer-nav button { font-size: 13px; }
.footer-meta { font-size: 10px; }

@media (max-width: 720px) {
  .library-note p,
  .library-note button { font-size: 11px; }
  .debug-tabs button { font-size: 11.5px; }
  .code-box pre { font-size: 11px; }
  .toast { font-size: 11.5px; }
  .hero-stats small { font-size: 10px; }
}

@media (max-width: 460px) {
  .hero-kicker { font-size: 9.5px; }
}

/* --------------------------------------------------------------------------
   Login / private access
   -------------------------------------------------------------------------- */

.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(20, 35, 27, 0.06) 50% 50.1%, transparent 50.2%),
    linear-gradient(0deg, transparent 0 49.9%, rgba(20, 35, 27, 0.06) 50% 50.1%, transparent 50.2%),
    var(--paper);
  background-size: 48px 48px;
  padding: 32px 20px;
}

.login-shell {
  width: min(560px, 100%);
}

.login-card {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--card);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 10px 10px 0 rgba(20, 35, 27, 0.06);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.login-brand {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.login-brand span {
  color: var(--danger);
}

.login-kicker {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.login-card h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(27px, 5vw, 38px);
  font-weight: 560;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.login-lede {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.login-form {
  margin-top: 26px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.login-field {
  display: flex;
  gap: 8px;
}

.login-field input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 13px;
}

.login-field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.login-submit {
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 650;
  padding: 0 18px;
  transition: background 160ms ease, color 160ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.login-error {
  margin-top: 12px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.login-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.login-note code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}

.login-foot {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
}

.footer-logout {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-logout:hover {
  color: var(--paper);
}

@media (max-width: 520px) {
  .login-field {
    flex-direction: column;
  }

  .login-submit {
    padding: 12px 16px;
  }
}
