@font-face { font-family: "Alfa Slab One"; src: url("fonts/alfa-slab-one.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --safe-top: env(safe-area-inset-top, 0px);
  --charcoal: #1a1a1a;
  --gold: #e47b28;
  --olive: #476e3d;
  --gray: #1a1a1a;
  --paper: #e8e6e0;
  --cream: #e8e6e0;
  --white: #e8e6e0;
  --rule: #1a1a1a;
  --gold-rule: #1a1a1a;
  --font-ui: "Inter";
  --font-mark: "Alfa Slab One";
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--olive); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--olive);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
button, input, textarea { font: inherit; font-weight: 400; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; background: transparent; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 660px);
  min-height: 4.75rem;
  margin: auto;
  padding: max(.95rem, env(safe-area-inset-top)) 1.25rem .9rem;
  border-bottom: 1px solid var(--olive);
  background: var(--gold);
}
.brand-button { display: flex; align-items: center; gap: .72rem; min-width: 0; padding: 0; border: 0; background: none; color: var(--charcoal); text-align: left; }
.brand-mark { width: 1.15rem; height: 1.55rem; flex: none; border-radius: 0 100% 100% 100%; background: var(--olive); transform: rotate(45deg); }
.brand-button strong { display: block; color: var(--charcoal); font-family: var(--font-mark); font-size: 1.28rem; font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.brand-button small { display: block; margin-top: .32rem; color: var(--olive); font-size: .68rem; font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.save-status { color: var(--olive); font-size: .78rem; font-weight: 400; }
.save-status i { display: inline-block; width: .4rem; height: .4rem; margin-right: .3rem; border-radius: 50%; background: var(--olive); }
.save-status.saving i { background: var(--gold); }
.icon-button, .ghost-button, .secondary-button, .primary-button, .back-button {
  min-height: 2.65rem;
  border-radius: 0;
  font-weight: 500;
}
.icon-button { width: 2.65rem; border: 1px solid var(--charcoal); background: transparent; color: var(--charcoal); font-size: 1.12rem; }
.ghost-button, .secondary-button, .back-button { padding: 0 .9rem; border: 1px solid var(--rule); background: transparent; color: var(--paper); }
.primary-button { padding: 0 1rem; border: 1px solid var(--gold); background: var(--gold); color: var(--charcoal); }

.page { width: min(100%, 660px); min-height: calc(100vh - 4.75rem); margin: auto; padding: 0 1.25rem 7rem; background: var(--charcoal); }
.home-heading { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 3.55rem 0 1.65rem; border-bottom: 1px solid var(--rule); }
.home-heading::before { content: ""; position: absolute; top: .95rem; left: 50%; width: 1.05rem; height: 1.4rem; border-radius: 0 100% 100% 100%; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.eyebrow { display: block; color: var(--gold); font-size: .7rem; font-weight: 500; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.home-heading h1 { margin: .45rem 0 .35rem; color: var(--paper); font-size: 1.46rem; font-weight: 450; line-height: 1.12; letter-spacing: -.025em; }
.home-heading p { margin: 0; color: var(--gray); font-size: 1rem; line-height: 1.55; }
.home-heading .secondary-button { border-color: var(--gold); color: var(--gold); }

.type-grid { display: block; margin: 0 -1.25rem; background: var(--gold); }
.type-card { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; min-height: 4.05rem; padding: .75rem 1.25rem; border: 0; border-bottom: 1px solid var(--olive); border-radius: 0; background: var(--gold); color: var(--charcoal); text-align: left; }
.type-card:hover, .type-card:active { background: var(--gold); }
.type-icon, .type-card::before { display: none; }
.type-copy { display: block; margin: 0; }
.type-copy strong { display: block; color: var(--charcoal); font-size: .86rem; font-weight: 500; letter-spacing: .035em; text-transform: uppercase; }
.type-copy small { display: none; }
.type-arrow { position: static; color: var(--charcoal); font-size: .95rem; font-weight: 400; }

.shoots-section { margin-top: 2.35rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0; padding-bottom: .65rem; border-bottom: 1px solid var(--rule); }
.section-heading h2 { margin: .28rem 0 0; color: var(--paper); font-size: 1.15rem; font-weight: 450; letter-spacing: -.015em; }
.count-pill { display: grid; min-width: 1.75rem; height: 1.75rem; place-items: center; border: 1px solid var(--gold-rule); color: var(--gold); font-size: .76rem; }
.shoot-list { display: block; }
.shoot-card { display: flex; align-items: center; width: 100%; min-height: 4.55rem; padding: .72rem 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--paper); text-align: left; }
.shoot-mode { display: grid; width: 2.35rem; height: 2.35rem; flex: none; place-items: center; border: 1px solid var(--gold-rule); color: var(--gold); }
.shoot-copy { min-width: 0; flex: 1; margin-left: .8rem; }
.shoot-copy small, .shoot-copy strong, .shoot-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shoot-copy small { color: var(--gold); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.shoot-copy strong { margin: .2rem 0; font-size: .98rem; font-weight: 450; }
.shoot-copy span { color: var(--gray); font-size: .8rem; }
.shoot-progress { width: 4rem; margin-left: .8rem; text-align: right; }
.shoot-progress b { font-size: .78rem; font-weight: 500; }
.shoot-progress i { display: block; height: 2px; margin-top: .4rem; background: var(--olive); }
.shoot-progress em { display: block; height: 100%; background: var(--gold); }
.empty-state { padding: 2.25rem 0; border-bottom: 1px solid var(--rule); color: var(--gray); text-align: left; }
.empty-state span { display: none; }
.empty-state strong { display: block; margin-bottom: .35rem; color: var(--paper); font-size: .98rem; font-weight: 450; }
.empty-state p { margin: 0; font-size: .9rem; }

.pixieset-cta { margin-top: 2.8rem; padding: 1.35rem 0 1.5rem; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--rule); }
.pixieset-cta h2 { margin: .42rem 0 .6rem; color: var(--paper); font-size: 1.17rem; font-weight: 450; letter-spacing: -.015em; }
.pixieset-cta p { margin: 0; color: var(--gray); font-size: 1rem; line-height: 1.6; }
.pixieset-cta a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .45rem; margin-top: 1rem; padding: 0 .95rem; background: var(--gold); color: var(--charcoal); font-size: .9rem; font-weight: 500; text-decoration: none; }
.pixieset-cta small { display: block; margin-top: .72rem; color: var(--gray); font-size: .7rem; font-weight: 400; }

body:has(.guide-view:not(.hidden)) .topbar-inner { border-bottom-color: var(--rule); background: var(--charcoal); }
body:has(.guide-view:not(.hidden)) .brand-button strong { color: var(--paper); }
body:has(.guide-view:not(.hidden)) .brand-button small { color: var(--gray); }
body:has(.guide-view:not(.hidden)) .brand-mark { background-color: var(--paper); }
body:has(.guide-view:not(.hidden)) .save-status, body:has(.guide-view:not(.hidden)) .icon-button { color: var(--paper); }
body:has(.guide-view:not(.hidden)) .save-status i { background: var(--gold); }
body:has(.guide-view:not(.hidden)) .icon-button { border-color: var(--rule); }

.guide-view { padding-top: 0; }
.assignment-card { position: relative; margin: 0 -1.25rem; padding: 4.05rem 1.25rem 1.35rem; border-bottom: 1px solid var(--rule); background: var(--charcoal); }
.assignment-card::before { content: ""; position: absolute; top: 1rem; left: 50%; width: 1.05rem; height: 1.4rem; border-radius: 0 100% 100% 100%; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.assignment-top { display: flex; align-items: center; gap: .6rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.assignment-top .icon-button { margin-left: auto; border-color: var(--rule); color: var(--paper); }
.mode-pill { display: inline-flex; min-height: 2rem; align-items: center; padding: 0 .7rem; border: 1px solid var(--gold-rule); color: var(--gold); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.title-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.15rem; }
.title-row > div:first-child { min-width: 0; flex: 1; }
.shoot-name { width: 100%; height: auto; margin-top: .25rem; padding: 0; border: 0; background: transparent; color: var(--paper); font-size: 1.8rem; font-weight: 450; line-height: 1.15; letter-spacing: -.03em; outline: none; }
.progress-ring { position: relative; display: grid; width: 3.55rem; height: 3.55rem; flex: none; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--progress), var(--olive) 0); }
.progress-ring::after { content: ""; position: absolute; inset: .25rem; border-radius: 50%; background: var(--charcoal); }
.progress-ring strong { position: relative; z-index: 1; font-size: .76rem; font-weight: 500; }
.meta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; min-width: 0; margin-top: 1.1rem; }
.meta-grid > label { display: block; min-width: 0; }
.meta-grid label > span { display: block; margin-bottom: .25rem; color: var(--gold); font-size: .7rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
input, textarea { width: 100%; min-width: 0; max-width: 100%; border: 0; border-bottom: 1px solid var(--charcoal); border-radius: 0; background: transparent; color: var(--paper); font-size: 1rem; outline: none; }
input { height: 2.9rem; padding: 0 .65rem; }
input[type="datetime-local"] { display: block; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
.date-field-frame {
  display: block;
  width: 100%;
  min-width: 0;
  height: 2.9rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--charcoal);
  border-radius: .65rem;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.date-field-frame:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.date-field-frame input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
textarea { min-height: 5rem; padding: .7rem .65rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); }
::placeholder { color: var(--gray); }
.brief { margin-top: .75rem; }
.progress-line { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .75rem; color: var(--gray); font-size: .74rem; }
.must-count { margin-left: auto; color: var(--gold); white-space: nowrap; }
.progress-line .progress { order: 3; flex-basis: 100%; }
.progress { height: 2px; background: var(--olive); }
.progress i { display: block; width: 0; height: 100%; background: var(--gold); }

.stage-tabs { position: sticky; top: 4.75rem; z-index: 10; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 0 -1.25rem; background: var(--olive); }
.stage-tabs button { min-height: 2.85rem; border: 0; background: var(--gold); color: var(--charcoal); font-size: .73rem; font-weight: 500; letter-spacing: .055em; text-transform: uppercase; }
.stage-tabs button.active { background: var(--olive); color: var(--paper); }
.shortcuts { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; margin: .85rem -1.25rem 0; padding: 0 1.25rem .2rem; overflow: visible; }
.shortcuts::-webkit-scrollbar { display: none; }
.shortcuts button { min-height: 2.4rem; max-width: 100%; flex: none; padding: .45rem .85rem; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--paper); font-size: .8rem; font-weight: 400; line-height: 1.25; white-space: normal; }
.view-actions { display: flex; gap: .5rem; margin-top: .8rem; }

.guide-sections { display: grid; gap: 0; margin: .9rem -1.25rem 0; border-top: 1px solid var(--rule); }
.guide-section { scroll-margin-top: 6rem; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--charcoal); }
.guide-section summary { display: flex; min-height: 4.1rem; align-items: center; padding: .78rem 1.25rem; cursor: pointer; list-style: none; }
.guide-section summary::-webkit-details-marker { display: none; }
.guide-section[open] summary { border-bottom: 1px solid var(--gold-rule); }
.section-icon { display: grid; width: 2.25rem; height: 2.25rem; flex: none; place-items: center; margin-right: .7rem; border: 1px solid var(--gold-rule); border-radius: 50%; color: var(--gold); font-size: .95rem; font-weight: 400; }
.section-title { min-width: 0; flex: 1; }
.section-title small { display: block; color: var(--gold); font-size: .65rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.section-title strong { display: block; margin-top: .18rem; color: var(--paper); font-size: 1rem; font-weight: 450; }
.section-count, .chevron { color: var(--gray); font-size: .73rem; font-weight: 400; }
.section-count { margin-right: .55rem; }
.chevron { transition: transform .2s; }
.guide-section[open] .chevron { transform: rotate(180deg); }
.section-body { padding: 1rem 1.25rem 1.25rem; }
.intro { margin: 0 0 .8rem; color: var(--gray); font-size: 1rem; line-height: 1.6; }
.check-grid { display: grid; grid-template-columns: 1fr; }
.check-row-wrap { display: flex; min-width: 0; min-height: 3.35rem; align-items: stretch; border-bottom: 1px solid var(--charcoal); background: transparent; }
.check-row-wrap.dragging { outline: 2px solid var(--gold); }
.check-row { display: flex; min-width: 0; flex: 1; align-items: center; padding: .55rem .65rem; color: var(--paper); cursor: pointer; }
.check-row input, .quick-row input { appearance: none; width: 1.35rem; height: 1.35rem; flex: none; margin: 0 .65rem 0 0; padding: 0; border: 1px solid var(--gray); background: transparent; }
.check-row input:checked, .quick-row input:checked { border-color: var(--gold); background: var(--gold); }
.check-row input:checked::after, .quick-row input:checked::after { content: "✓"; display: block; color: var(--charcoal); font-size: .9rem; font-weight: 500; line-height: 1.2rem; text-align: center; }
.check-row span { font-size: .96rem; line-height: 1.4; }
.check-row-wrap:has(input:checked) { background: var(--olive); color: var(--paper); text-decoration: line-through; }
.drag-handle, .star-button, .ref-button, .remove-gear { width: 2.25rem; flex: none; border: 0; background: transparent; color: var(--gray); font-size: 1rem; font-weight: 400; }
.drag-handle { cursor: grab; touch-action: none; }
.star-button.active, .must-heading { color: var(--gold); }
.ref-button { border-left: 1px solid var(--charcoal); }
.ref-button.has-ref { width: 3rem; padding: .25rem; }
.ref-button img { width: 100%; height: 2.35rem; object-fit: cover; }
.must-heading { margin: .9rem 0 -.25rem; font-size: .68rem; font-weight: 500; letter-spacing: .14em; }
.prompts { margin-top: .9rem; padding: .85rem 0 .85rem .95rem; border-left: 2px solid var(--gold); }
.prompts h3, .notes-label { margin: 0 0 .5rem; color: var(--gold); font-size: .68rem; font-weight: 500; letter-spacing: .15em; }
.prompts p { margin: 0 0 .55rem; color: var(--paper); font-size: .96rem; line-height: 1.6; }
.prompts p:last-child { margin-bottom: 0; }
.director-note { margin: .8rem 0 0; padding-left: .75rem; border-left: 1px solid var(--gold); color: var(--gray); font-size: .9rem; line-height: 1.6; }
.director-note strong { color: var(--gold); font-weight: 500; }
.notes-label { display: block; margin-top: .9rem; }
.section-note { min-height: 5rem; background: var(--paper); }
.add-item { min-height: 2.55rem; margin-top: .55rem; padding: 0 .8rem; border: 1px solid var(--gold-rule); background: transparent; color: var(--gold); font-size: .8rem; font-weight: 500; }
.gear-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.empty-stage { padding: 2rem 0; border-bottom: 1px solid var(--rule); color: var(--gray); text-align: center; }

.quick-reference { scroll-margin-top: 6rem; margin-top: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.quick-head { display: flex; align-items: flex-start; gap: .7rem; }
.quick-icon { display: grid; width: 2.45rem; height: 2.45rem; flex: none; place-items: center; background: var(--gold); color: var(--charcoal); font-weight: 500; }
.quick-head h2 { margin: .1rem 0; font-size: 1.15rem; font-weight: 450; }
.quick-head p { margin: 0; color: var(--gray); font-size: .82rem; }
.quick-grid { display: grid; grid-template-columns: 1fr; margin-top: .8rem; }
.quick-row { display: flex; min-height: 3.1rem; align-items: center; padding: .4rem .6rem; border-bottom: 1px solid var(--paper); }
.quick-row button { min-height: 2.3rem; flex: 1; padding: 0; border: 0; background: transparent; color: var(--paper); font-size: .95rem; font-weight: 400; text-align: left; }
.quick-row.done button { color: var(--gray); text-decoration: line-through; }
.mantra { margin-top: .85rem; padding: .8rem; border-left: 2px solid var(--gold); background: var(--gold); color: var(--charcoal); font-size: .86rem; line-height: 1.55; }
.mantra strong { color: var(--gold); font-weight: 500; }
.quick-mode .guide-sections { display: none; }

.bottom-bar { display: none; }
dialog { width: min(30rem, calc(100% - 2rem)); padding: 1.15rem; border: 1px solid var(--gold); border-radius: 0; background: var(--charcoal); color: var(--paper); box-shadow: none; }
dialog::backdrop { background: var(--charcoal); }
dialog h2 { margin: .8rem 0 1rem; font-size: 1.3rem; font-weight: 450; }
dialog label { display: block; margin-top: .75rem; }
dialog label > span { display: block; margin-bottom: .3rem; color: var(--gray); font-size: .76rem; }
.dialog-close { position: absolute; top: .65rem; right: .7rem; width: 2.4rem; height: 2.4rem; border: 0; background: transparent; color: var(--gray); font-size: 1.4rem; font-weight: 300; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.menu-actions { display: grid; gap: 1px; background: var(--rule); }
.menu-actions button { min-height: 3rem; padding: 0 .8rem; border: 0; background: var(--charcoal); color: var(--paper); font-weight: 400; text-align: left; }
.menu-actions .danger { color: var(--gold); }
.toast { position: fixed; z-index: 50; bottom: 1.5rem; left: 50%; padding: .7rem .95rem; background: var(--gold); color: var(--charcoal); font-size: .84rem; font-weight: 500; visibility: hidden; pointer-events: none; transform: translate(-50%, 1.5rem); transition: .2s; }
.toast.show { visibility: visible; transform: translate(-50%,0); }

.focus-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--charcoal); }
.focus-dialog::backdrop { background: var(--charcoal); }
.focus-shell { display: flex; width: min(100%, 660px); min-height: 100%; flex-direction: column; margin: auto; padding: max(1rem,env(safe-area-inset-top)) 1.25rem max(1.25rem,env(safe-area-inset-bottom)); }
.focus-shell header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.focus-shell header > span { color: var(--gray); font-size: .78rem; }
.focus-star, .reference-empty { min-height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--gold-rule); background: transparent; color: var(--paper); font-weight: 400; }
.focus-star.active { color: var(--gold); }
.focus-media { display: grid; min-height: 8rem; place-items: center; margin: 1.1rem 0; border: 1px solid var(--gold-rule); overflow: hidden; }
.focus-media img { width: 100%; max-height: 36vh; object-fit: contain; }
.focus-shell h2 { margin: .4rem 0 .85rem; font-size: clamp(2rem,7vw,3.4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.focus-prompt { padding: .9rem 0 .9rem 1rem; border-left: 2px solid var(--gold); background: var(--paper); color: var(--charcoal); }
.focus-prompt > strong { display: block; color: var(--gold); font-size: .68rem; font-weight: 500; letter-spacing: .15em; }
.focus-prompt p { margin: .55rem 0 0; line-height: 1.6; }
.focus-shell textarea { margin-top: 1rem; }
.focus-next { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; padding: .75rem 0; border-top: 1px solid var(--rule); color: var(--gray); }
.focus-next small { color: var(--gold); font-size: .65rem; font-weight: 500; letter-spacing: .14em; }
.focus-next strong { font-size: .85rem; font-weight: 450; }
.focus-actions { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.focus-actions button { min-height: 3.2rem; }
.focus-actions button:disabled { background: var(--paper); color: var(--charcoal); }

@media (min-width: 661px) { .topbar-inner, .page { box-shadow: none; } }
@media (max-width: 660px) { html, body { background: var(--charcoal); } .save-status, .header-actions .ghost-button { display: none; } }
@media (max-width: 430px) {
  .topbar-inner, .page { padding-right: 1rem; padding-left: 1rem; }
  .type-grid, .assignment-card, .stage-tabs, .guide-sections { margin-right: -1rem; margin-left: -1rem; }
  .type-card, .guide-section summary, .section-body { padding-right: 1rem; padding-left: 1rem; }
  .home-heading .secondary-button { display: none; }
  .brand-button small { font-size: .62rem; }
  .bottom-bar { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: .65rem; padding: .5rem 1rem max(.5rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--gold); background: var(--charcoal); }
  .bottom-bar > button { width: 2.7rem; height: 2.6rem; border: 0; background: var(--gold); color: var(--charcoal); font-weight: 500; }
  .bottom-bar > div { min-width: 0; flex: 1; }
  .bottom-bar strong, .bottom-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-bar strong { font-size: .77rem; font-weight: 450; }
  .bottom-bar span { margin-top: .1rem; color: var(--gray); font-size: .68rem; }
  .bottom-bar #bottomQuick { width: auto; padding: 0 .75rem; }
  .toast { bottom: 4.6rem; }
}

/* Roam-inspired product system */
html, body { background: var(--cream); color: var(--charcoal); }
body { font-family: var(--font-ui); font-weight: 400; letter-spacing: -.012em; }
button, input, textarea { font-family: var(--font-ui); }
.topbar { background: var(--cream); }
.topbar-inner { width: min(100%, 660px); min-height: 4.5rem; padding: .85rem 1.1rem; border: 0; background: var(--cream); box-shadow: none; }
.brand-button { gap: .58rem; color: var(--charcoal); }
.brand-mark { position: relative; display: block; width: 2.55rem; height: 2.55rem; flex: 0 0 2.55rem; border: 0; border-radius: .38rem; background: var(--olive); object-fit: cover; transform: none; }
.brand-mark::after { content: none; }
.brand-button strong { color: var(--charcoal); font-family: var(--font-mark); font-size: 1.18rem; font-weight: 400; letter-spacing: -.025em; }
.brand-button small { margin-top: .22rem; color: var(--gray); font-size: .62rem; font-weight: 500; letter-spacing: .09em; }
.save-status { color: var(--gray); font-weight: 450; }.save-status i { background: var(--olive); }
.icon-button, .ghost-button { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--white); color: var(--charcoal); }
.page { width: min(100%, 660px); min-height: calc(100vh - 4.5rem); padding: 0 1.1rem 7rem; background: var(--cream); box-shadow: none; }

.home-heading { display: block; margin: 0 0 1rem; padding: 1.45rem; border: 1.5px solid var(--charcoal); border-radius: 1.15rem; background: var(--charcoal); }
.home-heading::before { display: none; }
.eyebrow { display: inline-flex; align-items: center; min-height: 1.55rem; padding: 0 .58rem; border-radius: 999px; background: var(--gold); color: var(--charcoal); font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.home-heading h1 { margin: .75rem 0 .4rem; color: var(--paper); font-family: var(--font-mark); font-size: clamp(1.8rem, 6vw, 2.35rem); font-weight: 400; line-height: 1.03; letter-spacing: -.025em; }
.home-heading p { color: var(--paper); font-size: .96rem; line-height: 1.5; }
.home-heading .secondary-button { min-height: 2.55rem; margin-top: 1rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--charcoal); }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0; background: transparent; }
.type-card { position: relative; display: flex; min-height: 9rem; flex-direction: column; align-items: flex-start; padding: .9rem; border: 1.5px solid var(--charcoal); border-radius: 1rem; background: var(--white); color: var(--charcoal); }
.type-card:hover, .type-card:active { background: var(--paper); transform: translateY(-1px); }
.type-card::before { display: none; }
.type-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1.5px solid var(--charcoal); border-radius: 50%; background: var(--gold); color: var(--charcoal); font-size: 1rem; font-weight: 500; }
.type-copy { display: block; margin-top: auto; }
.type-copy strong { color: var(--charcoal); font-family: var(--font-mark); font-size: 1rem; font-weight: 400; letter-spacing: -.015em; text-transform: none; }
.type-copy small { display: block; margin-top: .28rem; color: var(--gray); font-size: .74rem; line-height: 1.35; }
.type-arrow { position: absolute; top: .95rem; right: .9rem; color: var(--charcoal); font-size: 1rem; }

