/* Shared optical rules: glass stays composited while screens change. */
.boot-splash { display: none; }
[data-booting="true"] .boot-splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; }
.boot-splash img { width: 56px; height: 56px; opacity: .8; }
.view, .modal-backdrop, .sheet-window { animation: none; }
#ambient-canvas { transition: opacity .35s; }
.ai-launcher { backdrop-filter: blur(20px) saturate(1.12); -webkit-backdrop-filter: blur(20px) saturate(1.12); }
.topbar-right .add-btn { color: var(--heading); border-color: var(--glass-rim); background: linear-gradient(145deg,#ffffff0b,transparent 65%),var(--surface); box-shadow: inset 0 1px var(--glass-highlight),inset 1px 0 #ffffff0a,0 5px 18px -12px #0006; backdrop-filter: blur(20px) saturate(1.12); -webkit-backdrop-filter: blur(20px) saturate(1.12); }
.topbar-right .add-btn:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
.conversation-brand > .conversation-ai { display: grid; place-items: center; flex: none; width: 31px; height: 31px; font-size: 16px; font-weight: 650; letter-spacing: -.7px; color: var(--heading); line-height: 1; }
.sheet-window { background: color-mix(in srgb, var(--bg) 54%, transparent); backdrop-filter: blur(24px) saturate(1.08); -webkit-backdrop-filter: blur(24px) saturate(1.08); }
[data-reading="true"] .threads-effect { filter: blur(10px); }
[data-theme="dark"] .ambient-background::before { background: radial-gradient(ellipse at 18% 28%, #3870b82a, transparent 64%), radial-gradient(ellipse at 83% 72%, #547aaf1f, transparent 63%); }
[data-theme="dark"] body:has(.has-conversation) .threads-effect > canvas { opacity: .18; }
[data-theme="dark"] body:has(.has-conversation) .threads-effect::after { content: ''; position: absolute; inset: 0; background: #080d1738; }
[data-theme="dark"] .chat-message-body { color: #eff3fa; text-shadow: 0 1px 10px #080d17a6; }
[data-theme="light"] { --heading: #182231; --text: #263242; --text-2: #465367; --text-3: #59657a; }
[data-theme="light"] #ambient-canvas { opacity: .78; }
[data-theme="light"][data-reading="true"] #ambient-canvas { opacity: .34; }
[data-theme="light"] .threads-effect > canvas { opacity: .72; }
[data-theme="light"] body:has(.has-conversation) .threads-effect > canvas { opacity: .14; }
[data-theme="light"] .nav-orb { filter: saturate(1.15) contrast(1.18); }
.nav-orb canvas { opacity: .9; }
.nav-orb > .nav-ai-glyph { width: 21px; height: 21px; fill: currentColor; stroke-width: .7; color: #dceafb; filter: drop-shadow(0 1px 3px #122642a6); }
[data-theme="light"] .nav-orb > .nav-ai-glyph { color: #25436b; filter: drop-shadow(0 1px 2px #ffffffa6); }

/* Keep the same contrast when a field gains focus or the keyboard opens. */
.registration-card { background: linear-gradient(145deg,#ffffff05,transparent 48%),color-mix(in srgb, var(--bg) 68%, transparent); border-color: color-mix(in srgb, var(--text-3) 42%, transparent); box-shadow: inset 0 1px #ffffff20, inset 1px 0 #ffffff0b, 0 28px 70px -38px #0009; backdrop-filter: blur(28px) saturate(1.08); -webkit-backdrop-filter: blur(28px) saturate(1.08); }
[data-theme="light"] .registration-card { background: linear-gradient(145deg,#ffffffd9,#ffffffb3); }
.registration-card h1 { line-height: 1.24; letter-spacing: -.035em; word-spacing: .04em; }
.registration-welcome-card h1 { text-align: center; }
.registration-welcome-card > .eyebrow { text-align: center; }
/* A fuller registration frame on desktop; phone controls keep their natural size. */
@media(min-width:761px){
  .registration-stack { width: min(100%,560px); gap: 30px; }
  .registration-brand { font-size: 34px; gap: 18px; }
  .registration-brand img { width: 80px; height: 80px; }
  .registration-card { padding: 42px; border-radius: 30px; }
  .registration-card h1 { font-size: 44px; }
  .registration-card > .eyebrow { font-size: 10px; letter-spacing: 1.9px; margin-bottom: 18px; }
  .registration-lede { font-size: 15px; line-height: 1.85; margin-top: 20px; }
  .registration-choices { gap: 13px; margin-top: 32px; }
  .registration-choice { min-height: 88px; padding: 18px; gap: 15px; border-radius: 18px; }
  .registration-choice-icon { width: 42px; height: 42px; border-radius: 13px; flex: none; }
  .registration-choice-icon .ic { width: 20px; height: 20px; }
  .registration-choice b { font-size: 15px; }
  .registration-choice small { font-size: 12px; line-height: 1.65; }
  .registration-identity { font-size: 11px; margin-top: 28px; }
  .registration-field label { font-size: 14px; }
  .registration-field input { height: 52px; }
  .registration-hint,.registration-back,.registration-bottom-link { font-size: 12px; }
  .registration-submit { min-height: 54px; font-size: 14px; }
}
.registration-field input { background: color-mix(in srgb, var(--bg) 60%, var(--surface-2)); }
.registration-field input:focus { background: color-mix(in srgb, var(--bg) 60%, var(--surface-2)); }
[data-booting="true"] :is(.ambient-background,.threads-effect) { visibility: hidden; }
.registration-background::before { background: radial-gradient(ellipse 90% 70% at 50% -5%, #68a0d94d, #23448835 43%, transparent 83%); }
#api-permission-form { display: grid; gap: 20px; margin-top: 32px; }
#api-permission-form > .fine { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.7; }
#api-permission-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
#api-permission-form > .btn { justify-content: space-between; min-height: 48px; }

/* The composer is a small, accessible control until the next intentional tap. */
.chat-collapsed-controls { display: none; }
.chat-top-scrim { display: none; }
.has-conversation .chat-composer-shell { transition: width .3s var(--ease); }
.has-conversation .chat-composer-shell.is-collapsed { width: min(250px, calc(100% - 338px)); }
.is-collapsed :is(.chat-composer,.composer-hint) { display: none; }
.is-collapsed .chat-collapsed-controls { display: flex; gap: 4px; align-items: center; padding: 5px; border: 1px solid var(--glass-rim); border-radius: 999px; background: color-mix(in srgb, var(--bg) 58%, transparent); box-shadow: inset 0 1px var(--glass-highlight), 0 10px 30px -16px #0007; backdrop-filter: blur(26px) saturate(1.15); -webkit-backdrop-filter: blur(26px) saturate(1.15); animation: composer-settle .24s var(--ease); }
.chat-collapsed-controls > button:first-child { display: flex; flex: 1; gap: 10px; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; color: var(--text); font-size: 12px; font-weight: 650; background: transparent; border-radius: 999px; }
.chat-collapsed-controls > button:first-child .ic { width: 17px; height: 17px; }
.chat-compact-stop { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid var(--glass-rim); border-radius: 50%; color: var(--text); background: var(--surface-2); }
.has-conversation:has(.is-collapsed) .chat-transcript { padding-bottom: 100px; }
.chat-followups { margin-top: 20px; gap: 8px; }
.chat-followups > p { display: none; }
.chat-followups > button { max-width: 100%; color: var(--text); text-align: left; background: var(--surface); border: 1px solid color-mix(in srgb,var(--text-3) 18%,transparent); border-radius: 999px; box-shadow: inset 0 1px #ffffff0b; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chat-followups > button > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.chat-followups > button > .ic { flex: none; }
.conversation-tools .chat-tool:hover { background: #ffffff0a; border-radius: 50%; color: var(--heading); }
@keyframes composer-settle { from { transform: scaleX(.97) scaleY(1.04); } to { transform: none; } }

/* Timetable: import, review, then publish; all seven days fit on a phone. */
.schedule-editor-body { max-width: 760px; }
.schedule-import { margin: 0 0 28px; }
.schedule-import-card { display: flex; align-items: center; gap: 15px; width: 100%; padding: 20px; text-align: left; border: 1px solid var(--glass-rim); border-radius: 22px; color: var(--text); background: var(--surface); box-shadow: inset 0 1px var(--glass-highlight); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.schedule-import-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--glass-rim); border-radius: 14px; background: var(--surface-2); color: var(--blue); }
.schedule-import-icon .ic { width: 23px; height: 23px; }
.schedule-import-card > span:nth-child(2) { flex: 1; display: grid; gap: 6px; }
.schedule-import-card b { font-size: 15px; font-weight: 750; color: var(--heading); }
.schedule-import-card small { font-size: 11px; color: var(--text-2); line-height: 1.7; }
.schedule-import-card > .ic { width: 17px; height: 17px; }
.schedule-import > p { text-align: center; font-size: 10px; color: var(--text-3); margin-top: 10px; line-height: 1.7; }
.schedule-editor-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.schedule-editor-days > button { display: grid; gap: 5px; min-width: 0; min-height: 64px; padding: 10px 3px; border-radius: 16px; font-size: 12px; }
.schedule-editor-days > button span { font-size: 9px; opacity: .7; font-weight: 500; }
.schedule-day-heading { display: flex; gap: 15px; justify-content: space-between; align-items: baseline; margin: 25px 0 18px; }
.schedule-day-heading .schedule-editor-day { margin: 0; font-size: 20px; }
.schedule-day-heading > span { font-size: 10px; color: var(--text-3); }
.schedule-day-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 14px; margin-bottom: 14px; }
.schedule-day-empty > .ic { width: 27px; height: 27px; color: var(--text-3); margin-bottom: 8px; }
.schedule-day-empty p { font-size: 14px; font-weight: 650; }
.schedule-day-empty span { font-size: 11px; line-height: 1.8; color: var(--text-2); }
.schedule-add { width: 100%; min-height: 46px; margin-bottom: 16px; }
.schedule-editor-row { padding: 16px; border: 1px solid var(--glass-rim); border-radius: 18px; background: var(--surface); box-shadow: inset 0 1px var(--glass-highlight); }
.schedule-editor-row input { background: color-mix(in srgb, var(--bg) 48%, transparent); }
.schedule-feedback { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--glass-rim); border-radius: 15px; font-size: 12px; line-height: 1.8; color: var(--red); background: var(--surface); }
.schedule-feedback .ic { width: 18px; height: 18px; margin-top: 2px; }
.schedule-feedback.is-preview { color: var(--text); }
.schedule-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - 100px); padding: 35px 24px; text-align: center; max-width: 560px; margin: auto; }
.schedule-processing-art { position: relative; width: 110px; height: 110px; display: grid; place-items: center; margin-bottom: 30px; }
.schedule-processing-art .assistant-mark { width: 54px; height: 54px; }
.schedule-processing-art i { position: absolute; inset: 0; border: 1px solid var(--glass-rim); border-right-color: var(--blue); border-radius: 50%; animation: registration-spin 4s linear infinite; }
.schedule-processing-art i:nth-child(2) { inset: 9px; opacity: .55; animation-direction: reverse; animation-duration: 6s; }
.schedule-processing .eyebrow { font-size: 9px; margin-bottom: 14px; }
.schedule-processing h1 { font-size: clamp(25px,5vw,34px); letter-spacing: -.8px; line-height: 1.3; }
.schedule-processing > p:not(.eyebrow) { margin-top: 16px; font-size: 13px; line-height: 1.9; color: var(--text-2); }
.processing-dots { display: flex; gap: 7px; margin: 28px 0; }
.processing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: thinking-dot 1.3s ease infinite; }
.processing-dots i:nth-child(2) { animation-delay: .15s; }
.processing-dots i:nth-child(3) { animation-delay: .3s; }

@media (min-width:761px) and (max-width:960px) {
  .has-conversation .chat-composer-shell.is-collapsed { width: min(330px, calc(100% - 245px)); }
}
@media (max-width:760px) {
  .topbar { transition: transform .3s var(--ease); }
  [data-chrome-collapsed="true"] .chat-top-scrim { display: block; position: fixed; inset: 0 0 auto; height: calc(86px + env(safe-area-inset-top)); background: linear-gradient(var(--bg) 28%,color-mix(in srgb,var(--bg) 94%,transparent) 64%,transparent); pointer-events: none; z-index: 24; }
  [data-chrome-collapsed="true"] .topbar { transform: translateY(-110%); pointer-events: none; }
  .conversation-toolbar, .has-conversation .conversation-toolbar { position: sticky; top: calc(81px + env(safe-area-inset-top)); z-index: 36; height: 54px; min-height: 54px; padding: 5px 10px; margin: -10px 0 20px; overflow-anchor: none; transition: top .3s var(--ease), border-radius .3s var(--ease); }
  .topbar { overflow-anchor: none; }
  [data-chrome-collapsed="true"] :is(.conversation-toolbar,.has-conversation .conversation-toolbar) { top: calc(8px + env(safe-area-inset-top)); border-radius: 999px; border-color: color-mix(in srgb,var(--text-3) 22%,transparent); box-shadow: inset 0 1px #ffffff13, 0 10px 24px -18px #0008; background: color-mix(in srgb, var(--bg) 72%, transparent); }
  [data-chrome-collapsed="true"] .conversation-brand small { display: none; }
  [data-chrome-collapsed="true"] .conversation-brand > .assistant-mark { width: 25px; height: 25px; }
  .has-conversation .chat-composer-shell.is-collapsed { width: min(240px, calc(100% - 96px)); bottom: calc(100px + env(safe-area-inset-bottom)); }
  .has-conversation .chat-composer-shell.is-collapsed:has(.chat-compact-stop:not([hidden])) { width: min(280px, calc(100% - 64px)); }
  .is-collapsed .chat-collapsed-controls { border-color: color-mix(in srgb,var(--text-3) 30%,transparent); box-shadow: inset 0 1px #ffffff13, 0 6px 24px -14px #0009; }
  .chat-message-body { font-size: 14px; line-height: 1.85; }
  .chat-followups { margin-left: 0; }
  .chat-followups > button { font-size: 11px; }
  .assistant-message-tools > span { font-size: 9px; }
  body:has(.has-conversation) .toast-root { bottom: calc(175px + env(safe-area-inset-bottom)); }
  body:has(.has-conversation) .toast { background: color-mix(in srgb,var(--bg) 88%,transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  body:has(.has-conversation) .tabbar { height: 66px; border-color: color-mix(in srgb,var(--text-3) 27%,transparent); }
  .has-conversation:has(.is-collapsed) .chat-transcript { padding-bottom: 170px; }
  .tabbar { background: color-mix(in srgb, var(--bg) 34%, transparent); border-color: var(--glass-rim); backdrop-filter: blur(30px) saturate(1.12); -webkit-backdrop-filter: blur(30px) saturate(1.12); }
  .tab-item.is-active:not(.tab-item-ai), [data-theme="light"] .tab-item.is-active:not(.tab-item-ai) { color: var(--heading); background: linear-gradient(145deg, #ffffff18, #ffffff06 55%, #cad9f018); border-radius: 999px; box-shadow: inset 0 1px #ffffff45, inset 0 0 0 1px #ffffff28, 0 4px 14px -10px #0009; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  [data-theme="light"] .tab-item.is-active:not(.tab-item-ai) { background: linear-gradient(145deg,#ffffffa1,#ffffff42); box-shadow: inset 0 1px #fff, inset 0 0 0 1px #4357772e, 0 4px 14px -10px #25436b40; }
  [data-theme="dark"] .tabbar::before { opacity: 1; background: linear-gradient(125deg,#c9dfff1a,transparent 35%,transparent 70%,#ffffff0c); }
  [data-theme="light"] .tabbar { background: #ffffff70; }
  .schedule-editor-row input { font-size: 16px; }
  .schedule-editor-days { gap: 4px; }
  .schedule-editor-days > button { border-radius: 12px; min-height: 60px; font-size: 11px; }
  .schedule-import-card { padding: 16px; gap: 12px; }
  .schedule-import-card b { font-size: 14px; }
  .schedule-import-card small { font-size: 10px; }
  .schedule-processing { min-height: calc(100svh - 90px); }
}
@media (prefers-reduced-motion:reduce) {
  .topbar,.conversation-toolbar,.has-conversation .chat-composer-shell { transition: none; }
  .chat-collapsed-controls,.schedule-processing-art i,.processing-dots i { animation: none; }
}
@media(max-width:760px){
  [data-keyboard="open"] .tabbar { opacity: 1; pointer-events: none; transform: translate(-50%,var(--dock-keyboard-offset,0px)); }
  [data-keyboard="open"] .view[data-screen="search"] .chat-composer-shell { position: fixed; left: 50%; bottom: calc(var(--keyboard-inset,0px) + 10px); transform: translateX(-50%); width: calc(100% - 38px); max-width: 600px; z-index: 60; margin: 0; }
  [data-keyboard="open"] .view[data-screen="search"] .chat-input { max-height: min(120px,calc(var(--visual-height,100svh) * .25)); }
  [data-keyboard="open"] .composer-hint { display: none; }
}
.bot-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 15px; border: 1px solid var(--glass-rim); border-radius: 999px; color: var(--text-2); font-size: 11px; font-weight: 650; line-height: 1.6; background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bot-shortcut:hover { color: var(--heading); border-color: var(--text-3); }
.bot-shortcut > .ic { width: 15px; height: 15px; }
.bot-shortcut > .ic:last-child { width: 12px; height: 12px; opacity: .75; }
.registration-bot-link { align-self: center; margin: 17px auto 0; }
.home-bot-link { width: max-content; margin: 24px 0 0 auto; }
[data-host-fullscreen="true"] :is(.app-shell,.registration-layout) { padding-top: var(--host-safe-top,0px); }
[data-host-fullscreen="true"] .topbar { top: var(--host-safe-top,0px); }
@media(max-width:760px){.home-layout .home-bot-link { order: 5; margin: 0 auto; }}
.chat-result { margin-top: 25px; min-width: 0; }
.chat-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: max-content; max-width: 100%; margin-bottom: 10px; color: var(--heading); font-size: 14px; font-weight: 750; }
.chat-result-heading > span { display: grid; gap: 3px; }
.chat-result-heading small { font-size: 10px; line-height: 1.7; font-weight: 500; color: var(--text-2); }
.chat-result-heading > .ic { width: 15px; height: 15px; color: var(--text-2); flex: none; }
.chat-result-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 15px; max-width: 760px; }
.chat-result-photos[data-count="1"] { grid-template-columns: minmax(0,1fr); max-width: 400px; }
.chat-result-photos[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 620px; }
.chat-result-photos > button { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; overflow: hidden; min-width: 0; border: 1px solid var(--glass-rim); border-radius: 14px; background: var(--surface); padding: 8px; cursor: zoom-in; }
.chat-result-photos[data-count="1"] > button { aspect-ratio: auto; min-height: 140px; }
.chat-result-photos img { display: block; width: 100%; height: 100%; max-height: 500px; object-fit: contain; border-radius: 7px; }
.chat-result-photos > button > span { position: absolute; right: 7px; bottom: 7px; display: flex; align-items: center; gap: 8px; padding: 4px 7px; border: 1px solid #ffffff26; border-radius: 7px; color: #f1f3fa; background: #101116bf; backdrop-filter: blur(12px); font: 9px/1.5 var(--font); }
.chat-result-photos > button > span .ic { width: 12px; height: 12px; }
.chat-result-notice { margin-top: 20px; color: var(--text-2); font-size: 12px; }
[data-theme="dark"] body:has(.chat-result-photos) .tabbar { background: #101116b3; }
@media(max-width:760px){
  .chat-result-heading { font-size: 13px; }
  .chat-result-photos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .chat-result-photos[data-count="1"] { max-width: 100%; }
  .chat-result-photos img { max-height: 420px; }
  .chat-result-photos > button { padding: 5px; border-radius: 11px; }
}

/* Profile photographs retain the initials fallback if Telegram hides the photo. */
.avatar-btn, .side-profile .avatar, [data-user-avatar] { position: relative; overflow: hidden; isolation: isolate; }
.avatar-btn img, .side-profile .avatar img, [data-user-avatar] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.access-explanation { display: grid; gap: 14px; margin: 0 0 28px; padding: 20px; border: 1px solid var(--glass-rim); border-radius: 18px; background: var(--surface); }
.access-explanation p { display: grid; gap: 4px; font-size: 12px; line-height: 1.7; }
.access-explanation p span { color: var(--text-2); }
.leave-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.material-text-label { flex-wrap: wrap; gap: 12px; }
.material-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.material-upload-actions .material-upload { font-size: 11px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--glass-rim); border-radius: 10px; }
.material-upload-actions .ic { width: 15px; height: 15px; }
.camera-window { background: var(--bg); }
.camera-window .window-toolbar { position: relative; }
.camera-window .window-toolbar b { font-size: 12px; font-weight: 600; }
.camera-body { width: min(100%,720px); margin: auto; padding: 16px 20px calc(22px + env(safe-area-inset-bottom)); }
.camera-body .sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.camera-preview { position: relative; height: min(52svh,540px); overflow: hidden; border-radius: 20px; border: 1px solid var(--glass-rim); background: #101116; }
.camera-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.camera-guides { position: absolute; inset: 15%; border: 1px solid #ffffff38; border-radius: 8px; pointer-events: none; }
#camera-status { min-height: 42px; font-size: 11px; line-height: 1.7; color: var(--text-2); padding: 12px 4px; text-align: center; }
#camera-fallback:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 20px; }
.camera-film { display: flex; gap: 8px; overflow: auto; min-height: 66px; padding-bottom: 8px; }
.camera-film > button { position: relative; width: 54px; height: 60px; flex: none; border-radius: 9px; border: 1px solid var(--glass-rim); overflow: hidden; }
.camera-film img { width: 100%; height: 100%; object-fit: cover; }
.camera-film span { position: absolute; top: 0; right: 0; width: 20px; height: 20px; background: #101116cc; border-radius: 0 0 0 7px; color: #fff; display: grid; place-items: center; }
.camera-film .ic { width: 12px; height: 12px; }
.camera-controls { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; gap: 16px; margin-top: 16px; }
.camera-controls > span { font-size: 11px; line-height: 1.8; color: var(--text); }
.camera-controls small { font-size: 9px; color: var(--text-2); }
.camera-controls > .btn { justify-self: end; font-size: 12px; padding: 10px 14px; }
.camera-shutter { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--text); background: transparent; padding: 5px; }
.camera-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--text); }
.camera-shutter:active { transform: scale(.94); }
.camera-shutter:disabled { opacity: .35; }
.camera-preview::after { content: ''; position: absolute; inset: 0; background: #ffffffb3; opacity: 0; pointer-events: none; }
.camera-preview.is-captured::after { animation: camera-flash .2s ease-out; }
.camera-film > button.is-processing { opacity: .75; }
.camera-film > button canvas { width: 100%; height: 100%; object-fit: cover; }
.material-original-status { margin: 12px 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.material-viewer[aria-busy="true"] .material-viewer-image { min-height: 180px; }
@keyframes camera-flash { from { opacity: .65; } to { opacity: 0; } }
@media(max-width:420px) { .material-text-label > label { flex-basis: 100%; } }

.schedule-live { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin: 0 0 25px; border: 1px solid color-mix(in srgb,var(--blue) 45%,var(--glass-rim)); border-radius: 22px; background: linear-gradient(120deg,color-mix(in srgb,var(--blue) 8%,transparent),transparent 80%),var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px var(--glass-highlight); }
.schedule-live[hidden] { display: none; }
[data-theme="dark"] .schedule-live { background: var(--surface); border-color: var(--glass-rim); border-radius: 24px; box-shadow: inset 0 1px 0 var(--glass-highlight), inset 1px 0 0 var(--glass-highlight), 0 9px 26px -18px #385c7830; backdrop-filter: blur(20px) saturate(1.12); -webkit-backdrop-filter: blur(20px) saturate(1.12); }
[data-theme="dark"] .schedule-live-symbol { background: #ffffff04; border-color: #ffffff20; }
.schedule-live-symbol { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--glass-rim); border-radius: 15px; color: var(--blue); background: var(--surface-2); }
.schedule-live-symbol .ic { width: 22px; height: 22px; }
.schedule-live-copy { flex: 1; min-width: 0; }
.schedule-live-copy p { display: flex; align-items: center; gap: 14px; font-size: 9px; letter-spacing: .11em; font-weight: 750; color: var(--blue); }
.schedule-live-copy p span { margin-left: auto; font-size: 11px; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--text-2); }
.schedule-live h2 { margin: 5px 0; font-size: 20px; letter-spacing: -.5px; line-height: 1.5; }
.schedule-live-copy > span { display: block; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.schedule-live-copy small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 11px; line-height: 1.7; color: var(--text); }
.lesson-time-row { display: flex; justify-content: space-between; align-items: center; gap: 5px; flex-wrap: wrap; }
.lesson-status { font-size: 9px; line-height: 1.6; font-weight: 750; color: var(--blue); }
.lesson.is-current, [data-theme="dark"] .lesson.is-current { border-color: color-mix(in srgb,var(--blue) 70%,var(--glass-rim)); background: linear-gradient(140deg,color-mix(in srgb,var(--blue) 15%,transparent),color-mix(in srgb,var(--blue) 3%,transparent)),var(--surface); box-shadow: inset 0 1px var(--glass-highlight), 0 6px 24px -18px color-mix(in srgb,var(--blue) 60%,transparent); }
.lesson.is-current::before { background: var(--blue); width: 3px; opacity: .9; }
.lesson.is-next, [data-theme="dark"] .lesson.is-next { border-color: color-mix(in srgb,var(--blue) 45%,var(--glass-rim)); }
.lesson-break { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0; font-size: 10px; line-height: 1.6; color: var(--blue); }
.lesson-break .ic { width: 13px; height: 13px; }
@media(max-width:760px) {
  .schedule-live { align-items: flex-start; gap: 13px; padding: 18px 16px; margin-bottom: 21px; border-radius: 20px; }
  .schedule-live-symbol { width: 36px; height: 36px; border-radius: 12px; }
  .schedule-live-symbol .ic { width: 18px; height: 18px; }
  .schedule-live h2 { font-size: 18px; }
  .schedule-mobile .lesson { min-height: 80px; }
  .schedule-mobile .lesson-status { font-size: 10px; }
}
