/* The Study Room on the web.
 *
 * Tokens, type and motion come from system.css (loaded first, with
 * `data-color-scheme="auto"` on <html>, because this page is used at night):
 * a white page, near-black ink, LoopIn coral as a mark, and the app's own
 * motion timings. It is the same product as the app on another screen, and
 * it should feel like it.
 *
 * LAYOUT GOES BY WIDTH, NEVER BY DEVICE. Two shapes, one markup:
 *
 *   <700px      one pane at a time (Room, Study, Library) and a bottom bar.
 *               Phones, iPad Slide Over, Split View at a third or a half.
 *   >=700px     the conversation beside one side panel that switches
 *               Study | Library. The Reader takes that panel's place.
 *
 * The workspace is exactly one viewport tall and nothing but the panes
 * scroll, so the composer is on screen from the first paint at every width,
 * however long the conversation is. `--kb` is the on-screen keyboard's height,
 * set from `visualViewport` through the CSSOM (never a style attribute: the
 * page's CSP is `style-src 'self'`).
 *
 * MOTION, and where it is not: a new line rises in; Frosty's answer settles in
 * block by block; the Reader slides in from the side and back out; panes and
 * dialogs cross-fade. The conversation's FIRST draw, and every poll that
 * brings nothing new, does not move at all. Reduced motion keeps none of it.
 *
 * Nothing here is green. Green is a gain (DESIGN_SYSTEM.md); a delivered
 * message, a finished checklist item and a live room are none of them a gain,
 * so `live` is ink beside a coral dot, and done is an ink check on muted.
 */
:root{
  --kb:0px;--tabbar:56px;--target:32px;
  --safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);
  color:var(--text);background:var(--bg);font-family:var(--font);font-size:15px;
  font-synthesis:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;
  scrollbar-color:var(--line-strong) transparent
}
@media (prefers-color-scheme:dark){
  /* The mark is a black PNG; on the dark page it would all but vanish. */
  :root:not([data-theme="light"]) .brand img{filter:invert(1)}
}
@media (pointer:coarse){:root{--target:44px}}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg)}
body{min-height:100vh;min-height:100dvh;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled,button[aria-disabled=true]{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
::selection{background:var(--accent-soft);color:var(--text)}
[hidden]{display:none!important}
h1,h2,h3,p,ol,ul,dl,dd{margin:0}
ol,ul{padding:0}
h1{font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1.15}
h2{font-size:16px;font-weight:600;letter-spacing:-.01em}
h3{font-size:13px;font-weight:600;color:var(--text-2)}
p{line-height:1.6}
kbd,.keys{font-family:var(--mono);font-size:12px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:1px 6px;color:var(--text-2);background:var(--bg);white-space:nowrap}
.muted{color:var(--text-2)}
.fine{font-size:13px;color:var(--text-2);line-height:1.6}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:1.3px;color:var(--text-2);font-weight:500}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-120px;left:calc(16px + var(--safe-left));padding:12px 16px;background:var(--text);color:var(--bg);z-index:60;border-radius:var(--r-sm);min-height:44px}
.skip-link:focus{top:calc(12px + var(--safe-top))}
.brand{display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:650;letter-spacing:-.04em;min-height:44px}
.brand img{object-fit:contain}
.brand span{font-size:13px;color:var(--text-2);font-weight:450;letter-spacing:0;margin-left:6px;border-left:1px solid var(--line);padding-left:12px}
.text-link{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-strong)}
label{display:block;font-size:13px;font-weight:550;margin:0 0 9px}
input,textarea{width:100%;border:1px solid var(--line-strong);background:var(--bg);border-radius:var(--r-md);min-height:44px;padding:11px 12px;font-size:16px;line-height:1.4;caret-color:var(--accent);transition:border-color var(--dur-fade) var(--ease-out),box-shadow var(--dur-fade) var(--ease-out)}
input::placeholder,textarea::placeholder{color:var(--text-3);opacity:1}
textarea{resize:none}
input:focus-visible,textarea:focus-visible{outline:none;border-color:var(--text);box-shadow:0 0 0 4px var(--accent-soft)}

/* --- buttons -------------------------------------------------------------- */
.button{display:inline-flex;min-height:max(36px,var(--target));padding:8px 14px;border:1px solid var(--line);border-radius:var(--r-pill);align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:500;background:transparent;line-height:1.2;text-align:center;
  transition:background-color var(--dur-fade) var(--ease-out),border-color var(--dur-fade) var(--ease-out),color var(--dur-fade) var(--ease-out),transform var(--dur-press) var(--ease-out)}
.button:active:not(:disabled):not([aria-disabled=true]){transform:scale(.97)}
.button.primary{background:var(--text);color:var(--bg);border-color:var(--text)}
.button.quiet{border-color:transparent}
.button.square{min-width:max(36px,var(--target));padding-inline:0}
.button.wide{width:100%}
.segmented{display:inline-flex;border-radius:var(--r-pill);padding:3px;gap:2px;background:var(--bg-muted);max-width:100%}
.segment{min-height:max(30px,var(--target));padding:5px 12px;border-radius:var(--r-pill);font-size:13px;font-weight:550;color:var(--text-2);white-space:nowrap;
  transition:background-color var(--dur-scope) var(--ease-out),color var(--dur-scope) var(--ease-out),box-shadow var(--dur-scope) var(--ease-out)}
