/* Stillwater client portal. Stillwater web tokens: flat, hairline borders, 2 to 4px radii, light only. */
@font-face { font-family: 'Raveo Display'; src: url('fonts/raveo.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('fonts/sourceserif-italic.woff2?v=2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #f7f5f0; --ground-2: #efebe3; --ink: #082228; --panel: #0d2e36; --muted: #3a4e54; --stone-text: #6c675f;
  --sand: #f9ce8f; --sand-soft: #fbe6c4; --espresso: #421c0b;
  --hair: rgba(8, 34, 40, .14); --hair-strong: rgba(8, 34, 40, .28);
  --on-dark: #f7f5f0; --on-dark-muted: rgba(247, 245, 240, .68); --hair-dark: rgba(247, 245, 240, .16);
  --alert: #b4532a; --ok: #2f6b4f;
  --ios-sheet: #f2f2f6; --ios-label: #1c1c1e; --ios-sub: #8a8a8e;
  --display: 'Raveo Display', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
img, video { display: block; max-width: 100%; }
:where(button, a) > svg { width: 18px; height: 18px; flex: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--sand); }
[hidden] { display: none !important; }

/* The app is a phone-width column, centered on bigger screens. */
.app { position: relative; height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--ground); isolation: isolate;
  padding-top: env(safe-area-inset-top, 0px); }
@media (min-width: 600px) { body { background: var(--ground-2); } .app { box-shadow: 0 0 0 1px var(--hair); } }
.gut { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

.eyebrow { font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-text); }
.dark .eyebrow { color: var(--sand); }
.h1 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.h1 em, .serif-em { font-family: var(--serif); font-style: italic; font-weight: 460; letter-spacing: -0.01em; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tnum { font-variant-numeric: tabular-nums; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.link-btn { font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); }
.stack { display: flex; flex-direction: column; gap: 26px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 3px; font-size: 14.5px; font-weight: 600; background: var(--ink); color: var(--on-dark); white-space: nowrap; text-decoration: none; }
.btn.block { width: 100%; } .btn.sand { background: var(--sand); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.dark .btn.ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--hair-dark); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 2px; font-family: var(--label); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--ground-2); color: var(--muted); white-space: nowrap; }
.chip.alert { background: var(--sand-soft); color: var(--espresso); }
.chip.ok { background: rgba(47, 107, 79, .12); color: var(--ok); }
.chip.sand { background: var(--sand); color: var(--ink); }
.chip.sched { background: var(--ink); color: var(--sand); }
.chip.owed { background: rgba(180, 83, 42, .12); color: var(--alert); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); flex: none; }

/* chrome */
.topbar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 54px; border-bottom: 1px solid var(--hair); }
.topbar img { height: 21px; width: auto; }
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding-right: 4px; font-size: 15px; font-weight: 600; flex: none; }
.back-btn[hidden] { display: none; }
.back-btn svg { width: 20px; height: 20px; }
.sheet-top { display: flex; align-items: center; min-height: 40px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--sand); display: grid; place-items: center; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.views { flex: 1; position: relative; min-height: 0; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-block: 22px 32px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.view::-webkit-scrollbar { display: none; }
.tabbar { flex: none; display: flex; border-top: 1px solid var(--hair); background: var(--ground); padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
.tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 4px; font-size: 11px; font-weight: 600; color: var(--stone-text); position: relative; }
.tab svg { width: 23px; height: 23px; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--ink); }
.tab .badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--alert); color: #fff; font-size: 10px; line-height: 17px; font-weight: 700; text-align: center; }

