/* dath.berlin — Website
   Grundidee: die Graukarte. 18-%-Grau ist der neutrale Bezug, auf den jede Belichtung eingemessen wird;
   die Filme bringen die Farbe, Schwarz trägt die Schrift, Weiß ist Licht (Fokus, Auswahl).
   Gewicht eines Projekts = Format im Raster: schwere Arbeiten werden breit bis Cinemascope.
   Schrift: Archivo (variabel) – breit für Namen und Titel, normal für Text, schmal für den Abspann. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --g: clamp(16px, 2.4vw, 36px);          /* Seitenrand */
  --gap: clamp(8px, 1.2vw, 18px);         /* Abstand zwischen Kacheln */
  --row-gap: clamp(28px, 3.4vw, 52px);
  --measure: 34em;
  --t-small: 0.8125rem;   /* 13 */
  --t-ui: 0.9375rem;      /* 15 */
  --t-body: 1.0625rem;    /* 17 */
  --t-lead: 1.25rem;      /* 20 */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.theme-grau   { --bg: #8a8b8d; --ink: #000; --ink-2: #1d1e20; --rule: rgba(0,0,0,.3); --hi: #fff; --screen: #000; --on-screen: #fff; }
.theme-schwarz{ --bg: #000;    --ink: #fff; --ink-2: #a9aaac; --rule: rgba(255,255,255,.22); --hi: #8a8b8d; --screen: #141414; --on-screen: #fff; }
.theme-weiss  { --bg: #fff;    --ink: #000; --ink-2: #55565a; --rule: rgba(0,0,0,.16); --hi: #8a8b8d; --screen: #000; --on-screen: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.5 "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-feature-settings: "kern", "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- Kopf ---------- */
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--g);
  font-size: var(--t-ui);
  position: relative;
  z-index: 5;
}
.wordmark-small {
  font-weight: 750;
  font-stretch: 125%;
  font-size: 1.125rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
.is-home .wordmark-small { visibility: hidden; }
.is-home.past-wordmark .wordmark-small { visibility: visible; }
.site-nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-toggle { display: none; font-weight: 500; }

/* ---------- Start: Wortmarke ---------- */
.intro { padding: 0 var(--g) clamp(32px, 4.5vw, 64px); }
.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 27.5vw;            /* wird per JS exakt auf die Breite gesetzt */
  line-height: .74;
  letter-spacing: -.035em;
  margin: .06em 0 0 -.045em;
  white-space: nowrap;
}
.wordmark span { display: inline-block; }
.tagline { margin-top: clamp(14px, 1.6vw, 24px); font-size: var(--t-lead); line-height: 1.3; font-weight: 500; }
.cap-dur, .play-dur { font-feature-settings: "tnum" 1; }

/* ---------- Themen-Filter ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(14px, 1.8vw, 28px);
  padding: 0 var(--g);
  margin-bottom: clamp(18px, 2.2vw, 32px);
  font-size: var(--t-ui);
  font-weight: 500;
}
.filter a { text-decoration: none; }
.filter a:hover, .filter a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; }
.filter sup { font-size: .7em; margin-left: .2em; color: var(--ink-2); font-feature-settings: "tnum" 1; }

/* ---------- Raster ----------
   Alle Kacheln gleich: Spalten (--cols) und Bildformat (--ratio) kommen aus den Einstellungen.
   Bewusst ohne Hover-Effekte – kein Zoom, keine Überblendung, kein Vorschau-Video. */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--row-gap) var(--gap);
  padding: 0 var(--g);
}
.tile { display: block; min-width: 0; text-decoration: none; }
.tile[hidden] { display: none; }
.frame { display: block; position: relative; aspect-ratio: var(--ratio, 16 / 9); background: var(--screen); overflow: hidden; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  padding-top: 10px;
  font-size: var(--t-ui);
  line-height: 1.3;
}
.cap-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-dur { color: var(--ink-2); }
.cap-meta { grid-column: 1 / -1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover .cap-title { text-decoration: underline; text-decoration-thickness: 1px; }
.tile:focus-visible { outline-offset: 6px; }
.grid-empty { grid-column: 1 / -1; color: var(--ink-2); }
.empty { padding: 0 var(--g) 80px; color: var(--ink-2); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(var(--cols-t, 3), minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(var(--cols-m, 1), minmax(0, 1fr)); row-gap: 26px; }
  .grid[style*="--cols-m:2"] .cap { font-size: var(--t-small); }
  .grid[style*="--cols-m:2"] .cap-dur { display: none; }
}

/* ---------- Player ---------- */
.player { position: relative; background: var(--screen); overflow: hidden; width: 100%; }
.player video, .player iframe, .player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; }
.player.embed > img, .player.still-only > img { object-fit: cover; }
.player.still-only { aspect-ratio: 16 / 9; }
.play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--on-screen);
  background: linear-gradient(transparent 55%, rgba(0,0,0,.35));
}
.play-mark { width: 0; height: 0; border-style: solid; border-width: 28px 0 28px 46px; border-color: transparent transparent transparent currentColor; filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }
.play-dur { font-size: var(--t-ui); font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.play-note { max-width: 26em; font-size: var(--t-small); text-align: center; line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,.6); padding: 0 16px; }
.player.is-started .play { display: none; }

