:root {
  color-scheme: light;
  --bg:#fff; --paper:#fff; --side:#f9f9f9; --ink:#202123;
  --muted:#6b6b6b; --line:#e8e8e8; --green:#202123; --light:#f4f4f4;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
  font-size:14px; color:var(--ink); font-synthesis:none; text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg)}
button,input,textarea{font:inherit}
button,a{color:inherit}
button{cursor:pointer;border:0;background:none}
button:disabled{opacity:.45;cursor:not-allowed}
a{text-decoration:none}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #6c8d80;outline-offset:3px}
svg{width:20px;height:20px;vertical-align:middle;flex:none}
#app{display:flex;height:100dvh;min-height:480px;overflow:hidden}
.sidebar{width:260px;flex:none;background:var(--side);padding:22px 12px 12px;display:flex;flex-direction:column}
.brand{display:flex;gap:9px;align-items:center;padding:0 12px 26px;font-size:19px;font-weight:600;letter-spacing:0}
.brand-icon{display:grid;place-items:center;color:#2b6956;width:30px;height:34px}
.brand-icon svg{width:32px;height:32px}
.new-chat{display:flex;align-items:center;gap:12px;padding:11px 12px;text-align:left;border-radius:9px;font-weight:500;font-size:14px}
.new-chat:hover,.nav-item:hover,.history-item:hover,.account-button:hover{background:#ededed}
.main-nav{display:grid;gap:3px;margin:6px 0 30px}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 12px;text-align:left;border-radius:9px;font-size:14px}
.nav-item.active{background:#eaeaea;font-weight:500}
.history-heading{display:flex;justify-content:space-between;align-items:center;padding:0 12px;color:#777;font-size:12px}
.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:9px;color:#666;flex:none}
.icon-button:hover{background:#ededed;color:#222}
.icon-button svg{width:19px;height:19px}
.history{flex:1;min-height:40px;overflow:auto;padding-top:5px}
.sidebar-empty{padding:8px 12px;font-size:13px;color:#777;line-height:1.8}
.history-item{display:flex;align-items:center;gap:2px;border-radius:9px;margin:2px 0}
.history-item>button:first-child{flex:1;min-width:0;padding:11px 12px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}
.history-item.selected{background:#eaeaea}
.history-item .more{opacity:0;width:30px;height:36px;font-size:20px}
.history-item:hover .more,.history-item:focus-within .more{opacity:1}
.sidebar-bottom{padding-top:12px}
.points-mini{display:flex;justify-content:space-between;gap:8px;padding:0 12px 10px;color:#666;font-size:12px}
.points-mini[hidden]{display:none}
.points-mini>span{white-space:nowrap}
.points-mini b{margin-left:3px;color:#333;font-weight:600;font-variant-numeric:tabular-nums}
.capacity-mini{width:100%;padding:12px;text-align:left;border-top:1px solid var(--line)}
.capacity-mini>span{display:flex;align-items:center;gap:8px;font-size:12px}
.capacity-mini svg{width:16px;height:16px}
.capacity-mini b{margin-left:auto;font-size:12px;font-weight:400;color:#666}
.capacity-mini progress{display:block;width:100%;height:3px;margin:10px 0 8px;accent-color:#738479}
.capacity-mini small{font-size:12px;color:#777}
.account-button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 11px;margin-top:4px;border-radius:10px;text-align:left}
.avatar{width:34px;height:34px;border-radius:50%;background:#e6eee9;color:#315f4d;display:grid;place-items:center;flex:none}
.account-button b{display:block;font-size:14px;font-weight:500}
.account-button small{display:block;font-size:12px;color:#777;margin-top:3px}
.account-button>svg{margin-left:auto;width:16px}
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-person{width:100%;height:100%;display:grid;place-items:center;background:#e6eee9;color:#315f4d}
.avatar-person svg{width:20px;height:20px}
.avatar.large{width:64px;height:64px}
.avatar.large svg{width:32px;height:32px}
.context-menu{position:fixed;z-index:30;width:196px;padding:5px;background:#fff;border:1px solid #e8e8e8;border-radius:13px;box-shadow:0 8px 28px #0000001f}
.context-menu>button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:8px;text-align:left;font-size:14px}
.context-menu>button:hover,.context-menu>button:focus-visible{background:#f4f4f4;outline:none}
.context-menu>button svg{width:18px;height:18px}
.context-menu .danger{color:#bf3030}
.context-menu.thread-menu{width:136px;padding:4px;border-radius:9px;box-shadow:0 3px 10px #00000012}
.context-menu.thread-menu>button{min-height:32px;padding:6px 8px;gap:7px;border-radius:6px;font-size:13px}
.context-menu.thread-menu>button svg{width:15px;height:15px}
.history-item .more[aria-expanded=true]{opacity:1;background:#e8e8e8;border-radius:6px}
.context-menu.account-menu{width:244px}
.account-menu-heading{display:flex;align-items:center;gap:10px;padding:10px 12px 13px;overflow-wrap:anywhere}
.account-menu-heading b{font-weight:600;font-size:14px}
.account-menu-heading small{display:block;color:#777;margin-top:4px;font-size:12px}
.menu-separator{height:1px;background:#ededed;margin:5px 7px}
.profile-summary{display:flex;align-items:center;gap:16px;padding:18px 0}
.profile-summary b{font-size:20px}
.profile-summary p{margin:4px 0}
.membership-current{font-size:13px;color:#555;padding:12px 0 20px;display:flex;gap:12px;flex-wrap:wrap}
.membership-current span{margin-left:auto}
.membership-plans{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.membership-plan{border:1px solid #dedede;border-radius:16px;padding:20px}
.membership-plan.is-current{border-color:#4d7b69;background:#f9fcfa}
.membership-plan-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.membership-plan-title h3{font-size:17px;margin:0}
.membership-plan-title>span{font-size:11px;color:#48745f;white-space:nowrap}
.modal-body .membership-price{font-size:29px;color:#222;font-weight:600;margin:18px 0}
.membership-price small{font-size:14px;font-weight:400;color:#777;margin-left:5px}
.membership-plan ul{padding-left:18px;font-size:13px;color:#555;line-height:2.1;margin:16px 0 22px}
.membership-plan button{width:100%;font-size:13px}
.modal-body .membership-footnote{font-size:12px;color:#777;margin:20px 0}
dialog:has(#membership-body){width:min(680px,calc(100vw - 32px))}
.brand-icon img{display:block;width:30px;height:30px;object-fit:contain}
@media(max-width:520px){.membership-plans{grid-template-columns:1fr}.membership-plan{padding:18px}.membership-current span{margin-left:0}.context-menu.account-menu{max-width:calc(100vw - 24px)}}
.workspace{min-width:0;flex:1;display:flex;flex-direction:column}
.topbar{height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:#fff}
.invite-button{flex:none;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #dbe8e0;border-radius:8px;background:#eef5f0;color:#285a42;font-size:13px}
.invite-button:hover{background:#e3eee7}
.invite-button svg{width:16px;height:16px}
.invite-panel input{width:100%}
.invite-panel button{margin-top:12px}
.breadcrumbs{display:flex;align-items:center;gap:12px;min-width:0;font-size:14px;color:#777}
.workspace-name{color:#333;font-size:19px;font-weight:600;white-space:nowrap}
.header-divider{color:#d2d2d2}
#page-title{max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions{display:flex;align-items:center;gap:8px;flex:none}
.local-badge{display:flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;font-size:12px;color:#777;background:#f5f5f5}
.local-badge i{width:5px;height:5px;border-radius:50%;background:#7f9c89}
.mobile-menu{display:none}
.screen{flex:1;min-height:0}
.chat-layout{display:flex;height:100%;position:relative}
.chat-column{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}
.chat-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth}
.welcome{max-width:800px;margin:0 auto;padding:0 24px 30px;text-align:center}
.welcome h1{margin:0;font-size:30px;font-weight:500;letter-spacing:-.5px;line-height:1.5}
.chat-column:has(.welcome:not([hidden])){justify-content:center;padding-bottom:clamp(40px,12vh,140px)}
.chat-column:has(.welcome:not([hidden])) .chat-scroll{flex:0 1 auto;overflow:auto}
.chat-column:has(.welcome:not([hidden])) .composer-area{margin:0 auto;background:none;padding-bottom:0}
.composer-area{width:100%;max-width:816px;margin:0 auto;padding:12px 24px 12px;flex:none;background:#fff}
.composer{border:1px solid #e3e3e3;border-radius:25px;background:#f4f4f4;padding:18px 15px 12px;box-shadow:0 2px 8px #00000003}
.composer:focus-within{border-color:#c9c9c9}
.composer textarea{width:100%;display:block;resize:none;border:0;outline:none!important;background:transparent;padding:0 5px;min-height:49px;max-height:180px;font-size:16px;line-height:1.65;color:#222}
.composer textarea::placeholder{color:#777}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px}
.composer-bottom>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mode-switch{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:6px 9px;font-size:13px;color:#666;min-height:32px}
.mode-switch:hover{background:#e9e9e9;color:#222}
.mode-switch.classroom{background:#e4ede7;color:#285a42}
.mode-switch>svg{width:13px;height:13px;transform:rotate(90deg)}
.mode-check{margin-left:auto;color:#38634d}
.mode-check svg{width:16px;height:16px}
.composer .icon-button{color:#444}
.model-label{display:flex;align-items:center;gap:7px;font-size:13px;color:#555}
.model-label>svg{display:none}
.model-mode{font-size:12px;color:#777;padding:3px 7px;background:#e9e9e9;border-radius:5px}
.send-button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#222;color:#fff;flex:none}
.send-button:hover{background:#444}
.send-button svg{width:22px;height:22px;stroke-width:1.8}
.composer-note{font-size:12px;line-height:1.6;color:#777;text-align:center;margin:13px 0 0}
.starter-grid{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:22px 0 0}
.starter-grid>button{display:flex;align-items:center;gap:8px;border:1px solid #e6e6e6;border-radius:22px;padding:10px 15px;background:#fff;transition:background .15s}
.starter-grid>button:hover{background:#f5f5f5;border-color:#d1d1d1}
.starter-grid b{font-size:14px;font-weight:400;color:#555}
.starter-grid small,.starter-arrow{display:none}
.starter-icon{display:inline-grid;place-items:center;flex:none;width:35px;height:35px;border-radius:9px}
.starter-grid .starter-icon{height:18px;width:18px;border-radius:0;background:none}
.starter-grid svg{width:18px;height:18px}
.sage{color:#56816b;background:#edf4ef}.amber{color:#bd9344;background:#faf5e9}.blue{color:#638eac;background:#edf3f8}.coral{color:#a67caa;background:#f6eff7}
.chat-column:has(.welcome[hidden]) .starter-grid{display:none}
.attachments{display:flex;gap:8px;flex-wrap:wrap}
.attachment-chip{max-width:260px;display:flex;align-items:center;gap:8px;border:1px solid #ddd;border-radius:10px;padding:8px 10px;background:white;font-size:13px;margin-bottom:12px}
.attachment-chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attachment-chip button{font-size:20px;color:#777}
.messages{max-width:816px;margin:0 auto;padding:26px 24px 12px}
.messages:empty{padding:0}
.message{margin-bottom:34px;line-height:1.85;font-size:16px}
.user-message{display:flex;justify-content:flex-end}
.user-bubble{max-width:88%;padding:11px 18px;border-radius:21px;background:#f1f1f1;white-space:pre-wrap;overflow-wrap:anywhere}
.assistant-label{display:flex;align-items:center;gap:9px;margin-bottom:13px;font-weight:600;font-size:14px;color:#333}
.assistant-label>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;color:#38765e}
.assistant-label svg{width:16px;height:16px}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;color:#303030}
.demo-note{font-size:12px;color:#777;margin-top:9px}
.waiting-dots{display:flex;align-items:center;gap:6px;min-height:28px;margin-top:8px}
.waiting-dots span{width:6px;height:6px;border-radius:50%;background:#707070;animation:answer-bounce 1.2s ease-in-out infinite}
.waiting-dots span:nth-child(2){animation-delay:.12s}
.waiting-dots span:nth-child(3){animation-delay:.24s}
.waiting-dots span:nth-child(4){animation-delay:.36s}
.waiting-dots span:nth-child(5){animation-delay:.48s}
@keyframes answer-bounce{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-5px);opacity:1}}
@media(prefers-reduced-motion:reduce){.waiting-dots span{animation:none;opacity:.6}}
.plan-card{border:1px solid #e2e2e2;border-radius:16px;margin-top:16px;overflow:hidden;background:#fff}
.plan-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #eee;font-weight:600;font-size:15px}
.plan-head small{font-size:12px;font-weight:400;background:#f3f3f3;border-radius:5px;padding:3px 8px;color:#666}
.plan-item{display:flex;align-items:start;gap:12px;padding:16px 18px;border-bottom:1px solid #f0f0f0}
.plan-item b{font-size:15px;font-weight:500}
.plan-item p{margin:4px 0 0;color:#666;font-size:14px;line-height:1.75}
.plan-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:16px 18px 12px}
.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;padding:10px 15px;font-size:14px;line-height:1.4}
.primary-button{background:#252525;color:white;border:1px solid #252525}
.primary-button:hover{background:#444}
.secondary-button{background:#fff;color:#444;border:1px solid #ddd}
.secondary-button:hover{background:#f5f5f5}
.plan-note{padding:0 18px 16px;font-size:12px;color:#777;line-height:1.7}
.result-card{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e2e2e2;border-radius:12px;padding:15px;background:#fff;margin-top:12px}
.result-card:hover{background:#fafafa;border-color:#c8c8c8}
.result-card b{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.result-card small{display:block;font-size:12px;color:#777;margin-top:4px}
.result-card>span:last-child{margin-left:auto;color:#777;font-size:20px}
.thinking{max-width:816px;margin:0 auto 18px;padding:0 24px;display:flex;align-items:center;gap:10px;font-size:14px;color:#666}
.thinking-dot{height:7px;width:7px;border-radius:50%;background:#333;animation:breathe 1s infinite alternate}
@keyframes breathe{to{opacity:.3}}
.job-progress{background:#f7f7f7;border:1px solid #ebebeb;border-radius:12px;padding:16px 18px;margin:16px 0;font-size:14px;color:#555}
.job-progress header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.job-progress p{margin:6px 0;overflow-wrap:anywhere}
.job-progress button{font-size:13px;color:#777;text-decoration:underline;text-underline-offset:3px}
.preview-panel{display:none;width:46%;max-width:720px;min-width:400px;flex:none;border-left:1px solid var(--line);background:#fafafa;flex-direction:column}
.preview-panel.open{display:flex}
.preview-top{height:56px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 20px;border-bottom:1px solid var(--line);background:#fff}
.preview-top>div{display:flex;align-items:center;gap:9px;font-size:14px}
.preview-top b{font-weight:500}
.preview-content{flex:1;min-height:0;overflow:auto;padding:24px}
.preview-title{font-size:20px;font-weight:600;line-height:1.6;margin:0 0 10px;overflow-wrap:anywhere}
.preview-tag{display:inline-block;background:#eee;padding:4px 8px;border-radius:5px;font-size:12px;color:#666;margin-bottom:18px}
.preview-frame{display:block;width:100%;height:min(64vh,640px);background:#fff;border:1px solid #e0e0e0;border-radius:10px}
.preview-image{display:block;width:100%;border-radius:10px;border:1px solid var(--line)}
.preview-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.preview-hint{font-size:12px;line-height:1.8;color:#777;margin-top:16px}
.preview-empty{text-align:center;padding:80px 20px;color:#777}
.preview-empty h3{font-size:16px;font-weight:500}
.preview-empty p{font-size:14px;line-height:1.8}
.stack-illustration{margin:0 auto 20px}.stack-illustration>div:not(:last-child){display:none}
.stack-illustration svg{width:36px;height:36px}
.preview-process{font-size:12px;display:flex;justify-content:center;gap:10px;margin-top:24px}
.preview-process i{font-style:normal}
.content-screen{padding:38px 40px;overflow:auto}
.section-title{margin:0 0 28px}
.eyebrow{font-size:13px;color:#777;margin-bottom:10px}
.section-title h1{font-size:28px;font-weight:600;letter-spacing:0;margin:0 0 12px}
.section-title p{font-size:14px;color:#666;line-height:1.8}
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.filter-row button{padding:8px 15px;border-radius:20px;font-size:14px;color:#666}
.filter-row button.active{background:#eee;color:#222}
.works-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.work-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;text-align:left}
.work-card:hover{border-color:#c5c5c5}
.work-cover{height:155px;display:grid;place-items:center;background:#f3f4f3;position:relative}
.work-cover>svg{width:38px;height:38px;color:#89948c}
.work-cover img{width:100%;height:100%;object-fit:cover}
.work-cover small{position:absolute;top:12px;left:12px;font-size:12px;background:#fffffff0;padding:4px 8px;border-radius:6px;color:#666}
.work-info{padding:16px}
.work-info b{display:block;font-size:15px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
.work-info small{display:block;font-size:12px;color:#777;margin-top:9px}
.empty-state{padding:65px 24px;text-align:center;color:#777;grid-column:1/-1}
.empty-state>svg{width:36px;height:36px;margin-bottom:12px}
.empty-state h3{font-size:18px;font-weight:500}.empty-state p{font-size:14px;line-height:1.8}
.space-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px 28px;margin-bottom:22px}
.space-card header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}
.space-card h3{font-size:16px;font-weight:500;display:flex;align-items:center;gap:9px;margin:0}
.space-size{font-size:34px;font-weight:600;letter-spacing:-.8px}
.space-size small{font-size:15px;color:#777;font-weight:400;letter-spacing:0;margin-left:8px}
.space-card progress{display:block;width:100%;height:6px;margin:20px 0 26px;accent-color:#6c8375}
.space-entitlements,.space-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.space-entitlements>div{font-size:14px;line-height:1.8;color:#666}
.space-entitlements b{display:block;font-size:18px;color:#333;font-weight:500;margin:3px 0}
.space-entitlements small{font-size:12px}
.space-card .description{font-size:13px;color:#777;line-height:1.8;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}
.space-breakdown{grid-template-columns:1fr 1fr}
.space-breakdown>div{border:1px solid var(--line);border-radius:12px;padding:22px;font-size:14px;color:#666}
.space-breakdown b{display:block;font-size:26px;font-weight:500;color:#333;margin:12px 0}
.space-breakdown small{font-size:12px}
.space-alert{background:#fbf3e4;color:#866b32;border-radius:9px;padding:14px 16px;font-size:14px;line-height:1.8;margin-top:18px}
.storage-how{font-size:14px;line-height:2;color:#666}
.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#262626;color:#fff;border-radius:11px;padding:13px 20px;box-shadow:0 5px 24px #0002;font-size:14px;z-index:100;max-width:min(90vw,650px);line-height:1.6}
 dialog{width:min(470px,92vw);padding:0;border:1px solid #e0e0e0;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 24px 90px #0002;max-height:90dvh}
 dialog::backdrop{background:#0005;backdrop-filter:blur(2px)}
.modal-body{padding:28px}
.modal-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}
.modal-body h2{font-size:23px;font-weight:600;margin:0 0 12px}
.modal-body p{font-size:14px;line-height:1.8;color:#666}
.modal-body label{display:block;font-size:14px;margin-top:20px;color:#555}
.modal-body input{width:100%;display:block;padding:12px;border:1px solid #d5d5d5;border-radius:9px;background:#fff;color:#222;margin-top:8px;font-size:15px}
.modal-body .primary-button{width:100%;margin-top:22px;padding:12px;font-size:15px}
.modal-caption{font-size:13px!important;padding:12px 14px;background:#f6f6f6;border-radius:9px}
.modal-error{font-size:13px!important;color:#b84939!important}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.modal-actions>.secondary-button{flex:0 0 auto;white-space:nowrap}
.modal-body .modal-actions>.primary-button{flex:1;width:auto;margin-top:0}
.modal-body .wechat-content>.wechat-alternate{width:min(300px,100%);margin:12px 0 10px}
.catalog-card{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:16px;margin:12px 0}
.catalog-card b{font-size:17px}.catalog-card small{display:block;font-size:13px;color:#777;margin-top:5px}
.catalog-card button{padding:9px 12px;border-radius:8px;background:#f1f1f1;font-size:14px}
@media(max-width:1200px){.preview-panel.open{position:absolute;right:0;top:0;bottom:0;width:min(650px,70%);max-width:none;z-index:10;box-shadow:-12px 0 40px #0001}.content-screen{padding:30px}}
@media(max-width:700px){
  #app{min-height:420px}
  .sidebar{position:fixed;top:0;bottom:0;left:-280px;width:260px;z-index:30;transition:left .2s;box-shadow:8px 0 35px #0002}
  .sidebar.open{left:0}
  .mobile-menu{display:inline-grid}
  .topbar{height:58px;padding:0 12px}
  .breadcrumbs{gap:8px}.workspace-name{font-size:17px}.header-divider,#page-title{display:none}
  .top-actions{gap:2px}.local-badge{font-size:11px;padding:5px 7px}
  .chat-column:has(.welcome:not([hidden])){padding-bottom:12vh}
  .welcome{padding:0 20px 26px}.welcome h1{font-size:26px}
  .composer-area{padding:10px 14px 12px}
  .composer{padding:15px 12px 10px;border-radius:23px}
  .composer textarea{font-size:16px;min-height:54px}
  .model-label{font-size:13px;gap:5px}.model-mode{font-size:11px}
  .starter-grid{gap:9px;margin:20px auto 0;max-width:345px}
  .starter-grid>button{padding:10px 14px;min-height:42px}.starter-grid b{font-size:13px}
  .composer-note{font-size:11px;margin-top:14px;padding:0 5px}
  .messages{padding:20px 17px 8px}.message{font-size:16px;margin-bottom:28px}
  .user-bubble{max-width:92%}
  .plan-head,.plan-item{padding:14px}.plan-actions{padding:14px 14px 10px}.plan-note{padding:0 14px 14px}
  .preview-panel.open{width:100%;min-width:0}.preview-content{padding:20px 16px}
  .preview-frame{height:62vh}.preview-buttons .primary-button,.preview-buttons .secondary-button{font-size:13px;padding:9px 11px}
  .content-screen{padding:26px 18px}.section-title h1{font-size:25px}
  .space-card{padding:20px 17px}.space-card header{flex-wrap:wrap}.space-card h3{font-size:15px}
  .space-entitlements{grid-template-columns:1fr;gap:15px}.space-entitlements>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px}.space-entitlements small{grid-column:1/-1}
  .space-breakdown{gap:12px}.space-breakdown>div{padding:17px;font-size:13px}.space-breakdown b{font-size:23px}
  .works-grid{grid-template-columns:1fr 1fr;gap:12px}.work-cover{height:120px}.work-info{padding:12px}.work-info b{font-size:14px}
  .history-item .more{opacity:1}
}
@media(max-height:600px){.chat-column:has(.welcome:not([hidden])){padding-bottom:0;justify-content:flex-start;overflow:auto}.welcome{padding-top:22px;padding-bottom:18px}.composer-area{padding-bottom:14px!important}.sidebar{padding-top:12px}.brand{padding-bottom:12px}.main-nav{margin-bottom:12px}.starter-grid{margin-top:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.starter-grid{display:grid;grid-template-columns:1fr 1fr;max-width:292px;gap:10px}.starter-grid>button{justify-content:center;padding:10px 12px}}

/* Use the original PC brand asset without recoloring or cropping. */
.brand-icon{width:34px;height:34px}.brand-icon img{display:block;width:34px;height:34px;object-fit:contain}.assistant-label>span{border:0;background:none}.assistant-label img{display:block;width:28px;height:28px;object-fit:contain}
/* Keep model/provider labels out of the composer UI. */
.composer .model-label{display:none}

.login-tabs{display:flex;gap:24px;margin:24px 0 18px;border-bottom:1px solid #e8e8e8}.login-tabs button{font-size:14px;padding:0 0 12px;color:#777;border-bottom:2px solid transparent}.login-tabs button[aria-selected=true]{color:#222;border-color:#222;font-weight:500}.wechat-content{text-align:center;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 0}.wechat-content iframe{border:0;width:300px;height:390px;max-width:100%;background:#fff}.wechat-content b{font-size:17px;font-weight:500}.wechat-content p{font-size:14px}.wechat-symbol{height:58px;width:58px;background:#eaf5ee;color:#278953;border-radius:50%;display:grid;place-items:center;margin-bottom:18px}.wechat-symbol svg{width:28px;height:28px}.wechat-status{font-size:13px!important;text-align:center}.wechat-status a{color:#26714d;text-decoration:underline}

.lesson-choices{padding:4px 18px 12px;display:grid;gap:14px}.lesson-choices label{display:grid;gap:7px;font-size:14px;color:#555}.lesson-choices select{width:100%;min-width:0;padding:10px;border:1px solid #ddd;border-radius:8px;background:#fff;font:inherit;color:#333}

@media(max-width:700px){.starter-grid>button:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;min-width:136px}}
/* Center the login method switch as a group inside the dialog. */
.login-tabs{justify-content:center;gap:28px}
.login-tabs button{text-align:center}

/* The mode trigger and choices form one expanding surface in the composer. */
.main-nav{margin-bottom:12px;padding-bottom:14px}
.history-heading{padding-bottom:9px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.mode-control{align-self:flex-start;min-width:114px;border:1px solid transparent;border-radius:12px;transition:background .22s,border-color .22s;overflow:hidden}
.mode-control.expanded{background:#fff;border-color:#dedede}
.mode-control .mode-switch{width:100%;justify-content:space-between;border-radius:11px;padding:6px 10px}
.mode-control.expanded .mode-switch{background:transparent;color:#222}
.mode-control .mode-chevron{transition:transform .22s}.mode-control.expanded .mode-chevron{transform:rotate(180deg)}
.mode-expansion{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s cubic-bezier(.2,.75,.25,1),opacity .18s}
.mode-control.expanded .mode-expansion{grid-template-rows:1fr;opacity:1}
.mode-options{overflow:hidden;min-height:0}.mode-options>button{display:flex;gap:9px;align-items:center;width:100%;padding:10px;font-size:13px;text-align:left;white-space:nowrap}.mode-options>button:hover{background:#f4f4f4}.mode-options svg{width:17px;height:17px}.mode-check{margin-left:auto}.mode-options>button:first-child{border-top:1px solid #eee}
.composer-bottom{align-items:flex-start}.composer-bottom>div{align-items:flex-start}
.plaza-toolbar{display:flex;gap:12px;margin-bottom:22px}.plaza-toolbar input{padding:10px 14px;border:1px solid var(--line);border-radius:10px;min-width:0;flex:1}.plaza-paging{display:flex;gap:16px;justify-content:center;align-items:center;padding:26px}
#modal.work-modal{width:min(1100px,96vw);max-width:96vw}.shared-work-frame{width:100%;height:65dvh;border:1px solid var(--line);border-radius:12px;background:#fff}

/* Keep the official OAuth document intact, clipping only its redundant header/chrome. */
.wechat-frame-crop{width:300px;max-width:100%;height:340px;overflow:hidden;position:relative}
.wechat-frame-crop iframe{display:block;width:320px;max-width:none;height:440px;position:relative;left:-10px;margin-top:-52px}

/* Login fields use their single border as the focus indicator. */
#login-form input:focus,#login-form input:focus-visible{outline:none;outline-offset:0;box-shadow:none;border-color:#999}

.reply-tools{display:flex;align-items:center;gap:2px;margin-top:8px;color:#707070}
.reply-tools button{display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:6px}
.reply-tools button svg{width:15px;height:15px}
.reply-tools button:hover,.reply-tools button[aria-expanded=true],.reply-tools button[aria-pressed=true]{background:#f0f0f0;color:#333}
.reply-tools time{margin-left:6px;font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:700px){.reply-tools button{width:36px;height:36px}}

.mode-control .mode-switch{display:grid;grid-template-columns:13px minmax(0,1fr) 13px;column-gap:4px}
.mode-control #mode-name{grid-column:2;text-align:center}
.mode-control .mode-switch>svg{grid-column:3}
.web-interaction-result .message-text,.web-interaction-result .billing-note,
.web-interaction-result .result-card[data-kind=classroom]>span:nth-child(2){text-align:center}

.web-interaction-result .result-card[data-kind=classroom]{display:grid;grid-template-columns:34px minmax(0,1fr) 34px}

.plaza-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.plaza-heading .section-title,.plaza-heading .section-title p,.plaza-heading .plaza-toolbar{margin-bottom:0}
.plaza-heading .plaza-toolbar{width:min(100%,390px);flex-shrink:0}
#plaza-grid .work-cover,#works-grid .work-cover{overflow:hidden}
#plaza-grid .work-cover img,#works-grid .work-cover img{position:absolute;inset:0}
@media(max-width:850px){.plaza-heading{align-items:stretch;flex-direction:column;gap:12px}.plaza-heading .plaza-toolbar{width:100%}}
dialog:has(.large-workspace){width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}
dialog:has(.large-workspace) .modal-body{padding:0}
.large-workspace{height:100dvh;display:flex;flex-direction:column}
.large-workspace>header{display:flex;align-items:center;gap:12px;padding:8px 16px;border-bottom:1px solid #e4e4e4}
.large-workspace>header h2{flex:1;min-width:0;margin:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.large-workspace>header button{flex:none;min-height:44px}
.large-workspace-content{display:flex;flex:1;min-height:0}
.large-workspace iframe{flex:1;width:0;min-width:0;border:0;background:#fff}
#large-edit-form{flex:0 0 min(340px,38vw);min-width:0;padding:20px;overflow:auto;border-left:1px solid #e4e4e4;background:#fafafa}
#large-edit-form label{display:block;margin:14px 0}
#large-edit-selection{padding:10px 12px;border-radius:8px;background:#eaf4ef}
#large-edit-form textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;color:inherit;font:inherit}
#large-edit-form p{font-size:13px;color:#555}
@media(max-width:680px){
 .large-workspace-content{flex-direction:column}
 .large-workspace iframe{width:100%;height:0}
 #large-edit-form{flex:0 1 auto;max-height:60%;border-left:0;border-top:1px solid #e4e4e4}
}

.composer.is-file-drag{outline:2px dashed #39785f;outline-offset:3px;background:#eaf4ef}
.attachment-menu{width:min(264px,calc(100vw - 16px))}

.video-plan-reference{display:block;width:100%;max-width:580px;margin-top:10px;border-radius:8px}

.composer-bottom>.composer-actions{align-items:center;flex-wrap:nowrap;gap:6px}
#dictate{width:36px;height:36px;border-radius:50%}
#dictate[aria-pressed="true"]{color:#a12732;background:#fce8ea}
#dictation-status{flex:1;min-width:0;align-self:center;margin:0;padding:5px 8px;color:#5d6963;font-size:13px;line-height:1.35;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.document-fullscreen{background:#fff}

.composer-area{position:relative}
#chat-jump-end{position:absolute;z-index:2;left:50%;top:-38px;transform:translateX(-50%);width:36px;height:36px;border:1px solid #d7dcd8;border-radius:50%;background:#fff;box-shadow:0 2px 8px #0001}
#chat-jump-end:hover{background:#f2f5f2}
#chat-jump-end>svg{display:none}
#chat-jump-end:hover>svg,#chat-jump-end:focus-visible>svg{display:block}
#chat-jump-end:hover .jump-dots,#chat-jump-end:focus-visible .jump-dots{display:none}
.jump-dots{display:flex;align-items:center;gap:3px}
.jump-dots i{width:4px;height:4px;border-radius:50%;background:#525b56;animation:jump-dot 1.2s ease-in-out infinite}
.jump-dots i:nth-child(2){animation-delay:.14s}
.jump-dots i:nth-child(3){animation-delay:.28s}
@keyframes jump-dot{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.jump-dots i{animation:none}}
.exam-editor-body{flex:1;min-height:0;overflow:auto;background:#f5f7f5}
#exam-editor-form{width:min(820px,100%);margin:auto;padding:24px}
#exam-editor-form label{display:block;margin:0 0 12px}
#exam-editor-form input,#exam-editor-form textarea{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #d6ded8;border-radius:7px;background:#fff;color:inherit;font:inherit}
#exam-editor-form input[type=number]{width:110px}
#exam-editor-form details{margin:10px 0;background:#fff;border:1px solid #dbe3dc;border-radius:9px}
#exam-editor-form summary{padding:12px 15px;cursor:pointer;font-weight:600}
.exam-editor-fields{padding:6px 15px 12px}
.exam-editor-info{color:#5d6963}
.exam-editor-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;background:#f5f7f5}

.image-fullscreen .large-workspace-content{display:grid;grid-template-rows:minmax(0,1fr);min-width:0;background:#141514}
.image-fullscreen img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}


#mindmap-editor-body{overflow:hidden;background:#fff}
#mindmap-editor-form{height:100%;display:flex;flex-direction:column}
.mindmap-canvas{flex:1;min-height:0;overflow:auto}
.mindmap-tree{--map-gap:clamp(40px,7vw,105px);position:relative;display:grid;grid-template-columns:minmax(125px,1fr) minmax(0,3.8fr);align-items:center;gap:var(--map-gap);width:min(1120px,100%);min-width:640px;margin:auto;padding:32px 24px}
.mindmap-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke-width:2.3;stroke-linecap:round}
#mindmap-branches,.mindmap-branch,.mindmap-branch-label,.mindmap-leaf,.mindmap-leaves{position:relative}
#mindmap-branches{display:grid;gap:22px}
.mindmap-branch{display:grid;grid-template-columns:minmax(105px,1fr) minmax(0,2fr);align-items:center;gap:var(--map-gap)}
.mindmap-leaves{display:grid;gap:6px}
.mindmap-node{position:relative;display:block;width:100%;min-height:44px;field-sizing:content;resize:none;padding:8px 12px;border:1px solid transparent;border-radius:10px;font:inherit;text-align:center;background:#e8f1ed;color:#173b31}
.mindmap-node:focus{outline:2px solid #457d68;outline-offset:2px}
.mindmap-node[name=title],.mindmap-node[name=branch]{background:#173b31;color:white;font-weight:600}
.mindmap-node[name=branch]{background:var(--branch-color,#265f4e);padding-right:30px;padding-left:30px}
.mindmap-node[name=child]{padding-right:30px;padding-left:30px}
.mindmap-node::placeholder{color:inherit;opacity:.8}
.mindmap-branch-label button,.mindmap-leaf button{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:26px;height:28px;border:0;border-radius:5px;background:transparent;color:#234d40;font-size:18px}
.mindmap-branch-label button{color:white}
.mindmap-branch-label button:disabled,.mindmap-leaf button:disabled{visibility:hidden}
.mindmap-branch-label button:hover,.mindmap-leaf button:hover{background:#92ac9e44}
.mindmap-add-child{justify-self:start}
.mindmap-footer{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:10px 16px;border-top:1px solid #e0e7e2;background:white}
.mindmap-footer span{min-width:0;margin-right:auto;font-size:12px;color:#5d6963}
.mindmap-footer button,.modal-body .mindmap-footer .primary-button{width:auto;flex:none;margin:0;white-space:nowrap}

#composer{position:relative}
#composer #prompt{max-height:clamp(90px,45dvh,420px)}
.composer-resize{position:absolute;z-index:1;top:0;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:64px;height:18px;padding:0;border:0;background:transparent;cursor:ns-resize;touch-action:none}
.composer-resize::before{content:"";width:30px;height:4px;border-radius:4px;background:#bcbcbc}
.composer-resize:hover::before,.composer-resize:focus-visible::before{background:#626262}

.chat-column:has(.welcome[hidden]) .chat-scroll{padding-bottom:var(--composer-height,150px)}
.chat-column:has(.welcome[hidden]) .composer-area{position:absolute;inset:auto 0 0;width:calc(100% - 24px)}

.user-message{flex-direction:column;align-items:flex-end}
.user-message-tools{opacity:0;margin-top:2px;padding-right:5px;transition:opacity .12s ease}
.user-message-tools time{margin:0 4px 0 0}
.user-message:hover .user-message-tools,.user-message:focus-within .user-message-tools{opacity:1}
@media(any-hover:none){.user-message-tools{opacity:1}}

#preview-content .preview-buttons:has([data-edit-exam]){flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:2px 2px 5px}
#preview-content .preview-buttons:has([data-edit-exam])>*{flex:none;white-space:nowrap;padding-inline:11px;font-size:13px}

.pending-status{margin:6px 0;color:#686868;font-size:13px}
.send-error{padding:10px 14px;border-radius:8px;background:#fff4ed;color:#8b3825;font-size:14px}

#points-consumption{color:inherit;font:inherit;white-space:nowrap;padding:0;text-align:right}
#points-consumption:hover{text-decoration:underline}
.points-consumption-list{list-style:none;padding:0;max-height:50vh;overflow:auto}
.points-consumption-list li{display:grid;grid-template-columns:3.5em minmax(0,1fr) auto;gap:10px;padding:10px 0;border-top:1px solid #eee}
.points-consumption-list time{color:#666}

.plan-item>div{flex:1;min-width:0}
.plan-prompt{display:block;width:100%;box-sizing:border-box;field-sizing:content;min-height:72px;max-height:300px;margin-top:6px;padding:8px 10px;border:1px solid #dedede;border-radius:8px;background:#fff;color:#555;font:inherit;font-size:14px;line-height:1.65;resize:vertical}
.plan-prompt:focus{outline:2px solid #17654d;outline-offset:1px}