/* sign in and full screens */
.screen { position: absolute; inset: 0; z-index: 40; background: var(--ground); display: flex; flex-direction: column; overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); }
.screen .inner { flex: 1; display: flex; flex-direction: column; padding-block: 32px max(26px, env(safe-area-inset-bottom, 0px)); }
.screen .logo { height: 26px; width: auto; align-self: flex-start; }
.screen .h1 { font-size: 36px; margin: 56px 0 14px; }
.screen p.lede { color: var(--muted); margin: 0 0 26px; }
.field label { display: block; font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 8px; }
.field input { width: 100%; height: 52px; border: 1px solid var(--hair-strong); border-radius: 3px; background: #fff; padding: 0 14px; font-size: 18px; }
.codes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.codes input { height: 58px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 26px; padding: 0; border: 1px solid var(--hair-strong); border-radius: 3px; background: #fff; width: 100%; }
.form-error { color: var(--alert); font-size: 14px; margin-top: 12px; min-height: 1.4em; }
.screen .foot { margin-top: auto; font-size: 12.5px; color: var(--stone-text); padding-top: 24px; }
.loading { flex: 1; display: grid; place-items: center; color: var(--stone-text); font-size: 14px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--hair); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pick-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--hair); font-weight: 600; font-size: 16px; text-align: left; }
.pick-list .pl-name { flex: 1; min-width: 0; }
.pick-list svg { width: 18px; height: 18px; color: var(--stone-text); flex: none; }
.mark { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); padding: 5px; flex: none; }
.mark.mono { display: grid; place-items: center; background: var(--ink); color: var(--sand); font-family: var(--display); font-size: 20px; padding: 0; }
.avatar.has-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--hair); padding: 3px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.req { border: 1px solid var(--hair-strong); border-radius: 4px; padding: 14px; margin-top: 12px; background: #fff; }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.req strong { font-size: 16px; }
.why { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.field select { width: 100%; height: 46px; border: 1px solid var(--hair-strong); border-radius: 3px; background: #fff; padding: 0 10px; font-size: 16px; }
.field input:not([type]), .field input[type=tel], .field input[type=email] { width: 100%; }
.people summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.people summary::after { content: 'Show'; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); }
.people[open] summary::after { content: 'Hide'; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.prow small { display: block; color: var(--stone-text); font-size: 12.5px; }
.addform .field input { height: 46px; font-size: 16px; }

/* home */
.staffbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 3px; background: var(--sand-soft); font-size: 13.5px; margin-bottom: -6px; }
.staffbar .sb-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-switch { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 3px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 13px; font-weight: 600; }
.sb-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alert); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.greet .eyebrow { margin-bottom: 8px; }
.review-card { background: var(--panel); color: var(--on-dark); padding: 20px 18px 18px; border-radius: 4px; }
.review-card .big { font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -0.03em; margin: 12px 0 6px; }
.review-card .big em { font-family: var(--serif); font-style: italic; font-weight: 460; font-size: 30px; color: var(--sand); }
.review-card p { margin: 0 0 16px; color: var(--on-dark-muted); font-size: 14.5px; }
.plan { border: 1px solid var(--hair); border-radius: 4px; padding: 18px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan .count { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.03em; margin-top: 12px; }
.plan .count small { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.meter { display: flex; gap: 4px; margin: 16px 0 6px; }
.meter i { flex: 1; height: 8px; border-radius: 1px; background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--hair); }
.meter i.on { background: var(--ink); box-shadow: none; }
.meter i.extra { background: var(--sand); box-shadow: none; }   /* videos beyond the plan */
.install { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding: 14px; border-radius: 4px; background: var(--sand-soft); }
.install .btn { flex-basis: 100%; }
.text-client { margin-top: 14px; display: grid; gap: 8px; }   /* staff only: text the client this video */
.dark .text-client .muted { color: var(--on-dark); opacity: .6; }
.install .ico { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.install .txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.install .txt strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.install .x { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); flex: none; }
.install .x svg { width: 16px; height: 16px; }
.rows { border-top: 1px solid var(--hair); }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.rows .t { font-weight: 600; min-width: 0; }
.rows .t small { display: block; font-weight: 400; color: var(--stone-text); font-size: 12.5px; }
.scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller .tile { flex: 0 0 118px; scroll-snap-align: start; }
.shoot { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--hair); border-radius: 4px; }
.shoot .cal { width: 52px; flex: none; text-align: center; border: 1px solid var(--hair-strong); border-radius: 3px; overflow: hidden; }
.shoot .cal b { display: block; background: var(--ink); color: var(--sand); font-family: var(--label); font-size: 10px; letter-spacing: .18em; padding: 3px 0; }
.shoot .cal span { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; padding: 4px 0 5px; }
.shoot .cal.nodate span { display: grid; place-items: center; height: 35px; padding: 0; color: var(--stone-text); }
.shoot .cal.nodate svg { width: 20px; height: 20px; }
.shoot .txt { flex: 1; min-width: 0; font-size: 14px; }
.shoot .txt strong { display: block; font-size: 15px; }
.shoot .txt .one { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.shoot { width: 100%; text-align: left; }
.shoot > svg { color: var(--stone-text); }
.contact { padding-top: 16px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact .num { font-family: var(--display); font-weight: 600; font-size: 20px; user-select: all; }
.contact-btns { display: flex; gap: 8px; }
.contact-btns .btn { padding: 0 12px; }
.empty { padding: 18px; border: 1px dashed var(--hair-strong); border-radius: 4px; color: var(--muted); font-size: 14px; text-align: center; }

/* tiles */
.tile { display: flex; flex-direction: column; text-align: left; width: 100%; min-width: 0; }
.tile .poster { position: relative; aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: var(--panel); }
.tile .poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.tile .poster .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sand); padding: 8px; text-align: center; font-size: 11px; }
.tile .poster .ph svg { width: 26px; height: 26px; opacity: .8; }
.tile .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(8, 34, 40, .78); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 2px; }
.tile .flag { position: absolute; left: 5px; top: 5px; background: var(--sand); color: var(--ink); font-family: var(--label); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 2px 5px; border-radius: 2px; }
.tile .t { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-top: 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .s { font-size: 11.5px; color: var(--stone-text); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.month-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--hair); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; align-items: start; }
@media (min-width: 480px) { .grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.applink { display: flex; gap: 12px; align-items: center; padding: 11px 12px; margin-top: 12px; border-radius: 3px; background: var(--ground-2); font-size: 13px; line-height: 1.35; }
.applink strong { display: block; font-size: 13.5px; }
.applink svg { width: 26px; height: 26px; flex: none; color: var(--muted); }

/* ideas */
.idea { border: 1px solid var(--hair); border-radius: 4px; padding: 16px; }
.idea + .idea { margin-top: 12px; }
.idea-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.idea .h2 { margin-bottom: 4px; }
.idea .who { font-size: 13px; color: var(--muted); }
.idea-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.idea .script-link { margin-top: 12px; }
.rows .row-end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.shoot-scripts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 2px 0; }
.booked .script-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.shoot-scripts .row-link, .rows .row-link { font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); }
.vote { width: 44px; height: 40px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-strong); display: grid; place-items: center; }
.vote svg { width: 19px; height: 19px; }
.vote[aria-pressed="true"].up { background: var(--ink); color: var(--sand); box-shadow: none; }
.vote[aria-pressed="true"].down { color: var(--alert); box-shadow: inset 0 0 0 1px var(--alert); }
.note-btn { margin-left: auto; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); }
textarea { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--hair-strong); border-radius: 3px; background: #fff; padding: 10px 12px; font-size: 16px; line-height: 1.4; }
.saved-note { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--sand); background: var(--ground-2); font-size: 13.5px; }
.pitch-own { background: var(--panel); color: var(--on-dark); border-radius: 4px; padding: 18px; }
.pitch-own textarea { background: rgba(247, 245, 240, .06); border-color: var(--hair-dark); color: var(--on-dark); margin: 12px 0; }
.pitch-own textarea::placeholder { color: var(--on-dark-muted); }

