/* Paper Green, per DESIGN.md. Latin faces carry no Thai, so every stack
   falls back to Noto Sans Thai (OFL, variable 400–800) for Thai glyphs. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Mono";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/noto-sans-thai-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --primary: #173300;
  --ink: #0a3703;
  --ink-dark: #062f00;
  --muted: #34552e;
  --surface: #fcfaf5;
  --on-primary: #ffeb5b;
  --line: #123d0d;
  --line-dashed: #b6b6b6;
  --yellow: #f8e43f;
  --yellow-soft: #fffad4;
  --green-soft: #d5f5c2;
  --display: "Bricolage Grotesque", "Noto Sans Thai", sans-serif;
  --text: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --mono: "Roboto Mono", "Noto Sans Thai", ui-monospace, monospace;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) var(--surface);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--on-primary);
  color: var(--ink-dark);
}

a {
  color: var(--primary);
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
a:hover {
  text-decoration-style: solid;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--primary);
}

p {
  margin: 0;
  text-wrap: pretty;
}

figure {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--yellow-soft);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.nb {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
}

/* Navbar: floating, dashed 2px, radius 12 */
.masthead {
  padding-top: 20px;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border: 2px dashed var(--line-dashed);
  border-radius: 12px;
}
.wordmark {
  font: 600 1.0625rem/1.5 var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark svg {
  width: 22px;
  height: 22px;
}
.masthead nav {
  display: flex;
  gap: 24px;
}
.masthead nav a {
  font: 400 1rem/1.5 var(--mono);
  text-decoration: none;
  transition: font-weight 0.3s;
}
.masthead nav a:hover {
  font-weight: 600;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  font: 600 1rem/1.5 var(--text);
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}
.btn-lg {
  border-radius: 8px;
  font-size: 1.125rem;
  padding: 14px 28px;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn:hover {
  opacity: 0.9;
}
.btn:active {
  background: var(--ink-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
}
.btn-outline:hover {
  opacity: 1;
  background: var(--green-soft);
}

/* Highlight badge: marker bar, dark square, mono text */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--primary);
  font: 400 0.875rem/1.43 var(--mono);
  padding: 8px 16px;
}
.badge::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  flex: none;
}

/* Device capture in a line-art frame */
.screen {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px;
  background: var(--surface);
}
.screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 684 / 1216;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

/* Hero: centred copy, then a fan of the four Home themes. */
.hero {
  padding-top: clamp(56px, 9vw, 120px);
}
.hero-text {
  max-width: 56rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  margin-top: 28px;
  font: 800 clamp(2.5rem, 6.4vw, 5rem) / 1.12 var(--display);
}
.hero h1 mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%);
  color: inherit;
  padding-inline: 0.06em;
}
.hero .lead {
  margin-top: 24px;
  max-width: 40em;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "cta doodle"
    "cta aside";
  column-gap: 12px;
  align-items: center;
  position: relative;
  left: 56px;
}
.hero-actions .btn {
  grid-area: cta;
}
.doodle {
  grid-area: doodle;
  width: 88px;
  height: 44px;
  color: var(--primary);
  align-self: end;
}
.aside {
  grid-area: aside;
  font: 400 0.875rem/1.4 var(--mono);
  color: var(--muted);
  align-self: start;
  text-align: left;
  white-space: nowrap;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.installs {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--yellow);
  font: 400 0.875rem/1.43 var(--text);
}
.installs strong {
  font: 700 0.875rem/1.43 var(--mono);
}

.fan {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  padding: 56px 24px 72px;
  border: 1px dashed var(--primary);
  border-radius: 40px;
  background: var(--yellow-soft);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
}
.fan .screen {
  width: clamp(150px, 22vw, 290px);
  flex: none;
}
.fan-center {
  z-index: 2;
  width: clamp(140px, 19vw, 260px) !important;
}
.fan-center-left {
  rotate: -2deg;
  margin-right: -10px;
}
.fan-center-right {
  rotate: 2deg;
  margin-left: -10px;
  margin-top: 16px;
}
.fan-side {
  margin-top: 64px;
  width: clamp(110px, 15vw, 210px) !important;
}
.fan-left {
  rotate: -7deg;
  margin-right: -28px;
}
.fan-right {
  rotate: 7deg;
  margin-left: -28px;
}
.fan-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--primary);
}
.fan-caption span {
  margin-left: 10px;
  font: 400 0.875rem/1.4 var(--mono);
  color: var(--muted);
}

/* The one moment: an e-ink refresh on first paint */
@media (prefers-reduced-motion: no-preference) {
  .fan-center img {
    animation: eink-refresh 0.9s steps(1, end) 0.35s both;
  }
}
@keyframes eink-refresh {
  0% {
    filter: invert(1);
  }
  18% {
    filter: none;
    opacity: 0.15;
  }
  36% {
    filter: invert(1);
    opacity: 1;
  }
  54%,
  100% {
    filter: none;
    opacity: 1;
  }
}

