/* Schedora interface. Tokens follow PRODUCT_DESIGN.md; logo artwork is never recolored. */
:root {
  color-scheme: light;
  --canvas: #f6f7f2; --surface: #ffffff; --surface-2: #eef2ea; --ink: #182e28; --muted: #53675e; --line: #d4dfd7; --line-strong: #8fa59a;
  --meet: #225c43; --forms: #6541a5; --flow: #9a461d;
  --meet-tint: #e3efe2; --forms-tint: #eee7fa; --flow-tint: #f8e9df;
  --on-accent: #ffffff; --focus: #225c43;
  --ok: #1f6b3f; --ok-tint: #e1f1e5; --warn: #8a5300; --warn-tint: #fbefd9; --bad: #b3261e; --bad-tint: #fbe5e3;
  --shadow: 0 12px 40px #173b2314; --radius: 14px; --radius-sm: 9px;
  --accent: var(--meet); --accent-tint: var(--meet-tint);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #090a0b; --surface: #141618; --surface-2: #1d2023; --ink: #f5f6f7; --muted: #c1c6cc; --line: #34383d; --line-strong: #737a83;
    --meet: #a6d5a8; --forms: #d4b9ff; --flow: #ffc49e;
    --meet-tint: #202b24; --forms-tint: #292332; --flow-tint: #30241e;
    --on-accent: #13271b; --focus: #a6d5a8;
    --ok: #9fdcb0; --ok-tint: #1d3a28; --warn: #ffd08a; --warn-tint: #43351a; --bad: #ffb4ab; --bad-tint: #4a2420;
    --shadow: 0 12px 40px #0004;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #090a0b; --surface: #141618; --surface-2: #1d2023; --ink: #f5f6f7; --muted: #c1c6cc; --line: #34383d; --line-strong: #737a83;
  --meet: #a6d5a8; --forms: #d4b9ff; --flow: #ffc49e;
  --meet-tint: #202b24; --forms-tint: #292332; --flow-tint: #30241e;
  --on-accent: #13271b; --focus: #a6d5a8;
  --ok: #9fdcb0; --ok-tint: #1d3a28; --warn: #ffd08a; --warn-tint: #43351a; --bad: #ffb4ab; --bad-tint: #4a2420;
  --shadow: 0 12px 40px #0004;
}
body[data-product="forms"] { --accent: var(--forms); --accent-tint: var(--forms-tint); }
body[data-product="flow"] { --accent: var(--flow); --accent-tint: var(--flow-tint); }
body[data-product="suite"] { --accent: var(--meet); --accent-tint: var(--meet-tint); --focus: var(--meet); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 680; letter-spacing: -.02em; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 1em; }
.muted, small { color: var(--muted); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 40px; padding-bottom: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -100px; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm); z-index: 50; }
.skip-link:focus { top: 12px; }

