:root {
  color-scheme: light;
  --ink: #1f2428;
  --muted: #7b8188;
  --line: #dfe3e5;
  --accent: #6366db;
  --paper: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body { min-width: 280px; min-height: 100%; margin: 0; }

body { background: var(--paper); color: var(--ink); }

button, input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.language-switcher {
  position: fixed;
  z-index: 4;
  top: max(20px, env(safe-area-inset-top));
  left: max(28px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9ba1a8;
  font-size: 13px;
  line-height: 1.5;
}

.language-option {
  padding: 3px 4px;
  color: #777e85;
  border: 0;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: inherit;
}

.language-option[aria-pressed="true"] { color: var(--accent); font-weight: 650; }
.language-option:hover { color: var(--ink); }
.language-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.home-inner {
  width: min(100%, 688px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-8.5vh);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .13em;
  margin: 0 0 10px;
  font-size: clamp(66px, 9.7vw, 92px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -.092em;
}

.wordmark-symbol {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  align-self: flex-end;
  width: .14em;
  height: .72em;
  margin-bottom: .08em;
  transform: translateY(-4px);
}

.wordmark-stem {
  width: .14em;
  height: .49em;
  border-radius: 1.5px;
  background: var(--accent);
}

.wordmark-dot {
  display: block;
  width: .14em;
  height: .14em;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-2px);
}

.brand-name {
  margin: 0 0 34px;
  color: #434a51;
  font-size: 17px;
  font-weight: 440;
  line-height: 1.45;
  letter-spacing: .075em;
  text-align: center;
}

.search-shell {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 3px 6px 3px 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 3px 15px rgba(31, 36, 40, 0.025);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-shell:focus-within {
  border-color: #a0a1d7;
  box-shadow: 0 4px 20px rgba(31, 36, 40, 0.055);
}

.task-input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  padding: 8px 0 8px 4px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 430;
  letter-spacing: -0.012em;
}

.task-input::placeholder { color: #8c9297; opacity: 1; }

.attach-button, .mic-button, .voice-button {
  position: relative;
  width: 40px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4f5c62;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.attach-button { width: 36px; }

.attach-button svg { width: 21px; height: 21px; }

.mic-button svg { width: 19px; height: 19px; }

.voice-button svg { width: 24px; height: 24px; }

.attach-button:hover, .mic-button:hover, .voice-button:hover { background: #f2f5f5; color: var(--ink); }

.attach-button:focus-visible, .mic-button:focus-visible, .voice-button:focus-visible, .brand-return:focus-visible, .return-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mic-button.is-listening, .voice-button.is-listening { color: var(--accent); background: #eff0ff; }

.mic-button.is-listening::after, .voice-button.is-listening::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(99, 102, 219, .5);
  border-radius: 50%;
  animation: soft-pulse 1.6s ease-in-out infinite;
}

.explanation {
  margin: 21px 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.5;
  text-align: center;
}

.voice-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.voice-status:empty { visibility: hidden; }

.site-footer {
  position: fixed;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 28px;
  row-gap: 9px;
  padding: 16px max(28px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  border-top: 1px solid #f0f1f2;
  background: rgba(255, 255, 255, .97);
  color: #737b81;
  font-size: 13px;
  font-weight: 420;
  line-height: 1.5;
}

.footer-location { display: flex; flex-wrap: wrap; column-gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.footer-divider { color: #adb3b6; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 7px; }
.footer-links a { color: #737b81; text-decoration: none; text-underline-offset: 3px; white-space: nowrap; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

[hidden] { display: none !important; }

.result-screen { min-height: 100svh; padding: 0 32px 120px; }

.info-page { max-width: 850px; margin: 0 auto; padding: 50px 28px 80px; }
.info-back { color: #646a70; font-size: 14px; text-decoration: none; }
.info-back:hover { color: var(--ink); text-decoration: underline; }
.info-page h1 { margin: 34px 0 6px; font-size: clamp(30px, 5vw, 42px); font-weight: 550; letter-spacing: -.04em; }
.info-intro { margin: 0 0 28px; color: #717980; font-size: 15px; line-height: 1.65; }
.info-index { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 46px; }
.info-index a { color: #535d64; font-size: 14px; text-underline-offset: 3px; }
.info-page section { margin: 0 0 42px; scroll-margin-top: 22px; }
.info-page h2 { margin: 0 0 10px; font-size: 22px; font-weight: 520; letter-spacing: -.025em; }
.info-page p { margin: 0 0 12px; color: #5e676c; font-size: 15px; line-height: 1.7; }
.info-notice { margin-top: 24px; padding: 16px 18px; border: 1px solid #e7e9eb; border-radius: 12px; background: #fafbfb; }

.result-header { display: flex; align-items: center; min-height: 104px; max-width: 1100px; margin: 0 auto; }

.brand-return, .return-link { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }

.mini-logo { color: var(--ink); font-size: 30px; font-weight: 570; letter-spacing: -.092em; }

.mini-dot { display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 4px; border-radius: 50%; background: var(--accent); }

.result-inner { max-width: 680px; padding-top: min(12vh, 108px); margin: 0 auto; }

.return-link { gap: 5px; color: var(--muted); font-size: 14px; }

.return-link svg { width: 21px; height: 21px; }

.return-link:hover { color: var(--ink); }

.result-eyebrow { margin: 59px 0 10px; font-size: 11px; font-weight: 640; letter-spacing: .145em; color: #829091; }

.result-query { margin: 0; max-width: 640px; font-size: clamp(25px, 5vw, 39px); font-weight: 480; line-height: 1.28; letter-spacing: -.036em; overflow-wrap: anywhere; }

.result-message { display: flex; gap: 20px; margin-top: 52px; padding: 30px; border: 1px solid #e8ebec; border-radius: 17px; }

.preview-accent { width: 3px; align-self: stretch; background: var(--accent); border-radius: 3px; flex: 0 0 auto; }

.result-message h3 { margin: 0 0 9px; font-size: 20px; font-weight: 520; letter-spacing: -.025em; }

.result-message p { margin: 0; max-width: 550px; color: #6c767b; font-size: 15px; line-height: 1.65; }

@keyframes soft-pulse { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.08); opacity: 1; } }

@media (max-width: 560px) {
  .language-switcher { top: 13px; left: 18px; }
  .home-screen { padding: 22px; }
  .home-inner { transform: translateY(-6.8vh); }
  .wordmark { margin-bottom: 8px; }
  .brand-name { font-size: 16px; margin-bottom: 28px; }
  .search-shell { height: 52px; min-height: 52px; padding: 3px 6px; }
  .task-input { font-size: 16px; }
  .mic-button, .voice-button { width: 38px; height: 44px; }
  .explanation { margin-top: 19px; max-width: 325px; }
  .result-screen { padding: 0 24px 150px; }
  .result-header { min-height: 80px; }
  .result-inner { padding-top: 9vh; }
  .result-eyebrow { margin-top: 47px; }
  .result-message { gap: 14px; padding: 22px; margin-top: 42px; }
  .site-footer { padding: 13px max(22px, env(safe-area-inset-right)) max(15px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); font-size: 12px; }
  .footer-links { column-gap: 13px; row-gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Student assistant: preserve the original CLA layout and wordmark. */
.send-button { border: 0; border-radius: 999px; background: var(--accent); color: white; padding: 10px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.send-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.send-button:disabled { opacity: .55; cursor: wait; }
.mic-button:disabled, .voice-button:disabled, .attach-button:disabled { opacity: .35; cursor: default; }
.result-message > div:last-child { min-width: 0; width: 100%; }
.result-message p { font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.chat-message + .chat-message { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-message .chat-message h3 { font-size: 14px; color: var(--muted); letter-spacing: .03em; }
.chat-message.user p { color: #626a70; }
.chat-message.error p { color: #9b3131; }
.followup-form { display: flex; gap: 10px; padding: 10px; margin-top: 24px; border: 1px solid var(--line); border-radius: 28px; }
.followup-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 7px; font-size: 16px; }
.followup-form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendar-source { color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.result-inner { padding-top: 24px; }
.result-eyebrow { font-size: 14px; margin-top: 30px; }
.result-message { margin-top: 28px; }
@media(max-width:560px) { .attach-button { display: none; } .send-button { padding: 10px 14px; } }

.account-nav { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 14px; }
.account-link { display: inline; border: 0; background: none; padding: 3px 0; font: inherit; color: #535d64; text-decoration: none; cursor: pointer; }
.account-link:hover { color: var(--accent); }
.account-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.registration-dialog { width: min(520px,calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); }
.registration-dialog::backdrop { background: rgba(31,36,40,.28); }
.registration-dialog h2 { font-size: 24px; font-weight: 520; margin: 0 0 16px; }
.registration-dialog p { font-size: 16px; line-height: 1.6; }
.registration-continue { display: inline-block; text-decoration: none; margin: 8px 0 20px; }
@media(max-width:560px) { .account-nav { margin-left: 8px; padding-left: 8px; } }

.inline-brand { display: inline-flex; align-items: baseline; gap: .13em; letter-spacing: -.07em; font-weight: 570; color: var(--ink); white-space: nowrap; }
.inline-brand .wordmark-symbol { height: .72em; width: .14em; transform: none; margin: 0 0 .04em .05em; }
.inline-brand .wordmark-dot { transform: none; }

/* Match the lowered final symbol in the small wordmark beneath the search. */
.wordmark > .wordmark-symbol { margin-bottom: .04em; transform: translateY(.28em); }
.wordmark > .wordmark-symbol .wordmark-dot { transform: none; }

@media (max-width: 560px) {
  .wordmark > .wordmark-symbol { transform: translateY(.08em); }
}

.account-label-compact { display: none; }
@media (max-width: 560px) {
  .account-label-wide { display: none; }
  .account-label-compact { display: inline; }
}

.study-sidebar { position: fixed; z-index: 3; top: max(65px,calc(env(safe-area-inset-top) + 48px)); left: max(28px,env(safe-area-inset-left)); width: 240px; max-height: calc(100svh - 145px); overflow-y: auto; padding: 12px 0; background: var(--paper); }
.study-sidebar[hidden] { display: none; }
.study-sidebar-open main { margin-left: 290px; }
.study-sidebar-heading { padding: 0 8px 8px; }
.study-sidebar-heading h2 { margin: 0; font-size: 16px; font-weight: 600; }
.study-sidebar-content { font-size: 15px; line-height: 1.4; }
.study-semester { margin: 12px 8px 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.study-sidebar-list { list-style: none; margin: 0; padding: 0; }
.study-sidebar-list li { padding: 6px 8px; overflow-wrap: anywhere; }
@media(max-width:900px) {
  .study-sidebar { position: relative; top: auto; left: auto; width: auto; max-height: none; margin: 65px 24px 0; padding: 12px 0; }
  .study-sidebar-open main { margin-left: 0; }
  .study-sidebar-open .home-screen { min-height: 0; padding-top: 36px; padding-bottom: 100px; }
  .study-sidebar-open .home-inner { transform: none; }
}

/* Static character preview: full figure stays above the search field. */
.brand-stage { display: flex; align-items: center; justify-content: center; gap: 26px; width: 100%; margin-bottom: 24px; }
.brand-lockup { display: flex; flex-direction: column; align-items: center; }
.brand-stage .brand-name { margin-bottom: 0; }
.clai-character { display: block; width: 150px; height: 225px; object-fit: contain; flex-shrink: 0; }
@media(max-width:560px) {
 .brand-stage { gap: 8px; margin-bottom: 24px; }
 .clai-character { width: 104px; height: 156px; }
 .brand-stage .wordmark { font-size: clamp(56px,15vw,72px); }
 .brand-stage .brand-name { font-size: 13px; }
}

/* Align the standing character with Send, and the wordmark with his feet. */
.brand-stage { position: relative; display: flex; align-items: flex-end; height: 225px; margin-bottom: 4px; gap: 0; }
.brand-lockup { padding-bottom: 5px; }
.clai-character { position: absolute; right: -34px; bottom: 0; }
@media(max-width:560px) {
 .brand-stage { height: 176px; margin-bottom: 4px; justify-content: flex-start; padding-left: 20px; }
 .clai-character { width: 104px; height: 156px; right: -12px; bottom: 0; }
 .brand-lockup { padding-bottom: 5px; }
}

.clai-companion { position:absolute; right:-34px; bottom:0; width:150px; height:225px; pointer-events:none; }
.clai-character-still,.clai-typing { display:block; width:100%; height:100%; object-fit:contain; }
.clai-typing { filter:brightness(1.12) contrast(1.08); mix-blend-mode:multiply; border:0; outline:0; }
.clai-companion [hidden] { display:none; }
.result-inner > .clai-companion { position:relative; right:auto; bottom:auto; float:right; margin:0 0 20px 24px; }
@media(max-width:560px) { .clai-companion { width:104px; height:156px; right:-12px; } .result-inner > .clai-companion { margin-left:12px; } }

/* Compact course books; private course and lecturer labels come from the profile. */
.study-sidebar-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 14px; padding:4px 7px 14px 3px; }
.study-sidebar-list .study-book { position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:16px; min-height:190px; padding:15px 10px 16px 16px; border-radius:3px 7px 7px 3px; background:linear-gradient(100deg,#3e3d52 0%,#3e3d52 7%,#55536e 8%,#444257 11%,#3e3d52 16%,#343347 100%); color:#fff; border-bottom:2px solid #777287; box-shadow:2px 3px 0 #ebe9e4,4px 5px 0 #d9d7d2,5px 7px 10px #25213712; }
.study-book-logo { display:block; width:100%; max-width:86px; height:auto; object-fit:contain; }
.study-book-name { font-size:14px; font-weight:500; line-height:1.35; overflow-wrap:anywhere; }
.study-book-teacher { font-size:12px; line-height:1.4; color:#e5e2f3; overflow-wrap:anywhere; }
.study-semester { margin:12px 3px 12px; }
@media(max-width:900px) { .study-sidebar-content { max-width:280px; } .study-sidebar-list .study-book { min-height:190px; } }

.personal-calendar { max-width:1050px; margin:0 auto; padding:90px 28px 110px; }
.personal-calendar[hidden] { display:none; }
.calendar-toolbar,.calendar-controls { display:flex; align-items:center; gap:16px; }
.calendar-toolbar { justify-content:space-between; margin-bottom:28px; }
.calendar-toolbar h1 { font-size:28px; font-weight:500; margin:0; }
.calendar-controls { margin-bottom:18px; }
.calendar-month { flex:1; font-size:21px; font-weight:500; text-transform:capitalize; margin:0; }
.calendar-nav,.calendar-today { border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:8px; min-height:38px; padding:6px 12px; cursor:pointer; }
.calendar-nav { font-size:22px; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.calendar-weekday { padding:10px; font-size:14px; color:var(--muted); text-align:center; border-bottom:1px solid var(--line); border-right:1px solid var(--line); }
.calendar-day,.calendar-empty { min-height:100px; min-width:0; background:var(--paper); border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.calendar-day { display:flex; flex-direction:column; align-items:stretch; text-align:left; gap:5px; padding:8px; cursor:pointer; color:var(--ink); }
.calendar-day.is-selected { background:#f0efff; box-shadow:inset 0 0 0 1px var(--accent); }
.calendar-number { font-size:14px; align-self:flex-start; }
.is-today .calendar-number { background:var(--accent); color:white; border-radius:50%; padding:2px 5px; }
.calendar-preview { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; padding:3px 4px; background:#eeedf9; border-radius:3px; }
.calendar-preview.is-moodle { background:#edf4f1; }
.calendar-more { color:var(--muted); font-size:12px; }
.calendar-agenda { margin-top:28px; }
.calendar-agenda h2 { text-transform:capitalize; font-weight:500; font-size:20px; margin:0 0 20px; }
.calendar-entry { border-left:3px solid var(--accent); padding:0 0 0 16px; margin:0 0 24px; }
.calendar-entry h3 { font-size:17px; font-weight:500; margin:5px 0; }
.calendar-entry p { font-size:14px; margin:7px 0; }
.calendar-entry-time { font-size:14px; color:var(--accent); }
.calendar-entry-source,.calendar-status { font-size:14px; color:#6b7279; }
@media(max-width:560px) { .personal-calendar { padding:85px 16px 100px; } .calendar-toolbar h1 { font-size:24px; } .calendar-controls { gap:7px; } .calendar-month { font-size:17px; } .calendar-today { padding:6px 8px; font-size:14px; } .calendar-day,.calendar-empty { min-height:62px; } .calendar-day { padding:6px 4px; } .calendar-preview { font-size:0; padding:0; height:4px; border-radius:3px; background:var(--accent); } .calendar-preview.is-moodle { background:#719a88; } .calendar-weekday { padding:8px 3px; } }

.study-sidebar-list > li { padding:0; min-width:0; }
.study-sidebar-list button.study-book { width:100%; height:100%; font:inherit; text-align:left; border:0; border-bottom:2px solid #777287; cursor:pointer; }
.study-sidebar-list button.study-book:hover { filter:brightness(1.08); }
.study-sidebar-list button.study-book:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.course-view { max-width:900px; margin:0 auto; padding:110px 32px 120px; }
.course-view[hidden] { display:none; }
.course-back { margin-bottom:38px; }
.course-eyebrow { font-size:14px; color:var(--muted); margin:0 0 16px; }
.course-view h1 { font-size:clamp(28px,4vw,44px); font-weight:500; line-height:1.2; margin:0 0 18px; }
.course-teacher { font-size:17px; color:#626a72; margin:0 0 48px; }
.course-view h2 { font-size:21px; font-weight:500; margin:0 0 15px; }
.course-empty { color:#626a72; font-size:16px; line-height:1.6; }
@media(max-width:560px) { .course-view { padding:90px 20px 100px; } }

.course-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:36px}.course-section{display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 12px;border:1px solid #ded9e8;border-radius:14px;background:#fff;color:#292431;font:inherit;cursor:pointer}.course-section:hover,.course-section[aria-expanded="true"]{background:#f4f0fa;border-color:#8671ad}.course-section:focus-visible{outline:2px solid #715399;outline-offset:3px}.course-section-icon{font-size:32px;color:#715399;line-height:1}.course-section-panel{margin-top:28px;padding:24px;border-top:1px solid #e6e1ec}.course-section-panel[hidden]{display:none}@media(max-width:650px){.course-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}

.course-section-icon svg{width:36px;height:36px;display:block}.course-material-links{list-style:none;padding:0;margin:16px 0}.course-material-links li{border-bottom:1px solid #ece8f0}.course-material-links a{display:block;padding:15px 0;color:#44325e;text-decoration:none;line-height:1.5}.course-material-links a:hover{text-decoration:underline}.course-source{font-size:14px;color:#746c7d;margin-top:20px}

.course-file-button{display:block;width:100%;padding:15px 0;border:0;background:none;color:#44325e;text-align:left;font:inherit;line-height:1.5;cursor:pointer}.course-file-button:hover{text-decoration:underline}.course-pdf-viewer{display:block;width:100%;height:75vh;min-height:520px;border:1px solid #e6e1ec;border-radius:8px;background:#fff}@media(max-width:650px){.course-pdf-viewer{height:65vh;min-height:400px}.course-section-panel{padding:20px 0}}

.course-sections{grid-template-columns:repeat(5,minmax(0,1fr))}.course-clai-mark{height:36px;display:flex;align-items:center;justify-content:center;color:#292431}.course-clai-mark .wordmark{font-size:32px;margin:0;letter-spacing:-.092em}.course-clai-mark .wordmark-symbol{transform:translateY(.12em)}@media(max-width:900px){.course-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.course-section:last-child{grid-column:1/-1}}
.study-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;margin-top:20px}.study-tools{display:flex;flex-direction:column;gap:12px}.study-tools button{padding:12px;text-align:left;background:#f5f7fc;border:1px solid #dce2ef;border-radius:12px;font:inherit;cursor:pointer}.study-intro{font-weight:600}.study-tools small{font-size:14px;line-height:1.5;color:#526078}.study-chat{min-width:0;border:1px solid #dce2ef;border-radius:16px;padding:18px}.study-messages{min-height:180px;max-height:55vh;overflow:auto;display:flex;flex-direction:column;gap:18px;padding:4px}.study-message{border-radius:12px;padding:14px;background:#f5f7fc}.study-message.user{background:#edf2ff;margin-left:24px}.study-message strong{display:block;margin-bottom:8px}.study-message-text{white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}.study-compose textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:76px;border:1px solid #bcc9df;border-radius:12px;font:inherit;padding:12px;margin-top:18px}.study-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.study-controls button,.study-listen{border:1px solid #dce2ef;background:white;border-radius:9px;padding:9px 13px;font:inherit;cursor:pointer}.study-controls button[type=submit]{margin-left:auto;background:var(--accent);color:white;border:0;border-radius:999px}.study-voice-label{font-size:14px}.study-status{font-size:14px;min-height:20px}.study-listen{font-size:14px;margin-top:10px}.study-compose button:disabled{opacity:.5;cursor:default}@media(max-width:700px){.study-layout{grid-template-columns:1fr}.study-tools{display:grid;grid-template-columns:1fr}.study-tools .study-intro{margin:0}.study-chat{padding:12px}}

.study-controls .study-mic{border:0;background:transparent;border-radius:50%;padding:0;width:40px;height:44px;color:#4f5c62}.study-controls .study-mic:hover{background:#f2f5f5;color:var(--ink)}.study-controls .study-mic.is-listening{color:var(--accent);background:#eff0ff}.study-voice-label input{accent-color:var(--accent)}.study-compose textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.study-controls .study-stop{position:fixed;right:24px;bottom:90px;z-index:1000;background:var(--accent);color:#fff;border:0;border-radius:999px;padding:14px 22px;box-shadow:0 4px 24px #24213a33;font-size:16px}.study-stop[hidden]{display:none}@media(max-width:560px){.study-controls .study-stop{right:16px;bottom:90px}}
