:root { --paper:#f7f7f8; --surface:#fff; --ink:#1b1b1f; --muted:#6a6a73; --line:#e6e6e9; --subtle:#f0f0f2; --accent:#002fa7; --accent-soft:#e9eefc; --danger:#b42318; --radius:12px; --sidebar:260px; font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; min-height:100vh; font-size:16px; line-height:1.55; background:var(--paper); overflow-x:hidden; }
button,input,textarea,select { font:inherit; } button { cursor:pointer; } button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.app-shell { min-height:100vh; min-height:100dvh; display:flex; overflow:hidden; }
.sidebar { width:var(--sidebar); flex:none; position:fixed; z-index:20; inset:0 auto 0 0; display:flex; flex-direction:column; padding:18px 12px 14px; background:#fbfbfc; border-right:1px solid var(--line); }
.brand-row { min-height:38px; display:flex; align-items:center; justify-content:space-between; padding:0 6px; }
.brand { color:var(--ink); display:flex; align-items:center; gap:9px; text-decoration:none; font-weight:720; letter-spacing:-.03em; }.brand em { font-style:normal; font-weight:500; margin-left:2px; }
.brand-mark { width:27px; height:27px; display:inline-grid; place-items:center; color:white; background:var(--accent); border-radius:8px; }.brand-mark svg { width:18px; fill:currentColor; }.sidebar-close { display:none; }
.new-chat { display:flex; align-items:center; gap:8px; width:100%; height:42px; margin:21px 0 12px; border:1px solid var(--line); border-radius:9px; padding:0 11px; color:var(--ink); background:var(--surface); text-align:left; font-size:14px; font-weight:600; transition:background .15s,border-color .15s; }.new-chat:hover { background:var(--accent-soft); border-color:#ced8f5; }.new-chat span { font-size:20px; font-weight:400; color:var(--accent); }.new-chat kbd { margin-left:auto; color:#888891; font:11px ui-monospace,monospace; }
.history-search { display:flex; align-items:center; gap:8px; height:37px; padding:0 10px; border:1px solid transparent; border-radius:8px; color:#777780; background:var(--subtle); }.history-search:focus-within { border-color:#cbd7f5; background:var(--surface); }.history-search svg,.tool-button svg,.send-button svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }.history-search input { width:100%; border:0; outline:0; background:transparent; color:var(--ink); font-size:14px; }.history-search input::placeholder { color:#888891; }
.main-area { width:calc(100% - var(--sidebar)); min-height:100vh; min-height:100dvh; margin-left:var(--sidebar); display:flex; flex-direction:column; min-width:0; }.topbar { height:66px; flex:none; display:flex; align-items:center; justify-content:space-between; padding:0 max(24px, calc((100vw - var(--sidebar) - 1000px)/2)); border-bottom:1px solid transparent; }.model-wrap { position:relative; }.model-trigger { display:flex; align-items:center; min-width:230px; gap:9px; border:0; padding:5px 8px 5px 5px; border-radius:9px; color:var(--ink); background:transparent; text-align:left; }.model-trigger:hover { background:#eeeeF1; }.model-trigger svg { width:16px; margin-left:auto; fill:none; stroke:currentColor; stroke-width:1.8; }.model-badge { min-width:31px; height:31px; display:grid; place-items:center; border-radius:8px; color:var(--accent); background:var(--accent-soft); font-size:11px; font-weight:800; letter-spacing:.02em; }.model-selection { display:flex; flex-direction:column; min-width:0; }.model-selection strong { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }.model-selection small { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px; font-weight:400; }.model-popover { position:absolute; z-index:30; top:48px; left:0; width:min(380px,calc(100vw - 30px)); padding:9px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 16px 45px rgba(25,25,30,.13); }.picker-search input { width:100%; height:36px; padding:0 10px; border:1px solid var(--line); border-radius:7px; color:var(--ink); background:#fafafa; font-size:14px; }.model-list { max-height:340px; overflow:auto; padding-top:7px; }.model-group-title { padding:9px 8px 4px; color:#85858d; font-size:12px; font-weight:650; }.model-option { display:grid; grid-template-columns:30px 1fr auto; gap:8px; align-items:center; width:100%; min-height:51px; padding:6px 8px; border:0; border-radius:8px; color:var(--ink); background:transparent; text-align:left; }.model-option:hover,.model-option.selected { background:var(--accent-soft); }.model-option .model-badge { min-width:28px; height:28px; font-size:10px; }.model-option strong { display:block; font-size:14px; }.model-option small { display:block; color:var(--muted); font-size:12px; }.capability-pill { color:#5d6270; font-size:11px; }.model-note { margin:7px 5px 2px; color:var(--danger); font-size:12px; white-space:pre-line; }.topbar-right { display:flex; align-items:center; gap:12px; }.session-name { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:14px; }.icon-button { display:grid; place-items:center; width:33px; height:33px; border:0; border-radius:8px; color:#676771; background:transparent; font-size:21px; }.icon-button:hover { background:#eeeeF1; color:var(--ink); }.menu-button { display:none; position:relative; gap:4px; }.menu-button span { display:block; width:16px; height:1.5px; background:currentColor; }
.chat-stage { flex:1; min-height:0; width:100%; overflow:auto; overscroll-behavior:contain; }.welcome { width:min(760px,calc(100% - 44px)); margin:clamp(100px,19vh,170px) auto 0; text-align:center; }.welcome-mark { width:42px; height:42px; margin-bottom:17px; border-radius:12px; }.welcome-mark svg { width:25px; }.welcome h1 { margin:0; color:#202025; font-size:clamp(27px,3vw,34px); letter-spacing:-.045em; line-height:1.25; }.welcome p { margin:10px 0 26px; color:var(--muted); }.prompt-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }.prompt-chips button { border:1px solid var(--line); border-radius:20px; padding:8px 13px; color:#50505a; background:var(--surface); font-size:14px; transition:background .15s,border-color .15s; }.prompt-chips button:hover { border-color:#bac9ef; background:var(--accent-soft); color:var(--accent); }
.messages { width:min(760px,calc(100% - 44px)); margin:32px auto; padding-bottom:12px; }.message { margin:0 0 27px; }.message.user { display:flex; justify-content:flex-end; }.message.user .message-body { max-width:84%; padding:10px 14px; border-radius:13px 13px 3px 13px; background:#e9eaed; }.message.assistant { padding:0 2px; }.message-head { display:flex; align-items:center; gap:8px; margin-bottom:7px; color:#50505a; font-size:13px; font-weight:650; }.assistant-dot { display:grid; place-items:center; width:21px; height:21px; border-radius:6px; color:white; background:var(--accent); font-size:9px; }.message-body { color:#26262c; overflow-wrap:anywhere; }.message-body p { margin:0 0 12px; }.message-body p:last-child { margin-bottom:0; }.message-body h1,.message-body h2,.message-body h3 { margin:20px 0 9px; line-height:1.3; }.message-body h1 { font-size:23px; }.message-body h2 { font-size:19px; }.message-body h3 { font-size:16px; }.message-body ul,.message-body ol { margin:7px 0 12px; padding-left:23px; }.message-body pre { overflow:auto; padding:12px; border-radius:8px; background:#1e1f23; color:#eceef4; font-size:13px; }.message-body code { padding:1px 4px; border-radius:4px; background:#ebebee; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.88em; }.message-body pre code { padding:0; background:transparent; }.message-actions { display:flex; gap:4px; margin-top:10px; }.message-actions button { border:0; border-radius:6px; padding:4px 7px; color:#72727a; background:transparent; font-size:12px; }.message-actions button:hover { color:var(--ink); background:#ededef; }.stream-status { display:flex; align-items:center; gap:8px; padding:8px 0; color:var(--muted); font-size:13px; }.pulse { width:7px; height:7px; border-radius:50%; background:var(--accent); animation:pulse 1.1s infinite; }.artifact-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }.artifact { display:flex; align-items:center; gap:8px; max-width:100%; padding:8px 10px; border:1px solid #d1dcfa; border-radius:8px; color:var(--accent); background:#f5f7ff; text-decoration:none; font-size:13px; }.artifact span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.error-card { margin-top:8px; border:1px solid #f1d1ce; border-radius:10px; overflow:hidden; background:#fff9f8; }.error-summary { padding:10px 12px; color:#831f17; font-size:14px; }.error-detail { border-top:1px solid #f1deda; padding:8px 12px; }.error-detail summary { cursor:pointer; color:#8c413a; font-size:13px; }.error-detail pre { max-height:180px; margin:8px 0 0; white-space:pre-wrap; color:#6b2923; background:transparent; font-size:12px; }
.composer-zone { position:sticky; bottom:0; width:min(800px,calc(100% - 32px)); margin:0 auto; padding:12px 0 17px; background:linear-gradient(to bottom,transparent, var(--paper) 14px); }.composer { position:relative; display:flex; align-items:flex-end; gap:6px; min-height:58px; padding:9px 9px 9px 12px; border:1px solid #d9d9df; border-radius:16px; background:var(--surface); box-shadow:0 8px 24px rgba(30,30,35,.07); }.composer:focus-within { border-color:#91a9e7; box-shadow:0 0 0 3px rgba(0,47,167,.09); }.tool-button,.send-button { display:grid; place-items:center; flex:none; width:35px; height:35px; border:0; border-radius:9px; }.tool-button { color:#676771; background:transparent; }.tool-button:hover { color:var(--accent); background:var(--accent-soft); }.send-button { color:white; background:var(--accent); }.send-button:hover { background:#002584; }.send-button:disabled { cursor:not-allowed; opacity:.42; }.send-button.stop { background:#33343a; }.send-button.stop svg { display:none; }.send-button.stop::after { content:""; width:11px; height:11px; border-radius:2px; background:white; }.composer textarea { flex:1; max-height:180px; resize:none; border:0; outline:0; padding:7px 2px; color:var(--ink); background:transparent; font-size:16px; line-height:1.42; }.composer textarea::placeholder { color:#898993; }.composer-options { display:flex; align-items:center; gap:12px; min-height:32px; padding:8px 4px 0; }.mode-tabs { display:flex; min-width:0; gap:2px; overflow:auto; }.mode-tab { flex:none; border:0; border-radius:6px; padding:4px 7px; color:#6d6d76; background:transparent; font-size:13px; }.mode-tab:hover { background:#e9e9ed; }.mode-tab.active { color:var(--accent); background:var(--accent-soft); font-weight:650; }.format-select { display:none; align-items:center; gap:5px; color:#73737c; font-size:13px; }.format-select.visible { display:flex; }.format-select select { max-width:73px; border:0; padding:3px; color:var(--accent); background:transparent; font-size:13px; }.composer-hint { margin-left:auto; color:#9999a1; font-size:12px; white-space:nowrap; }.attachment-list { display:flex; flex-wrap:wrap; gap:7px; }.attachment { display:flex; align-items:center; gap:7px; max-width:245px; margin-bottom:7px; padding:6px 8px; border:1px solid #d6dced; border-radius:8px; background:#fff; font-size:13px; }.attachment-icon { display:grid; place-items:center; width:21px; height:21px; border-radius:5px; color:var(--accent); background:var(--accent-soft); font-size:11px; font-weight:700; }.attachment-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.attachment-progress { color:var(--muted); font-size:11px; }.attachment button { border:0; padding:0; color:#777780; background:transparent; font-size:17px; line-height:1; }.attachment.error { border-color:#f0c8c4; }.attachment.error .attachment-progress { color:var(--danger); }.upload-drop { position:absolute; z-index:10; inset:0; display:grid; place-items:center; border:2px dashed var(--accent); border-radius:15px; color:var(--accent); background:rgba(247,247,248,.94); font-weight:650; }
.auth-dialog,.info-dialog { width:min(420px,calc(100% - 32px)); border:0; border-radius:16px; padding:0; color:var(--ink); background:transparent; box-shadow:0 22px 80px rgba(0,0,0,.25); }.auth-dialog::backdrop,.info-dialog::backdrop { background:rgba(19,20,26,.42); } @supports (backdrop-filter:blur(3px)) { .auth-dialog::backdrop,.info-dialog::backdrop { backdrop-filter:blur(3px); } }.login-card,.info-card { position:relative; padding:31px; border-radius:16px; background:var(--surface); }.login-mark { width:38px; height:38px; border-radius:11px; }.login-mark svg { width:23px; }.login-card h2,.info-card h2 { margin:16px 0 5px; font-size:23px; letter-spacing:-.03em; }.login-card p { margin:0 0 22px; color:var(--muted); }.login-card label { display:block; color:#4f4f58; font-size:14px; font-weight:600; }.login-card label > span { display:block; }.login-card input { display:block; width:100%; height:42px; margin-top:6px; border:1px solid var(--line); border-radius:8px; padding:0 10px; background:#fff; }.login-submit { width:100%; height:43px; margin-top:10px; border:0; border-radius:8px; color:#fff; background:var(--accent); font-weight:650; }.form-error { min-height:0; margin:7px 0 0 !important; color:var(--danger) !important; font-size:13px; }.dialog-close { position:absolute; top:12px; right:12px; border:0; color:#777780; background:transparent; font-size:21px; }.info-card { min-height:180px; }.info-card p { color:#56565e; }.info-card ul { padding-left:20px; color:#56565e; }.toast { position:fixed; z-index:50; left:50%; bottom:24px; transform:translate(-50%,20px); max-width:calc(100% - 32px); padding:9px 12px; border-radius:8px; color:#fff; background:#292a31; box-shadow:0 8px 22px rgba(0,0,0,.18); font-size:14px; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; }.toast.show { transform:translate(-50%,0); opacity:1; }
@keyframes pulse { 50% { opacity:.25; transform:scale(.75); } }
@media (max-width:760px) { :root { --sidebar:260px; }.sidebar { transform:translateX(-101%); transition:transform .2s ease; box-shadow:12px 0 32px rgba(0,0,0,.1); }.sidebar.open { transform:translateX(0); }.sidebar-close,.menu-button,.sidebar .sidebar-close { display:grid; }.sidebar-overlay { position:fixed; z-index:15; inset:0; background:rgba(20,20,25,.27); opacity:0; visibility:hidden; transition:opacity .2s; }.sidebar.open + .sidebar-overlay { opacity:1; visibility:visible; }.main-area { width:100%; margin-left:0; }.topbar { height:58px; padding:0 12px; justify-content:flex-start; gap:7px; }.model-trigger { min-width:0; }.model-selection strong,.model-selection small { max-width:calc(100vw - 178px); }.topbar-right { margin-left:auto; }.session-name,.help-button { display:none; }.welcome { width:calc(100% - 30px); margin-top:80px; }.welcome h1 { font-size:28px; }.messages { width:calc(100% - 28px); margin:24px auto; }.composer-zone { width:calc(100% - 20px); padding-bottom:10px; }.composer-options { gap:4px; }.composer-hint { display:none; }.mode-tab { padding:4px 6px; }.format-select span { display:none; } }
@media (max-width:420px) { .prompt-chips { display:grid; grid-template-columns:1fr 1fr; }.prompt-chips button { padding:7px 8px; font-size:13px; }.mode-tab { font-size:12px; }.format-select { font-size:12px; }.message.user .message-body { max-width:92%; } }
[hidden] { display:none !important; }
.history-heading-row { display:flex; align-items:center; justify-content:space-between; margin:19px 2px 7px 8px; }.history-heading-row .history-heading { margin:0; }.history-toggle { min-height:32px; padding:4px 7px; border:0; border-radius:7px; color:var(--muted); background:transparent; font-size:12px; }.history-toggle:hover,.history-toggle[aria-pressed="true"] { color:var(--accent); background:var(--accent-soft); }
.sidebar { height:100vh; height:100dvh; overflow:hidden; }.sidebar .sidebar-close { display:none; }.conversation-list { flex:1; min-height:0; overflow:auto; }.conversation-row { display:flex; align-items:center; width:100%; }.conversation-item { position:relative; display:flex; align-items:center; flex:1; min-width:0; min-height:38px; padding:0 4px 0 9px; border:0; border-radius:7px; color:#45454c; background:transparent; font-size:14px; text-align:left; }.conversation-item:hover,.conversation-item.active { background:var(--accent-soft); }.conversation-item.active { color:var(--ink); font-weight:600; }.conversation-item-main { display:flex; align-items:center; min-width:0; width:100%; }.conversation-item-main > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.conversation-item time { display:none; }.history-empty { padding:0 8px; color:var(--muted); font-size:13px; }.sidebar-foot { padding-top:8px; border-top:1px solid var(--line); }.side-action { display:flex; align-items:center; gap:10px; width:100%; min-height:35px; padding:0 9px; border:0; border-radius:7px; color:#5c5c65; background:transparent; text-align:left; font-size:14px; }.side-action:hover { background:#efeff1; color:var(--ink); }.side-action span:first-child { width:16px; text-align:center; font-size:16px; }.main-area { height:100vh; height:100dvh; }
.load-more { width:100%; min-height:38px; margin-top:5px; border:0; border-radius:7px; color:var(--accent); background:transparent; font-size:13px; }.load-more:hover { background:var(--accent-soft); }.load-more:disabled { opacity:.5; }
.load-older { display:block; min-height:38px; margin:0 auto 18px; padding:6px 12px; border:1px solid var(--line); border-radius:8px; color:var(--accent); background:var(--surface); font-size:13px; }.load-older:hover { background:var(--accent-soft); }
.skill-library-button { display:flex; align-items:center; gap:8px; width:100%; min-height:40px; margin:0 0 10px; padding:0 10px; border:1px solid var(--line); border-radius:9px; color:var(--accent); background:var(--surface); text-align:left; font-size:14px; font-weight:650; }.skill-library-button:hover { background:var(--accent-soft); }.skill-library-button span { font-size:18px; line-height:1; }.selected-skill { display:flex; align-items:center; gap:7px; width:min(800px,calc(100% - 32px)); margin:0 auto 7px; padding:6px 9px; border:1px solid #cbd8fa; border-radius:8px; color:var(--accent); background:var(--accent-soft); font-size:13px; }.selected-skill-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.selected-skill button { flex:none; margin-left:auto; border:0; color:inherit; background:transparent; font-size:17px; }.skill-dialog { width:min(620px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }.skill-dialog .info-card { max-height:calc(100dvh - 24px); overflow:auto; padding:26px; }.skill-help { margin:0 0 15px; color:var(--muted); font-size:13px; }.skill-import { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:42px; margin-bottom:10px; padding:7px 10px; border:1px dashed #b8c8ef; border-radius:8px; color:var(--accent); background:var(--accent-soft); font-size:14px; font-weight:650; }.skill-import input { min-width:0; max-width:64%; color:var(--muted); font-size:12px; }.skill-search input { width:100%; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--subtle); color:var(--ink); }.skill-list { min-height:30px; max-height:260px; margin-top:10px; overflow:auto; }.skill-entry { display:flex; align-items:center; gap:8px; min-height:48px; padding:6px 8px; border-bottom:1px solid var(--line); }.skill-entry-info { min-width:0; flex:1; }.skill-entry-name,.skill-entry-description { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.skill-entry-name { color:var(--ink); font-size:14px; font-weight:650; }.skill-entry-description { color:var(--muted); font-size:12px; }.skill-entry button { flex:none; min-height:34px; padding:5px 8px; border:1px solid var(--line); border-radius:7px; color:var(--accent); background:var(--surface); font-size:12px; }.skill-entry button:hover { background:var(--accent-soft); }.skill-detail { margin-top:15px; padding-top:14px; border-top:1px solid var(--line); }.skill-detail-head { display:flex; align-items:center; gap:8px; }.skill-detail h3 { min-width:0; flex:1; margin:0; font-size:18px; overflow-wrap:anywhere; }.skill-detail-head button,.skill-detail-actions button,.skill-detail-actions a { min-height:36px; padding:5px 9px; border:1px solid var(--line); border-radius:7px; color:var(--accent); background:var(--surface); text-decoration:none; font-size:12px; }.skill-detail-head button:hover,.skill-detail-actions button:hover,.skill-detail-actions a:hover { background:var(--accent-soft); }.skill-detail p { color:var(--muted); overflow-wrap:anywhere; }.skill-detail-content { max-height:260px; overflow:auto; }.skill-detail-actions { display:flex; justify-content:flex-end; gap:7px; margin-top:12px; }.skill-status { min-height:20px; margin-top:8px; color:var(--danger); font-size:13px; white-space:pre-wrap; }.skill-status:empty { display:none; }
.skill-detail-section + .skill-detail-section { margin-top:16px; }.skill-detail-section h4 { margin:0 0 6px; color:var(--muted); font-size:13px; }
.popover-close { position:absolute; top:4px; right:4px; z-index:2; display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:8px; color:var(--muted); background:transparent; }.popover-close:hover,.popover-close:focus-visible { color:var(--ink); background:var(--subtle); }.popover-close svg,.dialog-close svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.model-popover { position:relative; padding-top:48px; }.tool-popover { position:absolute; z-index:65; left:4px; bottom:49px; width:190px; padding:6px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:0 14px 40px rgba(20,20,25,.2); }.tool-popover > button { display:flex; align-items:center; gap:8px; width:100%; min-height:40px; padding:7px 10px; border:0; border-radius:7px; color:var(--ink); background:transparent; text-align:left; font-size:14px; }.tool-popover > button:hover,.tool-popover > button:focus-visible { color:var(--accent); background:var(--accent-soft); }.tool-popover svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dialog-close { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:8px; color:var(--muted); background:transparent; }.dialog-close:hover,.dialog-close:focus-visible { color:var(--ink); background:var(--subtle); }.skill-dialog .info-card { display:flex; flex-direction:column; overflow:hidden; padding:0; }.skill-dialog-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; min-height:66px; padding:10px 14px 8px 24px; border-bottom:1px solid var(--line); background:var(--surface); }.skill-dialog-head h2 { margin:0; }.skill-dialog-body { min-height:0; padding:0 24px 24px; overflow:auto; }.message-actions { display:flex; align-items:center; gap:4px; margin-top:10px; }.message-icon-button { display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; border-radius:7px; color:var(--muted); background:transparent; }.message-icon-button:hover:not(:disabled),.message-icon-button:focus-visible { color:var(--accent); background:var(--accent-soft); }.message-icon-button:disabled { cursor:not-allowed; opacity:.35; }.message-icon-button svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }.message.user .user-message-actions { opacity:.72; }.message.user:hover .user-message-actions,.message.user:focus-within .user-message-actions { opacity:1; }.message-edit-input { display:block; width:100%; min-height:82px; max-height:220px; resize:vertical; border:1px solid var(--accent); border-radius:9px; padding:10px; color:var(--ink); background:var(--surface); font:inherit; line-height:1.45; }.message-edit-actions { display:flex; justify-content:flex-end; gap:7px; margin-top:8px; }.message-edit-actions button { min-height:40px; padding:7px 11px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--surface); }.message-edit-actions button:last-child { color:#fff; border-color:var(--accent); background:var(--accent); }.message-edit-note { display:block; margin-top:7px; color:var(--muted); }
.conversation-item { padding-right:4px; }.conversation-item-main { min-width:0; flex:1; overflow:hidden; }.conversation-more { flex:none; display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:7px; color:var(--muted); background:transparent; font-size:20px; line-height:1; }.conversation-more:hover,.conversation-more:focus-visible { color:var(--ink); background:var(--subtle); }.conversation-menu { position:fixed; z-index:70; width:170px; padding:5px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--surface); box-shadow:0 14px 40px rgba(20,20,25,.2); }.conversation-menu button,.conversation-menu a { display:flex; align-items:center; width:100%; min-height:40px; padding:7px 10px; border:0; border-radius:7px; color:inherit; background:transparent; text-decoration:none; text-align:left; font-size:14px; }.conversation-menu button:hover,.conversation-menu a:hover,.conversation-menu button:focus-visible,.conversation-menu a:focus-visible { background:var(--accent-soft); color:var(--accent); }.conversation-menu .menu-danger:hover,.conversation-menu .menu-danger:focus-visible { color:var(--danger); background:#fff0ee; }.confirm-dialog .info-card { padding:26px; }.confirm-dialog .info-card p { margin:0 0 22px; overflow-wrap:anywhere; }.confirm-actions { display:flex; justify-content:flex-end; gap:8px; }.confirm-actions button { min-height:40px; padding:7px 15px; border:1px solid var(--line); border-radius:8px; }.confirm-cancel { color:var(--ink); background:var(--surface); }.confirm-danger { border-color:var(--danger) !important; color:#fff; background:var(--danger); }.long-response { white-space:pre-wrap; overflow-wrap:anywhere; }.expand-response { margin-top:8px; padding:6px 10px; border:1px solid var(--line); border-radius:7px; color:var(--accent); background:var(--surface); font-size:13px; }.response-content.streaming-raw { white-space:pre-wrap; overflow-wrap:anywhere; }.message-body pre { max-width:100%; }.error-raw-more { margin-top:6px; padding:4px 8px; border:1px solid #e3c6c1; border-radius:6px; color:#8c413a; background:transparent; font-size:12px; }
@media (pointer:coarse) { .conversation-more { width:44px; height:44px; }.conversation-item { min-height:44px; }.side-action,.new-chat { min-height:44px; } }
@media (pointer:coarse) { .skill-library-button { min-height:44px; } }
@media (max-width:760px) { body { overflow:hidden; }.app-shell { padding-bottom:env(safe-area-inset-bottom); }.topbar { padding-top:env(safe-area-inset-top); height:calc(58px + env(safe-area-inset-top)); }.chat-stage { min-height:0; }.composer-zone { flex:none; padding-bottom:calc(10px + env(safe-area-inset-bottom)); }.composer { min-height:58px; }.model-popover { position:fixed; z-index:60; top:calc(58px + env(safe-area-inset-top)); left:12px; right:12px; width:auto; max-width:none; }.conversation-menu { width:min(190px,calc(100vw - 20px)); }.confirm-dialog { max-height:calc(100dvh - 24px); }.confirm-dialog .info-card { padding:22px; }.messages { padding-bottom:18px; } }
@media (max-width:760px) { .skill-dialog { width:calc(100% - 20px); max-height:calc(100dvh - 20px); }.skill-dialog .info-card { max-height:calc(100dvh - 20px); }.skill-dialog-head { min-height:60px; padding-left:16px; }.skill-dialog-body { padding:0 16px 20px; }.skill-import input { max-width:58%; }.skill-entry { min-height:52px; }.skill-detail-content { max-height:32vh; }.tool-popover { left:0; bottom:50px; width:min(220px,calc(100vw - 20px)); }.message-icon-button { width:44px; height:44px; } }
@media (max-width:420px), (orientation:landscape) and (max-height:520px) { .welcome { margin-top:35px; }.model-popover { max-height:calc(100dvh - 70px); }.model-list { max-height:calc(100dvh - 145px); }.composer-options { min-height:28px; padding-top:4px; }.composer textarea { max-height:120px; }.message { margin-bottom:20px; } }
.new-chat svg { width:18px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; }
.side-action svg { width:16px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.icon-button svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mode-tab,.format-select,.format-select select,.attachment { font-size:14px; }
.artifact { font-size:14px; }.attachment-icon svg,.attachment button svg { width:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.artifact-preview { width:52px; height:38px; flex:none; border-radius:5px; object-fit:cover; }.attachment-preview { width:25px; height:25px; flex:none; border-radius:5px; object-fit:cover; }.attachment-details { padding:2px 4px !important; border-radius:4px; color:var(--accent) !important; background:var(--accent-soft) !important; font-size:12px !important; }
.model-option:disabled { cursor:not-allowed; opacity:.52; }.model-option:disabled:hover { background:transparent; }
body[data-theme="dark"] { --paper:#18191d; --surface:#222329; --ink:#f3f3f5; --muted:#a4a4ad; --line:#373840; --subtle:#2a2b31; --accent:#84a5ff; --accent-soft:#26385f; color:var(--ink); background:var(--paper); }
body[data-theme="dark"] .sidebar { background:#1c1d22; } body[data-theme="dark"] .new-chat,body[data-theme="dark"] .attachment { background:var(--surface); } body[data-theme="dark"] .model-trigger:hover,body[data-theme="dark"] .icon-button:hover,body[data-theme="dark"] .side-action:hover,body[data-theme="dark"] .conversation-item:hover { background:#2b2c33; } body[data-theme="dark"] .message.user .message-body { background:#303139; } body[data-theme="dark"] .login-card,body[data-theme="dark"] .info-card,body[data-theme="dark"] .model-popover { background:var(--surface); } body[data-theme="dark"] .login-card input,body[data-theme="dark"] .picker-search input { color:var(--ink); background:#1a1b20; }
.skill-button { border:1px solid var(--line); border-radius:7px; padding:5px 9px; color:var(--accent); background:var(--surface); font-size:14px; font-weight:650; }.skill-button:hover:not(:disabled) { border-color:#b8c8f0; background:var(--accent-soft); }.skill-button:disabled { cursor:not-allowed; color:#9898a0; background:var(--subtle); }
.session-meta { color:var(--muted); font-size:12px; }.admin-link { border:1px solid var(--line); border-radius:7px; padding:5px 8px; color:var(--accent); text-decoration:none; font-size:13px; }.admin-link:hover { background:var(--accent-soft); }.login-card label { margin-top:12px; }.login-submit { margin-top:18px; }.app-shell[data-auth-locked="true"] { pointer-events:none; filter:blur(1px); }.auth-dialog[open], .auth-dialog[open] * { pointer-events:auto; }
@media (max-width:760px) { .session-meta,.session-name,.help-button { display:none; }.admin-link { font-size:12px; padding:4px 6px; } }
.logged-out-landing { position:relative; z-index:90; min-height:100vh; min-height:100svh; padding:22px max(24px,calc((100vw - 1180px)/2)) 56px; color:#15251e; background:#f2f4ef; }
.logged-out-landing::before { position:absolute; z-index:-1; inset:0; content:""; opacity:.55; background-image:linear-gradient(to right,rgba(24,60,46,.06) 1px,transparent 1px),linear-gradient(to bottom,rgba(24,60,46,.06) 1px,transparent 1px); background-size:38px 38px; mask-image:linear-gradient(to bottom,#000 0%,transparent 59%); }
.landing-header { display:flex; align-items:center; justify-content:space-between; min-height:46px; }
.landing-brand { min-width:0; white-space:nowrap; color:#18372d; }
.landing-brand .brand-mark { color:#17372c; background:#c7f052; }
.landing-header-actions { display:flex; align-items:center; gap:10px; }
.landing-language { display:flex; align-items:center; min-height:40px; padding:3px; border:1px solid #d6ddd7; border-radius:8px; background:rgba(255,255,255,.72); }
.landing-language button { min-width:34px; min-height:32px; border:0; border-radius:5px; color:#65736b; background:transparent; font-size:12px; font-weight:750; }
.landing-language button.active { color:#fff; background:#17372c; }
.landing-login,.landing-secondary { min-height:40px; padding:8px 14px; border:1px solid #c9d2ca; border-radius:7px; color:#18372d; background:rgba(255,255,255,.78); font-weight:700; }
.landing-login:hover,.landing-secondary:hover { border-color:#6b8b79; color:#17372c; background:#e5eee7; }
.landing-main { width:min(100%,1120px); margin:0 auto; padding:clamp(48px,8vh,94px) 0 0; }
.landing-hero { display:grid; grid-template-columns:minmax(0,.91fr) minmax(400px,1.09fr); align-items:center; gap:clamp(38px,7vw,88px); }
.landing-intro { max-width:530px; }
.landing-kicker { margin:0 0 13px; color:#5c8130; font-size:12px; font-weight:780; letter-spacing:.08em; text-transform:uppercase; }
.landing-intro h1 { max-width:620px; margin:0; color:#102e24; font-size:clamp(48px,5.5vw,76px); font-weight:780; letter-spacing:0; line-height:.98; }
.landing-intro h1 span { display:block; color:#4d6f60; font-size:.54em; font-weight:620; line-height:1.14; }
.landing-summary { max-width:510px; margin:24px 0 0; color:#4e6257; font-size:18px; line-height:1.7; }
.landing-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.landing-primary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 17px; border:1px solid #17372c; border-radius:7px; color:#fff; background:#17372c; font-weight:750; text-decoration:none; }
.landing-primary:hover { background:#285141; }
.landing-proof { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:48px 0 0; padding:0; border-top:1px solid #cbd5ce; }
.landing-proof div { padding-top:13px; }
.landing-proof dt { color:#5c8130; font:700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.landing-proof dd { margin:7px 0 0; color:#587064; font-size:12px; line-height:1.45; }
.landing-preview-frame { position:relative; min-width:0; margin:0; padding:14px; overflow:hidden; border:1px solid #c9d4cc; border-radius:8px; background:#dfe8e1; box-shadow:0 25px 52px rgba(25,52,40,.14); }
.landing-preview-frame::before { position:absolute; z-index:0; top:0; right:0; width:36%; height:100%; content:""; background:#c7f052; }
.landing-preview-frame picture { position:relative; z-index:1; display:block; }
.landing-preview-image { display:block; width:100%; height:auto; aspect-ratio:8 / 5; border:1px solid rgba(23,55,44,.17); border-radius:4px; background:#edf2ed; object-fit:cover; object-position:center; }
.landing-preview-frame figcaption { position:relative; z-index:1; margin:13px 4px 0; color:#365346; font-size:13px; line-height:1.45; }
.landing-preview-fallback { position:absolute; z-index:2; inset:14px 14px 42px; display:none; padding:28px; background:#16392e; color:#fff; }
.preview-image-missing .landing-preview-fallback { display:flex; align-items:center; justify-content:space-between; }
.landing-preview-fallback-mark { display:grid; place-items:center; width:46px; height:46px; border-radius:8px; color:#17372c; background:#c7f052; font-size:20px; font-weight:800; }
.landing-preview-fallback div { width:55%; }
.landing-preview-fallback b { display:block; height:11px; margin:12px 0; background:#668477; }
.landing-preview-fallback i { width:20%; height:38%; border:1px solid #8aa998; background:#214c3e; }
.landing-section { margin-top:clamp(76px,12vw,138px); }
.landing-section-heading { max-width:680px; }
.landing-section h2 { margin:0; color:#17372c; font-size:clamp(28px,3vw,38px); letter-spacing:0; line-height:1.16; }
.landing-model-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin-top:30px; border:1px solid #cad4cc; background:#cad4cc; }
.landing-model-item,.landing-agent { min-width:0; background:#f8faf6; }
.landing-model-item { min-height:196px; padding:22px; }
.landing-item-number { display:block; margin-bottom:28px; color:#789436; font:700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.landing-model-item strong { display:block; color:#17372c; font-size:17px; }
.landing-model-item > span:last-child { display:block; margin-top:9px; color:#5a6c62; font-size:14px; line-height:1.6; }
.landing-agent-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin-top:30px; border:1px solid #cad4cc; background:#cad4cc; }
.landing-agent { display:flex; flex-direction:column; min-height:238px; padding:24px; }
.landing-agent-featured { grid-column:span 2; background:#1d4236; }
.landing-agent-label { margin:0 0 28px; color:#c7f052; font-size:12px; font-weight:780; letter-spacing:.08em; text-transform:uppercase; }
.landing-agent h3 { margin:0; color:#18372d; font-size:21px; line-height:1.28; }
.landing-agent p:not(.landing-agent-label) { margin:13px 0 20px; color:#4e6257; line-height:1.68; }
.landing-agent small { margin-top:auto; color:#78877f; font-size:12px; line-height:1.5; }
.landing-agent-featured h3 { color:#fff; }
.landing-agent-featured p:not(.landing-agent-label) { color:#d2e1d7; }
.landing-agent-featured small { color:#b4cabd; }
.landing-footer { display:flex; flex-wrap:wrap; gap:8px; margin-top:clamp(54px,9vw,96px); padding:18px 0 0; border-top:1px solid #cbd5ce; color:#5a6c62; font-size:14px; }
.landing-footer a { color:#17372c; font-weight:700; text-decoration:none; }
.landing-footer a:hover,.landing-footer a:focus-visible { text-decoration:underline; }
body[data-theme="dark"] .logged-out-landing { color:#e8f0e9; background:#122019; }
body[data-theme="dark"] .logged-out-landing::before { opacity:.2; }
body[data-theme="dark"] .landing-brand,body[data-theme="dark"] .landing-intro h1,body[data-theme="dark"] .landing-section h2,body[data-theme="dark"] .landing-model-item strong,body[data-theme="dark"] .landing-agent h3 { color:#e8f0e9; }
body[data-theme="dark"] .landing-intro h1 span,body[data-theme="dark"] .landing-summary,body[data-theme="dark"] .landing-proof dd,body[data-theme="dark"] .landing-model-item > span:last-child,body[data-theme="dark"] .landing-agent p:not(.landing-agent-label) { color:#b7c9bd; }
body[data-theme="dark"] .landing-language,body[data-theme="dark"] .landing-login,body[data-theme="dark"] .landing-secondary,body[data-theme="dark"] .landing-model-item,body[data-theme="dark"] .landing-agent:not(.landing-agent-featured) { border-color:#3c5147; background:#1c2d24; }
body[data-theme="dark"] .landing-model-grid,body[data-theme="dark"] .landing-agent-grid { border-color:#3c5147; background:#3c5147; }
body[data-theme="dark"] .landing-preview-frame { border-color:#3c5147; background:#263b30; }
body[data-theme="dark"] .landing-footer { border-color:#3c5147; color:#b7c9bd; }
body[data-theme="dark"] .landing-footer a { color:#e8f0e9; }
@media (max-width:900px) { .landing-hero { grid-template-columns:1fr; gap:44px; }.landing-intro { max-width:640px; }.landing-preview-frame { width:min(100%,720px); }.landing-proof { max-width:580px; } }
@media (max-width:760px) { body[data-page="app"] { overflow:hidden; } body[data-page="public"] { overflow-x:hidden; overflow-y:auto; }.logged-out-landing { min-height:100svh; padding:15px 16px 42px; }.landing-header { min-height:42px; }.landing-brand { font-size:15px; }.landing-brand .brand-mark { width:26px; height:26px; border-radius:7px; }.landing-brand .brand-mark svg { width:17px; }.landing-header-actions { gap:7px; }.landing-language { min-height:36px; }.landing-language button { min-width:30px; min-height:28px; }.landing-login { min-height:36px; padding:6px 11px; font-size:14px; }.landing-main { padding-top:52px; }.landing-hero { gap:38px; }.landing-intro h1 { font-size:clamp(46px,14vw,62px); }.landing-summary { margin-top:18px; font-size:16px; }.landing-proof { gap:8px; margin-top:36px; }.landing-proof dd { font-size:11px; }.landing-preview-frame { padding:9px; border-radius:7px; }.landing-preview-fallback { inset:9px 9px 38px; }.landing-preview-frame figcaption { margin:10px 2px 0; font-size:12px; }.landing-section { margin-top:78px; }.landing-model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:22px; }.landing-model-item { min-height:174px; padding:18px; }.landing-item-number { margin-bottom:24px; }.landing-agent-grid { grid-template-columns:1fr; margin-top:22px; }.landing-agent-featured { grid-column:auto; }.landing-agent { min-height:0; padding:22px; } }
@media (max-width:420px) { .landing-actions { flex-direction:column; }.landing-primary,.landing-secondary { width:100%; }.landing-proof { grid-template-columns:1fr; gap:0; margin-top:31px; }.landing-proof div { display:grid; grid-template-columns:34px 1fr; align-items:baseline; padding:10px 0; border-bottom:1px solid #cbd5ce; }.landing-proof dd { margin:0; font-size:12px; }.landing-model-grid { grid-template-columns:1fr; }.landing-model-item { min-height:auto; }.landing-item-number { margin-bottom:18px; } }
@media (max-width:345px) { .landing-header-actions { gap:5px; }.landing-brand { gap:6px; font-size:14px; }.landing-brand em { display:none; }.landing-header-actions .landing-login { min-width:0; padding:6px 8px; }.landing-language button { min-width:28px; } }
.auth-links { display:flex; justify-content:center; gap:14px; margin-top:12px; font-size:13px; }.auth-links a { color:var(--accent); text-decoration:none; }.auth-links a:hover { text-decoration:underline; }
.message.user { flex-direction:column; align-items:flex-end; }
.message.user .message-body { width:fit-content; max-width:84%; }
.message.user .user-message-actions { width:84%; justify-content:flex-end; }
.message.user.editing .message-body { width:min(84%,680px); }
@media (max-width:420px) { .message.user .message-body,.message.user .user-message-actions { max-width:92%; width:92%; } .message.user.editing .message-body { width:92%; } }
