/* MĪZĀN Chat v0.3.2 — refined Arabic heritage interface */
:root{
  color-scheme:light;
  --mz-bg:#f7f1e7;
  --mz-bg-deep:#efe4d1;
  --mz-paper:#fffdf9;
  --mz-paper-2:#f8f4ed;
  --mz-ink:#1e2426;
  --mz-muted:#6d6a66;
  --mz-line:#ddd2c0;
  --mz-accent:#0f4a4f;
  --mz-accent-2:#14646b;
  --mz-gold:#b38743;
  --mz-gold-soft:#e8d2a6;
  --mz-warm:#7e5230;
  --mz-shadow:0 18px 45px rgba(35,40,42,.08);
}
*{box-sizing:border-box}
html,body.mzc-body{margin:0;min-height:100%;background:
 radial-gradient(circle at top right,rgba(179,135,67,.10),transparent 28%),
 radial-gradient(circle at bottom left,rgba(15,74,79,.08),transparent 24%),
 linear-gradient(180deg,var(--mz-bg) 0%,#f9f6f1 100%);
 font-family:"IBM Plex Sans Arabic",Inter,system-ui,sans-serif;color:var(--mz-ink)}
button,textarea,select{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--mz-gold);outline-offset:3px}
.mzc-body a{color:inherit;text-decoration:none}
.mzc-body .mzc-shell{display:grid;grid-template-columns:290px minmax(0,1fr);height:100dvh;min-height:520px}
.mzc-sidebar{position:relative;display:flex;flex-direction:column;gap:20px;background:linear-gradient(180deg,#f2e9dc 0%,#efe4d2 100%);border-inline-end:1px solid rgba(179,135,67,.25);padding:24px 18px;min-height:0;overflow:hidden}
.mzc-sidebar-bg{position:absolute;inset:0;background:
 radial-gradient(circle at 25% 15%,rgba(255,255,255,.5),transparent 22%),
 radial-gradient(circle at 85% 75%,rgba(15,74,79,.06),transparent 22%),
 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23b38743' stroke-opacity='.09'%3E%3Cpath d='M110 13 136 39 110 65 84 39Z'/%3E%3Cpath d='M110 77 136 103 110 129 84 103Z'/%3E%3Cpath d='M110 141 136 167 110 193 84 167Z'/%3E%3Cpath d='M45 77 71 103 45 129 19 103Z'/%3E%3Cpath d='M175 77 201 103 175 129 149 103Z'/%3E%3C/g%3E%3C/svg%3E") center/220px repeat;
 pointer-events:none}
.mzc-sidebar>*{position:relative;z-index:1}
.mzc-brand{display:flex;align-items:center;gap:12px;padding:8px 10px}
.mzc-brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(180deg,rgba(15,74,79,.12),rgba(179,135,67,.18));border:1px solid rgba(15,74,79,.12)}
.mzc-symbol{font-size:25px;color:var(--mz-accent)}
.mzc-brand-text strong{display:block;font-size:24px;font-weight:800;letter-spacing:.01em}
.mzc-brand-text small{display:block;font-size:10px;color:var(--mz-warm);letter-spacing:.24em;margin-top:2px}
.mzc-side-intro{background:rgba(255,253,249,.72);border:1px solid rgba(179,135,67,.18);border-radius:20px;padding:14px 14px 13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
.mzc-side-kicker{font-size:11px;font-weight:800;color:var(--mz-warm);letter-spacing:.16em;margin-bottom:8px}
.mzc-side-intro p{margin:0;color:#5c5a57;line-height:1.9;font-size:13px}
.mzc-new{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 16px;background:linear-gradient(135deg,var(--mz-accent),var(--mz-accent-2));color:white;border:0;border-radius:16px;font-weight:700;font-size:13px;box-shadow:0 12px 24px rgba(15,74,79,.17)}
.mzc-new:hover,.mzc-compose-bottom button:hover{filter:brightness(1.05)}
.mzc-nav-label{font-size:11px;color:var(--mz-warm);font-weight:800;padding-inline:9px;letter-spacing:.16em}
.mzc-sessions{overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:6px;min-height:50px;padding-inline-end:4px}
.mzc-session-row{display:flex;align-items:center;border-radius:14px;gap:3px;border:1px solid transparent;background:rgba(255,255,255,.35)}
.mzc-session-row:hover,.mzc-session-row.selected{background:rgba(255,255,255,.76);border-color:rgba(179,135,67,.22)}
.mzc-session-title{flex:1;border:0;background:transparent;min-width:0;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:12px 10px;font-size:12px;color:var(--mz-ink)}
.mzc-session-delete{border:0;background:transparent;color:#8a8176;opacity:.78;font-size:20px;padding:1px 9px}
.mzc-session-delete:hover{opacity:1;color:#af493b}
.mzc-muted{color:var(--mz-muted);font-size:12px;padding:8px}
.mzc-sidebar-bottom{border-top:1px solid rgba(179,135,67,.25);padding-top:14px;display:flex;flex-direction:column;gap:11px;font-size:13px}
.mzc-sidebar-bottom a{padding:8px 10px;border-radius:12px}
.mzc-sidebar-bottom a:hover{background:rgba(255,255,255,.52)}
.mzc-main{min-width:0;min-height:0;display:flex;flex-direction:column;background:transparent}
.mzc-header{display:flex;align-items:center;gap:13px;justify-content:space-between;min-height:82px;border-bottom:1px solid rgba(179,135,67,.18);padding:12px 32px;background:rgba(255,251,245,.72);backdrop-filter:blur(10px)}
.mzc-header-copy{flex:1}
.mzc-header strong{display:block;font-size:16px;letter-spacing:-.01em}
.mzc-header small{display:block;color:var(--mz-muted);font-size:12px;margin-top:4px}
.mzc-header-actions{display:flex;gap:15px;align-items:center}
#mzc-language{font-size:12px;padding:8px 11px;border:1px solid rgba(179,135,67,.25);border-radius:12px;background:rgba(255,255,255,.7);color:var(--mz-ink)}
.mzc-indicator{color:var(--mz-gold);font-size:26px}
#mzc-menu{display:none;background:none;border:none;font-size:23px}
.mzc-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:34px 28px 18px;scroll-behavior:smooth}
.mzc-empty{max-width:760px;margin:clamp(30px,8vh,95px) auto 0;text-align:center}
.mzc-monogram-wrap{width:108px;height:108px;margin:0 auto 10px;border-radius:32px;display:grid;place-items:center;background:linear-gradient(180deg,rgba(179,135,67,.18),rgba(15,74,79,.10));box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 14px 32px rgba(20,32,35,.08)}
.mzc-monogram{color:var(--mz-accent);font-size:58px}
.mzc-empty-kicker{font-size:11px;letter-spacing:.2em;color:var(--mz-warm);font-weight:800;margin-bottom:8px}
.mzc-empty h1{font-size:clamp(29px,3.2vw,39px);font-weight:700;line-height:1.45;margin:8px auto 12px;letter-spacing:-.04em}
.mzc-empty p{font-size:15px;line-height:1.95;color:var(--mz-muted);max-width:560px;margin:auto}
.mzc-starters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:36px}
.mzc-starters button{border:1px solid rgba(179,135,67,.22);border-radius:18px;background:linear-gradient(180deg,var(--mz-paper),var(--mz-paper-2));font-size:13px;padding:19px 14px;min-height:78px;text-align:start;color:var(--mz-ink);box-shadow:0 10px 20px rgba(21,32,34,.04)}
.mzc-starters button:hover{border-color:rgba(15,74,79,.32);transform:translateY(-1px)}
.mzc-messages{max-width:860px;margin:auto;width:100%;display:flex;flex-direction:column;gap:28px;padding-bottom:12px}
.mzc-msg{display:flex;align-items:flex-start;gap:14px;line-height:1.95;font-size:14px}
.mzc-avatar{width:36px;height:36px;border:1px solid rgba(179,135,67,.22);background:linear-gradient(180deg,rgba(15,74,79,.07),rgba(179,135,67,.12));color:var(--mz-accent);border-radius:14px;display:grid;place-items:center;font-size:18px;flex-shrink:0}
.mzc-user .mzc-avatar{background:#f1eadf;color:#7f6445;border:1px solid rgba(179,135,67,.18)}
.mzc-msg-content{flex:1;min-width:0}
.mzc-content{white-space:pre-wrap;overflow-wrap:anywhere;background:rgba(255,255,255,.58);border:1px solid rgba(179,135,67,.14);border-radius:20px;padding:14px 16px 15px;box-shadow:0 8px 20px rgba(20,32,35,.035)}
.mzc-user .mzc-content{display:inline-block;background:linear-gradient(180deg,#f5efe3,#f0e8da);border-radius:18px;max-width:100%}
.mzc-provenance{display:none}
.mzc-compose-zone{width:min(900px,100%);margin:auto;padding:0 28px 18px}
.mzc-status{font-size:12px;color:var(--mz-warm);min-height:25px;padding:4px 7px}
.mzc-compose{background:rgba(255,253,249,.96);border:1px solid rgba(179,135,67,.18);border-radius:26px;box-shadow:var(--mz-shadow);padding:12px 15px 14px}
.mzc-modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:11px}
.mzc-mode{border:1px solid transparent;color:var(--mz-muted);background:transparent;border-radius:999px;padding:8px 13px;font-size:11px;font-weight:700}
.mzc-mode.active{background:linear-gradient(180deg,rgba(15,74,79,.09),rgba(179,135,67,.13));color:var(--mz-accent);border-color:rgba(15,74,79,.08)}
.mzc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 3px 10px;font-size:12px;color:var(--mz-muted)}
.mzc-tools label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.mzc-attach,.mzc-tools button{border:1px solid rgba(179,135,67,.2);border-radius:12px;padding:8px 11px;background:#fff;color:inherit}
.mzc-tools button{min-width:40px}
.mzc-tools input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#mzc-file-label{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.82}
.mzc-tools button:disabled{opacity:.45}
#mzc-input{width:100%;border:0;background:transparent;resize:none;padding:7px 4px 12px;min-height:72px;color:var(--mz-ink)}
#mzc-input::placeholder{color:#978f84}
.mzc-compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid rgba(179,135,67,.16);padding-top:10px;color:var(--mz-muted);font-size:11px}
.mzc-compose-bottom button{border:0;border-radius:16px;width:42px;height:42px;background:linear-gradient(135deg,var(--mz-accent),var(--mz-accent-2));color:white;font-size:22px;box-shadow:0 12px 24px rgba(15,74,79,.14)}
.mzc-footnote{font-size:11px;color:#857e75;text-align:center;margin-top:10px}
.mzc-news,.mzc-analysis{margin-top:12px;background:rgba(255,255,255,.56);border:1px solid rgba(179,135,67,.15);border-radius:18px;padding:14px}
.mzc-news-story{padding:10px 0;border-bottom:1px dashed rgba(179,135,67,.18)}
.mzc-news-story:last-child{border-bottom:0;padding-bottom:0}
.mzc-news-link{font-weight:700;display:inline-block;margin-bottom:5px}
.mzc-news small{display:block;color:var(--mz-muted)}
.mzc-analysis summary{cursor:pointer;font-weight:700;color:var(--mz-accent)}
.mzc-analysis h4{margin:13px 0 7px;font-size:12px;color:var(--mz-warm)}
.mzc-analysis p{margin:0 0 10px;line-height:1.8}
.mzc-auth{background:rgba(255,253,249,.95);border:1px solid rgba(179,135,67,.16);border-radius:18px;padding:14px 16px;text-align:center}
.mzc-auth a{font-weight:800;color:var(--mz-accent)}
.mzc-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:980px){
  .mzc-body .mzc-shell{grid-template-columns:1fr}
  .mzc-sidebar{position:fixed;inset:0 auto 0 0;width:min(86vw,310px);transform:translateX(-103%);transition:transform .22s ease;z-index:40;box-shadow:0 10px 36px rgba(0,0,0,.16)}
  .mzc-menu-open .mzc-sidebar{transform:translateX(0)}
  #mzc-menu{display:block}
  .mzc-header{padding:12px 18px}
  .mzc-scroll,.mzc-compose-zone{padding-inline:16px}
}
@media (max-width:760px){
  .mzc-empty h1{font-size:28px}
  .mzc-starters{grid-template-columns:1fr}
  .mzc-tools{gap:8px}
  .mzc-compose-bottom{flex-direction:column;align-items:stretch}
  .mzc-compose-bottom button{align-self:flex-end}
}

/* Premium refinement: calm editorial canvas, brass detailing, accessible layout */
:root{--mz-bg:#f9f7f3;--mz-bg-deep:#f3eee5;--mz-paper:#fffefa;--mz-paper-2:#fcfaf5;--mz-ink:#192d31;--mz-muted:#677073;--mz-line:#e6e1d8;--mz-accent:#103e45;--mz-accent-2:#1c5860;--mz-gold:#b6975b;--mz-gold-soft:#e7ddcb;--mz-warm:#786643;--mz-shadow:0 22px 55px rgba(20,43,45,.085)}
html,body.mzc-body{background:#f9f7f3;font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.mzc-body .mzc-shell{grid-template-columns:272px minmax(0,1fr)}
.mzc-sidebar{gap:19px;background:linear-gradient(180deg,#faf8f4,#f2eee6);border-inline-end:1px solid #e7e2d8;padding:29px 18px}
.mzc-sidebar-bg{opacity:.36;background-size:290px}
.mzc-brand{gap:13px;padding:6px 8px}
.mzc-brand-mark{background:var(--mz-accent);border:1px solid #d4bc85;border-radius:50%;box-shadow:0 0 0 4px #eae4d8;width:44px;height:44px}
.mzc-symbol{color:#edddb1;font-size:24px}
.mzc-brand-text strong{font-size:26px;line-height:1.25;color:#113d44;font-weight:800}
.mzc-brand-text small{font-size:9px;letter-spacing:.2em;color:#7d6a41}
.mzc-side-intro{background:transparent;box-shadow:none;border:0;border-top:1px solid #e4dccb;border-radius:0;padding:18px 9px 3px}
.mzc-side-kicker{font-size:10px;color:#7a6640}
.mzc-side-intro p{font-size:12px;color:#77736c;line-height:2}
.mzc-new{border-radius:13px;padding:13px 16px;box-shadow:0 8px 18px rgba(12,55,61,.11)}
.mzc-nav-label{letter-spacing:.04em;font-size:11px;color:#6b6453}
.mzc-session-row{background:transparent;border-radius:11px}
.mzc-session-row:hover,.mzc-session-row.selected{background:#eae6dd;border-color:transparent}
.mzc-sidebar-bottom a{font-weight:550}
.mzc-main{background:radial-gradient(ellipse at 50% 7%,#fffefa 0%,#f9f7f3 56%,#f7f5f0 100%)}
.mzc-header{min-height:74px;background:rgba(255,254,251,.86);border-bottom:1px solid #ebe6dd;padding-inline:clamp(20px,3vw,52px)}
.mzc-header strong{font-size:15px;font-weight:750}
.mzc-header small{font-size:11px;color:#798184}
#mzc-language{background:#fffefa;border:1px solid #e9e3d8;padding:9px 13px}
.mzc-indicator{width:34px;height:34px;border:1px solid #e4d7bb;border-radius:50%;display:grid;place-items:center;font-size:19px;color:var(--mz-gold);background:#fdf9f0}
.mzc-scroll{padding:clamp(20px,3vw,42px)}
.mzc-empty{max-width:840px;margin:clamp(28px,8vh,105px) auto 0}
.mzc-monogram-wrap{width:94px;height:94px;background:linear-gradient(150deg,#fcf8ef,#f0eadf);border-radius:50%;box-shadow:0 0 0 1px #dfd3b8,0 0 0 7px rgba(221,206,168,.13),0 18px 40px rgba(23,53,53,.07)}
.mzc-monogram{font-size:49px;color:#174e53}
.mzc-empty-kicker{font-size:10px;color:#7b6741;letter-spacing:.18em;margin-top:26px}
.mzc-empty h1{max-width:740px;font-size:clamp(30px,3.3vw,46px);line-height:1.5;font-weight:680;letter-spacing:-.035em;color:#163b42}
.mzc-empty p{max-width:590px;font-size:14px;color:#697274}
.mzc-starters{margin-top:45px;gap:15px}
.mzc-starters button{position:relative;min-height:100px;border-radius:16px;border:1px solid #e7e1d6;box-shadow:0 10px 30px rgba(25,46,46,.035);background:linear-gradient(160deg,#fffefa,#fbf8f2);font-size:13px;font-weight:650;padding:20px 18px 20px 26px;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}
.mzc-starters button:before{content:'✧';display:block;color:#ab8c54;font-size:17px;margin-bottom:8px}
.mzc-starters button:hover{border-color:#cbb88b;box-shadow:0 16px 32px rgba(25,46,46,.075);transform:translateY(-2px)}
.mzc-messages{max-width:810px;gap:26px}
.mzc-msg{font-size:14px;line-height:2}
.mzc-avatar{height:34px;width:34px;border-radius:50%;background:#eff3ef;border:1px solid #dce3dc}
.mzc-user .mzc-avatar{background:#f3eee4;border-color:#e5dccc}
.mzc-content{background:transparent;border:0;border-radius:0;box-shadow:none;padding:4px 6px 10px;font-size:14px}
.mzc-user .mzc-content{padding:12px 17px;background:#eceae4;border:0;border-radius:16px 16px 5px 16px}
.mzc-compose-zone{width:min(840px,100%);padding:0 clamp(16px,2vw,25px) 19px}
.mzc-compose{border:1px solid #e2ded6;box-shadow:0 12px 55px rgba(23,45,46,.09),0 2px 8px rgba(23,45,46,.035);border-radius:21px;padding:13px 15px 11px;background:#fffefa}
.mzc-modes{margin-bottom:8px;gap:5px}
.mzc-mode{font-size:11px;padding:8px 12px;color:#757b78}
.mzc-mode.active{background:#e8eeeb;border-color:#d5e2dd;color:#164b51}
.mzc-tools{padding:6px 3px 9px;font-size:11px;gap:10px}
.mzc-tools label:first-child{padding:7px 10px;border-radius:10px;background:#f7f5f1}
.mzc-attach,.mzc-tools button{border:1px solid #e8e4dc;border-radius:10px;background:#fdfbf7;padding:8px 10px}
#mzc-input{min-height:80px;font-size:15px;line-height:1.85;padding:11px 5px 14px}
.mzc-compose-bottom{color:#8b8d8a;font-size:10px}
.mzc-compose-bottom button{width:43px;height:43px;border-radius:13px}
.mzc-footnote{font-size:10px;color:#8d928f;margin-top:9px}
.mzc-news,.mzc-analysis{background:#fffefa;border-color:#e7e1d6}
@media(max-width:980px){
 .mzc-body .mzc-shell{grid-template-columns:minmax(0,1fr)}
 .mzc-sidebar{inset:0 0 0 auto;transform:translateX(103%)}
 .mzc-menu-open .mzc-sidebar{transform:translateX(0)}
 .mzc-scroll{padding:26px 18px}
 .mzc-header{padding-inline:16px}
}
@media(max-width:760px){
 .mzc-empty{margin:clamp(18px,5vh,45px) auto 0}
 .mzc-empty h1{font-size:28px}
 .mzc-starters{grid-template-columns:1fr;gap:9px;margin-top:24px}
 .mzc-starters button{min-height:64px;padding:12px 16px;display:flex;align-items:center;gap:12px}
 .mzc-starters button:before{margin-bottom:0}
 .mzc-monogram-wrap{width:74px;height:74px}
 .mzc-monogram{font-size:41px}
 .mzc-header small{display:none}
 .mzc-compose-zone{padding-inline:12px}
 .mzc-compose{padding:10px 12px}
 .mzc-tools{gap:7px}
 .mzc-compose-bottom{align-items:center;flex-direction:row}
 .mzc-compose-bottom span{max-width:72%}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* v0.3.4 functional controls and locale isolation */
.mzc-export{border:1px solid rgba(179,135,67,.25);background:rgba(255,255,255,.55);color:var(--mz-accent);border-radius:12px;padding:9px 12px;text-align:center;font-weight:650;font-size:12px;cursor:pointer}
.mzc-message-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px;opacity:.75}
.mzc-message-action{border:1px solid rgba(179,135,67,.21);background:transparent;border-radius:999px;padding:4px 10px;color:var(--mz-muted);font-size:11px}
.mzc-message-action:hover{opacity:1;background:rgba(179,135,67,.1);color:var(--mz-accent)}
.mzc-body[dir=ltr] .mzc-msg,.mzc-body[dir=ltr] .mzc-header,.mzc-body[dir=ltr] .mzc-sidebar{direction:ltr}
.mzc-body[dir=ltr] .mzc-new,.mzc-body[dir=ltr] .mzc-session-title{text-align:left}
.mzc-content{unicode-bidi:plaintext}
#mzc-input{unicode-bidi:plaintext}

.mzc-investigation-note{margin-top:11px;padding:11px 14px;border:1px solid #d6be93;border-radius:12px;color:#6b512d;background:#faf4e9;font-size:12px;line-height:1.8}
.mzc-mode[data-mode="investigate"].active{background:#123f44;color:#fff;border-color:#123f44}

.mzc-source-row{padding:10px 2px;border-top:1px solid rgba(179,135,67,.18);display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.mzc-source-row a{text-decoration:underline;color:var(--mz-accent)}.mzc-source-row small{color:var(--mz-muted);font-size:10px}.mzc-report-export{margin-top:10px;background:transparent;border:1px solid var(--mz-gold);color:var(--mz-accent);padding:9px 14px;border-radius:12px;font:inherit;cursor:pointer}

/* v1.0.2: legible, semantic research reading experience */
.mzc-messages{max-width:1100px;width:min(100%,1100px);gap:36px}
.mzc-scroll{padding-inline:clamp(20px,3.2vw,64px)}
.mzc-msg{font-size:16px;line-height:1.85}
.mzc-assistant .mzc-content{font-size:16px;line-height:1.9;color:#263638;padding:4px 10px 14px}
.mzc-msg-content{min-width:0;width:100%}
.mzc-document{max-width:100%;overflow-wrap:anywhere;word-break:normal;unicode-bidi:plaintext}
.mzc-document p{margin:0 0 17px;line-height:1.92}
.mzc-document h1,.mzc-document h2,.mzc-document h3,.mzc-document h4{color:#123e44;line-height:1.5;letter-spacing:0;scroll-margin-top:90px}
.mzc-document h1{font-size:clamp(25px,2.4vw,32px);margin:30px 0 17px;border-bottom:1px solid #e7dfd0;padding-bottom:12px}
.mzc-document h2{font-size:clamp(21px,2vw,26px);margin:30px 0 15px;border-bottom:1px solid #eee8dd;padding-bottom:8px}
.mzc-document h3{font-size:19px;margin:25px 0 11px}
.mzc-document h4{font-size:17px;margin:20px 0 8px}
.mzc-document h1:first-child,.mzc-document h2:first-child,.mzc-document h3:first-child{margin-top:0}
.mzc-document a,.mzc-source-row a{color:#15616c;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.mzc-document strong{font-weight:760;color:#153e45}
.mzc-document ul,.mzc-document ol{margin:0 0 20px;padding-inline-start:28px}
.mzc-document li{margin:8px 0;padding-inline-start:4px}
.mzc-document blockquote{margin:18px 0;padding:12px 18px;border-inline-start:3px solid #b99965;background:#f8f4ec;border-radius:9px;color:#415457}
.mzc-document blockquote p:last-child{margin-bottom:0}
.mzc-document code{background:#f0eee9;color:#234a50;border-radius:5px;padding:2px 5px;font-size:.9em;direction:ltr;unicode-bidi:isolate}
.mzc-document pre{background:#182e33;color:#eff5f2;border-radius:14px;padding:18px;overflow-x:auto;margin:18px 0;direction:ltr;text-align:left}
.mzc-document pre code{background:transparent;color:inherit;padding:0;white-space:pre;font-size:13px}
.mzc-document hr{border:0;border-top:1px solid #e3dccf;margin:30px 0}
.mzc-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #e2dfd5;border-radius:14px;background:white;margin:18px 0 25px}
.mzc-document table{border-collapse:collapse;width:100%;min-width:480px;font-size:14px;text-align:start}
.mzc-document th,.mzc-document td{padding:12px 14px;border-bottom:1px solid #ece7dc;border-inline-end:1px solid #f1ece5;text-align:start;vertical-align:top;line-height:1.65}
.mzc-document th{background:#eef3f0;color:#173e43;font-weight:750}
.mzc-document tr:nth-child(even) td{background:#fcfbf8}
.mzc-document tr:last-child td{border-bottom:0}
.mzc-source-row{border:1px solid #e4dfd4;border-radius:12px;background:#fff;padding:12px 14px;margin:9px 0;gap:8px}
.mzc-source-row small{font-size:12px;line-height:1.55;color:#7a7873}
.mzc-source-retrieved{border-inline-start:3px solid #338477}
.mzc-source-warning{border-inline-start:3px solid #bf9963}
.mzc-investigation-note{font-size:13px;line-height:1.75;margin:19px 0}
.mzc-analysis{margin-top:20px;padding:18px;border-radius:15px}
.mzc-analysis summary{font-size:15px;line-height:1.6}
.mzc-report-export{font-weight:700;font-size:13px}
.mzc-message-actions{margin-top:13px}
.mzc-compose-zone{width:min(1100px,100%);padding-inline:clamp(14px,2.4vw,32px)}
@media(max-width:760px){
 .mzc-scroll{padding:22px 12px}
 .mzc-messages{gap:22px}
 .mzc-msg{gap:9px}
 .mzc-avatar{height:30px;width:30px;flex:none}
 .mzc-assistant .mzc-content{padding:2px 2px 12px;font-size:15px;line-height:1.82}
 .mzc-document h1{font-size:24px}.mzc-document h2{font-size:20px}
 .mzc-document table{font-size:13px;min-width:420px}
 .mzc-document th,.mzc-document td{padding:10px}
}

/* v2 optional memory, focus, reflection */
.mzc-side-tools{display:flex;gap:8px}.mzc-side-tools button,.mzc-reflection-bar button{border:1px solid rgba(15,74,79,.2);background:#fffaf0;color:#18484e;border-radius:12px;padding:9px 13px;cursor:pointer}
.mzc-reflection-bar{max-width:1000px;width:100%;margin:0 auto;padding:5px 28px;text-align:end}
.mzc-memory-modal:not([hidden]){position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(17,34,36,.58);padding:20px}
.mzc-memory-modal[hidden]{display:none!important}.mzc-memory-panel{background:#fffdf8;color:#263b3c;border:1px solid #dacba9;border-radius:22px;box-shadow:0 24px 80px #132a3255;max-width:570px;width:100%;padding:27px;display:grid;gap:14px}
.mzc-memory-panel h2{margin:0}.mzc-memory-panel p{margin:0;color:#6e7775;line-height:1.6}.mzc-memory-panel textarea{width:100%;border-radius:12px;padding:12px;border:1px solid #d8d6cc;color:#183b3e;background:#fff}.mzc-memory-actions{display:flex;gap:9px;flex-wrap:wrap}.mzc-memory-actions button{padding:10px 14px;border:1px solid #cfcbbd;background:#eef2ef;border-radius:10px;color:#183b3e}
.mzc-focus-mode .mzc-sidebar{display:none}.mzc-focus-mode .mzc-shell{grid-template-columns:1fr}.mzc-focus-mode .mzc-messages{max-width:950px}
@media(max-width:980px){.mzc-focus-mode .mzc-sidebar{display:none}}

#mzc-focus-header{border:1px solid #cfccbd;border-radius:12px;background:#faf8f2;color:#18484e;padding:8px 12px;cursor:pointer}

/* v2.1: progressive disclosure and readable long-form answers */
.mzc-answer-preview{font-size:inherit}
.mzc-answer-details{margin:18px 0 4px;border:1px solid #e5e1d6;border-radius:14px;background:#fbfaf7;overflow:hidden}
.mzc-answer-details>summary{cursor:pointer;list-style:none;padding:13px 18px;color:#16555c;font-size:14px;font-weight:750;display:flex;align-items:center;justify-content:space-between}
.mzc-answer-details>summary::after{content:'⌄';font-size:20px;margin-inline-start:12px}
.mzc-answer-details[open]>summary::after{content:'⌃'}
.mzc-answer-details>summary::-webkit-details-marker{display:none}
.mzc-answer-full{border-top:1px solid #e5e1d6;padding:20px 22px;background:#fff}
.mzc-answer-preview>.mzc-document>:last-child{margin-bottom:5px}
.mzc-assistant .mzc-msg-content{width:100%;max-width:100%;min-width:0}
.mzc-user .mzc-msg-content{max-width:90%}
.mzc-messages{max-width:1040px;margin-inline:auto}
@media(max-width:680px){.mzc-answer-full{padding:12px}.mzc-answer-details>summary{padding:11px 13px}.mzc-user .mzc-msg-content{max-width:100%}}

/* 2.2 workspace and control row */
.mzc-workspace-panel{margin:10px auto;width:min(100% - 32px,1050px);padding:18px;border:1px solid #dfd6c9;background:#fffaf3;border-radius:15px;box-shadow:0 10px 30px #142a3010}
.mzc-workspace-panel[hidden],#mzc-stop[hidden]{display:none!important}
.mzc-workspace-panel label{display:block;font-weight:700;color:#17444b;margin-bottom:9px}
.mzc-workspace-panel textarea{width:100%;box-sizing:border-box;display:block;border:1px solid #d7d2c9;border-radius:10px;padding:12px;resize:vertical;background:white;font:inherit;line-height:1.8;color:#233b3f}
.mzc-workspace-panel button,.mzc-reflection-bar button{margin:5px 4px;padding:9px 13px;min-height:38px;border-radius:9px;border:1px solid #d5c8b5;background:#fcf8f0;color:#184850;cursor:pointer}
#mzc-stop{color:#8f3a32;border-color:#cfaaa0}

/* 2.3 tool provenance */
.mzc-tool-trace{margin:16px 0;background:#f7f9f5;border:1px solid #e2e8dd;border-radius:12px;padding:12px 16px}.mzc-tool-trace summary{cursor:pointer;color:#164950;font-weight:700}.mzc-tool-row{padding:10px 0;border-top:1px solid #e4ebe6;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.mzc-tool-row strong{font-size:13px}.mzc-tool-row a{color:#17636b;font-size:12px;text-decoration:underline}

/* MĪZĀN 3.0 — native Artifacts; all content is rendered as plain text in editor. */
.mzc-artifacts{background:#faf8f2;border:1px solid #dfd9cc;border-radius:16px;padding:18px;margin:14px auto;width:min(100%,1100px);color:#193e43}
.mzc-artifacts[hidden]{display:none!important}
.mzc-artifact-head,.mzc-artifact-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.mzc-artifact-list{display:flex;gap:8px;overflow:auto;margin:14px 0}
.mzc-artifact-tab{border:1px solid #ded9ce;border-radius:10px;background:white;padding:8px 14px;flex:none;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mzc-artifact-tab.active{border-color:#1b6872;background:#edf5f2}
.mzc-artifact-editor{display:grid;grid-template-columns:1fr;gap:8px}
.mzc-artifact-editor label{font-weight:700;font-size:13px}
.mzc-artifact-editor input,.mzc-artifact-editor select,.mzc-artifact-editor textarea{width:100%;box-sizing:border-box;border:1px solid #d7d6cf;border-radius:10px;padding:10px;background:#fff;color:#213c42;font-size:15px}
.mzc-artifact-editor textarea{resize:vertical;min-height:180px;line-height:1.75;unicode-bidi:plaintext}
.mzc-artifact-actions button,.mzc-artifact-head button{border:1px solid #b9c9c5;border-radius:9px;padding:8px 12px;background:#eaf2ee;color:#164952;cursor:pointer}
.mzc-artifact-actions button:focus-visible,.mzc-artifact-tab:focus-visible{outline:3px solid #d1af75;outline-offset:2px}
@media(max-width:600px){.mzc-artifacts{padding:12px}.mzc-artifact-actions button{flex:1}}

/* v4.0 Conversation workspace refinements */
.mzc-session-filters{display:grid;gap:8px;padding:9px 7px 12px}
.mzc-session-filters input,.mzc-session-filters select,.mzc-length-label select{width:100%;min-width:0;border:1px solid #d9dfd7;border-radius:10px;padding:9px 10px;background:#fcfcf9;color:#26464a;font:inherit;font-size:13px}
.mzc-session-manage{min-width:30px;min-height:32px;border:0;background:transparent;color:inherit;cursor:pointer}
.mzc-project-tag{font-size:10px;color:#6b807a;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mzc-length-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#627672}
.mzc-length-label select{padding:5px;width:auto;max-width:150px}
.mzc-msg{scroll-margin-block:72px}
.mzc-msg:focus-within{outline:2px solid #76a6a0;outline-offset:3px}
.mzc-document{font-size:clamp(15px,1.05vw,17px);line-height:1.88}
.mzc-document h1,.mzc-document h2,.mzc-document h3{overflow-wrap:anywhere}
.mzc-compose-zone{max-width:980px}
.mzc-reflection-bar button[hidden]{display:none!important}
@media(max-width:760px){.mzc-session-filters{padding:8px}.mzc-length-label{width:100%;justify-content:space-between}.mzc-compose-zone{padding-inline:12px}.mzc-document{font-size:15px}.mzc-session-manage{min-width:38px;min-height:38px}}


/* v4.1.0 — interface refinement, real brand mark, calmer layout */
html,body.mzc-body{height:100%;overflow:hidden}
.mzc-body .mzc-shell{height:100dvh;min-height:100dvh;overflow:hidden}
.mzc-sidebar,.mzc-main{min-height:0}
.mzc-sidebar{overflow:hidden;padding-block:22px 18px}
.mzc-sessions{flex:1;min-height:0;overflow:auto;padding-inline:2px 4px}
.mzc-sessions::-webkit-scrollbar,.mzc-scroll::-webkit-scrollbar{width:10px;height:10px}
.mzc-sessions::-webkit-scrollbar-thumb,.mzc-scroll::-webkit-scrollbar-thumb{background:#d7cdbf;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.mzc-sessions::-webkit-scrollbar-track,.mzc-scroll::-webkit-scrollbar-track{background:transparent}
.mzc-brand{padding:2px 6px 8px;align-items:center}
.mzc-brand-mark{background:transparent;border:0;box-shadow:none;width:52px;height:52px}
.mzc-brand-logo{width:52px;height:52px;display:block}
.mzc-brand-text strong{font-size:28px;line-height:1.1;letter-spacing:-.02em}
.mzc-brand-text small{font-size:10px;letter-spacing:.16em}
.mzc-header{position:sticky;top:0;z-index:12;backdrop-filter:blur(14px)}
#mzc-menu{display:none;border:1px solid #e4dccd;background:#fffefa;border-radius:12px;width:40px;height:40px}
.mzc-header-actions{gap:10px}
.mzc-indicator{padding:0;border:0;background:transparent;width:40px;height:40px;box-shadow:none}
.mzc-indicator img{width:32px;height:32px;display:block}
.mzc-main{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.mzc-scroll{min-height:0;padding:18px clamp(16px,3vw,48px) 10px;overflow:auto}
.mzc-empty{max-width:920px;margin:clamp(8px,3vh,30px) auto 0;padding-bottom:8px}
.mzc-monogram-wrap{width:98px;height:98px;display:grid;place-items:center;overflow:hidden}
.mzc-monogram-wrap img{width:76px;height:76px;display:block}
.mzc-empty-kicker{margin-top:16px}
.mzc-empty h1{font-size:clamp(30px,3.5vw,56px);line-height:1.25;margin-bottom:10px}
.mzc-empty p{font-size:15px;line-height:1.9}
.mzc-starters{margin-top:26px;grid-template-columns:repeat(3,minmax(0,1fr))}
.mzc-starters button{min-height:82px;text-align:start}
.mzc-messages{width:min(900px,100%);margin:0 auto;padding-bottom:10px}
.mzc-reflection-bar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;max-width:980px;width:100%;margin:0 auto;padding:8px clamp(16px,2.4vw,32px) 4px;text-align:start}
.mzc-reflection-bar[hidden]{display:none!important}
.mzc-reflection-bar button{background:#fffefa;border:1px solid #e2d7c5;color:#17484d;border-radius:12px;padding:10px 14px;min-height:40px}
.mzc-workspace-panel,.mzc-artifacts{max-width:980px;width:100%;margin:0 auto 6px;padding-inline:clamp(16px,2.4vw,32px)}
.mzc-compose-zone{max-width:980px;width:100%;margin:0 auto;padding:10px clamp(16px,2.4vw,32px) 16px;background:linear-gradient(180deg,rgba(249,247,243,0),rgba(249,247,243,.85) 15%,#f9f7f3 35%)}
.mzc-status{max-width:840px;margin:0 auto 8px;min-height:22px;font-size:12px;color:#7b756d}
.mzc-compose{max-width:840px;margin:0 auto;border-radius:24px;padding:12px 14px 12px}
.mzc-modes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.mzc-mode{padding:9px 13px;border-radius:999px;border:1px solid #e8e0d3;background:#fcfaf6}
.mzc-mode.active{background:#e8efec;border-color:#cad9d5}
.mzc-tools{display:grid;grid-template-columns:repeat(5,max-content) 1fr;align-items:center;gap:8px 10px;padding:0 2px 10px}
.mzc-length-label{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:#f8f5ef;border:1px solid #ece3d5}
.mzc-length-label select{border:0;background:transparent;padding:0}
.mzc-tools label:first-child{padding:0;background:transparent}
.mzc-tools > label:not(.mzc-length-label):not(.mzc-attach){padding:8px 10px;border-radius:12px;border:1px solid #ece3d5;background:#fdfbf7}
.mzc-attach,.mzc-tools button{display:inline-flex;align-items:center;justify-content:center;min-height:40px}
#mzc-file-label{justify-self:start;max-width:none;color:#6c716f}
#mzc-input{min-height:96px;max-height:36dvh}
.mzc-compose-bottom{margin-top:2px}
.mzc-compose-bottom span{max-width:82%;line-height:1.8}
.mzc-compose-bottom button{flex:0 0 auto}
.mzc-session-filters{padding:2px 2px 0}
.mzc-session-filters input,.mzc-session-filters select,.mzc-length-label select{border-color:#e4dfd7;background:#fffdfa}
.mzc-side-tools{margin-top:4px}
.mzc-side-tools button{flex:1}
@media(max-width:1080px){
  .mzc-body .mzc-shell{grid-template-columns:300px minmax(0,1fr)}
  .mzc-tools{grid-template-columns:repeat(4,max-content) 1fr}
}
@media(max-width:980px){
  #mzc-menu{display:grid;place-items:center}
  .mzc-body .mzc-shell{grid-template-columns:minmax(0,1fr)}
  .mzc-sidebar{position:fixed;inset:0 0 0 auto;width:min(90vw,330px);transform:translateX(103%);transition:transform .24s ease;z-index:30;box-shadow:0 20px 40px rgba(15,32,35,.18)}
  .mzc-menu-open .mzc-sidebar{transform:translateX(0)}
  .mzc-header{padding-inline:14px}
  .mzc-scroll{padding-inline:16px}
  .mzc-compose-zone,.mzc-reflection-bar,.mzc-workspace-panel,.mzc-artifacts{padding-inline:16px}
}
@media(max-width:760px){
  .mzc-empty{margin-top:8px}
  .mzc-empty h1{font-size:32px}
  .mzc-empty p{font-size:14px}
  .mzc-starters{grid-template-columns:1fr;gap:10px;margin-top:18px}
  .mzc-starters button{min-height:64px;padding:14px 16px}
  .mzc-monogram-wrap{width:82px;height:82px}
  .mzc-monogram-wrap img{width:66px;height:66px}
  .mzc-tools{grid-template-columns:1fr 1fr;align-items:stretch}
  .mzc-length-label,.mzc-tools > label:not(.mzc-length-label):not(.mzc-attach),.mzc-attach,.mzc-tools button{width:100%}
  #mzc-file-label{grid-column:1 / -1}
  .mzc-compose-bottom{flex-direction:row;align-items:center}
  .mzc-compose-bottom span{max-width:74%}
  .mzc-header small{display:none}
}
@media(max-width:520px){
  .mzc-brand-text strong{font-size:25px}
  .mzc-header-actions{gap:8px}
  #mzc-language{padding:8px 10px}
  .mzc-reflection-bar{gap:6px}
  .mzc-reflection-bar button{padding:9px 12px}
}

/* v4.2 accessible native session action dialog */
.mzc-action-dialog{border:1px solid var(--mzc-line,#d4d9df);border-radius:18px;padding:0;max-width:min(440px,calc(100vw - 30px));width:100%;background:var(--mzc-surface,#fff);color:var(--mzc-ink,#17202b);box-shadow:0 24px 75px #0003;direction:inherit}
.mzc-action-dialog::backdrop{background:#101a2b80;backdrop-filter:blur(3px)}
.mzc-action-dialog form{display:grid;gap:14px;padding:24px}.mzc-action-dialog h3{margin:0;font-size:1.2rem}.mzc-action-dialog select,.mzc-action-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #9aa4b366;border-radius:10px;background:transparent;color:inherit;font:inherit}.mzc-action-dialog button{padding:10px 18px;border-radius:10px;cursor:pointer;font:inherit}.mzc-action-dialog button[type=submit]{background:#153f45;color:white;border:0}.mzc-action-dialog label[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.mzc-action-dialog::backdrop{backdrop-filter:none}}

/* v4.2.1 — reading and composition design system, responsive & WCAG-minded */
.mzc-body .mzc-shell{grid-template-columns:clamp(254px,21vw,306px) minmax(0,1fr)}
#mzc{--mz-bg:#f8f7f3;--mz-bg-deep:#efeee8;--mz-paper:#fffefa;--mz-paper-2:#f6f5ef;--mz-ink:#1b2930;--mz-muted:#515e63;--mz-line:#d3d9d7;--mz-accent:#134b50;--mz-accent-2:#165960;--mz-gold:#8a6635;--mz-warm:#725633;--mz-shadow:0 12px 38px rgba(24,44,48,.09);color:var(--mz-ink);background:var(--mz-bg)}
.mzc-body{background:#f8f7f3}
#mzc .mzc-sidebar{background:var(--mz-bg-deep);border-color:var(--mz-line);gap:13px}
#mzc .mzc-sidebar-bg{opacity:.35}
#mzc .mzc-main{background:var(--mz-bg)}
#mzc .mzc-header{min-height:68px;background:var(--mz-paper);border-color:var(--mz-line);padding-block:9px}
#mzc .mzc-header strong{font-size:16px}
#mzc .mzc-header small{color:var(--mz-muted);font-size:12px}
#mzc .mzc-scroll{padding-block:26px 20px;scrollbar-gutter:stable}
#mzc .mzc-messages{max-width:820px;gap:27px}
#mzc .mzc-msg{font-size:16px;line-height:1.85;gap:12px}
#mzc .mzc-msg-content{min-width:0}
#mzc .mzc-content{background:transparent;border:0;box-shadow:none;padding:6px 2px 10px;white-space:pre-wrap;line-height:1.85;letter-spacing:0;overflow-wrap:anywhere}
#mzc .mzc-user .mzc-content{background:#e8efeb;border:1px solid #cfded8;box-shadow:none;padding:13px 18px;max-width:min(100%,680px);line-height:1.75}
#mzc .mzc-document{font-size:16px;line-height:1.85;max-width:100%;hyphens:auto}
#mzc .mzc-document p{line-height:inherit;margin-block:0 1em}
#mzc .mzc-document h1,#mzc .mzc-document h2,#mzc .mzc-document h3{line-height:1.42;letter-spacing:-.015em;margin-block:1.6em .6em}
#mzc .mzc-document li{margin-block:.4em;padding-inline-start:.2em}
#mzc .mzc-document a,#mzc .mzc-source-row a{color:#115d6a;text-decoration:underline;text-underline-offset:3px}
#mzc .mzc-document blockquote{border-inline-start:3px solid var(--mz-accent);padding-inline-start:18px;color:var(--mz-muted)}
#mzc .mzc-compose-zone{padding-block:8px 12px;background:linear-gradient(180deg,transparent,var(--mz-bg) 23%)}
#mzc .mzc-compose{max-width:820px;background:var(--mz-paper);border:1px solid var(--mz-line);box-shadow:var(--mz-shadow);border-radius:22px;padding:12px 15px 11px}
#mzc .mzc-modes{margin-bottom:8px;gap:6px}
#mzc .mzc-mode{background:transparent;color:var(--mz-muted);font-size:13px;border:1px solid transparent;padding:8px 12px;min-height:38px}
#mzc .mzc-mode.active{background:#e5eeeb;color:#10464c;border-color:#bed1cb}
#mzc #mzc-input{font-size:16px;line-height:1.8;min-height:90px;max-height:min(36dvh,320px);padding:12px 5px;caret-color:var(--mz-accent);outline:0}
#mzc #mzc-input::placeholder{color:#69777c;opacity:1}
#mzc .mzc-compose:focus-within{border-color:#337b81;box-shadow:0 0 0 3px #26727b33,var(--mz-shadow)}
#mzc .mzc-compose-bottom{font-size:12px;color:var(--mz-muted)}
#mzc .mzc-compose-bottom button{min-width:46px;min-height:46px;width:46px;height:46px;box-shadow:none}
#mzc button,#mzc select,#mzc input{accent-color:var(--mz-accent)}
#mzc button:focus-visible,#mzc a:focus-visible,#mzc textarea:focus-visible,#mzc select:focus-visible,#mzc input:focus-visible{outline:3px solid #258994;outline-offset:3px}
#mzc .mzc-session-title{font-size:13px;min-height:44px}
#mzc .mzc-session-delete,#mzc .mzc-session-manage{min-width:44px;min-height:44px}
#mzc .mzc-starters button{font-size:14px;border-color:var(--mz-line);box-shadow:none}
#mzc .mzc-side-intro{background:var(--mz-paper);border-color:var(--mz-line)}
#mzc .mzc-side-intro p{font-size:13px;color:var(--mz-muted)}
#mzc .mzc-footnote{color:var(--mz-muted)}
#mzc .mzc-theme-toggle{width:44px;height:44px;border:1px solid var(--mz-line);border-radius:12px;background:var(--mz-paper);color:var(--mz-ink);font-size:23px;display:grid;place-items:center}
#mzc .mzc-tools-toggle{border:0;background:transparent;color:var(--mz-accent);font-size:12px;font-weight:700;min-height:30px;padding:3px 8px;text-align:start}
#mzc .mzc-tools{display:none;grid-template-columns:repeat(4,max-content) 1fr;gap:8px;margin:4px 0 10px;padding:10px 2px;border-block:1px solid var(--mz-line)}
#mzc.mzc-tools-open .mzc-tools{display:grid}
#mzc .mzc-tools select,#mzc .mzc-tools button,#mzc .mzc-session-filters input,#mzc .mzc-session-filters select{background:var(--mz-paper);color:var(--mz-ink);border-color:var(--mz-line);font-size:13px}
#mzc[data-theme=dark]{color-scheme:dark;--mz-bg:#151d22;--mz-bg-deep:#19252a;--mz-paper:#202c31;--mz-paper-2:#243239;--mz-ink:#edf4f2;--mz-muted:#b6c7c7;--mz-line:#405157;--mz-accent:#a0d9d3;--mz-accent-2:#a0d9d3;--mz-gold:#e1c18a;--mz-warm:#e5c28f;--mz-shadow:0 15px 42px #0005}
#mzc[data-theme=dark] .mzc-user .mzc-content{background:#29443f;border-color:#45695f;color:#f5f9f7}
#mzc[data-theme=dark] .mzc-mode.active{background:#294c47;border-color:#49746d;color:#dcfcf3}
#mzc[data-theme=dark] .mzc-document a,#mzc[data-theme=dark] .mzc-source-row a{color:#93e2df}
#mzc[data-theme=dark] .mzc-content,#mzc[data-theme=dark] .mzc-document{color:var(--mz-ink)}
#mzc[data-theme=dark] .mzc-reflection-bar button,#mzc[data-theme=dark] .mzc-length-label,#mzc[data-theme=dark] .mzc-attach,#mzc[data-theme=dark] .mzc-tools>label{background:var(--mz-paper);color:var(--mz-ink);border-color:var(--mz-line)}
#mzc[data-theme=dark] .mzc-new,#mzc[data-theme=dark] .mzc-compose-bottom button{background:#b2e5d8;color:#112a2b}
#mzc[data-theme=dark] .mzc-document pre{background:#0b1419;color:#e7f4f0}
#mzc[data-theme=dark] .mzc-answer-details,#mzc[data-theme=dark] .mzc-tool-trace,#mzc[data-theme=dark] .mzc-news,#mzc[data-theme=dark] .mzc-analysis,#mzc[data-theme=dark] .mzc-table-scroll{background:var(--mz-paper);color:var(--mz-ink);border-color:var(--mz-line)}
#mzc[data-theme=dark] .mzc-action-dialog{background:var(--mz-paper);color:var(--mz-ink)}
@media(max-width:980px){.mzc-body #mzc.mzc-shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 #mzc .mzc-scroll{padding:15px 12px 12px}
 #mzc .mzc-header{min-height:58px}
 #mzc .mzc-header strong{font-size:15px}
 #mzc .mzc-messages{gap:20px}
 #mzc .mzc-msg{font-size:16px;gap:8px}
 #mzc .mzc-avatar{width:30px;height:30px;border-radius:11px}
 #mzc .mzc-compose-zone{padding:5px 10px max(8px,env(safe-area-inset-bottom))}
 #mzc .mzc-compose{padding:10px 12px;border-radius:19px}
 #mzc #mzc-input{min-height:68px;max-height:28dvh}
 #mzc .mzc-modes{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;padding-bottom:3px}
 #mzc .mzc-mode{white-space:nowrap;flex:none}
 #mzc .mzc-tools{grid-template-columns:1fr 1fr}
 #mzc .mzc-compose-bottom span{display:none}
 #mzc .mzc-compose-bottom{justify-content:flex-end}
 #mzc .mzc-footnote{display:none}
 #mzc .mzc-empty h1{font-size:clamp(26px,7vw,35px)}
 #mzc .mzc-starters{gap:8px}
 #mzc .mzc-starters button{min-height:52px}
}
@media(max-width:390px){#mzc .mzc-header-actions{gap:4px}#mzc .mzc-indicator{display:none}#mzc #mzc-language{max-width:95px}#mzc .mzc-theme-toggle{width:40px;height:40px}}
@media(prefers-contrast:more){#mzc{--mz-line:#637477}#mzc[data-theme=dark]{--mz-line:#a6b6b8}#mzc button{border-width:2px}}
@media(prefers-reduced-motion:reduce){#mzc .mzc-starters button:hover{transform:none}#mzc .mzc-scroll{scroll-behavior:auto}}

/* RTL/LTR mobile sidebar anchoring */
@media(max-width:980px){
 html[dir=rtl] #mzc .mzc-sidebar{inset:0 auto 0 0;transform:translateX(-103%)}
 html[dir=rtl] .mzc-menu-open #mzc .mzc-sidebar{transform:translateX(0)}
 html[dir=ltr] #mzc .mzc-sidebar{inset:0 0 0 auto;transform:translateX(103%)}
 html[dir=ltr] .mzc-menu-open #mzc .mzc-sidebar{transform:translateX(0)}
}


/* v4.2.2 — desktop reading geometry and compact composer.
   One independent message scroller; sidebar conversation list scrolls separately. */
html:has(body.mzc-body){overflow:hidden;scrollbar-width:none}
body.mzc-body{height:100dvh;max-height:100dvh;overflow:hidden}
#mzc.mzc-shell{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;grid-template-columns:clamp(250px,19vw,300px) minmax(0,1fr)}
#mzc .mzc-main{min-height:0;min-width:0;overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto auto auto}
#mzc .mzc-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:auto;padding:22px clamp(18px,3.2vw,54px) 18px}
#mzc .mzc-sidebar{min-height:0;overflow:hidden;gap:11px;padding-block:18px 14px}
#mzc .mzc-sessions{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
#mzc .mzc-sidebar-bottom{flex:0 0 auto}
#mzc .mzc-side-intro{padding:10px 12px;border-radius:13px}
#mzc .mzc-side-intro p{line-height:1.6}
#mzc .mzc-messages{max-width:800px;width:100%;margin:0 auto;gap:22px}
#mzc .mzc-document{font-size:16px;line-height:1.9;overflow-wrap:anywhere}
#mzc .mzc-empty{max-width:660px;margin:clamp(12px,5vh,52px) auto 0;padding:0 0 16px}
#mzc .mzc-empty h1{font-size:clamp(31px,3vw,46px);line-height:1.35;max-width:640px}
#mzc .mzc-monogram-wrap{width:72px;height:72px;border-radius:50%;margin-bottom:6px}
#mzc .mzc-monogram-wrap img{width:58px;height:58px}
#mzc .mzc-starters{gap:10px;margin-top:22px}
#mzc .mzc-starters button{min-height:54px;padding:12px;border-radius:12px}
#mzc .mzc-reflection-bar{max-width:800px;padding-block:3px;gap:6px}
#mzc .mzc-reflection-bar button{min-height:36px;padding:6px 11px;font-size:13px}
#mzc .mzc-compose-zone{flex:0 0 auto;width:100%;max-width:none;padding:5px clamp(18px,3.2vw,54px) 13px;background:var(--mz-bg)}
#mzc .mzc-status{max-width:800px;min-height:0;margin:0 auto;font-size:12px;padding:0 4px}
#mzc .mzc-status:empty{display:none}
#mzc .mzc-compose{max-width:800px;padding:10px 14px 9px;border-radius:20px}
#mzc .mzc-modes{margin:0 0 3px;gap:5px}
#mzc .mzc-mode{min-height:34px;padding:5px 11px;font-size:12px}
#mzc .mzc-tools-toggle{min-height:28px;font-size:12px;padding:2px 5px}
#mzc #mzc-input{display:block;min-height:45px;height:45px;max-height:min(32dvh,260px);padding:8px 4px;resize:none;overflow-y:auto;line-height:1.65}
#mzc .mzc-compose-bottom{min-height:40px;padding-top:6px}
#mzc .mzc-compose-bottom span{font-size:11px;line-height:1.45;max-width:77%}
#mzc .mzc-compose-bottom button{width:42px;height:42px;min-width:42px;min-height:42px;border-radius:13px}
#mzc .mzc-footnote{display:none}
#mzc .mzc-tools{max-height:32dvh;overflow-y:auto;grid-template-columns:repeat(3,minmax(0,max-content));align-content:start}
#mzc .mzc-workspace-panel,#mzc .mzc-artifacts{max-height:42dvh;overflow:auto;flex:0 1 auto}
#mzc .mzc-scroll::-webkit-scrollbar,#mzc .mzc-sessions::-webkit-scrollbar{width:7px}
#mzc .mzc-scroll::-webkit-scrollbar-thumb,#mzc .mzc-sessions::-webkit-scrollbar-thumb{background:#a4aaa6;border-radius:8px}
@media(max-width:980px){#mzc.mzc-shell{grid-template-columns:minmax(0,1fr)}#mzc .mzc-compose-zone{padding-inline:14px}}
@media(max-width:760px){#mzc .mzc-scroll{padding:12px 14px}#mzc .mzc-empty{margin-top:12px}#mzc .mzc-empty h1{font-size:30px}#mzc .mzc-compose-zone{padding:5px 10px max(8px,env(safe-area-inset-bottom))}#mzc .mzc-compose{padding:8px 11px}#mzc #mzc-input{min-height:42px;height:42px;max-height:28dvh}#mzc .mzc-modes{overflow-x:auto;flex-wrap:nowrap}#mzc .mzc-tools{grid-template-columns:1fr 1fr}#mzc .mzc-reflection-bar{overflow-x:auto;flex-wrap:nowrap}#mzc .mzc-reflection-bar button{white-space:nowrap}}
@media(max-height:650px) and (min-width:761px){#mzc .mzc-empty{margin-top:2px}#mzc .mzc-empty h1{font-size:31px}#mzc .mzc-monogram-wrap{width:52px;height:52px}#mzc .mzc-monogram-wrap img{width:42px;height:42px}#mzc .mzc-starters{margin-top:10px}}

/* v4.2.3 — compact laptop composer: controls and optional tools share one line. */
#mzc .mzc-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;padding:7px 11px 6px;border-radius:17px}
#mzc .mzc-modes{grid-column:1;grid-row:1;align-self:center;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:3px;min-width:0;margin:0;padding:0}
#mzc .mzc-modes::-webkit-scrollbar{display:none}
#mzc .mzc-mode{min-height:32px;padding:4px 9px;font-size:12px;white-space:nowrap}
#mzc .mzc-tools-toggle{grid-column:2;grid-row:1;justify-self:end;min-height:32px;padding:3px 7px;white-space:nowrap}
#mzc .mzc-tools{grid-column:1/-1;grid-row:2;margin:2px 0 3px;padding:6px 2px}
#mzc #mzc-input{grid-column:1/-1;min-height:35px;height:35px;max-height:min(28dvh,220px);padding:5px 3px;line-height:1.55;font-size:16px;box-sizing:border-box;margin:0}
#mzc .mzc-compose-bottom{grid-column:1/-1;min-height:36px;margin:0;padding-top:4px;justify-content:flex-end}
#mzc .mzc-compose-bottom span{display:none}
#mzc .mzc-compose-bottom button{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:10px}
#mzc .mzc-compose-zone{padding-top:3px;padding-bottom:7px}
@media(max-width:760px){#mzc .mzc-compose{padding:6px 9px 5px;grid-template-columns:minmax(0,1fr) auto}#mzc .mzc-mode{font-size:11px;padding:4px 7px}#mzc #mzc-input{height:35px;min-height:35px;max-height:25dvh}#mzc .mzc-compose-zone{padding-bottom:max(6px,env(safe-area-inset-bottom))}}

/* Beta 2: compact project navigator and non-modal artifact history. */
#mzc .mzc-project-head{display:flex;align-items:center;justify-content:space-between;margin:12px 0 4px;gap:8px}
#mzc .mzc-project-head button{min-width:32px;min-height:32px;border-radius:9px}
#mzc .mzc-projects{display:grid;gap:3px;max-height:200px;overflow:auto;min-height:0}
#mzc .mzc-project-row{display:flex;gap:3px;align-items:center;min-width:0}
#mzc .mzc-project-select{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
#mzc .mzc-project-control{flex:0 0 32px;min-height:32px;border-radius:8px}
#mzc .mzc-revision-head{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
#mzc .mzc-revisions{max-height:180px;overflow:auto;display:grid;gap:5px}
#mzc .mzc-revision-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px;border-bottom:1px solid var(--mzc-line,rgba(125,125,125,.2))}
#mzc .mzc-revision-row span{font-size:.85em;overflow-wrap:anywhere}
.mzc-ui-overlay{position:fixed;inset:0;z-index:2147483646;background:rgba(0,0,0,.48);display:flex;align-items:center;justify-content:center;padding:18px}
.mzc-ui-dialog{background:var(--mzc-bg,#fff);color:var(--mzc-text,#18212d);border:1px solid var(--mzc-line,#d6dce3);border-radius:15px;width:min(100%,420px);padding:20px;box-shadow:0 18px 60px #0003;display:grid;gap:16px;direction:inherit}
.mzc-ui-dialog h3{font-size:1rem;margin:0;line-height:1.6}
.mzc-ui-dialog input{padding:10px 12px;border-radius:9px;border:1px solid #8b98a4;background:transparent;color:inherit;width:100%;box-sizing:border-box}
.mzc-ui-actions{display:flex;gap:8px;justify-content:flex-end}
.mzc-ui-actions button{min-height:40px;padding:7px 14px;border-radius:9px}
.mzc-ui-overlay :focus-visible{outline:3px solid #3275b9;outline-offset:2px}

/* v4.3.0-beta.4 — definitive compact composer and uninterrupted long-form reading. */
#mzc .mzc-main{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;overflow:hidden}
#mzc .mzc-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#mzc .mzc-compose-zone{box-sizing:border-box;align-self:end;min-height:0;height:auto;max-height:55dvh;overflow-y:visible;margin:0;width:100%;padding:5px clamp(12px,2.5vw,34px) 9px}
#mzc .mzc-compose{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-content:start;align-items:center;min-height:0;height:auto;max-height:48dvh;overflow:visible;row-gap:2px;padding:7px 12px 6px;border-radius:17px}
#mzc .mzc-modes{grid-row:1;grid-column:1;min-height:0;align-self:center}
#mzc .mzc-tools-toggle{grid-row:1;grid-column:2}
#mzc .mzc-tools{grid-row:2;grid-column:1/-1;min-height:0;max-height:24dvh;overflow-y:auto}
#mzc #mzc-input{grid-column:1/-1;grid-row:auto;display:block;align-self:start;box-sizing:border-box;width:100%;min-height:35px!important;height:35px;max-height:min(25dvh,180px);padding:5px 3px;margin:0;line-height:1.55;resize:none;overflow-y:hidden}
#mzc .mzc-compose-bottom{grid-column:1/-1;grid-row:auto;align-self:start;min-height:36px;height:36px;max-height:36px;margin:0;padding:0;justify-content:flex-end;align-items:center}
#mzc .mzc-compose-bottom button{width:38px;height:38px;min-height:38px;min-width:38px}
#mzc .mzc-assistant .mzc-content{max-width:100%;padding:2px 0 10px;background:transparent;box-shadow:none;border:0}
#mzc .mzc-assistant .mzc-document{max-width:100%;background:transparent;box-shadow:none;border:0;padding:0}
#mzc .mzc-answer-details{display:none}
#mzc .mzc-msg-content{min-width:0;width:100%}
@media(max-width:760px){#mzc .mzc-compose-zone{padding:4px 9px max(6px,env(safe-area-inset-bottom))}#mzc .mzc-compose{padding:6px 9px 5px;max-height:55dvh}#mzc #mzc-input{max-height:22dvh}}

/* v4.3.1 — focus geometry recovery: must override the desktop grid in v4.2.2.
   The earlier .mzc-focus-mode .mzc-shell rule loses to #mzc.mzc-shell. */
body.mzc-body.mzc-focus-mode #mzc.mzc-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;max-width:100%;margin:0;
}
body.mzc-body.mzc-focus-mode #mzc .mzc-sidebar{display:none}
body.mzc-body.mzc-focus-mode #mzc .mzc-main{
  grid-column:1 / -1;width:100%;min-width:0;max-width:100%;margin:0 auto;
}
body.mzc-body.mzc-focus-mode #mzc .mzc-messages,
body.mzc-body.mzc-focus-mode #mzc .mzc-reflection-bar,
body.mzc-body.mzc-focus-mode #mzc .mzc-status,
body.mzc-body.mzc-focus-mode #mzc .mzc-compose{
  width:100%;max-width:900px;margin-inline:auto;
}
/* Keep wide/long evidence and code inside the message scroller. */
#mzc .mzc-msg,#mzc .mzc-msg-content,#mzc .mzc-content,
#mzc .mzc-document{min-width:0;max-width:100%}
#mzc .mzc-document pre,#mzc .mzc-table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:760px){
  body.mzc-body.mzc-focus-mode #mzc.mzc-shell{grid-template-columns:minmax(0,1fr)}
  body.mzc-body.mzc-focus-mode #mzc .mzc-main{width:100%}
}

/* v4.5.2 — Editorial UX. Deliberately scoped to the chat root, preserving theme styles. */
#mzc{--mzc-reading-width:880px;--mzc-control-font:"IBM Plex Sans Arabic","Noto Sans Arabic",system-ui,sans-serif;--mzc-reading-font:"Noto Naskh Arabic","IBM Plex Sans Arabic",serif}
#mzc .mzc-scroll{padding-block:22px 12px;scrollbar-gutter:stable}
#mzc .mzc-messages{width:100%;max-width:var(--mzc-reading-width);gap:22px}
#mzc .mzc-msg{font-family:var(--mzc-control-font);font-size:16px;line-height:1.8;min-width:0}
#mzc .mzc-user .mzc-content{background:#e8f0ed;border:1px solid #d6e4de;box-shadow:none;border-radius:18px;padding:13px 17px;max-width:min(100%,720px);font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
#mzc .mzc-assistant .mzc-content{font-size:17px;line-height:1.85}
#mzc[dir="rtl"] .mzc-assistant .mzc-document,#mzc .mzc-document:dir(rtl){font-family:var(--mzc-reading-font);font-size:19px;line-height:1.85;letter-spacing:normal}
#mzc .mzc-document h1,#mzc .mzc-document h2,#mzc .mzc-document h3{font-family:"Noto Kufi Arabic","IBM Plex Sans Arabic",system-ui,sans-serif;font-weight:750;line-height:1.55;letter-spacing:normal;overflow-wrap:anywhere}
#mzc .mzc-document h1{font-size:clamp(23px,2vw,28px);margin-block:1.25em .45em}
#mzc .mzc-document h2{font-size:clamp(20px,1.7vw,23px);margin-block:1.35em .5em}
#mzc .mzc-document h3{font-size:18px;margin-block:1.2em .4em}
#mzc .mzc-document p{margin-block:.55em 1em}
#mzc .mzc-document ul,#mzc .mzc-document ol{padding-inline-start:1.45em}
#mzc .mzc-document li{margin-block:.35em;line-height:1.75}
#mzc .mzc-document table{font-family:var(--mzc-control-font);font-size:14px;line-height:1.55}
#mzc .mzc-document pre{font-size:13px;direction:ltr;text-align:start;unicode-bidi:plaintext}
#mzc .mzc-compose-zone{padding-block:4px max(9px,env(safe-area-inset-bottom));max-height:44dvh}
#mzc .mzc-compose{max-width:var(--mzc-reading-width);max-height:40dvh;min-height:0;padding:8px 13px 7px;row-gap:3px;box-shadow:0 8px 28px rgba(18,55,57,.07);border-radius:18px}
#mzc #mzc-input{height:38px;min-height:38px!important;max-height:min(22dvh,160px);line-height:1.65;font-family:var(--mzc-control-font);font-size:16px;resize:none;overflow-y:auto}
#mzc .mzc-compose-bottom{height:38px;min-height:38px;max-height:38px}
#mzc .mzc-modes{gap:4px;margin:0;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
#mzc .mzc-mode{white-space:nowrap;padding:6px 9px;font-family:var(--mzc-control-font);font-size:12px}
#mzc .mzc-tools-toggle{white-space:nowrap}
#mzc .mzc-status{max-width:var(--mzc-reading-width);margin-inline:auto;min-height:18px;line-height:1.45}
#mzc .mzc-memory-panel{max-height:min(85dvh,720px);overflow:auto}
#mzc .mzc-memory-panel textarea{max-height:230px;min-height:110px}
body.mzc-body.mzc-focus-mode #mzc .mzc-messages,body.mzc-body.mzc-focus-mode #mzc .mzc-compose,body.mzc-body.mzc-focus-mode #mzc .mzc-status{max-width:var(--mzc-reading-width)}
#mzc[data-theme="dark"] .mzc-user .mzc-content{background:#1c3537;border-color:#355355;color:var(--mz-ink)}
@media(max-width:760px){#mzc .mzc-scroll{padding:13px 12px}#mzc .mzc-messages{gap:16px}#mzc .mzc-msg{font-size:15px;gap:7px}#mzc .mzc-assistant .mzc-content{font-size:16px}#mzc[dir="rtl"] .mzc-assistant .mzc-document{font-size:17px;line-height:1.8}#mzc .mzc-document h1{font-size:23px}#mzc .mzc-document h2{font-size:20px}#mzc .mzc-user .mzc-content{font-size:15px}#mzc .mzc-compose-zone{padding:4px 9px max(7px,env(safe-area-inset-bottom))}#mzc .mzc-compose{padding:7px 10px 6px;max-height:45dvh}#mzc #mzc-input{max-height:18dvh;font-size:16px}#mzc .mzc-tools{max-height:22dvh}}
@media(prefers-reduced-motion:reduce){#mzc .mzc-scroll{scroll-behavior:auto}}

/* v5 turn-state communication. Failures are information, never fabricated assistant prose. */
#mzc .mzc-generation-failed { color:var(--mzc-error, #923e34);border-inline-start:3px solid currentColor;padding-inline-start:.85rem;line-height:1.7; }
#mzc .mzc-generation-warning { color:var(--mzc-muted, #746b59);font-size:.87em;padding:.25rem 0; }
 .mzc-ui-dialog textarea { box-sizing:border-box;width:100%;max-width:100%;resize:vertical;min-height:9rem;border-radius:12px;padding:.8rem;font:inherit;line-height:1.55; }
#mzc .mzc-project-control { flex-shrink:0; }

#mzc .mzc-streaming { opacity:.88; }
#mzc .mzc-streaming-content {white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;line-height:1.75;}

/* v5.0.0-rc.2 — compact composer and recoverable long-prompt display */
#mzc .mzc-compose-zone{max-height:min(48dvh,390px)}
#mzc .mzc-compose{max-height:min(43dvh,350px)}
#mzc #mzc-input{min-height:38px!important;max-height:min(15dvh,112px);overflow-y:auto;scrollbar-width:thin}
#mzc .mzc-user-preview{white-space:pre-wrap;overflow-wrap:anywhere}
#mzc .mzc-long-prompt{margin-top:10px;border-top:1px solid var(--mz-line);padding-top:7px}
#mzc .mzc-long-prompt summary{cursor:pointer;color:var(--mz-accent);font-weight:650;font-size:12px}
#mzc .mzc-long-prompt-content{white-space:pre-wrap;overflow-wrap:anywhere;max-height:48dvh;overflow-y:auto;padding-block:12px;scrollbar-width:thin}
#mzc .mzc-error-code{display:block;margin-top:5px;font-family:ui-monospace,monospace;font-size:11px;direction:ltr;text-align:start;color:var(--mz-muted)}
@media(max-width:760px){#mzc .mzc-compose-zone{max-height:47dvh}#mzc .mzc-compose{max-height:44dvh}#mzc #mzc-input{max-height:min(14dvh,100px)}}

/* v5.0.0-rc.4 — settings in the sidebar; no per-message web-search checkbox. */
#mzc .mzc-settings{flex:0 0 auto;border-top:1px solid var(--mz-line);padding-top:9px;min-width:0}
#mzc .mzc-settings-toggle{display:flex;align-items:center;gap:9px;width:100%;text-align:start;background:transparent;color:var(--mz-ink);border:0;border-radius:12px;padding:9px 11px;font:inherit;font-weight:650;cursor:pointer}
#mzc .mzc-settings-toggle:hover,#mzc .mzc-settings-toggle:focus-visible{background:var(--mz-paper)}
#mzc .mzc-settings-chevron{margin-inline-start:auto;transition:transform .18s}
#mzc .mzc-settings-toggle[aria-expanded=true] .mzc-settings-chevron{transform:rotate(180deg)}
#mzc .mzc-settings-panel:not([hidden]){display:grid;gap:7px;background:var(--mz-paper);border:1px solid var(--mz-line);border-radius:13px;padding:12px;margin-top:3px}
#mzc .mzc-settings-panel[hidden]{display:none!important}
#mzc .mzc-setting-row{display:flex;align-items:center;justify-content:space-between;gap:9px;cursor:pointer}
#mzc .mzc-setting-copy{display:grid;gap:4px;min-width:0}
#mzc .mzc-setting-copy strong{font-size:12px;line-height:1.5}
#mzc .mzc-setting-copy small{font-size:11px;line-height:1.55;color:var(--mz-muted)}
#mzc #mzc-web-enabled{appearance:none;flex:0 0 34px;height:20px;border:1px solid var(--mz-line);background:var(--mz-muted);border-radius:20px;cursor:pointer;position:relative;transition:background .15s}
#mzc #mzc-web-enabled::after{content:'';position:absolute;inset-block-start:2px;inset-inline-start:2px;width:14px;height:14px;border-radius:50%;background:white;transition:inset-inline-start .15s}
#mzc #mzc-web-enabled:checked{background:var(--mz-accent);border-color:var(--mz-accent)}
#mzc #mzc-web-enabled:checked::after{inset-inline-start:16px}
#mzc #mzc-web-enabled:disabled{opacity:.55;cursor:wait}
#mzc #mzc-web-enabled:focus-visible{outline:3px solid var(--mz-accent);outline-offset:3px}
#mzc .mzc-settings-feedback{min-height:1.1em;color:var(--mz-muted);font-size:11px}
@media(max-height:720px){#mzc .mzc-sidebar{overflow-y:auto}#mzc .mzc-sessions{min-height:64px}}

/* Live connectivity diagnostic is separate from the saved search preference. */
#mzc #mzc-web-test{font:inherit;color:var(--mz-accent);background:transparent;border:1px solid var(--mz-line);border-radius:10px;padding:7px 10px;cursor:pointer}
#mzc #mzc-web-test:disabled{opacity:.6;cursor:wait}
#mzc #mzc-web-test-result{font-size:12px;color:var(--mz-ink);overflow-wrap:anywhere}

/* rc.23: the list of earlier conversations collapsed to 0 px on ordinary screens (the sidebar's other blocks took all the height) */
#mzc .mzc-sessions{min-height:150px}
#mzc .mzc-sidebar{overflow-y:auto}
/* each message takes the direction of its own text */
#mzc .mzc-msg-content,#mzc #mzc-input{unicode-bidi:plaintext}
