/* Approved mobile mockup tokens, shared by customer screens at every width. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400..800&display=swap');
:root {
    --accent: #09090b; --bg: #fff; --fg: #09090b; --muted: #52525b;
    --line: #e4e4e7; --edge: #a1a1aa; --wash: #f4f4f5; --wash-blue: #f4f4f5;
    --radius: 20px;
}
html { font-size: 17px; }
body, body:has(.conversation) {
    --accent: #09090b; --bg: #fff; --fg: #09090b; --muted: #52525b;
    --line: #e4e4e7; --edge: #a1a1aa; --wash: #f4f4f5; --wash-blue: #f4f4f5;
    background: #f4f4f5; color: #09090b;
    font: 18px/1.6 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -.01em; overflow-wrap: anywhere;
}
body *, body *::before, body *::after { box-sizing: border-box; min-width: 0; }
small, label, input, select, textarea, button, summary, time { font-size: max(17px, 1em); }
button, input, select, textarea { font-family: inherit; }
::placeholder { font-size: 17px; color: #71717a; opacity: 1; }
:is(.page, .chat) h1, .page > header h1, .titlebar h1, .conversation > header h1 { font-size: clamp(34px, 2.4vw + 17px, 48px); line-height: 1.15; font-weight: 650; letter-spacing: -.035em; }
:is(.page, .chat) h2 { font-size: clamp(28px, 1.6vw + 17px, 36px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
:is(.page, .chat) h3 { font-size: clamp(24px, 1vw + 17px, 30px); line-height: 1.3; font-weight: 600; }
:is(.page, .chat) h4 { font-size: clamp(22px, .6vw + 17px, 26px); }
:is(.page, .chat) h5 { font-size: clamp(20px, .4vw + 17px, 22px); }
:is(.page, .chat) h6 { font-size: 18px; }
.page, .chat, .talk, .conversation { width: 100%; max-width: 960px; height: auto; min-height: 100dvh; margin-inline: auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px); gap: 24px; }
.titlebar, .page > header, .chat > header { border: 0; padding: 0; }
.titlebar { gap: 24px; }
.crumbs { flex-wrap: wrap; }
.back, .to-chat { max-width: 100%; white-space: normal; overflow: visible; border: 0; background: transparent; color: #09090b; padding: 0; min-height: 48px; font-weight: 600; }
.to-chat { text-decoration: underline; }
.page form { flex: initial; }
.page > form, .rule, .card, .deliverable, .section, .conversation .thread, .conversation .agent-resources, .conversation .sheet nav { background: #fff; border: 1px solid #e4e4e7; border-radius: 24px; padding: clamp(18px, 3vw, 28px); box-shadow: none; }
.section + .section { border-top: 1px solid #e4e4e7; }
.rules, .review { gap: 20px; padding-top: 0; }
.card-head { flex-wrap: wrap; gap: 12px; }
input, select, textarea, .field input, .field textarea { background: #fff; border: 1px solid #e4e4e7; border-radius: 16px; min-height: 56px; }
input[type=radio], input[type=checkbox] { accent-color: #09090b; }
.btn, .page .btn, .approval-actions button { border: 1px solid #09090b; border-radius: 16px; background: #09090b; color: #fff; min-height: 56px; font-weight: 600; }
.btn.secondary, .approval-actions button:not(.primary) { border-color: #e4e4e7; background: #fff; color: #09090b; }
.segment { border: 1px solid #e4e4e7; border-radius: 16px; flex-wrap: wrap; }
.segment label, .page .segment label { border-left: 1px solid #e4e4e7; flex: 1 1 110px; }
.segment span { font-size: 17px; padding: 14px 10px; }
.segment input:checked + span, .segment input[value=allow]:checked + span { background: #09090b; color: #fff; }
.segment input:focus-visible + span { outline: 3px solid #71717a; outline-offset: -4px; }
.page .choice { border: 1px solid #e4e4e7; border-radius: 16px; }
.page .choice:has(input:checked) { border-color: #09090b; background: #f4f4f5; }
.page .choice:focus-within { outline-color: #71717a; }
.style-choice input { accent-color: #09090b; }
.agent-initials { background: #e4e4e7; color: #09090b; }
.thread, .talk .thread, .live-work, .agent-resources-body, .extract { max-height: none; overflow: visible; flex: initial; }
.bubble { overflow-wrap: anywhere; }
.bubble.user, .conversation .bubble.user { background: #f4f4f5; }
.conversation .bubble.agent::before, .conversation .agent-resources summary { color: #52525b; }
.conversation .approval { background: #fff; border-color: #e4e4e7; }
.approval:not(.opening) { border: 1px solid #ffccd5; background: #fff1f3; }
.approval-eyebrow { color: #c8103f; }
.approval.opening .approval-eyebrow { color: #52525b; }
.conversation .pill:focus-within, input:focus, select:focus, textarea:focus { border-color: #09090b; outline-color: #71717a; box-shadow: none; }
.conversation :is(a,button,summary):focus-visible, :is(a,button,summary):focus-visible { outline: 3px solid #71717a; outline-offset: 3px; }
.tabs { overflow: visible; flex-wrap: wrap; }
.tabs a { font-size: 17px; border: 1px solid #e4e4e7; }
.item { flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #e4e4e7; }
.item > div { flex: 1 1 180px; }
.tag { font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 600; white-space: normal; }
.tag.working { color: #245cce; background: #eff6ff; }
.tag.done { color: #007a5e; background: #effcf6; }
.tag.waiting { color: #965900; background: #fff8e8; }
.tag.failed, .tag.stopped { color: #c8103f; background: #fff1f3; }
.deliverable .body, .deliverable .body pre { overflow: visible; overflow-wrap: anywhere; white-space: pre-wrap; }
.deliverable .body table { table-layout: fixed; width: 100%; min-width: 0; }
.deliverable .body th, .deliverable .body td { overflow-wrap: anywhere; }
.voice-orb, body:has(.conversation) .voice-orb { background: radial-gradient(circle at 35% 30%, #fff 0%, #e4e4e7 18%, #71717a 58%, #18181b 100%); }
.voice-overlay { overflow-y: auto; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
    .page, .chat, .conversation { padding-inline: 16px; }
    .page > form, .rule, .card, .section { padding: 18px 16px; }
    .pair { flex-wrap: wrap; }
    .pair > * { flex-basis: 100%; }
    .segment label, .page .segment label { flex-basis: 100%; border-left: 0; }
}
/* The same four destinations as the approved mobile and wide-screen mockups. */
.customer-app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.customer-navigation { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.4fr) minmax(0,.7fr); gap: 4px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e4e4e7; }
.customer-navigation a { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #71717a; text-decoration: none; font-size: 17px; line-height: 1.3; text-align: center; }
.customer-navigation a[aria-current=page] { color: #09090b; font-weight: 650; }
.customer-navigation svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) {
    .customer-app { padding: 0 0 0 210px; }
    .customer-navigation { inset: 0 auto 0 0; width: 210px; display: flex; flex-direction: column; gap: 12px; padding: 40px 16px; border-top: 0; border-right: 1px solid #e4e4e7; }
    .customer-navigation a { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 56px; padding: 12px; border-radius: 16px; }
    .customer-navigation a[aria-current=page] { background: #f4f4f5; }
}
/* Conversation drafts grow with the page, including optional discovery. */
.talk .pill-composer textarea { max-height: none; overflow: hidden; }
.customer-navigation a span { white-space: nowrap; }
.page textarea, .chat textarea { max-height: none; overflow: hidden; resize: none; }
