/* The theme picker (picker.js). Every colour is a role or one of the theme's finer tokens, so a card inside a
   [data-theme] element draws that theme. */
.hu-picker h2 { font-size: var(--fs-16); font-weight: var(--fw-strong); line-height: var(--lh-heading); margin: 0 0 var(--s-3); }
.hu-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 10px; }
.hu-theme, .hu-now { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--panel); text-align: left; color: var(--muted); font: inherit; }
.hu-theme { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .hu-theme:hover { border-color: var(--control-border); } }
.hu-theme[aria-checked="true"], .hu-now { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); color: var(--text); }
.hu-tn { font-weight: 500; font-size: var(--fs-13); padding: 0 4px; }
/* a look made for a reader who needs more says so under its name; the look in use says its group */
.hu-ta, .hu-ls { font-size: var(--fs-12); padding: 0 4px; margin-top: -4px; color: var(--ink-3, var(--muted)); }

/* a group's row: closed until asked for, its looks as dots that shrink before any is cut off */
.hu-looks { border-top: 1px solid var(--line-2, var(--border)); }
.hu-looks > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; list-style: none; cursor: pointer; font-size: var(--fs-14); color: var(--text); -webkit-tap-highlight-color: transparent; }
.hu-looks > summary::-webkit-details-marker { display: none; }
.hu-looks > summary:focus-visible { outline-offset: -2px; border-radius: var(--r-control); }
.hu-lc { color: var(--ink-3, var(--muted)); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.hu-sws { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; overflow: hidden; padding: 2px; }
.hu-ld { flex: 0 1 14px; min-width: 8px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--control-border); background: radial-gradient(circle, var(--accent) 0 24%, var(--bg) 28%); color-scheme: normal; }
.hu-ld.cur { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); margin: 0 1px; }
.hu-chev { flex: none; width: 7px; height: 7px; margin: 0 6px 0 2px; border-right: 1.5px solid var(--ink-3, var(--muted)); border-bottom: 1.5px solid var(--ink-3, var(--muted)); transform: rotate(-45deg); transition: transform var(--dur-fade); }
.hu-looks[open] > summary .hu-chev { transform: rotate(45deg); }
.hu-looks[open] > summary .hu-sws { visibility: hidden; }
.hu-looks > .hu-themes { margin-top: 2px; }
.hu-looks > :last-child { margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .hu-chev { transition: none; } }

/* "Match the system"'s two looks */
.hu-pair { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 2px 0 12px; font-size: var(--fs-13); color: var(--muted); }
.hu-pair[hidden], .hu-pace[hidden] { display: none; }
.hu-pair-one { display: flex; align-items: center; gap: 8px; min-height: max(36px, var(--hit)); }
.hu-pick { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--control-border); border-radius: var(--r-control); padding: 5px 8px; min-height: max(32px, var(--hit)); }

/* Drift's speed: drawn here, not by the browser (WebKit fills a range input grey): a hairline track and a ring on the
   page's own background, so it is black on OLED */
.hu-pace { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin-bottom: 10px; font-size: var(--fs-13); color: var(--muted); }
.hu-ends { display: flex; align-items: center; gap: 10px; color: var(--ink-3, var(--muted)); }
.hu-pace input { flex: 1; min-width: 0; height: max(28px, var(--hit)); margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hu-pace input::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: var(--control-border); }
.hu-pace input::-moz-range-track { height: 2px; border-radius: 1px; background: var(--control-border); }
.hu-pace input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
.hu-pace input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
.hu-pace input:focus-visible { outline-offset: 2px; }

/* a card's small picture of its theme: a sidebar, a page, three lines of text */
.hu-tp { display: flex; height: 64px; border-radius: var(--r-control); overflow: hidden; background: var(--bg); border: 1px solid var(--border); color-scheme: normal; }
.hu-tp-side { width: 26%; background: var(--side, var(--panel)); border-right: 1px solid var(--border); }
.hu-tp-main { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 9px 9px 0; }
.hu-tp-l { display: block; height: 4px; border-radius: 2px; }
.hu-tp-l.a { width: 60%; background: var(--text); }
.hu-tp-l.b { width: 80%; background: var(--ink-3, var(--muted)); }
.hu-tp-l.c { width: 50%; margin-top: 9px; background: var(--muted); }
/* a moving look's card: its themes side by side, one strip each */
.hu-tp.split { gap: 0; border: 0; background: none; }
.hu-tp.split > .hu-tp { flex: 1; min-width: 0; height: auto; border-radius: 0; border-width: 1px 0 1px 0; }
.hu-tp.split > .hu-tp:first-child { border-left-width: 1px; border-radius: var(--r-control) 0 0 var(--r-control); }
.hu-tp.split > .hu-tp:last-child { border-right-width: 1px; border-radius: 0 var(--r-control) var(--r-control) 0; }
@media (max-width: 599px) {
  .hu-themes { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .hu-tp { height: 52px; }
  .hu-theme, .hu-now { padding: 5px 5px 7px; }
  .hu-tn { font-size: var(--fs-12); }
}
