.becario-app{color-scheme:light;background:#eff5f9}
.becario-app #app-view:not([hidden]){display:block!important;min-height:100dvh;padding:0}
.becario-app #app-view>.sidebar,.becario-app .workspace>.faculty-logo,.becario-app #coverage-stamp,.becario-app .login-story{display:none!important}
.becario-app .workspace,.becario-app #content{display:block;max-width:100%;min-width:0;height:auto;margin:0;padding:0;overflow:visible}
.becario-app .login-layout:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr)}
.becario-app .login-side{min-height:100dvh}.becario-app .login-box{margin:auto}
.becario-login-mark{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.becario-login-mark img{border-radius:14px}.becario-login-mark h1{font-size:1.8rem;margin:0;color:var(--ink)}
.becario-app .becario-install{justify-self:start;margin-top:14px}
.becario-home,.becario-thread,.becario-prompt{font-family:system-ui,sans-serif}
.becario-home{box-sizing:border-box;min-height:100svh;min-height:100dvh;max-width:850px;margin:auto;background:white;color:#2e2e2d;display:flex;flex-direction:column;padding-bottom:max(16px,env(safe-area-inset-bottom))}
.becario-home header,.becario-app dialog.becario-thread .agent-consultation-heading{background:#003c7f;color:white}
.becario-home header{display:flex;align-items:center;gap:12px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px}
.becario-home header img,.becario-thread .agent-consultation-mark img{width:38px;height:38px;object-fit:contain}
.becario-home h1{font:700 23px/1.2 system-ui;margin:0;color:white;flex:1}
.becario-home button{font:inherit;cursor:pointer}.becario-home header button{width:46px;height:46px;border:0;color:white;background:transparent}
.becario-home svg,.becario-dictate svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.becario-home label.becario-mail{display:flex;align-items:center;gap:10px;margin:10px 18px;color:#425665;font-size:14px}
.becario-mail select{width:auto;max-width:80%;border:0;background:white;color:#003c7f;font-weight:650}
.becario-launch{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:18px}
.becario-talk{display:grid;justify-items:center;gap:14px;background:none;border:0;color:#003c7f;font-weight:700!important;font-size:24px!important}
.becario-talk span{width:clamp(112px,min(48vw,33dvh),224px);aspect-ratio:1;display:grid;place-items:center;background:#003c7f;border-radius:50%;color:white;box-shadow:0 0 0 8px #e4f0fa}
.becario-talk svg{width:43%;height:43%}.becario-type{background:white;border:1px solid #a9bdce;color:#003c7f;border-radius:30px;padding:10px 26px;min-height:44px}
.becario-history{margin:14px 18px 0;border:0;border-radius:14px;padding:14px 18px;display:flex;gap:14px;align-items:center;text-align:left;color:#003c7f;background:#e8f2fa}.becario-history span{flex:1;font-weight:700}.becario-history small{display:block;font-size:13px;font-weight:450}
.becario-app dialog.becario-thread{--ink:#233249;--muted:#526677;--line:#d2e0eb;--surface:#fff;--soft:#e4eff7;--primary:#003c7f;color-scheme:light;border:0;border-radius:0;background:#eff5f9;inset:var(--agent-viewport-top,0px) 0 auto;width:min(100%,850px);height:var(--agent-viewport-height,100dvh);max-height:none;margin:0 auto;box-shadow:none}
.becario-thread .agent-consultation-heading{padding:calc(8px + env(safe-area-inset-top)) 12px 8px;display:flex;gap:8px;align-items:center}
.becario-thread .agent-consultation-title{flex:1;min-width:0}.becario-thread .agent-consultation-title h2,.becario-thread .agent-consultation-title p{color:white}.becario-thread .agent-consultation-title h2{font-size:18px;overflow-wrap:anywhere}
.becario-thread .agent-consultation-heading .agent-consultation-mark{display:grid;order:3;background:none}.becario-thread .agent-consultation-close{color:white;background:transparent;border:none;min-width:44px;min-height:44px}
.becario-thread .agent-consultation-actions{display:contents}.becario-thread [data-agent-close]{order:-1}.becario-thread .agent-consultation-heading [data-agent-new],.becario-thread .agent-starters,.becario-thread .agent-chat-empty,.becario-thread .agent-history-heading h3{display:none!important}
.becario-thread .agent-chat-log{background:#eff5f9;padding:14px clamp(10px,3vw,24px);overscroll-behavior:contain}.becario-thread .agent-chat-log ol[role=log]>li.agent-answer{border:0;border-top:4px solid #00a7ff;border-radius:14px;background:white;padding:15px;color:#233249}
.becario-thread .agent-chat-log .becario-initial{font-size:13px}.becario-initial summary{cursor:pointer;padding:6px}
.becario-thread .agent-consultation-footer{background:#003c7f;padding:7px 12px max(10px,env(safe-area-inset-bottom));border:0}
.becario-thread .agent-consultation-status,.becario-thread .agent-consultation-stop{color:white}.becario-thread .agent-consultation-compose{background:transparent}
.becario-thread .agent-consultation-compose textarea{min-height:46px;max-height:20dvh;border-radius:14px;border:1px solid #759fc8;background:#164f8d;color:white;font-size:16px}
.becario-thread .agent-consultation-compose textarea::placeholder{color:#eef6ff;opacity:1}
.becario-thread .agent-file-attach,.becario-thread .agent-consultation-send{background:#fff;color:#003c7f}
.becario-dictate{min-width:44px;height:44px;border:0;border-radius:50%;padding:9px;display:inline-grid;place-items:center;cursor:pointer;background:#003c7f;color:white}
.becario-thread .becario-dictate{background:white;color:#003c7f}.becario-dictate[data-recording=true]{background:#aa2439;color:white}.becario-dictate[data-recording=true] svg{display:none}.becario-dictate[data-recording=true]:after{content:'';background:currentColor;width:15px;height:15px;border-radius:2px}
.becario-voice-actions:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.becario-voice-actions button{border:1px solid #aabac8;border-radius:8px;background:white;color:#183553;min-height:44px}.becario-thread .becario-voice-actions output{color:white}
.becario-thread .agent-history{background:white;color:#233249}.agent-history li:has(.agent-rename){display:flex;align-items:center;flex-wrap:wrap}.agent-history-open{min-width:0;flex:1 1 130px}.agent-history-open small{display:block;color:#23577c}.agent-rename{font-size:13px;min-height:44px}
.becario-prompt{max-width:min(92vw,410px);border:1px solid #c9d9e5;border-radius:16px;padding:20px;background:white;color:#243448}.becario-prompt h2{margin:0 0 16px;font-size:21px}.becario-prompt::backdrop{background:#08234070}.becario-prompt-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.becario-app :focus-visible,.becario-prompt :focus-visible{outline:3px solid #009bd4;outline-offset:2px}.becario-thread .agent-consultation-heading :focus-visible,.becario-thread .agent-consultation-footer :focus-visible{outline-color:#ffdf8e}
.becario-app #content:has(.account-grid){max-width:850px;margin:auto;padding:18px}
@media(max-height:510px) and (orientation:landscape){.becario-launch{flex-direction:row}.becario-talk span{width:88px}.becario-home header{padding-block:3px}}


.becario-talk[data-recording=true] span{background:#af273c;box-shadow:0 0 0 8px #f7e0e3}
.becario-talk[data-recording=true] svg{display:none}.becario-talk[data-recording=true] span:after{content:'';width:29%;height:29%;border-radius:12%;background:white}
.becario-launch .becario-voice-actions{justify-content:center}.becario-launch .becario-voice-actions:not([hidden])~.becario-type{display:none}
.becario-thread .agent-chat-log .agent-chat-empty[hidden],.becario-thread .agent-chat-log [hidden],.becario-launch [hidden],.becario-voice-actions [hidden]{display:none!important}

.becario-thread .agent-consultation-stop{color:#003c7f;background:#fff}.becario-thread .agent-consultation-activity:has([data-phase=""]):has(.agent-consultation-stop[hidden]){display:none}
.becario-thread .agent-consultation-compose{display:grid;align-items:center;grid-template-columns:44px minmax(0,1fr) auto auto;gap:5px;padding:0;border:0}
.becario-thread .agent-consultation-compose textarea{grid-column:2;grid-row:1;margin:0;height:46px;padding:10px 12px}
.becario-thread .agent-compose-actions{display:contents}.becario-thread .agent-file-attach{grid-column:1;grid-row:1;width:44px;justify-content:center;background:transparent;color:#fff;border:0}
.becario-thread .agent-file-attach span,.becario-thread .agent-consultation-send:disabled{display:none}
.becario-thread .becario-dictate{grid-column:3;grid-row:1}.becario-thread .agent-consultation-send{grid-column:4;grid-row:1;width:44px;height:44px;border-radius:50%}
.becario-thread .becario-voice-actions,.becario-thread .agent-file-selection{grid-column:1/-1}
.becario-thread .agent-consultation-compose textarea:focus-visible{outline:2px solid #ffdf8e;outline-offset:1px}
.becario-thread .agent-history-actions .button,.agent-history-delete{min-height:44px;min-width:44px}
.becario-thread .agent-history ul>li:first-child{border-radius:12px;background:#e4f1fb}.becario-thread .agent-history{padding:14px;border-radius:12px}
.becario-app .login-story,.becario-app .mobile-toolbar,.becario-app .mobile-bottom-nav{display:none!important}

/* The same radii frame the conversation, its controls and the installation screen. */
.becario-app{--becario-bar-radius:20px;--becario-card-radius:16px;--becario-control-radius:14px}
.becario-app .becario-home{background:#f7fafc}
.becario-home header,.becario-app dialog.becario-thread .agent-consultation-heading{
 margin:5px 6px 0;border-radius:var(--becario-bar-radius);padding-inline:12px
}
.becario-thread .agent-consultation-footer{
 margin:0 6px max(5px,env(safe-area-inset-bottom));border-radius:var(--becario-bar-radius);padding:8px
}
.becario-app :is(.panel,.badge,.agent-history,.agent-history-open,.agent-linked-card,.agent-pdf-card,.agent-file-selection,.agent-consultation-status,.becario-mail select,.agent-case-context){border-radius:var(--becario-control-radius)}
.becario-app :is(button,.button,.agent-consultation-close,.agent-consultation-stop,.agent-history-delete,.agent-rename,.agent-file-attach){border-radius:var(--becario-control-radius)}
.becario-app .becario-type,.becario-app .becario-dictate,.becario-app .agent-consultation-send{border-radius:999px}
.becario-app .becario-talk,.becario-app .becario-talk span{border-radius:50%}
.becario-app .becario-history,.becario-app .agent-chat-log ol[role=log]>li,.becario-app .agent-history li,.becario-app #notice,.becario-app .login-box{border-radius:var(--becario-card-radius)}
.becario-app .becario-home header button{background:transparent}.becario-app .agent-pdf-viewer>header,.becario-app .agent-pdf-viewer>footer{border-radius:14px}
.becario-prompt{border-radius:20px}.becario-prompt .button{border-radius:14px}
@media(prefers-reduced-motion:reduce){.becario-app *, .becario-app *::after,.becario-app *::before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.becario-history-day{flex:1 0 100%;font-weight:650;padding:6px 9px;color:#526677}

.becario-chat-title{display:inline-block;min-height:44px;max-width:100%;margin:-6px 0;padding:6px 0;border:0;background:transparent;color:white;text-align:left;overflow-wrap:anywhere;font:inherit;cursor:pointer}
.becario-chat-title::after{content:'';display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 4px 3px 8px}
.becario-chat-title[aria-expanded=true]::after{transform:rotate(225deg)}
.becario-thread .agent-chat-log .agent-answer .agent-reply-format{font-size:17px;line-height:1.53}
.becario-thread .agent-chat-log .agent-answer .agent-reply-format p{font-size:inherit;line-height:inherit}