/* Features: heading centred, three equal columns split by dashed rules */
.features {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px dashed var(--primary);
  border-bottom: 1px dashed var(--primary);
  padding-block: clamp(64px, 8vw, 120px);
}
.features-head,
.install-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-head h2,
.install-head h2 {
  font: 600 clamp(1.875rem, 4vw, 3.75rem) / 1.17 var(--text);
}
.features-head p,
.install-head p {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
}
.feature-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: clamp(16px, 3vw, 48px);
}
.feature + .feature {
  border-left: 1px dashed var(--primary);
}
.feature .thumb {
  width: min(100%, 220px);
  margin-bottom: 28px;
}
.feature h3 {
  margin-top: 14px;
  font: 600 1.5rem/1.33 var(--text);
}
.feature p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 24em;
}
.thumb {
  padding: 8px;
  border-radius: 16px;
}
.thumb img {
  border-radius: 8px;
}
.tag {
  display: inline-block;
  font: 400 0.875rem/1.43 var(--mono);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid var(--primary);
}

/* Install */
.install {
  padding-block: clamp(64px, 8vw, 120px);
}
.install .wrap {
  width: min(880px, 100% - 48px);
}
.install-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  border-top: 1px dashed var(--primary);
}
.steps li {
  counter-increment: step;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  line-height: 1.6;
  padding-inline: 12px;
}
.steps li::before {
  content: counter(step, thai);
  width: 35px;
  height: 35px;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font: 600 1rem/1 var(--text);
  color: var(--primary);
  margin-bottom: 16px;
}
.steps strong {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.device {
  border: 1px solid var(--primary);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.device-top {
  padding: clamp(24px, 3vw, 40px);
  border-bottom: 1px dashed var(--primary);
}
.device h3 {
  font: 600 1.875rem/1.33 var(--text);
}
.chip {
  margin-top: 6px;
  font: 400 0.875rem/1.43 var(--mono);
  color: var(--muted);
}
.device-top > p:last-child {
  margin-top: 16px;
  color: var(--muted);
}
.device-body {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}
.unsupported {
  display: block;
  background: var(--yellow-soft);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.release-info {
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 20px 24px;
  background: var(--yellow-soft);
  line-height: 1.6;
}
.release-title {
  font: 600 1.125rem/1.4 var(--text);
}
.release-meta {
  margin-top: 2px;
  font: 400 0.875rem/1.43 var(--mono);
  color: var(--muted);
}
.release-heading {
  margin-top: 16px;
  font-weight: 600;
}
.release-info ul {
  margin-top: 6px;
  padding-left: 1.3rem;
}
.release-info ul ul {
  margin-top: 2px;
}
.release-info li + li {
  margin-top: 4px;
}
.release-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
}

details.sd {
  border-top: 1px dashed var(--primary);
  padding-top: 20px;
  margin-top: auto;
}
details.sd summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.sd summary::-webkit-details-marker {
  display: none;
}
details.sd summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
  translate: 0 -0.15rem;
  transition: rotate 0.3s ease-out;
  flex: none;
}
details.sd[open] summary::after {
  rotate: 225deg;
  translate: 0 0.15rem;
}
details.sd ol {
  margin: 16px 0 20px;
  padding-left: 1.3rem;
  line-height: 1.7;
}
details.sd ol li + li {
  margin-top: 6px;
}

.after {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: var(--green-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px;
}
.after h3 {
  grid-column: 1 / -1;
  font: 600 1.5rem/1.33 var(--text);
}
.after ol {
  margin: 0;
  padding-left: 1.3rem;
  line-height: 1.7;
}
.after ol li + li {
  margin-top: 8px;
}
.after-notes {
  font-size: 0.9375rem;
  color: var(--muted);
  border-left: 1px dashed var(--primary);
  padding-left: 24px;
}
.after-notes p + p {
  margin-top: 12px;
}

/* Install dialog (flasher.js) */
.flash-dialog {
  width: min(520px, 100% - 32px);
  padding: 0;
  border: 1px dashed var(--primary);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}
.flash-dialog::backdrop {
  background: rgb(6 47 0 / 0.45);
}
.flash-dialog [data-view] {
  padding: clamp(24px, 5vw, 40px);
}
.flash-dialog h2 {
  font: 600 1.5rem/1.33 var(--text);
  margin-bottom: 12px;
}
.flash-dialog p {
  color: var(--muted);
}
.flash-dialog p + p {
  margin-top: 12px;
}
.fd-note {
  background: var(--yellow-soft);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9375rem;
}
.fd-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.fd-steps {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fd-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.fd-step::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid var(--line-dashed);
  border-radius: 9999px;
}
.fd-step.is-active {
  color: var(--primary);
  font-weight: 600;
}
.fd-step.is-active::before {
  border-color: var(--primary);
  border-top-color: transparent;
  animation: fd-spin 0.9s linear infinite;
}
.fd-step.is-done::before {
  border-color: var(--primary);
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffeb5b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.6 2.5L12 5.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.fd-pct {
  margin-left: auto;
  font: 400 0.9375rem/1 var(--mono);
}
@keyframes fd-spin {
  to {
    rotate: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fd-step.is-active::before {
    animation: none;
    border-top-color: var(--primary);
  }
}
.fd-bar {
  height: 12px;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  overflow: hidden;
  background: var(--yellow-soft);
}
.fd-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease-out;
}
.fd-warn {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary) !important;
}
.fd-next {
  margin: 16px 0 0;
  padding-left: 1.3rem;
  line-height: 1.7;
}
.fd-detail {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}
.fd-detail summary {
  cursor: pointer;
}
.fd-detail code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  white-space: pre-wrap;
}

/* Footer */
.colophon {
  border-top: 1px dashed var(--primary);
  padding-block: 40px 64px;
  font-size: 0.875rem;
  color: var(--muted);
}
.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}
.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
}

