/* Simply Better Social, design system
   Warm paper background, navy surfaces, one orange accent taken from the logo.
   Red is reserved for count badges. Text on orange is always navy, never white, for contrast. */

:root {
  --paper: #F5F4F0;
  --paper-2: #ECEAE4;
  --card: #FFFFFF;
  --ink: #22303D;
  --ink-2: #2B3B4B;
  --ink-3: #354859;
  --text: #1B2631;
  --text-2: #4E5A67;
  --muted: #86909B;
  --line: rgba(34, 48, 61, .09);
  --line-2: rgba(34, 48, 61, .16);
  --accent: #FE700B;
  --accent-2: #FF8A1F;
  --accent-soft: #FFF1E6;
  --accent-ink: #22303D;
  --badge: #FF3B30;
  --ok: #12B76A;
  --warn: #F59E0B;
  --err: #E5484D;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-1: 0 1px 2px rgba(34, 48, 61, .05), 0 1px 1px rgba(34, 48, 61, .03);
  --shadow-2: 0 8px 24px -8px rgba(34, 48, 61, .14), 0 2px 6px rgba(34, 48, 61, .05);
  --shadow-3: 0 24px 60px -20px rgba(34, 48, 61, .32);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* A class with display set must never beat the hidden attribute. */
[hidden] { display: none !important; }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 15px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }
.ico { flex: none; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.grow { flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r); border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-soft { background: var(--paper-2); color: var(--text); }
.btn-white { background: #fff; color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.btn-danger { background: #FFF1F1; color: var(--err); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; gap: 6px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 5px; }
.btn-lg { height: 56px; font-size: 16px; border-radius: 16px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 13px; border: 0;
  background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); cursor: pointer; position: relative; color: var(--text);
}
.icon-btn:active { transform: scale(.95); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; background: none; border: 0; padding: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- red count badge ---------- */
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--badge); color: #fff;
  font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--card);
}
.badge.is-zero { background: var(--paper-2); color: var(--muted); box-shadow: none; }
.icon-btn .badge, .tab .badge { position: absolute; top: -5px; right: -5px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r); border: 0;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; color: var(--text);
  transition: box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555B66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.input.input-sm, select.input.input-sm { height: 40px; border-radius: 11px; padding: 0 12px; font-size: 14px; }
