/* Watch List — Dial theme (opt-in). Nomos / Braun dress-dial, not skeuomorphic.
   Loaded on every page, scoped to html.theme-dial so the default clean UI is unchanged. */

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html.theme-dial {
  --bg: #f3f0ea;
  --surface: #f7f5f0;
  --line: #d2cdc3;
  --line-2: #c4bfb4;
  --text: #161412;
  --muted: #534f49;
  --faint: #5e5a54;
  --accent: #161412;
  --accent-ink: #161412;
  --accent-soft: #ece8e0;
  --second: #a11616;
  --steel: #8e8a82;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: none;
  --display: Outfit, "Avenir Next", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 0.12, 0.18, 1);
  color-scheme: light;
  background: var(--bg);
}

html.theme-dial.mode-dark {
  --bg: #0e0e0e;
  --surface: #141414;
  --line: #3a3936;
  --line-2: #4a4844;
  --text: #edebe4;
  --muted: #b8b4aa;
  --faint: #b8b4aa;
  --accent: #edebe4;
  --accent-ink: #edebe4;
  --accent-soft: #1c1c1c;
  --second: #c6e57a;
  --steel: #6e6b65;
  color-scheme: dark;
}

/* Type: geometric sans headings, small letter-spaced uppercase labels. */
html.theme-dial h1,
html.theme-dial h2,
html.theme-dial h3,
html.theme-dial .brand,
html.theme-dial .glance .big,
html.theme-dial .cmp-head .nm,
html.theme-dial .card .cap .m,
html.theme-dial table.list .w a {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
}

html.theme-dial .page-head h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  font-weight: 500;
}
@media (max-width: 640px) {
  html.theme-dial .page-head h1 { font-size: 24px; }
}

html.theme-dial .section-title,
html.theme-dial .fgroup > summary,
html.theme-dial table.cmp th[scope="row"],
html.theme-dial table.cmp tr.group th,
html.theme-dial table.list th,
html.theme-dial .kv dt,
html.theme-dial .glance .lbl,
html.theme-dial .card .cap .b,
html.theme-dial .cmp-head .br,
html.theme-dial .nav a,
html.theme-dial .look button,
html.theme-dial .ad b,
html.theme-dial .count,
html.theme-dial .range .vals {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

html.theme-dial .section-title,
html.theme-dial table.cmp tr.group th,
html.theme-dial table.list th,
html.theme-dial .fgroup > summary,
html.theme-dial table.cmp th[scope="row"],
html.theme-dial .kv dt,
html.theme-dial .glance .lbl,
html.theme-dial .card .cap .b,
html.theme-dial .nav a,
html.theme-dial .look button {
  font-size: 11px;
  letter-spacing: 0.16em;
}

html.theme-dial .fgroup > summary { font-size: 12px; color: var(--text); }
html.theme-dial table.cmp th[scope="row"] { font-size: 11px; }
html.theme-dial .nav a { font-size: 11px; padding: 7px 8px; border-radius: 0; }
html.theme-dial .nav a:hover,
html.theme-dial .nav a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--text);
  color: var(--text);
}

html.theme-dial table.list td.num,
html.theme-dial table.cmp td,
html.theme-dial #filter-count,
html.theme-dial .range .vals,
html.theme-dial .glance .big {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Header hairline with a short minute-track */
html.theme-dial .site-header {
  background: var(--bg);
  border-bottom: 0;
}
html.theme-dial .site-header .wrap {
  position: relative;
}
html.theme-dial .site-header .wrap::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 7px;
  background:
    linear-gradient(var(--line), var(--line)) 0 3px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 8px);
  pointer-events: none;
  opacity: 0.85;
}

html.theme-dial .brand svg circle,
html.theme-dial .brand svg path { stroke: currentColor; }
html.theme-dial .brand svg path { stroke: var(--second); }

html.theme-dial .page-head::after {
  content: "";
  display: block;
  width: 88px;
  height: 8px;
  margin-top: 16px;
  background: repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 6px);
  opacity: 0.35;
}

html.theme-dial .site-footer {
  background: var(--bg);
  border-top: 0;
  position: relative;
}
html.theme-dial .site-footer .wrap::before {
  content: "";
  display: block;
  width: 88px;
  height: 8px;
  margin: 0 0 18px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 6px);
  opacity: 0.7;
}

/* Filter groups: hairline with end ticks (summary::after is the chevron) */
html.theme-dial .fgroup {
  border-bottom: 0;
  position: relative;
  background-image: linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 16px) 1px;
  background-position: 8px 100%;
  background-repeat: no-repeat;
}
html.theme-dial .fgroup:last-child { background-image: none; }
html.theme-dial .fgroup::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 6px;
  background:
    linear-gradient(var(--steel), var(--steel)) left bottom / 1px 6px no-repeat,
    linear-gradient(var(--steel), var(--steel)) right bottom / 1px 6px no-repeat;
  pointer-events: none;
}
html.theme-dial .fgroup:last-child::before { display: none; }

