.manzil-page {
  --mz-accent:#8dcaff;
  --mz-hero:#132b4d;
  display:grid;
  gap:14px;
  color:var(--ink);
  font-size:14px;
  line-height:1.45;
}
:root[data-theme="light"] .manzil-page {
  --mz-accent:#195492;
  --mz-hero:#e9f2ff;
}
.mz-hero,.mz-panel {
  min-width:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--s1);
}
.mz-hero {
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  background:linear-gradient(110deg,var(--mz-hero),var(--s1));
}
.mz-hero img { width:clamp(64px,8vw,100px); height:auto; flex:none; }
.mz-eyebrow { color:var(--mz-accent); font-size:12px; font-weight:650; }
:root .mz-hero h2 { margin:4px 0 6px; font-size:clamp(25px,2.4vw,34px); line-height:1.12; }
.mz-hero p,.mz-report p { margin:0; color:var(--mute); }
.mz-tools { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
:root .manzil-page button { min-height:42px; padding:8px 11px; font-size:13px; }
:root .mz-tools button {
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  text-align:left;
  background:var(--s1);
  color:var(--ink);
  border:1px solid var(--line);
}
.mz-tools b { display:block; line-height:1.25; }
.mz-tools small { display:block; margin-top:4px; color:var(--mute); font-size:12px; font-weight:400; line-height:1.35; }
.mz-icon {
  display:grid;
  flex:none;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:8px;
  color:var(--mz-accent);
  background:color-mix(in srgb,var(--mz-accent) 14%,var(--s1));
}
.mz-icon .ico,.mz-shortcuts .ico,.mz-prompts .ico,.mz-compose .ico { width:17px; height:17px; flex:none; }
.mz-report-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; }
:root .mz-panel h3 { margin:0; font-size:16px; }
#manzilReportBody { margin-top:10px; font-size:12px; color:var(--mute); }
.mz-metrics { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line); }
.mz-metrics > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px; padding:8px 4px 4px; }
.mz-metrics dd { margin:0; color:var(--ink); font-weight:700; font-variant-numeric:tabular-nums; }
.mz-shortcuts,.mz-prompts { display:flex; flex-wrap:wrap; gap:7px; }
:root .mz-shortcuts button,:root .mz-prompts button { display:inline-flex; align-items:center; gap:6px; color:var(--ink); background:var(--s2); }
.mz-shortcuts .ico,.mz-prompts .ico { color:var(--mz-accent); }
.mz-chat { display:grid; gap:10px; }
.mz-messages { display:grid; align-content:start; gap:8px; max-height:360px; overflow:auto; padding:2px; }
.mz-message { display:flex; align-items:flex-start; gap:8px; }
.mz-message img { flex:none; }
.mz-message.mz-user { justify-content:flex-end; }
.mz-bubble { min-width:0; max-width:min(92%,62ch); padding:8px 11px; border:1px solid var(--line); border-radius:10px; background:var(--s2); }
.mz-user .mz-bubble { background:color-mix(in srgb,var(--mz-accent) 11%,var(--s1)); }
.mz-bubble b { color:var(--mz-accent); font-size:12px; }
.mz-bubble p { margin:3px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.mz-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:6px; border:1px solid var(--line); border-radius:10px; background:var(--s2); }
:root .mz-compose textarea { width:100%; min-width:0; margin:0; padding:8px; background:transparent; color:var(--ink); border:0; font:inherit; resize:vertical; }
:root .manzil-page button.pri { background:#155bb4; color:#fff; box-shadow:none; }
:root .mz-compose button { display:flex; align-items:center; gap:5px; }
.mz-status,.mz-note { margin:0; font-size:12px; color:var(--mute); }
.mz-status:empty { display:none; }
.manzil-page :focus-visible { outline:2px solid var(--mz-accent); outline-offset:2px; }
@media(max-width:1050px) {
  .mz-tools { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
  .mz-hero,.mz-panel { padding:12px; }
  .mz-hero { gap:10px; }
  .mz-report-head button { grid-column:2; justify-self:start; }
  .mz-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :root .mz-tools button { padding:8px; }
  .mz-tools .mz-icon { width:25px; height:25px; }
  .mz-message img { width:26px; height:26px; }
}