/* book */
.opt { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-strong); text-align: left; font-size: 14.5px; }
.opt + .opt { margin-top: 8px; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair-strong); flex: none; display: grid; place-items: center; }
.opt[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt[aria-checked="true"] .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.opt small { display: block; color: var(--stone-text); font-size: 12.5px; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 58px; height: 74px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.day b { font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-text); }
.day span { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; }
.day i { font-style: normal; font-size: 10.5px; color: var(--stone-text); }
.day:disabled { opacity: .38; cursor: default; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.day[aria-pressed="true"] b, .day[aria-pressed="true"] i { color: var(--sand); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg button { height: 42px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 13.5px; font-weight: 600; text-align: center; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.booked { background: var(--panel); color: var(--on-dark); border-radius: 4px; padding: 20px 18px; }
.booked .when { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 8px; }
.booked p { color: var(--on-dark-muted); margin: 0 0 14px; font-size: 14px; }

/* sheets */
.layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(8, 34, 40, .42); opacity: 0; transition: opacity .25s ease; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; background: var(--ground); border-radius: 14px 14px 0 0; transform: translateY(102%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; }
.layer.open .scrim { opacity: 1; } .layer.open .sheet { transform: none; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--hair-strong); margin: 8px auto 4px; flex: none; }
.sheet-body { overflow-y: auto; padding-block: 8px max(26px, env(safe-area-inset-bottom, 0px)); scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet.full { top: 0; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
.dark { background: var(--ink); color: var(--on-dark); }
.player-top { display: flex; align-items: center; justify-content: space-between; height: 50px; flex: none; }
.player-top button { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.player-top svg { width: 20px; height: 20px; }
.player-body { flex: 1; overflow-y: auto; padding-block: 0 max(26px, env(safe-area-inset-bottom, 0px)); scrollbar-width: none; }
.player-body::-webkit-scrollbar { display: none; }
.vbox { position: relative; margin: 0 auto; height: min(56vh, 520px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 4px; overflow: hidden; background: #000; }
.vbox video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vbox .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--on-dark-muted); font-size: 14px; }
.player-info { margin-top: 18px; }
.player-info .sub { color: var(--on-dark-muted); font-size: 13.5px; margin-top: 6px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.actions .btn { padding: 0 10px; }
.progress { height: 6px; border-radius: 3px; background: var(--hair-dark); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--sand); transition: width .2s linear; }
.review-bar { margin-top: 16px; padding: 14px; border-radius: 4px; background: rgba(249, 206, 143, .1); box-shadow: inset 0 0 0 1px rgba(249, 206, 143, .35); }
.review-bar .lbl { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 12px; }
.review-bar .lbl .dot { background: var(--sand); }
.dark textarea { background: rgba(247, 245, 240, .06); border-color: var(--hair-dark); color: var(--on-dark); }
.dark textarea::placeholder { color: var(--on-dark-muted); }
.steps { display: grid; border-top: 1px solid var(--hair); margin-top: 14px; }
.steps div { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.steps .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--ground-2); display: grid; place-items: center; flex: none; }
.steps .ic svg { width: 21px; height: 21px; }
.acct-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.acct-head .avatar { width: 54px; height: 54px; font-size: 16px; }
.acct-list button, .acct-list a, .acct-list .rowi { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 15px; text-align: left; gap: 12px; }
.acct-list svg { width: 18px; height: 18px; color: var(--stone-text); flex: none; }

.toast { position: absolute; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 60; max-width: calc(100% - 36px); width: max-content; background: var(--ink); color: var(--on-dark); padding: 11px 16px; border-radius: 3px; font-size: 13.5px; line-height: 1.35; opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; display: flex; gap: 10px; align-items: center; }
.toast svg { width: 17px; height: 17px; color: var(--sand); flex: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err svg { color: #ffb4a0; }

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

.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair-strong); text-align: left; font-size: 13.5px; color: var(--muted); }
.invite-row strong { display: block; color: var(--ink); font-size: 15px; }
.invite-row svg { width: 18px; height: 18px; flex: none; color: var(--stone-text); }
.team-list .prow:last-child { border-bottom: 0; }

/* version 2: listings */
.ocard { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--hair); text-align: left; }
.olist { border-top: 1px solid var(--hair); margin-top: 16px; }
.oimg { width: 84px; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--ground-2); flex: none; display: grid; place-items: center; color: var(--stone-text); }
.oimg img { width: 100%; height: 100%; object-fit: cover; }
.oimg svg { width: 24px; height: 24px; opacity: .6; }
.otxt { flex: 1; min-width: 0; }
.otxt strong { display: block; font-size: 15px; line-height: 1.25; }
.otxt > span { display: block; font-size: 12.5px; color: var(--stone-text); }
.otxt small { display: block; font-size: 12px; color: var(--stone-text); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ochips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ocard > svg { width: 18px; height: 18px; color: var(--stone-text); flex: none; }
.ltile { flex: 0 0 172px; scroll-snap-align: start; text-align: left; min-width: 0; }
.ltile .oimg { width: 100%; }
.ltile .t { font-size: 13px; font-weight: 600; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltile .s { font-size: 11.5px; color: var(--stone-text); }
.due { background: var(--panel); color: var(--on-dark); border-radius: 4px; padding: 18px; }
.due .big { font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 1; letter-spacing: -0.03em; margin: 10px 0 6px; }
.due p { margin: 0 0 14px; color: var(--on-dark-muted); font-size: 14px; }
.lhero { margin: 0 calc(-1 * max(18px, env(safe-area-inset-left, 0px))); aspect-ratio: 3 / 2; background: var(--ground-2); overflow: hidden; }
.lhero img { width: 100%; height: 100%; object-fit: cover; }
.lhead { padding: 18px 0 4px; }
.lhead .h1 { font-size: 27px; margin: 6px 0 4px; }
.lsec { margin-top: 26px; }
.lsec .actions { margin: 0 0 12px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pgrid button { aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--ground-2); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; }
.pgrid.plans button { aspect-ratio: 4 / 3; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.pgrid.plans img { object-fit: contain; }
.vrow { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--hair); text-align: left; }
.vrow .vthumb { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--panel); flex: none; }
.vrow .vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vrow .vthumb .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(8, 34, 40, .78); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 2px; }
.vrow strong { display: block; font-size: 14.5px; }
.vrow small { display: block; color: var(--stone-text); font-size: 12.5px; }
.linkrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.linkrow > span { min-width: 0; font-weight: 600; }
.linkrow small { display: block; font-weight: 400; color: var(--stone-text); font-size: 12.5px; }
.linkrow .btns { display: flex; gap: 6px; flex: none; }
.lockednote { padding: 12px 14px; border-radius: 3px; background: var(--sand-soft); color: var(--espresso); font-size: 13.5px; margin-bottom: 12px; }
.vbox.wide { height: auto; width: 100%; aspect-ratio: 16 / 9; }
.pv { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.pv img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(8, 34, 40, .55); color: #fff; display: grid; place-items: center; }
.pv .nav svg { width: 20px; height: 20px; }
.pv .nav.prev { left: 10px; } .pv .nav.next { right: 10px; }
.pv-foot { flex: none; padding-block: 12px max(18px, env(safe-area-inset-bottom, 0px)); }
.pv-foot .actions { margin-top: 0; }
.book-order { background: var(--panel); color: var(--on-dark); border-radius: 4px; padding: 18px; margin-bottom: 28px; }
.book-order p { color: var(--on-dark-muted); margin: 8px 0 16px; font-size: 14px; }
.cands { margin-top: 10px; border-top: 1px solid var(--hair); }
.cands div { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.cands b { font-weight: 600; }
.cands small { display: block; color: var(--stone-text); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.receipt-head img { height: 22px; width: auto; }
@media print {
  body.print-receipt { background: #fff; }
  body.print-receipt .topbar, body.print-receipt .views, body.print-receipt .tabbar, body.print-receipt .toast, body.print-receipt .scrim, body.print-receipt .grab, body.print-receipt .sheet-top, body.print-receipt .receipt-actions, body.print-receipt .layer:not(.receipt-layer) { display: none !important; }
  body.print-receipt .app { height: auto; overflow: visible; box-shadow: none; max-width: none; }
  body.print-receipt .receipt-layer, body.print-receipt .receipt-layer .sheet { position: static; transform: none; max-height: none; border-radius: 0; background: #fff; }
}
.save-state { margin-top: 10px; }
.save-state.idle .progress { display: none; }
.save-state .progress { margin-top: 0; }
.save-line { color: var(--on-dark-muted); margin-top: 7px; min-height: 1.4em; }
.btn.ready { box-shadow: 0 0 0 3px rgba(249, 206, 143, .45); }
.chg-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.chg-btns .btn { padding: 0 6px; }

/* pressed states for tappable rows and cards */
.ocard:active, .pick-list button:active, .acct-list button:active, .acct-list a:active, button.shoot:active, .invite-row:active, .vrow:active, .ltile:active .oimg { background: var(--ground-2); }
.acct-list a { text-decoration: none; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.slots button { height: 42px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 14px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.slots button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.btn.danger { background: var(--alert); color: #fff; }
.inv-list { margin-top: 14px; border-top: 1px solid var(--hair); }
.inv { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.inv-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inv-top strong { display: block; font-size: 15px; }
.inv-top small { display: block; color: var(--stone-text); font-size: 12.5px; }
.inv-amt { font-family: var(--display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.inv-bot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.inv-bot .btns { display: flex; gap: 6px; }

/* ---------- sidebar pieces (desktop only; on phones the tab bar stays at the bottom) ---------- */
.side { display: contents; }
.side-logo, .side-foot, .top-title { display: none; }

/* ---------- desktop: 1024px and wider (keep in step with wideMQ in app.js) ---------- */
@media (min-width: 1024px) {
  body { background: var(--ground); }
  .app { max-width: none; display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); box-shadow: none; padding-top: 0; }

  /* left sidebar: logo, sections, the studio line, account */
  .side { display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / span 2; min-height: 0; background: var(--ground-2); border-right: 1px solid var(--hair); padding: 22px 14px 18px; gap: 26px; overflow-y: auto; }
  .side-logo { display: block; height: 26px; width: auto; align-self: flex-start; margin: 2px 10px 0; }
  .side .tabbar { display: flex; flex-direction: column; gap: 2px; border: 0; background: none; padding: 0; }
  .side .tabbar[hidden] { display: none !important; }
  .side .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; height: 44px; padding: 0 12px; border-radius: 3px; font-size: 14.5px; color: var(--muted); }
  .side .tab svg { width: 21px; height: 21px; }
  .side .tab:hover { background: rgba(8, 34, 40, .05); color: var(--ink); }
  .side .tab[aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
  .side .tab[aria-selected="true"]::before { display: none; }
  .side .tab .badge { position: static; margin-left: auto; }
  .side-foot { display: block; margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--hair); }
  .side-num { font-family: var(--display); font-weight: 600; font-size: 17px; }
  .side-links { display: flex; gap: 14px; margin-top: 6px; }
  .side-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
  .side-links svg { width: 16px; height: 16px; }
  .side-acct { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 8px; border-radius: 4px; text-align: left; }
  .side-acct:hover { background: rgba(8, 34, 40, .05); }
  .side-acct img, .side-acct > span:first-child { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); padding: 3px; box-sizing: border-box; }
  .side-acct > span:first-child { display: grid; place-items: center; background: var(--ink); color: var(--sand); font-family: var(--label); font-weight: 700; font-size: 12px; }
  .sa-txt { min-width: 0; font-size: 13.5px; line-height: 1.3; }
  .sa-txt strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sa-txt small { color: var(--stone-text); font-size: 12px; }

  /* top bar over the content: account name on the left, avatar on the right */
  .topbar { grid-column: 2; grid-row: 1; height: 64px; padding-inline: 40px; }
  .top-left > img { display: none; }
  .top-title { display: block; font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-text); }
  .views { grid-column: 2; grid-row: 2; }
  .view { padding: 32px max(40px, calc((100% - 1120px) / 2)) 56px; }

  /* Home: content on the left, money and scheduling on the right */
  .greet .h1 { font-size: 40px; }
  .greet .eyebrow { display: none; }   /* the top bar already names the account */
  .home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .col-main, .col-side { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
  .scroller .tile { flex-basis: 150px; }
  .ltile { flex-basis: 230px; }

  /* Videos, Listings, Ideas, Book use the width */
  .grid3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
  .olist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .ocard .oimg { width: 112px; }
  .ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .ideas-grid .idea + .idea { margin-top: 0; }
  #view-ideas .pitch-own { max-width: 640px; }
  .book-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
  .book-grid .book-order { margin: 0 !important; position: sticky; top: 0; }
  .book-form { max-width: 620px; }
  .days { flex-wrap: wrap; }

  /* sheets become centered dialogs; full screen layers become large panels */
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100% - 48px)); max-height: 86vh; border-radius: 14px; transform: translate(-50%, -46%); opacity: 0; transition: transform .25s ease, opacity .2s ease; box-shadow: 0 30px 80px rgba(8, 34, 40, .28); }
  .layer.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet-body { padding-top: 22px; }
  .sheet.full { top: 50%; width: min(1040px, calc(100% - 64px)); height: 90vh; max-height: none; padding-top: 0; border-radius: 14px; }
  .player-top { padding-top: 6px; }
  .lhero { margin: 0 0 6px; border-radius: 6px; aspect-ratio: 21 / 9; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }

  /* video player: the video on the left, title and actions beside it */
  .player-body.vplayer { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 36px; align-content: start; }
  .vplayer > .vbox { grid-column: 1; grid-row: 1 / span 8; height: min(72vh, 680px); margin: 0; }
  .vplayer > :not(.vbox) { grid-column: 2; }
  .vplayer > .player-info { margin-top: 0; }
  .vplayer:has(.vbox.wide) { display: block; }
  .vplayer:has(.vbox.wide) > .vbox { height: auto; max-height: 64vh; }

  /* sign in and staff screens: a centered column */
  .screen { background: var(--ground-2); }
  .screen .inner { width: 100%; max-width: 520px; margin: 0 auto; box-sizing: border-box; }
  .toast { bottom: 32px; }
}
.pay-amount { font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1; letter-spacing: -.03em; }