.segment[aria-pressed=true]{background:var(--bg);color:var(--text);box-shadow:var(--shadow-sm),0 0 0 1px var(--line)}
@media (hover:hover) and (pointer:fine){
  .button:hover:not(:disabled):not([aria-disabled=true]){background:var(--bg-muted)}
  .button.primary:hover:not(:disabled):not([aria-disabled=true]){background:var(--text);opacity:.86}
  .segment:hover:not([aria-pressed=true]){color:var(--text)}
  .tool:hover:not(:disabled):not([aria-disabled=true]),.tab:hover{background:var(--bg-muted)}
  /* On glass a hover is a lens of ink, not a grey block. */
  .topbar .button:hover:not(:disabled):not([aria-disabled=true]),.topbar .button[aria-expanded=true]{background:var(--glass-lens)}
  .text-link:hover{text-decoration-color:currentColor}
}

/* --- screens -------------------------------------------------------------- */
.screen{min-height:100vh;min-height:100dvh;background:var(--bg);
  padding:calc(24px + var(--safe-top)) calc(24px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(24px + var(--safe-left))}
.loading-screen{display:grid;place-items:center}
.loading-content{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:34ch;text-align:center}
.loading-frosty{width:72px;height:72px;border-radius:50%;object-fit:cover}
.loading-title{font-size:17px;font-weight:550;letter-spacing:-.01em;color:var(--text)}

.entry,.landing{display:flex;flex-direction:column;gap:28px;align-items:center}
.entry-head{width:100%;max-width:1040px}
.entry-card{width:100%;max-width:1040px;margin:auto 0;display:flex;flex-direction:column;gap:32px}
.entry-copy h1,.landing h1,.ended h1{font-size:34px;letter-spacing:-.04em;margin:14px 0 16px;line-height:1.08;text-wrap:balance}
.entry-intro{font-size:17px;color:var(--text-2);line-height:1.6;margin-bottom:28px}
.entry-privacy{margin-top:6px;max-width:42ch}
.entry-privacy summary{cursor:pointer;font-size:13px;color:var(--text-2);min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
.entry-privacy summary::-webkit-details-marker{display:none}
.entry-privacy summary::after{content:"+";font-size:16px}
.entry-privacy[open] summary::after{content:"−"}
.entry-privacy[open] p{animation:lx-fade var(--dur-enter) var(--ease-out) both}
.entry-privacy summary .ui-icon{margin-right:2px}
.entry-steps{list-style:none;counter-reset:step;display:grid;gap:14px;margin:0 0 22px}
.entry-steps li{counter-increment:step;display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start;line-height:1.5}
.entry-steps li::before{content:counter(step);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg-muted);font-family:var(--mono);font-size:13px;font-weight:600}
.entry-join{display:flex;flex-direction:column;gap:18px}
.pair-card{display:flex;flex-direction:column;align-items:center;gap:14px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-xl);padding:24px 18px;box-shadow:var(--shadow-md)}
/* Black on white in BOTH themes, with its own quiet zone inside the SVG: a
   scanner reads contrast, not a colour scheme. */
.pair-qr{width:216px;height:216px;max-width:100%;background:#ffffff;border-radius:var(--r-md);display:grid;place-items:center;overflow:hidden}
.pair-qr svg{display:block;width:100%;height:100%;transition:filter var(--dur-enter) var(--ease-out),opacity var(--dur-enter) var(--ease-out),transform var(--dur-settle) var(--ease-settle)}
.pair-card.is-scanned .pair-qr svg{filter:blur(7px);opacity:.3;transform:scale(.96)}
.pair-status{font-size:14px;text-align:center;min-height:22px;line-height:1.5}
.entry-divider{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--text-2)}
.entry-divider::before,.entry-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.entry-form{display:flex;flex-direction:column}
/* The steps in one line, where the list is hidden (below 700px). */
.entry-how{font-size:14px;line-height:1.5;margin:0 0 14px}
.entry[data-wide] .entry-how{display:none}
/* The code is read off one screen and typed into another, so it is set big,
   monospaced and widely tracked -- every character has to be unmistakable. */
.code-input{font-family:var(--mono);font-size:22px;letter-spacing:6px;text-align:center;min-height:54px;text-transform:uppercase;margin-bottom:14px}
.code-input[aria-invalid=true]{border-color:var(--danger)}
.form-status{min-height:24px;font-size:14px;margin-top:12px;color:var(--text-2)}
.form-status.is-error{color:var(--danger)}
.back-link{font-size:14px;color:var(--text-2);display:inline-flex;align-items:center;gap:8px;min-height:44px}
/* Below 700px the typed code leads and the QR is a disclosure: a phone
   browser is the one screen that cannot scan itself. */
.entry:not([data-wide]) .entry-steps,.entry:not([data-wide]) .entry-divider{display:none}
.entry:not([data-wide]) .entry-form{order:1}
.entry:not([data-wide]) .pair-show{order:2}
.entry:not([data-wide]) .pair-card{order:3}
.entry:not([data-wide]) .pair-card{box-shadow:none}
.entry:not([data-pair=on]) .entry-divider{display:none}

.landing-card,.ended-card{width:100%;max-width:440px;margin:auto 0;display:flex;flex-direction:column;gap:16px}
.landing-card h1,.ended-card h1{margin:4px 0 4px}
.landing-store{font-size:14px;text-align:center}
.landing-store .app-store-badge{margin-bottom:0}
.ended{display:flex;align-items:center;justify-content:center}