select.input.input-sm { padding-right: 34px; background-position: right 10px center; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--paper-2); border-radius: 99px; transition: .2s; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .25s var(--ease); }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(18px); }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button, .seg a { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; }
.seg .on { background: #fff; color: var(--text); box-shadow: var(--shadow-1); }
.dark .seg { background: rgba(255,255,255,.08); }
.dark .seg button { color: rgba(255,255,255,.6); }
.dark .seg .on { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.alert { padding: 13px 15px; border-radius: var(--r); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-err { background: #FFF1F1; color: #B42318; }
.alert-ok { background: #ECFDF3; color: #067647; }
.alert-info { background: #F0F4FF; color: #2F4AB5; }
.alert-warn { background: #FFF8EB; color: #93520B; }

/* ---------- cards & surfaces ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.card-pad { padding: 18px; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-hd h3 { font-size: 15px; }
.dark { background: var(--ink); color: #fff; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 2px 12px; }
.section-title h2 { font-size: 18px; }
.section-title a { font-size: 13.5px; color: var(--text-2); font-weight: 550; }
.empty { text-align: center; padding: 44px 24px; color: var(--text-2); }
.empty .ico-wrap { width: 56px; height: 56px; border-radius: 18px; background: var(--paper-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--text-2); }
.empty h3 { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* stage pill + platform chip */
.spill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c) 11%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); white-space: nowrap; }
.spill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pchip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--paper); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pchip i { width: 8px; height: 8px; border-radius: 3px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 550; background: var(--paper-2); color: var(--text-2); }
.tag-ok { background: #E8F8EF; color: #067647; }
.tag-warn { background: #FFF4E0; color: #93520B; }
.tag-err { background: #FFEEEE; color: #B42318; }
.tag-info { background: #EEF2FF; color: #3538CD; }
.tag-dark { background: var(--ink); color: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: #fff; background: var(--ink); flex: none; overflow: hidden; letter-spacing: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; border-radius: 18px; font-size: 18px; }
.person-ph { background: #D9DBDF; color: #9CA0A8; }

/* ============================================================
   CLIENT APP (mobile-first)
   ============================================================ */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: calc(var(--safe-t) + 8px) 16px calc(110px + var(--safe-b)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 14px; position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--paper) 72%, rgba(244,243,239,0)); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.brandline { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brandline .who { min-width: 0; }
.brandline .who b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandline .who small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.page-head { padding: 6px 2px 18px; }
.page-head h1 { font-size: 30px; letter-spacing: -.035em; }
.page-head p { color: var(--text-2); margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 550; font-size: 14px; height: 42px; }
.viewas { position: sticky; top: 0; z-index: 30; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 9px 16px; display: flex; justify-content: space-between; gap: 10px; }

/* greeting */
.hello { padding: 4px 2px 18px; }
.hello h1 { font-size: 32px; line-height: 1.05; letter-spacing: -.04em; }
.hello h1 .serif { font-size: 36px; }
.hello p { color: var(--text-2); margin-top: 8px; font-size: 14.5px; }

/* exposure hero */
.hero-card { border-radius: var(--r-xl); padding: 20px 20px 16px; position: relative; overflow: hidden; background: radial-gradient(120% 80% at 100% 0%, #23282F 0%, var(--ink) 55%); color: #fff; box-shadow: var(--shadow-3); }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 90% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.hero-card > * { position: relative; }
.hero-label { font-size: 13px; color: rgba(255,255,255,.62); font-weight: 550; display: flex; align-items: center; gap: 8px; }
.hero-num { font-size: 52px; font-weight: 650; letter-spacing: -.05em; line-height: 1; margin: 10px 0 10px; }
.delta { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.delta.down { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.chart-wrap { position: relative; height: 150px; margin: 18px -6px 4px; }
.chart-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: #fff; color: var(--ink); border-radius: 10px; padding: 7px 10px; font-size: 12px; box-shadow: var(--shadow-2); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 2; }
.chart-tip b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-tip.on { opacity: 1; }
.plat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.plat { background: rgba(255,255,255,.06); border-radius: 14px; padding: 11px 12px; min-width: 0; }
.plat small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 550; }
.plat small i { width: 7px; height: 7px; border-radius: 2px; }
.plat b { display: block; font-size: 18px; letter-spacing: -.03em; margin-top: 4px; }
.plat em { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.62); margin-top: 2px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 3px; border-radius: 2px; }

/* needs-you strip */
.attention { display: grid; gap: 10px; }
.attn { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform .15s var(--ease); }
.attn:active { transform: scale(.985); }
.attn .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); flex: none; }
.attn b { display: block; font-size: 15px; letter-spacing: -.015em; }
.attn small { color: var(--text-2); font-size: 13px; }

/* queue buttons (the pipeline) */
.queues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.q { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform .15s var(--ease), box-shadow .2s; overflow: hidden; }
.q:active { transform: scale(.97); }
.q .qi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
.q b { font-size: 14.5px; letter-spacing: -.015em; line-height: 1.25; display: block; }
.q small { font-size: 12px; color: var(--muted); }
.q .badge { position: absolute; top: 12px; right: 12px; min-width: 24px; height: 24px; font-size: 12.5px; }
.q.is-action { box-shadow: var(--shadow-1), inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); }

/* horizontal queue tabs */
.qtabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 4px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.qtabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); scroll-snap-align: start; margin-top: 6px; margin-right: 4px; }
.tab i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tab.on { background: var(--ink); color: #fff; box-shadow: none; }

/* post cards */
.plist { display: grid; gap: 10px; }
.pcard { display: flex; gap: 14px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform .15s var(--ease); align-items: center; }
.pcard:active { transform: scale(.985); }
.thumb { width: 64px; height: 80px; border-radius: 12px; flex: none; overflow: hidden; position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 70%, #000)); display: grid; place-items: center; color: rgba(255,255,255,.9); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pl { position: absolute; inset: auto 6px 6px auto; width: 20px; height: 20px; border-radius: 7px; background: rgba(0,0,0,.45); display: grid; place-items: center; backdrop-filter: blur(4px); }
.pcard h3 { font-size: 15.5px; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard .sub { font-size: 12.5px; color: var(--muted); margin-top: 7px; display: flex; gap: 6px; align-items: center; }
.flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--badge); }

/* post detail */
.phead { padding: 2px 2px 14px; }
.phead h1 { font-size: 27px; letter-spacing: -.035em; line-height: 1.12; margin: 12px 0 12px; }
.steps { display: flex; align-items: center; gap: 0; margin: 4px 0 18px; padding: 14px 16px; }
.steps .st { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; font-size: 10.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.15; }
.steps .st::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--paper-2); z-index: 0; }
.steps .st:first-child::before { display: none; }
.steps .st i { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); position: relative; z-index: 1; display: grid; place-items: center; color: #fff; }
.steps .st.done i { background: var(--ink); }
.steps .st.done::before, .steps .st.cur::before { background: var(--ink); }
.steps .st.cur i { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.steps .st.cur { color: var(--text); }
.block { margin-bottom: 12px; }
.block .card-pad h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.hookline { font-size: 20px; letter-spacing: -.025em; line-height: 1.3; font-weight: 600; }
.script { font-size: 15px; line-height: 1.65; }
.script p { margin-bottom: 1em; }
.script .scene { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.script .scene:first-child { margin-top: 0; }
.caption-box { background: var(--paper); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; white-space: pre-wrap; }
.hashtags { color: #3538CD; font-size: 14px; margin-top: 8px; word-break: break-word; }
.stage-panel { border-radius: var(--r-lg); padding: 18px; margin-bottom: 12px; background: color-mix(in srgb, var(--c) 9%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.stage-panel h2 { font-size: 18px; margin-bottom: 4px; }
.stage-panel p { color: var(--text-2); font-size: 14px; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(244,243,239,.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
.actionbar .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.actionbar .btn { flex: 1; }
body.has-actionbar .tabbar { display: none; }
body.has-actionbar .app { padding-bottom: calc(100px + var(--safe-b)); }

/* requirements checklist */
.req { padding: 16px 0; border-top: 1px solid var(--line); }
.req:first-of-type { border-top: 0; padding-top: 4px; }
.req-top { display: flex; gap: 12px; align-items: flex-start; }
.req-state { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--paper-2); color: var(--muted); margin-top: 1px; }
.req-state.submitted { background: #EEF2FF; color: #3538CD; }
.req-state.approved { background: var(--ok); color: #fff; }
.req-state.redo { background: #FFEEEE; color: var(--err); }
.req-state.booked { background: var(--ink); color: var(--accent); }
.req b { font-size: 15px; letter-spacing: -.015em; display: block; }
.req .note { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.req .redo-note { font-size: 13px; color: var(--err); margin-top: 6px; font-weight: 550; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-left: 38px; }
.help-offer { margin: 12px 0 0 38px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.help-offer .ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--accent); flex: none; }
.help-offer b { font-size: 14px; display: block; }
.help-offer small { color: rgba(255,255,255,.6); font-size: 12.5px; }
.help-offer .btn { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 12px 0 0 38px; }
.file { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--text-2); font-size: 11px; text-align: center; }
.file img, .file video { width: 100%; height: 100%; object-fit: cover; }
.file .fname { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.file .kind { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.file.proc::after { content: "Processing"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(34,48,61,.55); color: #fff; font-size: 11px; font-weight: 600; }

/* upload progress */
.uploads { position: fixed; left: 12px; right: 12px; bottom: calc(96px + var(--safe-b)); z-index: 60; max-width: 520px; margin: 0 auto; display: grid; gap: 8px; }
.upl { background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 14px; font-size: 13px; box-shadow: var(--shadow-3); }
.upl .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; }
.upl .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .2s; }
.upl.err .bar i { background: var(--err); }

/* final cut / review */
.player { border-radius: var(--r-lg); overflow: hidden; background: #000; position: relative; }
.player video { width: 100%; max-height: 72vh; background: #000; }
.player iframe { width: 100%; aspect-ratio: 9/16; max-height: 72vh; border: 0; display: block; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery a { border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* comments */
.thread { display: grid; gap: 14px; }
.cmt { display: flex; gap: 10px; }
.cmt .bubble { background: var(--paper); border-radius: 4px 16px 16px 16px; padding: 10px 13px; font-size: 14.5px; flex: 1; min-width: 0; }
.cmt.mine .bubble { background: #EEF2FF; }
.cmt.internal .bubble { background: #FFF8EB; }
.cmt .who { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cmt .who b { color: var(--text); font-weight: 650; }
.ts { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 650; cursor: pointer; border: 0; font-variant-numeric: tabular-nums; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.composer textarea { min-height: 48px; height: 48px; padding: 13px 14px; }
.composer .btn { height: 48px; width: 48px; padding: 0; flex: none; }
.timeline { display: grid; gap: 0; }
.ev { display: flex; gap: 12px; font-size: 13.5px; color: var(--text-2); padding: 7px 0; }
.ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); margin-top: 7px; flex: none; }

/* booking */
.svc-list { display: grid; gap: 10px; }
.svc { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); cursor: pointer; }
.svc.on { box-shadow: inset 0 0 0 2px var(--ink); }
.svc .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: none; }
.svc b { font-size: 15.5px; display: block; letter-spacing: -.015em; }
.svc small { color: var(--text-2); font-size: 13px; }
.svc .price { font-weight: 700; font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 60px; height: 76px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; border: 0; }
.day small { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day b { font-size: 21px; letter-spacing: -.03em; }
.day em { font-style: normal; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.day.none { opacity: .4; }
.day.none em { background: transparent; }
.day.on { background: var(--ink); color: #fff; box-shadow: none; }
.day.on small { color: rgba(255,255,255,.6); }
.day.on em { background: var(--accent); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { height: 46px; border-radius: 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border: 0; font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--ink); color: #fff; box-shadow: none; }
.summary { border-radius: var(--r-lg); padding: 18px; }
.summary .line { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14.5px; }
.summary .line + .line { border-top: 1px solid rgba(255,255,255,.08); }
.summary .total { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.shoot { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); align-items: center; }
.datebox { width: 54px; height: 60px; border-radius: 14px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.datebox small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.datebox b { font-size: 21px; letter-spacing: -.03em; line-height: 1.1; }
.datebox.past { background: var(--paper-2); color: var(--text-2); }
.datebox.past small { color: var(--muted); }

/* notifications list */
.nlist { display: grid; }
.nitem { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.nitem .ic { width: 40px; height: 40px; border-radius: 13px; background: var(--paper-2); display: grid; place-items: center; flex: none; color: var(--text-2); }
.nitem.unread .ic { background: var(--ink); color: var(--accent); }
.nitem b { font-size: 14.5px; display: block; letter-spacing: -.01em; }
.nitem p { font-size: 13.5px; color: var(--text-2); margin: 2px 0 0; }
.nitem small { font-size: 12px; color: var(--muted); }
.nitem.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--badge); margin-left: 7px; vertical-align: 2px; }

/* settings rows */
.rows .rw { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); }
.rows .rw:first-child { border-top: 0; }
.rows .rw .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.rows .rw b { font-size: 14.5px; display: block; font-weight: 600; }
.rows .rw small { font-size: 12.5px; color: var(--muted); }

/* bottom tab bar */
.tabbar { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: calc(100% - 24px); max-width: 440px; height: 68px; border-radius: 24px; background: rgba(34,48,61,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 6px; box-shadow: 0 18px 40px -12px rgba(34,48,61,.45); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(255,255,255,.5); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tabbar a .ico { transition: transform .2s var(--ease); }
.tabbar a.on { color: #fff; }
.tabbar a.on::before { content: ""; position: absolute; top: 7px; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.tabbar a:active .ico { transform: scale(.88); }
.tabbar .badge { position: absolute; top: 8px; left: calc(50% + 5px); box-shadow: 0 0 0 2px var(--ink); }

/* sheets & toasts */
.sheet-bg { position: fixed; inset: 0; background: rgba(34,48,61,.45); z-index: 90; opacity: 0; transition: opacity .25s; }
.sheet-bg.on { opacity: 1; }
.sheet { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 18px calc(20px + var(--safe-b)); max-height: 90dvh; overflow-y: auto; transform: translateY(105%); transition: transform .35s var(--ease); max-width: 560px; margin: 0 auto; }
.sheet.on { transform: none; }
.sheet .grab { width: 38px; height: 5px; border-radius: 5px; background: var(--paper-2); margin: 0 auto 14px; }
.sheet h2 { font-size: 21px; margin-bottom: 6px; }
.sheet .sub { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
@media (min-width: 700px) { .sheet { bottom: 50%; transform: translateY(60%) scale(.98); opacity: 0; border-radius: 24px; transition: transform .3s var(--ease), opacity .2s; width: min(520px, 94vw); } .sheet.on { transform: translateY(50%); opacity: 1; } }
.toast { position: fixed; z-index: 100; left: 50%; top: calc(14px + var(--safe-t)); transform: translate(-50%, -140%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-3); transition: transform .35s var(--ease); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); }
.toast.err { background: #B42318; }
.toast .ico { color: var(--accent); }
.toast.err .ico { color: #fff; }

.install-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; }
.install-card b { display: block; font-size: 14.5px; }
.install-card small { font-size: 12.5px; opacity: .75; }
.install-card .btn { background: var(--ink); color: #fff; height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }

/* ============================================================
   AUTH SCREENS
   ============================================================ */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--safe-t) + 22px) 22px calc(22px + var(--safe-b)); max-width: 460px; margin: 0 auto; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand img { height: 34px; width: auto; display: block; }
.brand-logo { display: block; height: 30px; width: auto; }
.auth-main { align-self: center; padding: 30px 0; }
.auth h1 { font-size: 38px; line-height: 1.02; letter-spacing: -.045em; margin-bottom: 12px; }
.auth h1 .serif { font-size: 42px; }
.auth .lead { color: var(--text-2); margin-bottom: 26px; font-size: 15.5px; }
.auth-foot { font-size: 12.5px; color: var(--muted); text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sent-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side { background: var(--ink); color: rgba(255,255,255,.72); padding: 18px 12px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 6px 10px 22px; }
.side .brand .brand-logo { height: 26px; }
.side .brand small { display: block; color: rgba(255,255,255,.45); font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; padding-left: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 11px; font-size: 14px; font-weight: 550; margin-bottom: 2px; position: relative; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.on { background: rgba(255,255,255,.09); color: #fff; }
.nav a.on .ico { color: var(--accent); }
.nav a .badge { margin-left: auto; box-shadow: none; }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.35); font-weight: 650; padding: 18px 10px 8px; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.side .me b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.side .me small { font-size: 12px; color: rgba(255,255,255,.45); }
.main { min-width: 0; padding: 26px 32px 60px; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.a-head h1 { font-size: 28px; letter-spacing: -.035em; }
.a-head p { color: var(--text-2); margin-top: 4px; font-size: 14.5px; }
.a-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--text); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stat { padding: 16px 18px; }
.stat small { font-size: 12.5px; color: var(--text-2); font-weight: 550; display: flex; align-items: center; gap: 7px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.04em; margin-top: 6px; line-height: 1.1; }
.stat em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(7, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.col { background: var(--paper-2); border-radius: 18px; padding: 10px; min-height: 200px; }
.col-hd { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13px; font-weight: 650; }
.col-hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.col-hd .badge { margin-left: auto; box-shadow: none; }
.kcard { display: block; background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.kcard:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); transform: translateY(-1px); }
.kcard h4 { font-size: 14px; letter-spacing: -.015em; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
.kcard .cl { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 550; }
.kcard .meta { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: #FAFAF8; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: #FAFAF8; }
.pipe-mini { display: flex; gap: 3px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--paper-2); min-width: 120px; }
.pipe-mini i { display: block; height: 100%; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.admin-tabs a { position: relative; padding: 10px 12px 12px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.admin-tabs a.on { color: var(--text); }
.admin-tabs a.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.admin-tabs .badge { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.req-edit { display: grid; grid-template-columns: 1fr 110px 70px 190px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 550; cursor: pointer; }
.opt input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); }

/* availability chart */
.avail { overflow-x: auto; }
.avail-grid { display: grid; grid-template-columns: 170px repeat(7, minmax(120px, 1fr)); min-width: 1010px; }
.avail-grid .h { font-size: 12px; font-weight: 650; color: var(--text-2); padding: 10px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.avail-grid .h.today { color: var(--text); }
.avail-grid .h.today b { background: var(--ink); color: #fff; border-radius: 6px; padding: 1px 6px; }
.avail-grid .who { padding: 12px 10px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; }
.avail-grid .cell { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px 6px; min-height: 84px; position: relative; }
.avail-grid .cell.off { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(34,48,61,.035) 6px 12px); }
.dayline { position: relative; height: 10px; border-radius: 5px; background: var(--paper-2); margin-bottom: 7px; overflow: hidden; }
.dayline .w { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ok) 55%, #fff); }
.dayline .b { position: absolute; top: 0; bottom: 0; background: var(--ink); }
.dayline .o { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #E5484D 0 3px, #FF8A8E 3px 6px); }
.hours { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bk { display: block; font-size: 11.5px; line-height: 1.3; padding: 5px 7px; border-radius: 8px; background: var(--ink); color: #fff; margin-top: 5px; }
.bk small { display: block; color: rgba(255,255,255,.6); font-size: 10.5px; }
.bk.pending { background: #FFF4E0; color: #93520B; }
.bk.pending small { color: #B7791F; }
.offtag { display: block; font-size: 11px; padding: 4px 7px; border-radius: 7px; background: #FFEEEE; color: #B42318; margin-top: 5px; font-weight: 600; }
.hours-edit { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; align-items: center; }
.hours-edit .rngs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours-edit input[type=time] { width: 120px; }

.metric-grid input { width: 100%; height: 36px; border: 0; background: transparent; text-align: right; font: inherit; font-variant-numeric: tabular-nums; padding: 0 8px; border-radius: 8px; }
.metric-grid input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.metric-grid td { padding: 2px 6px; }
.metric-grid tr.wkend td { background: #FBFAF7; }

.mobile-top { display: none; }
.drawer-bg { display: none; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--paper); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 80; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.on { transform: none; }
  .drawer-bg.on { display: block; position: fixed; inset: 0; background: rgba(34,48,61,.4); z-index: 79; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 10px) 16px 10px; position: sticky; top: 0; z-index: 30; background: rgba(244,243,239,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .main { padding: 18px 16px 60px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .req-edit { grid-template-columns: 1fr 1fr; }
  .req-edit .lbl { grid-column: 1 / -1; }
  .a-head h1 { font-size: 24px; }
}
@media (max-width: 380px) {
  .hero-num { font-size: 44px; }
  .plat b { font-size: 16px; }
  .hello h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.chart-tip { min-width: 128px; }
.chart-tip .tip-day { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.chart-tip .tip-row i { width: 10px; height: 2px; border-radius: 2px; flex: none; }
.chart-tip .tip-row b { display: inline; font-size: 13px; color: var(--ink); font-weight: 650; min-width: 42px; }
.chart-tip .tip-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.chart-tip .tip-total b { margin-left: 17px; }
.plist > *, .attention > *, .svc-list > * { min-width: 0; }
.shoot .grow, .svc .grow, .pcard .grow { min-width: 0; }
.composer textarea { resize: none; }
.metric-grid table.t td { padding: 2px 6px; }
/* iOS zooms into inputs under 16px; keep them at 16px on phones. */
@media (max-width: 700px) { .input, .input.input-sm, select.input.input-sm, textarea.input { font-size: 16px; } }
.a-head .actions form { flex-wrap: wrap; }
a.stat small { padding-right: 30px; }
@media (max-width: 860px) {
  .a-head .actions { width: 100%; }
  .a-head .actions form { width: 100%; }
  .a-head .actions form select { flex: 1 1 160px; min-width: 0 !important; }
}

/* ============================================================
   ONBOARDING WIZARD
   ============================================================ */
.onboarding-body { overflow-x: hidden; }
.ob { position: relative; min-height: 100dvh; max-width: 560px; margin: 0 auto; }
.ob-top { display: flex; align-items: center; gap: 14px; padding: calc(var(--safe-t) + 12px) 18px 10px; height: 62px; }
.ob-top .back { height: auto; }
.ob-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.ob-progress i { display: block; height: 100%; width: 4%; background: var(--ink); border-radius: 4px; transition: width .35s var(--ease); }
.ob-step { position: absolute; inset: 62px 0 0; display: flex; flex-direction: column; padding: 0 18px calc(16px + var(--safe-b)); opacity: 0; pointer-events: none; transform: translateX(36px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.ob-step.on { opacity: 1; pointer-events: auto; transform: none; }
.ob-step.left { transform: translateX(-36px); }
.ob-step.right { transform: translateX(36px); }
.ob-body { flex: 1; overflow-y: auto; padding: 22px 0 18px; }
/* The intro and the done screen are short, so they sit centred instead of clinging to the top. */
.ob-step[data-step="intro"] .ob-body, .ob-step[data-step="done"] .ob-body { display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.ob-count { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ob h1 { font-size: 29px; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 10px; }
.ob .lead { color: var(--text-2); font-size: 15.5px; margin-bottom: 22px; }
.ob-options { display: grid; gap: 9px; }
.ob-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%; min-height: 56px; padding: 13px 16px; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; font-weight: 550; cursor: pointer; transition: transform .15s var(--ease), background .2s, color .2s; }
.ob-opt i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; display: grid; place-items: center; transition: .2s; }
.ob-opt.on { background: var(--ink); color: #fff; box-shadow: none; }
.ob-opt.on i { background: var(--accent); box-shadow: none; }
.ob-opt.on i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.ob-opt:active { transform: scale(.985); }
.ob-other { margin-top: 4px; }
.ob-foot { padding-top: 10px; }

/* ============================================================
   STORYBOARD VIEWER
   ============================================================ */
.sb-body { background: var(--ink); }
.sb { position: fixed; inset: 0; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 0%, #34465A 0%, #1B2631 62%); color: #fff; max-width: 560px; margin: 0 auto; }
.sb-top { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 10px) 16px 10px; }
.sb-top a, .sb-top button { color: rgba(255,255,255,.75); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; }
.sb-dots { display: flex; gap: 4px; flex: 1; }
.sb-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.16); transition: background .3s; }
.sb-dots i.done { background: rgba(255,255,255,.5); }
.sb-dots i.on { background: var(--accent); }
.sb-stage { flex: 1; position: relative; min-height: 0; }
.sb-frame { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateX(28px); transition: opacity .28s var(--ease), transform .32s var(--ease); }
.sb-frame.on { opacity: 1; pointer-events: auto; transform: none; }
.sb-frame.left { transform: translateX(-28px); }
.sb-img { flex: 1; min-height: 0; margin: 0 16px; border-radius: 20px; overflow: hidden; background: #000; display: grid; place-items: center; position: relative; }
.sb-img img { width: 100%; height: 100%; object-fit: contain; }
.sb-img .none { color: rgba(255,255,255,.35); display: grid; place-items: center; gap: 8px; font-size: 13px; }
.sb-num { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; }
.sb-dur { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 650; }
.sb-text { padding: 16px 18px 4px; max-height: 44vh; overflow-y: auto; }
.sb-text h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 8px; }
.sb-text p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.55; }
.sb-meta { display: grid; gap: 8px; margin-top: 14px; }
.sb-chip { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 13px; font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.45; }
.sb-chip b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 4px; font-weight: 650; }
.sb-nav { display: flex; gap: 10px; padding: 12px 16px calc(14px + var(--safe-b)); }
.sb-nav .btn { min-width: 0; }
.sb-nav .btn { flex: 1; }
.sb-nav .ghost { background: rgba(255,255,255,.08); color: #fff; flex: 0 0 56px; }
.sb-wrap { padding: 0 16px; overflow-y: auto; flex: 1; }
.sb-item { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); margin-bottom: 8px; }
.sb-item .ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--accent); flex: none; }
.sb-item b { font-size: 14.5px; display: block; letter-spacing: -.01em; }
.sb-item small { color: rgba(255,255,255,.55); font-size: 12.5px; }
.sb-item .tip { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 6px; line-height: 1.45; }

/* ============================================================
   ASSET TO-DO + VIDEO LIBRARY
   ============================================================ */
.progress-bar { height: 8px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 6px; transition: width .3s var(--ease); }
.todo { display: grid; gap: 10px; }
.todo-item { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); padding: 15px; }
.todo-item.done { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 45%, transparent); }
.todo-item.redo { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--err) 45%, transparent); }
.todo-head { display: flex; gap: 12px; align-items: flex-start; }
.todo-frame { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.todo-item h3 { font-size: 15.5px; letter-spacing: -.015em; line-height: 1.3; }
.howto { background: var(--paper); border-radius: 13px; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); margin-top: 12px; line-height: 1.55; }
.howto b { color: var(--text); display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.choice { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.choice .btn { flex: 1 1 130px; }
.vid-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcard { display: block; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform .15s var(--ease); }
.vcard:active { transform: scale(.985); }
.vthumb { aspect-ratio: 9 / 16; background: #111; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .play { position: absolute; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.93); display: grid; place-items: center; color: #111; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.vthumb .badge-status { position: absolute; left: 8px; top: 8px; }
.vmeta { padding: 10px 12px 12px; }
.vmeta b { font-size: 14px; display: block; letter-spacing: -.015em; line-height: 1.3; }
.vmeta small { color: var(--muted); font-size: 12px; }
@media (min-width: 620px) { .vid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rot90 { transform: rotate(90deg); }
.frame-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.frame-row:first-of-type { border-top: 0; }
.frame-img { width: 116px; flex: none; position: relative; border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 9 / 16; display: grid; place-items: center; color: var(--muted); }
.frame-img img { width: 100%; height: 100%; object-fit: contain; background: #F1EDE6; }
.frame-img .up { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border-radius: 9px; background: rgba(34,48,61,.82); color: #fff; font-size: 11.5px; font-weight: 600; cursor: pointer; }
@media (max-width: 700px) { .frame-row { flex-direction: column; } .frame-img { width: 100%; aspect-ratio: 16 / 9; } }

/* ============================================================
   AI: ideas, the shot library, the editor guide
   ============================================================ */

/* shared bits the AI screens lean on */
.note { border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.note b { color: var(--text); }
.note-warn { background: #FEF6E7; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .25); }
.tag-quiet { background: var(--paper-2); color: var(--text-2); }
.sec-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.sec-h:first-of-type { margin-top: 4px; }
.field-sm { max-width: 110px; flex: none; }

/* ---------- the generate bar ---------- */
.gen-card { padding: 18px 20px 20px; }
.gen-brief > small { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gen-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 16px; }
.gchip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 5px 11px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--text-2); }
.gchip b { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gen-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.gen-form .field { margin: 0; flex: 1 1 260px; min-width: 0; }
.gen-status { margin: 12px 0 0; }
@media (max-width: 640px) { .gen-form { flex-direction: column; align-items: stretch; } .field-sm { max-width: none; } .gen-form .btn { width: 100%; } }

/* ---------- idea cards ---------- */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.idea { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.idea > * { min-width: 0; }
.idea header h3 { font-size: 17.5px; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 8px; padding-right: 34px; }
.idea-hook { display: flex; gap: 8px; margin: 0; padding: 11px 13px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.45; }
.idea-hook svg { flex: none; margin-top: 3px; color: var(--accent); }
.idea-body { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.idea-body p { margin: 0 0 8px; }
.idea-body p:last-child { margin-bottom: 0; }
.idea-why { padding: 13px 15px; border-radius: 13px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.idea-why small { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.idea-why p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; }
.idea-why p:last-child { margin-bottom: 0; }
.idea-more summary { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.idea-more p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.idea footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.idea-pick { position: absolute; top: 18px; right: 18px; cursor: pointer; }
.idea-pick input { position: absolute; opacity: 0; }
.idea-pick i { display: block; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: .15s; }
.idea-pick input:checked + i { background: var(--ink); box-shadow: none; }
.idea-pick input:checked + i::after { content: ""; display: block; width: 6px; height: 11px; margin: 3px auto 0; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.idea-pick input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }

.bulkbar { position: sticky; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; width: fit-content; margin: 18px auto 0; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-3); font-size: 13.5px; }
.bulkbar b { color: var(--accent); }

/* ---------- dashboard ideas card ---------- */
.ai-card-body { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; }
.ai-pill { display: flex; flex-direction: column; gap: 2px; padding: 11px 15px; border-radius: 13px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: .15s; }
.ai-pill:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.ai-pill b { font-size: 13.5px; }
.ai-pill span { font-size: 12px; color: var(--muted); }
.ai-pill.on { background: var(--ink); color: #fff; box-shadow: none; }
.ai-pill.on span { color: var(--accent); }

/* ---------- progress strip while the AI works ---------- */
.ai-run { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; transform: translateY(-4px); transition: .3s var(--ease); }
.ai-run.on { opacity: 1; transform: none; }
.ai-run-bar { position: relative; flex: none; width: 78px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.ai-run-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 4px; background: var(--accent); animation: ai-slide 1.3s var(--ease) infinite; }
@keyframes ai-slide { 0% { left: -40%; } 100% { left: 100%; } }
.up-ai { position: absolute; left: 6px; right: 6px; bottom: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border: 0; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.up-ai.is-loading { color: transparent; }

/* On the wide admin pages the filter tabs wrap instead of scrolling off the edge. */
.admin-body .qtabs { flex-wrap: wrap; overflow: visible; }

/* ---------- shot library ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 8px; align-items: start; }
.shot { display: flex; flex-direction: column; overflow: hidden; }
.shot-img { position: relative; aspect-ratio: 4 / 3; background: #F1EDE6; display: grid; place-items: center; }
.shot-img img { width: 100%; height: 100%; object-fit: contain; }
.shot-img.empty span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.shot-draw { position: absolute; right: 8px; bottom: 8px; opacity: 0; transition: .15s; }
.shot:hover .shot-draw, .shot-img.empty .shot-draw, .shot-draw.is-loading { opacity: 1; }
.btn-dark { background: var(--ink); color: #fff; }
.shot-text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; }
.shot-text > .row:first-child b { font-size: 14.5px; letter-spacing: -.01em; }
.shot-how { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.shot-foot { margin-top: auto; padding-top: 8px; }

/* ---------- how to shoot, with the diagram ---------- */
.howto.has-img { display: grid; grid-template-columns: 1fr; grid-template-areas: "title" "img" "text"; gap: 10px; }
.howto.has-img b { grid-area: title; margin-bottom: 0; }
.howto-img { grid-area: img; position: relative; display: block; width: 100%; max-width: 260px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #F1EDE6; aspect-ratio: 1; }
@media (min-width: 520px) {
  .howto.has-img { grid-template-columns: 128px 1fr; grid-template-areas: "title title" "img text"; gap: 8px 14px; }
  .howto-img { max-width: none; margin: 0; }
}
.howto-img img { width: 100%; height: 100%; object-fit: contain; }
.howto-img span { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px; background: rgba(34,48,61,.72); color: #fff; font-size: 10.5px; font-weight: 600; opacity: 0; transition: .15s; }
.howto-img:hover span { opacity: 1; }
.howto-text { grid-area: text; }

/* ---------- why we picked this ---------- */
.why-card { background: var(--ink); color: #fff; }
.why-card h3 { color: #fff; }
.why-card h3 svg { color: var(--accent); }
.why-card .script, .why-card .script p { color: rgba(255, 255, 255, .78); }

/* ---------- editor guide in admin ---------- */
.guide-summary { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.guide-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.guide-specs span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.guide-specs b { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cuts { list-style: none; margin: 0; padding: 0; counter-reset: cut; }
.cuts li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cuts li:first-child { border-top: 0; padding-top: 0; }
.cut-at { flex: none; width: 66px; text-align: right; }
.cut-at b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cut-at small { font-size: 11.5px; color: var(--muted); }
.cut-body { min-width: 0; flex: 1; }
.cut-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.cut-src svg { color: var(--muted); flex: none; }
.cut-src em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cut-body > p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.cut-tag { display: flex; gap: 8px; margin: 0 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.cut-tag b { flex: none; width: 66px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.guide-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-notes small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.guide-notes p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.guide-check { margin-top: 16px; padding: 14px 16px; border-radius: 13px; background: var(--paper); }
.guide-check small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.guide-check label { display: flex; gap: 9px; align-items: flex-start; padding: 4px 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.guide-check input { margin-top: 2px; accent-color: var(--ink); }
.guide-check input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- AI spend ---------- */
.ai-spend > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.ai-spend b { font-size: 30px; letter-spacing: -.03em; }
.ai-spend small { color: var(--muted); font-size: 13px; }
.ai-bar { height: 7px; border-radius: 5px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.ai-bar i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }

/* ============================================================
   EDITOR GUIDE, PRINTABLE PAGE
   ============================================================ */
.guide-page { background: var(--paper); }
.gp { max-width: 940px; margin: 0 auto; padding: 40px 28px 80px; }
.gp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.gp-head small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gp-head h1 { font-size: 34px; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
.gp-actions { display: flex; gap: 8px; flex: none; }
.gp-summary { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0 0 20px; max-width: 70ch; }
.gp-specs { display: flex; flex-wrap: wrap; gap: 26px; padding: 16px 20px; border-radius: var(--r); background: var(--card); margin-bottom: 28px; }
.gp-specs small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.gp-specs b { font-size: 15px; }
.gp h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.gp-t { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; }
.gp-t th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gp-t td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.gp-t tr:last-child td { border-bottom: 0; }
.gp-at b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gp-at small { font-size: 11.5px; color: var(--muted); }
.gp-panel { width: 100%; max-width: 82px; border-radius: 8px; background: #F1EDE6; display: block; }
.gp-fn { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.gp-src { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; }
.gp-t td p { margin: 0; }
.gp-os { font-weight: 600; color: var(--text); }
.gp-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.gp-notes h3 { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.gp-notes p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.gp-check { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.gp-cap { margin: 0; font-size: 14.5px; line-height: 1.6; }
.gp-tags { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.gp-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
@media print {
  .gp-actions { display: none; }
  .gp { padding: 0; max-width: none; }
  .gp-t tr { break-inside: avoid; }
  .guide-page { background: #fff; }
}
@media (max-width: 720px) {
  .gp { padding: 24px 18px 60px; }
  .gp-head { flex-direction: column; }
  .gp-t thead { display: none; }
  .gp-t tr { display: grid; grid-template-columns: 76px 1fr; gap: 0 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .gp-t td { border: 0; padding: 0 0 8px; }
  .gp-t td:nth-child(3), .gp-t td:nth-child(4), .gp-t td:nth-child(5) { grid-column: 2; }
  .gp-t td:first-child { grid-row: 1; }
  .gp-t td:nth-child(2) { grid-row: 2 / span 3; }
}

/* ============================================================
   LEADS
   ============================================================ */
.leads { display: grid; gap: 10px; }
.lead { overflow: hidden; }
.lead > summary { display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) auto 80px; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.lead > summary::-webkit-details-marker { display: none; }
.lead > summary:hover { background: #FBFAF8; }
.lead[open] > summary { border-bottom: 1px solid var(--line); }
.lead-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--c); }
.lead-who { min-width: 0; }
.lead-who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-who small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-goal { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-when { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.lead-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin: 0; }
.lead-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.lead-facts dd { margin: 0; font-size: 13.5px; }
.lead-msg { margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; font-size: 14px; line-height: 1.55; }
.lead-work { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lead-work .field { margin: 0; min-width: 190px; }
.lead-work .grow { flex: 1 1 320px; }
.lead-foot { display: flex; align-items: center; gap: 8px; }
.badge.is-quiet { background: var(--paper-2); color: var(--text-2); }
@media (max-width: 760px) {
  .lead > summary { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lead-goal, .lead-when { display: none; }
}
.lead-card-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 14px 18px 18px; }
.lead-pill { display: flex; flex-direction: column; gap: 3px; padding: 12px 15px; border-radius: 13px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(254, 112, 11, .22); transition: .15s; }
.lead-pill:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(254, 112, 11, .45); }
.lead-pill b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-pill span { font-size: 12px; color: var(--text-2); }

/* ---------- free start, plans and strategy sessions ---------- */
.trial-strip { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.4; }
.trial-strip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.trial-strip b { font-weight: 650; }
.trial-strip a { margin-left: auto; font-weight: 650; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }

.gate { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 20px 20px; background: radial-gradient(120% 90% at 100% 0%, var(--ink-3) 0%, var(--ink) 58%); color: #fff; box-shadow: var(--shadow-3); }
.gate::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent); pointer-events: none; }
.gate > * { position: relative; z-index: 1; }
.gate .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-2); }
.gate h2 { font-size: 23px; line-height: 1.15; letter-spacing: -.035em; margin: 10px 0 8px; color: #fff; }
.gate h2 .serif { color: var(--accent-2); }
.gate p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.gate .inc { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.gate .inc li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.88); }
.gate .inc li svg { color: var(--accent-2); flex: none; margin-top: 1px; }
.gate .price-line { display: flex; align-items: baseline; gap: 6px; margin: 0 0 16px; }
.gate .price-line b { font-size: 30px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gate .price-line span { color: rgba(255,255,255,.6); font-size: 14px; }
.gate .btn-accent { box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.gate .fine { font-size: 12px; color: rgba(255,255,255,.5); margin: 10px 0 0; text-align: center; }

.session { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.session .ic { width: 48px; height: 48px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.session b { display: block; font-size: 15.5px; letter-spacing: -.015em; }
.session small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.session.is-due { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-2); }
.session.is-due .ic { background: var(--accent); color: var(--accent-ink); }
.session .btn { flex: none; height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.session-stack { display: grid; gap: 10px; }

.plan-head { text-align: center; padding: 10px 6px 18px; }
.plan-head .status { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }
.plan-head .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.plan-head h1 { margin-top: 12px; }
.path { display: grid; gap: 0; margin: 4px 0 20px; }
.path li { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 0 0 16px; position: relative; }
.path li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line-2); }
.path li:last-child::before { display: none; }
.path .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--text-2); font-size: 13px; font-weight: 700; }
.path li.done .n { background: var(--ink); color: var(--accent); }
.path li.now .n { background: var(--accent); color: var(--accent-ink); }
.path b { display: block; font-size: 15px; letter-spacing: -.015em; padding-top: 4px; }
.path small { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.path .free { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); vertical-align: 1px; }
.path .paid { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); vertical-align: 1px; }

/* admin: plan band on the client page */
.plan-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center; padding: 16px 18px; margin-bottom: 18px; }
.plan-band .pb-main { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.plan-band .pb-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-band .pb-name b { font-size: 18px; letter-spacing: -.025em; }
.plan-band .pb-name span { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.plan-band small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.plan-band .pb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.plan-band .pb-facts > div { padding: 10px 12px; border-radius: 12px; background: var(--paper); min-width: 0; }
.plan-band .pb-facts .k { display: block; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.plan-band .pb-facts b { font-size: 14px; letter-spacing: -.01em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-band .pb-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pb-more { position: relative; }
.pb-more > summary { list-style: none; cursor: pointer; }
.pb-more > summary::-webkit-details-marker { display: none; }
.pb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); display: grid; }
.pb-menu .btn { justify-content: flex-start; width: 100%; height: auto; min-height: 36px; padding: 8px 10px; text-align: left; white-space: normal; }
@media (max-width: 900px) {
  .plan-band { grid-template-columns: 1fr; }
  .plan-band .pb-actions { justify-content: flex-start; }
  .pb-menu { left: 0; right: auto; }
}
.lead-session { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: color-mix(in srgb, #7C5CFF 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, #7C5CFF 20%, transparent); flex-wrap: wrap; }
.lead-session b { display: block; font-size: 14.5px; }
.lead-session small { color: var(--text-2); font-size: 13px; }
.lead-session .grow { min-width: 180px; }
.session .datebox small { color: var(--accent); margin: 0; font-size: 10.5px; line-height: 1.2; }
.session .datebox b { font-size: 21px; letter-spacing: -.03em; line-height: 1.1; }

/* admin: brief with strategy session notes beside it */
.brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); grid-template-areas: "main side"; gap: 18px; align-items: start; }
.brief-main { grid-area: main; min-width: 0; }
.brief-side { grid-area: side; display: grid; gap: 10px; min-width: 0; }
.sn-card { background: linear-gradient(180deg, var(--accent-soft), #fff 70%); box-shadow: var(--shadow-1), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.sn-card b svg { color: var(--accent); vertical-align: -3px; margin-right: 4px; }
.sn-form .field { margin-bottom: 10px; }
.sn-form textarea { min-height: 150px; }
.sn-body { font-size: 14px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.sn-summary { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); margin: 0 0 16px; }
.sn-summary svg { color: var(--accent); flex: none; margin-top: 2px; }
.sn-summary p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 1000px) { .brief-layout { grid-template-columns: 1fr; grid-template-areas: "side" "main"; } }
