/* =====================================================================
   RAW SLATE · RAW SOULS Production
   off-white #F4F1EC · ink #111 · sand #B89B72 · 1px hairlines
   no shadows, no gradients (image overlays excepted), 200ms motion
   ===================================================================== */
:root {
  --bg: #f4f1ec;
  --ink: #111111;
  --sand: #b89b72;
  --sand-ink: #6e5534;
  --line: #d9d3c9;
  --muted: #6d6a63;
  --card: rgba(255, 255, 255, 0.42);
  --sub: #ebe6de;
  --film: #0b0b0b;
  --paper: #f4f1ec;
  --danger: #8c2f1f;
  --sans: "Helvetica Neue", Helvetica, Inter, Arial, system-ui, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 200ms;
  --top-h: 56px;
  --tab-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
html.set {
  /* Set-Modus: nachts am Set */
  --bg: #0b0b0b;
  --ink: #ede8e0;
  --line: #2a2724;
  --muted: #8c867c;
  --card: rgba(255, 255, 255, 0.03);
  --sub: #161513;
  --sand-ink: #c9ae86;
  --danger: #d0705c;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  overscroll-behavior-y: none;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--sand); color: #111; }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.caps { text-transform: uppercase; letter-spacing: 0.16em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); }
.sandc { color: var(--sand-ink); }
.hint { font-size: 12px; color: var(--muted); }
.sp { flex: 1; }
.nowrap { white-space: nowrap; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); background: transparent;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; cursor: pointer; text-decoration: none;
  border-radius: 0; transition: background var(--t) var(--ease), color var(--t) var(--ease), transform 120ms var(--ease), border-color var(--t);
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--sand); border-color: var(--sand); color: #111; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sand { border-color: var(--sand); color: var(--sand-ink); }
.btn.sand.primary { background: var(--sand); color: #111; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--ink);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.linkbtn { background: none; border: 0; padding: 10px 0; cursor: pointer; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--muted); min-height: 44px; }
.linkbtn:hover { color: var(--ink); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- inputs ---------- */
input, select, textarea {
  width: 100%; background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 12px 12px;
  min-height: 48px; font-size: 16px; outline: none; transition: border-color var(--t);
  -webkit-appearance: none; appearance: none;
}
select { background-image: none; padding-right: 30px; }
.selwrap { position: relative; }
.selwrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--sand); }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--sand); -webkit-appearance: auto; appearance: auto; }
input[type="time"], input[type="date"] { font-family: var(--mono); }
.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }

/* ---------- app shell ---------- */
#top {
  position: sticky; top: 0; z-index: 40; background: var(--bg);
  padding: var(--safe-t) 12px 0; border-bottom: 1px solid var(--line);
  transition: background var(--t);
}
.topin { height: var(--top-h); display: flex; align-items: center; gap: 6px; max-width: 1120px; margin: 0 auto; }
.wsbtn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer;
  min-height: 44px; padding: 0 6px 0 0; max-width: 52vw; text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
}
.wsbtn .ell { max-width: 36vw; }
.wsbtn svg { width: 12px; height: 12px; stroke: var(--muted); fill: none; stroke-width: 1.5; flex: none; }
.msq { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; color: #f4f1ec; background: #111; font-size: 11px; letter-spacing: 0.06em; border: 1px solid var(--line); }
.msq.s { width: 24px; height: 18px; font-size: 9px; }
.tc { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); padding: 0 6px; }
.tc b { color: var(--sand-ink); font-weight: 400; }
.me-btn { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.me-btn .av { width: 34px; height: 34px; font-size: 11px; }

main#view { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(var(--tab-h) + var(--safe-b) + 96px); min-height: 60vh; }
main#view.enter { animation: enter var(--t) var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg);
  border-top: 1px solid var(--line); padding: 0 4px var(--safe-b);
  display: flex; justify-content: space-around; transition: background var(--t), transform var(--t) var(--ease);
}
#tabs a {
  position: relative; flex: 1; max-width: 140px; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-decoration: none; color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; transition: color var(--t);
}
#tabs a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
#tabs a.on { color: var(--ink); }
#tabs a.on::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 2px; background: var(--sand); }
#tabs a .badge { position: absolute; top: 10px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--sand); color: #111; font-size: 10px; letter-spacing: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
body.in-chat #tabs, body.in-chat #fab { transform: translateY(140%); }

