.study-shell { display:grid; grid-template-columns:248px minmax(0,1fr); height:100dvh; overflow:hidden; background:#fff; color:#202b28; }
.study-shell:has(.plugin-panel:not([hidden])) { grid-template-columns:248px minmax(0,1fr) minmax(340px,410px); }
.history-sidebar { min-width:0; height:100dvh; display:flex; flex-direction:column; background:#f4f6f3; border-right:1px solid #e3e8e2; padding:20px 12px 14px; }
.history-brand { display:flex; align-items:center; gap:10px; padding:2px 10px 24px; font-size:16px; }
.history-brand .brand-symbol { flex:none; }
.new-chat { width:100%; min-height:42px; border:1px solid #d0dbd2; background:#fff; color:#174f43; border-radius:6px; text-align:left; padding:0 14px; font-weight:700; }
.new-chat span { font-size:20px; line-height:0; margin-right:7px; vertical-align:-1px; }
.new-chat:hover,.conversation-list button:hover { background:#e8f1eb; }
.history-label { color:#829087; font-size:11px; font-weight:700; padding:25px 13px 9px; }
.conversation-list { min-height:0; overflow:auto; flex:1; }
.history-item { display:flex; align-items:center; border-radius:5px; margin:2px 0; }
.history-item.active { background:#e4eee6; }
.history-item button:first-child { border:0; background:none; color:#46594e; padding:10px 11px; text-align:left; min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.history-item.active button:first-child { color:#145b4b; font-weight:700; }
.history-delete { border:0; background:none; color:#8a9990; font-size:19px; padding:4px 9px; opacity:0; }
.history-item:hover .history-delete,.history-delete:focus-visible { opacity:1; }
.history-empty { color:#8d9b91; font-size:12px; padding:4px 13px; }
.sidebar-profile { display:flex; align-items:center; gap:9px; border-top:1px solid #dce5dc; padding:16px 5px 0; min-width:0; }
.sidebar-profile div { min-width:0; flex:1; }
.sidebar-profile strong,.sidebar-profile small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.sidebar-profile strong { font-size:12px; }
.sidebar-profile small { color:#89958b; font-size:11px; margin-top:2px; }
.icon-button { width:32px; height:32px; flex:none; padding:0; display:grid; place-items:center; border:0; border-radius:5px; background:transparent; color:#687870; font-size:20px; }
.icon-button:hover { background:#e8eee9; color:#193d34; }
.mobile-only { display:none; }
.chat-column { min-width:0; min-height:0; display:flex; flex-direction:column; }
.chat-topbar { height:66px; flex:none; border-bottom:1px solid #edf0ed; display:flex; align-items:center; gap:13px; padding:0 28px; }
.chat-title { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.chat-title strong,.chat-title span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.chat-title strong { font-size:15px; }
.chat-title span { font-size:11px; color:#8a968d; }
.plugin-toggle { display:flex; gap:7px; align-items:center; border:1px solid #d8e2da; background:#fff; border-radius:5px; color:#416b5b; padding:8px 12px; font-weight:650; }
.plugin-toggle span { font-size:18px; line-height:12px; }
.plugin-toggle:hover,.plugin-toggle[aria-expanded="true"] { background:#edf4ee; }
.chat-main { padding:0 24px; max-width:none; width:100%; min-height:0; flex:1; overflow:auto; margin:0; }
.chat-content { width:min(100%,760px); min-height:100%; margin:0 auto; display:flex; flex-direction:column; }
.chat-empty { margin:auto 0; padding:55px 0 90px; text-align:center; }
.chat-mark { display:inline-grid; place-items:center; width:42px; height:42px; border-radius:8px; background:#1d7462; color:#fff; font-size:23px; font-weight:700; }
.chat-empty h1 { font-size:26px; line-height:1.25; margin:19px 0 10px; }
.chat-empty p { color:#738178; margin:0; }
.starter-prompts { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:28px auto 0; max-width:650px; }
.starter-prompts button { max-width:100%; border:1px solid #e0e7e1; border-radius:5px; background:#fff; color:#496257; padding:11px 14px; text-align:left; }
.starter-prompts button span { color:#88998b; margin-left:5px; }
.starter-prompts button:hover { border-color:#76aa8f; background:#f5faf6; }
.message-list { padding:34px 0 40px; }
.message { margin-bottom:28px; max-width:100%; }
.message.user { margin-left:auto; width:fit-content; max-width:min(85%,620px); background:#edf3ee; border-radius:6px; padding:13px 16px; }
.message.assistant { max-width:730px; }
.message-label { font-size:11px; font-weight:750; color:#397765; margin-bottom:8px; }
.message.user .message-label { color:#697c6d; }
.message-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.75; color:#25322c; }
.message-action { margin-top:9px; padding:5px 0; border:0; background:none; color:#216f5e; font-size:12px; font-weight:650; }
.message-action:hover { text-decoration:underline; }
.composer-wrap { flex:none; width:min(100%,808px); margin:0 auto; padding:12px 24px 17px; }
.chat-form { border:1px solid #cddbd0; border-radius:8px; background:#fff; box-shadow:0 5px 22px #1c392008; overflow:hidden; }
.chat-form:focus-within { border-color:#6da98e; box-shadow:0 0 0 3px #81b99b26; }
.composer-context { display:flex; align-items:center; gap:12px; padding:10px 13px 0; color:#6f7e73; font-size:11px; }
.composer-context label { display:flex; align-items:center; gap:6px; min-width:0; }
.composer-context select { max-width:175px; width:auto; padding:4px 22px 4px 7px; border:1px solid #e2e9e2; font-size:11px; color:#305b4b; }
.composer-context span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-form textarea { display:block; border:0; outline:0; resize:none; width:100%; min-height:74px; max-height:180px; padding:12px 15px 4px; color:#26382f; }
.chat-form textarea:focus-visible { outline:0; }
.composer-bottom { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:0 10px 10px 13px; }
.composer-bottom .primary { min-height:34px; padding:6px 13px; }
.composer-note { margin:7px 0 0; font-size:10px; color:#9aa69c; text-align:center; }
.plugin-panel { min-width:0; height:100dvh; background:#fbfcfa; border-left:1px solid #e0e7df; display:flex; flex-direction:column; }
.plugin-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px 12px; border-bottom:1px solid #e8ede6; }
.plugin-head h2 { font-size:16px; margin:3px 0 0; }
.plugin-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:10px 12px; border-bottom:1px solid #e9eee9; }
.plugin-list button { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; border:0; border-radius:5px; background:none; color:#6b7c70; padding:7px 3px; }
.plugin-list button.active,.plugin-list button:hover { background:#e9f2eb; color:#166b57; }
.plugin-list button span { font-size:17px; height:20px; line-height:20px; }
.plugin-list button small { font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.plugin-content { min-height:0; flex:1; overflow:auto; padding:18px 20px 40px; }
.plugin-section h3 { font-size:13px; margin:24px 0 9px; }
.plugin-section h3:first-child { margin-top:0; }
.plugin-intro { color:#7b8b7d; font-size:12px; line-height:1.6; margin:0 0 18px; }
.plugin-row { border-top:1px solid #e9eee8; padding:11px 0; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; min-width:0; }
.plugin-row:first-of-type { border-top:0; }
.plugin-row>div { min-width:0; }
.plugin-row strong { display:block; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.plugin-row small { display:block; color:#88958a; font-size:11px; line-height:1.5; margin-top:3px; }
.plugin-row p { color:#5c6e61; font-size:12px; margin:6px 0; overflow-wrap:anywhere; }
.plugin-row .outline,.plugin-row .primary,.plugin-row .muted-button { font-size:11px; padding:5px 8px; min-height:28px; flex:none; }
.plugin-row.block { display:block; }
.plugin-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.plugin-form { display:grid; gap:12px; margin:8px 0 22px; }
.plugin-form label { display:grid; gap:5px; font-size:11px; font-weight:650; color:#536459; }
.plugin-form input,.plugin-form select,.plugin-form textarea { min-width:0; width:100%; font-size:12px; padding:9px 10px; }
.plugin-form textarea { min-height:82px; }
.plugin-form button { justify-self:start; }
.plugin-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; border-bottom:1px solid #e1e9e1; padding:5px 0 18px; }
.plugin-stats strong { display:block; font-size:22px; }
.plugin-stats span { display:block; font-size:10px; color:#8b988d; }
.plugin-section .empty { padding:9px 0; margin:0; font-size:12px; }
.plugin-row .review-feedback { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; }
.plugin-row summary { cursor:pointer; overflow-wrap:anywhere; }
.expert-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; margin:16px 0 4px; padding:3px; border:1px solid #e0e0e0; border-radius:6px; }
.expert-picker button { min-height:34px; padding:5px 4px; border:0; border-radius:4px; background:transparent; color:#505050; font-size:12px; overflow-wrap:anywhere; }
.expert-picker button[aria-pressed="true"] { background:#242424; color:#fff; }
@media(max-width:1160px) { .study-shell:has(.plugin-panel:not([hidden])) { grid-template-columns:248px minmax(0,1fr); } .plugin-panel { position:fixed; z-index:8; right:0; top:0; width:min(410px,100vw); box-shadow:-10px 0 26px #213c2620; } }
@media(max-width:760px) { .study-shell,.study-shell:has(.plugin-panel:not([hidden])) { display:block; } .history-sidebar { position:fixed; z-index:10; top:0; left:0; width:min(290px,86vw); transform:translateX(-102%); transition:transform .2s; box-shadow:8px 0 24px #213c2618; } .history-sidebar.mobile-open { transform:translateX(0); } .history-delete { opacity:1; } .mobile-only { display:grid; } .history-brand .mobile-only { margin-left:auto; } .chat-column { height:100dvh; } .chat-topbar { height:58px; padding:0 14px; } .chat-main { padding:0 16px; } .chat-empty { padding:30px 0 80px; } .chat-empty h1 { font-size:21px; } .chat-empty p { font-size:12px; } .starter-prompts { display:grid; justify-content:stretch; width:100%; } .starter-prompts button { width:100%; } .composer-wrap { padding:9px 11px calc(12px + env(safe-area-inset-bottom)); } .composer-note { font-size:9px; } .message-list { padding-top:22px; } .message.user { max-width:92%; } .plugin-panel { width:100vw; } }

/* Quiet, monochrome workspace. Keep contrast in the content rather than the chrome. */
:root { color:#171717; background:#fff; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline-color:#222; }
input,select,textarea { border-color:#d9d9d9; color:#171717; border-radius:5px; }
.primary,.outline,.muted-button { border-radius:5px; }
.primary { background:#171717; border-color:#171717; color:#fff; }
.primary:hover { background:#363636; }
.outline { background:#fff; border-color:#d4d4d4; color:#242424; }
.outline:hover,.muted-button:hover { background:#f5f5f5; }
.muted-button { background:#f7f7f7; border-color:#ededed; color:#555; }
.brand-symbol,.chat-mark { background:#191919; color:#fff; border-radius:5px; }
.eyebrow { color:#777; letter-spacing:0; }
.avatar { background:#f0f0f0; color:#333; }
.pill { background:#f1f1f1; color:#333; }
.study-shell,.history-sidebar,.plugin-panel { background:#fff; color:#171717; }
.history-sidebar,.plugin-panel { border-color:#ededed; }
.history-brand { border-bottom:1px solid #eee; margin-bottom:15px; padding-bottom:19px; }
.new-chat { border-color:#d9d9d9; color:#171717; font-weight:600; }
.new-chat:hover,.conversation-list button:hover,.history-item.active,.icon-button:hover { background:#f4f4f4; }
.history-item.active button:first-child,.history-item button:first-child,.icon-button,.sidebar-profile strong { color:#242424; }
.history-label,.history-empty,.sidebar-profile small,.chat-title span,.composer-context,.composer-note,.plugin-intro,.plugin-row small,.plugin-row p,.empty { color:#737373; }
.sidebar-profile { border-color:#eee; }
.chat-topbar,.plugin-head,.plugin-list { border-color:#ededed; }
.chat-title strong { font-size:15px; font-weight:650; }
.plugin-toggle { border-color:#dedede; color:#222; }
.plugin-toggle:hover,.plugin-toggle[aria-expanded="true"] { background:#f5f5f5; }
.chat-empty h1 { color:#171717; font-weight:650; }
.chat-empty p { color:#767676; }
.starter-prompts button { border-color:#dedede; color:#333; }
.starter-prompts button span { color:#777; }
.starter-prompts button:hover { border-color:#999; background:#f8f8f8; }
.message-label,.message.user .message-label { color:#777; }
.message-text { color:#202020; }
.message.user { background:#f4f4f4; }
.message-action,.text-command { color:#242424; }
.text-command { display:inline-block; border:0; background:none; padding:4px 0; font-size:12px; font-weight:650; text-decoration:none; }
.text-command:hover { text-decoration:underline; }
.chat-form { border-color:#d4d4d4; box-shadow:none; }
.chat-form:focus-within { border-color:#555; box-shadow:none; }
.composer-context select { border-color:#dedede; color:#333; }
.chat-form textarea { color:#171717; }
.plugin-list button { color:#666; }
.plugin-list button.active,.plugin-list button:hover { background:#f2f2f2; color:#171717; }
.plugin-row,.plugin-stats { border-color:#ececec; }
.plugin-form label { color:#4a4a4a; }
.plugin-form label { font-size:12px; }
.plugin-form input,.plugin-form select,.plugin-form textarea { font-size:13px; }
.plugin-form input,.plugin-form select,.plugin-form textarea { background:#fff; color:#171717; }
.form-stack { display:grid; gap:12px; border-left:2px solid #e6e6e6; padding-left:12px; }
.form-stack[hidden] { display:none; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.mistake-preview { display:block; width:100%; max-height:230px; object-fit:contain; background:#f7f7f7; border:1px solid #ededed; border-radius:4px; }
.mistake-preview[hidden] { display:none; }
.auth-wrap { background:#fff; }
.auth-copy { background:#f7f7f7; color:#171717; }
.auth-copy p { color:#555; }
.auth-copy .brand-light .brand-symbol { background:#191919; color:#fff; }
.auth-panel { border-color:#e6e6e6; box-shadow:none; }
.text-button { color:#222; }
#toast { background:#222; }
@media(max-width:1160px) { .plugin-panel { box-shadow:-4px 0 20px #0000000a; } }
@media(max-width:760px) { .history-sidebar { box-shadow:4px 0 20px #0000000a; } .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
