:root {
  color-scheme: dark;
  --ground: #07090A;
  --panel: #0E1011;
  --ink: #F1EEEA;
  --ink-2: #8F8A86;
  --line: rgba(241, 238, 234, .12);
  --pill: #16191B;
  --glass: rgba(7, 9, 10, .82);
  --live: #5FD597;
  --stop: #FF6B5E;
  --red: #EB3B2F;
  --red-line: rgba(235, 59, 47, .45);
  --red-ink: #0B0707;
  --f: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  min-height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  background: var(--pill); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.red { background: var(--red); color: var(--red-ink); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.armed { background: transparent; color: var(--stop); box-shadow: inset 0 0 0 1.5px var(--stop); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- home: title card ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 64vh; min-height: 64svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: #07090A; color: var(--red);
}
/* black base so the red tint multiplies to black, not bright red, while the photo is still loading */
.hero-media { position: absolute; inset: 0; z-index: -2; background: #07090A; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  filter: grayscale(1) contrast(1.25) brightness(1.05);
  transition: opacity 2.4s ease;
}
.hero-media img.on { opacity: 1; animation: drift 16s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
/* red multiplied over the black-and-white photo; a deeper red than the title so the title still stands out */
.hero-tint { position: absolute; inset: 0; z-index: 1; background: #B52A20; mix-blend-mode: multiply; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(95% 75% at 50% 48%, rgba(7, 5, 5, 0) 30%, rgba(7, 5, 5, .55) 100%),
    linear-gradient(180deg, rgba(7, 5, 5, .4) 0%, rgba(7, 5, 5, 0) 28%, rgba(7, 9, 10, .15) 65%, #07090A 100%);
}
.hero-grain {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none;
  background-image: var(--grain, none); opacity: .3; mix-blend-mode: overlay;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.hero-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  padding: calc(18px + env(safe-area-inset-top)) 20px 0;
  font-size: 11px; font-weight: 600; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase;
}
.hero-mid { position: relative; display: grid; place-items: center; padding: 20px 0 36px; }
.home-title { display: flex; justify-content: center; color: var(--red); animation: settle 1.6s cubic-bezier(.2, .8, .2, 1) both; }
/* "Déan an lá" (make the day) in Ogham, read bottom to top along the stem like a standing stone */
.ogham { display: block; height: min(62svh, 150vw); width: auto; overflow: visible; }
@keyframes settle { from { transform: translateY(16px); filter: blur(8px); opacity: 0; } to { transform: none; filter: none; opacity: 1; } }
.home-side {
  position: absolute; top: 50%;
  display: flex; align-items: center; gap: 1em;
  font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; color: var(--red); writing-mode: vertical-rl;
}
.home-side i { font-style: normal; font-weight: 300; font-size: 1.4em; letter-spacing: 0; }
.home-side.left { left: 12px; transform: translateY(-50%) rotate(180deg); }
.home-side.right { right: 12px; transform: translateY(-50%); }
@media (min-width: 900px) {
  .ogham { height: min(70svh, 640px); }
  .home-side { writing-mode: horizontal-tb; font-size: 14px; letter-spacing: .14em; gap: 2.4em; }
  .home-side.left { left: 10vw; transform: translateY(-50%); }
  .home-side.right { right: 10vw; transform: translateY(-50%); }
  .hero-top { padding-left: 32px; padding-right: 32px; font-size: 12px; }
}

/* ---------- home: projects ---------- */
.projects {
  max-width: 820px; margin: -8px auto 0;
  padding: 0 14px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 4px 2px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: var(--red); text-transform: uppercase; }
.sec-head p { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.proj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.proj {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 176px; padding: 24px 16px 14px;
  border: 1px solid var(--red-line); border-radius: 4px;
  background: radial-gradient(130% 100% at 0% 100%, rgba(235, 59, 47, .2) 0%, rgba(235, 59, 47, 0) 55%), #0C0909;
  color: #FFFFFF; text-align: left; transition: border-color .2s;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.proj:hover, .proj:focus-visible { border-color: var(--red); }
/* a faint row of film sprocket holes along the top edge */
.proj::after { content: ""; position: absolute; left: 12px; right: 12px; top: 8px; height: 4px; z-index: -1; border-radius: 1px; background: repeating-linear-gradient(90deg, rgba(235, 59, 47, .3) 0 7px, transparent 7px 16px); }
.proj-date { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.proj-name { font-family: var(--display); font-size: 24px; line-height: 1.04; text-transform: uppercase; text-wrap: balance; }
.proj-flag { padding: 4px 10px; border-radius: 999px; background: var(--red); color: var(--red-ink); font-size: 12px; font-weight: 600; }
.proj-meta { margin-top: auto; font-size: 14px; color: rgba(255, 255, 255, .75); }
.proj.new { border-style: dashed; background: transparent; justify-content: space-between; }
.proj.new::after { display: none; }
.proj.new .plus { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--red); }
.proj.new .proj-name { color: var(--red); }
.proj.sample { border-style: dashed; background: transparent; }
.proj.sample::after { display: none; }
.home-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.note { padding: 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.note.warn { color: var(--stop); }
.credit { padding: 10px 4px 0; font-size: 11px; color: rgba(255, 255, 255, .4); }

/* ---------- account ---------- */
.account { padding: 16px 4px 0; }
.acct-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border: 1px solid var(--red-line); border-radius: 4px; background: var(--panel); }
.acct-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-text b { font-weight: 600; }
.acct-text span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--red); color: var(--red-ink); font-weight: 600; }
/* Google's button is a cross-origin frame: in a dark page the browser paints it an opaque white box unless it matches its light scheme */
.gbtn { min-height: 44px; display: flex; align-items: center; color-scheme: light; }

/* ---------- project chrome ---------- */
.topbar { max-width: 560px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 14px 0; display: flex; flex-direction: column; gap: 10px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 10px 0 2px;
  border: 0; background: none; color: var(--red);
  font-family: var(--display); font-size: 15px; cursor: pointer;
}
.back svg { width: 20px; height: 20px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.status.off i { background: var(--stop); }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; border-radius: 999px; background: var(--pill); }
.tab {
  min-height: 40px; padding: 0 2px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tab[aria-selected="true"] { background: var(--red); color: var(--red-ink); }

.intro { max-width: 560px; margin: 0 auto; padding: 20px 18px 6px; display: flex; flex-direction: column; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
h1 {
  margin-top: 6px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 9vw, 42px); line-height: .98; letter-spacing: .005em;
  text-transform: uppercase; color: var(--red); text-wrap: balance;
}
.day-line { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.day-title { font-size: 16px; font-weight: 500; }
.sun { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sun svg { width: 18px; height: 18px; margin-right: -6px; }
.sun b { font-weight: 500; color: var(--ink); }
.pills { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; min-height: 40px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; background: var(--pill); color: var(--ink);
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pill .n { font-variant-numeric: tabular-nums; opacity: .55; font-weight: 400; }
.pill[aria-pressed="true"] { background: var(--red); color: var(--red-ink); }
.pill[aria-pressed="true"] .n { opacity: .7; }
.pill.add { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pad { max-width: 560px; margin: 0 auto; padding: 0 18px; }

/* ---------- shotlist ---------- */
.strip {
  position: sticky; top: 0; z-index: 10; margin-top: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.strip-in { max-width: 560px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.ticks { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 1px; }
.ticks i { flex: 1 1 0; max-width: 2.5px; min-width: .5px; height: 12px; border-radius: 2px; background: var(--ink); opacity: .16; transition: height .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.ticks i.on { height: 24px; opacity: 1; background: var(--red); }
.count { flex: none; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count .of { color: var(--ink-2); font-weight: 400; }

.tools { display: none; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.editing .tools { display: flex; }
.list { max-width: 560px; margin: 0 auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 12px; }
.empty-day { padding: 30px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--ink-2); }

.band { padding: 22px 10px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.band:first-child { padding-top: 6px; }
.band-sky { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.band-time { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.band-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.band-note { flex-basis: 100%; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 58ch; }
.flag { display: inline-block; padding: 0 7px; margin-right: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 18px; }
.eir { font-weight: 600; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.edit-chip {
  display: none; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px; background: var(--red); color: var(--red-ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.editing .edit-chip { display: inline-flex; }
.band .edit-chip { margin-left: auto; }
.meta .edit-chip { align-self: flex-start; margin-top: 8px; text-shadow: none; }

.shot, .place {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; color: #FFFFFF; background: #140808;
  scroll-margin: 90px 0 110px;
}
.bg { position: absolute; inset: 0; z-index: -2; transition: filter .8s cubic-bezier(.3, .7, .2, 1); }
.shot::after, .place::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, .04) 36%, rgba(0, 0, 0, .1) 58%, rgba(0, 0, 0, .46) 100%);
}
.content { min-height: 232px; padding: 20px 20px 18px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; text-shadow: 0 1px 14px rgba(0, 0, 0, .2); }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.meta { display: flex; flex-direction: column; gap: 3px; font-size: 16px; min-width: 0; }
.meta .time { font-variant-numeric: tabular-nums; opacity: .9; }
.num { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.num-k { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.num-n { font-size: 58px; font-weight: 300; line-height: .82; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.foot-row { display: flex; align-items: flex-end; gap: 16px; }
.text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.desc { font-size: 21px; line-height: 1.28; font-weight: 400; text-wrap: pretty; }
.people { display: flex; align-items: flex-start; gap: 7px; font-size: 15px; opacity: .82; }
.people svg { width: 14px; height: 14px; flex: none; margin-top: 3px; fill: currentColor; }
.tick {
  flex: none; margin: -10px -10px -8px 0; padding: 10px;
  border: 0; background: none; color: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.box { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .78); transition: background-color .25s, box-shadow .25s, transform .15s; }
.tick:active .box { transform: scale(.93); }
.check { width: 38px; height: 38px; fill: none; stroke: #111214; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.check path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .34s cubic-bezier(.2, .9, .3, 1) .08s; }
.tick-t { min-height: 15px; font-size: 12px; font-weight: 500; line-height: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-done .bg { filter: grayscale(1) brightness(.64) contrast(.92); }
.is-done .box { background: #FFFFFF; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.is-done .check path { stroke-dashoffset: 0; }
.is-done .desc { opacity: .86; }
.pulse { animation: pulse 1.4s ease-out; }
@keyframes pulse { 0%, 35% { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--red); } 100% { box-shadow: 0 0 0 3px transparent, 0 0 0 5px transparent; } }
.no-anim, .no-anim * { transition: none !important; animation: none !important; }

.add-row { display: none; max-width: 560px; margin: 0 auto; padding: 4px 12px; grid-template-columns: 1fr 1fr; gap: 8px; }
.editing .add-row { display: grid; }
.add-btn { min-height: 58px; border: 1px dashed var(--red-line); border-radius: 18px; background: transparent; color: var(--red); font-size: 15px; font-weight: 600; cursor: pointer; }

.locs { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.loc-from { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
.loc { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 7px 0 14px; border-radius: 999px; background: var(--red); color: var(--red-ink); text-decoration: none; }
.loc .pin { width: 19px; height: 19px; flex: none; }
.loc-code { font-size: 17px; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; }
.loc .go { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px 0 14px; margin-left: 3px; border-radius: 999px; background: var(--red-ink); color: var(--red); font-size: 14px; font-weight: 500; white-space: nowrap; }
.loc .go svg { width: 16px; height: 16px; }

.foot { max-width: 560px; margin: 0 auto; padding: 28px 20px calc(130px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--ink-2); }
.foot.short { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.next { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.next-btn {
  pointer-events: auto; width: 100%; max-width: 532px; margin: 0 auto;
  min-height: 70px; padding: 10px 11px 10px 26px;
  display: flex; align-items: center; gap: 14px;
  border: 0; border-radius: 999px; background: var(--red); color: var(--red-ink);
  text-align: left; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
}
.next-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-k { font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
.next-v { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-go { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--red-ink); color: var(--red); }
.next-go svg, .lb-btn svg, .sheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.next-btn .ic-done { display: none; }
.next-btn.all-done .ic-next { display: none; }
.next-btn.all-done .ic-done { display: block; }

/* ---------- maps ---------- */
.places { max-width: 560px; margin: 0 auto; padding: 14px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.place-in { min-height: 300px; padding: 20px 18px 18px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; text-shadow: 0 1px 14px rgba(0, 0, 0, .2); }
.place-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.place-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.place .time { font-size: 15px; opacity: .9; font-variant-numeric: tabular-nums; }
.place-k { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.place-code { margin-top: 6px; font-size: clamp(48px, 15vw, 64px); font-weight: 300; line-height: .95; white-space: nowrap; user-select: text; }
.place-addr { margin-top: 6px; font-size: clamp(26px, 8vw, 34px); font-weight: 400; line-height: 1.12; overflow-wrap: anywhere; user-select: text; }
.place-also { margin-top: 12px; font-size: 14px; line-height: 1.45; opacity: .85; max-width: 52ch; }
.place-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-shadow: none; }
.pbtn { min-height: 46px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: #FFFFFF; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.pbtn svg { width: 18px; height: 18px; }
.pbtn.primary { grid-column: 1 / -1; min-height: 58px; background: var(--red); box-shadow: none; color: var(--red-ink); font-size: 17px; }
.pbtn.wide { grid-column: 1 / -1; }
.leg { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.leg::before { content: ""; flex: none; width: 2px; height: 26px; border-radius: 2px; background: var(--red); }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.map-tools:empty { display: none; }

.empty {
  position: relative; overflow: hidden; border-radius: 28px; color: #FFFFFF;
  padding: 26px 22px 22px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px;
  box-shadow: inset 0 0 0 1px rgba(235, 59, 47, .35);
  background: radial-gradient(90% 60% at 75% 25%, rgba(235, 59, 47, .3) 0%, rgba(235, 59, 47, 0) 70%), #120A0A;
}
.empty-k { font-size: 15px; opacity: .85; }
.empty-t { font-size: 21px; line-height: 1.28; max-width: 28ch; }

/* ---------- call sheet ---------- */
.cs { max-width: 820px; margin: 0 auto; padding: 14px 14px calc(48px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.cs-card { border: 1px solid var(--red-line); border-radius: 4px; background: var(--panel); padding: 16px; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cs-k { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.cs-title { margin-top: 8px; font-family: var(--display); font-size: clamp(28px, 8vw, 42px); line-height: 1; text-transform: uppercase; color: var(--red); }
.cs-sub { margin-top: 8px; color: var(--ink-2); }
.cs-brand { font-family: var(--display); font-size: 14px; color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--red-line); border: 1px solid var(--red-line); border-radius: 4px; overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { background: var(--panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 92px; }
.fact-k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.fact-v { font-family: var(--display); font-size: 28px; line-height: 1; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.fact-v.sm { font-family: var(--f); font-size: 20px; font-weight: 500; }
.fact-s { font-size: 13px; color: var(--ink-2); }
.cs-sec h3 { margin-bottom: 8px; font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: var(--red); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.row:first-child { border-top: 0; }
.row .t { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .main { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.row .main small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.row .side { font-size: 13px; color: var(--ink-2); text-align: right; }
.row .side a { color: var(--red); text-decoration: none; font-weight: 500; }
.row.brk .main { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.cs-note { white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.cs-muted { font-size: 14px; color: var(--ink-2); }
.cs-foot { font-size: 12px; color: var(--ink-2); padding: 0 4px; }

/* ---------- inspiration ---------- */
.gprog-in { max-width: 560px; margin: 0 auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.gprog-in p { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gbar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.gallery { max-width: 560px; margin: 0 auto; padding: 14px 12px 0; display: flex; flex-direction: column; gap: 26px; }
.deck { display: flex; flex-direction: column; gap: 14px; }
.deck-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 8px 0; }
.deck-head h2 { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; text-transform: uppercase; color: var(--red); }
.deck-head p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.frame { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #2A2D31; color: #FFFFFF; text-align: left; cursor: zoom-in; }
.frame img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .66) 100%); }
.frame-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 15px 18px 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.frame-page { font-size: 13px; opacity: .85; }
.frame-cap { display: block; font-size: 18px; line-height: 1.25; font-weight: 500; }
.frame-vo { display: -webkit-box; margin-top: 5px; font-size: 14px; line-height: 1.35; opacity: .82; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lb { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0B0B0C; color: #FFFFFF; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 6px 22px; }
.lb-count { font-size: 14px; opacity: .7; font-variant-numeric: tabular-nums; }
.lb-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .12); color: #FFFFFF; cursor: pointer; }
.lb-btn:disabled { opacity: .3; cursor: default; }
.lb-stage { display: grid; place-items: center; padding: 8px 12px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 18px; object-fit: contain; }
.lb-info { width: 100%; max-width: 560px; margin: 0 auto; padding: 12px 22px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.lb-meta { font-size: 13px; opacity: .6; }
.lb-cap { font-size: 21px; line-height: 1.28; font-weight: 500; }
.lb-vo { font-size: 16px; line-height: 1.4; opacity: .8; }
.lb-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.lb-actions .btn { margin-left: auto; }

/* ---------- editor sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.sheet {
  position: relative; width: 100%; max-width: 560px;
  max-height: 92vh; max-height: 92svh;
  display: flex; flex-direction: column;
  background: #0F1112; border-radius: 24px 24px 0 0;
  box-shadow: 0 -1px 0 var(--red-line), 0 -20px 60px rgba(0, 0, 0, .6);
  animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; }
.sheet-head h2 { margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.08; text-transform: uppercase; color: #FFFFFF; overflow-wrap: anywhere; }
.sheet-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pill); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sheet-body { overflow: auto; overscroll-behavior: contain; padding: 8px 18px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.sheet-extra { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 10px; }
.sheet-extra:empty { display: none; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.half { grid-column: span 1; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; min-height: 50px; padding: 0 14px;
  border: 0; border-radius: 14px; background: var(--pill); color: var(--ink);
  font-size: 17px; color-scheme: dark;
}
.field textarea { min-height: 96px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--red); }
.hint { font-size: 12px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--pill); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; font-size: 14px; min-height: 44px; }
.crew-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.crew-row:first-child { border-top: 0; }
.crew-row small { display: block; color: var(--ink-2); font-size: 13px; }
.sheet-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .spacer { flex: 1; }
/* import form: section headings, fields the document didn't have, and the summary of what was found */
.sheet-sec { grid-column: 1 / -1; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 15px; line-height: 1.1; text-transform: uppercase; color: var(--red); }
.field.need > label { color: var(--ink); }
.field.need > label::after { content: "needed"; }
.field.need > label::after, .need-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: var(--red-ink); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.import-sum { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--pill); font-size: 14px; }
.import-sum ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.import-sum li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast {
  position: fixed; z-index: 90; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 18px;
  background: #1A1C1E; color: #FFFFFF; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; line-height: 1.35;
}
.toast.err { color: #FFB4A8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #FFFFFF !important; color: #000000 !important; font-size: 11pt; }
  #homeView, .topbar, .intro, #shotsPane, #mapsPane, #inspoPane, .toast, .sheet-wrap, .lb, .no-print { display: none !important; }
  #projectView, #callPane { display: block !important; }
  .cs { max-width: none; padding: 0; gap: 8px; }
  .cs-card, .fact { background: #FFFFFF !important; border-color: #000000 !important; }
  .facts { background: #000000 !important; border-color: #000000 !important; }
  .cs-title, .cs-k, .cs-brand, .cs-sec h3, .row.brk .main, .row .side a { color: #000000 !important; }
  .fact-v, .row .main, .cs-note { color: #000000 !important; }
  .fact-k, .fact-s, .row .t, .row .side, .cs-sub, .cs-muted, .row .main small, .cs-foot { color: #333333 !important; }
  .row { border-color: #CCCCCC !important; }
  .cs-sec { break-inside: avoid; }
  a { text-decoration: none; }
}
