/* Navigation stays short; appearance and account controls stay at top right. */
html:root .hs-team-sidebar,html:root .ph-sidebar{padding:16px 12px;gap:2px}
html:root .hs-team-brand,html:root .ph-sidebar-brand{padding:0 8px 12px;flex-shrink:0}
html:root .hs-team-label,html:root .ph-sidebar-label{margin:12px 10px 5px;line-height:1.5;flex-shrink:0}
html:root .hs-team-helpers,html:root .ph-helpers{gap:3px;flex-shrink:0}
html:root .hs-team-helper,html:root .ph-helper{padding:8px 10px;min-height:58px;gap:11px}
html:root .hs-team-helper strong,html:root .ph-helper strong{font-size:14px;line-height:1.5}
html:root .hs-team-helper small,html:root .ph-helper small{font-size:11px;line-height:1.5;margin-top:2px}
html:root .hs-team-learning,html:root .ph-space-nav{flex-shrink:0}
html:root .hs-team-ready #hsNav .hs-nav-btn,html:root .ph-space-link{min-height:44px;padding:8px 12px;line-height:1.5}
html:root .ph-sidebar-bottom{padding-top:12px}
html:root .hs-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
html:root .hs-header-actions .hs-theme-toggle,html:root .hs-header-actions .hs-avatar-button,html:root .ph-account-menu>summary{display:grid;place-items:center;width:44px;height:44px;min-height:44px;box-sizing:border-box;padding:0;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;font:inherit;flex-shrink:0}
html:root .hs-header-actions .hs-theme-toggle>span{display:none}
html:root .hs-header-actions :is(.hs-theme-toggle,.hs-avatar-button):hover,html:root .ph-account-menu>summary:hover{background:var(--surface-raised)}
html:root .hs-header-actions .hs-avatar-menu{margin:0;display:block}
html:root .hs-header-actions .hs-avatar-popover{top:calc(100% + 8px);bottom:auto;right:0;left:auto;width:230px;max-width:calc(100vw - 32px);box-sizing:border-box;background:var(--surface);color:var(--text);text-align:start}
html:root .hs-header-actions .hs-avatar-popover :is(button,a){display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:14px;text-align:start;text-decoration:none;cursor:pointer}
html:root .hs-header-actions .hs-avatar-popover :is(button,a):hover{background:var(--surface-raised)}
.hs-owner .hs-header-actions .hs-avatar-popover::before{content:'Owner';font-size:11px;color:var(--muted);padding:5px 12px}
html:root .ph-account-menu{position:relative}
html:root .ph-account-menu>summary{list-style:none}
.ph-account-menu>summary::-webkit-details-marker{display:none}
html:root .ph-account-actions{position:absolute;inset:calc(100% + 8px) 0 auto auto;width:240px;max-width:calc(100vw - 32px);box-sizing:border-box;z-index:55;padding:8px;display:grid;gap:4px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 12px 36px #0002}
.ph-account-menu:not([open])>.ph-account-actions{display:none}
html:root .ph-account-actions :is(.ph-text,.ph-button){width:100%;text-align:start;justify-content:flex-start;min-height:44px;margin:0;border:0;border-radius:8px;padding:8px 12px;font:inherit;font-size:14px;background:transparent;color:var(--text)}
html:root .ph-account-actions :is(.ph-text,.ph-button):hover{background:var(--surface-raised)}
html:root .ph-account-actions .hs-owner-role{justify-self:start;margin:4px 12px}
html:root .hs-header-actions :focus-visible{outline:2px solid var(--ring);outline-offset:3px}
html:root .hs-team-ready .hs-voice-state{background:var(--surface-raised);color:var(--text);border:1px solid var(--line)}
/* The composer keeps its mode menu and call controls within reach. */
html:root .hs-team-ready .hs-voice{position:relative}
html:root .hs-chat-view .hs-voice-heading,html:root .hs-team-ready .hs-voice [data-v=textHint]{display:none}
html:root .hs-chat-view.hs-voice-view .hs-team-welcome{display:none}
html:root body.homeschool-app.hs-team-ready.hs-chat-view.hs-voice-view .hs-team-workspace>.hs-assistant{flex:1;min-height:0}
html:root .hs-chat-view.hs-voice-view .hs-voice [data-v=voicePanel]{flex:1;min-height:0;max-width:none;display:flex;flex-direction:column;overflow:hidden;padding:0;border:0;background:transparent}
html:root .hs-voice [data-v=voiceBody]{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 4px 16px;scroll-padding:12px}
html:root .hs-voice [data-v=voiceBody]>p{margin:8px 0;line-height:1.6;font-size:14px}
html:root .hs-voice [data-v=time]:empty{display:none}
html:root .hs-voice .hs-voice-state{min-height:0;padding:12px}
html:root .hs-voice [data-v=settings]{margin:10px 0 0;padding-top:6px}
html:root .hs-team-ready .hs-voice .learn-ask,html:root .hs-team-ready .hs-voice .learn-followup-form{position:relative;flex-wrap:wrap;align-items:flex-start;padding:10px 10px 62px;gap:4px;min-height:116px;flex-shrink:0}
html:root .hs-team-ready .hs-voice [data-v=textPanel] .learn-ask input,html:root .hs-team-ready .hs-voice #learnFollowupInput{flex:1 0 100%;width:100%;box-sizing:border-box;min-height:44px}
html:root .hs-team-ready .hs-voice :is(.learn-ask,.learn-followup-form) button[type=submit]{position:absolute;bottom:10px;right:10px;margin:0;min-width:44px;min-height:44px}
html:root .hs-composer-tools{position:absolute;bottom:10px;left:16px;right:96px;display:flex;align-items:center;gap:8px;min-height:44px;z-index:5}
html:root .hs-composer-mode{position:relative;border:0;margin:0;padding:0;margin-right:auto}
html:root .hs-composer-mode>summary{font-size:13px;list-style:none;display:flex;align-items:center;min-height:44px;min-width:44px;padding:0 10px;border-radius:99px;cursor:pointer}
.hs-composer-mode>summary::-webkit-details-marker{display:none}
html:root .hs-composer-mode .hs-voice-modes{position:absolute;bottom:calc(100% + 8px);left:0;display:grid;width:180px;max-height:240px;overflow:auto;gap:4px;box-sizing:border-box;margin:0;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 10px 30px #0002}
html:root .hs-composer-mode:not([open])>.hs-voice-modes{display:none}
html:root .hs-composer-mode .hs-voice-modes button{text-align:start;border-radius:8px;padding:8px 12px;min-height:44px;color:var(--text)}
html:root .hs-composer-tools :is([data-v=voiceShortcut],[data-v=callActions]>.button){width:44px;height:44px;min-height:44px;min-width:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:50%;padding:0;border:1px solid var(--line);background:var(--surface-raised);color:var(--text);cursor:pointer}
html:root .hs-composer-tools [data-v=start]{background:var(--accent);color:var(--accent-ink)}
html:root .hs-composer-tools [data-v=end]{background:#b3342c;color:white;border-color:#b3342c}
html:root .hs-composer-tools [data-v=mute][aria-pressed=true]{background:#b3342c;color:white;border-color:#b3342c}
html:root .hs-voice-view .hs-composer-tools{position:relative;inset:auto;flex-shrink:0;flex-wrap:wrap;padding:8px 10px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-sizing:border-box;margin-top:8px}
html:root .hs-composer-tools [data-v=callActions]{display:flex;flex-wrap:wrap;gap:8px;flex:0 1 auto;margin-left:auto}
html:root .hs-composer-tools [hidden]{display:none!important}
html:root .ph-ai.ph-workspace-composer{position:relative}
html:root .ph-ai.ph-workspace-composer>p{display:none}
html:root .ph-workspace-composer .ph-question{flex-wrap:wrap;padding:10px;gap:4px;min-height:116px}
html:root .ph-workspace-composer .ph-question input{flex:1 0 100%;width:100%;box-sizing:border-box}
html:root .ph-workspace-composer .ph-question button{margin-left:auto}
html:root .ph-ai.ph-workspace-composer .ph-composer-top{position:absolute;bottom:10px;left:16px;right:96px;display:flex;align-items:center;gap:8px;height:44px;margin:0;z-index:5}
html:root .ph-composer-mode{position:relative;margin-right:auto}
html:root .ph-composer-mode>summary{list-style:none;font-size:13px;min-height:44px;display:flex;align-items:center;padding:0 10px;border-radius:99px;cursor:pointer}
.ph-composer-mode>summary::-webkit-details-marker{display:none}
html:root .ph-composer-mode .ph-composer-modes{position:absolute;bottom:calc(100% + 8px);left:0;display:grid;width:180px;box-sizing:border-box;margin:0;padding:6px;gap:4px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 10px 30px #0002}
html:root .ph-composer-mode:not([open])>.ph-composer-modes{display:none}
html:root .ph-composer-mode .ph-composer-modes button{text-align:start;min-height:44px;border-radius:8px;padding:8px 12px;color:var(--text)}
html:root .ph-voice-shortcut{display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text);padding:0;cursor:pointer}
html:root .ph-voice-shortcut svg{color:var(--text)}
@media(max-width:520px){
  html:root .hs-team-toolbar,html:root .ph-workspace-toolbar{gap:8px}
  html:root .hs-team-current,html:root .ph-identity{min-width:0;overflow:hidden}
  html:root .hs-team-current>div{min-width:0}
  html:root #hsTeamTitle,html:root .ph-role-title{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
  html:root .hs-team-current p,html:root .ph-role-brief,html:root .ph-new-activity{display:none}
  html:root .hs-header-actions{gap:8px}
}
@media(max-height:700px){
  html:root .hs-team-helper,html:root .ph-helper{min-height:44px;padding-block:5px}
  html:root .hs-team-helper small,html:root .ph-helper small{display:none}
  html:root .hs-team-brand,html:root .ph-sidebar-brand{padding-bottom:6px}
  html:root .hs-team-label,html:root .ph-sidebar-label{margin-top:8px}
}