@media (min-width:700px){
  .screen{padding-left:calc(40px + var(--safe-left));padding-right:calc(40px + var(--safe-right))}
  .entry-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,340px);gap:clamp(40px,8vw,120px);align-items:center;padding:40px 0}
  .entry-copy h1{font-size:clamp(40px,4.8vw,64px);letter-spacing:-.045em}
  .entry-copy{max-width:500px}.entry-reach{max-width:36ch}.entry-join{gap:16px}
}

/* --- the workspace -------------------------------------------------------- */
body.in-room{overflow:hidden}
.workspace{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100vh;height:calc(100dvh - var(--kb));
  margin:0 auto;background:var(--bg);overflow:hidden;
  padding-left:var(--safe-left);padding-right:var(--safe-right);
  --topbar-h:calc(84px + var(--safe-top));
  --scroll-edge:none}

/* The header is a pane of the app's glass (system.css .glass), and the room
   scrolls UNDER it -- glass with nothing passing beneath is only a white bar.
   So the header and the panes share the first row, and every scroller that
   starts at the top reserves --topbar-h, the header's measured bottom edge
   (study-room.js; the values here are only the first frame's guess). A full
   bleed bar on a phone, a floating capsule from 700px. */
.topbar{grid-row:1;grid-column:1;align-self:start;position:relative;z-index:10;display:flex;flex-wrap:wrap;row-gap:2px;align-items:center;gap:10px;padding:calc(8px + var(--safe-top)) 16px 8px;min-height:60px;min-width:0;
  box-shadow:inset 0 1px 0 var(--glass-rim),0 1px 0 var(--glass-edge)}
.panes{grid-row:1;grid-column:1}
.tabbar{grid-row:2}
.course-mark{width:36px;height:36px;border-radius:var(--r-sm);background:var(--bg-muted);color:var(--text);display:none;place-items:center;font-family:var(--mono);font-weight:600;font-size:12px;flex-shrink:0;overflow:hidden;text-align:center;line-height:1.1;padding:2px}
.topbar-titles{min-width:0;flex:1}
.topbar-titles h1{font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-titles h1:focus{outline:none}
.room-sub{display:flex;min-width:0;font-size:13px;color:var(--text-2);line-height:1.35;white-space:nowrap;overflow:hidden}
/* The course code is what gives way; the end time never is. */
.room-course{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
.room-ends{flex:0 0 auto;white-space:pre}
.live{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:550;white-space:nowrap;flex-shrink:0}
.live-dot{position:relative;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.topbar-tools{display:flex;align-items:center;gap:4px;flex-shrink:0}
.topbar-tools .icon{flex-shrink:0}
/* Hidden by clipping, never by display:none: a label taken out of the page
   is taken out of the button's accessible name with it. */
.palette-label,.identity-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#palette-open{color:var(--text-2)}
.identity{position:relative}
.identity-button{max-width:340px;min-width:max(36px,var(--target));padding-inline:4px;gap:0;white-space:nowrap;justify-content:center}
.identity-initials{width:30px;height:30px;border-radius:50%;background:var(--bg-muted);color:var(--text);display:grid;place-items:center;font-size:12px;font-weight:600;letter-spacing:.3px;flex-shrink:0}
.identity-text>*{white-space:pre}
.identity-text strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.identity-lead,.identity-scope{flex:0 0 auto;color:var(--text-2)}
/* "You're in as {name} · this room only" on its own line, below 700px. */
.identity-line{flex:1 0 100%;display:flex;min-width:0;font-size:13px;line-height:1.35;color:var(--text-2);white-space:nowrap}
.identity-line strong{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.identity-line-lead,.identity-line-scope{flex:0 0 auto;white-space:pre}
.menu{position:absolute;right:0;top:calc(100% + 8px);width:min(300px,calc(100vw - 32px));background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:14px;z-index:40;display:flex;flex-direction:column;gap:10px;transform-origin:top right}
.menu:not([hidden]){animation:lx-pop var(--dur-enter) var(--ease-out) both}
.menu-title{font-size:14px;font-weight:550;line-height:1.45}
.menu-heading{font-size:13px;color:var(--text-2);font-weight:600}
.menu-note{font-size:13px;line-height:1.5;color:var(--text-2)}
.menu-note:empty{display:none}
.menu-note.is-error{color:var(--danger)}
.leave-confirm{display:flex;flex-direction:column;gap:8px}
.leave-confirm .menu-note{color:var(--text)}
.people{list-style:none;display:flex;flex-direction:column;gap:6px;max-height:40vh;overflow:auto}
.person{display:flex;align-items:center;gap:8px;font-size:14px;min-height:28px}
.person .initials{width:24px;height:24px;border-radius:50%;background:var(--bg-muted);display:grid;place-items:center;font-size:12px;font-weight:600;flex-shrink:0}
.person.host .initials{background:var(--line)}

.panes{display:grid;min-height:0;min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"main"}
.pane{min-height:0;min-width:0}
.pane-heading{padding:14px 16px 6px}
.pane-library,.pane-tools{overflow-y:auto;overscroll-behavior:contain;background:var(--bg);padding-top:var(--topbar-h);padding-bottom:28px}
.library-panel{padding:4px 20px 20px}
.side-switch{display:none}

/* The room: a conversation that scrolls inside its own box, and a composer
   pinned under it. */
.pane-room{display:flex;flex-direction:column;background:var(--bg)}
.transcript-wrap{position:relative;flex:1;min-height:0;display:flex}
.transcript{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:24px;
  padding:calc(var(--topbar-h) + 20px) max(16px,calc((100% - 760px)/2)) 20px}
/* The scroll edge: what passes under the header thins out as it rises, so the
   glass carries a hint of the conversation and never a second line of text
   behind the title -- and nothing peeks out above a floating capsule. */
.transcript{-webkit-mask-image:var(--scroll-edge);mask-image:var(--scroll-edge)}
.transcript:focus{outline:none}
.transcript:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}
.empty{padding:48px 8px;color:var(--text-2);font-size:15px;text-align:center}
.line{max-width:min(680px,100%);min-width:0}
.line-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:13px;color:var(--text-2);margin-bottom:6px}
.line-who{font-weight:600;color:var(--text)}
.line-time{font-variant-numeric:tabular-nums}
.only-you{display:inline-flex;align-items:center;font-size:12px;font-weight:550;color:var(--text-2);border-radius:var(--r-pill);padding:1px 8px;background:var(--bg-muted)}
.line-question{font-size:13px;color:var(--text-2);margin:0 0 8px;padding-left:10px;border-left:2px solid var(--line);overflow-wrap:anywhere;white-space:pre-wrap}
.line-body{font-size:15px;line-height:1.65;overflow-wrap:anywhere;padding:0;background:transparent}
.line-body.plain{white-space:pre-wrap}
/* Your own words sit in a quiet bubble on the right; everyone else's are
   plain text on the page, and Frosty's are the page itself. */
.line.mine{margin-left:auto;max-width:min(560px,86%)}
.line.mine .line-meta{justify-content:flex-end}
.line.mine .line-body{background:var(--bg-muted);border-radius:20px 20px 6px 20px;padding:10px 16px}
.line.assistant .line-meta .line-who{color:var(--text)}
.line.system .line-body{color:var(--text-2);font-size:14px}
.line.pending .line-body{font-variant-numeric:tabular-nums;color:var(--text-2)}
.line:focus{outline:none}
.line:focus-visible .line-body{box-shadow:0 0 0 2px var(--accent);border-radius:var(--r-sm)}
.line-actions{display:flex;gap:4px;margin-top:8px;margin-left:-10px}
.line-actions .button{min-height:max(30px,var(--target));font-size:13px;padding:4px 10px;color:var(--text-2)}
.line-body p+p,.line-body p+ul,.line-body ul+p,.line-body p+ol{margin-top:8px}
.line-body ul,.line-body ol{padding-left:20px}
.line-body pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--mono);font-size:13px}
.line-answers{margin-top:8px;font-size:14px}
.line-answers summary{display:inline-flex;align-items:center;min-height:max(32px,var(--target));color:var(--text-2);font-weight:550;cursor:pointer}
.line-answers-body{margin-top:6px;border:1px dashed var(--line-strong);border-radius:var(--r-md);padding:10px 14px;overflow-wrap:anywhere;animation:lx-fade var(--dur-enter) var(--ease-out) both}
.new-messages{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:var(--text);color:var(--bg);border-color:var(--text);box-shadow:var(--shadow-lg);z-index:5;animation:pill-in var(--dur-enter) var(--ease-settle) both}
@keyframes pill-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.frosty-avatar{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0;vertical-align:middle}

