@charset "UTF-8";
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px 16px;flex-wrap:wrap;margin-top:16px;color:var(--muted);font-size:12px;min-width:0}
.pagination-controls,.pagination-jump{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;margin:0}
.pagination button{padding:6px 9px;min-height:32px;font-size:12px;line-height:1.5;white-space:nowrap}
.pagination-count{white-space:nowrap;padding:0 4px;font-variant-numeric:tabular-nums}
.pagination-jump label,.pagination-jump>span{font:inherit;margin:0;white-space:nowrap}
.pagination-jump input{width:58px;max-width:100%;min-width:0;min-height:32px;padding:5px 7px;margin:0;text-align:center;font-size:12px;line-height:1.5}
.pagination-error{flex-basis:100%;margin:0;color:var(--red);font-size:12px;line-height:1.6;text-align:right}
.pagination-error:empty{display:none}
@media(max-width:600px){.pagination{gap:8px;justify-content:flex-start}.pagination-controls{gap:4px}.pagination button{padding:6px 7px}.pagination-count{padding:0 2px}.pagination-error{text-align:left}}
@media(pointer:coarse){.pagination button,.pagination-jump input{min-height:42px}.pagination-jump input{font-size:16px}}
.admin-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:24px;flex-wrap:wrap}.admin-tabs button{border:0;background:transparent;color:var(--muted);padding:10px 16px;border-radius:8px;font-size:13px}.admin-tabs button.active{background:var(--soft);color:var(--green);font-weight:600}.admin-health{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:24px 0 14px;padding:15px;background:var(--soft);border-radius:10px}.admin-health strong{font-size:25px;color:var(--green)}.admin-health span{font-size:12px;color:var(--muted)}.admin-health button{margin-left:auto}.admin-data-intro>p{font-size:13px;line-height:1.9;max-width:850px}.admin-data-intro label{max-width:260px}.admin-dataset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-dataset-card{display:flex;flex-direction:column;gap:10px;margin-bottom:0!important}.admin-dataset-card h2{margin:0}.admin-dataset-card p{font-size:12px;line-height:1.8;margin:0}.admin-dataset-card .admin-actions{margin-top:auto;padding-top:8px}.admin-field-preview{font-size:11px;line-height:1.9;padding:12px 14px;border-radius:8px;background:var(--soft);color:var(--muted)}.admin-table-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0 10px}.admin-table-controls>span{margin-right:auto}.admin-compact-table{max-height:390px;overflow:auto;min-height:160px;border:1px solid var(--line);border-radius:9px}.admin-compact-table table{margin:0;min-width:680px}.admin-compact-table th{vertical-align:top;position:sticky;top:0;background:var(--bg);z-index:2;white-space:nowrap}.admin-compact-table td{padding:10px 12px;max-width:260px;overflow-wrap:anywhere;font-size:12px}.admin-sort{font:inherit;color:inherit;border:0;background:transparent;padding:0;font-weight:600;text-align:left}.admin-lineage{display:flex;gap:12px;align-items:center;margin:22px 0;flex-wrap:wrap}.admin-lineage span{padding:12px 16px;background:var(--soft);border:1px solid var(--line);border-radius:8px;font-size:12px}.admin-lineage b{color:var(--green)}.admin-schema-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.admin-er-scroll{overflow:auto;max-height:650px}.admin-er{display:block;width:100%;min-width:780px}.admin-er-edges path{fill:none;stroke:var(--line);stroke-width:1.5}.admin-er-edges path.selected{stroke:var(--green);stroke-width:2.5}#admin-er-arrow path{fill:var(--muted)}.admin-er-node{cursor:pointer;outline:none}.admin-er-node rect{fill:var(--bg);stroke:var(--line);stroke-width:1.5}.admin-er-node text{fill:var(--ink);font:15px sans-serif}.admin-er-node .admin-er-name{fill:var(--muted);font:12px monospace}.admin-er-node.active rect,.admin-er-node:focus rect{fill:var(--soft);stroke:var(--green);stroke-width:2.5}.admin-schema-detail{position:sticky;top:12px}.admin-schema-detail h3{font-size:13px;margin:22px 0 10px}.admin-schema-detail>p{font-size:12px;line-height:1.8}.admin-relation{font-family:monospace;font-size:11px!important;overflow-wrap:anywhere}.admin-relation small{display:block;color:var(--muted);font-family:inherit;margin-top:3px}.admin-schema-fields{max-height:250px;overflow:auto}.admin-schema-fields p{display:flex;justify-content:space-between;gap:10px;padding:8px 0;margin:0;border-bottom:1px solid var(--line);font-size:11px}.admin-schema-fields p span{color:var(--muted);text-align:right}.admin-schema-detail .admin-actions{gap:8px}
@media(max-width:1150px){.admin-schema-layout{grid-template-columns:1fr}.admin-schema-detail{position:static}.admin-schema-fields{max-height:220px}}@media(max-width:700px){.admin-dataset-grid{grid-template-columns:1fr}.admin-tabs{gap:3px}.admin-tabs button{padding:9px 11px;font-size:12px}.admin-table-controls{gap:8px}.admin-table-controls>span{width:100%}.admin-table-controls .primary{font-size:11px}.admin-lineage{gap:8px}.admin-lineage span{padding:10px;font-size:11px}.admin-er-scroll{max-height:500px}}
.kb-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:start}.kb-page{max-width:1560px;margin:auto}.kb-header-actions{display:flex;gap:10px;flex-wrap:wrap}.kb-sidebar{padding:16px 10px;border:1px solid var(--line);border-radius:14px;background:var(--soft);position:sticky;top:12px;max-height:calc(100dvh - 160px);overflow:auto}.kb-sidebar>.nav-label{display:block;margin:2px 10px 12px}.kb-folder{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);padding:9px 10px;min-height:38px;width:100%;text-align:left;border-radius:7px;font-size:12px;line-height:1.5}.kb-folder span{flex:1;min-width:0;overflow-wrap:anywhere}.kb-folder small{font-size:10px;opacity:.7}.kb-folder:hover,.kb-folder.active{background:var(--bg);color:var(--green)}.kb-folder.active{font-weight:600;box-shadow:0 1px 4px #00000008}.kb-children{margin-left:13px;padding-left:7px;border-left:1px solid var(--line)}.kb-branch{position:relative}.kb-branch>summary{position:absolute;top:10px;left:0;font-size:0;cursor:pointer;list-style:none}.kb-branch>summary:before{content:'▸';font-size:12px;color:var(--muted)}.kb-branch[open]>summary:before{content:'▾'}.kb-branch>.kb-folder{padding-left:17px}.kb-main{min-width:0}.kb-breadcrumb{font-size:12px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere;margin-bottom:13px}.kb-toolbar{display:flex;gap:10px;align-items:center}.kb-toolbar input{flex:1;min-width:0;margin:0}.kb-toolbar button{flex-shrink:0}.kb-folder-note,.kb-summary{font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0}.kb-folder-note{padding:12px 14px;background:var(--soft);border-radius:8px}.kb-document{display:flex;gap:17px;border:1px solid var(--line);background:var(--bg);padding:20px;margin-bottom:12px;border-radius:12px}.kb-file-type{display:flex;align-items:center;justify-content:center;width:48px;height:53px;flex-shrink:0;background:var(--soft);color:var(--green);border-radius:9px;font-size:10px;letter-spacing:.5px}.kb-document-body{min-width:0;flex:1}.kb-document h3{font-size:15px;margin:0 0 7px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.kb-path{font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}.kb-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.kb-badges>span{padding:3px 7px;font-size:10px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.kb-badges>small{font-size:10px;color:var(--muted);margin-left:3px}.kb-badges>.kb-warning{color:#a26920;background:#c39b3820}.kb-status-note{font-size:12px;color:var(--muted);padding:8px 0;margin:4px 0;line-height:1.7}.kb-document .document-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:13px}.kb-document a.text-button{text-decoration:none}.kb-storage-note{line-height:1.9;margin-top:24px}.kb-permission-fields{display:grid;gap:10px;margin:20px 0 14px}.kb-permission-fields label{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.7;margin:0}.kb-permission-fields input[type=checkbox]{width:17px;height:17px;margin:0;flex-shrink:0;accent-color:var(--green)}.kb-file-pickers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.kb-file-pickers .upload-zone{padding:18px 12px;font-size:12px;margin:0}.kb-file-pickers input[type=file]{display:block;width:100%;font-size:10px;margin-top:12px}.kb-import-results{white-space:pre-wrap;overflow-wrap:anywhere;max-height:230px;overflow:auto;font-size:11px;line-height:1.8;color:var(--muted);background:var(--soft);border-radius:8px;padding:12px}.kb-import-results:empty{display:none}
@media(max-width:1100px){.kb-layout{grid-template-columns:195px minmax(0,1fr);gap:18px}.kb-document{padding:16px;gap:12px}.kb-page .page-heading{flex-wrap:wrap;gap:14px}}
@media(max-width:760px){.kb-layout{grid-template-columns:1fr;gap:20px}.kb-sidebar{position:static;max-height:235px}.kb-toolbar{align-items:stretch}.kb-header-actions{width:100%}.kb-document{gap:10px;padding:15px 12px}.kb-file-type{width:36px;height:43px;font-size:9px}.kb-document h3{font-size:14px}.kb-file-pickers{grid-template-columns:1fr}.kb-document .document-actions{gap:10px 14px}}
.scenario-builder>.subtle,.scenario-generate-row>.subtle,.scenario-preview>.subtle{font-size:var(--practice-description-size);line-height:1.7;font-weight:400}
.scenario-builder{border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--bg)}.scenario-input-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.scenario-input-grid textarea{min-height:140px;line-height:1.7}.scenario-input-grid textarea::placeholder{font-size:var(--practice-description-size);line-height:1.7;font-weight:400;color:var(--muted);opacity:1}.scenario-input-grid small{display:block;font-size:var(--practice-description-size);line-height:1.7;font-weight:400;color:var(--muted);margin-top:6px}.scenario-generate-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}.scenario-preview{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.scenario-preview h3{font-size:20px;margin:8px 0 12px}.scenario-preview>p{white-space:pre-wrap}.scenario-topics{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.scenario-topics span{background:var(--soft);border-radius:6px;padding:5px 10px;font-size:12px}.room-reply-context{display:inline-block;font-size:11px;color:var(--muted);border-left:2px solid var(--green);padding-left:8px;margin:0 0 6px}.room-entry:target{outline:2px solid var(--green);outline-offset:4px;border-radius:10px}.role-r1{background:#e6eee5;color:#436550}.role-r2{background:#e5ebf0;color:#506a80}.role-r3{background:#f1e9df;color:#896b46}.role-r4{background:#eee6ed;color:#7c5874}.role-r5{background:#e3eeee;color:#487574}.role-r6{background:#eeeccf;color:#74703c}@media(max-width:600px){.scenario-input-grid{grid-template-columns:1fr;gap:0}.scenario-builder{padding:16px}.scenario-generate-row{align-items:flex-start;flex-direction:column}}
.admin-toolbar,.admin-actions,.admin-export-row,.admin-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.admin-toolbar{margin-bottom:22px}.admin-toolbar label{display:flex;align-items:center;gap:12px;margin:0}.admin-toolbar select{width:145px;margin:0}.admin-toolbar>.subtle{flex:1}.admin-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.admin-grid>.panel{min-width:0}.admin-actions{margin:16px 0}.admin-modes{margin:20px 0}.admin-export-row{align-items:flex-end;margin:20px 0 12px}.admin-export-row label{flex:1;min-width:180px;margin:0}.admin-export-row button{margin-bottom:1px}.admin-table-wrap{overflow-x:auto;margin-top:16px}.admin-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.admin-table th{color:var(--muted);font-weight:500;white-space:nowrap}.admin-table td,.admin-table th{padding:12px 10px;border-bottom:1px solid var(--line)}.admin-table td:first-child,.admin-table td:last-child{white-space:nowrap}.admin-table td{min-width:100px}.admin-table code{font-size:11px}.admin-legend{font-size:12px;color:var(--muted);margin:14px 0}.admin-legend span{display:flex;align-items:center;gap:6px}.admin-legend i{width:9px;height:9px;background:var(--green);border-radius:3px}.admin-chart{display:flex;align-items:flex-end;gap:10px;overflow-x:auto;padding:8px 0 12px;max-width:100%}.admin-chart-day{flex:1;min-width:36px;text-align:center;font-size:10px;color:var(--muted)}.admin-chart-bars{height:130px;display:flex;gap:3px;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line);margin-bottom:8px}.admin-chart-bars i{width:10px;background:var(--green);border-radius:3px 3px 0 0;display:block}.admin-chart-day small{display:block;font-size:9px}.admin-page .login-color{background:#a5b7b0}.admin-page .panel>p.subtle{margin-top:10px}.admin-page .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){.admin-grid{grid-template-columns:1fr}}@media(max-width:600px){.admin-page .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-toolbar>.subtle{flex-basis:100%;order:2}.admin-export-row{align-items:stretch;flex-direction:column}.admin-export-row label{min-width:0;width:100%}.admin-grid{gap:0}.admin-table td,.admin-table th{padding:10px 8px}}
:root{--bg:#f8f9f6;--sidebar:#f0f3ee;--ink:#273b32;--muted:#6f7d75;--green:#567768;--deep:#3d6150;--soft:#e7eee6;--line:#e3e8e0;--sand:#f5f1e8;--red:#ab5047;--shadow:0 12px 40px #354b3b09}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 "Segoe UI","Microsoft YaHei",system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit}button:disabled{cursor:wait;opacity:.55}a{color:var(--deep);text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}input,select,textarea{background:#fff;border:1px solid #dbe2d8;border-radius:9px;padding:11px 12px;color:var(--ink);width:100%;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #56776812}textarea{resize:vertical;min-height:100px}label{display:block;font-weight:500;margin-bottom:18px}label input,label select,label textarea{margin-top:7px}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.4;letter-spacing:-.8px;font-weight:600}h2{font-size:19px;font-weight:600}h3{font-size:15px;font-weight:600}p+p{margin-top:10px}.hidden{display:none!important}.subtle{color:var(--muted);font-size:13px}.eyebrow{display:block;color:var(--green);font-size:11px;letter-spacing:2px;font-weight:600}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:22px;letter-spacing:1px;font-weight:650}.brand-mark{display:grid;place-items:center;background:var(--green);width:38px;height:40px;border-radius:12px 12px 12px 3px;color:white;font-size:19px;font-family:serif}.brand-en{display:block;font-size:8px;letter-spacing:1.6px;line-height:1.3;color:var(--muted);font-weight:500}.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--green);color:white;border-radius:9px;padding:11px 18px;font-weight:500}.primary:hover{background:var(--deep)}.secondary{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:9px 15px;background:#fff}.secondary:hover{background:var(--sidebar)}.full{width:100%}.icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.icon-button{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;color:var(--muted)}.icon-button:hover{background:var(--soft)}.danger{color:var(--red)}.danger:hover{background:#fbefed}.form-error{min-height:22px;color:var(--red);font-size:13px;margin:0 0 12px}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:#eaf0e7;padding:42px 60px;position:relative;overflow:hidden}.story-copy{max-width:420px;margin:11vh auto 0}.story-copy h1{font-size:47px;line-height:1.5;margin:18px 0;color:#385543;font-weight:500}.story-copy p{color:#6d7d70;line-height:2}.story-orbit{height:235px;width:300px;border:1px solid #b5c7b169;border-radius:50%;position:relative;margin:46px auto 55px;transform:rotate(-13deg)}.story-orbit:before{content:"";position:absolute;inset:30px -12px;border:1px solid #b5c7b169;border-radius:50%;transform:rotate(49deg)}.orbit-center{position:absolute;inset:80px 105px;display:grid;place-items:center;color:var(--green);font-family:serif;font-size:23px;white-space:nowrap;transform:rotate(13deg)}.orbit-label{position:absolute;background:#f9faf5;border:1px solid #d8e1d3;padding:10px 16px;border-radius:25px;font-size:12px;transform:rotate(13deg);box-shadow:var(--shadow)}.one{top:0;left:100px}.two{bottom:35px;left:-20px}.three{bottom:35px;right:-20px}.auth-footer{position:absolute;bottom:28px;color:#849381;font-size:11px;letter-spacing:1px}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 30px;background:#fcfcf9}.auth-form{width:355px}.auth-form h2{font-size:28px;margin:12px 0 7px}.segmented{display:flex;border-bottom:1px solid var(--line);margin:28px 0}.segmented button{flex:1;padding:10px;border-bottom:2px solid transparent;color:var(--muted)}.segmented .active{border-color:var(--green);color:var(--deep);font-weight:600}.auth-note{font-size:11px;color:#8a948d;text-align:center;margin-top:23px;line-height:1.9}
.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);height:100dvh;min-height:560px}.sidebar{display:flex;flex-direction:column;background:var(--sidebar);border-right:1px solid var(--line);padding:28px 17px 15px;overflow:hidden}.sidebar .brand{margin:0 12px 24px}.course-label{font-size:10px;color:var(--muted);margin:0 10px 24px;display:flex;align-items:center;gap:6px;white-space:nowrap}.dot{width:6px;height:6px;background:#82a27b;border-radius:50%;display:inline-block}.tiny-badge{font-size:9px;background:#e0e8dc;color:#5a745b;border-radius:4px;padding:1px 5px;margin-left:auto}.new-chat{background:var(--green);color:#fff;padding:12px 14px;border-radius:9px;display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:27px;box-shadow:0 4px 10px #56776813}.new-chat:hover{background:var(--deep)}.shortcut{margin-left:auto;opacity:.7}.nav-label{font-size:10px;color:#8b968e;letter-spacing:1px;margin:0 14px 9px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:11px 14px;margin:3px 0;color:#687b6b;border-radius:8px;text-align:left;font-size:13px}.nav-item:hover{background:#e7ede3}.nav-item.active{background:#e0e9db;color:#3c624c;font-weight:600}.nav-item.active:after{content:"";width:5px;height:5px;background:var(--green);border-radius:50%;margin-left:auto}.history-header{display:flex;align-items:center;justify-content:space-between;margin-top:29px}.history-header .nav-label{margin-bottom:0}.recent-chats{flex:1;overflow:auto;padding:6px 4px;min-height:40px}.recent-chat{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:9px 12px;font-size:12px;color:#7f8b81;border-radius:6px}.recent-chat:hover,.recent-chat.active{background:#e6ece2;color:var(--deep)}.history-empty{color:#9aa498;font-size:11px;padding:10px 12px}.sidebar-bottom{border-top:1px solid var(--line);padding-top:11px;margin-top:12px}.account{display:flex;align-items:center;gap:10px;padding:12px 10px 0;text-align:left;width:100%}.avatar{display:grid;place-items:center;background:#dce6d5;color:#56704e;border:1px solid #d0ddc9;width:34px;height:34px;border-radius:50%;font-size:13px}.account strong{font-size:12px;font-weight:500;display:block;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{font-size:10px;color:#91a08e;display:block}.account-more{margin-left:auto;color:#87927f}.main{min-width:0;display:flex;flex-direction:column;overflow:hidden}.topbar{height:76px;min-height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 37px;background:#fcfcfa}.breadcrumb{display:flex;gap:13px;align-items:center;font-size:12px;color:#8a958a}.breadcrumb strong{font-weight:500;color:#405a46}.crumb-slash{color:#c3ccbf}.topbar-right{display:flex;align-items:center;gap:15px}.topbar-right .subtle{font-size:11px}.status-pill{font-size:10px;display:flex;align-items:center;gap:6px;color:#71816f}.status-pill:before{content:"";width:5px;height:5px;background:#7da572;border-radius:50%}.top-divider{height:12px;width:1px;background:var(--line)}.page{flex:1;min-height:0;overflow:auto}
.ai-page{height:100%;display:flex;flex-direction:column;max-width:1120px;margin:auto;padding:23px 38px 15px}.mode-tabs{display:flex;gap:4px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--line)}.mode-tab{display:flex;align-items:center;gap:7px;font-size:12px;color:#7e8b7e;padding:8px 11px;border-radius:7px}.mode-tab .icon{width:15px;height:15px}.mode-tab.active{background:#e6ede2;color:#4e6d51;font-weight:600}.mode-tab:hover{background:var(--sidebar)}.chat-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth;padding:0 18px}.chat-empty{max-width:680px;margin:6vh auto 25px;text-align:center}.welcome-mark{width:51px;height:53px;display:grid;place-items:center;margin:0 auto 21px;background:#e6ede2;color:#617e5c;border:1px solid #d9e3d4;border-radius:17px;font-family:serif;font-size:25px}.chat-empty .eyebrow{font-size:9px;letter-spacing:2px}.chat-empty h1{margin:12px 0 13px;font-size:29px;color:#3a5140;font-weight:500}.chat-empty p{color:#8b9588;font-size:12px;line-height:1.9}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:32px auto 0;text-align:left}.suggestion{background:#fdfdfb;border:1px solid var(--line);border-radius:11px;padding:17px 18px;text-align:left;transition:transform .15s,border .15s}.suggestion:hover{border-color:#a3b69b;transform:translateY(-2px);box-shadow:var(--shadow)}.suggestion-top{display:flex;align-items:center;justify-content:space-between;color:#6c8664;font-size:11px;margin-bottom:9px}.suggestion-top .icon{width:15px;height:15px}.suggestion h3{font-weight:500;font-size:12px;color:#57694f;line-height:1.8}.suggestion p{font-size:10px;color:#a0a99a;margin-top:5px}.composer-wrap{width:100%;max-width:820px;margin:15px auto 0}.context-row{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#87927e;font-size:10px;margin-bottom:9px}.context-row select{font-size:11px;border:0;background:transparent;max-width:250px;padding:5px 0;box-shadow:none}.composer{border:1px solid #d6dfcf;background:#fff;border-radius:15px;padding:13px 16px 11px;box-shadow:0 4px 24px #4b63430a}.composer:focus-within{border-color:#91a888;box-shadow:0 0 0 3px #56776808}.composer textarea{background:transparent;border:0;padding:2px 0;box-shadow:none;min-height:53px;max-height:170px;resize:none;font-size:13px;line-height:1.8}.composer textarea::placeholder{color:#a2ab9c}.compose-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:4px}.compose-hint{font-size:10px;color:#a2ac9a}.send-button{width:33px;height:33px;border-radius:10px;background:var(--green);color:#fff;display:grid;place-items:center}.send-button:hover{background:var(--deep)}.composer-foot{text-align:center;color:#a3ad9b;font-size:9px;margin:10px 0 0;letter-spacing:.2px}.message{max-width:790px;margin:25px auto;line-height:1.95;font-size:13px;overflow-wrap:anywhere}.message-heading{display:flex;align-items:center;gap:8px;color:#6a8062;font-size:11px;margin-bottom:10px}.message-heading .avatar{width:25px;height:25px;border-radius:8px;font-size:11px}.message.assistant{margin-left:0;margin-right:auto}.message.user{width:fit-content;max-width:min(80%,650px);margin:20px 0 24px auto;padding:13px 18px;border:1px solid #e2e8dc;border-radius:13px 13px 3px 13px;background:#edf2e8;white-space:pre-wrap;text-align:left}.message.user .message-heading{display:none}.message-text p{margin:7px 0}.message-text h3{margin:15px 0 7px;font-size:14px}.message-text ul,.message-text ol{padding-left:22px}.message-text pre{padding:14px;background:#edf1e9;border-radius:8px;white-space:pre-wrap}.message-text code{font:12px/1.7 Consolas,monospace;background:#edf1e9;padding:2px 4px;border-radius:3px}.citation-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.citation{font-size:10px;border:1px solid var(--line);background:#f0f4ec;border-radius:6px;padding:5px 9px;color:#73866b;text-align:left}.trace{font-size:10px;color:#89917e;margin-top:10px}.trace summary{cursor:pointer}.trace p{padding:8px;background:#f3f5ef;border-radius:6px}.typing{color:#91a087;font-size:12px}.typing span{animation:breathe 1.4s infinite;display:inline-block}@keyframes breathe{50%{opacity:.35}}.inline-error{background:#fbefeb;border:1px solid #ecd6d0;color:#9d5c50;border-radius:10px;font-size:12px;padding:14px;margin:15px auto;max-width:790px}.sim-controls{background:var(--sand);border:1px solid #e9e4d8;border-radius:10px;padding:10px 12px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}.sim-controls select{width:auto;font-size:11px;padding:6px}.sim-controls button{font-size:11px}
.content-page{max-width:1100px;margin:auto;padding:36px 38px 60px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.page-heading h1{font-size:25px;margin-bottom:6px}.page-heading p{color:var(--muted);font-size:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:20px;box-shadow:0 3px 15px #45613c03}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.panel-title h2{font-size:16px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stat{padding:20px;border:1px solid var(--line);border-radius:11px;background:#fff}.stat span{display:block;font-size:11px;color:#87917d}.stat strong{display:block;font-size:27px;font-weight:500;color:#516d48;margin-top:6px}.library-toolbar{display:flex;gap:14px;align-items:center;margin-bottom:20px}.library-toolbar input{max-width:400px;font-size:12px}.document-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.document-card{display:flex;gap:15px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.document-icon{width:42px;height:46px;background:#eff2ea;color:#7d946d;display:grid;place-items:center;border-radius:9px;flex-shrink:0}.document-content{min-width:0;flex:1}.document-content h3{font-size:13px;overflow-wrap:anywhere}.document-content p{font-size:11px;color:#909a87;margin-top:6px}.document-actions{display:flex;align-items:center;gap:9px;margin-top:14px}.text-button{font-size:11px;color:var(--green);padding:3px 0}.document-actions .danger{margin-left:auto;color:var(--red)}.empty-panel{text-align:center;padding:55px 25px;color:#89967f;font-size:12px;border:1px dashed #d9e1d2;border-radius:12px}.empty-panel .icon{width:35px;height:35px;margin-bottom:12px}.empty-panel h2{font-size:16px;margin-bottom:7px;color:#65795a}.upload-zone{display:block;border:1px dashed #bacbb1;border-radius:11px;background:#f7faf3;text-align:center;padding:27px;cursor:pointer;color:#7b906e;font-size:12px}.upload-zone strong{display:block;font-size:14px;color:#57734a;margin:8px 0}.upload-zone input{display:none}.upload-zone.drag-over{background:#e8f1e1;border-color:#6b8a5e}.upload-zone p{font-size:10px;color:#9aa58e}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .span2{grid-column:1/-1}.notice{background:var(--sand);border:1px solid #e9e5d7;border-radius:8px;padding:11px 14px;font-size:11px;color:#99886b;margin:14px 0}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px}.settings-layout{display:grid;grid-template-columns:190px 1fr;gap:22px}.settings-menu{display:flex;flex-direction:column;align-self:start;gap:4px}.settings-menu button{text-align:left;padding:12px 16px;border-radius:8px;font-size:12px;color:var(--muted)}.settings-menu .active{background:var(--soft);color:var(--deep)}.settings-content .panel>p{margin:8px 0 20px}.profile-banner{display:flex;align-items:center;gap:15px;margin-bottom:25px;padding-bottom:24px;border-bottom:1px solid var(--line)}.profile-banner .avatar{width:50px;height:50px;font-size:20px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;font-weight:500;color:#839078;padding:10px;background:#f3f5ee;white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid var(--line);color:#65755b}td small{font-size:9px;color:#9ba68d}.badge{display:inline-block;font-size:10px;padding:3px 8px;border-radius:5px;background:#e8efdf;color:#6f885a}.badge.closed{background:#f0eee7;color:#9a917b}.poll-card{padding:23px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.poll-card h2{font-size:16px;margin:13px 0 8px}.poll-meta{display:flex;gap:13px;align-items:center;font-size:10px;color:#96a087}.poll-question{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.poll-question h3{font-size:12px;margin-bottom:13px}.option-label{font-size:12px;background:#f7f8f4;border:1px solid #e8ecdf;border-radius:7px;padding:9px 12px;margin-bottom:8px;display:flex;gap:10px;align-items:center;font-weight:400}.option-label input{margin:0}.poll-question textarea{font-size:12px;min-height:80px}.poll-actions{display:flex;align-items:center;gap:14px;margin-top:20px}.poll-actions .primary,.poll-actions .secondary{font-size:12px}.bar-row{display:grid;grid-template-columns:120px 1fr 45px;gap:10px;align-items:center;font-size:11px;margin:12px 0}.bar-track{height:8px;background:#eff2e8;border-radius:5px;overflow:hidden}.bar{height:100%;background:#91aa80;border-radius:5px;min-width:0}.summary-text{font-size:12px;line-height:1.9;color:#728265;margin-top:18px;white-space:pre-wrap}.question-editor{border:1px solid var(--line);border-radius:10px;padding:18px;margin:15px 0}.question-editor label{font-size:12px;margin-bottom:10px}.question-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-bottom:10px}.question-editor select{font-size:12px}.question-editor textarea{min-height:65px;font-size:12px}.record{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.record .record-info{flex:1;min-width:0;cursor:pointer}.record h3{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record p{font-size:10px;color:#9ba68d;margin-top:4px}.record-tag{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;background:var(--soft);color:#7f966e}.privacy-note{font-size:11px;line-height:1.9;color:#8f9c83}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#344e3e;color:#fff;box-shadow:0 5px 25px #20332123;border-radius:10px;padding:12px 22px;max-width:90vw;font-size:12px;z-index:100}dialog{border:1px solid var(--line);border-radius:16px;max-width:680px;width:calc(100% - 36px);padding:25px;box-shadow:0 30px 100px #263a2526;max-height:85vh}dialog::backdrop{background:#27372850;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-header h2{font-size:18px}.document-preview{white-space:pre-wrap;font-size:12px;line-height:2;max-height:55vh;overflow:auto;color:#64745a}.mobile-only{display:none}body.large-text .message{font-size:16px}body.large-text .message-text h3{font-size:17px}
@media(min-width:1600px){.ai-page{padding-top:32px}.chat-empty{margin-top:9vh}.chat-empty h1{font-size:34px}.suggestion{padding:22px}.suggestions{gap:16px}}@media(max-width:1100px){.app-shell{grid-template-columns:215px 1fr}.sidebar{padding:24px 12px 12px}.course-label{font-size:9px;gap:4px;margin-left:5px;margin-right:5px}.ai-page,.content-page{padding-left:24px;padding-right:24px}.topbar{padding:0 24px}.mode-tab{font-size:11px;padding:7px 8px;gap:5px}.settings-layout{grid-template-columns:145px 1fr}.stat-grid{gap:9px}.stat{padding:15px}.auth-story{padding:35px}.story-copy h1{font-size:39px}}@media(max-width:800px){.app-shell{grid-template-columns:185px 1fr}.sidebar .brand{margin-left:7px}.course-label .tiny-badge{display:none}.sidebar{padding:23px 10px 12px}.nav-item{font-size:12px;padding:10px;gap:9px}.new-chat{padding:11px;font-size:12px}.topbar-right #today,.top-divider{display:none}.document-grid{grid-template-columns:1fr}.settings-layout{display:block}.settings-menu{flex-direction:row;flex-wrap:wrap;margin-bottom:20px}.chat-empty{margin-top:4vh}.chat-empty h1{font-size:25px}.suggestions{margin-top:22px;gap:9px}.suggestion{padding:14px}.suggestion p{display:none}.ai-page{padding:16px 18px}.chat-scroll{padding:0 2px}.stat-grid{grid-template-columns:1fr 1fr}.auth-layout{grid-template-columns:.9fr 1fr}.auth-story{padding:28px}.story-orbit{width:230px;height:190px}.orbit-center{inset:65px 75px}.story-copy h1{font-size:31px}.story-copy p{font-size:12px}.auth-form-wrap{padding:30px 22px}}@media(max-width:600px){.auth-layout{display:block}.auth-story{padding:20px 25px;background:#edf2e9}.story-copy{margin:25px 0 0}.story-copy h1{font-size:28px;margin:9px 0}.story-copy h1 br{display:none}.story-copy p{font-size:11px}.story-orbit,.auth-footer{display:none}.auth-form-wrap{padding:30px 25px 45px}.auth-form{width:100%;max-width:380px}.auth-form h2{font-size:23px}.app-shell{display:block;min-height:0}.sidebar{display:none;position:fixed;inset:0 auto 0 0;width:245px;z-index:30;box-shadow:15px 0 100px #31432e40}.sidebar.open{display:flex}.mobile-only{display:grid}.main{height:100dvh}.topbar{height:59px;min-height:59px;padding:0 15px}.breadcrumb{gap:9px}.topbar-right{gap:0}.status-pill{font-size:9px}.mode-tabs{gap:3px;padding-bottom:12px}.mode-tab{font-size:10px;padding:7px 8px}.mode-tab .icon{display:none}.ai-page{padding:13px 15px 10px}.chat-empty{margin-top:5vh}.welcome-mark{margin-bottom:16px;width:43px;height:45px;font-size:22px}.chat-empty h1{font-size:24px}.chat-empty p{font-size:11px}.suggestions{margin-top:23px;gap:8px}.suggestion{padding:13px 12px}.suggestion h3{font-size:11px}.suggestion-top{font-size:10px;margin-bottom:5px}.composer-wrap{margin-top:10px}.composer{padding:11px 12px}.composer textarea{font-size:12px;min-height:45px}.compose-hint{font-size:9px}.composer-foot{font-size:8px}.context-row{font-size:9px}.context-row select{max-width:190px;font-size:10px}.content-page{padding:25px 18px 40px}.page-heading{align-items:flex-start;margin-bottom:22px}.page-heading h1{font-size:22px}.page-heading .primary{font-size:11px;white-space:nowrap;padding:9px 11px}.page-heading p{font-size:11px}.panel{padding:18px}.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:auto}.document-card{padding:17px}.bar-row{grid-template-columns:85px 1fr 36px}.message{font-size:12px}.settings-menu button{padding:9px 12px;font-size:11px}.poll-card{padding:18px}.record{gap:10px}.stat strong{font-size:23px}}

.reply-source{font-size:10px;color:#6c8264;background:#edf2e8;border-radius:5px;padding:2px 7px;margin-left:5px}.reply-timing{font-size:10px;color:#8a9783;margin-top:10px}.live-generating{font-size:10px;color:#90a181;margin-left:auto}.context-row{flex-wrap:wrap}.context-row #answer-scope{font-weight:600;color:var(--deep);max-width:150px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:#f3f6ee}.message-heading{flex-wrap:wrap}

/* Shared surfaces, themes, and enhanced form controls. */
:root{color-scheme:light;--surface:#fff;--surface-raised:#fff;--field:#fff;--field-border:#dbe2d8;--hover:#eef3e9;--selection:#e6efe1;--selection-ink:#3f654a;--focus:#789a7f;--focus-ring:#789a7f26;--primary-ink:#fff;--popup-shadow:0 12px 36px #243d2b18,0 2px 8px #243d2b08}
:root[data-theme=dark]{color-scheme:dark;--bg:#18201c;--sidebar:#1c2721;--ink:#e1ebe2;--muted:#a2b3a6;--green:#93b99f;--deep:#b1d4bc;--soft:#2b3c31;--line:#38483d;--sand:#332f25;--red:#e3a298;--surface:#212d25;--surface-raised:#29362c;--field:#1c2821;--field-border:#405345;--hover:#2e4034;--selection:#344c3b;--selection-ink:#d0e7d4;--focus:#91b79b;--focus-ring:#91b79b24;--primary-ink:#152b1c;--shadow:0 12px 40px #07150c24;--popup-shadow:0 16px 45px #060e0866,0 2px 8px #060e0826}
body{transition:background-color .18s,color .18s}input,textarea,select{background-color:var(--field);border-color:var(--field-border)}input::placeholder,textarea::placeholder{opacity:1}.theme-toggle{color:var(--muted);border:1px solid var(--line);background:var(--surface);width:31px;height:31px;border-radius:50%}.theme-toggle:hover{color:var(--deep);background:var(--soft)}.theme-toggle .icon{width:16px;height:16px}
:root[data-theme-changing],:root[data-theme-changing] *,:root[data-theme-changing] *::before,:root[data-theme-changing] *::after{transition:none!important}
.appearance-panel{max-width:740px}.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:25px 0 30px}.theme-card{text-align:left;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);transition:border-color .15s,box-shadow .15s}.theme-card:hover{border-color:var(--focus);box-shadow:var(--shadow)}.theme-card.selected{border-color:var(--green);box-shadow:0 0 0 2px var(--focus-ring)}.theme-card-title{display:flex;align-items:center;gap:8px;margin:13px 2px 5px}.theme-card-title .icon{width:16px;height:16px;color:var(--green)}.theme-card-title strong{font-size:13px;font-weight:500}.theme-card-desc{display:block;font-size:11px;color:var(--muted);margin:0 2px 3px}.theme-check{display:grid;place-items:center;width:17px;height:17px;margin-left:auto;border:1px solid var(--line);border-radius:50%;font-size:11px}.selected .theme-check{background:var(--green);color:var(--primary-ink);border-color:var(--green)}.theme-preview{display:flex;width:100%;height:115px;overflow:hidden;border-radius:8px;border:1px solid #dce5d5;background:#fafbf7;pointer-events:none}.preview-sidebar{display:flex;flex-direction:column;gap:8px;align-items:start;width:26%;padding:17px 9px;background:#eaf0e4;border-right:1px solid #dce5d5}.preview-sidebar i{width:15px;height:15px;border-radius:5px;background:#7b9873;margin-bottom:9px}.preview-sidebar b{width:85%;height:4px;background:#c4d1bc;border-radius:3px}.preview-sidebar b:nth-child(3){width:65%}.preview-main{flex:1;position:relative;padding:20px 15px}.preview-main>i{display:block;width:20px;height:20px;border-radius:7px;background:#e1ead9;margin:0 auto 9px}.preview-line{display:block;height:4px;width:65%;background:#cbd7c2;margin:0 auto}.preview-bubble{display:block;width:55%;height:12px;background:#e5ecdc;border-radius:5px;margin:11px 0 0 auto}.preview-composer{position:absolute;left:12px;right:12px;bottom:10px;height:15px;border:1px solid #d8e1d0;background:#fff;border-radius:5px}.preview-dark{background:#18201c;border-color:#3b4d40}.preview-dark .preview-sidebar{background:#213026;border-color:#3b4d40}.preview-dark .preview-sidebar i{background:#9bbba0}.preview-dark .preview-sidebar b{background:#49624d}.preview-dark .preview-main>i{background:#344e3a}.preview-dark .preview-line{background:#5c795f}.preview-dark .preview-bubble{background:#344a39}.preview-dark .preview-composer{background:#25352a;border-color:#4d6652}.reading-font-label{max-width:330px;font-size:12px}
.select-shell{position:relative;display:block;width:100%;min-width:0;line-height:1.6}label>.select-shell{margin-top:7px}.native-select{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:43px;padding:10px 13px;border:1px solid var(--field-border);border-radius:9px;background:var(--field);color:var(--ink);text-align:left;font-size:13px;font-weight:400;line-height:1.6;transition:border-color .15s,box-shadow .15s,background-color .15s}.select-trigger:hover{border-color:var(--focus);background:var(--hover)}.select-trigger:focus-visible,.select-shell.is-open .select-trigger{outline:none;border-color:var(--focus);box-shadow:0 0 0 3px var(--focus-ring)}.select-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-chevron{display:grid;place-items:center;flex-shrink:0;color:var(--muted);transition:transform .18s}.select-chevron svg,.select-check svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.is-open .select-chevron{transform:rotate(180deg);color:var(--deep)}.select-shell.is-disabled{opacity:.5}.select-trigger:disabled{cursor:not-allowed}.select-menu{position:fixed;z-index:80;overflow-y:auto;overscroll-behavior:contain;max-height:288px;padding:6px;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;box-shadow:var(--popup-shadow);scrollbar-width:thin;scrollbar-color:var(--field-border) transparent;animation:select-reveal .12s ease-out;transform-origin:top center}.select-menu[data-direction=up]{transform-origin:bottom center}.select-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;margin:2px 0;border-radius:7px;color:var(--ink);font-size:12px;font-weight:400;line-height:1.65;cursor:pointer;overflow-wrap:anywhere}.select-option>span:first-child{min-width:0;flex:1}.select-option.is-active{background:var(--hover)}.select-option[aria-selected=true]{background:var(--selection);color:var(--selection-ink);font-weight:500}.select-option[aria-selected=true].is-active{box-shadow:inset 0 0 0 1px var(--focus-ring)}.select-option[aria-disabled=true]{opacity:.4;cursor:not-allowed}.select-check{display:flex;align-items:center;min-width:17px;color:var(--green)}.select-group{padding:8px 12px 4px;color:var(--muted);font-size:10px;letter-spacing:.5px}.context-row>.select-shell{width:auto;max-width:280px;flex:0 1 auto}.context-row .select-trigger{min-height:31px;border-color:var(--line);padding:5px 9px;gap:10px;font-size:11px;border-radius:7px;background:var(--surface)}.context-row>.select-shell:has(#answer-scope){max-width:165px}.context-row>.select-shell:has(#answer-scope) .select-trigger{background:var(--soft);color:var(--deep);font-weight:500}.sim-controls>.select-shell{width:auto;max-width:220px;flex:1 1 130px}.sim-controls .select-trigger{min-height:34px;padding:6px 10px;font-size:11px}.question-editor .select-trigger{font-size:12px}@keyframes select-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}

/* The night palette also covers existing content cards, auth, dialogs and status colors. */
[data-theme=dark] .topbar,[data-theme=dark] .auth-form-wrap{background:#1c251f}
[data-theme=dark] :is(.status-pill,.mode-tab){color:var(--muted)}
[data-theme=dark] :is(.panel,.stat,.document-card,.poll-card,.secondary,.suggestion,.composer,dialog){background:var(--surface);border-color:var(--line)}
[data-theme=dark] :is(.primary,.new-chat,.send-button,.brand-mark){color:var(--primary-ink)}
[data-theme=dark] :is(.primary,.new-chat,.send-button):hover{background:#a8c9b1;color:#152b1c}
[data-theme=dark] :is(.auth-story,.orbit-label){background:#25352a;border-color:#40533e}
[data-theme=dark] .story-orbit,[data-theme=dark] .story-orbit:before{border-color:#4c644965}
[data-theme=dark] :is(.story-copy h1,.chat-empty h1,.empty-panel h2,.stat strong,.suggestion h3,.breadcrumb strong,.orbit-center){color:var(--ink)}
[data-theme=dark] :is(.story-copy p,.chat-empty p,.suggestion p,.suggestion-top,.nav-item,.context-row,.message-heading,.trace,.typing,.document-preview,.summary-text,.option-label,td,.document-content p,.record p,.poll-meta,.stat span,.composer-foot,.compose-hint,.privacy-note,.auth-note,.auth-footer,.course-label,.nav-label,.account small,.recent-chat,.history-empty,.reply-timing,.live-generating){color:var(--muted)}
[data-theme=dark] :is(.avatar,.welcome-mark,.document-icon,.record-tag){background:#2f4434;border-color:#49614a;color:#bfd6ba}
[data-theme=dark] :is(.nav-item.active,.settings-menu .active,.mode-tab.active,.recent-chat.active){background:var(--selection);color:var(--selection-ink)}
[data-theme=dark] :is(.nav-item:hover,.recent-chat:hover){background:var(--hover)}
[data-theme=dark] .message.user{background:#2c4031;border-color:#415740;color:var(--ink)}
[data-theme=dark] :is(.message-text pre,.message-text code,.trace p,.citation,.reply-source,.tiny-badge,.badge,.option-label){background:#2d3e31;color:#c2d6bb;border-color:#40513e}
[data-theme=dark] .badge.closed{background:#39392c;color:#d0c6a8}
[data-theme=dark] :is(.notice,.sim-controls){background:var(--sand);color:#cfbc96;border-color:#4b4735}
[data-theme=dark] .upload-zone{background:#24352a;border-color:#587150;color:#b5cbaa}
[data-theme=dark] .upload-zone.drag-over{background:#324c35;border-color:#8fac7e}
[data-theme=dark] .upload-zone strong{color:#c5dfb9}
[data-theme=dark] .upload-zone p{color:#a4b59a}
[data-theme=dark] th{background:#293b2d;color:#bdd0b2}
[data-theme=dark] td,[data-theme=dark] .question-editor,[data-theme=dark] .profile-banner,[data-theme=dark] .poll-question,[data-theme=dark] .record{border-color:var(--line)}
[data-theme=dark] :is(input,textarea)::placeholder{color:#92a28e}
[data-theme=dark] .inline-error{background:#3d2c28;border-color:#64463c;color:#ebbaab}
[data-theme=dark] .danger{color:var(--red)}
[data-theme=dark] .danger:hover{background:#442d29}
[data-theme=dark] .bar-track{background:#334631}
[data-theme=dark] .bar{background:#a4bf8f}
[data-theme=dark] .empty-panel{border-color:#4c6044;color:var(--muted)}
[data-theme=dark] .toast{background:#d0e3ca;color:#1d3322}
[data-theme=dark] dialog::backdrop{background:#060e0a99}
@media(max-width:600px){.theme-grid{gap:10px}.theme-card{padding:9px}.theme-card-title{gap:5px}.theme-card-title strong{font-size:12px}.theme-card-desc{font-size:10px}.theme-preview{height:95px}.preview-sidebar{padding:13px 7px}.preview-main{padding:16px 10px}.context-row{justify-content:flex-start;gap:7px}.context-row>span{width:100%;font-size:9px}.context-row>.select-shell{max-width:calc(100% - 130px)}.context-row>.select-shell:has(#answer-scope){max-width:130px}.context-row .select-trigger{font-size:10px;gap:6px;min-height:32px}.theme-toggle{width:29px;height:29px;margin-right:10px}}
@media(prefers-reduced-motion:reduce){body,.theme-card,.select-trigger,.select-chevron{transition:none}.select-menu{animation:none}}

/* Workspace proportions: reserve the sidebar for history and the page for chat. */
.practice-loading{padding:60px;text-align:center;color:var(--muted)}
.practice-lobby{--practice-description-size:11px;max-width:1280px;margin:auto;padding:22px 28px 18px}
.practice-intro{max-width:960px;margin-bottom:18px}
.practice-intro h1{font-size:23px;margin:5px 0 7px;font-weight:500}
.practice-intro>p{font-size:12px;color:var(--muted);line-height:1.7}
.practice-setup{display:grid;gap:16px}
.practice-section-title{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.practice-section-title>span{font:11px Consolas,monospace;color:var(--green);border:1px solid var(--line);width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:var(--soft)}
.practice-section-title h2{font-size:14px;font-weight:500}
.practice-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.practice-scene{display:flex;flex-direction:column;min-width:0;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;transition:border-color .15s,box-shadow .15s}
.practice-scene:hover,.practice-role:hover{border-color:var(--focus)}
.practice-scene.selected{border-color:var(--green);box-shadow:0 0 0 2px var(--focus-ring)}
.scene-eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--muted)}
.scene-seats{display:flex;align-items:center;gap:6px;position:relative;height:34px;margin:5px 0}
.scene-seats .seat-avatar{position:relative;z-index:1;border:2px solid var(--surface);box-sizing:content-box;width:25px;height:25px;border-radius:8px;font-size:11px}
.scene-connection{position:absolute;left:15px;right:20px;top:17px;height:1px;background:var(--line)}
.practice-scene h3{font-size:14px;font-weight:500;margin-bottom:6px}
.practice-scene>p{color:var(--muted);font-size:var(--practice-description-size);line-height:1.7;margin-bottom:10px}
.scene-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 8px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px;margin-top:auto}
.scene-meta>span{color:var(--deep)}
.practice-role-section{margin-top:0}
.practice-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.practice-role{display:flex;align-items:center;gap:8px;min-width:0;text-align:left;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.practice-role.selected{background:var(--soft);border-color:var(--green)}
.practice-role strong{display:block;font-size:12px;font-weight:500}
.practice-role small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.practice-role>b{margin-left:auto;font-size:12px;color:var(--green)}
.seat-avatar{display:inline-grid;place-items:center;flex-shrink:0;width:35px;height:35px;border-radius:11px;font-size:13px;font-weight:500;font-style:normal;background:var(--soft);color:var(--deep)}
.practice-room{--human-seat-bg:#3e6550;--human-seat-ink:#fff}
[data-theme=dark] .practice-room{--human-seat-bg:#426e55;--human-seat-ink:#f6faf7}
.practice-room .seat-avatar.is-human{background:var(--human-seat-bg);color:var(--human-seat-ink);box-shadow:inset 0 0 0 1px #ffffff24;font-weight:600}
.role-lead{background:#e5eddf;color:#5c7552}.role-it{background:#e0eae7;color:#587870}.role-business{background:#f0e9dc;color:#8a7554}.role-vendor{background:#e9e5dd;color:#7b7060}
[data-theme=dark] .role-lead{background:#35482e;color:#bdd3ae}[data-theme=dark] .role-it{background:#2c443e;color:#afd0c6}[data-theme=dark] .role-business{background:#49402d;color:#d6c299}[data-theme=dark] .role-vendor{background:#403e34;color:#c9c2ad}
.practice-start-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}
.practice-start-row label{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;font-size:12px;font-weight:400}
.practice-start-row label input{margin:0}
.practice-start-row label>span{display:block;flex-basis:100%;margin-left:20px;color:var(--muted);font-size:10px}
.practice-start-row .primary{font-size:12px;white-space:nowrap}
.practice-recent{margin-top:14px}
.practice-recent>summary{cursor:pointer;list-style:none;margin:0;padding:8px 0}
.practice-recent>summary::-webkit-details-marker{display:none}
.practice-recent>summary::after{content:'展开';font-size:11px;color:var(--muted)}
.practice-recent[open]>summary::after{content:'收起'}
.practice-section-title>.practice-recent-count{margin-left:auto;border:0;background:transparent;width:auto;font-size:11px;color:var(--muted)}
.practice-room-list{border:1px solid var(--line);border-radius:12px;background:var(--surface);max-height:112px;overflow:auto;margin-top:6px;overscroll-behavior:contain}
.practice-room-list>button{display:flex;align-items:center;gap:12px;padding:14px 18px;width:100%;text-align:left;border-bottom:1px solid var(--line)}
.practice-room-list>button:last-child{border:0}.practice-room-list>button:hover{background:var(--hover)}
.practice-room-list strong{display:block;font-size:12px;font-weight:500}.practice-room-list small{font-size:10px;color:var(--muted)}
.room-state{margin-left:auto;font-size:10px;white-space:nowrap;color:var(--muted)}
.practice-room{height:100%;min-height:0;display:flex;flex-direction:column;max-width:1440px;margin:auto;padding:20px 28px 16px}
.room-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;flex-shrink:0}
.room-header>.text-button{font-size:10px}.room-title-row{display:flex;align-items:center;gap:12px;margin:5px 0}
.room-title-row h1{font-size:23px;font-weight:500}.room-title-row .badge{font-size:9px}
.room-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.room-controls button{font-size:11px;padding:8px 12px}
.room-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px}
.room-discussion{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.room-feed-header{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:13px 18px;border-bottom:1px solid var(--line)}
.room-feed-header strong{font-size:12px;font-weight:500}.room-feed-header>span:last-child{margin-left:auto;font-size:10px;color:var(--muted)}
.room-live-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}
.room-roster{display:none;flex:0 0 auto;gap:6px;padding:9px 12px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}
.roster-chip{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;color:var(--muted);padding:3px 7px 3px 3px;border-radius:8px;background:var(--bg)}
.roster-chip .seat-avatar{width:22px;height:23px;border-radius:6px;font-size:9px}.roster-chip small{font-size:8px}.roster-chip.is-speaking{background:var(--soft);color:var(--deep)}
@media(max-width:980px){.room-roster{display:flex}}
.room-feed{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 22px 18px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.room-system{white-space:pre-wrap;font-size:11px;color:var(--muted);line-height:1.95;padding:15px 0 18px;border-bottom:1px solid var(--line);margin-bottom:20px}
.room-entry{display:flex;align-items:flex-start;gap:12px;margin:0 0 24px}
.room-entry .seat-avatar{width:33px;height:33px;border-radius:10px}.room-entry-body{flex:1;min-width:0}
.room-entry-heading{display:flex;align-items:center;gap:8px;margin:2px 0 8px}.room-entry-heading strong{font-size:12px;font-weight:500}
.speaker-tag{font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:0 5px}.room-entry-heading time{font-size:9px;color:var(--muted);margin-left:auto}
.room-entry-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.95;max-width:740px}
.room-entry.is-you .room-entry-content{border-left:2px solid var(--green);padding-left:12px;color:var(--deep)}
.room-entry.is-you .speaker-tag{background:var(--soft);color:var(--deep);border-color:var(--line)}
.room-typing{flex:0 0 auto;min-height:29px;padding:3px 20px;font-size:10px;color:var(--muted)}
.room-error{margin:0 16px 10px;padding:10px 12px;font-size:11px;line-height:1.8;border:1px solid var(--line);border-radius:8px;background:var(--sand);color:var(--red);flex-shrink:0}
.practice-room [hidden],.practice-lobby [hidden]{display:none!important}
.room-composer{flex-shrink:0;padding:13px 17px 12px;border-top:1px solid var(--line);background:var(--surface)}
.room-composer>label{font-size:10px;color:var(--muted);font-weight:400;margin-bottom:8px}.room-composer>label strong{color:var(--deep);font-weight:500}
.room-composer textarea{width:100%;min-height:51px;max-height:130px;resize:vertical;border:0;background:transparent;font-size:12px;line-height:1.8;padding:0;box-shadow:none}
.room-composer>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.room-composer>div>span{font-size:9px;color:var(--muted)}
.room-composer>.mention-chips{justify-content:flex-start;flex-wrap:wrap;gap:6px;margin-bottom:7px}.room-composer>.mention-chips>span{font-size:11px}
.room-composer .send-button{width:30px;height:30px;font-size:20px;line-height:1}
.room-side{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.room-side>section{padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:14px}
.room-side h2{font-size:12px;font-weight:500;margin-bottom:14px}.room-participant{display:flex;align-items:center;gap:10px;margin:16px -5px;padding:4px 5px;border-radius:8px}.room-participant:last-child{margin-bottom:0}.room-participant.is-speaking{background:var(--soft)}
.room-participant .seat-avatar{width:30px;height:30px;font-size:11px;border-radius:9px}.room-participant>span:last-child{min-width:0}.room-participant strong{display:flex;align-items:center;gap:7px;font-weight:500;font-size:11px}.room-participant small{font-size:9px;color:var(--muted);font-weight:400}.room-participant p{font-size:9px;line-height:1.6;color:var(--muted);margin-top:3px}
.room-task .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:7px}.room-task h2{margin-bottom:9px}.room-task>p{font-size:11px;color:var(--muted);line-height:1.9}
.room-agenda>p{display:flex;gap:9px;font-size:10px;color:var(--muted);margin:12px 0}.room-agenda>p>span{font:9px Consolas,monospace;color:var(--green);padding-top:3px}.room-side-note{padding:0 7px;font-size:10px}
.room-review{border-top:1px solid var(--line);padding:24px 0 5px;margin-top:12px}.room-review>.eyebrow{font-size:9px}.room-review h2{font-size:20px;margin:7px 0 13px}.room-review>p,.review-content{font-size:12px;line-height:1.95}.review-content h3{font-size:14px;margin:16px 0 6px}.revealed-goals{margin-top:22px;padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:9px;font-size:11px}.revealed-goals summary{cursor:pointer;color:var(--deep)}.revealed-goals p{line-height:1.9;margin-top:12px;color:var(--muted)}
.practice-archive{max-width:900px;margin:auto;padding:30px}.practice-archive h1{font-size:24px;margin:20px 0}.archive-entry{border-bottom:1px solid var(--line);padding:18px 0;font-size:12px;line-height:1.9}.archive-entry small{display:block;color:var(--muted);font-size:10px;margin-bottom:10px}
@media(max-width:1200px){.practice-room{padding:16px 20px 12px}.room-grid{grid-template-columns:minmax(0,1fr) 200px;gap:14px}.room-controls{gap:5px}.room-controls button{font-size:10px;padding:7px 9px}.room-header{gap:12px}.room-title-row h1{font-size:20px}.room-side>section{padding:14px}.room-feed{padding-left:17px;padding-right:17px}}
@media(max-width:980px){.room-grid{grid-template-columns:minmax(0,1fr)}.room-side{display:none}.room-header{align-items:flex-start}.room-header .privacy-note{font-size:10px}.practice-lobby{padding:28px 24px}.practice-intro h1{font-size:25px}.practice-scene{padding:18px}}
@media(max-width:600px){.practice-lobby{padding:24px 17px}.practice-intro h1{font-size:24px}.practice-scenes{grid-template-columns:1fr;gap:12px}.practice-scene{padding:16px}.scene-seats{height:52px;margin:3px 0}.scene-connection{top:26px}.practice-scene h3{font-size:16px}.practice-scene>p{font-size:var(--practice-description-size)}.scene-meta{margin-top:13px;padding-top:11px}.practice-roles{grid-template-columns:1fr 1fr;gap:8px}.practice-role{padding:11px;gap:7px}.practice-role .seat-avatar{width:27px;height:29px;font-size:11px}.practice-role small{font-size:9px}.practice-role strong{font-size:11px}.practice-start-row{align-items:flex-start;gap:14px;flex-direction:column}.practice-start-row .primary{width:100%;justify-content:center}.practice-room{padding:10px 12px 8px}.room-header{padding-bottom:12px;gap:9px;flex-wrap:wrap}.room-title-row{gap:8px}.room-title-row h1{font-size:19px}.room-controls{width:100%}.room-controls button{flex:1;justify-content:center;min-height:33px}.room-feed{padding:5px 12px 14px}.room-feed-header{padding:11px 13px}.room-feed-header>span:last-child{font-size:9px}.room-entry{gap:9px;margin-bottom:21px}.room-entry .seat-avatar{width:28px;height:29px;font-size:11px}.room-entry-content{font-size:12px;line-height:1.9}.room-entry-heading strong{font-size:11px}.room-composer{padding:11px 12px}.room-composer>div>span{font-size:8px}.room-system{font-size:10px}.room-typing{padding-left:14px;font-size:9px}.practice-room-list>button{padding:12px;gap:9px}.room-state{font-size:9px}.practice-archive{padding:20px}}
.wechat-login{text-align:center;padding-top:22px}
.wechat-login [hidden]{display:none!important}
.wechat-qr-frame{width:220px;height:220px;margin:0 auto 16px;border:1px solid var(--line);border-radius:16px;padding:10px;background:var(--surface)}
.wechat-qr-image{width:100%;height:100%;object-fit:contain;border-radius:8px;background:white}
.wechat-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:var(--soft);border-radius:10px;color:var(--muted);font-size:12px}
.wechat-placeholder svg{width:58px;height:58px;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wechat-status{font-size:12px;line-height:1.8;min-height:22px;color:var(--ink)}
.wechat-verification{font-size:11px;color:var(--muted);margin-top:9px}
.wechat-verification strong{font-size:20px;letter-spacing:4px;color:var(--deep);margin-left:8px}
.wechat-countdown{font-size:10px;color:var(--muted);min-height:18px;margin-top:3px}
.wechat-refresh{font-size:11px;padding:7px 12px;margin:12px 0}
.wechat-login .privacy-note{font-size:10px;margin-top:5px}
.legacy-auth{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}
.legacy-auth summary{cursor:pointer;text-align:center;font-size:11px;color:var(--muted)}
.legacy-auth form{padding-top:20px}
.legacy-auth .eyebrow{display:none}
.legacy-auth h2{font-size:20px}
.wechat-binding-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.wechat-binding-row strong{font-size:13px;font-weight:500}
.wechat-binding-row .secondary{white-space:nowrap;font-size:12px}
.account-uid{font:11px Consolas,monospace;overflow-wrap:anywhere;color:var(--deep)}
@media(max-width:600px){.wechat-qr-frame{width:200px;height:200px}.wechat-binding-row{align-items:flex-start;flex-direction:column}}
.app-shell{grid-template-columns:232px minmax(0,1fr);min-height:0}
.sidebar{min-height:0;padding:18px 12px 12px}
.sidebar>*{flex-shrink:0}
.sidebar .brand{gap:9px;margin:0 10px 12px;font-size:20px}
.sidebar .brand-mark{width:32px;height:34px;border-radius:10px 10px 10px 3px;font-size:17px}
.sidebar .brand-en{font-size:7px;letter-spacing:1.2px}
.course-label{gap:5px;margin:0 10px 14px;font-size:9px;min-width:0}
.course-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.course-label .dot,.course-label .tiny-badge{flex-shrink:0}
.course-label .tiny-badge{font-size:8px;margin-left:auto}
.new-chat{min-height:38px;padding:8px 11px;margin-bottom:14px;font-size:12px;gap:9px;line-height:20px}
.nav-label{margin:0 10px 6px;font-size:9px;line-height:16px}
.nav-item{gap:9px;padding:6px 10px;margin:2px 0;font-size:12px;line-height:20px;min-height:32px}
.nav-item .icon{width:16px;height:16px}
.history-header{margin-top:12px;min-height:28px}
.history-header .icon-button{width:26px;height:26px}
.sidebar .recent-chats{flex:1 1 0;min-height:96px;padding:4px 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.recent-chat{padding:6px 10px;font-size:12px;line-height:20px;min-height:32px}
.history-empty{padding:8px 10px}
.sidebar-bottom{padding-top:8px;margin-top:8px}
.sidebar-bottom .nav-item{margin:0}
.account{padding:9px 8px 0;gap:9px}
.account .avatar{width:30px;height:30px;font-size:12px;flex-shrink:0}
.account>span:nth-child(2){min-width:0}
.account strong{max-width:132px;font-size:11px}
.account small{font-size:9px}
.topbar{height:62px;min-height:62px;padding:0 28px}
.main{min-height:0}
.ai-page{width:100%;max-width:1240px;min-height:0;overflow:hidden;padding:16px 32px 12px}
.mode-tabs{flex:0 0 auto;flex-wrap:nowrap;gap:4px;padding-bottom:12px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.mode-tab{flex-shrink:0;padding:7px 10px;white-space:nowrap}
.ai-page>.sim-controls,.ai-page>.notice{flex-shrink:0}
.chat-scroll{padding:12px 0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.ai-page.is-empty .chat-scroll{display:flex;flex-direction:column}
.chat-empty{width:100%;max-width:1040px;margin:auto;padding:16px 0}
.welcome-mark{width:40px;height:42px;margin-bottom:12px;border-radius:13px;font-size:22px}
.chat-empty h1{font-size:clamp(24px,2.3vw,32px);margin:8px 0;line-height:1.4}
.chat-empty>p{max-width:650px;margin:0 auto;font-size:12px;line-height:1.8}
.suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:760px;margin:22px auto 0}
.suggestion{display:flex;flex-direction:column;min-width:0;min-height:102px;padding:14px 16px}
.suggestion-top{margin-bottom:8px;gap:12px}
.suggestion h3{flex:1;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.suggestion p{display:block;font-size:10px;line-height:1.6;margin-top:6px}
.composer-wrap{flex:0 0 auto;max-width:960px;margin:10px auto 0}
.context-row{gap:8px;margin-bottom:7px}
.context-hint{margin-left:auto;text-align:right}
.composer{padding:11px 14px 10px}
.composer textarea{height:54px;min-height:44px;max-height:min(170px,24dvh);font-size:13px}
.composer-foot{margin-top:7px;line-height:1.6}
@media(min-width:1180px){
  .suggestions{grid-template-columns:repeat(var(--suggestion-count,4),minmax(0,1fr));max-width:1040px}
  .suggestion{min-height:120px}
}
@media(min-width:601px) and (max-width:1100px){
  .app-shell{grid-template-columns:216px minmax(0,1fr)}
  .ai-page{padding-left:24px;padding-right:24px}
}
@media(min-width:601px) and (max-width:800px){
  .app-shell{grid-template-columns:200px minmax(0,1fr)}
  .ai-page{padding-left:20px;padding-right:20px}
  .topbar{padding:0 20px}
  .suggestions{gap:10px}
  .suggestion{padding:12px;min-height:98px}
  .context-hint{flex-basis:100%;text-align:left}
}
@media(max-height:760px){
  .chat-empty{padding:8px 0}
  .chat-empty>.eyebrow{display:none}
  .chat-empty .welcome-mark{width:32px;height:34px;font-size:18px;margin-bottom:8px}
  .chat-empty h1{font-size:25px;margin:6px 0}
  .suggestions{margin-top:16px;gap:10px}
  .suggestion{min-height:86px;padding:11px 13px}
  .suggestion-top{margin-bottom:6px}
  .suggestion p{display:none}
}
@media(max-height:640px){
  .sidebar{overflow-y:auto;overscroll-behavior:contain;padding-top:12px}
  .sidebar .brand{margin-bottom:8px}
  .course-label{margin-bottom:10px}
  .new-chat{margin-bottom:9px}
  .history-header{margin-top:8px}
  .sidebar .recent-chats{min-height:72px}
  .chat-empty .welcome-mark{display:none}
  .ai-page{padding-top:10px;padding-bottom:8px}
  .composer textarea{height:44px;min-height:38px}
}
@media(max-width:600px){
  .app-shell{display:block}
  .sidebar{width:245px;max-width:85vw;height:100dvh}
  .topbar{height:56px;min-height:56px;padding:0 15px}
  .ai-page{padding:10px 15px 8px}
  .mode-tabs{gap:3px;padding-bottom:9px}
  .mode-tab{font-size:11px;padding:7px 9px}
  .chat-scroll{padding:10px 0}
  .chat-empty{padding:8px 0}
  .chat-empty>.eyebrow{display:none}
  .chat-empty h1{font-size:24px}
  .chat-empty>p{font-size:11px;line-height:1.7}
  .suggestions{gap:8px;margin-top:16px}
  .suggestion{min-height:92px;padding:11px 12px}
  .suggestion h3{font-size:11px;line-height:1.7}
  .suggestion-top{font-size:10px;margin-bottom:6px}
  .suggestion p{display:none}
  .composer-wrap{margin-top:8px}
  .context-hint{flex-basis:100%;margin-left:0;text-align:left}
  .composer{padding:10px 12px 9px}
  .composer textarea{height:46px;min-height:40px;font-size:12px}
}
/* Per-turn learning options and evidence links, shared by both themes. */
.chat-options{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0}
.chat-option{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:18px;padding:6px 11px;font:inherit;font-size:12px;color:var(--muted);background:var(--surface);cursor:pointer}
.chat-option .icon{width:14px;height:14px}.chat-option[aria-pressed="true"]{color:var(--green);border-color:var(--green);background:var(--soft)}
.chat-option:disabled{opacity:.6;cursor:wait}.chat-option:focus-visible,.source-row:focus-visible,.inline-source:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.option-hint{font-size:11px;color:var(--muted);margin-left:3px}
.answer-sources{margin-top:18px;padding:4px 0 4px 12px;border-left:2px solid var(--line);text-align:start}.sources-label{display:block;width:100%;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:.04em}
.source-list{margin:5px 0 0;padding-left:22px;font-size:12px;line-height:1.8}.source-list li{padding:2px 0;overflow-wrap:anywhere}.source-list li::marker{color:var(--muted)}
.source-row{color:var(--ink);text-decoration:none;text-underline-offset:3px}.source-row:hover{text-decoration:underline;color:var(--green)}.source-kind{font-size:10px;color:var(--muted);white-space:nowrap;margin-left:4px}.inline-source{display:inline-block;font-size:11px;vertical-align:super;color:var(--green);padding:0 3px;text-decoration:none}
.source-notice,.source-summary{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 0}.source-notice{padding:9px 12px;border-left:2px solid var(--line);background:var(--surface);border-radius:0 7px 7px 0}
.source-preview{margin:16px 0}.source-preview+.subtle{margin-bottom:14px}
@media(max-width:600px){.option-hint{width:100%;margin-left:3px}.chat-options{margin:6px 0}.context-row{flex-wrap:wrap}}
.retrieval-label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin:0;flex-shrink:0}
.context-row .retrieval-label>.select-shell{margin:0;width:200px}.retrieval-label select{width:200px}
.legacy-web-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
@media(max-width:600px){.context-row .retrieval-label{width:100%}.context-row .retrieval-label>.select-shell{width:auto;flex:1}}
.account{padding:9px 8px;border-radius:10px;min-height:49px;transition:background-color .15s}
.account:hover,.account[aria-expanded=true],.account.active{background:var(--soft)}
.account>span:nth-child(2){flex:1}.account strong{max-width:100%}.account-more{display:grid;place-items:center;min-width:24px;min-height:28px;font-size:20px;line-height:1}
.account-menu{position:fixed;z-index:95;padding:6px;overflow-y:auto;overscroll-behavior:contain;background:var(--surface-raised);border:1px solid var(--line);border-radius:13px;box-shadow:var(--popup-shadow);color:var(--ink)}
.account-menu[hidden],.sidebar-backdrop[hidden]{display:none!important}
.account-menu-label{padding:8px 11px 7px;color:var(--muted);font-size:10px;letter-spacing:1px}
.account-menu-item{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:39px;padding:9px 11px;font-size:12px;text-align:left;border-radius:7px}
.account-menu-item>span{font-size:10px;color:var(--muted)}.account-menu-item:hover,.account-menu-item:focus-visible{background:var(--hover);outline:none}.account-menu-item:focus-visible{box-shadow:inset 0 0 0 2px var(--focus)}
.account-menu-item.danger{color:var(--red)}.account-menu-divider{height:1px;background:var(--line);margin:5px 6px}
.new-chat-menu{position:fixed;z-index:95;padding:6px;overflow-y:auto;overscroll-behavior:contain;background:var(--surface-raised);border:1px solid var(--line);border-radius:13px;box-shadow:var(--popup-shadow);color:var(--ink)}
.new-chat-menu[hidden]{display:none!important}
.new-chat-choice{display:flex;align-items:center;gap:11px;width:100%;min-height:61px;padding:10px 11px;text-align:left;border-radius:8px}
.new-chat-choice>.icon{flex:none;color:var(--green)}.new-chat-choice>span{min-width:0}.new-chat-choice strong{display:block;font-size:12px;font-weight:600;line-height:1.6}.new-chat-choice small{display:block;margin-top:2px;font-size:11px;line-height:1.6;color:var(--muted)}
.new-chat-choice:hover,.new-chat-choice:focus-visible{background:var(--hover);outline:none}.new-chat-choice:focus-visible{box-shadow:inset 0 0 0 2px var(--focus)}
.new-chat[aria-expanded=true]{background:var(--soft);color:var(--deep)}.new-chat[aria-expanded=true] .shortcut{transform:rotate(180deg)}
.sidebar-backdrop{display:none;position:fixed;inset:0;z-index:29;background:#101c1659;backdrop-filter:blur(2px)}
/* Adapt to the available CSS viewport, including tablet portrait and phone landscape. */
.app-shell{height:100vh;height:100dvh}.main,.page{min-width:0}.page-heading{gap:14px;flex-wrap:wrap}.page-heading>div{min-width:0}.document-content{min-width:0}.document-content h3,.panel h2{overflow-wrap:anywhere}
@media(max-width:900px){
  .app-shell{display:block}
  .sidebar{display:none;position:fixed;inset:0 auto 0 0;z-index:30;width:264px;max-width:85vw;height:100vh;height:100dvh;overflow-y:auto;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));box-shadow:15px 0 80px #17291b40}
  .sidebar.open{display:flex}.sidebar-backdrop:not([hidden]){display:block}
  .mobile-only{display:grid}.main{height:100vh;height:100dvh;width:100%}
  .topbar{padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right));padding-top:env(safe-area-inset-top);height:calc(56px + env(safe-area-inset-top));min-height:calc(56px + env(safe-area-inset-top))}
  .topbar-right #today,.top-divider{display:none}.topbar-right{gap:7px}.breadcrumb{min-width:0;gap:9px}.breadcrumb strong{white-space:nowrap}.theme-toggle{margin-right:0}
  .ai-page{padding-bottom:max(8px,env(safe-area-inset-bottom))}.context-row>.select-shell{max-width:100%;flex:1 1 180px}
  .context-hint{flex-basis:100%;margin-left:0;text-align:left}
}
@media(max-width:600px){
  .context-row>.select-shell{width:100%;max-width:100%}.context-row>span.context-hint{font-size:10px}
  .composer textarea,input,textarea,select{font-size:16px}.composer textarea{line-height:1.6}
  .account-menu-item{min-height:44px}.room-composer textarea{font-size:16px}
}
@media(max-width:380px){
  .topbar .status-pill{display:none}.ai-page{padding-left:11px;padding-right:11px}.suggestions{grid-template-columns:1fr}
  .chat-empty h1{font-size:22px}.practice-roles{grid-template-columns:1fr}.form-actions{flex-wrap:wrap}.composer-foot{letter-spacing:0}
}
@media(max-height:520px){
  .ai-page{display:block;overflow-y:auto;height:100%;padding-top:8px}.ai-page .chat-scroll,.ai-page.is-empty .chat-scroll{display:block;overflow:visible;min-height:80px;padding-top:7px;padding-bottom:7px}
  .ai-page .chat-empty{padding-top:6px}.ai-page .composer-wrap{margin-top:8px}.ai-page .suggestions{margin-top:12px}
  .practice-room{height:auto;min-height:100%;overflow:visible}.practice-room .room-grid{display:block}.practice-room .room-discussion{min-height:300px}.practice-room .room-feed{max-height:55dvh;min-height:110px;overflow-y:auto}
}
@media(pointer:coarse){.icon-button{min-width:40px;min-height:40px}.account-menu-item{min-height:44px}.sidebar .nav-item,.recent-chat{min-height:38px}}
@media(prefers-reduced-motion:reduce){.account{transition:none}}
/* Per-answer continuation and a compact composer outbox. */
.chat-option[role=switch]{gap:10px;color:var(--ink)}.thinking-track{display:inline-flex;align-items:center;width:31px;height:18px;padding:2px;border-radius:20px;background:var(--field-border);transition:background-color .15s}
.thinking-track>span{width:14px;height:14px;background:var(--surface-raised);border-radius:50%;box-shadow:0 1px 3px #101c1626;transition:transform .15s}
.chat-option[role=switch][aria-checked=true]{color:var(--deep);border-color:var(--green);background:var(--soft)}
.chat-option[aria-checked=true] .thinking-track{background:var(--green)}.chat-option[aria-checked=true] .thinking-track>span{transform:translateX(13px);background:var(--primary-ink)}
.followup-section{margin-top:16px;max-width:700px;padding:10px 14px;border-left:2px solid var(--green);border-radius:0 7px 7px 0;background:var(--soft);text-align:start}.followup-heading{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-bottom:5px}
.followup-list{margin:0;padding-left:1.5em}.followup-list li{padding-left:2px}.followup-list li::marker{color:var(--muted)}
.followup-question{display:block;width:fit-content;max-width:100%;padding:3px 0;border:0;border-radius:0;text-align:left;background:transparent;font-size:12px;line-height:1.7;color:var(--deep);overflow-wrap:anywhere}
.followup-question:hover{color:var(--deep);text-decoration:underline;text-underline-offset:3px}.followup-question:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:3px}
.outbox-panel{border:1px solid var(--line);border-radius:11px;background:var(--surface);margin-bottom:8px;padding:8px 11px;font-size:11px;max-height:180px;overflow-y:auto;overscroll-behavior:contain}
.outbox-panel[hidden]{display:none!important}.outbox-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted)}.outbox-heading>div{display:flex;gap:10px}.outbox-panel button{font-size:10px;color:var(--deep);padding:3px}
.outbox-panel ol{margin:5px 0 0;padding-left:18px}.outbox-panel li{padding:5px 0;border-top:1px solid var(--line)}.outbox-panel li>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.outbox-panel li>small{color:var(--muted);font-size:9px}.outbox-panel li>div{display:inline-flex;float:right;gap:8px}.outbox-error{color:var(--red);font-size:11px;line-height:1.7;margin-top:6px}
.outbox-panel li>.outbox-item-footer{display:flex;float:none;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px}.outbox-item-footer>small{flex:1 1 100px;color:var(--muted);font-size:9px}.outbox-item-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}.outbox-panel .outbox-move{width:28px;min-height:28px;border:1px solid var(--line);border-radius:5px;font-size:13px;line-height:1;padding:3px}.outbox-panel .outbox-move:disabled{opacity:.35;cursor:default}
@media(max-width:600px){.message.user{max-width:88%;padding:11px 14px}.followup-question{min-height:32px}.outbox-panel{max-height:150px}.outbox-panel button{min-height:28px}.chat-option[role=switch]{min-height:34px}}
@media(max-height:640px){.outbox-panel{max-height:110px}}
@media(prefers-reduced-motion:reduce){.thinking-track,.thinking-track>span{transition:none}}
.room-chair p,.room-chair h3{overflow-wrap:anywhere}.room-chair h3{margin-top:14px}.room-chair [hidden]{display:none!important}.room-proposal-document{margin:16px 0;padding:13px 16px;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:10px;background:var(--soft);overflow-wrap:anywhere}.room-proposal-document>span{margin-left:10px;font-size:11px;color:var(--muted)}.room-proposal-document>p{margin-top:7px;white-space:pre-wrap;font-size:14px}.room-composer .send-button{width:auto;min-width:44px;padding:0 12px;white-space:nowrap}
.room-flow-guide{flex:0 0 auto;padding:9px 14px;border-top:1px solid var(--line);background:var(--soft);font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.room-flow-guide>p{margin:0}
.room-controls{position:relative}.room-control-wrap{display:inline-flex}.room-control-wrap>button{width:100%}.room-control-wrap:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:8px}
.room-control-tooltip{position:absolute;z-index:80;width:260px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised);color:var(--ink);box-shadow:var(--popup-shadow);font-size:11px;line-height:1.8;font-weight:400;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
@media(max-width:600px){.room-control-wrap{flex:1;min-width:0}}
.room-progress-details>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;list-style:none}.room-progress-details>summary::-webkit-details-marker{display:none}.room-progress-details>summary>span{margin-left:auto;font-size:10px;color:var(--muted)}.room-progress-details>summary::after{content:'展开';font-size:10px;color:var(--muted)}.room-progress-details[open]>summary::after{content:'收起'}.room-progress-details[open]>summary{margin-bottom:10px}
.room-flow-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:0}.room-flow-actions:has(>button:not([hidden])){margin-top:7px}.room-flow-actions>button{font-size:11px;padding:6px 10px;min-height:32px}.room-flow-actions [hidden]{display:none!important}
@media(max-width:600px){.room-flow-guide{padding:8px 12px}.room-flow-guide>p{max-height:88px;overflow:auto}.room-composer textarea{min-height:44px;height:52px;max-height:110px}}
@media(max-width:600px) and (max-height:700px){.practice-room{height:auto;min-height:100%;overflow:visible}.has-director .room-grid{display:flex;flex-direction:column}.practice-room .room-discussion{min-height:360px}.practice-room .room-feed{flex:none;min-height:140px;max-height:45dvh;overflow:auto}}
.room-composer button#room-send{font-size:13px;height:36px;line-height:1.4}
.room-composer>.room-composer-footer{flex-wrap:wrap;row-gap:7px}.room-composer-footer>span{flex:1 1 130px;min-width:0}
.room-send-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0;max-width:100%}
.room-send-actions>#room-skip{height:36px;padding:0 11px;font-size:11px;line-height:1.4;white-space:nowrap}
.room-pending-queue{display:flex;flex:0 0 auto;align-items:center;gap:9px;padding:7px 14px;border-top:1px solid var(--line);background:var(--surface);font-size:11px;min-width:0}
.room-pending-label{flex:0 0 auto;color:var(--muted)}.room-pending-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.room-pending-queue>button{flex:0 0 auto;font-size:11px;min-height:30px;padding:4px 7px;white-space:nowrap;color:var(--deep)}
@media(pointer:coarse){.room-pending-queue>button{min-height:38px}}
.admin-query-toolbar{column-gap:16px;align-items:flex-start}
.admin-query-fields{display:flex;flex:0 1 auto;flex-wrap:wrap;gap:12px;min-width:0;max-width:100%}
.admin-query-fields>label{flex:0 1 auto;min-width:0;max-width:100%;gap:8px}
.admin-query-label{flex:0 0 auto;white-space:nowrap}
.admin-query-toolbar .select-shell{flex:0 1 auto;min-width:0;width:max-content;max-width:100%;margin:0}
.admin-query-toolbar .select-trigger{gap:10px;padding-inline:10px}
.admin-query-toolbar select{flex:0 1 auto;min-width:0;width:auto;margin:0}
.admin-table-actions{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}
.admin-table-actions>button{font-size:12px;line-height:1.5;padding:10px 12px;min-height:43px;white-space:nowrap}
.admin-column-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-column-heading .admin-sort{min-width:0}
.admin-filter-trigger{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:26px;padding:0;border:1px solid transparent;border-radius:5px;color:var(--muted);font-size:13px;line-height:1}
.admin-filter-trigger:hover,.admin-filter-trigger:focus-visible,.admin-filter-trigger[aria-expanded=true]{border-color:var(--line);background:var(--hover);color:var(--deep)}.admin-filter-trigger.is-filtered{background:var(--soft);color:var(--deep);border-color:var(--focus)}
.admin-floating-filter{position:fixed;z-index:85;padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);box-shadow:var(--popup-shadow);overflow:auto;overscroll-behavior:contain;color:var(--ink)}.admin-floating-filter[hidden]{display:none!important}
.admin-filter-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.admin-filter-title strong{font-size:12px;font-weight:600}.admin-filter-title .icon-button{width:28px;height:28px;flex:0 0 28px}
.admin-filter-options{max-height:220px;overflow:auto;overscroll-behavior:contain}.admin-filter-options>label{display:flex;align-items:center;gap:9px;padding:6px 7px;margin:0;border-radius:6px;min-height:32px;font-size:12px;font-weight:400;cursor:pointer}.admin-filter-options>label:hover{background:var(--hover)}
.admin-filter-options input{width:15px;height:15px;min-height:0;flex:0 0 15px;margin:0;padding:0;accent-color:var(--green)}.admin-filter-options label>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-filter-choice-tools{display:flex;gap:12px;padding:6px 0}.admin-filter-choice-tools button{font-size:11px;padding:5px 7px;color:var(--deep)}
.admin-filter-inputs label{font-size:12px;margin-bottom:10px}.admin-filter-inputs input{font-size:12px;margin-top:5px;min-width:0}
.admin-filter-footer{display:flex;gap:8px;justify-content:flex-end;padding-top:10px;margin-top:3px;border-top:1px solid var(--line)}.admin-filter-footer>button{font-size:11px;min-height:34px;padding:7px 10px;white-space:nowrap}
@media(max-width:980px){.has-director .room-grid{grid-template-rows:auto minmax(0,1fr);gap:10px}.has-director .room-side{display:block;order:-1;max-height:35vh}.has-director .room-side>section:not(.room-chair),.has-director .room-side-note{display:none}.has-director .room-chair{margin-bottom:0;padding:12px}.has-director .room-chair h2{margin-bottom:6px}.has-director .room-chair .eyebrow{display:none}}

/* Keep dialog controls and notices outside the scrolling form content. */
#modal{max-height:85vh;max-height:85dvh;overflow:hidden}
#modal[open]{display:flex;flex-direction:column}
#modal .dialog-header{flex:0 0 auto;gap:12px}
#modal .dialog-header h2{min-width:0;overflow-wrap:anywhere}
#modal-close{flex:0 0 auto;min-width:40px;min-height:40px}
#modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:8px}
/* One shared type scale for dialog chrome, sections and form fields. */
#modal{--dialog-title-size:18px;--dialog-section-size:14px;--dialog-subheading-size:13px;--dialog-field-size:12px;--dialog-help-size:11px}
#modal .dialog-header #modal-title{font-size:var(--dialog-title-size);font-weight:600;line-height:1.5;color:var(--deep);letter-spacing:0}
#modal-body{font-size:var(--dialog-field-size);line-height:1.7}
#modal-body h2{font-size:var(--dialog-section-size);font-weight:600;line-height:1.6;color:var(--deep);letter-spacing:0}
#modal-body h3{font-size:var(--dialog-subheading-size);font-weight:600;line-height:1.6;color:var(--ink);letter-spacing:0}
#modal-body :is(label,legend){font-size:var(--dialog-field-size);font-weight:500;line-height:1.7;color:var(--ink)}
#modal-body :is(.ug-check,.option-label,.kb-bulk-choice){font-size:var(--dialog-field-size);font-weight:400}
#modal-body :is(input,textarea,select,.select-trigger){font-size:var(--dialog-field-size);font-weight:400;line-height:1.7}
#modal-body :is(input,textarea)::placeholder{font-size:var(--dialog-help-size);font-weight:400;color:var(--muted);opacity:1}
#modal-body :is(.subtle,.privacy-note,.notice,.kb-audience-note,.poll-dialog-meta,.citation-caption){font-size:var(--dialog-help-size);font-weight:400;line-height:1.8}
#modal-body :is(.kb-setting-target,.question-head,.poll-submission-title),#modal-body .kb-extra-fields>summary{font-size:var(--dialog-section-size);font-weight:600;line-height:1.6;color:var(--ink)}
#modal-body :is(.form-error,.inline-error){font-size:var(--dialog-field-size);line-height:1.7}
#modal .select-option{font-size:var(--dialog-field-size);font-weight:400;line-height:1.7}
#modal .select-group{font-size:var(--dialog-help-size);font-weight:500;line-height:1.7}
@media(max-width:600px){#modal-body :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){font-size:16px}}
.modal-notice{flex:0 0 auto;background:#344e3e;color:#fff;border:1px solid #6f8e7a;border-radius:10px;padding:12px 16px;margin-bottom:16px;box-shadow:0 5px 25px #20332123;font-size:12px;line-height:1.7;overflow-wrap:anywhere;max-height:min(140px,20dvh);overflow:auto;overscroll-behavior:contain}
[aria-invalid="true"]{border-color:var(--red)!important}
/* The composer shares the conversation's column and one compact footer. */
.mention-trigger{border:0;border-radius:7px;background:var(--soft);color:var(--deep);font-size:11px;padding:5px 8px;white-space:nowrap}
.mention-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px;max-height:80px;overflow:auto;align-items:center}.mention-chips[hidden]{display:none}
.mention-chip{display:inline-flex;align-items:center;gap:5px;max-width:min(300px,100%);border-radius:6px;background:var(--soft);color:var(--deep);font-size:11px;padding:3px 6px}.mention-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.mention-chip button{border:0;background:transparent;color:var(--muted);padding:2px 4px;flex-shrink:0}.mention-chips>small{color:var(--muted);font-size:10px}
.mention-popup{position:fixed;z-index:90;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);color:var(--ink);box-shadow:var(--popup-shadow);font-size:12px}.mention-popup[hidden]{display:none!important}
.mention-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 5px}.mention-head strong{font-size:12px;font-weight:600}.mention-popup button{color:inherit;background:transparent;border:0}.mention-head button{padding:3px 6px}.mention-search{padding:4px 12px}.mention-search input{width:100%;padding:6px 9px;min-height:30px;font-size:12px;background:var(--surface)}.mention-path{padding:3px 12px 7px;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.mention-path button{font-size:10px;padding:0}
.mention-results{overflow:auto;overscroll-behavior:contain;min-height:38px;padding:0 6px;flex:1 1 auto}.mention-item{display:flex;align-items:stretch;border-radius:7px;min-width:0}.mention-item>[data-pick-mention]{flex:1;min-width:0;text-align:left;padding:7px 8px;border-radius:6px;line-height:1.5;display:flex;flex-direction:column}.mention-item span,.mention-item small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mention-item small{font-size:10px;color:var(--muted)}.mention-item>[data-browse-mention]{padding:5px 12px;font-size:20px}.mention-item button:hover,.mention-item button.active{background:var(--soft);color:var(--deep)}.mention-item button:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.mention-foot{padding:7px 12px;margin:0;color:var(--muted);font-size:10px;line-height:1.6}.mention-results>p{padding:10px;font-size:11px;color:var(--muted)}.message-materials{font-size:10px;color:var(--muted);line-height:1.6;margin-bottom:5px}
@media(max-width:600px){.mention-trigger{min-height:34px}.mention-search input{font-size:16px}.mention-foot{font-size:9px}.mention-item>[data-pick-mention]{padding-block:9px}}
.ai-page .composer-wrap{max-width:none}
.composer .compose-bottom{flex-wrap:wrap;gap:6px 12px;margin-top:8px}
.compose-bottom .chat-options,.compose-bottom .context-row{display:contents}
.compose-bottom .chat-option{font-size:11px;padding:4px 8px;min-height:28px;white-space:nowrap}
.compose-bottom .option-hint,.compose-bottom .knowledge-auto-scope,.compose-bottom .context-hint{font-size:10px;color:var(--muted);margin:0;width:auto;flex-basis:auto;text-align:left;line-height:1.6}
.compose-bottom .compose-hint{margin-left:auto;white-space:nowrap}
.compose-bottom .send-button{flex:0 0 33px}
@media(max-width:600px){
  .composer .compose-bottom{gap:6px 8px}
  .compose-bottom .chat-option{order:0;min-height:34px;gap:5px;padding:4px 6px}
  .compose-bottom .send-button{order:1;margin-left:auto}
  .compose-bottom .option-hint,.compose-bottom .knowledge-auto-scope,.compose-bottom .context-hint{order:2}
  .compose-bottom .compose-hint{order:3;flex-basis:100%;margin-left:0}
}

/* Keep scene selection and seats visible on ordinary laptop viewports. */
@media(min-width:1100px){.practice-scenes{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:601px) and (max-height:800px){
  .practice-lobby{padding:14px 24px 12px}
  .practice-intro{margin-bottom:12px}.practice-intro h1{font-size:21px}
  .practice-setup{gap:12px}.practice-section-title{margin-bottom:8px}
  .practice-scene{padding:12px}.scene-seats{display:none}.scene-eyebrow{margin-bottom:6px}
  .practice-role{padding:8px}.practice-role .seat-avatar{width:28px;height:28px;font-size:11px}
  .practice-recent{margin-top:8px}
}
@media(max-width:600px){
  .practice-lobby{padding:18px 15px}.practice-intro{margin-bottom:16px}
  .practice-intro h1{font-size:22px}.practice-scenes{gap:10px}
  .practice-scene{padding:12px}.scene-seats{height:32px;margin:4px 0}.scene-connection{top:16px}
  .practice-scene h3{font-size:14px}.scene-meta{margin-top:auto;padding-top:8px}
  .practice-start-row{gap:12px}.practice-recent{margin-top:12px}
}

/* One page frame and title scale across learning, practice and teaching pages. */
:root{--page-max-width:1360px;--page-gutter:32px;--page-title-size:26px;--page-title-weight:600;--page-title-color:var(--deep)}
.page{scrollbar-gutter:stable}
body :is(.ai-page,.content-page,.practice-lobby,.practice-room,.practice-archive){box-sizing:border-box;width:100%;max-width:var(--page-max-width);margin-inline:auto;padding-inline:var(--page-gutter)}
:root body :is(.page-heading h1,.chat-empty h1,.practice-intro h1,.room-title-row h1,.practice-archive>h1){font-family:inherit;font-size:var(--page-title-size);font-weight:var(--page-title-weight);line-height:1.4;letter-spacing:0;color:var(--page-title-color);overflow-wrap:anywhere}
.ai-page .chat-empty,.ai-page .suggestions{max-width:none}
@media(max-width:1100px){:root{--page-gutter:24px}}
@media(max-width:760px){:root{--page-gutter:18px;--page-title-size:22px}}
@media(max-width:400px){:root{--page-gutter:14px}.composer .compose-bottom{column-gap:5px}.compose-bottom .chat-option{padding-inline:5px}}