.shoots-section { margin-top: 1.65rem; }
.section-heading { padding: 0 0 .55rem; border: 0; }
.section-heading .eyebrow { background: transparent; padding: 0; color: var(--gold); }
.section-heading h2 { margin-top: .35rem; color: var(--charcoal); font-family: var(--font-mark); font-size: 1.28rem; font-weight: 400; }
.count-pill { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--white); color: var(--charcoal); font-weight: 500; }
.shoot-list { display: grid; gap: .55rem; }
.shoot-card { min-height: 4.75rem; padding: .75rem; border: 1.5px solid var(--charcoal); border-radius: .9rem; background: var(--white); color: var(--charcoal); }
.shoot-mode { border: 1.5px solid var(--charcoal); border-radius: .65rem; background: var(--gold); color: var(--charcoal); }
.shoot-copy small { color: var(--gold); font-weight: 600; }.shoot-copy strong { color: var(--charcoal); font-weight: 550; }.shoot-copy span { color: var(--gray); }
.shoot-progress b { font-weight: 550; }.shoot-progress i { background: var(--charcoal); }.shoot-progress em { background: var(--olive); }
.empty-state { padding: 1.6rem; border: 1.5px dashed var(--charcoal); border-radius: .9rem; background: var(--paper); color: var(--gray); text-align: center; }
.empty-state img { display: block; width: min(9rem, 42%); margin: 0 auto .75rem; }.empty-state strong { color: var(--charcoal); font-weight: 550; }