/* A citation you followed is shown, once, and then lets go. */
.line.is-target .line-body{animation:cite-glow 2.4s var(--ease-out) both;border-radius:var(--r-sm)}
@keyframes cite-glow{0%{box-shadow:0 0 0 2px var(--accent)}65%{box-shadow:0 0 0 2px var(--accent)}100%{box-shadow:0 0 0 2px transparent}}

/* --- the composer: one surface ------------------------------------------- */
.composer{padding:10px 16px calc(12px + var(--safe-bottom));background:var(--bg);display:flex;flex-direction:column;gap:8px}
.composer-box{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line-strong);border-radius:24px;background:var(--bg);padding:6px 8px 8px 8px;box-shadow:var(--shadow-sm);
  transition:border-color var(--dur-fade) var(--ease-out),box-shadow var(--dur-fade) var(--ease-out)}
.composer-box:focus-within{border-color:var(--text-3);box-shadow:var(--shadow-md)}
/* Asking Frosty is the one place coral warms the room: a ring, not a fill. */
.composer.asking .composer-box{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.composer-row{display:block}
.composer-row textarea{display:block;border:0;background:transparent;border-radius:var(--r-md);padding:10px 8px 6px;min-height:44px;max-height:200px;overflow-y:auto;box-shadow:none}
.composer-row textarea:focus-visible{box-shadow:none}
.composer-mode{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.mode-switch{background:transparent;padding:0;gap:4px}
.mode-switch .segment{display:inline-flex;align-items:center;gap:6px;padding-inline:10px}
#ask-toggle[aria-pressed=true]{background:var(--accent-soft);color:var(--text);box-shadow:none}
.mode-chip{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line-strong);color:var(--text);border-radius:var(--r-pill);padding:0 0 0 12px;font-size:13px;font-weight:550;min-height:max(30px,var(--target));animation:lx-pop var(--dur-enter) var(--ease-out) both}
.chip-clear{min-width:max(30px,var(--target));min-height:max(30px,var(--target));border-radius:var(--r-pill);font-size:18px;line-height:1;color:var(--text-2);display:inline-grid;place-items:center}
.another-hint{font-size:13px}
.composer-actions{display:inline-flex;align-items:center;gap:6px;margin-left:auto}
/* Send is a round arrow; its word stays in the button as its name. */
.send{position:relative;width:max(36px,var(--target));min-width:max(36px,var(--target));height:max(36px,var(--target));padding:0;border-radius:50%;overflow:hidden;white-space:nowrap;text-indent:120px;font-size:15px}
.send::before{position:absolute;inset:0;margin:auto;width:18px;height:18px}
.send:disabled{opacity:.25}
/* After the session the composer's place says so, on the composer's own
   surface: one quiet sentence and the one thing worth doing. */
.wrap-bar{padding:10px 16px calc(12px + var(--safe-bottom));background:var(--bg)}
.wrap-bar:not([hidden]){animation:lx-rise var(--dur-enter) var(--ease-out) both}
.wrap-box{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:24px;background:var(--bg-subtle);padding:10px 10px 10px 18px}
.wrap-text{flex:1;min-width:0;font-size:14px;line-height:1.45;color:var(--text-2)}
.wrap-lead{color:var(--text);font-weight:550}
.wrap-pack{flex-shrink:0}
.wrap-pack .ui-icon{width:16px;height:16px}
.composer-note{font-size:13px;color:var(--text-2);line-height:1.5;padding-inline:12px;animation:lx-fade var(--dur-fade) var(--ease-out) both}
.composer-note:empty{display:none}
.composer-note.is-error{color:var(--danger)}
.reader-ready{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:var(--r-pill);padding:4px 4px 4px 14px;background:var(--bg-subtle);animation:lx-pop var(--dur-enter) var(--ease-settle) both}
.reader-ready-text{flex:1;min-width:0;font-size:14px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.composer-hint{font-size:12px;color:var(--text-2);line-height:1.4;padding-inline:14px;opacity:0;transition:opacity var(--dur-fade) var(--ease-out)}
.composer:focus-within .composer-hint{opacity:1}
/* Push to talk is held, not tapped: no scroll gesture, no text selection and
   no callout may interrupt the hold. CSS only -- the voice code is untouched. */
#talk{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.talk-label{white-space:nowrap}
.talk[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
.room-voice{display:inline-flex;align-items:center;gap:.45rem;font-size:13px}
.room-voice[aria-pressed="true"]{color:var(--text);background:var(--accent-soft)}

/* --- the study panel ------------------------------------------------------- */
.pane-tools .pane-heading{padding-bottom:0}
.study-intro{display:flex;align-items:center;gap:12px;padding:20px 20px 16px}
.study-intro img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}
.study-intro h3{font-size:16px;font-weight:600;color:var(--text);letter-spacing:-.01em}
.study-intro p{font-size:13px;color:var(--text-2);margin-top:2px;line-height:1.45}
.now-strip{padding:0 20px 14px;min-width:0}
.now-strip .st-now-list{display:block}
.now-strip .st-now{display:flex;width:100%;justify-content:flex-start;gap:4px;background:var(--bg-subtle);border:1px solid var(--line);border-radius:var(--r-md);padding:10px 14px;min-height:max(40px,var(--target))}
.now-strip:empty{display:none}
.tools-panel{padding:0 20px 28px;display:flex;flex-direction:column;gap:18px}
.tools-panel>.fine:empty{display:none}
.tools-busy{font-size:13px;color:var(--text-2)}
.quick-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quick-tools .quick-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-height:104px;padding:14px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);width:100%;
  transition:border-color var(--dur-fade) var(--ease-out),box-shadow var(--dur-fade) var(--ease-out),transform var(--dur-press) var(--ease-out),background-color var(--dur-fade) var(--ease-out)}