#fab {
  position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 45;
  min-height: 56px; padding: 0 22px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t), opacity var(--t);
}
#fab:active { transform: scale(0.97); }
#fab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
#fab input { display: none; }
@media (min-width: 900px) { #fab { right: max(16px, calc((100vw - 1120px) / 2 + 16px)); } }

/* ---------- hero (letterboxed still) ---------- */
.hero { background: var(--film); color: #ede8e0; margin: 0 calc(50% - 50vw); padding: 22px 0 22px; }
.frame {
  position: relative; display: block; width: 100%; aspect-ratio: 2.39 / 1; overflow: hidden; background: #000; cursor: pointer;
  border: 0; padding: 0; color: inherit;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--ease); }
.frame img.ok { opacity: 1; }
.frame .fm { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: rgba(244, 241, 236, 0.78); text-transform: uppercase; z-index: 2; }
.frame .tl { top: 10px; left: 12px; } .frame .tr { top: 10px; right: 12px; } .frame .bl { bottom: 10px; left: 12px; } .frame .br { bottom: 10px; right: 12px; }
.frame .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%); }
.frame .crop { position: absolute; inset: 8px; z-index: 2; pointer-events: none; }
.frame .crop::before, .frame .crop::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(244, 241, 236, 0.55); }
.frame .crop::before { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.frame .crop::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.frame-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 12%; border: 1px solid #2a2724; }
.frame-empty span { font-size: clamp(14px, 3.6vw, 26px); letter-spacing: 0.42em; text-transform: uppercase; color: #ede8e0; line-height: 1.5; }
.hero-meta { padding: 18px 16px 0; max-width: 1120px; margin: 0 auto; }
.hero-meta .eyebrow { color: #b8b1a6; font-family: var(--mono); letter-spacing: 0.1em; font-size: 12px; }
.hero-title { display: flex; align-items: flex-start; gap: 10px; background: none; border: 0; padding: 0; margin: 8px 0 6px; cursor: pointer; color: #f4f1ec; text-align: left; }
.hero-title h1 { font-size: clamp(26px, 7vw, 46px); line-height: 1.04; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.hero-title svg { width: 16px; height: 16px; margin-top: 10px; stroke: var(--sand); fill: none; stroke-width: 1.5; flex: none; }
.hero-meta .sub { color: #9a948a; font-size: 13px; letter-spacing: 0.04em; }
.hero .count { color: var(--sand); }
@media (min-width: 900px) {
  .hero .frame { max-width: min(1440px, calc(58vh * 2.39)); margin: 0 auto; }
  .hero-meta { padding-left: 24px; padding-right: 24px; }
}

/* ---------- sub nav ---------- */
.subnav {
  position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 30; background: var(--bg);
  display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 -16px 22px; padding: 0 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color var(--t), border-color var(--t);
}
.subnav a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- layout bits ---------- */
.sec { margin: 0 0 34px; }
.sec-head { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 16px; min-height: 44px; }
.sec-head h2, .sec-head h3 { flex: 1; text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; font-weight: 500; }
.sec-head .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pagehead { padding: 24px 0 8px; }
.pagehead h1 { font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; }
.pagehead p { margin-top: 6px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { border: 1px solid var(--line); background: var(--card); padding: 16px; transition: border-color var(--t); }
.card.tap { cursor: pointer; }
.card.tap:hover { border-color: var(--sand); }
.card h4 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 2px; }
.kv > span:last-child { text-align: right; }
.big { font-family: var(--mono); font-size: 34px; letter-spacing: 0.02em; line-height: 1.1; }
.empty { border: 1px dashed var(--line); padding: 28px 20px; text-align: center; color: var(--muted); }
.empty h4 { color: var(--ink); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; margin-bottom: 8px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.strip > div { padding: 12px 10px 12px 0; min-width: 0; }
.strip .eyebrow { font-size: 10px; }
.strip b { display: block; font-family: var(--mono); font-weight: 400; font-size: 22px; margin-top: 2px; white-space: nowrap; }
.strip small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tag { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 3px 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; line-height: 1.4; }
.tag.on { border-color: var(--sand); color: var(--sand-ink); }
.tag.ink { border-color: var(--ink); color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transition: all var(--t); }
.chip.on { border-color: var(--ink); color: var(--ink); background: var(--sub); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }

/* slate badge: SC | 04 */
.slate { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; line-height: 1; height: 22px; flex: none; }
.slate i { font-style: normal; background: var(--ink); color: var(--bg); padding: 0 5px; display: flex; align-items: center; letter-spacing: 0.08em; }
.slate b { font-weight: 400; padding: 0 6px; display: flex; align-items: center; letter-spacing: 0.06em; }
.slate.sand { border-color: var(--sand); }
.slate.sand i { background: var(--sand); color: #111; }
.slate.lg { height: 30px; font-size: 14px; }

/* ---------- avatars ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; width: 44px; height: 44px; flex: none; overflow: hidden;
  font-size: 12px; letter-spacing: 0.06em; color: #111; border: 1px solid var(--line); text-decoration: none; position: relative; background: #e6ded1; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--sand); }
.av.lg { width: 96px; height: 96px; font-size: 26px; }
.av.sm { width: 32px; height: 32px; font-size: 10px; }
.avrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; }
.stack .av { margin-left: -10px; width: 36px; height: 36px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
.stack .av:first-child { margin-left: 0; }
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; flex: none; font-size: 10px; text-align: center; color: var(--muted); cursor: pointer; background: none; border: 0; padding: 0; }
.story .av { width: 58px; height: 58px; font-size: 15px; }
.story b { font-weight: 400; color: var(--ink); font-size: 11px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- list rows ---------- */
.list { border-top: 1px solid var(--line); }
.lrow { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; color: inherit; transition: background var(--t); }
.lrow:hover { background: var(--sub); }
.lrow .main { flex: 1; min-width: 0; }
.lrow .t { font-size: 15px; }
.lrow .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lrow .r { text-align: right; flex: none; }
.chev { width: 10px; height: 10px; border-right: 1px solid var(--muted); border-top: 1px solid var(--muted); transform: rotate(45deg); flex: none; margin-right: 4px; }

/* ---------- schedule ---------- */
.live { border: 1px solid var(--sand); padding: 14px 16px; margin: 0 0 22px; }
.live .eyebrow { color: var(--sand-ink); }
.live .now { font-size: 18px; margin: 6px 0 2px; }
.live .bar { margin: 12px 0 0; }
.bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sand); transition: width 400ms var(--ease); }
.blks { border-top: 1px solid var(--ink); }
.blk { display: grid; grid-template-columns: 74px 1fr 18px; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--t); position: relative; }
.blk:hover { background: var(--sub); }
.blk .tm { font-family: var(--mono); line-height: 1.25; }
.blk .tm b { display: block; font-weight: 400; font-size: 18px; }
.blk .tm span { color: var(--muted); font-size: 13px; }
.blk .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.blk .ti { font-size: 16px; line-height: 1.3; }
.blk .lo { font-size: 13px; color: var(--muted); margin-top: 3px; }
.blk .du { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.blk.fahrt .ti { font-style: italic; color: var(--muted); }
.blk.fahrt { border-bottom-style: dashed; }
.blk.night { background: var(--sub); }
.blk.past { opacity: 0.5; }
.blk.now { background: transparent; }
.blk.now::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 3px; background: var(--sand); }
.blk .chev { margin-top: 8px; }
.sunline { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sand-ink); text-transform: uppercase; }
.sunline::before, .sunline::after { content: ""; flex: 1; height: 1px; background: var(--sand); }

/* ---------- fahrplan ---------- */
.leg { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.leg .tm { font-family: var(--mono); }
.leg .tm b { display: block; font-weight: 400; font-size: 18px; }
.leg .tm span { color: var(--muted); font-size: 13px; }
.leg .path { position: relative; padding-left: 18px; }
.leg .path::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.leg .stop { position: relative; font-size: 14px; line-height: 1.35; }
.leg .stop + .stop { margin-top: 10px; }
.leg .stop::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--bg); }
.leg .stop.to::before { background: var(--sand); border-color: var(--sand); }
.leg .meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- locations ---------- */
.loc .num { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.loc h4 { font-size: 14px; letter-spacing: 0.12em; }
.loc .addr { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.host { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); margin-top: 10px; }

/* ---------- shots (swipe) ---------- */
.prog { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 10px; }
.prog .big { font-size: 40px; }
.shotgrp { margin-top: 26px; }
.shotgrp .gh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.shot { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); touch-action: pan-y; }
.shot:first-of-type { border-top: 1px solid var(--line); }
.shot .under { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.shot .under .l { color: #111; }
.shot .under .r { color: var(--bg); }
.shot.sw-r .under { background: var(--sand); }
.shot.sw-l .under { background: var(--ink); }
.shot .inner { position: relative; display: flex; gap: 12px; align-items: center; background: var(--bg); padding: 12px 0; min-height: 68px; transition: transform var(--t) var(--ease); }
.shot.drag .inner { transition: none; }
.shot .code { font-family: var(--mono); font-size: 20px; width: 46px; flex: none; }
.shot .body { flex: 1; min-width: 0; cursor: pointer; }
.shot .d { font-size: 15px; line-height: 1.3; }
.shot .m { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.shot .n { font-size: 12px; color: var(--sand-ink); margin-top: 2px; }
.shot.done .d, .shot.done .code { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sand); }
.tk { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); padding: 2px 6px; color: var(--muted); flex: none; }
.ck { width: 44px; height: 44px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ck svg { width: 28px; height: 28px; }
.ck circle { fill: none; stroke: var(--line); stroke-width: 1.2; transition: stroke var(--t), fill var(--t); }
.ck path { fill: none; stroke: #111; stroke-width: 1.8; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 260ms var(--ease) 60ms; }
.shot.done .ck circle { fill: var(--sand); stroke: var(--sand); }
.shot.done .ck path { stroke-dashoffset: 0; }
.shot.pop .ck svg { animation: pop 320ms var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- moodboard ---------- */
.masonry { column-count: 2; column-gap: 10px; }
@media (min-width: 760px) { .masonry { column-count: 3; } }
@media (min-width: 1040px) { .masonry { column-count: 4; } }
.masonry figure { break-inside: avoid; margin: 0 0 10px; border: 1px solid var(--line); background: var(--card); cursor: zoom-in; }
.masonry img { width: 100%; display: block; min-height: 80px; background: var(--sub); }
.masonry figcaption { padding: 8px 10px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.drop { border: 1px dashed var(--line); padding: 22px; text-align: center; margin-bottom: 16px; transition: all var(--t); }
.drop.over { border-color: var(--sand); background: var(--sub); }
@media (hover: none) { .drop { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 8, 0.96); display: flex; flex-direction: column; animation: fade var(--t) var(--ease); color: #ede8e0; }
.lightbox .lb-img { flex: 1; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 16px) 12px 12px; min-height: 0; }
.lightbox img, .lightbox iframe { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.lightbox .lb-bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px calc(var(--safe-b) + 12px); border-top: 1px solid #2a2724; }
.lightbox .lb-bar .btn { border-color: #3a3632; color: #ede8e0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- team ---------- */
.pill { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.accepted { border-color: var(--sand); color: var(--sand-ink); }
.pill.declined { border-color: var(--danger); color: var(--danger); }
.invite-me { border: 1px solid var(--sand); padding: 16px; margin: 0 0 22px; }
.invite-me p { margin-bottom: 12px; }

/* ---------- chat ---------- */
.chat-head { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 20; background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 -16px; padding-left: 8px; padding-right: 16px; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 120px; }
.day-sep { align-self: center; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; margin: 8px 0; text-transform: uppercase; }
.bub { max-width: 80%; padding: 10px 13px; border: 1px solid var(--line); background: var(--card); align-self: flex-start; animation: enter var(--t) var(--ease); word-wrap: break-word; }
.bub.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bub .who { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand-ink); margin-bottom: 3px; }
.bub time { display: block; font-family: var(--mono); font-size: 10px; opacity: 0.6; margin-top: 4px; text-align: right; }
.bub img { display: block; max-width: 100%; max-height: 320px; margin-top: 6px; cursor: zoom-in; background: var(--sub); min-width: 120px; min-height: 80px; }
.bub .file { display: inline-flex; margin-top: 6px; text-decoration: underline; }
.mcard { border: 1px solid var(--sand); padding: 8px 10px; margin-top: 6px; font-size: 13px; }
.mcard .eyebrow { color: inherit; opacity: 0.7; font-size: 10px; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 10px calc(var(--safe-b) + 8px); display: flex; gap: 8px; align-items: flex-end; }
.composer .in { flex: 1; }
.composer textarea { min-height: 44px; max-height: 140px; padding: 11px 12px; resize: none; }
.composer .icon-btn { border: 1px solid var(--line); }
.composer .send { min-height: 44px; }
@media (min-width: 900px) { .composer { left: calc((100vw - 1120px) / 2 + 16px); right: calc((100vw - 1120px) / 2 + 16px); } }

/* ---------- feed ---------- */
.post { border: 1px solid var(--line); background: var(--card); margin: 0 0 22px; max-width: 680px; }
.post .frame { cursor: default; }
.post .frame .lab { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; gap: 6px; }
.post .frame .lab span { background: #f4f1ec; color: #111; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 8px; }
.post .frame .lab span.s { background: #111; color: var(--sand); border: 1px solid var(--sand); }
.post .pb { padding: 16px; }
.post h3 { font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.credit { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 10px 0; font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.credit .av { width: 36px; height: 36px; font-size: 11px; }
.likebtn { display: inline-flex; align-items: center; gap: 8px; }
.likebtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform var(--t) var(--ease); }
.likebtn.on svg { fill: var(--sand); stroke: var(--sand); }
.likebtn.on.pop svg { animation: pop 320ms var(--ease); }
.quote { border-top: 1px solid var(--ink); padding: 18px 0; }
.quote q { display: block; font-size: 20px; line-height: 1.35; margin-bottom: 12px; quotes: "\201E" "\201C"; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs div { aspect-ratio: 2.39 / 1; background: var(--film); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 6px; font-size: 10px; color: #ede8e0; letter-spacing: 0.1em; text-transform: uppercase; }
.thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs span { position: relative; }

/* ---------- calendar ---------- */
.monthnav { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.monthnav h3 { flex: 1; text-align: center; letter-spacing: 0.22em; text-transform: uppercase; font-size: 13px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 58px; padding: 6px; font-family: var(--mono); font-size: 13px; position: relative; }
.cal .dh { min-height: 0; color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 6px; }
.cal .has { cursor: pointer; background: var(--sub); }
.cal .has .dots { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.cal .has small { display: none; font-family: var(--sans); font-size: 10px; line-height: 1.25; margin-top: 4px; }
.cal .today { outline: 1px solid var(--ink); outline-offset: -1px; }
@media (min-width: 760px) { .cal > div { min-height: 92px; } .cal .has small { display: block; } }
.agenda .lrow .d { font-family: var(--mono); width: 64px; flex: none; font-size: 13px; line-height: 1.25; }
.agenda .lrow .d b { display: block; font-weight: 400; font-size: 22px; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(11, 11, 11, 0.5); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--t) var(--ease); }
.sheet {
  background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--ink); padding: 10px 18px calc(var(--safe-b) + 18px); animation: up 240ms var(--ease);
}
.sheet .grab { width: 40px; height: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.sheet h3 span { flex: 1; }
.sheet .acts { display: flex; gap: 10px; margin-top: 18px; position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--bg); padding: 12px 0 0; }
.sheet .acts .btn { flex: 1; }
.sheet .menu { border-top: 1px solid var(--line); }
.sheet .menu button { display: flex; width: 100%; align-items: center; gap: 14px; min-height: 56px; padding: 8px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.sheet .menu button.on { background: var(--sub); }
.sheet .menu button .main { flex: 1; min-width: 0; }
.sheet .menu .mini { width: 64px; aspect-ratio: 2.39 / 1; background: var(--film); position: relative; overflow: hidden; flex: none; }
.sheet .menu .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet .pickl { max-height: 240px; overflow: auto; border: 1px solid var(--line); margin-bottom: 14px; }
.sheet .pick { display: flex; align-items: center; gap: 12px; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--line); min-height: 56px; }
.sheet .pick:last-child { border-bottom: 0; }
.sheet .pick.on { background: var(--sub); box-shadow: inset 3px 0 0 var(--sand); }
.sheet pre { white-space: pre-wrap; font-family: var(--mono); font-size: 13px; background: var(--sub); padding: 12px; border: 1px solid var(--line); margin: 0 0 12px; }
@keyframes up { from { transform: translateY(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .scrim { align-items: center; padding: 24px; }
  .sheet { border: 1px solid var(--ink); max-height: 86vh; padding-bottom: 18px; }
  .sheet .grab { display: none; }
}
.stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper button { width: 56px; min-height: 48px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.stepper output { flex: 1; text-align: center; font-family: var(--mono); font-size: 20px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 84px); transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; max-width: 90vw; text-align: center; animation: up var(--t) var(--ease); }
.toast.err { background: var(--danger); color: #fff; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; background: #0b0b0b; color: #ede8e0; display: flex; flex-direction: column; }
.login .frame { cursor: default; }
.login .lt { padding: calc(var(--safe-t) + 20px) 22px 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: #8c867c; text-transform: uppercase; }
.login .lbody { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 26px 22px calc(var(--safe-b) + 30px); }
.login .mark { font-size: 30px; letter-spacing: 0.42em; text-transform: uppercase; font-weight: 500; }
.login .mark small { display: block; font-size: 10px; letter-spacing: 0.3em; color: var(--sand); margin-top: 8px; }
.login p.lead { color: #9a948a; margin: 16px 0 26px; font-size: 14px; }
.login input { border-color: #2f2b27; color: #ede8e0; }
.login input:focus { border-color: var(--sand); }
.login .f > span { color: #8c867c; }
.login .btn { border-color: #ede8e0; color: #ede8e0; }
.login .btn.primary { background: #ede8e0; color: #0b0b0b; }
.login .btn.ghost { border-color: #2f2b27; }
.login .linkbtn { color: #8c867c; }
.login .msg { border: 1px solid var(--sand); padding: 12px 14px; font-size: 13px; margin-bottom: 16px; color: #ede8e0; }
.login .msg.err { border-color: #d0705c; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #5d5852; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #2a2724; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0b0b0b; color: #8c867c; font-family: var(--mono); letter-spacing: 0.2em; font-size: 12px; }
.skel { height: 64px; border-bottom: 1px solid var(--line); background: transparent; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; left: 0; top: 50%; height: 10px; width: 40%; background: var(--sub); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- callsheet / print ---------- */
.doc { max-width: 880px; }
.doc .dh { display: grid; grid-template-columns: 1fr auto; gap: 16px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; margin-bottom: 16px; }
.doc .dh .brand { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.doc .dh h2 { font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 4px; }
.doc .callbox { border: 1px solid var(--ink); padding: 10px 16px; text-align: center; min-width: 130px; }
.doc .callbox b { display: block; font-family: var(--mono); font-weight: 400; font-size: 34px; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 13px; }
.doc th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px 0; border-bottom: 1px solid var(--ink); }
.doc td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td.m { font-family: var(--mono); white-space: nowrap; }
.doc h4 { text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; margin: 6px 0 8px; }
.doc .foot { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 10px; }
.tbl { overflow-x: auto; }
@media (max-width: 600px) { .doc .hide-s { display: none; } .doc .dh { grid-template-columns: 1fr; } .doc .callbox { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .doc .callbox b { font-size: 28px; } }

@media print {
  html, html.set { --bg: #fff; --ink: #111; --line: #cfcac2; --muted: #555; --card: #fff; --sub: #f2efe9; --sand-ink: #6e5534; }
  body { background: #fff; color: #111; font-size: 11pt; }
  #top, #tabs, #fab, .hero, .subnav, .noprint, .toast, .composer { display: none !important; }
  main#view { padding: 0; max-width: none; }
  .doc { max-width: none; }
  .doc table { page-break-inside: auto; }
  .doc tr { page-break-inside: avoid; }
  @page { margin: 14mm; }
}

@media (min-width: 760px) {
  body { font-size: 15px; }
  main#view { padding-left: 24px; padding-right: 24px; }
  .subnav { margin-left: -24px; margin-right: -24px; padding: 0 16px; }
  .blk, .leg { grid-template-columns: 96px 1fr 18px; }
  .leg { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