.pixieset-cta { margin-top: 1.9rem; padding: 1.25rem; border: 1.5px solid var(--charcoal); border-radius: 1rem; background: var(--charcoal); }
.pixieset-cta .eyebrow { background: var(--gold); color: var(--charcoal); }
.pixieset-cta h2 { color: var(--paper); font-family: var(--font-mark); font-size: 1.25rem; font-weight: 400; }
.pixieset-cta p { color: var(--paper); font-size: .94rem; }.pixieset-cta a { border: 0; border-radius: 999px; background: var(--gold); font-weight: 600; }.pixieset-cta small { color: var(--paper); }

body:has(.guide-view:not(.hidden)) .topbar-inner { border: 0; background: var(--cream); }
body:has(.guide-view:not(.hidden)) .brand-button strong { color: var(--charcoal); }
body:has(.guide-view:not(.hidden)) .brand-button small { color: var(--gray); }
body:has(.guide-view:not(.hidden)) .brand-mark { background-color: var(--paper); }
body:has(.guide-view:not(.hidden)) .save-status, body:has(.guide-view:not(.hidden)) .icon-button { color: var(--charcoal); }
body:has(.guide-view:not(.hidden)) .icon-button { border-color: var(--charcoal); }
.assignment-card { margin: 0 0 .8rem; padding: 1rem; border: 1.5px solid var(--charcoal); border-radius: 1rem; background: var(--white); }
.assignment-card::before { display: none; }
.assignment-top { padding-bottom: .7rem; border-bottom: 1px solid var(--rule); }
.back-button, .assignment-top .icon-button, .secondary-button { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--white); color: var(--charcoal); }
.mode-pill { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--gold); color: var(--charcoal); font-weight: 600; }
.title-row { margin-top: 1rem; }.title-row .eyebrow { padding: 0; background: transparent; color: var(--gold); }
.shoot-name { color: var(--charcoal); font-family: var(--font-mark); font-size: 1.75rem; font-weight: 400; }
.progress-ring { background: conic-gradient(var(--gold) var(--progress), var(--charcoal) 0); }.progress-ring::after { background: var(--white); }.progress-ring strong { color: var(--charcoal); font-weight: 600; }
.meta-grid label > span { color: var(--gray); font-weight: 550; }
input, textarea { border: 1px solid var(--charcoal); border-radius: .65rem; background: var(--paper); color: var(--charcoal); }
input:focus, textarea:focus { border-color: var(--charcoal); box-shadow: 0 0 0 2px var(--gold); }
::placeholder { color: var(--charcoal); }
.progress-line { color: var(--gray); }.must-count { color: var(--gold); font-weight: 600; }.progress { border-radius: 99px; background: var(--charcoal); }.progress i { border-radius: 99px; background: var(--olive); }

