/* rd.arnofaure.com - Arno's own look for the test library: the labs palette (black, bone, grey), Hanken Grotesk for the interface,
   Libre Caslon Condensed for the name and the page titles, 5px corners. Loaded after the shared styles, so it only re-colours them. */
@font-face { font-family: "Libre Caslon Condensed"; src: url("/fonts/LibreCaslonCondensed.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Condensed"; src: url("/fonts/LibreCaslonCondensed-Italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
  color-scheme: dark;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Libre Caslon Condensed", Georgia, serif;
  --bg: #000000; --surface: #101010; --surface-2: #181818;
  --line: rgba(255, 255, 255, 0.16); --line-strong: rgba(255, 255, 255, 0.32); --hover: rgba(255, 255, 255, 0.06);
  --fg: #f2f1ea; --muted: #a8a8a8;
  --accent: #f2f1ea; --accent-2: #ffffff; --accent-ink: #f2f1ea; --accent-soft: rgba(242, 241, 234, 0.1); --on-accent: #000000;
  --crit: #d9625c; --crit-ink: #ee8d88; --crit-soft: rgba(217, 98, 92, 0.14);
  --toast-bg: #f2f1ea; --toast-fg: #000000; --scrim: rgba(0, 0, 0, 0.7);
  --shadow: rgba(0, 0, 0, 0.6); --shadow-lg: rgba(0, 0, 0, 0.8);
  --logo-filter: none;
}
body { font-family: var(--font-text); font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, .view h1 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* the header: a name, two or three controls, nothing else */
.stickyhead { background: var(--bg); gap: 14px; border-bottom: 1px solid var(--line); }
.brand { gap: 12px; align-items: baseline; }
.brand .wordmark { font: 500 34px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; color: var(--fg); }
.brand .sub { color: var(--muted); font-size: 13px; }
.top-icons { gap: 6px; }
.nav a { border-radius: 5px; border-color: transparent; padding: 6px 12px; font-weight: 500; }
.nav a:hover { background: var(--hover); border-color: transparent; }
.nav a[aria-current="page"] { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.iconbtn { border-radius: 5px; background: transparent; border-color: var(--line); width: 38px; height: 38px; }
.btn { border-radius: 5px; background: transparent; }
.btn:hover { border-color: var(--line-strong); color: var(--fg); }
.btn.primary { background: var(--fg); border-color: var(--fg); color: #000; }
.btn.primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn.danger { color: var(--crit-ink); }
.btn.danger:hover { border-color: var(--crit); color: var(--crit-ink); }
.btn.ghost:hover { text-decoration: none; color: var(--fg); }
.panel, .pal, .overlay > div { border-radius: 5px; }
input, select, textarea { border-radius: 5px; }

/* sign-in */
body.login { display: grid; place-items: center; min-height: 100svh; padding: 24px; }
.login-box { width: min(360px, 100%); display: flex; flex-direction: column; gap: 22px; }
.login-box h1 { font: 500 44px/1 var(--font-display); letter-spacing: -0.02em; }
.login-box p { color: var(--muted); }
.login-box form { display: flex; flex-direction: column; gap: 12px; }
.login-box label { font-size: 13px; color: var(--muted); }
.login-box input { width: 100%; padding: 11px 12px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.login-box input:focus-visible { border-color: var(--fg); outline-offset: 0; }
.login-box .btn { justify-content: center; padding: 11px 14px; font-size: 14px; }
.login-box .err { color: var(--crit-ink); min-height: 1.5em; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* the tests list: a picture and a title, nothing else */
.tl-card .tl-id, .tl-card .tl-meta, .tl-card .tl-tags { display: none; }
.tl-card h3 { font-size: 17px; }
.tl-reg th:nth-child(2), .tl-reg td:nth-child(2), .tl-reg th:nth-child(5), .tl-reg td:nth-child(5) { display: none; }
.tl-reg .tl-tags, .tl-reg .tl-sm { display: none; }

/* New test: one simple screen */
.rd-h1 { font: 500 44px/1.05 var(--font-display); letter-spacing: -0.02em; margin: 8px 0 4px; }
.rd-new { gap: 18px; }
.rd-files { display: flex; flex-direction: column; }
.rd-file { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rd-file.skip { opacity: .45; }
.rd-file .nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.rd-more summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.rd-more[open] summary { margin-bottom: 12px; }
.rd-tools { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.ad-done-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .rd-file { grid-template-columns: 48px minmax(0, 1fr) auto; } .rd-file select { grid-column: 2 / 4; } }

/* no video scope on rd */
.tl-tools button[title^="Levels of the picture"], .tl-scope { display: none !important; }

/* the pop-up that asks for the details of one picture or video */
.rd-pop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 16px; overflow: auto; }
.rd-pop-box { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rd-pop-thumb { width: 100%; max-height: 220px; object-fit: contain; background: #000; border-radius: 5px; }
.rd-file-actions { display: flex; gap: 6px; }
.rd-file { grid-template-columns: 56px minmax(0, 1fr) 190px auto; }
