:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#21322e;background:#f7f8f6;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;height:100%}button,textarea{font:inherit}button{cursor:pointer}.app-shell{height:100dvh;min-height:520px;display:flex;flex-direction:column}.topbar{height:66px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #e4e9e4;background:#fff}.brand{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.13em;font-weight:700;white-space:nowrap}.brand strong{color:#28745b}.brand-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#dbefe5;color:#28745b;font-size:19px;letter-spacing:0}.topbar-actions{display:flex;align-items:center;gap:15px}.preview-tag,.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#81918a}.briefing-button{display:none;border:1px solid #dce5de;background:#fff;border-radius:10px;padding:9px 12px;color:#28533f;font-size:13px;font-weight:700;gap:7px;align-items:center}.briefing-button span{font-size:18px;line-height:0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) var(--briefing-width,385px);flex:1;min-height:0}.chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fafbf9}.chat-heading{display:flex;align-items:center;gap:14px;padding:27px max(32px,calc((100% - 760px)/2));border-bottom:1px solid #edf0eb;background:#fff}.heading-icon{display:grid;place-items:center;width:47px;height:47px;flex:none;border-radius:15px;background:#e7f3ec;color:#31805e;font-size:27px}.eyebrow{margin:0 0 7px}h1,h2,h3,p{margin-top:0}h1{font-size:23px;letter-spacing:-.035em;line-height:1.1;margin-bottom:5px}.heading-detail{font-size:12px;color:#82918a;margin:0}.heading-detail span{padding:0 5px}.session-pill{margin-left:auto;white-space:nowrap;border:1px solid #dfebe2;background:#f5faf6;padding:7px 10px;border-radius:99px;color:#438065;font-size:11px;font-weight:700}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#55aa75;margin-right:5px}.messages{flex:1;overflow:auto;padding:20px max(32px,calc((100% - 760px)/2)) 30px}.date-divider{text-align:center;color:#a6b2ac;font-size:11px;margin:3px 0 27px}.date-divider span{background:#f0f3ef;border-radius:20px;padding:6px 12px}.message{display:flex;gap:10px;max-width:650px;margin:0 0 20px}.message-avatar{display:grid;place-items:center;width:29px;height:29px;flex:none;border-radius:10px;background:#dcefe3;color:#327e58;font-size:16px}.message-content{min-width:0}.message-label{font-size:11px;font-weight:800;color:#426850;margin:3px 0 8px}.message-label span{font-weight:500;color:#a5b0aa;margin-left:8px}.bubble{background:#fff;border:1px solid #e5ebe5;border-radius:4px 16px 16px 16px;box-shadow:0 2px 8px #223c2b08;padding:16px 18px;color:#35443e;font-size:14px;line-height:1.58}.user-message{margin-left:auto;justify-content:flex-end}.user-message .message-content{max-width:580px}.user-message .message-label{text-align:right;color:#8b9990}.user-message .bubble{background:#e5f1e8;border-color:#d9eade;border-radius:16px 4px 16px 16px}.chat-bottom{flex:none;padding:0 max(32px,calc((100% - 760px)/2)) 18px;background:linear-gradient(180deg,#fafbf900,#fafbf9 26px)}.suggestions{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding:5px 0 14px}.suggestions::-webkit-scrollbar{display:none}.suggestions button{flex:none;border:1px solid #dce7de;background:#fff;color:#47705a;border-radius:99px;padding:10px 13px;font-size:12px;font-weight:700}.suggestions button:hover{background:#eff7f0}.suggestions span{margin-left:8px;color:#8aac96}.composer{display:flex;align-items:flex-end;gap:8px;background:#fff;border:1px solid #d7e1d8;border-radius:17px;padding:8px;box-shadow:0 5px 20px #2c483212}.composer:focus-within{border-color:#73af8d;box-shadow:0 0 0 3px #76b18e22}.composer textarea{border:0;outline:0;resize:none;min-height:38px;max-height:120px;width:100%;padding:10px 9px;background:transparent;color:#21322e;font-size:14px;line-height:20px}.composer textarea::placeholder{color:#9daa9f}.send-button{width:38px;height:38px;flex:none;border:0;border-radius:11px;background:#287b57;color:#fff;font-size:23px;line-height:1}.send-button:hover{background:#206748}.composer-note{text-align:center;margin:9px 0 0;color:#a0aca2;font-size:10px}.briefing{min-height:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid #e2e9e2}.briefing-top{display:flex;align-items:center;justify-content:space-between;flex:none;padding:27px 25px 18px;border-bottom:1px solid #edf0eb}.briefing-top h2{font-size:21px;letter-spacing:-.035em;margin:0}.close-briefing{display:none;border:0;background:#f1f4f0;border-radius:9px;width:32px;height:32px;color:#54675a;font-size:24px}.briefing-scroll{overflow:auto;padding:22px 25px 40px}.route-card{display:flex;align-items:center;justify-content:space-between;background:#f1f7f2;border:1px solid #e3eee5;border-radius:15px;padding:19px 17px;margin-bottom:28px}.route-card>div{display:flex;flex-direction:column}.arrival{text-align:right}.airport-code{font-size:22px;font-weight:800;letter-spacing:-.025em}.route-card small{font-size:11px;color:#8b9e90;margin-top:3px}.route-line{display:flex;align-items:center;gap:5px;color:#5e9c75;font-size:18px}.route-line i{width:31px;border-top:1px dashed #91b9a0}.brief-section{padding-bottom:24px;margin-bottom:25px;border-bottom:1px solid #e9ede8}.brief-section:last-child{border-bottom:0;margin-bottom:0}.brief-section h3{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#3e6550;margin-bottom:15px}.brief-section p{font-size:12px;line-height:1.65;color:#5d6e62;margin-bottom:12px}.facts{margin:0}.facts div{display:flex;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:12px;line-height:1.45}.facts dt{color:#89998d;flex:none}.facts dd{margin:0;text-align:right;font-weight:650;color:#3a4b3e}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:15px 0}.metric-grid>div,.fuel-grid>div{background:#f6f8f5;border-radius:10px;padding:12px 10px}.metric-grid strong{display:block;font-size:17px;letter-spacing:-.04em}.metric-grid strong small,.fuel-grid strong small{font-size:10px;letter-spacing:0}.metric-grid span,.fuel-grid span{display:block;color:#8b9a8e;font-size:10px;margin-top:5px}.atis-card{background:#f6f8f5;border:1px solid #edf0eb;border-radius:11px;padding:15px;margin-bottom:13px}.atis-card strong{font-size:11px;color:#3d5947}.atis-card p{margin:9px 0 0;font-size:11px;line-height:1.65;color:#4e6052}.fuel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.fuel-grid>div{min-height:76px;display:flex;flex-direction:column;justify-content:space-between}.fuel-grid span{margin:0}.fuel-grid strong{font-size:17px;letter-spacing:-.035em}.backdrop{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr)}.briefing-button{display:flex}.briefing{position:fixed;z-index:20;top:0;right:0;bottom:0;width:min(420px,92vw);box-shadow:-15px 0 50px #1c36292b;transform:translateX(105%);transition:transform .25s ease}.briefing.open{transform:translateX(0)}.briefing-top{padding-top:max(24px,env(safe-area-inset-top))}.close-briefing{display:block}.backdrop{display:block;position:fixed;z-index:19;inset:0;background:#1b2e2699;opacity:0;pointer-events:none;transition:opacity .25s ease}.backdrop.open{opacity:1;pointer-events:auto}}
@media(max-width:600px){.app-shell{min-height:0}.topbar{height:58px;padding:0 16px}.brand{font-size:10px;letter-spacing:.09em;gap:7px}.brand-icon{width:26px;height:26px;font-size:16px}.preview-tag{display:none}.briefing-button{font-size:12px;padding:8px 10px}.chat-heading{padding:20px 18px;gap:10px}.heading-icon{width:41px;height:41px;border-radius:13px;font-size:23px}h1{font-size:19px}.session-pill{font-size:0;padding:6px 7px}.session-pill .status-dot{margin:0}.messages{padding:19px 16px 22px}.message{max-width:100%}.bubble{font-size:13px;padding:13px 14px}.chat-bottom{padding:0 12px max(12px,env(safe-area-inset-bottom))}.suggestions{padding-bottom:11px}.suggestions button{font-size:11px;padding:9px 11px}.composer{border-radius:14px}.composer textarea{font-size:13px}.composer-note{font-size:9px}.briefing-scroll{padding:18px 20px 35px}.briefing-top{padding-left:20px;padding-right:20px}}
.restart-button{border:1px solid #dce5de;background:#fff;border-radius:10px;width:34px;height:34px;color:#42745a;font-size:21px;line-height:1}.restart-button:hover{background:#f0f7f1}.session-pill.offline{color:#9a5b45;background:#fff4ee;border-color:#f1d9ce}.session-pill.offline .status-dot{background:#c57555}.session-pill.connecting .status-dot{background:#d7a252}.send-button:disabled,.suggestions button:disabled{opacity:.48;cursor:not-allowed}.composer textarea:disabled{cursor:not-allowed}.suggestions button[hidden]{display:none}.transient .bubble{color:#89978d;font-style:italic}
.bubble,.scenario-text{white-space:pre-wrap}.scenario-text{font-size:13px!important;line-height:1.65!important;color:#35443e!important}

.briefing-state{font-size:13px;line-height:1.6;color:#82918a}.brief-category{border-bottom:1px solid #e9ede8;padding:0 0 16px;margin-bottom:20px}.brief-category summary{cursor:pointer;font-size:12px;font-weight:800;letter-spacing:.06em;color:#3e6550;padding:4px 0 12px;line-height:1.5}.brief-category summary:focus-visible{outline:2px solid #73af8d;outline-offset:4px}.brief-facts{margin:0}.brief-facts>div{margin:0 0 14px}.brief-facts dt{font-size:11px;color:#82918a;margin-bottom:4px}.brief-facts dd{margin:0;font-size:13px;line-height:1.6;color:#35443e;white-space:pre-wrap;overflow-wrap:anywhere}.brief-category:last-child{border-bottom:0}.restart-button:disabled{opacity:.48;cursor:not-allowed}[hidden]{display:none!important}
.briefing-note{margin:0 0 20px;padding:12px 14px;border:1px solid #dce7de;border-radius:10px;background:#f5faf6;color:#426850;font-size:12px;line-height:1.6}
.bubble a{color:#28745b;text-decoration:underline;text-underline-offset:3px;font-weight:700}.bubble a:focus-visible{outline:2px solid #73af8d;outline-offset:3px;border-radius:2px}

/* Welcome dialog: native modal semantics provide focus containment and an inert background. */
.welcome-modal {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #dce5dd;
  border-radius: 20px;
  background: #fff;
  color: #253c30;
  overflow: hidden;
}
.welcome-modal[open] { display: flex; flex-direction: column; }
.welcome-modal::backdrop { background: #1b2e2680; backdrop-filter: blur(3px); }
.welcome-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 28px 26px 18px; }
.welcome-modal h2 { margin: 10px 0 14px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
/* This static heading receives initial dialog focus to keep reading at the top. */
#welcome-title:focus { outline: none; }
.welcome-intro { margin-bottom: 16px; font-size: 14px; line-height: 1.6; color: #64736a; }
.welcome-steps { padding-left: 21px; margin: 22px 0 0; }
.welcome-steps li { margin-bottom: 15px; padding-left: 4px; font-size: 13px; line-height: 1.55; color: #53645a; }
.welcome-steps strong { display: block; margin-bottom: 3px; color: #304b3a; }
.welcome-notice { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0eb; }
.welcome-notice summary { cursor: pointer; font-size: 11px; font-weight: 500; line-height: 1.5; color: #78877c; }
.welcome-notice summary:focus-visible { outline: 2px solid #73af8d; outline-offset: 4px; border-radius: 3px; }
.welcome-notice[open] summary { margin-bottom: 8px; }
.welcome-notice p { margin: 0 0 10px; font-size: 11px; line-height: 1.6; color: #64736a; }
.welcome-notice p:last-child { margin-bottom: 0; }
.welcome-footer { flex: none; padding: 16px 26px 24px; border-top: 1px solid #edf0eb; background: #fff; }
.welcome-start { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: #287b57; color: #fff; font-size: 14px; font-weight: 650; }
.welcome-start:hover { background: #206748; }
.welcome-start:disabled { opacity: .6; cursor: wait; }
.welcome-start:focus-visible { outline: 2px solid #73af8d; outline-offset: 3px; }
.welcome-status { display: flex; gap: 7px; align-items: center; margin: 0 0 12px; font-size: 11px; line-height: 1.5; color: #78877c; }
.welcome-status > span:first-child { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #c59a4b; }
.welcome-status:not(.prepared):not(.failed) { color: #287b57; }
.welcome-status:not(.prepared):not(.failed) > span:first-child { width: 16px; height: 16px; background: transparent; border: 2px solid #dcefe3; border-top-color: #287b57; animation: scenario-status-spin .8s linear infinite; }
@keyframes scenario-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .welcome-status:not(.prepared):not(.failed) > span:first-child { animation: none; } }
.welcome-status.prepared > span:first-child { background: #55aa75; }
.welcome-status.failed { color: #9a5b45; }
.welcome-status.failed > span:first-child { background: #c57555; }
.welcome-note { margin: 9px 0 0; text-align: center; font-size: 10px; line-height: 1.5; color: #78877c; }
.copyright { margin: 4px 0 0; text-align: center; font-size: 10px; line-height: 1.5; color: #64736a; }
@media (max-height: 600px) { .welcome-body { padding-top: 20px; } .welcome-steps { margin-top: 16px; } }

.scenario-completion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.scenario-completion[hidden] { display: none; }
.scenario-completion button { padding: 7px 12px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.scenario-completion button:disabled { opacity: .5; cursor: default; }

.briefing{position:relative;min-width:0}
.briefing-resizer{position:absolute;z-index:2;left:-6px;top:0;bottom:0;width:12px;cursor:col-resize;touch-action:none}
.briefing-resizer::after{content:"";position:absolute;left:5px;top:0;bottom:0;width:3px;background:transparent;transition:background .15s}
.briefing-resizer:hover::after,.briefing-resizer:focus-visible::after,.resizing-briefing .briefing-resizer::after{background:#73af8d}
.briefing-resizer:focus-visible{outline:2px solid #287b57;outline-offset:-2px}
.resizing-briefing,.resizing-briefing *{cursor:col-resize!important;user-select:none!important}
@media(max-width:900px){.briefing{position:fixed}.briefing-resizer{display:none}}

/* Secondary actions stay in the layout, clear of the conversation and send button. */
.tester-actions{display:flex;justify-content:space-between;gap:8px;margin-top:6px}
.tester-actions button{min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:#64736a;font-size:12px;text-align:left}
.tester-actions .updates-button{background:#e7f3ec;color:#28745b;font-weight:700;white-space:nowrap}
.tester-actions button:hover{background:#dcefe3}.tester-actions button:focus-visible{outline:2px solid #28745b;outline-offset:2px}
.feedback-modal{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dce5dd;border-radius:18px;padding:22px;background:#fff;color:#253c30}
.feedback-modal::backdrop{background:#1b2e2680}.feedback-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.feedback-heading h2{font-size:20px;margin:0}.feedback-heading button{width:44px;height:44px;flex:none;border:0;border-radius:10px;background:#f1f4f0;font-size:24px;color:#54675a}
.feedback-modal p{font-size:13px;line-height:1.55;color:#64736a}.feedback-modal label{display:block;font-size:13px;margin-bottom:8px}.feedback-modal textarea,.feedback-modal input[type=email]{width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid #cbd9cf;border-radius:10px;background:#fff;color:#21322e}.feedback-modal textarea{resize:vertical;min-height:100px;max-height:35dvh}.feedback-modal .consent-label{display:flex;align-items:flex-start;gap:9px;margin-top:16px;line-height:1.5}.consent-label input{width:20px;height:20px;flex:none;margin:0;accent-color:#287b57}.feedback-modal .feedback-note{font-size:12px}.feedback-submit{width:100%;min-height:44px;border:0;border-radius:10px;background:#287b57;color:white;font-weight:700}.feedback-submit:disabled{opacity:.6;cursor:wait}.feedback-modal :focus-visible{outline:2px solid #28745b;outline-offset:3px}#feedback-status:empty{display:none}
@media(max-width:360px){.tester-actions button{font-size:11px;padding:8px 6px}}

.beta-label{font-size:9px;font-weight:700;letter-spacing:.08em;color:#73877b;border:1px solid #dce7de;border-radius:4px;padding:3px 4px;line-height:1;background:#f5faf6}
@media(max-width:600px){.beta-label{font-size:8px;padding:3px;letter-spacing:.04em}}

.recording-notice{margin:18px 0 0;padding:12px 14px;border-radius:10px;background:#f1f7f2;color:#53645a;font-size:12px;line-height:1.55}

.brand-icon,.heading-icon,.message-avatar{overflow:hidden;flex-shrink:0}
.brand-icon img,.heading-icon img,.message-avatar img{display:block;width:100%;height:100%}