.quick-tools .quick-card .ui-icon{width:20px;height:20px;flex-basis:20px;margin-bottom:auto;color:var(--text)}
.quick-tools .quick-card .tool-label{font-size:14px;font-weight:600;margin-top:12px}
.quick-tools .quick-card .tool-desc{font-size:12px;color:var(--text-2);line-height:1.4}
.quick-tools .quick-card:active:not(:disabled):not([aria-disabled=true]){transform:scale(.98)}
@media (hover:hover) and (pointer:fine){
  .quick-tools .quick-card:hover:not(:disabled):not([aria-disabled=true]){border-color:var(--line-strong);box-shadow:var(--shadow-md);background:var(--bg)}
  .quick-tools .ask-card:hover:not(:disabled){background:var(--text);opacity:.9}
}
.quick-tools .ask-card{background:var(--text);color:var(--bg);border-color:var(--text)}
.quick-tools .ask-card .ui-icon,.quick-tools .ask-card .tool-desc{color:inherit}
.quick-tools .ask-card .tool-desc{opacity:.75}
.make-for{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.make-for-label{font-size:13px;font-weight:550;color:var(--text-2)}
.recent-work:empty{display:none}
.recent-work{padding-top:16px;border-top:1px solid var(--line)}
.recent-work h3{font-weight:550;font-size:13px;margin-bottom:6px}
.recent-work .st-row{padding:8px 10px;margin-inline:-10px;width:calc(100% + 20px)}
.more-tools{border-top:1px solid var(--line);padding-top:6px}
.more-tools>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;min-height:44px;font-size:14px;font-weight:550;list-style:none}
.more-tools>summary::-webkit-details-marker{display:none}
.more-tools>summary .ui-icon{transition:transform var(--dur-enter) var(--ease-settle)}
.more-tools[open]>summary .ui-icon{transform:rotate(90deg)}
.more-tools[open]>summary{margin-bottom:10px}
.more-tools[open]>.tool-group{animation:lx-rise var(--dur-enter) var(--ease-out) both}
.more-tools[open]>.tool-group:nth-of-type(2){animation-delay:30ms}
.more-tools[open]>.tool-group:nth-of-type(3){animation-delay:60ms}
.more-tools[open]>.tool-group:nth-of-type(n+4){animation-delay:90ms}
.tool-group{display:flex;flex-direction:column;gap:2px}
.tool-group + .tool-group{padding-top:18px}
.tool-group h3{margin:0 10px 6px}
.tool{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-areas:"icon label" ". desc";gap:2px 12px;align-items:baseline;
  border:0;border-radius:var(--r-md);background:transparent;text-align:left;padding:10px;min-height:max(44px,var(--target));width:100%;
  transition:background-color var(--dur-fade) var(--ease-out),transform var(--dur-press) var(--ease-out)}