@media (max-width: 900px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
  .feature {
    padding-block: 40px;
  }
  .feature:first-child {
    padding-top: 0;
  }
  .feature + .feature {
    border-left: 0;
    border-top: 1px dashed var(--primary);
  }
  .feature .thumb {
    width: min(60%, 200px);
  }
  .devices,
  .after {
    grid-template-columns: 1fr;
  }
  .after-notes {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--primary);
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  .masthead nav a:not(:last-child) {
    display: none;
  }
  .masthead .wrap {
    padding: 10px 16px;
  }
  .hero-actions {
    left: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "cta"
      "aside";
    row-gap: 12px;
    justify-items: center;
  }
  .doodle {
    display: none;
  }
  .fan {
    padding: 32px 12px 64px;
  }
  .fan .screen {
    padding: 6px;
    border-radius: 16px;
  }
  .fan .screen img {
    border-radius: 8px;
  }
  .fan-center {
    width: 32vw !important;
  }
  .fan-center-left {
    margin-right: -1vw;
  }
  .fan-center-right {
    margin-left: -1vw;
    margin-top: 12px;
  }
  .fan-side {
    width: 25vw !important;
    margin-top: 44px;
  }
  .fan-left {
    margin-right: -8vw;
  }
  .fan-right {
    margin-left: -8vw;
  }
  .fan-caption span {
    display: block;
    margin: 2px 0 0;
    text-align: center;
  }
  .fan-caption {
    bottom: 12px;
    text-align: center;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps::before {
    display: none;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Device picker */
.ota-note {
  margin: 0 0 48px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: var(--primary);
  color: var(--surface);
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  align-items: flex-start;
}
.ota-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--primary);
}
.ota-icon svg {
  width: 28px;
  height: 28px;
}
.ota-tag {
  display: inline-block;
  font: 400 0.875rem/1.43 var(--mono);
  color: var(--yellow);
}
.ota-note h3 {
  margin-top: 4px;
  font: 600 1.5rem/1.33 var(--text);
  color: var(--yellow);
}
.ota-note p + p {
  margin-top: 8px;
}
.ota-note h3 + p {
  margin-top: 10px;
  line-height: 1.6;
}
.ota-note .ota-warn {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgb(255 255 255 / 0.3);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--green-soft);
}
@media (max-width: 640px) {
  .ota-note {
    flex-direction: column;
  }
}

.picker {
  border: 0;
  padding: 0;
  margin: 0 0 32px;
  min-width: 0;
}
.picker legend {
  font: 600 1.125rem/1.5 var(--text);
  color: var(--primary);
  margin-bottom: 16px;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 12px;
}
.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border: 1px solid var(--primary);
  border-radius: 16px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--primary);
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.pick:hover {
  background: var(--yellow-soft);
}
.pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.pick[hidden] {
  display: none;
}
.pick-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.wordmark-text {
  display: grid;
  place-items: center;
  font: 800 2rem/1 var(--display);
  letter-spacing: 0.02em;
  color: #000;
}
.pick-brand {
  font: 600 1rem/1.4 var(--text);
  padding-block: 20px 16px;
}
.picker-brands {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.picker-devices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pick-device {
  align-items: flex-start;
  text-align: left;
  padding: 16px 20px;
  gap: 4px;
}
.pick-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 1rem/1.4 var(--text);
}
.pick-mark {
  height: 18px;
  width: auto;
}
.pick-mark.wordmark-text {
  font-size: 0.875rem;
}
.pick-res {
  font: 400 0.875rem/1.43 var(--mono);
  color: var(--muted);
}
.pick:has(input:checked) {
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.pick:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.picker-empty {
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--primary);
  border-radius: 24px;
  padding: 40px 24px;
}
.devices:has(> .device[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.device[hidden] {
  display: none;
}
.device-note {
  color: var(--muted);
  line-height: 1.6;
}

/* Disclaimer */
.disclaimer {
  border-top: 1px dashed var(--primary);
  padding-block: 40px;
}
.disclaimer h2 {
  font: 600 1.125rem/1.5 var(--text);
  color: var(--primary);
  margin-bottom: 12px;
}
.disclaimer ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .picker-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .pick-logo {
    height: 36px;
  }
  .picker-devices {
    grid-template-columns: 1fr;
  }
}