html.theme-dial .filters {
  border-color: var(--line);
  background: var(--surface);
}
html.theme-dial .filters-head,
html.theme-dial .filters-foot {
  background: var(--surface);
}

/* Date-window badge for the active filter count */
html.theme-dial #filter-count:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 4px;
  margin-left: 8px;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px var(--bg), inset 0 0 0 2px var(--line);
}
html.theme-dial #filter-count::before,
html.theme-dial #filter-count::after { content: none !important; }

/* Bezel-like tick scales on range sliders */
html.theme-dial .range .dual {
  height: 32px;
}
html.theme-dial .range .dual::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 7px);
  opacity: 0.75;
  pointer-events: none;
}
html.theme-dial .range .track {
  height: 1px;
  border-radius: 0;
  background: var(--line-2);
  top: 16px;
}
html.theme-dial .range .fill {
  height: 1px;
  border-radius: 0;
  background: var(--text);
  top: 16px;
}
html.theme-dial .range .dual input::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid var(--text);
  background: var(--surface);
  border-radius: 50%;
}
html.theme-dial .range .dual input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid var(--text);
  background: var(--surface);
  border-radius: 50%;
}

html.theme-dial .range-plain { position: relative; padding-bottom: 2px; }
html.theme-dial .bezel-ticks {
  display: block;
  height: 8px;
  margin: 2px 1px 0;
  background: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 7px);
  opacity: 0.75;
  pointer-events: none;
}
html.theme-dial input[type="range"].plain { accent-color: var(--text); }
html.theme-dial .fopt input,
html.theme-dial .toggle input { accent-color: var(--text); }

/* Photo tile + caption under the image */
html.theme-dial .card {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
html.theme-dial .card-media {
  border-radius: 0;
  background: var(--surface);
}
html.theme-dial .card .photo { position: relative; z-index: 0; }
html.theme-dial .card .add { z-index: 2; }
html.theme-dial .card:hover .card-media,
html.theme-dial .card:has(.card-link:focus-visible) .card-media {
  border-color: var(--text);
  box-shadow: none;
}
html.theme-dial .card .cap .m {
  font-weight: 500;
  letter-spacing: -0.03em;
}
html.theme-dial .card .add {
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-color: var(--line-2);
  color: var(--text);
}
html.theme-dial .card .add[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Controls */
html.theme-dial .btn { border-radius: 0; }
html.theme-dial .btn-primary { color: var(--bg); }
html.theme-dial .btn-primary:hover { color: var(--bg); }
html.theme-dial.mode-dark .btn-primary,
html.theme-dial.mode-dark .btn-primary:hover { color: var(--bg); }
html.theme-dial .btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--text);
  color: var(--text);
}
html.theme-dial .seg,
html.theme-dial input[type="search"],
html.theme-dial select,
html.theme-dial input[type="number"],
html.theme-dial input[type="text"] { border-radius: 0; }
html.theme-dial .chip {
  border-radius: 0;
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--line-2);
}
html.theme-dial .chip-clear { background: transparent; color: var(--muted); }
html.theme-dial .swatch { border-radius: 0; }
html.theme-dial .swatch[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--accent-soft);
  color: var(--text);
}

html.theme-dial :focus-visible { outline-color: var(--second); }
html.theme-dial .card:focus-visible { outline-color: var(--second); }

html.theme-dial a { color: var(--text); text-underline-offset: 3px; }
html.theme-dial a:hover { color: var(--second); }

/* Compare: technical caseback table */
html.theme-dial #capture {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 0;
}
html.theme-dial table.cmp {
  font-variant-numeric: tabular-nums lining-nums;
}
html.theme-dial table.cmp th,
html.theme-dial table.cmp td {
  border-bottom-color: var(--line);
}
html.theme-dial table.cmp thead th { border-bottom-color: var(--text); }
html.theme-dial table.cmp tr.diff td { background: transparent; }
html.theme-dial table.cmp tr.diff th[scope="row"] {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--text);
}
html.theme-dial table.list-wrap,
html.theme-dial .list-wrap {
  border-radius: 0;
}
html.theme-dial table.list th { background: var(--bg); color: var(--faint); }
html.theme-dial table.list tbody tr:hover { background: var(--bg); }

