:root {
  color-scheme: dark;
  --bg: #090a0b;
  --panel: #111214;
  --panel-2: #151618;
  --panel-3: #1a1b1e;
  --line: #292a2d;
  --line-strong: #38393d;
  --text: #f3f3f3;
  --muted: #98999d;
  --subtle: #707176;
  --white: #f5f5f5;
  --danger: #d7a4a4;
  --danger-bg: #211819;
  --warning: #d6c293;
  --sidebar: 228px;
  --topbar: 64px;
  --radius: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 12px; }
button, input, textarea, select { font: inherit; }
button, a { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #d9d9d9; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ui-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.topbar { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 16px 0 0; border-bottom: 1px solid #202124; background: #09090a; }
.brand { width: var(--sidebar); height: 100%; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 0 16px; border-right: 1px solid #202124; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #8a8b8f; border-radius: 9px; background: linear-gradient(145deg, #f7f7f7, #77787b); color: #111214; }
.brand-mark .ui-icon, .brand-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand b { display: block; font-size: 15px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 1px; color: #929398; font-size: 9px; white-space: nowrap; }
.scope-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.plane-switch { height: 36px; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #303136; border-radius: 11px; background: #111214; white-space: nowrap; }
.plane-switch button { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #8e8f93; font-size: 9px; font-weight: 800; letter-spacing: .45px; }
.plane-switch button:hover { color: var(--text); background: #1b1c1e; }
.plane-switch button.active { color: #111; background: #efefef; }
.plane-switch button .ui-icon { width: 14px; height: 14px; }
.plane-switch .swap { width: 30px; padding: 0; justify-content: center; border-inline: 1px solid #26272a; border-radius: 6px; }
.workspace-control { height: 36px; min-width: 154px; max-width: 230px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #303136; border-radius: 10px; background: #111214; }
.workspace-control .ui-icon { width: 14px; height: 14px; color: #aaa; }
.workspace-control select { min-width: 0; width: 100%; height: 31px; padding: 0 4px; border: 0; background: transparent; color: var(--text); font-size: 10px; font-weight: 750; }
.global-search-trigger { position: relative; width: min(480px, 34vw); height: 38px; display: flex; align-items: center; gap: 9px; margin-left: auto; padding: 0 9px 0 11px; border: 1px solid #2e2f32; border-radius: 9px; background: #111214; color: #aaa; text-align: left; }
.global-search-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-trigger kbd { padding: 2px 5px; border-radius: 5px; background: #1c1d20; color: #999; font-size: 9px; }
.topbar-status { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.shell-tool { position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #bbb; }
.shell-tool:hover, .shell-tool[aria-expanded="true"] { border-color: #303136; background: #151618; color: #fff; }
.shell-tool b { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 99px; background: #eee; color: #111; font-size: 8px; }
.account-button { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 3px 0 7px; border: 0; background: transparent; color: #fff; }
.account-button > img { width: 31px; height: 31px; border: 1px solid #444; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.account-button > .ui-icon { width: 13px; height: 13px; color: #777; }
.identity-copy { display: block; min-width: 82px; max-width: 125px; text-align: left; }
.identity-copy b, .identity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-copy b { font-size: 10px; }
.identity-copy small { margin-top: 2px; color: #9a9a9a; font-size: 8px; }
.guest-countdown { min-width: 96px; padding: 7px 9px; border: 1px solid #454238; border-radius: 8px; background: #1d1b15; color: #e1d2a7; font-size: 9px; font-weight: 750; text-align: center; }
.guest-countdown.warning { border-color: #735b3d; background: #2b2117; color: #f0c88f; }
.guest-countdown.expired { border-color: #674143; background: #28191a; color: #e4a9ac; }

.layout { min-height: 100vh; padding-top: var(--topbar); }
.sidebar { position: fixed; z-index: 20; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 12px 9px; border-right: 1px solid #202124; background: #0d0e0f; overflow-y: auto; }
.sidebar nav { flex: 1; }
.sidebar nav p { margin: 11px 9px 5px; color: #747579; font-size: 9px; font-weight: 800; letter-spacing: .7px; }
.sidebar nav p:first-child { margin-top: 2px; }
.sidebar nav a { height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border-radius: 8px; color: #bbb; font-size: 12px; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: #fff; background: #191a1c; }
.nav-icon { width: 17px; display: grid; place-items: center; color: #a8a9ad; }
.nav-icon .ui-icon { width: 16px; height: 16px; }
.nav-count { margin-left: auto; padding: 2px 6px; border-radius: 99px; background: #27282b; color: #aaa; font-size: 9px; }
.sidebar-footer { display: grid; gap: 8px; }
.sidebar-action { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #292a2d; border-radius: 8px; background: #111214; color: #bbb; text-align: left; }
.sidebar-action .ui-icon { width: 15px; height: 15px; }
.my-agent-mini { min-height: 49px; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #27282b; border-radius: 10px; background: #111214; }
.my-agent-mini img { width: 31px; height: 31px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.my-agent-mini span { flex: 1; }
.my-agent-mini b, .my-agent-mini small { display: block; font-size: 10px; }
.my-agent-mini small { margin-top: 2px; color: #a2a2a2; }
.my-agent-mini .ui-icon { width: 15px; height: 15px; color: #777; }
main { position: fixed; top: var(--topbar); right: 0; bottom: 0; left: var(--sidebar); padding: 20px 22px 42px; overflow: auto; }
.view-body, .notice-panel { width: min(1500px, 100%); margin-inline: auto; }
.notice-panel { margin-bottom: 12px; padding: 8px 10px; border: 1px solid #5a5038; border-radius: 8px; background: #201d15; color: var(--warning); font-size: 10px; }
.notice-panel b { margin-right: 7px; }

.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.breadcrumb { margin: 0 0 5px; color: #76777c; font-size: 10px; }
.view-heading h1 { margin: 0 0 3px; font-size: 23px; line-height: 1.15; }
.subtitle { margin: 0; color: #97989c; font-size: 11px; }
.heading-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.heading-actions .ui-icon { width: 13px; height: 13px; }
button.primary, button.secondary, button.danger, a.primary, a.secondary, .file-button { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 8px; font-size: 11px; font-weight: 650; text-decoration: none; }
button.primary, a.primary, .file-button.primary { border: 1px solid #eee; background: #eee; color: #111; }
button.secondary, a.secondary, .file-button { border: 1px solid #36373a; background: #141517; color: #ddd; }
button.secondary:hover, a.secondary:hover { background: #1b1c1e; }
button.danger { border: 1px solid #5a4143; background: var(--danger-bg); color: var(--danger); }
.compact { min-height: 26px !important; padding-inline: 7px !important; font-size: 9px !important; }
.danger-quiet { color: #bea3a4 !important; border-style: dashed !important; }
.icon-only { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 1px solid #34353a; border-radius: 7px; background: #151618; color: #aaa; }
.row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.permission-strip { min-height: 36px; display: flex; align-items: center; gap: 7px; margin: -4px 0 12px; padding: 7px 9px; border: 1px solid #292a2d; border-radius: 8px; background: #101113; color: #8f9094; font-size: 9px; }
.permission-strip b { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #3a3b3e; border-radius: 5px; color: #eee; }
.permission-strip small { margin-left: auto; color: #6f7074; }

select, input, textarea { border: 1px solid #34353a; border-radius: 7px; background: #0e0f10; color: #eee; }
select, input { min-height: 32px; padding: 0 8px; }
textarea { width: 100%; padding: 8px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #6e6f73; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.s2 { grid-column: span 2; }.s3 { grid-column: span 3; }.s4 { grid-column: span 4; }.s5 { grid-column: span 5; }.s6 { grid-column: span 6; }.s7 { grid-column: span 7; }.s8 { grid-column: span 8; }.s9 { grid-column: span 9; }.s12 { grid-column: span 12; }
.card { padding: 14px; border: 1px solid #27282b; border-radius: var(--radius); background: #111214; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cardhead h3 { margin: 0; font-size: 13px; }
.eyebrow { margin: 0; color: #737478; font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.big { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; }
.small { font-size: 10px; }.muted { color: #8e8f94; }.warning-copy { color: var(--warning); }
.row { display: flex; align-items: center; gap: 8px; }.between { justify-content: space-between; }.stack { display: flex; flex-direction: column; gap: 9px; }
.divider { height: 1px; margin: 10px 0; background: #252629; }
.item { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #232427; }
.item:first-child { border-top: 0; }
.itemmain { flex: 1; min-width: 0; }
.item b, .item small, .itemmain b, .itemmain small { display: block; }
.item b, .itemmain b { font-size: 11px; }
.item small, .itemmain small { margin-top: 2px; color: #87888d; font-size: 9px; }
.button-item { width: 100%; border-inline: 0; border-bottom: 0; background: transparent; color: inherit; text-align: left; }
.button-item:hover { background: #161719; }
.pill, .badge { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border: 1px solid #34353a; border-radius: 99px; background: #17181a; color: #c7c7c7; font-size: 9px; text-transform: capitalize; }
.badge.active, .badge.complete { border-color: #3d4640; color: #cbd0cc; }.badge.paused, .badge.draft { color: #c9c0a6; }.badge.failed, .badge.deleted { color: #cba7a9; }
.avatar { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #444; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.avatar.lg { width: 52px; height: 52px; }.avatar.xl { width: 78px; height: 78px; }
.avatars { display: flex; }.avatars .avatar { margin-left: -7px; }.avatars .avatar:first-child { margin-left: 0; }
.thumb { width: 88px; height: 52px; border: 1px solid #34353a; border-radius: 8px; object-fit: cover; filter: grayscale(.8); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }.tags span, .chip { padding: 3px 6px; border: 1px solid #34353a; border-radius: 99px; color: #aaa; font-size: 8px; }
.tabs { display: flex; gap: 10px; margin-bottom: 10px; border-bottom: 1px solid #252629; }
.tabs span { padding: 8px 2px; border-bottom: 2px solid transparent; color: #888; font-size: 10px; }
.tabs span.active { border-bottom-color: #fff; color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 8px; border-bottom: 1px solid #252629; text-align: left; }
th { color: #777; font-size: 9px; font-weight: 700; }
td { font-size: 11px; }
.empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; padding: 28px; border: 1px dashed #34353a; border-radius: 10px; text-align: center; }
.empty-mark { width: 38px; height: 38px; fill: none; stroke: #bbb; stroke-width: 1.5; }
.empty-state h3 { margin: 12px 0 4px; }.empty-state p, .muted-list { color: var(--muted); line-height: 1.5; }

.chatlayout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 285px; gap: 12px; }
.history { padding: 0; overflow: hidden; }
.historyhead { padding: 12px; border-bottom: 1px solid #252629; }
.historyhead input { width: 100%; margin-top: 9px; }
.historygroup { padding: 11px 11px 3px; color: #777; font-size: 9px; font-weight: 800; }
.folder-row { padding: 9px 10px 0; }.folder-row select { width: 100%; }
.thread-list { max-height: 650px; overflow-y: auto; }
.historyrow { width: 100%; display: flex; align-items: center; gap: 7px; padding: 9px 10px; border: 0; border-left: 2px solid transparent; background: transparent; color: inherit; text-align: left; }
.historyrow.active, .historyrow:hover { border-left-color: #eee; background: #191a1c; }
.historyrow .copy { min-width: 0; flex: 1; }.historyrow b, .historyrow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.historyrow b { font-size: 10px; }.historyrow small { margin-top: 2px; color: #808186; font-size: 9px; }
.messages { min-height: 650px; display: flex; flex-direction: column; }
.conversation-title h3 { margin: 0; }.conversation-title small { color: var(--muted); }
.participants { display: flex; gap: 12px; padding: 8px 0 11px; border-bottom: 1px solid #252629; overflow-x: auto; }
.participant { min-width: 45px; text-align: center; }.participant small { display: block; margin-top: 3px; color: #777; font-size: 8px; }
.message-timeline { max-height: 520px; padding: 8px 0; overflow-y: auto; }
.message { max-width: 80%; display: flex; gap: 8px; margin: 7px 0; }.message.you { margin-left: auto; flex-direction: row-reverse; }
.bubble { padding: 10px; border: 1px solid #242528; border-radius: 10px; background: #17181a; font-size: 11px; line-height: 1.5; }.message.you .bubble { background: #1d1e20; }
.message-author { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 3px; }.message-author time { color: #777; font-size: 8px; }
.composer { margin-top: auto; padding: 9px; border: 1px solid #2d2e31; border-radius: 11px; background: #0e0f10; }
.composer textarea { min-height: 48px; border: 0; background: transparent; outline: none; resize: none; }
.composer-actions { display: flex; justify-content: space-between; gap: 8px; }.composer-actions > div { display: flex; gap: 5px; flex-wrap: wrap; }
.file-button { min-height: 26px; padding-inline: 7px; font-size: 9px; }
.file-button.recording { background: #412728; color: #fff; }
.selected-files { display: flex; gap: 5px; }.selected-files span { padding: 3px 6px; border: 1px solid #34353a; border-radius: 99px; font-size: 8px; }
.attachments { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 6px; margin-top: 8px; }.attachment { margin: 0; overflow: hidden; border: 1px solid #303136; border-radius: 8px; }.attachment img, .attachment video, .attachment iframe { width: 100%; max-height: 180px; border: 0; }.attachment figcaption { padding: 5px; color: #888; font-size: 8px; }
.stream-status { display: flex; align-items: center; gap: 7px; padding: 7px 2px; color: #777; font-size: 8px; }
.live-evidence { margin: 9px 0 2px; padding: 10px; border: 1px solid #36373b; border-radius: 10px; background: #101112; }.live-evidence-head, .live-meta, .live-actions { display: flex; align-items: center; gap: 7px; }.live-evidence-head { align-items: flex-start; justify-content: space-between; }.live-evidence-head h3 { margin: 2px 0; }.live-evidence-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 9px; }.live-actions { justify-content: flex-end; flex-wrap: wrap; }.live-meta { margin-top: 8px; color: var(--muted); font-size: 8px; }.live-meta a { color: var(--text); }.live-meta small { margin-left: auto; }.live-progress { width: 100%; height: 4px; margin-top: 8px; accent-color: #ddd; }.live-error { margin: 8px 0 0; padding: 7px; border-left: 2px solid var(--danger); background: #25191a; color: #e2b9bc; font-size: 9px; line-height: 1.45; }.live-workspace { display: grid; grid-template-columns: minmax(130px, 4fr) minmax(220px, 8fr); gap: 8px; margin-top: 9px; }.live-segments { max-height: 220px; overflow-y: auto; }.live-segment { width: 100%; display: grid; gap: 2px; padding: 7px; border: 0; border-left: 2px solid transparent; border-radius: 5px; background: transparent; color: inherit; text-align: left; }.live-segment + .live-segment { border-top: 1px solid #252629; }.live-segment.active, .live-segment:hover { border-left-color: #eee; background: #1a1b1d; }.live-segment b, .live-segment small, .live-segment span { display: block; }.live-segment small, .live-segment span, .live-empty { color: var(--muted); font-size: 8px; }.live-segment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.live-segment-detail { min-width: 0; min-height: 120px; padding: 8px; border: 1px solid #292a2e; border-radius: 7px; }.live-segment-detail > p { margin: 8px 0; font-size: 9px; line-height: 1.5; }.live-preview { width: 100%; max-height: 210px; display: block; margin-top: 7px; border-radius: 6px; background: #070708; object-fit: contain; }.live-questions { display: grid; gap: 4px; margin-top: 8px; }.live-questions > small { color: var(--muted); }.live-questions button { min-height: 26px; padding: 5px 7px; border: 1px solid #303136; border-radius: 6px; background: #17181a; color: var(--text); font-size: 8px; text-align: left; }
.chat-context { min-width: 0; }.profilehero { padding: 15px; border: 1px solid #252629; border-radius: 11px; background: #0f1011; text-align: center; }.profilehero h2, .profilehero h3 { margin: 8px 0 3px; }.profilehero p { margin: 0 0 10px; color: var(--muted); font-size: 10px; }.profilehero .tags { justify-content: center; }

.library-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 12px; }.folders-panel .ui-icon, .files-panel td .ui-icon { color: #999; }
.channelgrid { display: grid; grid-template-columns: 190px minmax(0, 1fr) 240px; gap: 12px; }
.channel-row { width: 100%; display: flex; align-items: center; gap: 7px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: #aaa; text-align: left; }.channel-row > span { min-width: 0; flex: 1; }.channel-row b, .channel-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.channel-row small { margin-top: 2px; color: #777; font-size: 8px; }.channel-row.active, .channel-row:hover { background: #1a1b1d; color: #fff; }
.members-panel { min-width: 0; }
.workflow-history, .schedule-history { margin-bottom: 12px; }.workflow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }.node { padding: 8px 9px; border: 1px solid #34353a; border-radius: 9px; background: #151618; font-size: 9px; }.arrow { transform: rotate(-90deg); color: #67686b; }
.forge-screen { display: grid; grid-template-columns: minmax(280px, 3fr) minmax(560px, 9fr); gap: 12px; }.forge-brief label { display: grid; gap: 5px; margin: 10px 0; color: var(--muted); font-size: 9px; }.forge-canvas { min-height: 650px; }.previewgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.previewgrid img { width: 100%; border: 1px solid #333; border-radius: 9px; filter: grayscale(.7); }.canvas { min-height: 320px; display: grid; place-items: center; margin: 10px 0; border: 1px dashed #414247; border-radius: 10px; background: #0d0e0f; text-align: center; }.canvas p { color: var(--muted); }.callout { margin-top: 10px; padding: 9px; border-left: 2px solid #777; background: #151618; }.callout p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.forge-approval { margin-top: 10px; padding: 10px; border: 1px solid #5a523d; border-radius: 8px; }
.pilot-grid { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(360px, 7fr); gap: 12px; }.pilot-launch { min-height: 440px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }.pilot-launch h2 { margin: 8px 0; font-size: 25px; }.pilot-launch > p:not(.eyebrow) { max-width: 460px; color: var(--muted); line-height: 1.65; }.pilot-launch .primary { margin-top: 16px; }.pilot-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #38393d; border-radius: 11px; background: #151618; }.pilot-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }.pilot-policy { min-height: 440px; }.pilot-policy .setting { min-height: 68px; }.pilot-policy .setting .ui-icon { color: var(--muted); }
.apex-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr) 280px; gap: 12px; }.apex-editor pre { min-height: 490px; margin: 0; padding: 12px; border: 1px solid #252629; border-radius: 10px; background: #070708; color: #ddd; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }.apex-agent textarea { margin: 10px 0; }
.market-search { display: flex; gap: 8px; max-width: 720px; margin-bottom: 14px; }.market-search input { flex: 1; }.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.market-card { min-height: 235px; display: flex; flex-direction: column; }.market-card h3 { margin: 0 0 3px; }.market-card p { color: var(--muted); line-height: 1.55; }.market-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }.agent-search-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 12px; }.search-filters input { width: 100%; }
.settings-shell { display: grid; grid-template-columns: 4fr 8fr; gap: 12px; }.settings-menu { padding-block: 5px; }.settings-menu .active { background: #191a1c; }.settings-menu .ui-icon { width: 13px; height: 13px; transform: rotate(-90deg); }.settings-detail { min-height: 470px; }.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #242528; }.setting:first-of-type { border-top: 0; }.setting b, .setting small { display: block; }.setting b { font-size: 11px; }.setting small { margin-top: 2px; color: #818287; font-size: 9px; }.switch { width: 34px; height: 19px; padding: 3px; border-radius: 99px; background: #333; }.switch i { display: block; width: 13px; height: 13px; border-radius: 50%; background: #aaa; }.switch.on { background: #efefef; }.switch.on i { transform: translateX(15px); background: #111; }.profile-row h2 { margin: 0; }.profile-row small { color: var(--muted); }.settings-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }.danger-zone { border-color: #4b3638; }.danger-zone button { margin-right: 6px; }

.shell-popover { position: fixed; z-index: 80; top: 57px; right: 16px; width: min(390px, calc(100vw - 28px)); max-height: min(650px, calc(100vh - 75px)); padding: 12px; overflow-y: auto; border: 1px solid #2e2f32; border-radius: 11px; background: #111214; box-shadow: 0 18px 55px rgba(0,0,0,.45); }.search-popover { width: min(600px, calc(100vw - 28px)); }.popover-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }.popover-head small, .popover-head b { display: block; }.popover-head small { color: #777; font-size: 8px; }.popover-head b { margin-top: 2px; }.search-popover input { width: 100%; }.shell-results { margin-top: 8px; }.shell-result { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 9px; border: 0; border-top: 1px solid #252629; background: transparent; color: inherit; text-align: left; }.shell-result span { min-width: 0; flex: 1; }.shell-result b, .shell-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.shell-result small, .shell-empty { color: var(--muted); font-size: 9px; }.account-summary { display: grid; gap: 8px; padding: 10px 0; border-block: 1px solid #292a2d; }.account-summary div { display: flex; justify-content: space-between; }.popover-actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; }
.transition { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; background: rgba(7,8,7,.94); }.transition-card { width: min(390px, calc(100% - 32px)); display: grid; place-items: center; gap: 10px; padding: 34px; border: 1px solid #38393d; border-radius: 9px; background: #111214; text-align: center; }.transition-card small { color: var(--muted); }.spinner { width: 19px; height: 19px; display: inline-block; border: 2px solid #454649; border-top-color: #eee; border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }
.toast-host { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(380px, calc(100% - 36px)); }.toast { padding: 11px 13px; border: 1px solid #38393d; border-radius: 8px; background: #202124; }.toast.error { border-color: #624446; background: #26191a; }
.signed-out, .fatal-panel { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }.signed-out-card, .fatal-panel > div { width: min(650px, 100%); padding: 52px; border: 1px solid #292a2d; border-radius: 13px; background: #111214; }.signed-out-card h1 { margin: 17px 0 12px; font-size: clamp(42px, 7vw, 66px); line-height: .98; letter-spacing: -.055em; }.signed-out-card > p:not(.eyebrow), .fatal-panel p { color: var(--muted); line-height: 1.6; }.sign-in-form { display: grid; gap: 12px; margin-top: 24px; }.sign-in-form h2 { margin: 0; }.sign-in-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }.sign-in-form input { width: 100%; min-height: 44px; }.sign-in-form button { width: 100%; }.sign-in-error { margin: 0; color: var(--danger); }.sign-in-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 3px; color: var(--subtle); }.sign-in-divider::before, .sign-in-divider::after { content: ""; height: 1px; flex: 1; background: #292a2d; }.signed-out-card #standardSignIn > button { width: 100%; margin-top: 10px; }.text-button { width: 100%; min-height: 30px; border: 0; background: transparent; color: var(--muted); }.signed-out-card > small { display: block; color: var(--subtle); }.fatal-panel { position: fixed; z-index: 110; inset: 0; }.view-loading { min-height: 460px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); }
.guest-entry { display: grid; gap: 12px; margin-top: 24px; padding: 17px; border: 1px solid #37393c; border-radius: 11px; background: #151618; }
.guest-entry h2 { margin: 4px 0 6px; font-size: 19px; }
.guest-entry p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.blocking-modal { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(7, 8, 8, .96); }
.blocking-card { width: min(510px, 100%); padding: 34px; border: 1px solid #3a3b3f; border-radius: 13px; background: #121315; box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.blocking-card h2 { margin: 7px 0 9px; font-size: 25px; }
.blocking-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.blocking-card > small { display: block; margin-top: 13px; color: var(--subtle); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-actions.stacked { display: grid; }
.modal-actions.stacked button { width: 100%; }

@media (max-width: 1180px) {
  .brand { width: 190px; }.sidebar { width: 190px; }main { left: 190px; }.global-search-trigger { width: min(330px, 27vw); }.chatlayout, .channelgrid { grid-template-columns: 220px minmax(0,1fr); }.chat-context, .members-panel { display: none; }.s2, .s3, .s4 { grid-column: span 6; }.forge-screen, .apex-grid, .pilot-grid { grid-template-columns: 1fr; }.live-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  :root { --topbar: 112px; }.topbar { height: var(--topbar); flex-wrap: wrap; align-content: center; padding: 8px; }.brand { width: auto; height: 48px; border: 0; padding: 0 8px; }.scope-controls { margin-left: auto; }.global-search-trigger { order: 4; width: calc(100% - 10px); height: 34px; margin: 0 5px; }.topbar-status { display: none; }.sidebar { position: static; width: 100%; height: auto; flex-direction: row; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #202124; }.sidebar nav { display: flex; }.sidebar nav p, .sidebar-footer { display: none; }.sidebar nav a { flex: 0 0 auto; }main { position: static; min-height: calc(100vh - var(--topbar)); padding: 15px; }.view-heading { flex-direction: column; }.heading-actions { justify-content: flex-start; }.chatlayout, .channelgrid, .library-layout, .settings-shell, .settings-secondary, .agent-search-grid { grid-template-columns: 1fr; }.history, .channellist { max-height: 270px; }.grid > [class*="s"] { grid-column: span 12; }.market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand small, .plane-switch button span { display: none; }.workspace-control { min-width: 42px; width: 42px; }.workspace-control select { width: 1px; opacity: 0; }.market-grid { grid-template-columns: 1fr; }.permission-strip small { display: none; }.heading-actions { width: 100%; }.heading-actions > * { flex: 1; }.settings-detail { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
