/* Voice tutor: whiteboard + transcript column, beside the home sidebar. */
body#elthosApp .tutor-shell{display:none;}
body#elthosApp.home-view.home-tutor-view .workspace{justify-content:flex-start !important;padding-top:calc(var(--u) * 28) !important;padding-bottom:calc(var(--u) * 20) !important;}
body#elthosApp.home-view.home-tutor-view .workspace > :is(.home-hero-panel,.capture-panel,.home-focus-grid,.workspace-entry-panel,.home-recent-table-panel,.meetings-shell){display:none !important;}
/* The home grid's first column sits under the fixed sidebar; the tutor takes the rest. */
body#elthosApp.home-view.home-tutor-view .tutor-shell{display:flex;flex-direction:column;grid-column:2 / -1;grid-row:1 / -1;width:100%;max-width:none;height:calc(100vh - var(--u) * 48);min-height:420px;margin:0;padding:0 calc(var(--u) * 24);--tutor-ink:#252525;--tutor-muted:#62625d;--tutor-line:#e8e8e4;--tutor-side:#f7f7f5;--tutor-hover:#edede9;}

.tutor-header{display:flex;align-items:center;gap:14px;margin:0 0 12px;}
/* The page title is for screen readers only: the board is the page. */
.tutor-header h2{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.tutor-status{display:inline-flex;align-items:center;gap:8px;margin-right:auto;font-size:14px;color:var(--tutor-muted);}
.tutor-status-dot{width:8px;height:8px;border-radius:50%;background:#c9c9c3;}
.tutor-status-dot[data-tone="speaking"]{background:#2d67d4;animation:tutorPulse 1.1s ease-in-out infinite;}
.tutor-status-dot[data-tone="listening"]{background:#207c37;animation:tutorPulse 1.6s ease-in-out infinite;}
.tutor-status-dot[data-tone="thinking"]{background:#a65706;animation:tutorPulse .8s ease-in-out infinite;}
@keyframes tutorPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.5);opacity:.55}}
.tutor-header-actions{display:inline-flex;align-items:center;gap:2px;margin-left:2px;}
.tutor-new,.tutor-end{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--tutor-muted);cursor:pointer;transition:background .12s ease,color .12s ease;}
.tutor-new svg,.tutor-end svg{width:20px;height:20px;flex:none;}
/* End is a plain word on every screen (2026-10-29), the glyph beside New lesson stays. */
.tutor-end{width:auto;padding:0 10px;font:inherit;font-size:15px;}
.tutor-end svg{display:none;}
.tutor-end-word{display:inline;}
.tutor-new:hover,.tutor-new:focus-visible{background:var(--tutor-hover);color:var(--tutor-ink);outline:none;}
.tutor-end:hover,.tutor-end:focus-visible{background:#fbeeec;color:#a3372b;outline:none;}
.tutor-new:active,.tutor-end:active{transform:scale(.94);}
.tutor-clock{font-size:13px;color:var(--tutor-muted);white-space:nowrap;font-variant-numeric:tabular-nums;}

.tutor-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);grid-template-rows:minmax(0,1fr);gap:18px;flex:1;min-height:0;}
@media (max-width:1200px){body#elthosApp.home-view.home-tutor-view .tutor-shell{grid-column:1 / -1;grid-row:auto;}}
/* Stacked (narrow web): the board above, the panel below, each in a row of
   its own that scrolls inside (an auto row let the panel take the whole
   column and the board painted over it). */
@media (max-width:1100px){.tutor-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1.2fr) minmax(0,1fr);}.tutor-side-panel{min-height:0;}.tutor-board-wrap{min-height:0;}}

/* Board */
/* The board has no frame: the writing sits on the page. Where it runs under
   the floating toolbar it fades into the page over about two lines, and
   under the top edge once scrolled, the way a notes app fades under its bars. */
.tutor-board-wrap{position:relative;z-index:0;min-height:320px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;}
.tutor-board{position:absolute;inset:0;}
.tutor-board-scroll{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;--tutor-fade-top:0px;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--tutor-fade-top),#000 calc(100% - 84px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--tutor-fade-top),#000 calc(100% - 84px),transparent 100%);}
.tutor-board.is-scrolled .tutor-board-scroll{--tutor-fade-top:30px;}
/* Scrollbars on the board and the transcript: thin, quiet, and only while the
   pointer is over them (the classic grey bar looked like a handle on the page). */