.tool:active:not(:disabled):not([aria-disabled=true]){transform:scale(.99)}
.tool-label{grid-area:label;font-size:14px;font-weight:550}
.tool-desc{grid-area:desc;font-size:13px;color:var(--text-2);line-height:1.4}
/* Said to a screen reader in the button's name; the panel says it once. */
.tool-audience{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.tool>.ui-icon{grid-area:icon;align-self:start;margin-top:1px;color:var(--text-2)}
/* Working: the label shimmers rather than a second sentence appearing. */
.tool[aria-busy=true] .tool-label,.quick-card[aria-busy=true] .tool-label{background:linear-gradient(90deg,var(--text) 0%,var(--text) 35%,var(--text-3) 50%,var(--text) 65%,var(--text) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:lx-shimmer 1.4s linear infinite}
.tool[aria-busy=true] .tool-desc{opacity:.55}
.side-switch .segment{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.tab .ui-icon{width:22px;height:22px;flex-basis:22px}

/* --- the reader ----------------------------------------------------------- */
.reader{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--bg);grid-area:main}
.reader-head{display:flex;align-items:center;gap:8px;padding:12px 16px 10px;padding-top:calc(12px + var(--safe-top));border-bottom:1px solid var(--line)}
.reader-head h2{flex:1;min-width:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reader-head h2:focus{outline:none}
.reader-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px calc(28px + var(--safe-bottom))}
.reader-body .line-body{border:0;padding:0;background:none}
.file-open{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.file-open .fine{margin-top:-4px}
.fallback-list{list-style:none;display:flex;flex-direction:column;gap:6px}
.fallback-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;border:1px solid var(--line);border-radius:var(--r-md);background:var(--bg);padding:10px 12px;min-height:max(44px,var(--target))}
.fallback-item .fine{font-size:13px}

/* --- importing a file ------------------------------------------------------ */
.drop-zone{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:24px;background:color-mix(in srgb,var(--bg) 72%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:lx-fade var(--dur-fade) var(--ease-out) both;pointer-events:none}
.drop-card{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:420px;padding:36px 32px;border:2px dashed var(--accent);border-radius:var(--r-xl);background:var(--bg);box-shadow:var(--shadow-lg);animation:lx-pop var(--dur-settle) var(--ease-settle) both}
.drop-card .ui-icon{width:28px;height:28px;flex-basis:28px;color:var(--accent)}
.drop-title{font-size:18px;font-weight:600;letter-spacing:-.01em}

/* --- the bottom bar ------------------------------------------------------- */
.tabbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);
  height:calc(var(--tabbar) + var(--safe-bottom));padding-bottom:var(--safe-bottom)}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:550;color:var(--text-2);min-height:44px;transition:color var(--dur-scope) var(--ease-out)}
.tab[aria-pressed=true]{color:var(--text)}
.tab .ui-icon{transition:transform var(--dur-enter) var(--ease-settle)}
.tab[aria-pressed=true] .ui-icon{transform:translateY(-1px) scale(1.06)}
.tab[aria-pressed=true] span:last-child{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px}
.kb-open .tabbar{display:none}

