/* Quiet surfaces, compact navigation and one clear reading column. */
:root { --sidebar-width: 244px; --shadow: 0 12px 40px #00000022; }
body { font-size: 14px; }
.app-shell { gap: 0; padding: 0; background: var(--bg); }
.sidebar { padding: 12px 10px; border: 0; background: var(--sidebar); }
.brand-row { min-height: 42px; gap: 9px; padding: 0 8px; }
.brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 16px; }
.brand-name { font-size: 17px; letter-spacing: -.4px; }
.sidebar-close { display: inline-grid; margin-left: auto; }
.new-chat-button { min-height: 40px; height: 40px; margin-top: 12px; padding-inline: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 13px; font-weight: 500; }
.new-chat-button:hover { background: var(--hover); }
.sidebar-section-header { margin: 22px 10px 6px; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.sidebar-empty-copy { padding: 6px 10px; border: 0; font-size: 11px; }
.journey-item, .journey-empty-button { min-height: 36px; padding: 9px 11px; border-radius: 8px; }
.journey-item-copy strong { font-weight: 450; font-size: 13px; }
.chat-item .journey-item-icon, .chat-item .journey-item-copy > span { display: none; }
.journey-item.active::before { display: none; }
.journey-item-icon { width: 24px; height: 24px; border: 0; background: transparent; border-radius: 6px; }
.study-today-button { min-height: 36px; margin: 0; padding: 8px 11px; border: 0; background: transparent; border-radius: 8px; }
.study-today-button:hover { background: var(--hover); }
.sidebar-footer { border: 0; padding-top: 10px; }
.sidebar-footer-button { min-height: 38px; height: 38px; font-weight: 450; border-radius: 8px; }
.workspace { border: 0; border-radius: 0; box-shadow: none; }
.workspace-header { min-height: 56px; padding: 10px 24px; border: 0; gap: 12px; }
.workspace-title-wrap h1 { max-width: min(600px, 45vw); font-size: 15px; font-weight: 500; }
.workspace-title-wrap p { display: none; }
.header-actions .research-button, .header-actions .context-toggle { border: 0; font-size: 12px; }
.conversation-column { padding: 0 24px 14px; grid-template-rows: minmax(0, 1fr) repeat(4, auto); }
.chat, .composer, .pending-uploads, .typing-row { width: min(100%, 760px); }
.chat { padding: 24px 0 28px; scrollbar-gutter: stable; }
.welcome-state { min-height: 100%; width: 100%; padding: 36px 0 80px; align-items: center; text-align: center; }
.welcome-state h2 { max-width: 100%; margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; font-weight: 500; letter-spacing: -.8px; overflow-wrap: anywhere; }
.welcome-state > p { margin: 14px 0 0; font-size: 13px; }
.suggestions { display: flex; width: auto; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.suggestions button { display: block; min-height: 36px; padding: 8px 14px; border: 1px solid var(--border-soft); border-radius: 20px; background: transparent; font-size: 12px; color: var(--muted); text-align: center; }
.suggestions button:hover { color: var(--text); border-color: var(--border); background: var(--hover); }
.composer { min-height: 62px; padding: 12px; border-radius: 24px; border-color: var(--border-soft); background: var(--raised); box-shadow: none; gap: 7px; }
.composer:focus-within { border-color: var(--border); box-shadow: none; }
.composer textarea { padding: 8px 3px; font-size: 15px; }
.composer-icon { width: 36px; height: 36px; border: 0; border-radius: 50%; }
.mode-control { padding: 0 8px; border: 0; border-radius: 18px; }
.mode-control svg { display: none; }
.mode-control select { max-width: 82px; font-size: 12px; }
.send-button { width: 34px; height: 34px; border-radius: 50%; }
.composer-note { margin-top: 9px; font-size: 10px; }
.message { margin-bottom: 32px; }
.message-body { font-size: 15px; line-height: 1.75; }
.message.user .message-body { padding: 11px 18px; border: 0; border-radius: 20px; }
.message.assistant .message-body { padding: 0 2px; }
.answer-badge { padding: 0; min-height: auto; border-radius: 0; background: transparent; color: var(--quiet); font-size: 9px; font-weight: 500; }
.response-actions { margin-top: 9px; }
.message-studio-actions { margin-top: 3px; gap: 14px; }
.message-sources { border: 0; margin-top: 12px; padding-top: 0; }
.message-sources a { padding: 8px 10px; background: transparent; border-color: var(--border-soft); border-radius: 10px; }
.message-sources a:hover { background: var(--hover); }
.evidence-review { border-color: var(--border-soft); background: transparent; padding: 10px 12px; }
.chat-artifact { padding: 18px; border: 1px solid var(--border-soft); border-radius: 12px; background: transparent; }
.attachment-card { border-color: var(--border-soft); background: transparent; border-radius: 12px; }
.pending-upload { border-color: var(--border-soft); background: var(--raised); border-radius: 12px; }
.journey-context { background: var(--bg); padding-top: 20px; }
.context-label, .study-kicker, .study-section-label { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.study-scroll { width: min(100%, 960px); padding: 26px 32px 48px; }
.study-hero { padding: 0 0 24px; border: 0; border-radius: 0; background: transparent; margin-bottom: 0; }
.study-hero h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 500; }
.study-mastery { width: 82px; height: 82px; }
.study-mastery::after { background: var(--bg); }
.study-mastery strong { font-size: 22px; }
.daily-study-coach { padding: 20px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; margin: 0 0 22px; }
.daily-study-coach h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 500; }
.study-tabs { padding: 0; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; box-shadow: none; background: var(--bg); gap: 18px; }
.study-tabs button { flex: 0 1 auto; min-height: 44px; padding: 0 3px; border-radius: 0; font-weight: 450; }
.study-tabs button.active { background: transparent; color: var(--text); border-bottom: 2px solid var(--accent); }
.study-tools { margin: 0 0 24px; border-bottom: 1px solid var(--border-soft); padding-bottom: 16px; }
.study-tools > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.study-cockpit { gap: 12px; margin: 16px 0 0; }
.study-mission, .study-focus, .study-map, .study-coach { background: transparent; border: 1px solid var(--border-soft); border-radius: 12px; padding: 20px; }
.study-mission h3 { font-size: 21px; font-weight: 500; }
.study-focus strong { font-size: 32px; font-weight: 500; }
.concept-star { padding: 9px 13px; background: transparent; font-size: 12px; }
#concept-map { gap: 8px; }
.study-overview-card, .study-key-card, .study-weak-card { border: 0; border-radius: 0; padding: 10px 0 24px; background: transparent; }
.study-key-card, .study-weak-card { border-top: 1px solid var(--border-soft); padding-top: 24px; margin-top: 0; }
.study-overview { font-size: 15px; line-height: 1.8; }
.adaptive-summary { padding: 16px 0 24px; border: 0; border-radius: 0; background: transparent; }
.quiz-card { border: 1px solid var(--border-soft); border-radius: 14px; background: transparent; padding: 26px; }
.quiz-option { border-radius: 10px; }
.flashcard { border-radius: 16px; box-shadow: none; background: var(--surface); }
.study-chat-composer { border-radius: 22px; background: var(--raised); border-color: var(--border-soft); }
.primary-button, .secondary-button { min-height: 38px; padding-inline: 14px; border-radius: 9px; }
.secondary-button { border-color: var(--border-soft); }
dialog { border-radius: 16px !important; border-color: var(--border-soft); }
dialog::backdrop { backdrop-filter: none; }
.creation-heading h2, .upload-content h2, .study-plan-content > h2 { font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.creation-item, .study-plan-card, .creation-compose { border-radius: 10px; border-color: var(--border-soft); background: transparent; }
.settings-popover, .pet-panel { border-radius: 12px; }
.auth-shell { background: var(--bg); }
.auth-card { width: min(100%, 410px); padding: 28px; border: 0; background: transparent; box-shadow: none; }
.auth-brand.kairo-orbit::after { display: none; }
.auth-heading > span { display: none; }
.auth-heading h1 { font-size: 28px; font-weight: 500; }
.auth-heading p { font-size: 13px; }
.auth-tabs { border: 0; border-radius: 10px; background: var(--raised); }
.auth-form input { background: var(--bg); border-color: var(--border); }
.auth-footnote { border: 0; padding-top: 0; font-size: 10px; }
.admin-page .admin-main { max-width: 1180px; padding-top: 30px; }
.admin-page .admin-header { min-height: 60px; }
.admin-page .hero h1 { font-size: 32px; font-weight: 500; }
.admin-page .metric-card { border-radius: 12px; padding: 20px; background: transparent; box-shadow: none; }
.admin-page .metric-card strong { color: var(--text); font-size: 30px; font-weight: 500; }
.admin-page .panel { border-radius: 12px; box-shadow: none; padding: 24px; }
.admin-page .section-heading h2 { font-weight: 500; }
.admin-page .system-grid > div { background: transparent; }
@media (min-width: 761px) {
    body.sidebar-collapsed .app-shell { grid-template-columns: minmax(0, 1fr); }
    body.sidebar-collapsed .sidebar { display: none; }
    body.sidebar-collapsed .sidebar-open { display: inline-grid; }
}
@media (max-width: 760px) {
    .sidebar { padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom)); }
    .sidebar .icon-button { width: 36px; height: 36px; }
    .workspace-header { min-height: 54px; padding: max(6px, env(safe-area-inset-top)) 10px 6px; }
    .workspace-title-wrap h1 { max-width: 45vw; font-size: 14px; }
    .conversation-column { padding: 0 12px max(10px, env(safe-area-inset-bottom)); }
    .chat { padding-top: 20px; }
    .welcome-state { padding: 28px 0 50px; }
    .welcome-state h2 { font-size: 27px; }
    .suggestions { gap: 7px; max-width: 340px; margin-top: 20px; }
    .suggestions button { min-height: 36px; padding: 8px 12px; }
    .composer { min-height: 60px; padding: 10px; gap: 4px; }
    .composer textarea { font-size: 16px; }
    .composer-icon { width: 32px; height: 36px; }
    .mode-control { padding-inline: 4px; }
    .mode-control select { max-width: 65px; }
    .message.user .message-body { max-width: 90%; }
    .study-scroll { padding: 20px 18px 40px; }
    .study-hero { gap: 15px; }
    .study-mastery { width: 72px; height: 72px; }
    .study-tabs { gap: 16px; }
    .quiz-card { padding: 20px; }
    .daily-study-coach { padding: 18px; }
    .auth-card { padding: 24px 16px; }
    .admin-page .panel { padding: 18px; }
}
