/* Supplied Claude surfaces and controls; user-requested viewport height. */
#vjtop-ref .chat-panel{--p1:#101012;--p2:#18181b;--p3:#232327;--ln:#2c2c31;--tx:#f4f5f7;--t2:#9d9da6;--t3:#6e6e77;--ac:#3fb8ff;--acb:#0f3a57;--bub:#0e7bc0;--ok:#6fcf97;--wn:#e8b459;--er:#ef7b7b;color:var(--tx);background:var(--p1);font:14px/1.55 "PingFang SC","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;backdrop-filter:none;overflow:hidden}
#vjtop-ref .chat-panel,#vjtop-ref .chat-panel *{box-sizing:border-box}
#vjtop-ref.workflow-mode .chat-panel,#vjtop-ref.workflow-mode .chat-panel.guided-open{top:max(96px,calc(env(safe-area-inset-top,0px) + 80px));bottom:max(88px,calc(env(safe-area-inset-bottom,0px) + 72px));width:380px;max-width:calc(100vw - 32px);height:auto;max-height:none;border:1px solid var(--ln);border-radius:20px;display:flex;flex-direction:column}
#vjtop-ref .chat-panel[hidden],#vjtop-ref .chat-panel [hidden]{display:none!important}
#vjtop-ref .chat-panel :where(button){font:inherit;color:inherit;background:var(--p3);border:1px solid var(--ln);border-radius:6px;padding:4px 10px;min-height:30px;cursor:pointer;box-shadow:none}
#vjtop-ref .chat-panel button:hover{border-color:var(--t3)}
#vjtop-ref .chat-panel button:disabled{opacity:.4;cursor:not-allowed}
#vjtop-ref .chat-panel :is(button,input,select,textarea):focus-visible{outline:2px solid var(--ac);outline-offset:1px}
#vjtop-ref .chat-panel .agent-primary{background:var(--ac);color:#04141f;border-color:var(--ac);font-weight:600}
#vjtop-ref .chat-panel .agent-quiet{background:none;border-color:transparent;color:var(--t2)}
#vjtop-ref .chat-panel-head{display:flex;align-items:center;gap:10px;padding:12px 10px 8px 14px;border-bottom:0;flex:none}
/* Retain the former two-line title height so the right actions stay in place. */
#vjtop-ref .chat-panel-head .agent-window-title{flex:1;min-width:0;min-height:39.7px;display:flex;align-items:center}
#vjtop-ref .chat-panel-head .agent-window-brand{display:inline-flex;align-items:center;gap:4px;max-width:100%;margin:0;padding:5px 10px;border-radius:999px;background:#2c2c2c;color:#f4f5f7;font:inherit}
#vjtop-ref .agent-window-brand svg{flex:none}
#vjtop-ref .chat-panel-head .agent-window-brand strong{display:block;min-width:0;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#vjtop-ref #chatStatus{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#vjtop-ref .chat-panel-actions{display:contents}
#vjtop-ref .chat-panel .chat-head-action{width:34px;height:34px;min-height:34px;padding:0;border:0;background:none;color:var(--t2);border-radius:50%;display:grid;place-items:center}
#vjtop-ref .chat-panel .chat-head-action:hover{background:var(--p3);color:var(--tx)}
#vjtop-ref .chat-project-tasks{display:none!important}
#vjtop-ref #chatTaskButton{background:var(--acb);border-color:var(--ac);border-radius:999px;padding:2px 10px;font-size:12.5px;min-height:26px;white-space:nowrap}
#vjtop-ref #chatTaskButton[data-running=true]::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ac);margin-right:6px;vertical-align:1px}
#vjtop-ref .chat-content{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#vjtop-ref #chatProjectTaskQuestion:not(:empty){padding:12px;max-height:40%;overflow:auto}
#vjtop-ref .chat-messages{height:auto;flex:1;min-height:0;padding:14px 12px;display:flex;flex-direction:column;gap:12px;overflow:auto}
#vjtop-ref .chat-messages:empty:before,#vjtop-ref .chat-messages:empty:after{content:none}
#vjtop-ref .chat-message{font:inherit;padding:0;margin:0;border:0;box-shadow:none;flex:none}
#vjtop-ref .chat-message.user{align-self:flex-end;max-width:85%;background:var(--bub);color:#fff;border-radius:16px 16px 4px 16px;padding:8px 14px}
#vjtop-ref .chat-message.assistant{display:flex;flex-direction:column;gap:10px;max-width:100%;width:100%;background:transparent}
#vjtop-ref .chat-message-body{white-space:normal;overflow-wrap:anywhere}
#vjtop-ref .chat-message-body p{margin:0}
#vjtop-ref .chat-message-activity{order:-1;margin:0;display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--t3);font-size:12.5px;line-height:1.55}
#vjtop-ref .chat-message-timing{font-size:12.5px}
#vjtop-ref .chat-message-stage{font-weight:600;font-size:13.5px;background:var(--p3);color:var(--tx);border-radius:999px;padding:1px 10px}
#vjtop-ref .chat-message-tools{margin:0;color:var(--t3)}
#vjtop-ref .chat-message-tools button{background:none;border:0;padding:2px;min-height:24px;color:var(--t3)}
#vjtop-ref .chat-message.error{padding:12px;background:var(--p2);border:1px solid var(--er);border-radius:8px}
#vjtop-ref .chat-composer{position:relative;margin:0;padding:0 10px 10px;border:0;background:transparent;flex:none}
#vjtop-ref .chat-input-shell{border:1px solid var(--ln);border-radius:14px;background:var(--p1);padding:10px 10px 8px;display:flex;flex-direction:column;gap:6px;box-shadow:none}
#vjtop-ref .chat-input-shell:focus-within{border-color:var(--app-purple);box-shadow:inset 0 0 0 1px var(--app-purple)}
#vjtop-ref .chat-composer textarea{width:100%;resize:none;background:none;border:0;border-radius:0;color:var(--tx);padding:2px 4px;font:inherit;height:56px;min-height:56px;max-height:160px}
#vjtop-ref .chat-composer textarea:focus-visible{outline:none}
#vjtop-ref .chat-composer-actions{display:flex;gap:6px;align-items:center;margin:0}
#vjtop-ref .chat-composer-tools{display:flex;gap:6px;align-items:center;flex:1;flex-wrap:nowrap;min-width:0}
#vjtop-ref .chat-composer-actions button:not(#chatSendButton){background:none;border-color:transparent;color:var(--t2)}
#vjtop-ref .chat-composer-actions button:not(#chatSendButton):hover,#vjtop-ref .chat-composer-actions button[aria-expanded=true]:not(#chatSendButton){background:var(--p3);color:var(--tx)}
#vjtop-ref .chat-add-button{width:auto;height:auto;padding:4px 10px;font-size:16px!important;flex:none}
#vjtop-ref .chat-toolbar-divider{width:1px;height:16px;background:var(--ln);margin:0 2px;flex:none}
#vjtop-ref .chat-settings-button{display:inline-flex;align-items:center;gap:6px;font-size:12.5px!important;padding:3px 8px!important;min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vjtop-ref .chat-composer-actions .chat-settings-button.has-error{color:var(--er)}
#vjtop-ref .chat-settings-button svg{flex:none}
#vjtop-ref .chat-permission-control{position:static;flex:none}
#vjtop-ref #chatPermissionButton{font-size:14px;gap:4px;padding:4px 10px;white-space:nowrap}
#vjtop-ref #chatPermissionButton .ui-icon{width:12px;height:12px}
#vjtop-ref #chatSendButton{border-radius:50%;width:34px;height:34px;min-width:34px;min-height:34px;padding:7px;background:#fff;color:#04141f;border-color:#fff;display:grid;place-items:center}
#vjtop-ref #chatSendButton .ui-icon{width:20px;height:20px}
#vjtop-ref #chatSendButton[data-pending=true]{width:auto;border-radius:6px;padding:4px 8px;font-size:12px}
#vjtop-ref .chat-attachments{margin:0;gap:8px}
#vjtop-ref .chat-attachments:empty{display:none}
#vjtop-ref .chat-attachment{background:none;border:0;color:var(--t2);font-size:12.5px;padding:0}
#vjtop-ref .chat-attachment img{width:28px;height:28px;border-radius:5px}
#vjtop-ref .chat-attachment-chip{background:none;border:0;padding:0;gap:8px;color:var(--t2);font-size:12.5px}
#vjtop-ref .chat-attachment-chip img{width:28px;height:28px;flex:0 0 28px;border-radius:5px}
#vjtop-ref .agent-composer-popover,#vjtop-ref .chat-add-menu,#vjtop-ref .chat-permission-control>.chat-skill-menu{position:absolute;left:10px;right:10px;bottom:calc(100% + 8px);width:auto;min-width:0;max-width:none;background:#1d1d21;border:1px solid var(--ln);border-radius:18px;padding:16px;z-index:15;box-shadow:0 8px 28px #000a;max-height:470px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}
#vjtop-ref .agent-composer-popover header{display:flex;gap:8px;align-items:center;justify-content:space-between}
#vjtop-ref .agent-composer-popover header strong{font-size:18px}
#vjtop-ref .agent-setting-field{display:flex;flex-direction:column;gap:6px;min-width:0}
#vjtop-ref .agent-setting-field>span,#vjtop-ref .agent-setting-dimensions label{font-size:12.5px;color:var(--t2)}
#vjtop-ref .agent-model-list{display:flex;flex-direction:column;gap:6px;flex:none}
#vjtop-ref .agent-model-row{display:flex;gap:12px;align-items:center;padding:8px;border:0;border-radius:12px;background:none;width:100%;text-align:left;min-height:0}
#vjtop-ref .agent-model-row:hover,#vjtop-ref .agent-model-row[aria-pressed=true]{background:var(--p3)}
#vjtop-ref .agent-model-icon{width:40px;height:40px;border-radius:10px;background:var(--p3);display:grid;place-items:center;flex:none;color:var(--t2)}
#vjtop-ref .agent-model-row[aria-pressed=true] .agent-model-icon,#vjtop-ref .agent-model-row:hover .agent-model-icon{background:#36363c;color:var(--tx)}
#vjtop-ref .agent-model-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
#vjtop-ref .agent-model-copy{flex:1;min-width:0}
#vjtop-ref .agent-model-copy b{font-size:15px}
#vjtop-ref .agent-model-copy small{display:block;color:var(--t3);font-size:12.5px}
#vjtop-ref .agent-model-check{flex:none}
#vjtop-ref .agent-setting-segment{display:flex;background:var(--p1);border-radius:10px;padding:3px;gap:2px}
#vjtop-ref .agent-setting-segment button{flex:1;border:0;background:none;color:var(--t2);font-weight:600;border-radius:8px;padding:4px 10px}
#vjtop-ref .agent-setting-segment button[aria-pressed=true]{background:var(--p3);color:var(--tx)}
#vjtop-ref .agent-setting-chips{display:flex;gap:6px;flex-wrap:wrap}
#vjtop-ref .agent-setting-chips button[aria-pressed=true]{background:var(--acb);border-color:var(--ac)}
#vjtop-ref .agent-setting-chips .is-unsupported{opacity:.45}
#vjtop-ref .agent-setting-dimensions{display:flex;gap:8px;align-items:center}
#vjtop-ref .agent-setting-dimensions label{flex:1;min-width:0;display:block}
#vjtop-ref .agent-setting-dimensions input,#vjtop-ref .agent-window-drawer input[type=search]{background:var(--p1);color:var(--tx);border:1px solid var(--ln);border-radius:6px;padding:4px 8px;min-height:32px;font:inherit;width:100%;min-width:0}
#vjtop-ref .agent-setting-dimensions button{padding:4px 10px;margin-top:20px}
#vjtop-ref .agent-setting-dimensions .ui-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#vjtop-ref .agent-setting-field[data-setting=n]{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}
#vjtop-ref .agent-setting-field[data-setting=n]>span{flex:1}
#vjtop-ref .agent-count-row{display:flex;gap:8px;align-items:center}
#vjtop-ref .agent-setting-error{color:var(--er);font-size:12.5px;flex-basis:100%}
#vjtop-ref .agent-setting-note{color:var(--t3);font-size:12.5px;margin:0}
#vjtop-ref .agent-setting-note b{color:var(--ac)}
#vjtop-ref .chat-add-menu{gap:6px}
#vjtop-ref .chat-add-menu .chat-skill-button{max-width:none}
#vjtop-ref .chat-add-menu>button,#vjtop-ref .chat-add-menu .chat-skill-button{display:flex;gap:8px;text-align:left;padding:8px 10px;border-radius:7px;border:0;background:none;width:100%;min-height:0;height:auto;justify-content:flex-start;font:inherit}
#vjtop-ref .chat-add-menu>button:hover{background:var(--p3)}
#vjtop-ref .chat-add-menu .ui-icon{width:18px;height:18px}
#vjtop-ref .chat-add-menu .chat-skill-menu{position:static;box-shadow:none;max-height:190px;overflow:auto;padding:0;width:100%;min-width:0;background:none;border:0}
#vjtop-ref .chat-skill-option{display:flex;flex-direction:column;text-align:left;padding:8px 10px;border:0;background:none;gap:2px;min-height:0}
#vjtop-ref .chat-skill-option[aria-selected=true]{background:var(--p3)}
#vjtop-ref .chat-skill-option span{font-size:12.5px;color:var(--t2);white-space:normal}
#vjtop-ref #chatPermissionMenu{gap:6px}
#vjtop-ref .agent-popover-title{display:block;font-size:18px;line-height:1.55;color:var(--tx)}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-row{display:flex;flex-direction:row;gap:12px;align-items:center;padding:8px;border:0;border-radius:12px;background:none;color:var(--tx);width:100%;text-align:left;min-height:0;white-space:normal}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-row:hover,#vjtop-ref .chat-panel #chatPermissionMenu .agent-menu-row[aria-selected=true]{background:var(--p3)}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-icon{width:40px;height:40px;border-radius:10px;background:var(--p3);display:grid;place-items:center;flex:none;color:var(--t2)}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-icon .ui-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-row:hover .agent-menu-icon,#vjtop-ref .chat-panel #chatPermissionMenu .agent-menu-row[aria-selected=true] .agent-menu-icon{background:#36363c;color:var(--tx)}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-copy{flex:1;min-width:0;color:var(--tx)}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-copy :is(b,strong){display:block;font-size:15px;line-height:1.55;color:var(--tx)}
#vjtop-ref .chat-panel :is(#chatPermissionMenu,#chatAddMenu) .agent-menu-copy small{display:block;font-size:12.5px;line-height:1.55;color:var(--t3);white-space:normal}
#vjtop-ref .chat-panel #chatPermissionMenu .agent-menu-check{display:none;flex:none;color:var(--tx);font-size:14px;visibility:hidden}
#vjtop-ref .chat-panel #chatPermissionMenu [aria-selected=true] .agent-menu-check{display:block;visibility:visible}
#vjtop-ref .chat-add-menu .chat-terra-balance{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;border:0;background:none;font-size:12.5px;color:var(--t3)}
#vjtop-ref .chat-add-menu .chat-terra-balance button{font-size:12.5px;background:none;padding:0;border:0}
#vjtop-ref .chat-add-menu .agent-project-context-bar{display:flex;flex-direction:column;gap:6px;padding:0;border:0;align-items:stretch}
#vjtop-ref .agent-project-context-bar button{font:inherit;border:0;background:none;text-decoration:none;padding:8px 10px;text-align:left;color:var(--tx)}
#vjtop-ref .agent-project-context-bar>span{font-size:12.5px;padding:0 10px;color:var(--t3)}
#vjtop-ref .agent-window-drawer{position:absolute;inset:60px 0 0;background:var(--p1);z-index:14;padding:12px;display:flex;flex-direction:column;gap:10px;overflow:auto;overscroll-behavior:contain}
#vjtop-ref .agent-window-drawer>header{display:flex;gap:8px;align-items:center;flex:none}
#vjtop-ref .agent-window-drawer>p{margin:0}
#vjtop-ref .agent-window-drawer>header>b{flex:1;min-width:0;overflow-wrap:anywhere}
#vjtop-ref .agent-window-drawer>header button{flex:none}
#vjtop-ref .agent-record-list{display:flex;flex-direction:column;gap:10px}
#vjtop-ref .agent-window-card{background:var(--p2);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px}
#vjtop-ref .agent-window-card p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#vjtop-ref .agent-window-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#vjtop-ref .agent-window-row>b{flex:1;min-width:0;overflow-wrap:anywhere}
#vjtop-ref .agent-record-preview{margin-left:auto}
#vjtop-ref .agent-muted{color:var(--t3);font-size:12.5px}
#vjtop-ref .agent-window-card p.agent-muted{color:var(--t2);font-size:13px}
#vjtop-ref .agent-window-drawer>footer{display:flex;flex-wrap:wrap;gap:8px;color:var(--t3);font-size:12.5px;align-items:center}
#vjtop-ref .agent-source-choice{display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--t3)}
#vjtop-ref .agent-state{font-size:12.5px;padding:0 7px;border-radius:4px;border:1px solid var(--ln);white-space:nowrap}
#vjtop-ref .agent-state.ok{border-color:var(--ok);color:var(--ok)}
#vjtop-ref .agent-state.active{border-color:var(--ac);color:var(--ac)}
#vjtop-ref .agent-state.warn{border-color:var(--wn);color:var(--wn)}
#vjtop-ref .agent-image-action,#vjtop-ref .agent-question-card{background:var(--p2);border:0;border-radius:8px;padding:12px;margin:0;gap:8px}
#vjtop-ref .agent-image-action>strong{font-size:14px}
#vjtop-ref .agent-image-action :is(p,small){margin:0;overflow-wrap:anywhere}
#vjtop-ref .agent-image-action small{font-size:12.5px;color:var(--t3)}
#vjtop-ref .agent-image-action-summary{font-size:13px;color:var(--t2)}
#vjtop-ref .agent-image-action button{font-size:14px;min-height:30px;border-radius:6px;padding:4px 10px;background:var(--p3);border-color:var(--ln)}
#vjtop-ref .agent-image-action-execute,#vjtop-ref .agent-image-action-recover{background:var(--ac)!important;color:#04141f!important;border-color:var(--ac)!important;font-weight:600}
#vjtop-ref .agent-image-action-controls{gap:8px}
#vjtop-ref .agent-image-prompt-details{margin:0;border:0;padding:0;font-size:13px}
#vjtop-ref .agent-image-prompt-details summary{color:var(--t2);cursor:pointer}
#vjtop-ref .agent-image-parameters{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#vjtop-ref .agent-image-parameters label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--t2)}
#vjtop-ref .agent-image-parameters select{background:var(--p1);color:var(--tx);border:1px solid var(--ln);border-radius:6px;padding:4px}
#vjtop-ref .agent-plan-specs{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:13px;margin:0}
#vjtop-ref .agent-plan-specs dt{color:var(--t2)}
#vjtop-ref .agent-plan-specs dd{margin:0;overflow-wrap:anywhere;color:var(--ac);font-weight:600}
#vjtop-ref .agent-project-evidence{font-size:12.5px;color:var(--t3);margin:0}
#vjtop-ref .agent-project-evidence button{font:inherit;color:var(--t2);text-decoration:underline;background:none;border:0;min-height:22px;padding:0 6px}
#vjtop-ref .agent-evidence-links{display:flex;gap:4px;flex-wrap:wrap}
#vjtop-ref .agent-project-evidence p{margin:6px 0 0}
#vjtop-ref .agent-clarification{background:var(--p2);border:0;border-radius:8px;padding:12px;margin:0;font:inherit}
#vjtop-ref .agent-clarification-fields{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0}
#vjtop-ref .agent-clarification-question{font:inherit;width:100%;margin:0 0 8px}
#vjtop-ref .agent-clarification-option{position:relative;display:inline-flex;align-items:center;gap:0;padding:4px 10px;min-height:30px;border:1px solid var(--ln);border-radius:6px;background:var(--p3);font:inherit;cursor:pointer}
#vjtop-ref .agent-clarification-option input{position:absolute;opacity:0;width:1px;height:1px}
#vjtop-ref .agent-clarification-option:has(input:checked){background:var(--acb);border-color:var(--ac)}
#vjtop-ref .agent-clarification-option:focus-within{outline:2px solid var(--ac);outline-offset:1px}
#vjtop-ref .agent-clarification-input-label,#vjtop-ref .agent-clarification-input{width:100%}
#vjtop-ref .agent-clarification-input-label:has(+textarea:disabled),#vjtop-ref .agent-clarification-input:disabled{display:none}
#vjtop-ref .agent-clarification-status{font-size:12.5px;color:var(--t3);margin:8px 0 0}
#vjtop-ref .agent-clarification-submit{margin-top:8px;background:var(--ac);color:#04141f;border-color:var(--ac)}
.agent-memory-dialog{border-radius:10px;background:#101012;border-color:#2c2c31;color:#f4f5f7;font-family:"PingFang SC","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif}
.agent-memory-head h2{font-size:15px}.agent-memory-dialog :is(button,input,select,textarea){border-radius:6px}.agent-memory-dialog :is(button,input,select,textarea,summary):focus-visible{outline-color:#3fb8ff}
#vjtop-ref .agent-model-list[hidden]{display:none}
#vjtop-ref .agent-model-list{max-height:220px;overflow:auto;overscroll-behavior:contain}
#vjtop-ref .agent-model-list .agent-model-row{flex:none}
#vjtop-ref .agent-model-toggle{width:100%;text-align:left}
@media(max-width:380px){#vjtop-ref .chat-settings-button{max-width:130px}}
@media(max-width:560px){#vjtop-ref.workflow-mode .chat-panel,#vjtop-ref.workflow-mode .chat-panel.guided-open{bottom:max(148px,calc(env(safe-area-inset-bottom,0px) + 132px))}}