.tutor-board-scroll,.tutor-transcript{scrollbar-width:thin;scrollbar-color:transparent transparent;}
.tutor-board-wrap:hover .tutor-board-scroll,.tutor-side-panel:hover .tutor-transcript{scrollbar-color:rgba(0,0,0,.16) transparent;}
.tutor-board-scroll::-webkit-scrollbar,.tutor-transcript::-webkit-scrollbar{width:6px;height:6px;}
.tutor-board-scroll::-webkit-scrollbar-track,.tutor-transcript::-webkit-scrollbar-track{background:transparent;}
.tutor-board-scroll::-webkit-scrollbar-thumb,.tutor-transcript::-webkit-scrollbar-thumb{background:transparent;border-radius:6px;}
.tutor-board-wrap:hover .tutor-board-scroll::-webkit-scrollbar-thumb,.tutor-side-panel:hover .tutor-transcript::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);}
@media (pointer:coarse){.tutor-board-scroll,.tutor-transcript{scrollbar-width:none;}.tutor-board-scroll::-webkit-scrollbar,.tutor-transcript::-webkit-scrollbar{display:none;}}
.tutor-board-surface{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.42fr);gap:28px;min-height:100%;padding:34px 36px 60vh;}
.tutor-board-column{display:flex;flex-direction:column;gap:14px;min-width:0;}
.tutor-board-side{padding:10px 16px;border-left:0;font-size:16px;}
.tutor-board-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;}
.tutor-board-object{position:relative;width:fit-content;max-width:100%;cursor:pointer;border-radius:6px;transition:background .2s;}
.tutor-board-object:hover{background:rgba(45,103,212,.06);}
.tutor-board-object.is-pointed{background:rgba(255,206,0,.32);box-shadow:0 0 0 4px rgba(255,206,0,.32);border-radius:6px;transition:background .2s,box-shadow .2s;}
.tutor-board-write{font-family:"Bradley Hand","Segoe Print","Comic Sans MS",cursive;font-size:22px;line-height:1.5;color:#2b2a26;}
.tutor-board-write.is-topic{width:fit-content;max-width:100%;margin-top:18px;padding-bottom:2px;border-bottom:2px solid currentColor;font-size:27px;font-weight:700;line-height:1.3;}
.tutor-board-write.is-point{position:relative;padding-left:20px;}
.tutor-board-write.is-point::before{content:"•";position:absolute;left:4px;top:0;}
.tutor-board-label{font-family:"Bradley Hand","Segoe Print","Comic Sans MS",cursive;font-size:17px;line-height:1.3;color:#6d6c6a;}
.tutor-board-label.is-floating{position:absolute;max-width:220px;pointer-events:auto;}
.tutor-board-label.is-under{margin:-6px 0 2px 18px;font-size:16px;}
.tutor-board-label.is-why{font-size:15px;color:#606b7e;white-space:nowrap;}
.tutor-board-label.is-why::before{content:"← ";opacity:.55;}
.tutor-board-beside-under{margin:-6px 0 4px 18px;font-size:19px;color:#4a4a45;}
.tutor-board-label.is-why-under{font-size:14px;color:#606b7e;margin:-4px 0 4px 18px;}
.tutor-math-plain{white-space:normal;overflow-wrap:anywhere;font-size:16px;}
.tutor-math-words{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-family:KaTeX_Main,'Times New Roman',serif;font-size:1.14em;line-height:1.35;}
.tutor-math-words.is-boxed{padding:2px 6px;border:1px solid currentColor;}
.tutor-board-beside{position:absolute;z-index:2;font-size:16px;line-height:1.35;overflow:hidden;}
.tutor-char{opacity:0;transition:opacity .16s ease-out;}
.tutor-char.is-shown{opacity:1;}
/* Handwriting: each piece appears left to right under the pen (--tutor-reveal). */
.tutor-char.tutor-ink{opacity:1;}
.tutor-ink{clip-path:inset(-20% calc(100% - var(--tutor-reveal, 0%)) -20% -10%);}
.tutor-ink.is-inked{clip-path:none;}
.tutor-board-math{font-size:21px;line-height:1.6;padding:2px 6px;max-width:100%;overflow-x:auto;overflow-y:hidden;color:#2b2a26;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.18) transparent;}
.tutor-board-math::-webkit-scrollbar{height:4px;}
.tutor-board-math::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:2px;}
.tutor-board-math.is-wide{max-width:none;z-index:1;background:#fafbf6;}
/* Equation numbers: each line of working in the main column carries its number at the left, (1), (2), (3)..., per problem. */
.tutor-board-math.has-eq{padding-left:38px;}
.tutor-eq{position:absolute;left:6px;top:50%;transform:translateY(-50%);font-family:inherit;font-size:12px;font-weight:500;line-height:1;letter-spacing:.02em;color:#6f6a60;white-space:nowrap;pointer-events:none;}
.tutor-board-side-spacer{flex:none;pointer-events:none;}
.tutor-board-math .katex-display{margin:0;text-align:left;}
.tutor-board-math .katex-display > .katex{text-align:left;}
.tutor-board-math .katex{font-size:1.14em;white-space:nowrap;}
.tutor-board-graph{max-width:100%;}
.tutor-board-graph svg{display:block;width:100%;height:auto;}
.tutor-board-visual{max-width:100%;margin:6px 0 10px;}
.tutor-board-visual svg{display:block;width:100%;height:auto;overflow:visible;}
.tutor-visual-text{font-family:inherit;}
/* Each problem in a session starts under its own heading; earlier ones stay above. */
.tutor-board-section{display:flex;align-items:baseline;gap:8px;margin:6px 0 12px;font:600 13px/1.3 inherit;letter-spacing:.02em;color:#6f6a60;}
.tutor-board-section.is-later{margin-top:34px;padding-top:18px;border-top:2px dashed #ddd6c8;}
.tutor-board-section-number{text-transform:uppercase;color:#6d665b;}
.tutor-board-section-title{font-weight:500;color:#6f6a60;}
.tutor-board-section-side{margin:34px 0 10px;padding-top:18px;border-top:2px dashed #ddd6c8;font:600 12px/1.3 inherit;text-transform:uppercase;letter-spacing:.02em;color:#6f6a60;}
.tutor-board-problem{display:flex;flex-direction:column;gap:10px;padding:12px 14px;margin:0 0 10px;border:1px solid #e6e1d8;border-radius:12px;background:#fff;cursor:pointer;}
.tutor-board-problem-image{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:8px;}
/* (2026-11-12) A question that is a photo or a page of a file: as wide as the board (both columns), at its full height, so its words can be read and marked. */
.tutor-board-problem.has-image{box-sizing:border-box;width:calc(142% + 28px);max-width:none;}
.tutor-board-problem.has-image .tutor-board-problem-image{width:100%;height:auto;max-height:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-problem.has-image{width:auto;}
.tutor-board-problem-text{margin:0;white-space:pre-wrap;font-size:15px;line-height:1.5;color:var(--tutor-ink);}
/* A question copied from their file: its maths drawn, one paragraph per line. */
.tutor-board-problem-text.is-copied{white-space:normal;overflow-wrap:anywhere;}
.tutor-board-problem-text.is-copied p{margin:0 0 6px;}
.tutor-board-problem-text.is-copied p:first-child{font-weight:600;}
.tutor-board-problem-text.is-copied .katex-display{overflow-x:auto;overflow-y:hidden;margin:4px 0;}
.tutor-mark{pointer-events:none;}
.tutor-pen{position:absolute;left:0;top:0;width:30px;height:30px;pointer-events:none;transition:transform .28s cubic-bezier(.3,.7,.3,1),opacity .2s;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));z-index:3;}
.tutor-pen svg{display:block;width:30px;height:30px;transform-origin:4px 26px;transform:translate(1px,-3px) rotate(var(--tilt,-8deg));transition:transform .08s ease-out;}
/* On the board the tip touches the surface and the hand leans with each stroke; lifted between letters. */
.tutor-pen.is-writing svg{transform:rotate(var(--tilt,-8deg));transition:none;}
.tutor-pen.is-writing{filter:drop-shadow(0 1px 1px rgba(0,0,0,.22));}
.tutor-pen.is-hidden,.tutor-board.is-drawing .tutor-pen.is-hidden{opacity:0;}
.tutor-pulse{animation:tutorPulseRing 1.4s ease-out forwards;transform-box:fill-box;transform-origin:center;}
@keyframes tutorPulseRing{0%{opacity:.9;transform:scale(.6)}70%{opacity:.6;transform:scale(1.6)}100%{opacity:0;transform:scale(2)}}

/* Transcript + composer */
.tutor-side-panel{display:flex;flex-direction:column;min-height:0;border:1px solid var(--tutor-line);border-radius:18px;background:#fff;overflow:hidden;}
.tutor-side-title{padding:14px 16px 6px;font-size:13px;font-weight:600;letter-spacing:.2px;color:var(--tutor-muted);}
.tutor-transcript{flex:1;min-height:0;overflow:auto;padding:16px 16px 28px;display:flex;flex-direction:column;gap:8px;-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 36px),transparent 100%);mask-image:linear-gradient(to bottom,#000 calc(100% - 36px),transparent 100%);}
.tutor-line{max-width:100%;font-size:15px;line-height:1.5;color:var(--tutor-ink);white-space:pre-wrap;overflow-wrap:anywhere;}
.tutor-line-tutor{padding:2px 0;}
.tutor-line-tutor.is-current{color:var(--tutor-ink);font-weight:500;}
.tutor-line-aside{color:var(--tutor-muted);font-style:italic;}
.tutor-line-student{align-self:flex-end;max-width:88%;padding:8px 12px;border-radius:14px;background:var(--tutor-side);}
.tutor-line-student.is-draft{opacity:.55;}
/* What they sent: a card per file, above their words. */
.tutor-line-files{align-self:flex-end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:88%;white-space:normal;}
.tutor-file-card{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 10px;border:1px solid var(--tutor-line);border-radius:12px;background:#fff;font-size:13px;line-height:1.3;}
.tutor-file-card img{width:44px;height:44px;flex:none;object-fit:cover;border-radius:8px;}
.tutor-file-name{overflow-wrap:anywhere;}
/* A page outline for a document (no picture of its own). */
.tutor-file-icon{flex:none;width:11px;height:14px;border:1.5px solid currentColor;border-radius:2px 5px 2px 2px;opacity:.55;}
.tutor-line-status{font-size:13px;color:var(--tutor-muted);}
.tutor-plans-link{display:block;margin-top:6px;padding:7px 14px;border:0;border-radius:999px;background:var(--tutor-ink,#111);color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.tutor-line-title{font-weight:600;font-size:14px;color:var(--tutor-muted);letter-spacing:.1px;padding-top:6px;}
/* The composer: one even pill: + | text | voice | send. */
.tutor-form{padding:10px 12px 12px;background:#fff;}
.tutor-chips{margin:0 0 8px;}
/* The input field, with the voice button on its own beside it (outside the field). */
.tutor-compose-row{display:flex;align-items:flex-end;gap:8px;}
.tutor-compose-row > .tutor-composer{flex:1;min-width:0;}
.tutor-form .tutor-compose-row > .tutor-voice{width:48px;height:48px;}
.tutor-compose-row > .tutor-voice svg{width:22px;height:22px;}
.tutor-composer{display:flex;align-items:flex-end;gap:4px;padding:5px;border:1px solid #dcdcd6;border-radius:24px;background:#fff;box-shadow:0 1px 2px rgba(20,20,15,.04);transition:border-color .15s,box-shadow .15s;}
.tutor-composer:focus-within{border-color:#c3c3bc;box-shadow:0 1px 3px rgba(20,20,15,.06);}
.tutor-form textarea{flex:1;min-width:0;box-sizing:border-box;height:36px;min-height:36px;max-height:140px;margin:0;padding:8px 6px;border:0;border-radius:0;background:transparent;font:inherit;font-size:15px;line-height:20px;color:var(--tutor-ink);resize:none;outline:none;}
.tutor-form textarea::placeholder{color:#9a9a93;}
.tutor-form .tutor-file-button,.tutor-form .tutor-voice,.tutor-form .tutor-send{flex:none;display:inline-flex;min-width:0;min-height:0;padding:0;margin:0;box-sizing:border-box;line-height:1;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:50%;cursor:pointer;transition:background .15s,color .15s,transform .12s;}
.tutor-file-button{color:var(--tutor-ink);}
.tutor-file-button:hover{background:var(--tutor-hover);}
.tutor-file-button input{display:none;}
.tutor-file-button svg,.tutor-voice svg,.tutor-send svg{width:20px;height:20px;}
/* Voice: light until it is on, then black with an X that ends it. */
.tutor-voice{background:#efefeb;color:var(--tutor-ink);}
.tutor-voice:hover{background:#e5e5e0;}
.tutor-voice .tutor-voice-end{display:none;}
.tutor-voice.is-on{background:#111;color:#fff;}
.tutor-voice.is-on .tutor-voice-mic{display:none;}
.tutor-voice.is-on .tutor-voice-end{display:block;}
/* The pace (1x / 1.5x): a small pill in the input field, before Send; 1.5x is inked. */
.tutor-form .tutor-composer .tutor-pace{flex:none;align-self:center;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:26px;padding:0 9px;margin:0 2px 0 0;border:1px solid #e3e3de;border-radius:999px;background:#fff;color:#55544f;font:600 12px/1 inherit;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .15s,color .15s,border-color .15s,transform .12s;}
.tutor-form .tutor-composer .tutor-pace:hover{background:#f4f4f0;}
.tutor-form .tutor-composer .tutor-pace:active{transform:scale(.96);}
.tutor-form .tutor-composer .tutor-pace.is-fast{background:#111;border-color:#111;color:#fff;}
/* Send is always there: grey until there is something to send. */
.tutor-send{background:#111;color:#fff;}
.tutor-send:hover:not(:disabled){background:#2b2b2b;}
.tutor-send:disabled{background:#dcdcd6;color:#fff;cursor:default;}
/* While the tutor works, the round button is a square Stop (as in Claude or ChatGPT). */
.tutor-send-stop{display:none;}
.tutor-form.is-busy .tutor-send-arrow{display:none;}
.tutor-form.is-busy .tutor-send-stop{display:block;}
.tutor-form.is-busy .tutor-send{background:#111;color:#fff;}
.tutor-voice:active,.tutor-send:active:not(:disabled){transform:scale(.94);}
.tutor-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;}
.tutor-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 6px 4px 8px;border:1px solid var(--tutor-line);border-radius:10px;background:var(--tutor-side);font-size:13px;color:var(--tutor-ink);}
.tutor-chip img{width:22px;height:22px;object-fit:cover;border-radius:5px;}
.tutor-chip.is-failed{color:#b3261e;}
.tutor-chip.is-reading{color:var(--tutor-muted);}
.tutor-chip-ref{background:#eef3fd;border-color:#cfdcf5;}
/* The files this session holds, always shown above the box. */
.tutor-chip-file{background:#fff;color:var(--tutor-muted);padding:4px 8px;max-width:260px;}
.tutor-chip-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tutor-chip-remove{border:0;background:transparent;color:var(--tutor-muted);font-size:16px;line-height:1;padding:0 2px;cursor:pointer;}
.tutor-file-button input{display:none;}
/* Voice orb: a matte lavender sphere centred in the transcript panel, between
   the last line and the composer, no word on it. The sphere itself never
   changes; the coloured lights inside it (drawn on the canvas, see
   createOrbPainter) answer the voices. */
.tutor-orb-stage{display:flex;justify-content:center;padding:12px 0 4px;pointer-events:none;animation:tutorOrbIn .35s cubic-bezier(.2,.9,.3,1.2);}
.tutor-orb-stage[hidden]{display:none;}
.tutor-orb{--level:0;position:relative;width:56px;height:56px;border-radius:50%;overflow:hidden;background:#b9a7e8;box-shadow:0 10px 24px rgba(90,70,170,.20),0 2px 6px rgba(60,50,110,.12);}
.tutor-orb-canvas{display:block;width:100%;height:100%;border-radius:50%;}
@keyframes tutorOrbIn{from{opacity:0;transform:translateY(8px) scale(.8);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){.tutor-orb-stage{animation:none !important;}}
/* Phones: a smaller orb. */
@media (max-width:700px){.tutor-orb-stage{padding:8px 0 2px;}.tutor-orb{width:44px;height:44px;}}
.tutor-shell.is-dragging .tutor-board-wrap{outline:2px dashed #2d67d4;outline-offset:-6px;}

/* Student drawing tools */
.tutor-board-ink{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2;}
.tutor-board-ink .tutor-student{pointer-events:stroke;cursor:pointer;}
.tutor-board-ink .tutor-student.is-selected,.tutor-student-text.is-selected{filter:drop-shadow(0 0 3px rgba(217,72,15,.7));}
.tutor-draw-layer{position:absolute;inset:0;z-index:4;pointer-events:none;touch-action:none;}
.tutor-board.is-drawing .tutor-draw-layer{pointer-events:auto;}
.tutor-board.is-drawing[data-tool="pen"] .tutor-draw-layer{cursor:crosshair;}
.tutor-board.is-drawing[data-tool="shape"] .tutor-draw-layer{cursor:crosshair;}
.tutor-board.is-drawing[data-tool="text"] .tutor-draw-layer{cursor:text;}
.tutor-student-text{position:absolute;min-width:24px;max-width:320px;padding:2px 6px;border-radius:6px;font-family:"Bradley Hand","Segoe Print","Comic Sans MS",cursive;font-size:19px;line-height:1.3;color:#be3f0d;background:transparent;outline:none;white-space:pre-wrap;z-index:3;cursor:text;}
.tutor-student-text[contenteditable="plaintext-only"]{background:rgba(255,255,255,.9);box-shadow:0 0 0 1px #e8c9b8;min-width:60px;}
.tutor-student-text[contenteditable="plaintext-only"]:empty::before{content:"Type…";color:#7d6659;}
.tutor-tools{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:14px;background:#fff;border:1px solid #d6d3cc;box-shadow:0 4px 18px rgba(40,35,25,.10),0 1px 2px rgba(40,35,25,.06);z-index:6;}
.tutor-tools button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#4a4944;cursor:pointer;}
.tutor-tools button:hover{color:#1f1f1d;background:#f3f2ee;}
.tutor-tools button.is-active{color:#111;}
.tutor-tools button.is-active svg{stroke-width:2.4;}
.tutor-tools button svg{width:21px;height:21px;stroke-width:2;}
.tutor-tools-gap{width:1px;height:24px;margin:0 6px;background:#d6d3cc;}

/* The app gives every button 16px side padding; icon buttons here are square. */
.tutor-tools button,.tutor-sound,.tutor-voice,.tutor-send,.tutor-chip-remove{padding:0;}
.tutor-tools button svg,.tutor-sound svg,.tutor-voice svg,.tutor-send svg{flex:none;}
/* Touch screens (phones and tablets in a browser): bigger targets, no zoom on focus. */
@media (pointer:coarse){
  .tutor-form .tutor-file-button,.tutor-form .tutor-voice,.tutor-form .tutor-send{width:40px;height:40px;}
  .tutor-form textarea{font-size:16px;height:40px;min-height:40px;padding:10px 6px;}
  .tutor-form .tutor-compose-row > .tutor-voice{width:52px;height:52px;}
}

/* Caption row and transcript button: phone only (see tutor-embed.css). */
/* The transcript glyph (2026-10-29): on the phone it opens the transcript over the board; on wide screens it folds the panel away. Quiet, like the buttons beside it. */
.tutor-transcript-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--tutor-muted);cursor:pointer;font:inherit;transition:background .12s ease,color .12s ease;}
.tutor-transcript-toggle svg{width:20px;height:20px;flex:none;}
.tutor-transcript-toggle:hover,.tutor-transcript-toggle:focus-visible{background:var(--tutor-hover);color:var(--tutor-ink);outline:none;}
.tutor-shell.is-transcript-hidden .tutor-transcript{display:none;}
.tutor-shell.is-transcript-hidden .tutor-form{background:transparent;padding:8px 0 0;}
.tutor-live-row{display:contents;}
.tutor-caption{display:none;}
/* "Thinking…" at the foot of the transcript while she works out a reply. */
.tutor-line-thinking{font-size:13px;color:var(--tutor-muted);font-style:italic;animation:tutorThinking 1.4s ease-in-out infinite;}
@keyframes tutorThinking{0%,100%{opacity:.45;}50%{opacity:1;}}
@media (prefers-reduced-motion: reduce){.tutor-line-thinking{animation:none;}}

/* Wide screens (web and the Mac app): the header row is the top of the
   transcript panel (status, then the two buttons), so the board and the
   panel start level at the top of the page. Last in the file, so it wins
   over the panel's and the embed's own rules. */
@media (min-width:1101px){
  body#elthosApp.home-view.home-tutor-view .tutor-shell,body#elthosApp.tutor-embed .tutor-shell{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(300px,380px);grid-template-rows:auto minmax(0,1fr);column-gap:18px;row-gap:0;}
  .tutor-shell .tutor-body{display:contents;}
  .tutor-shell .tutor-header,body#elthosApp.tutor-embed .tutor-header{grid-column:2;grid-row:1;margin:0;padding:10px 10px 4px 16px;border:1px solid var(--tutor-line);border-bottom:0;border-radius:18px 18px 0 0;background:#fff;}
  .tutor-shell .tutor-board-wrap{grid-column:1;grid-row:1 / span 2;}
  .tutor-shell .tutor-side-panel,body#elthosApp.tutor-embed .tutor-side-panel{grid-column:2;grid-row:2;border-top:0;border-radius:0 0 18px 18px;}
  .tutor-shell .tutor-side-title{display:none;}
  .tutor-shell .tutor-transcript{padding-top:10px;}
  /* The panel folded away: the header across the top, the board full width, the composer under it. */
  body#elthosApp .tutor-shell.is-transcript-hidden{grid-template-columns:minmax(0,1fr) !important;grid-template-rows:auto minmax(0,1fr) auto !important;}
  .tutor-shell.is-transcript-hidden .tutor-header,body#elthosApp.tutor-embed .tutor-shell.is-transcript-hidden .tutor-header{grid-column:1;grid-row:1;margin:0 0 10px;padding:6px 4px;border:0;border-radius:0;background:transparent;}
  .tutor-shell.is-transcript-hidden .tutor-board-wrap{grid-column:1;grid-row:2 / span 1;}
  .tutor-shell.is-transcript-hidden .tutor-side-panel,body#elthosApp.tutor-embed .tutor-shell.is-transcript-hidden .tutor-side-panel{grid-column:1;grid-row:3;border:0;border-radius:0;background:transparent;overflow:visible;}
}
/* Stacked screens (701 to 1100 px): the folded transcript leaves the composer under the board. */
@media (min-width:701px) and (max-width:1100px){
  .tutor-shell.is-transcript-hidden .tutor-body{grid-template-rows:minmax(0,1fr) auto;}
  .tutor-shell.is-transcript-hidden .tutor-side-panel{border:0;border-radius:0;background:transparent;}
}
/* One live sitting per account (2026-10-31): "Your tutor is open on another device. Continue here?" */
.tutor-sitting-sheet{position:fixed;left:50%;bottom:28px;z-index:40;transform:translateX(-50%);width:min(380px,calc(100vw - 32px));padding:14px 16px;border:1px solid var(--tutor-line,#e8e8e4);border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.14);}
.tutor-sitting-text{margin:0 0 10px;font-size:14px;line-height:1.45;color:var(--tutor-ink,#252525);}
.tutor-sitting-actions{display:flex;justify-content:flex-end;gap:8px;}
.tutor-sitting-continue,.tutor-sitting-later{padding:7px 14px;border:0;border-radius:999px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.tutor-sitting-continue{background:var(--tutor-ink,#111);color:#fff;}
.tutor-sitting-later{background:var(--tutor-side,#f7f7f5);color:var(--tutor-ink,#252525);}
/* The study list (tutor-study-panel.mjs): the top of the side panel when the
   tutor opens from a lecture or a class Exam sheet. Grouped, with progress; a
   long list folds to its "now" line while a lesson runs. */
.tutor-study{flex:0 1 auto;min-height:0;max-height:55%;display:flex;flex-direction:column;padding:10px 10px 12px;border-bottom:1px solid var(--tutor-line);background:#fff;}
.tutor-study[hidden]{display:none;}
.tutor-shell .tutor-study-head{display:flex;align-items:center;gap:8px;width:100%;min-height:0;height:30px;padding:0 6px;border:0;border-radius:8px;background:none;font-weight:400;text-align:left;cursor:pointer;color:var(--tutor-ink);}
.tutor-shell .tutor-study-head:hover{background:var(--tutor-hover);}
.tutor-study-name{font-size:14px;font-weight:600;}
.tutor-study-meta{margin-left:auto;font-size:12.5px;color:var(--tutor-muted);font-variant-numeric:tabular-nums;}
.tutor-study-chevron{flex:none;color:var(--tutor-muted);transition:transform .15s ease;}
.tutor-study.is-collapsed .tutor-study-chevron{transform:rotate(-90deg);}
.tutor-study-progress{height:3px;margin:4px 6px 6px;border-radius:2px;background:#ecece6;overflow:hidden;}
.tutor-study-progress span{display:block;height:100%;border-radius:2px;background:#1d1d1b;transition:width .3s ease;}
.tutor-study-list{flex:1 1 auto;min-height:60px;max-height:min(40vh,320px);overflow:auto;}
.tutor-shell .tutor-study-head,.tutor-study-progress,.tutor-study-replies,.tutor-shell .tutor-study-now{flex:none;}
.tutor-study-group{display:flex;justify-content:space-between;padding:8px 6px 3px;font-size:12px;font-weight:600;color:var(--tutor-muted);}
.tutor-study-group span:last-child{font-weight:400;font-variant-numeric:tabular-nums;}
.tutor-study-rows{list-style:none;margin:0;padding:0;}
.tutor-shell .tutor-study-item button{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:0;height:30px;padding:0 6px;border:0;border-radius:8px;background:none;font-weight:400;text-align:left;cursor:pointer;color:var(--tutor-ink);}
.tutor-shell .tutor-study-item button:hover{background:var(--tutor-hover);}
.tutor-shell .tutor-study-item.is-now button{background:#1d1d1b;color:#fff;}
.tutor-study-mark{flex:none;width:18px;display:inline-flex;justify-content:center;font-size:12px;font-variant-numeric:tabular-nums;color:var(--tutor-muted);}
.tutor-study-item.is-now .tutor-study-mark{color:#fff;}
.tutor-study-item.is-done .tutor-study-mark{color:#2f6b40;}
.tutor-study-title{flex:1;min-width:0;font-size:13.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tutor-study-item.is-now .tutor-study-title{font-weight:500;}
.tutor-study-item.is-done .tutor-study-title,.tutor-study-item.is-skipped .tutor-study-title{color:var(--tutor-muted);}
.tutor-study-item.is-skipped .tutor-study-title{text-decoration:line-through;}
.tutor-study-detail{flex:none;font-size:12px;color:var(--tutor-muted);white-space:nowrap;}
.tutor-study-item.is-now .tutor-study-detail{color:#d9d9d2;}
.tutor-shell .tutor-study-now{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:0;height:30px;padding:0 6px;border:0;border-radius:8px;background:none;font-size:13.5px;font-weight:500;text-align:left;color:var(--tutor-ink);cursor:pointer;}
.tutor-shell .tutor-study-now:hover{background:var(--tutor-hover);}
.tutor-study-now span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tutor-study-pulse{flex:none;width:8px;height:8px;margin:0 5px;border-radius:50%;background:#1d1d1b;animation:tutorStudyPulse 1.8s ease-in-out infinite;}
@keyframes tutorStudyPulse{0%,100%{opacity:1;}50%{opacity:.35;}}
@media (prefers-reduced-motion:reduce){.tutor-study-pulse{animation:none;}}
.tutor-study-replies{display:flex;flex-wrap:wrap;gap:6px;margin:10px 6px 0;}
.tutor-shell .tutor-study-replies button{min-height:0;height:32px;padding:0 13px;border:1px solid #d9d9d2;border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:500;color:var(--tutor-ink);cursor:pointer;}
.tutor-shell .tutor-study-replies button:hover{border-color:#1d1d1b;}
.tutor-shell .tutor-study-replies button.is-primary{border-color:#1d1d1b;background:#1d1d1b;color:#fff;padding:0 20px;font-weight:600;}
.tutor-shell .tutor-study-replies button.is-primary:hover{background:#3a3a37;border-color:#3a3a37;}
