.rt-section{margin-top:20px;min-width:0}.rt-section .panel-footer{font-size:12px;line-height:1.7}.rt-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.rt-metric{display:flex;flex-direction:column;gap:9px;padding:20px}.rt-metric>span{font-size:12px;color:var(--muted)}.rt-metric>strong{font-size:25px}.rt-metric>small{font-size:11px;color:var(--muted);line-height:1.6}.rt-status{margin:12px 0}.rt-empty{padding:32px}.rt-code{display:block;font-size:11px;margin-top:5px;max-width:260px;overflow-wrap:anywhere}.rt-digest{display:block;max-width:230px;word-break:break-all;font-size:11px}.rt-section code,.rt-steps code{overflow-wrap:anywhere}.rt-section .data-table td{vertical-align:top;font-size:12px}.rt-evidence{margin-top:7px;max-width:300px;font-size:11px}.rt-evidence summary{cursor:pointer;color:var(--purple)}.rt-evidence pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;background:var(--surface-soft,#f7f6fb);border-radius:7px;padding:10px}.rt-steps{padding-left:22px;max-width:1000px;line-height:1.85}.rt-steps li{margin-bottom:12px}.rt-checks{padding:14px;margin:16px 0;border:1px solid var(--border,#e4e3eb);border-radius:10px}.rt-checks .check-field{margin:8px 0}.rt-receipts{display:flex;gap:10px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid var(--border,#e4e3eb)}.rt-receipts>div{display:flex;flex-direction:column;gap:4px;font-size:11px;min-width:150px}.rt-receipts small{color:var(--muted)}@media(max-width:1000px){.rt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.rt-metrics{gap:9px}.rt-metric{padding:13px}.rt-metric>strong{font-size:20px}.rt-section .table-wrap{max-width:100%;overflow-x:auto}.rt-steps{padding-left:18px;font-size:12px}.rt-empty{padding:20px}}
.agent-state{flex-wrap:wrap}.rt-binding{display:grid;gap:5px;padding:15px;margin:15px 0;background:var(--surface-soft,#f7f6fb);border:1px solid var(--border,#e4e3eb);border-radius:10px}.rt-binding>span{font-size:11px;color:var(--muted);margin-top:7px}.rt-binding>code,.rt-server-id{overflow-wrap:anywhere;font-size:11px}.rt-connection-pending,.rt-connection-unknown{background:#eef0f4;color:#475569}.rt-connection-challenged{background:#fff1d6;color:#805400}.rt-connection-connected{background:#e8efff;color:#2450a1}.rt-connection-communicating{background:#e2f5ec;color:#166345}.rt-connection-stale{background:#fff1d6;color:#805400}.rt-connection-disconnected{background:#f8e9ed;color:#8b354a}
.rt-presence{position:relative;display:inline-flex;align-items:center;white-space:normal;line-height:1.45;max-width:100%;cursor:help;outline-offset:3px}.rt-presence:focus-visible{outline:2px solid var(--purple,#7966d8)}.presence-tooltip{position:fixed;z-index:1000;width:min(380px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box;padding:16px;border:1px solid #4b5971;border-radius:13px;background:#202a3b;color:#f3f6fc;box-shadow:0 12px 36px #111a2a45;font-size:12px;line-height:1.5;pointer-events:none;max-height:calc(100vh - 24px);overflow:auto;overflow-wrap:anywhere}.presence-tooltip[hidden]{display:none}.status-tip-header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.status-tip-heading{font-size:14px;line-height:1.4;font-weight:650;min-width:0}.status-tip-status{display:inline-block;flex-shrink:0;max-width:55%;border-radius:6px;padding:3px 7px;font-size:10px;font-weight:650;line-height:1.4;background:#37445b;color:#e4eaf5}.status-tip-success{background:#244f44;color:#baf1d7}.status-tip-warning{background:#594720;color:#ffe4a1}.status-tip-danger{background:#5b303a;color:#ffd0d8}.status-tip-summary{margin:10px 0 0;color:#e2e9f5;font-size:12px;line-height:1.6}.status-tip-facts{display:grid;gap:7px;margin:12px 0 0;padding:11px 0;border-top:1px solid #435068;border-bottom:1px solid #435068}.status-tip-fact{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px}.status-tip-fact dt{color:#aebcd2;font-size:11px}.status-tip-fact dd{margin:0;font-variant-numeric:tabular-nums;font-size:11px;color:#eef3fb}.status-tip-recipients{display:grid;gap:9px;margin-top:12px}.status-tip-recipient{padding-left:10px;border-left:2px solid #61718b}.status-tip-recipient-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.status-tip-recipient-heading>strong{font-size:11px;font-weight:600;min-width:0}.status-tip-recipient-heading .status-tip-status{padding:2px 5px;font-size:9px}.status-tip-recipient-detail{margin:3px 0 0;color:#b8c5d9;font-size:11px;line-height:1.45}.status-tip-more{margin:9px 0 0;color:#adbad0;font-size:10px}.status-tip-next{margin-top:12px;padding-top:10px;border-top:1px solid #435068}.status-tip-next>strong{display:block;color:#c5bafa;font-size:10px;letter-spacing:.03em;text-transform:uppercase}.status-tip-next>p{margin:4px 0 0;font-size:11px;line-height:1.5}.status-tip-caveat{margin:10px 0 0;color:#a4b3cb;font-size:10px;line-height:1.5}@media(max-height:679px){.presence-tooltip{padding:12px}.status-tip-summary{margin-top:7px}.status-tip-facts,.status-tip-next{margin-top:9px;padding-top:8px}.status-tip-recipients{margin-top:9px}.status-tip-caveat{margin-top:8px}}.rt-presence-thinking-available,.rt-presence-working-available,.rt-presence-idle,.rt-presence-active{background:#e2f5ec;color:#166345}.rt-presence-thinking-busy,.rt-presence-working-busy,.rt-presence-pending{background:#fff1d6;color:#805400}.rt-presence-offline,.rt-presence-disconnected,.rt-presence-unreachable,.rt-presence-unknown{background:#eef0f4;color:#475569}.pp-room-choice-top .rt-presence{font-size:10px}.pp-person .rt-presence{margin-top:5px}.pp-message-status .rt-presence{font-size:11px}.pp-trash .setting-row{align-items:flex-start;gap:16px}.pp-trash small{display:block;margin-top:5px}.pp-availability-note{padding:10px 14px;background:#fff7e5;border-radius:8px;font-size:12px;line-height:1.6}.agent-pulse{flex-wrap:wrap}.agent-pulse .rt-presence{margin-left:auto}.pp-thread-header .toolbar{flex-wrap:wrap}

.rt-receipts[hidden]{display:none}.pp-availability-note>.toolbar{margin-top:8px}.pp-availability-note>p{margin-bottom:0}
.rt-presence-deleted{background:#f8e8ec;color:#913648}
[data-runtime-expiry-days][hidden]{display:none}

.rt-agent-controls{display:grid;gap:8px;margin-top:12px}.rt-agent-controls .toolbar{gap:6px;flex-wrap:wrap;margin:0}.rt-agent-controls .button{font-size:11px;padding:7px 10px}.rt-ping-result{font-size:11px;line-height:1.6;max-width:330px}.rt-ping-result small{display:block;color:var(--muted);margin-top:4px}.rt-guide{max-width:850px}.rt-guide section{padding:14px 0;border-top:1px solid var(--line,#ddd)}.rt-guide h3{font-size:15px;margin:0 0 9px}.rt-guide p{font-size:13px;line-height:1.8;white-space:pre-line}.rt-guide pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;background:var(--soft,#f5f4f8);border:1px solid var(--line,#ddd);border-radius:8px;padding:13px;max-width:100%}.rt-guide-selection{margin:12px 0}
.field[data-runtime-expiry-days][hidden]{display:none}
.field[data-runtime-expiry-minutes][hidden]{display:none}.rt-prompt-copybar .toolbar{margin:0;flex-wrap:wrap}
.rt-guide .field .rt-connect-prompt-editor{width:100%;min-height:260px;max-height:520px;resize:vertical;box-sizing:border-box;white-space:pre-wrap;font:12px/1.7 ui-monospace,monospace;unicode-bidi:plaintext}.rt-guide [data-runtime-converted][hidden]{display:none}.rt-guide [data-runtime-converted] .rt-connect-prompt-preview{max-height:260px;min-height:100px}
.rt-connect-tabs{margin-bottom:20px;gap:8px}.rt-prompt-options{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:16px 0}.rt-prompt-options .field{margin:0}.rt-layout-switch{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer}.rt-layout-switch input{accent-color:var(--purple,#7966d8);width:18px;height:18px}.rt-prompt-copybar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.rt-prompt-copybar p{margin:0;font-size:11px;line-height:1.6}.rt-prompt-copybar .button{flex-shrink:0}.rt-guide .rt-connect-prompt-preview{max-height:390px;min-height:200px;overflow:auto;margin:0;white-space:pre-wrap;unicode-bidi:plaintext;font-size:12px;line-height:1.7;border-color:var(--border,#e4e3eb)}.rt-connect-prompt-preview:focus-visible{outline:2px solid var(--purple,#7966d8);outline-offset:3px}@media(max-width:500px){.rt-prompt-copybar{align-items:flex-start;flex-direction:column}.rt-prompt-copybar .button{width:100%}.rt-guide .rt-connect-prompt-preview{max-height:320px}}
.rt-connect-prompt .rt-evidence{max-width:none;margin:14px 0}.rt-connect-prompt [data-runtime-private-setup]{max-height:280px;font:11px/1.6 ui-monospace,monospace;unicode-bidi:plaintext}
.rt-key-panel .panel-header{gap:12px;flex-wrap:wrap}.rt-key-panel .panel-body>p{font-size:13px;line-height:1.7}.rt-key-panel h3{margin:24px 0 10px;font-size:14px}.rt-key-panel .button{margin:3px;font-size:12px}.rt-key-fingerprint{display:block;max-width:36em;overflow-wrap:anywhere;font:12px/1.7 ui-monospace,monospace;margin-top:6px;user-select:all}.rt-key-identity{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;font-size:13px;line-height:1.6}.rt-key-identity dt{color:var(--muted)}.rt-key-identity dd{margin:0;overflow-wrap:anywhere}.rt-key-identity .rt-key-fingerprint{margin:0}[data-signed-key-setup-text]{max-height:440px;overflow:auto}[data-key-decision-status]{font-size:13px;line-height:1.7}@media(max-width:550px){.rt-key-identity{grid-template-columns:1fr;gap:5px}.rt-key-identity dd{margin-bottom:10px}.rt-key-panel .panel-header>.button{width:100%}}

.rt-connections{margin:0 0 24px}.rt-connections .panel-header{gap:16px;flex-wrap:wrap}.rt-connections .panel-body{padding-bottom:20px}.rt-connections p{font-size:12px;line-height:1.65}.rt-intake{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0 20px;border-bottom:1px solid var(--line)}.rt-intake strong{font-size:14px}.rt-intake p{margin:6px 0 0;max-width:760px;color:var(--muted)}.rt-intake-switch{display:flex;align-items:center;gap:10px;flex-shrink:0;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--surface,#fff);font:inherit;font-size:12px;color:var(--text)}.rt-intake-switch>span{width:34px;height:20px;border-radius:12px;background:#b6afbf;display:block;position:relative}.rt-intake-switch>span:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:white}.rt-intake-switch[aria-checked="true"]>span{background:var(--purple,#7966d8)}.rt-intake-switch[aria-checked="true"]>span:after{left:17px}.rt-intake-switch:disabled{opacity:.65;cursor:wait}.rt-intake-switch:focus-visible{outline:2px solid var(--purple,#7966d8);outline-offset:3px}.rt-requests-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 12px}.rt-requests-heading h3{font-size:14px;margin:0}.rt-request{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:18px 0;border-top:1px solid var(--line)}.rt-request>div:first-child{min-width:0}.rt-request h3{font-size:14px;margin:8px 0}.rt-request p{margin:5px 0;overflow-wrap:anywhere}.rt-request-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}.rt-request-actions .button{font-size:12px}.rt-request-empty{padding:18px 0;color:var(--muted)}.rt-connection-help{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.rt-connection-help summary{cursor:pointer;font-size:12px;font-weight:600}.rt-connection-methods{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px}.rt-connection-methods section{min-width:0}.rt-connection-methods h3{font-size:13px}.rt-connection-methods p{margin:8px 0}.rt-connection-methods a{font-size:12px}.rt-mcp-endpoint{display:block;padding:10px 12px;background:var(--soft,#f5f4f8);border-radius:7px;font-size:12px;overflow-wrap:anywhere;user-select:all}.rt-connection-approved{background:#fff1d6;color:#805400}.rt-connections .notice{margin:16px 0}.rt-connections .notice p{margin:4px 0}@media(max-width:850px){.rt-request{flex-direction:column;gap:12px}.rt-connection-methods{grid-template-columns:1fr;gap:16px}}@media(max-width:500px){.rt-intake{align-items:flex-start;gap:10px}.rt-intake-switch{padding:8px;gap:6px}.rt-intake p{font-size:11px}.rt-request-actions{width:100%}.rt-request-actions>.button{flex:1}.rt-requests-heading .small{font-size:10px}}

/* Runtime evidence and connection controls share the studio palette. */
.rt-section .data-table th { background: #f0f2e9; }
.rt-metric { border-radius: 10px; background: var(--surface, #fffefa); }
.rt-metric > strong { color: #3e5334; font-weight: 600; }
.rt-connection-pending, .rt-connection-unknown { background: #ecede5; color: #65705b; }
.rt-connection-connected { background: #e5ede1; color: #47633c; }
.rt-connection-communicating { background: #dfebd8; color: #3b6430; }
.rt-connection-challenged, .rt-connection-stale, .rt-connection-approved { background: #f8ecd3; color: #886121; }
.rt-connection-disconnected, .rt-presence-deleted { background: #f5e4de; color: #924c3b; }
.rt-presence-thinking-available, .rt-presence-working-available, .rt-presence-idle, .rt-presence-active { background: #e4eddc; color: #3d6333; }
.rt-presence-thinking-busy, .rt-presence-working-busy, .rt-presence-pending { background: #f8ecd3; color: #865f20; }
.rt-presence-offline, .rt-presence-disconnected, .rt-presence-unreachable, .rt-presence-unknown { background: #edeee7; color: #66705f; }
.rt-binding, .rt-checks { border-radius: 9px; border-color: var(--line, #deded4); }
.rt-evidence summary, .rt-connection-help summary { min-height: 30px; line-height: 1.6; color: #4c653a; }
.rt-guide pre, .rt-mcp-endpoint { background: #f1f3e9; }
.rt-agent-controls .button { font-size: 12px; min-height: 35px; }
.rt-agent-controls .rt-ping-result { background: #f0f3e8; border-radius: 7px; padding: 10px 12px; }
.rt-intake-switch { border-color: #ccd8bd; background: #f4f6ed; }
.rt-intake-switch > span { background: #a5af96; }
.rt-connections .panel-header { background: #f3f5eb; padding-bottom: 17px; }
.rt-request { padding: 21px 0; }
.rt-request h3 { color: #3c5131; font-size: 15px; }
.rt-request-actions .button { min-height: 37px; }
.rt-connection-help { background: #f6f7ef; border-radius: 8px; padding: 14px 16px; border: 1px solid var(--line, #deded4); }
.rt-guide .rt-connect-prompt-editor, .rt-guide .rt-connect-prompt-preview { background: #fffefa; font-size: 13px; line-height: 1.75; }
.presence-tooltip { background: #303c2b; color: #f3f5ed; border-color: #647455; box-shadow: 0 12px 36px #202b1b35; }
.status-tip-status { color: #ebf2df; background: #4b5c40; }
.status-tip-summary { color: #e4ecd9; }
.status-tip-facts, .status-tip-next { border-color: #5a6d4c; }
.status-tip-fact dt, .status-tip-recipient-detail, .status-tip-more, .status-tip-caveat { color: #c2cfb4; }
.status-tip-fact dd { color: #eef5e7; }
.status-tip-recipient { border-color: #91a47f; }
.status-tip-next > strong { color: #dceabf; }

/* Per-agent Files policy remains visible beside the existing runtime controls. */
.rt-files-policy { min-width: 0; padding: 12px; border: 1px solid var(--line, #deded4); border-radius: 9px; background: #f6f7ef; }
.rt-files-policy-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; }
.rt-files-policy-heading > strong { color: var(--text, #292f25); font-size: 12px; line-height: 1.5; }
.rt-files-policy-heading > .badge { font-size: 10px; white-space: normal; }
.rt-files-policy-switch { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 36px; margin-left: auto; padding: 6px 9px; border: 1px solid #cbd3c1; border-radius: 7px; background: var(--surface, #fffefa); color: #405837; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.rt-files-policy-switch > span { display: block; position: relative; flex: 0 0 auto; width: 30px; height: 18px; border-radius: 12px; background: #79816f; }
.rt-files-policy-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fffefa; }
.rt-files-policy-switch[aria-checked="true"] { border-color: #acbca0; background: #edf2e6; color: #344d2b; }
.rt-files-policy-switch[aria-checked="true"] > span { background: #48633b; }
.rt-files-policy-switch[aria-checked="true"] > span::after { left: 15px; }
.rt-files-policy-switch[aria-checked="false"] { color: #5a6352; }
.rt-files-policy-switch:hover:not(:disabled) { border-color: #738961; }
.rt-files-policy-switch:focus-visible { outline: 2px solid #526d41; outline-offset: 3px; }
.rt-files-policy-switch:disabled { border-color: #d8dbd0; background: #f0f1e9; color: #646d5e; cursor: not-allowed; }
.rt-files-policy-switch:disabled > span { background: #88917e; }
.rt-files-policy-description, .rt-files-policy-status { margin: 8px 0 0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.rt-files-policy-description { color: var(--muted, #626c58); }
.rt-files-policy-status:empty, .rt-files-policy-actions:empty { display: none; }
.rt-files-policy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
@media (max-width: 500px) { .rt-files-policy-switch { min-height: 40px; } }

.oauth-file-operation { border-left: 3px solid var(--line, #c2d7d0); padding-left: 12px; margin-bottom: 16px; }
.oauth-file-inactive { border-left-style: dashed; color: var(--muted, #626c58); }
.oauth-file-inactive input { opacity: .65; }
.rt-event-health-list { display: grid; gap: 12px; margin: 16px 0; }
.rt-event-health-row { border: 1px solid var(--border, #ddd); border-radius: 10px; padding: 14px; }
.rt-event-health-row > .status-pill { margin-left: 10px; }
.rt-event-health-row dl { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 7px 14px; font-size: 13px; }
.rt-event-health-row dt { color: var(--muted, #687080); }
.rt-event-health-row dd { margin: 0; overflow-wrap: anywhere; }
[data-event-setup-prompt] { width: 100%; min-height: 240px; margin: 10px 0; line-height: 1.5; }