/* Narrow: one pane at a time, chosen by the bottom bar. */
@media (max-width:699.98px){
  .pane-tools,.pane-library{-webkit-mask-image:var(--scroll-edge);mask-image:var(--scroll-edge)}
  .workspace[data-pane=room] .pane-library,.workspace[data-pane=room] .pane-tools,
  .workspace[data-pane=tools] .pane-room,.workspace[data-pane=tools] .pane-library,
  .workspace[data-pane=library] .pane-room,.workspace[data-pane=library] .pane-tools{display:none}
  .pane-library,.pane-tools,.pane-room{grid-area:main}
  .pane-tools .pane-heading{display:none}
  .study-intro{padding-top:24px}
  .composer{padding-bottom:10px}
  .kb-open .composer{padding-bottom:calc(10px + var(--safe-bottom))}
  /* The reader is the whole screen: everything else steps aside, so focus
     cannot wander behind it. */
  .workspace[data-reader=open]>.topbar,.workspace[data-reader=open]>.tabbar,
  .workspace[data-reader=open] .pane{display:none}
  .talk{width:max(36px,var(--target));padding:0}
  .talk .talk-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .room-voice span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .room-voice{width:max(36px,var(--target));padding:0}
  .segment{padding-inline:10px}
}
@media (min-width:700px){
  .tabbar{display:none}
  .course-mark{display:grid}
  .topbar{flex-wrap:nowrap}
  .palette-label,.identity-text{position:static;width:auto;height:auto;margin:0;overflow:hidden;clip:auto}
  .palette-label{display:inline}
  .identity-text{display:flex;min-width:0}
  .identity-button{padding-inline:10px;justify-content:flex-start}
  .identity-initials,.identity-line{display:none}
  .talk-icon{display:none}
  .workspace{--topbar-h:76px}
  .topbar{margin:10px 12px 0;padding:10px 10px 10px 12px;gap:12px;min-height:60px;border-radius:var(--r-pill);
    box-shadow:inset 0 1px 0 var(--glass-rim),0 0 0 1px var(--glass-edge),var(--glass-shadow)}
  .composer,.wrap-bar{padding:12px max(20px,calc((100% - 800px)/2)) 16px}
  .panes{grid-template-columns:minmax(360px,1fr) clamp(320px,28vw,380px);grid-template-rows:auto minmax(0,1fr);
    grid-template-areas:"room switch" "room side"}
  .pane-room{grid-area:room}
  .side-switch{grid-area:switch;display:grid;grid-template-columns:1fr 1fr;position:relative;margin:calc(var(--topbar-h) + 10px) 20px 4px;padding:3px;border-radius:var(--r-pill);background:var(--bg-muted)}
  /* The selected half is a lens that travels, at the app's lens spring, and
     stretches along the way it goes (study-room.js, the app's 160 ms). */
  .side-switch::before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:var(--r-pill);background:var(--bg);box-shadow:inset 0 1px 0 var(--glass-rim),var(--shadow-sm),0 0 0 1px var(--line);transition:transform var(--dur-settle) var(--ease-lens)}
  .workspace[data-side=library] .side-switch::before{transform:translateX(100%)}
  .side-switch .segment{position:relative;z-index:1;background:transparent;box-shadow:none}
  .side-switch .segment[aria-pressed=true]{background:transparent;box-shadow:none}
  .pane-tools,.pane-library{grid-area:side;padding-top:0}
  /* The divider starts under the header, never above it. */
  .pane-room{position:relative}
  .pane-room::after{content:"";position:absolute;top:var(--topbar-h);right:0;bottom:0;width:1px;background:var(--line);pointer-events:none}
  .workspace[data-side=tools] .pane-library,.workspace[data-side=library] .pane-tools{display:none}
  .reader{grid-column:2;grid-row:1 / -1;margin-top:var(--topbar-h)}
  .workspace[data-reader=open] .side-switch,.workspace[data-reader=open] .pane-tools,.workspace[data-reader=open] .pane-library{display:none}
  .reader-head{padding-top:12px}
}
/* Beside the Study | Library switch, a second heading saying the same word is
   noise; it stays for a screen reader and as the pane's focus target. */
@media (min-width:700px){
  .pane-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .pane-tools,.pane-library{position:relative}
}
@media (min-width:1100px){
  .topbar{margin-inline:16px;padding-inline:12px}
  .panes{grid-template-columns:minmax(0,1fr) 380px}
}
@media (max-width:420px){
  /* The word stays for a screen reader; the dot carries it on screen. */
  .live-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .live .live-dot{width:9px;height:9px}
}
@media (pointer:coarse){
  .text-link{display:inline-flex;align-items:center;min-height:44px}
}

/* --- dialogs -------------------------------------------------------------- */
.dialog{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);color:var(--text);box-shadow:var(--shadow-lg);padding:0;
  width:min(560px,calc(100vw - 32px));max-height:min(620px,calc(100dvh - 48px))}
.dialog::backdrop{background:var(--scrim)}
.dialog[open]{display:flex;flex-direction:column}
.palette{margin-top:min(12vh,96px)}
.palette-input{border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:56px;padding:16px 18px;font-size:17px}
.palette-input:focus-visible{box-shadow:none;border-color:var(--line)}
.palette-list{list-style:none;overflow-y:auto;padding:6px}
.palette-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--r-md);min-height:max(40px,var(--target));cursor:pointer;font-size:15px;transition:background-color var(--dur-press) var(--ease-out)}
.palette-option[aria-selected=true]{background:var(--bg-muted)}
.palette-group{font-size:12px;color:var(--text-2);font-weight:550;white-space:nowrap}
.palette-empty{padding:12px 16px}
.help{padding:24px;gap:14px}
.help-keys{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:baseline;font-size:14px}
.help-keys dt{text-align:right}
.room-voice-consent{display:flex;gap:.7rem;align-items:flex-start;min-height:44px;margin:1.5rem 0;line-height:1.5;cursor:pointer}
.room-voice-consent input{flex:0 0 auto;width:1.1rem;height:1.1rem;min-height:0;padding:0;margin:.2rem 0 0;accent-color:var(--text)}
.room-voice-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.6rem}

.noscript{padding:24px;text-align:center}

