*{margin:0;padding:0;box-sizing:border-box}body{background:#faf9f5;color:#141413;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}#root{height:100vh;height:100dvh;display:flex}:root{--color-bg: #faf9f5;--color-sidebar: #181715;--color-sidebar-text: #faf9f5;--color-sidebar-hover: #252320;--color-sidebar-active: #302d28;--color-primary: #cc785c;--color-primary-hover: #a9583e;--color-text: #141413;--color-text-muted: #6c6a64;--color-border: #e6dfd8;--color-error: #c64545;--color-success: #5db872;--color-surface-soft: #f5f0e8;--color-surface-card: #efe9de;--color-surface-strong: #e8e0d2;--color-dark-elevated: #252320;--color-dark-soft: #1f1e1b;--font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;--font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--sidebar-width: 280px;--sidebar-collapsed-width: 56px}.auth-shell{width:100vw;min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:var(--color-bg);padding:24px}.auth-panel{width:min(420px,100%);border:1px solid var(--color-border);border-radius:8px;background:#fff;padding:28px;box-shadow:0 18px 50px #14141314}.auth-panel-compact{color:var(--color-text-muted);font-size:14px}.auth-brand{display:grid;gap:8px;margin-bottom:24px}.auth-brand span{color:var(--color-primary);font-size:12px;font-weight:700;text-transform:uppercase}.auth-brand h1{color:var(--color-text);font-family:var(--font-display);font-size:34px;font-weight:400;line-height:1.1}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:6px;color:var(--color-text-muted);font-size:13px;font-weight:600}.auth-form input{width:100%;min-height:42px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);font-size:15px;padding:10px 12px}.auth-submit{width:100%;min-height:42px;border-radius:8px;border:1px solid transparent;cursor:pointer;font-size:14px;font-weight:700}.auth-submit{background:var(--color-primary);color:#fff}.auth-submit:disabled{cursor:not-allowed;opacity:.65}.auth-error,.auth-notice{border-radius:8px;font-size:13px;padding:10px 12px}.auth-error{background:#c645451a;color:var(--color-error)}.auth-notice{background:#5db8721f;color:#2f7a43}.auth-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.auth-links a{color:var(--color-primary);font-size:13px;font-weight:700;text-decoration:none}.app-layout{display:flex;width:100%;height:100vh;height:100dvh;background:var(--color-bg)}.admin-layout{display:flex;width:100%;height:100vh;height:100dvh;background:#f8fafc;overflow:hidden}.admin-shell-sidebar{width:260px;min-width:260px;display:flex;flex-direction:column;gap:18px;border-right:1px solid #dfe3ea;background:#fff;padding:18px;overflow-y:auto}.admin-shell-brand{display:grid;gap:2px;border-bottom:1px solid #edf0f5;padding-bottom:14px}.admin-shell-brand span{color:var(--color-text-muted);font-size:11px;font-weight:900;text-transform:uppercase}.admin-shell-brand strong{color:var(--color-text);font-size:22px;line-height:1.1}.admin-shell-nav{display:grid;gap:8px}.admin-shell-nav a{min-width:0;display:grid;gap:3px;border:1px solid transparent;border-radius:8px;color:var(--color-text);padding:10px;text-decoration:none}.admin-shell-nav a:hover,.admin-shell-nav a.active{border-color:#cc785c59;background:#cc785c14}.admin-shell-nav a span,.admin-shell-nav a small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-shell-nav a span{font-size:13px;font-weight:900}.admin-shell-nav a small{color:var(--color-text-muted);font-size:11px}.admin-shell-content{min-width:0;flex:1;overflow:hidden;background:#f8fafc}.main-area{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg)}.sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width);background:var(--color-sidebar);color:var(--color-sidebar-text);display:flex;flex-direction:column;border-right:1px solid rgba(250,249,245,.08);transition:width .2s ease,min-width .2s ease;overflow:hidden}.sidebar.has-feishu-attention{position:relative;z-index:90;box-shadow:12px 0 36px #0000002e}.feishu-attention-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;pointer-events:none;background:#14141357;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);animation:feishuScrimFadeIn .18s ease-out}.sidebar-collapsed{width:var(--sidebar-collapsed-width);min-width:var(--sidebar-collapsed-width)}.sidebar-overlay{display:none}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:14px 14px 12px;border-bottom:1px solid rgba(250,249,245,.1)}.sidebar-brand{min-width:0;display:flex;align-items:center;gap:10px}.sidebar-brand-mark{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(204,120,92,.32);border-radius:8px;background:#cc785c29;color:#f2c9ba;font-size:14px;font-weight:700}.sidebar-title{color:#faf9f5;font-family:var(--font-display);font-size:23px;font-weight:400;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-toggle{background:var(--color-dark-elevated);border:1px solid rgba(250,249,245,.14);color:var(--color-sidebar-text);width:28px;height:28px;border-radius:6px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s ease}.sidebar-toggle:hover{background:#302d28}.sidebar-new{display:grid;gap:8px;padding:12px;border-bottom:1px solid rgba(250,249,245,.08)}.new-conv-btn,.import-chatgpt-btn,.url-doc-link-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;line-height:1;text-align:center;white-space:nowrap;overflow:hidden;min-height:44px;transition:background .15s ease,border-color .15s ease,color .15s ease}.new-conv-btn{border:1px solid rgba(204,120,92,.46);background:#cc785c;color:#fff}.new-conv-btn:hover{background:#a9583e}.import-chatgpt-btn,.url-doc-link-btn{border:1px solid rgba(250,249,245,.18);background:#faf9f50f;color:#faf9f5e0;font-size:13px;min-height:40px}.import-chatgpt-btn:hover,.url-doc-link-btn:hover,.url-doc-link-btn.active{background:#faf9f51a;color:#fff}.sidebar-action-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:16px;font-size:15px;line-height:1}.sidebar-list{flex:1;overflow-y:auto;padding:8px 8px 12px}.sidebar-loading,.sidebar-empty{padding:16px;text-align:center;font-size:13px;color:#faf9f580}.sidebar-conv-section{margin-bottom:10px}.sidebar-section-heading{padding:8px 10px 6px;color:#faf9f56b;font-size:11px;font-weight:700;letter-spacing:0;line-height:1.2;text-transform:uppercase}.sidebar-conv-item{display:flex;align-items:center;min-height:58px;padding:0;border-radius:8px;cursor:pointer;border:1px solid transparent;transition:background .15s ease,border-color .15s ease;position:relative;outline:none}.sidebar-conv-item:before{content:"";position:absolute;top:9px;bottom:9px;left:0;width:3px;border-radius:999px;background:transparent}.sidebar-conv-copy{min-width:0;width:100%;display:grid;gap:3px;padding:9px 82px 9px 12px}.sidebar-conv-item:hover{background:var(--color-sidebar-hover);border-color:#faf9f514}.sidebar-conv-item:focus-visible{border-color:#cc785c9e;box-shadow:0 0 0 2px #cc785c29}.sidebar-conv-item.active{background:var(--color-sidebar-active);border-color:#cc785c85}.sidebar-conv-item.active:before{background:var(--color-primary)}.conv-icon{font-size:14px;font-weight:600;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#cc785c2e;color:#f2c9ba;flex-shrink:0}.conv-title{display:block;min-width:0;font-size:13px;font-weight:600;line-height:1.35;color:#faf9f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-meta{display:block;min-width:0;font-size:11px;line-height:1.35;color:#a09d96;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-delete-btn{position:absolute;right:7px;top:50%;transform:translateY(-50%);background:#faf9f50f;border:1px solid rgba(250,249,245,.08);color:#faf9f57a;cursor:pointer;font-size:12px;font-weight:700;line-height:1;min-width:38px;width:auto;height:28px;padding:0 8px;border-radius:6px;display:flex;align-items:center;justify-content:center;opacity:0;white-space:nowrap;transition:opacity .15s ease,color .15s ease,background .15s ease,border-color .15s ease}.sidebar-conv-item:hover .conv-delete-btn,.conv-delete-btn:focus-visible,.conv-delete-btn.confirming{opacity:1}.conv-delete-btn:hover{color:var(--color-error);background:#ef444426;border-color:#c6454552}.conv-delete-btn.confirming{color:#fff;background:var(--color-error);border-color:var(--color-error);min-width:68px}.sidebar-collapsed .sidebar-top{min-height:78px;flex-direction:column;justify-content:center;padding:12px 8px}.sidebar-collapsed .sidebar-new{padding:10px 8px}.sidebar-collapsed .new-conv-btn,.sidebar-collapsed .import-chatgpt-btn,.sidebar-collapsed .url-doc-link-btn{padding:0}.sidebar-collapsed .sidebar-list{padding:8px}.sidebar-collapsed .sidebar-conv-section{margin-bottom:6px}.sidebar-collapsed .sidebar-conv-item{min-height:40px;justify-content:center}.sidebar-collapsed .sidebar-conv-item:before{top:8px;bottom:8px;left:-1px}.sidebar-collapsed .sidebar-conv-copy{justify-items:center;padding:7px 0}.sidebar-collapsed .conv-delete-btn{display:none}.sidebar-bottom{padding:12px 16px;border-top:1px solid rgba(250,249,245,.1)}.sidebar-settings-link{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;color:#d8d1c8;text-decoration:none;font-size:14px;transition:background .15s ease;min-height:44px}.sidebar-settings-link:hover{background:var(--color-sidebar-hover)}.sidebar-settings-link.active{background:var(--color-sidebar-active);color:#faf9f5}.settings-icon{font-size:16px;flex-shrink:0;width:20px;text-align:center}.mobile-menu-btn{display:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:44px;height:44px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:8px;cursor:pointer;flex-shrink:0;padding:10px}.mobile-menu-btn:hover{background:var(--color-surface-soft)}.hamburger-line{display:block;width:20px;height:2px;background:var(--color-text);border-radius:1px}.chat-page{display:flex;flex-direction:column;height:100vh;height:100dvh;width:100%;background:var(--color-bg)}.chat-header{display:flex;align-items:center;gap:16px;padding:12px 28px;border-bottom:1px solid var(--color-border);background:var(--color-bg)}.chat-header-title{flex:1;min-width:0}.chat-view-toggle{display:inline-flex;align-items:center;flex-shrink:0;padding:3px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft)}.chat-view-toggle button{min-height:32px;border:none;border-radius:6px;background:transparent;color:var(--color-text-muted);padding:0 12px;font-size:13px;font-weight:500;cursor:pointer}.chat-view-toggle button:hover{color:var(--color-text)}.chat-view-toggle button.active{background:var(--color-primary);color:#fff;box-shadow:none}.chat-view-toggle button.active:hover{color:#fff}.chat-active-title{min-width:0;margin:1px 0 0;color:var(--color-text);font-family:var(--font-display);font-size:26px;font-weight:400;letter-spacing:-.02em;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-title-edit-shell{min-width:0;max-width:min(720px,100%)}.chat-title-display-row{display:flex;align-items:center;gap:8px;min-width:0}.chat-title-display-row .chat-active-title{flex:0 1 auto}.chat-title-edit-shell.editing .chat-title-display-row{display:none}.chat-title-edit-btn{display:block;max-width:100%;overflow:hidden;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;cursor:text;font:inherit;letter-spacing:inherit;line-height:inherit;padding:2px 4px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.chat-title-edit-btn:hover:not(:disabled),.chat-title-edit-btn:focus-visible{border-color:#cc785c57;background:#cc785c14;color:var(--color-primary);outline:none}.chat-title-edit-btn:disabled{cursor:default}.chat-title-jump-btn,.chat-title-save-btn,.chat-title-cancel-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;font:700 16px/1 var(--font-ui);padding:0}.chat-title-save-btn{border-color:var(--color-primary);background:var(--color-primary);color:#fff}.chat-title-jump-btn:hover:not(:disabled),.chat-title-jump-btn:focus-visible,.chat-title-cancel-btn:hover:not(:disabled),.chat-title-cancel-btn:focus-visible{border-color:#cc785c6b;background:var(--color-surface-soft);color:var(--color-primary)}.chat-title-save-btn:hover:not(:disabled),.chat-title-save-btn:focus-visible{background:var(--color-primary-active)}.chat-title-jump-btn:focus-visible{outline:2px solid rgba(204,120,92,.24);outline-offset:3px}.chat-title-jump-btn:disabled,.chat-title-save-btn:disabled,.chat-title-cancel-btn:disabled{cursor:default;opacity:.58}.chat-title-edit-form{display:none;align-items:center;gap:8px;max-width:min(720px,100%)}.chat-title-edit-shell.editing .chat-title-edit-form{display:flex}.chat-title-input{min-width:0;width:min(560px,100%);height:40px;border:1px solid rgba(204,120,92,.42);border-radius:8px;background:var(--color-bg);color:var(--color-text);box-shadow:0 0 0 3px #cc785c24;font:400 24px/1.15 var(--font-display);letter-spacing:0;padding:8px 12px}.chat-title-input:focus{outline:none}.chat-title-error{display:block;margin-top:5px;color:var(--color-error);font-size:12px;font-weight:600}.chat-header-meta{color:var(--color-text-muted);font-size:12px;font-weight:500}.chat-header-actions{position:relative;display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px}.chat-followup-history-shell{position:relative}.chat-followup-history-trigger{display:inline-flex;min-height:38px;align-items:center;gap:8px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;font-size:13px;font-weight:800;padding:0 12px;white-space:nowrap}.chat-followup-history-trigger:hover:not(:disabled),.chat-followup-history-trigger[aria-expanded=true]{border-color:#cc785c73;background:var(--color-surface-soft);color:var(--color-primary-hover)}.chat-followup-history-trigger:disabled{cursor:not-allowed;opacity:.55}.chat-followup-history-count{display:inline-flex;min-width:18px;height:18px;align-items:center;justify-content:center;border-radius:999px;background:#cc785c24;color:var(--color-primary);font-size:11px;font-weight:900}.chat-followup-history-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:35;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(420px,calc(100vw - 32px));max-height:min(620px,calc(100dvh - 104px));overflow:hidden;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);box-shadow:0 14px 40px #14141324}.chat-followup-history-popover:before{content:"";position:absolute;top:-7px;right:44px;width:12px;height:12px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);background:var(--color-bg);transform:rotate(45deg)}.chat-followup-history-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-border);padding:16px 18px 12px}.chat-followup-history-header span{color:var(--color-primary);font-size:11px;font-weight:900;text-transform:uppercase}.chat-followup-history-header h2{margin:2px 0 0;color:var(--color-text);font-size:18px;line-height:1.25}.chat-followup-history-total{flex-shrink:0;border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted)!important;padding:4px 8px;text-transform:none!important}.chat-followup-history-body{min-height:0;overflow-y:auto;padding:12px}.chat-followup-history-state,.chat-followup-history-empty{border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);color:var(--color-text-muted);font-size:13px;line-height:1.45;padding:14px}.chat-followup-history-state.error{border-color:#c6454559;background:#c6454514;color:var(--color-error)}.chat-followup-history-state button{margin-top:10px;min-height:30px;border:1px solid rgba(198,69,69,.35);border-radius:6px;background:var(--color-bg);color:var(--color-error);cursor:pointer;font-size:12px;font-weight:800;padding:0 10px}.chat-followup-history-empty{display:grid;min-height:180px;align-content:center;justify-items:center;text-align:center}.chat-followup-history-empty h3{margin:0 0 6px;color:var(--color-text);font-size:16px}.chat-followup-history-item{display:grid;width:100%;gap:8px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;margin-bottom:10px;padding:12px;text-align:left}.chat-followup-history-item:hover,.chat-followup-history-item:focus-visible{border-color:#cc785c73;background:#fffaf6;outline:none}.chat-followup-history-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--color-text);font-size:13px;font-weight:900;line-height:1.35}.chat-followup-history-item-top span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-followup-history-item-top span:last-child{flex-shrink:0;color:var(--color-text-muted);font-size:11px;font-weight:700}.chat-followup-history-quote{border-left:3px solid rgba(204,120,92,.35);color:var(--color-text-muted);font-size:12px;line-height:1.45;padding-left:9px}.chat-followup-history-line{display:grid;gap:3px;color:var(--color-text);font-size:12px;line-height:1.45}.chat-followup-history-line.muted{color:var(--color-text-muted)}.chat-followup-history-line strong{color:var(--color-primary);font-size:11px;font-weight:900}.chat-followup-history-tags{display:flex;flex-wrap:wrap;gap:6px}.chat-followup-history-tags span{border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);font-size:11px;font-weight:800;padding:3px 7px}.chat-followup-history-tags span.included{background:#5db87229;color:#2f7f45}.chat-note-trigger{display:inline-flex;align-items:center;gap:10px;min-height:38px;border:1px solid rgba(204,120,92,.28);border-radius:8px;background:var(--color-surface-soft);color:var(--color-text);cursor:pointer;padding:0 12px;font-size:13px;font-weight:700;white-space:nowrap}.chat-note-trigger:hover:not(:disabled),.chat-note-trigger[aria-expanded=true]{border-color:#cc785c73;background:var(--color-bg)}.chat-note-trigger:disabled{cursor:not-allowed;opacity:.55}.chat-note-trigger-label{color:var(--color-primary)}.chat-note-trigger-status{display:inline-flex;align-items:center;gap:6px;color:var(--color-text-muted);font-size:12px;font-weight:700}.chat-note-status-dot{width:7px;height:7px;border-radius:999px;background:currentColor}.chat-note-trigger-status.synced,.chat-note-trigger-status.ready{color:#2f7f45}.chat-note-trigger-status.pending,.chat-note-trigger-status.loading{color:#8a5d10}.chat-note-trigger-status.failed{color:var(--color-error)}.chat-note-trigger-status.empty{color:var(--color-text-muted)}.chat-note-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:30;width:min(380px,calc(100vw - 32px));border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);box-shadow:0 2px 8px #1414130f}.chat-note-popover:before{content:"";position:absolute;top:-7px;right:34px;width:12px;height:12px;border-left:1px solid var(--color-border);border-top:1px solid var(--color-border);background:var(--color-bg);transform:rotate(45deg)}.conversation-title{color:var(--color-text-muted);font-size:14px}.chat-main{flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0}.split-chat-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:16px 18px 0;background:var(--color-bg)}.split-chat-pane{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface-soft)}.split-chat-pane[data-pane=left]{border-right:1px solid var(--color-border)}.split-chat-pane-header{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px 16px;border-bottom:1px solid var(--color-border);background:var(--color-surface-card);flex-shrink:0}.split-chat-title-group{min-width:0}.split-chat-title-group h2{margin:0;color:var(--color-text);font-family:var(--font-display);font-size:24px;font-weight:400;letter-spacing:-.02em;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.split-chat-meta{display:block;color:var(--color-text-muted);font-size:12px;font-weight:500;margin-top:2px}.split-chat-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:stretch;gap:8px;width:100%}.split-chat-select{width:100%;min-width:0;min-height:34px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);padding:0 10px;font-size:13px;font-weight:500}.split-chat-new-btn{min-height:34px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);padding:0 10px;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}.split-chat-new-btn:hover:not(:disabled){border-color:var(--color-primary);color:var(--color-primary)}.split-chat-new-btn:disabled{cursor:not-allowed;opacity:.55}.split-message-list-shell{position:relative;display:flex;flex:1;min-height:0}.split-message-list{flex:1;min-height:0;overflow-y:auto;padding:18px 20px;background:var(--color-bg)}.split-message-list.empty-state{display:flex;align-items:center;justify-content:center}.compare-composer{grid-column:1 / -1;display:grid;gap:8px;margin:0 -18px;padding:14px 18px 18px;border-top:1px solid var(--color-border);background:var(--color-surface-soft)}.compare-input-row{display:flex;align-items:flex-end;gap:8px;max-width:1120px;width:100%;margin:0 auto}.compare-input-row .send-btn{min-width:48px;padding:10px 14px}.compare-send-btn{min-width:96px}.split-jump-to-latest{position:absolute;right:20px;bottom:16px;z-index:5}.message-list-shell{position:relative;display:flex;flex:1;min-height:0}.message-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:22px 28px 34px;background:var(--color-bg)}.message-list>.message-item,.message-list>.connection-error-banner,.message-list>.suggestions,.message-list>.turn-anchor-spacer{width:min(820px,100%);margin-right:auto;margin-left:auto}.message-jump-nav{position:absolute;right:28px;bottom:18px;z-index:5;display:grid;gap:8px;justify-items:end}.jump-to-latest-btn,.jump-to-prompt-btn{min-height:36px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-bg);color:var(--color-primary);padding:0 14px;font-size:13px;font-weight:500;cursor:pointer}.jump-to-latest-btn:hover,.jump-to-prompt-btn:hover{background:var(--color-surface-card)}.turn-anchor-spacer{height:max(220px,calc(100% - 160px))}.message-history-window-control{display:block;width:min(820px,100%);min-height:36px;margin:0 auto 10px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);font-size:13px;font-weight:600;cursor:pointer}.message-history-window-control:hover{border-color:#cc785c73;color:var(--color-primary)}.note-panel{display:grid;gap:14px;padding:16px}.note-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-border);padding-bottom:12px}.note-title-group{min-width:0}.note-panel-kicker{display:block;color:var(--color-primary);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:1.2px;margin-bottom:2px}.note-panel-title{color:var(--color-text);font-size:16px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}.note-panel-updated{display:block;color:var(--color-text-muted);font-size:12px;line-height:1.35;margin-top:2px}.note-panel-summary{margin:0;color:var(--color-text);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.note-export-status{flex-shrink:0;padding:3px 8px;border-radius:999px;border:1px solid var(--color-border);color:var(--color-text-muted);background:var(--color-bg);font-size:11px;font-weight:600}.note-panel-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;border-top:1px solid var(--color-border);padding-top:12px}.note-panel-actions .note-popover-btn:only-child{grid-column:1 / -1}.note-popover-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;font-size:13px;font-weight:700;text-align:center;text-decoration:none}.note-popover-btn:hover:not(:disabled){background:var(--color-surface-soft)}.note-popover-btn.primary{border-color:var(--color-primary);background:var(--color-primary);color:#fff}.note-popover-btn.primary:hover:not(:disabled){background:var(--color-primary-hover)}.note-popover-btn.teal{color:#3d7b70}.note-popover-btn:disabled{cursor:not-allowed;opacity:.55}.note-export-synced{color:#2f7f45;border-color:#5db87259;background:#5db8721a}.note-export-failed{color:var(--color-error);border-color:#c6454552;background:#c6454514}.note-export-pending{color:#8a5d10;border-color:#d4a01759;background:#d4a0171a}.note-chip{max-width:220px;padding:3px 8px;border-radius:999px;background:var(--color-surface-card);color:var(--color-text);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-chip-muted{background:var(--color-surface-strong);color:var(--color-text-muted)}.knowledge-panel-section{display:grid;gap:10px}.knowledge-panel-section[data-expanded=false]{gap:0}.knowledge-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.knowledge-panel-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.knowledge-panel-title{color:var(--color-text);font-size:14px;line-height:1.35}.knowledge-panel-count{color:var(--color-text-muted);font-size:12px;font-weight:500;line-height:1.35}.knowledge-panel-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.knowledge-panel-btn{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);min-height:30px;padding:0 10px;font-size:12px;font-weight:500;cursor:pointer}.knowledge-panel-btn:hover:not(:disabled){border-color:var(--color-primary);color:var(--color-primary)}.knowledge-panel-btn:disabled{cursor:not-allowed;opacity:.5}.knowledge-panel-toggle{color:var(--color-primary)}.knowledge-point-list{display:grid;gap:8px;max-height:220px;overflow:auto}.knowledge-point-item{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);padding:10px}.knowledge-point-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:5px}.knowledge-point-heading strong{min-width:0;color:var(--color-text);font-size:13px;line-height:1.35;overflow-wrap:anywhere}.knowledge-point-heading span{flex-shrink:0;border:1px solid var(--color-border);border-radius:999px;padding:2px 7px;color:var(--color-text-muted);background:var(--color-surface-soft);font-size:11px;font-weight:500}.knowledge-point-item p{color:#3d3d3a;font-size:12px;line-height:1.5;margin:0}.knowledge-panel-error,.knowledge-panel-empty{border:1px solid var(--color-border);border-radius:8px;padding:10px;background:var(--color-bg);color:var(--color-text-muted);font-size:12px}.knowledge-panel-error{color:var(--color-error);background:#c6454514;border-color:#c6454552}.note-detail-page{display:flex;flex-direction:column;height:100vh;background:#f8fafc}.note-detail-header{display:flex;align-items:center;gap:12px;padding:12px 24px;border-bottom:1px solid var(--color-border);background:var(--color-bg);flex-shrink:0}.note-back-link{color:var(--color-primary);font-size:14px;font-weight:600;text-decoration:none}.note-back-link:hover{text-decoration:underline}.note-detail-main{flex:1;overflow-y:auto;padding:24px}.note-detail-article{max-width:920px;margin:0 auto;background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:28px}.note-detail-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}.note-detail-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.note-detail-feishu-link{color:#0f766e;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}.note-detail-feishu-link:hover{text-decoration:underline}.note-detail-title{color:var(--color-text);font-size:28px;line-height:1.25;letter-spacing:0;overflow-wrap:anywhere}.note-detail-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--color-text-muted);font-size:13px;margin-bottom:24px}.note-detail-section{border-top:1px solid var(--color-border);padding-top:20px;margin-top:20px}.note-detail-section h2{color:var(--color-text);font-size:17px;margin-bottom:10px}.note-detail-section h3{color:#374151;font-size:14px;margin-bottom:8px}.note-detail-section .markdown-body{color:var(--color-text);font-size:15px}.note-detail-content{border-top:1px solid var(--color-border);padding-top:20px}.note-detail-content .markdown-body h2:first-child{margin-top:0}.note-detail-chips{display:flex;flex-wrap:wrap;gap:8px}.note-code-example{margin-top:12px}.note-detail-state,.note-detail-error{max-width:920px;margin:0 auto;padding:18px;border-radius:8px;background:#fff;border:1px solid var(--color-border);color:var(--color-text-muted);font-size:14px}.note-detail-error{color:var(--color-error);background:#fef2f2;border-color:#fecaca}.note-workspace-layout .main-area{background:var(--color-bg)}.note-workspace{min-height:0;flex:1;display:flex;flex-direction:column;background:var(--color-bg)}.note-workspace-topbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--color-border);background:#faf9f5f5;padding:0 18px;flex-shrink:0}.note-workspace-brand{min-width:0;display:flex;align-items:center;gap:12px}.note-workspace-brand>div{min-width:0;display:grid;gap:2px}.note-workspace-brand strong{min-width:0;overflow:hidden;color:var(--color-text);font-size:16px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.note-workspace-kicker{color:var(--color-primary);font-size:11px;font-weight:900;text-transform:uppercase}.note-workspace-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.note-save-status{display:inline-flex;align-items:center;gap:7px;min-height:32px;border:1px solid var(--color-border);border-radius:999px;background:#fff;color:var(--color-text-muted);padding:0 10px;font-size:12px;font-weight:800}.note-save-status:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--color-success)}.note-save-dirty:before,.note-save-saving:before{background:#d8903d}.note-save-error:before{background:var(--color-error)}.note-editor-btn{min-height:36px;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text);cursor:pointer;padding:0 12px;font-size:13px;font-weight:800}.note-editor-btn:hover:not(:disabled){border-color:#cc785c61;color:var(--color-primary-hover)}.note-editor-btn.teal{border-color:#3f9b8d57;background:#3f9b8d1f;color:#2c7368}.note-editor-btn:disabled{cursor:not-allowed;opacity:.62}.note-workspace-error{border-bottom:1px solid rgba(198,69,69,.24);background:#c6454514;color:var(--color-error);padding:10px 18px;font-size:13px;font-weight:700}.note-mobile-tabs{display:none}.note-workspace-grid{min-height:0;flex:1;display:grid;grid-template-columns:260px minmax(0,1fr) 324px}.note-library-empty-page{min-height:0;flex:1;display:grid;place-items:center;padding:32px}.note-library-empty-card{width:min(520px,100%);border:1px solid var(--color-border);border-radius:8px;background:#fff;padding:28px;box-shadow:0 16px 44px #1f1c1714}.note-library-empty-card h1{margin:8px 0 10px;color:var(--color-text);font-size:24px;line-height:1.2}.note-library-empty-card p{margin:0 0 20px;color:var(--color-text-muted);font-size:14px;line-height:1.7}.note-library-empty-actions{display:flex;flex-wrap:wrap;gap:10px}.note-library,.note-sidecar{min-height:0;overflow-y:auto;background:var(--color-surface-soft)}.note-library{border-right:1px solid var(--color-border)}.note-sidecar{border-left:1px solid var(--color-border);background:#fff}.note-library-section{display:grid;gap:12px;border-bottom:1px solid var(--color-border);padding:16px}.note-library-heading{display:flex;align-items:center;justify-content:space-between;color:var(--color-text-muted);font-size:12px;font-weight:900;text-transform:uppercase}.note-library-heading small{font-size:12px}.note-library-search,.note-title-input,.note-tags-input,.note-summary-input{width:100%;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text);font:inherit;outline:none}.note-library-search:focus,.note-title-input:focus,.note-tags-input:focus,.note-summary-input:focus{border-color:#cc785c94;box-shadow:0 0 0 3px #cc785c1f}.note-library-search{min-height:38px;padding:9px 11px;font-size:14px}.note-library-error{display:grid;gap:8px;border:1px solid rgba(198,69,69,.22);border-radius:8px;background:#c6454514;color:var(--color-error);padding:10px;font-size:12px;font-weight:700;line-height:1.45}.note-library-error button{width:max-content;min-height:30px;border:1px solid rgba(198,69,69,.28);border-radius:8px;background:#fff;color:var(--color-error);cursor:pointer;padding:0 10px;font-size:12px;font-weight:900}.note-library-list{display:grid;gap:8px;padding:12px}.note-library-card{min-width:0;display:grid;gap:6px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--color-text);cursor:pointer;padding:10px;text-align:left}.note-library-card:hover,.note-library-card.active{border-color:#cc785c52;background:#fff}.note-library-card strong,.note-library-card span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-library-card strong{color:var(--color-text);font-size:14px;line-height:1.35}.note-library-card span{color:var(--color-text-muted);font-size:12px;line-height:1.4}.note-library-sync{width:max-content;border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);padding:4px 8px;font-size:11px;font-weight:900}.note-library-sync-synced{background:#5db8721f;color:#317445}.note-library-sync-outdated,.note-library-sync-idle,.note-library-sync-draft,.note-library-sync-pending{background:#d8903d24;color:#8a5617}.note-library-sync-failed{background:#c645451a;color:var(--color-error)}.note-editor-shell{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg)}.note-editor-header{display:grid;gap:12px;border-bottom:1px solid var(--color-border);background:var(--color-bg);padding:18px 28px;flex-shrink:0}.note-editor-header label{display:grid;gap:6px;color:var(--color-text-muted);font-size:12px;font-weight:900;text-transform:uppercase}.note-title-input{border-color:transparent;background:transparent;padding:0;color:var(--color-text);font-family:var(--font-display);font-size:40px;font-weight:400;line-height:1.12}.note-title-input:focus{border-color:transparent;box-shadow:none}.note-summary-input,.note-tags-input{min-height:40px;padding:10px 12px;font-size:14px;line-height:1.5;resize:vertical}.note-editor-stage{min-height:0;flex:1;overflow:hidden;background:#fff}.note-tiptap-editor{position:relative;height:100%;min-height:0;color:var(--color-text)}.note-tiptap-content{height:100%}.note-tiptap-prosemirror{height:100%;min-height:0;overflow-y:auto;outline:none;border:0;border-radius:0;background:#fff;color:var(--color-text);padding:26px 28px 80px;font-size:15px;line-height:1.75;white-space:normal;overflow-wrap:anywhere}.note-tiptap-prosemirror:focus{outline:none;box-shadow:none}.note-tiptap-placeholder{position:absolute;top:26px;left:28px;z-index:1;color:var(--color-text-muted);pointer-events:none;font-size:15px;line-height:1.75}.note-tiptap-prosemirror>:first-child{margin-top:0}.note-tiptap-prosemirror h1,.note-tiptap-prosemirror h2,.note-tiptap-prosemirror h3,.note-tiptap-prosemirror h4,.note-tiptap-prosemirror h5,.note-tiptap-prosemirror h6{margin:22px 0 10px;color:var(--color-text);font-weight:800;line-height:1.25}.note-tiptap-prosemirror h1{font-size:28px}.note-tiptap-prosemirror h2{font-size:23px}.note-tiptap-prosemirror h3{font-size:19px}.note-tiptap-prosemirror p,.note-tiptap-prosemirror ul,.note-tiptap-prosemirror ol,.note-tiptap-prosemirror blockquote,.note-tiptap-prosemirror pre{margin:0 0 14px}.note-tiptap-prosemirror ul,.note-tiptap-prosemirror ol{padding-left:24px}.note-tiptap-prosemirror li{margin:4px 0}.note-tiptap-prosemirror ul[data-type=taskList]{padding-left:0;list-style:none}.note-tiptap-prosemirror li[data-type=taskItem],.note-tiptap-prosemirror li[data-checked]{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:start;margin:7px 0}.note-tiptap-prosemirror li[data-type=taskItem]>label,.note-tiptap-prosemirror li[data-checked]>label{display:grid;width:20px;min-height:28px;place-items:start center}.note-tiptap-prosemirror li[data-type=taskItem] input[type=checkbox],.note-tiptap-prosemirror li[data-checked] input[type=checkbox]{width:16px;height:16px;margin:5px 0 0;accent-color:var(--color-primary);cursor:pointer}.note-tiptap-prosemirror li[data-type=taskItem]>div,.note-tiptap-prosemirror li[data-checked]>div{min-width:0}.note-tiptap-prosemirror li[data-type=taskItem]>div>p,.note-tiptap-prosemirror li[data-checked]>div>p{margin-bottom:0}.note-tiptap-prosemirror blockquote{border-left:3px solid rgba(204,120,92,.42);background:#cc785c12;color:var(--color-text-muted);padding:10px 14px}.note-tiptap-prosemirror pre{position:relative;overflow-x:auto;border:1px solid var(--color-border);border-radius:8px;background:#1f1d1a;color:#f8f5ed;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;line-height:1.65}.note-tiptap-prosemirror pre code{display:block;padding:0;background:transparent;color:inherit;font:inherit;white-space:pre}.note-tiptap-prosemirror :not(pre)>code{border-radius:5px;background:#1f1c1714;color:var(--color-primary-hover);padding:2px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.92em}.note-sidecar-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-bottom:1px solid var(--color-border);background:var(--color-surface-soft);padding:8px}.note-sidecar-tabs button{min-height:34px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:12px;font-weight:900}.note-sidecar-tabs button.active{border-color:var(--color-border);background:#fff;color:var(--color-text)}.note-sidecar-panel{display:grid;gap:12px;padding:16px}.note-sidecar-panel h2{margin:0;color:var(--color-text);font-size:16px;line-height:1.35}.note-sidecar-panel>button,.note-sidecar-link{min-height:38px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);color:var(--color-text);cursor:pointer;padding:10px 12px;font-size:13px;font-weight:800;text-align:left;text-decoration:none}.note-sidecar-panel>button:hover,.note-sidecar-link:hover{border-color:#cc785c5c;background:#cc785c14}.note-sidecar-muted{color:var(--color-text-muted);font-size:13px;line-height:1.55}.note-source-card{display:grid;gap:6px;border:1px solid var(--color-border);border-left:3px solid var(--color-surface-strong);border-radius:8px;background:#fff;color:var(--color-text);cursor:pointer;padding:10px;text-align:left}.note-source-card:hover{border-color:#cc785c57;border-left-color:var(--color-primary)}.note-source-card strong{color:var(--color-primary-hover);font-size:12px}.note-source-card span{color:var(--color-text-muted);font-size:13px;line-height:1.55}.note-sync-card{display:grid;gap:8px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);padding:12px}.note-sync-card strong{color:var(--color-text);font-size:14px}.note-sync-card span{color:var(--color-text-muted);font-size:13px;line-height:1.5}.note-sidecar-error{color:var(--color-error)!important}@media(max-width:1180px){.note-workspace-grid{grid-template-columns:220px minmax(0,1fr) 290px}.note-title-input{font-size:34px}}@media(max-width:920px){.note-workspace-topbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 16px}.note-workspace-actions{min-width:0;overflow-x:auto;padding-bottom:2px}.note-save-status{min-width:max-content}.note-mobile-tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--color-border);background:#fff;padding:8px 12px;flex-shrink:0}.note-mobile-tabs button{min-width:max-content;min-height:34px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--color-text-muted);cursor:pointer;padding:0 12px;font-size:12px;font-weight:900}.note-mobile-tabs button.active{border-color:var(--color-border);background:var(--color-surface-soft);color:var(--color-text)}.note-workspace-grid{display:block;min-height:0;overflow:hidden}.note-library,.note-sidecar,.note-editor-shell{display:none;height:100%}.note-workspace-grid[data-mobile-panel=editor] .note-editor-shell{display:flex}.note-workspace-grid[data-mobile-panel=library] .note-library{display:block;border-right:0}.note-workspace-grid[data-mobile-panel=ai] .note-sidecar,.note-workspace-grid[data-mobile-panel=source] .note-sidecar,.note-workspace-grid[data-mobile-panel=sync] .note-sidecar{display:block;border-left:0}.note-sidecar-tabs{display:none}.note-tiptap-prosemirror{min-height:360px}}@media(max-width:640px){.note-workspace-brand strong{max-width:240px}.note-workspace-actions .note-editor-btn{min-width:max-content}.note-editor-header{padding:16px}.note-title-input{font-size:30px}.note-tiptap-prosemirror{padding:20px 16px 80px}}.note-workspace-simplified{background:#fff}.note-workspace-topbar-quiet{min-height:56px;background:#fffdf9f5;padding:0 16px}.note-library-toggle{display:none}.note-editor-btn-primary{border-color:transparent;background:var(--color-primary);color:#fff}.note-editor-btn-primary:hover:not(:disabled){border-color:transparent;background:var(--color-primary-hover);color:#fff}.note-editor-icon-btn{width:36px;min-width:36px;padding:0}.note-workspace-simplified button:focus,.note-workspace-simplified a:focus{outline:none}.note-workspace-simplified button:focus-visible,.note-workspace-simplified a:focus-visible{outline:none;box-shadow:0 0 0 3px #cc785c2e}.note-more-actions{position:relative;display:flex}.note-more-menu{position:absolute;top:calc(100% + 8px);right:58px;z-index:30;display:grid;min-width:178px;border:1px solid var(--color-border);border-radius:8px;background:#fff;box-shadow:0 18px 48px #1f1c171f;padding:6px}.note-more-menu button{min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--color-text);cursor:pointer;padding:0 10px;font-size:13px;font-weight:800;text-align:left}.note-more-menu button:hover:not(:disabled){background:var(--color-surface-soft)}.note-more-menu button:disabled{cursor:not-allowed;opacity:.55}.note-workspace-grid-quiet{position:relative;min-height:0;overflow:hidden;grid-template-columns:minmax(220px,272px) minmax(0,1fr) 58px;background:#fff}.note-library-quiet{background:#faf9f5d1}.note-library-quiet .note-library-section{position:relative;gap:10px;padding:14px}.note-library-close{display:none}.note-library-quiet .note-library-list{gap:4px;padding:8px}.note-library-quiet .note-library-card{gap:7px;border-radius:8px;padding:11px 10px}.note-library-quiet .note-library-card.active{background:#fff;box-shadow:0 8px 24px #cc785c14}.note-library-meta{display:inline-flex;align-items:center;gap:7px;overflow:hidden;color:var(--color-text-muted);font-size:11px;font-weight:800;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.note-library-dot{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--color-success)}.note-library-dot-outdated,.note-library-dot-idle,.note-library-dot-draft,.note-library-dot-pending{background:#d8903d}.note-library-dot-failed{background:var(--color-error)}.note-editor-shell-quiet{background:#fff}.note-document-scroll{min-height:0;flex:1;overflow-y:auto;background:#fff;padding:34px clamp(24px,5vw,82px) 80px}.note-document{width:min(780px,100%);margin:0 auto}.note-document-title{width:100%;color:var(--color-text);font-size:clamp(34px,4.6vw,52px);line-height:1.08}.note-document-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 28px}.note-document-tags{display:flex;min-width:0;flex-wrap:wrap;gap:6px}.note-document-chip,.note-document-muted{border:1px solid var(--color-border);border-radius:999px;background:#fffdf9;color:var(--color-text-muted);padding:5px 9px;font-size:12px;font-weight:800;line-height:1.2}.note-document-muted{border-color:transparent;background:transparent;padding-left:0}.note-detail-toggle{min-height:34px;border:1px solid var(--color-border);border-radius:8px;background:#fffdf9;color:var(--color-text);cursor:pointer;padding:0 12px;font-size:13px;font-weight:800}.note-editor-details{display:none;gap:14px;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);margin:0 0 26px;padding:18px 0}.note-editor-details.open{display:grid}.note-editor-details label{display:grid;gap:6px;color:var(--color-text-muted);font-size:12px;font-weight:900;text-transform:uppercase}.note-editor-stage-document{min-height:520px;overflow:visible;background:transparent}.note-editor-stage-document .note-tiptap-prosemirror{height:auto;min-height:520px;overflow:visible;padding:0 0 80px;font-size:16px}.note-editor-stage-document .note-tiptap-prosemirror:focus{box-shadow:none}.note-editor-stage-document .note-tiptap-placeholder{top:0;left:0;font-size:16px}.note-action-rail{display:grid;align-content:start;gap:8px;border-left:1px solid var(--color-border);background:#fffdf9;padding:10px 8px}.note-action-rail-btn{display:grid;width:40px;height:40px;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:12px;font-weight:900}.note-action-rail-btn.active,.note-action-rail-btn:hover{border-color:#cc785c3d;background:#cc785c1c;color:var(--color-primary-hover)}.note-sidecar-drawer{position:absolute;top:0;right:58px;bottom:0;z-index:25;display:none;width:min(360px,calc(100% - 58px));grid-template-rows:auto 1fr;overflow:hidden;border-left:1px solid var(--color-border);background:#fff;box-shadow:-18px 0 52px #1f1c171f}.note-sidecar-drawer.open{display:grid}.note-sidecar-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-border);background:#fffdf9;padding:12px 14px}.note-sidecar-drawer-head strong{color:var(--color-text);font-size:15px}.note-sidecar-drawer .note-sidecar-panel{overflow-y:auto}@media(max-width:920px){.note-workspace-topbar-quiet{grid-template-columns:minmax(0,1fr) auto}.note-library-toggle{display:inline-flex}.note-workspace-topbar-quiet .note-workspace-actions{overflow:visible}.note-workspace-grid-quiet{display:grid;grid-template-columns:minmax(0,1fr) 58px}.note-workspace-grid-quiet .note-editor-shell-quiet{display:flex;grid-column:1}.note-library-quiet{position:absolute;top:0;bottom:0;left:0;z-index:28;display:none;width:min(320px,calc(100% - 58px));height:100%;border-right:1px solid var(--color-border);box-shadow:18px 0 46px #1f1c171f}.note-workspace-grid-quiet[data-mobile-panel=library] .note-library-quiet{display:block}.note-library-close{position:absolute;top:10px;right:12px;display:inline-flex;min-height:28px;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text-muted);cursor:pointer;padding:0 9px;font-size:12px;font-weight:900}.note-action-rail{display:grid;grid-column:2}.note-sidecar-drawer{right:58px;width:min(360px,calc(100% - 58px))}}@media(max-width:640px){.note-workspace-topbar-quiet{gap:8px;padding:10px 12px}.note-workspace-topbar-quiet .note-workspace-brand{gap:8px}.note-workspace-topbar-quiet .note-workspace-brand>div{display:none}.note-workspace-topbar-quiet .note-save-status{max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-workspace-topbar-quiet .note-editor-btn-primary{display:none}.note-workspace-grid-quiet{grid-template-columns:minmax(0,1fr)}.note-document-scroll{padding:26px 18px 96px}.note-document-title{font-size:34px}.note-document-meta{align-items:flex-start;flex-direction:column}.note-editor-stage-document .note-tiptap-prosemirror{min-height:430px;padding-bottom:96px}.note-action-rail{position:absolute;right:0;bottom:0;left:0;z-index:22;display:flex;justify-content:center;border-top:1px solid var(--color-border);border-left:0;padding:8px}.note-sidecar-drawer{top:auto;right:0;bottom:56px;left:0;width:auto;height:min(62vh,520px);border-top:1px solid var(--color-border);border-left:0}.note-library-quiet{width:min(330px,88vw)}}.url-doc-page{display:flex;flex-direction:column;height:100vh;background:#f8fafc}.url-doc-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;border-bottom:1px solid var(--color-border);background:var(--color-bg);flex-shrink:0}.url-doc-title{color:var(--color-text);font-size:24px;line-height:1.2;letter-spacing:0}.url-doc-feishu-state{flex:0 0 auto;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;border:1px solid #fecaca;background:#fef2f2;color:#b91c1c}.url-doc-feishu-state.synced{border-color:#99f6e4;background:#f0fdfa;color:#0f766e}.url-doc-main{flex:1;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:18px;padding:24px}.url-doc-workspace,.url-doc-list{background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:20px;min-width:0}.url-doc-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.url-doc-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.url-doc-preview{margin-top:18px;border-top:1px solid var(--color-border);padding-top:18px}.url-doc-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.url-doc-preview-header h2{color:var(--color-text);font-size:20px;line-height:1.35;letter-spacing:0;overflow-wrap:anywhere}.url-doc-preview-header span:last-child{color:var(--color-text-muted);font-size:12px;white-space:nowrap}.url-doc-source-url{color:var(--color-text-muted);font-size:13px;overflow-wrap:anywhere;margin:6px 0 12px}.url-doc-preview-text{max-height:260px;overflow:auto;padding:14px;border:1px solid var(--color-border);border-radius:8px;background:#f8fafc;color:#334155;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;line-height:1.55;white-space:pre-wrap}.url-doc-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px 0;border-top:1px solid var(--color-border);color:inherit;text-decoration:none}.url-doc-row:first-of-type{border-top:0}.url-doc-row strong{display:block;color:var(--color-text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.url-doc-row p{margin-top:4px;color:var(--color-text-muted);font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.url-doc-row small{grid-column:1 / -1;color:var(--color-text-muted);font-size:12px}.url-doc-action-link{border:0;background:transparent;cursor:pointer;padding:0}.url-doc-action-link:disabled{cursor:not-allowed;opacity:.55}.url-doc-inline-error{max-width:none;margin:12px 0 0}.profile-page{min-height:100%;overflow:auto;background:var(--color-bg)}.profile-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--color-border);background:#faf9f5f0;padding:18px 28px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.profile-header h1{color:var(--color-text);font-family:var(--font-display);font-size:34px;font-weight:400;line-height:1.1}.profile-kicker{color:var(--color-primary);display:block;font-size:12px;font-weight:800;margin-bottom:4px;text-transform:uppercase}.profile-back-link{border:1px solid var(--color-border);border-radius:8px;color:var(--color-text);font-size:13px;font-weight:700;padding:10px 12px;text-decoration:none}.profile-main{display:grid;gap:14px;width:min(1180px,100%);margin:0 auto;padding:28px}.profile-state,.profile-error,.profile-notice{border-radius:8px;font-size:14px;padding:12px 14px}.profile-state{border:1px solid var(--color-border);background:#fff;color:var(--color-text-muted)}.profile-error{background:#c645451a;color:var(--color-error)}.profile-notice{background:#5db87224;color:#2f7a43}.profile-shell{display:grid;gap:16px}.profile-basics-panel,.profile-learning-panel,.profile-panel{border:1px solid var(--color-border);border-radius:8px;background:#fff;box-shadow:0 16px 42px #1414130f}.profile-panel-heading span{color:var(--color-primary);font-size:12px;font-weight:800;text-transform:uppercase}.profile-panel-title p,.profile-empty-text{color:var(--color-text-muted);font-size:13px;line-height:1.5}.profile-basics-panel{display:grid;gap:16px;padding:18px}.profile-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.profile-panel-title h2,.profile-panel-heading h2{color:var(--color-text);font-size:17px;font-weight:800;line-height:1.3}.profile-panel-title button{border:1px solid rgba(204,120,92,.46);border-radius:8px;background:var(--color-primary);color:#fff;cursor:pointer;flex:0 0 auto;font-size:13px;font-weight:800;min-height:38px;padding:0 16px}.profile-panel-title button:disabled{cursor:not-allowed;opacity:.62}.profile-field-row{display:grid;grid-template-columns:160px minmax(260px,1fr);gap:12px}.profile-field-row.compact{grid-template-columns:160px minmax(260px,360px)}.profile-basics-panel label{display:grid;gap:7px;color:var(--color-text-muted);font-size:12px;font-weight:800}.profile-basics-panel input,.profile-basics-panel select,.profile-basics-panel textarea{width:100%;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);font:inherit;font-size:14px;line-height:1.45;min-height:42px;padding:10px 12px}.profile-basics-panel textarea{min-height:112px;resize:vertical}.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-learning-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.65fr);gap:20px;padding:18px}.profile-learning-copy{display:grid;align-content:center;gap:6px;min-width:0}.profile-learning-copy span{color:var(--color-primary);font-size:12px;font-weight:800;text-transform:uppercase}.profile-learning-copy h2{color:var(--color-text);font-size:17px;font-weight:800}.profile-learning-copy p{color:var(--color-text-muted);font-size:14px;line-height:1.6}.profile-learning-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-left:1px solid var(--color-border);padding-left:18px}.profile-learning-meta div{display:grid;gap:5px;align-content:center;min-width:0;padding:0 12px}.profile-learning-meta strong{color:var(--color-text);font-size:18px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}.profile-learning-meta span{color:var(--color-text-muted);font-size:12px;font-weight:700}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-panel{display:grid;align-content:start;gap:14px;min-height:210px;padding:18px}.profile-focus-panel,.profile-next-panel{min-height:250px}.profile-panel-heading{display:grid;gap:4px}.profile-tag-list{display:flex;flex-wrap:wrap;gap:10px}.profile-tag-list span{border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text);font-size:14px;font-weight:600;line-height:1.3;max-width:100%;overflow-wrap:anywhere;padding:8px 11px}.profile-action-list{display:grid;gap:10px;color:var(--color-text);font-size:14px;line-height:1.55;list-style-position:inside}.profile-action-list li{border-bottom:1px solid var(--color-border);padding-bottom:10px}.profile-action-list li:last-child{border-bottom:none;padding-bottom:0}@media(max-width:980px){.profile-field-row,.profile-field-row.compact,.profile-form-grid,.profile-learning-panel,.profile-grid{grid-template-columns:1fr}.profile-learning-meta{grid-template-columns:repeat(3,minmax(0,1fr));border-left:none;border-top:1px solid var(--color-border);padding-left:0;padding-top:14px}}@media(max-width:767px){.profile-header{align-items:flex-start;padding:14px 16px}.profile-header h1{font-size:28px}.profile-main,.profile-basics-panel,.profile-learning-panel,.profile-panel{padding:16px}.profile-learning-meta{grid-template-columns:1fr}.profile-learning-meta div{border-bottom:1px solid var(--color-border);min-height:58px;padding:0}.profile-learning-meta div:last-child{border-bottom:none}.profile-panel-title{display:grid}.profile-panel-title button{width:100%}}.maintenance-page{height:100%;display:flex;flex-direction:column;overflow:hidden;background:#f8fafc}.maintenance-header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:20px 28px;border-bottom:1px solid var(--color-border);background:#fff;flex-shrink:0}.maintenance-title{font-size:24px;line-height:1.2;color:var(--color-text)}.maintenance-main{flex:1;overflow-y:auto;padding:24px 28px 40px;display:grid;gap:18px;align-content:start;max-width:1120px;width:100%}.maintenance-toolbar,.maintenance-counts,.maintenance-docs,.maintenance-danger{background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:18px}.maintenance-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.maintenance-field{display:grid;gap:6px;min-width:220px}.maintenance-field span{font-size:12px;font-weight:700;color:var(--color-text-muted);text-transform:uppercase}.maintenance-field select,.maintenance-field input{min-height:42px;border:1px solid var(--color-border);border-radius:8px;padding:8px 10px;color:var(--color-text);background:#fff;font-size:14px}.maintenance-confirm-field{max-width:420px}.maintenance-btn{min-height:42px;border:none;border-radius:8px;padding:0 14px;font-weight:700;cursor:pointer;transition:opacity .15s ease,background .15s ease}.maintenance-btn:disabled{cursor:not-allowed;opacity:.45}.maintenance-btn-secondary{background:var(--color-primary);color:#fff}.maintenance-btn-secondary:hover:not(:disabled){background:var(--color-primary-hover)}.maintenance-btn-danger{background:var(--color-error);color:#fff;margin-top:12px}.maintenance-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.maintenance-section-header h2{font-size:16px;color:var(--color-text)}.maintenance-section-header span{font-size:12px;color:var(--color-text-muted);font-weight:700;text-transform:uppercase}.maintenance-count-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.maintenance-count-item{display:grid;gap:6px;border:1px solid var(--color-border);border-radius:8px;padding:14px;background:#f9fafb;min-height:112px}.maintenance-count-name{font-size:13px;color:var(--color-text);font-weight:700;overflow-wrap:anywhere}.maintenance-count-item strong{font-size:28px;line-height:1;color:var(--color-text)}.maintenance-count-desc{color:var(--color-text-muted);font-size:12px;line-height:1.4}.maintenance-count-empty{color:var(--color-text-muted);min-height:72px}.maintenance-error{border:1px solid rgba(239,68,68,.35);background:#ef444414;color:var(--color-error);border-radius:8px;padding:12px 14px;font-size:14px}.maintenance-danger{border-color:#ef444459}.maintenance-doc-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.maintenance-doc-actions .maintenance-btn-danger{margin-top:0}.maintenance-doc-list{display:grid;gap:10px}.maintenance-doc-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:12px;cursor:pointer;transition:border-color .15s ease,background .15s ease}.maintenance-doc-row:hover{border-color:#2563eb59;background:#f8fbff}.maintenance-doc-row.is-selected{border-color:#2563eb8c;background:#2563eb0f}.maintenance-doc-row input{width:18px;height:18px;margin-top:2px;accent-color:var(--color-primary)}.maintenance-doc-body{display:grid;gap:6px;min-width:0}.maintenance-doc-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.maintenance-doc-title-line strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-size:14px}.maintenance-doc-title-line span{flex-shrink:0;border:1px solid var(--color-border);border-radius:999px;padding:2px 8px;background:#fff;color:var(--color-text-muted);font-size:12px;font-weight:700}.maintenance-doc-summary{color:var(--color-text-muted);font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.maintenance-doc-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--color-text-muted);font-size:12px}.maintenance-doc-meta span{max-width:100%;overflow-wrap:anywhere}.maintenance-doc-empty{border:1px dashed var(--color-border);border-radius:8px;padding:18px;color:var(--color-text-muted);background:#f9fafb}.admin-chat-page{height:100%;display:flex;flex-direction:column;overflow-y:auto;background:#f8fafc}.admin-chat-main{flex:0 0 auto;min-height:calc(100vh - 85px);overflow:visible;padding:24px 28px 40px;display:grid;align-items:start;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:16px}.admin-chat-main>.maintenance-error{grid-column:1 / -1;margin-top:0}.admin-chat-list,.admin-chat-detail{min-width:0;min-height:0;background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:18px}.admin-chat-list{position:sticky;top:24px;max-height:calc(100vh - 132px);display:flex;flex-direction:column;gap:14px;overflow:hidden}.admin-chat-search{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.admin-chat-search .maintenance-field{flex:1 1 220px}.admin-chat-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--color-text-muted);font-size:12px}.admin-chat-list-actions span{margin-left:auto;margin-right:2px;font-weight:700}.admin-chat-records{display:grid;gap:10px;min-height:0;overflow-y:auto;padding-right:2px}.admin-chat-record{display:grid;gap:6px;width:100%;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:12px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.admin-chat-record:hover,.admin-chat-record.active{border-color:#2563eb80;background:#f8fbff}.admin-chat-record-title{color:var(--color-text);font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-chat-record-preview{color:var(--color-text-muted);font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.admin-chat-record-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--color-text-muted);font-size:12px}.admin-chat-detail{display:flex;flex-direction:column;gap:14px;min-height:calc(100vh - 132px);overflow:visible}.admin-chat-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--color-border);padding-bottom:14px}.admin-chat-detail-header h2{color:var(--color-text);font-size:22px;line-height:1.25;overflow-wrap:anywhere}.admin-chat-detail-header p{margin-top:6px;color:var(--color-text-muted);font-size:13px}.admin-chat-detail-header .maintenance-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;flex-shrink:0}.admin-chat-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-chat-stat-grid div{border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:12px;min-width:0}.admin-chat-stat-grid span{display:block;color:var(--color-text-muted);font-size:11px;font-weight:800;text-transform:uppercase}.admin-chat-stat-grid strong{display:block;margin-top:4px;color:var(--color-text);font-size:20px;line-height:1.2;overflow-wrap:anywhere}.admin-chat-messages{display:grid;align-content:start;gap:12px;min-height:0;overflow:visible;padding-right:2px}.admin-chat-message{border:1px solid var(--color-border);border-radius:8px;background:#fff;overflow:hidden}.admin-chat-message header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid #eef2f7;background:#f9fafb;padding:10px 12px;color:var(--color-text-muted);font-size:12px}.admin-chat-role{border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;color:#fff}.admin-chat-role.role-user{background:#2563eb}.admin-chat-role.role-assistant{background:#059669}.admin-chat-role.role-system{background:#7c3aed}.admin-chat-role.role-tool{background:#b45309}.admin-chat-message-body{padding:14px;color:var(--color-text);font-size:14px;line-height:1.6}.admin-chat-message-body.plain{white-space:pre-wrap;overflow-wrap:anywhere}.admin-chat-message-body.markdown-host .markdown-body{font-size:14px}.admin-chat-trace{border-bottom:1px solid #eef2f7;background:#fbfdff}.admin-chat-trace summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;color:#475569;cursor:pointer;font-size:12px}.admin-chat-trace summary::marker{color:#94a3b8}.admin-chat-trace-label{color:#111827;font-weight:900}.admin-chat-trace summary>span:not(.admin-chat-trace-label),.admin-chat-trace summary>code{border:1px solid #dfe3ea;border-radius:999px;background:#fff;padding:2px 8px;color:#475569;font-size:11px;font-weight:800}.admin-chat-trace code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.admin-chat-trace-body{display:grid;gap:10px;padding:0 12px 12px}.admin-chat-trace-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(90px,.4fr);gap:8px}.admin-chat-trace-grid div{min-width:0;display:grid;gap:3px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:8px}.admin-chat-trace-grid span{color:#64748b;font-size:10px;font-weight:900;text-transform:uppercase}.admin-chat-trace-grid code{color:#111827;font-size:12px;overflow-wrap:anywhere}.admin-chat-trace-modules{display:grid;gap:6px}.admin-chat-trace-module{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,auto);align-items:center;gap:10px;width:100%;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:8px 10px;text-align:left;cursor:pointer}.admin-chat-trace-module:hover:not(:disabled),.admin-chat-trace-module.active{border-color:#2563eb73;background:#f8fbff}.admin-chat-trace-module:disabled{cursor:wait;opacity:.72}.admin-chat-trace-module>div{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-chat-trace-module strong{color:#111827;font-size:12px;overflow-wrap:anywhere}.admin-chat-trace-module span,.admin-chat-trace-module code{border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;color:#475569;padding:2px 7px;font-size:11px;font-weight:800}.admin-chat-module-detail,.admin-chat-prompt-snapshot{display:grid;gap:10px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;padding:12px}.admin-chat-prompt-snapshot-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;padding-bottom:10px}.admin-chat-prompt-snapshot-header h3{margin:1px 0 0;color:#111827;font-size:15px;line-height:1.25}.admin-chat-prompt-message-list{display:grid;gap:8px}.admin-chat-prompt-message{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#f8fafc}.admin-chat-prompt-message header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e5e7eb;background:#fff;padding:8px 10px}.admin-chat-prompt-message header span{border:1px solid #dfe3ea;border-radius:999px;background:#f8fafc;color:#111827;padding:2px 8px;font-size:11px;font-weight:900}.admin-chat-prompt-message header em{color:#64748b;font-size:11px;font-style:normal;font-weight:800}.admin-chat-prompt-message pre{max-height:520px;margin:0;overflow:auto;background:#0f172a;color:#dbeafe;padding:12px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.admin-chat-module-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;padding-bottom:10px}.admin-chat-module-detail-header h3{margin:1px 0 0;color:#111827;font-size:15px;line-height:1.25;overflow-wrap:anywhere}.admin-chat-module-detail-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.admin-chat-module-detail-meta span,.admin-chat-module-change-log span,.admin-chat-module-detail-grid section>span{color:#64748b;font-size:10px;font-weight:900;text-transform:uppercase}.admin-chat-module-detail-meta span{border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;padding:3px 8px}.admin-chat-module-change-log{display:grid;gap:5px;border:1px solid #eef2f7;border-radius:8px;background:#f8fafc;padding:9px 10px}.admin-chat-module-change-log p{color:#334155;font-size:13px;line-height:1.45}.admin-chat-module-detail-grid{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(280px,1.4fr);gap:10px}.admin-chat-module-detail-grid section{min-width:0;display:grid;align-content:start;gap:6px}.admin-chat-module-detail-grid pre{max-height:520px;margin:0;overflow:auto;border:1px solid #e5e7eb;border-radius:8px;background:#0f172a;color:#dbeafe;padding:12px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.admin-chat-empty-message,.admin-chat-detail-empty{border:1px dashed var(--color-border);border-radius:8px;padding:18px;color:var(--color-text-muted);background:#f9fafb}.admin-chat-detail-empty{align-self:start}.profile-playground-page{height:100%;display:flex;flex-direction:column;overflow-y:auto;background:#f8fafc}.profile-playground-main{flex:0 0 auto;min-height:calc(100vh - 85px);overflow:visible;padding:24px 28px 40px;display:grid;align-items:start;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:16px}.profile-playground-main>.maintenance-error{grid-column:1 / -1;margin-top:0}.profile-playground-sidebar,.profile-playground-control,.profile-playground-result,.profile-playground-source,.profile-playground-before-after,.profile-playground-topic-upserts,.profile-playground-empty{min-width:0;background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:18px}.profile-playground-sidebar{position:sticky;top:24px;grid-row:span 2;max-height:calc(100vh - 132px);display:flex;flex-direction:column;gap:14px;overflow:hidden}.profile-playground-control,.profile-playground-workbench{grid-column:2}.profile-playground-workbench{min-width:0;display:grid;gap:16px}.profile-playground-search{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.profile-playground-search .maintenance-field{flex:1 1 220px}.profile-playground-records{display:grid;gap:10px;min-height:0;overflow-y:auto;padding-right:2px}.profile-playground-record{display:grid;gap:6px;width:100%;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:12px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.profile-playground-record:hover,.profile-playground-record.active{border-color:#2563eb80;background:#f8fbff}.profile-playground-selected{margin-top:14px;display:grid;gap:5px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;padding:12px}.profile-playground-selected strong{color:#111827;font-size:15px;overflow-wrap:anywhere}.profile-playground-selected span{color:var(--color-text-muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere}.profile-playground-turns{margin-top:14px;display:grid;gap:10px}.profile-playground-turn-list{display:grid;gap:8px;max-height:300px;overflow-y:auto;padding-right:2px}.profile-playground-turn{width:100%;display:grid;gap:6px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:10px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.profile-playground-turn:hover,.profile-playground-turn.active{border-color:#2563eb80;background:#f8fbff}.profile-playground-turn-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-playground-turn-title strong{min-width:0;color:#111827;font-size:13px;font-weight:900}.profile-playground-turn-title em{flex:0 0 auto;border:1px solid #dfe3ea;border-radius:999px;background:#f9fafb;color:#475569;padding:2px 7px;font-size:10px;font-style:normal;font-weight:900;text-transform:uppercase}.profile-playground-turn-preview{color:var(--color-text-muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.profile-playground-selected-turn{background:#f8fbff;border-color:#2563eb42}.profile-playground-form{margin-top:14px;display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.profile-playground-form .maintenance-field:first-child{flex:1 1 420px}.profile-playground-page .maintenance-btn{background:var(--color-primary);color:#fff}.profile-playground-summary{margin-top:14px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.profile-playground-summary div,.profile-playground-compact{min-width:0;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;padding:12px}.profile-playground-summary span,.profile-playground-compact span,.profile-playground-compact small,.profile-playground-topic div span,.profile-playground-json-panel header h3{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase}.profile-playground-summary strong,.profile-playground-compact strong{display:block;margin-top:4px;color:#111827;font-size:15px;line-height:1.35;overflow-wrap:anywhere}.profile-playground-message-list,.profile-playground-topic-list{margin-top:14px;display:grid;gap:12px}.profile-playground-before-after{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-playground-before-after-column{min-width:0;display:grid;gap:10px}.profile-playground-compact{display:grid;gap:4px}.profile-playground-compact+.profile-playground-compact{background:#f8fbff;border-color:#2563eb42}.profile-playground-topic{display:grid;gap:8px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;padding:12px}.profile-playground-topic header strong{color:#111827;font-size:15px;overflow-wrap:anywhere}.profile-playground-topic header span{border:1px solid #dfe3ea;border-radius:999px;background:#fff;color:#475569;padding:3px 8px;font-size:11px;font-weight:900}.profile-playground-topic p{color:#334155;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.profile-playground-topic div span{border:1px solid #e5e7eb;border-radius:999px;background:#fff;padding:2px 8px}.profile-playground-json-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-playground-json-panel{min-width:0;display:grid;gap:8px;border:1px solid var(--color-border);border-radius:8px;background:#fff;padding:14px}.profile-playground-json-panel pre{max-height:460px;margin:0;overflow:auto;border-radius:8px;background:#0f172a;color:#dbeafe;padding:12px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.profile-playground-page{height:100%;display:grid;grid-template-rows:auto 1fr;overflow:hidden;background:var(--color-bg)}.profile-playground-topbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--color-border);background:#faf9f5f0;padding:16px 24px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.profile-playground-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.profile-playground-main{min-height:0;overflow:hidden;padding:18px;display:grid;align-items:stretch;grid-template-columns:minmax(280px,320px) minmax(280px,340px) minmax(0,1fr);gap:14px}.profile-playground-main>.maintenance-error{grid-column:1 / -1;margin:0}.profile-playground-panel{min-width:0;min-height:0;border:1px solid var(--color-border);border-radius:8px;background:#fff;box-shadow:0 18px 44px #14141312;overflow:hidden}.profile-playground-sidebar,.profile-playground-turn-column{position:static;top:auto;grid-row:auto;max-height:none;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:0;padding:0}.profile-playground-turn-column{grid-template-rows:auto auto minmax(0,1fr) auto}.profile-playground-workspace{grid-column:auto;display:grid;grid-template-rows:auto minmax(0,1fr)}.profile-playground-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-border);padding:14px}.profile-playground-panel-header h2{margin:0;color:var(--color-text);font-size:15px;font-weight:850;line-height:1.3}.profile-playground-panel-header p{margin:4px 0 0;color:var(--color-text-muted);font-size:12px;line-height:1.45}.profile-playground-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap}.profile-playground-pill.applied{border-color:#5db87270;background:#5db8721f;color:#26733d}.profile-playground-btn{border:1px solid transparent;border-radius:8px;background:var(--color-primary);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;font-size:13px;font-weight:800}.profile-playground-btn:hover:not(:disabled){background:var(--color-primary-hover)}.profile-playground-btn:disabled{cursor:not-allowed;opacity:.58}.profile-playground-btn.secondary{border-color:var(--color-border);background:#fff;color:var(--color-text)}.profile-playground-btn.secondary:hover:not(:disabled){background:var(--color-surface-soft)}.profile-playground-btn.danger{border-color:#a9583e;background:#a9583e;color:#fff}.profile-playground-btn.danger:hover:not(:disabled){background:#8f422d}.profile-playground-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:8px;border-bottom:1px solid var(--color-border);background:var(--color-surface-soft);padding:12px 14px}.profile-playground-search input{min-width:0;height:38px;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text);padding:0 11px;outline:none}.profile-playground-search input:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #cc785c1f}.profile-playground-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-bottom:1px solid var(--color-border);padding:10px 14px}.profile-playground-list-actions>span{margin-right:auto;color:var(--color-text-muted);font-size:12px;font-weight:800}.profile-playground-list{display:grid;align-content:start;gap:8px;min-height:0;overflow:auto;padding:12px}.profile-playground-row{width:100%;display:grid;gap:7px;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:inherit;cursor:pointer;padding:11px;text-align:left;transition:border-color .15s ease,background .15s ease,transform .15s ease}.profile-playground-row:hover{border-color:#d8cec0;background:#fffdf9;transform:translateY(-1px)}.profile-playground-row.active{border-color:#cc785cb8;background:#fff7f2;box-shadow:inset 3px 0 0 var(--color-primary)}.profile-playground-row-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-playground-row-title strong{min-width:0;color:var(--color-text);font-size:13px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-playground-row-title em{flex:0 0 auto;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);padding:2px 7px;font-size:10px;font-style:normal;font-weight:850;text-transform:uppercase}.profile-playground-row-preview{color:var(--color-text);display:-webkit-box;font-size:12px;line-height:1.45;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.profile-playground-row-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--color-text-muted);font-size:11px;font-weight:750}.profile-playground-row-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-playground-context-card,.profile-playground-run-card{display:grid;gap:8px;margin:12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);padding:12px}.profile-playground-context-card span{color:var(--color-primary);font-size:11px;font-weight:850;text-transform:uppercase}.profile-playground-context-card strong{color:var(--color-text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.profile-playground-context-card small{color:var(--color-text-muted);font-size:12px;font-weight:700}.profile-playground-run-card{border-color:#cc785c47;background:linear-gradient(180deg,#fffaf6,#fff)}.profile-playground-run-card .profile-playground-btn{width:100%;height:42px}.profile-playground-run-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-playground-mini-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:6px;color:var(--color-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:11px;line-height:1.4}.profile-playground-mini-flow span{border:1px solid var(--color-border);border-radius:6px;background:#fff;padding:6px;text-align:center}.profile-playground-workspace-body{min-height:0;overflow:auto;padding:14px}.profile-playground-summary{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;border-bottom:1px solid var(--color-border);background:var(--color-surface-soft);padding:12px 14px}.profile-playground-metric{min-width:0;border:1px solid var(--color-border);border-radius:8px;background:#fff;padding:10px}.profile-playground-metric span{display:block;color:var(--color-text-muted);font-size:10px;font-weight:850;text-transform:uppercase}.profile-playground-metric strong{display:block;margin-top:4px;color:var(--color-text);font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-playground-tabs{display:flex;gap:8px;border-bottom:1px solid var(--color-border);margin-bottom:14px}.profile-playground-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--color-text-muted);cursor:pointer;padding:10px 4px;font-size:13px;font-weight:850}.profile-playground-tab.active{border-color:var(--color-primary);color:var(--color-text)}.profile-playground-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;align-items:start}.profile-playground-overview-stack{display:grid;gap:14px}.profile-playground-section{min-width:0;border:1px solid var(--color-border);border-radius:8px;background:#fff;overflow:hidden}.profile-playground-section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--color-border);background:#fffdf9;padding:11px 12px}.profile-playground-section-header h3{margin:0;color:var(--color-text);font-size:13px;font-weight:850}.profile-playground-section-header span{color:var(--color-text-muted);font-size:11px;font-weight:850;text-transform:uppercase}.profile-playground-message-list,.profile-playground-topic-list{margin-top:0;display:grid;gap:10px;padding:12px}.profile-playground-message{display:grid;gap:6px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);padding:10px}.profile-playground-message header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--color-text-muted);font-size:11px;font-weight:800}.profile-playground-message p{margin:0;color:var(--color-text);font-size:13px;line-height:1.55;overflow-wrap:anywhere}.profile-playground-before-after{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.profile-playground-compact{display:grid;gap:6px;min-width:0;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);padding:12px}.profile-playground-compact.after{border-color:#5db8725c;background:#5db87214}.profile-playground-compact label{justify-self:start;border-radius:999px;background:#fff;color:var(--color-text-muted);padding:3px 8px;font-size:10px;font-weight:850;text-transform:uppercase}.profile-playground-compact span,.profile-playground-compact small{color:var(--color-text-muted);font-size:11px;font-weight:850;text-transform:uppercase}.profile-playground-compact strong{color:var(--color-text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.profile-playground-topic{display:grid;gap:8px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);padding:12px}.profile-playground-topic header,.profile-playground-topic div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-playground-topic header strong{color:var(--color-text);font-size:14px;overflow-wrap:anywhere}.profile-playground-topic header span,.profile-playground-topic div span{border:1px solid var(--color-border);border-radius:999px;background:#fff;color:var(--color-text-muted);padding:3px 8px;font-size:11px;font-weight:850}.profile-playground-topic p{color:var(--color-text);font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.profile-playground-json-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:10px}.profile-playground-json-panel{min-width:0;display:grid;border:1px solid var(--color-border);border-radius:8px;background:#fff;overflow:hidden;padding:0}.profile-playground-json-panel header{border-bottom:1px solid var(--color-border);background:#fffdf9;padding:11px 12px}.profile-playground-json-panel header h3{color:var(--color-text);font-size:13px;font-weight:850}.profile-playground-json-panel pre{max-height:360px;margin:0;overflow:auto;border-radius:0;background:var(--color-sidebar);color:var(--color-sidebar-text);padding:12px;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.profile-playground-empty-box,.profile-playground-empty-state{border:1px dashed var(--color-border);border-radius:8px;background:var(--color-surface-soft);color:var(--color-text-muted);padding:18px}.profile-playground-empty-state{display:grid;gap:6px}.profile-playground-empty-state strong{color:var(--color-text);font-size:15px}@media(max-width:1360px){.profile-playground-main{align-items:start;overflow:auto;grid-template-columns:minmax(300px,360px) minmax(0,1fr)}.profile-playground-sidebar,.profile-playground-turn-column{min-height:420px}.profile-playground-workspace{grid-column:1 / -1;min-height:640px}}.system-prompt-playground-page{--spg-bg: #f6f8fb;--spg-panel: #ffffff;--spg-surface: #f8fafc;--spg-surface-strong: #eef3f8;--spg-border: #d9e2ec;--spg-border-soft: #e5ebf2;--spg-muted: #5d6673;--spg-accent: #2563eb;--spg-accent-soft: #eff6ff;--spg-user-accent: #0f9f8f;--spg-user-soft: #edf7f5;height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--spg-bg)}.system-prompt-playground-topbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--spg-border);background:var(--spg-panel);padding:18px 24px}.system-prompt-playground-topbar>div:first-child{min-width:0}.system-prompt-playground-topbar h1{margin:0;color:var(--color-text);font-size:24px;line-height:1.2}.system-prompt-playground-top-meta{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1}.system-prompt-playground-top-meta span,.system-prompt-playground-top-meta code,.system-prompt-playground-sessionbar span,.system-prompt-playground-sessionbar code{max-width:220px;border:1px solid var(--spg-border);border-radius:999px;background:var(--spg-surface);color:var(--spg-muted);padding:5px 9px;font-size:12px;font-weight:800;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.system-prompt-playground-top-meta code,.system-prompt-playground-sessionbar code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-weight:700}.system-prompt-playground-actions{display:inline-flex;align-items:center;gap:10px}.system-prompt-playground-actions .maintenance-btn:not(.maintenance-btn-secondary){border:1px solid var(--spg-border);background:var(--spg-panel);color:var(--color-text)}.system-prompt-playground-main{flex:1;min-height:0;display:flex;flex-direction:column;gap:16px;overflow:hidden;padding:18px 24px 24px}.system-prompt-playground-main>.maintenance-error{margin:0}.system-prompt-playground-workbench{flex:1;min-height:0;display:grid;grid-template-columns:minmax(292px,360px) minmax(0,1fr);gap:16px}.system-prompt-playground-sidebar,.system-prompt-playground-chat-panel{min-width:0;min-height:0;border:1px solid var(--spg-border);border-radius:8px;background:var(--spg-panel);box-shadow:0 12px 30px #0f172a0d;overflow:hidden}.system-prompt-playground-sidebar{display:grid;grid-template-rows:auto minmax(0,1fr)}.system-prompt-playground-panel-header,.system-prompt-playground-lane-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--spg-border-soft);background:var(--spg-surface);padding:14px 16px}.system-prompt-playground-panel-header div,.system-prompt-playground-lane-header div{min-width:0}.system-prompt-playground-panel-header span,.system-prompt-playground-lane-header span,.system-prompt-playground-prompt header span,.system-prompt-playground-prompt footer span,.system-prompt-playground-name-field span,.system-prompt-playground-user-message span{color:var(--spg-muted);font-size:12px;font-weight:900;letter-spacing:0;text-transform:uppercase}.system-prompt-playground-panel-header h2,.system-prompt-playground-lane-header h2{margin:3px 0 0;color:var(--color-text);font-size:17px;line-height:1.25;overflow-wrap:anywhere}.system-prompt-playground-panel-header em,.system-prompt-playground-lane-header em,.system-prompt-playground-prompt header em{flex:0 0 auto;border:1px solid var(--spg-border);border-radius:999px;background:var(--spg-panel);color:var(--spg-muted);padding:4px 8px;font-size:11px;font-style:normal;font-weight:900;line-height:1.2;text-transform:uppercase}.system-prompt-playground-panel-header em.locked{border-color:#fed7aa;background:#fff7ed;color:#9a3412}.system-prompt-playground-lane-header em.running{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.system-prompt-playground-lane-header em.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.system-prompt-playground-lane-header em.failed{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.system-prompt-playground-prompt-stack{min-height:0;overflow-y:auto;display:grid;align-content:start;gap:12px;padding:14px}.system-prompt-playground-prompt{min-width:0;display:grid;gap:11px;border:1px solid var(--spg-border-soft);border-radius:8px;background:var(--spg-surface);padding:14px}.system-prompt-playground-prompt header,.system-prompt-playground-prompt footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.system-prompt-playground-prompt footer code{color:var(--spg-muted);font-size:12px;overflow-wrap:anywhere}.system-prompt-playground-name-field{display:grid;gap:6px}.system-prompt-playground-name-field input,.system-prompt-playground-prompt textarea,.system-prompt-playground-composer textarea{min-width:0;width:100%;border:1px solid var(--spg-border);border-radius:8px;background:var(--spg-panel);color:var(--color-text);font-size:14px;line-height:1.5}.system-prompt-playground-name-field input{min-height:38px;padding:8px 10px;font-weight:800}.system-prompt-playground-prompt textarea,.system-prompt-playground-composer textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px;padding:10px 12px}.system-prompt-playground-prompt textarea{min-height:190px;resize:vertical}.system-prompt-playground-composer textarea{min-height:74px;max-height:170px;resize:vertical}.system-prompt-playground-name-field input:focus,.system-prompt-playground-prompt textarea:focus,.system-prompt-playground-composer textarea:focus{border-color:var(--spg-accent);box-shadow:0 0 0 2px #2563eb24;outline:none}.system-prompt-playground-name-field input:disabled,.system-prompt-playground-prompt textarea:disabled{cursor:not-allowed;background:#edf2f7;color:#64748b}.system-prompt-playground-chat-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.system-prompt-playground-sessionbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--spg-border-soft);background:var(--spg-panel);padding:10px 14px}.system-prompt-playground-lanes{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow:hidden;padding:14px;background:var(--spg-surface-strong)}.system-prompt-playground-lane{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid var(--spg-border);border-radius:8px;background:var(--spg-panel);overflow:hidden}.system-prompt-playground-lane-scroll{min-height:0;overflow-y:auto;background:#fbfdff}.system-prompt-playground-turn-list{display:grid;gap:14px;padding:14px}.system-prompt-playground-turn-card{min-width:0;display:grid;gap:10px}.system-prompt-playground-user-message{min-width:0;border:1px solid var(--spg-border);border-left:3px solid var(--spg-user-accent);border-radius:8px;background:var(--spg-user-soft);padding:10px 12px}.system-prompt-playground-user-message p{margin:5px 0 0;color:var(--color-text);font-size:13px;line-height:1.55;overflow-wrap:anywhere}.system-prompt-playground-answer-block{min-width:0;border:1px solid var(--spg-border);border-radius:8px;background:var(--spg-panel);overflow:hidden}.system-prompt-playground-turn-metrics,.system-prompt-playground-turn-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--spg-border-soft);background:var(--spg-surface);padding:8px 10px}.system-prompt-playground-turn-metrics span,.system-prompt-playground-turn-metrics code,.system-prompt-playground-turn-meta span{border:1px solid var(--spg-border);border-radius:999px;background:var(--spg-panel);color:var(--spg-muted);padding:3px 7px;font-size:11px;font-weight:800;line-height:1.25}.system-prompt-playground-answer-block .markdown-body{padding:12px 14px 14px}.system-prompt-playground-answer-block.failed,.system-prompt-playground-answer-block.loading,.system-prompt-playground-answer-block.empty{min-height:104px;display:grid;align-content:center;gap:8px;padding:16px}.system-prompt-playground-answer-block.loading,.system-prompt-playground-answer-block.empty{color:var(--spg-muted);text-align:center}.system-prompt-playground-answer-block.failed{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.system-prompt-playground-answer-block.failed p{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.system-prompt-playground-empty-state{min-height:260px;display:grid;place-items:center;align-content:center;gap:6px;padding:28px;color:var(--spg-muted);text-align:center}.system-prompt-playground-empty-state strong{color:var(--color-text);font-size:15px;font-weight:800}.system-prompt-playground-empty-state span{font-size:13px}.system-prompt-playground-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;border-top:1px solid var(--spg-border);background:var(--spg-panel);padding:12px 14px 14px}.system-prompt-playground-suggestion{grid-column:1 / -1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #bfdbfe;border-radius:8px;background:var(--spg-accent-soft);padding:10px 12px}.system-prompt-playground-suggestion.failed{border-color:#fecaca;background:#fef2f2}.system-prompt-playground-suggestion span{color:var(--spg-muted);font-size:11px;font-weight:900;letter-spacing:0;text-transform:uppercase}.system-prompt-playground-suggestion p{margin:4px 0 0;color:var(--color-text);font-size:13px;line-height:1.45;overflow-wrap:anywhere}.system-prompt-playground-suggestion.failed p{color:#b91c1c}.system-prompt-playground-suggestion-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px}.system-prompt-playground-suggestion-actions .maintenance-btn{min-height:34px;padding:8px 12px}.system-prompt-playground-composer .maintenance-field{min-width:0}.system-prompt-playground-composer-side{display:grid;align-content:end;justify-items:end;gap:8px;min-width:132px}.system-prompt-playground-composer-side span{color:var(--spg-muted);font-size:12px;font-weight:800}.system-prompt-playground-composer-side .maintenance-btn{width:132px;background:var(--spg-accent);color:#fff}.system-prompt-playground-composer-side .maintenance-btn:hover:not(:disabled){background:#1d4ed8}.system-prompt-playground-page .system-prompt-playground-name-field input,.system-prompt-playground-page .system-prompt-playground-prompt textarea,.system-prompt-playground-page .system-prompt-playground-composer textarea{min-width:0;width:100%;border:1px solid var(--spg-border);border-radius:8px;background:var(--spg-panel);color:var(--color-text);font-size:14px;line-height:1.5}.system-prompt-playground-page .system-prompt-playground-name-field input{min-height:38px;padding:8px 10px;font-weight:800}.system-prompt-playground-page .system-prompt-playground-prompt textarea,.system-prompt-playground-page .system-prompt-playground-composer textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px;padding:10px 12px}.system-prompt-playground-page .system-prompt-playground-prompt textarea{min-height:190px;resize:vertical}.system-prompt-playground-page .system-prompt-playground-composer textarea{min-height:74px;max-height:170px;resize:vertical}.system-prompt-playground-page .system-prompt-playground-name-field input:focus,.system-prompt-playground-page .system-prompt-playground-prompt textarea:focus,.system-prompt-playground-page .system-prompt-playground-composer textarea:focus{border-color:var(--spg-accent);box-shadow:0 0 0 2px #2563eb24;outline:none}.system-prompt-playground-page .system-prompt-playground-name-field input:disabled,.system-prompt-playground-page .system-prompt-playground-prompt textarea:disabled{cursor:not-allowed;background:#edf2f7;color:#64748b}@media(max-width:1280px){.system-prompt-playground-workbench{grid-template-columns:minmax(280px,320px) minmax(0,1fr)}.system-prompt-playground-page .system-prompt-playground-prompt textarea{min-height:160px}}@media(max-width:1080px){.system-prompt-playground-page{overflow-y:auto}.system-prompt-playground-main{overflow:visible}.system-prompt-playground-workbench{grid-template-columns:1fr}.system-prompt-playground-chat-panel{min-height:760px}}@media(max-width:760px){.system-prompt-playground-topbar{align-items:stretch;flex-direction:column}.system-prompt-playground-top-meta{justify-content:flex-start}.system-prompt-playground-lanes,.system-prompt-playground-composer,.system-prompt-playground-suggestion{grid-template-columns:1fr}.system-prompt-playground-suggestion-actions{justify-content:stretch}.system-prompt-playground-suggestion-actions .maintenance-btn{flex:1}.system-prompt-playground-composer-side{justify-items:stretch;min-width:0}.system-prompt-playground-composer-side .maintenance-btn{width:100%}}.eval-console-page{height:100%;display:flex;flex-direction:column;overflow-y:auto;background:#f8fafc}.eval-console-main{flex:0 0 auto;min-height:calc(100vh - 85px);overflow:visible;padding:24px 28px 40px;display:grid;align-items:start;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:16px}.eval-console-main>.maintenance-error,.eval-console-main>.save-message{grid-column:1 / -1;margin-top:0}.eval-run-list,.eval-run-detail{min-width:0;min-height:0;background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:18px}.eval-run-list{position:sticky;top:24px;max-height:calc(100vh - 132px);display:flex;flex-direction:column;gap:14px;overflow:hidden}.eval-run-launcher{display:grid;gap:10px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;padding:12px}.eval-run-launcher .maintenance-field{min-width:0}.eval-run-launcher-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eval-variant-admin{min-width:0;border:1px solid #dfe3ea;border-radius:8px;background:#f8fafc;padding:0}.eval-variant-admin summary{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;color:var(--color-text);font-size:13px;font-weight:900;cursor:pointer}.eval-variant-admin summary code{min-width:0;color:var(--color-text-muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.eval-variant-admin-body{display:grid;gap:12px;border-top:1px solid #dfe3ea;padding:12px}.eval-variant-admin-toolbar,.eval-variant-form-grid{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.eval-variant-admin-toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:end}.eval-variant-admin .maintenance-section-header{margin-bottom:0}.eval-variant-admin .maintenance-field textarea.eval-variant-description{min-height:82px;resize:vertical}.eval-variant-list{display:grid;gap:8px}.eval-variant-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.eval-variant-pills button,.eval-variant-pills span{border:1px solid #dfe3ea;border-radius:999px;background:#fff;color:#475569;padding:5px 9px;font-size:12px;font-weight:900}.eval-variant-pills button{cursor:pointer}.eval-variant-pills button.active{border-color:#2563eb80;background:#eff6ff;color:var(--color-primary)}.eval-run-resume{margin-right:auto;display:inline-flex;align-items:center;gap:7px;color:var(--color-text);font-size:13px;font-weight:800}.eval-run-resume input{width:16px;height:16px;accent-color:var(--color-primary)}.eval-run-items{display:grid;gap:10px;min-height:0;overflow-y:auto;padding-right:2px}.eval-run-row{display:grid;gap:7px;width:100%;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:12px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.eval-run-row:hover,.eval-run-row.active{border-color:#2563eb80;background:#f8fbff}.eval-run-title{color:var(--color-text);font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eval-run-meta,.eval-case-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--color-text-muted);font-size:12px}.eval-run-path{display:grid;gap:4px}.eval-run-path span,.eval-run-launcher-hint{min-width:0;display:grid;grid-template-columns:58px minmax(0,1fr);gap:6px;align-items:center}.eval-run-path strong,.eval-run-launcher-hint span{color:var(--color-text-muted);font-size:10px;font-weight:900;text-transform:uppercase}.eval-run-path code,.eval-run-launcher-hint code{min-width:0;color:var(--color-text-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.eval-run-launcher-hint{grid-template-columns:78px minmax(0,1fr);border:1px solid #eef2f7;border-radius:8px;background:#f8fafc;padding:8px 10px}.eval-run-variant-detail{display:grid;gap:8px}.eval-run-variant-card{min-width:0;display:grid;gap:7px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;padding:10px}.eval-run-variant-card header{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.eval-run-variant-card strong{min-width:0;color:var(--color-text);font-size:13px;line-height:1.25;overflow-wrap:anywhere}.eval-run-variant-card header span{flex-shrink:0;border:1px solid #dfe3ea;border-radius:999px;background:#fff;color:#475569;padding:2px 7px;font-size:11px;font-weight:900}.eval-run-variant-card p{margin:0;color:var(--color-text-muted);font-size:12px;line-height:1.4}.eval-run-variant-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.eval-run-variant-card dl div{min-width:0;display:grid;gap:2px}.eval-run-variant-card dt{color:var(--color-text-muted);font-size:10px;font-weight:900;text-transform:uppercase}.eval-run-variant-card dd{min-width:0;margin:0;color:var(--color-text);font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;overflow-wrap:anywhere}.eval-run-detail{display:flex;flex-direction:column;gap:14px;min-height:calc(100vh - 132px);overflow:visible}.eval-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;text-transform:uppercase}.eval-status-pass,.eval-status-completed{background:#dcfce7;color:#166534}.eval-status-warn,.eval-status-running{background:#fef3c7;color:#92400e}.eval-status-fail,.eval-status-failed{background:#fee2e2;color:#991b1b}.eval-run-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.eval-run-meta-grid div{min-width:0;display:grid;gap:4px;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:10px}.eval-run-meta-grid span{color:var(--color-text-muted);font-size:10px;font-weight:900;text-transform:uppercase}.eval-run-meta-grid code{color:var(--color-text);font-size:12px;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.eval-detail-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:12px;align-items:start}.eval-case-list{display:grid;gap:8px;max-height:calc(100vh - 420px);overflow-y:auto;padding-right:2px}.eval-case-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 8px;align-items:center;width:100%;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:10px;text-align:left;cursor:pointer}.eval-case-row:hover,.eval-case-row.active{border-color:#2563eb80;background:#f8fbff}.eval-case-row strong,.eval-case-row small,.eval-case-row em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eval-case-row strong{color:var(--color-text);font-size:13px}.eval-case-row small{grid-column:2;color:var(--color-text-muted);font-size:12px}.eval-case-row em{grid-column:1 / -1;color:var(--color-text-muted);font-size:12px;font-style:normal}.eval-dataset-case-list .eval-case-row{grid-template-columns:minmax(0,1fr) auto;cursor:default}.eval-case-row-main{min-width:0;display:grid;gap:3px;border:0;background:transparent;padding:0;text-align:left;cursor:pointer}.eval-case-row-main strong,.eval-case-row-main small,.eval-case-row-main em{grid-column:auto}.eval-case-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.eval-case-row-actions .maintenance-btn{padding:6px 8px;font-size:12px}.eval-case-detail{display:grid;gap:12px;min-width:0}.eval-case-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;padding-bottom:10px}.eval-case-detail-header h3{margin-top:1px;color:var(--color-text);font-size:18px;line-height:1.25;overflow-wrap:anywhere}.eval-case-tags span{border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;color:#475569;padding:3px 8px;font-weight:800}.eval-answer-panel,.eval-json-panel,.eval-report-panel{display:grid;gap:8px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;padding:12px}.eval-answer-panel pre,.eval-json-panel pre{max-height:460px;margin:0;overflow:auto;border-radius:8px;background:#0f172a;color:#dbeafe;padding:12px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.eval-json-panel summary{color:var(--color-text);cursor:pointer;font-weight:900}.eval-report-panel{gap:12px}.eval-report-meta{min-width:0;display:flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;padding:8px 10px}.eval-report-meta span{flex-shrink:0;color:var(--color-text-muted);font-size:11px;font-weight:900;text-transform:uppercase}.eval-report-meta code{min-width:0;color:var(--color-text);font-size:12px;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.eval-report-markdown{max-height:680px;overflow:auto;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:12px}.eval-report-markdown .markdown-body{color:var(--color-text)}.eval-datasets-page{height:100%;display:flex;flex-direction:column;overflow-y:auto;background:var(--color-bg)}.eval-datasets-header{align-items:flex-start;background:var(--color-bg)}.eval-datasets-header-copy{min-width:0}.eval-datasets-header-copy .maintenance-title{font-family:var(--font-display);font-size:32px;font-weight:500;line-height:1.05}.eval-datasets-header-copy p{margin-top:6px;color:var(--color-text-muted);font-size:14px;line-height:1.45}.eval-datasets-header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.eval-datasets-header-actions .note-back-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-card);color:var(--color-text);padding:0 14px;text-decoration:none}.eval-datasets-main{flex:0 0 auto;min-height:calc(100vh - 85px);overflow:visible;padding:24px 28px 40px;display:grid;align-items:start;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:16px}.eval-datasets-main>.maintenance-error,.eval-datasets-main>.save-message{grid-column:1 / -1;margin-top:0}.eval-datasets-page .maintenance-btn{border:1px solid transparent;font-weight:600}.eval-datasets-page .eval-primary-action{background:var(--color-primary);color:#fff}.eval-datasets-page .eval-primary-action:hover:not(:disabled){background:var(--color-primary-hover)}.eval-datasets-page .eval-subtle-action{border-color:var(--color-border);background:var(--color-bg);color:var(--color-text)}.eval-datasets-page .eval-subtle-action:hover:not(:disabled){border-color:#cc785c73;background:var(--color-surface-soft)}.eval-datasets-page .maintenance-btn-danger{margin-top:0}.eval-datasets-page .maintenance-field{min-width:0}.eval-datasets-page .maintenance-field textarea,.eval-datasets-page .maintenance-field input,.eval-datasets-page .maintenance-field select{background:var(--color-bg)}.eval-datasets-page .maintenance-field textarea:focus,.eval-datasets-page .maintenance-field input:focus,.eval-datasets-page .maintenance-field select:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #cc785c26}.eval-dataset-list-panel{background:var(--color-surface-card)}.eval-dataset-list-panel .admin-chat-search{align-items:end}.eval-dataset-list-panel .admin-chat-list-actions span{color:var(--color-text-muted);font-weight:600}.eval-dataset-list-panel .eval-run-row{background:var(--color-bg);border-color:var(--color-border)}.eval-dataset-list-panel .eval-run-row:hover,.eval-dataset-list-panel .eval-run-row.active{border-color:#cc785c9e;background:#fffaf6}.eval-dataset-list-panel .eval-run-row code{color:var(--color-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eval-dataset-status{border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);padding:2px 7px;font-size:11px;font-weight:700;text-transform:uppercase}.eval-dataset-status-active{border-color:#5db87257;background:#5db8721c;color:#2f7f45}.eval-dataset-status-archived{background:var(--color-surface-strong);color:var(--color-text-muted)}.eval-dataset-detail{min-width:0;min-height:0;display:grid;align-content:start;gap:16px;background:transparent;border:0;border-radius:0;padding:0}.eval-dataset-overview{display:grid;grid-template-columns:minmax(260px,.62fr) minmax(0,1fr);gap:14px;align-items:start}.eval-dataset-profile{min-width:0;display:grid;gap:12px;border-radius:12px;background:var(--color-sidebar);color:var(--color-sidebar-text);padding:20px}.eval-dataset-profile>span{color:var(--color-on-dark-soft, #a09d96);font-size:11px;font-weight:700;text-transform:uppercase}.eval-dataset-profile h2{color:var(--color-sidebar-text);font-family:var(--font-display);font-size:28px;font-weight:500;line-height:1.1;overflow-wrap:anywhere}.eval-dataset-profile code{min-width:0;color:#d8d2c8;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;overflow-wrap:anywhere}.eval-dataset-profile p{color:#a09d96;font-size:12px;line-height:1.45}.eval-dataset-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.eval-dataset-metrics div{min-width:0;display:grid;gap:3px;border:1px solid rgba(250,249,245,.1);border-radius:8px;background:var(--color-dark-elevated);padding:10px}.eval-dataset-metrics strong{color:var(--color-sidebar-text);font-size:22px;line-height:1}.eval-dataset-metrics span{color:#a09d96;font-size:11px;font-weight:700;text-transform:uppercase}.eval-dataset-form-grid,.eval-dataset-workbench{display:grid;gap:12px}.eval-dataset-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.eval-dataset-workbench{grid-column:1 / -1;grid-template-columns:minmax(360px,420px) minmax(0,1fr);align-items:start}.eval-dataset-editor,.eval-dataset-case-list,.eval-case-editor{min-width:0;display:grid;gap:12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-card);padding:14px}.eval-dataset-editor textarea{min-height:84px}.eval-case-editor textarea{min-height:132px}.eval-datasets-page .maintenance-field input,.eval-datasets-page .maintenance-field select,.eval-datasets-page .maintenance-field textarea{width:100%;align-self:start}.eval-datasets-page .maintenance-field select{height:42px}.eval-datasets-page .maintenance-field textarea{resize:vertical}.eval-datasets-page .eval-dataset-editor .maintenance-field textarea{min-height:72px;font-family:var(--font-body);line-height:1.45}.eval-datasets-page .eval-dataset-form-grid .maintenance-field textarea{min-height:42px}.eval-datasets-page .eval-case-editor .maintenance-field textarea{min-height:128px}.eval-dataset-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.eval-dataset-actions .maintenance-btn-danger{margin-top:0}.eval-import-panel{min-width:0;display:grid;gap:12px;border:1px solid #dfe3ea;border-radius:8px;background:#f8fafc;padding:12px}.eval-import-segmented{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;min-width:220px;border:1px solid #d7dde7;border-radius:8px;background:#e9eef6;padding:2px}.eval-import-segmented button{min-width:0;border:0;border-radius:6px;background:transparent;color:#475569;padding:7px 10px;font-size:12px;font-weight:900;cursor:pointer}.eval-import-segmented button.active{background:#fff;color:var(--color-primary);box-shadow:0 1px 2px #0f172a14}.eval-import-body{min-width:0;display:grid;gap:12px}.eval-import-summary{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:9px 10px}.eval-import-summary span,.eval-import-summary strong{min-width:0;overflow-wrap:anywhere}.eval-import-summary span{color:var(--color-text-muted);font-size:12px;font-weight:800}.eval-import-summary strong{color:var(--color-text);font-size:12px;font-weight:900}.eval-import-footer{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.eval-import-footer .eval-import-summary{flex:1 1 220px}.eval-jsonl-input{min-height:168px}.eval-case-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.eval-dataset-case-list{position:sticky;top:24px}.eval-dataset-case-list .eval-case-list{max-height:calc(100vh - 246px)}.eval-dataset-case-list .eval-case-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border-color:var(--color-border);background:var(--color-bg);cursor:default}.eval-dataset-case-list .eval-case-row:hover,.eval-dataset-case-list .eval-case-row.active{border-color:#cc785c9e;background:#fffaf6}.eval-dataset-case-list .eval-case-row-main{min-width:0;display:grid;gap:8px;border:0;background:transparent;padding:0;text-align:left;cursor:pointer}.eval-case-row-meta{min-width:0;display:flex;align-items:center;gap:8px}.eval-case-row-title{min-width:0;display:grid;gap:3px}.eval-case-row-title strong,.eval-case-row-title em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eval-case-row-title strong{color:var(--color-text);font-size:13px}.eval-case-row-title em{color:var(--color-text-muted);font-size:12px;font-style:normal}.eval-case-row-meta{flex-wrap:wrap}.eval-case-row-meta small{border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);padding:2px 7px;font-size:11px;font-weight:700}.eval-case-row-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end}.eval-case-row-actions .maintenance-btn{min-height:32px;padding:0 9px;font-size:12px}.eval-case-editor{background:var(--color-bg)}.eval-case-editor-header{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;border-bottom:1px solid var(--color-border);padding-bottom:12px}.eval-case-editor-header h2{color:var(--color-text);font-size:18px;line-height:1.25;overflow-wrap:anywhere}.eval-case-editor-header code{justify-self:start;max-width:100%;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-card);color:var(--color-text-muted);padding:4px 10px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.eval-case-editor-actions{position:sticky;bottom:0;border-top:1px solid var(--color-border);background:linear-gradient(180deg,rgba(250,249,245,.88),var(--color-bg));padding-top:12px}@media(max-width:1180px){.eval-datasets-main{grid-template-columns:1fr}.eval-dataset-list-panel{position:static;max-height:none}.eval-dataset-list-panel .eval-run-items{max-height:260px}}@media(max-width:980px){.eval-dataset-overview,.eval-dataset-workbench{grid-template-columns:1fr}.eval-dataset-case-list{position:static}.eval-dataset-case-list .eval-case-list{max-height:320px}}.prompt-admin-page{height:100%;display:flex;flex-direction:column;overflow:hidden;background:#f8fafc}.prompt-admin-main{flex:1;overflow:hidden;padding:24px 28px 40px;display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px;width:100%}.prompt-admin-main>.maintenance-error,.prompt-admin-main>.save-message{grid-column:1 / -1;margin-top:0}.prompt-admin-list,.prompt-admin-editor{min-width:0;min-height:0;background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:18px}.prompt-admin-list{display:flex;flex-direction:column}.prompt-admin-items{display:grid;gap:10px;min-height:0;overflow-y:auto;padding-right:2px}.prompt-admin-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb;padding:12px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.prompt-admin-item:hover,.prompt-admin-item.active{border-color:#2563eb80;background:#f8fbff}.prompt-admin-item span{min-width:0;display:grid;gap:4px}.prompt-admin-item strong{color:var(--color-text);overflow-wrap:anywhere}.prompt-admin-item small{color:var(--color-text-muted);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.prompt-admin-item em{flex-shrink:0;border:1px solid var(--color-border);border-radius:999px;background:#fff;color:var(--color-text-muted);padding:2px 8px;font-size:12px;font-style:normal;font-weight:700}.prompt-admin-editor{display:grid;grid-template-rows:auto auto auto auto minmax(260px,1fr) auto;gap:14px;overflow:hidden}.maintenance-field textarea{width:100%;min-height:260px;border:1px solid var(--color-border);border-radius:8px;padding:12px;color:var(--color-text);background:#fff;font-size:13px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;resize:none}.maintenance-field textarea:focus,.maintenance-field input:focus,.maintenance-field select:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 2px #2563eb1f}.prompt-admin-content{min-height:0}.prompt-admin-content textarea{height:100%}.prompt-admin-toggle{display:inline-flex;align-items:center;gap:8px;color:var(--color-text);font-weight:700}.prompt-admin-toggle input{width:18px;height:18px;accent-color:var(--color-primary)}.prompt-admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.prompt-admin-actions .maintenance-btn-danger{margin-top:0}.prompt-console-page{width:100%;height:100vh;display:grid;grid-template-columns:292px minmax(0,1fr);background:#f6f8fb;color:#111827;overflow:hidden}.prompt-console-rail{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:16px;border-right:1px solid #dfe3ea;background:#fff;padding:18px;overflow:hidden}.prompt-console-brand{display:grid;gap:4px;padding-bottom:2px}.prompt-console-brand span,.prompt-console-group-title span{color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:0}.prompt-console-brand strong{color:#111827;font-size:18px;line-height:1.2}.prompt-console-nav{display:grid;gap:6px}.prompt-console-nav button{display:grid;gap:3px;width:100%;min-height:58px;border:1px solid transparent;border-radius:8px;background:transparent;color:#475569;padding:10px 12px;text-align:left;cursor:pointer}.prompt-console-nav button span{color:inherit;font-size:14px;font-weight:800}.prompt-console-nav button small{color:#94a3b8;font-size:12px;font-weight:700}.prompt-console-nav button:hover:not(.active):not(:disabled){background:#f8fafc;border-color:#dfe3ea}.prompt-console-nav button:active:not(.active):not(:disabled),.prompt-console-nav button.active,.prompt-console-nav button.active:hover,.prompt-console-nav button.active:active,.prompt-console-nav button.active:focus-visible{background:#111827;border-color:#111827;color:#fff}.prompt-console-nav button:active:not(.active):not(:disabled) small,.prompt-console-nav button.active small,.prompt-console-nav button.active:hover small,.prompt-console-nav button.active:active small,.prompt-console-nav button.active:focus-visible small{color:#cbd5e1}.prompt-console-nav button:disabled{cursor:not-allowed;opacity:.5}.prompt-console-bundle-picker{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}.prompt-console-group-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.prompt-console-group-title em{border:1px solid #dfe3ea;border-radius:999px;background:#f8fafc;color:#64748b;padding:2px 7px;font-size:11px;font-style:normal;font-weight:800}.prompt-console-search,.prompt-console-load input,.prompt-mgmt-item-row input,.prompt-mgmt-item-row select{min-width:0;border:1px solid #dfe3ea;border-radius:8px;padding:9px 10px;color:#111827;background:#fff;font-size:13px}.prompt-console-search,.prompt-console-load input{min-height:38px}.prompt-console-bundle-list{gap:6px}.prompt-console-bundle-list .prompt-admin-item{border-color:transparent;background:transparent;padding:10px}.prompt-console-bundle-list .prompt-admin-item:hover,.prompt-console-bundle-list .prompt-admin-item.active{border-color:#dfe3ea;background:#f8fafc}.prompt-console-bundle-list .prompt-admin-item.active{box-shadow:inset 3px 0 #111827}.prompt-console-bundle-list .prompt-admin-item em{border-color:#dfe3ea;background:#fff}.prompt-console-load{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.prompt-console-ghost-btn,.prompt-console-back{min-height:38px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;color:#334155;padding:0 12px;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}.prompt-console-ghost-btn:hover,.prompt-console-back:hover{background:#f8fafc;border-color:#cbd5e1}.prompt-console-back{display:flex;align-items:center;justify-content:center}.prompt-console-shell{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.prompt-console-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #dfe3ea;background:#ffffffeb;padding:18px 24px}.prompt-console-title-group{min-width:0}.prompt-console-title-group h1{margin:0;color:#111827;font-size:22px;line-height:1.2;overflow-wrap:anywhere}.prompt-console-alerts{display:grid;gap:8px;padding:12px 24px 0}.prompt-console-alerts .maintenance-error,.prompt-console-alerts .save-message{margin:0}.prompt-console-content{flex:1;min-width:0;min-height:0;overflow:hidden;padding:18px 24px 24px}.prompt-console-grid{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}.prompt-console-primary,.prompt-console-inspector{min-width:0;min-height:0;display:flex;flex-direction:column;gap:14px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;padding:16px;box-shadow:0 1px 2px #0f172a0a;overflow:hidden}.prompt-console-inspector{overflow-y:auto}.prompt-console-inspector-header{display:grid;gap:2px;padding-bottom:10px;border-bottom:1px solid #eef2f7}.prompt-console-inspector-header h2,.prompt-mgmt-section-title h2{margin:0;color:#111827;font-size:16px;line-height:1.25}.prompt-console-stack{display:grid;gap:12px}.prompt-console-stack .maintenance-field{min-width:0}.prompt-console-stack textarea{min-height:118px;resize:vertical}.prompt-mgmt-status-strip{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.prompt-mgmt-status-strip span,.prompt-mgmt-section-title>span{border:1px solid #dfe3ea;border-radius:999px;background:#fff;color:#475569;padding:4px 9px;font-size:12px;font-weight:800;white-space:nowrap}.prompt-mgmt-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.prompt-mgmt-metrics div{border:1px solid #dfe3ea;border-radius:8px;background:#f8fafc;padding:11px;display:grid;gap:3px}.prompt-mgmt-metrics strong{color:#111827;font-size:18px;line-height:1.1;overflow-wrap:anywhere}.prompt-mgmt-metrics span{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase}.prompt-mgmt-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.prompt-mgmt-item-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#111827}.prompt-mgmt-item-toolbar strong{font-size:15px}.prompt-module-catalog{display:grid;gap:12px;border:1px solid #dfe3ea;border-radius:8px;background:#f8fafc;padding:12px}.prompt-module-catalog-actions{display:inline-flex;align-items:center;gap:10px}.prompt-module-catalog-actions>span{color:#64748b;font-size:12px;font-weight:800;white-space:nowrap}.prompt-module-list{min-height:0;max-height:280px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;padding-right:2px}.prompt-module-card{min-width:0;display:grid;align-content:start;gap:10px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;padding:12px;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.prompt-module-card:hover,.prompt-module-card:focus-visible{border-color:#94a3b8;background:#f8fbff}.prompt-module-card:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.prompt-module-card.active{border-color:#111827;box-shadow:inset 3px 0 #111827}.prompt-module-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.prompt-module-card header div{min-width:0;display:grid;gap:3px}.prompt-module-card header strong{color:#111827;font-size:13px;line-height:1.25;overflow-wrap:anywhere}.prompt-module-card header small,.prompt-module-card p{color:#64748b;font-size:12px;line-height:1.35}.prompt-module-card header span{border:1px solid #dfe3ea;border-radius:999px;background:#f8fafc;color:#475569;padding:2px 7px;font-size:11px;font-weight:800;white-space:nowrap}.prompt-module-card p{margin:0}.prompt-module-version-strip{display:flex;flex-wrap:wrap;gap:6px}.prompt-module-version-btn{min-height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;color:#334155;padding:0 9px;cursor:pointer}.prompt-module-version-btn span{font-size:12px;font-weight:900}.prompt-module-version-btn small{color:#64748b;font-size:11px;font-weight:800}.prompt-module-version-btn.online{border-color:#bbf7d0;background:#f0fdf4}.prompt-module-version-btn.draft{border-color:#fde68a;background:#fffbeb}.prompt-module-version-btn.deprecated{border-color:#e2e8f0;background:#f8fafc;color:#64748b}.prompt-module-version-btn:hover:not(:disabled){border-color:#94a3b8}.prompt-module-version-btn.selected,.prompt-module-version-btn.selected small{border-color:#111827;background:#111827;color:#fff}.prompt-module-version-btn:disabled{cursor:wait;opacity:.65}.prompt-module-empty-version{border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;padding:7px 9px;font-size:12px;font-weight:700}.prompt-mgmt-items{min-height:0;overflow:auto;display:grid;align-content:start;gap:6px;padding-right:2px}.prompt-mgmt-item-header{display:grid;grid-template-columns:76px minmax(180px,1fr) 90px 118px 112px 86px;gap:8px;border-bottom:1px solid #eef2f7;padding:0 8px 8px;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;position:sticky;top:0;z-index:2;background:#fff}.prompt-mgmt-item-row{display:grid;grid-template-columns:76px minmax(180px,1fr) 90px 118px 112px 86px;gap:8px;align-items:center;border:1px solid #dfe3ea;border-radius:8px;background:#fff;padding:8px}.prompt-mgmt-item-row:hover{background:#f8fafc}.prompt-mgmt-priority{text-align:right}.prompt-mgmt-required{display:inline-flex;align-items:center;gap:6px;color:#475569;font-size:12px;font-weight:700;white-space:nowrap}.prompt-mgmt-required input{width:16px;height:16px;accent-color:#111827}.prompt-mgmt-icon-btn{width:32px;height:32px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;color:#64748b;font-size:20px;line-height:1;cursor:pointer}.prompt-mgmt-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.prompt-mgmt-small-btn{height:32px;border:1px solid #dfe3ea;border-radius:8px;background:#fff;color:#475569;padding:0 9px;font-size:12px;font-weight:800;cursor:pointer}.prompt-mgmt-small-btn:hover{border-color:#94a3b8;color:#111827}.prompt-mgmt-icon-btn:hover{color:#b91c1c;border-color:#b91c1c59;background:#fff7f7}.prompt-mgmt-template{min-height:0;flex:1}.prompt-mgmt-template textarea{min-height:320px;height:100%}.maintenance-field.has-error input,.maintenance-field.has-error textarea{border-color:#dc2626;box-shadow:0 0 0 2px #dc26261a}.maintenance-field small{color:#b91c1c;font-size:12px;line-height:1.35}.prompt-mgmt-preview-result{min-height:0;overflow:auto;display:grid;align-content:start;gap:12px}.prompt-mgmt-ref-line{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe3ea;border-radius:8px;background:#f8fafc;padding:10px 12px;color:#111827}.prompt-mgmt-ref-line span{color:#64748b;font-size:12px;font-weight:700}.prompt-mgmt-message-list{display:grid;gap:10px}.prompt-mgmt-message{border:1px solid #dfe3ea;border-radius:8px;background:#fff;overflow:hidden}.prompt-mgmt-message header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;background:#f8fafc;padding:8px 10px;color:#475569;font-size:12px;font-weight:800;text-transform:uppercase}.prompt-mgmt-message header em{font-style:normal;font-weight:700;text-transform:none}.prompt-mgmt-message pre{margin:0;padding:12px;max-height:320px;overflow:auto;color:#111827;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.prompt-mgmt-module-refs{display:flex;flex-wrap:wrap;gap:8px}.prompt-mgmt-module-refs span{border:1px solid #dfe3ea;border-radius:999px;background:#fff;color:#475569;padding:4px 8px;font-size:12px;font-weight:700}.prompt-mgmt-preview-empty{display:grid;place-items:center;min-height:260px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;padding:28px;text-align:center;font-size:13px}.note-skeleton{border-radius:6px;background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 37%,#e5e7eb 63%);background-size:400% 100%;animation:skeletonPulse 1.2s ease-in-out infinite}.note-skeleton-title{width:min(320px,70%);height:18px;margin-bottom:8px}.note-skeleton-line{width:min(520px,90%);height:14px}@keyframes skeletonPulse{0%{background-position:100% 50%}to{background-position:0 50%}}.message-list.empty-state{display:flex;align-items:center;justify-content:center}.message-list.empty-state p{color:#9ca3af;font-size:16px}.message-status-card{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:420px;padding:22px;text-align:center}.message-status-card p{margin:0}.message-status-card span{color:var(--color-text-muted);font-size:13px}.message-status-card.error{border:1px solid #fecaca;border-radius:8px;background:#fef2f2}.message-status-card.error p{color:var(--color-error);font-weight:700}.message-loading-dots{display:flex;gap:6px}.message-loading-dots span{width:7px;height:7px;border-radius:999px;background:var(--color-primary);animation:messageDotPulse .9s ease-in-out infinite}.message-loading-dots span:nth-child(2){animation-delay:.12s}.message-loading-dots span:nth-child(3){animation-delay:.24s}@keyframes messageDotPulse{0%,to{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.connection-error-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 14px;background:#c6454514;border:1px solid rgba(198,69,69,.32);border-radius:8px}.connection-error-text{color:var(--color-error);font-size:13px;flex:1}.connection-error-actions{display:flex;gap:8px;flex-shrink:0}.connection-error-retry{padding:4px 12px;border-radius:6px;border:1px solid var(--color-error);background:var(--color-bg);color:var(--color-error);font-size:13px;font-weight:500;cursor:pointer;transition:background .15s ease}.connection-error-retry:hover{background:#c6454514}.connection-error-dismiss{padding:4px 12px;border-radius:6px;border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text-muted);font-size:13px;cursor:pointer;transition:background .15s ease}.connection-error-dismiss:hover{background:var(--color-surface-card)}.message-item{padding:14px 0;border-top:1px solid var(--color-border);content-visibility:auto;contain-intrinsic-size:auto 180px}.message-item.user{contain-intrinsic-size:auto 78px}.message-item:first-child{border-top:none}.message-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.message-author{display:inline-flex;align-items:center;min-width:0}.message-actions{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}.message-copy-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid transparent;border-radius:6px;background:transparent;color:#9ca3af;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.message-copy-btn:hover,.message-copy-btn:focus-visible{border-color:var(--color-border);background:var(--color-surface-soft);color:var(--color-text)}.message-copy-btn:focus-visible{outline:2px solid rgba(204,120,92,.24);outline-offset:2px}.message-copy-btn.copied{color:var(--color-success)}.message-copy-btn.with-label{width:auto;height:32px;gap:6px;padding:0 10px;border-color:var(--color-border);background:var(--color-bg);font-size:12px;font-weight:600}.message-original-gpt-btn{display:inline-flex;align-items:center;height:28px;padding:0 9px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg);color:var(--color-text-muted);font-size:12px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.message-original-gpt-btn:hover,.message-original-gpt-btn:focus-visible{border-color:#cc785c73;background:var(--color-surface-soft);color:var(--color-text)}.message-original-gpt-btn:focus-visible{outline:2px solid rgba(204,120,92,.24);outline-offset:2px}.message-followup-count-btn{display:inline-flex;align-items:center;min-height:28px;border:1px solid rgba(204,120,92,.35);border-radius:6px;background:#cc785c14;color:var(--color-primary);cursor:pointer;font-size:12px;font-weight:800;padding:0 9px;white-space:nowrap}.message-followup-count-btn:hover,.message-followup-count-btn:focus-visible{border-color:#cc785c8c;background:#fff7f0;color:var(--color-primary-hover);outline:none}.message-followup-count-btn:focus-visible{outline:2px solid rgba(204,120,92,.24);outline-offset:2px}.message-copy-icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.answer-copy-footer{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;padding-top:8px}.message-selection-followup{position:fixed;z-index:1035;min-height:34px;border:1px solid rgba(204,120,92,.38);border-radius:6px;background:#fffdf8;color:var(--color-primary-hover);cursor:pointer;font-size:12px;font-weight:900;box-shadow:0 2px 8px #14141314;padding:7px 10px}.message-selection-followup:hover,.message-selection-followup:focus-visible{border-color:#cc785c9e;background:var(--color-surface-soft);color:var(--color-text);outline:none}.followup-sidecar{position:fixed;top:0;right:0;z-index:1040;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;width:min(440px,100vw);height:100dvh;border-left:1px solid var(--color-border);background:#fff;box-shadow:none}.followup-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-border);padding:16px}.followup-kicker{color:var(--color-primary);font-size:11px;font-weight:900;text-transform:uppercase}.followup-header h2{color:var(--color-text);font-size:20px;line-height:1.1}.followup-close{width:32px;height:32px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg);color:var(--color-text-muted);cursor:pointer;font-size:18px}.followup-quote{display:grid;gap:6px;border-bottom:1px solid var(--color-border);background:var(--color-surface-soft);padding:12px 16px}.followup-quote span{color:var(--color-text-muted);font-size:11px;font-weight:900;text-transform:uppercase}.followup-quote p{display:-webkit-box;overflow:hidden;color:var(--color-text);font-size:13px;line-height:1.45;-webkit-line-clamp:4;-webkit-box-orient:vertical}.followup-thread-list{display:grid;gap:8px;border-bottom:1px solid var(--color-border);background:#fff;padding:10px 16px}.followup-thread-list-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.followup-thread-list-header>span{color:var(--color-text-muted);font-size:11px;font-weight:900;text-transform:uppercase}.followup-thread-new{min-height:28px;border:1px solid rgba(204,120,92,.35);border-radius:6px;background:#cc785c14;color:var(--color-primary);cursor:pointer;font-size:12px;font-weight:800;padding:0 10px}.followup-thread-new:disabled{cursor:not-allowed;opacity:.6}.followup-thread-scroll{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.followup-thread-loading{min-height:48px;display:flex;align-items:center;color:var(--color-text-muted);font-size:12px}.followup-thread-item{flex:0 0 150px;min-height:52px;display:grid;align-content:center;gap:3px;overflow:hidden;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;padding:8px 10px;text-align:left}.followup-thread-item:hover:not(:disabled),.followup-thread-item:focus-visible{border-color:#cc785c73;background:var(--color-surface-soft)}.followup-thread-item.active{border-color:#cc785c80;background:#fff7f0}.followup-thread-item:disabled{cursor:default}.followup-thread-title,.followup-thread-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.followup-thread-title{font-size:12px;font-weight:800}.followup-thread-meta{color:var(--color-text-muted);font-size:11px}.followup-thread-item.included .followup-thread-meta{color:var(--color-primary)}.followup-body{min-height:0;overflow-y:auto;padding:14px 16px}.followup-state{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text-muted);font-size:13px;padding:12px}.followup-state.error{border-color:#c6454559;background:#c6454514;color:var(--color-error)}.followup-turn{display:grid;gap:10px;margin-bottom:14px}.followup-message{display:grid;gap:6px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);padding:10px 12px}.followup-message>span{color:var(--color-text-muted);font-size:11px;font-weight:900}.followup-message.user{margin-left:34px;background:#fffaf6}.followup-message.assistant{margin-right:18px}.followup-message p,.followup-message li{font-size:14px;line-height:1.55}.followup-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--color-border);padding:10px 16px}.followup-include{min-height:34px;border:1px solid rgba(204,120,92,.35);border-radius:6px;background:#cc785c1a;color:var(--color-primary);cursor:pointer;font-size:13px;font-weight:800;padding:0 12px}.followup-include.included,.followup-include:disabled{cursor:not-allowed;opacity:.65}.followup-input{display:grid;gap:10px;border-top:1px solid var(--color-border);padding:12px 16px 16px}.followup-input textarea{width:100%;resize:vertical;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);font:inherit;line-height:1.45;min-height:78px;padding:10px 12px}.followup-input button{justify-self:end;min-height:36px;border:1px solid transparent;border-radius:6px;background:var(--color-primary);color:#fff;cursor:pointer;font-size:13px;font-weight:800;padding:0 16px}.followup-input button:disabled{cursor:not-allowed;opacity:.65}@media(max-width:767px){.followup-sidecar{top:auto;bottom:0;width:100vw;height:min(78dvh,720px);border-top:1px solid var(--color-border);border-left:0;box-shadow:none}.followup-message.user{margin-left:14px}.followup-message.assistant{margin-right:0}}.original-gpt-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:flex;justify-content:flex-end;background:#14141352;overscroll-behavior:contain}.original-gpt-drawer{display:flex;width:min(560px,100vw);height:100dvh;min-height:0;flex-direction:column;border-left:1px solid var(--color-border);background:var(--color-bg);box-shadow:none}.original-gpt-header{display:flex;flex-shrink:0;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 14px;border-bottom:1px solid var(--color-border)}.original-gpt-header span{display:block;margin-bottom:4px;color:var(--color-text-muted);font-size:12px;font-weight:700;text-transform:uppercase}.original-gpt-header h3{margin:0;color:var(--color-text);font-size:18px;font-weight:650}.original-gpt-close{width:32px;height:32px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg);color:var(--color-text-muted);cursor:pointer}.original-gpt-close:hover,.original-gpt-close:focus-visible{background:var(--color-surface-soft);color:var(--color-text)}.original-gpt-source-link{flex-shrink:0;margin:14px 22px 0;color:var(--color-primary);font-size:13px;font-weight:650;text-decoration:none}.original-gpt-source-link:hover{text-decoration:underline}.original-gpt-body{display:flex;min-height:0;flex:1;flex-direction:column;gap:14px;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px 24px;-webkit-overflow-scrolling:touch}.original-gpt-state{padding:16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);color:var(--color-text-muted);font-size:14px}.original-gpt-state.error{border-color:#c645455c;background:#c6454514;color:var(--color-error)}.original-gpt-state button{margin-top:10px;padding:7px 10px;border:1px solid rgba(198,69,69,.36);border-radius:6px;background:var(--color-bg);color:var(--color-error);cursor:pointer}.original-gpt-turn{display:grid;gap:10px}.original-gpt-turn h4{position:sticky;top:-18px;z-index:1;margin:0;padding:8px 0 6px;background:var(--color-bg);color:var(--color-text-muted);font-size:12px;font-weight:700;text-transform:uppercase}.original-gpt-message{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);overflow:hidden}.original-gpt-message.user{background:var(--color-surface-soft)}.original-gpt-message-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--color-border);color:var(--color-text-muted);font-size:12px}.original-gpt-message-meta strong{color:var(--color-text);font-size:13px}.original-gpt-message-content{padding:12px}.message-prompt-trace{max-width:960px;margin-top:14px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);overflow:hidden}.message-prompt-trace summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 10px;color:var(--color-text-muted);cursor:pointer;font-size:12px}.message-prompt-trace summary::marker{color:var(--color-text-muted)}.message-prompt-trace-label{color:var(--color-text);font-weight:700}.message-prompt-trace summary>span:not(.message-prompt-trace-label),.message-prompt-trace summary>code{border:1px solid var(--color-border);border-radius:999px;background:var(--color-bg);padding:2px 8px;color:var(--color-text-muted);font-size:11px;font-weight:700}.message-prompt-trace code,.message-prompt-block pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.message-prompt-trace-body{display:grid;gap:8px;padding:0 10px 10px}.message-prompt-trace-empty,.message-prompt-trace-error{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);padding:10px;color:var(--color-text-muted);font-size:12px}.message-prompt-trace-error{border-color:#b91c1c42;color:var(--color-error)}.message-prompt-block{border:1px solid var(--color-border);border-radius:8px;overflow:hidden;background:var(--color-bg)}.message-prompt-block header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--color-border);padding:8px 10px}.message-prompt-block header span{border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text);padding:2px 8px;font-size:11px;font-weight:800}.message-prompt-block header em{color:var(--color-text-muted);font-size:11px;font-style:normal;font-weight:700}.message-prompt-block pre{max-height:420px;margin:0;overflow:auto;background:#111827;color:#e5eefb;padding:12px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.ai-avatar{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--color-sidebar);color:#faf9f5;font-size:11px;font-weight:700}.user-label{font-size:13px;font-weight:500;color:var(--color-text)}.message-content{padding-left:32px;color:var(--color-text);font-size:15px;line-height:1.6}.message-item.user .message-content{width:fit-content;max-width:min(690px,calc(100% - 32px));margin-left:32px;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-card)}.message-item.user .message-content p{margin:0}.message-item.assistant .message-content{max-width:960px}.message-item.assistant .message-content:not(.streaming){padding-top:2px}.message-content.streaming{position:relative}.streaming-markdown,.streaming-markdown .markdown-body{display:inline}.streaming-markdown .markdown-body>:first-child{margin-top:0}.streaming-markdown .markdown-body>:last-child{margin-bottom:0}.streaming-plain-text{white-space:pre-wrap;overflow-wrap:anywhere}.tool-label{font-size:12px;font-weight:500;color:var(--color-primary)}.tool-content{font-size:13px;color:var(--color-text-muted)}.tool-content details summary{cursor:pointer;font-size:12px;color:var(--color-text-muted);margin-bottom:4px}.tool-call-indicator{padding-left:32px;font-size:12px;color:var(--color-text-muted);font-style:italic;margin-bottom:2px}.quiz-card{border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);margin:10px 0;overflow:hidden}.quiz-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--color-surface-card);border-bottom:1px solid var(--color-border)}.quiz-kicker{font-size:11px;font-weight:500;text-transform:uppercase;color:#3d7b70;letter-spacing:1.2px}.quiz-title{font-size:15px;font-weight:500;color:var(--color-text)}.quiz-count{font-size:12px;color:var(--color-text-muted);white-space:nowrap}.quiz-questions{display:grid;gap:0}.quiz-question{padding:16px;border-bottom:1px solid var(--color-border)}.quiz-question:last-child{border-bottom:none}.quiz-question-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.quiz-question-meta span{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;background:var(--color-surface-card);color:var(--color-text-muted);font-size:12px}.quiz-question-text{font-size:15px;font-weight:500;color:var(--color-text);margin-bottom:12px}.quiz-answer-gate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface-soft);color:var(--color-text-muted);font-size:13px}.quiz-options{display:grid;gap:8px}.quiz-option{display:grid;grid-template-columns:28px 1fr;align-items:start;gap:8px;width:100%;padding:9px 10px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg);color:var(--color-text);text-align:left;cursor:pointer;font:inherit;transition:border-color .15s ease,background .15s ease}.quiz-option:hover{background:var(--color-surface-soft)}.quiz-option.selected{border-color:var(--color-primary);background:#cc785c1a}.quiz-option.correct{border-color:#5db87273;background:#5db8721a}.quiz-option.wrong{border-color:#c645456b;background:#c6454514}.quiz-option-id{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:var(--color-surface-card);font-size:12px;font-weight:500;color:var(--color-text)}.quiz-short-answer{width:100%;min-height:86px;resize:vertical;border:1px solid var(--color-border);border-radius:6px;padding:10px;font:inherit;line-height:1.5}.quiz-short-answer:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #cc785c26}.quiz-reveal-btn{flex:0 0 auto;min-height:36px;padding:6px 12px;border:1px solid rgba(93,184,166,.6);border-radius:6px;background:var(--color-bg);color:#3d7b70;font-size:13px;cursor:pointer}.quiz-reveal-btn:hover{background:#5db8a61f}.quiz-feedback{margin-top:10px;padding:10px 12px;border-radius:6px;background:var(--color-surface-soft);border:1px solid var(--color-border)}.quiz-feedback.correct{background:#5db8721a;border-color:#5db87259}.quiz-feedback.wrong{background:#c6454514;border-color:#c6454552}.quiz-answer-line{font-weight:500;color:var(--color-text);margin-bottom:4px}.quiz-explanation{color:#3d3d3a}.quiz-rubric{margin:8px 0 0;padding-left:20px;color:#3d3d3a}.quiz-self-check{margin-top:12px;padding-top:10px;border-top:1px solid var(--color-border)}.quiz-self-check-label{font-size:12px;font-weight:500;color:var(--color-text-muted);margin-bottom:8px}.quiz-self-check-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.quiz-self-check-btn{min-height:34px;padding:6px 8px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg);color:var(--color-text);font:inherit;font-size:13px;cursor:pointer}.quiz-self-check-btn:hover{background:var(--color-surface-soft)}.quiz-self-check-btn.selected.unknown{border-color:#c645456b;background:#c6454514;color:#8f2f2f}.quiz-self-check-btn.selected.vague{border-color:#e8a55a8c;background:#e8a55a1f;color:#8a5d10}.quiz-self-check-btn.selected.partial{border-color:var(--color-primary);background:#cc785c1a;color:var(--color-primary-hover)}.quiz-self-check-btn.selected.mastered{border-color:#5db87273;background:#5db8721a;color:#2f7f45}.quiz-empty{padding:16px;color:#6b7280}.blinking-cursor{display:inline-block;width:2px;height:1.2em;background:var(--color-primary);margin-left:2px;vertical-align:text-bottom;animation:blink 1s step-end infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.message-enter{animation:messageSlideIn .25s ease-out}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.loading-dots{display:inline-flex;align-items:center;gap:4px;padding:4px 0}.loading-dot{display:block;width:8px;height:8px;border-radius:50%;background:var(--color-text-muted);animation:dotPulse 1.4s ease-in-out infinite}.loading-dot:nth-child(2){animation-delay:.2s}.loading-dot:nth-child(3){animation-delay:.4s}@keyframes dotPulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.message-time{font-size:11px;color:var(--color-text-muted);margin-left:8px}.empty-state-content{text-align:center;color:var(--color-text-muted)}.empty-state-icon{display:inline-grid;place-items:center;width:52px;height:52px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-card);color:var(--color-primary);font-size:20px;font-weight:500;margin-bottom:16px}.empty-state-hint{font-size:14px;color:var(--color-text-muted);margin-top:8px}.send-icon{display:block}.stop-icon{font-size:12px;margin-right:4px}.chat-input-disabled{opacity:.62;cursor:not-allowed}.action-toolbar{padding:14px 28px 18px;border-top:1px solid var(--color-border);background:var(--color-surface-soft)}.toolbar-actions{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}.action-btn{padding:6px 14px;border-radius:8px;border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text);font-size:13px;font-weight:500;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease;min-height:44px;display:inline-flex;align-items:center;gap:6px}.action-btn:hover:not(:disabled){background:var(--color-surface-card);border-color:var(--color-primary)}.action-btn:disabled{opacity:.5;cursor:not-allowed}.action-btn-icon{font-size:14px}.action-btn-svg{flex-shrink:0}.feishu-link{display:inline-flex;align-items:center;text-decoration:none;color:var(--color-primary);border-color:var(--color-primary)}.feishu-link:hover{background:var(--color-surface-card)}.sync-btn{color:#3b7d4b;border-color:#5db87273}.sync-btn:hover:not(:disabled){background:#5db8721a}.generate-note-btn{color:var(--color-primary);border-color:var(--color-primary)}.generate-note-btn:hover:not(:disabled){background:var(--color-surface-card)}.generate-quiz-btn{color:#3d7b70;border-color:#5db8a68c}.generate-quiz-btn:hover:not(:disabled){background:#5db8a61f}.analyze-repo-btn{color:#9d6a22;border-color:#e8a55a8c}.analyze-repo-btn:hover:not(:disabled){background:#e8a55a1f}.note-action-error{color:var(--color-error);font-size:13px}.import-progress-banner{width:min(820px,calc(100% - 56px));margin:0 auto 12px;padding:12px 14px;border-radius:8px;border:1px solid rgba(204,120,92,.22);background:#f5f0e8;color:#252523}.import-progress-banner.failed{border-color:#c6454559;background:#fff5f5}.import-progress-copy{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.import-progress-copy span{font-size:12px;color:#6c6a64}.import-progress-copy strong{font-size:13px;font-weight:600}.import-progress-copy p{width:100%;margin:2px 0 0;font-size:12px;color:#c64545}.import-progress-track{height:4px;margin-top:10px;border-radius:999px;overflow:hidden;background:#1414131a}.import-progress-track span{display:block;height:100%;border-radius:inherit;background:#cc785c;transition:width .2s ease}.input-row{display:flex;gap:8px;align-items:flex-end;width:min(820px,100%);margin:0 auto}.chat-input{flex:1;padding:10px 14px;border:1px solid var(--color-border);border-radius:8px;font-size:15px;font-family:inherit;color:var(--color-text);background:var(--color-bg);resize:none;outline:none;line-height:1.5;max-height:200px;transition:border-color .15s ease}.chat-input:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #cc785c26}.chat-input:disabled{background:var(--color-surface-card);opacity:.7}.send-btn{padding:10px 20px;border-radius:8px;border:none;background:var(--color-primary);color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s ease;white-space:nowrap;min-height:44px}.send-btn:hover:not(:disabled){background:var(--color-primary-hover)}.send-btn:disabled{opacity:.5;cursor:not-allowed}.stop-btn{background:var(--color-error)}.stop-btn:hover{background:#b91c1c}.dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.dialog-content{background:var(--color-bg);border-radius:12px;padding:24px;width:480px;max-width:90vw;box-shadow:0 20px 60px #00000026}.dialog-content h3{font-size:18px;font-weight:600;margin-bottom:16px;color:#111827}.dialog-content input{width:100%;padding:10px 14px;border:1px solid #d1d5db;border-radius:8px;font-size:15px;font-family:inherit;outline:none;transition:border-color .15s ease}.dialog-content input:focus{border-color:var(--color-primary);box-shadow:0 0 0 2px #6366f126}.dialog-error{color:var(--color-error);font-size:13px;margin-top:8px}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.btn-secondary{padding:8px 16px;border-radius:6px;border:1px solid #d1d5db;background:var(--color-bg);color:#374151;font-size:14px;cursor:pointer}.btn-secondary:hover{background:#f9fafb}.btn-primary{padding:8px 16px;border-radius:6px;border:none;background:var(--color-primary);color:#fff;font-size:14px;font-weight:600;cursor:pointer}.btn-primary:hover:not(:disabled){background:var(--color-primary-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.settings-page{display:flex;flex-direction:column;height:100vh;background:#f9fafb}.settings-header{display:flex;align-items:center;justify-content:space-between;padding:16px 32px;border-bottom:1px solid var(--color-border);background:var(--color-bg)}.settings-header h1{font-size:20px;font-weight:700;color:var(--color-text)}.back-link{color:var(--color-primary);text-decoration:none;font-size:14px;font-weight:500}.back-link:hover{text-decoration:underline}.settings-error{margin:16px 32px 0;padding:10px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:var(--color-error);font-size:14px;display:flex;align-items:center;justify-content:space-between}.dismiss-btn{background:none;border:none;color:var(--color-error);cursor:pointer;font-size:18px;padding:0 4px}.settings-content{flex:1;overflow-y:auto;padding:24px 32px}.settings-content-inner{display:flex;flex-direction:column;gap:24px;max-width:800px;margin:0 auto;width:100%}.settings-card{background:var(--color-bg);border:1px solid var(--color-border);border-radius:12px;padding:24px}.settings-card h3{font-size:18px;font-weight:600;color:var(--color-text);margin-bottom:20px}.settings-card h4{font-size:15px;font-weight:600;color:var(--color-text);margin-bottom:12px}.settings-loading{padding:24px;text-align:center;color:var(--color-text-muted)}.settings-field{margin-bottom:16px}.settings-field label{display:block;font-size:14px;font-weight:500;color:var(--color-text);margin-bottom:6px}.settings-field input{width:100%;padding:10px 14px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease}.settings-field input:focus{border-color:var(--color-primary);box-shadow:0 0 0 2px #6366f126}.field-hint{display:block;font-size:12px;color:var(--color-text-muted);margin-top:4px}.api-keys-section{margin-top:20px;padding-top:16px;border-top:1px solid var(--color-border)}.api-key-row{margin-bottom:12px}.api-key-status{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:14px;color:var(--color-text)}.status-indicator{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}.status-set{background:#dcfce7;color:#16a34a}.status-unset{background:#fee2e2;color:#dc2626}.status-label{font-size:12px;color:var(--color-text-muted)}.api-key-input input{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease}.api-key-input input:focus{border-color:var(--color-primary);box-shadow:0 0 0 2px #6366f126}.restart-notice{margin-top:12px;padding:10px 14px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1d4ed8;font-size:14px}.save-message{margin-top:12px;padding:10px 14px;border-radius:8px;font-size:14px}.save-message.success{background:#dcfce7;border:1px solid #bbf7d0;color:#16a34a}.save-message.error{background:#fee2e2;border:1px solid #fecaca;color:var(--color-error)}.settings-save-btn{margin-top:16px}.settings-unavailable{padding:12px;background:#fef3c7;border:1px solid #fde68a;border-radius:8px;color:#92400e;font-size:14px}@media(max-width:767px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:100;transform:translate(-100%);transition:transform .3s ease;width:var(--sidebar-width);min-width:var(--sidebar-width)}.sidebar.sidebar-mobile-open{transform:translate(0)}.sidebar.sidebar-mobile-open .sidebar-toggle{display:none}.sidebar-collapsed{width:var(--sidebar-width);min-width:var(--sidebar-width)}.sidebar-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:99}.mobile-menu-btn{display:flex}.main-area{width:100%;margin-left:0}.chat-header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;padding:12px 16px;align-items:center}.chat-header-actions{grid-column:1 / -1;width:100%;justify-content:flex-start}.chat-note-popover{left:0;right:auto;width:min(380px,calc(100vw - 32px))}.chat-note-popover:before{right:auto;left:34px}.chat-followup-history-popover{left:0;right:auto;width:min(420px,calc(100vw - 32px));max-height:min(560px,calc(100dvh - 132px))}.chat-followup-history-popover:before{right:auto;left:44px}.chat-view-toggle{align-self:center}.chat-view-toggle button{padding:0 9px}.chat-title-edit-form{flex-wrap:wrap}.chat-title-input{width:100%;font-size:22px}.split-chat-workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto}.split-chat-pane[data-pane=left]{border-right:none;border-bottom:1px solid var(--color-border)}.split-chat-pane-header{padding:10px 12px;gap:10px}.split-chat-title-group h2{font-size:14px}.split-chat-controls{grid-template-columns:minmax(0,1fr) auto}.split-chat-select{font-size:12px}.split-bundle-select{grid-column:1 / -1}.split-chat-new-btn{padding:0 8px;font-size:12px}.split-message-list{padding:12px}.compare-composer{padding:10px 12px}.compare-send-btn{min-width:82px}.message-list{padding:12px 16px max(14px,env(safe-area-inset-bottom))}.note-panel-inner{padding:10px 16px}.note-panel-header{flex-direction:column;gap:8px}.note-panel-actions{width:100%}.knowledge-panel-header{flex-direction:column;gap:8px}.knowledge-panel-actions{width:100%}.knowledge-panel-actions .knowledge-panel-btn{flex:1}.knowledge-point-heading{flex-direction:column;gap:5px}.knowledge-point-heading span{align-self:flex-start}.note-detail-header{padding:12px 16px}.note-detail-main{padding:16px}.note-detail-article{padding:18px}.note-detail-title-row{flex-direction:column}.note-detail-actions{width:100%;justify-content:space-between}.note-detail-title{font-size:23px}.url-doc-header{padding:12px 16px}.url-doc-main{grid-template-columns:1fr;padding:16px}.url-doc-form{grid-template-columns:1fr}.url-doc-actions{justify-content:stretch}.url-doc-actions .maintenance-btn{width:100%}.action-toolbar{flex-shrink:0;padding:8px 12px max(12px,env(safe-area-inset-bottom))}.import-progress-banner{width:calc(100% - 24px)}.toolbar-actions{gap:6px}.action-btn-label{display:none}.action-btn{padding:8px 12px}.chat-input{font-size:16px}.send-btn{padding:10px 14px}.quiz-answer-gate{align-items:stretch;flex-direction:column}.quiz-self-check-options{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-header,.settings-content,.settings-card{padding:16px}.admin-chat-main{overflow-y:auto;padding:16px;grid-template-columns:1fr}.admin-layout{flex-direction:column;overflow-y:auto}.admin-shell-sidebar{width:100%;min-width:0;flex:0 0 auto;border-right:0;border-bottom:1px solid #dfe3ea;padding:14px}.admin-shell-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-shell-content{flex:1 1 auto;overflow:visible}.admin-chat-list,.admin-chat-detail{position:static;max-height:none;overflow:visible}.admin-chat-records{max-height:320px}.admin-chat-detail{grid-template-rows:auto}.admin-chat-detail-header{flex-direction:column}.admin-chat-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-chat-messages{overflow:visible}.admin-chat-trace-grid,.admin-chat-trace-module,.admin-chat-module-detail-grid{grid-template-columns:1fr}.admin-chat-prompt-snapshot-header,.admin-chat-module-detail-header{flex-direction:column}.profile-playground-main{overflow-y:auto;padding:16px;grid-template-columns:1fr}.profile-playground-topbar{align-items:flex-start;flex-direction:column;padding:16px}.profile-playground-top-actions,.profile-playground-top-actions .profile-playground-btn{width:100%}.profile-playground-search{grid-template-columns:1fr}.profile-playground-sidebar,.profile-playground-turn-column,.profile-playground-control,.profile-playground-workbench{grid-column:1}.profile-playground-sidebar{position:static;max-height:none;overflow:visible}.profile-playground-records{max-height:320px}.profile-playground-turn-list{max-height:260px}.profile-playground-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-playground-before-after,.profile-playground-overview-grid,.profile-playground-json-grid{grid-template-columns:1fr}.profile-playground-form{align-items:stretch}.profile-playground-form .maintenance-field,.profile-playground-form .maintenance-btn{width:100%}.eval-console-main{overflow-y:auto;padding:16px;grid-template-columns:1fr}.eval-run-list,.eval-run-detail{position:static;max-height:none;overflow:visible}.eval-run-items{max-height:320px}.eval-run-meta-grid,.eval-detail-grid,.eval-variant-admin-toolbar,.eval-variant-form-grid,.eval-run-variant-card dl{grid-template-columns:1fr}.eval-case-list{max-height:320px}.eval-case-detail-header{flex-direction:column}.eval-datasets-main{overflow-y:auto;padding:16px;grid-template-columns:1fr}.eval-dataset-editor-grid,.eval-case-form-grid{grid-template-columns:1fr}.prompt-admin-main{overflow-y:auto;padding:16px;grid-template-columns:1fr}.prompt-admin-list,.prompt-admin-editor{overflow:visible}.prompt-admin-items{max-height:280px}.prompt-admin-editor{grid-template-rows:auto}.prompt-admin-content textarea{min-height:420px}.prompt-console-page{height:100vh;grid-template-columns:1fr;overflow-y:auto}.prompt-console-rail{grid-template-rows:auto auto auto auto auto;border-right:0;border-bottom:1px solid #dfe3ea;overflow:visible}.prompt-console-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.prompt-console-bundle-picker{overflow:visible}.prompt-console-bundle-list{max-height:240px;overflow-y:auto}.prompt-console-shell{overflow:visible;grid-template-rows:auto auto auto}.prompt-console-topbar{flex-direction:column;padding:16px}.prompt-console-content{overflow:visible;padding:16px}.prompt-console-grid{height:auto;grid-template-columns:1fr}.prompt-console-primary,.prompt-console-inspector{overflow:visible}.prompt-mgmt-section-title{flex-direction:column}.prompt-mgmt-status-strip{justify-content:flex-start}.prompt-mgmt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.prompt-mgmt-items{overflow:visible}.prompt-mgmt-item-header{display:none}.prompt-mgmt-item-row{grid-template-columns:72px minmax(0,1fr)}.prompt-mgmt-item-row select,.prompt-mgmt-required,.prompt-mgmt-row-actions,.prompt-mgmt-icon-btn{grid-column:1 / -1}.prompt-mgmt-row-actions{justify-content:stretch}.prompt-mgmt-row-actions .prompt-mgmt-small-btn,.prompt-mgmt-row-actions .prompt-mgmt-icon-btn{flex:1;width:auto}.prompt-mgmt-template textarea,.prompt-console-stack textarea{min-height:220px}.dialog-content{width:95vw;padding:16px}}@media(min-width:768px){.sidebar-overlay,.mobile-menu-btn{display:none!important}.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar-width);transform:none}.sidebar-collapsed{width:var(--sidebar-collapsed-width);min-width:var(--sidebar-collapsed-width)}.main-area{margin-left:var(--sidebar-width);transition:margin-left .2s ease}.app-layout:has(.sidebar-collapsed) .main-area{margin-left:var(--sidebar-collapsed-width)}}@media(min-width:1024px){.chat-header{padding:14px 32px}.message-list{padding:20px 32px}.action-toolbar{padding:14px 32px 18px}.settings-content{padding:32px 48px}}.suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:8px 24px 16px}.suggestion-chip{background:#f3f4f6;color:var(--color-text);border:1px solid var(--color-border);border-radius:16px;padding:6px 14px;font-size:13px;cursor:pointer;transition:all .15s ease}.suggestion-chip:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.tool-calls-container{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.tool-call-card{background:#f0f4ff;border:1px solid #d0d8f0;border-radius:8px;overflow:hidden}.tool-call-header{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#e4eaf8;font-size:13px;font-weight:500;color:#3b5998}.tool-call-icon{font-size:14px}.tool-call-name{flex:1}.tool-call-done{color:#22c55e;font-weight:700}.tool-call-result{padding:8px 12px;font-size:13px;max-height:200px;overflow-y:auto}.tool-call-result-plain{max-height:200px;margin:0;overflow-y:auto;padding:8px 12px;color:var(--color-text);font-family:var(--font-body);font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.tool-call-result .markdown-body{font-size:13px}.tool-call-result .markdown-body p{margin:2px 0}.mermaid-container{background:#1e1e2e;border-radius:8px;padding:16px;margin:8px 0;overflow-x:auto;text-align:center}.mermaid-container svg{max-width:100%;height:auto}.header-actions{display:flex;gap:8px;margin-left:auto}.btn-interview{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:6px 14px;font-size:13px;cursor:pointer;font-weight:500}.btn-interview:hover{background:#1d4ed8}.btn-end-interview{background:#dc2626;color:#fff;border:none;border-radius:6px;padding:6px 14px;font-size:13px;cursor:pointer;font-weight:500}.btn-end-interview:hover{background:#b91c1c}.btn-end-interview:disabled{opacity:.5;cursor:not-allowed}.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.dialog-content{background:#1e1e2e;border-radius:12px;padding:24px;width:90%;max-width:520px;color:#e2e8f0}.dialog-content h3{color:#f1f5f9}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.btn-primary{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:8px 18px;cursor:pointer;font-weight:500}.btn-primary:hover{background:#1d4ed8}.btn-primary:disabled{opacity:.5}.btn-secondary{background:transparent;color:#94a3b8;border:1px solid #475569;border-radius:6px;padding:8px 18px;cursor:pointer}.btn-secondary:hover{border-color:#94a3b8}.import-dialog{max-width:640px}.import-dialog-header{margin-bottom:16px}.import-dialog-header h3{margin:4px 0 0}.import-field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.import-field span{font-size:13px;color:#94a3b8}.import-field input{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #475569;background:#0f172a6b;color:#f8fafc;font:inherit}.import-field input:focus{outline:none;border-color:#cc785c;box-shadow:0 0 0 2px #cc785c2e}.import-dialog-actions,.import-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px}.import-preview{margin-top:18px;padding-top:16px;border-top:1px solid #334155}.import-preview-stats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.import-preview-stats span{padding:4px 8px;border-radius:999px;background:#cc785c24;color:#f1f5f9;font-size:12px}.import-preview-list{display:grid;gap:8px;max-height:220px;overflow:auto;margin-bottom:14px}.import-preview-item{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;padding:9px 10px;border-radius:8px;border:1px solid #334155}.import-preview-item span{color:#94a3b8;font-size:12px}.import-preview-item p{margin:0;color:#e2e8f0;font-size:13px;line-height:1.45}.import-dialog-footer p{flex:1;margin:0;color:#94a3b8;font-size:12px;line-height:1.4}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:13px;color:#94a3b8;margin-bottom:8px}.radio-group{display:flex;flex-direction:column;gap:8px}.radio-group.horizontal{flex-direction:row;flex-wrap:wrap;gap:8px}.radio-card{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #334155;border-radius:8px;cursor:pointer;transition:border-color .2s}.radio-card:hover{border-color:#475569}.radio-card.active{border-color:#2563eb;background:#2563eb1a}.radio-card input{margin-top:2px;accent-color:#2563eb}.radio-card strong{display:block;font-size:14px;color:#f1f5f9}.radio-card small{display:block;font-size:12px;color:#94a3b8}.radio-pill{padding:6px 14px;border:1px solid #334155;border-radius:20px;cursor:pointer;font-size:13px;color:#94a3b8;transition:all .2s}.radio-pill:hover{border-color:#475569}.radio-pill.active{border-color:#2563eb;background:#2563eb26;color:#93c5fd}.radio-pill input{display:none}.interview-report{max-width:600px;margin:20px auto;padding:24px;background:#1e1e2e;border-radius:12px;color:#e2e8f0}.interview-report h3{text-align:center;margin-bottom:20px}.report-overall{text-align:center;margin-bottom:24px}.report-overall-score{font-size:48px;font-weight:700;color:#22c55e}.report-overall-label{font-size:14px;color:#94a3b8}.report-scores{margin-bottom:24px}.score-bar{display:flex;align-items:center;gap:10px;margin-bottom:8px}.score-bar-label{width:90px;font-size:13px;color:#94a3b8}.score-bar-track{flex:1;height:8px;background:#334155;border-radius:4px;overflow:hidden}.score-bar-fill{height:100%;border-radius:4px;transition:width .5s}.score-bar-value{width:36px;font-size:13px;text-align:right;color:#e2e8f0}.report-section{margin-bottom:16px}.report-section h4{font-size:14px;color:#93c5fd;margin-bottom:6px}.report-section p{font-size:14px;line-height:1.6;color:#cbd5e1}.sidebar-feishu{position:relative;display:grid;gap:8px;padding:10px 12px 12px;border-top:1px solid rgba(250,249,245,.1)}.sidebar-feishu.needs-attention{isolation:isolate;padding-top:12px}.sidebar-feishu.needs-attention:before{content:"";position:absolute;top:4px;right:6px;bottom:6px;left:6px;z-index:-1;border:1px solid rgba(204,120,92,.42);border-radius:10px;background:linear-gradient(180deg,#f5f0e81f,#cc785c14);box-shadow:inset 3px 0 #cc785ce0,0 14px 32px #00000038;animation:feishuSpotlightPulse 1.6s ease-in-out 2}.sidebar-feishu.needs-attention>*{position:relative;z-index:1}.feishu-attention-callout{display:flex;align-items:center;gap:8px;min-height:36px;padding:9px 10px;border:1px solid rgba(204,120,92,.36);border-radius:8px;background:#f5f0e8;color:#252523;box-shadow:0 10px 24px #00000029;font-size:12px;font-weight:700;line-height:1.35}.feishu-attention-callout:before{content:"";display:inline-grid;place-items:center;flex:0 0 auto;width:8px;height:8px;border-radius:999px;background:var(--color-primary);box-shadow:0 0 0 4px #cc785c29}.sidebar-account{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:32px}.sidebar-account span{min-width:0;color:#faf9f5b8;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-account button{min-height:30px;border:1px solid rgba(250,249,245,.14);border-radius:6px;background:transparent;color:var(--color-sidebar-text);cursor:pointer;font-size:12px;padding:0 10px}.sidebar-account button:hover{background:var(--color-sidebar-hover)}.feishu-toggle-btn{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:9px 10px;background:#faf9f50f;border:1px solid rgba(250,249,245,.1);border-radius:8px;color:var(--color-sidebar-text);cursor:pointer;text-align:left;transition:background .15s,border-color .15s}.feishu-toggle-btn:hover{background:var(--color-sidebar-hover);border-color:#faf9f529}.feishu-toggle-btn.bound{border-color:#5db8a652}.feishu-toggle-btn.needs-attention{border-color:#cc785ca3;background:#f5f0e81f;color:var(--color-sidebar-text);box-shadow:0 0 0 3px #cc785c1f,0 8px 20px #0000002e}.feishu-toggle-btn.needs-attention .feishu-toggle-label,.feishu-toggle-btn.needs-attention .feishu-toggle-value{color:var(--color-sidebar-text)}.feishu-toggle-btn.needs-attention .feishu-status-dot{background:var(--color-primary)}.feishu-status-dot{width:9px;height:9px;border-radius:999px;background:#a09d96}.feishu-status-dot.bound{background:var(--color-success)}.feishu-toggle-copy{min-width:0;display:grid;gap:2px}.feishu-toggle-label,.feishu-toggle-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feishu-toggle-label{color:#faf9f5e0;font-size:12px;font-weight:700;line-height:1.25}.feishu-toggle-value{color:#faf9f594;font-size:11px;line-height:1.25}.feishu-entry-hint{margin:7px 2px 0;color:#e8a55af5;font-size:11px;font-weight:700;line-height:1.4}.feishu-panel{margin-top:8px;padding:12px;background:var(--color-sidebar-hover);border:1px solid rgba(250,249,245,.08);border-radius:8px}.feishu-panel:focus{outline:none}.feishu-panel.needs-attention{border-color:#cc785c6b;background:#cc785c14;box-shadow:0 0 0 3px #cc785c1a}.feishu-bound-card{display:grid;gap:8px;padding:10px;background:var(--color-sidebar-active);border:1px solid rgba(204,120,92,.24);border-radius:8px}.feishu-bound-info p{font-size:13px;color:var(--color-sidebar-text);margin-bottom:4px}.feishu-user{font-size:12px!important;opacity:.7}.feishu-actions{display:flex;gap:8px;margin-top:8px}.feishu-btn{padding:6px 12px;min-height:32px;border:none;border-radius:6px;font-size:13px;line-height:1.2;cursor:pointer;transition:opacity .15s,background .15s}.feishu-btn:hover:not(:disabled){opacity:.85}.feishu-btn:disabled{cursor:not-allowed;opacity:.6}.feishu-btn-block{width:100%}.feishu-btn-primary{background:var(--color-primary);color:#fff}.feishu-btn-secondary{background:var(--color-sidebar-active);color:var(--color-sidebar-text)}.feishu-btn-danger{background:var(--color-error);color:#fff}.feishu-btn.attention-primary{min-height:42px;border:1px solid rgba(250,249,245,.34);background:var(--color-primary);color:#fff;box-shadow:0 0 0 3px #cc785c29,0 10px 22px #0003;font-size:14px;font-weight:800}.feishu-btn.attention-primary:hover:not(:disabled){background:var(--color-primary-hover);opacity:1}.feishu-btn:focus-visible,.feishu-space-item:focus-visible{outline:2px solid rgba(232,165,90,.85);outline-offset:2px}.feishu-hint{font-size:12px;color:var(--color-sidebar-text);opacity:.7;margin-bottom:8px}.feishu-help{font-size:11px;color:var(--color-sidebar-text);opacity:.5;margin-top:8px}.feishu-loading{font-size:12px;color:var(--color-sidebar-text);margin-top:4px}.feishu-next-action{display:grid;gap:8px;margin-top:10px;padding:10px;border:1px solid rgba(250,249,245,.1);border-radius:8px;background:#faf9f50d}.feishu-next-action p{color:var(--color-sidebar-text);font-size:12px;line-height:1.45;opacity:.84}.feishu-next-action.needs-attention{border:1px solid rgba(204,120,92,.46);background:#f5f0e81a;box-shadow:inset 3px 0 #cc785ce0,0 10px 24px #0000002e}.feishu-next-action.needs-attention p{color:var(--color-sidebar-text);opacity:1;font-weight:700}.feishu-next-action.needs-attention .feishu-help{color:var(--color-sidebar-text);opacity:.68}.feishu-space-list{margin-top:8px}.feishu-space-title{font-size:12px;color:var(--color-sidebar-text);margin-bottom:4px}.feishu-space-item{display:block;width:100%;padding:8px;margin-bottom:4px;background:var(--color-sidebar-active);border:1px solid transparent;border-radius:6px;color:var(--color-sidebar-text);font-size:13px;text-align:left;cursor:pointer;transition:border-color .15s}.feishu-space-item:hover{border-color:var(--color-primary)}.feishu-space-item.active{border-color:var(--color-primary);background:#6366f126}@keyframes feishuAttentionPulse{0%,to{box-shadow:0 0 0 3px #e8a55a1f}50%{box-shadow:0 0 0 6px #e8a55a47}}@keyframes feishuSpotlightPulse{0%,to{box-shadow:inset 3px 0 #cc785ce0,0 14px 32px #00000038}50%{box-shadow:inset 3px 0 #cc785c,0 0 0 4px #cc785c29,0 16px 36px #00000042}}@keyframes feishuScrimFadeIn{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.feishu-attention-scrim,.sidebar-feishu.needs-attention:before,.feishu-toggle-btn.needs-attention,.feishu-next-action.needs-attention{animation:none}}.feishu-unbind-confirm{display:grid;gap:10px;margin-top:10px;padding:10px;border:1px solid rgba(198,69,69,.35);border-radius:8px;background:#c6454514}.feishu-unbind-confirm p{color:var(--color-sidebar-text);font-size:12px;line-height:1.5;opacity:.86}.feishu-unbind-actions{display:flex;justify-content:flex-end;gap:8px}.feishu-unbind-actions .feishu-btn:disabled{cursor:not-allowed;opacity:.6}.feishu-setup-guide{margin-top:8px;padding:12px;background:var(--color-sidebar-active);border-radius:8px;border:1px solid rgba(245,158,11,.3)}.feishu-setup-title{font-size:13px;font-weight:600;color:#f59e0b;margin-bottom:6px}.feishu-setup-desc{font-size:12px;color:var(--color-sidebar-text);opacity:.8;margin-bottom:8px;line-height:1.4}.feishu-bound-card .feishu-setup-title,.feishu-bound-card .feishu-setup-desc{margin-bottom:0}.feishu-bound-card .feishu-setup-title{color:var(--color-sidebar-text)}.feishu-setup-meta{display:grid;gap:6px;margin:2px 0 4px}.feishu-setup-meta div{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:8px}.feishu-setup-meta span{color:var(--color-sidebar-text);font-size:11px;opacity:.55}.feishu-setup-meta strong{min-width:0;overflow:hidden;color:var(--color-sidebar-text);font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.feishu-setup-steps{font-size:12px;color:var(--color-sidebar-text);padding-left:18px;margin-bottom:10px;line-height:1.6}.feishu-setup-steps li{margin-bottom:2px}.feishu-app-name{padding:1px 6px;background:#6366f126;border-radius:4px;font-size:12px;color:var(--color-primary);font-family:inherit}.feishu-setup-actions{margin-top:4px;display:flex;gap:8px;align-items:center}.feishu-setup-actions .feishu-btn{text-decoration:none;display:inline-block}.feishu-onboarding-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;display:grid;place-items:center;padding:24px;background:#1414136b}.feishu-onboarding-modal{width:min(520px,100%);max-height:calc(100vh - 48px);overflow-y:auto;border:1px solid rgba(204,120,92,.22);border-radius:8px;background:#fffdf8;color:var(--color-text);box-shadow:0 24px 80px #14141338;padding:28px}.feishu-onboarding-kicker{color:var(--color-primary);font-size:12px;font-weight:700;text-transform:uppercase;margin-bottom:8px}.feishu-onboarding-modal h2{color:var(--color-text);font-family:var(--font-display);font-size:34px;font-weight:400;line-height:1.1;margin-bottom:12px}.feishu-onboarding-copy{color:var(--color-text-muted);font-size:15px;line-height:1.6;margin-bottom:18px}.feishu-onboarding-benefits{display:grid;gap:8px;margin-bottom:18px}.feishu-onboarding-benefit{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;border:1px solid rgba(204,120,92,.18);border-radius:8px;background:var(--color-surface-soft)}.feishu-onboarding-benefit span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#5db87224;color:#2f7f45;font-size:13px;font-weight:800}.feishu-onboarding-benefit p{display:grid;gap:2px;min-width:0;margin:0}.feishu-onboarding-benefit strong{color:var(--color-text);font-size:13px;font-weight:800;line-height:1.35}.feishu-onboarding-benefit small{color:var(--color-text-muted);font-size:12px;line-height:1.45}.feishu-onboarding-flow{display:grid;grid-template-columns:max-content 1fr max-content 1fr max-content;align-items:center;gap:8px;margin-bottom:18px}.feishu-onboarding-flow span{min-height:28px;display:inline-flex;align-items:center;border:1px solid var(--color-border);border-radius:999px;color:var(--color-text-muted);font-size:12px;font-weight:700;padding:4px 10px;white-space:nowrap}.feishu-onboarding-flow span.active{border-color:#cc785c73;background:#cc785c1f;color:var(--color-primary-hover)}.feishu-onboarding-flow i{height:1px;background:var(--color-border)}.feishu-onboarding-error,.feishu-onboarding-empty{border-radius:8px;font-size:13px;line-height:1.5;margin-bottom:14px;padding:10px 12px}.feishu-onboarding-error{background:#c645451a;color:var(--color-error)}.feishu-onboarding-empty{background:var(--color-surface-soft);color:var(--color-text-muted)}.feishu-onboarding-actions{display:flex;justify-content:flex-end;gap:10px}.feishu-onboarding-primary,.feishu-onboarding-secondary{min-height:40px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:700;padding:9px 16px}.feishu-onboarding-primary{border:1px solid transparent;background:var(--color-primary);color:#fff}.feishu-onboarding-primary:hover:not(:disabled){background:var(--color-primary-hover)}.feishu-onboarding-primary:disabled{cursor:not-allowed;opacity:.64}.feishu-onboarding-secondary{border:1px solid var(--color-border);background:transparent;color:var(--color-text-muted)}.feishu-onboarding-secondary:hover{background:var(--color-surface-soft);color:var(--color-text)}.feishu-onboarding-space-step{display:grid;gap:14px}.feishu-onboarding-spaces{display:grid;gap:8px}.feishu-onboarding-space{width:100%;min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;font:inherit;padding:10px 12px;text-align:left}.feishu-onboarding-space:hover{border-color:#cc785c8c;background:var(--color-surface-soft)}.feishu-onboarding-space span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feishu-onboarding-space strong{color:var(--color-primary);font-size:13px}@media(max-width:560px){.feishu-onboarding-overlay{align-items:end;padding:12px}.feishu-onboarding-modal{max-height:calc(100vh - 24px);padding:22px}.feishu-onboarding-modal h2{font-size:30px}.feishu-onboarding-flow{grid-template-columns:1fr;gap:6px}.feishu-onboarding-flow i{display:none}.feishu-onboarding-actions{display:grid;grid-template-columns:1fr}}.profile-onboarding-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1210;display:grid;place-items:center;padding:24px;background:#1414136b}.profile-onboarding-modal{width:min(680px,100%);max-height:calc(100vh - 48px);overflow-y:auto;border:1px solid rgba(204,120,92,.22);border-radius:8px;background:#fffdf8;color:var(--color-text);box-shadow:0 24px 80px #14141338;padding:28px}.profile-onboarding-kicker{color:var(--color-primary);font-size:12px;font-weight:700;text-transform:uppercase;margin-bottom:8px}.profile-onboarding-modal h2{color:var(--color-text);font-family:var(--font-display);font-size:34px;font-weight:400;line-height:1.1;margin-bottom:12px}.profile-onboarding-copy{color:var(--color-text-muted);font-size:15px;line-height:1.6;margin-bottom:18px}.profile-onboarding-error,.profile-onboarding-empty{border-radius:8px;font-size:13px;line-height:1.5;margin-bottom:14px;padding:10px 12px}.profile-onboarding-error{background:#c645451a;color:var(--color-error)}.profile-onboarding-empty{background:var(--color-surface-soft);color:var(--color-text-muted)}.profile-onboarding-input-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;margin-bottom:16px}.profile-onboarding-input-stack{display:grid;gap:18px;margin-bottom:16px}.profile-onboarding-voice-button{width:100%;min-height:136px;display:grid;justify-items:center;gap:10px;border:1px solid transparent;border-radius:8px;background:var(--color-primary);color:#fff;cursor:pointer;font:inherit;padding:22px 20px;text-align:center}.profile-onboarding-voice-button:hover:not(:disabled){background:var(--color-primary-hover)}.profile-onboarding-voice-button:disabled{cursor:wait;opacity:.76}.profile-onboarding-voice-button.recording{background:#b84f4f}.profile-onboarding-voice-button.recording:hover:not(:disabled){background:#983d3d}.profile-onboarding-voice-button strong{min-width:0;overflow:hidden;font-size:20px;font-weight:900;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.profile-onboarding-voice-button small{max-width:460px;color:#ffffffd1;font-size:13px;line-height:1.45}.profile-onboarding-progress{width:min(260px,100%);height:5px;overflow:hidden;border-radius:999px;background:#ffffff2e}.profile-onboarding-progress i{display:block;width:42%;height:100%;border-radius:inherit;background:#ffffffd1;animation:profile-onboarding-progress 1.15s ease-in-out infinite}.profile-onboarding-voice-icon{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:58px;height:58px;border-radius:8px;background:#ffffff29}.profile-onboarding-voice-icon i{display:block;width:6px;height:18px;border-radius:999px;background:#ffffffe6}.profile-onboarding-voice-button.recording .profile-onboarding-voice-icon i{animation:profile-onboarding-level .82s ease-in-out infinite}.profile-onboarding-voice-button.recording .profile-onboarding-voice-icon i:nth-child(2){animation-delay:.12s}.profile-onboarding-voice-button.recording .profile-onboarding-voice-icon i:nth-child(3){animation-delay:.24s}.profile-onboarding-default-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(204,120,92,.22);border-radius:8px;background:#cc785c14;padding:12px 14px}.profile-onboarding-default-card div{min-width:0;display:grid;gap:4px}.profile-onboarding-default-card span{color:var(--color-primary-hover);font-size:13px;font-weight:900}.profile-onboarding-default-card p{margin:0;color:var(--color-text-muted);font-size:13px;line-height:1.45}.profile-onboarding-default-card button{flex:0 0 auto;min-height:36px;border:1px solid rgba(204,120,92,.28);border-radius:8px;background:#fffdf8;color:var(--color-primary-hover);cursor:pointer;font-size:13px;font-weight:900;padding:7px 12px;white-space:nowrap}.profile-onboarding-default-card button:hover{background:var(--color-primary);color:#fff}.profile-onboarding-textbox{display:grid;gap:8px}.profile-onboarding-text-header{display:flex;align-items:center}.profile-onboarding-text-header label{color:var(--color-text-muted);font-size:13px;font-weight:800}.profile-onboarding-text-actions{display:flex;justify-content:flex-end}.profile-onboarding-text-submit{min-height:32px;border:1px solid var(--color-border);border-radius:8px;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:13px;font-weight:800;padding:6px 12px}.profile-onboarding-text-submit:hover:not(:disabled){background:var(--color-surface-soft);color:var(--color-text)}.profile-onboarding-text-submit:disabled{cursor:not-allowed;opacity:.48}.profile-onboarding-textbox textarea{width:100%;min-height:148px;resize:vertical;border:1px solid var(--color-border);border-radius:8px;background:#fffaf2;color:var(--color-text);font:inherit;font-size:14px;line-height:1.6;padding:12px}.profile-onboarding-recorder{min-width:0;display:grid;align-content:center;justify-items:center;gap:10px;border:1px solid rgba(204,120,92,.18);border-radius:8px;background:var(--color-surface-soft);padding:14px;text-align:center}.profile-onboarding-recorder strong{color:var(--color-text);font-size:28px}.profile-onboarding-recorder small{color:var(--color-text-muted);font-size:12px}.profile-onboarding-recorder audio{width:100%}.profile-onboarding-transcript{width:100%;max-height:72px;overflow-y:auto;color:var(--color-text-muted);font-size:12px;line-height:1.5;text-align:left}.profile-onboarding-level{height:42px;display:inline-flex;align-items:center;gap:5px}.profile-onboarding-level i{display:block;width:6px;height:14px;border-radius:999px;background:#cc785c5c}.profile-onboarding-level.active i{animation:profile-onboarding-level .82s ease-in-out infinite}.profile-onboarding-level.active i:nth-child(2){animation-delay:90ms}.profile-onboarding-level.active i:nth-child(3){animation-delay:.18s}.profile-onboarding-level.active i:nth-child(4){animation-delay:.27s}.profile-onboarding-level.active i:nth-child(5){animation-delay:.36s}@keyframes profile-onboarding-level{0%,to{height:12px}50%{height:34px}}@keyframes profile-onboarding-progress{0%{transform:translate(-120%)}to{transform:translate(260%)}}.profile-onboarding-loading{display:grid;gap:6px;border:1px solid rgba(204,120,92,.2);border-radius:8px;background:var(--color-surface-soft);margin-bottom:16px;padding:16px}.profile-onboarding-loading strong{color:var(--color-text);font-size:15px}.profile-onboarding-loading span{color:var(--color-text-muted);font-size:13px}.profile-onboarding-transcript-preview{display:grid;gap:4px;border:1px solid rgba(204,120,92,.16);border-radius:8px;background:#fffaf2;margin-top:6px;padding:10px 12px}.profile-onboarding-transcript-preview span{color:var(--color-primary-hover);font-size:12px;font-weight:900}.profile-onboarding-transcript-preview p{max-height:72px;overflow-y:auto;margin:0;color:var(--color-text-muted);font-size:13px;line-height:1.5}.profile-onboarding-timing{display:flex;flex-wrap:wrap;gap:6px}.profile-onboarding-timing span{border:1px solid rgba(204,120,92,.18);border-radius:8px;background:#cc785c12;color:var(--color-text-muted);font-size:12px;font-weight:800;padding:5px 8px}.profile-onboarding-edit{display:grid;gap:10px;margin-top:8px}.profile-onboarding-edit label{display:grid;gap:6px}.profile-onboarding-edit label span{color:var(--color-text-muted);font-size:12px;font-weight:900}.profile-onboarding-edit input,.profile-onboarding-edit textarea{width:100%;border:1px solid var(--color-border);border-radius:8px;background:#fffaf2;color:var(--color-text);font:inherit;font-size:13px;line-height:1.5;padding:9px 10px}.profile-onboarding-edit textarea{min-height:78px;resize:vertical}.profile-onboarding-loading .profile-onboarding-progress{width:100%;margin-top:8px;background:#cc785c24}.profile-onboarding-loading .profile-onboarding-progress i{background:#cc785cc2}.profile-onboarding-confirm{display:grid;gap:12px;margin-bottom:16px}.profile-onboarding-confidence{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--color-border);border-radius:8px;background:#fffaf2;padding:10px 12px}.profile-onboarding-confidence span{color:var(--color-text-muted);font-size:12px;font-weight:800;text-transform:uppercase}.profile-onboarding-confidence strong{color:var(--color-primary-hover);font-size:15px}.profile-onboarding-fields{display:grid;gap:8px}.profile-onboarding-field{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start;border:1px solid var(--color-border);border-radius:8px;background:#fffaf2;padding:10px 12px}.profile-onboarding-field input{width:16px;height:16px;margin-top:2px}.profile-onboarding-field span{min-width:0;display:grid;gap:4px}.profile-onboarding-field b{color:var(--color-text);font-size:13px;line-height:1.35}.profile-onboarding-field small{color:var(--color-text-muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}.profile-onboarding-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.profile-onboarding-primary,.profile-onboarding-secondary{min-height:40px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:700;padding:9px 16px}.profile-onboarding-primary{border:1px solid transparent;background:var(--color-primary);color:#fff}.profile-onboarding-primary:hover:not(:disabled){background:var(--color-primary-hover)}.profile-onboarding-primary:disabled{cursor:not-allowed;opacity:.64}.profile-onboarding-secondary{border:1px solid var(--color-border);background:transparent;color:var(--color-text-muted)}.profile-onboarding-secondary:hover{background:var(--color-surface-soft);color:var(--color-text)}@media(max-width:560px){.profile-onboarding-overlay{align-items:end;padding:12px}.profile-onboarding-modal{max-height:calc(100vh - 24px);padding:22px}.profile-onboarding-modal h2{font-size:30px}.profile-onboarding-input-grid{grid-template-columns:1fr}.profile-onboarding-voice-button{min-height:126px}.profile-onboarding-voice-button strong{font-size:18px;white-space:normal}.profile-onboarding-default-card{align-items:stretch;flex-direction:column}.profile-onboarding-default-card button{width:100%}.profile-onboarding-text-header{align-items:center}.profile-onboarding-text-submit{width:100%}.profile-onboarding-actions{display:grid;grid-template-columns:1fr}}.local-debug-toolbox{position:fixed;right:16px;bottom:16px;z-index:1030;color:var(--color-text);font-family:var(--font-body)}.local-debug-toggle{min-height:36px;border:1px solid rgba(20,20,19,.12);border-radius:999px;background:var(--color-sidebar);box-shadow:0 10px 30px #1414132e;color:var(--color-sidebar-text);cursor:pointer;font-size:12px;font-weight:800;padding:0 14px}.local-debug-toolbox.open .local-debug-toggle{display:none}.local-debug-panel{width:min(360px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 32px));overflow-y:auto;border:1px solid rgba(204,120,92,.28);border-radius:8px;background:#fffdf8;box-shadow:0 24px 70px #1414133d;padding:14px}.local-debug-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-border);padding-bottom:10px}.local-debug-header p{color:var(--color-text);font-size:14px;font-weight:800;margin:0 0 3px}.local-debug-header span{color:var(--color-text-muted);font-size:12px}.local-debug-header button{width:28px;height:28px;border:1px solid var(--color-border);border-radius:999px;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:18px;line-height:1}.local-debug-section{display:grid;gap:8px;border-bottom:1px solid var(--color-border);padding:12px 0}.local-debug-section:last-of-type{border-bottom:0}.local-debug-section-title{color:var(--color-primary);font-size:12px;font-weight:800;margin:0}.local-debug-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.local-debug-actions button,.local-debug-link-btn{min-height:34px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg);color:var(--color-text);cursor:pointer;font-size:12px;font-weight:700;padding:7px 9px}.local-debug-actions button:hover,.local-debug-link-btn:hover{border-color:#cc785c70;background:var(--color-surface-soft)}.local-debug-storage-list{display:grid;gap:8px}.local-debug-storage-item{display:grid;gap:5px;min-width:0;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);padding:8px}.local-debug-storage-item strong,.local-debug-storage-item code{min-width:0;overflow:hidden;text-overflow:ellipsis}.local-debug-storage-item strong{color:var(--color-text);font-size:11px;font-weight:800;white-space:nowrap}.local-debug-storage-item code,.local-debug-script{color:var(--color-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;line-height:1.5}.local-debug-storage-item code{white-space:pre-wrap;word-break:break-word}.local-debug-empty{color:var(--color-text-muted);font-size:12px;margin:0}.local-debug-link-btn{width:100%;background:transparent}.local-debug-script{overflow-x:auto;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft);margin:0;padding:10px}.local-debug-message{margin:8px 0 0;border-radius:8px;background:#5db8721f;color:#2f7f45;font-size:12px;font-weight:700;line-height:1.45;padding:8px 10px}@media(max-width:560px){.local-debug-toolbox{right:12px;bottom:12px}}.asr-demo-page{min-width:0;height:100%;overflow:auto;background:#f8fafc;color:var(--color-text);padding:22px}.asr-demo-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.asr-demo-header span{color:var(--color-primary);display:block;font-size:12px;font-weight:900;margin-bottom:4px;text-transform:uppercase}.asr-demo-header h1{color:var(--color-text);font-size:28px;font-weight:850;line-height:1.15}.asr-demo-header button,.asr-demo-actions button{border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text);cursor:pointer;min-height:38px;padding:0 14px;font-size:13px;font-weight:850}.asr-demo-header button:hover:not(:disabled),.asr-demo-actions button:hover:not(:disabled){border-color:#cc785c6b;background:var(--color-surface-soft)}.asr-demo-actions button:first-child,.asr-demo-actions button:nth-child(2){border-color:transparent;background:var(--color-primary);color:#fff}.asr-demo-actions button:first-child:hover:not(:disabled),.asr-demo-actions button:nth-child(2):hover:not(:disabled){background:var(--color-primary-hover)}.asr-demo-header button:disabled,.asr-demo-actions button:disabled{cursor:not-allowed;opacity:.56}.asr-demo-grid{display:grid;grid-template-columns:minmax(320px,440px) minmax(320px,1fr);gap:14px;margin-bottom:14px}.asr-demo-panel{min-width:0;border:1px solid #dfe3ea;border-radius:8px;background:#fff;box-shadow:0 18px 44px #1414130f;padding:16px}.asr-demo-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.asr-demo-panel h2{font-size:16px;font-weight:850;line-height:1.3}.asr-demo-panel header span{border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface-soft);color:var(--color-text-muted);font-size:12px;font-weight:850;padding:5px 9px;white-space:nowrap}.asr-demo-panel header span.status-good{border-color:#5db87275;background:#5db8721f;color:#26733d}.asr-demo-panel header span.status-warn{border-color:#cc785c5c;background:#cc785c1f;color:#9d4d35}.asr-demo-recorder-surface{display:grid;justify-items:center;gap:10px;border:1px solid var(--color-border);border-radius:8px;background:#fbfcfd;padding:24px 16px}.asr-demo-recorder-surface strong{font-size:32px;line-height:1}.asr-demo-recorder-surface small{color:var(--color-text-muted);font-size:12px;font-weight:750}.asr-demo-level{height:44px;display:flex;align-items:center;gap:5px}.asr-demo-level i{width:8px;height:18px;border-radius:999px;background:#d7dee8;display:block}.asr-demo-level.active i{background:var(--color-primary);animation:asr-demo-level .82s ease-in-out infinite}.asr-demo-level.active i:nth-child(2){animation-delay:90ms}.asr-demo-level.active i:nth-child(3){animation-delay:.18s}.asr-demo-level.active i:nth-child(4){animation-delay:.27s}.asr-demo-level.active i:nth-child(5){animation-delay:.36s}.asr-demo-level.active i:nth-child(6){animation-delay:.45s}@keyframes asr-demo-level{0%,to{height:14px}50%{height:42px}}.asr-demo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.asr-demo-audio{width:100%;margin-top:14px}.asr-demo-error{border-radius:8px;background:#c645451a;color:var(--color-error);font-size:13px;font-weight:750;line-height:1.45;margin-top:12px;padding:10px 12px}.asr-demo-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.asr-demo-metric{min-width:0;border:1px solid var(--color-border);border-radius:8px;background:#fbfcfd;padding:10px}.asr-demo-metric span{color:var(--color-text-muted);display:block;font-size:11px;font-weight:850;margin-bottom:5px;text-transform:uppercase}.asr-demo-metric strong{color:var(--color-text);display:block;font-size:14px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asr-demo-missing{display:grid;gap:6px;border-radius:8px;background:#cc785c1a;color:#9d4d35;margin-top:12px;padding:10px}.asr-demo-missing strong{font-size:12px;font-weight:900}.asr-demo-missing code,.asr-demo-result pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.asr-demo-flow{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;align-items:center;margin:0 0 14px}.asr-demo-flow span{min-height:40px;display:grid;place-items:center;border:1px solid #dfe3ea;border-radius:8px;background:#fff;color:var(--color-text);font-size:13px;font-weight:850;text-align:center}.asr-demo-flow b{display:none}.asr-demo-result textarea{width:100%;min-height:140px;resize:vertical;border:1px solid var(--color-border);border-radius:8px;background:#fbfcfd;color:var(--color-text);font-size:15px;line-height:1.6;margin-bottom:12px;padding:12px}.asr-demo-result pre{overflow:auto;border:1px solid var(--color-border);border-radius:8px;background:#111827;color:#e5e7eb;margin-top:12px;max-height:220px;padding:12px}@media(max-width:1020px){.asr-demo-grid,.asr-demo-flow{grid-template-columns:1fr}}
