.help-launch{position:fixed;right:20px;bottom:20px;z-index:1000;background:var(--primary,#2563eb);color:#fff;border:0;border-radius:999px;padding:12px 22px;font:inherit;font-weight:700;box-shadow:0 4px 20px #0003;cursor:pointer;min-height:44px}
.help-panel{position:fixed;inset:auto 20px 76px auto;margin:0;width:min(440px,calc(100vw - 24px));max-height:min(680px,calc(100dvh - 96px));padding:0;border:1px solid #dbe4ef;border-radius:14px;background:white;color:#172338;box-shadow:0 12px 50px #0003;font-family:inherit;z-index:1001}
.help-panel[open]{display:flex;flex-direction:column;overflow:hidden}.help-panel::backdrop{background:#14213d55}.help-panel [hidden]{display:none!important}.help-panel button,.help-panel textarea,.help-panel input{font:inherit}.help-panel button{cursor:pointer;min-height:44px}.help-panel button:disabled{opacity:.6;cursor:wait}.help-panel :focus-visible,.help-launch:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.help-header{display:flex;align-items:center;justify-content:space-between;background:var(--primary,#2563eb);color:white;padding:8px 12px;flex-shrink:0}.help-header h2{font-size:18px;color:white;margin:0}.help-header p{font-size:11px;margin:2px 0 0}.help-header button{background:none;border:0;color:white;font-size:26px;width:44px}
.help-choice{padding:16px}.help-choice p{font-size:17px;font-weight:700}.help-choice button{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#eff6ff;padding:8px;margin:4px 0}
#help-conversation{display:flex;flex-direction:column;min-height:0;overflow:hidden}.help-switch{margin:0 12px;border:0;background:none;color:#1d4ed8;text-decoration:underline;font-size:12px!important;flex-shrink:0}.help-privacy{font-size:11px!important;line-height:1.4;margin:6px 12px;color:#475569;flex-shrink:0}#help-ai-notice{margin:0 12px 6px}
.help-content{max-height:340px;min-height:0;overflow:auto;flex:1 1 auto;padding:0 12px;overscroll-behavior:contain;overflow-anchor:none}.help-intro{font-size:13px;line-height:1.4;margin:6px 0 10px}.help-services{font-size:12px}.help-services h3{font-size:13px;margin:6px 0}.help-services p{font-size:11px;margin:4px 0 8px}.help-service-choices{display:grid;grid-template-columns:1fr 1fr;gap:4px}.help-service-choices button{background:#eff6ff;border:1px solid #cbd5e1;border-radius:8px;color:#1e40af;text-align:left;padding:6px 8px;font-size:12px}.help-service-choices button:last-child{grid-column:1/-1}
.help-topics{display:grid;gap:4px;margin:6px 0}.help-topics button{border:1px solid #cbd5e1;border-radius:8px;background:white;text-align:left;padding:6px 8px;color:#1e40af;font-size:12px}
.help-transcript{padding:0;margin:6px 0}.help-bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5f9;border-radius:9px;padding:8px;margin:5px 0;font-size:13px;line-height:1.4}.help-bubble.user{background:#dbeafe;margin-left:24px}.help-bubble strong{display:block;font-size:11px;margin-bottom:3px}.help-bubble details{margin-top:5px}.help-bubble summary{cursor:pointer;color:#1d4ed8;padding:6px 0;min-height:24px}.help-bubble details p{margin:4px 0;white-space:pre-wrap}.help-links{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px}.help-links a{font-size:12px;min-height:24px;color:#1d4ed8;text-decoration:underline}
.help-actions{display:flex;gap:6px;margin:6px 12px 2px;flex-shrink:0}.help-common-toggle{flex:1;border:1px solid #94a3b8;border-radius:8px;background:#eff6ff;color:#1e40af;padding:6px;font-size:12px!important}#help-common-toggle::after{content:" +"}#help-common-toggle[aria-expanded=true]::after{content:" −"}.help-existing-sign-in{flex-shrink:0;text-align:center;font-size:11px;color:#1e40af;padding:4px 12px;text-decoration:underline}
.help-form{padding:6px 12px;display:grid;grid-template-columns:1fr auto;gap:5px;flex-shrink:0}.help-form label{grid-column:1/-1;font-size:12px;font-weight:700}.help-form textarea{width:100%;box-sizing:border-box;border:1px solid #94a3b8;border-radius:7px;padding:8px;resize:none;height:56px;font-size:14px}.help-form button,.help-signup-form button{background:var(--primary,#2563eb);color:white;border:0;border-radius:7px;padding:6px 12px}.help-status{font-size:11px;margin:0 12px;flex-shrink:0}.help-status:empty{display:none}.help-new-messages{flex-shrink:0;background:#eff6ff;border:0;color:#1d4ed8;font-size:12px!important;margin:0 12px;min-height:32px!important}
.help-signup-entry{white-space:normal}.help-signup-entry p{margin:4px 0}.help-signup-form{display:grid;grid-template-columns:1fr auto;gap:5px;margin:8px 0}.help-signup-form label{grid-column:1/-1;font-weight:700}.help-signup-form input{min-width:0;width:100%;box-sizing:border-box;height:44px;border:1px solid #94a3b8;border-radius:7px;padding:8px;font-size:14px}.help-signup-result:empty{display:none}.help-signup-simulation{font-size:11px;color:#475569}
@media(max-width:600px){.help-launch{right:12px;bottom:12px}.help-panel{inset:auto 8px 64px auto;width:calc(100vw - 16px);max-height:calc(100dvh - 84px)}.help-content{max-height:300px}}
.help-enquiry-form{display:grid;gap:5px;margin:8px 0}.help-enquiry-form input,.help-enquiry-form textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #94a3b8;border-radius:7px;padding:8px;font-size:14px}.help-enquiry-form input{height:44px}.help-enquiry-form button{background:var(--primary,#2563eb);color:white;border:0;border-radius:7px;padding:6px 12px}.help-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}#help-contact{background:none;border:0;padding:0;color:#1d4ed8;text-decoration:underline;font-size:11px;min-height:24px}.help-enquiry-result:empty{display:none}

/* Public Help window only: no parent portal or site-wide layout changes. */
.help-launch[hidden]{display:none!important}
.help-launch{z-index:10001}
html.public-help-open{overflow:hidden}
body.public-help-open{position:fixed;top:var(--public-help-scroll,0px);left:0;right:0;overflow:hidden}
.help-panel{inset:auto 16px 16px auto;width:450px;max-width:calc(100vw - 32px);height:min(760px,calc(100dvh - 32px));max-height:none;box-sizing:border-box}
.help-panel.is-expanded{inset:0;margin:auto;transform:none;width:min(960px,calc(100vw - 64px));max-width:none;height:min(800px,calc(100dvh - 64px))}
.help-header{min-height:56px;padding:6px 10px;box-sizing:border-box;gap:6px}
.help-heading{flex:1;min-width:0}.help-header h2{font-size:17px;line-height:1.25}
.help-window-controls{display:flex;gap:2px;flex:none}.help-header .help-window-controls button{width:44px;height:44px;min-height:44px;border-radius:7px;font-size:23px;line-height:1;padding:0}
.help-window-controls button:hover{background:#ffffff26}
#help-conversation{flex:1;min-height:0;overflow:hidden}
.help-choice{flex:1;min-height:0;overflow:auto}
.help-content{flex:1;max-height:none;min-height:0;overflow:auto;padding:8px 16px 12px;scrollbar-gutter:stable;scroll-behavior:auto}
.help-panel.is-expanded .help-content{padding-inline:max(20px,calc((100% - 760px)/2))}
.help-intro{font-size:14px;line-height:1.5;margin:4px 0 12px}
#help-ai-notice{margin:4px 0 10px;color:#475569}
.help-information{font-size:12px;line-height:1.5;background:#eff6ff;padding:10px;border-radius:8px}
.help-services h3{font-size:14px;margin:8px 0}.help-services p{font-size:12px;line-height:1.5;margin:8px 0 12px}
.help-service-choices{gap:8px}.help-service-choices button{padding:10px 12px;font-size:14px;line-height:1.35}
.help-topics{gap:8px;margin:12px 0}.help-topics button{font-size:14px;line-height:1.4;padding:10px 12px}
.help-transcript{margin:10px 0}.help-bubble{font-size:14px;line-height:1.55;padding:12px;margin:10px 0;border-radius:10px}
.help-bubble.user{margin-left:36px}.help-bubble strong{font-size:11px;margin-bottom:5px;font-weight:600;color:#475569}
.help-bubble summary{min-height:32px;box-sizing:border-box;padding:8px 0}
.help-links{gap:4px 12px;margin-top:6px}.help-links a{font-size:13px;line-height:1.4;display:inline-flex;align-items:center;min-height:32px;overflow-wrap:anywhere;max-width:100%}
.help-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px 12px 0;margin:0;border-top:1px solid #e2e8f0}
.help-panel.tutor-route .help-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.help-actions button,.help-actions a{min-height:36px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;background:#f8fafc;color:#1e40af;padding:4px;font-size:12px!important;line-height:1.25;text-align:center;text-decoration:none;margin:0;overflow-wrap:anywhere}
#help-common-toggle::after{content:none}
.help-form{padding:8px 12px 6px;gap:6px;margin:0;align-items:end}
.help-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.help-form textarea{height:46px;max-height:100px;min-width:0;font-size:16px;line-height:1.4;padding:10px;resize:none}
.help-form button{height:46px;min-height:44px;padding:8px 14px}
.help-status{margin:0 12px;font-size:12px}.help-new-messages{min-height:36px!important;margin:0 12px;padding:6px;border-radius:6px}
.help-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 12px 4px;font-size:10px;line-height:1.3;color:#64748b}
.help-footer button,#help-contact{min-height:32px;background:none;border:0;padding:4px;color:#1d4ed8;font-size:11px;line-height:1.25;text-decoration:underline}
.help-panel :focus-visible{outline:3px solid #f59e0b;outline-offset:-3px}
.help-choice{display:flex;box-sizing:border-box;padding:24px;align-items:flex-start;justify-content:center}
.help-choice-card{width:min(100%,360px);flex:none;margin:auto;text-align:center}
.help-choice-card h2{font-size:24px;line-height:1.3;margin:0 0 28px;color:#172338}
.help-role-options{display:grid;gap:12px}
.help-role-options button{margin:0;min-height:76px;padding:14px;border-radius:10px;border:1px solid #b6cbee;background:#eff6ff;color:#1e40af}
.help-role-options button:hover{background:#dbeafe;border-color:#2563eb}
.help-role-options span{display:block;font-size:18px;font-weight:700}
.help-role-options small{display:block;font-size:13px;font-weight:400;margin-top:5px;line-height:1.4}
.help-choice-card .help-reset{margin:16px 0 0;border:0;background:none;color:#475569;text-decoration:underline;font-size:12px;padding:6px;min-height:44px}
.help-reset-confirm{margin-top:16px;padding:10px;border:1px solid #cbd5e1;border-radius:8px}
.help-reset-confirm p{font-size:13px;font-weight:400;line-height:1.4;margin:0 0 8px}
.help-reset-confirm button{font-size:13px;min-height:44px;margin:4px 0}
@media(min-width:601px) and (max-height:500px) and (pointer:fine){
 .help-choice{padding-block:12px}.help-choice-card h2{font-size:22px;margin-bottom:16px}.help-role-options{gap:10px}.help-role-options button{min-height:70px;padding:10px}.help-choice-card .help-reset{margin-top:6px}
}
@media(max-width:600px),(max-width:950px) and (pointer:coarse){
 .help-panel,.help-panel.is-expanded{inset:var(--help-viewport-top,0px) auto auto 0;transform:none;margin:0;width:100vw;max-width:none;height:var(--help-viewport-height,100dvh);max-height:none;border:0;border-radius:0}
 .help-header{padding:calc(4px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));min-height:52px}
 .help-header h2{font-size:15px}.help-window-controls{gap:0}
 .help-content,.help-panel.is-expanded .help-content{padding:8px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))}
 .help-actions{padding:4px max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))}
 .help-actions button,.help-actions a,.help-bubble summary,.help-links a,.help-footer button,#help-contact,.help-new-messages{min-height:44px!important}
 .help-form{padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .help-footer{padding:0 max(8px,env(safe-area-inset-right)) calc(2px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .help-panel.keyboard-open .help-footer{display:none}
 .help-panel.keyboard-open .help-header{min-height:44px;padding-top:0;padding-bottom:0}
 .help-panel.keyboard-open .help-form{padding-bottom:4px}
 .help-panel.keyboard-open .help-heading h2{font-size:13px}
 .help-choice{padding:16px max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 .help-choice-card h2{font-size:22px;margin-bottom:24px}
}
