/* v63: isolated visual layer for the glossary and offline help chat. */
#content .interactive-help{color:#16344d;overflow-wrap:anywhere}
#content .interactive-help :where(button,input,section,article,div){min-width:0;max-width:100%}
#content .interactive-help h1{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.25}
#content .interactive-help p{margin:8px 0;text-align:left}
#content .hi-toolbar,#content .hi-letters,#content .hi-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;align-items:center}
#content .hi-choice,#content .hi-save{font:inherit;font-weight:600;min-height:44px;border:1px solid #c3dce9;border-radius:9px;padding:8px 12px;background:#f1f9fc;color:#173b56;cursor:pointer;text-transform:none;letter-spacing:normal;white-space:normal}
#content .hi-choice[aria-pressed=true],#content .hi-save[aria-pressed=true]{background:#d5f5f8;border-color:#14899b;color:#075265;box-shadow:inset 0 -2px #14899b}
#content .hi-letters{gap:5px}#content .hi-letters .hi-choice{padding:6px 9px;min-width:40px}
#content .hi-list-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;margin-top:10px}
#content .hi-term-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
#content .hi-term{padding:16px;border:1px solid #d5e6f1;border-radius:12px;background:#f8fcff;box-shadow:0 3px 10px #12365308}
#content .hi-term-title{display:flex;align-items:center;gap:8px;justify-content:space-between}
#content .hi-term h2{font-size:1.05rem;line-height:1.4;margin:0;flex:1;overflow-wrap:anywhere}
#content .hi-save{font-size:1.4rem;flex:0 0 44px;padding:0}
#content .hi-term details{border-top:1px solid #d5e6f1;margin-top:10px;padding-top:8px}
#content .hi-term summary{color:#0c6594;cursor:pointer;font-weight:600;min-height:40px;display:list-item;padding:5px 0}
#content .hi-study-card{border:1px solid #b9dfed;border-radius:14px;background:linear-gradient(145deg,#edf9fc,#f8fbff);padding:clamp(16px,3vw,30px);margin:18px 0;text-align:center}
#content .hi-study-card p{text-align:center}#content .hi-study-card h2{margin:14px 0;font-size:1.4rem}#content .hi-counter{font-weight:600;color:#216986}#content .hi-actions{justify-content:center}#content .hi-actions button{min-height:44px;flex:1 1 120px}
#content .hi-quiz-card{text-align:left}#content .hi-quiz-card p{text-align:left}#content .hi-quiz-card progress{width:100%;height:10px;accent-color:#14899b}#content .hi-quiz-options .option{font:inherit;min-height:44px}#content .hi-quiz-options .hi-correct{background:#e4f6ea;border:2px solid #268654;color:#155b37}#content .hi-quiz-options .hi-incorrect{background:#fcece8;border:2px solid #b54736;color:#893628}#content .hi-score{font-size:2rem!important;font-weight:700;color:#075265!important}
#content .hi-note{font-size:.88rem!important;color:#526c80!important;margin-top:16px!important}
#content .hi-chat{padding:clamp(10px,2vw,20px);background:#f7fbff;border-color:#c9e1ee}
#content .hi-chat-header{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0 0 10px;border-bottom:1px solid #d3e5ee}
#content .hi-chat-header>div:nth-child(2){flex:1 1 140px}#content .hi-chat-header p{font-size:.82rem;margin:0}#content .hi-avatar{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:12px;background:#d5f5f8;color:#075265;font-weight:800}
#content .hi-chat .help-chat-log{height:clamp(240px,38vh,360px);max-height:360px;background:#eaf4fa;border:1px solid #d4e5ef;padding:12px}
#content .hi-chat .help-msg{overflow-wrap:anywhere;white-space:pre-wrap;max-width:90%;font-size:.94rem;line-height:1.6;margin:0!important}
#content .hi-chat .help-msg.bot{background:#fff;border:1px solid #d7e7f0;color:#173b56}#content .hi-chat .help-msg.user{background:#15558a;color:#fff}
#content .hi-compose-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}#content .hi-compose-row input{margin:0;width:100%;min-width:0}#content .hi-compose-row button{min-height:44px}
#content .hi-chat h2{font-size:1.15rem;margin:24px 0 8px}#content .hi-chat .help-questions{gap:8px;margin-top:8px}#content .hi-chat .help-question-btn{font-size:.92rem;white-space:normal;overflow-wrap:anywhere;min-height:44px}
@media(max-width:420px){#content .hi-toolbar .hi-choice{flex:1 1 110px}#content .hi-compose-row{grid-template-columns:minmax(0,1fr)}#content .hi-letters .hi-choice{min-width:38px;padding:6px}#content .hi-chat-header .hi-choice{margin-left:auto}#content .hi-chat .help-msg{max-width:96%}}
