:root {
  color-scheme: light;
  --paper: #f7f7f1;
  --white: #fff;
  --ink: #152721;
  --muted: #52625a;
  --line: #dce3da;
  --green: #215746;
  --hero: #142e27;
  --mint: #d2eed2;
  --soft: #edf3eb;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button,
input,
select {
  border: 1px solid #a9b9ae;
  border-radius: 8px;
  background: var(--white);
}
button {
  padding: 0.48rem 0.78rem;
  font-weight: 650;
}
button:hover:not(:disabled) {
  background: var(--soft);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #317e62;
  outline-offset: 3px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 10;
  padding: 12px;
  background: white;
}
.shell {
  width: min(1440px, calc(100% - 96px));
  margin: auto;
}
[hidden] {
  display: none !important;
}
.top {
  background: #fbfcf7;
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 53px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 22px;
  font-weight: 810;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: var(--green);
}
.brand img {
  margin-right: 8px;
}
.top nav {
  display: flex;
  align-items: stretch;
  gap: 28px;
  align-self: stretch;
}
.top nav a {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}
.top nav .nav-current {
  color: var(--green);
  border-color: var(--green);
}
.hero {
  background: var(--hero);
  color: #f3faf4;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(325px, 1fr);
  align-items: end;
  gap: 42px;
  padding: 40px 0 37px;
}
.hero h1 {
  font-size: clamp(41px, 4.85vw, 76px);
  line-height: 0.98;
  font-weight: 790;
  letter-spacing: -0.062em;
}
.hero h1 + p {
  font-size: 1.08rem;
  color: #ccdbd1;
  margin-top: 16px;
  max-width: 530px;
}
.hero-data {
  padding: 0 0 3px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #416459;
  border-bottom: 1px solid #416459;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 15px 12px 13px 18px;
}
.stats div + div {
  border-left: 1px solid #416459;
}
.stats dd {
  font: 650 clamp(24px, 3vw, 41px) / 1.05 var(--mono);
  letter-spacing: -0.07em;
  color: #d3f4cf;
}
.stats dt {
  font-size: 0.85rem;
  margin-top: 6px;
  color: #d6e2da;
}
.hero .checked {
  font-size: 0.85rem;
  color: #d0e0d5;
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checked > span:first-child {
  background: #a0dc9d;
  border-radius: 50%;
  height: 7px;
  width: 7px;
  flex: none;
}
.catalog-shell {
  scroll-margin-top: 14px;
}
.shortcut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 17px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.shortcuts button {
  font-size: 0.86rem;
  padding: 0.32rem 0.73rem;
  background: #fafcf8;
  border-color: #c1cfc2;
}
.preset-note {
  margin-top: 12px;
  color: var(--green);
  font-size: 0.9rem;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 23px 0 44px;
}
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  display: grid;
  gap: 13px;
}
.filter-title,
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.filter-title h2 {
  font-size: 1.16rem;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0.38rem 0.5rem;
}
.filters label {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 650;
  min-width: 0;
}
.filters input,
.filters select,
.toolbar input,
.toolbar select {
  min-width: 0;
  width: 100%;
  height: 39px;
  padding: 0 9px;
}
.filters .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-input {
  display: flex;
  align-items: center;
}
.price-input span {
  position: absolute;
  margin-left: 9px;
  color: var(--muted);
}
.price-input input {
  padding-left: 25px;
}
.filters details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.filters summary {
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.filters details label {
  margin-top: 12px;
}
.results {
  min-width: 0;
}
.results-head {
  min-height: 31px;
  margin-bottom: 11px;
}
.results-head h2 {
  font-size: 1.62rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.results-head span {
  color: var(--muted);
  font-size: 0.87rem;
  text-align: right;
}
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 11px;
}
.search {
  flex: 1;
  min-width: 0;
  position: relative;
}
.search svg {
  width: 19px;
  height: 19px;
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--muted);
}
.toolbar .search input {
  padding-left: 35px;
}
.sort select {
  width: auto;
}
.mobile-filter {
  display: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.chips button {
  font-size: 0.8rem;
  color: var(--green);
  border-color: #b8cebb;
  background: var(--soft);
  padding: 0.21rem 0.48rem;
}
.table-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
thead {
  color: #40584d;
  background: #eef3eb;
  font-size: 0.75rem;
}
thead th {
  padding: 10px 8px;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--line);
  padding: 10px 8px;
  vertical-align: middle;
  font-size: 0.86rem;
}
td:first-child,
th:first-child {
  text-align: center;
}
td:last-child,
th:last-child {
  padding-right: 10px;
}
tbody tr:hover {
  background: #f6faf4;
}
td strong,
td small {
  display: block;
}
td small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.provider-cell strong {
  font-size: 0.94rem;
}
.price-cell strong {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.price-cell strong span {
  font:
    0.72rem -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--muted);
}
.pick {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  cursor: pointer;
}
.view-plan {
  font-size: 0.77rem;
  white-space: nowrap;
  border: 1px solid #9ab9a7;
  color: var(--green);
  border-radius: 7px;
  padding: 0.28rem 0.5rem;
  text-decoration: none;
  display: inline-block;
  background: white;
  font-weight: 700;
}
.view-plan:hover {
  background: var(--soft);
}
.details-btn {
  display: block;
  padding: 3px 0 0;
  margin: auto;
  color: var(--green);
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  text-align: left;
}
.action-cell {
  text-align: center;
}
.results-foot {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.81rem;
  margin-top: 11px;
}
.results-foot button {
  white-space: nowrap;
}
.results-state {
  padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.results-state p {
  color: var(--muted);
  margin: 5px 0 10px;
}
.method {
  border-top: 1px solid var(--line);
  background: #f0f2e9;
}
.method-inner {
  padding: 36px 0 42px;
}
.method h2 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.method-grid h3 {
  font-size: 0.99rem;
  margin-bottom: 5px;
}
.method-grid p {
  color: var(--muted);
  font-size: 0.88rem;
}
footer {
  background: #fbfcf7;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 24px;
}
.footer-inner > span {
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner > a:last-child {
  font-weight: 650;
}
.shortlist {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  z-index: 2;
  background: #152e27;
  color: #f2faf1;
  box-shadow: 0 6px 28px #132d2750;
  border: 1px solid #587365;
  border-radius: 11px;
}
.short-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.short-inner > div {
  flex: 1;
  min-width: 0;
}
.short-inner .quiet {
  color: #e5f4e4;
}
.short-inner .quiet:hover {
  color: var(--ink);
}
#selected-plans {
  font-size: 0.8rem;
  color: #cbe1cd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover:not(:disabled) {
  background: #173e31;
}
.shortlist .primary {
  background: #bce5b5;
  color: #162d23;
  border-color: #bce5b5;
}
.shortlist .primary:hover:not(:disabled) {
  background: #d9f2d5;
}
body:has(.shortlist:not([hidden])) {
  padding-bottom: 70px;
}
dialog {
  border: 1px solid #a8bfb1;
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  width: min(900px, calc(100% - 28px));
  max-height: calc(100dvh - 35px);
}
dialog::backdrop {
  background: #142e2799;
}
.dialog-head {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dialog-head h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.close {
  font-size: 1.48rem;
  line-height: 1;
  padding: 5px 8px;
}
.dialog-body {
  padding: 15px 17px;
  overflow: auto;
  min-height: 0;
}
.dialog-foot {
  padding: 12px 17px;
  border-top: 1px solid var(--line);
  text-align: right;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.fact-grid div {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.fact-grid dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.fact-grid dd {
  overflow-wrap: anywhere;
  font-weight: 650;
}
.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  flex-wrap: wrap;
}
.compare-scroll {
  overflow: auto;
  max-width: 100%;
}
.compare-table {
  min-width: 530px;
}
.compare-table th,
.compare-table td {
  padding: 8px;
  white-space: normal;
  vertical-align: top;
  text-align: left;
}
.compare-table tbody th {
  font-size: 0.81rem;
  border-top: 1px solid var(--line);
  min-width: 104px;
}
.compare-table thead th:first-child {
  background: var(--soft);
}
.compare-table .quiet {
  display: block;
  font-size: 0.74rem;
  padding: 3px 0;
}
@media (max-width: 1120px) {
  .shell {
    width: calc(100% - 50px);
  }
  .catalog-grid {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 13px;
  }
  .filters {
    padding: 10px;
  }
  td,
  thead th {
    padding-inline: 5px;
  }
}
@media (max-width: 850px) {
  .shell {
    width: calc(100% - 36px);
  }
  .hero-inner {
    gap: 17px;
  }
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 15px;
  }
  .filters-slot {
    display: none;
  }
  .mobile-filter {
    display: block;
    white-space: nowrap;
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #drawer-body .filters {
    border: 0;
    padding: 0;
  }
  #drawer-body .filter-title h2 {
    display: none;
  }
  #drawer-body .filter-title {
    justify-content: flex-end;
  }
}
@media (max-width: 590px) {
  .shell {
    width: calc(100% - 28px);
  }
  .top-inner {
    min-height: 53px;
    justify-content: space-between;
    gap: 8px;
  }
  .top nav {
    gap: 11px;
  }
  .top nav a {
    font-size: 0.72rem;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 26px;
    height: 26px;
    margin-right: 5px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 23px 0 17px;
    gap: 19px;
  }
  .hero h1 {
    font-size: clamp(38px, 9vw, 53px);
  }
  .hero h1 + p {
    font-size: 0.92rem;
    margin-top: 9px;
  }
  .stats div {
    padding: 8px 7px 7px 10px;
  }
  .stats dd {
    font-size: 24px;
  }
  .stats dt,
  .hero .checked {
    font-size: 0.75rem;
  }
  .hero .checked {
    margin-top: 7px;
  }
  .shortcut {
    padding: 11px 0;
    gap: 5px;
  }
  .shortcut > span {
    width: 100%;
  }
  .shortcuts {
    gap: 4px;
  }
  .shortcuts button {
    font-size: 0.73rem;
    padding: 0.28rem 0.42rem;
  }
  .catalog-grid {
    padding-top: 12px;
  }
  .results-head h2 {
    font-size: 1.34rem;
  }
  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .toolbar .search {
    grid-column: 1/-1;
  }
  .toolbar .sort {
    grid-row: 2;
    grid-column: 1;
  }
  .sort select {
    width: 100%;
    font-size: 0.87rem;
  }
  .mobile-filter {
    grid-row: 2;
    grid-column: 2;
    font-size: 0.84rem;
  }
  .table-box {
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
  }
  table:not(.compare-table) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  table:not(.compare-table),
  #rows {
    display: block;
  }
  #rows tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    padding: 10px;
    margin-bottom: 7px;
  }
  #rows td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 0.79rem;
    text-align: left;
    min-width: 0;
  }
  #rows td small {
    font-size: 0.71rem;
  }
  #rows .pick-cell {
    grid-row: 1;
    grid-column: 1/3;
    align-self: center;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 2px;
  }
  #rows .pick-cell label {
    display: flex !important;
    align-items: center;
    gap: 3px;
  }
  #rows .pick {
    height: 16px;
    width: 16px;
    margin: 0 3px 0 0;
  }
  #rows .provider-cell {
    grid-row: 2;
    grid-column: 1/3;
    align-self: center;
  }
  #rows .price-cell {
    grid-column: 3;
    grid-row: 1/3;
    text-align: right;
    align-self: center;
  }
  #rows .price-cell strong {
    font-size: 0.95rem;
  }
  #rows .spec-cell,
  #rows .storage-cell,
  #rows .location-cell {
    grid-row: 3;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
  #rows .action-cell {
    grid-column: 1/-1;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 5px;
  }
  #rows .details-btn {
    margin: 0;
    padding: 5px 0;
  }
  .results-foot {
    flex-wrap: wrap;
  }
  .method-inner {
    padding: 23px 0;
  }
  .method-grid {
    gap: 12px;
  }
  .method-grid p {
    font-size: 0.82rem;
  }
  .footer-inner > span {
    display: none;
  }
  .fact-grid {
    grid-template-columns: 1fr;
  }
  .dialog-head,
  .dialog-body {
    padding: 11px;
  }
  .short-inner {
    padding: 8px 9px;
    gap: 5px;
  }
}
@media (min-width: 591px) {
  .mobile-pick {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.browse { padding: 1rem 0 1.25rem; }
.browse h2 { font-size: 1.1rem; margin: 0 0 .65rem; }
#browse-groups, #browse-options { display: flex; gap: .5rem; flex-wrap: wrap; }
#browse-options { margin-top: .65rem; }
.browse button { background: white; color: #173c32; border: 1px solid #a6bdb2; border-radius: .45rem; padding: .5rem .8rem; cursor: pointer; }
.browse button[aria-pressed=true] { background: #194e40; color: white; }
.browse small { display: block; margin-top: .12rem; }