.stage-tabs { position: sticky; top: 4.5rem; gap: .2rem; margin: 0 0 .7rem; padding: .22rem; border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--charcoal); }
.stage-tabs button { min-height: 2.55rem; border-radius: 999px; background: transparent; color: var(--paper); font-weight: 550; }.stage-tabs button.active { background: var(--gold); color: var(--charcoal); }
.shortcuts { margin: 0 -.1rem; padding: 0 .1rem .2rem; }.shortcuts button { border: 1px solid var(--charcoal); border-radius: 999px; background: var(--white); color: var(--charcoal); font-size: .76rem; font-weight: 500; }
.view-actions { margin-top: .65rem; }.primary-button { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--gold); color: var(--charcoal); font-weight: 600; }

.guide-sections { gap: .6rem; margin: .8rem 0 0; border: 0; }
.guide-section { border: 1.5px solid var(--charcoal); border-radius: .95rem; background: var(--white); }
.guide-section summary { padding: .75rem .85rem; }.guide-section[open] summary { border-bottom: 1px solid var(--rule); }
.section-icon { border: 1.5px solid var(--charcoal); background: var(--gold); color: var(--charcoal); }
.section-title small { color: var(--gold); font-weight: 650; }.section-title strong { color: var(--charcoal); font-weight: 550; }.section-count, .chevron { color: var(--gray); }
.section-body { padding: .9rem; }.intro { color: var(--gray); }
.check-grid { gap: .42rem; }.check-row-wrap { border: 1px solid var(--charcoal); border-radius: .7rem; background: var(--paper); overflow: hidden; }
.check-row { color: var(--charcoal); }.check-row input, .quick-row input { border: 1.5px solid var(--charcoal); border-radius: .3rem; background: var(--white); }.check-row input:checked, .quick-row input:checked { border-color: var(--olive); background: var(--olive); }.check-row input:checked::after, .quick-row input:checked::after { color: var(--paper); }
.check-row-wrap:has(input:checked) { background: var(--olive); color: var(--paper); }.drag-handle, .star-button, .ref-button, .remove-gear { color: var(--charcoal); }.star-button.active, .must-heading { color: var(--gold); }
.prompts { padding: .85rem; border: 1px solid var(--charcoal); border-left: 4px solid var(--gold); border-radius: .7rem; background: var(--paper); }.prompts h3, .notes-label { color: var(--gold); font-weight: 650; }.prompts p { color: var(--charcoal); }.director-note { border-color: var(--olive); color: var(--charcoal); }.director-note strong { color: var(--olive); }
.section-note { background: var(--paper); }.add-item { border: 1.5px solid var(--charcoal); border-radius: 999px; color: var(--charcoal); font-weight: 550; }

