/* Minimal SchoolOS 8.3. Keep text inputs >=16px to avoid iOS focus zoom. */
:root{--accent:#527267;--accent-soft:#e9f0eb}
html{overflow-x:hidden;-webkit-text-size-adjust:100%}body{overflow-x:hidden}
.topbar{gap:8px}.breadcrumbs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1;font-size:13px}.top-actions{gap:8px;flex-shrink:0}.top-plus{width:42px;min-width:42px;height:42px;padding:0;font-size:25px;font-weight:500;border-radius:12px}.top-search{width:42px;height:42px;border:1px solid #dbe3dd;border-radius:12px;font-size:27px;line-height:1;background:#fff;color:#3c5a50}.save-chip{display:none!important}
.section-head{margin-bottom:16px}.section-head p,.next-welcome p{display:none!important}.section-head h1{margin-bottom:0}.eyebrow{display:none}.next-grid{margin:12px 0;gap:12px}.card{padding:17px}.card h2{margin-bottom:12px}.card>p.small.muted,.agent-workspace .tag{display:none}.next-grid.two{align-items:start}
.wizard-step[hidden],.wizard-controls [hidden]{display:none!important}.wizard-controls{display:flex;gap:8px;margin-top:16px}.wizard-controls .button{min-width:96px}.compact-wizard .field{margin-bottom:0}.compact-wizard .field textarea{min-height:115px}.compact-wizard .agent-consent{font-size:13px;align-items:center}.agent-workspace{max-width:680px}.next-grid.two>.card{min-width:0}
.field input,.field textarea,.field select,.modal input,.modal textarea,.modal select{font-size:16px!important;max-width:100%;min-width:0}.field{min-width:0}.field input[type=date]{width:100%;min-width:0;max-width:100%;display:block}.next-grid .card,.modal{overflow-x:hidden}
@media(max-width:760px){.topbar{padding:0 12px!important;height:60px!important}.top-actions{gap:6px}.breadcrumbs{font-size:12px!important}.top-plus,.top-search{width:40px;min-width:40px;height:40px}.body-area main{padding:18px 13px 65px!important}.section-head h1{font-size:25px}.card{padding:16px!important}.next-grid,.next-grid.two{grid-template-columns:minmax(0,1fr)!important}.sidebar{max-width:84vw}.subject-tab-group{gap:4px}.subject-tab-group .tab{padding:8px}.modal{max-width:calc(100vw - 24px)}.next-welcome{padding:15px!important}}

.chat-shell{max-width:780px;display:flex;flex-direction:column;min-height:min(69vh,690px);gap:12px}.chat-history{flex:1;min-height:210px;max-height:56vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:5px 2px}.chat-bubble{align-self:flex-start;max-width:86%;padding:12px 15px;border-radius:17px;background:#eef1ed;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.chat-bubble.mine{align-self:flex-end;background:#dce8e1}.chat-bubble small{display:block;margin-top:8px;color:#506c62}.chat-intro{margin:auto;color:#688077;text-align:center}.chat-bottom{display:flex;gap:8px;align-items:end}.chat-bottom textarea{flex:1;resize:vertical;min-height:55px;max-height:140px;font-size:16px;border-radius:13px}.chat-bottom button{height:52px;min-width:52px;padding:0;border-radius:12px}.chat-settings{font-size:12px;margin-top:10px}.chat-settings summary{cursor:pointer;color:#536c61}.chat-settings input{font-size:16px;width:100%;margin-top:8px}.chat-settings small{display:block;color:#63776d;margin-top:4px}@media(max-width:760px){.chat-shell{min-height:calc(100dvh - 183px);padding:12px!important}.chat-history{max-height:calc(100dvh - 315px)}.chat-bubble{max-width:93%}}

.chat-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.chat-sources a{font-size:12px;color:#41685c;border:1px solid #bdcec6;border-radius:8px;padding:5px 8px;text-decoration:none;overflow-wrap:anywhere}
