*{box-sizing:border-box}html,body{margin:0;height:100%}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}[hidden]{display:none!important}svg{width:18px;height:18px}body.ui-v2{--v2-brand:#3564a9;--v2-brand-strong:#214c88;--v2-brand-soft:#edf4fb;--v2-brand-line:#c8d9ec;--v2-accent-gradient:linear-gradient(125deg,#345eac,#2d8891);--v2-selection-gradient:linear-gradient(105deg,#eaf2fb,#edf8f6);background:#f4f7fa}.hero{background:linear-gradient(110deg,#fff 34%,#f4f8fc 70%,#edf8f7)!important}.brand-lockup{gap:10px;white-space:nowrap}.brand-mark{width:36px;height:36px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#284a83,#3c78b2 52%,#3d9799);border-radius:9px;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 5px 14px rgba(35,74,126,.16);font-size:20px;font-weight:700}.brand-lockup strong{font-size:21px;letter-spacing:2px;font-weight:600}.brand-divider{width:1px;height:18px;background:var(--v2-line-strong)}.brand-description{font-size:16px}.preview-label{padding:7px 10px;border:1px solid var(--v2-line);border-radius:8px;color:var(--v2-muted);background:#f8fafc;font-size:11px}.header-actions{display:flex;align-items:center}.account-wrap{position:relative}.user-name-btn{display:flex;align-items:center;gap:9px;border:0;background:transparent}.account-avatar{border-radius:50%}.account-button-copy{display:grid;gap:2px;text-align:left}.account-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:600;width:205px;padding:8px;border:1px solid var(--v2-line);border-radius:10px;background:#fff;box-shadow:0 16px 40px rgba(20,30,44,.14)}.account-menu p{margin:0;padding:5px 8px;color:var(--v2-faint);font-size:11px}.account-menu button{width:100%;padding:10px 8px;border:0;border-radius:7px;background:transparent;color:var(--v2-ink);text-align:left;font-size:13px}.account-menu button:hover{background:var(--v2-brand-soft)}.workspace-nav-icon{flex:0 0 18px}.sidebar-foot{display:flex;align-items:center;gap:7px;margin-top:auto;padding:18px;color:var(--v2-faint);font-size:11px}.status-dot,.live-pill i{width:6px;height:6px;border-radius:50%;background:#3b9a72;box-shadow:0 0 0 4px rgba(59,154,114,.09)}#workspace-header{justify-content:flex-end}.mobile-tabs{display:none}.mobile-bottom-nav{display:none}.loading,.fatal-error{padding:80px 20px;color:var(--v2-muted);text-align:center}.toast{position:fixed;left:50%;bottom:26px;z-index:1000;max-width:calc(100vw - 40px);padding:11px 16px;border-radius:9px;color:#fff;background:#202936;box-shadow:0 10px 28px rgba(20,30,44,.2);font-size:13px;opacity:0;pointer-events:none;transform:translate(-50%,10px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
/* Dashboard */
.dashboard-page{padding:26px 28px 40px!important}.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.eyebrow{color:#4772a7;font-size:10px;font-weight:800;letter-spacing:1.7px}.dashboard-title-row{display:flex;align-items:center;gap:8px}.dashboard-hero h1{margin:7px 0 6px;font-size:25px;line-height:1.3}.dashboard-hero p{margin:0;color:var(--v2-muted);font-size:13px;line-height:1.7}.refresh-button{width:30px;height:30px;padding:0;display:grid;place-items:center;border:0;border-radius:8px;color:#7b8795;background:transparent}.refresh-button svg{width:16px;height:16px}.refresh-button:hover{color:var(--v2-brand-strong);background:var(--v2-brand-soft)}.refresh-button:active svg{transform:rotate(35deg)}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.metric-grid article{min-height:116px;padding:18px 19px;border:1px solid var(--v2-line);border-radius:10px;background:linear-gradient(145deg,#fff,#fbfcfe);box-shadow:0 8px 28px rgba(30,55,85,.035)}.metric-grid span{display:block;color:var(--v2-muted);font-size:12px}.metric-grid b{display:block;margin:9px 0 5px;color:#26384d;font-size:28px;font-weight:650;line-height:1}.metric-grid small{color:var(--v2-faint);font-size:10px}.board-grid{display:grid;grid-template-columns:minmax(440px,1.05fr) minmax(420px,.95fr);gap:14px}.board-card{border:1px solid var(--v2-line);border-radius:10px;background:#fff;box-shadow:0 7px 24px rgba(30,55,85,.035)}.board-card>header{min-height:69px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--v2-line)}.board-card>header span{color:var(--v2-faint);font-size:10px;font-weight:700}.board-card>header h2{margin:4px 0 0;font-size:16px}.legend{display:flex;align-items:center;gap:7px;color:var(--v2-muted);font-size:10px}.legend i{width:8px;height:8px;border-radius:2px;background:#3766a6}.legend i:nth-of-type(2){margin-left:6px;background:#73a7ad}.chart-area{height:250px;padding:32px 20px 16px;display:flex;align-items:stretch;gap:7px;border-bottom:1px solid #edf0f4;background:linear-gradient(#fff,#fcfdfe)}.chart-column{position:relative;min-width:0;flex:1;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;border:0;background:transparent}.chart-value{height:14px;color:var(--v2-faint);font-size:9px}.chart-bar{position:relative;width:min(25px,70%);min-height:4px;overflow:hidden;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#3d70b3,#315b96)}.chart-bar i{position:absolute;inset:auto 0 0;background:linear-gradient(180deg,#79afb4,#57939d)}.chart-column small{color:var(--v2-faint);font-size:9px;white-space:nowrap}.chart-column:hover .chart-bar{filter:brightness(1.08)}.trend-card footer{padding:12px 18px;color:var(--v2-muted);font-size:11px}.depth-card>header button{padding:7px 10px;border:0;border-radius:7px;color:var(--v2-brand);background:var(--v2-brand-soft);font-size:11px}.topic-stack{max-height:315px;overflow:auto}.topic-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;padding:15px 17px;border-bottom:1px solid #edf0f4}.topic-row:last-child{border:0}.topic-rank{padding-top:2px;color:#93a2b2;font:600 12px ui-monospace,SFMono-Regular,Menlo,monospace}.topic-main>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.topic-main h3{margin:0;font-size:13px}.topic-main>div>span{color:var(--v2-faint);font-size:9px;white-space:nowrap}.topic-main p{margin:6px 0 9px;color:var(--v2-muted);font-size:11px;line-height:1.6}.depth-track{display:flex;align-items:center;gap:3px}.depth-track>span{width:26px;height:4px;border-radius:99px;background:#e5eaf0}.depth-track>span.reached{background:linear-gradient(90deg,#3769a8,#5f9da4)}.depth-track b{margin-left:7px;color:#52718a;font-size:9px;font-weight:700}.evolution-card{margin-top:14px}.live-pill{display:flex!important;align-items:center;gap:8px;padding:7px 10px;border-radius:99px;background:#edf7f2;color:#3d8064!important}.evolution-flow{padding:22px;display:grid;grid-template-columns:repeat(9,max-content);justify-content:space-between;align-items:center;gap:12px;overflow:auto}.evolution-flow>div{min-width:135px}.evolution-flow>b{}.evolution-flow div b{color:#7890a8;font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace}.evolution-flow div span{display:block;margin:6px 0 4px;font-size:13px;font-weight:750}.evolution-flow div p{margin:0;color:var(--v2-faint);font-size:10px;line-height:1.5}.evolution-flow>i{color:#c0cad4;font-style:normal}.admin-trace{margin-top:14px}.admin-trace>header>span{padding:6px 9px;border-radius:99px;background:var(--v2-brand-soft)}.trace-list{max-height:520px;overflow:auto}.trace-list details{border-bottom:1px solid var(--v2-line)}.trace-list summary{padding:13px 18px;display:grid;grid-template-columns:100px 150px minmax(0,1fr);gap:14px;align-items:center;cursor:pointer}.trace-list summary time{color:var(--v2-faint);font-size:10px}.trace-list summary b{font-size:12px}.trace-list summary span{overflow:hidden;color:var(--v2-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.trace-dialogue{padding:0 18px 16px;display:grid;gap:10px}.trace-dialogue article{padding:13px;border-radius:8px;background:#f7f9fb}.trace-dialogue article:nth-child(2){background:#f4f9f8}.trace-dialogue label{color:var(--v2-faint);font-size:9px}.trace-dialogue p{margin:6px 0 0;font-size:12px;line-height:1.65;white-space:pre-wrap}
/* Agent — follows the current Lingshu Agent frame */
.agent-page{padding:24px!important;overflow:hidden!important}.ai-chat-workspace{height:100%;min-height:0;display:grid;grid-template-columns:248px minmax(0,1fr);overflow:hidden;border:1px solid rgba(255,255,255,.92);border-radius:15px;background:rgba(255,255,255,.58);box-shadow:0 14px 38px rgba(72,89,108,.08),inset 0 1px 0 rgba(255,255,255,.9)}.ai-chat-sidebar{min-height:0;padding:15px;display:flex;flex-direction:column;gap:14px;border-right:1px solid var(--v2-line);background:rgba(248,250,252,.72)}.ai-chat-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-chat-plaza-row,.ai-chat-new-thread-row{height:38px;display:flex;align-items:center;gap:9px;border:0;border-radius:8px;color:#2d3744;background:transparent;font-size:13px;font-weight:750}.ai-chat-plaza-row{flex:1;padding:0 9px}.ai-chat-plaza-row:hover,.ai-chat-new-thread-row:hover{color:var(--v2-brand-strong);background:var(--v2-brand-soft)}.ai-chat-plaza-row svg{color:#4474aa}.ai-sidebar-collapse-button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:7px;color:#7e8997;background:transparent}.ai-sidebar-collapse-button:hover{background:#eef2f6;color:#34465a}.ai-chat-thread-section{min-height:0;display:flex;flex-direction:column;flex:1}.ai-chat-new-thread-row{width:100%;padding:0 10px;margin-bottom:14px}.ai-chat-sidebar-label-row{height:34px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;color:#8792a0;font-size:11px}.ai-chat-sidebar-label-row button{width:27px;height:27px;border:0;border-radius:6px;color:#7b8796;background:transparent;font-size:20px}.ai-chat-sidebar-label-row button:hover{background:#edf1f5}.ai-chat-thread-list{min-height:0;display:grid;align-content:start;gap:4px;overflow:auto}.ai-chat-thread-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;border-radius:8px}.ai-chat-thread-row.active{background:#eaf2f9}.ai-chat-thread-button{min-width:0;min-height:40px;padding:6px 8px;display:flex;align-items:center;gap:9px;border:0;border-radius:8px;color:var(--v2-ink);background:transparent;text-align:left}.ai-chat-thread-button>svg{flex:0 0 17px;color:#718092}.ai-chat-thread-button>span{min-width:0;display:grid;gap:2px}.ai-chat-thread-button strong,.ai-chat-thread-button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-chat-thread-button strong{font-size:12px}.ai-chat-thread-button small{color:var(--v2-faint);font-size:9px}.ai-chat-thread-more{width:28px;height:28px;padding:0;display:grid;place-items:center;border:0;border-radius:6px;color:#8b95a1;background:transparent;opacity:0}.ai-chat-thread-row:hover .ai-chat-thread-more,.ai-chat-thread-row.active .ai-chat-thread-more{opacity:1}.ai-chat-thread-more:hover{background:#fff}.ai-chat-thread-empty{padding:20px 10px;color:var(--v2-faint);font-size:11px}.ai-chat-workspace.sidebar-collapsed{grid-template-columns:64px minmax(0,1fr)}.sidebar-collapsed .ai-chat-sidebar{padding:15px 10px}.sidebar-collapsed .ai-chat-plaza-row{width:38px;flex:0 0 38px;padding:0;justify-content:center}.sidebar-collapsed .ai-chat-plaza-row span,.sidebar-collapsed .ai-chat-thread-section{display:none}.sidebar-collapsed .ai-chat-sidebar-head{flex-direction:column}.ai-chat-main{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.ai-chat-main-head{min-height:72px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--v2-line)}.ai-chat-main-head h2{margin:0;max-width:45ch;overflow:hidden;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.ai-chat-main-head p{margin:4px 0 0;color:var(--v2-faint);font-size:10px}.ai-chat-main-head-actions{display:flex;align-items:center;gap:8px}.ai-chat-memory-btn{position:relative;width:34px;height:34px;padding:0;display:grid;place-items:center;border:1px solid var(--v2-line);border-radius:8px;color:#748292;background:#fff}.ai-chat-memory-btn:hover{border-color:#bfc9d5;color:#32475e}.ai-chat-memory-btn>span{position:absolute;right:-5px;top:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;color:#fff;background:#3566a6;font-size:9px;line-height:16px}.source-summary{height:32px;padding:0 10px;border:1px solid var(--v2-line);border-radius:7px;color:var(--v2-muted);background:#fff;font-size:10px}.ai-chat-mobile-thread-select{display:none}.ai-chat-log{min-height:0;padding:22px 28px 20px;display:grid;align-content:start;gap:20px;overflow:auto;overscroll-behavior:contain}.ai-chat-log.is-empty{place-content:center}.ai-chat-welcome{max-width:620px;color:var(--v2-muted);text-align:center}.ai-chat-welcome h1{margin:0;display:flex;align-items:center;justify-content:center;gap:12px;color:#202936;font-size:32px}.ai-chat-welcome h1 svg{width:25px;height:25px;color:#2f68ae}.ai-chat-welcome p{margin:12px auto 0;max-width:580px;font-size:13px;line-height:1.8}.conversation-welcome h1{font-size:22px}.ai-chat-message{position:relative;width:fit-content;max-width:min(760px,88%);display:grid;gap:6px}.ai-chat-message>span{color:var(--v2-faint);font-size:10px;font-weight:750}.message-content{font-size:14px;line-height:1.75;overflow-wrap:anywhere}.ai-chat-message.user{justify-self:end}.ai-chat-message.user .message-content{padding:10px 13px;border:1px solid rgba(255,255,255,.9);border-radius:12px 12px 4px 12px;background:#eaf2f9}.ai-chat-message.assistant{width:min(760px,88%)}.ai-chat-message.assistant .message-content{padding:1px 0;color:#273444}.ai-chat-message.error .message-content,.ai-chat-message.error>div{padding:12px 14px;border:1px solid #efd0d0;border-radius:8px;color:#b33f48;background:#fff2f2}.ai-chat-message.error p{margin:0 0 9px}.ai-chat-message.error button{border:0;color:#a53e45;background:transparent}.ai-chat-message-copy{position:absolute;top:0;width:28px;height:28px;padding:0;display:grid;place-items:center;border:1px solid var(--v2-line);border-radius:7px;color:var(--v2-muted);background:#fff;opacity:0}.ai-chat-message.user .ai-chat-message-copy{left:-35px}.ai-chat-message.assistant .ai-chat-message-copy{right:-35px}.ai-chat-message:hover .ai-chat-message-copy{opacity:1}.message-refs{margin-top:12px;padding-top:9px;border-top:1px solid #e8edf2}.message-refs summary{color:var(--v2-faint);font-size:10px;cursor:pointer}.message-refs button,.message-refs span{margin:7px 7px 0 0;padding:5px 7px;display:inline-flex;border:1px solid var(--v2-line);border-radius:6px;color:var(--v2-muted);background:#fff;font-size:9px}.message-feedback{position:absolute;left:0;bottom:-24px;display:flex;gap:5px;opacity:0}.ai-chat-message:hover .message-feedback,.message-feedback:focus-within{opacity:1}.message-feedback button{padding:3px 7px;border:0;border-radius:5px;color:var(--v2-faint);background:#f0f3f6;font-size:9px}.message-feedback button.active{color:var(--v2-brand);background:var(--v2-brand-soft)}.model-alert{margin:0 28px 8px;padding:8px 11px;border-radius:7px;color:#936914;background:#fff5df;font-size:10px}.ai-chat-composer{position:relative;margin:0 18px 18px}.composer-box{min-height:128px;padding:18px 18px 12px;border:1px solid rgba(214,220,229,.9);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(72,89,108,.08),inset 0 1px 0 #fff}.ai-chat-composer textarea{width:100%;min-height:62px;max-height:240px;padding:1px 2px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--v2-ink);font-size:14px;line-height:1.6;resize:none}.ai-chat-composer textarea::placeholder{color:#8a929d}.ai-chat-composer-actions{min-height:36px;padding-top:7px;display:flex;align-items:center;gap:8px;border-top:0}.ai-chat-skill-btn{width:32px;height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;color:#697787;background:transparent}.ai-chat-skill-btn:hover{background:#edf1f5}.ai-chat-composer-right{margin-left:auto;display:flex;align-items:center;gap:8px}.model-button{height:30px;padding:0 8px;border:0;border-radius:7px;color:#596675;background:transparent;font-size:11px}.model-button:hover{background:#f0f3f6}.ai-chat-send-btn{display:none}.ai-chat-stop-btn{width:34px;height:34px;padding:0;display:grid;place-items:center;flex:0 0 34px;border:0;border-radius:50%;color:#fff;background:#335e9e;box-shadow:0 5px 14px rgba(51,94,158,.2)}.ai-chat-stop-btn:hover{background:#234a83}.ai-chat-stop-btn svg{width:15px;height:15px}.ai-chat-skill-chip{max-width:260px;height:29px;padding:0 7px;display:flex;align-items:center;gap:5px;border:1px solid #cfddea;border-radius:7px;color:#3e6085;background:#eef5fa;font-size:10px}.ai-chat-skill-chip svg{width:13px}.ai-chat-skill-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-chat-skill-chip button{padding:0;border:0;color:#6c849b;background:transparent}.sending-dot{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:10px 0 0 rgba(255,255,255,.55),20px 0 0 rgba(255,255,255,.25);transform:translateX(-9px)}
/* History */
.back-link{padding:0;border:0;color:var(--v2-muted);background:transparent;font-size:11px}.history-panel{min-height:0;padding:20px 24px;overflow:auto}.history-search{margin-bottom:14px;display:flex;align-items:center;gap:12px}.history-search input{height:38px;min-width:260px;flex:1;padding:0 12px;border:1px solid var(--v2-line-strong);border-radius:8px}.history-search span{color:var(--v2-faint);font-size:10px}.history-list{display:grid;gap:6px}.history-list article{min-height:62px;padding:6px 9px;display:flex;align-items:center;gap:9px;border:1px solid var(--v2-line);border-radius:9px;background:#fff}.history-list article>button:first-child{min-width:0;flex:1;padding:5px;display:flex;align-items:center;gap:12px;border:0;background:transparent;text-align:left}.history-list article>button>span{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:#55728d;background:#eef3f7}.history-list article>button>div{min-width:0;display:grid;gap:4px}.history-list b,.history-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-list b{font-size:12px}.history-list small{color:var(--v2-faint);font-size:9px}.history-list article>span{color:var(--v2-faint);font-size:9px}.restore-button{padding:6px 9px;border:1px solid var(--v2-brand-line);border-radius:6px;color:var(--v2-brand);background:var(--v2-brand-soft);font-size:10px}
/* Dialogs */
.modal-backdrop{position:fixed;inset:0;z-index:800;padding:20px;display:flex;align-items:center;justify-content:center;background:rgba(22,32,45,.38);backdrop-filter:blur(2px)}.modal{width:min(560px,100%);max-height:88dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d8dee6;border-radius:12px;background:#fff;box-shadow:0 22px 70px rgba(17,30,45,.22)}.modal-wide{width:min(940px,100%);height:min(700px,88dvh)}.modal-head{min-height:58px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--v2-line)}.modal-head h3{margin:0;font-size:15px}.modal-head button{width:31px;height:31px;border:0;border-radius:7px;color:var(--v2-muted);background:transparent;font-size:22px}.modal-head button:hover{background:#f0f3f6}.modal-body{min-height:0;padding:20px;overflow:auto}.form-grid{display:grid;gap:14px}.form-grid label{display:grid;gap:7px;color:var(--v2-muted);font-size:11px;font-weight:750}.form-grid input,.form-grid textarea,.form-grid select{width:100%;padding:9px 11px;border:1px solid var(--v2-line-strong);border-radius:8px;outline:0;color:var(--v2-ink);background:#fff;font-size:13px;line-height:1.6}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:var(--v2-brand);box-shadow:0 0 0 3px rgba(50,98,184,.1)}.form-actions{padding-top:5px;display:flex;justify-content:flex-end;gap:8px}.form-actions.split{justify-content:space-between}.primary-btn,.ghost-btn,.danger-button,.danger-text{min-height:38px;padding:0 14px;border-radius:8px;font-size:12px;font-weight:700}.primary-btn{border:0;color:#fff;background:var(--v2-accent-gradient)}.ghost-btn{border:1px solid var(--v2-line-strong);color:var(--v2-ink);background:#fff}.danger-text{border:0;color:#bc4a4a;background:transparent}.danger-button{border:1px solid #edcaca;color:#b74343;background:#fff1f1}.dialog-note{margin:0 0 16px;color:var(--v2-muted);font-size:12px;line-height:1.7}.modal blockquote{margin:0 0 16px;padding:12px 14px;border-left:3px solid #7f9ec0;color:#445262;background:#f5f8fb;font-size:12px;line-height:1.7}.quiet-empty{min-height:150px;display:grid;place-items:center;align-content:center;gap:10px;color:var(--v2-faint);text-align:center}.quiet-empty svg{width:25px;height:25px}.quiet-empty p{margin:0;font-size:11px}.dialog-actions{padding-top:16px;display:flex;justify-content:flex-end;gap:8px}.upload-label{display:inline-flex;align-items:center}.source-list{display:grid;gap:8px}.source-list article{padding:12px;display:grid;grid-template-columns:45px minmax(0,1fr);gap:11px;border:1px solid var(--v2-line);border-radius:8px}.source-list article>span{height:23px;display:grid;place-items:center;border-radius:5px;color:#4d718c;background:#eaf2f7;font-size:8px;font-weight:800}.source-list b{font-size:12px}.source-list p{margin:6px 0 0;color:var(--v2-muted);font-size:10px;line-height:1.6}.action-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.action-choice button{min-height:145px;padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid var(--v2-line);border-radius:10px;color:var(--v2-ink);background:#fff;text-align:left}.action-choice button:hover{border-color:var(--v2-brand-line);background:var(--v2-brand-soft)}.action-choice svg{color:#4874a5}.action-choice b{font-size:14px}.action-choice span{color:var(--v2-muted);font-size:10px}.memory-intro{margin-bottom:16px;padding:12px;display:flex;gap:11px;border-radius:8px;background:#f5f8fb}.memory-intro>div{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:#49739e;background:#e6eff7}.memory-intro p{margin:0;color:var(--v2-muted);font-size:11px;line-height:1.65}.memory-list{display:grid;gap:7px}.memory-list article{padding:12px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;border:1px solid var(--v2-line);border-radius:8px}.memory-kind{height:23px;display:grid;place-items:center;border-radius:5px;color:#4b708b;background:#eaf2f7;font-size:9px}.memory-kind.correction{color:#a34b4b;background:#fbeaea}.memory-kind.preference{color:#765395;background:#f1ebf7}.memory-kind.goal{color:#8b671d;background:#fff3dc}.memory-list b{font-size:12px}.memory-list p{margin:5px 0;color:var(--v2-muted);font-size:11px;line-height:1.6}.memory-list small{color:var(--v2-faint);font-size:9px}.memory-list article>button{align-self:start;border:0;color:var(--v2-faint);background:transparent;font-size:9px}.add-memory-button{width:100%;min-height:40px;margin-top:12px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed #cdd7e1;border-radius:8px;color:#4d708e;background:#fafcfd;font-size:11px}.skills-dialog{height:100%;min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr);margin:-20px}.skills-dialog>aside{min-height:0;padding:14px;display:flex;flex-direction:column;border-right:1px solid var(--v2-line);background:#f8fafc}.skills-search{display:flex;gap:7px}.skills-search input{min-width:0;height:36px;flex:1;padding:0 10px;border:1px solid var(--v2-line-strong);border-radius:8px}.skills-search button{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--v2-line);border-radius:8px;color:#486f99;background:#fff}.skills-list{min-height:0;margin-top:12px;display:grid;align-content:start;gap:5px;overflow:auto}.skills-list>button{padding:10px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;border:1px solid transparent;border-radius:8px;color:var(--v2-ink);background:transparent;text-align:left}.skills-list>button.active{border-color:var(--v2-brand-line);background:#eaf2f9}.skills-list>button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#4676a7;background:#fff}.skills-list>button>div{min-width:0;display:grid;gap:4px}.skills-list b,.skills-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skills-list b{font-size:11px}.skills-list small{color:var(--v2-faint);font-size:9px}.skill-preview{padding:40px 46px;overflow:auto}.skill-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(145deg,#3968aa,#4f99a0);box-shadow:0 12px 30px rgba(49,101,153,.18)}.skill-icon svg{width:27px;height:27px}.skill-category{display:block;margin-top:20px;color:#6d88a0;font-size:10px;font-weight:800;letter-spacing:.8px}.skill-preview h2{margin:7px 0 8px;font-size:24px}.skill-preview>p{max-width:620px;margin:0;color:var(--v2-muted);font-size:12px;line-height:1.8}.skill-stats{margin-top:22px;display:flex;align-items:center;gap:12px}.skill-stats b,.skill-stats span{padding:6px 9px;border-radius:6px;background:#f1f4f7;color:var(--v2-muted);font-size:10px}.skill-prompt{margin-top:20px;padding:14px;border:1px solid var(--v2-line);border-radius:9px;background:#fafbfc}.skill-prompt label{color:var(--v2-faint);font-size:9px}.skill-prompt p{margin:7px 0 0;color:#495767;font-size:11px;line-height:1.7;white-space:pre-wrap}.skill-preview-actions{margin-top:24px;display:flex;gap:8px}.total-skill-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.total-skill-head>div{display:grid;gap:3px}.total-skill-head b{font-size:20px}.total-skill-head span{color:var(--v2-faint);font-size:10px}.total-skill-head button{height:34px;padding:0 11px;border:1px solid var(--v2-brand-line);border-radius:7px;color:var(--v2-brand);background:var(--v2-brand-soft);font-size:10px}.version-chips{margin:15px 0;display:flex;gap:6px;overflow:auto}.version-chips span{padding:5px 7px;border-radius:5px;color:var(--v2-muted);background:#f1f4f7;font-size:9px;white-space:nowrap}.total-skill-list{display:grid;gap:7px}.total-skill-list article{padding:12px;display:grid;grid-template-columns:75px minmax(0,1fr) auto;gap:11px;border:1px solid var(--v2-line);border-radius:8px}.total-skill-list article>span{height:24px;display:grid;place-items:center;border-radius:5px;color:#4f6e87;background:#edf3f7;font-size:8px}.total-skill-list b{font-size:11px}.total-skill-list p{margin:5px 0;color:var(--v2-muted);font-size:10px;line-height:1.6}.total-skill-list small{color:var(--v2-faint);font-size:8px}.total-skill-list article>button{align-self:start;border:0;color:#b25757;background:transparent;font-size:9px}
@media(max-width:1180px){.dashboard-page{padding:20px!important}.metric-grid{grid-template-columns:repeat(2,1fr)}.board-grid{grid-template-columns:1fr}.agent-page{padding:18px!important}.ai-chat-workspace{grid-template-columns:225px minmax(0,1fr)}}
@media(max-width:860px){body.ui-v2 .app-shell{grid-template-rows:60px minmax(0,1fr) 62px}.hero{padding:0 14px!important;height:60px!important}.workspace-layout{grid-template-columns:1fr!important}.workspace-rail{display:none!important}.workspace-content>main{padding-bottom:0}.mobile-bottom-nav{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--v2-line);background:rgba(255,255,255,.96)}.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;color:var(--v2-muted);background:transparent;font-size:10px}.mobile-bottom-nav button svg{width:20px;height:20px;stroke-width:1.8}.mobile-bottom-nav button.active{color:var(--v2-brand)}#workspace-header{min-height:44px!important;padding:0 12px!important;justify-content:center!important}.mobile-tabs{display:flex}.mobile-tabs button{min-width:85px}.brand-description,.brand-divider,.preview-label,.header-stats,.account-button-copy small{display:none!important}.dashboard-page{padding:14px 12px 28px!important}.dashboard-hero{align-items:flex-start}.dashboard-hero h1{font-size:20px}.dashboard-hero p{font-size:11px}.refresh-button{font-size:10px}.metric-grid{gap:8px}.metric-grid article{min-height:98px;padding:14px}.metric-grid b{font-size:24px}.evolution-flow{justify-content:start}.agent-page{padding:0!important}.ai-chat-workspace{grid-template-columns:1fr;border:0;border-radius:0;box-shadow:none}.ai-chat-sidebar{display:none}.ai-chat-main-head{min-height:60px;padding:10px 12px}.title-group h2,.title-group p{display:none}.ai-chat-mobile-thread-select{display:block;width:min(230px,60vw);height:36px;padding:0 10px;border:1px solid var(--v2-line);border-radius:8px;background:#fff}.source-summary{display:none}.ai-chat-log{padding:18px 14px}.ai-chat-message{max-width:92%}.ai-chat-message.assistant{width:92%}.ai-chat-composer{margin:0 10px 10px}.composer-box{min-height:105px}.skills-dialog{grid-template-columns:1fr;margin:-20px}.skills-dialog>aside{max-height:240px;border-right:0;border-bottom:1px solid var(--v2-line)}.skill-preview{padding:24px}.modal-wide{height:88dvh}.model-alert{margin:0 12px 7px}.message-feedback{opacity:1}}
@media(max-width:540px){.brand-lockup strong{font-size:17px}.brand-mark{width:32px;height:32px;font-size:17px}.account-avatar{width:30px!important;height:30px!important}.metric-grid{grid-template-columns:1fr 1fr}.metric-grid article{min-width:0}.metric-grid small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-area{padding-inline:9px;gap:3px}.chart-bar{width:15px}.topic-main>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}.action-choice{grid-template-columns:1fr}.ai-chat-welcome h1{font-size:24px}.conversation-welcome h1{font-size:19px}.ai-chat-main-head-actions{gap:5px}.ai-chat-memory-btn{width:32px;height:32px}.source-list article,.memory-list article,.total-skill-list article{grid-template-columns:1fr}.memory-list article>button,.total-skill-list article>button{justify-self:start}.modal-backdrop{padding:8px}.modal{max-height:94dvh}.modal-body{padding:16px}.skill-preview{padding:20px}.skill-preview h2{font-size:20px}.history-search input{min-width:0}.dashboard-hero p{display:none}.admin-trace{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
/* 2026-09-20 review: remove redundant subheader and give composer actions breathing room. */
body.ui-v2 .workspace-content > main { height: 100%; }
.ai-chat-composer-actions { padding-top: 7px; border-top: 0; }
.ai-chat-composer-right { gap: 12px; padding-left: 10px; }
.model-button {
  min-width: 72px;
  height: 34px;
  padding: 0 10px 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
}
.model-button:hover { border-color: var(--v2-line); }
.model-button > span:first-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-caret { color: var(--v2-faint); font-size: 11px; line-height: 1; }
.ai-chat-send-btn { display: none; }
@media(max-width:860px) {
  .ai-chat-composer-right { gap: 9px; padding-left: 6px; }
  .model-button { min-width: 66px; max-width: 150px; }
}
.brand-mark { object-fit: cover; object-position: center; }

/* 2026-09-20 Agent simplification: account memory, compact menus and reference chevron. */
.ai-chat-thread-row{position:relative}
.ai-chat-thread-button{position:relative}
.ai-chat-thread-button>span{flex:1}
.ai-chat-thread-button strong{display:flex;align-items:center;gap:5px}
.thread-pin{padding:2px 4px;border-radius:4px;color:#386491;background:#dceaf6;font-size:8px;font-style:normal;font-weight:750}
.thread-unread-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#3566a6;box-shadow:0 0 0 3px rgba(53,102,166,.1)}
.ai-chat-thread-row.unread .ai-chat-thread-button strong{font-weight:800}
.thread-action-menu{position:absolute;left:calc(100% - 8px);top:30px;z-index:120;width:174px;padding:7px;border:1px solid #dce2e9;border-radius:12px;background:#fff;box-shadow:0 18px 44px rgba(26,40,58,.17)}
.thread-action-menu button{width:100%;height:40px;padding:0 11px;display:flex;align-items:center;gap:11px;border:0;border-radius:7px;color:#273444;background:transparent;text-align:left;font-size:12px}
.thread-action-menu button:hover{background:#f1f4f7}
.thread-action-menu button svg{width:18px;height:18px;flex:0 0 18px}
.thread-action-menu>div{height:1px;margin:6px -7px;background:#e5e9ee}
.thread-action-menu button.danger{color:#df3535}
.model-caret{width:16px;height:16px;display:grid;place-items:center;color:#718092}
.model-caret svg{width:16px;height:16px}
.model-button{gap:6px}
.ai-chat-main-head:has(.title-group){justify-content:flex-start}
.account-menu #account-memory-button{font-weight:700}
@media(max-width:860px){.thread-action-menu{left:auto;right:0;top:38px}}
.thread-action-menu{position:fixed;left:auto;top:auto}

/* 2026-09-20 screenshot alignment: quiet composer and compact metadata-free rows. */
.dashboard-title-row .refresh-button{margin-top:1px;flex:0 0 30px}
.ai-chat-thread-button>span{display:block}
.ai-chat-thread-button strong{line-height:1.35}
.ai-chat-composer-actions{border-top:0!important}
.ai-chat-composer-right{align-self:center}
.ai-chat-stop-btn{margin-left:1px}
@media(max-width:860px){
  .dashboard-title-row{align-items:flex-start}
  .refresh-button{width:28px;height:28px;flex-basis:28px}
  .composer-box{min-height:116px;padding:15px 15px 10px}
  .ai-chat-composer textarea{min-height:58px}
}

.builtin-skill-note{max-width:620px;margin:18px 0 0;padding:10px 12px;border-radius:8px;color:#546577;background:#f4f7fa;font-size:11px;line-height:1.65}

/* 2026-09-20 total Skill clarity: separated metrics and a direct sidebar entry. */
.skill-overview-stats{max-width:620px;margin-top:26px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.skill-overview-stats article{min-height:82px;padding:14px 16px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid var(--v2-line);border-radius:10px;background:#fafcfe}
.skill-overview-stats span{color:var(--v2-faint);font-size:10px}
.skill-overview-stats b{color:#25384e;font-size:20px;line-height:1.15}
.skill-overview-stats small{color:var(--v2-muted);font-size:10px;font-weight:600}
.builtin-skill-note{max-width:620px;margin:16px 0 0;padding:12px 14px;border:1px solid #e1e8ef;border-radius:9px;color:#546577;background:#f4f7fa;font-size:11px;line-height:1.65}
.skill-preview-actions{margin-top:18px}
@media(max-width:680px){.skill-overview-stats{grid-template-columns:1fr}.skill-overview-stats article{min-height:68px}}
.dialogue-day-list{display:grid;gap:10px}
.dialogue-day-list>article{padding:14px;border:1px solid var(--v2-line);border-radius:8px;background:#fff}
.dialogue-day-list>article>header{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.dialogue-day-list time{color:var(--v2-faint);font-size:10px}
.dialogue-day-list header b{font-size:12px}
.dialogue-day-list article>div{display:grid;gap:9px}
.dialogue-day-list section{padding:10px 12px;border-radius:7px;background:#f6f8fa}
.dialogue-day-list section:nth-child(2){background:#f2f8f7}
.dialogue-day-list label{color:var(--v2-faint);font-size:9px}
.dialogue-day-list p{margin:5px 0 0;font-size:12px;line-height:1.65;white-space:pre-wrap}
