/* DragonZpyder UI 1.0 — central theme layer. Keep future styling changes here, not in legacy component CSS. */

/*
 * DragonZpyder Quiet Workspace v3 — source-of-truth visual prototype.
 * Chat-first; existing agent, voice, auth, approval and Mesh controllers
 * remain unchanged. Everything else reveals itself when requested.
 */
html[data-workspace-theme="light"]{
  color-scheme:light;--bg:#faf9f7;--panel:#fff;--panel2:#f3f1ee;
  --panel3:#ece9e5;--text:#24221f;--muted:#77716b;
  --line:#e8e5df;--line2:#e1dcd5;--accent:#e65a26;
  --accent2:#ed7847;--sidebar:245px;
}
html[data-workspace-theme="light"] body{
  background:#faf9f7;color:#24221f;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:-.013em;
}
html[data-workspace-theme="light"] .app-shell{
  --sidebar:245px;grid-template-columns:var(--sidebar) minmax(0,1fr);
  background:#faf9f7;
}
html[data-workspace-theme="light"] .sidebar{
  background:#f3f1ee;border-right:1px solid #e6e2dc;
  padding:27px 14px 18px;gap:0;box-shadow:none;
}
html[data-workspace-theme="light"] .sidebar-head{
  height:30px;margin-bottom:28px;padding:0 9px;
}
html[data-workspace-theme="light"] .brand{font-size:16px;gap:10px}
html[data-workspace-theme="light"] .brand span{
  font-size:16px;font-weight:750;letter-spacing:-.055em;color:#24221f
}
html[data-workspace-theme="light"] .brand img{
  width:28px;height:28px;box-shadow:none;border:0;background:transparent;border-radius:7px;
}
html[data-workspace-theme="light"] .workspace-switcher,
html[data-workspace-theme="light"] .sidebar-navigation{
  display:none;
}
html[data-workspace-theme="light"] .new-chat{
  background:#fff;color:#332c27;border:1px solid #e3ddd7;
  box-shadow:0 1px 1px #6d584c08;border-radius:11px;
  min-height:42px;height:42px;margin:0 0 7px;padding:0 13px;
  font-size:12px;font-weight:670;
}
html[data-workspace-theme="light"] .new-chat:hover{
  background:#fdf9f5!important;color:#b14e28;border-color:#e6c9b8
}
html[data-workspace-theme="light"] .new-chat span{color:#ad6b4d}
html[data-workspace-theme="light"] .sidebar-search-wrap{
  margin:0 0 30px;min-height:40px;padding:0 12px;
  border:1px solid transparent;background:transparent;border-radius:9px;
  color:#6e6862;
}
html[data-workspace-theme="light"] .sidebar-search-wrap:hover{
  background:#ece9e5;
}
html[data-workspace-theme="light"] .sidebar-search-wrap input{
  color:#4e4842;background:transparent;font-size:12px;
}
html[data-workspace-theme="light"] .sidebar-search-wrap input::placeholder{
  color:#766e67;
}
html[data-workspace-theme="light"] .sidebar-label{
  color:#a49b94;letter-spacing:.16em;font-size:10px;
  font-weight:760;padding:0 11px 9px;
}
html[data-workspace-theme="light"] .conversation-list{
  gap:2px;scrollbar-color:#ddd6cd transparent;
}
html[data-workspace-theme="light"] .conversation-button{
  border-radius:9px;color:#655e57;padding:10px 11px;
  font-size:12px;font-weight:500;
}
html[data-workspace-theme="light"] .conversation-button:hover{
  background:#ebe7e1!important;color:#38312d;
}
html[data-workspace-theme="light"] .conversation-button.active{
  color:#3b322d;background:#e6e0d8;border:0;
  padding-left:11px;font-weight:660;
}
html[data-workspace-theme="light"] .sidebar-spacer{min-height:10px}
html[data-workspace-theme="light"] .sidebar-footer-label{display:none}
html[data-workspace-theme="light"] .side-action,
html[data-workspace-theme="light"] .dz-workspace-trigger{
  min-height:39px;color:#605953;border-radius:9px;font-size:12px;
  font-weight:500;padding:0 11px;
}
html[data-workspace-theme="light"] .dz-workspace-trigger:hover,
html[data-workspace-theme="light"] .side-action:hover{
  background:#e9e4dd!important;color:#39312b;
}
html[data-workspace-theme="light"] .dz-workspace-trigger>span:first-child{
  color:#a66d54;
}
html[data-workspace-theme="light"] .badge-count{
  background:#fde5d7;color:#ba4b1f;
}
html[data-workspace-theme="light"] .workspace-head{
  background:#faf9f7;border-bottom:1px solid #eae5de;
  height:71px;padding:0 35px;box-shadow:none;
}
html[data-workspace-theme="light"] .workspace-breadcrumb{
  gap:0;color:#5c554f;font-size:13px;
}
html[data-workspace-theme="light"] .workspace-breadcrumb strong{
  color:#29251f;font-weight:650;
}
html[data-workspace-theme="light"] .runtime-status{
  gap:6px;margin-top:2px;font-size:10px;color:#918981;
}
html[data-workspace-theme="light"] .runtime-status .status-dot.online{
  background:#5dba88;box-shadow:none;
}
html[data-workspace-theme="light"] .head-actions{gap:9px}
html[data-workspace-theme="light"] .head-privacy{display:none}
html[data-workspace-theme="light"] .dz-command-trigger{
  height:32px;min-width:35px;border:1px solid #e6e0d9;
  background:#fff;border-radius:7px;font-size:14px;color:#827973;
}
html[data-workspace-theme="light"] .dz-command-trigger:hover{background:#f2ece6}
html[data-workspace-theme="light"] .theme-toggle{
  background:transparent;border:0;color:#777069;width:33px;height:33px;
}
html[data-workspace-theme="light"] .theme-toggle:hover{background:#efebe7}
html[data-workspace-theme="light"] .ghost-btn{
  background:transparent;border-color:transparent;color:#7b7169;
  border-radius:9px;height:33px;font-size:11px;padding:0 9px;
}
html[data-workspace-theme="light"] .ghost-btn:hover{background:#efebe7}
html[data-workspace-theme="light"] .profile-btn{
  background:#eee8e1;color:#5c5048;border:0;
  width:32px;height:32px;font-size:12px;
}
html[data-workspace-theme="light"] .chat-main{
  background:#faf9f7;scrollbar-color:#e9e1d8 transparent;
}
html[data-workspace-theme="light"] .empty-state{
  justify-content:center;min-height:100%;
  padding:35px 24px 245px;text-align:center;
}
html[data-workspace-theme="light"] .welcome-emblem{display:none}
html[data-workspace-theme="light"] .empty-state .eyebrow{
  font-size:10px;letter-spacing:.15em;color:#ae7961;
  font-weight:700;
}
html[data-workspace-theme="light"] .empty-state h1{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#24221f;letter-spacing:-.061em;
  font-size:clamp(32px,3.7vw,46px);
  line-height:1.12;font-weight:635;
  margin:15px 0 12px;
}
html[data-workspace-theme="light"] .empty-state>p{
  color:#817a74;max-width:480px;font-size:14px;line-height:1.7;
}
html[data-workspace-theme="light"] .welcome-section-title{
  display:none;
}
html[data-workspace-theme="light"] .prompt-grid{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  width:min(630px,100%);margin:28px auto 0;gap:8px;
}
html[data-workspace-theme="light"] .prompt-chip{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:37px;max-width:max-content;padding:9px 13px;
  background:#fff;border:1px solid #e6e0da;color:#756a63;
  border-radius:999px;box-shadow:none;
  font-size:11.5px;font-weight:500;line-height:1.2;
  transition:background .15s,border-color .15s;
}
html[data-workspace-theme="light"] .prompt-chip:hover{
  transform:none;background:#fff0e8;
  border-color:#e8c4b2;color:#a14b2c;
}
html[data-workspace-theme="light"] .messages{
  width:min(760px,calc(100% - 42px));padding:40px 0 198px;
}
html[data-workspace-theme="light"] .message{
  grid-template-columns:30px minmax(0,1fr);gap:12px;
  margin-bottom:27px;
}
html[data-workspace-theme="light"] .message-avatar{
  width:28px;height:28px;border-radius:50%;
  background:#ebe6df;color:#66564d;border:0;
}
html[data-workspace-theme="light"] .message.assistant .message-avatar{
  background:#fbede5;color:#d65c27;border:0;
}
html[data-workspace-theme="light"] .message-content{
  color:#34302c;line-height:1.72;font-size:14px;
}
html[data-workspace-theme="light"] .message.user .message-content{
  color:#38322e;
}
html[data-workspace-theme="light"] .message-role{color:#8a8079;font-size:11px}
html[data-workspace-theme="light"] .composer-wrap{
  background:linear-gradient(to top,#faf9f7 67%,rgba(250,249,247,.95) 81%,transparent);
  padding:15px 24px max(20px,env(safe-area-inset-bottom));
}
html[data-workspace-theme="light"] .unified-composer{
  width:min(760px,100%);max-width:760px;
  background:#fff!important;border:1px solid #e1dad2!important;
  border-radius:19px!important;box-shadow:0 5px 24px rgba(40,34,31,.065)!important;
  padding:17px 16px 12px!important;
}
html[data-workspace-theme="light"] .unified-composer:focus-within{
  border-color:#d89b7e!important;box-shadow:0 5px 24px rgba(40,34,31,.065)!important;
}
html[data-workspace-theme="light"] .unified-composer #message-input{
  min-height:52px;max-height:180px;color:#24221f;
  padding:1px 4px 9px;font-size:14px;line-height:1.5;
}
html[data-workspace-theme="light"] .unified-composer #message-input::placeholder{
  color:#a19a93;
}
html[data-workspace-theme="light"] .composer-toolbar{
  padding:0;border:0;gap:9px;
}
html[data-workspace-theme="light"] .dz-add-button{
  height:34px;width:34px;border:1px solid transparent;border-radius:9px;
  color:#56504b;background:#fff;font-size:25px;
}
html[data-workspace-theme="light"] .dz-add-button:hover,
html[data-workspace-theme="light"] .dz-add-button[aria-expanded="true"]{
  background:#f6f2ee;border-color:#eee5dc;color:#b95731;
}
html[data-workspace-theme="light"] .unified-composer .mesh-switch{
  background:#f6f3ef;color:#5e554f;border:0;
  border-radius:8px;font-size:11.5px;
  min-height:33px;height:33px;padding:0 11px;font-weight:660;
}
html[data-workspace-theme="light"] .unified-composer .mesh-switch:hover{
  background:#ece6df;
}
html[data-workspace-theme="light"] .unified-composer .composer-voice,
html[data-workspace-theme="light"] .unified-composer .dictation-button{
  background:transparent;border:0;color:#5d5651;border-radius:9px;
  min-height:34px;height:34px;
}
html[data-workspace-theme="light"] .unified-composer .composer-voice:hover,
html[data-workspace-theme="light"] .unified-composer .dictation-button:hover{
  background:#f6f2ee;color:#af4e27;
}
html[data-workspace-theme="light"] .live-voice-bars i{background:#e65a26}
html[data-workspace-theme="light"] .unified-composer .send-button{
  background:#24221f!important;color:#fff!important;
  width:35px;height:35px;border-radius:10px!important;
}
html[data-workspace-theme="light"] .unified-composer .send-button:hover{
  background:#e65a26!important;
}
html[data-workspace-theme="light"] .composer-note{
  font-size:10px;color:#a7a19a;margin-top:12px;
}
html[data-workspace-theme="light"] .dz-add-menu{
  background:#fff;border-color:#e9e0d8;color:#332c27;
  box-shadow:0 18px 60px #35281e24;
  border-radius:16px;
}
html[data-workspace-theme="light"] .dz-menu-action,
html[data-workspace-theme="light"] .dz-add-menu .camera-button{
  color:#403a35;background:transparent;
}
html[data-workspace-theme="light"] .dz-menu-action:hover,
html[data-workspace-theme="light"] .dz-add-menu .camera-button:hover{
  background:#f7f2ed;
}
html[data-workspace-theme="light"] .dz-menu-action strong,
html[data-workspace-theme="light"] .dz-add-menu .camera-button span{
  color:#403a35;
}
html[data-workspace-theme="light"] .dz-menu-action small,
html[data-workspace-theme="light"] .dz-add-menu .camera-button small{
  color:#918981;
}
html[data-workspace-theme="light"] .dz-overlay,
html[data-workspace-theme="light"] .dz-hub-backdrop{
  background:#19151285;backdrop-filter:blur(3px);
}
html[data-workspace-theme="light"] .dz-command-panel,
html[data-workspace-theme="light"] .dz-hub{
  background:#faf9f7;color:#24221f;border-color:#e2d9d1;
}
html[data-workspace-theme="light"] .dz-command-top button,
html[data-workspace-theme="light"] .dz-hub-top button{
  background:#eee9e4;color:#756e67;border-color:#e1d9d1;
}
html[data-workspace-theme="light"] .dz-command-panel>input{
  background:#fff;color:#24221f;border-color:#e9e3dc;
}
html[data-workspace-theme="light"] .dz-command-results button{
  color:#413b37;
}
html[data-workspace-theme="light"] .dz-command-results button:hover{
  background:#eee9e4;border-color:transparent;
}
html[data-workspace-theme="light"] .dz-command-results button small{
  color:#a98d7c;
}
html[data-workspace-theme="light"] .dz-command-foot{
  color:#9f958d;border-top-color:#e9e3dc;
}
html[data-workspace-theme="light"] .dz-hub-lead{
  color:#888077;
}
html[data-workspace-theme="light"] .dz-hub-row{
  background:#fff;color:#39332f;border-color:#eae4dd;
}
html[data-workspace-theme="light"] .dz-hub-row:not(:disabled):hover{
  background:#f4efe9;border-color:#e7c6b4;
}
html[data-workspace-theme="light"] .dz-hub-rowcopy small{
  color:#948981;
}
html[data-workspace-theme="light"] .dz-hub-status{
  color:#9c938a;border-color:#e8ddd5;
}
html[data-workspace-theme="light"] .dz-hub-status.ready{
  color:#458968;border-color:#b6d4c3;
}
@media(max-width:820px){
 html[data-workspace-theme="light"] .app-shell{grid-template-columns:1fr}
 html[data-workspace-theme="light"] .sidebar{
   position:fixed;width:min(265px,88vw);z-index:70;box-shadow:20px 0 55px #1d171324;
 }
 html[data-workspace-theme="light"] .workspace-head{
   height:63px;padding:0 17px;
 }
 html[data-workspace-theme="light"] .composer-wrap{
   left:0;padding:8px 11px max(11px,env(safe-area-inset-bottom));
 }
 html[data-workspace-theme="light"] .empty-state{
   justify-content:flex-start;min-height:100%;
   padding:60px 20px 235px;
 }
 html[data-workspace-theme="light"] .empty-state h1{
   font-size:clamp(30px,7.1vw,36px);
   margin:19vh 0 12px;
 }
 html[data-workspace-theme="light"] .empty-state>p{
   max-width:360px;font-size:13px;
 }
 html[data-workspace-theme="light"] .empty-state .eyebrow{display:none}
 html[data-workspace-theme="light"] .prompt-grid{
   max-width:365px;gap:8px;margin-top:26px;
 }
 html[data-workspace-theme="light"] .prompt-chip{
   font-size:11px;
 }
 html[data-workspace-theme="light"] .unified-composer{
   padding:14px 12px 10px!important;border-radius:16px!important;
 }
 html[data-workspace-theme="light"] .unified-composer #message-input{
   min-height:48px;font-size:13.4px;
 }
 html[data-workspace-theme="light"] .messages{
   width:calc(100% - 28px);padding-top:24px;padding-bottom:190px;
 }
 html[data-workspace-theme="light"] .composer-note{
   display:none;
 }
}
@media(max-width:520px){
 html[data-workspace-theme="light"] .empty-state{
   padding:60px 14px 230px;
 }
 html[data-workspace-theme="light"] .empty-state h1{
   font-size:clamp(28px,7.1vw,34px);
 }
 html[data-workspace-theme="light"] .unified-composer{
   padding:12px 11px 9px!important;
 }
 html[data-workspace-theme="light"] .composer-toolbar{
   gap:4px;
 }
 html[data-workspace-theme="light"] .unified-composer .composer-voice span:last-child{
   display:none;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-workspace-theme="light"] .prompt-chip{transition:none}
}


/* Windows app installation is discoverable inside workspace navigation only. */
.dz-desktop-install{
  margin:19px 0 4px;padding:16px;border:1px solid #5a443a;border-radius:13px;
  background:#242123;color:#f7f2ec;
}
.dz-desktop-install-head{display:flex;align-items:flex-start;gap:12px}
.dz-desktop-install-head>span{flex:0 0 33px;width:33px;height:33px;border-radius:8px;
 display:grid;place-items:center;background:#3c2a24;color:#ff8b50;font-size:20px}
.dz-desktop-install-head strong{font-size:13px;font-weight:750;display:block}
.dz-desktop-install-head small{display:block;color:#bdb1aa;font-size:11px;line-height:1.55;margin-top:5px}
.dz-desktop-install>button{
 display:flex;justify-content:space-between;align-items:center;width:100%;
 margin-top:14px;padding:11px 13px;border:1px solid #f16629;border-radius:9px;
 background:#f16629;color:white;font-size:11.5px;font-weight:750;cursor:pointer;
}
.dz-desktop-install>button:hover{background:#db4b16}
.dz-desktop-install-help{
 margin:12px 0 0;font-size:11px;line-height:1.6;color:#ffd0b9;
}
.dz-desktop-install-note{
 font-size:10px;line-height:1.55;color:#a89f99;margin:10px 0 0;
}
html[data-workspace-theme="light"] .dz-desktop-install{
 background:#fff;border-color:#e8ded5;color:#312d29;
}
html[data-workspace-theme="light"] .dz-desktop-install-head>span{
 background:#fff0e7;color:#d95820;
}
html[data-workspace-theme="light"] .dz-desktop-install-head small{
 color:#857c74;
}
html[data-workspace-theme="light"] .dz-desktop-install-note{
 color:#8f857d;
}
html[data-workspace-theme="light"] .dz-desktop-install-help{
 color:#9d4b2d;
}


/* Accessibility/readability hotfix — 2026-11-09.
 * The light command palette previously inherited white kbd text on white
 * backgrounds and multiple labels were 10px or too low contrast.
 * This block intentionally follows prior theme rules in cascade order.
 */
html[data-workspace-theme="light"]{
  --text:#211f1c;
  --muted:#554d47;
}
html[data-workspace-theme="light"] .sidebar-label,
html[data-workspace-theme="light"] .sidebar-footer-label {
  color:#514841;
  font-size:11.5px;
  font-weight:750;
}
html[data-workspace-theme="light"] .conversation-button,
html[data-workspace-theme="light"] .side-action,
html[data-workspace-theme="light"] .dz-workspace-trigger{
  color:#36302c;
  font-size:13.5px;
  line-height:1.45;
}
html[data-workspace-theme="light"] .sidebar-search-wrap,
html[data-workspace-theme="light"] .sidebar-search-wrap input{
  color:#38312c;
  font-size:13.5px;
}
html[data-workspace-theme="light"] .sidebar-search-wrap input::placeholder{
  color:#645a52;
  opacity:1;
}
html[data-workspace-theme="light"] .new-chat{font-size:13.5px}
html[data-workspace-theme="light"] .runtime-status{
  color:#4e6151;
  font-size:12px;
  line-height:1.4;
}
html[data-workspace-theme="light"] .workspace-breadcrumb,
html[data-workspace-theme="light"] .ghost-btn,
html[data-workspace-theme="light"] .dz-command-trigger,
html[data-workspace-theme="light"] .theme-toggle{
  color:#39322d;
  font-size:13px;
}
html[data-workspace-theme="light"] .empty-state .eyebrow{
  color:#81441f;
  font-size:12px;
}
html[data-workspace-theme="light"] .empty-state>p{
  color:#544c45;
  font-size:15px;
}
html[data-workspace-theme="light"] .prompt-chip{
  color:#403832;
  font-size:13px;
  min-height:42px;
}
html[data-workspace-theme="light"] .unified-composer #message-input{
  font-size:15px;
}
html[data-workspace-theme="light"] .unified-composer #message-input::placeholder{
  color:#655d55;
  opacity:1;
}
html[data-workspace-theme="light"] .unified-composer .mesh-switch{
  color:#37302c;
  font-size:13px;
}
html[data-workspace-theme="light"] .composer-note,
html[data-workspace-theme="light"] .composer-wrap .composer-note{
  font-size:11.5px;
  color:#665e55;
}
html[data-workspace-theme="light"] .composer-wrap .mesh-status{
  font-size:12px;
  color:#514940;
}
html[data-workspace-theme="light"] .dz-add-menu .dz-menu-label,
html[data-workspace-theme="light"] .dz-add-menu .dz-menu-foot{
  color:#564e47;
  font-size:12px;
}
html[data-workspace-theme="light"] .dz-menu-action strong,
html[data-workspace-theme="light"] .dz-add-menu .camera-button span{
  color:#28231f;
  font-size:14px;
}
html[data-workspace-theme="light"] .dz-menu-action small,
html[data-workspace-theme="light"] .dz-add-menu .camera-button small{
  color:#5e544c;
  font-size:12px;
}
/* Command palette: high contrast, correct shortcut key colors, six visible rows. */
.dz-command-panel{
  width:min(620px,100%);
  max-height:min(79dvh,620px);
}
.dz-command-top strong{font-size:16px;line-height:1.4}
.dz-command-top button{font-size:12px;min-height:34px}
.dz-command-panel>input{
  min-height:56px;
  font-size:16px;
}
.dz-command-results{
  flex:0 1 auto;
  min-height:0;
  max-height:328px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.dz-command-results button{
  min-height:49px;
  font-size:14px;
  line-height:1.45;
  font-weight:550;
  padding:11px 13px;
}
.dz-command-results button small{
  font-size:12px;
  font-weight:500;
}
.dz-command-results p{font-size:13px}
.dz-command-foot{
  font-size:12px;
  line-height:1.65;
}
.dz-command-foot kbd{
  display:inline-block;
  vertical-align:baseline;
  white-space:nowrap;
  min-width:24px;
  padding:2px 7px;
  border-radius:6px;
  font-size:12px;
  font-weight:700;
}
html[data-workspace-theme="light"] .dz-command-panel{
  background:#fff;
  color:#29231f;
  border-color:#cfc5bc;
}
html[data-workspace-theme="light"] .dz-command-top strong{
  color:#201c19;
}
html[data-workspace-theme="light"] .dz-command-top button{
  background:#f0ece7;
  color:#38322d;
  border-color:#d0c7bf;
}
html[data-workspace-theme="light"] .dz-command-panel>input{
  background:#fff;
  color:#211c19;
  border-color:#d5cdc5;
}
html[data-workspace-theme="light"] .dz-command-panel>input::placeholder{
  color:#5b534d;
  opacity:1;
}
html[data-workspace-theme="light"] .dz-command-results button{
  color:#2d2723;
}
html[data-workspace-theme="light"] .dz-command-results button small{
  color:#654a3a;
}
html[data-workspace-theme="light"] .dz-command-results button:hover,
html[data-workspace-theme="light"] .dz-command-results button:focus-visible{
  color:#201b17;
  background:#f3ebe4;
  border-color:#e2cbb9;
}
html[data-workspace-theme="light"] .dz-command-results p{
  color:#514941;
}
html[data-workspace-theme="light"] .dz-command-foot{
  background:#f8f6f3;
  color:#4d433d;
  border-top-color:#ded6ce;
}
html[data-workspace-theme="light"] .dz-command-foot kbd{
  color:#29231e;
  background:#e9e3dc;
  border-color:#c8beb4;
  box-shadow:inset 0 -1px 0 #c9bdb1;
}
html[data-workspace-theme="dark"] .dz-command-panel>input::placeholder{
  color:#d4c6bf;
  opacity:1;
}
html[data-workspace-theme="dark"] .dz-command-results button{
  color:#f3eee8;
}
html[data-workspace-theme="dark"] .dz-command-results button small{
  color:#ffb18c;
}
html[data-workspace-theme="dark"] .dz-command-foot kbd{
  background:#3e3432;
  color:#f7f3ed;
  border-color:#8a6a59;
}
/* Workspace drawer: planned features must be legible even when unavailable. */
.dz-hub-row:disabled{opacity:1}
.dz-hub-lead,.dz-hub-rowcopy small,.dz-hub-status{
  font-size:12px;
  line-height:1.55;
}
.dz-hub-rowcopy strong{font-size:14px}
.dz-hub-status{font-size:11px;max-width:135px}
.dz-hub-command{font-size:13px}
html[data-workspace-theme="light"] .dz-hub-lead,
html[data-workspace-theme="light"] .dz-hub-rowcopy small{
  color:#534b45;
}
html[data-workspace-theme="light"] .dz-hub-status{
  color:#524a45;
  border-color:#c9c0b8;
}
html[data-workspace-theme="light"] .dz-hub-status.ready{
  color:#22613f;
  border-color:#77a58a;
}
html[data-workspace-theme="light"] .dz-hub-rowcopy strong,
html[data-workspace-theme="light"] .dz-hub-top h2{
  color:#29231e;
}
html[data-workspace-theme="light"] .dz-desktop-install-head small,
html[data-workspace-theme="light"] .dz-desktop-install-note{
  color:#51483f;
  font-size:12px;
}
html[data-workspace-theme="light"] .modal .login-form label,
html[data-workspace-theme="light"] .modal .modal-copy,
html[data-workspace-theme="light"] .menu-title,
html[data-workspace-theme="light"] .drawer .approval-meta{
  color:#4d463f;
  font-size:13px;
}
html[data-workspace-theme="light"] button:focus-visible,
html[data-workspace-theme="light"] input:focus-visible,
html[data-workspace-theme="light"] textarea:focus-visible,
html[data-workspace-theme="light"] a:focus-visible{
  outline:2px solid #a84a1e;
  outline-offset:2px;
}
@media(max-width:820px){
  .dz-command-panel{max-height:84dvh}
  .dz-command-results{max-height:min(48dvh,328px)}
  html[data-workspace-theme="light"] .prompt-chip{font-size:13px}
  html[data-workspace-theme="light"] .unified-composer #message-input{font-size:15px}
}
@media(max-width:520px){
  .dz-command-panel>input{font-size:16px}
  .dz-command-results button{font-size:14px}
  .dz-command-foot{font-size:11.5px}
  .dz-hub-status{font-size:10px;max-width:95px}
}


/* UI 1.0 tokens and component contract. New visual decisions belong here. */
:root{--dz-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
 --dz-unit:4px;--dz-radius-sm:10px;--dz-radius-md:15px;--dz-radius-lg:20px}
html[data-workspace-theme="light"]{--dz-text:#24211d;--dz-subtle:#514840;--dz-elevated:#fff;--dz-border:#dcd5cd;--dz-focus:#b8481f}
html[data-workspace-theme="dark"]{--dz-text:#f8f5f0;--dz-subtle:#c2b8b0;--dz-elevated:#242225;--dz-border:#625a56;--dz-focus:#ff9f6d}
html[data-workspace-theme] body,html[data-workspace-theme] .workspace{font-family:var(--dz-font)}
html[data-workspace-theme] .message-content{font-size:16px;line-height:1.7}
html[data-workspace-theme] .conversation-button{font-size:14px;min-height:40px}
html[data-workspace-theme] .dz-add-button,html[data-workspace-theme] .dictation-button,
html[data-workspace-theme] .composer-voice,html[data-workspace-theme] .theme-toggle,
html[data-workspace-theme] .profile-btn{min-height:40px;min-width:40px}
html[data-workspace-theme] .dz-menu-action{min-height:48px}
html[data-workspace-theme="light"] .sidebar .brand span{color:var(--dz-text)}
html[data-workspace-theme="dark"] .sidebar-label,html[data-workspace-theme="dark"] .dz-hub-rowcopy small{color:var(--dz-subtle)}
html[data-workspace-theme] button:focus-visible,html[data-workspace-theme] input:focus-visible,
html[data-workspace-theme] textarea:focus-visible,html[data-workspace-theme] a:focus-visible,
html[data-workspace-theme] [role="button"]:focus-visible{outline:2px solid var(--dz-focus);outline-offset:3px}
.dz-sidebar-toggle{display:grid;place-items:center;min-width:40px;height:40px;border:1px solid var(--dz-border);
 border-radius:10px;background:var(--dz-elevated);color:var(--dz-text);cursor:pointer;
 font-size:22px;margin-right:12px;flex:0 0 40px}
.dz-sidebar-toggle:hover{filter:brightness(.96)}
html.dz-sidebar-collapsed .sidebar{display:none!important}
html.dz-sidebar-collapsed .app-shell{grid-template-columns:minmax(0,1fr)!important;--sidebar:0px}
html.dz-sidebar-collapsed .composer-wrap{left:0!important}
.dz-confirm-panel{width:min(450px,100%);border:1px solid var(--dz-border);background:var(--dz-elevated);
 color:var(--dz-text);border-radius:20px;padding:28px;box-shadow:0 30px 85px #0005}
.dz-confirm-panel h2{font-size:24px;line-height:1.15;letter-spacing:-.04em;margin:10px 0 12px;color:var(--dz-text)}
.dz-confirm-panel p{font-size:14px;line-height:1.65;color:var(--dz-subtle)}
.dz-confirm-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
.dz-confirm-actions button{min-height:44px;padding:10px 15px;border-radius:10px;font-size:13px;font-weight:650;cursor:pointer}
.dz-confirm-actions button:first-child{background:var(--dz-elevated);color:var(--dz-text);border:1px solid var(--dz-border)}
.dz-confirm-actions button:last-child{background:#c44d1d;color:#fff;border:1px solid #c44d1d}
html[data-workspace-theme="dark"] .dz-confirm-actions button:last-child{background:#e8632d;border-color:#e8632d;color:#111}
.dz-command-panel{max-height:min(78dvh,610px);overflow:hidden}
.dz-command-results{max-height:330px;min-height:0;overflow-y:auto}
.dz-command-results button{min-height:49px}
html[data-workspace-theme="light"] .dz-command-foot kbd{color:#241f1b;background:#eae4de;border:1px solid #bcb0a5}
html[data-workspace-theme="light"] .dz-command-foot{color:#403831}
html[data-workspace-theme="light"] .dz-command-results button small{color:#684533}
html[data-workspace-theme="light"] .sidebar-search-wrap input::placeholder,
html[data-workspace-theme="light"] #message-input::placeholder{color:#5f554e;opacity:1}
@media(max-width:820px){
 html.dz-sidebar-collapsed .sidebar{display:flex!important}
 html.dz-sidebar-collapsed .app-shell{grid-template-columns:1fr!important}
 .dz-sidebar-toggle{display:none!important}
 .dz-command-panel{max-height:82dvh}
 .dz-command-results{max-height:min(45dvh,330px)}
 .dz-confirm-panel{padding:20px}
 html[data-workspace-theme] .empty-state{padding-bottom:max(240px,25dvh)}
}
@media(max-width:520px){
 .dz-confirm-actions{flex-direction:column-reverse}
 .dz-confirm-actions button{width:100%}
 html[data-workspace-theme] .message-content{font-size:15.5px}
}
@media(prefers-reduced-motion:reduce){
 html[data-workspace-theme] .sidebar,html[data-workspace-theme] .prompt-chip,
 html[data-workspace-theme] .dz-add-menu,html[data-workspace-theme] .dz-overlay{
 animation:none!important;transition:none!important}
}


/* Quiet Conversation v4: editorial conversation rhythm. Component IDs and
 * governed Agent / Mesh / approval adapters deliberately remain unchanged. */
html[data-workspace-theme] .messages{
  width:min(810px,calc(100% - 40px));
  padding:40px 0 235px;
}
html[data-workspace-theme] .message{
  display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:14px;
  align-items:start;margin:0 0 34px;
}
html[data-workspace-theme] .message.assistant .message-avatar{
  width:30px;height:30px;border-radius:10px;
  font-size:18px;font-weight:500;display:grid;place-items:center;
}
html[data-workspace-theme] .message-role{
  font-weight:680;font-size:11px;letter-spacing:.025em;margin-bottom:10px;
}
html[data-workspace-theme] .message-content{
  font-size:15.5px;line-height:1.76;letter-spacing:0;overflow-wrap:anywhere;
}
html[data-workspace-theme] .message-content p{margin-bottom:.95em}
html[data-workspace-theme] .message-content h3,
html[data-workspace-theme] .message-content h4{
  letter-spacing:-.025em;line-height:1.35;margin:1.35em 0 .5em;
}
html[data-workspace-theme] .message-content ul,
html[data-workspace-theme] .message-content ol{margin:.7em 0 1em}
html[data-workspace-theme] .message-content li{margin:.4em 0;padding-left:.15em}
html[data-workspace-theme] .message-content pre{
  border-radius:12px;margin:1em 0 1.15em;overflow-x:auto;
}
html[data-workspace-theme] .message.user{
  grid-template-columns:minmax(0,1fr);justify-items:end;
  margin-bottom:33px;
}
html[data-workspace-theme] .message.user .message-avatar,
html[data-workspace-theme] .message.user .message-role{display:none}
html[data-workspace-theme] .message.user .message-body{
  max-width:min(78%,620px);min-width:0;
  border-radius:17px 17px 5px 17px;padding:14px 19px;
}
html[data-workspace-theme] .message.user .message-content{
  font-size:15px;line-height:1.65;
}
html[data-workspace-theme] .message.assistant .message-body{min-width:0}
html[data-workspace-theme] .dz-message-actions{
  display:flex;align-items:center;gap:9px;margin-top:9px;
  min-height:26px;opacity:.65;transition:opacity .13s ease;
}
html[data-workspace-theme] .message:hover .dz-message-actions,
html[data-workspace-theme] .dz-message-actions:focus-within{opacity:1}
html[data-workspace-theme] .dz-message-copy{
  min-height:27px;cursor:pointer;padding:4px 9px;border-radius:7px;
  border:1px solid transparent;background:transparent;
  font-size:11px;font-weight:550;
}
html[data-workspace-theme] .dz-running .message-content{min-height:26px}
html[data-workspace-theme] .dz-running .message-role::after{
  content:" · Working";font-weight:450;letter-spacing:0;
}
html[data-workspace-theme] .dz-jump-latest{
  position:fixed;bottom:clamp(140px,19vh,192px);
  left:calc(var(--sidebar,245px) + (100% - var(--sidebar,245px))/2);
  transform:translateX(-50%);z-index:30;white-space:nowrap;
  display:inline-flex;align-items:center;gap:8px;
  min-height:38px;padding:8px 15px;border-radius:999px;
  font-size:12px;font-weight:650;cursor:pointer;
  box-shadow:0 6px 24px #0002;
}
html[data-workspace-theme] .dz-jump-latest[hidden]{display:none!important}
html.dz-sidebar-collapsed .dz-jump-latest{left:50%!important}
html[data-workspace-theme] .composer-wrap{isolation:isolate}
html[data-workspace-theme] .unified-composer{
  width:min(810px,100%);max-width:810px;
}
html[data-workspace-theme] .unified-composer #message-input{
  font-size:15px;line-height:1.6;
}
html[data-workspace-theme="light"] .message.user .message-body{
  background:#eeebe6;border:1px solid #e5e0d9;
}
html[data-workspace-theme="light"] .message.assistant .message-avatar{
  background:#f4e7dd;color:#a9532f;
}
html[data-workspace-theme="light"] .message.user .message-content{color:#312b26}
html[data-workspace-theme="light"] .message.assistant .message-content{color:#342f2b}
html[data-workspace-theme="light"] .message-content pre,
html[data-workspace-theme="light"] .message-content code{
  border-color:#e1d8ce;background:#f5f2ed;color:#352d27;
}
html[data-workspace-theme="light"] .message-content pre code{
  background:transparent;border:0;
}
html[data-workspace-theme="light"] .dz-message-copy{color:#6d6259}
html[data-workspace-theme="light"] .dz-message-copy:hover{background:#eee8e1;border-color:#ded5cb}
html[data-workspace-theme="light"] .dz-running .message-role::after{color:#a45635}
html[data-workspace-theme="light"] .dz-jump-latest{
  background:#fff;color:#47352b;border:1px solid #e4d9cd;
}
html[data-workspace-theme="dark"] .message.user .message-body{
  background:#222922;border:1px solid #354137;
}
html[data-workspace-theme="dark"] .message.user .message-content{color:#f1eee7}
html[data-workspace-theme="dark"] .message.assistant .message-content{color:#e2e6dd}
html[data-workspace-theme="dark"] .dz-message-copy{color:#c1c7bc}
html[data-workspace-theme="dark"] .dz-message-copy:hover{background:#2e382f;border-color:#425146}
html[data-workspace-theme="dark"] .dz-running .message-role::after{color:#d6ad7d}
html[data-workspace-theme="dark"] .dz-jump-latest{
  background:#273129;color:#eee8dc;border:1px solid #52604e;
}
@media(max-width:820px){
  html[data-workspace-theme] .messages{width:calc(100% - 26px);padding-top:25px;padding-bottom:200px}
  html[data-workspace-theme] .dz-jump-latest{left:50%!important;bottom:clamp(135px,18vh,180px)}
}
@media(max-width:520px){
  html[data-workspace-theme] .message{grid-template-columns:27px minmax(0,1fr);column-gap:10px;margin-bottom:27px}
  html[data-workspace-theme] .message.user .message-body{max-width:88%;padding:12px 15px}
  html[data-workspace-theme] .message-content{font-size:15.5px;line-height:1.7}
  html[data-workspace-theme] .message.user .message-content{font-size:14.5px}
  html[data-workspace-theme] .dz-message-actions{opacity:1}
}
@media(prefers-reduced-motion:reduce){
  html[data-workspace-theme] .dz-message-actions{transition:none}
}


/* Backend-issued tool receipts; never treat model prose as execution evidence. */
html[data-workspace-theme] .dz-execution-evidence{
  margin:16px 0 4px;padding:13px 15px;
  border-radius:11px;border:1px solid var(--dz-border);
  background:var(--dz-elevated);font-size:12px;
}
html[data-workspace-theme] .dz-execution-evidence summary{
  cursor:pointer;font-weight:640;color:var(--dz-text);
  list-style-position:inside;
}
html[data-workspace-theme] .dz-execution-evidence ul{
  margin:12px 0;padding-left:24px;line-height:1.8;color:var(--dz-subtle);
}
html[data-workspace-theme] .dz-execution-evidence p{
  font-size:11px;line-height:1.65;margin:9px 0 0;color:var(--dz-subtle);
}
html[data-workspace-theme] .dz-execution-evidence:focus-within{
  border-color:var(--dz-focus);
}


html[data-workspace-theme] .dz-conversation-group{
  margin:18px 10px 6px;padding:0 2px;
  font-size:10px;line-height:1.6;font-weight:720;
  letter-spacing:.065em;text-transform:uppercase;
}
html[data-workspace-theme="light"] .dz-conversation-group{color:#8c8075}
html[data-workspace-theme="dark"] .dz-conversation-group{color:#87978a}
html[data-workspace-theme] .conversation-list .dz-conversation-group:first-child{margin-top:8px}

/* Keep the last response unobscured by the fixed composer at every draft size. */
html[data-workspace-theme] .messages {
  padding-bottom: calc(var(--dz-composer-height, 190px) + 32px);
}
html[data-workspace-theme] .dz-jump-latest {
  bottom: calc(var(--dz-composer-height, 160px) + 14px);
}
@media (max-width: 820px) {
  html[data-workspace-theme] .unified-composer #message-input {
    max-height: min(132px, 26dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