/* --- motion --------------------------------------------------------------- */
@keyframes line-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes reader-in{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes screen-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes live-ping{0%{transform:scale(1);opacity:.55}100%{transform:scale(2.6);opacity:0}}
@media (prefers-reduced-motion:no-preference){
  .entry:not([hidden]) .entry-card,.landing:not([hidden]) .landing-card,.ended:not([hidden]) .ended-card{animation:screen-in var(--dur-settle) var(--ease-out) both}
  .loading-frosty{animation:lx-breathe 2.4s var(--ease-in-out) infinite}
  .workspace:not([hidden]){animation:lx-fade var(--dur-enter) var(--ease-out) both}
  .reader:not([hidden]){animation:reader-in var(--dur-enter) var(--ease-out) both}
  /* A line that arrived while you were here; never the first draw. */
  .line.is-new{animation:line-in var(--dur-enter) var(--ease-out) both}
  .line.is-new.mine{animation-duration:var(--dur-fade)}
  /* Frosty's answer settles in block by block. */
  .line.is-new.assistant .line-body>*{animation:line-in var(--dur-settle) var(--ease-out) both}
  .line.is-new.assistant .line-body>:nth-child(2){animation-delay:50ms}
  .line.is-new.assistant .line-body>:nth-child(3){animation-delay:100ms}
  .line.is-new.assistant .line-body>:nth-child(4){animation-delay:150ms}
  .line.is-new.assistant .line-body>:nth-child(5){animation-delay:200ms}
  .line.is-new.assistant .line-body>:nth-child(n+6){animation-delay:250ms}
  .line.pending{animation:line-in var(--dur-enter) var(--ease-out) both}
  /* Working, said with light rather than with another sentence. */
  .line.pending .line-body{color:var(--text-2)}
  .live-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--accent);animation:live-ping 2.4s var(--ease-out) infinite}
  .dialog[open]{animation:lx-pop var(--dur-enter) var(--ease-out) both}
  .dialog[open]::backdrop{animation:lx-fade var(--dur-fade) var(--ease-out) both}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Print the Reader and nothing else: a study guide on paper, not a
   screenshot of the page around it. */
@media print{
  body>*:not(#workspace){display:none!important}
  body.in-room{overflow:visible}
  .workspace{display:block;height:auto;overflow:visible;border:0}
  .workspace>*:not(.panes),.panes>*:not(.reader){display:none!important}
  .panes{display:block}
  .reader{display:block;color:#000;background:#fff;border:0;margin-top:0}
  .reader-head button,.reader-body button{display:none!important}
  .reader-body{overflow:visible;padding:0}
}

/* The Reader's exit: a copy that fades while the real one is already gone. */
.reader-ghost{position:fixed;z-index:50;margin:0;pointer-events:none;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);border-left:1px solid var(--line)}
@media (prefers-reduced-motion:no-preference){
  /* A pane that comes into view arrives; it never just appears. */
  .pane-tools,.pane-library{animation:pane-in var(--dur-enter) var(--ease-out) both}
  .reader-ghost{box-shadow:var(--shadow-lg)}
}
@media (prefers-reduced-motion:no-preference) and (max-width:699.98px){
  .pane-room{animation:pane-in var(--dur-enter) var(--ease-out) both}
}
@keyframes pane-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Focused canvas: navigation is temporary at every width. */
.workspace { grid-template-rows: auto minmax(0,1fr); }
.workspace .topbar { flex-wrap: wrap; position: relative; inset: auto; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--bg); backdrop-filter: none; padding: 12px 20px; }
.workspace .panes { grid-row: 2; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); padding: 0; gap: 0; width: 100%; max-width: 960px; margin-inline: auto; min-height: 0; }
.workspace .side-switch, .workspace .tabbar { display: none !important; }
.workspace .pane { grid-column: 1; grid-row: 1; border: 0; padding-top: 20px; min-width: 0; }
.workspace .pane-room { display: flex; width: 100%; max-width: none; }
.workspace .pane-library, .workspace .pane-tools { display: none; }
.workspace[data-pane="library"] .pane-library, .workspace[data-pane="tools"] .pane-tools { display: flex; }
.workspace[data-pane="library"] .pane-room, .workspace[data-pane="tools"] .pane-room { display: none; }
.workspace .reader { margin-top: 0; grid-column: 1; grid-row: 1; position: relative; inset: auto; z-index: 1; width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
.workspace[data-reader="open"] .pane-room, .workspace[data-reader="open"] .pane-tools, .workspace[data-reader="open"] .pane-library { display: none; }
.workspace .reader-body { padding: 24px; }
.workspace .composer { padding: 12px 24px 20px; }
.workspace .composer-box { border-radius: 16px; box-shadow: none; }
.workspace .transcript { padding: 20px 24px; }
.workspace .quick-tools { display: flex; flex-direction: column; gap: 0; }
.workspace .quick-card { display: grid; grid-template-columns: 24px minmax(0,1fr); column-gap: 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; background: transparent; color: var(--text); text-align: left; }
.workspace .quick-card .ui-icon { grid-row: 1 / 4; }
.workspace .quick-card .tool-label { font-size: 16px; }
.workspace .quick-card .tool-desc, .workspace .quick-card .tool-audience { grid-column: 2; color: var(--text-2); }
.workspace .tools-panel, .workspace .library-panel { max-width: 760px; width: 100%; margin-inline: auto; }
.study-pane-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0 20px 16px; }
.study-pane-heading .pane-heading { display: block; position: static; width: auto; height: auto; clip-path: none; margin: 0; }
.workspace .button, .workspace .tool, .workspace .chip-clear { min-height: 44px; }
.workspace .identity-text { display: none; }
.workspace .identity-line { display: flex; }
.workspace .identity-initials { display: flex; }
.workspace .topbar-tools { gap: 4px; }
.workspace .palette-label, .workspace .keys { display: none; }
@media(max-width:699px) {
 .workspace .topbar { padding: 8px 12px; }
 .workspace .composer, .workspace .transcript { padding-inline: 16px; }
 .workspace .reader-body { padding: 16px; }
 .workspace .course-mark, .workspace #help-open { display: none; }
 .workspace .topbar-tools .button { min-width: 44px; }
}
