@font-face{font-family:system-fallback;src:local("Segoe UI")}
:root{font-family:system-fallback,system-ui,sans-serif;color:#20352b;background:#eef3ec;font-synthesis:none;font-size:15px}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:grid;place-items:center;padding:20px}button,select{font:inherit}button{cursor:pointer;border:0;transition:background .15s}button:disabled{cursor:default;background:#e4e7e3;color:#8a928a}button:focus-visible,select:focus-visible,.transcript:focus-visible{outline:3px solid #577eaa;outline-offset:3px}
.phone{width:100%;max-width:550px;height:min(860px,calc(100dvh - 40px));min-height:360px;background:#fffefb;border:1px solid #d9e1d6;border-radius:28px;box-shadow:0 16px 65px #284b2b12;display:flex;flex-direction:column;overflow:hidden}
header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px 16px;border-bottom:1px solid #e9ede5}header>div{display:flex;flex-direction:column;gap:4px}.brand{font-size:17px;font-weight:650;letter-spacing:-.3px}.line{font-size:12px;color:#768374}.badge{font-size:10px;letter-spacing:1.4px;font-weight:650;border:1px solid #d8e1d3;border-radius:6px;padding:5px 7px;color:#74896c}
.identity{display:flex;align-items:center;gap:8px;padding:10px 24px;background:#f5f7f1}.identity label{font-size:11px;color:#70826b}.identity select{min-width:0;max-width:125px;border:1px solid #d6dfd0;background:#fff;border-radius:7px;padding:7px;font-size:12px}.small{margin-left:auto;background:#e2ecdc;color:#3b6337;border-radius:7px;padding:8px 11px;font-size:12px}
.persona{text-align:center;padding:21px 24px 15px;flex-shrink:0}.avatar{height:94px;width:94px;margin:0 auto 11px;position:relative}.avatar img{height:100%;width:100%;border-radius:50%;object-fit:cover;background:#edf3e7;border:4px solid #f1f5ed}.presence{position:absolute;width:14px;height:14px;border:3px solid #fffefb;border-radius:50%;background:#91ae80;bottom:5px;right:4px}.persona h1{font-size:24px;letter-spacing:-.5px;font-weight:600;margin:0 0 3px}.subtitle{font-size:12px;color:#7a8777;margin:0}.call-status{height:30px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#4f7143;margin-top:8px}#timer{font-variant-numeric:tabular-nums;color:#86907e}
.transcript{flex:1;min-height:40px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:12px 24px 18px;background:linear-gradient(#fafbf7,#f7f9f3);border-block:1px solid #eaf0e3}.empty{height:100%;min-height:110px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#7d8975}.wave{font-size:21px;letter-spacing:4px;color:#a7bd94}.empty h2{font-size:18px;font-weight:500;color:#57714a;margin:14px 0 7px}.empty p{font-size:13px;line-height:1.65;margin:0}.empty .hint{font-size:11px;color:#9aa58f;margin-top:23px}
.bubble{max-width:87%;width:fit-content;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;margin:8px 0;border-radius:16px 16px 16px 4px;background:#e6efdf;font-size:14px;line-height:1.5}.bubble.user{margin-left:auto;background:#eeeee8;border-radius:16px 16px 4px 16px}.bubble .meta{font-size:10px;color:#68815a;display:flex;justify-content:space-between;gap:18px;margin-bottom:5px}.bubble.user .meta{color:#7a8072}.bubble.partial .text{color:#87917d}.interrupted{display:block;font-size:10px;font-style:normal;color:#859677;margin-top:5px}
footer{padding:12px 22px 11px;flex-shrink:0}.notice{font-size:10px;color:#92a087;text-align:center;margin:0 0 11px;min-height:14px}.actions{display:flex;gap:10px}.actions button{flex:1;min-width:0;min-height:49px;border-radius:12px;font-size:14px;font-weight:600;padding:10px 6px}.positive{color:white;background:#64874f}.positive:hover:not(:disabled){background:#557a3f}.negative{color:white;background:#b85d51}.negative:hover:not(:disabled){background:#a84e43}.test-invite{display:block;margin:10px auto 0;padding:4px;background:none;color:#86947b;font-size:11px}.test-invite:disabled{background:none;color:#b8c0b3}
@media(max-width:600px){body{padding:0;background:#fffefb}.phone{height:100dvh;max-height:none;border:0;border-radius:0;min-height:320px;max-width:550px}header{padding:17px 20px 12px}.identity{padding:9px 16px}.persona{padding:17px 16px 10px}.transcript{padding:9px 16px 15px}footer{padding:12px 16px max(10px,env(safe-area-inset-bottom))}}
@media(max-height:650px){header{padding-block:10px}.persona{padding:9px 15px 5px;display:grid;grid-template-columns:56px 1fr;column-gap:12px;text-align:left;align-items:center;max-width:290px;margin:auto}.avatar{width:52px;height:52px;grid-row:1/4;margin:0}.persona h1{font-size:20px}.call-status{height:22px;justify-content:flex-start;margin-top:1px}.subtitle{font-size:11px}.empty .hint{margin-top:10px}.empty h2{margin-top:5px}.wave{display:none}footer{padding-top:9px}.notice{margin-bottom:7px}.test-invite{margin-top:5px}}
@media(max-width:350px){.identity{gap:6px}.identity label{max-width:55px}.small{padding:8px}.actions button{font-size:12px}.bubble{max-width:93%}}
.call-status{height:auto;min-height:30px;line-height:1.4}#status{overflow-wrap:anywhere}
.checks{display:flex;gap:12px;justify-content:center}.checks .test-invite{margin-inline:0}
@media(max-height:650px){.call-status{grid-column:1/-1;justify-content:center;text-align:center;min-height:24px;margin-top:6px}.avatar{grid-row:1/3}.persona{width:100%;max-width:310px}}

#profile{flex:1;width:0;max-width:none}
.support-panel { margin: 0 1rem .65rem; padding: .7rem .85rem; border: 1px solid #d6e2d8; border-radius: 12px; background: #f5faf5; }
.support-panel[hidden] { display: none; }
.support-transfer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; }
.support-transfer strong { padding: .25rem .55rem; border-radius: 8px; background: #e2edeb; color: #214c43; }
.support-transfer strong[data-state="busy"] { background: #f9ebd4; color: #674514; }
.support-transfer strong[data-state="connected"], .support-transfer strong[data-state="callback_queued"] { background: #d8ebdc; color: #17502a; }
.support-panel h2 { font-family: system-ui, sans-serif; font-size: 1.2rem; font-weight: 700; margin: .75rem 0 .3rem; }
#support-cards { max-height: 9rem; overflow: auto; font-size: 1.13rem; line-height: 1.45; }
#support-cards article { padding: .3rem 0; }
#support-cards p { margin: .2rem 0; color: #2d4a41; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.composer { display: flex; gap: 8px; padding: .7rem 1rem; }
.composer input { flex: 1; min-width: 0; border: 1px solid #b9c9b6; border-radius: 8px; padding: .6rem; font: inherit; }
.composer button { border-radius: 8px; padding: .5rem .8rem; }
.composer input:focus-visible { outline: 2px solid #577eaa; outline-offset: 2px; }
#support-cards article + article { border-top: 1px solid #d6e2d8; }
#support-cards .question { font-size: 1rem; font-weight: 600; }
#support-routing { border-bottom: 1px solid #d6e2d8; padding-bottom: .55rem; font-size: 1.13rem; line-height: 1.45; }
#support-routing p { margin: .35rem 0; }
#support-archive { border-top: 1px solid #d6e2d8; font-size: 1.13rem; line-height: 1.45; }
#support-archive article { padding: .3rem 0; }
#support-archive article + article { border-top: 1px solid #d6e2d8; }
#support-archive p { margin: .2rem 0; color: #2d4a41; }
.archive-audience { display: block; font-size: .9rem; color: #426157; }
#support-operations { border-top: 1px solid #d6e2d8; font-size: 1.13rem; line-height: 1.45; }
#support-operation-cards article { padding: .3rem 0; }
#support-operation-cards p { margin: .2rem 0; color: #2d4a41; }
#support-diagnostics { margin-top: .75rem; overflow-wrap: anywhere; }
#support-versions dt { font-weight: 650; }
#support-versions dd { margin: 0 0 .35rem; }
@media (min-width: 820px) {
  .phone.with-support { display: grid; max-width: 1050px; grid-template-columns: minmax(0, 1fr) minmax(290px, .7fr); grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto; }
  .with-support > header, .with-support > footer { grid-column: 1 / -1; }
  .with-support > .identity, .with-support > .persona, .with-support > .transcript, .with-support > .composer { grid-column: 1; }
  .with-support > .support-panel { grid-column: 2; grid-row: 2 / 7; align-self: stretch; overflow: auto; margin: .8rem .9rem .7rem .15rem; }
  .with-support #support-cards { max-height: none; }
}
@media (max-width: 819px) {
  .support-panel { flex-shrink: 0; max-height: 30%; overflow: auto; }
}

.scenario-page { display: block; padding: clamp(20px, 6vw, 64px); background: #eef3ec; }
.scenario-home { max-width: 940px; margin-inline: auto; }
.scenario-home h1 { margin: 0 0 .45rem; font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; }
.scenario-home > p { margin: 0 0 2rem; font-size: 1.1rem; line-height: 1.5; }
.scenario-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.scenario-list a { display: grid; gap: .55rem; padding: 1.4rem; border: 1px solid #d9e1d6; border-radius: 16px; color: #20352b; background: #fffefb; text-decoration: none; }
.scenario-list a:hover { border-color: #64874f; background: #f7faf4; }
.scenario-list a:focus-visible { outline: 3px solid #577eaa; outline-offset: 3px; }
.scenario-list strong { font: 700 1.25rem/1.2 system-ui, sans-serif; }
.scenario-list span { line-height: 1.45; }
