/* Shared content layout. Android owns its own persistent header and tabs. */
:root{--professor-height:100dvh;--pc-ink:#12273a;--pc-accent:#117968;--pc-border:#dce5e8;--pc-paper:#f4f7f6}
body{background:var(--pc-paper);color:var(--pc-ink)}
[hidden]{display:none!important}
.pc-btn-primary{background:var(--pc-accent);border-color:var(--pc-accent);color:white}
.pc-header{background:#12273a;color:#fff;border:0;padding:12px 20px}
.pc-brand,.pc-header .pc-text-btn,.pc-header .pc-mode-link{color:#fff}
.pc-brand small{color:#becfd6}
.pc-mark{background:#c5eedc;color:#143f37;border-radius:13px}
.pc-status{font-size:11px;max-width:160px}
.pc-release-note{font-size:11px;margin:0;padding:6px 16px;min-height:0;background:#eaf0ee}
.pc-apk-button{font-size:11px;padding:5px 10px}
.pc-access-shell{overflow:auto}
.pc-card{border:1px solid var(--pc-border);box-shadow:0 4px 20px #18342905;border-radius:18px}
.pc-eyebrow{color:#578277;letter-spacing:.12em;font-size:10px}
.pc-launcher{max-width:920px;margin:auto;padding:28px 22px 24px}
.pc-launcher-heading h1{font-size:clamp(30px,6.8vw,48px);letter-spacing:-.045em;line-height:1.05;max-width:600px;margin:10px 0 14px}
.pc-launcher-heading>p:last-child{max-width:470px;color:#596d78;line-height:1.6;font-size:14px}
.pc-launcher-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:28px 0 30px}
.pc-launcher-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:210px;border:1px solid #d3e1dc;border-radius:22px;padding:22px;background:white;box-shadow:0 8px 25px #152d2605;gap:18px;color:#193b35}
.pc-launcher-card strong{font-size:20px;line-height:1.15;letter-spacing:-.02em;display:block}
.pc-launcher-card small{font-size:13px;line-height:1.6;display:block;margin-top:8px;color:#586d66}
.pc-launcher-card>span:last-child{align-self:flex-end;margin-top:auto}
.pc-launcher-chat{background:#143d37;color:white;border-color:#143d37}
.pc-launcher-chat small{color:#c4dcd4}
.pc-launcher-symbol{height:42px;width:42px;display:grid;place-items:center;border-radius:14px;background:#eef5f1;font-weight:800;font-size:20px;color:#25695a}
.pc-launcher-chat .pc-launcher-symbol{background:#c4efd9}
.pc-home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.pc-home-shortcuts button{padding:16px 10px;border:1px solid #dbe5df;border-radius:14px;background:#fff;color:#304f44;font-weight:600;font-size:12px}
.pc-launcher-section-title{font-size:14px;margin-bottom:12px}
.pc-release-card{margin:0 20px 16px;padding:18px;border-radius:16px}
.pc-release-card h2{font-size:17px}
.pc-release-card p{font-size:12px}
.pc-current-footer{padding:8px;font-size:10px}
.pc-conversation-heading{display:flex;align-items:center;gap:12px;min-width:0}
.pc-back-home{width:38px;height:38px;border:1px solid var(--pc-border);background:#fff;border-radius:12px;flex-shrink:0;color:var(--pc-ink);font-size:21px}
.pc-thread-toolbar{margin:0;border:0;background:transparent;padding:10px 16px;display:flex;align-items:center;gap:8px;flex-shrink:0}
.pc-thread-toolbar h2{font-size:15px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:36vw}
.pc-thread-toolbar .pc-eyebrow{margin:0 0 3px}
.pc-thread-toolbar-actions{margin-left:auto;gap:6px}
.pc-thread-toolbar-actions .pc-btn{padding:8px 10px;min-height:36px;font-size:11px;border-radius:10px}
.pc-thread-toolbar-actions [data-rename-thread]{display:none}
.pc-conversation-card{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:visible;padding:0!important;gap:0!important;margin:0!important}
.pc-conversation-card>.pc-card-head{flex:0 0 auto;padding:10px 16px;border-bottom:1px solid #edf2f0;margin:0}
.pc-conversation-card>.pc-card-head h2,.pc-conversation-card>.pc-card-head h3{font-size:14px}
.pc-conversation-card>.pc-card-head .pc-eyebrow{display:none}
.pc-conversation-card .pc-voice-state{font-size:10px}
.pc-conversation{flex:1 1 0;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:16px!important;background:#fbfcfb}
.pc-message{max-width:90%;font-size:14px;line-height:1.6;border-radius:16px}
.pc-message-user{background:#e6f2ec}
.pc-chat-form{flex:0 0 auto;position:relative;display:flex;flex-direction:column;gap:8px;padding:12px!important;background:#fff;border-top:1px solid var(--pc-border);border-radius:0 0 18px 18px;min-height:0!important}
#messageInput{min-height:58px!important;height:58px;max-height:110px;resize:none;border:1px solid #d7e3dd;border-radius:14px;padding:12px 14px;font-size:16px;line-height:1.45;background:#f6f9f7;color:#183a30;box-shadow:none}
#messageInput:focus{outline:2px solid #4ba892;outline-offset:1px}
.pc-composer-bar{display:flex;align-items:center;gap:7px}
.pc-composer-bar>.pc-btn{min-height:40px;padding:9px 12px;font-size:12px;border-radius:11px;white-space:nowrap}
.pc-composer-options{margin-right:auto}
.pc-composer-options>summary{cursor:pointer;list-style:none;font-size:12px;padding:10px 5px;color:#47635a;font-weight:650}
.pc-composer-options>summary::-webkit-details-marker{display:none}
.pc-composer-popover{position:absolute;bottom:calc(100% - 2px);left:8px;right:8px;z-index:35;padding:16px;border:1px solid #ceded5;box-shadow:0 -8px 32px #193a3226;background:white;border-radius:18px;max-height:min(330px,55vh);overflow-y:auto;display:grid;gap:12px}
.pc-compose-tools{display:flex;gap:6px;flex-wrap:wrap}
.pc-compose-tools .pc-file-button{border:1px solid #d4e4d9;border-radius:10px;padding:10px 12px;background:#f4f8f5;font-size:12px}
.pc-lane-selector{flex-wrap:wrap}
.pc-voice-language{display:flex;align-items:center;gap:10px;font-size:12px}
.pc-voice-language select{min-width:0;flex:1;font-size:12px;padding:8px;border-radius:8px}
.pc-composer-popover .pc-hint{font-size:11px;margin:0;line-height:1.45}
.pc-listen-row{font-size:12px}
.pc-evidence-drawer{flex:0 0 auto;border-top:1px solid #e6ede8;font-size:11px;background:#f5f8f6;position:relative}
.pc-evidence-drawer>summary{cursor:pointer;padding:7px 16px;color:#526c61}
.pc-evidence-drawer[open] #sourcePanel{max-height:180px;overflow-y:auto}
#sourcePanel{margin:0;padding:8px 16px}
#chatNotice{font-size:11px;line-height:1.3;max-height:38px;overflow-y:auto;margin:0;color:#46695a}
#chatNotice:empty{display:none}
.pc-voice-attachment{max-height:100px;overflow-y:auto;margin:0;font-size:12px}
.pc-app-dock{height:60px;min-height:60px;padding:7px 12px;background:#12273a;border:0;box-shadow:0 -3px 16px #132e2312}
.pc-app-dock button,.pc-app-dock a{color:#cfddd9;font-size:12px;border-radius:12px;padding:12px}
.pc-app-dock [aria-current="page"]{background:#d3f2e3;color:#123e32}
.pc-thread-drawer{position:absolute;top:60px;bottom:6px;left:12px;right:12px;z-index:40;overflow-y:auto;background:white;padding:18px;border:1px solid var(--pc-border);border-radius:18px;box-shadow:0 8px 35px #142b3033;max-height:none}
.pc-mobile-panel{position:absolute;inset:8px 12px;z-index:30;overflow-y:auto;max-height:none;background:#fff;border-radius:18px;box-shadow:0 10px 35px #183a2926}
body[data-professor-ready="true"][data-mode="mobile"]{height:var(--professor-height);min-height:0;overflow:hidden}
body[data-professor-ready="true"] .pc-mobile-app{height:var(--professor-height);min-height:0;max-height:var(--professor-height);display:flex;flex-direction:column;padding:0;overflow:hidden;width:100%;max-width:none}
body[data-professor-ready="true"] .pc-mobile-app>.pc-header,body[data-professor-ready="true"] .pc-mobile-app>.pc-release-note{flex:0 0 auto}
body[data-professor-ready="true"] .pc-mobile-workspace{flex:1 1 0;min-height:0;height:auto;max-height:none;display:flex;overflow:hidden;padding:0;margin:0}
body[data-professor-ready="true"] .pc-mobile-home{flex:1 1 0;min-height:0;height:auto;display:flex;flex-direction:column;overflow:hidden;padding:0 0 60px;position:relative;width:100%}
body[data-professor-screen="home"] #professorHome{overflow-y:auto;flex:1 1 0;min-height:0;width:100%}
body[data-professor-screen="conversation"] .pc-release-card,body[data-professor-screen="conversation"] .pc-mobile-footer{display:none}
#conversationWorkspace{flex:1 1 0;min-height:0;height:auto;display:flex;flex-direction:column;padding:0 12px 10px;position:relative;overflow:hidden}
#conversationWorkspace>.pc-conversation-card{flex:1 1 0;width:100%;min-height:0;height:auto;max-width:900px;align-self:center}
body[data-professor-ready="true"]>.pc-current-footer{display:none}
html[data-native-shell="true"] .pc-header,html[data-native-shell="true"] .pc-app-dock,html[data-native-shell="true"] .pc-current-footer,html[data-native-shell="true"] .pc-release-note{display:none!important}
html[data-native-shell="true"] body[data-professor-ready="true"] .pc-mobile-home{padding-bottom:0}
html[data-android-app="true"] a[href$=".apk"],html[data-android-app="true"] .pc-release-card,html[data-android-app="true"] #installAppBtn{display:none!important}
body[data-mode="studio"] .pc-sidebar{background:#eaf1ed;border-color:#d9e4de;border-radius:20px;padding:18px}
body[data-mode="studio"] .pc-nav button{border-radius:10px;color:#365a48}
body[data-mode="studio"] .pc-nav button.active{background:#143d37;color:white}
body[data-mode="studio"] .pc-view-head h2{font-size:24px;letter-spacing:-.03em}
body[data-mode="studio"] #view-conversation.active{height:calc(var(--professor-height) - 165px);min-height:380px;display:flex;flex-direction:column;gap:12px}
body[data-mode="studio"] #view-conversation>.pc-conversation-card{flex:1 1 0;height:auto}
@media(max-width:680px){
 .pc-header{padding:10px 16px}.pc-brand strong{font-size:15px}.pc-brand small{font-size:10px}.pc-mark{width:34px;height:34px}
 .pc-launcher{padding:24px 20px}.pc-launcher-options{grid-template-columns:1fr;gap:10px;margin:22px 0 24px}
 .pc-launcher-card{flex-direction:row;min-height:112px;padding:18px;gap:14px;border-radius:18px;align-items:center}
 .pc-launcher-card>span:nth-child(2){flex:1}.pc-launcher-card>span:last-child{align-self:center;margin:0}.pc-launcher-card strong{font-size:17px}.pc-launcher-card small{font-size:12px;margin-top:6px;line-height:1.4}
 .pc-launcher-symbol{flex:0 0 42px}.pc-home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pc-thread-toolbar{padding:8px 0}.pc-conversation-card>.pc-card-head{display:none}
 .pc-thread-toolbar-actions .pc-btn{padding:8px}.pc-thread-toolbar h2{max-width:28vw;font-size:13px}
 .pc-release-note>span{display:none}.pc-release-note{display:flex;justify-content:flex-end;padding:3px 12px}
 body[data-professor-screen="conversation"] .pc-release-note{display:none}
 body[data-mode="studio"] .pc-workspace{padding:10px;display:flex;flex-direction:column;gap:10px}
 body[data-mode="studio"] .pc-sidebar{padding:8px;border-radius:14px;position:relative;overflow:visible}
 body[data-mode="studio"] .pc-greeting,body[data-mode="studio"] .pc-sidebar-workspaces,body[data-mode="studio"] .pc-mobile-link{display:none}
 body[data-mode="studio"] .pc-nav{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:6px;position:static}
 body[data-mode="studio"] .pc-nav button{flex:0 0 auto;font-size:11px;padding:10px;white-space:nowrap}
 body[data-mode="studio"] .pc-main{min-height:0;width:100%;overflow:visible}
 body[data-mode="studio"] .pc-view-head h2{font-size:18px}
 body[data-mode="studio"] #view-conversation.active{height:calc(var(--professor-height) - 205px);min-height:250px}
 html[data-native-shell="true"] body[data-mode="studio"] #view-conversation.active{height:calc(var(--professor-height) - 88px);min-height:160px}
 body[data-mode="studio"] .pc-view-head{margin:0;gap:6px}.pc-view-actions{font-size:11px}
 .pc-message{max-width:96%}.pc-mobile-footer{padding:10px;font-size:11px;flex-shrink:0}
}
@media(max-height:530px){.pc-conversation-card>.pc-card-head{display:none}#messageInput{height:44px!important;min-height:44px!important}.pc-chat-form{padding:8px!important;gap:5px}.pc-thread-toolbar{padding-top:4px;padding-bottom:4px}.pc-composer-popover{max-height:45vh}}
/* Supersede the legacy mobile grid at all of its authenticated breakpoints. */
html body[data-mode="mobile"][data-professor-ready="true"] .pc-app.pc-mobile-app{height:var(--professor-height);min-height:0;padding:0;display:flex;flex-direction:column}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-mobile-workspace{flex:1 1 0;overflow:hidden;min-height:0;height:auto;padding:0}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-mobile-home{display:flex;flex-direction:column;overflow:hidden;min-height:0;height:auto;gap:0;padding:0 0 60px}
html[data-native-shell="true"] body[data-mode="mobile"][data-professor-ready="true"] .pc-mobile-home{padding-bottom:0}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar{display:flex;align-items:center;grid-template-columns:none;gap:8px;flex:0 0 auto;padding:8px 0;margin:0;color:#12273a;background:transparent;order:0}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar>div:first-child{display:flex;min-width:0;flex:1}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar h2{color:#12273a;font-size:13px;max-width:28vw}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar-actions{display:flex;flex:0 0 auto;width:auto;gap:6px;margin:0;grid-template-columns:none}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar-actions .pc-btn{width:auto;min-height:36px;padding:8px 10px;font-size:11px}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-conversation-card{display:flex;flex:1 1 0;flex-direction:column;height:auto;min-height:0;overflow:visible;justify-content:flex-start;gap:0;order:1}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-conversation{flex:1 1 0;display:block;height:auto;min-height:0;max-height:none;overflow-y:auto;order:0}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-chat-form{flex:0 0 auto;height:auto;min-height:0;display:flex;flex-direction:column;order:2;gap:8px}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-evidence-drawer{order:1}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-evidence-drawer[open] .pc-source-panel{max-height:150px;overflow-y:auto}

/* R93 equal toolbar targets in the native shell. */
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar-actions .pc-btn,
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar-actions .pc-thread-menu>summary{min-height:44px;height:44px;box-sizing:border-box;padding:8px 10px;font-size:12px;line-height:1.2;display:flex;align-items:center}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar-actions .pc-thread-menu{width:auto}
html body[data-mode="mobile"][data-professor-ready="true"] .pc-thread-toolbar h2{max-width:18vw}
