.journal-page[data-workspace=agents]{--journal-sidebar:0px}
.journal-page[data-workspace=agents] .journal-sidebar,.journal-page[data-workspace=agents] .journal-toolbar{display:none}
.journal-page[data-workspace=agents] .journal-content{padding:0}
.agents-page{color:#161719;padding:16px 16px 60px;min-height:calc(100dvh - 64px)}
.agents-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.agents-page-header h1{font-size:24px;font-weight:500;line-height:1.3;letter-spacing:-.4px;margin:0}
.agents-count{display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap;margin-right:16px}.agents-count>span{width:7px;height:7px;border-radius:50%;background:#e8eaee}
.agents-content{max-width:1040px;margin:56px auto 0}
.agents-notice{display:flex;align-items:center;gap:10px;min-height:58px;padding:14px 18px;border:1px solid #83b9ed;border-radius:10px;color:#225b86;background:#f0f7ff;box-sizing:border-box}
.agents-notice>svg{width:22px;height:22px;flex:none}.agents-notice p{font-size:14px;line-height:1.5;margin:0;flex:1}.agents-notice button{border:0;background:none;color:inherit;font-size:23px;padding:0 3px;line-height:24px;cursor:pointer}
.agents-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 30px}.agents-meta p{color:#666;font-size:14px;margin:0}.agents-meta button{background:none;border:0;color:#086aff;font-size:14px;font-weight:500;white-space:nowrap;padding:3px 12px;cursor:pointer}
.agents-list{display:flex;flex-direction:column;gap:16px}.agent-card{background:#fff;border:1px solid #dedfe3;border-radius:12px;padding:24px;min-height:190px;display:flex;flex-direction:column;box-sizing:border-box}
.agent-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.agent-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.agent-tags>span{font-size:10px;line-height:14px;padding:4px 8px;border-radius:20px;background:#f0f4fd;color:#0860d9;white-space:nowrap}.agent-tags>span.agent-mode,.agent-tags>span.agent-connection{border:1px solid #c9cbd0;color:#333;background:#fff;padding:3px 9px}.agent-mode>span{font-size:14px;margin-right:7px}.agent-switch{display:flex;align-items:center;width:40px;height:24px;border:0;border-radius:20px;background:#eee;padding:3px;flex:none;cursor:pointer}.agent-switch>span{width:18px;height:18px;background:#fff;border-radius:50%}.agent-switch:focus-visible{outline:2px solid #086aff;outline-offset:3px}
.agent-card h2{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 10px;letter-spacing:0}.agent-card>p{font-size:14px;line-height:1.5;color:#666;margin:0 0 16px}.agent-card>footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:auto}.agent-saved{font-size:12px;color:#667783}.agent-card .primary-button{font-size:14px;padding:10px 16px;min-height:40px;border-radius:8px;white-space:nowrap}
.agent-config-form .agent-connection-note{background:#f0f6ff;border-radius:8px;padding:12px;font-size:14px;line-height:1.5;margin:0;color:#315678}.agent-config-form .agent-config-caption{font-size:12px;color:#727b85;margin:0;line-height:1.5}.agent-config-form .agent-checkbox{display:flex;align-items:center;flex-direction:row;gap:10px}.agent-config-form .agent-checkbox input{width:16px;height:16px;flex:none;accent-color:#086aff}
@media(max-width:1150px){.agents-content{margin:42px auto 0;max-width:calc(100% - 40px)}}
@media(max-width:760px){.agents-page{padding:20px 16px 40px}.agents-page-header h1{font-size:23px}.agents-count{font-size:12px;margin:0}.agents-content{max-width:none;margin-top:30px}.agents-notice{align-items:flex-start;padding:13px}.agents-notice p{font-size:13px}.agents-meta{gap:12px;margin:20px 0}.agents-meta p{font-size:12px}.agents-meta button{padding:0;font-size:13px}.agent-card{padding:20px 16px;min-height:200px}.agent-tags{gap:5px}.agent-tags>span{font-size:9px}.agent-card>footer{align-items:flex-end}.agent-saved{max-width:170px}}
.agent-card{transition:border-color .15s ease}.agent-card:hover,.agent-card:focus-within{border-color:#83a9ff}
@media(prefers-reduced-motion:reduce){.agent-card{transition:none}}
.agent-card.agent-expanded{border-color:#83a9ff}.agent-mode>[data-agent-mode]{font-size:10px;margin:0}
.agent-inline-form{margin:8px 0 0;display:flex;flex-direction:column;gap:18px;min-width:0}.agent-inline-form label,.agent-tier legend{font-size:14px;color:#666;line-height:1.5;letter-spacing:.2px}
.agent-symbol-entry{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:40px;margin-top:6px;border-bottom:1px solid #aaa;padding:3px 8px}.agent-symbol-chips{display:contents}.agent-symbol-entry input{flex:1;min-width:160px;max-width:100%;padding:5px 0;border:0;background:transparent;color:#29363d;font:inherit;font-size:14px;outline:none}.agent-symbol-entry:focus-within{border-bottom-color:#086aff}.agent-symbol-entry input::placeholder{color:#b7b9bd}.agent-symbol-chip{display:inline-flex;align-items:center;gap:7px;border-radius:5px;background:#edf3ff;color:#195fca;font-size:12px;padding:3px 7px}.agent-symbol-chip button{border:0;background:none;padding:0 2px;font-size:17px;line-height:18px;color:inherit;cursor:pointer}.agent-symbols-field>p{font-size:12px;color:#888;margin:4px 0 0;line-height:1.5}.agent-symbols-field>#agent-symbol-error{color:#bd3444}
.agent-automatic{display:flex;align-items:flex-start;gap:20px;justify-content:space-between}.agent-automatic>div{flex:1}.agent-automatic>div>label{color:#17191d;font-size:16px;font-weight:600;letter-spacing:0}.agent-automatic p{margin:6px 0 0;color:#666;font-size:14px;line-height:1.5}.agent-preference-switch{position:relative;margin-top:2px;cursor:pointer}.agent-preference-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}.agent-preference-switch:has(input:checked){background:#086aff}.agent-preference-switch input:checked+span{transform:translateX(16px)}.agent-preference-switch:has(input:focus-visible){outline:2px solid #086aff;outline-offset:3px}
.agent-instructions{display:flex;flex-direction:column;gap:4px}.agent-instructions textarea{display:block;width:100%;min-height:107px;resize:vertical;box-sizing:border-box;padding:24px;border:1px solid #dedfe3;border-radius:9px;color:#29363d;background:#fff;font-family:inherit;font-size:14px;line-height:1.5;letter-spacing:0}.agent-instructions textarea:focus{outline:2px solid #b1ceff;outline-offset:1px}.agent-instructions textarea::placeholder{color:#888}
.agent-tier{min-width:0;padding:0;margin:0;border:0}.agent-tier legend{padding:0;margin:0 0 6px;display:flex;align-items:center;gap:5px}.agent-tier>div{display:flex;align-items:center;padding:4px;background:#eee;border-radius:15px;min-height:42px;box-sizing:border-box}.agent-tier label{position:relative;cursor:pointer;color:#222;letter-spacing:0}.agent-tier input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.agent-tier label>span{display:block;min-width:64px;padding:6px 16px;text-align:center;border-radius:11px;font-size:14px;line-height:20px}.agent-tier input:checked+span{background:#fff;box-shadow:0 1px 3px #0004}.agent-tier input:focus-visible+span{outline:2px solid #086aff;outline-offset:1px}
.agent-inline-form>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:-2px}.agent-inline-form .agent-config-caption{margin-right:auto;font-size:11px;color:#87909a;letter-spacing:0;line-height:1.4}.agent-inline-form>footer button{min-height:40px;padding:9px 16px;border-radius:8px;font-size:14px}.agent-inline-form [type=submit]:disabled{background:#eee;color:#b9b9b9;border-color:#eee;cursor:not-allowed}
@media(max-width:600px){.agent-inline-form{gap:16px}.agent-instructions textarea{padding:14px;min-height:116px}.agent-inline-form>footer{flex-wrap:wrap}.agent-inline-form .agent-config-caption{flex-basis:100%;margin-bottom:3px}.agent-tier label>span{min-width:56px;padding:6px 12px}.agent-automatic p{font-size:13px}}
.agents-page [data-agent-help]:not(input):not(textarea){cursor:help}.agents-page button[data-agent-help],.agents-page label[data-agent-help]{cursor:pointer}
.agents-page [data-agent-help][tabindex]:focus-visible{outline:2px solid #086aff;outline-offset:3px}.agents-page .info[data-agent-help]::after{display:none}
.agent-save-help{display:inline-flex;border-radius:8px}.agent-save-help>button:disabled{pointer-events:none}
.agent-help-tooltip{position:fixed;z-index:150;width:max-content;max-width:min(324px,calc(100vw - 16px));box-sizing:border-box;background:#242424;color:#fff;border-radius:4px;padding:10px 12px;box-shadow:0 3px 8px #0002;font-family:Arial,sans-serif;font-size:13px;line-height:1.45;overflow-wrap:anywhere;pointer-events:auto}
.agent-help-tooltip[hidden]{display:none}.agent-help-tooltip strong{display:block;font-size:13px;font-weight:600;margin-bottom:3px}.agent-help-tooltip span{display:block;color:#eef0f5}.agent-help-tooltip::before{content:'';position:absolute;left:var(--tip-arrow,50%);width:10px;height:10px;background:#242424;transform:translateX(-50%) rotate(45deg)}.agent-help-tooltip[data-side=below]::before{top:-5px}.agent-help-tooltip[data-side=above]::before{bottom:-5px}

/* Keep every agent badge the same size, including outlined status pills. */
.agent-tags>span,.agent-tags>span.agent-mode,.agent-tags>span.agent-connection{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 144px;width:144px;height:28px;padding:4px 8px;border:1px solid transparent;font-size:11px;line-height:18px;text-align:center}
.agent-tags>span.agent-mode,.agent-tags>span.agent-connection{border-color:#c9cbd0}
.agent-mode>[data-agent-mode]{font-size:inherit;line-height:inherit}

.agent-card{display:grid;grid-template-columns:136px minmax(0,1fr);column-gap:24px;align-content:start}
.agent-card-art{grid-column:1;grid-row:1 / span 4;align-self:center;width:136px;height:180px;object-fit:contain;pointer-events:none}
.agent-card[data-agent-card=briefing]>.agent-card-art{width:150px;max-width:none;justify-self:center}
.agent-card>header,.agent-card>h2,.agent-card>p,.agent-card>footer{grid-column:2;min-width:0}
.agent-card>.agent-inline-form{grid-column:1 / -1;margin-top:24px}
.agent-card.agent-expanded>.agent-card-art{grid-row:1 / span 3}
@media(max-width:600px){
 .agent-card{grid-template-columns:80px minmax(0,1fr);column-gap:16px}
 .agent-card-art,.agent-card.agent-expanded>.agent-card-art{grid-row:2 / span 2;width:80px;height:124px}
 .agent-card[data-agent-card=briefing]>.agent-card-art{width:100px}
 .agent-card>header,.agent-card>footer{grid-column:1 / -1}
 .agent-card>header{margin-bottom:16px}
 .agent-card>footer{margin-top:16px}
 .agent-card>h2{align-self:end}
 .agent-card>p{margin-bottom:0}
}

/* Searchable market symbols in the briefing configuration. */
.agent-symbols-field{position:relative;min-width:0}
.agent-symbol-options{position:absolute;top:calc(100% - 22px);left:0;right:0;z-index:45;max-height:380px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #dce3ef;border-radius:10px;box-shadow:0 10px 26px #102a5021;padding:5px}
.agent-symbol-options[hidden]{display:none}
.agent-symbol-option{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 9px;border-radius:6px;cursor:pointer;color:#263746;font-size:14px}
.agent-symbol-option:hover,.agent-symbol-option[aria-selected=true]{background:#edf4ff}
.agent-symbol-option strong{font-size:14px;font-weight:500;min-width:54px}
.agent-symbol-option>span:not(.mb-market-icon){color:#778492;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-symbol-option small{margin-left:auto;color:#8b98a7;font-size:12px;white-space:nowrap}
.agent-symbols-field .mb-market-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;overflow:hidden;border-radius:50%;background:#f1f5fc;color:#356092;font-size:9px;font-weight:600}
.agent-symbols-field .mb-market-icon img{width:100%;height:100%;object-fit:contain}
.agent-symbols-field .mb-forex-icon{position:relative;width:28px;flex-basis:28px;border-radius:0;overflow:visible;background:transparent}
.agent-symbol-chip .mb-market-icon{width:18px;height:18px;flex-basis:18px;font-size:7px}
.agent-symbol-chip .mb-forex-icon{width:24px;flex-basis:24px}
.agent-symbol-chip .mb-currency-icon{width:15px;height:15px;font-size:6px}
.agent-symbol-empty{padding:15px 10px;font-size:14px;line-height:1.5;color:#778492}
@media(max-width:600px){.agent-symbol-option{gap:7px;padding:8px 5px}.agent-symbol-option>span:not(.mb-market-icon){font-size:12px}.agent-symbol-option small{display:none}.agent-symbol-options{max-height:300px}}
