/* Shared operational density; question prose retains its readable line height. */
:root { --workspace-gap:12px; --workspace-pad:14px; }
#main-content { padding:16px clamp(12px,1.6vw,24px) 28px; max-width:1680px; }
.page-header,.section-heading { margin-bottom:12px; gap:12px; }
.page-header h2 { font-size:26px; line-height:1.2; }
.page-header p { max-width:80ch; font-size:13px; }
.page-header .eyebrow { font-size:10px; margin:0 0 4px; }
.tab-panel h3 { margin:0 0 8px; font-size:17px; }
.metric-strip > div { padding:10px 14px; }
.admin-dashboard-metrics { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; }
.admin-dashboard-metrics .dashboard-metric { border:0; color:#fff; box-shadow:0 8px 18px #183b5220; }
.dashboard-metric span,.dashboard-metric small { display:block; color:inherit; opacity:.86; text-transform:capitalize; }
.dashboard-metric small { font-size:10px; margin-top:3px; }
.dashboard-metric strong { display:block; font-size:28px; margin:2px 0; }
.dashboard-metric.tone-0 { background:linear-gradient(135deg,#145b76,#168c85); }.dashboard-metric.tone-1 { background:linear-gradient(135deg,#6842a2,#8d5cc7); }.dashboard-metric.tone-2 { background:linear-gradient(135deg,#c46a2b,#e49b42); }.dashboard-metric.tone-3 { background:linear-gradient(135deg,#bd435d,#db6880); }.dashboard-metric.tone-4 { background:linear-gradient(135deg,#176e61,#39a47e); }.dashboard-metric.tone-5 { background:linear-gradient(135deg,#2b589b,#4e84c5); }
.admin-dashboard-detail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }.admin-dashboard-detail article { display:flex; gap:10px; align-items:flex-start; padding:14px; border:1px solid #dce7ef; border-radius:12px; background:linear-gradient(135deg,#fff,#f3f8fb); }.admin-dashboard-detail p { margin:4px 0 0; color:var(--muted); font-size:13px; }.dashboard-detail-icon { display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; border-radius:9px; background:#dff3ec; color:#087f78; font-weight:900; }.admin-dashboard-detail .inline-check { display:flex; gap:6px; align-items:flex-start; margin-top:8px; font-size:12px; color:var(--muted); }.admin-dashboard-detail .inline-check input { margin-top:2px; }.admin-dashboard-detail .capacity-controls { flex-basis:100%; margin-top:10px; padding-top:10px; border-top:1px dashed #dce7ef; }.admin-dashboard-detail .capacity-controls .actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.performance-kpis .outcome-correct { border-top-color:#15966b; background:#f0fbf6; }.performance-kpis .outcome-correct strong { color:#08764f; }.performance-kpis .outcome-incorrect { border-top-color:#d34b58; background:#fff3f3; }.performance-kpis .outcome-incorrect strong { color:#b52e3d; }.performance-kpis .outcome-unanswered { border-top-color:#d28b24; background:#fff9ed; }.performance-kpis .outcome-unanswered strong { color:#9b6208; }
.attempt-review-card .badge { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:999px; font-weight:800; }.attempt-review-card:has(.badge:first-of-type) { min-width:0; }
.metric-strip strong { font-size:24px; margin-top:2px; }
.exam-tile { min-height:0; gap:10px; padding:14px; }
.data-grid,.result-history-grid { gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.table-wrap th,.table-wrap td { padding:8px 10px; }
.table-wrap td button { min-height:30px; padding:4px 8px; }
.table-wrap { max-width:100%; }
.compact-form { gap:10px; padding:14px; }
.compact-form > *, .ai-metadata-grid > * { min-width:0; }
.ai-generation-form { max-width:none; gap:12px; }
.ai-generation-form fieldset,.ai-large-field,.ai-advanced,.ai-prompt-preview,.ai-generation-results { padding:12px 14px; }
.ai-subtabs { margin-bottom:12px; }
.ai-guidance { margin:12px 0; padding:12px 14px; }
.filters { grid-template-columns:minmax(170px,2fr) repeat(3,minmax(100px,1fr)) repeat(3,auto); gap:8px; }
.question-card { padding:12px 14px; }
.question-card .rendered,.exam-question-card .rendered,.attempt-review-card .rendered { line-height:1.6; }
.result-history-card { padding:14px; border:1px solid var(--line); border-radius:10px; background:white; }
.result-history-card h3 { font-size:17px; margin:6px 0; }
.result-history-score { font-size:25px; }
.result-hero { padding:16px; margin-bottom:14px; border-radius:12px; box-shadow:none; background:#123f53; }
.result-hero .result-hero-top>div:first-child { min-width:0; flex:1 1 auto; }
.result-hero h2 { color:#f7fffd!important; font-size:clamp(21px,2.4vw,31px); line-height:1.18; overflow-wrap:anywhere; word-break:normal; }
.result-hero .result-student,.result-hero .result-student span { color:#e8faf6!important; }
.result-hero .result-tags span { color:#f2fffc; }
.result-hero .result-score { flex:0 0 auto; }
.result-hero .ai-explanation-callout { min-width:0; flex-wrap:wrap; }
.result-hero .ai-explanation-callout>div { min-width:0; flex:1 1 300px; }
.result-hero .ai-explanation-callout>div>div { min-width:0; }
.result-hero .ai-explanation-callout p { overflow-wrap:anywhere; }
.result-student { font-size:14px; margin:6px 0; }
.result-tags { margin-top:8px; }.result-tags span { padding:3px 8px; }
.result-score { min-width:120px; padding:10px 14px; }.result-score strong { font-size:30px; }
.result-summary { margin:12px 0; }.result-summary div { padding:8px 10px; }
.ai-explanation-callout { padding:10px 12px; }
.exam-access-panel { margin-top:12px; padding:14px; }
.site-footer { margin-top:20px; padding-top:14px; gap:14px; }
.analytics-toolbar { padding:10px; gap:8px; border:1px solid var(--line); background:white; border-radius:10px; }
.analytics-toolbar label { min-width:0; flex:1 1 130px; font-size:11px; }
.analytics-toolbar select { width:100%; margin-top:3px; }
.analytics-section-nav { display:none; }
.analytics-context { padding:6px 10px; margin:0 0 10px; font-size:12px; }
#analytics-content { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr); gap:12px; }
#analytics-content[hidden] { display:none; }
#analytics-overview-section { display:contents; }
#analytics-kpis { grid-column:1/-1; grid-template-columns:repeat(6,minmax(0,1fr)); margin:0; gap:8px; }
.performance-kpis .exam-analytics-card { border-top:2px solid #168c85; padding:10px 12px; }
.performance-kpis h4 { font-size:10px; margin-bottom:4px; }
.performance-kpis strong { font-size:23px; }
.performance-card { padding:14px; border:1px solid var(--line); border-radius:10px; background:white; }
.performance-section { margin:0; }
#analytics-gap-section { grid-column:2; grid-row:2; }
#analytics-mastery-section { grid-column:1; }
#analytics-evidence-section { grid-column:2; }
#analytics-recent-section { grid-column:1/-1; }
.analytics-chart { min-height:0; }
.trend-svg { min-width:0; max-height:230px; }
.trend-legend { max-height:112px; overflow:auto; font-size:12px; }
.trend-legend li { padding:4px 8px; }
.recommendation-grid { grid-template-columns:1fr; gap:8px; }
.recommendation-card { padding:10px; }
.recommendation-card p { font-size:12px; margin-top:5px; }
#analytics-recommendations { max-height:290px; overflow:auto; }
.mastery-list { gap:10px; max-height:330px; overflow:auto; }
.mastery-row { grid-template-columns:minmax(110px,1fr) minmax(70px,120px) 40px; }
.evidence-note { color:var(--muted); font-size:12px; margin:6px 0 12px; }
.mentor-insight { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; margin:12px 0; background:#edf7f3; border:1px solid #c4ddd4; border-radius:10px; }
.mentor-insight p { margin:4px 0; }
.mentor-launcher { position:fixed; right:20px; bottom:18px; z-index:80; padding:10px 16px; border-radius:24px; background:#11534d; color:white; box-shadow:0 4px 16px #102d2a30; }
.mentor-drawer { position:fixed; z-index:90; right:18px; bottom:72px; width:min(420px,calc(100vw - 24px)); height:min(640px,calc(100dvh - 100px)); display:flex; flex-direction:column; background:white; border:1px solid #c4d8d1; border-radius:14px; box-shadow:0 12px 45px #102d2a30; overflow:hidden; color:#17212b; font:14px/1.5 system-ui,sans-serif; }
.mentor-drawer[hidden],.mentor-launcher[hidden] { display:none; }
#workspace-back{min-height:42px;padding:7px 12px;background:#eaf4ff;color:#174d80;border:1px solid #9cc2e8;font-weight:750;white-space:nowrap}
body.exam-focus #workspace-back{display:none!important}
#release-refresh-notice{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:120;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 24px);padding:10px 14px;background:#123d62;color:#fff;border-radius:12px;box-shadow:0 8px 26px #15335044;font-size:14px}
#release-refresh-notice button{min-height:38px;padding:6px 10px;background:#fff;color:#123d62;border:0;border-radius:7px;font-weight:750}
@media(max-width:800px){#workspace-back{min-width:44px;padding:7px 10px;font-size:15px}.app-shell.nav-open #workspace-back{display:inline-flex}}
.mentor-drawer header { display:flex; justify-content:space-between; gap:10px; padding:12px 14px; border-bottom:1px solid #dce3e8; }
.mentor-drawer header small { display:block; font-size:11px; color:#647382; }
.mentor-conversation { flex:1; overflow:auto; padding:12px; overscroll-behavior:contain; }
.mentor-message { white-space:pre-wrap; overflow-wrap:anywhere; padding:10px; margin:0 0 10px; border-radius:9px; background:#f0f6f3; }
.mentor-message.user { background:#eef2f7; margin-left:24px; }
.mentor-drawer form { display:flex; gap:8px; padding:10px; border-top:1px solid #dce3e8; }
.mentor-drawer textarea { flex:1; min-width:0; min-height:44px; max-height:100px; resize:vertical; }
.mentor-prompts { display:flex; flex-wrap:wrap; gap:6px; padding:8px 12px; }
.mentor-prompts button { padding:5px 8px; font-size:12px; }
.mentor-report { margin-bottom:12px; padding:10px; border:1px solid #dce3e8; border-radius:8px; }
.mentor-report h4 { margin:12px 0 4px; }.mentor-report p { margin:4px 0; }
.exam-focus .mentor-launcher,.exam-focus .mentor-drawer { display:none!important; }
@media(min-width:1200px) { .ai-generation-form { grid-template-columns:1fr 1fr; align-items:start; }.ai-generation-form fieldset,.ai-generation-form > .actions,.ai-generation-form > .ai-advanced { grid-column:1/-1; } }
@media(max-width:1100px) { .filters { grid-template-columns:repeat(3,minmax(0,1fr)); } #analytics-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:900px) { #analytics-content { grid-template-columns:1fr; } #analytics-content > *,#analytics-gap-section,#analytics-mastery-section,#analytics-evidence-section { grid-column:1; grid-row:auto; }.page-header { flex-wrap:wrap; } }
@media(max-width:600px) { #main-content { padding:12px 10px 70px; }.page-header h2 { font-size:24px; }.filters { grid-template-columns:1fr 1fr; }.filters #s-q { grid-column:1/-1; }#analytics-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.performance-card { padding:12px; }.mastery-row { grid-template-columns:1fr 42px; }.mastery-meter { grid-column:1/-1; grid-row:2; }.mentor-insight { align-items:flex-start; flex-direction:column; }.mentor-drawer { right:8px; bottom:8px; width:calc(100vw - 16px); height:calc(100dvh - 16px); }.mentor-launcher { right:12px; bottom:12px; }.result-hero-top { gap:12px; }.result-score { text-align:left; }.analytics-toolbar label { flex-basis:40%; }.table-wrap { overflow-x:auto; } }
@media(max-width:600px) { .admin-dashboard-detail { grid-template-columns:1fr; }.admin-dashboard-metrics .dashboard-metric strong { font-size:24px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }
#analytics-content { align-items:start; }
.performance-card .section-heading h3 { margin:0 0 4px; color:var(--ink); }
.performance-card .section-heading p { font-size:12px; margin:0; }
.performance-card h4 { margin:10px 0 4px; }
.trend-svg { max-height:190px; }
.trend-values summary { font-size:12px; color:var(--muted); cursor:pointer; }
#analytics-evidence-section details { margin:10px 0; }
.exam-blueprint-form,.exam-blueprint-form fieldset { min-width:0; max-width:100%; }
.exam-blueprint-form fieldset { padding:12px; }
.mentor-drawer header { background:#fff; color:#17212b; position:static; flex-shrink:0; }
#app-header .sidebar-toggle { position:static; flex:0 0 36px; margin:0; color:var(--ink); background:white; border-color:var(--line); }
@media(max-width:800px) { #app-header { gap:8px; flex-wrap:nowrap; }#app-header .brand { min-width:0; margin-right:auto; }#app-header .brand-caption { display:none; }#app-header .workspace-home { display:none; }#app-header .spacer { display:none; }.blueprint-actions { position:static; }.mentor-launcher { max-width:calc(100vw - 24px); }.exam-blueprint-form fieldset { margin-inline:0; } }

@media(min-width:801px){.app-shell.nav-collapsed{grid-template-columns:0 minmax(0,1fr)}.app-shell.nav-collapsed .sidebar{visibility:hidden;padding:0;overflow:hidden}}
/* Upload, explanation and phone usability fixes. */
.explain-hero { position:static; top:auto; display:block; padding:12px 14px; color:var(--ink); background:#eef6f4; box-shadow:none; border:1px solid #d4e5df; border-radius:9px; }
.explain-hero h2 { font-size:22px; color:var(--ink); margin:4px 0 8px; }
.explain-hero .rendered,.explain-hero p { color:var(--ink); font-size:15px; }
.explain-eyebrow { color:#176b63; font-size:10px; }
.structured-explanation { max-width:none; gap:10px; }
.explain-section { padding:12px 14px; border-radius:9px; box-shadow:none; }
.explain-section-title { margin-bottom:6px; }.explain-section-title h3 { font-size:16px; }
.explain-content { overflow-wrap:anywhere; }.explain-content [lang=te] { line-height:1.8; }
.ai-question-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; }
.ai-question-card { min-width:0; padding:12px 14px; }.ai-question-card .meta { flex-wrap:wrap; gap:6px; }.ai-question-card .rendered { overflow-wrap:anywhere; }
.ai-question-card .ai-question-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; }
.ai-question-card .ai-question-body { max-height:620px; overflow:auto; }
#pdf-viewer-pages { width:100%; min-width:0; }.pdf-page-surface { min-height:40px; }
#pdf-modal:not([hidden]) { position:static; inset:auto; padding:0; background:transparent; }
#pdf-modal .modal-box { max-height:none; overflow:visible; }
#app-header #sidebar-toggle { min-width:48px; min-height:44px; font-size:18px; }
@media(max-width:800px){#app-header #sidebar-toggle{order:-1;flex-basis:48px;margin-right:4px}.sidebar nav button{min-height:44px}.sidebar{width:min(280px,88vw)}#app-header .brand-symbol{width:38px;height:38px;flex-basis:38px}#app-header .app-brand-name{font-size:17px}.account-menu summary{padding:4px}.ai-question-grid{grid-template-columns:1fr}.ai-question-card .ai-question-body{max-height:none}.explain-language-label select{min-width:110px}.modal-head{flex-wrap:wrap}.explain-hero h2{font-size:20px}.exam-focus #main-content{padding:10px 8px max(16px,env(safe-area-inset-bottom))}.exam-option-item{min-height:48px;padding:12px}.exam-question-card img,.exam-question-card svg:not(.katex svg){max-width:100%;height:auto}}
.public-account { position:relative; min-width:120px; max-width:220px; }
.result-history-card { gap:6px 14px; padding:12px; border-top:4px solid #168c85; }
.result-history-card h3 { font-weight:850; }
.result-history-card p { font-size:12px; }
.result-history-score { font-weight:900; }
.result-history-marks { color:var(--muted); font-size:12px; }.result-history-marks strong { color:var(--ink); font-size:14px; }
.result-history-actions { display:flex; flex-wrap:wrap; gap:7px; grid-column:1/-1; }.result-history-actions button { min-height:34px; padding:7px 11px; font-weight:800; }
.result-tone-strong { border-top-color:#15966b; background:linear-gradient(135deg,#fff,#f0fbf6); }.result-tone-strong .result-history-score { color:#08764f; }
.result-tone-steady { border-top-color:#d28b24; background:linear-gradient(135deg,#fff,#fff9ed); }.result-tone-steady .result-history-score { color:#9b6208; }
.result-tone-focus { border-top-color:#d34b58; background:linear-gradient(135deg,#fff,#fff3f3); }.result-tone-focus .result-history-score { color:#b52e3d; }
.results-overview { display:grid; grid-template-columns:minmax(240px,1.2fr) minmax(340px,1fr); gap:24px; align-items:center; margin-bottom:20px; padding:clamp(20px,3vw,32px); color:#fff; background:linear-gradient(125deg,#0b376f,#087b81 62%,#18a47f); border-radius:20px; box-shadow:0 18px 44px #153a6126; }
.results-overview h3 { margin:3px 0 7px; color:#fff; font-size:clamp(24px,3vw,34px); }.results-overview p { margin:0; color:#daf6f0; }.results-overview .eyebrow { color:#9ff2d9; font-weight:900; }
.results-overview dl { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:0; }.results-overview dl div { padding:13px; background:#ffffff16; border:1px solid #ffffff2c; border-radius:12px; }.results-overview dt { color:#cef0e9; font-size:11px; text-transform:uppercase; letter-spacing:.06em; }.results-overview dd { margin:3px 0 0; font-size:23px; font-weight:900; }
.result-history-card { position:relative; overflow:hidden; padding:18px; border-top-width:0; border-left:5px solid #168c85; box-shadow:0 10px 28px #173d5b12; }.result-card-heading { display:flex; justify-content:space-between; gap:16px; grid-column:1/-1; }.result-card-heading h3 { margin-top:10px; }.result-card-date { margin-left:7px; color:var(--muted); font-size:11px; font-weight:750; }
.result-score-ring { display:grid; place-items:center; flex:0 0 82px; width:82px; height:82px; border-radius:50%; background:conic-gradient(#168c85 calc(var(--result)*1%),#dce8e8 0); position:relative; }.result-score-ring::before { content:""; position:absolute; inset:7px; background:#fff; border-radius:50%; }.result-score-ring span { position:relative; color:#0b4b62; font-size:16px; font-weight:950; }
.result-card-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; grid-column:1/-1; }.result-card-facts span { display:grid; gap:3px; padding:10px; background:#ffffffb8; border:1px solid #dfe8ea; border-radius:10px; }.result-card-facts small { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }.result-card-facts strong { font-size:13px; }
.results-empty { display:grid; justify-items:center; gap:8px; padding:54px 20px; text-align:center; border:1px dashed #a8c9cc; border-radius:18px; background:linear-gradient(145deg,#f5fbff,#effbf6); }.results-empty>span { display:grid; place-items:center; width:58px; height:58px; color:#fff; background:linear-gradient(135deg,#126fac,#16a27c); border-radius:18px; font-size:30px; }.results-empty h3,.results-empty p { margin:0; }
.attempt-question-content { padding:16px; background:#fff; border:1px solid #dfe8eb; border-radius:12px; }.attempt-question-content>.rendered { font-size:16px; }.attempt-question-content .digital-assets { margin-top:14px; }.attempt-question-content .digital-asset { overflow:auto; }.attempt-question-content .digital-asset img { display:block; width:auto; max-width:100%; max-height:62vh; margin:10px auto; object-fit:contain; }
.attempt-review-card .section-heading>div:first-child { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }.question-index { display:grid; place-items:center; width:32px; height:32px; color:#fff; background:#174c78; border-radius:9px; font-weight:900; }.attempt-review-card .section-heading h3 { margin:0; }.attempt-original-options { display:grid; gap:9px; padding:0; list-style:none; counter-reset:none; }.attempt-original-options li { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:start; gap:10px; padding:11px; background:#fff; border:1px solid #dfe7ea; border-radius:10px; }.option-letter { display:grid; place-items:center; min-height:30px; color:#164a78; background:#eaf2fb; border-radius:8px; font-weight:900; }
@media(max-width:760px){.results-overview{grid-template-columns:1fr}.results-overview dl{grid-template-columns:1fr 1fr}.result-card-facts{grid-template-columns:1fr}.result-score-ring{width:70px;height:70px;flex-basis:70px}.attempt-review-card .section-heading{align-items:flex-start}.review-actions{width:100%;margin-left:0}.review-actions button{flex:1 1 140px}}
.review-actions { display:flex; flex-wrap:wrap; gap:6px; margin-left:auto; }.review-actions button { min-height:32px; padding:6px 10px; border-radius:8px; font-weight:800; }.mentor-action { color:#fff; background:linear-gradient(135deg,#087f78,#5c4bb0); border:0; }.solution-action{color:#6a4300;background:#fff3ce;border:1px solid #dab85b}.explain-action.english { color:#075a72; background:#e9f5ff; border:1px solid #a7cee5; }.explain-action.telugu{color:#682671;background:#faeafa;border:1px solid #c993cf}.attempt-review-card { padding:14px; }.attempt-review-card.outcome-correct { border-left:5px solid #15966b; background:#f3fcf7; }.attempt-review-card.outcome-incorrect { border-left:5px solid #d34b58; background:#fff5f5; }.attempt-review-card.outcome-unanswered { border-left:5px solid #d28b24; background:#fffaf0; }.answer-choice { padding:10px; border-radius:8px; border:1px solid var(--line); }.outcome-correct .answer-selected { background:#e4f8ed; border-color:#9bd6b5; }.outcome-incorrect .answer-selected { background:#ffe7e8; border-color:#efabb1; }.answer-correct { background:#edf8f3; border-color:#a7d9bd; }.outcome-badge { font-weight:900; }.outcome-incorrect .outcome-badge { color:#a92838; background:#ffe1e4; }.outcome-correct .outcome-badge { color:#08764f; background:#dff5e9; }.outcome-unanswered .outcome-badge { color:#8b5a08; background:#fff0c8; }
.mentor-drawer { border:1px solid #9ccfc4; box-shadow:0 18px 55px #173d5b35; }
.mentor-drawer header { color:#fff; background:linear-gradient(120deg,#123f72,#087f78 70%,#23aa86); border-bottom:0; }.mentor-drawer header small { color:#d8f6ef; }.mentor-drawer header button { color:#fff; background:#ffffff20; border-color:#ffffff4d; }
.mentor-message.assistant { background:linear-gradient(135deg,#eefaf7,#f4f1ff); border-left:3px solid #168c85; }.mentor-message.user { background:#edf3ff; border-left:3px solid #5879cf; }
.mentor-prompts button { color:#075a72; background:#edf7f6; border-color:#b9ded5; font-weight:750; }.mentor-drawer form button { color:#fff; background:linear-gradient(135deg,#087f78,#6350b8); border:0; font-weight:850; }
.page-header h2,.section-heading h2,.section-heading h3 { font-weight:850; letter-spacing:-.02em; }.tab-panel button,.main-tabs button { font-weight:750; }
.public-account summary { display:grid; padding:6px 12px; border:1px solid #c9d9e1; border-radius:9px; cursor:pointer; color:#073d78; }
.public-account-name { font-weight:750; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.public-account-role { color:#176b63; font-size:11px; }
.public-account-menu { position:absolute; right:0; top:100%; z-index:60; display:grid; gap:10px; min-width:240px; padding:14px; background:white; color:#17212b; border:1px solid #dce3e8; border-radius:9px; box-shadow:0 8px 30px #102d2a20; }.public-account-email { overflow-wrap:anywhere; font-size:12px; }
@media(max-width:800px){.public-header{padding:8px 10px;gap:8px}.public-menu-toggle{min-height:44px;min-width:48px;padding:6px}.public-account{min-width:90px;max-width:150px}.public-account summary{padding:4px 8px}.public-account-name{font-size:12px}.public-actions{min-width:0}.public-brand img{width:36px;height:36px}.public-header .public-brand span{display:none}}
#pdf-modal { scroll-margin-top:75px; }
#upload-crop-panel h2 { margin:0 0 6px; font-size:24px; }
#upload-crop-panel > .panel > p { margin:0 0 10px; }
@media(min-width:1100px){.ai-question-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}.structured-explanation{grid-template-columns:minmax(0,1fr);align-items:start}.explain-hero,.structured-explanation>.explain-section:has(.explain-steps){grid-column:1/-1}}
.modal:not(#pdf-modal) { z-index:120; }
.modal:not(#pdf-modal) .modal-box { max-height:calc(100dvh - 24px); }
/* Conversational mentor: short turns, optional evidence and a stable composer. */
.mentor-conversational{width:min(480px,calc(100vw - 24px));height:min(740px,calc(100dvh - 96px));border-color:#dbe3eb;font-size:14px}.mentor-conversational header{align-items:center;padding:16px;gap:10px}.mentor-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e4f4ee;color:#12614f;font-size:24px}.mentor-heading{flex:1}.mentor-conversational header button{width:36px;min-height:36px;padding:0;border:0;background:#f2f5f8;font-size:22px}.mentor-conversational .mentor-prompts{border-bottom:1px solid #eef1f5;flex-shrink:0}.mentor-conversational .mentor-conversation{padding:20px 16px;background:#fafbfc;min-height:100px}.mentor-turn{margin-bottom:20px}.mentor-turn-label{display:block;color:#667585;font-size:11px;font-weight:650;margin-bottom:6px}.mentor-turn.user{margin-left:36px}.mentor-turn.user .mentor-turn-label{text-align:right}.mentor-conversational .mentor-message{white-space:normal;margin:0;padding:12px 14px;background:white;border:1px solid #e3e9ef;border-radius:4px 14px 14px 14px;line-height:1.65}.mentor-conversational .mentor-message.user{background:#eaf3f0;border-color:#d6e7e1;border-radius:14px 4px 14px 14px;margin:0}.mentor-message p{margin:0 0 10px}.mentor-message p:last-child{margin-bottom:0}.mentor-message ul{padding-left:20px;margin:10px 0}.mentor-follow-up{font-weight:550}.mentor-conversational .mentor-report{margin:8px 0 0;background:#fff;font-size:12px}.mentor-report summary{cursor:pointer;font-weight:550;color:#4d6675}.mentor-evidence-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.mentor-evidence-metrics strong,.mentor-evidence-metrics small{display:block}.mentor-evidence-metrics strong{font-size:18px}.mentor-suggestions{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px}.mentor-suggestions:empty{display:none}.mentor-suggestions button{font-size:12px;min-height:34px;padding:6px 10px;border-radius:18px;background:white}.mentor-conversational form{display:block;padding:12px;flex-shrink:0}.mentor-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mentor-conversational textarea{box-sizing:border-box;width:100%;min-height:56px;max-height:140px;resize:none;border:1px solid #d8e2e8;border-radius:10px;padding:10px;font:inherit}.mentor-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}.mentor-composer-bottom small{font-size:10px;color:#76828b}.mentor-composer-bottom button{background:#14594e;color:white;border:0;min-height:38px;padding:7px 14px}.mentor-thinking{font-size:12px;color:#567568;padding:8px}.mentor-history{max-height:220px;overflow:auto;padding:10px;border-bottom:1px solid #ddd}.mentor-history button{display:block;width:100%;text-align:left;margin-bottom:5px}.mentor-history[hidden]{display:none}.mentor-error .mentor-message{border-color:#e5bfad;background:#fff8f3}@media(max-width:600px){.mentor-conversational{right:0;bottom:0;width:100%;height:100dvh;border-radius:0;border:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.mentor-composer-bottom small{display:none}.mentor-composer-bottom{justify-content:flex-end}.mentor-turn.user{margin-left:24px}.mentor-conversational textarea{font-size:16px}}
