.chat-refresh-icon,.chat-settings-icon{display:none}html .app-main>.chat-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%;max-width:1740px;height:var(--chat-workspace-height,calc(100dvh - 56px - var(--safe-top)));min-height:0;padding-top:8px;padding-bottom:max(8px,var(--safe-bottom));overflow:hidden}.chat-workspace .chat-workspace-thread{display:flex;flex-direction:column;height:100%;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden}.chat-workspace-controls{flex:0 1 auto;max-height:38%;min-height:48px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.chat-workspace-controls .sub-head{margin-bottom:2px}.chat-workspace-controls .sub-head h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-workspace .thread-tools{align-items:center;gap:6px;padding:2px 0 6px;margin-bottom:0}.chat-workspace .chat-control{min-height:44px}.chat-workspace .thread-tools .chat-model-picker{position:relative;flex:0 1 280px;min-width:0;max-width:320px;flex-wrap:nowrap;gap:6px;margin:0}.chat-workspace .chat-model-picker>small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.chat-workspace .thread-tools>.memory-panel{margin-left:0}.chat-workspace .thread-tools>.memory-panel[open]{flex-basis:100%}.chat-workspace .chat-model-choice{min-width:0;flex:1 1 160px}.chat-workspace .chat-model-choice>.ghost-btn{display:block;width:100%;min-height:44px;margin:0;padding:9px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:1px solid var(--color-border);border-radius:12px;background:var(--color-card);color:var(--color-text)}.chat-workspace .chat-model-picker>.ghost-btn{width:auto;min-height:44px;flex:none;margin:0;padding:9px 12px;font-size:12px}.chat-workspace-controls>.muted{font-size:12px;margin:5px 0 8px}.chat-workspace .thread-log{flex:1 1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 8px 18px 0;scrollbar-width:thin}.chat-workspace .thread-log:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.chat-workspace .bubble-wrap{flex-direction:row;align-items:flex-start;gap:10px}.chat-workspace .bubble-wrap.is-me{flex-direction:row-reverse;align-items:flex-start}.chat-workspace .bubble-wrap .bubble{flex:0 1 auto;min-width:0;max-width:calc(100% - 54px)}.chat-workspace .chat-message-avatar,.chat-workspace .chat-row .avatar{position:relative;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;aspect-ratio:1;overflow:hidden;border-radius:50%}.chat-workspace .chat-latest{position:static;flex:none;margin:4px auto;min-height:44px}.chat-workspace-compose{display:flex;flex-direction:column;flex:0 1 auto;min-height:60px;max-height:46%;min-width:0}.chat-compose-detail{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.chat-workspace .thread-cost{font-size:11px;line-height:1.6;margin:6px 0}.chat-workspace .chat-suggestions{margin:8px 0;padding:10px}.chat-workspace .chat-suggestions[data-view=compact]{margin:4px 0;padding:0}.chat-workspace .thread-bar{position:static;flex:none;min-width:0;margin:0;padding:8px 0 0;background:var(--color-bg)}html body .chat-workspace .thread-bar input{min-width:0;width:0;min-height:46px;font-size:16px}.chat-workspace .thread-bar button{min-height:46px;min-width:64px}.chat-workspace-list,.chat-workspace-profile{display:none;min-height:0;min-width:0}.chat-workspace-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin-bottom:12px}.chat-workspace-panel-head h2{margin:0;font-size:16px}.chat-workspace-panel-head button{flex:none;width:44px;min-height:44px;border:1px solid var(--color-border);border-radius:12px;color:var(--color-text);background:var(--color-bg);font:inherit;font-size:22px;cursor:pointer}.chat-role-content{min-width:0}.chat-role-content h3{margin:18px 0 6px;font-size:19px;overflow-wrap:anywhere}.chat-role-content h4{margin:20px 0 8px;font-size:14px}.chat-role-content .chips{margin-top:12px}.chat-role-content .chips span{max-width:100%;overflow-wrap:anywhere;color:var(--color-text);background:var(--color-card);border:1px solid var(--color-border)}.chat-role-content .role-gallery-controls{padding:6px;gap:5px}.chat-role-content .role-gallery-controls button{width:44px;min-width:44px}.chat-workspace-profile .role-gallery-frame{height:min(300px,40dvh)}.chat-role-dialog .role-gallery-frame{height:min(420px,50dvh)}.chat-role-intro{margin:0 0 16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;color:var(--color-text-secondary)}.chat-role-dialog{padding:18px;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;background:var(--color-card);color:var(--color-text);border:1px solid var(--color-border);border-radius:20px}.chat-role-dialog::backdrop{background:#09070ec9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chat-role-dialog .chat-workspace-panel-head{position:sticky;top:-18px;z-index:2;margin:-18px -18px 12px;padding:12px 18px;background:var(--color-card);border-bottom:1px solid var(--color-border)}.chat-role-content :focus-visible,.chat-workspace-panel-head :focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}@media(min-width:1024px){html .app-main>.chat-workspace{grid-template-columns:220px minmax(0,1fr);height:var(--chat-workspace-height,calc(100dvh - 72px));padding:14px 18px}.chat-workspace-list{display:flex;flex-direction:column;overflow:hidden;padding:0 12px 8px 0;border-right:1px solid var(--color-border)}.chat-workspace-list>.conversation-index{overflow-y:auto;min-height:0;padding-right:5px;scrollbar-width:thin}.chat-workspace .conversation-index-head{gap:7px;margin-bottom:10px;font-size:12px}.chat-workspace .conversation-index-head>small{display:none}.chat-workspace .conversation-index-head>button{min-height:44px;border:1px solid var(--color-border);border-radius:10px;background:var(--color-card);color:var(--color-text);font:inherit;font-size:11px;padding:5px 9px;cursor:pointer}.chat-workspace .conversation-card{padding:4px;border-radius:14px}.chat-workspace .conversation-card .chat-row{display:flex;flex-wrap:wrap;gap:8px;min-width:0;padding:7px}.chat-workspace .conversation-card .chat-row>span{flex-grow:1;flex-shrink:1;flex-basis:calc(100% - 60px);min-width:0}.chat-workspace .conversation-card .chat-row>small{display:block;width:100%;padding-left:52px;font-size:10px}.chat-workspace .conversation-card:has(.chat-row[aria-current=page]){border-color:var(--color-primary);background:color-mix(in srgb,var(--color-primary) 9%,var(--color-card))}.chat-workspace .conversation-card .chat-row strong{font-size:13px}.chat-workspace .conversation-actions{gap:5px;padding:2px 5px 6px}.chat-workspace .conversation-actions button{flex:1 1;padding:4px;font-size:10px;white-space:nowrap}.chat-workspace .conversation-actions input{flex-basis:100%;width:100%}.chat-workspace .conversation-pagination{gap:8px;font-size:12px}.chat-workspace .conversation-pagination button{padding:6px;font-size:11px}}@media(min-width:1280px){html .app-main>.chat-workspace{grid-template-columns:220px minmax(0,1fr) 240px}html .app-main>.chat-workspace[data-profile=hidden]{grid-template-columns:220px minmax(0,1fr)}.chat-workspace-profile{display:block;overflow-y:auto;overscroll-behavior:contain;padding-left:14px;border-left:1px solid var(--color-border);scrollbar-width:thin}.chat-workspace-profile[hidden]{display:none}}@media(min-width:1600px){html .app-main>.chat-workspace{grid-template-columns:250px minmax(0,1fr) 280px;gap:20px;padding-inline:24px}html .app-main>.chat-workspace[data-profile=hidden]{grid-template-columns:250px minmax(0,1fr)}}@media(max-width:480px){.chat-workspace .bubble{font-size:14px;padding:10px}.chat-workspace .bubble-wrap{gap:8px}.chat-workspace .bubble-wrap .bubble{max-width:calc(100% - 52px)}.chat-workspace .thread-tools .chat-model-picker{flex:1 1 180px;max-width:none;font-size:12px}.chat-workspace .chat-model-picker small{line-height:1.5}.chat-workspace .memory-panel{margin-left:0}.chat-workspace .thread-log{padding-right:2px}}@media(max-width:1023px){html .chat-workspace .thread-tools{display:grid;grid-template-columns:44px 44px 44px minmax(0,1fr) 44px;gap:4px;align-items:start;padding:2px 0 4px}html .chat-workspace .thread-tools>.chat-control-primary{grid-column:1;grid-row:1}html .chat-workspace .thread-tools>.thread-role{grid-column:2;grid-row:1}html .chat-workspace .thread-tools>.chat-settings-panel{grid-column:3;grid-row:1}html .chat-workspace .thread-tools>.memory-panel:not(.chat-settings-panel){grid-column:5;grid-row:1}html .chat-workspace .thread-tools .chat-control-chevron,html .chat-workspace .thread-tools .chat-tool-label{display:none}html .chat-workspace .thread-tools>.chat-control,html .chat-workspace .thread-tools>.memory-panel>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;gap:0;border-radius:11px;box-sizing:border-box}html .chat-workspace .thread-tools .chat-control-icon{width:18px;height:18px}html .chat-workspace .thread-tools .chat-refresh-icon,html .chat-workspace .thread-tools .chat-settings-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}html .chat-workspace .thread-tools>.chat-model-picker{grid-column:4;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px;width:100%;min-width:0;max-width:none;margin:0}html .chat-workspace .thread-tools .chat-model-choice{min-width:0;width:100%}html .chat-workspace .thread-tools .chat-model-choice>.styled-select-trigger{width:100%;height:44px;min-height:44px;padding:0 8px;font-size:12px;border-radius:11px}html .chat-workspace .thread-tools .chat-model-refresh{width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;display:grid;place-items:center;border-radius:11px}html .chat-workspace .thread-tools>.memory-panel[open]{grid-column:1/-1;grid-row:auto;width:100%}html .chat-workspace .thread-tools>.memory-panel[open] .draft{width:100%;margin-top:6px}}