/* Claude-owned. Codex-style shell for the CAD Studio browser app, matching the desktop panel
   (desktop/ui/codex-shell.css): window bar, icon rail, chats sidebar, title bar, transcript, composer,
   menus, dialogs, Files panel and camera. Every rule is scoped to body.cx, which shell.js adds only
   after it has built the shell, so the original layout stays intact if the shell cannot start. */

:root{
 --cx-bg:#181818;--cx-side:#1c1d21;--cx-rail:#151619;--cx-bar:#1f2126;--cx-line:#2b2d32;--cx-line-2:#3a3c42;
 --cx-hover:rgba(255,255,255,.06);--cx-active:rgba(255,255,255,.09);--cx-menu:#26272b;--cx-menu-line:#3a3b41;
 --cx-ink:#ececec;--cx-ink-2:#b9b9bd;--cx-ink-3:#8b8b92;
 --cx-composer:#262626;--cx-composer-line:#383838;--cx-bubble:#2c2c2e;--cx-card:#202124;
 --cx-blue:#3b82f6;--cx-red:#ef4444;--cx-orange:#f0a33a;--cx-green:#22c55e;
 --cx-orb:#f2f2f2;--cx-orb-ink:#111111;--cx-avatar:#d6336c;
 --cx-shadow:0 16px 40px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.35);
 --cx-font:'Segoe UI Variable Text','Segoe UI',system-ui,-apple-system,sans-serif;
}
html[data-theme="light"]{
 color-scheme:light;
 --cx-bg:#ffffff;--cx-side:#f7f7f8;--cx-rail:#f0f0f2;--cx-bar:#f3f3f5;--cx-line:#e6e6e9;--cx-line-2:#d9d9de;
 --cx-hover:rgba(0,0,0,.05);--cx-active:rgba(0,0,0,.075);--cx-menu:#ffffff;--cx-menu-line:#e2e2e6;
 --cx-ink:#0d0d0f;--cx-ink-2:#4b4b52;--cx-ink-3:#8b8b93;
 --cx-composer:#ffffff;--cx-composer-line:#dcdce1;--cx-bubble:#f1f1f3;--cx-card:#fafafa;
 --cx-blue:#2f6fed;--cx-red:#dc2626;--cx-orange:#c2410c;--cx-green:#16a34a;
 --cx-orb:#0d0d0f;--cx-orb-ink:#ffffff;
 --cx-shadow:0 12px 32px rgba(15,15,20,.14),0 2px 6px rgba(15,15,20,.06);
}
html[data-theme="dark"]{color-scheme:dark}

