/* Staff tool. Light look, brand fonts and colours, built for a phone first. */
:root {
  --brick: #B02226; --jet: #231F20; --ink: #231F20; --muted: #5C5657; --line: #E3E0DF; --band: #F5F4F3; --paper: #FFFFFF; --bg: #F7F6F5;
  --good: #2E6B3A; --good-bg: #EAF3EC; --info-bg: #F1EFEE; --bad-bg: #FBECEC; --warn: #8A5A00; --warn-bg: #FFF4D6;
  --display: 'Oswald', 'Arial Narrow', sans-serif; --body: 'Hind', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
h1, h2, legend { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.1; }
h1 { font-size: 28px; margin: 0; text-wrap: balance; }
h2 { font-size: 19px; margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .nowrap { white-space: nowrap; }
.good { color: var(--good); } .bad { color: var(--brick); }

.top { background: var(--jet); color: #fff; padding-inline: 16px; }
.top__inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.who { color: #CFC8C7; font-size: 14px; }
.nav { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 0 10px; font-size: 15px; }
.nav a, .nav button { color: #E6E1E0; text-decoration: none; background: none; border: 0; padding: 4px 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover { color: #fff; text-decoration: underline; }
.nav__out { margin: 0 0 0 auto; }

.main { max-width: 760px; margin: 0 auto; padding-block: 24px 64px; padding-inline: 16px; display: flex; flex-direction: column; gap: 16px; }
.main--wide { max-width: 960px; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 0; min-width: 0; }
.card--narrow { max-width: 440px; width: 100%; margin: 24px auto 0; }
fieldset.card { display: flex; flex-direction: column; gap: 6px; }
legend { font-size: 18px; padding: 0 6px; margin-left: -6px; }
.stack { display: flex; flex-direction: column; gap: 6px; }

label, .label { font-weight: 600; font-size: 15px; margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 14px; font-weight: 400; margin: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #CFC8C7; border-radius: 8px; background: #fff; color: var(--ink); min-width: 0;
}
textarea { resize: vertical; }
input.gap { margin-top: 6px; }
.input--short { max-width: 8em; }
.money { display: flex; align-items: center; gap: 6px; max-width: 12em; }
.money span { color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.choices--stack { flex-direction: column; }
.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0 0; font-size: 16px; }
.choice input { width: 20px; height: 20px; accent-color: var(--brick); margin: 0; flex-shrink: 0; }
.choice--big { font-weight: 600; }
.grid2, .grid3, .grid4 { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: minmax(90px, 0.5fr) minmax(0, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4 { grid-template-columns: 0.6fr 1fr 1fr 1fr; } }
.product-box { border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px 12px; margin-top: 8px; }
.product-box__body { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.combo-note { background: var(--bad-bg); color: var(--brick); border-radius: 8px; padding: 8px 12px; margin: 6px 0 0; font-weight: 600; font-size: 15px; }

.retry-form { margin: 10px 0 6px; }
.sale-on { color: #1A7A3C; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; margin-right: 8px; }
.btn { display: inline-block; background: var(--brick); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn[disabled] { background: #CFC8C7; cursor: not-allowed; filter: none; }
.btn--quiet { background: #fff; color: var(--ink); border: 1px solid #CFC8C7; }
.btn--quiet:hover { color: var(--ink); background: var(--band); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

.banner { border-radius: 10px; padding: 12px 16px; border: 1px solid var(--line); background: var(--info-bg); }
.banner--good { background: var(--good-bg); border-color: #BFDCC6; }
.banner--bad { background: var(--bad-bg); border-color: #EBC1C1; }
.banner ul { margin: 6px 0 0; padding-left: 20px; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.chip--draft { color: var(--muted); border-color: #CFC8C7; background: #fff; }
.chip--live { color: var(--good); border-color: var(--good); background: var(--good-bg); }
.chip--warn { color: var(--warn); border-color: #E3C77A; background: var(--warn-bg); }
.chip--off { color: var(--brick); border-color: #EBC1C1; background: var(--bad-bg); }

.scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.card .scroll { border: 0; }
.table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: var(--band); }
.table tr:last-child td { border-bottom: 0; }
.table--figures td:first-child { color: var(--muted); width: 40%; }
.empty { background: var(--paper); border: 1px dashed #CFC8C7; border-radius: 10px; padding: 24px; text-align: center; }
.empty p { margin: 4px 0; }
.problems { margin: 0; padding-left: 20px; }
.problems li + li { margin-top: 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px !important; }
details.inline summary { cursor: pointer; color: var(--brick); font-weight: 600; }
details.inline[open] { min-width: 260px; }

.photo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar { width: 92px; height: 92px; border-radius: 50%; background: #3A3435; box-shadow: 0 0 0 3px #5A5253; overflow: hidden; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 30px; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cropper { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.cropper canvas { width: 240px; height: 240px; max-width: 100%; border-radius: 12px; background: #231F20; touch-action: none; cursor: grab; }
.cropper input[type=range] { width: 240px; max-width: 100%; accent-color: var(--brick); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Sign-in and Team additions */
.signed-as { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.signed-as a { font-weight: 400; margin-left: 6px; }
.input--pin { max-width: 7em; letter-spacing: 6px; font-size: 22px !important; text-align: center; }
.forgot { margin: 12px 0 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--brick); font: inherit; text-decoration: underline; cursor: pointer; }
.btn--small { padding: 6px 12px; font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.row-actions form { margin: 0; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; } }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.person--off { background: var(--band); }
.person__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.person__who { min-width: 0; }
.person__email { overflow-wrap: anywhere; margin-top: -6px; }
.person .row-actions { margin: 0; }

.codebox { background: var(--warn-bg); border: 1px solid #E3C77A; border-radius: 10px; padding: 14px 16px; }
.codebox p { margin: 0 0 8px; } .codebox p:last-child { margin: 0; font-size: 15px; }
.codebox__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; font-weight: 700; letter-spacing: 6px; color: var(--ink); }
.input--code { max-width: 9em; }

.problems--fix { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.problems--fix li { border-left: 3px solid var(--brick); padding: 2px 0 2px 12px; }
.problems--fix li + li { margin-top: 0; }
.fix__text { font-weight: 600; }
.fix__box { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.choice--top { align-items: flex-start; }
.choice--top input { margin-top: 3px; }

/* Stage 4: the generator panel, sources, and transcripts */
.gen header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.found { display: grid; grid-template-columns: 170px 1fr auto; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.found--block { display: block; }
.found--block ul { margin: 6px 0 0; padding-left: 20px; }
.found__label { font-weight: 600; font-size: 14px; }
.found__value { min-width: 0; overflow-wrap: anywhere; }
.found__src { white-space: nowrap; }
@media (max-width: 619px) { .found { grid-template-columns: 1fr; } }
.src-chip { border: 1px solid var(--line); background: var(--band); border-radius: 999px; padding: 1px 9px; font: inherit; font-size: 12.5px; color: var(--brick); font-variant-numeric: tabular-nums; cursor: pointer; }
.src-chip + .src-chip { margin-left: 4px; }
.ask { background: var(--warn-bg); border: 1px solid #E3C77A; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.ask .q { display: block; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--warn); margin-bottom: 4px; }
.ask p, .ask ul { margin: 0 0 6px; } .ask ul { padding-left: 20px; }
details.transcript { border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
details.transcript summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.lines { border-top: 1px solid var(--line); max-height: 44vh; overflow-y: auto; padding: 6px 0; }
.ln { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 3px 14px; font-size: 14.5px; scroll-margin: 80px; transition: background .4s; }
.ln time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 2px; }
.ln.flash { background: var(--warn-bg); }
@media (prefers-reduced-motion: reduce) { .ln { transition: none; } }

/* Review screen: the call beside the form, step chips, and the bottom bar (the stage 4 mockup) */
.step-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.step-chips li { padding: 3px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.step-chips li.done { background: var(--good-bg); border-color: #BFDCC6; color: var(--good); }
.step-chips li.now { background: var(--jet); border-color: var(--jet); color: #fff; }
.review-grid { display: grid; gap: 16px; min-width: 0; }
.review-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.review-main .proposal-form { display: contents; }
@media (min-width: 1000px) {
  .review-grid { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); align-items: start; }
  .review-main { grid-column: 2; grid-row: 1; }
  .review-aside { grid-column: 1; grid-row: 1; position: sticky; top: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.aside-sticky { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.aside-title { font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; margin: 0; }
.aside-sticky details.transcript { margin-top: 0; }
.formbar-spacer { height: 86px; }
.formbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.formbar__in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.formbar__left { min-width: 0; }
.formbar__left small { display: block; color: var(--muted); font-size: 12.5px; }
.formbar__left .good { color: var(--good); }


/* The live preview and the drafting steps */
.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.preview-shell { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #E4E1E0; }
#live-frame { display: block; width: 100%; height: min(72vh, 760px); border: 0; background: #E4E1E0; }
.gen-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.gen-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.gen-steps .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; }
.gen-steps li.done { color: var(--ink); }
.gen-steps li.done .tick { border-color: var(--good); background: var(--good-bg); }
.gen-steps li.done .tick::after { content: "✓"; color: var(--good); font-size: 13px; font-weight: 700; }
.gen-steps li.now { color: var(--ink); font-weight: 600; }
.gen-steps li.now .tick { border-color: var(--brick); border-top-color: transparent; animation: genspin 0.9s linear infinite; }
@keyframes genspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gen-steps li.now .tick { animation: none; border-top-color: var(--brick); } }

/* The find box on the Proposals list. */
.search-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 16px; }
.search-row input[type=search] { flex: 1; max-width: 420px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--panel, #fff); }


/* The Brent round: locked products, field questions, the call drawer, the missing list,
   collapsed sections, and growing text boxes. */
.lock-note { margin: 2px 0 0 30px; font-size: 13px; color: var(--muted); }
.product-box.is-locked > .choice--big { opacity: .45; }
.field-ask { background: var(--warn-bg); border: 1px solid var(--warn-line, #E3C77A); border-radius: 8px; padding: 7px 11px; font-size: 14px; margin: 6px 0 0; }
textarea[data-grow] { resize: none; overflow: hidden; min-height: 42px; }
details.collapsible > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.collapsible > summary .legendish { font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; }
details.collapsible .collapsible__in { margin-top: 10px; }
.call-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 92vw); z-index: 9; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(0,0,0,.14); padding: 14px 16px; overflow-y: auto; }
.call-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.call-backdrop { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.25); border: 0; }
.formbar__count { border: 0; background: none; font: inherit; padding: 0; cursor: pointer; text-align: left; color: var(--brick); }
.formbar__count b { text-decoration: none; }
.missing-pop { position: absolute; bottom: calc(100% + 8px); left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 10px 14px; max-height: 50vh; overflow-y: auto; }
.missing-pop ul { list-style: none; margin: 0; padding: 0; }
.missing-pop li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.missing-pop li:last-child { border-bottom: 0; }
.formbar { position: fixed; }
.formbar .missing-pop { position: absolute; }
div.flash { background: var(--warn-bg); transition: background .4s; border-radius: 6px; }


/* Stage 5 and the P1009 round */
.proposal-form select, .outcome-row select { max-width: 100%; min-width: 0; }
.grid2 > div, .grid3 > div, .grid4 > div { min-width: 0; }
.fu-list { list-style: none; margin: 6px 0 0; padding: 0; }
.fu-list li { margin: 8px 0; }
.fu-step { font-weight: 600; color: var(--good); font-size: 13.5px; }
.outcome-row { display: grid; gap: 6px; max-width: 420px; }
.outcome-row label { margin-top: 6px; }
.filelist { list-style: none; margin: 0; padding: 0; }
.filelist li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.filelist li:last-child { border-bottom: 0; }
.chip--warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; font-size: 12px; padding: 1px 9px; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.5; width: 100%; }

/* Stage 6: the Services area */
.services-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.service-card { position: relative; }
.service-card legend { display: flex; align-items: center; gap: 8px; }
.svc-x { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; width: 24px; height: 24px; line-height: 1; font-size: 15px; color: var(--muted); cursor: pointer; }
.svc-x:hover { color: var(--brick); border-color: var(--brick); }


/* Step 3: the Before-you-send checklist */
.chip-btn { border: 0; background: none; font: inherit; padding: 0; cursor: pointer; color: inherit; }
.send-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.send-list { list-style: none; margin: 4px 0 12px; padding: 0; }
.send-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.send-list li:last-child { border-bottom: 0; }
#send-gate { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.price-check { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.video-pick { margin: 8px 0 4px; font-size: 14.5px; }
.video-pick select { max-width: 100%; margin-top: 4px; }
section.flash, div.flash { background: var(--warn-bg); transition: background .4s; }

.stop-block { background: #FDECEC; border: 1px solid #E5B4B4; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.stop-label { color: #9E2B25; text-transform: uppercase; letter-spacing: 0.6px; }
.waiting-pill { color: #9E2B25; font-size: 13px; }
