@font-face { font-family: "PP Mori"; src: url("https://www.stoodioos.com/fonts/PPMori-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("https://www.stoodioos.com/fonts/PPMori-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("https://www.stoodioos.com/fonts/PPMori-ExtraBold.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #F4F4F3;
  --card: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #6B6B6B;
  --line: #E7E7E5;
  --soft: #EEEEEC;
  --live: #1DB25A;
  --ok-bg: #E3F4E9; --ok: #157A3E;
  --font: "PP Mori", Inter, ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .hide-sm { display: none; } }
.sub { color: var(--muted); font-size: 15px; margin-top: 10px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease), opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.light { background: #fff; color: var(--ink); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn[disabled] { opacity: .3; cursor: not-allowed; transform: none; }

/* Top bar */
.app-top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.app-top .in { max-width: 1240px; margin: 0 auto; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad); }
.brand { font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand small { margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.tabs a { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
@media (max-width: 760px) { .tabs { display: none; } }
.top-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }

.shell { max-width: 1240px; margin: 0 auto; padding: 36px var(--pad) 120px; display: grid; gap: 14px; }
.card { background: var(--card); border-radius: 18px; padding: 24px; min-width: 0; }
.card.dark { background: var(--ink); color: #fff; }
.card.dark .label, .card.dark .fine { color: #8C8C8A; }
.card-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h2 { margin-top: 6px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .row3, .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .row2, .row3, .row4 { grid-template-columns: minmax(0, 1fr); } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv span { color: var(--muted); }
.card.dark .kv { border-color: #262626; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--soft); color: #555; white-space: nowrap; }
.chip.done { background: var(--ok-bg); color: var(--ok); }
.chip.progress { background: var(--ink); color: #fff; }
.chip.queued { background: var(--soft); color: #555; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); animation: ping 2.2s ease-out infinite; }
.dot.idle { background: #C8C8C6; } .dot.idle::after { display: none; }
@keyframes ping { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.9); } }

/* Fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A5A5A3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.slots { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.slots legend { padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.slot-day { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
@media (max-width: 560px) { .slot-day { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* Google Calendar booking page, embedded on the live sign-up */
.book { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.book iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
#book .check { margin-top: 14px; }
@media (max-width: 760px) { .book iframe { height: 720px; } }
.lbl { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
h1[tabindex="-1"]:focus { outline: none; }
.drop { display: grid; place-items: center; gap: 6px; padding: 26px; border: 1px dashed #CFCFCD; border-radius: 14px; background: var(--card); text-align: center; cursor: pointer; }
.drop { position: relative; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.thumbs span { padding: 6px 10px; border-radius: 8px; background: var(--soft); font-size: 12px; }

/* Start flow */
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }
.progress { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress li { padding-top: 10px; border-top: 3px solid #DADAD8; font-size: 12px; color: var(--muted); }
.progress li.done { border-color: var(--ink); color: var(--ink); }
.progress li.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.flow .step-pane { display: grid; gap: 26px; animation: rise .6s var(--ease); }
@keyframes rise { from { transform: translateY(14px); clip-path: inset(100% 0 0 0); } to { transform: none; clip-path: inset(0); } }
.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .plan-pick { grid-template-columns: minmax(0, 1fr); } }

.plan-pick label { position: relative; display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.plan-pick label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.add-pick { display: grid; border-top: 1px solid var(--line); }
.add-pick label { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px 14px 36px; border-bottom: 1px solid var(--line); cursor: pointer; }
.add-pick input { position: absolute; left: 4px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; accent-color: var(--ink); }
.add-pick span { display: grid; gap: 2px; }
.add-pick b { font-size: 14px; font-weight: 600; }
.add-pick small { font-size: 12px; color: var(--muted); }
.add-pick em { font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; }
.s-add { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.s-add:empty { display: none; }
.s-add li { display: flex; justify-content: space-between; gap: 10px; color: #C9C9C7; }
.plan-pick .top-line { display: flex; justify-content: space-between; align-items: baseline; }
.plan-pick b { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.plan-pick small { color: var(--muted); }
.plan-pick ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: #444; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.summary { position: sticky; top: 90px; display: grid; gap: 16px; }
.summary .big { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.summary .big small { font-size: 13px; font-weight: 400; color: #8C8C8A; letter-spacing: 0; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: #C9C9C7; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; }
.next-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.next-list li b { font-weight: 600; }
.next-list li p { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #444; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); }
.done-screen { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; animation: rise .6s var(--ease); }
.done-screen h1 { font-size: clamp(48px, 8vw, 120px); }
.done-screen p { margin: 16px auto 0; max-width: 44ch; color: #B4B4B2; }
.done-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #3A3A3A; }

/* Portal */
.hello { display: grid; gap: 10px; padding: 8px 0 18px; }
.hello p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.stepper { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.stepper li { display: grid; gap: 4px; padding-top: 12px; border-top: 3px solid #DADAD8; min-width: 0; }
.stepper li b { font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper li span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.done { border-color: var(--ink); } .stepper li.done b { color: var(--ink); }
.stepper li.on { border-color: var(--live); } .stepper li.on b { color: var(--ink); }
@media (max-width: 760px) { .stepper { grid-template-columns: repeat(6, 92px); overflow-x: auto; padding-bottom: 6px; } }
.stage-note { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stage-note div { padding: 16px; border-radius: 12px; background: var(--soft); }
.stage-note p { margin-top: 6px; }
@media (max-width: 640px) { .stage-note { grid-template-columns: minmax(0, 1fr); } }
.meter-num { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 14px 0 12px; }
.meter-num small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.meter { height: 5px; border-radius: 5px; background: var(--soft); overflow: hidden; margin-bottom: 10px; }
.meter i { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease); }
.next-card { display: grid; gap: 10px; align-content: start; }
.next-card h3 { font-size: 22px; letter-spacing: -0.03em; }
.next-card .btn { justify-self: start; margin-top: 8px; }
.reqs { list-style: none; margin: 0; padding: 0; }
.reqs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.reqs li b { font-weight: 600; }
.reqs li p { font-size: 12px; color: var(--muted); }
.empty { padding: 26px; border-radius: 12px; background: var(--soft); color: var(--muted); text-align: center; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.files li span { color: var(--muted); }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,.35); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(480px, 100%); background: var(--bg); padding: 28px var(--pad) 28px 28px; display: grid; align-content: start; gap: 20px; overflow-y: auto; box-shadow: -30px 0 80px rgba(0,0,0,.15); animation: slide .5s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; font-size: 18px; line-height: 1; }
.toasts { position: fixed; left: 0; right: 0; bottom: 80px; z-index: 70; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; animation: toast-in .5s var(--ease); }
@keyframes toast-in { from { translate: 0 14px; clip-path: inset(100% 0 0 0 round 999px); } to { translate: 0 0; clip-path: inset(0 0 0 0 round 999px); } }

/* Admin */
.kpi b { display: block; margin-top: 10px; font-size: 38px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi p { margin-top: 8px; }
.board { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.lane { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; background: var(--soft); min-height: 200px; }
.lane-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 2px 2px 6px; }
.lane-head span { color: var(--muted); font-weight: 400; }
.client { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--card); }
.client b { font-size: 13px; font-weight: 600; }
.client .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.client.you { box-shadow: inset 0 0 0 2px var(--live); }
.client button { justify-self: start; border: 0; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.table-wrap { overflow-x: auto; }
table.q { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
table.q th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; }
table.q td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); vertical-align: middle; }
table.q select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12px; }
.autos { list-style: none; margin: 0; padding: 0; }
.autos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.autos li p { font-size: 12px; color: var(--muted); }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); }
.setting .field { gap: 5px; }
.setting .fine { margin-bottom: 4px; }
@media (max-width: 560px) { .setting { grid-template-columns: minmax(0, 1fr); } }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #CFCFCD; border: 0; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Prototype bar */
.demo-bar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 7px 7px 7px 16px; border-radius: 999px; background: #0A0A0A; color: #fff; font-size: 12px; white-space: nowrap; }
.demo-bar a, .demo-bar button { color: #B4B4B2; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; }
.demo-bar a:hover, .demo-bar button:hover { color: #fff; }
.demo-bar .tag { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); opacity: 1; font-weight: 600; }

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

/* ---------- Live app additions ---------- */
.u { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.u:hover { color: var(--ink); }
.sm-link { font-size: 12px; color: var(--muted); }
.err { padding: 10px 14px; border-radius: 10px; background: #FBEAEA; color: #A12A2A; font-size: 13px; }
.auth-shell { display: grid; place-items: center; min-height: calc(100svh - 140px); }
.auth { width: min(440px, 100%); display: grid; gap: 18px; padding: 32px; }
.auth h1 { font-size: clamp(34px, 5vw, 48px); }
.auth form { gap: 14px; }
.auth form .btn { justify-self: start; }
.fields.one { grid-template-columns: minmax(0, 1fr); }
.studio-link { margin-top: -6px; }
.chip.warn { background: #FFF1D6; color: #8A5A00; }
.client-open { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; }
.client-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.client .client-open + .meta { margin-top: -2px; }
.files li button, .files li a { all: unset; cursor: pointer; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.files li button:hover, .files li a:hover { text-decoration: underline; text-underline-offset: 3px; }
label.btn { cursor: pointer; }
.drawer.wide { width: min(620px, 100%); }
.drawer h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.drawer .kvs { display: grid; gap: 0; }
.drawer .kv b { text-align: right; overflow-wrap: anywhere; }
.drawer .kv a { text-decoration: underline; text-underline-offset: 3px; }
.drawer .reqs li:first-child, .drawer .files li:first-child { border-top: 0; }
.drawer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { padding: 18px 20px; border-radius: 14px; background: var(--card); display: grid; gap: 8px; }
main[aria-busy="true"] > * { opacity: .35; transition: opacity .3s; }
.gate { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.gate h2 { margin: 6px 0 6px; }
.billing-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
