*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Arial,Helvetica,sans-serif;color:#262626;background:#fff}body{display:flex;flex-direction:column}header{height:52px;background:#050505;color:white;display:flex;align-items:center;gap:12px;padding:5px 14px;font-size:18px;flex-shrink:0}header img{object-fit:contain}header button{margin-left:auto;color:white;background:none;border:0;font-size:27px;cursor:pointer}main{height:calc(100dvh - 52px);max-height:850px;display:flex;flex-direction:column;min-height:0}.preview{font-size:12px;color:#555;background:#fafafa;border-bottom:1px solid #eee;padding:8px 14px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#messages{flex:1;overflow:auto;padding:22px 16px 8px;display:flex;flex-direction:column;gap:18px}#messages:before{content:'';flex:1}.turn{max-width:500px;width:fit-content;flex-shrink:0}.bubble{white-space:pre-wrap;line-height:1.5;font-size:14px;border:1px solid #d5d5d5;padding:16px}.turn.user{align-self:flex-end}.user .bubble{background:#eaf2fb;border-color:#b7d3ec}.stamp{font-size:11px;color:#666;margin-top:7px}#choices{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px}#choices:empty{padding:0}.choice{border:1px solid #0068bb;background:white;color:#005da6;border-radius:0;padding:9px 14px;font-size:14px;cursor:pointer}.choice:hover{background:#f0f7ff}button:focus-visible,input:focus-visible{outline:2px solid #086fc0;outline-offset:2px}#composer{border-top:1px solid #ddd;display:flex;align-items:center;min-height:59px;padding:8px 16px;gap:10px}#composer input{font:14px Arial;border:0;outline:none;min-width:0;flex:1;padding:10px 0}#composer.credentials{flex-wrap:wrap}#composer.credentials input{flex-basis:calc(50% - 40px);border:1px solid #ccc;padding:12px;min-width:180px}#send{border:0;background:white;color:#464646;padding:9px;cursor:pointer}button:disabled{opacity:.5;cursor:wait}#status{font-size:12px;color:#555;padding:0 16px}footer{font-size:11px;color:#777;padding:9px 16px 12px}.hint{flex-basis:100%;font-size:12px;color:#555;line-height:1.4}@media(max-width:560px){header{font-size:16px}main{max-height:none}.turn{max-width:92%}#composer.credentials input{flex-basis:100%}.choice{padding:10px;font-size:13px}.preview{font-size:11px}#messages{padding:14px 12px}footer{font-size:10px}}
#composer.credentials{align-items:flex-end;gap:14px;padding:16px}.password-field{flex:1 1 240px;max-width:420px;min-width:0}.password-field>label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.password-box{display:flex;border:1px solid #aab4c0;border-radius:4px;align-items:center;background:#fff}.password-box:focus-within{outline:2px solid #086fc0;outline-offset:2px}#composer.credentials .password-box input{border:0;flex:1;min-width:0;padding:12px;margin:0;outline:none}.password-toggle{align-self:stretch;border:0;border-left:1px solid #e0e4e9;background:#f6f8fa;color:#005da6;padding:10px 14px;font-size:13px;cursor:pointer;min-width:62px}#composer.credentials #send{background:#0068bb;color:white;border-radius:4px;padding:13px 18px;min-height:44px}@media(max-width:560px){.password-field{flex-basis:100%;max-width:none}#composer.credentials #send{width:100%}}
/* MYID account assistance: clear states, restrained motion, mobile-first layout. */
:root{--navy:#102a43;--blue:#1465da;--teal:#087e8b;--muted:#526579}html,body{background:#edf3fa;color:#18324b;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}header{height:66px;background:linear-gradient(110deg,#102a43,#124c6a);padding:10px max(16px,calc((100vw - 1080px)/2));box-shadow:0 2px 12px #102a4326}header>img{border-radius:10px;background:#ffffff13;padding:4px}header span{white-space:nowrap}header .header-action{margin-left:auto;font-family:inherit;font-weight:600;font-size:13px;border:1px solid #ffffff65;border-radius:9px;padding:9px 12px;white-space:nowrap}header #restart{margin-left:0;border-radius:9px;width:38px;height:38px}header button:hover{background:#ffffff20}main{width:min(100%,1080px);margin:0 auto;height:calc(100dvh - 66px);max-height:none;background:#f8fafc;box-shadow:0 10px 50px #102a4312}.preview{background:#eaf4f7;border-color:#d6e7ed;color:#245168;font-weight:600;padding:10px 20px}#messages{gap:17px;padding:22px 24px}.turn{position:relative;max-width:min(78%,690px);animation:turn-in .18s ease-out}.turn.bot{padding-left:43px}.avatar{position:absolute;left:0;top:4px;background:#e6eef5;border:1px solid #d8e4ee;border-radius:50%;padding:5px;object-fit:contain}.bubble{border-radius:4px 17px 17px 17px;border-color:#dce6ef;background:white;box-shadow:0 3px 10px #102a4305;font-size:14px;padding:14px 17px}.user .bubble{background:#1465da;color:#fff;border-color:#1465da;border-radius:17px 4px 17px 17px}.stamp{color:#65788a;font-size:10px}.user .stamp{text-align:right}.success .bubble{background:#effbf4;border-color:#9ed6b4}.failure .bubble{background:#fff4f3;border-color:#e9b3af}.notice .bubble{background:#fff9eb;border-color:#e2cd9f}.outcome-badge{display:block;font-weight:700;font-size:12px;margin-bottom:6px;letter-spacing:.01em}.success .outcome-badge{color:#17663b}.failure .outcome-badge{color:#aa302a}.notice .outcome-badge{color:#815c12}#choices{padding:12px 24px}.choice{border:1px solid #b8d1ea;background:white;color:#164f91;border-radius:22px;font-weight:600;padding:11px 16px;transition:background .15s,transform .15s}.choice:hover{background:#e7f1ff;transform:translateY(-1px)}#composer{background:white;border-color:#dce6ef;padding:12px 22px;min-height:68px}#composer input{font-family:inherit;background:transparent;font-size:15px}#send{background:var(--blue);color:white;border-radius:10px;min-width:42px;min-height:42px}#composer:empty{display:none}footer{background:white;color:#627386;font-size:11px;line-height:1.55;padding:10px 22px 14px;border-top:1px solid #edf1f5}footer strong{display:block;color:#284b69}footer span{display:block}#export-note{font-size:10px;margin-top:3px;color:#68798a}#status{background:#f2f7fc;color:#245168;padding:0 22px;font-size:12px}#status:not(:empty){padding:10px 22px}.processing{display:flex;gap:10px;align-items:center}.processing-dots{display:inline-flex;gap:4px}.processing-dots i{width:6px;height:6px;background:#087e8b;border-radius:50%;animation:processing-pulse 1s infinite}.processing-dots i:nth-child(2){animation-delay:.15s}.processing-dots i:nth-child(3){animation-delay:.3s}.recovered-username{font-size:20px;letter-spacing:.025em;color:#155936;overflow-wrap:anywhere}.success .bubble button{border:1px solid #8bc3a1;border-radius:8px;color:#155936;background:white;font-size:21px;padding:3px 10px;cursor:pointer}.hint{margin-top:6px}@keyframes processing-pulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@keyframes turn-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(max-width:560px){header{height:62px;padding:8px 12px;gap:8px;font-size:13px}header>img{width:32px;height:32px}header .header-action{font-size:11px;padding:8px}main{height:calc(100dvh - 62px)}#messages{padding:16px 12px}.turn{max-width:94%}.turn.bot{padding-left:36px}.avatar{width:28px;height:28px}.bubble{padding:12px;font-size:14px}#choices{padding:10px 12px}.choice{font-size:12px;padding:10px 13px}footer{font-size:10px;padding:8px 14px}#composer{padding:10px 14px}}

:root{--chat-font-size:17px}.bubble,#composer input,.choice,#composer.credentials #send{font-size:var(--chat-font-size)}.hint,.password-field>label,.password-toggle{font-size:calc(var(--chat-font-size) - 2px)}footer,#status,.preview{font-size:calc(var(--chat-font-size) - 3px)}#export-note,.stamp,.outcome-badge{font-size:calc(var(--chat-font-size) - 4px)}.reading-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;background:#f1f6fb;color:#34536c;padding:7px 18px;font-size:13px;flex-shrink:0}.reading-tools button{border:1px solid #adc5d9;border-radius:7px;background:white;color:#164f91;padding:5px 10px;font-size:16px;cursor:pointer}.reading-tools button:disabled{cursor:default;opacity:.4}.reading-tools output{min-width:34px;text-align:center}.turn{overflow-wrap:anywhere}header{flex-wrap:wrap;min-height:66px;height:auto}main{flex:1;height:auto;min-height:0}@media(max-width:560px){header{min-height:62px}header span{font-size:12px}header .header-action{margin-left:auto}header #restart{width:30px}.bubble,#composer input,.choice{font-size:var(--chat-font-size)}.reading-tools{padding:5px 12px}.turn{max-width:100%}footer{font-size:calc(var(--chat-font-size) - 4px)}}

/* Keep the conversation usable above the iOS/Android on-screen keyboard. */
html{height:100%;overflow:hidden}body{position:fixed;top:var(--app-top,0px);left:0;width:100%;height:var(--app-height,100dvh);overflow:hidden}main{overflow:hidden}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;background:#eaf4f7;border-bottom:1px solid #d6e7ed}.chat-toolbar .preview{border:0;background:transparent;min-width:0}.reading-tools{background:transparent}.reading-tools button{min-width:44px;min-height:40px}.safety-details summary{color:#164f91;cursor:pointer;min-height:24px;width:fit-content;font-weight:600}.safety-details[open] summary{margin-bottom:5px}.safety-details{max-height:24vh;overflow:auto}#messages{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:12px}#messages:before{min-height:0}#choices,#composer,footer,#status{flex-shrink:0}#choices{max-height:26vh;overflow:auto}#composer{padding-bottom:max(12px,env(safe-area-inset-bottom))}#composer.credentials{max-height:42%;overflow:auto}header #restart{width:44px;height:44px}footer{padding:8px 22px max(8px,env(safe-area-inset-bottom));line-height:1.4}footer strong{font-size:13px}.safety-details summary{font-size:12px}.keyboard-open .chat-toolbar{display:none}.keyboard-open .safety-details{display:none}.keyboard-open footer{padding:5px 14px}.keyboard-open footer strong{font-size:11px}.keyboard-open #choices{max-height:20%}.keyboard-open #composer{padding-bottom:8px}.keyboard-open #composer.credentials{max-height:55%}
@media(max-width:600px){header{height:56px;min-height:56px;padding:6px 10px;gap:7px;flex-wrap:nowrap}header>img{width:30px;height:30px;flex-shrink:0}header>span{white-space:normal;line-height:1.2;font-size:14px;flex:1;min-width:0}header .header-action{font-size:0;width:40px;height:40px;padding:0;flex-shrink:0}header .header-action:before{content:'↓';font-size:24px}header #restart{font-size:25px;width:40px;height:40px;flex-shrink:0}.chat-toolbar{min-height:44px}.chat-toolbar .preview{font-size:13px;padding:7px 12px}.reading-tools{padding:3px 8px;gap:4px}.reading-tools>span{display:none}.reading-tools output{font-size:12px;min-width:30px}.reading-tools button{min-width:40px;min-height:38px;padding:3px 7px}#messages{padding:12px 10px;gap:12px}.turn.bot{padding-left:30px}.avatar{width:24px;height:24px;padding:4px}.bubble{padding:11px 13px;line-height:1.45}.stamp{margin-top:4px}.turn{max-width:100%}.turn.user{max-width:90%}#choices{padding:8px 10px;gap:7px}.choice{padding:10px 12px;min-height:44px}#composer{min-height:58px;padding:7px 10px;gap:8px}#composer input{padding:9px 2px;font-size:max(16px,var(--chat-font-size))}#send{min-width:44px;min-height:44px}footer{padding:7px 12px max(7px,env(safe-area-inset-bottom))}footer strong{font-size:12px}.safety-details summary{font-size:12px;line-height:24px}.safety-details span{font-size:13px}.keyboard-open header{height:48px;min-height:48px}.keyboard-open #messages{padding-top:9px}.keyboard-open .stamp{display:none}#composer.credentials{padding:9px 12px;gap:8px}.password-field>label{margin-bottom:3px}.password-toggle{min-height:44px}.keyboard-open #composer.credentials .hint{font-size:12px}.keyboard-open #composer.credentials .password-field{flex-basis:100%}.keyboard-open #composer.credentials #send{min-height:40px;padding:8px 14px}}
@media(max-width:600px){.keyboard-open #composer.credentials #send{position:sticky;bottom:0;z-index:1;box-shadow:0 -5px 10px #fff;width:100%;flex-shrink:0}.keyboard-open #composer.credentials{scroll-padding-bottom:52px}.keyboard-open .password-field{scroll-margin-bottom:52px}}

#composer.credentials{overflow:hidden}.composer-fields{display:flex;flex-wrap:wrap;gap:10px;flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scroll-padding:8px}#composer.credentials .composer-fields .password-field{max-width:none}#composer.credentials #send{flex-shrink:0}@media(max-width:600px){#composer.credentials{flex-direction:column;align-items:stretch;flex-wrap:nowrap}.composer-fields{width:100%;flex-shrink:1}.keyboard-open #composer.credentials #send{position:static;box-shadow:none;flex-shrink:0}.keyboard-open #composer.credentials{scroll-padding-bottom:0}.keyboard-open .password-field{scroll-margin-bottom:0}}