/* Size view: watchmaker's dimension drawing */
html.theme-dial .scale-stage {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 0;
  border-color: var(--line);
}
html.theme-dial .scale-box h2,
html.theme-dial .scale-side h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
html.theme-dial .fit-list .tag { border-radius: 0; background: var(--bg); color: var(--muted); }
html.theme-dial .fit-list .tag.over { background: color-mix(in srgb, var(--second) 16%, var(--surface)); color: var(--text); }
html.theme-dial .fit-list .tag.ok { background: var(--accent-soft); color: var(--text); }
html.theme-dial.mode-dark .fit-list .tag.over { background: #241010; color: #f0c4c0; }
html.theme-dial.mode-dark .fit-list .tag.ok { background: #1a2114; color: var(--second); }
html.theme-dial .calib { border-radius: 0; }
html.theme-dial .card-bar {
  border-radius: 0;
  background: var(--accent-soft);
  border-color: var(--text);
}

/* Loader: same dial, seconds hand in the single accent colour */
html.theme-dial .dial circle[fill="#fff"] { fill: var(--surface); }
html.theme-dial .dial circle[stroke],
html.theme-dial .dial line:not(.hand) { stroke: var(--text); }
html.theme-dial .dial circle[fill="#16171a"] { fill: var(--text); }
html.theme-dial .dial .hand {
  stroke: var(--second);
  animation-duration: 2.4s;
  animation-timing-function: linear;
}

html.theme-dial .toast {
  border-radius: 0;
  background: var(--text);
  color: var(--bg);
}
html.theme-dial .tray { box-shadow: 0 -1px 0 var(--line); }
html.theme-dial .slot { border-radius: 0; }
html.theme-dial dialog.detail { border-radius: 0; color: var(--text); background: var(--surface); }
html.theme-dial .empty-cmp { border-radius: 0; }
html.theme-dial .ad {
  border-radius: 0;
  background: repeating-linear-gradient(135deg, var(--bg) 0 10px, var(--surface) 10px 20px);
}
html.theme-dial .chart,
html.theme-dial .glance > div { border-radius: 0; }
html.theme-dial .badge { border-radius: 0; }
html.theme-dial.mode-dark .badge { background: #2a2410; color: #e8d48a; border-color: #5a4e20; }
html.theme-dial.mode-dark .badge.real { background: #1a2114; color: var(--second); border-color: #3a4a24; }

/* Mechanical easing */
html.theme-dial .card,
html.theme-dial .card-media,
html.theme-dial .card .add,
html.theme-dial .btn,
html.theme-dial .chip,
html.theme-dial .tray,
html.theme-dial .loader {
  transition-timing-function: var(--ease);
  transition-duration: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-dial .card,
  html.theme-dial .card-media,
  html.theme-dial .card .add,
  html.theme-dial .btn,
  html.theme-dial .chip,
  html.theme-dial .tray {
    transition: none;
  }
  html.theme-dial .dial .hand { animation-duration: 6s; }
}

html.theme-dial .cookie-notice {
  background: var(--bg);
  border-top: 0;
  box-shadow: none;
  background-image: linear-gradient(var(--line), var(--line));
  background-size: 100% 1px;
  background-position: 0 0;
  background-repeat: no-repeat;
}

/* ===================== WB-7 polish (calmer spacing, one type scale, photo tiles) =====================
   Type scale: 11 (labels) · 13 · 15 (body) · 18 · 24 · 34. Spacing steps: 4 · 8 · 12 · 16 · 24 · 32 · 48. */
html.theme-dial { --tile: #ffffff; --tile-ink: #161412; --tile-muted: #5a554e; --focus: #161412; }
html.theme-dial.mode-dark { --tile: #ffffff; --focus: #edebe4; }
html.theme-dial body { font-size: 15px; line-height: 1.55; }
html.theme-dial .page-head { padding: 36px 0 24px; }
html.theme-dial .page-head h1 { font-size: 34px; line-height: 1.12; margin: 0 0 10px; }
html.theme-dial .page-head p { font-size: 15px; line-height: 1.6; max-width: 62ch; }
@media (max-width: 640px) {
  html.theme-dial .page-head { padding: 20px 0 14px; }
  html.theme-dial .page-head h1 { font-size: 24px; margin-bottom: 6px; }
  html.theme-dial .page-head p { font-size: 14px; }
}
/* header: wordmark only, frosted on scroll */
html.theme-dial .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.theme-dial .site-header .wrap { min-height: 60px; gap: 24px; }
html.theme-dial .brand { font-size: 19px; letter-spacing: -0.035em; gap: 0; }
html.theme-dial .nav { gap: 6px; }
@media (max-width: 640px) {
  html.theme-dial .site-header .wrap { min-height: 0; gap: 2px 12px; padding-top: 10px; }
  html.theme-dial .brand { font-size: 18px; }
}
/* toolbar: one tidy bar between hairlines */
html.theme-dial .toolbar { gap: 10px; padding: 12px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html.theme-dial .toolbar .btn, html.theme-dial .toolbar select, html.theme-dial .toolbar input, html.theme-dial .toolbar .seg { min-height: 38px; }
html.theme-dial .toolbar .search { max-width: 420px; }
html.theme-dial .chips:empty { display: none; }
html.theme-dial .chips { margin: -6px 0 16px; }
@media (max-width: 900px) {
  html.theme-dial .toolbar { padding: 10px 0; gap: 8px; }
  html.theme-dial .toolbar .search { order: 0; flex: 1 1 100%; max-width: none; }
  html.theme-dial .toolbar #toggle-filters { order: 1; }
  html.theme-dial .toolbar #sort { order: 2; flex: 1 1 0; min-width: 0; width: auto; }
  html.theme-dial .toolbar .seg { order: 3; }
  html.theme-dial .toolbar .count { order: 4; flex: 1 1 100%; margin: 0; }
  html.theme-dial .toolbar .spacer { display: none; }
}
/* photo cards: white square tiles, caption under the image, subtle hover */
html.theme-dial .grid { gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 640px) { html.theme-dial .grid { gap: 14px 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 360px) { html.theme-dial .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html.theme-dial .card { background: transparent; border: 0; aspect-ratio: auto; }
html.theme-dial .card-media { background: var(--tile); border-color: var(--line); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
html.theme-dial .card .photo { padding: 7%; box-sizing: border-box; background: var(--tile); }
html.theme-dial .card:hover .card-media { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 10px 24px -16px rgba(22, 20, 18, .45); }
html.theme-dial .card:has(.card-link:focus-visible) .card-media { border-color: var(--text); }
html.theme-dial .card .cap .b { color: var(--tile-muted); letter-spacing: 0.1em; }
html.theme-dial .card .cap .m { color: var(--tile-ink); font-size: 13px; }
html.theme-dial .card .cap .p { color: var(--tile-muted); }
html.theme-dial .card .add { background: rgba(255, 255, 255, .96); color: #161412; border-color: #c4bfb4; }
html.theme-dial .card .add[aria-pressed="true"] { background: #161412; border-color: #161412; color: #fff; }
/* white tiles everywhere a photo appears */
html.theme-dial .photo { background: var(--tile); }
html.theme-dial table.list .w .photo, html.theme-dial .fit-list .photo, html.theme-dial .cmp-head > .photo { border: 1px solid var(--line); }
html.theme-dial .detail-art { background: var(--tile); }
/* list view: no awkward wraps */
html.theme-dial table.list td.num { white-space: nowrap; }
html.theme-dial table.list td { vertical-align: middle; }
html.theme-dial table.list .pr small { display: block; color: var(--muted); font-size: 11.5px; }
/* focus states: one clear ring */
html.theme-dial :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html.theme-dial .btn:focus-visible, html.theme-dial select:focus-visible, html.theme-dial input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html.theme-dial .card-media { transition: none; } html.theme-dial .card:hover .card-media { transform: none; } }
/* footer */
html.theme-dial .site-footer { margin-top: 56px; }

/* Collection builder (Dial) */
html.theme-dial .col-set-card .slot-k,
html.theme-dial .col-pick-count,
html.theme-dial .col-specs dt {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 11px;
}
html.theme-dial .col-set-card,
html.theme-dial .col-slot,
html.theme-dial .col-pick-list,
html.theme-dial .col-menu,
html.theme-dial .col-set-photo,
html.theme-dial .col-chosen .photo {
  border-radius: 0;
}
html.theme-dial .col-set-name .m,
html.theme-dial .col-pick-list .m,
html.theme-dial .col-chosen a {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
html.theme-dial .card .col-add {
  background: rgba(255, 255, 255, .96);
  color: #161412;
  border-color: #c4bfb4;
  border-radius: 0;
}
html.theme-dial .card .col-add[aria-pressed="true"] {
  background: #161412;
  border-color: #161412;
  color: #fff;
}
html.theme-dial.mode-dark .card .col-add {
  background: rgba(20, 20, 20, .96);
  color: #edebe4;
  border-color: #4a4844;
}
html.theme-dial.mode-dark .card .col-add[aria-pressed="true"] {
  background: #edebe4;
  border-color: #edebe4;
  color: #0e0e0e;
}
html.theme-dial .col-pick-list li.is-on {
  box-shadow: inset 2px 0 0 var(--text);
  background: var(--accent-soft);
}
html.theme-dial .col-set-photo .photo,
html.theme-dial .col-chosen .photo,
html.theme-dial .col-pick-list .photo {
  background: var(--tile, var(--surface));
}