/* Header and brand lockup */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.lockup img { display: block; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.lockup-name { font-size: 20px; font-weight: 720; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.lockup-name small { display: block; font-size: 10px; font-weight: 450; letter-spacing: .02em; margin-top: 3px; }
.lockup-lg img { width: 40px; height: 40px; flex-basis: 40px; }
.lockup-lg .lockup-name { font-size: 24px; }
.site-nav { display: flex; gap: 4px 18px; justify-content: center; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-tools select { width: auto; max-width: 180px; min-height: 40px; padding: 6px 10px; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--meet); border-color: var(--meet); color: var(--on-accent); }
.btn-primary:hover { background: var(--meet); filter: brightness(1.08); }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 8px 4px; text-decoration: underline; min-height: 36px; font-weight: 600; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* Cards and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card-plain { box-shadow: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tag { display: inline-block; background: var(--accent-tint); color: var(--accent); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 650; letter-spacing: .03em; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Forms */
label, .label { display: block; font-weight: 600; margin: 18px 0 6px; }
label:first-child { margin-top: 0; }
.hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 6px; font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); flex: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 10px 0; min-height: 32px; cursor: pointer; }
.choice-list { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-list .check { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; }
.choice-list .check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.required-mark { color: var(--bad); font-weight: 700; }
[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.field-error { display: flex; gap: 6px; color: var(--bad); font-size: 14px; font-weight: 600; margin-top: 6px; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: var(--surface); font-size: 12px; flex: none; }
.inline-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }

/* Status */
.notice { border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; border: 1px solid; }
.notice > :last-child { margin-bottom: 0; }
.notice-info { background: var(--accent-tint); border-color: var(--accent); }
.notice-ok { background: var(--ok-tint); border-color: var(--ok); }
.notice-warn { background: var(--warn-tint); border-color: var(--warn); }
.notice-bad { background: var(--bad-tint); border-color: var(--bad); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); } .badge-warn { color: var(--warn); } .badge-bad { color: var(--bad); } .badge-neutral { color: var(--muted); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 24px 0; }
.loading::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 40; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--canvas); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* Tabs and lists */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0; overflow-x: auto; scrollbar-width: thin; }
.tabs a, .tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; min-height: 44px; font: inherit; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
.tabs [aria-selected="true"], .tabs [aria-current="page"], .tabs [aria-current="step"] { color: var(--ink); border-bottom-color: var(--accent); }
.live-onboarding .tabs { flex-wrap: wrap; overflow-x: visible; }
.live-onboarding .tabs button { padding: 8px 10px; font-size: 14px; text-align: left; }
.list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.list > li { padding: 16px 20px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list-title { font-weight: 650; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
/* main's overflow-wrap: anywhere lets auto-layout columns shrink below a word ("Respon se"). */
td { overflow-wrap: break-word; }
th { font-size: 13px; color: var(--muted); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter > span { display: block; height: 100%; background: var(--accent); }

/* Home */
.hero { padding: 56px 0 8px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--card-accent); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .15s; }
.product-card:hover { transform: translateY(-3px); }
.product-card.meet { --card-accent: var(--meet); } .product-card.forms { --card-accent: var(--forms); } .product-card.flow { --card-accent: var(--flow); }
.product-card p { color: var(--muted); margin: 16px 0 20px; }
.product-card .go { margin-top: auto; font-weight: 650; color: var(--card-accent); }

/* Meet booking */
.booking-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.booking-summary { padding: 28px; border-right: 1px solid var(--line); }
.booking-main { padding: 28px; min-width: 0; }
.summary-facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; color: var(--muted); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar .dow { text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; display: grid; place-items: center; padding: 0; }
.day[data-available] { background: var(--accent-tint); color: var(--accent); font-weight: 700; cursor: pointer; }
.day[data-available]:hover { outline: 2px solid var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.day[disabled] { cursor: default; opacity: .55; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 12px 0; }
.slot { min-height: 44px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: var(--radius-sm); font: inherit; font-weight: 650; cursor: pointer; }
.slot:hover { background: var(--accent-tint); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.slot[aria-pressed="true"]::after { content: " ✓"; }
.confirm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; }
.confirm-facts dt { color: var(--muted); }
.confirm-facts dd { margin: 0; font-weight: 600; }

/* Availability editor */
.week-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.week-row:first-child { border-top: 0; }
.range { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.range input[type="time"] { width: 130px; }
.range input[type="date"] { width: 170px; }

/* Forms builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.builder-preview { position: sticky; top: 16px; }
.field-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; background: var(--surface); }
.field-editor.page-break { background: var(--surface-2); border-style: dashed; }
.field-editor-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.mobile-switch { display: none; }
/* The outline bar and its panel exist for narrow screens; wider ones show the full outline column. */
.outline-bar { display: none; }
.outline-panel { display: contents; }
.outline-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.outline-toggle:hover { background: var(--panel-selected); }
.outline-current { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.outline-text { display: grid; min-width: 0; }
.outline-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-weight: 600; line-height: 1.3; }
.outline-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.outline-toggle-label { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.outline-toggle-label .f-icon { width: 16px; height: 16px; transition: transform .15s; }
@media (max-width: 479px) { .outline-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.outline-toggle[aria-expanded="true"] .outline-toggle-label .f-icon { transform: rotate(180deg); }
.mobile-switch .tab-text { margin-inline-start: 4px; font-size: 13px; font-weight: 600; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 24px; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.public-form { max-width: 680px; margin: 0 auto; }
.conversational { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
.conversational .question-number { color: var(--accent); font-weight: 700; }
.kbd-hint { font-size: 13px; color: var(--muted); }
.embed-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 70px; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.error-summary a { color: inherit; font-weight: 600; }
.rule-list { margin: 8px 0 16px; padding-left: 24px; list-style: decimal outside; }
.rule-list > li::marker { font-weight: 700; color: var(--muted); }
.builder-actions + .hint { margin-top: 8px; }
.submitted-cell { min-width: 150px; }
.submitted-cell .btn { margin-top: 8px; white-space: nowrap; }
.rule-list > li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.response-answers { display: grid; gap: 4px; margin: 16px 0; }
.response-answers dt { color: var(--muted); font-size: 14px; margin-top: 12px; }
.response-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-cell { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 320px; }

/* Flow */
.flow-start-section { margin: 20px 0; }
.flow-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.flow-starter { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.flow-starter strong { font-size: 16px; }
.flow-starter span { font-size: 14px; color: var(--muted); }
.flow-starter[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .flow-starters { grid-template-columns: 1fr; } }
.flow-starter:hover { border-color: var(--line-strong); background: var(--surface-2); }
.flow-summary { margin: 16px 0 20px; border-left: 4px solid var(--accent); }
.flow-summary h2 { font-size: 18px; margin: 0 0 6px; }
.flow-summary p { margin: 4px 0; }
.flow-summary-sentence { font-size: 17px; font-weight: 600; }
.flow-empty { text-align: left; }
.flow-empty-lead { margin-top: 16px; }
.flow-starter-links { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-starter-links a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.flow-starter-links a:hover { border-color: var(--accent); }
.flow-starter-links span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .flow-starter-links { grid-template-columns: 1fr; } }
/* Forms: goal-based starting points */
.form-templates { margin: 16px 0 24px; }
.card > .form-templates:only-child { margin: 0; }
.form-templates-head { align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.form-templates h2 { margin-bottom: 4px; }
.template-grid { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.template-grid--starting { grid-template-columns:repeat(2,minmax(0,1fr)); }
.template-grid--examples { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.template-card { display: flex; flex-direction: column; gap: 8px; min-width:0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow:0 2px 10px rgb(25 45 34 / 3%); transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.template-card:hover { border-color:var(--line-strong); box-shadow:0 8px 24px rgb(25 45 34 / 7%); transform:translateY(-1px); }
.template-card h3 { margin: 0; font-size: 16px; }
.template-card-title { display:flex; align-items:center; gap:9px; min-height:36px; }
.template-card-icon { display:grid; flex:none; width:34px; height:34px; place-items:center; border-radius:10px; background:color-mix(in srgb,var(--forms) 11%,var(--surface)); color:var(--forms); }
.template-card-icon .f-icon { width:18px; height:18px; }
.template-card-icon--import { background:var(--surface-2); color:var(--ink); }
.template-card .template-card-title h3 { font-size:16px; line-height:1.3; }
.template-card .template-actions .f-icon { width:15px; height:15px; margin-inline-end:6px; vertical-align:-3px; }
.template-card p { margin: 0; line-height:1.5; }
.template-card > p:not(.template-meta):not(.template-logic) { color:var(--muted); font-size:13px; }
.template-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top:12px; }
.template-group { margin: 20px 0 0; font-size: 16px; }
.template-group + .muted { margin-top: 3px; }
.template-sketch { display: grid; gap: 5px; padding: 10px; margin-bottom: 2px; border:1px solid color-mix(in srgb,var(--forms) 10%,var(--line)); border-radius:11px; background:color-mix(in srgb,var(--forms) 4%,var(--surface-2)); }
.template-sketch span { display: block; padding: 6px 9px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.template-grid--starting .template-card { min-height:292px; padding:20px; }
.template-grid--starting .template-sketch { min-height:112px; align-content:center; }
.template-grid--starting .template-card-title h3 { font-size:17px; }
.template-grid--starting .template-card > p:not(.template-meta) { max-width:54ch; }
.template-card-import { background:var(--surface); }
.template-import-preview { display:flex; align-items:center; gap:12px; min-height:112px; padding:16px 20px; border:1px solid var(--line); border-radius:11px; background:var(--surface-2); }
.template-import-file { display:grid; width:48px; height:58px; flex:none; place-items:center; border:1px solid color-mix(in srgb,var(--forms) 20%,var(--line)); border-radius:9px; background:var(--surface); color:var(--forms); box-shadow:0 3px 8px rgb(25 45 34 / 5%); }
.template-import-file .f-icon { width:24px; height:24px; }
.template-import-lines { display:grid; flex:1; gap:7px; min-width:0; }
.template-import-lines i { display:block; width:100%; height:6px; border-radius:99px; background:color-mix(in srgb,var(--forms) 16%,var(--line)); }
.template-import-lines i:nth-child(2) { width:76%; }
.template-import-lines i:nth-child(3) { width:54%; }
.template-import-check { display:grid; width:26px; height:26px; flex:none; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--meet) 12%,var(--surface)); color:var(--meet); }
.template-import-check .f-icon { width:16px; height:16px; }
.template-audience { color:var(--forms); font-size:11px; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
@media(max-width:760px) {
 .template-grid--examples { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
 .template-grid--starting,.template-grid--examples { grid-template-columns:minmax(0,1fr); }
 .template-grid--starting .template-card { min-height:0; }
 .template-grid--starting .template-sketch,.template-import-preview { min-height:96px; }
}
dialog.template-preview { max-width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog.template-preview h2 { margin: 0; font-size: 20px; }
@media (max-width: 480px) { dialog.template-preview { padding: 16px; } }
/* Forms: Import JSON */
.template-card-import { background:var(--surface); }
dialog.import-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog.import-dialog h2 { margin: 0; font-size: 20px; }
.import-source { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.segmented label { margin: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .12); color: var(--ink); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.import-drop { margin: 0; display: grid; gap: 4px; justify-items: center; padding: 22px 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; cursor: pointer; }
.import-drop.is-over { border-color: var(--accent); background: var(--accent-tint); }
.import-drop .hint { margin: 0; }
.import-drop:has(+ #import-file:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.import-file-name { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
#import-text { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; }
.import-example { margin: 8px 0 0; font-size: 14px; }
#import-result:empty { display: none; }
#import-result { margin-top: 14px; }
#import-result:focus { outline: none; }
.import-preview { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.import-preview h3 { margin: 4px 0; font-size: 19px; overflow-wrap: anywhere; }
.import-facts { margin: 0; font-weight: 600; }
.import-preview .notice { margin: 12px 0 0; }
.import-preview ul, .import-problems { margin: 6px 0 0; padding-left: 20px; }
.import-problems li { margin: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dialog.import-dialog { padding: 16px; } .segmented { display: flex; } .segmented label { flex: 1; justify-content: center; padding: 0 8px; } }
.template-audience { font-size: 13px; font-weight: 650; color: var(--accent); }
.template-meta { font-size: 14px; color: var(--muted); }
.template-logic { font-size: 14px; color: var(--muted); padding-bottom: 8px; }
/* Enquiry trail: what happened after a response. States are written out, not colour-only. */
.trail-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.trail-filter .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.trail-filter .muted { font-size: 14px; }
/* Responses: search and filters, a summary of what is shown, and a detail panel that leaves the list in place. */
.container.responses-page { max-width: 1440px; }
.responses-head { align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.export-actions { flex-wrap: wrap; gap: 8px; }
.responses-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 16px 0 4px; }
.responses-filters > div { display: grid; gap: 4px; min-width: 0; }
.responses-filters label { margin: 0; font-size: 14px; }
.responses-filters .filter-search { flex: 1 1 260px; }
.responses-filters select { width: auto; max-width: 100%; }
.responses-filters #clear-filters { align-self: flex-end; margin-bottom: 4px; }
.responses-summary { margin: 4px 0 12px; font-weight: 600; }
.responses-layout { display: grid; gap: 16px; align-items: start; }
.responses-layout > #responses { min-width: 0; }
.responses-table tr.is-open > td { background: var(--accent-tint); }
.responses-table tr.is-open > td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.col-verified { background: var(--surface-2); }
.col-note { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.response-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 20px; box-sizing: border-box; }
.response-panel .detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.response-panel .detail-head h2 { margin: 0; font-size: 20px; }
.response-panel .detail-head .btn { flex-shrink: 0; white-space: nowrap; }
.response-panel .detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.response-panel .detail-nav .muted { font-size: 14px; }
.response-panel h3 { margin: 20px 0 4px; font-size: 16px; }
.detail-identity { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 4px 16px 8px; margin-top: 16px; background: var(--surface-2); }
/* Narrow screens: a full-screen sheet over the list. */
.response-panel:modal { width: 100%; max-width: 640px; height: 100%; max-height: 100%; margin: 0 0 0 auto; border-radius: 0; overflow: auto; }
.response-panel::backdrop { background: rgba(20, 16, 40, .45); }
/* Wide screens: a panel beside the list, scrolled on its own. */
@media (min-width: 1200px) {
  .responses-layout.has-detail { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); }
  .responses-layout > .response-panel:not(:modal) { inset: auto; position: sticky; top: 16px; margin: 0; width: auto; max-height: calc(100vh - 32px); overflow: auto; }
}
@media (max-width: 1199px) { .responses-layout > .response-panel:not(:modal) { position: fixed; } }
@media (max-width: 760px) {
  .responses-filters > div:not(.filter-search) { flex: 1 1 140px; }
  .responses-filters select { width: 100%; }
  .responses-head .export-actions { width: 100%; }
}
.attention-note { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bad); }
.trail { margin: 16px 0; }
.trail h3 { font-size: 17px; margin: 0 0 8px; }
.trail-steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.trail-step { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 12px; padding: 8px 0 8px 14px; position: relative; }
.trail-step::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.trail-step[data-state="done"]::before { background: var(--ok); }
.trail-step[data-state="waiting"]::before { background: var(--warn); }
.trail-step[data-state="attention"]::before { background: var(--bad); }
.trail-step p { margin: 2px 0 0; overflow-wrap: anywhere; }
.trail-state { font-size: 13px; font-weight: 700; color: var(--muted); }
.trail-step[data-state="attention"] .trail-state { color: var(--bad); }
.trail-links { font-size: 14px; }
@media (max-width: 560px) { .trail-step { grid-template-columns: 1fr; } }
/* Proposed pricing prototype (interview material, not an offer) */
.proposal-banner { border: 2px solid var(--warn); background: var(--warn-tint); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 24px; }
.proposal-banner p { margin: 4px 0; }
.proposal-label { font-size: 18px; font-weight: 750; color: var(--ink); }
.billing-choice { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; border: 0; padding: 0; margin: 16px 0 0; }
.billing-choice legend { font-weight: 650; margin-bottom: 4px; }
.proposal-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 16px 0 32px; }
.proposal-plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.proposal-plan h2 { margin: 0 0 4px; font-size: 22px; }
.proposal-plan h3 { font-size: 14px; margin: 16px 0 4px; color: var(--muted); text-transform: none; }
.proposal-plan ul { margin: 0; padding-left: 18px; }
.proposal-plan p { margin: 4px 0; }
.proposal-plan.meet { border-top: 4px solid var(--meet); }
.proposal-plan.forms { border-top: 4px solid var(--forms); }
.proposal-plan.flow { border-top: 4px solid var(--flow); }
.proposal-plan.suite { border-top: 4px solid var(--meet); }
.proposal-price { margin-top: 12px !important; }
.proposal-price strong { font-size: 28px; }
.proposal-price-detail { font-size: 15px; font-weight: 600; }
.proposal-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--warn); border: 1px solid var(--warn); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.proposal-section { margin: 32px 0; }
.proposal-section h3 { margin-top: 20px; }
.estimate-form .inline-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.estimate-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 16px 0; }
.estimate-option { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; }
.estimate-option h3 { margin: 0 0 4px; }
.estimate-option ul { margin: 8px 0 0; padding-left: 18px; }
.estimate-over { color: var(--bad); }
/* Tables that become labelled cards on phones, so every column (including the outcome) stays readable. */
@media (max-width: 760px) {
  .stack-on-mobile { border: 0; background: none; overflow: visible; }
  .stack-on-mobile table, .stack-on-mobile tbody, .stack-on-mobile tr, .stack-on-mobile td { display: block; width: 100%; }
  .stack-on-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-on-mobile tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 12px; margin-bottom: 12px; }
  .stack-on-mobile td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding: 6px 0; border: 0; overflow-wrap: anywhere; }
  .stack-on-mobile td::before { content: attr(data-label); color: var(--muted); font-size: 14px; font-weight: 600; }
  .stack-on-mobile td.empty-cell { display: none; }
  .stack-on-mobile td > .badge, .stack-on-mobile td > .btn { justify-self: start; }
}
.flow-steps { display: grid; gap: 0; }
.flow-step { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.flow-connector { width: 2px; height: 24px; background: var(--line-strong); margin-left: 28px; }
.flow-step h3 { display: flex; gap: 10px; align-items: center; }
.step-number { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; }
pre.preview { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; font: 14px/1.5 ui-monospace, Consolas, monospace; margin: 8px 0 0; }

/* Footer and consent */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.footer-links a, .footer-links button { color: var(--muted); font-size: 14px; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; z-index: 30; max-height: 70vh; overflow: auto; }
.cookie-banner h2 { font-size: 18px; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 19px; }

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .builder[data-view="edit"] .builder-preview, .builder[data-view="preview"] .builder-edit { display: none; }
  .mobile-switch { display: flex; }
  .grid-3, .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 8px; padding-bottom: 4px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 2px 14px; }
  .site-nav a { font-size: 14px; min-height: 40px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page { padding-top: 24px; }
  .card, .booking-summary, .booking-main { padding: 20px; }
  .lockup-name { font-size: 18px; }
  .header-tools .theme-label { display: none; }
  .header-tools select { max-width: 120px; }
  .list > li { padding: 14px 16px; }
  .range input[type="time"], .range input[type="date"] { width: 100%; flex: 1 1 120px; }
  .calendar { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.home-connect { margin-top: 40px; }
body[data-embed] .site-header, body[data-embed] .site-footer, body[data-embed] .cookie-banner { display: none; }
/* Embedded: the host page provides the margins, so the form starts at the top of the frame. */
body[data-embed] .page { padding-top: 12px; padding-bottom: 16px; }
body[data-embed] .container { padding-inline: 12px; }
.receipt .ending-message { white-space: pre-line; overflow-wrap: anywhere; }
.ending-fixed { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); }
.ending-fixed .confirm-facts { opacity: .8; }
.inspector-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.ending-routes { margin: 8px 0 12px; padding-inline-start: 18px; font-size: 13px; }
.ending-routes li + li { margin-top: 6px; }
dialog.card { max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
dialog::backdrop { background: #0008; }
.key-input { width: 170px; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.day { width: 100%; max-width: 46px; justify-self: center; }
.conversational .question + .question { margin-top: 0; }

/* ---- Meet platform ---- */
.section-gap { margin-top: 20px; }
.narrow { max-width: 680px; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.kind-card { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; }
.kind-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.kind-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.kind-card input { margin-bottom: 4px; }
.location-label { min-width: 170px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.answers { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0; font-size: 14px; }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.brand-logo { display: block; max-width: 140px; max-height: 56px; object-fit: contain; margin-bottom: 12px; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.event-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; border-top: 4px solid var(--accent); }
.event-card h2 { font-size: 20px; }
.event-card .go { margin-top: auto; color: var(--accent); font-weight: 650; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot .seats { font-size: 11px; font-weight: 500; color: inherit; }
.day-label { min-width: 130px; margin: 0; }
.inline-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--accent); vertical-align: middle; }
.recap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.recap h3, .recap h4 { margin: 12px 0 6px; }
.chat-log { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.chat-message { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.chat-message.user { background: var(--accent-tint); }
.chat-message p { margin: 4px 0 0; white-space: pre-wrap; }

/* Analytics: single-series marks in the accent color; text stays in ink tokens. */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--muted); }
.columns { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line-strong); padding-top: 8px; }
.column { flex: 1 1 0; min-width: 2px; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; }
.column:hover, .hbar:hover { filter: brightness(1.15); }
.axis { font-size: 12px; margin-top: 4px; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 14px; }
.hbar { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar-value { font-variant-numeric: tabular-nums; }
.heatmap { display: grid; grid-template-columns: 40px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; color: var(--muted); }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); min-width: 0; }
.heat-day { align-self: center; }
.heat-hour { text-align: center; }
@media (max-width: 480px) {
  .heatmap { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .hbars li { grid-template-columns: 1fr auto; }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .location-label { min-width: 0; width: 100%; }
}
/* Inline controls in rows keep their natural width instead of stacking full width. */
.row > label:not(.check), .range > label:not(.check) { margin: 0; }
.row > input:not([type="checkbox"]):not([type="radio"]), .row > select, .range > select, .range > input:not([type="checkbox"]):not([type="radio"]):not([type="time"]):not([type="date"]) { width: auto; flex: 1 1 180px; }
.range > .check { margin: 0; }
.google-signin-panel { padding: 24px 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.google-signin-button { background: #fff; color: #1f1f1f; border-color: #747775; min-width: 240px; font-weight: 500; }
.google-signin-panel p { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: 600px; }
.theme-select { max-width: 90px !important; min-width: 76px; font-size: 13px; }
.container.product-landing { max-width: 1600px; padding-inline: clamp(20px, 4vw, 64px); }
.product-landing .landing-hero { grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); padding-block: 52px; }
.product-landing .landing-preview { padding: 36px; transform: none; }
.product-landing .landing-hero h1 { font-size: clamp(36px, 4.2vw, 64px); }
.product-showcase { margin-top: 12px; }
.showcase-layout { display: grid; grid-template-columns: .8fr 1.2fr; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.showcase-layout > aside { padding: 40px; background: var(--accent-tint); }
.showcase-layout > div { padding: 40px; min-width: 0; }
.showcase-layout h3 { font-size: 26px; font-weight: 550; margin: 20px 0; }
.showcase-kicker { color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .05em; }
.showcase-days, .showcase-slots { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.showcase-days .btn { font-size: 12px; padding-inline: 12px; }
.showcase-feedback { font-size: 13px; color: var(--muted); margin-top: 24px; }
.showcase-flow > div { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.showcase-flow > div > div { flex: 1; }
.showcase-flow h3 { font-size: 18px; margin: 4px 0; }
.showcase-flow .tag { margin: 0; font-size: 11px; }
#showcase-form { max-width: 480px; }
#showcase-form .btn { margin-top: 20px; }
@media (max-width: 480px) {
  .showcase-flow > div { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .showcase-flow > div > div { flex: 1 1 120px; }
  .showcase-flow h3 { font-size: 16px; }
  .showcase-flow .tag { margin-left: 38px; }
}
@media (max-width: 800px) {
  .product-landing .landing-hero, .showcase-layout { grid-template-columns: 1fr; }
  .showcase-layout > aside, .showcase-layout > div { padding: 24px; }
  .product-landing .landing-preview { padding: 24px; }
}
.product-header { border-top: 3px solid var(--accent); }
.product-header .header-inner { max-width: 1320px; gap: 20px; min-height: 78px; }
.product-header > .header-inner > .lockup .lockup-name { color: var(--accent); font-size: 24px; }
.product-header > .header-inner > .lockup img { width: 32px; height: 32px; flex-basis: 32px; }
.product-header .site-nav { gap: 18px; }
.product-header .site-nav a { font-size: 13px; }
.product-header .header-tools { gap: 8px; }
.ecosystem-switcher { position: relative; font-size: 12px; }
.ecosystem-switcher summary { display: flex; align-items: center; gap: 7px; cursor: pointer; min-height: 44px; padding: 8px; border-radius: 8px; color: var(--muted); list-style: none; white-space: nowrap; }
.ecosystem-switcher summary::-webkit-details-marker { display: none; }
.ecosystem-switcher summary:hover { background: var(--surface-2); }
.ecosystem-switcher summary > img { width: 18px; height: 18px; object-fit: contain; }
.ecosystem-switcher > nav { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; z-index: 40; box-shadow: var(--shadow); }
.ecosystem-switcher nav > a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.ecosystem-switcher nav > a:hover, .ecosystem-switcher nav > a[aria-current="page"] { background: var(--surface-2); }
.ecosystem-switcher nav .lockup-name { font-size: 17px; color: var(--ink); }
.ecosystem-switcher nav small { display: block; font-size: 11px; padding-left: 38px; }
.ecosystem-switcher nav .lockup-name small { display: none; }
@media (max-width: 1100px) {
  .product-header .header-inner { grid-template-columns: auto 1fr; }
  .product-header .header-tools { justify-content: flex-end; }
  .product-header .site-nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: 8px; justify-content: flex-start; }
}
@media (max-width: 580px) {
  .product-header .header-inner { gap: 6px 12px; padding-top: 10px; }
  .product-header .header-tools { flex-wrap: wrap; }
  .product-header .product-open { display: none; }
  .product-header .header-tools > .btn { font-size: 12px; padding-inline: 8px; }
  .product-header .theme-label { display: none; }
  .product-header .site-nav { gap: 14px; }
  .product-header .site-nav a { font-size: 12px; }
  .ecosystem-switcher summary { font-size: 11px; padding-inline: 2px; }
  .ecosystem-switcher > nav { right: -52px; }
}

/* Individual product introductions share the suite's locked brand tokens. */
.product-landing { padding-bottom: 64px; }
.landing-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding: 64px 0; }
.landing-hero > *, .landing-connected > * { min-width: 0; }
.landing-hero h1 { font-size: clamp(36px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -.035em; margin: 18px 0; }
.landing-eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin: 24px 0 12px; }
.landing-note { font-size: 13px; margin-top: 18px; }
.landing-preview { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 20px; box-shadow: 0 18px 48px #182e2810; transform: rotate(1deg); }
.landing-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.landing-preview h2 { font-size: 24px; }
.landing-example { display: grid; gap: 12px; margin-top: 24px; }
.landing-example > div { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.landing-example > div:first-child { border-color: var(--accent); }
.landing-step { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.landing-section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.landing-section h2 { font-size: clamp(24px, 3vw, 32px); }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.landing-features p, .landing-connected p { color: var(--muted); }
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-left: 24px; margin-top: 28px; }
.landing-steps li { padding-left: 6px; }
.landing-steps li::marker { color: var(--accent); font-weight: 700; }
.landing-connected { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.landing-related { display: grid; gap: 12px; }
.landing-related > a { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.landing-related > a:hover { border-color: var(--accent); }
.landing-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.landing-faq summary { cursor: pointer; min-height: 28px; font-weight: 600; }
.landing-faq details p { max-width: 740px; }
.landing-final { padding: 36px; border-radius: 16px; background: var(--accent-tint); margin-top: 24px; }
@media (max-width: 800px) {
  .landing-hero { grid-template-columns: 1fr; padding: 36px 0; gap: 28px; }
  .landing-preview { transform: none; }
  .landing-features, .landing-steps, .landing-connected { grid-template-columns: 1fr; gap: 16px; }
  .landing-section { padding: 28px 0; }
}
@media (max-width: 480px) {
  .landing-preview, .landing-final { padding: 20px; }
  .landing-hero h1 { font-size: 36px; }
  .landing-related > a { padding: 16px; }
}

/* Schedora Meet video. Media elements are sized by classes (inline styles are blocked by CSP). */
.prejoin { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0d1a14; border-radius: var(--radius-sm); overflow: hidden; }
.video-el { width: 100%; height: 100%; object-fit: cover; display: block; background: #0d1a14; }
.video-el.mirrored { transform: scaleX(-1); }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #eaf3ec; font-size: 28px; font-weight: 650; background: #18291f; }
.video-placeholder[hidden] { display: none; }
.video-toggles { margin-top: 12px; }
.media-state { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.mic-meter { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mic-meter label { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mic-meter meter { flex: 1; height: 12px; min-width: 0; }
.device-settings { margin: 8px 0 12px; }
.device-settings summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Meeting room: a dedicated full-viewport surface. The site header and footer are hidden while a
   meeting is connected; only panels scroll. */
body[data-in-meeting] { overflow: hidden; }
body[data-in-meeting] #site-header, body[data-in-meeting] #site-footer, body[data-in-meeting] .cookie-banner { display: none; }
.video-room { position: fixed; inset: 0; z-index: 30; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #0f1a15; color: #eef4ef; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.video-bar { display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #2a3d33; min-width: 0; }
.video-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.video-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-chip { flex: none; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; border: 1px solid currentColor; color: #b9d8c0; }
.connection-chip[data-state="connected"] { color: #8fe3a5; }
.connection-chip[data-state="reconnecting"], .connection-chip[data-state="connecting"] { color: #ffd38a; }
.connection-chip[data-state="disconnected"] { color: #ffb4a8; }
.room-alerts:empty { display: none; }
.room-alerts { padding: 8px 16px 0; }
.room-alerts .notice { margin: 0; color: var(--ink); }
.room-alerts .notice a { color: inherit; }
.video-stage { min-height: 0; overflow: auto; padding: 12px 16px; display: grid; }
.video-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-rows: max-content; align-content: start; align-self: start; min-height: 0; min-width: 0; }
.video-grid[data-count="1"] { grid-template-columns: minmax(0, min(100%, 960px, calc((100dvh - 200px) * 16 / 9))); justify-content: center; }
.video-tile { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #0d1a14; outline: 3px solid transparent; }
.video-tile.speaking { outline-color: #8fe3a5; }
.video-grid[data-sharing="true"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.video-tile-screen { grid-column: 1 / -1; aspect-ratio: auto; height: clamp(160px, 44dvh, 640px); min-height: 0; }
.video-tile-screen .video-el { object-fit: contain; }
.video-tile .video-placeholder { display: none; }
.video-tile.video-off .video-placeholder { display: grid; }
.video-tile figcaption { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 10px; border-radius: 99px; background: #000a; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-tile.muted figcaption::after { content: " · muted"; }
.video-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #0b140f; border-top: 1px solid #2a3d33; }
.video-room .video-controls .btn, .video-room .video-bar .btn:not(.btn-end) { background: #1d2e25; color: #eef4ef; border-color: #3d5649; }
.video-room .video-controls .btn:hover { background: #26392f; }
.video-room .video-controls .btn.is-off { background: #4a2a22; border-color: #c46b55; }
.video-room .video-controls .btn.is-active { background: #23443a; border-color: #8fe3a5; }
.video-room .video-controls .btn-leave { background: #eef4ef; color: #0f1a15; border-color: #eef4ef; }
.video-room .video-controls .btn-leave:hover { background: #ffffff; }
.btn-end { background: #b42318; border-color: #b42318; color: #fff; }
.btn-end:hover { background: #9b1c12; }
.video-room :focus-visible { outline-color: #ffd38a; }
.room-panel { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 180px); overflow: auto; z-index: 31; color: var(--ink); }
.room-panel[hidden] { display: none; }
.video-room [hidden] { display: none !important; }
.room-panel h2 { margin: 0; font-size: 18px; }
.room-panel .list { margin: 12px 0; }
/* Session card, in-room form panel and host session panel (docs/MEET_SESSION_OFFERS.md) */
.session-card { display: grid; gap: 8px; padding: 10px 16px; background: #13221b; border-top: 1px solid #2a3d33; color: #eef4ef; font-size: 0.9375rem; max-height: 34dvh; overflow: auto; }
.session-card p { margin: 0; }
.session-card a { color: #b9e8c6; }
.session-label { display: inline-block; font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: #b9d8c0; margin-right: 6px; }
.session-note-body { white-space: pre-line; overflow-wrap: anywhere; }
.session-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; justify-content: space-between; }
.session-offer strong { overflow-wrap: anywhere; }
.session-state { color: #ffd38a; }
.session-done { color: #8fe3a5; }
.session-prompt { flex: 1 1 100%; display: grid; gap: 6px; padding: 8px 10px; border: 1px solid #8fe3a5; border-radius: var(--radius-sm); background: #1a3328; }
.video-room .session-card .btn { background: #1d2e25; color: #eef4ef; border-color: #3d5649; }
.video-room .session-card .btn-primary { background: #eef4ef; color: #0f1a15; border-color: #eef4ef; }
.session-form-panel { width: min(520px, calc(100vw - 24px)); top: 64px; bottom: calc(var(--room-bottom, 76px) + 8px); max-height: none; display: flex; flex-direction: column; gap: 8px; }
.session-form-head { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-bottom: 4px; }
.session-form-head h2 { overflow-wrap: anywhere; }
.session-form-hint { margin: 0; }
.session-form-body .public-form { padding: 0; }
.session-panel { width: min(400px, calc(100vw - 24px)); bottom: calc(var(--room-bottom, 76px) + 8px); max-height: calc(100dvh - var(--room-bottom, 76px) - 80px); }
.session-section { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: grid; gap: 6px; }
.session-section h3 { margin: 0; font-size: 1rem; }
.session-subhead { margin: 8px 0 0; font-size: 0.9375rem; }
.session-section textarea, .session-section input, .session-section select { width: 100%; }
.session-modes { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.session-modes legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.session-evidence li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; overflow-wrap: anywhere; }
.session-status[data-status="submitted"] { color: var(--ok); font-weight: 600; }
@media (max-width: 640px) {
  .session-card { padding: 8px 10px; }
  .session-form-panel { top: 52px; left: 8px; right: 8px; width: auto; }
}
.video-state { text-align: left; }
.credit-figure { font-size: 32px; font-weight: 700; margin: 4px 0; }
.list > li.highlight { background: var(--accent-tint); }

/* Meet host dashboard: section header, grouped navigation and booking rows (scoped to .meet-dashboard). */
.meet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.meet-head h1 { margin: 0 0 4px; }
.meet-head .tag { margin-bottom: 12px; }
.meet-lead { margin: 0; color: var(--muted); font-size: 16px; }
.meet-tabs { overflow: visible; flex-wrap: nowrap; gap: 0; margin: 24px 0 20px; }
.meet-tabs a, .tab-more summary { padding-inline: 12px; }
.meet-tabs a[aria-current="page"], .meet-tabs summary[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.meet-tabs a:hover, .meet-tabs summary:hover { color: var(--ink); }
.tab-more { display: none; position: relative; }
.tab-more summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.tab-more summary::-webkit-details-marker { display: none; }
.tab-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tab-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.tab-more ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.tab-more li a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.tab-more li a:hover { background: var(--surface-2); }
.tab-more li a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); }
.booking-row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.booking-row-main { flex: 1 1 320px; min-width: 0; }
.booking-row-side { display: grid; gap: 10px; justify-items: end; align-content: start; }
.booking-when { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.booking-with { font-weight: 500; color: var(--muted); }
.booking-actions { justify-content: flex-end; }
.btn-quiet { border-color: transparent; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-quiet:hover { color: var(--bad); background: var(--surface-2); }
.video-unavailable { text-align: left; }
.editor-subhead { font-size: 18px; margin: 24px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.join-block { margin: 16px 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
.join-block h3 { margin: 0 0 8px; font-size: 18px; }
.join-block .confirm-facts { margin: 8px 0 12px; }
@media (max-width: 1099px) {
  .meet-tabs .tab-secondary { display: none; }
  .meet-tabs .tab-more { display: block; margin-left: auto; }
}
@media (max-width: 719px) {
  .meet-tabs a, .tab-more summary { padding-inline: 8px; font-size: 15px; }
  .meet-head-actions { width: 100%; }
  .meet-head-actions .btn { flex: 1 1 auto; }
  .booking-row-side { justify-items: start; width: 100%; }
  .booking-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .prejoin { grid-template-columns: 1fr; gap: 12px; }
  /* Name and Join first on phones, so joining never depends on font metrics or guidance length;
     the camera and microphone check follows directly below. */
  .prejoin-details { order: -1; }
  .prejoin-page { padding-top: 12px; }
  .prejoin-page .card { padding: 12px; }
  .prejoin-details h1 { font-size: 24px; margin: 4px 0; }
  .prejoin-details .lead { font-size: 15px; margin: 0 0 8px; }
  .prejoin-details .tag { margin-bottom: 4px; }
  .video-toggles .btn { flex: 1 1 40%; }
  .video-bar { padding: 8px 12px; }
  .video-stage { padding: 8px; }
  .video-grid[data-sharing="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-controls { gap: 6px; padding-inline: 8px; }
  .video-room .video-controls .btn { flex: 1 1 30%; min-width: 0; padding-inline: 8px; font-size: 14px; }
}
/* Meet: "Ready to share?" summary in the event editor (saved settings and server checks only) */
.readiness { scroll-margin-top: 88px; }
#section-details, #section-availability, #section-limits, #section-visibility { scroll-margin-top: 88px; }
.readiness .row-between { align-items: center; }
.readiness h2 { margin: 0; }
.readiness-headline { font-weight: 650; margin: 12px 0 16px; }
.readiness-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.readiness-area { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); padding: 12px 16px; background: var(--surface); min-width: 0; }
.readiness-area[data-state="ready"] { border-left-color: var(--ok); }
.readiness-area[data-state="attention"] { border-left-color: var(--warn); }
.readiness-area[data-state="attention"][data-blocking="true"] { border-left-color: var(--bad); }
.readiness-area[data-state="unverified"] { border-left-color: var(--line-strong); border-left-style: dashed; }
.readiness-area > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; min-height: 32px; }
.readiness-area > summary::-webkit-details-marker { display: none; }
.readiness-area > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px 4px; flex: none; }
.readiness-area[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.readiness-area[open] > summary { margin-bottom: 8px; }
.readiness-state { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.readiness-area[data-state="attention"] .readiness-state { color: var(--warn); }
.readiness-area[data-blocking="true"] .readiness-state { color: var(--bad); }
.readiness-area[data-state="ready"] .readiness-state { color: var(--ok); }
.readiness-icon { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; border: 2px solid var(--line-strong); color: var(--muted); }
[data-state="ready"] > .readiness-icon, [data-state="ready"] > summary > .readiness-icon { border-color: var(--ok); color: var(--ok); background: var(--ok-tint); }
[data-state="attention"] > .readiness-icon, [data-state="attention"] > summary > .readiness-icon { border-color: var(--warn); color: var(--warn); background: var(--warn-tint); }
[data-kind="blocker"] > .readiness-icon, [data-blocking="true"] > summary > .readiness-icon { border-color: var(--bad); color: var(--bad); background: var(--bad-tint); }
[data-state="unverified"] > .readiness-icon, [data-state="unverified"] > summary > .readiness-icon { border-style: dashed; }
.readiness-items { list-style: none; margin: 0; padding: 0; }
.readiness-items li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.readiness-items li > div { min-width: 0; }
.readiness-items p { margin: 0; overflow-wrap: anywhere; }
.readiness-items li[data-state="fact"] { color: var(--muted); font-size: 14px; }
.readiness-action { font-size: 14px; }
.readiness-action .btn-link { padding: 4px 0; min-height: 32px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-row input { flex: 1 1 16em; min-width: 0; }
.copy-status:empty { display: none; }
.copy-status { font-weight: 600; margin: 4px 0 0; }
@media (max-width: 760px) { .readiness-areas { grid-template-columns: 1fr; } .readiness-area { padding: 12px; } }
/* Form editor: rounded panels on a white page, under a 56 px top bar. An outline and an inspector run
   the full height beside a toolbar and a framed canvas that looks like the respondent's form. One
   surface shows at a time. The workspace navigation steps aside here; the breadcrumb returns to it. */
body.form-editor { --canvas: #ffffff; --surface: #ffffff; --surface-2: #f7f7f7; --panel: #f7f7f7; --panel-selected: #eeeeee; --frame: #f9f9f9; --frame-line: #ececec; --ink: #1f1f1f; --muted: #636363; --line: #e6e6e6; --line-strong: #b5b5b5; --q-text: #c3dcf8; --q-text-ink: #173f6e; --q-contact: #f6cdd6; --q-contact-ink: #6e1f33; --q-choice: #e0d4f7; --q-choice-ink: #43277f; --q-date: #fbe3ba; --q-date-ink: #6b4205; --q-layout: #e6e6e6; --q-layout-ink: #444444; }
.app-shell.form-editor { padding-left: 0; }
.app-shell.form-editor #app-sidebar, .app-shell.form-editor #app-topbar, .app-shell.form-editor #site-footer { display: none; }
.f-icon { flex: none; display: block; }
/* Whatever keyboard focus scrolls to stays clear of the sticky top bar. */
.builder-page :is(a, button, input, select, textarea, summary, h2) { scroll-margin-top: 64px; }
.app-shell #main .builder-page.container, .builder-page { max-width: none; padding: 0; }
.builder-page .btn { min-height: 32px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.builder-page .btn-small { min-height: 30px; padding: 3px 10px; font-size: 13px; }
.builder-page .btn-icon { width: 32px; padding: 0; }
.builder-page label { font-size: 13px; }
.builder-page .hint { font-size: 13px; }

.builder-topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: stretch; gap: 16px; height: 56px; padding: 0 16px; background: var(--surface); }
.builder-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 14px; }
.builder-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.builder-crumbs a:hover { color: var(--ink); }
.builder-crumb-sep { color: var(--muted); }
#builder-title { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.builder-index { display: flex; }
.builder-index ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.builder-index li { display: flex; }
.builder-index a { display: inline-flex; align-items: center; padding: 0 12px; white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.builder-index a:hover { color: var(--ink); }
.builder-index a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.builder-index a[aria-current] { color: var(--ink); box-shadow: inset 0 3px 0 var(--forms); }
.builder-publish { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
#builder-status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
#builder-status .badge { font-size: 12px; padding: 2px 8px; white-space: nowrap; }

.builder-toolbar { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 8px; background: var(--panel); border-radius: 12px; }
.builder-toolbar .f-icon { width: 18px; height: 18px; }
.toolbar-divider { flex: none; width: 1px; height: 20px; margin: 0 6px; background: var(--line); }
.builder-toolbar .btn-ghost, .preview-devices .btn, .overflow-menu > summary { border-color: transparent; background: none; color: var(--ink); }
.builder-toolbar .btn-ghost:hover, .preview-devices .btn:hover, .overflow-menu > summary:hover { background: var(--panel-selected); }
.add-content { position: relative; }
.add-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; width: min(420px, calc(100vw - 32px)); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.add-menu[hidden] { display: none; }
.add-menu-heading { grid-column: 1 / -1; margin: 8px 0 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.add-menu-heading:first-child { margin-top: 0; }
.add-menu-item { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; background: none; border: 0; border-radius: 8px; color: var(--ink); font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.add-menu-item:hover { background: var(--panel); }
.add-menu { width:min(540px,calc(100vw - 24px)); max-height:min(78vh,calc(100dvh - 24px)); overflow:auto; overscroll-behavior:contain; padding:14px; border-radius:16px; box-shadow:0 18px 48px rgb(18 35 27 / 18%); }
.add-menu-header,.add-menu-groups { grid-column:1/-1; }
.add-menu-header { display:flex; align-items:center; gap:11px; padding:2px 2px 13px; border-bottom:1px solid var(--line); }
.add-menu-header-icon { display:grid; flex:none; width:38px; height:38px; place-items:center; border-radius:11px; background:color-mix(in srgb,var(--forms) 12%,var(--surface)); color:var(--forms); }
.add-menu-header-icon .f-icon { width:20px; height:20px; }
.add-menu-header > span:last-child { display:grid; gap:2px; }
.add-menu-header strong { color:var(--ink); font-size:14px; font-weight:650; }
.add-menu-header small { color:var(--muted); font-size:12px; }
.add-menu-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 16px; padding-top:12px; }
.add-menu-group { min-width:0; }
.add-menu-heading { margin:0 0 5px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.055em; text-transform:uppercase; }
.add-menu-options { display:grid; gap:3px; }
.add-menu-item { width:100%; min-height:54px; padding:6px; gap:9px; border:1px solid transparent; font-size:13px; }
.add-menu-item:hover { border-color:var(--line); background:var(--panel); }
.add-menu-item:focus-visible { outline:2px solid var(--forms); outline-offset:1px; }
.add-menu-icon { display:grid; flex:none; width:36px; height:36px; place-items:center; border-radius:10px; }
.add-menu-icon .f-icon { width:18px; height:18px; }
.add-menu-icon[data-kind="contact"] { background:color-mix(in srgb,var(--q-contact) 68%,white); color:var(--q-contact-ink); }
.add-menu-icon[data-kind="text"] { background:color-mix(in srgb,var(--q-text) 72%,white); color:var(--q-text-ink); }
.add-menu-icon[data-kind="choice"] { background:color-mix(in srgb,var(--q-choice) 72%,white); color:var(--q-choice-ink); }
.add-menu-icon[data-kind="date"] { background:color-mix(in srgb,var(--q-date) 76%,white); color:var(--q-date-ink); }
.add-menu-icon[data-kind="layout"] { background:color-mix(in srgb,var(--forms) 10%,var(--surface)); color:var(--forms); }
.add-menu-item-copy { display:grid; min-width:0; gap:2px; }
.add-menu-item-copy strong { color:var(--ink); font-size:12.5px; font-weight:650; line-height:1.25; }
.add-menu-item-copy small { color:var(--muted); font-size:10.5px; font-weight:400; line-height:1.3; }
@media(max-width:560px) {
  .add-menu { width:min(360px,calc(100vw - 24px)); padding:12px; }
  .add-menu-groups { grid-template-columns:minmax(0,1fr); gap:10px; }
}
.preview-devices { display: flex; gap: 2px; }
.preview-devices [aria-pressed="true"] { background: var(--panel-selected); }
.builder-toolbar .mobile-switch { display: flex; gap: 2px; margin: 0; padding: 0; border: 0; overflow: visible; }
.builder-toolbar .mobile-switch button { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); color: var(--ink); }
.builder-toolbar .mobile-switch button:hover { background: var(--panel-selected); }
.builder-toolbar .mobile-switch [aria-selected="true"] { background: var(--panel-selected); }
.toolbar-end { margin-inline-start: auto; }
.overflow-menu { position: relative; }
.overflow-menu summary { list-style: none; }
.overflow-menu summary::-webkit-details-marker { display: none; }
.overflow-panel { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; display: grid; gap: 4px; width: 248px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.overflow-panel .btn { justify-content: flex-start; }
.overflow-hint { margin: -2px 4px 6px; font-size: 12.5px; }

.builder-page[data-surface="content"] .builder-surface:not(.surface-content), .builder-page[data-surface="settings"] .builder-surface:not(.surface-settings), .builder-page[data-surface="share"] .builder-surface:not(.surface-share), .builder-page[data-surface="workflow"] .builder-surface:not(.surface-workflow) { display: none; }
#builder-notice:not(:empty) { margin: 0 16px 8px; }
.surface-settings, .surface-share { display: grid; gap: 16px; max-width: 880px; margin-inline: auto; padding: 16px 16px 48px; }
.surface-settings .card, .surface-share .card { margin: 0; background: var(--panel); border: 0; border-radius: 12px; box-shadow: none; }
#settings-heading { margin-top: 0; font-size: 18px; }
.form-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
#share-panel, #readiness, #routing, #settings, #questions, #builder-preview { scroll-margin-top: 64px; }

.builder { display: block; }
.builder[data-view="edit"] .builder-preview, .builder[data-view="preview"] .builder-edit { display: none; }
.builder-preview { position: static; max-width: 960px; margin: 16px auto; background: var(--surface); box-shadow: none; }
.builder[data-device="mobile"] #preview { max-width: 375px; margin-inline: auto; padding: 16px 12px; border: 1px solid var(--line-strong); border-radius: 20px; }

.question-sidebar { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.form-mode-picker { position: relative; z-index: 12; min-width: 0; }
.form-mode-current { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; list-style: none; }
.form-mode-current::-webkit-details-marker { display: none; }
.form-mode-current > .f-icon:last-child { width: 15px; height: 15px; color: var(--muted); transition: transform .16s ease; }
.form-mode-picker[open] .form-mode-current > .f-icon:last-child { transform: rotate(180deg); }
.form-mode-current-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--panel-selected); color: var(--forms); }
.form-mode-current-icon .f-icon { width: 16px; height: 16px; }
.form-mode-current-label { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.form-mode-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 80; display: grid; gap: 3px; width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.form-mode-option { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.form-mode-option:hover, .form-mode-option[aria-pressed="true"] { background: var(--panel-selected); }
.form-mode-option-icon { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--panel); color: var(--forms); }
.form-mode-option-icon .f-icon { width: 16px; height: 16px; }
.form-mode-option strong, .form-mode-option small { display: block; }
.form-mode-option strong { font-size: 13px; font-weight: 600; }
.form-mode-option small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.form-mode-guide { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 12px 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.form-mode-guide[hidden] { display: none; }
.form-mode-guide > div:first-child { min-width: 0; }
.form-mode-eyebrow { margin: 0 0 3px; color: var(--forms); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.form-mode-guide h2 { margin: 0; font-size: 15px; font-weight: 650; }
.form-mode-guide p:not(.form-mode-eyebrow) { max-width: 660px; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-mode-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.form-mode-actions .btn { min-height: 34px; font-size: 12px; }
.form-mode-example { display: grid; flex: 0 0 min(230px, 32%); gap: 6px; padding: 11px; border-radius: 10px; background: var(--surface); font-size: 12px; }
.form-mode-example strong { font-size: 11px; }
.form-mode-example span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; }
.form-mode-example i { width: 1px; height: 12px; margin-inline-start: 20px; background: var(--line-strong); }
.quiz-correct-toggle { display: inline-flex; align-items: center; gap: 4px; padding-inline: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.quiz-correct-toggle input { width: 14px; height: 14px; margin: 0; accent-color: var(--forms); }
.quiz-score { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.quiz-score span { font-weight: 600; }
.rail-card { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 16px 8px 8px; background: var(--panel); border-radius: 12px; }
.rail-card-questions { flex: 1 1 auto; }
.rail-card-endings { flex: 0 0 auto; padding-bottom: 12px; }
.rail-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 0 8px 0 12px; }
#questions-heading, .endings-heading { margin: 0; font-size: 14px; font-weight: 500; }
#question-list { flex: 1 1 auto; display: grid; gap: 4px; min-width: 0; min-height: 0; align-content: start; padding: 4px; border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; scrollbar-width: thin; }
#ending-list { display: grid; gap: 4px; min-width: 0; padding-inline: 4px; }
#ending-list:empty { display: none; }
.question-row { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: center; min-height: 48px; border-radius: 8px; cursor: grab; user-select: none; }
.question-row:hover { background: var(--panel-selected); }
.question-row:has([aria-pressed="true"]) { background: var(--panel-selected); box-shadow: inset 2px 0 0 var(--forms); }
.question-grip { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; letter-spacing: -2px; opacity: 0; touch-action: none; }
.question-row:hover .question-grip, .question-row:focus-within .question-grip, .question-row:has([aria-pressed="true"]) .question-grip { opacity: 1; }
@media (hover: none) { .question-grip { opacity: 1; } }
.question-select { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 8px; align-items: center; width: 100%; min-height: 48px; padding: 4px 6px 4px 0; background: none; border: 0; border-radius: 8px; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.3; text-align: start; cursor: inherit; }
.q-badge { display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; width: 48px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--q-layout); color: var(--q-layout-ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-badge:not(:has(.question-row-number)) { justify-content: center; }
.q-badge .f-icon { width: 16px; height: 16px; }
.q-badge[data-kind="text"] { background: var(--q-text); color: var(--q-text-ink); }
.q-badge[data-kind="contact"] { background: var(--q-contact); color: var(--q-contact-ink); }
.q-badge[data-kind="choice"] { background: var(--q-choice); color: var(--q-choice-ink); }
.q-badge[data-kind="date"] { background: var(--q-date); color: var(--q-date-ink); }
.add-menu-item .q-badge { width: 32px; justify-content: center; }
.question-row-label { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.question-row-logic { grid-column: 2; justify-self: start; color: var(--muted); font-size: 11px; font-weight: 600; }
.is-dragging .question-row { cursor: grabbing; }
.question-row.dragging { opacity: .55; }
.question-row.drop-before::before, .question-row.drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 99px; background: var(--forms); }
.question-row.drop-before::before { top: -3px; }
.question-row.drop-after::after { bottom: -3px; }
.question-row.ending-row { grid-template-columns: minmax(0, 1fr); cursor: default; }
.ending-row .question-select { padding-inline-start: 6px; cursor: pointer; }
.rail-add { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.builder-page .btn.rail-add { width: 30px; padding: 0; background: var(--surface); border-color: var(--line); }

/* The canvas: a frame in the respondent's proportions, centred under the toolbar. Its wording scales
   with the frame, so the proportions hold at every width. */
.question-canvas { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 11px; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.field-editor.question-canvas.page-break { background: none; border-style: none; }
.canvas-frame { container-type: inline-size; display: grid; align-content: safe center; width: 100%; aspect-ratio: 16 / 9; max-height: 100%; overflow-y: auto; background: var(--frame); border: 1px solid var(--frame-line); scrollbar-width: none; }
.canvas-body { padding: 20px 14.8cqw 20px 12cqw; }
.canvas-tools { position: absolute; top: 0; right: 11px; display: flex; gap: 2px; }
.canvas-tools .btn { border-color: transparent; background: none; color: var(--muted); }
.canvas-tools .btn:hover:not(:disabled) { background: var(--panel); color: var(--ink); }
.canvas-tools .btn-danger:hover:not(:disabled) { color: var(--bad); }
.builder[data-device="mobile"] .canvas-frame { width: min(415px, 100%); aspect-ratio: 9 / 16; }
/* The narrow frame leaves room beside it, so the tools stop overlapping its top edge. */
.builder[data-device="mobile"] .canvas-tools { flex-direction: column; }
.builder[data-device="mobile"] .canvas-body { padding: 24px 32px; }
.canvas-question-row { display: grid; grid-template-columns: max(19px, 2.8cqw) minmax(0, 1fr); gap: 2px 0; align-items: start; }
.canvas-number { display: grid; place-items: center; width: 15px; height: 15px; margin-top: .55em; border-radius: 3px; background: var(--forms); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.canvas-question, .canvas-description { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; resize: none; field-sizing: content; overflow: hidden; min-height: 0; height: auto; color: var(--ink); font: inherit; }
.canvas-question { font-size: calc(clamp(18px, 2.92cqw, 28px) * var(--t-question-scale, 1)); font-weight: 400; line-height: 1.3; }
.canvas-description { margin-top: 6px; color: var(--muted); font-size: calc(clamp(13px, 1.95cqw, 18px) * var(--t-description-scale, 1)); font-style: italic; line-height: 1.4; overflow-wrap: anywhere; }
.builder[data-device="mobile"] .canvas-question { font-size: calc(22px * var(--t-question-scale, 1)); }
.builder[data-device="mobile"] .canvas-description { font-size: calc(15px * var(--t-description-scale, 1)); }
.canvas-question::placeholder, .canvas-description::placeholder, .canvas-option::placeholder { color: #767676; }
.canvas-question:hover, .canvas-description:hover, .canvas-option:hover { background: #efefef; }
.canvas-answer-area { grid-column: 2; margin-top: 3.2cqw; }
.canvas-answer { padding: 6px 0; border-bottom: 1px solid var(--line-strong); color: #a6a6a6; font-size: calc(clamp(18px, 2.92cqw, 28px) * var(--t-answer-scale, 1)); line-height: 1.3; }
.builder[data-device="mobile"] .canvas-answer { font-size: calc(22px * var(--t-answer-scale, 1)); }
.canvas-media { display: block; max-width: 100%; max-height: 200px; margin: 12px 0 0; border-radius: var(--radius-sm); grid-column: 2; }
.canvas-note { grid-column: 2; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.canvas-options { display: grid; gap: 6px; max-width: 420px; margin: 0; padding: 0; border: 0; }
.canvas-option-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 2px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.canvas-option-row:has(.quiz-correct-toggle) { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; }
.canvas-option-key { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; }
.canvas-option { width: 100%; min-width: 0; min-height: 30px; padding: 2px 4px; border: 0; border-radius: 3px; background: none; color: var(--ink); font: inherit; font-size: 14px; }
.canvas-option-row .btn { border-color: transparent; background: none; }
.canvas-options .btn-link { justify-self: start; min-height: 28px; font-size: 13px; }
.canvas-page-break { margin: 0; padding: 12px; border-block: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; text-align: center; }

.question-settings { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; font-size: 13px; }
.inspector-section { flex: none; padding: 0 16px; background: var(--panel); border-radius: 12px; }
.inspector-section > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.inspector-section > summary::-webkit-details-marker { display: none; }
.inspector-section > summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; margin-inline-end: -6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 16px; font-weight: 400; }
.inspector-section[open] > summary::after { content: "−"; background: none; border-color: transparent; }
.inspector-section[open] { padding-bottom: 12px; }
.inspector-section label { margin: 8px 0 2px; }
.inspector-section select, .inspector-section input:not([type="checkbox"], [type="radio"], [type="file"]), .inspector-section textarea { width: 100%; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.inspector-section .row { flex-wrap: wrap; gap: 4px; }
.inspector-section .logic-sentence { font-size: 12px; padding: 6px 8px; }
.inspector-section .field-media { margin: 0; padding: 0; border: 0; }
.inspector-section .field-advanced { margin-top: 8px; }
.inspector-section .hint { display: block; margin: 4px 0; font-size: 12px; }
.inspector-section input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; }
.inspector-section label.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.inspector-section .btn { background: var(--surface); }
.jump-heading { margin: 12px 0 4px; font-size: 13px; font-weight: 500; }
.jump-rules { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.jump-rule { display: grid; gap: 4px; padding: 8px; background: var(--surface); border-radius: 8px; }
.jump-rule label { margin: 0; }
.choice-rule-hide { margin: 4px 0; padding: 0; border: 0; }
.choice-rule-hide legend { padding: 0; font-size: 13px; }
.choice-rule-conflict, .workflow-note { overflow-wrap: anywhere; }
.choice-rule-conflict { margin: 4px 0; padding: 6px 8px; border-left: 3px solid var(--warn); color: var(--warn); font-size: 12px; }

.public-form.conversational .choice-list { counter-reset: choice; }
.public-form.conversational .choice-list .check { counter-increment: choice; }
.public-form.conversational .choice-list .choice-text::before { content: counter(choice, upper-alpha); display: inline-grid; place-items: center; min-width: 1.5em; margin-inline-end: 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .question.q-enter-forward { animation: question-forward .22s ease-out; }
  .question.q-enter-back { animation: question-back .22s ease-out; }
  @keyframes question-forward { from { opacity: 0; transform: translateY(14px); } }
  @keyframes question-back { from { opacity: 0; transform: translateY(-14px); } }
}
/* Wide enough for three columns: the outline and inspector run full height beside the toolbar and canvas. */
@media (min-width: 901px) {
  .surface-content { display: grid; grid-template-columns: 256px minmax(0, 1fr) 256px; grid-template-rows: 49px minmax(0, 1fr); gap: 8px 16px; height: calc(100dvh - 56px); min-height: 520px; padding: 0 16px 16px; }
  .builder-toolbar { grid-column: 2; grid-row: 1; }
  .surface-content:has(.builder[data-view="preview"]) .builder-toolbar { grid-column: 1 / -1; }
  .builder[data-view="edit"], .builder[data-view="edit"] .builder-edit, .question-workspace, .question-panes { display: contents; }
  .builder[data-view="preview"] { grid-column: 1 / -1; grid-row: 2; min-height: 0; overflow-y: auto; }
  .question-sidebar { grid-column: 1; grid-row: 1 / 3; }
  .question-canvas { grid-column: 2; grid-row: 2; }
  .question-settings { grid-column: 3; grid-row: 1 / 3; }
  /* The optional mode guide is a real grid row. Without an explicit placement, quiz starters
     auto-place it into the outline column and force the canvas row to zero height. */
  .surface-content:has(.form-mode-guide:not([hidden])) { grid-template-rows: 49px auto minmax(0, 1fr); }
  .surface-content:has(.form-mode-guide:not([hidden])) .form-mode-guide { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; }
  .surface-content:has(.form-mode-guide:not([hidden])) .question-sidebar { grid-row: 1 / 4; }
  .surface-content:has(.form-mode-guide:not([hidden])) .question-canvas { grid-row: 3; }
  .surface-content:has(.form-mode-guide:not([hidden])) .question-settings { grid-row: 1 / 4; }
  .surface-content:has(.builder[data-view="preview"]) .form-mode-guide { display: none; }
}
/* Narrower desktops: the outline collapses to badges; names stay for assistive technology. */
@media (min-width: 901px) and (max-width: 1180px) {
  .surface-content { grid-template-columns: 91px minmax(0, 1fr) 256px; }
  .builder-topbar { gap: 8px; }
  .builder-crumbs .f-icon { display: none; }
  .builder-index ul { gap: 0; }
  .builder-index a { padding: 0 8px; }
  #builder-status .badge { padding: 2px 6px; }
  .builder-publish { gap: 6px; }
  .rail-card { padding: 8px 4px; }
  .rail-card-head { justify-content: center; padding: 0; }
  .question-row { grid-template-columns: minmax(0, 1fr); }
  .question-grip { position: absolute; left: 0; top: 0; width: 8px; }
  .question-select { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-inline: 0; }
  .question-sidebar .question-row-label, .question-sidebar .question-row-logic,
  #questions-heading, .endings-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; margin: 0; border: 0; }
  .question-sidebar .rail-card { padding-inline: 4px; }
  .question-sidebar .rail-card-head { justify-content: center; padding-inline: 0; }
  .question-sidebar .q-badge { justify-content: center; }
  .question-sidebar { position: relative; }
  .ending-row .question-select { padding-inline-start: 0; }
  .builder-toolbar { gap: 2px; }
  .toolbar-divider { margin: 0 3px; }
}
@media (max-width: 900px) {
  .builder-topbar { position: static; grid-template-columns: minmax(0, 1fr); height: auto; gap: 4px; padding: 8px 12px; }
  .builder-index a { min-height: 40px; }
  .builder-index a[aria-current] { box-shadow: inset 0 -3px 0 var(--forms); }
  .builder-publish { justify-content: flex-start; flex-wrap: wrap; }
  #builder-status { flex-wrap: wrap; justify-content: flex-start; }
  .builder-index ul { overflow-x: auto; scrollbar-width: thin; }
  .surface-content { display: grid; gap: 8px; padding: 0 12px 16px; }
  .builder-toolbar { flex-wrap: wrap; }
  .builder-edit .question-workspace, .question-panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* The outline folds into a bar that names the selection, so the canvas stays near the top.
     "Outline" opens the full, readable list: names, pages with their questions, and the selection. */
  .question-sidebar { display: block; position: relative; }
  .outline-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; padding: 4px; background: var(--panel); border-radius: 12px; }
  .question-sidebar:not(.outline-open) .outline-panel { display: none; }
  .outline-panel { display: grid; gap: 8px; margin-top: 8px; max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: var(--panel); border-radius: 12px; scrollbar-width: thin; }
  .outline-panel .rail-card { padding: 0; background: none; }
  .outline-panel .rail-card-head { padding: 4px 4px 0; min-height: 0; }
  .outline-panel #question-list { padding: 0; border: 0; overflow: visible; }
  .question-sidebar .question-grip { display: none; }
  .question-sidebar .question-row { grid-template-columns: minmax(0, 1fr); }
  .question-canvas { display: block; padding: 40px 0 0; }
  .canvas-frame { aspect-ratio: auto; min-height: 220px; }
  .canvas-tools { right: 0; }
  .canvas-body { padding: 24px 16px; }
  .canvas-question-row { grid-template-columns: 24px minmax(0, 1fr); }
  .canvas-question { font-size: calc(20px * var(--t-question-scale, 1)); }
  .canvas-answer { font-size: calc(20px * var(--t-answer-scale, 1)); }
  .canvas-description { font-size: calc(15px * var(--t-description-scale, 1)); }
}
@media (max-width: 760px) { .form-details { grid-template-columns: minmax(0, 1fr); } }
/* Fingers need the full target size on phones. */
@media (max-width: 640px) {
  .builder-publish { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  #builder-status { flex: 1 0 100%; justify-content: flex-start; }
  .builder-status-text { white-space: normal; }
  .builder-publish #save, .builder-publish #publish { min-height: 40px; padding-inline: 12px; }
  .builder-toolbar .mobile-switch { margin-inline-start: auto; }
  .builder-toolbar .mobile-switch button { width: auto; padding: 0 10px; }
}
@media (max-width: 640px) { .tool-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .builder-toolbar .btn:has(.tool-text) { width: 44px; padding: 0; } .preview-devices, .toolbar-divider { display: none; } .builder-page .btn, .builder-page .btn-small, .builder-index a, .question-select, .add-menu-item { min-height: 44px; } .builder-page .btn-icon, .builder-page .btn.rail-add { width: 44px; } .builder-toolbar .mobile-switch button { min-width: 44px; min-height: 44px; } }
/* Multi-question pages: the outline's page row and its indented questions, the page on the canvas, and the respondent's screen. */
.question-row.is-member { margin-inline-start: 14px; }
.question-toggle { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -12px; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.question-toggle:hover { background: var(--line); color: var(--ink); }
.question-toggle[aria-expanded="false"] .f-icon { transform: rotate(-90deg); }
.question-row.is-page .question-select { padding-inline-end: 30px; }
.canvas-frame:has(.canvas-page) { align-content: start; }
.canvas-page { padding-block: 3cqw; }
.canvas-member { position: relative; margin: 2.6cqw 0 0 max(19px, 2.8cqw); }
.canvas-member.is-selected::before { content: ""; position: absolute; inset: 0 auto 0 -8px; width: 2px; border-radius: 2px; background: var(--forms); }
.canvas-member-head { display: flex; gap: 4px; align-items: start; }
@supports (field-sizing: content) { .canvas-member-head .canvas-member-label { flex: 0 1 auto; width: auto; min-width: 2ch; max-width: 100%; } }
.canvas-member-label { display: block; flex: 1; width: 100%; min-height: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; resize: none; field-sizing: content; overflow: hidden; color: var(--ink); font: inherit; font-size: calc(clamp(13px, 2.05cqw, 16px) * var(--t-question-scale, 1)); line-height: 1.4; }
.canvas-member-label:hover { background: #efefef; }
.canvas-member .canvas-answer { margin-top: 2px; }
.canvas-page-button { margin-inline-start: max(19px, 2.8cqw); }
[data-themed] textarea.canvas-member-label { color: var(--t-question); }
[data-themed] .canvas-member-label:hover { background: color-mix(in srgb, var(--t-answer) 12%, transparent); }
.inspector-note { padding-block: 8px; }
.form-page-head { margin-bottom: 16px; }
.form-page-title { margin: 0 0 4px; }
.form-page-help { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .form-page-head.q-enter-forward { animation: question-forward .22s ease-out; }
  .form-page-head.q-enter-back { animation: question-back .22s ease-out; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .question-row.is-member { margin-inline-start: 0; }
  .question-toggle { top: auto; right: 50%; bottom: -6px; margin: 0 -12px 0 0; width: 24px; height: 14px; }
  .question-row.is-page { margin-block-end: 8px; }
  .question-row.is-page .question-select { padding-inline-end: 0; }
}
@media (max-width: 900px) {
  .question-row.is-member { margin-inline-start: 16px; border-inline-start: 2px solid var(--line); border-radius: 0 8px 8px 0; }
  .question-toggle { width: 44px; height: 44px; margin-top: -22px; right: 0; }
}
/* Workflow: the map of jumps, with the rules drawn beside the list and the same editor as the inspector. */
.surface-workflow { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; padding: 0 16px 16px; }
.workflow-help { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workflow-help > div { display: grid; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.workflow-help strong { font-size: 13px; font-weight: 650; }
.workflow-help span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.workflow-map, .workflow-editor, .url-params { padding: 16px; background: var(--panel); border-radius: 12px; }
.url-params { grid-column: 1 / -1; }
.url-params h2 { margin: 0; font-size: 16px; font-weight: 500; }
.url-param-list { display: grid; gap: 4px; margin: 8px 0; padding: 0; list-style: none; }
.url-param-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px; background: var(--surface); border-radius: 8px; }
.url-param-row code { overflow-wrap: anywhere; }
.url-param-row .btn { margin-inline-start: auto; }
.url-param-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.url-param-add > div { flex: 1 1 200px; min-width: 0; }
.url-param-add input { width: 100%; }
.preview-params { display: grid; gap: 4px; margin: 8px 0; padding: 8px; background: var(--surface); border-radius: 8px; }
.preview-params label { margin: 0; overflow-wrap: anywhere; }
.preview-params input { width: 100%; }
.workflow-map h2, .workflow-editor h3 { margin: 0; font-size: 16px; font-weight: 500; }
.workflow-canvas { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; margin-top: 8px; }
.workflow-nodes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.workflow-node { min-width: 0; padding: 4px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.workflow-node.is-member { margin-inline-start: 24px; }
.workflow-node.is-unreached { border-style: dashed; border-color: #8a4b00; }
.workflow-select { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 2px 4px; background: none; border: 0; border-radius: 6px; color: var(--ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; overflow-wrap: anywhere; }
.workflow-select[aria-pressed="true"] { background: var(--panel-selected); box-shadow: inset 2px 0 0 var(--forms); }
.workflow-end { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 4px; font-size: 14px; overflow-wrap: anywhere; }
.workflow-rules { margin: 2px 0 4px; padding-inline-start: 60px; color: var(--muted); font-size: 12px; list-style: none; }
.workflow-note { margin: 0 0 4px; padding-inline-start: 60px; color: var(--warn); font-size: 12px; }
.workflow-arcs { grid-column: 2; grid-row: 1; pointer-events: none; }
.workflow-arc { fill: none; stroke: var(--forms); stroke-width: 1.5; stroke-dasharray: 4 3; }
.workflow-arc.is-always { stroke-dasharray: none; }
.workflow-editor .jump-editor { margin-top: 4px; }
.workflow-editor select, .workflow-editor input { width: 100%; min-height: 32px; padding: 4px 8px; font-size: 13px; background: var(--surface); }
.workflow-editor .btn { background: var(--surface); }
.workflow-editor .row { flex-wrap: wrap; gap: 4px; }
.workflow-editor .logic-sentence { font-size: 12px; padding: 6px 8px; }
.url-params h2 .muted { font-size: 12px; font-weight: 400; }
@media (max-width: 900px) {
  .surface-workflow { grid-template-columns: minmax(0, 1fr); padding: 0 12px 16px; }
  .workflow-help { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Too narrow for arcs; every jump is written under its question. */
  .workflow-canvas { grid-template-columns: minmax(0, 1fr); }
  .workflow-arcs { display: none; }
  .workflow-rules, .workflow-note { padding-inline-start: 4px; }
  .workflow-node.is-member { margin-inline-start: 12px; }
}
@media (max-width: 560px) { .workflow-help { grid-template-columns: minmax(0, 1fr); gap: 6px; } .workflow-help > div { padding: 10px 12px; } }
/* Form themes. A themed element redefines the design tokens its contents already use, so the renderer,
   the canvas and the preview all follow one set of values. Colours arrive only through checked custom properties. */
[data-themed] { --ink: var(--t-answer); --muted: var(--t-answer); --accent: var(--t-button); --on-accent: var(--t-button-text); --forms: var(--t-button); --surface: transparent; --surface-2: color-mix(in srgb, var(--t-answer) 12%, transparent); --line: color-mix(in srgb, var(--t-answer) 30%, transparent); --line-strong: color-mix(in srgb, var(--t-answer) 55%, transparent); background: var(--t-background); color: var(--t-answer); font-family: var(--t-font); }
[data-themed] :is(input, textarea, select, button) { font-family: inherit; }
[data-themed] :is(h1, h2, legend, .q-label, .canvas-question) { color: var(--t-question); }


[data-themed] .canvas-answer { color: var(--t-answer); opacity: .7; border-bottom-color: var(--t-answer); }
[data-themed] .canvas-question::placeholder, [data-themed] .canvas-description::placeholder { color: var(--t-answer); opacity: .8; }
[data-themed] .canvas-question:hover, [data-themed] .canvas-description:hover, [data-themed] .canvas-option:hover { background: color-mix(in srgb, var(--t-answer) 12%, transparent); }
[data-themed] .canvas-number { background: var(--t-button); color: var(--t-button-text); }
[data-themed] :is(input:not([type="radio"], [type="checkbox"]), textarea, select) { background: transparent; color: var(--t-answer); border-color: var(--line-strong); }
/* After the generic field rule, and as specific, so in-place wording keeps its own colours. */
[data-themed] textarea.canvas-question { color: var(--t-question); }
[data-themed] textarea.canvas-description { color: var(--t-answer); opacity: .85; }
[data-themed] .btn { background: transparent; color: var(--t-answer); border-color: var(--line-strong); }
[data-themed] .btn-primary, [data-themed] .btn-primary:hover { background: var(--t-button); border-color: var(--t-button); color: var(--t-button-text); }
[data-themed] :is(input[type="radio"], input[type="checkbox"]) { accent-color: var(--t-button); }
[data-themed] .progress > span { background: var(--t-button); }
/* Messages keep their own fixed colours, so a theme can never make an error unreadable. */
[data-themed] .field-error { padding: 4px 8px; border-radius: 6px; background: #ffffff; color: #b42318; }
[data-themed] .field-error::before { background: #b42318; color: #ffffff; }
[data-themed] .notice { --ink: #1f1f1f; --muted: #555555; color: #1f1f1f; background: #ffffff; }
.canvas-button { display: inline-block; margin-top: 2.4cqw; padding: 6px 16px; border-radius: 6px; background: var(--forms); color: #ffffff; font-size: 14px; font-weight: 600; }
[data-themed] .canvas-button { background: var(--t-button); color: var(--t-button-text); }
/* A themed page reaches the footer, and the required mark stays readable on any background. */
.form-page[data-themed] { min-height: calc(100dvh - 180px); }
[data-themed] .required-mark { color: var(--t-question); }
.form-page[data-themed] .public-form-card { background: transparent; border-color: transparent; box-shadow: none; }
.builder-preview #preview[data-themed] { padding: 16px; border-radius: 8px; }

.design-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; padding: 12px 16px 16px; background: var(--panel); border-radius: 12px; overflow-y: auto; scrollbar-width: thin; font-size: 13px; }
.design-panel[hidden] { display: none; }
.design-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.design-panel h2, .design-panel h3 { margin: 0; font-size: 16px; font-weight: 500; }
.design-current { margin: 0; }
.design-tabs { display: flex; gap: 4px; padding: 2px; background: var(--panel-selected); border-radius: 8px; }
.design-tabs button { flex: 1; min-height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
.design-tabs [aria-selected="true"] { background: var(--surface); color: var(--ink); }
.theme-create { width: 100%; margin: 8px 0; }
.theme-grid { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.theme-card { display: grid; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.theme-card-name { margin: 0; font-weight: 500; }
.theme-card-state { color: var(--muted); font-size: 12px; font-weight: 400; }
.theme-card-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.theme-mini { display: grid; justify-items: start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.theme-mini-question { color: var(--t-question); font-size: 14px; }
.theme-mini-answer { color: var(--t-answer); font-size: 12px; }
.theme-mini-button { margin-top: 4px; padding: 1px 10px; border-radius: 4px; background: var(--t-button); color: var(--t-button-text); font-size: 11px; font-weight: 600; }
.theme-editor { display: grid; gap: 4px; }
.theme-editor label { margin: 8px 0 2px; }
.theme-editor input:not([type="color"]), .theme-editor select { width: 100%; min-height: 32px; padding: 4px 8px; font-size: 13px; background: var(--surface); }
.theme-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.theme-color input { display: block; width: 100%; height: 32px; padding: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.theme-warning { color: #8a4b00; }
@media (min-width: 901px) {
  .design-panel { grid-column: 3; grid-row: 1 / 3; }
  .surface-content[data-design="open"] .question-settings { display: none; }
  .surface-content[data-design="open"] .builder[data-view="preview"], .surface-content[data-design="open"]:has(.builder[data-view="preview"]) .builder-toolbar { grid-column: 1 / 3; }
}
@media (max-width: 900px) { .design-panel { order: 1; } .surface-content .builder-toolbar { order: 0; } .surface-content .builder { order: 2; } }
@media (max-width: 700px) { .form-mode-guide { align-items: stretch; flex-direction: column; gap: 10px; margin-inline: 8px; padding: 12px; } .form-mode-example { display: none; } .form-mode-guide > .btn { align-self: flex-start; } }
/* Forms: question media, picture choices and click-to-load video. Fixed frames, so loading never shifts the page. */
.q-media { margin: 0 0 12px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.q-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.q-media-failed { padding: 12px; color: var(--muted); font-size: 0.875rem; text-align: center; overflow-wrap: anywhere; }
.q-video { margin: 0 0 12px; }
.q-video-placeholder, .q-video-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
/* The ratio is a minimum: on narrow screens the explanation grows the box instead of being clipped. */
.q-video-placeholder { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 16px; background: var(--surface-2); border: 1px dashed var(--line-strong); overflow-wrap: anywhere; }
.q-video-placeholder p { margin: 0; }
.q-video-placeholder:has(iframe) { display: block; padding: 0; border: 0; }
.q-video-frame { display: block; height: auto; border: 0; }
.q-video-placeholder .q-video-frame { height: 100%; }
.picture-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; }
.choice-list .picture-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px; }
.picture-choice img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.picture-choice .choice-text { overflow-wrap: anywhere; }
.picture-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-media { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.field-media > .label { margin: 0; }
.media-edit { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; align-items: start; }
.media-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.option-thumb { width: 44px; height: 33px; object-fit: contain; background: var(--surface-2); border-radius: 4px; }
.file-button { position: relative; cursor: pointer; }
.file-button:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .media-edit { grid-template-columns: 1fr; } .media-thumb { max-width: 12rem; } }
/* Forms: plain-language logic and the per-question advanced settings */
.logic-sentence { margin: 8px 0 4px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; overflow-wrap: anywhere; }
.rule-list .logic-sentence { flex-basis: 100%; }
.field-advanced { margin: 8px 0; }
.field-advanced > summary { cursor: pointer; min-height: 32px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.field-advanced .key-input { max-width: 22em; }
/* Forms: the respondent link, kept apart from the editor, preview and readiness summary */
.share-panel { margin: 16px 0; border-color: var(--accent); }
.share-panel h2 { margin-top: 0; }
.share-panel #share-link { font-weight: 600; }
.share-panel .share-row + .copy-status + .share-row, .share-panel .copy-status + .notice + .share-row { margin-top: 8px; }
.share-panel .share-embed label, .readiness-area > label { margin-top: 8px; }
.empty .share-row { max-width: 560px; margin: 8px auto 0; }
.share-embed { margin: 12px 0 0; }
.share-embed > summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.share-embed .embed-code { margin-top: 4px; }
/* Enquiries: one list across Meet, Forms and Flow */
.enquiry-controls { flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.enquiry-controls .trail-filter { align-items: center; gap: 6px; flex-wrap: wrap; }
.enquiry-list .enquiry { display: block; }
.enquiry-head { display: flex; gap: 12px; align-items: flex-start; }
.enquiry-main { flex: 1; min-width: 0; }
.enquiry-main .list-title { overflow-wrap: anywhere; }
.enquiry-state { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.enquiry[data-state="attention"] .enquiry-state { color: var(--bad); }
.enquiry[data-state="waiting"] .enquiry-state { color: var(--warn); }
.enquiry[data-state="done"] .enquiry-state { color: var(--ok); }
.enquiry[data-state="done"] > .enquiry-head > .readiness-icon { border-color: var(--ok); color: var(--ok); background: var(--ok-tint); }
.enquiry[data-state="attention"] > .enquiry-head > .readiness-icon { border-color: var(--bad); color: var(--bad); background: var(--bad-tint); }
.enquiry[data-state="waiting"] > .enquiry-head > .readiness-icon { border-color: var(--warn); color: var(--warn); background: var(--warn-tint); }
.enquiry[data-state="unknown"] > .enquiry-head > .readiness-icon { border-style: dashed; }
.enquiry-detail { margin: 8px 0 0 34px; }
.enquiry-detail > summary { cursor: pointer; font-weight: 650; min-height: 32px; }
@media (max-width: 560px) { .enquiry-head { flex-wrap: wrap; } .enquiry-state { flex-basis: 100%; margin-left: 34px; } .enquiry-detail { margin-left: 0; } }

/* ---- Form typography (docs/FORMS.md, "Typography") ----
   One scale for the published form, the builder's Preview, templates and embeds. Sizes follow the width
   the form is given, through a container query, so the phone-sized Preview matches a phone exactly.
   A theme's size steps multiply these through --t-question-scale, --t-description-scale and --t-answer-scale. */
.form-scope { container-type: inline-size; }
.public-form {
  --f-title: clamp(28px, 5.2cqi, 40px);
  --f-intro: 17px;
  --f-page: 24px;
  --f-question: 18px;
  --f-description: 15px;
  --f-answer: 16px;
  --f-choice: 16px;
  --f-button: 16px;
  --f-gap: 32px;
  --f-fold: 6;
  --q-scale: var(--t-question-scale, 1);
  --d-scale: var(--t-description-scale, 1);
  --a-scale: var(--t-answer-scale, 1);
}
/* One question at a time: a larger question, a description that reads as its companion, and answers
   big enough to feel like the point of the screen, without pushing the button out of view. */
.public-form.conversational {
  --f-question: clamp(22px, 3.9cqi, 30px);
  --f-description: clamp(15px, 2.4cqi, 18px);
  --f-answer: clamp(18px, 2.9cqi, 22px);
  --f-choice: clamp(16px, 2.6cqi, 19px);
  --f-button: 17px;
  --f-fold: 4;
}
.public-form h1 { margin: 0 0 12px; font-size: var(--f-title); font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.public-form .form-description { margin: 0 0 20px; max-width: 65ch; color: var(--muted); font-size: calc(var(--f-intro) * var(--d-scale)); line-height: 1.55; }
.public-form .form-page-title { font-size: calc(var(--f-page) * var(--q-scale)); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.public-form .q-label { display: block; margin: 0 0 4px; font-size: calc(var(--f-question) * var(--q-scale)); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.public-form legend.q-label { padding: 0; }
.public-form.conversational .q-label { margin-bottom: 8px; line-height: 1.25; }
.public-form :is(.q-help, .form-page-help) { display: block; margin: 0 0 10px; max-width: 68ch; color: var(--muted); font-size: calc(var(--f-description) * var(--d-scale)); font-weight: 400; line-height: 1.55; }
/* Descriptions keep the author's line breaks, and long words or links wrap instead of widening the page. */
.public-form :is(.form-description, .form-page-help, .q-help) { white-space: pre-line; overflow-wrap: anywhere; }
.public-form :is(input:not([type="radio"], [type="checkbox"]), textarea, select) { font-size: calc(var(--f-answer) * var(--a-scale)); }
.public-form .choice-text { font-size: calc(var(--f-choice) * var(--a-scale)); font-weight: 400; }
.public-form .actions .btn { font-size: var(--f-button); }
.public-form .question + .question { margin-top: var(--f-gap); }
.public-form.conversational .question + .question { margin-top: 0; }
.public-form .is-folded { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--f-fold); line-clamp: var(--f-fold); overflow: hidden; }
.public-form .desc-toggle { display: inline-block; margin: -4px 0 12px; font-size: 14px; }
@container (max-width: 560px) {
  .public-form { --f-intro: 16px; --f-page: 21px; --f-question: 17px; --f-gap: 26px; --f-fold: 5; }
  .public-form.conversational { --f-fold: 4; }
  /* Below 16px, phones zoom into a field when it is focused. */
  .public-form :is(input:not([type="radio"], [type="checkbox"]), textarea, select) { font-size: max(16px, calc(var(--f-answer) * var(--a-scale))); }
}

/* Character counts under descriptions: always shown in settings, and on the canvas while typing or near the limit. */
.char-count { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
.canvas-question-row .char-count:not(.is-near) { display: none; }
.canvas-question-row .canvas-description:focus + .char-count { display: block; }
.char-count.is-near { color: var(--warn); }
.design-typography { display: grid; gap: 4px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.design-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 2px; }
.design-section-head h3, .design-themes > h3 { margin: 0; font-size: 15px; font-weight: 650; }
.design-themes { display: grid; gap: 8px; padding-top: 12px; }
.design-themes .hint { margin: 0; }
.design-typography label, .theme-typography label { margin: 6px 0 2px; }
.design-typography select { width: 100%; min-height: 32px; padding: 4px 8px; font-size: 13px; background: var(--surface); }
.theme-typography { display: grid; gap: 2px; }
.theme-group-heading { margin: 8px 0 0; font-weight: 600; }
/* The default style with the author's own font: typography only, so colours and dark mode are untouched. */
[data-typography] { font-family: var(--t-font); }
[data-typography] :is(input, textarea, select, button) { font-family: inherit; }
/* Forms: Share → Build prefilled link */
.share-prefill { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-prefill h3 { margin: 0 0 4px; font-size: 16px; }
dialog.prefill-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog.prefill-dialog h2 { margin: 0; font-size: 20px; }
.prefill-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.prefill-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.prefill-row.is-blocked { background: var(--surface-2); }
.prefill-head { display: grid; gap: 4px; min-width: 0; }
.prefill-head > .muted { font-size: 13px; overflow-wrap: anywhere; }
.prefill-label { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.prefill-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.prefill-key code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.prefill-reason { margin: 6px 0 0; }
.prefill-value { margin-top: 8px; }
.prefill-value input:not([type=checkbox]), .prefill-value select { width: 100%; max-width: 420px; }
.prefill-value .field-error[hidden] { display: none; }
.prefill-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.prefill-choices .check { margin: 4px 0; font-weight: 500; }
.prefill-output { position: sticky; bottom: -1px; padding: 12px 0 4px; background: var(--surface); border-top: 1px solid var(--line); }
#prefill-link { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.prefill-preview { margin-top: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.prefill-preview h3 { margin: 0 0 4px; font-size: 16px; }
@media (max-width: 480px) { dialog.prefill-dialog { padding: 16px; } .prefill-output { position: static; } }
/* Forms: respondent sign-in */
.respondent-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 auto 10px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.respondent-bar strong { color: var(--ink); }
.access-card { margin-top: 16px; }
.access-card fieldset { border: 0; padding: 0; margin: 8px 0; }
.access-card .check:has(input:disabled) { opacity: .6; cursor: not-allowed; }
/* Forms: workspace list */
.forms-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 8px 0 12px; }
.forms-search { flex: 1 1 260px; max-width: 420px; }
.forms-search input { width: 100%; }
.forms-filter { margin: 0; flex-wrap: wrap; }
.forms-filter .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
/* The list: aligned columns on wide screens; each form becomes a compact card on phones. */
.forms-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.forms-table th, .forms-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.forms-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.forms-table tbody tr:last-child > * { border-bottom: 0; }
.forms-table tbody tr:hover { background: var(--surface-2); }
.forms-table .form-cell-title { font-weight: 400; width: 50%; }
.form-row-title { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.form-row-title:hover { text-decoration: underline; }
.form-row-note { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.form-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.form-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.form-status[data-state="live"] { color: var(--ok); }
.form-status[data-state="live"]::before { background: var(--ok); }
.form-row-pending { display: block; margin-top: 2px; color: var(--warn); font-size: 13px; font-weight: 600; }
.form-cell-responses, .form-cell-updated { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.form-row-responses { color: var(--ink); font-weight: 600; }
@media (min-width: 761px) { .forms-table .responses-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.forms-table .responses-word { font-weight: 400; }
.form-cell-updated { color: var(--muted); }
.form-cell-actions { width: 1%; text-align: right; }
.form-cell-actions .overflow-panel { width: 230px; right: 0; }
@media (max-width: 760px) {
  .forms-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .forms-table, .forms-table tbody { display: block; }
  .forms-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .forms-table tbody tr:last-child { border-bottom: 0; }
  .forms-table th, .forms-table td { display: block; padding: 0; border: 0; width: auto; }
  .forms-table .form-cell-title { flex: 1 1 calc(100% - 60px); order: 1; }
  .forms-table .form-cell-actions { order: 2; align-self: start; }
  .forms-table .form-cell-status, .forms-table .form-cell-responses, .forms-table .form-cell-updated { order: 3; font-size: 13px; white-space: nowrap; }
  .forms-table .form-cell-updated::before { content: "Updated "; }
  .forms-table .form-row-pending { display: inline; margin-inline-start: 6px; }
}
#toolbar-preview { gap: 6px; }
/* The builder's one status line: quiet, and only when there is something to act on; failures stand out. */
#builder-status:empty { display: none; }
.builder-status-text { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.builder-status-text[data-tone="pending"] { color: var(--warn); }
.builder-status-text[data-tone="pending"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.builder-status-text[data-tone="bad"] { padding: 4px 10px; border-radius: 99px; background: var(--bad-tint); color: var(--bad); font-weight: 650; }
@media (max-width: 480px) { .forms-filter { display: flex; width: 100%; } .forms-filter label { flex: 1; justify-content: center; padding: 0 6px; font-size: 13px; } }
/* Every builder section fits a phone without hiding Responses off the edge. */
@media (max-width: 480px) { .builder-index ul { gap: 0; justify-content: space-between; } .builder-index a { padding: 0 6px; font-size: 13px; } .builder-index .tab-count { display: none; } }
@media (max-width: 360px) { .builder-index a { padding: 0 4px; font-size: 12px; } }
/* Plans table: fits a phone without sideways scrolling. */
.plan-table th, .plan-table td { white-space: normal; }
.plan-table td { font-variant-numeric: tabular-nums; }
.plan-word.visually-hidden-narrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  .plan-table { min-width: 0; table-layout: fixed; width: 100%; }
  .plan-table th, .plan-table td { padding: 10px 6px; font-size: 14px; overflow-wrap: anywhere; }
  .plan-table th:first-child { width: 26%; }
  .plan-table td:last-child, .plan-table th:last-child { width: 26%; }
  .plan-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Plans and billing: product cards first, with a quiet feature comparison beneath. */
.plans-page { box-sizing: border-box; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px); }
.plans-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 18px 0 32px; }
.plans-hero h1 { max-width: 850px; margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.035em; }
.plans-hero .lead { max-width: 690px; margin: 16px 0 0; font-size: 18px; }
.plans-period { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 650; }
.plans-billing-control { display: grid; flex: 0 0 auto; justify-items: end; gap: 7px; }
.plans-term-switch { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 1px 2px rgb(22 48 34 / 4%); }
.plans-term-switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.plans-term-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(22 48 34 / 12%); }
.plans-term-switch button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }
.plans-saving-note { color: var(--meet); font-size: 12px; font-weight: 700; }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin: 0 0 48px; }
.plans-card { --plan-accent: var(--meet); display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--plan-accent); border-radius: 18px; background: var(--surface); box-shadow: 0 4px 16px rgb(22 48 34 / 4%); }
.plans-card--meet { --plan-accent: var(--meet); }
.plans-card--forms { --plan-accent: var(--forms); }
.plans-card--flow { --plan-accent: var(--flow); }
.plans-card--suite { --plan-accent: var(--suite); }
.plans-card--featured { border-color: color-mix(in srgb, var(--plan-accent) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--plan-accent) 8%, var(--surface)), var(--surface) 42%); box-shadow: 0 12px 28px rgb(22 48 34 / 9%); }
.plans-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.plans-card__identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.plans-card__eyebrow { color: var(--plan-accent, var(--accent)); font-size: 12px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.plans-card__badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.plans-card h3 { margin: 18px 0 4px; font-size: 24px; letter-spacing: -.02em; }
.plans-card__description { min-height: 48px; margin: 0; color: var(--muted); line-height: 1.5; }
.plans-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-top: 22px; color: var(--ink); }
.plans-card__price strong { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plans-card__price span { color: var(--muted); font-size: 14px; }
.plans-card__unit { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.plans-card__annual-detail { min-height: 36px; color: var(--ink); font-weight: 650; }
.plans-card__annual-detail span { display: inline-block; margin-top: 5px; padding: 3px 7px; border-radius: 999px; background: var(--meet-tint); color: var(--meet); font-size: 12px; font-weight: 700; }
.plans-card [hidden] { display: none !important; }
.plans-card__features { display: grid; gap: 12px; margin: 22px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plans-card__features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.45; }
.plans-card__features li > span:not(.ds-icon) { min-width: 0; }
.plans-card__features .ds-icon { display: inline-grid; flex: 0 0 19px; width: 19px; height: 19px; place-items: center; margin: 0; border-radius: 50%; background: color-mix(in srgb, var(--plan-accent) 12%, var(--surface)); }
.plans-card__features .ds-icon img { width: 13px; height: 13px; }
.plans-card__action { width: 100%; min-height: 44px; margin-top: auto; justify-content: center; }
.plans-card__checkout { margin-top: auto; }
.plans-card__checkout .hint { min-height: 18px; margin: 0 0 8px; }
.plans-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plans-section-heading .plans-card__eyebrow { --plan-accent: var(--accent); }
.plans-section-heading h2 { margin: 8px 0 5px; font-size: clamp(25px, 3vw, 36px); line-height: 1.14; letter-spacing: -.035em; }
.plans-section-heading p { margin: 0; color: var(--muted); }
.plans-compare-caption { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 650; }
.plans-compare { margin: 0 0 28px; }
.plans-compare .table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgb(22 48 34 / 5%); }
.plans-compare .plan-table { width: 100%; min-width: 650px; border-collapse: separate; border-spacing: 0; }
.plans-compare .plan-table th, .plans-compare .plan-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.plans-compare .plan-table thead th { background: color-mix(in srgb, var(--meet-tint) 55%, var(--surface)); color: var(--ink); font-size: 13px; font-weight: 750; }
.plans-compare .plan-table thead th:first-child { width: 40%; padding-left: 24px; }
.plans-compare .plan-table thead th:not(:first-child), .plans-compare .plan-table tbody td { text-align: center; }
.plans-compare .plan-table tbody th { width: 40%; padding-left: 24px; font-weight: 650; }
.plans-compare .plan-table tbody td { font-variant-numeric: tabular-nums; }
.plans-compare .plan-table tbody tr { transition: background-color .15s ease; }
.plans-compare .plan-table tbody tr:hover { background: var(--surface-2); }
.plans-compare .plan-table tbody tr:last-child th, .plans-compare .plan-table tbody tr:last-child td { border-bottom: 0; }
.plans-compare-plan { display: inline-flex; align-items: center; gap: 8px; }
.plans-compare-plan::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--meet); }
.plans-compare-plan--forms::before { background: var(--forms); }
.plans-compare-plan--flow::before { background: var(--flow); }
.plans-check { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--meet-tint); color: var(--meet); font-size: 14px; font-weight: 800; }
.plans-dash { color: var(--line-strong); font-size: 18px; }
.plans-credit-pill { display: inline-block; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--meet) 18%, var(--line)); border-radius: 999px; background: var(--meet-tint); color: var(--meet); font-size: 13px; font-weight: 700; }
.plans-footnote, .plans-evaluation { color: var(--muted); font-size: 13px; line-height: 1.5; }
.plans-footnote { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 13px 16px; border-left: 3px solid var(--meet); border-radius: 0 10px 10px 0; background: var(--surface-2); }
.plans-footnote strong { flex: 0 0 auto; color: var(--ink); font-size: 13px; }
.plans-evaluation { margin: 22px 0 0; text-align: center; }
@media (max-width: 1120px) { .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .plans-page { width: 100%; padding-inline: 14px; }
  .plans-hero { align-items: flex-start; flex-direction: column; gap: 14px; margin: 16px 0 22px; }
  .plans-hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .plans-hero .lead { margin-top: 12px; font-size: 16px; }
  .plans-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 36px; }
  .plans-card { padding: 20px; }
  .plans-card__description { min-height: 0; }
  .plans-card__price { margin-top: 18px; }
  .plans-card__features { margin: 18px 0 20px; }
  .plans-compare .table-wrap { overflow-x: auto; }
  .plans-term-switch { align-self: flex-start; }
  .plans-term-switch button { padding-inline: 11px; }
  .plans-billing-control { justify-items: start; }
  .plans-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .plans-section-heading h2 { font-size: 27px; }
  .plans-compare-caption { align-self: flex-start; }
  .plans-compare .plan-table th, .plans-compare .plan-table td { padding: 15px 12px; }
  .plans-compare .plan-table thead th:first-child, .plans-compare .plan-table tbody th { padding-left: 14px; }
}

/* Live Meet credit estimator */
.meeting-estimator-heading { margin: 18px 0 8px; font-size: 16px; }
.meeting-estimator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.meeting-estimator__control { min-width: 0; }
.meeting-estimator__label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.meeting-estimator__label label { margin: 0; color: var(--ink); font-size: 11px; font-weight: 650; }
.meeting-estimator__label label span { color: var(--muted); font-size: 9px; font-weight: 400; }
.meeting-estimator__label output { color: var(--ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.meeting-estimator input[type="range"] { display: block; width: 100%; min-height: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; appearance: none; background: transparent; cursor: pointer; }
.meeting-estimator input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--meet) 0%, var(--meet) var(--slider-progress, 0%), var(--line-strong) var(--slider-progress, 0%), var(--line-strong) 100%); }
.meeting-estimator input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--meet) 0%, var(--meet) var(--slider-progress, 0%), var(--line-strong) var(--slider-progress, 0%), var(--line-strong) 100%); }
.meeting-estimator input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 2px solid var(--surface); border-radius: 50%; appearance: none; background: var(--meet); box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }
.meeting-estimator input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--surface); border-radius: 50%; background: var(--meet); box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }
.meeting-estimator input[type="range"]:focus-visible { outline: 2px solid color-mix(in srgb, var(--meet) 35%, transparent); outline-offset: 2px; }
.meeting-estimator__scale { display: flex; justify-content: space-between; margin-top: 2px; color: var(--muted); font-size: 9px; }
.meeting-estimator__result { grid-column: 1 / -1; min-width: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--meet) 24%, var(--line)); border-radius: 10px; background: var(--surface); }
.meeting-estimator__result > p:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.meeting-estimator__result > p:first-child strong:last-child { color: var(--meet); }
.meeting-estimator__equals { color: var(--muted); font-size: 13px; }
.meeting-estimator__availability { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.meeting-estimator__shortfall { color: var(--warning, #9b5a00); font-weight: 700; }
.meeting-estimator__enough { color: var(--meet); font-weight: 700; }
.meeting-estimator__result .hint { margin: 7px 0 0; font-size: 10px; line-height: 1.45; }
@media (max-width: 680px) {
  .meeting-estimator { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .meeting-estimator__result { grid-column: auto; padding: 11px 12px; }
}
.billing-test-plans { margin-top: 20px; }
.billing-test-plans > .label { margin: 0 0 8px; font-size: 14px; }
.billing-test-plans .notice p { font-size: 14px; }
.billing-test-plans .plans-card { padding: 20px; }
.billing-test-plans .plans-card h3 { font-size: 22px; }
.billing-test-plans .plans-card__description { min-height: 0; font-size: 14px; }
.billing-test-plans .plans-card__price { margin-top: 16px; }
.billing-test-plans .plans-card__price strong { font-size: clamp(26px, 3vw, 36px); }
.billing-test-plans .plans-card__price span { font-size: 12px; }
.billing-test-plans .plans-card__unit { font-size: 11px; }
.billing-test-plans .plans-card__features { gap: 10px; margin: 16px 0 18px; padding-top: 14px; }
.billing-test-plans .plans-card__features li { font-size: 12px; }
.billing-test-plans .plans-card__action { font-size: 14px; }

/* Guided setup: a calm, explicit progress path instead of a row of crowded tabs. */
.setup-page { max-width: 1180px; }
.setup-page__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 8px 0 26px; padding: 28px clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent-tint) 62%, var(--surface)), var(--surface) 68%); }
.setup-page__intro { max-width: 740px; }
.setup-page__intro h1 { margin: 14px 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.setup-page__intro .lead { margin: 0; color: var(--muted); font-size: 16px; }
.setup-page__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.setup-save-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.setup-save-note strong { color: var(--ink); }
.setup-save-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--meet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--meet) 12%, transparent); }
.setup-progress { margin: 0 4px 18px; }
.setup-progress__summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.setup-progress__summary strong { color: var(--ink); }
.setup-progress__track { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; background: var(--line); color: var(--meet); appearance: none; }
.setup-progress__track::-webkit-progress-bar { border-radius: 999px; background: var(--line); }
.setup-progress__track::-webkit-progress-value { border-radius: 999px; background: var(--meet); transition: width .2s ease; }
.setup-progress__track::-moz-progress-bar { border-radius: 999px; background: var(--meet); }
.setup-calendar { max-width: 880px; }
.setup-calendar__status { margin: 16px 0; color: var(--muted); font-size: 14px; }
.setup-booking-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--accent); font-size: 14px; }
.setup-stepper { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 22px; padding: 4px 2px 12px; scrollbar-width: thin; }
.setup-stepper__step { display: flex; flex: 1 0 150px; align-items: center; gap: 10px; min-width: 0; min-height: 62px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.setup-stepper__step:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.setup-stepper__step[aria-current="step"] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-tint) 58%, var(--surface)); color: var(--ink); box-shadow: 0 3px 12px rgb(22 48 34 / 5%); }
.setup-stepper__number { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 750; }
.setup-stepper__step[aria-current="step"] .setup-stepper__number { border-color: var(--accent); background: var(--accent); color: white; }
.setup-stepper__copy { display: grid; gap: 4px; min-width: 0; }
.setup-stepper__copy strong { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.setup-stepper__copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.setup-panel > .card, .setup-panel > form.card, .setup-panel .grid-2 > .card { margin: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 24px rgb(22 48 34 / 4%); }
.setup-panel h2 { margin-top: 0; font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.02em; }
.setup-panel .muted { max-width: 760px; line-height: 1.6; }
.setup-panel fieldset { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.setup-panel fieldset legend { padding: 0 8px; color: var(--ink); font-weight: 700; }
.setup-panel .actions { margin-top: 22px; }
.setup-stepper__step:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Account settings: identify the owner, team and workspace controls at a glance. */
.account-settings-page { max-width: 1120px; }
.account-page__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 8px 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-page__header h1, .billing-page__header h1 { margin: 12px 0 6px; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.account-page__header p { margin: 0; color: var(--muted); }
.account-role-pill { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.account-settings-grid { gap: 16px; margin-bottom: 18px; }
.account-panel { margin: 0 0 16px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 20px rgb(22 48 34 / 3%); }
.account-panel__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.account-panel__heading h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.account-panel__heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.account-panel__eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.account-avatar { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 18px; font-weight: 750; }
.account-profile-name { margin: 0 0 2px; font-size: 17px; font-weight: 700; }
.account-profile-email { margin: 0 0 18px; color: var(--muted); }
.account-profile-details { display: grid; gap: 0; margin: 0 0 18px; }
.account-profile-details > div { display: grid; grid-template-columns: minmax(88px, 120px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-profile-details dt { color: var(--muted); font-size: 13px; }
.account-profile-details dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.account-panel form { margin-top: 14px; }
.account-panel hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.account-panel--preferences fieldset { padding: 0; border: 0; }
.account-settings-extra { display: grid; gap: 0; }
.account-settings-extra > [data-settings-panel] { display: grid; gap: 16px; }
.account-settings-extra > [data-settings-panel][hidden], [data-settings-panel][hidden] { display: none !important; }
.account-settings-extra > [data-settings-panel] > section.card { margin: 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 20px rgb(22 48 34 / 3%); }
.account-settings-extra > [data-settings-panel] h2 { margin-top: 0; font-size: 22px; }
.account-settings-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 20px 0; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.account-settings-grid { grid-template-columns: minmax(0, 1fr); }
.account-settings-tabs [role="tab"] { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.account-settings-tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(20 40 28 / 12%); }
.account-settings-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-create-workspace, .optional-brand-color { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.account-create-workspace > summary, .optional-brand-color > summary { cursor: pointer; font-weight: 650; }
.account-create-workspace > p, .optional-brand-color > p { margin-bottom: 8px; }
.optional-event-settings { padding: 0; overflow: clip; }
.optional-event-settings > summary { display: flex; align-items: center; min-height: 68px; padding: 16px 20px; cursor: pointer; list-style-position: inside; }
.optional-event-settings > summary span { display: grid; gap: 4px; }
.optional-event-settings > summary strong { font-size: 17px; }
.optional-event-settings > summary small { color: var(--muted); font-size: 14px; font-weight: 400; }
.optional-event-settings[open] > :not(summary) { margin-right: 20px; margin-left: 20px; }
.optional-event-settings[open] > :last-child { margin-bottom: 20px; }
.optional-event-settings[open] > summary { margin: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .account-settings-tabs { margin-inline: -4px; } }
.account-panel--danger { border-color: color-mix(in srgb, var(--danger, #b54838) 30%, var(--line)); background: color-mix(in srgb, var(--danger, #b54838) 3%, var(--surface)); }
.account-panel--danger .account-panel__eyebrow { color: var(--danger, #a43d32); }
.account-panel--danger > p { max-width: 760px; color: var(--muted); }

/* Billing: separate account status, usage and payment management into readable sections. */
.billing-dashboard { max-width: 1240px; }
.billing-page__header { align-items: flex-end; margin: 8px 0 24px; }
.billing-page__header .lead { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.billing-dashboard > .notice { margin: 0 0 20px; }
.billing-dashboard > .plans-billing-control { width: max-content; margin: -6px 0 22px auto; }
.billing-entitlements { gap: 12px; margin: 0 0 20px; }
.billing-entitlements > .card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.billing-entitlements h2 { margin: 0 0 12px; font-size: 17px; }
.billing-usage, .billing-subscriptions { margin: 0 0 18px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 20px rgb(22 48 34 / 3%); }
.billing-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.billing-section-heading h2 { margin: 4px 0 0; font-size: 22px; }
.billing-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.billing-reset-note { color: var(--muted); font-size: 12px; }
.billing-subscription-list { display: grid; gap: 0; margin: 0; padding: 0; border-top:1px solid var(--line); list-style: none; }
.billing-subscription { --subscription-accent: var(--meet); display: grid; grid-template-columns: minmax(150px, .9fr) minmax(190px, 1.1fr) auto auto; align-items: center; gap: 10px 16px; min-width: 0; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.billing-subscription--forms { --subscription-accent: var(--forms); }
.billing-subscription--flow { --subscription-accent: var(--flow); }
.billing-subscription__plan { display: flex; align-items: center; gap: 10px; min-width: 0; }
.billing-subscription__plan > .ds-mark { width: 28px; height: 22px; flex-basis: 28px; }
.billing-subscription__plan > .ds-mark img { width: 28px; height: 22px; }
.billing-subscription__plan > div { display: grid; gap: 2px; min-width: 0; }
.billing-subscription__plan strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.billing-subscription__plan span:not(.ds-mark) { color: var(--muted); font-size: 11px; }
.billing-subscription__renewal { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 4px 8px; min-width: 0; color: var(--subscription-accent); }
.billing-subscription__renewal .ds-icon { width: 18px; height: 18px; margin: 0; }
.billing-subscription__renewal .ds-icon img { width: 18px; height: 18px; }
.billing-subscription__renewal > span { display: grid; gap: 2px; min-width: 0; color: var(--ink); }
.billing-subscription__renewal strong { font-size: 12px; font-weight: 650; }
.billing-subscription__renewal small { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.billing-subscription__renewal .billing-subscription__grace { grid-column: 2; color: var(--warning, #9b5a00); }
.billing-subscription__status { justify-self: end; }
.billing-subscription__actions { position: relative; justify-self: end; }
.billing-subscription__actions > summary { display: flex; align-items: center; gap: 6px; min-height: 34px; list-style: none; cursor: pointer; }
.billing-subscription__actions > summary::-webkit-details-marker { display: none; }
.billing-subscription__actions > summary::after { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("/assets/figma/ChevronDown.svg") center / contain no-repeat; }
.billing-subscription__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: grid; gap: 6px; width: 230px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgb(20 40 30 / 16%); }
.billing-subscription__menu p { margin: 2px 4px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.billing-subscription__menu .btn { justify-content: flex-start; }
.billing-subscription:last-child { border-bottom:0; }
.billing-subscriptions__empty { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.billing-subscriptions__empty .ds-icon { display: grid; width: 36px; height: 36px; place-items: center; margin: 0; border-radius: 10px; background: var(--surface); }
.billing-subscriptions__empty .ds-icon img { width: 20px; height: 20px; }
.billing-subscriptions__empty strong { font-size: 14px; }
.billing-subscriptions__empty p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.billing-plan-picker { margin: 0 0 18px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 20px rgb(22 48 34 / 3%); }
.billing-plan-picker .billing-section-heading { margin-bottom: 16px; }
.billing-plan-picker .plans-grid { margin: 0; }
.billing-test-notice { display: flex; align-items: flex-start; gap: 10px; }
.billing-test-notice > .ds-icon { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; }
.billing-test-notice > .ds-icon img { width: 20px; height: 20px; }
.billing-test-notice p { display: grid; gap: 2px; margin: 0; }
.billing-test-notice p strong { color: var(--ink); }
.billing-test-plans { margin: 0; }
.billing-usage__metric { margin: 14px 0; }
.billing-usage__metric .row-between { margin-bottom: 6px; color: var(--muted); font-size: 14px; text-transform: capitalize; }
.billing-usage__metric .row-between strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.billing-usage > .hint { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.billing-subscriptions > h3 { margin-top: 26px; }
.billing-subscriptions > .list { margin: 0; }
@media (max-width: 720px) {
  .setup-page__header { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
  .setup-page__actions { justify-content: flex-start; }
  .setup-stepper__step { flex-basis: 138px; }
  .account-page__header { align-items: flex-start; flex-direction: column; }
  .billing-page__header { flex-direction: column; }
  .billing-dashboard > .plans-billing-control { margin: 0 0 20px; }
  .billing-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .billing-subscription { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px; }
  .billing-subscription__plan { grid-column: 1; grid-row: 1; }
  .billing-subscription__status { grid-column: 2; grid-row: 1; }
  .billing-subscription__renewal { grid-column: 1; grid-row: 2; }
  .billing-subscription__actions { grid-column: 2; grid-row: 2; }
  .billing-subscription__menu { right: 0; }
  .plans-card__top { align-items: flex-start; }
  .plans-card__identity { align-items: flex-start; }
  .plans-card__eyebrow { line-height: 1.35; }
}