body.cx{background:var(--cx-bg);color:var(--cx-ink);font-family:var(--cx-font);font-size:14px}
body.cx button,body.cx input,body.cx select,body.cx textarea{font-family:var(--cx-font)}
body.cx button:hover{box-shadow:none;filter:none}
body.cx :focus-visible{outline:2px solid var(--cx-blue);outline-offset:1px}
body.cx .cx-sr-only,body.cx #compose select.cx-sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;opacity:0}
.cx-ico{width:18px;height:18px;flex-shrink:0;display:block}
body.cx .cx-icon-btn{position:relative;width:32px;height:32px;min-width:32px;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--cx-ink-2);cursor:pointer;padding:0;margin:0;font-size:0}
body.cx .cx-icon-btn:hover:not(:disabled),body.cx .cx-icon-btn.on,body.cx .cx-icon-btn[aria-expanded="true"]{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .cx-icon-btn:disabled{opacity:.38;cursor:default}
body.cx .cx-btn{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;margin:0;border:1px solid var(--cx-line-2);border-radius:999px;background:transparent;color:var(--cx-ink);font-size:13px;font-weight:500;cursor:pointer;width:auto}
body.cx .cx-btn:hover:not(:disabled){background:var(--cx-hover)}
body.cx .cx-btn.primary{background:var(--cx-orb);color:var(--cx-orb-ink);border-color:transparent}
body.cx .cx-btn.primary:hover:not(:disabled){background:var(--cx-orb);filter:brightness(.92)}
body.cx .cx-btn:disabled{opacity:.45;cursor:default}
body.cx .cx-btn .cx-ico{width:15px;height:15px}
@keyframes cx-spin{to{transform:rotate(360deg)}}
.cx-spinner{width:13px;height:13px;border-radius:50%;border:2px solid var(--cx-line-2);border-top-color:var(--cx-ink-2);animation:cx-spin .9s linear infinite;flex-shrink:0;box-sizing:border-box}

/* ---------- grid: window bar / rail / sidebar / main / Files panel ---------- */
body.cx #workspace{display:grid;grid-template-columns:44px auto minmax(0,1fr) auto;grid-template-rows:40px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden;background:var(--cx-bg)}
body.cx #workspace[hidden]{display:none!important}
body.cx .cx-appbar{grid-column:1/-1;grid-row:1}
body.cx .cx-rail{grid-column:1;grid-row:2}
body.cx #workspace>aside{grid-column:2;grid-row:2}
body.cx #workspace>main{grid-column:3;grid-row:2}
body.cx .cx-panel{grid-column:4;grid-row:2}

/* ---------- window bar ---------- */
body.cx .cx-appbar{height:40px;min-height:0;max-height:40px;margin:0;justify-content:flex-start;box-sizing:border-box;display:flex;align-items:center;gap:2px;padding:0 8px;background:var(--cx-bar);border-bottom:1px solid var(--cx-line);position:relative;z-index:30;min-width:0}
.cx-bar-nav{display:flex;align-items:center;margin-right:6px}
body.cx .cx-bar-nav .cx-icon-btn{width:30px;height:30px;min-width:30px}
.cx-bar-menus{display:flex;align-items:center;gap:1px;min-width:0}
body.cx .cx-bar-menu{height:28px;padding:0 10px;margin:0;border:0;border-radius:6px;background:transparent;color:var(--cx-ink-2);font-size:13.5px;font-weight:400;cursor:pointer;width:auto}
body.cx .cx-bar-menu:hover,body.cx .cx-bar-menu[aria-expanded="true"]{background:var(--cx-hover);color:var(--cx-ink)}
.cx-bar-fill{flex:1}
.cx-bar-brand{display:flex;align-items:center;gap:7px;color:var(--cx-ink-3);font-size:12.5px;padding:0 6px;white-space:nowrap}
.cx-bar-brand img{width:18px;height:18px;border-radius:4px}

/* ---------- icon rail ---------- */
body.cx .cx-rail{width:44px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0 10px;background:var(--cx-rail);border-right:1px solid var(--cx-line);min-height:0}
.cx-rail-group{display:flex;flex-direction:column;align-items:center;gap:4px}
.cx-rail-fill{flex:1}
body.cx .cx-rail-btn{width:34px;height:34px;min-width:34px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--cx-ink-2);cursor:pointer;padding:0;margin:0}
body.cx .cx-rail-btn .cx-ico{width:20px;height:20px}
body.cx .cx-rail-btn:hover:not(:disabled),body.cx .cx-rail-btn[aria-expanded="true"]{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .cx-rail-btn.active{background:var(--cx-active);color:var(--cx-ink)}
body.cx .cx-avatar{position:relative;width:30px;height:30px;min-width:30px;border-radius:50%;border:0;padding:0;margin:0;background:var(--cx-avatar);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:600;letter-spacing:.02em;cursor:pointer}
body.cx .cx-avatar:hover,body.cx .cx-avatar[aria-expanded="true"]{background:var(--cx-avatar);box-shadow:0 0 0 3px var(--cx-hover)}
.cx-avatar .cx-dot{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;border:2px solid var(--cx-rail);background:#8b8b92;box-sizing:border-box}
.cx-avatar .cx-dot.online{background:var(--cx-green)}
.cx-avatar .cx-dot.pending{background:var(--cx-orange)}
.cx-avatar.big{width:34px;height:34px;min-width:34px;font-size:12px;cursor:default}

/* ---------- chats sidebar ---------- */
body.cx #workspace>aside{position:relative;inset:auto;width:300px;min-width:300px;height:auto;min-height:0;padding:0 0 10px;margin:0;gap:0;background:var(--cx-side);border-right:1px solid var(--cx-line);color:var(--cx-ink);overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;font-size:14px;scrollbar-width:thin;scrollbar-color:var(--cx-line-2) transparent}
body.cx.sidebar-closed #workspace>aside{display:none}
body.cx #workspace>aside>.brand,body.cx #home-chat,body.cx #workspace-files,body.cx aside .identity,body.cx aside .org-switch,body.cx aside .account-nav,body.cx #sidebar-toggle,body.cx #section-label,body.cx #page-subtitle,body.cx #allowance{display:none!important}
body.cx .cx-side-head{height:56px;min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 14px;position:sticky;top:0;background:var(--cx-side);z-index:2}
body.cx .cx-side-title{display:inline-flex;align-items:center;gap:6px;height:36px;width:auto;padding:0 8px 0 4px;margin:0 0 0 -4px;border:0;border-radius:8px;background:transparent;color:var(--cx-ink);font-size:20px;font-weight:600;letter-spacing:-.01em;cursor:pointer;overflow:visible}
body.cx .cx-side-title:hover,body.cx .cx-side-title[aria-expanded="true"]{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .cx-side-title .cx-ico{width:16px;height:16px;color:var(--cx-ink-2)}
.cx-side-actions{display:flex;align-items:center;gap:2px}
body.cx .cx-bell.dot::after{content:'';position:absolute;top:6px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--cx-blue);box-shadow:0 0 0 2px var(--cx-side)}
body.cx aside #new-chat{display:flex;align-items:center;gap:11px;width:calc(100% - 16px);margin:0 8px 6px;height:38px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--cx-ink);font-size:14.5px;font-weight:500;flex:none}
body.cx aside #new-chat:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx aside #new-chat .cx-ico{width:19px;height:19px;color:var(--cx-ink-2)}
body.cx .cx-search{margin:0 10px 8px;height:34px;border-radius:9px;background:var(--cx-hover);border:1px solid transparent;display:flex;align-items:center;gap:8px;padding:0 4px 0 10px;flex:none;color:var(--cx-ink-3)}
body.cx .cx-search:focus-within{border-color:var(--cx-line-2)}
body.cx .cx-search .cx-ico{width:16px;height:16px}
body.cx .cx-search #chat-search{flex:1;min-width:0;width:auto;height:30px;padding:0;margin:0;background:transparent;border:0;outline:0;color:var(--cx-ink);font-size:13.5px;box-shadow:none}
body.cx .cx-search #chat-search::-webkit-search-cancel-button{display:none}
body.cx .cx-search .cx-icon-btn{width:26px;height:26px;min-width:26px}
body.cx .cx-search .cx-icon-btn .cx-ico{width:15px;height:15px}
body.cx aside .sidebar-section{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 6px 18px;margin:0;font-size:13px;font-weight:500;color:var(--cx-ink-3);text-transform:none;letter-spacing:0;flex:none}
body.cx aside .sidebar-section button{width:24px;height:24px;min-width:24px;padding:0;margin:0;border-radius:6px;display:grid;place-items:center;color:var(--cx-ink-3);opacity:0;transition:opacity .12s;font-size:0}
body.cx aside .sidebar-section button .cx-ico{width:15px;height:15px}
body.cx aside .sidebar-section:hover button,body.cx aside .sidebar-section button:focus-visible{opacity:1}
body.cx aside .sidebar-section button:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx #project-list,body.cx #chats{display:flex;flex-direction:column;gap:1px;max-height:none;min-height:0;overflow:visible;margin:0;flex:none}
body.cx #project-list .cx-row,body.cx #chats .cx-row{display:flex;align-items:center;gap:10px;width:calc(100% - 16px);min-height:36px;margin:0 8px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--cx-ink);font-size:14.5px;font-weight:400;line-height:1.3;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;flex:none}
body.cx #project-list .cx-row:hover,body.cx #chats .cx-row:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx #project-list .cx-row .cx-ico{width:18px;height:18px;color:var(--cx-ink-2)}
body.cx #project-list .cx-row.selected{background:var(--cx-active);font-weight:500}
body.cx .cx-row-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.cx #chats .cx-chat{position:relative;display:flex;align-items:center;margin:0 8px;border-radius:9px;flex:none}
body.cx #chats .cx-chat:hover{background:var(--cx-hover)}
body.cx #chats .cx-chat.current{background:var(--cx-active)}
body.cx #chats .cx-chat .cx-row{margin:0;width:100%;padding-right:36px;background:transparent}
body.cx #chats .cx-chat.current .cx-row{font-weight:500}
body.cx #chats .cx-chat .cx-row .cx-pin{width:14px;height:14px;color:var(--cx-ink-3)}
body.cx #chats .cx-chat .cx-row .cx-spinner{margin-left:auto}
body.cx #chats .cx-row-menu{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;min-width:28px;opacity:0}
body.cx #chats .cx-chat:hover .cx-row-menu,body.cx #chats .cx-row-menu:focus-visible,body.cx #chats .cx-row-menu[aria-expanded="true"]{opacity:1}
body.cx #chats .cx-chat:hover .cx-row .cx-spinner{visibility:hidden}
body.cx aside .sidebar-empty{display:block;padding:6px 18px;color:var(--cx-ink-3);font-size:13px}
body.cx #admin-nav{margin:0 0 6px;padding:0;gap:1px;border:0}
body.cx #admin-nav button{display:flex;align-items:center;gap:11px;width:calc(100% - 16px);height:34px;margin:0 8px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--cx-ink-2);font-size:13.5px;font-weight:400;box-shadow:none}
body.cx #admin-nav button span{width:18px;text-align:center;font-size:15px;color:var(--cx-ink-3)}
body.cx #admin-nav button:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx #admin-nav button.selected{background:var(--cx-active);color:var(--cx-ink);box-shadow:none}

/* ---------- main column and title bar ---------- */
body.cx #workspace>main{margin:0;width:auto;height:auto;min-width:0;min-height:0;padding:0;background:var(--cx-bg);display:flex;flex-direction:column;overflow:hidden}
body.cx main>header{height:52px;min-height:52px;margin:0;padding:0 10px 0 22px;border:0;display:flex;align-items:center;gap:8px;background:var(--cx-bg);flex-wrap:nowrap}
body.cx main>header>div:first-child{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
body.cx .cx-crumb{color:var(--cx-ink-3);font-size:14px;white-space:nowrap;border:0;background:none;padding:0;margin:0;cursor:pointer;width:auto;font-weight:400}
body.cx .cx-crumb:hover{color:var(--cx-ink);background:none}
body.cx .cx-crumb-sep{color:var(--cx-ink-3);font-size:14px}
body.cx main>header h1#title{margin:0;font-size:15.5px;font-weight:600;color:var(--cx-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none;letter-spacing:0;line-height:1.4}
body.cx .header-tools{display:flex;align-items:center;gap:2px;flex-shrink:0;flex-wrap:nowrap}
body.cx #storage-badge{background:none;border:0;padding:0 8px;color:var(--cx-ink-3);font-size:12px;font-weight:400}
body.cx #refresh-admin{height:30px;padding:0 12px;margin:0 4px;border:1px solid var(--cx-line-2);border-radius:999px;background:transparent;color:var(--cx-ink);font-size:13px;font-weight:500}
body.cx #refresh-admin:hover{background:var(--cx-hover)}
body.cx #chat-options{font-size:0}
.cx-title-sep{width:1px;height:18px;background:var(--cx-line-2);margin:0 6px}
.cx-run-badge{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;margin-right:4px;border-radius:999px;background:rgba(240,163,58,.14);color:var(--cx-orange);font-size:12.5px;white-space:nowrap}
.cx-run-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}

/* ---------- transcript ---------- */
body.cx #conversation{flex:1;min-height:0;max-width:none;width:100%;margin:0;display:flex;flex-direction:column;position:relative}
body.cx #messages{flex:1;height:auto;min-height:0;overflow:auto;width:100%;padding:12px max(24px,calc((100% - 820px)/2)) 28px;scrollbar-width:thin;scrollbar-color:var(--cx-line-2) transparent;box-sizing:border-box}
body.cx .chat-message{max-width:820px;margin:0 auto 26px;font-size:14.5px;line-height:1.62;color:var(--cx-ink);padding:0}
body.cx .chat-message>small{display:none}
body.cx .chat-message.user{width:fit-content;max-width:min(680px,85%);margin:0 0 26px auto;padding:10px 16px;border-radius:20px;background:var(--cx-bubble);color:var(--cx-ink)}
body.cx .message-text,body.cx .message-text p{font-size:14.5px;line-height:1.62;color:var(--cx-ink)}
body.cx .message-text p{margin:0 0 10px}
body.cx .message-text a{color:var(--cx-blue)}
body.cx .message-text h2,body.cx .message-text h3,body.cx .message-text h4,body.cx .message-text h5{color:var(--cx-ink);font-size:16px;margin:18px 0 8px}
body.cx .message-text pre{background:var(--cx-card);border:1px solid var(--cx-line);border-radius:10px;padding:12px 14px;color:var(--cx-ink);font-size:13px;line-height:1.55;overflow:auto}
body.cx .message-text :not(pre)>code{background:var(--cx-hover);border-radius:5px;padding:1px 5px;font-size:13px}
body.cx .message-text th,body.cx .message-text td{color:var(--cx-ink);border-bottom:1px solid var(--cx-line);padding:9px 14px;min-width:90px}
body.cx .message-text th{background:transparent;font-weight:600}
body.cx .copy-code{display:inline-flex;align-items:center;gap:6px;margin:8px 0 0 auto;height:26px;padding:0 10px;border:1px solid var(--cx-line-2);border-radius:999px;background:transparent;color:var(--cx-ink-2);font-size:12px}
body.cx .copy-code:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .message-actions{display:flex;gap:2px;margin:6px 0 0 -6px;opacity:.85}
body.cx .chat-message.user .message-actions{justify-content:flex-end;margin:6px -10px -4px 0}
body.cx .message-actions button{width:30px;height:30px;min-width:30px;padding:0;margin:0;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--cx-ink-3);font-size:0}
body.cx .message-actions button .cx-ico{width:16px;height:16px}
body.cx .message-actions button:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .activity-list{margin:0 0 10px;padding:0;border:0;background:transparent;color:var(--cx-ink-3);font-size:14px;border-radius:0}
body.cx .activity-list>summary{display:inline-flex;align-items:center;gap:8px;padding:4px 6px;margin-left:-6px;border-radius:8px;cursor:pointer;list-style:none;color:var(--cx-ink-3)}
body.cx .activity-list>summary::-webkit-details-marker{display:none}
body.cx .activity-list>summary:hover,body.cx .activity-list[open]>summary{color:var(--cx-ink);background:var(--cx-hover)}
body.cx .activity-list>summary .cx-ico{width:15px;height:15px;transition:transform .15s}
body.cx .activity-list[open]>summary .cx-ico.chev{transform:rotate(90deg)}
body.cx .activity-list .activity-row{display:grid;grid-template-columns:20px 1fr;gap:6px;padding:7px 0;margin:0 0 0 2px;border:0;border-left:1px solid var(--cx-line);padding-left:12px}
body.cx .activity-list .activity-row strong{font-weight:400;color:var(--cx-ink-2);font-size:13.5px}
body.cx .activity-list .activity-state{color:var(--cx-ink-3)}
body.cx .activity-list .activity-row pre{grid-column:2;margin:2px 0;padding:8px 10px;border-radius:8px;background:var(--cx-card);border:1px solid var(--cx-line);color:var(--cx-ink-2);font-size:12px;max-height:200px;overflow:auto;white-space:pre-wrap}
body.cx .message-attachments{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
body.cx .attachment-chip{display:inline-flex;align-items:center;gap:7px;height:32px;max-width:100%;padding:0 10px;margin:0;border:1px solid var(--cx-line-2);border-radius:10px;background:var(--cx-composer);color:var(--cx-ink);font-size:13px;font-weight:400}
body.cx button.attachment-chip:hover{background:var(--cx-hover)}
body.cx .attachment-chip .cx-ico{width:15px;height:15px;color:var(--cx-ink-2)}
body.cx .attachment-chip small{color:var(--cx-ink-3)}
body.cx .attachment-chip .file-name{color:var(--cx-ink);background:none;border:0;padding:0;margin:0;font-weight:400;display:inline-flex;align-items:center;gap:7px}
body.cx .attachment-chip .file-remove{color:var(--cx-ink-3);background:none;border:0;padding:0 2px;margin:0;font-size:17px;line-height:1}
body.cx .attachment-chip .file-remove:hover{color:var(--cx-ink)}
body.cx .chat-outputs{max-width:820px;margin:0 auto 20px}
body.cx .output-file{margin:10px 0;padding:12px;border:1px solid var(--cx-line);border-radius:14px;background:var(--cx-card)}
body.cx .output-file a{color:var(--cx-ink);font-size:13.5px}
body.cx .chat-empty{padding:14vh 8px 30px;text-align:center}
body.cx .chat-empty .eyebrow{display:none}
body.cx .cx-empty-mark{width:44px;height:44px;margin:0 auto 18px;border-radius:12px;border:1px solid var(--cx-line-2);display:grid;place-items:center;color:var(--cx-ink)}
body.cx .chat-empty h2{font-size:26px;font-weight:600;letter-spacing:-.02em;color:var(--cx-ink);margin:0 0 8px}
body.cx .chat-empty p{color:var(--cx-ink-3);font-size:14px;margin:0}
body.cx .chat-starters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:26px}
body.cx .chat-starters button{height:36px;max-width:none;padding:0 14px;margin:0;border:1px solid var(--cx-line-2);border-radius:999px;background:transparent;color:var(--cx-ink);font-size:13.5px;font-weight:500;display:inline-flex;align-items:center;gap:8px}
body.cx .chat-starters button:hover{background:var(--cx-hover)}
body.cx .chat-starters button .cx-ico{width:16px;height:16px;color:var(--cx-ink-2)}
body.cx .task{background:var(--cx-card);border-color:var(--cx-line);color:var(--cx-ink)}
body.cx .empty{border-color:var(--cx-line-2)}

/* ---------- composer ---------- */
body.cx #compose{flex:none;width:calc(100% - 48px);max-width:820px;margin:0 auto;padding:0;background:var(--cx-composer);border:1px solid var(--cx-composer-line);border-radius:24px;box-shadow:none;box-sizing:border-box}
body.cx #compose:focus-within{border-color:var(--cx-line-2)}
body.cx #compose.file-drag{outline:2px dashed var(--cx-blue);outline-offset:2px;background:var(--cx-composer)}
body.cx #compose>#chat-files{margin:0;padding:12px 14px 0;gap:6px}
body.cx #compose>#chat-files:empty{display:none}
body.cx #compose textarea{display:block;width:100%;min-height:52px;height:52px;max-height:220px;margin:0;padding:16px 20px 6px;border:0;background:transparent;color:var(--cx-ink);font-size:15px;line-height:1.5;resize:none;box-shadow:none;outline:0;box-sizing:border-box}
body.cx #compose textarea::placeholder{color:var(--cx-ink-3)}
body.cx #attachment-status{margin:0;padding:0 20px 2px;font-size:12px;color:var(--cx-ink-3)}
body.cx #compose .composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0;padding:4px 10px 10px;flex-wrap:nowrap}
body.cx .composer-left,body.cx .compose-actions{display:flex;align-items:center;gap:4px;min-width:0;margin:0}
body.cx #attach-chat{width:34px;height:34px;min-width:34px;padding:0;margin:0;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--cx-ink-2);font-size:0}
body.cx #attach-chat .cx-ico{width:20px;height:20px}
body.cx #attach-chat:hover:not(:disabled),body.cx #attach-chat[aria-expanded="true"]{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .cx-access{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;margin:0;border:0;border-radius:999px;background:transparent;color:var(--cx-ink-2);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;width:auto}
body.cx .cx-access .cx-ico{width:17px;height:17px}
body.cx .cx-access:hover:not(:disabled),body.cx .cx-access[aria-expanded="true"]{background:var(--cx-hover)}
body.cx .cx-access.full{color:var(--cx-orange)}
body.cx .cx-access:disabled{opacity:.6;cursor:default}
body.cx .cx-model{display:inline-flex;align-items:center;gap:6px;height:32px;max-width:260px;padding:0 10px;margin:0;border:0;border-radius:999px;background:transparent;color:var(--cx-ink);font-size:14px;font-weight:400;cursor:pointer;white-space:nowrap;width:auto}
body.cx .cx-model:hover:not(:disabled),body.cx .cx-model[aria-expanded="true"]{background:var(--cx-hover)}
body.cx .cx-model:disabled{opacity:.6;cursor:default}
.cx-model-name{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.cx-model-effort{color:var(--cx-ink-3)}
body.cx .cx-model .cx-ico{width:15px;height:15px;color:var(--cx-ink-3)}
body.cx #voice-input{width:34px;height:34px;min-width:34px;padding:0;margin:0;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--cx-ink-2);font-size:0}
body.cx #voice-input:hover:not(:disabled){background:var(--cx-hover);color:var(--cx-ink)}
body.cx #voice-input.listening{color:var(--cx-red);background:var(--cx-hover)}
body.cx #send-chat,body.cx #stop-chat{width:36px;height:36px;min-width:36px;padding:0;margin:0 0 0 2px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--cx-orb);color:var(--cx-orb-ink);font-size:0}
body.cx #send-chat:hover:not(:disabled),body.cx #stop-chat:hover{background:var(--cx-orb);filter:brightness(.9)}
body.cx #send-chat:disabled{opacity:.35}
body.cx #send-chat .cx-ico,body.cx #stop-chat .cx-ico{width:18px;height:18px}
body.cx #stop-chat .cx-ico{fill:currentColor}
body.cx #cad-note{display:block;max-width:820px;margin:6px auto 0;padding:0 24px;font-size:11.5px;color:var(--cx-ink-3);text-align:center}
body.cx .chat-status{margin:0;padding:2px 16px 10px;min-height:22px;font-size:11.5px;color:var(--cx-ink-3);text-align:center}

/* ---------- popover menus ---------- */
.cx-menu{position:fixed;z-index:9000;min-width:200px;max-width:calc(100vw - 16px);overflow:auto;padding:6px;background:var(--cx-menu);color:var(--cx-ink);border:1px solid var(--cx-menu-line);border-radius:12px;box-shadow:var(--cx-shadow);font-family:var(--cx-font);font-size:13.5px;box-sizing:border-box}
body.cx .cx-mi{width:100%;display:flex;align-items:center;gap:10px;min-height:34px;padding:5px 10px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--cx-ink);font-size:13.5px;font-weight:400;text-align:left;cursor:pointer;line-height:1.3;white-space:normal}
body.cx .cx-mi:hover:not(:disabled),body.cx .cx-mi:focus-visible{background:var(--cx-hover);outline:none;color:var(--cx-ink)}
body.cx .cx-mi:disabled{opacity:.42;cursor:default}
body.cx .cx-mi.danger{color:var(--cx-red)}
.cx-mi-ico{width:18px;display:grid;place-items:center;color:var(--cx-ink-2);flex-shrink:0}
.cx-mi-ico .cx-ico{width:17px;height:17px}
.cx-mi-text{flex:1;min-width:0;display:flex;flex-direction:column}
.cx-mi-text small{font-size:12px;color:var(--cx-ink-3);line-height:1.35;white-space:normal}
.cx-mi-kbd{font:inherit;font-size:11.5px;color:var(--cx-ink-3);background:none;border:0;white-space:nowrap}
.cx-mi-check{display:grid;color:var(--cx-ink)}
.cx-mi-check .cx-ico{width:16px;height:16px}
.cx-menu-sep{height:1px;background:var(--cx-menu-line);margin:5px 4px}
.cx-menu-label{padding:6px 10px 4px;font-size:12px;font-weight:500;color:var(--cx-ink-3)}
.cx-menu-note{padding:6px 10px;font-size:12.5px;color:var(--cx-ink-2);line-height:1.4;overflow-wrap:anywhere}
.cx-menu-note small{display:block;color:var(--cx-ink-3);font-size:11.5px}
.cx-menu-note.muted{color:var(--cx-ink-3)}
.cx-account-head{display:flex;align-items:center;gap:10px;padding:8px 10px}
.cx-account-head strong{display:block;font-size:14px;color:var(--cx-ink)}
.cx-account-head small{display:block;font-size:12px;color:var(--cx-ink-3)}

/* ---------- dialogs ---------- */
.cx-modal-scrim{position:fixed;inset:0;z-index:8000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.cx-dialog,.cx-camera{background:var(--cx-menu);color:var(--cx-ink);border:1px solid var(--cx-menu-line);border-radius:16px;box-shadow:var(--cx-shadow);font-family:var(--cx-font);outline:none;box-sizing:border-box;max-width:100%;max-height:calc(100dvh - 32px);overflow:auto}
.cx-dialog{width:460px}
.cx-dialog>header{display:flex;align-items:center;gap:10px;height:auto;min-height:0;margin:0;padding:14px 12px 10px 18px;border-bottom:1px solid var(--cx-menu-line);background:transparent}
.cx-dialog>header strong{flex:1;font-size:15px}
.cx-dialog-body{padding:14px 18px 18px;font-size:13.5px;line-height:1.55;color:var(--cx-ink)}
.cx-dialog-body p{margin:0 0 10px;color:var(--cx-ink-2)}
.cx-dialog-body input{width:100%;height:36px;padding:0 10px;margin:4px 0 0;border:1px solid var(--cx-line-2);border-radius:8px;background:var(--cx-bg);color:var(--cx-ink);font-size:14px;box-sizing:border-box}
.cx-dialog-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.cx-keys{margin:0;display:flex;flex-direction:column;gap:7px}
.cx-keys>div{display:flex;justify-content:space-between;gap:12px;align-items:center}
.cx-keys dt{color:var(--cx-ink-2)}
.cx-keys dd{margin:0;text-align:right;white-space:nowrap}
.cx-keys kbd{font:inherit;font-size:12px;padding:2px 7px;border-radius:6px;border:1px solid var(--cx-line-2);background:var(--cx-hover)}
body.cx dialog{background:var(--cx-menu);color:var(--cx-ink);border:1px solid var(--cx-menu-line);border-radius:16px;box-shadow:var(--cx-shadow)}
body.cx dialog::backdrop{background:rgba(0,0,0,.55);backdrop-filter:none}
body.cx dialog h2,body.cx dialog h3{color:var(--cx-ink)}
body.cx dialog p,body.cx dialog label{color:var(--cx-ink-2)}
body.cx dialog input,body.cx dialog select,body.cx dialog textarea{background:var(--cx-bg);color:var(--cx-ink);border-color:var(--cx-line-2)}
body.cx dialog button{border-radius:999px}
body.cx dialog .secondary,body.cx #admin .secondary{background:transparent;color:var(--cx-ink);border:1px solid var(--cx-line-2)}
body.cx .document-preview,body.cx .record-json{background:var(--cx-bg);border-color:var(--cx-line);color:var(--cx-ink)}
body.cx .download-file{color:var(--cx-blue)}
body.cx .cx-attach-video{display:block;width:100%;max-height:60vh;border-radius:10px;background:#000;margin:8px 0}
body.cx #notice{background:var(--cx-menu);color:var(--cx-ink);border:1px solid var(--cx-menu-line);border-radius:12px;box-shadow:var(--cx-shadow);font-size:13.5px;padding:10px 16px}

/* ---------- Files / Activity panel ---------- */
body.cx .cx-panel{width:360px;min-width:300px;min-height:0;display:flex;flex-direction:column;background:var(--cx-bg);border-left:1px solid var(--cx-line);overflow:hidden}
body.cx .cx-panel[hidden]{display:none!important}
.cx-panel-head{display:flex;align-items:center;gap:4px;height:46px;min-height:46px;padding:0 6px 0 10px;border-bottom:1px solid var(--cx-line)}
body.cx .cx-tab{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 10px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--cx-ink-3);font-size:13.5px;font-weight:500;cursor:pointer;width:auto}
body.cx .cx-tab .cx-ico{width:15px;height:15px}
body.cx .cx-tab:hover{background:var(--cx-hover);color:var(--cx-ink)}
body.cx .cx-tab[aria-selected="true"]{color:var(--cx-ink);background:var(--cx-active)}
.cx-tab-count{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--cx-hover);font-size:11px;display:inline-grid;place-items:center;color:var(--cx-ink-2);box-sizing:border-box}
.cx-panel-fill{flex:1}
.cx-panel-body{flex:1;min-height:0;overflow:auto;padding:12px 12px 20px;scrollbar-width:thin}
.cx-panel-section{font-size:12px;font-weight:500;color:var(--cx-ink-3);padding:8px 6px 6px}
body.cx .cx-file{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 8px;margin:0;border:0;border-radius:10px;background:transparent;color:var(--cx-ink);font-size:13.5px;font-weight:400;text-align:left;cursor:pointer;text-decoration:none;box-sizing:border-box}
body.cx .cx-file:hover{background:var(--cx-hover)}
.cx-file-ico{width:32px;height:32px;border-radius:8px;background:var(--cx-hover);display:grid;place-items:center;color:var(--cx-ink-2);flex-shrink:0;overflow:hidden}
.cx-file-ico img{width:100%;height:100%;object-fit:cover}
.cx-file-ico .cx-ico{width:17px;height:17px}
.cx-file-text{flex:1;min-width:0;display:flex;flex-direction:column}
.cx-file-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-file-text small{color:var(--cx-ink-3);font-size:12px}
.cx-panel-empty{padding:40px 16px;text-align:center;color:var(--cx-ink-3);font-size:13.5px;line-height:1.5}
.cx-panel-empty .cx-ico{width:28px;height:28px;margin:0 auto 10px;color:var(--cx-ink-3)}
.cx-step{display:grid;grid-template-columns:22px 1fr;gap:6px;padding:8px 6px;border-bottom:1px solid var(--cx-line);font-size:13.5px}
.cx-step:last-child{border-bottom:0}
.cx-step-state{display:grid;place-items:center;width:18px;height:18px;margin-top:1px;color:var(--cx-ink-3)}
.cx-step-state .cx-ico{width:15px;height:15px}
.cx-step-state.done{color:var(--cx-green)}
.cx-step-state.failed{color:var(--cx-red)}
.cx-step strong{font-weight:400;color:var(--cx-ink)}
.cx-step pre{grid-column:2;margin:4px 0 0;padding:8px 10px;border-radius:8px;background:var(--cx-card);border:1px solid var(--cx-line);color:var(--cx-ink-2);font-size:12px;white-space:pre-wrap;max-height:220px;overflow:auto}

/* ---------- camera ---------- */
.cx-camera{width:min(760px,96vw);display:flex;flex-direction:column;overflow:hidden}
.cx-camera-head{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-bottom:1px solid var(--cx-menu-line);flex-wrap:wrap}
.cx-seg{display:inline-flex;padding:3px;border-radius:10px;background:var(--cx-hover);gap:2px}
body.cx .cx-seg button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--cx-ink-2);font-size:13.5px;font-weight:400;cursor:pointer;width:auto}
body.cx .cx-seg button[aria-selected="true"]{background:var(--cx-menu);color:var(--cx-ink);box-shadow:0 1px 3px rgba(0,0,0,.25)}
body.cx .cx-seg button:disabled{cursor:default}
.cx-seg .cx-ico{width:16px;height:16px}
.cx-camera-tools{margin-left:auto;display:flex;align-items:center;gap:8px}
body.cx .cx-camera-tools select{width:auto;max-width:220px;height:30px;border-radius:8px;border:1px solid var(--cx-line-2);background:transparent;color:var(--cx-ink);font-size:13px;padding:0 6px}
body.cx .cx-check{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:400;color:var(--cx-ink-2)}
body.cx .cx-check input{width:auto;margin:0}
.cx-camera-stage{position:relative;background:#000;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden}
.cx-camera-stage video,.cx-camera-stage img{width:100%;height:100%;object-fit:contain;display:block;background:#000}
.cx-camera-stage video.mirror{transform:scaleX(-1)}
.cx-camera-note{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:80%;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:rgba(20,20,22,.85);color:#eee;font-size:13.5px;line-height:1.45}
.cx-camera-note.error{color:#fca5a5;flex-wrap:wrap}
body.cx .cx-camera-note button{border:1px solid #555;background:transparent;color:#eee;border-radius:999px;padding:4px 12px;margin:0;font-size:13px;width:auto}
.cx-rec-badge{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:13px;font-variant-numeric:tabular-nums}
.cx-rec-badge small{color:#ccc;font-size:12px}
.cx-rec-dot{width:9px;height:9px;border-radius:50%;background:#ef4444;animation:cx-blink 1s infinite}
@keyframes cx-blink{50%{opacity:.25}}
.cx-camera-foot{display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:72px;box-sizing:border-box}
.cx-camera-meta{flex:1;min-width:0;color:var(--cx-ink-3);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.cx .cx-shutter{width:54px;height:54px;min-width:54px;padding:0;margin:0;border-radius:50%;border:4px solid var(--cx-ink);background:var(--cx-ink);box-shadow:inset 0 0 0 3px var(--cx-menu);cursor:pointer;flex-shrink:0}
body.cx .cx-shutter:hover{background:var(--cx-ink);box-shadow:inset 0 0 0 3px var(--cx-menu)}
body.cx .cx-shutter:disabled{opacity:.35;cursor:default}
body.cx .cx-shutter.video,body.cx .cx-shutter.video:hover{background:#ef4444}
body.cx .cx-shutter.video.on{border-radius:14px;width:48px;height:48px;min-width:48px;margin:3px}

/* ---------- admin, workspace files and sign-in on the shared tokens ---------- */
body.cx #admin{background:var(--cx-bg);color:var(--cx-ink);padding:8px 28px 40px}
body.cx #admin .panel,body.cx #admin .group-card,body.cx #admin .metric,body.cx #admin .empty-state,body.cx #admin .upload-area,body.cx #admin .table-wrap{background:var(--cx-card);border-color:var(--cx-line);color:var(--cx-ink);box-shadow:none}
body.cx #admin h2,body.cx #admin h3,body.cx #admin strong,body.cx #admin .person strong,body.cx #admin .metric strong,body.cx .files-summary strong{color:var(--cx-ink)}
body.cx #admin td,body.cx #admin th{background:transparent;border-color:var(--cx-line);color:var(--cx-ink-2)}
body.cx #admin p,body.cx #admin label,body.cx #admin small,body.cx #admin .metric span{color:var(--cx-ink-3)}
body.cx #admin input,body.cx #admin select,body.cx #admin textarea{background:var(--cx-bg);color:var(--cx-ink);border-color:var(--cx-line-2)}
body.cx #admin button:not(.secondary):not(.text-button){background:var(--cx-orb);color:var(--cx-orb-ink);border-radius:999px}
body.cx #admin .text-button{color:var(--cx-blue);background:none}
body.cx #admin .upload-symbol,body.cx #admin .group-icon,body.cx #admin .avatar{background:var(--cx-hover);color:var(--cx-ink-2)}
body.cx #admin tbody tr:hover{background:var(--cx-hover)}
body.cx .gate{background:var(--cx-bg);color:var(--cx-ink);min-height:100dvh}
body.cx .gate .brand,body.cx #auth .brand{color:var(--cx-ink)}
body.cx .gate .brand small{color:var(--cx-ink-3)}
body.cx .gate-card{background:var(--cx-menu);border:1px solid var(--cx-menu-line);border-radius:18px;box-shadow:var(--cx-shadow);color:var(--cx-ink)}
body.cx .gate-card h1{color:var(--cx-ink);font-weight:600}
body.cx .gate-card p,body.cx .gate-card label,body.cx .gate-card .eyebrow{color:var(--cx-ink-3)}
body.cx .gate-card input{background:var(--cx-bg);color:var(--cx-ink);border:1px solid var(--cx-line-2);border-radius:10px}
body.cx .gate-card button[type=submit]{background:var(--cx-orb);color:var(--cx-orb-ink);border-radius:999px}
body.cx .gate-card .text-button{color:var(--cx-blue);background:none}

/* ---------- narrow screens: rail becomes a row, sidebar becomes a drawer ---------- */
.cx-scrim{display:none}
@media(max-width:700px){
 body.cx #workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:40px 46px minmax(0,1fr)}
 body.cx .cx-appbar{grid-column:1;padding:0 4px}
 body.cx .cx-bar-menu{padding:0 7px;font-size:13px}
 .cx-bar-brand span{display:none}
 body.cx .cx-rail{grid-column:1;grid-row:2;width:auto;height:46px;flex-direction:row;padding:4px 8px;border-right:0;border-bottom:1px solid var(--cx-line)}
 .cx-rail-group{flex-direction:row}
 body.cx #workspace>main{grid-column:1;grid-row:3}
 body.cx #workspace>aside{position:fixed;top:86px;bottom:0;left:0;z-index:40;width:min(320px,calc(100% - 36px));min-width:0;box-shadow:10px 0 40px rgba(0,0,0,.45)}
 body.cx:not(.sidebar-closed) .cx-scrim{display:block;position:fixed;inset:86px 0 0 0;z-index:39;background:rgba(0,0,0,.45)}
 body.cx .cx-panel{position:fixed;top:86px;bottom:0;right:0;left:0;z-index:45;width:auto;min-width:0}
 body.cx main>header{height:44px;min-height:44px;padding:0 6px 0 12px}
 body.cx .cx-crumb,body.cx .cx-crumb-sep,body.cx #storage-badge{display:none}
 body.cx #messages{padding:8px 12px 16px}
 body.cx #compose{width:calc(100% - 16px)}
 body.cx #cad-note{padding:0 12px}
 .cx-model-effort{display:none}
 body.cx .cx-access .cx-access-label{display:none}
 body.cx .chat-message.user{max-width:92%}
 .cx-camera-tools select{max-width:130px}
}

/* ---------- edited files card, review, suggested next steps, unread dots (desktop parity) ---------- */
body.cx .cx-changes{margin:14px 0 6px;border:1px solid var(--cx-line);border-radius:14px;background:var(--cx-composer);overflow:hidden}
body.cx .cx-changes-head{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:0;min-height:0;border:0}
body.cx .cx-changes-ico{width:38px;height:38px;border-radius:9px;background:var(--cx-hover);display:grid;place-items:center;color:var(--cx-ink-2);flex-shrink:0}
body.cx .cx-changes-ico .cx-ico{width:20px;height:20px}
body.cx .cx-changes-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
body.cx .cx-changes-title strong{font-size:15px;font-weight:600;color:var(--cx-ink)}
body.cx .cx-change-stat{font-size:13.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
body.cx .cx-change-stat .add,body.cx .cx-diff .add{color:var(--cx-green)}
body.cx .cx-change-stat .del,body.cx .cx-diff .del{color:var(--cx-red)}
body.cx .cx-changes-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--cx-line)}
body.cx .cx-changes-list li+li{border-top:1px solid var(--cx-line)}
body.cx .cx-change-row{width:100%;display:flex;align-items:center;gap:12px;padding:11px 16px;margin:0;border:0;border-radius:0;background:transparent;color:var(--cx-ink);font-size:14px;font-weight:400;text-align:left;cursor:pointer}
body.cx .cx-change-row:hover{background:var(--cx-hover)}
body.cx .cx-change-path{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.cx .cx-change-path .dir{color:var(--cx-ink-3)}
body.cx .cx-change-path em{font-style:normal;font-size:11.5px;color:var(--cx-ink-3);margin-left:8px;padding:1px 6px;border:1px solid var(--cx-line-2);border-radius:6px}
body.cx .cx-changes-more{width:100%;display:flex;align-items:center;gap:6px;padding:11px 16px;margin:0;border:0;border-top:1px solid var(--cx-line);border-radius:0;background:transparent;color:var(--cx-ink);font-size:14px;font-weight:500;cursor:pointer}
body.cx .cx-changes-more:hover{background:var(--cx-hover)}
body.cx .cx-changes-more .cx-ico{width:16px;height:16px}
body.cx .cx-changes-more .cx-ico.flip{transform:rotate(180deg)}
body.cx .cx-changes-note{margin:0;padding:8px 16px 10px;font-size:12.5px;color:var(--cx-ink-3);border-top:1px solid var(--cx-line)}
.cx-dialog.cx-review{width:min(980px,96vw);height:min(86vh,900px);display:flex;flex-direction:column}
.cx-dialog.cx-review .cx-dialog-body{flex:1;min-height:0;overflow:auto;padding:12px 16px 18px}
.cx-review-body{display:flex;flex-direction:column;gap:14px}
.cx-review-file>header{display:flex;align-items:baseline;gap:10px;padding:0 0 6px;margin:0;min-height:0;border:0}
.cx-review-file>header small{flex:1;min-width:0;color:var(--cx-ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-diff{margin:0 0 8px;padding:10px 12px;border:1px solid var(--cx-line);border-radius:10px;background:var(--cx-bg);font:12.5px/1.5 Consolas,'Cascadia Mono',monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto}
.cx-diff span{display:block}
.cx-diff .add{background:rgba(34,197,94,.12)}
.cx-diff .del{background:rgba(239,68,68,.12)}
.cx-diff .hunk{color:var(--cx-blue)}
body.cx .cx-followups{max-width:820px;margin:-12px auto 24px}
body.cx .cx-followups small{display:block;font-size:12.5px;color:var(--cx-ink-3);margin-bottom:8px}
body.cx .cx-followups>div{display:flex;flex-wrap:wrap;gap:8px}
body.cx .cx-followups button{height:auto;min-height:32px;padding:6px 12px;margin:0;border:1px solid var(--cx-line-2);border-radius:999px;background:transparent;color:var(--cx-ink);font-size:13px;font-weight:400;text-align:left;cursor:pointer;width:auto;white-space:normal}
body.cx .cx-followups button:hover{background:var(--cx-hover)}
body.cx #chats .cx-unread{width:8px;height:8px;border-radius:50%;background:var(--cx-blue);margin-left:auto;flex-shrink:0}
