/* The account space belongs to the app shell, with no inline styles. */
/* Fix-5 withdraws the space header and scope controls without reserving layout space. */
#account-space,#account-space .space-scopes,#space-scope-mine,#space-scope-all{display:none}
#shell [data-view="network"]{display:none!important}
.account-space{flex:none;padding:14px 18px;border-bottom:1px solid var(--line,#dde3ed);background:var(--sidebar,#fff);color:var(--ink,#26344c)}
.account-space-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#account-space-name{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
#account-space-summary{display:block;margin-top:3px;font-size:12px;line-height:1.6;color:var(--muted,#64738b)}
#account-space-manage{min-width:44px;min-height:44px;padding:8px 10px;border:1px solid var(--line,#dde3ed);border-radius:10px;background:var(--raised,#f5f7fc);color:var(--ink,#26344c);font-size:12px;white-space:nowrap}
.space-scopes{display:flex;gap:6px;margin-top:10px}
.space-scopes button{flex:1;min-height:44px;border:1px solid var(--line,#dde3ed);border-radius:10px;background:transparent;color:var(--muted,#64738b);font-size:12px}
.space-scopes button[aria-pressed=true]{border-color:#778bc2;background:#e8eefb;color:#304b8b;font-weight:650}
.thread-space-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:11px;line-height:1.4;color:#64738b}
#chat-space-label{display:block;margin-top:3px;font-size:11px;font-weight:400;line-height:1.45;color:var(--muted,#64738b);overflow-wrap:anywhere}
.chat-header:has(#chat-space-label:not(:empty)){height:auto}
#network .principal-card footer button,#network .contact-options summary{min-height:44px}
#create-agent,#connect-agent-button{min-height:44px}
#new-thread{min-width:44px;min-height:44px}
#network .principal-card .agent-owner-label{margin-bottom:10px}
.agent-space-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--line,#dce3ee);border-radius:12px;color:var(--ink,#26344c)}
.agent-space-empty p{margin-bottom:0;font-size:14px;line-height:1.7;color:var(--muted,#64738b)}
.account-space button:focus-visible{outline:3px solid #728bdb;outline-offset:2px}
.space-readonly-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:8px;background:#e8eefb;color:#405986;font-size:11px;font-weight:600;white-space:nowrap}
.space-return{min-height:44px;min-width:44px;margin-top:8px;padding:8px 12px;border:1px solid #b8c9e6;border-radius:10px;background:#edf3ff;color:#304b8b;font:inherit;font-size:12px;cursor:pointer}
.space-return:focus-visible{outline:3px solid #728bdb;outline-offset:2px}
.space-readonly-badge[hidden],.space-return[hidden],.space-scopes[hidden]{display:none}
#network[data-readonly=true] .info-banner{display:none}
#network .principal-card[data-readonly=true]{border-color:#c9d5e9}
#thread-list[data-readonly=true] .apc-tt-more{display:none!important}
.space-scopes button[hidden]{display:none}
@media(max-width:800px){.account-space{padding:10px 16px}.space-scopes{margin-top:6px}#account-space-name{font-size:14px}}