.quick-reference { padding: 1rem; border: 1.5px solid var(--charcoal); border-radius: 1rem; background: var(--charcoal); }.quick-head h2 { color: var(--paper); font-family: var(--font-mark); font-weight: 400; }.quick-head p { color: var(--paper); }.quick-icon { border: 1px solid var(--paper); border-radius: 50%; background: var(--gold); }.quick-row { border-bottom-color: var(--paper); }.quick-row button { color: var(--paper); }.quick-row input { border-color: var(--paper); background: transparent; }.mantra { border: 0; border-radius: .7rem; background: var(--gold); color: var(--charcoal); }.mantra strong { color: var(--charcoal); }

dialog { border: 1.5px solid var(--charcoal); border-radius: 1rem; background: var(--white); color: var(--charcoal); }.menu-actions { gap: .4rem; background: transparent; }.menu-actions button { border: 1px solid var(--charcoal); border-radius: .7rem; background: var(--paper); color: var(--charcoal); }.dialog-close { color: var(--charcoal); }
.toast { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--gold); color: var(--charcoal); }
.focus-dialog, .focus-dialog::backdrop { background: var(--cream); }.focus-star, .reference-empty { border: 1.5px solid var(--charcoal); border-radius: 999px; color: var(--charcoal); }.focus-media { border: 1.5px solid var(--charcoal); border-radius: 1rem; background: var(--white); }.focus-shell h2 { color: var(--charcoal); font-family: var(--font-mark); }.focus-prompt { border: 1.5px solid var(--charcoal); border-left: 5px solid var(--gold); border-radius: .8rem; background: var(--white); color: var(--charcoal); }.focus-next { border-color: var(--rule); color: var(--gray); }
.bottom-bar { border-top: 1.5px solid var(--charcoal); background: var(--white); }.bottom-bar > button { border: 1.5px solid var(--charcoal); border-radius: 999px; background: var(--gold); color: var(--charcoal); }