/* ---------- Film-Lightbox ----------
   Vollbild auf Schwarz wie im Kinosaal. Oben eine schmale Leiste (Vorheriger, Nächster, Schließen),
   darunter der Film in voller Höhe, darunter Titel, Daten, Text, Abspann und Standbilder. */
.film {
  --bg: #000; --ink: #fff; --ink-2: #a3a4a6; --rule: rgba(255,255,255,.22); --hi: #8a8b8d;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 40;
}
.film:not([open]) { display: none; }
.film::backdrop { background: #000; }
body.film-open { overflow: hidden; }
.film-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 32px);
  padding: 16px var(--g);
  background: #000;
  font-size: var(--t-ui);
  font-weight: 500;
}
.film-bar a { text-decoration: none; }
.film-bar a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.film-now { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-now strong { font-weight: 600; }
.film-now span { color: var(--ink-2); margin-left: .4em; }
.film-close { margin-left: auto; }
/* Der Film bekommt fast die volle Höhe; unten bleibt ein Streifen, in dem der Titel anschneidet – Zeichen, dass darunter die Infos folgen. */
.film-screen .player { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
.film-screen .player.still-only { max-height: none; }
.film-info {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 5vw, 96px);
  padding: clamp(28px, 3.6vw, 56px) var(--g) 0;
}
.film-main { display: grid; gap: 22px; align-content: start; }
.film-title {
  font-weight: 750;
  font-stretch: 125%;
  font-size: clamp(2.25rem, 5.6vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.film-meta { display: flex; flex-wrap: wrap; gap: 12px clamp(28px, 3.4vw, 56px); }
.film-meta dt { font-size: var(--t-small); color: var(--ink-2); }
.film-meta dd { font-weight: 500; font-feature-settings: "tnum" 1; }
.film-main .prose { font-size: var(--t-lead); }
.film-credits { padding-top: .4em; }
.film-credits .credits { margin: 0; }
.film-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: clamp(40px, 5vw, 80px) var(--g) 0; }
.film-stills img { width: 100%; height: auto; }
.film-body { padding-bottom: clamp(56px, 7vw, 120px); }
.film .draft-note { padding: 8px 12px; justify-self: start; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--t-ui); }
.tags a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.tags a:hover { border-color: var(--ink); }
/* Abspann: Rolle rechts, Name links, an einer Mittelachse – wie am Ende eines Films. */
.credits {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: .35em;
  font-stretch: 78%;
  font-size: 1.125rem;
  max-width: 40rem;
}
.cr-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.4em; }
.cr-row dt { text-align: right; color: var(--ink-2); }
.cr-row dd { font-weight: 600; }
.cr-gap { height: 1em; }
@media (max-width: 860px) {
  .film-info { grid-template-columns: 1fr; }
  .film-stills { grid-template-columns: 1fr; }
}
.draft-note { background: var(--hi); color: #000; padding: 8px var(--g); font-size: var(--t-ui); }
.journal-filter { max-width: 40rem; margin: 0 auto 18px; font-size: var(--t-ui); display: flex; gap: 16px; flex-wrap: wrap; }
.journal-filter a { color: var(--ink-2); }

/* ---------- Text ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: .9em; }
.prose h2 { font-weight: 700; font-stretch: 112%; font-size: 1.5rem; line-height: 1.2; margin-top: 1.6em; }
.prose h3 { font-weight: 650; font-size: 1.125rem; margin-top: 1.4em; }
.prose h4 { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin-left: 0; padding-left: 1em; border-left: 2px solid var(--ink); font-size: 1.15em; }
.prose .md-media, .prose .player { margin-top: 1.6em; margin-bottom: 1.6em; }
.md-media video, .md-media img { width: 100%; height: auto; background: var(--screen); }
.md-media figcaption { font-size: var(--t-small); color: var(--ink-2); margin-top: 6px; }
.md-media .still { display: block; width: 100%; cursor: zoom-in; }

.page { padding: clamp(20px, 3vw, 48px) var(--g) 0; }
.page-title {
  font-weight: 750;
  font-stretch: 125%;
  font-size: clamp(2.25rem, 5.6vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.025em;
  margin-bottom: clamp(20px, 2.6vw, 40px);
}
.page .prose { font-size: var(--t-lead); }
.page-cover { position: relative; aspect-ratio: 2.39 / 1; background: var(--screen); margin-bottom: clamp(24px, 3vw, 48px); overflow: hidden; }
.page-cover img, .page-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-title { font-weight: 700; font-stretch: 112%; font-size: 1.5rem; margin-bottom: 8px; }

/* ---------- Journal ---------- */
.journal { padding: clamp(20px, 3vw, 48px) var(--g) 0; }
.journal .post, .journal .empty, .journal > .page-title { max-width: 40rem; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.post { padding: 22px 0 28px; border-top: 1px solid var(--rule); }
.post-head { display: flex; align-items: center; gap: 10px; font-size: var(--t-ui); }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: var(--screen); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-name { font-weight: 600; }
.post-date { color: var(--ink-2); text-decoration: none; font-feature-settings: "tnum" 1; }
.post-date:hover { text-decoration: underline; }
.post-text { margin-top: 10px; font-size: var(--t-lead); line-height: 1.45; overflow-wrap: anywhere; }
.post-media { display: grid; gap: 4px; margin-top: 16px; }
.post-media.n2, .post-media.n4 { grid-template-columns: 1fr 1fr; }
.post-media.n3 { grid-template-columns: 1fr 1fr; }
.post-media.n3 figure:first-child { grid-column: 1 / -1; }
.post-media figure { min-width: 0; }
.post-media .still { display: block; width: 100%; cursor: zoom-in; }
.post-media img { width: 100%; height: auto; }
.post-media:not(.n1) img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.post-media video { width: 100%; height: auto; background: var(--screen); }
.post .player { margin-top: 16px; aspect-ratio: 16 / 9; }
.post-project { display: grid; grid-template-columns: 34% 1fr; gap: 14px; align-items: center; margin-top: 16px; text-decoration: none; }
.pp-frame { position: relative; aspect-ratio: 16 / 9; background: var(--screen); overflow: hidden; }
.pp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-copy { display: grid; gap: 2px; font-size: var(--t-ui); }
.pp-title { font-weight: 600; }
.pp-meta { color: var(--ink-2); }
.post-project:hover .pp-title { text-decoration: underline; }
.post .tags { margin-top: 14px; }

/* ---------- Fuß ---------- */
.site-foot { margin-top: clamp(80px, 10vw, 180px); padding: 0 var(--g) 28px; }
.foot-mail {
  display: inline-block;
  font-weight: 750;
  font-stretch: 125%;
  font-size: clamp(1.6rem, 5.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.foot-mail:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: var(--t-ui);
}
.foot-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.foot-legal { color: var(--ink-2); }

/* ---------- Bildbetrachter ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; padding: 48px 16px 16px; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: var(--t-ui); font-weight: 500; }
body.viewer-open { overflow: hidden; }

/* ---------- Schmal ---------- */
@media (max-width: 760px) {
  .site-head { align-items: center; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    padding: 4px var(--g) 18px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.5rem;
    font-stretch: 112%;
  }
  .site-nav a { padding: 6px 0; font-weight: 650; }
  .nav-open .site-nav { display: flex; }
  .is-home .wordmark-small { visibility: visible; }
  .film-bar { padding-top: 12px; padding-bottom: 12px; }
  .film-now { display: none; }
  .film-screen .player { max-height: none; }
  .post-project { grid-template-columns: 40% 1fr; }
  .cr-row { column-gap: .9em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Transfer (Kundenseite) ---------- */
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-transfer .wordmark-small { visibility: visible; }
.t-expiry { color: var(--ink-2); font-feature-settings: "tnum" 1; }
.transfer { padding: 0 var(--g); }
.t-intro { padding: clamp(16px, 2.4vw, 40px) 0 clamp(24px, 3vw, 44px); }
.t-for { font-size: var(--t-lead); font-weight: 500; margin-bottom: 8px; }
.t-message { max-width: var(--measure); font-size: var(--t-lead); line-height: 1.45; }
.t-sign { margin-top: .4em; color: var(--ink-2); }
.t-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(20px, 2.4vw, 32px); font-weight: 500; font-feature-settings: "tnum" 1; }
.t-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--t-ui);
  text-decoration: none;
  border: 2px solid var(--ink);
}
.t-btn:hover { background: var(--hi); color: #000; border-color: var(--hi); }
.t-btn:disabled { opacity: .5; cursor: progress; }
.t-btn-ghost { background: transparent; color: var(--ink); }
.t-link { font-size: var(--t-ui); font-weight: 500; }
.t-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 25rem); gap: var(--gap) clamp(20px, 2.4vw, 40px); align-items: start; }
.t-screen { position: relative; background: var(--screen); max-height: 80vh; display: grid; place-items: center; overflow: hidden; }
.t-screen video { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; background: var(--screen); }
.t-screen.kind-image img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.t-screen.kind-audio { padding: 48px 24px; }
.t-screen.kind-audio audio { width: 100%; }
.t-screen.kind-pdf { height: 80vh; place-items: stretch; }
.t-screen.kind-pdf iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.t-cant { color: var(--on-screen); padding: 48px 24px; text-align: center; max-width: 30em; }
.t-cant a { color: inherit; }
.t-screen video + .t-cant { position: absolute; inset: auto 0 0; background: rgba(0,0,0,.75); padding: 16px; max-width: none; }
/* Kommentar-Marken unter dem Video, an ihrer Zeitposition */
.t-markers { position: relative; height: 18px; margin: 6px 0 0; border-bottom: 1px solid var(--rule); }
.mk { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); }
.mk-owner { background: var(--hi); border-color: var(--ink); }
.mk-done { opacity: .35; }
.t-fileline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 12px; }
.t-fileline h2 { font-size: var(--t-lead); font-weight: 600; overflow-wrap: anywhere; }
.t-fileline span { color: var(--ink-2); font-size: var(--t-ui); font-feature-settings: "tnum" 1; }
.t-fileline a { margin-left: auto; }
.t-side { border-top: 2px solid var(--ink); padding-top: 10px; }
.t-side-title { font-size: var(--t-ui); font-weight: 650; margin-bottom: 6px; }
.t-comments { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
.c { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-ui); transition: background .6s; }
.c.is-flash { background: color-mix(in srgb, var(--hi) 35%, transparent); }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.c-head span { color: var(--ink-2); font-size: var(--t-small); }
.c p { margin-top: 4px; overflow-wrap: anywhere; }
.c-tc { font-weight: 650; font-feature-settings: "tnum" 1; background: var(--ink); color: var(--bg); padding: 1px 6px; font-size: var(--t-small); }
.c-tc:hover { background: var(--hi); color: #000; }
.c-reply { padding-left: 18px; border-left: 2px solid var(--rule); margin-left: 2px; }
.c-owner strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hi); margin-left: 6px; vertical-align: middle; outline: 1px solid var(--ink); }
.c-done { opacity: .55; }
.c-state { font-size: var(--t-small); color: var(--ink-2); }
.c-replybtn { margin-top: 6px; font-size: var(--t-small); color: var(--ink-2); text-decoration: underline; }
.c-empty { padding: 14px 0; color: var(--ink-2); font-size: var(--t-ui); }
.t-form, #approveForm { display: grid; gap: 10px; margin-top: 14px; }
.t-form textarea, #approveForm textarea, .t-name input, .t-pass input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 70%, #fff);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 12px;
  resize: vertical;
}
.t-form textarea:focus, #approveForm textarea:focus, .t-name input:focus, .t-pass input:focus { outline: 2px solid var(--hi); outline-offset: 0; border-color: var(--ink); }
.t-name { display: grid; gap: 4px; font-size: var(--t-small); color: var(--ink-2); }
.t-name.is-known { grid-template-columns: auto 1fr; align-items: baseline; gap: 6px; }
.t-name.is-known input { background: transparent; border-color: transparent; padding: 0; color: var(--ink); font-weight: 600; font-size: var(--t-ui); cursor: text; }
.t-form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.t-at { display: flex; align-items: center; gap: 6px; font-size: var(--t-ui); font-feature-settings: "tnum" 1; }
.t-at input { width: 18px; height: 18px; accent-color: #000; }
.t-error { color: var(--ink); background: var(--hi); padding: 8px 10px; font-size: var(--t-ui); }
.t-closed, .t-hint { color: var(--ink-2); font-size: var(--t-ui); margin-top: 10px; }
.t-files { margin-top: clamp(40px, 5vw, 80px); }
.t-files ul { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.t-files li { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--rule); padding: 8px 0; }
.t-files li.is-current .f-name { text-decoration: underline; text-decoration-thickness: 2px; }
.f-open { flex: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; text-align: left; align-items: center; }
.f-thumb { grid-row: 1 / 3; aspect-ratio: 16 / 9; background: var(--screen); color: var(--on-screen); display: grid; place-items: center; overflow: hidden; font-size: var(--t-small); font-weight: 600; }
.f-thumb img { width: 100%; height: 100%; object-fit: cover; }
.f-name { font-weight: 600; overflow-wrap: anywhere; align-self: end; }
.f-meta { color: var(--ink-2); font-size: var(--t-small); font-feature-settings: "tnum" 1; align-self: start; }
.t-approve { margin-top: clamp(48px, 6vw, 96px); max-width: 36rem; }
.t-approve .t-form-row { justify-content: flex-start; }
.t-approval { font-size: var(--t-lead); font-weight: 500; padding: 12px 14px; border-left: 4px solid var(--ink); }
.t-approval.is-approved { background: var(--ink); color: var(--bg); }
.t-gate { padding: 18px var(--g); max-width: 40rem; }
.t-gate .page-title { margin-top: clamp(48px, 10vh, 120px); }
.t-gate p { font-size: var(--t-lead); }
.t-pass { display: grid; gap: 10px; }
.t-pass label { font-weight: 500; }
.t-pass .t-btn { justify-self: start; }
@media (max-width: 900px) {
  .t-stage { grid-template-columns: 1fr; }
  .transfer { padding: 0; }
  .t-intro, .t-fileline, .t-markers, .t-side, .t-files, .t-approve { margin-left: var(--g); margin-right: var(--g); }
  .t-comments { max-height: none; }
  .f-open { grid-template-columns: 88px minmax(0, 1fr); }
}
