:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18263a;
  background: #f7f9fc;
  font-synthesis: none;
  --accent: #2859ce;
  --border: #dce3ed;
  --muted: #62718a;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #668ffa; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 18px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner, .page-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #18263a; font-size: 22px; font-weight: 750; letter-spacing: -.5px; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #18263a; color: #fff; font-size: 21px; }
.repository-link { color: #42516a; text-decoration: none; font-size: 14px; font-weight: 600; }
.repository-link:hover { color: var(--accent); }
.repository-link span { margin-left: 5px; }
.introduction { padding: 54px 0 35px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; }
h1 { margin: 0 0 15px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -2px; font-weight: 750; }
.intro-copy { max-width: 680px; margin: 0; color: #52617a; font-size: 17px; line-height: 1.65; }
.coverage-strip { display: flex; gap: 38px; margin-top: 30px; }
.coverage-strip p { margin: 0; display: flex; align-items: baseline; gap: 9px; }
.coverage-strip strong { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.coverage-strip span { color: var(--muted); font-size: 13px; }
.scope-note { max-width: 780px; margin: 19px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.collection { padding-bottom: 24px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.search-field { width: min(490px, 100%); }
.search-field label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.search-field input { width: 100%; height: 44px; padding: 11px 14px; color: #18263a; background: #fff; border: 1px solid #ced8e6; border-radius: 8px; }
.search-field input::placeholder { color: #8490a4; }
.filter-group { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 3px; padding: 4px; background: #eaf0f7; border: 1px solid #e2e8f1; border-radius: 9px; }
.filter-group button { padding: 8px 17px; color: #5d6c83; background: transparent; border: 0; border-radius: 6px; font-size: 13px; font-weight: 650; }
.filter-group button[aria-pressed="true"] { color: #18263a; background: #fff; box-shadow: 0 1px 3px #18263a14; }
.collection-summary { display: flex; justify-content: space-between; gap: 20px; margin: 17px 0 19px; color: var(--muted); font-size: 12px; }
.collection-summary p { margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.gallery-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.gallery-card:hover { border-color: #bacbe4; box-shadow: 0 5px 20px #18263a09; }
.checkerboard { background-color: #fff; background-image: linear-gradient(45deg, #eef1f6 25%, transparent 25%), linear-gradient(-45deg, #eef1f6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef1f6 75%), linear-gradient(-45deg, transparent 75%, #eef1f6 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.card-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 15px; border: 0; border-bottom: 1px solid #e8edf4; }
.card-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-preview .image-placeholder { position: static; margin: 0; padding: 20px; }
.card-body { padding: 16px 17px 15px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.format-badge { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #334768; font-size: 12px; font-weight: 750; }
.card-body h2 { margin: 12px 0 0; font-size: 14px; font-weight: 650; line-height: 1.45; }
.card-title { padding: 0; border: 0; text-align: left; background: transparent; color: inherit; font: inherit; }
.card-title:hover { color: var(--accent); }
.card-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: #8490a4; font-size: 11px; }
.card-footer a { font-size: 12px; font-weight: 600; text-decoration: none; }
.card-footer a:hover { text-decoration: underline; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; color: #5b6d86; background: #eef2f7; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-match { color: #277153; background: #ecf6ef; }
.status-changed { color: #8c5a14; background: #fff5df; }
.status-error { color: #a43e47; background: #fcecef; }
.notice { padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #62718a; font-size: 14px; line-height: 1.65; }
.notice-error { color: #983943; border-color: #e8cbd0; background: #fff7f8; }
.site-footer { padding-top: 27px; padding-bottom: 35px; border-top: 1px solid var(--border); display: flex; align-items: start; justify-content: space-between; gap: 20px; color: #758299; font-size: 12px; line-height: 1.5; }
.site-footer p { margin: 0; }
dialog { width: min(820px, calc(100% - 36px)); max-height: calc(100svh - 36px); padding: 0; border: 1px solid #cbd6e7; border-radius: 16px; box-shadow: 0 24px 90px #17233733; color: inherit; }
dialog::backdrop { background: #14213799; backdrop-filter: blur(3px); }
.dialog-shell { padding: 25px; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-header > div { min-width: 0; overflow-wrap: anywhere; }
.dialog-header h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
.dialog-header .eyebrow { margin-bottom: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.dialog-description { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; padding: 0; color: #576781; background: #f1f5fa; border: 1px solid #e3e9f2; border-radius: 7px; font-size: 18px; }
#close-dialog { font-size: 26px; line-height: 1; }
.icon-button:hover { background: #e5edf8; color: #253d65; }
.comparison-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin: 23px 0 14px; }
.comparison-mode, .case-navigation { display: flex; align-items: center; gap: 10px; }
.comparison-mode .status-badge { font-size: 11px; }
#diff-toggle { padding: 7px 10px; border: 1px solid #d4dfef; border-radius: 6px; background: #fff; color: #426295; font-size: 12px; font-weight: 600; }
#diff-toggle[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
#comparison-position { min-width: 49px; color: var(--muted); font-size: 11px; text-align: center; }
.comparison-stage { position: relative; width: min(100%, 490px); aspect-ratio: 1; max-height: 55svh; margin: auto; border: 1px solid #dae2ee; border-radius: 9px; overflow: hidden; }
.image-layer { position: absolute; inset: 0; }
.image-layer img { width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 35px; color: #677790; font-size: 13px; line-height: 1.6; }
.current-layer { clip-path: inset(0 50% 0 0); }
.wipe-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: #345376; pointer-events: none; }
.wipe-divider span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; transform: translate(-50%, -50%); border: 1px solid #b8c9df; border-radius: 50%; background: #fff; color: #345376; font-size: 17px; }
.comparison-labels { position: absolute; inset: 11px 12px auto; display: flex; justify-content: space-between; pointer-events: none; }
.comparison-labels span { padding: 4px 7px; border: 1px solid #d5dfed; border-radius: 5px; background: #fffffff0; color: #50617c; font-size: 10px; font-weight: 600; }
.wipe-controls { max-width: 490px; margin: 17px auto 23px; }
.wipe-controls label { display: block; color: var(--muted); font-size: 12px; text-align: center; }
.wipe-controls input { display: block; width: 100%; margin: 10px 0 0; accent-color: var(--accent); }
.comparison-details { padding-top: 19px; margin-top: 20px; border-top: 1px solid #e2e8f1; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0; }
.metrics dt { color: var(--muted); font-size: 11px; line-height: 1.4; }
.metrics dd { margin: 6px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 650; }
.provenance { overflow-wrap: anywhere; color: #758299; margin: 17px 0 0; font-size: 11px; line-height: 1.65; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 17px; }
.download-links a { font-size: 12px; font-weight: 600; text-decoration: none; }
.download-links a:hover { text-decoration: underline; }
.keyboard-hint { margin: 22px 0 0; color: #8c98ac; font-size: 10px; }
@media (max-width: 700px) {
  .header-inner, .page-shell { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; }
  .introduction { padding-top: 37px; }
  h1 { letter-spacing: -1.3px; }
  .intro-copy { font-size: 15px; }
  .coverage-strip { gap: 24px; }
  .coverage-strip p { flex-direction: column; gap: 4px; }
  .coverage-strip strong { font-size: 25px; }
  .coverage-strip span { font-size: 11px; }
  .collection-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
  .search-field { width: 100%; }
  .filter-group { align-self: start; }
  .collection-summary { align-items: start; flex-direction: column; gap: 7px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
  .card-body { padding: 13px; }
  .card-heading { align-items: start; flex-wrap: wrap; }
  .card-body h2 { font-size: 13px; }
  .card-preview { padding: 10px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .dialog-shell { padding: 18px; }
  .dialog-header h2 { font-size: 19px; }
  .comparison-toolbar { gap: 10px; }
  .comparison-mode { gap: 6px; }
  .case-navigation { gap: 5px; }
  .case-navigation .icon-button { width: 29px; height: 29px; }
  .metrics { gap: 10px; }
  .metrics dt { font-size: 10px; }
  .metrics dd { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