@media (max-width: 430px) { .topbar-inner, .page { padding-right: .85rem; padding-left: .85rem; } .type-grid { gap: .55rem; } .type-card { min-height: 8.5rem; padding: .75rem; } .type-copy small { font-size: .7rem; } .assignment-card { margin-right: 0; margin-left: 0; } .stage-tabs, .guide-sections { margin-right: 0; margin-left: 0; } .guide-section summary, .section-body { padding-right: .8rem; padding-left: .8rem; } }

/* Comfortable editorial typography */
body { line-height: 1.55; letter-spacing: 0; }
.brand-button strong { line-height: 1.08; letter-spacing: 0; }
.brand-button small { line-height: 1.25; }
.home-heading h1 { margin: .82rem 0 .68rem; line-height: 1.16; letter-spacing: .005em; }
.home-heading p { line-height: 1.62; }
.type-copy strong, .section-heading h2, .pixieset-cta h2, .shoot-name, .section-title strong, .quick-head h2, dialog h2 { line-height: 1.22; letter-spacing: 0; }
.type-copy small, .shoot-copy span, .section-title small, .quick-head p, dialog label > span { line-height: 1.5; }
.type-copy { display: grid; width: 100%; grid-template-rows: 1.22em 3em; gap: .28rem; }
.type-copy strong { display: flex; min-height: 1.22em; align-items: flex-end; }
.type-copy small { min-height: 3em; margin-top: 0; }
.shoot-copy strong { line-height: 1.3; letter-spacing: 0; }
.focus-shell h2 { line-height: 1.14; letter-spacing: 0; }
#installButton { min-height: 2.55rem; padding: 0 .8rem; white-space: nowrap; }
.install-guide { color: var(--charcoal); font-size: .96rem; line-height: 1.6; }
.install-guide p { margin: 0 0 .8rem; }
.install-guide ol { margin: 0 0 .9rem; padding-left: 1.35rem; }
.install-guide li + li { margin-top: .42rem; }
@media (max-width: 540px) {
  .topbar-inner { gap: .55rem; }
  .brand-button { gap: .45rem; }
  .brand-mark { width: 2.2rem; height: 2.2rem; flex-basis: 2.2rem; }
  .brand-button strong { font-size: 1.05rem; }
  .brand-button small, .save-status { display: none; }
  .header-actions { flex: none; gap: .4rem; }
  #installButton { min-height: 2.35rem; padding: 0 .68rem; font-size: .84rem; }
  .icon-button { width: 2.35rem; min-height: 2.35rem; }
}
@media (max-width: 350px) { #installButton { padding: 0 .52rem; } .brand-mark { width: 2rem; height: 2rem; flex-basis: 2rem; } }

/* ActiveShot illustrated icon system */
.as-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  overflow: visible;
}
.as-icon > * {
  stroke: var(--charcoal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.as-icon .icon-green { fill: var(--olive); }
.as-icon .icon-orange { fill: var(--gold); }
.as-icon .icon-cream { fill: var(--paper); }
.as-icon .icon-ink { fill: var(--charcoal); }
.as-icon .icon-line { fill: none; }
.type-icon .as-icon, .shoot-mode .as-icon, .section-icon .as-icon, .quick-icon .as-icon { width: 1.35rem; height: 1.35rem; }
.type-arrow .as-icon { width: 1.1rem; height: 1.1rem; }
.icon-button, .back-button, .primary-button, .secondary-button, .focus-star, .reference-empty, .add-item, .pixieset-cta a, .must-count, .must-heading, .notes-label, .quick-row button, .menu-actions button {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}
.icon-button { justify-content: center; }
.icon-button .as-icon { width: 1.25rem; height: 1.25rem; }
.back-button .as-icon, .primary-button .as-icon, .secondary-button .as-icon, .pixieset-cta a .as-icon { width: 1rem; height: 1rem; }
.mode-pill { gap: .35rem; }
.mode-pill .as-icon { width: .95rem; height: .95rem; }
.drag-handle .as-icon, .star-button .as-icon, .ref-button .as-icon, .remove-gear .as-icon { width: 1.15rem; height: 1.15rem; margin: auto; }
.star-button:not(.active) .icon-orange, .focus-star:not(.active) .icon-orange { fill: var(--paper); }
.notes-label .as-icon, .must-heading .as-icon, .must-count .as-icon, .quick-row button .as-icon { width: .9rem; height: .9rem; }
.chevron .as-icon { width: .9rem; height: .9rem; }
.menu-actions button .as-icon { width: 1.2rem; height: 1.2rem; }
.dialog-close { display: grid; place-items: center; }
.dialog-close .as-icon { width: 1.15rem; height: 1.15rem; }
.focus-actions button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.quick-row button span { min-width: 0; }
.check-row input:checked::after, .quick-row input:checked::after {
  content: "";
  display: block;
  width: .32rem;
  height: .62rem;
  margin: .12rem auto 0;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Installed iPhone/iPad apps can draw beneath the system status bar. */
.topbar-inner {
  min-height: calc(4.5rem + var(--safe-top));
  padding-top: calc(.85rem + var(--safe-top));
}
.page { min-height: calc(100vh - 4.5rem - var(--safe-top)); }
.stage-tabs { top: calc(4.5rem + var(--safe-top)); }

@media print {
  :root { color-scheme: light; }
  body { background: var(--paper) !important; color: var(--charcoal) !important; }
  .topbar, .stage-tabs, .shortcuts, .view-actions, .bottom-bar, .pixieset-cta, .drag-handle, .star-button, .ref-button, .remove-gear, .gear-actions, .toast { display: none !important; }
  .page { max-width: none; padding: 0; background: var(--paper); }
  .assignment-card, .guide-section, .quick-reference, .check-row-wrap, .prompts, .director-note { border-color: var(--charcoal); background: var(--paper); color: var(--charcoal); }
  .guide-section { break-inside: avoid; }
  .guide-section:not([open]) .section-body { display: block; }
  .shoot-name, input, textarea, .check-row, .quick-row button { color: var(--charcoal) !important; background: var(--paper) !important; }
  .focus-dialog { display: none; }
  .guide-view.hidden { display: block !important; }
  .home-view { display: none !important; }
}
