/* Creatve.Zone single stylesheet vone1 — one house, one standard */

/* ==== merged: cz-chrome.css ==== */

/* 2026-12-01-fontfix */
/* cz-ug-face-retired */
/* cz-ug-face-retired */
/* ==========================================================================
   Creatve.Zone — Unified Studio Capsule (cz-chrome)
   A single floating, auto-hiding pill bar shared by every /tools/* page.
   It never pushes content: pages keep their own layout and simply reserve a
   little top space so the capsule never covers a control.
   ========================================================================== */
:root {
  --czc-h: 46px;
  --czc-gap: 12px;
  --czc-bg: #08080a;
  --czc-card: #16171d;
  --czc-border: rgba(255, 255, 255, 0.09);
  --czc-border-strong: rgba(255, 255, 255, 0.22);
  --czc-text: #f4f4f6;
  --czc-sub: #a3a7b4;
  --czc-mute: #6d7280;
  --czc-emerald: #6ee7b7;
  --czc-font: "Inter", "Noto Sans SC", Alkatip Basma Tom,system-ui, -apple-system, sans-serif;
  --czc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* legacy chrome retired everywhere */
html.czc-on #cz-tool-toolbar,
html.czc-on .cz-toolbar-reveal,
html.czc-on #cz-toolbar-reveal,
html.czc-on [data-cz-legacy-toolbar],
html.czc-on .czb-seg,
html.czc-on .cz-bar-pill,
html.czc-on #cz-tpl-trigger,
html.czc-on #cz-hist-trigger,
html.czc-on #cz-script-workflow,
html.czc-on .cz-workflow-pill,
html.czc-on #cz-header-dock,
html.czc-on .cz-balance-pill,
html.czc-on .cz-balance-num,
html.czc-on .cz-balance-topup,
html.czc-on [aria-label="语言选择"],
html.czc-on button[aria-label="语言选择"] {
  display: none !important;
  visibility: hidden !important;
}

/* the capsule itself */
.czc-bar {
  position: fixed;
  inset-block-start: var(--czc-gap);
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100vw - 24px);
  height: var(--czc-h);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--czc-border);
  background: rgba(18, 19, 23, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--czc-font);
  font-size: 13px;
  line-height: 1;
  color: var(--czc-text);
  direction: ltr;
  transition: transform 0.26s ease, opacity 0.22s ease;
  will-change: transform, opacity;
}
html[dir="rtl"] .czc-bar { direction: rtl; }

/* auto-hide state: slides up while the page scrolls down */
.czc-bar {
  transform: translateY(calc(-1 * (var(--czc-h) + 30px)));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease;
}
.czc-bar.is-shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.czc-start, .czc-center, .czc-end {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.czc-start { flex: 0 0 auto; }
.czc-center {
  flex: 0 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.czc-center::-webkit-scrollbar { display: none; }
.czc-end { flex: 0 0 auto; }

.czc-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding-inline: 10px 8px;
  border-radius: 999px;
  color: var(--czc-text) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.czc-brand:hover { border-color: var(--czc-border-strong); }
.czc-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--czc-text);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
}

.czc-seg {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.czc-seg-item {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding-inline: 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--czc-sub) !important;
  font-family: "Alkatip Basma Tom",inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.czc-seg-item:hover { color: var(--czc-text) !important; background: rgba(255, 255, 255, 0.08); }
.czc-seg-item.is-active {
  background: var(--czc-text);
  color: #0a0b0e !important;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.14);
}

.czc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  min-width: 32px;
  padding-inline: 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--czc-text) !important;
  font-family: "Alkatip Basma Tom",inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s, border-color 0.15s;
}
.czc-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--czc-border); }
.czc-btn.is-icon { padding: 0; }
.czc-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin-inline: 2px;
  flex: 0 0 auto;
}

.czc-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 10px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--czc-text) !important;
  font-family: "Alkatip Basma Tom",inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
}
.czc-token:hover { border-color: var(--czc-border-strong); }
.czc-token-num { font-family: var(--czc-mono); font-weight: 700; color: var(--czc-emerald); }
.czc-token-label { color: var(--czc-sub); }
.czc-token-topup {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--czc-text);
  font-size: 11px;
  font-weight: 600;
}

.czc-wrap { position: relative; }
.czc-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: 14px;
  background: #17181f;
  border: 1px solid var(--czc-border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2147483002;
}
.czc-menu[hidden] { display: none !important; }
.czc-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--czc-text) !important;
  font-family: "Alkatip Basma Tom",inherit;
  font-size: 13px;
  text-align: start;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.czc-menu-item:hover { background: rgba(255, 255, 255, 0.08); }
.czc-menu-item.is-active { background: rgba(255, 255, 255, 0.12); font-weight: 650; }
.czc-menu-sep { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px 2px; }
.czc-menu-label {
  padding: 6px 10px 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--czc-mute);
}

.czc-mobile-btn { display: none; }

/* pages: keep their own layout, just reserve room for the floating capsule */
html.czc-on body { padding-top: 0 !important; }

/* studio shells fill the viewport; the capsule floats over them only when revealed */
html.czc-on .vsv-app,
html.czc-on .msv-app,
html.czc-on .dsg-app,
html.czc-on .chv-app,
html.czc-on .ss-app,
html.czc-on .vs-app,
html.czc-on #root {
  height: 100dvh !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
}




@media (max-width: 1100px) {
  .czc-seg-item { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 900px) {
  .czc-center { display: none; }
  .czc-mobile-btn { display: inline-flex; }
  .czc-token-topup { display: none; }
  .czc-bar { gap: 4px; padding: 0 6px; }
}
@media (max-width: 640px) {
  .czc-brand-text, .czc-token-label { display: none; }
  .czc-brand { padding-inline: 9px 7px; }
}


/* ==========================================================================
   Chat studio keeps its own capsule. Make sure it is actually visible and
   still hides itself when the page is scrolled down.
   ========================================================================== */
html.cz-route-chat #cz-tool-toolbar {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  max-width: min(94vw, 1080px) !important;
  height: 46px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(20, 21, 24, 0.92) !important;
  box-shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 2147483000 !important;
  transform: translateX(-50%) !important;
  transition: translate 0.24s ease, opacity 0.2s ease !important;
}
html.cz-route-chat #cz-tool-toolbar:not([data-cz-compact="true"]) {
  opacity: 1 !important;
  visibility: visible !important;
  translate: none !important;
  pointer-events: auto !important;
}
html.cz-route-chat #cz-tool-toolbar[data-cz-compact="true"]:not(:hover):not(:focus-within) {
  translate: 0 -140% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html.cz-route-chat .cz-toolbar-reveal { display: none !important; }


/* chat capsule on phones: keep it compact instead of clipping its labels */
@media (max-width: 700px) {
  html.cz-route-chat #cz-tool-toolbar {
    max-width: calc(100vw - 12px) !important;
    height: 40px !important;
    min-height: 40px !important;
    gap: 3px !important;
    padding: 0 6px !important;
    border-radius: 14px !important;
  }
  html.cz-route-chat #cz-tool-toolbar .cz-balance-topup,
  html.cz-route-chat #cz-tool-toolbar .cz-toolbar-back,
  html.cz-route-chat #cz-tool-toolbar [class*="title"],
  html.cz-route-chat #cz-tool-toolbar [class*="label"] {
    display: none !important;
  }
  html.cz-route-chat #cz-tool-toolbar .cz-balance-pill {
    height: 28px !important;
    min-height: 28px !important;
    padding-inline: 8px !important;
    white-space: nowrap !important;
  }
  html.cz-route-chat #cz-tool-toolbar .cz-toolbar-language {
    min-width: 30px !important;
    padding-inline: 6px !important;
  }
}


/* the image studio ships its own top bar — the capsule replaces it */
html.czc-on .vs-topbar,
html.czc-on .vs-app .vs-topbar,
html.czc-on .vs-tool-nav,
html.czc-on .vs-brand-badge {
  display: none !important;
  visibility: hidden !important;
}
html.czc-on .vs-app .vs-workspace { flex: 1 1 auto; min-height: 0; }


/* image studio rail: keep section titles on one line after the bar removal */
html.czc-on .vs-sec-head { align-items: center !important; }
html.czc-on .vs-sec-title,
html.czc-on .vs-sec-head .vs-sec-title {
  display: inline-block !important;
  flex: 0 0 auto !important;
  min-width: 56px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}


/* capsule icons */
.czc-ico { display: block; width: 16px; height: 16px; }
.czc-btn.is-icon .czc-ico { width: 15px; height: 15px; }
.czc-brand-dot { width: 6px; height: 6px; }


/* desktop: the nav already names the tool, so the brand shows only the dot */
@media (min-width: 901px) {
  .czc-brand-text { display: none !important; }
  .czc-brand { padding-inline: 10px !important; }
}
@media (max-width: 900px) {
  .czc-brand-text { display: inline !important; }
}


/* the brand pill is redundant: the nav already shows which tool is open */
.czc-brand { display: none !important; }


/* chat page: the legacy capsule is retired, our capsule takes over */
html.czc-on .cz-route-chat #cz-tool-toolbar,
html.czc-on .cz-route-chat .cz-toolbar-reveal {
  display: none !important;
  visibility: hidden !important;
}
html.czc-on .gemini-shell,
html.czc-on .cz-route-chat .gemini-shell {
  padding-top: 0 !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
}
html.czc-on .cz-route-chat .gemini-main { padding-top: 0 !important; }


/* FINAL: the legacy chat capsule is fully retired at every width */
html.czc-on #cz-tool-toolbar,
html.czc-on.cz-route-chat #cz-tool-toolbar,
html.czc-on.cz-workspace #cz-tool-toolbar,
html.czc-on .cz-toolbar-reveal,
html.czc-on #cz-toolbar-reveal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* capsule: language globe + real model settings panel */
.czc-modal {
  position: fixed; inset: 0; z-index: 2147483001; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px);
}
.czc-modal-panel {
  width: min(430px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.1);
  background: #141519; box-shadow: 0 30px 80px -30px #000; color: #e9eaee;
}
.czc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13px; }
.czc-modal-body { padding: 16px; display: grid; gap: 12px; }
.czc-field { display: grid; gap: 6px; font-size: 12px; color: #a9adb6; }
.czc-field select {
  height: 38px; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 13px;
  background: #1b1d22; color: #e9eaee; border: 1px solid rgba(255,255,255,0.1);
}
.czc-modal-hint { margin: 0; font-size: 11px; color: #7d828c; line-height: 1.5; }
.czc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07); }
.czc-btn-primary { background: #fff; color: #0e0f12 !important; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.czc-btn-ghost { background: transparent; color: #d3d7df !important; color: #c8ccd4; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 8px 14px; font: inherit; cursor: pointer; }
.czc-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2147483002; padding: 10px 16px; border-radius: 999px; font-size: 13px;
  background: rgba(20,21,24,0.96); color: #e9eaee; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 40px -20px #000;
}
.czc-btn .czc-ico { width: 16px; height: 16px; }


/* token pill: bigger, standard proportions and a crisp top-up button */
.czc-bar .czc-token {
  height: 34px !important;
  gap: 8px !important;
  padding-inline: 12px 6px !important;
  font-size: 13px !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.czc-bar .czc-token-num { font-size: 13px !important; letter-spacing: 0.2px; }
.czc-bar .czc-token-label { display: inline !important; font-size: 13px !important; line-height: 1; }
.czc-bar .czc-token-topup {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #f3f4f6 !important;
  color: #14151a !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.czc-bar .czc-token:hover .czc-token-topup { background: #ffffff !important; }


/* Universal Dialogs / Toasts */
.cz-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2147483003;
  padding: 12px 20px; border-radius: 999px; font-size: 13px;
  background: rgba(20,21,24,0.92); color: #fff; border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px #000;
  animation: cz-toast-in 0.3s ease-out;
}
@keyframes cz-toast-in { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.cz-modal {
  position: fixed; inset: 0; z-index: 2147483002; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.cz-modal-box {
  width: 90%; max-width: 400px; background: #141519; border-radius: 18px; border: 1px solid rgba(255,255,255,0.1);
  padding: 20px; color: #e9eaee;
}

/* Layout Fixes for /me/ (User Profile) */
.me-container { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.me-info { display: flex; align-items: center; gap: 12px; }
.me-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.me-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: nowrap; }
.me-btn { white-space: nowrap; min-width: auto; padding: 6px 12px; }


/* ===================== /me/ member center ===================== */
.cz-member-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.cz-member-stats .m-me-tile { padding: 10px 6px !important; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cz-member-stats .m-me-tile > p { margin: 0 !important; white-space: nowrap !important; text-align: center; }
.cz-member-stats .m-me-tile > p:first-of-type { font-size: 16px !important; line-height: 1.1 !important; }
.cz-member-stats .m-me-tile > p:last-of-type {
  font-size: 12px !important; line-height: 1.2 !important; letter-spacing: -0.1px;
  color: rgba(226,232,240,0.72) !important;
}
.mkx-cta { white-space: nowrap !important; }
@media (max-width: 640px) {
  .cz-member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cz-member-stats .m-me-tile > p:last-of-type { font-size: 12px !important; }
}


/* /me/ responsive: keep the four numbers readable at every width */
@media (max-width: 1200px) {
  .cz-member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cz-member-stats .m-me-tile { min-height: 84px; }
  .cz-member-stats .m-me-tile p {
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}
@media (max-width: 640px) {
  .cz-member-stats .m-me-tile p { font-size: 12px !important; }
  .mkx-cta { font-size: 12px !important; padding-inline: 8px !important; }
}


/* /me/ wallet rows: label and amount share one baseline, never wrap */
html.cz-me .items-baseline p {
  white-space: nowrap !important;
  font-size: 12px !important;
  letter-spacing: -0.1px !important;
  line-height: 1.25 !important;
}
@media (max-width: 480px) {
  html.cz-me .items-baseline p { font-size: 11px !important; }
}

/* CZ_UG_CHROME_400 */
html[lang^="ug"] .czc-token-topup, html[data-site-lang="ug"] .czc-token-topup {
  font-weight: 400 !important;
  font-synthesis: none !important;
}


/* === Creatve.Zone Strict Two-Tier Uyghur Typography (Tools v2) === */
html.cz-workspace[lang="ug"] body,
html.cz-workspace[data-site-lang="ug"] body,
html.czc-on[lang="ug"] body,
html.czc-on[data-site-lang="ug"] body {
  font-family: "Alkatip Basma Tom",Inter,system-ui,sans-serif!important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
html.cz-workspace[lang="ug"] main h1,
html.cz-workspace[data-site-lang="ug"] main h1,
html.czc-on[lang="ug"] h1,
html.czc-on[data-site-lang="ug"] h1 {
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}
html.cz-workspace[lang="ug"] main :is(h2, h3, h4, strong, b, p, span, a, button, label),
html.cz-workspace[data-site-lang="ug"] main :is(h2, h3, h4, strong, b, p, span, a, button, label),
html.czc-on[lang="ug"] :is(h2, h3, h4, strong, b, p, span, a, button, label),
html.czc-on[data-site-lang="ug"] :is(h2, h3, h4, strong, b, p, span, a, button, label) {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}


/* === Chat: one flowing answer instead of one card per paragraph === */
html.cz-route-chat [class*="rounded-xl"][class*="border-white/"] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
html.cz-route-chat .gemini-main p, html.cz-route-chat [class*="prose"] p {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-block: 0 0.85em !important;
  text-align: justify !important;
  text-justify: inter-word;
  text-align-last: auto;
  hyphens: auto;
}
html.cz-route-chat .gemini-main li {
  text-align: justify !important;
  text-justify: inter-word;
}
html.cz-route-chat .gemini-main :is(ul, ol) {
  margin-block: 0.2em 0.9em !important;
  padding-inline-start: 1.4em !important;
}
/* keep the user's own bubble readable, not justified */
html.cz-route-chat .gemini-main [class*="justify-end"] p {
  text-align: start !important;
}


/* === Chat rail rhythm: bigger logo + icons, tighter spacing === */
html.cz-route-chat .gemini-sidebar.cz-rail-collapsed,
html.cz-route-chat .gemini-sidebar.cz-rail-expanded {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  flex-basis: 72px !important;
  padding-inline: 0 !important;
}
html.cz-route-chat .gemini-sidebar.cz-rail-collapsed > *,
html.cz-route-chat .gemini-sidebar.cz-rail-expanded > * {
  padding-inline: 0 !important;
}
html.cz-route-chat .gemini-sidebar.cz-rail-collapsed,
html.cz-route-chat .gemini-sidebar.cz-rail-expanded {
  gap: 0 !important;
  row-gap: 0 !important;
}
html.cz-route-chat .gemini-sidebar img {
  width: 30px !important;
  height: 30px !important;
}
html.cz-route-chat .gemini-sidebar button:not(.cz-chat-avatar) {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 1px auto !important;
  border-radius: 14px !important;
}
html.cz-route-chat .gemini-sidebar button:not(.cz-chat-avatar) svg {
  width: 22px !important;
  height: 22px !important;
}
html.cz-route-chat .gemini-sidebar .cz-chat-avatar {
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto 10px !important;
}

/* === Chat composer: model chip sits level with the input, never squeezed === */
html.cz-route-chat .cz-chat-composer {
  padding-block: 9px !important;
}
html.cz-route-chat .cz-chat-input-row {
  gap: 12px !important;
  min-height: 40px !important;
  align-items: center !important;
}
html.cz-route-chat .cz-chat-actions {
  gap: 10px !important;
}
html.cz-route-chat .cz-chat-actions > button {
  height: 36px !important;
  min-height: 36px !important;
  padding-inline: 13px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
}
html.cz-route-chat .cz-chat-actions > button > span,
html.cz-route-chat .cz-chat-actions > button > div {
  font-size: 13px !important;
  line-height: 1.2 !important;
}
html.cz-route-chat .cz-chat-actions > button svg {
  width: 15px !important;
  height: 15px !important;
}
html.cz-route-chat .cz-chat-actions > button:has(svg):not(:has(span)) {
  width: 36px !important;
  padding-inline: 0 !important;
  justify-content: center !important;
}


/* === Assistant answer: flowing text, no card-per-paragraph, justified RTL === */
html.cz-route-chat .gemini-main [class*="rounded-[22px]"][class*="rounded-tl-md"] {
  background: transparent !important;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html.cz-route-chat .gemini-main [class*="rounded-[22px]"][class*="rounded-tl-md"] + [class*="rounded-[22px]"] {
  margin-top: 0.55em !important;
}
html.cz-route-chat .gemini-main .ug-text,
html.cz-route-chat .gemini-main [class*="ug-text"] {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: right;
  line-height: 1.85 !important;
}
/* user bubble stays right-aligned and readable */
html.cz-route-chat .gemini-main [class*="rounded-tr-md"] .ug-text {
  text-align: start !important;
  text-align-last: auto;
}


/* === Assistant messages: plain flowing text, no card-in-card boxes === */
html.cz-route-chat .gemini-main .msg-in [class*="rounded-"]:not(button):not(a) {
  background: transparent !important;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
html.cz-route-chat .gemini-main .msg-in [class*="rounded-"] + [class*="rounded-"] {
  margin-top: 0.7em !important;
}
html.cz-route-chat .gemini-main .msg-in [dir="rtl"],
html.cz-route-chat .gemini-main .msg-in .ug-text {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: right;
  line-height: 1.9 !important;
}
html.cz-route-chat .gemini-main .msg-in .ug-text + .ug-text {
  margin-top: 0.7em !important;
}
/* keep the small action chips under the answer compact but visible */
html.cz-route-chat .gemini-main .msg-in button {
  background: rgba(255, 255, 255, 0.045) !important;
  border-radius: 999px !important;
}


/* thinking / reasoning panel inside an answer: flatten it too */
html.cz-route-chat .gemini-main .msg-in [class*="bg-[#16171a]"],
html.cz-route-chat .gemini-main .msg-in [class*="bg-[#1e1f22]"],
html.cz-route-chat .gemini-main .msg-in [class*="bg-white/[0.0"],
html.cz-route-chat .gemini-main [class*="rounded-[22px]"][class*="bg-[#16"] {
  background: transparent !important;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
}
/* give the reasoning block a quiet left rule instead of a full card */
html.cz-route-chat .gemini-main .msg-in [class*="rounded-[22px]"][class*="bg-[#16"] {
  border-inline-start: 2px solid rgba(255, 255, 255, 0.10) !important;
  padding-inline-start: 12px !important;
}

/* cz-chat-fit (2026-11-30): 聊天输入框与模型按钮不再互相压住 */
.cz-chat-input-row textarea{
  min-height: 34px !important;
  padding-block: 7px !important;
  line-height: 1.75 !important;
}
.cz-chat-composer .cz-chat-actions{ gap: 8px !important; }
.cz-chat-actions button[data-chat-model="true"] span{
  max-width: 120px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* cz-chat-model-fit (2026-12-01): 模型按钮文字垂直居中，修复顶部裁切 */
.cz-chat-actions button[data-chat-model="true"]{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:20px !important;
  padding-block:0 !important;
  font-family:"Alkatip Basma Tom",Inter,"Segoe UI",system-ui,-apple-system,sans-serif!important;
}
.cz-chat-actions button[data-chat-model="true"] > span:not([class*="bg-"]){
  display:inline-flex !important;
  align-items:center !important;
  line-height:20px !important;
  padding-block:0 !important;
  font-family:"Alkatip Basma Tom",inherit!important;
}
.cz-chat-actions button[data-chat-model="true"] > svg{
  flex:0 0 auto !important;
  align-self:center !important;
}


/* cz-chat-rail-fit: 侧栏设置行的开关不再压住文字 */
.gemini-sidebar label{ align-items:flex-start !important; min-width:0 !important; }
.gemini-sidebar input[type="checkbox"]{ flex:0 0 auto !important; margin-inline-start:8px !important; }
.gemini-sidebar label > span:first-child{
  min-width:0 !important; white-space:normal !important; line-height:1.35 !important;
}
.gemini-sidebar button, .gemini-sidebar a{ min-width:0 !important; }
.gemini-sidebar button > span, .gemini-sidebar a > span{ min-width:0 !important; }

/* === GLOBAL UYGHUR SINGLE-LINE & LAYOUT PRESERVATION (v1) === */
html[lang="ug"] {
  --cz-ug-scale: 0.9;
}
html[lang="ug"] nav a,
html[lang="ug"] header a,
html[lang="ug"] header button,
html[lang="ug"] [role="tab"],
html[lang="ug"] .cz-nav a,
html[lang="ug"] .cz-nav button,
html[lang="ug"] .czc-bar a,
html[lang="ug"] .czc-bar button,
html[lang="ug"] .cz-pill,
html[lang="ug"] .cz-chip,
html[lang="ug"] .cz-badge,
html[lang="ug"] .czv-mp-tab,
html[lang="ug"] .czv-unify-btn,
html[lang="ug"] .czv-mini-btn,
html[lang="ug"] .czv-unify-pill {
  white-space: nowrap !important;
  line-height: 1.25 !important;
  font-size: 11.5px !important;
  letter-spacing: 0 !important;
}
html[lang="ug"] .czc-bar {
  font-size: 12px !important;
}
html[lang="ug"] .czc-bar a,
html[lang="ug"] .czc-bar button {
  padding-inline: 9px !important;
}


/* ==== merged: cz-unify.css ==== */
/* cz-unify.css — creatve.zone 全站视觉统一层
   统一：容器宽 / 左右边距 / 字号层级 / 按钮 / 图标 / 卡片圆角 / 网格间距 / 区块留白 / 移动端对称
   载入顺序：必须位于所有页面 CSS 之后（各页 <head> 末尾） */

:root {
  --u-max: 1200px;
  --u-pad: clamp(20px, 4.2vw, 48px);
  --u-gap: 20px;
  --u-radius: 18px;
  --u-radius-sm: 14px;
  --u-radius-pill: 999px;
  --u-header-h: 64px;
  --u-btn-h: 44px;
  --u-btn-h-sm: 32px;
  --u-btn-h-lg: 52px;
  --u-fs-1: 12px;
  --u-fs-2: 13px;
  --u-fs-3: 14px;
  --u-fs-4: 16px;
  --u-fs-5: 18px;
  --u-fs-6: 20px;
  --u-fs-7: 24px;
  --u-fs-8: 30px;
  --u-fs-9: 36px;
  --u-fs-10: 44px;
}

/* ---------- 1. 容器与栅格基准 ---------- */
.container,
.header-inner {
  width: 100% !important;
  max-width: var(--u-max) !important;
  margin-inline: auto !important;
  padding-inline: var(--u-pad) !important;
  box-sizing: border-box !important;
}

.header-inner { height: var(--u-header-h) !important; }

/* studio / resource / join 类页面容器与全站对齐 */
.studio-page,
.resource-page,
.join-page {
  padding-inline: 0 !important;
}

.studio-page > .container,
.resource-page .container,
.join-page .container {
  max-width: var(--u-max) !important;
  padding-inline: var(--u-pad) !important;
  margin-inline: auto !important;
}

/* ---------- 2. 标题层级（唯一刻度） ---------- */
h1, .page-hero h1, .catalog-hero h1, .studio-page h1 {
  font-size: clamp(28px, 3.4vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 0.5em !important;
}
h2, .studio-section-heading h2, .pf-header-copy h2, .join-section h2 {
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  letter-spacing: -0.015em !important;
}
h3 {
  font-size: var(--u-fs-6) !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}
h4 {
  font-size: var(--u-fs-4) !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

/* 首页 hero 主标题保持 display 级，但与标题体系同一字重/行高 */
.cinematic-hero h1,
.hero-copy h1 {
  font-size: clamp(32px, 4.6vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
}

/* eyebrow 统一：全站只保留一档 */
.eyebrow,
.hero-eyebrow,
.studio-section-heading .eyebrow {
  font-size: var(--u-fs-1) !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.6 !important;
  text-transform: uppercase !important;
}

/* 正文与描述 */
p,
.hero-description,
.catalog-note,
.join-domain-desc {
  font-size: var(--u-fs-4) !important;
  line-height: 1.7 !important;
}

/* ---------- 3. 按钮（三档高度 + 一套圆角） ---------- */
.button,
.join-btn,
.join-domain-btn,
.text-button,
.pf-cta,
button.button {
  min-height: var(--u-btn-h) !important;
  height: var(--u-btn-h) !important;
  padding: 0 20px !important;
  font-size: var(--u-fs-3) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border-radius: var(--u-radius-sm) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* 明确的小尺寸 / 大尺寸场景 */
.catalog-note + .button { min-height: var(--u-btn-h) !important; }
.join-btn.join-btn-primary,
.hero-actions .button {
  height: var(--u-btn-h-lg) !important;
  min-height: var(--u-btn-h-lg) !important;
  padding: 0 26px !important;
  font-size: var(--u-fs-4) !important;
}
.text-button {
  height: var(--u-btn-h-sm) !important;
  min-height: var(--u-btn-h-sm) !important;
  padding: 0 12px !important;
  background: none !important;
}

/* ---------- 4. 图标按钮与图标线宽 ---------- */
.icon-button,
.iconbtn,
.menu-button,
button.icon-button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: var(--u-radius-sm) !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}
.icon-button svg,
.iconbtn svg,
.menu-button svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.7 !important;
}
/* 零尺寸图标（不可见却占位） */
svg[width="0"], svg[height="0"] { display: none !important; }
/* 图标统一线宽：除品牌/插画外 */
.page-hero svg, .page-emblem svg, .catalog-note svg, .studio-section-heading svg,
.join-section svg, .studio-metric-card svg, .studio-pillar-card svg {
  stroke-width: 1.7 !important;
}

/* ---------- 5. 卡片与网格 ---------- */
.skeleton-card,
.studio-metric-card,
.studio-pillar-card,
.join-domain-card,
.join-story-card,
.join-level-card,
.join-lab-card,
.join-vault-card,
.czq-card,
.sk-card,
.pf-card {
  border-radius: var(--u-radius) !important;
  box-sizing: border-box !important;
}

.skeleton-grid,
.studio-pillar-grid,
.studio-offering-grid,
.join-grid,
.czq-grid,
.sk-cards {
  gap: var(--u-gap) !important;
}

/* ---------- 6. 区块留白（消除超大空档） ---------- */
.catalog-section {
  padding-top: 32px !important;
  padding-bottom: 72px !important;
  min-height: 0 !important;
}
.page-hero { padding-block: 48px 32px !important; }
section, .section { scroll-margin-top: var(--u-header-h); }

/* ---------- 7. 页脚与头部同网格 ---------- */
.cinematic-hero { padding-inline: 0 !important; }
.hero-compose-shell, .hero-prompt-composer { max-width: 720px !important; }

/* ---------- 8. 页面级定点修复 ---------- */
/* tools：顶部语义重复的 eyebrow 去掉，H1 已由层级规则加权 */
html[data-page="tools"] .catalog-hero .eyebrow { display: none !important; }
html[data-page="tools"] .catalog-hero .page-emblem { display: none !important; }
html[data-page="tools"] .catalog-hero { padding-block: 40px 24px !important; }

/* course：卡片不足时避免整列空置 */
html[data-page="course"] .skeleton-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
}
/* course：标题不被省略号截断 */
html[data-page="course"] .skeleton-card h3,
html[data-page="course"] .skeleton-card h2 {
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
}

/* terms：标题与正文同一左边界 */
html[data-page="terms"] main,
html[data-page="privacy"] main {
  max-width: var(--u-max) !important;
  margin-inline: auto !important;
  padding-inline: var(--u-pad) !important;
  box-sizing: border-box !important;
}
html[data-page="terms"] h1,
html[data-page="privacy"] h1,
html[data-page="terms"] ul,
html[data-page="terms"] ol,
html[data-page="privacy"] ul {
  margin-inline: 0 !important;
  padding-inline-start: 1.2em !important;
  text-align: start !important;
}
html[data-page="terms"] h1 { padding-inline-start: 0 !important; }

/* m（移动端镜像页）：消除 hero 横向溢出 */
html[data-page="m"] .hero__slide { max-width: 100% !important; }
html[data-page="m"] .screen { overflow-x: hidden !important; }

/* group：同义按钮双高度归一已在第 3 节处理；卡片等高 */
html[data-page="group"] .join-domain-card { height: 100% !important; }

/* ---------- 9. 移动端对称边距（消除左右不对称） ---------- */
@media (max-width: 900px) {
  :root { --u-pad: 20px; --u-gap: 16px; --u-header-h: 58px; }
  .page-hero { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  :root { --u-pad: 18px; --u-gap: 14px; --u-btn-h-lg: 48px; }
  h1, .catalog-hero h1 { font-size: 26px !important; }
  h2 { font-size: 21px !important; }
  p, .hero-description { font-size: var(--u-fs-4) !important; }
  .icon-button, .menu-button { width: 36px !important; height: 36px !important; min-width: 36px !important; }
  .skeleton-grid { grid-template-columns: 1fr !important; }
}

/* 打印与无障碍兜底 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* h3 层级收敛：与 h2(20px) 拉开层级 */
h3 { font-size: clamp(16px, 1.4vw, 18px) !important; }


html[data-page="home"] .hero-actions .text-button {
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.045) !important;
}

/* ============================================================
   catalog hero 顶部留白 — 修复标题被固定导航遮挡 (2026-11-30)
   固定导航底部约在视口 80px 处；原来 .catalog-hero 只有 40-48px
   的 padding-top，导致 /apps/ /tools/ /course/ 的页面标题
   上半部分压到导航下面（/tools/ 最严重）。
   统一提到 100px，保证标题完全落在导航之下并保留呼吸空间。
   ============================================================ */
html[data-page] .catalog-hero.page-hero,
html[data-page] .page-hero.catalog-hero {
  padding-top: 100px !important;
}
/* 移动端导航更矮，留白相应收敛 */
@media (max-width: 768px) {
  html[data-page] .catalog-hero.page-hero,
  html[data-page] .page-hero.catalog-hero {
    padding-top: 76px !important;
  }
}

/* cz-global-rtl-polish: prevent broken Uyghur ligatures from letter-spacing */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .hero-eyebrow,
html[dir="rtl"] .button,
html[dir="rtl"] button {
  letter-spacing: 0 !important;
}
html[dir="rtl"] h1 {
  line-height: 1.5 !important;
}

/* cz-header-compact (2026-11-30): content-sized floating navigation. */
html .site-header.cinematic-header {
 top:18px!important; inset-inline:24px!important; width:auto!important;
 max-width:1240px!important; margin-inline:auto!important; height:62px!important;
 box-sizing:border-box!important; border-radius:13px!important;
 border:1px solid rgba(255,255,255,.045)!important;
 background:linear-gradient(110deg,rgba(255,255,255,.016),rgba(255,255,255,.004))!important;
 -webkit-backdrop-filter:blur(28px) saturate(140%)!important;
 backdrop-filter:blur(28px) saturate(140%)!important;
 box-shadow:0 1px rgba(255,255,255,.012) inset!important;
}
html .site-header.cinematic-header .header-inner {
 width:100%!important; max-width:none!important; height:100%!important; padding-inline:24px!important;
}
@media(min-width:1280px){
 html .site-header.cinematic-header .menu-button{display:none!important;}
}
@media(max-width:1279px){
 html .site-header.cinematic-header .desktop-nav{display:none!important;}
 html .site-header.cinematic-header .menu-button{display:grid!important;}
}
@media(max-width:719px){
 html .site-header.cinematic-header{top:12px!important;inset-inline:12px!important;height:57px!important;border-radius:12px!important;}
 html .site-header.cinematic-header .header-inner{padding-inline:12px!important;}
}
@media(max-width:420px){
 html .site-header.cinematic-header .cz-fullscreen-toggle{display:none!important;}
 html .site-header.cinematic-header .brand-word{font-size:14px!important;}
 html .site-header.cinematic-header .header-actions{gap:4px!important;}
 html .site-header.cinematic-header .header-login{flex-shrink:0!important;padding-inline:6px!important;}
 html .site-header.cinematic-header .menu-button{width:34px!important;min-width:34px!important;height:34px!important;}
}
@media(max-width:360px){
 html .site-header.cinematic-header .brand-word{display:none!important;}
}

/* ============================================================
   cz-react-header-unify (2026-11-30)
   React 页面（登录/会员/404/课程详情等）自带一条“圆角胶囊”导航，
   与首页的通栏导航不一致。这里只作用于 header.fixed 内部，
   把它改成同样的通栏样式；不触碰页面其它 .shell 容器。
   ============================================================ */
html header.fixed{ padding-block: 0 !important; }
html header.fixed > .shell{ max-width: none !important; padding-inline: 0 !important; }
html header.fixed .fig-nav-shell{
  height: 64px !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(184,212,255,.10) !important;
  background: rgba(8,11,16,.86) !important;
  box-shadow: none !important;
  padding-inline: clamp(18px, 3vw, 40px) !important;
}

/* cz-course-list (2026-11-30): 课程目录标题单行省略，避免与时长/免费标签叠在一起 */
html [data-mkclamp="1"]{
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  line-height: 1.45 !important;
}
html [data-mkclamp="1"] + span{ margin-top: 6px !important; }


/* ==== merged: cz-admin-fit.css ==== */
/* cz-admin-fit.css — 后台排版收紧/防挤压（只覆盖布局，不动业务） v1 */
html.czv-ready{
  --cz-sidebar-w: 224px !important;
  --cz-agent-w: 320px !important;
  --cz-top-h: 60px !important;
}

/* 侧栏：宽度统一、菜单文字不被挤出 */
html .czv-sidebar{ width: var(--cz-sidebar-w) !important; }
html .czv-nav-item{ min-width:0 !important; gap:8px !important; }
html .czv-nav-item-lbl{
  min-width:0 !important; overflow:hidden !important;
  text-overflow:ellipsis !important; white-space:nowrap !important;
}

/* 顶栏：固定高度、内容不换行挤压；窄屏隐藏重复状态 */
html .czv-top{
  height: var(--cz-top-h) !important;
  gap:8px !important; padding-inline:12px !important;
  overflow:hidden !important;
}
html .czv-top-actions{ gap:6px !important; min-width:0 !important; }
html .czv-top-actions > *{ flex:0 0 auto !important; }
html .cz-adm-live-pill{ flex:0 0 auto !important; }
@media (max-width: 1500px){
  html .cz-adm-live-pill{ display:none !important; }
  html .cz-cmd-lbl{ display:none !important; }
}

/* 内容区与顶栏留白，避免被压住 */
html.czv-ready .adm-content{ top: calc(var(--cz-top-h) + 16px) !important; }

/* 图标条等分，不互相挤压 */
html .czv-hub-strip{ grid-template-columns: repeat(6, minmax(0,1fr)) !important; gap:6px !important; }
html .czv-hub-strip > *{ min-width:0 !important; }

/* 语言下拉与按钮组在小屏可换行，不再叠在一起 */
html .czv-lang-group{ flex-wrap:wrap !important; row-gap:4px !important; }
html .czv-lang-group button{ padding-inline:8px !important; font-size:12px !important; }

/* 智能体面板：长词换行，避免溢出卡片 */
html .czv-agent{ overflow:hidden !important; }
html .czv-msg{ overflow-wrap:anywhere !important; }

/* 左侧智能体卡片：内容超出时内部滚动，不压到卡片边框外 */
html .czv-agent .czv-ag-msgs{ overflow-y:auto !important; }
html .czv-agent{ min-width:0 !important; }
html .czv-ag-title-txt{ overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }

/* Uyghur admin typography + card fit (v3) */
html[lang="ug"] .adm-surface { font-size: 13px; line-height: 1.65; }
html[lang="ug"] .adm-surface h1 { font-size: 22px !important; line-height: 1.5 !important; letter-spacing: 0 !important; }
html[lang="ug"] .adm-surface h2 { font-size: 18px !important; line-height: 1.55 !important; }
html[lang="ug"] .adm-surface h3 { font-size: 15px !important; line-height: 1.6 !important; }
html[lang="ug"] .adm-surface p,
html[lang="ug"] .adm-surface li,
html[lang="ug"] .adm-surface td,
html[lang="ug"] .adm-surface th,
html[lang="ug"] .adm-surface label { font-size: 13px !important; line-height: 1.7 !important; }
html[lang="ug"] .adm-surface input,
html[lang="ug"] .adm-surface select,
html[lang="ug"] .adm-surface textarea,
html[lang="ug"] .adm-surface button { font-size: 13px !important; }
html[lang="ug"] .adm-content { max-width: 1180px !important; margin-inline: auto !important; padding: 16px 20px 40px !important; }
html[lang="ug"] .adm-card { min-width: 0 !important; padding: 14px !important; border-radius: 12px !important; overflow-wrap: anywhere; }
html[lang="ug"] .adm-card * { min-width: 0; }
html[lang="ug"] .adm-card .grid { gap: 12px !important; }
html[lang="ug"] .adm-surface table { font-size: 12.5px !important; }
html[lang="ug"] .adm-surface table th,
html[lang="ug"] .adm-surface table td { padding: 8px 10px !important; }


/* ==== merged: cz-layout-quality.css ==== */
/* Creatve.Zone layout quality layer — 2026-11-30.
   Scoped fixes for reviewed studios; business logic and billing are untouched. */
html.cz-quality { --czq-gap:12px; --czq-line:1.7; }
html.cz-quality :is(.vs-app,.vsv-app,.msv-app,.dsg-app,.ss-app) :is(button,input,select,textarea) { box-sizing:border-box; }
html.cz-quality :is(.vs-app,.vsv-app,.msv-app,.dsg-app,.ss-app) button { line-height:1.55; }
html.cz-quality :is(.vs-app,.vsv-app,.msv-app,.dsg-app,.ss-app) :is(label,small) { line-height:1.65; }
html.cz-quality :is(.vs-app,.vsv-app,.msv-app,.dsg-app,.ss-app) :is(select,input:not([type=file]):not([type=checkbox])) { min-width:0; max-width:100%; }
html.cz-quality :is(.vs-app,.vsv-app,.msv-app,.dsg-app,.ss-app) :is(.vs-badge,.vs-engine-price,[data-act=ratio],[data-act=duration],[data-act=resolution],audio) { direction:ltr; unicode-bidi:isolate; }
html.cz-quality :is(.vs-app,.vsv-app,.msv-app,.dsg-app,.ss-app) :focus-visible { outline:2px solid #9db5ee; outline-offset:3px; }
/* Chat: independent writing area and model controls, with room for tall glyphs. */
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-composer { width:100%!important; border-radius:24px!important; padding:12px 16px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .gemini-main :has(>.cz-chat-composer) { width:min(840px,calc(100% - 40px))!important; max-width:840px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-input-row { display:grid!important; grid-template-columns:36px minmax(0,1fr) auto; align-items:center!important; gap:14px!important; direction:ltr; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-input-row textarea { width:100%!important; min-height:44px!important; height:44px; padding:8px 2px!important; font-size:15px!important; line-height:1.8!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-actions { min-width:0!important; gap:8px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-actions button[aria-label] { flex-shrink:0; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-actions button[aria-label="مودېل تاللاش"] { min-height:40px!important; height:auto!important; padding:8px 12px!important; border:1px solid #ffffff16!important; background:#ffffff05!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-modes { display:flex!important; justify-content:center; flex-wrap:wrap!important; gap:8px!important; padding-top:12px; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-modes button { min-height:36px!important; height:auto!important; padding:7px 13px!important; line-height:1.6!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .gemini-sidebar.cz-rail-expanded { width:280px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-sidebar-footer { padding:12px!important; overflow:visible!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-sb-util { display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-sb-util :is(button,summary) { min-height:38px!important; height:auto!important; padding:8px 6px!important; display:flex; align-items:center; justify-content:center; gap:6px; line-height:1.6!important; white-space:normal!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-storage-row { display:flex!important; align-items:center!important; gap:12px!important; padding:12px 10px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-storage-note-text { flex:1; min-width:0; font-size:12px!important; line-height:1.8!important; white-space:normal!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-storage-row [role=switch] { flex:0 0 38px!important; width:38px!important; min-width:38px!important; height:22px!important; padding:0!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-sidebar-footer>.grid a { min-height:40px!important; height:auto!important; gap:9px!important; padding:9px 10px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-sidebar-footer>.grid a span { white-space:normal!important; overflow:visible!important; line-height:1.6!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-recharge-button { width:100%!important; min-height:40px!important; display:flex!important; align-items:center; justify-content:space-between; gap:12px; padding:8px 12px!important; }
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-recharge-button .cz-rc-label { display:inline!important; }
/* Image controls and the eight-action media toolbar. */
html.cz-quality .vs-rail { width:320px!important; flex-basis:320px!important; padding:18px 16px!important; scrollbar-gutter:stable; }
html.cz-quality .vs-section { padding-block:12px!important; }
html.cz-quality .vs-sec-head { gap:12px!important; min-height:24px; margin-bottom:10px!important; }
html.cz-quality .vs-sec-title { white-space:normal!important; line-height:1.65!important; }
html.cz-quality .vs-ratio-grid { grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:7px!important; }
html.cz-quality .vs-ratio-btn { min-width:0!important; min-height:42px!important; padding:7px 5px!important; gap:5px!important; font-size:12px!important; }
html.cz-quality .vs-proj-row { gap:8px!important; }
html.cz-quality .vs-proj-row select { flex:1; min-height:40px!important; }
html.cz-quality .vs-proj-row button { flex:0 0 40px!important; width:40px!important; min-width:40px!important; height:40px!important; }
html.cz-quality .vs-ret-box { gap:14px!important; padding:12px!important; }
html.cz-quality .vs-ret-box>div { flex:1; min-width:0; line-height:1.75!important; }
html.cz-quality .vs-switch { width:42px!important; min-width:42px!important; max-width:42px!important; flex:0 0 42px!important; height:24px!important; min-height:24px!important; padding:0!important; direction:ltr!important; }
html.cz-quality .vs-switch::after { inset-inline-start:auto!important; left:3px!important; right:auto!important; top:3px!important; width:16px!important; height:16px!important; }
html.cz-quality .vs-switch[aria-checked=true]::after { transform:translateX(18px)!important; }
html.cz-quality .vs-stage-head { gap:14px!important; padding-block:14px!important; }
html.cz-quality .vs-section-head { padding-block:12px!important; }
html.cz-quality .vs-section-head h2 { line-height:1.7!important; unicode-bidi:plaintext; }
html.cz-quality .vs-cell-bar { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:5px!important; inset-inline:8px!important; padding:6px!important; border-radius:12px; background:#08090be6; backdrop-filter:blur(14px); }
html.cz-quality .vs-cell-act { width:100%!important; min-width:0!important; height:32px!important; min-height:32px!important; padding:0!important; flex:none!important; }
html.cz-quality .vs-cell-act svg { width:15px!important; height:15px!important; }
html.cz-quality .vs-card-media .czq-image-error { position:absolute; inset:0; display:grid; place-content:center; gap:12px; padding:40px 16px 90px; color:#b8bdc9; text-align:center; font-size:13px; line-height:1.7; background:#121319; }
html.cz-quality .czq-image-error button { min-height:36px; border:1px solid #ffffff24; border-radius:9px; padding:6px 14px; color:#eee; background:#ffffff08; }
html.cz-quality .vs-dock-wrap { width:min(960px,calc(100% - 48px))!important; }
html.cz-quality .vs-textarea { min-height:64px!important; font-size:14px!important; line-height:1.85!important; padding-block:10px!important; }
html.cz-quality .vs-dock-bar { gap:12px!important; flex-wrap:wrap!important; padding-top:12px!important; }
html.cz-quality .vs-dock-tools { gap:8px!important; flex-wrap:wrap; }
html.cz-quality .vs-dock-btn { min-height:36px!important; padding:7px 12px!important; }
/* Video and music: scrollable fields, always-reachable primary action. */
html.cz-quality :is(.vsv-workspace,.msv-workspace) { grid-template-columns:380px minmax(0,1fr)!important; gap:16px!important; padding:16px!important; }
html.cz-quality :is(.vsv-panel-head,.msv-panel-head) { min-height:64px; flex-shrink:0; flex-wrap:wrap; gap:8px 14px!important; padding:12px 16px!important; }
html.cz-quality :is(.vsv-panel-head,.msv-panel-head) h2 { font-size:15px!important; line-height:1.6!important; }
html.cz-quality :is(.vsv-panel-body,.msv-panel-body) { flex:1 1 auto; gap:14px!important; scrollbar-gutter:stable; padding:16px!important; scroll-padding-block:16px 130px; }
html.cz-quality :is(.vsv-panel-body,.msv-panel-body)>* { flex-shrink:0; min-width:0; }
html.cz-quality :is(.vsv-chip,.msv-chip,.dsg-chip,.ss-pill-chip) { min-height:36px!important; padding:7px 12px!important; line-height:1.65!important; white-space:normal!important; }
html.cz-quality :is(.vsv-chips,.msv-chips,.dsg-chips) { gap:8px!important; }
html.cz-quality :is(.vsv-select,.msv-select,.ss-select) { height:44px!important; line-height:1.7!important; padding-block:6px!important; }
html.cz-quality :is(.vsv-submit-row,.msv-submit-row) { position:sticky!important; bottom:-16px; z-index:12; display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:10px!important; margin-top:8px!important; padding:14px 0 16px!important; background:#111216; border-top:1px solid #ffffff15; box-shadow:0 -12px 20px #111216; }
html.cz-quality :is(.vsv-submit-row,.msv-submit-row) .vsv-btn,
html.cz-quality :is(.vsv-submit-row,.msv-submit-row) .msv-btn { width:100%; min-height:44px!important; white-space:normal!important; }
html.cz-quality :is(.vsv-cost,.msv-cost) { line-height:1.8!important; overflow-wrap:anywhere; }
html.cz-quality .vsv-lanes .vsv-chip { min-height:96px!important; padding:12px!important; }
html.cz-quality .vsv-empty { min-height:280px; display:grid!important; place-content:center; text-align:center!important; padding:32px!important; }
html.cz-quality .vsv-empty p { max-width:540px; text-align:center!important; line-height:1.85!important; }
html.cz-quality .msv-gallery { display:grid!important; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important; align-content:start!important; gap:16px!important; min-height:0!important; }
html.cz-quality .msv-card { min-width:0!important; max-width:100%!important; width:100%!important; }
html.cz-quality .msv-card-body { padding:16px!important; line-height:1.8!important; }
html.cz-quality .msv-card-body>p { unicode-bidi:plaintext; }
html.cz-quality .msv-app audio { direction:ltr!important; width:100%!important; height:42px!important; }
html.cz-quality .msv-reverse-panel { display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:20px!important; }
html.cz-quality .msv-reverse-panel>h2 { margin:0!important; }
html.cz-quality .msv-reverse-panel input[type=file] { width:100%; min-height:42px; padding:7px; border:1px dashed #ffffff24; border-radius:10px; background:#ffffff03; font-family:"Alkatip Basma Tom",inherit; }
html.cz-quality .msv-reverse-panel input::file-selector-button { padding:7px 14px; border:0; border-radius:7px; margin-inline-end:12px; background:#292b34; color:#eee; font-family:"Alkatip Basma Tom",inherit; }
/* Design: readable swatch labels, contained preview, balanced rail. */
html.cz-quality .dsg-side { width:380px!important; flex:0 0 380px!important; padding:24px 20px!important; scrollbar-gutter:stable; }
html.cz-quality .dsg-field { margin-bottom:20px!important; }
html.cz-quality .dsg-swatches { gap:10px!important; }
html.cz-quality .dsg-swatch { min-height:60px!important; height:auto!important; display:flex!important; align-items:flex-end!important; padding:10px!important; line-height:1.65!important; }
html.cz-quality .dsg-swatch[data-czq-light] { color:#27231f!important; text-shadow:none!important; }
html.cz-quality .dsg-main { min-width:0!important; padding:24px!important; }
html.cz-quality .dsg-stage { width:min(100%,880px)!important; max-height:calc(100dvh - 80px)!important; min-height:320px!important; }
html.cz-quality .dsg-stage-empty { padding:32px!important; text-align:center!important; line-height:1.9!important; }
/* Script: two-field rows really use two columns, and long text has room. */
html.cz-quality .ss-format-row { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:16px!important; margin-bottom:16px; }
html.cz-quality .ss-format-row>*,html.cz-quality .ss-adv-grid>* { min-width:0; }
html.cz-quality .ss-adv-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important; gap:16px!important; }
html.cz-quality .ss-label { line-height:1.75!important; margin-bottom:9px!important; }
html.cz-quality .ss-sec-sub { line-height:1.85!important; }
html.cz-quality #ss-timing-preview { display:flex; flex-wrap:wrap; gap:10px 24px; padding-block:8px 16px; }
html.cz-quality #ss-timing-preview p { margin:0; unicode-bidi:plaintext; }
html.cz-quality .ss-pill-chip { min-width:76px; justify-content:center; }
html.cz-quality .ss-idea-bar { gap:16px!important; }
html.cz-quality .ss-genre-chips { flex:1; gap:8px!important; }
html.cz-quality .ss-editor-shell { grid-template-columns:280px minmax(0,1fr)!important; align-items:stretch!important; gap:20px!important; }
html.cz-quality .ss-side-rail { min-height:420px; max-height:none!important; display:flex; flex-direction:column; }
html.cz-quality .ss-rail-tabs { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:8px!important; }
html.cz-quality .ss-rail-tab { min-height:48px!important; padding:8px 5px!important; line-height:1.7!important; white-space:normal!important; }
html.cz-quality .ss-rail-body { flex:1; min-height:180px; line-height:1.85!important; padding:16px!important; }
html.cz-quality .ss-manuscript-textarea { min-height:430px!important; line-height:1.95!important; font-size:15px!important; }
html.cz-quality .ss-modal { max-width:calc(100vw - 32px); max-height:calc(100dvh - 40px); overflow:auto; }
html.cz-quality .ss-modal-body:has([data-act=export-kind]) { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px!important; }
html.cz-quality [data-act=export-kind] { width:100%; min-height:44px!important; }
/* Member centre: remove legacy globally positioned action-button rules. */
html.cz-quality.cz-me .cz-member-actions { display:flex!important; flex-wrap:wrap!important; gap:12px!important; width:auto!important; max-width:100%!important; }
html.cz-quality.cz-me .cz-member-actions>* { position:relative!important; inset:auto!important; transform:none!important; margin:0!important; flex:0 1 auto!important; width:auto!important; min-width:0!important; max-width:100%!important; }
html.cz-quality.cz-me .cz-member-actions button { position:relative!important; inset:auto!important; transform:none!important; width:auto!important; min-width:110px!important; max-width:100%!important; min-height:44px!important; height:auto!important; margin:0!important; padding:10px 16px!important; gap:10px!important; line-height:1.7!important; font-size:13px!important; white-space:normal!important; }
html.cz-quality.cz-me .cz-member-actions>div>div { width:auto!important; min-width:0!important; }
html.cz-quality.cz-me .cz-member-actions svg { position:static!important; width:16px!important; height:16px!important; flex:0 0 16px!important; }
html.cz-quality.cz-me .cz-member-actions button>span { position:static!important; display:inline!important; width:auto!important; max-width:none!important; white-space:normal!important; }
html.cz-quality.cz-me .cz-member-stats .m-me-tile>p:last-of-type { white-space:normal!important; line-height:1.7!important; text-align:center!important; }
/* Course: title badges wrap; lesson titles never crop connected glyphs. */
html.cz-quality.cz-route-course-detail main section h1 { max-width:none!important; white-space:normal!important; line-height:1.7!important; font-size:clamp(21px,1.65vw,29px)!important; margin-block:14px!important; overflow-wrap:anywhere; }
html.cz-quality.cz-route-course-detail main .czq-lessons { display:flex!important; flex-direction:column; gap:10px!important; padding:8px!important; scrollbar-gutter:stable; }
html.cz-quality.cz-route-course-detail .czq-lessons>button { flex:0 0 auto; min-height:90px!important; height:auto!important; padding:14px!important; gap:12px!important; text-align:start!important; }
html.cz-quality.cz-route-course-detail .czq-lessons>button .czq-lesson-title { white-space:normal!important; display:block!important; overflow:visible!important; -webkit-line-clamp:unset!important; line-height:1.85!important; }
html.cz-quality.cz-route-course-detail .czq-lessons>button svg { flex-shrink:0; }
/* Admin: all six hub icons remain visible and input has a real writing height. */
html.cz-quality .czv-hub-strip { display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr))!important; gap:5px!important; overflow:visible!important; padding-inline:10px!important; }
html.cz-quality .czv-hub-strip button { min-width:0!important; width:100%!important; height:36px!important; padding:0!important; }
html.cz-quality .czv-hub-strip svg { width:16px!important; height:16px!important; flex-shrink:0; }
html.cz-quality .czv-top { overflow:visible!important; }
html.cz-quality .czv-top-actions { gap:8px!important; }
html.cz-quality .czv-agent { display:flex!important; flex-direction:column!important; }
html.cz-quality .czv-ag-head { flex-shrink:0; padding:16px 14px!important; }
html.cz-quality .czv-ag-head button { min-width:34px!important; min-height:34px!important; }
html.cz-quality .czv-ag-msgs { flex:1; min-height:0; overflow-y:auto!important; padding:14px!important; }
html.cz-quality .czv-ag-foot { flex-shrink:0; display:flex!important; align-items:flex-end!important; gap:10px!important; padding:12px!important; }
html.cz-quality #czv-ag-input { min-width:0!important; flex:1!important; min-height:80px!important; max-height:200px!important; padding:12px!important; font-size:13px!important; line-height:1.9!important; resize:vertical!important; }
html.cz-quality .czv-ag-send { flex:0 0 38px!important; width:38px!important; height:38px!important; }
html.cz-quality .czv-nav-item { min-height:42px!important; height:auto!important; align-items:center!important; padding-block:10px!important; }
html.cz-quality .czv-nav-item-lbl { white-space:normal!important; overflow:visible!important; line-height:1.7!important; }
html.cz-quality .adm-content { scroll-padding-top:24px; }
html.cz-quality .adm-content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select) { min-height:42px!important; height:auto!important; padding-block:8px!important; line-height:1.7!important; }
@media(max-width:1100px) {
 html.cz-quality :is(.vsv-workspace,.msv-workspace) { grid-template-columns:340px minmax(0,1fr)!important; }
 html.cz-quality .ss-editor-shell { grid-template-columns:240px minmax(0,1fr)!important; }
 html.cz-quality .dsg-side { width:340px!important; flex-basis:340px!important; }
}
@media(max-width:760px) {
 html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .gemini-main :has(>.cz-chat-composer) { width:calc(100% - 24px)!important; }
 html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-input-row { grid-template-columns:32px minmax(0,1fr); gap:8px!important; }
 html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-actions { grid-column:1/-1; justify-content:flex-end; border-top:1px solid #ffffff0c; padding-top:8px; }
 html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-input-row textarea { font-size:16px!important; }
 html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .gemini-sidebar.cz-rail-expanded { width:min(300px,88vw)!important; }
 html.cz-quality .vs-rail { width:min(340px,90vw)!important; flex-basis:auto!important; }
 html.cz-quality .vs-dock-wrap { width:calc(100% - 24px)!important; }
 html.cz-quality .vs-dock-bar { gap:8px!important; }
 html.cz-quality .vs-dock-tools { gap:5px!important; }
 html.cz-quality .vs-dock-btn { font-size:12px!important; padding-inline:8px!important; }
 html.cz-quality :is(.vsv-workspace,.msv-workspace) { display:flex!important; flex-direction:column!important; overflow-y:auto!important; padding:12px!important; gap:12px!important; }
 html.cz-quality :is(.vsv-panel,.msv-panel) { flex:0 0 auto; min-height:0; overflow:visible; }
 html.cz-quality :is(.vsv-panel-body,.msv-panel-body) { overflow:visible!important; }
 html.cz-quality :is(.vsv-submit-row,.msv-submit-row) { position:static!important; box-shadow:none; }
 html.cz-quality .ss-format-row,html.cz-quality .ss-editor-shell { grid-template-columns:minmax(0,1fr)!important; }
 html.cz-quality .ss-side-rail { min-height:180px; }
 html.cz-quality .ss-style-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 html.cz-quality .ss-idea-bar { align-items:stretch; }
 html.cz-quality .ss-genre-chips { flex-basis:100%; }
 html.cz-quality .dsg-app { display:flex!important; flex-direction:column!important; overflow-y:auto!important; }
 html.cz-quality .dsg-side { width:100%!important; flex:0 0 auto!important; max-height:none!important; overflow:visible!important; border-inline:0!important; border-bottom:1px solid #ffffff14; }
 html.cz-quality .dsg-main { flex:0 0 auto; padding:16px!important; }
 html.cz-quality .dsg-stage { min-height:280px!important; max-height:none!important; }
 html.cz-quality.cz-me .cz-member-actions { width:100%!important; }
 html.cz-quality.cz-me .cz-member-actions>* { flex:1 1 120px!important; }
 html.cz-quality.cz-me .cz-member-actions button { width:100%!important; min-width:0!important; }
 html.cz-quality .czv-top { overflow-x:auto!important; scrollbar-width:none; }
 html.cz-quality .czv-ag-foot { padding:10px!important; }
}
@media(prefers-reduced-motion:reduce) { html.cz-quality * { scroll-behavior:auto!important; } }

/* Reset old horizontal flex bases before stacking the cost and submit action. */
html.cz-quality :is(.vsv-cost,.msv-cost) { flex:0 0 auto!important; min-height:0!important; height:auto!important; }
html.cz-quality :is(.vsv-submit-row,.msv-submit-row) { flex:0 0 auto!important; min-height:0!important; height:auto!important; justify-content:flex-start!important; }
html.cz-quality #czq-chat-input-wrap { width:min(840px,calc(100% - 40px))!important; max-width:840px!important; }
@media(max-width:760px) { html.cz-quality #czq-chat-input-wrap { width:calc(100% - 24px)!important; } }

/* Centre the image composer inside its stage, not inside the whole viewport. */
html.cz-quality .vs-stage .vs-dock-wrap { left:50%!important; right:auto!important; inset-inline:auto!important; margin:0!important; transform:translateX(-50%)!important; width:min(960px,calc(100% - 48px))!important; }
html.cz-quality .cz-chat-modes button svg { width:16px!important; height:16px!important; flex:0 0 16px!important; }
html.cz-quality .dsg-stage:has(canvas) { height:auto!important; aspect-ratio:var(--czq-canvas-ratio,1)!important; }
html.cz-quality.cz-me .cz-member-actions button:has(.lucide-maximize),
html.cz-quality.cz-me .cz-member-actions button:has(.lucide-maximize-2) { min-width:44px!important; width:44px!important; padding:10px!important; }
@media(max-width:760px) { html.cz-quality .vs-stage .vs-dock-wrap { width:calc(100% - 24px)!important; } }

/* Modal stacking: the old retained page creates a stacking context below the OS header. */
html.cz-quality.czv-ready main:has(.adm-modal-backdrop) { position:relative!important; z-index:2147483100!important; }
html.cz-quality .adm-modal-backdrop { position:fixed!important; inset:0!important; z-index:2147483101!important; padding:24px!important; display:grid!important; place-items:center!important; background:#000b!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel { box-sizing:border-box!important; width:min(100%,1040px)!important; max-width:1040px!important; height:auto!important; max-height:calc(100dvh - 48px)!important; overflow:auto!important; overscroll-behavior:contain; scrollbar-gutter:stable; padding:28px!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel :is(h1,h2,h3,label,p) { line-height:1.8!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel :is(input:not([type=checkbox]):not([type=radio]),select) { height:auto!important; min-height:44px!important; padding:10px 12px!important; line-height:1.75!important; }
html.cz-quality .ss-modal-body:has([data-act=export-kind])>div { display:contents!important; }
html.cz-quality .vs-card-media>img { object-fit:contain!important; background:#0c0d10; }
@media(max-width:760px) {
 html.cz-quality .adm-modal-backdrop { padding:12px!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel { max-height:calc(100dvh - 24px)!important; padding:18px!important; }
 html.cz-quality .ss-modal-body:has([data-act=export-kind]) { grid-template-columns:minmax(0,1fr)!important; }
}

html.cz-quality .vs-stage .vs-dock-wrap { inset-inline:auto!important; left:50%!important; right:auto!important; width:min(960px,calc(100% - 48px))!important; }
html.cz-quality .vs-cell .vs-cell-bar { width:calc(100% - 16px)!important; max-width:none!important; min-width:0!important; inset-inline:8px!important; left:8px!important; right:8px!important; box-sizing:border-box!important; }
html.cz-quality .vs-cell .vs-cell-act { min-height:34px!important; height:34px!important; }
@media(max-width:760px) { html.cz-quality .vs-stage .vs-dock-wrap { width:calc(100% - 24px)!important; } }

/* Verified phone/tablet corrections: safe actions, readable identity and admin drawers. */
html.cz-quality .dsg-swatch[data-czq-light],html.cz-quality .dsg-swatch[data-czq-light] span { color:#27231f!important; text-shadow:none!important; }
html.cz-quality.cz-me body .cz-member-actions button:has(.lucide-maximize2) { min-width:44px!important; width:44px!important; flex:0 0 44px!important; padding:10px!important; }
@media(max-width:1280px) {
 html.cz-quality.czv-ready body .czv-agent { display:none!important; }
 html.cz-quality.czv-ready body .czv-top { inset-inline-end:12px!important; }
 html.cz-quality.czv-ready body .adm-surface.adm-shell .adm-content { inset-inline-end:12px!important; }
}
@media(max-width:820px) {
 html.cz-quality.czv-ready body .czv-top { inset:12px 12px auto!important; width:auto!important; height:auto!important; min-height:100px!important; display:flex!important; flex-direction:column!important; align-items:stretch!important; justify-content:flex-start!important; gap:8px!important; padding:10px!important; overflow:visible!important; z-index:100!important; box-sizing:border-box!important; }
 html.cz-quality.czv-ready body .czv-crumbs { width:100%; min-height:36px; gap:8px!important; }
 html.cz-quality.czv-ready body .czv-crumbs-hub,html.cz-quality.czv-ready body .czv-crumbs-sep { display:none!important; }
 html.cz-quality.czv-ready body .czv-crumbs-sec { min-width:0; white-space:normal!important; line-height:1.65; }
 html.cz-quality.czv-ready body .czv-top-actions { display:flex!important; flex-wrap:nowrap!important; overflow-x:auto!important; max-width:100%; width:100%; padding-bottom:2px; gap:6px!important; }
 html.cz-quality.czv-ready body .czv-top-actions>* { flex:0 0 auto!important; }
 html.cz-quality.czv-ready body .czv-llm-pill { display:none!important; }
 html.cz-quality.czv-ready body .czv-lang-group { flex-wrap:nowrap!important; }
 html.cz-quality.czv-ready body .czv-lang-btn,html.cz-quality.czv-ready body .czv-chip { min-height:36px!important; white-space:nowrap!important; padding:6px 10px!important; }
 html.cz-quality.czv-ready body .adm-surface.adm-shell .adm-content { position:fixed!important; inset:138px 12px 72px!important; width:auto!important; height:auto!important; max-width:none!important; margin:0!important; padding:0 0 16px!important; overflow:auto!important; }
 html.cz-quality.czv-ready body .czv-sidebar { display:none!important; }
 html.cz-quality.czv-ready.czq-admin-menu-open body .czv-sidebar { display:flex!important; position:fixed!important; inset:138px 12px 72px auto!important; width:min(340px,calc(100vw - 24px))!important; height:auto!important; z-index:110!important; }
 html.cz-quality.czv-ready.czq-admin-menu-open body .czv-sidebar .czv-nav-item>span,
 html.cz-quality.czv-ready.czq-admin-menu-open body .czv-sidebar .czv-sb-brand strong,
 html.cz-quality.czv-ready.czq-admin-menu-open body .czv-sidebar .czv-sb-brand small { display:initial!important; }
 html.cz-quality.czv-ready.czq-admin-menu-open body .czv-sidebar .czv-nav-item { justify-content:flex-start!important; padding-inline:12px!important; }
 html.cz-quality.czv-ready:not(.czv-agent-hidden) body .czv-agent { display:flex!important; inset:138px 12px 72px!important; width:auto!important; height:auto!important; z-index:120!important; transform:none!important; opacity:1!important; pointer-events:auto!important; }
}
@media(max-width:760px) {
 html.cz-quality body .vs-stage .vs-stage-head { flex-wrap:wrap!important; gap:8px!important; }
 html.cz-quality body .vs-stage .vs-stage-actions { flex-wrap:wrap!important; gap:6px!important; }
 html.cz-quality body .vs-stage #czq-image-controls { display:inline-flex!important; min-height:34px!important; padding:5px 10px!important; }
 html.cz-quality body .vs-stage .vs-dock-wrap { bottom:72px!important; }
 html.cz-quality body .vs-stage .vs-gallery { padding-bottom:330px!important; }
 html.cz-quality body :is(.vsv-workspace,.msv-workspace) { padding-bottom:80px!important; }
 html.cz-quality body .dsg-app .dsg-side { width:100%!important; max-width:none!important; min-width:0!important; margin:0!important; padding:16px!important; box-sizing:border-box!important; }
 html.cz-quality body .dsg-app .dsg-main { padding-bottom:80px!important; }
 html.cz-quality.cz-me body .czq-member-identity { flex-direction:column!important; align-items:stretch!important; gap:16px!important; }
 html.cz-quality.cz-me body .czq-member-identity>div { min-width:0!important; width:100%!important; }
 html.cz-quality.cz-me body .cz-member-actions { display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%!important; gap:10px!important; }
 html.cz-quality.cz-me body .cz-member-actions>* { width:100%!important; min-width:0!important; }
 html.cz-quality.cz-me body .cz-member-actions>div>div { display:flex!important; width:100%!important; max-width:100%!important; gap:10px!important; }
 html.cz-quality.cz-me body .cz-member-actions button { display:inline-flex!important; width:100%!important; min-width:0!important; min-height:44px!important; height:auto!important; white-space:normal!important; }
 html.cz-quality.cz-me body .cz-member-actions button:has(.lucide-globe) { flex:1 1 auto!important; width:auto!important; min-width:120px!important; padding:10px 12px!important; }
 html.cz-quality.cz-me body .cz-member-actions button:has(.lucide-maximize2) { width:44px!important; min-width:44px!important; max-width:44px!important; flex:0 0 44px!important; }
 html.cz-quality.cz-me body .cz-member-actions button>span { white-space:nowrap!important; }
}

@media(max-width:820px) {
 html.cz-quality.czv-ready { --cz-agent-w:0px!important; --cz-sidebar-w:0px!important; }
 html.cz-quality.czv-ready body #czv-top { inset-inline:12px!important; }
 html.cz-quality.czv-ready body .page-shell .adm-surface.adm-shell .adm-content { inset-inline:12px!important; }
}

@media(max-width:760px) {
 html.cz-quality body .vs-app .vs-rail { top:56px!important; bottom:72px!important; height:calc(100dvh - 128px)!important; max-height:calc(100dvh - 128px)!important; overflow-y:auto!important; padding-bottom:20px!important; }
}

/* Keep language popovers independent of the admin dialog component. */
html.cz-quality.cz-route-chat.cz-workspace body .gemini-shell .cz-chat-input-row textarea::placeholder { font-size:14px!important; line-height:1.8!important; }
@media(max-width:900px) {
 html.cz-quality body .dsg-app { display:flex!important; flex-direction:column!important; overflow-y:auto!important; }
 html.cz-quality body .dsg-app .dsg-side { width:100%!important; max-width:none!important; flex:0 0 auto!important; max-height:none!important; height:auto!important; overflow:visible!important; padding:16px!important; box-sizing:border-box!important; }
 html.cz-quality body .dsg-app .dsg-main { flex:0 0 auto!important; min-height:420px!important; padding-bottom:80px!important; }
}
@media(min-width:821px) and (max-width:1280px) {
 html.cz-quality.czv-ready { --cz-agent-w:0px!important; }
 html.cz-quality.czv-ready body #czv-top { inset-inline-end:12px!important; }
 html.cz-quality.czv-ready body .page-shell .adm-surface.adm-shell .adm-content { inset-inline-end:12px!important; }
}

/* Translation controls belong below dialog titles, never beside a squeezed title. */
html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:first-child:has(>.cz-inline-i18n-bar) { display:grid!important; grid-template-columns:minmax(0,1fr) 36px!important; align-items:start!important; gap:12px!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:first-child:has(>.cz-inline-i18n-bar)>div:first-child { grid-column:1!important; grid-row:1!important; min-width:0!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:first-child>.cz-inline-i18n-bar { grid-column:1/-1!important; grid-row:2!important; width:100%!important; box-sizing:border-box!important; margin:0!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:first-child:has(>.cz-inline-i18n-bar)>button { grid-column:2!important; grid-row:1!important; width:36px!important; height:36px!important; }
html.cz-quality .adm-modal-backdrop .adm-modal-panel :is(div,label,button,input,textarea,select) { min-width:0; box-sizing:border-box; }
@media(max-width:760px) {
 html.cz-quality .adm-modal-backdrop .adm-modal-panel .grid { grid-template-columns:minmax(0,1fr)!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel [class*=col-span] { grid-column:auto!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel :is(input,textarea,select,label) { width:100%!important; max-width:100%!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel button { white-space:normal!important; overflow-wrap:anywhere; line-height:1.7!important; max-width:100%!important; height:auto!important; min-height:36px!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel h2 { font-size:17px!important; }
}

@media(max-width:760px) {
 html.cz-quality .adm-modal-backdrop .adm-modal-panel { overflow-x:hidden!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:nth-child(2)>div { max-width:100%!important; width:100%!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:nth-child(2)>div>button { display:block!important; width:100%!important; text-align:start!important; white-space:normal!important; text-wrap:wrap!important; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:nth-child(2)>div>button>span { display:inline-flex!important; align-items:center; justify-content:center; vertical-align:middle; margin-inline-end:6px; }
 html.cz-quality .adm-modal-backdrop .adm-modal-panel>div:nth-child(2)>div>span { display:none!important; }
}

@media(max-width:760px) {
 html.cz-quality.czv-ready body .adm-modal-backdrop .adm-modal-panel button[data-cz-tone] { white-space:normal!important; text-wrap:wrap!important; height:auto!important; overflow-wrap:anywhere!important; }
 html.cz-quality.czv-ready body .adm-modal-backdrop .adm-modal-panel>div:nth-child(2)>div>button[data-cz-tone] { display:block!important; height:auto!important; min-height:36px!important; line-height:1.8!important; }
}

@media(max-width:760px) {
 html.cz-quality #czq-admin-dialog button { white-space:normal!important; text-wrap:wrap!important; height:auto!important; overflow-wrap:anywhere!important; line-height:1.8!important; }
}

/* Desktop catalog simplification — user-marked regions, 2026-11-30.
   Keep all mobile layouts, catalog cards and primary navigation unchanged. */
@media (min-width:1024px) {
 html.cz-quality:is([data-page="apps"],[data-page="tools"],[data-page="course"]) body main > section.catalog-hero { display:none!important; }
 html.cz-quality:is([data-page="apps"],[data-page="tools"],[data-page="course"]) body main > section.catalog-section { padding-top:108px!important; }
 html.cz-quality:is([data-page="apps"],[data-page="tools"],[data-page="course"]) body main > section.catalog-section > .catalog-grid { margin-top:0!important; }
 html.cz-quality:is([data-page="apps"],[data-page="tools"],[data-page="course"],[data-page="service"],[data-page="material"],[data-page="about"]) body footer.cz-site-foot { display:none!important; }
 html.cz-quality[data-page="course"] body main > section.catalog-section > .catalog-note { display:none!important; }
}

/* ============================================================
   CZ STANDARD LAYER v1  ·  2026-12-04
   Single source of truth for radius / control height / equal-height
   cards across tool pages, admin pages and site pages.
   Appended last so it wins over the 17 legacy CSS stacks.
   Theme-agnostic: no hardcoded surface colours.
   ============================================================ */
:root {
  --cz-r-xs: 6px;
  --cz-r-sm: 10px;
  --cz-r-md: 14px;
  --cz-r-lg: 18px;
  --cz-r-pill: 999px;
  --cz-gap: 14px;
  --cz-btn-h: 36px;
  --cz-input-h: 42px;
  --cz-focus: #8b97a8;
}

/* ---- radius: one family, four steps -------------------------------- */
html[lang] body button:not([class*="pill"]):not([class*="round"]):not([class*="chip"]):not([class*="badge"]):not([class*="tag"]):not([class*="icon"]):not([class*="act"]):not([class*="mini"]):not([class*="dot"]):not([class*="close"]),
html[lang] body .btn:not([class*="pill"]):not([class*="round"]):not([class*="chip"]),
html[lang] body [role="button"]:not([class*="pill"]):not([class*="round"]):not([class*="chip"]),
html[lang] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[lang] body select,
html[lang] body textarea {
  border-radius: var(--cz-r-sm) !important;
}

html[lang] body [class*="card"]:not([class*="__"]):not([class*="cover"]):not([class*="badge"]):not([class*="tag"]),
html[lang] body [class*="panel"]:not([class*="__"]),
html[lang] body [class*="tile"]:not([class*="__"]) {
  border-radius: var(--cz-r-md) !important;
}

html[lang] body [class*="modal"]:not([class*="__"]),
html[lang] body [class*="dialog"]:not([class*="__"]),
html[lang] body [class*="drawer"]:not([class*="__"]) {
  border-radius: var(--cz-r-lg) !important;
}

/* ---- control height: kill the 22/24/26/28/29/30/32/33px zoo ------- */
html[lang] body button:not([class*="icon"]):not([class*="act"]):not([class*="mini"]):not([class*="dot"]):not([class*="close"]):not([class*="nav"]):not([class*="tab"]),
html[lang] body .btn:not([class*="icon"]):not([class*="mini"]),
html[lang] body [role="button"]:not([class*="icon"]):not([class*="mini"]) {
  min-height: var(--cz-btn-h) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.3;
}

html[lang] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]),
html[lang] body select,
html[lang] body textarea {
  min-height: var(--cz-input-h) !important;
  line-height: 1.45;
}

/* ---- equal-height cards inside real grid / flex rows --------------- */
html[lang] body [class*="grid"] > [class*="card"],
html[lang] body [class*="grid"] > [class*="tile"],
html[lang] body [class*="cards"] > [class*="card"],
html[lang] body [class*="cards"] > [class*="tile"] {
  height: 100% !important;
}

html[lang] body [class*="grid"],
html[lang] body [class*="cards"] {
  align-items: stretch;
  row-gap: var(--cz-gap);
}

/* ---- no clipped text, no horizontal blowout ----------------------- */
html[lang] body [class*="grid"] > *,
html[lang] body [class*="row"] > *,
html[lang] body [class*="flex"] > *,
html[lang] body [class*="card"] > * {
  min-width: 0;
}

html[lang] body [class*="title"],
html[lang] body [class*="name"],
html[lang] body [class*="desc"],
html[lang] body [class*="label"],
html[lang] body h1, html[lang] body h2, html[lang] body h3, html[lang] body h4 {
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-height: 1.45;
  letter-spacing: 0;
}

/* ---- consistent interaction feedback ------------------------------ */
html[lang] body button,
html[lang] body .btn,
html[lang] body [role="button"],
html[lang] body input,
html[lang] body select,
html[lang] body textarea {
  transition: background-color .16s ease, border-color .16s ease,
              box-shadow .16s ease, transform .16s ease;
}

html[lang] body :focus-visible {
  outline: 2px solid var(--cz-focus);
  outline-offset: 2px;
}

html[lang] body button:active:not(:disabled),
html[lang] body .btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* ---- neutral scrollbars (works in light + dark pages) ------------- */
html[lang] body *::-webkit-scrollbar { width: 9px; height: 9px; }
html[lang] body *::-webkit-scrollbar-track { background: transparent; }
html[lang] body *::-webkit-scrollbar-thumb {
  background: rgba(139, 151, 168, .38);
  border-radius: var(--cz-r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
html[lang] body *::-webkit-scrollbar-thumb:hover { background: rgba(139, 151, 168, .62); background-clip: padding-box; }

/* ---- higher-specificity equal-height for real card rows ------------ */
html[lang] body .cards[class] > [class*="card"],
html[lang] body [class*="grid"][class] > [class*="card"],
html[lang] body [class*="grid"][class] > [class*="tile"] {
  height: 100% !important;
}

html[lang] body .cards[class],
html[lang] body [class*="grid"][class] {
  align-items: stretch !important;
}

/* ---- one media ratio -> tidy work grids, no ragged rows ----------- */
html[lang] body .vs-card-media[class],
html[lang] body [class*="card-media"][class],
html[lang] body [class*="card__cover"][class] {
  aspect-ratio: 4 / 3 !important;
}

html[lang] body .vs-card-media[class] > img,
html[lang] body [class*="card-media"][class] > img,
html[lang] body [class*="card__cover"][class] > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (prefers-reduced-motion: reduce) {
  html[lang] body *, html[lang] body *::before, html[lang] body *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ================= ONE STANDARD v2 — shared edges ================= */
html[lang] body img { max-width: 100%; }
html[lang] body :is(button, input, select, textarea) {
  font-family: "Alkatip Basma Tom",inherit;
}
html[lang] body :is(.one-card, .one-kpi, .one-mod, .czhub-card,
  [class*="card"], [class*="panel"], [class*="tile"]) {
  border-radius: 14px;
}
html[lang] body :is(button, .btn, [role="button"], input, select) {
  border-radius: 10px;
}
html[lang] body :focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: 2px;
}
html[lang] body ::-webkit-scrollbar { width: 10px; height: 10px; }
html[lang] body ::-webkit-scrollbar-track { background: #151a21; }
html[lang] body ::-webkit-scrollbar-thumb {
  background: #39424f; border: 2px solid #151a21; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  html[lang] body *, html[lang] body *::before, html[lang] body *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

/* ==== HOME CINEMA FULL-BLEED (one-house fix) ====
   cz-unify's global .container{ max-width:1200px } clipped the full-screen home hero.
   In RTL grid layout the 1200px item was pinned to the right edge, leaving a wide
   black band on the left (720px at 1920). Restore the original full-bleed design:
   hero + its ambient canvas fill the viewport, copy stays centered at 800px. */
html:not(.cz-workspace) main:has(.cinematic-hero) > .cinematic-hero.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  justify-self: stretch !important;
  grid-column: 1 / -1 !important;
  box-sizing: border-box !important;
}
html:not(.cz-workspace) .cinematic-hero .silk-scene,
html:not(.cz-workspace) .cinematic-hero .silk-shade {
  inset-inline: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
html:not(.cz-workspace) .cinematic-hero .silk-scene canvas {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
}
html:not(.cz-workspace) .cinematic-hero .hero-copy {
  margin-inline: auto !important;
  max-width: min(800px, calc(100vw - 48px)) !important;
}
@media (max-width: 719px) {
  html:not(.cz-workspace) .cinematic-hero .hero-copy {
    max-width: calc(100vw - 32px) !important;
  }
}
/* ==== END HOME CINEMA FULL-BLEED ==== */

/* ==== HOME HERO LEGIBILITY (one-house fix) ====
   Ambient presets rotate through bright green/cyan frames; the small copy stayed
   low-contrast. Darken the center behind the copy and lift the small text color. */
html:not(.cz-workspace) .cinematic-hero .silk-shade {
  background:
    radial-gradient(ellipse 46% 40% at 50% 45%, rgba(0,0,0,.40), transparent 95%),
    linear-gradient(to bottom, transparent 72%, rgba(0,0,0,.50)) !important;
}
html:not(.cz-workspace) .cinematic-hero .hero-eyebrow,
html:not(.cz-workspace) .cinematic-hero .hero-description {
  color: #eceaf5 !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.85), 0 0 4px rgba(0,0,0,.65) !important;
}
/* ==== END HOME HERO LEGIBILITY ==== */

/* ==== HOME HERO FULL-HEIGHT (one-house fix) ====
   A later layer reset min-height to 0 and left the hero at 888px inside a 900px
   viewport, exposing a 12px black band at the bottom. Pin it to the viewport. */
html:not(.cz-workspace) main:has(.cinematic-hero) > .cinematic-hero.container {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
}
/* ==== END HOME HERO FULL-HEIGHT ==== */

/* ==== ONE ICON STANDARD (one-house fix) ==== */
/* Three sizes only: 12 (indicator), 18 (standard glyph), 24+ (brand/emblem).
   Every icon box is a centred grid so nothing drifts to an odd corner. */
svg[width="15"], svg[height="15"], svg[width="16"], svg[height="16"],
svg[width="17"], svg[height="17"] { width: 18px !important; height: 18px !important; }
svg[width="11"], svg[height="11"], svg[width="13"], svg[height="13"] { width: 12px !important; height: 12px !important; }
:is(.m-me-tile-ico, [class*="-ico"], [class*="icon-box"], [class*="icon-wrap"]) {
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; margin: 0 !important;
}
:is(.m-me-tile-ico, [class*="-ico"]) > svg { flex: none !important; }
.m-me-tile-ico {
  width: 36px !important; height: 36px !important; flex: 0 0 36px !important;
  border-radius: 10px !important; padding: 0 !important;
}
:is(.m-me-tile-ico svg, .czv-hub-strip svg, .cz-chat-modes button svg,
    .cz-chat-actions > button svg, .cz-member-actions svg, .czc-ico,
    .mkx-lang svg, .mkx-fullscreen svg) {
  width: 18px !important; height: 18px !important;
  stroke-width: 1.7 !important; flex: none !important;
}
:is(.icon-button, .iconbtn, .menu-button, .czuk-bar button) svg {
  width: 18px !important; height: 18px !important;
  stroke-width: 1.7 !important; flex: none !important;
}
:is([class*="card"], [class*="tile"], [class*="pane"], [class*="stat"]) > svg,
:is([class*="card"], [class*="tile"], [class*="pane"], [class*="stat"]) > span > svg {
  flex: none !important;
}
:is(.card-link svg, .text-button svg, .btn svg) {
  width: 18px !important; height: 18px !important;
  stroke-width: 1.7 !important; flex: none !important;
}
:is(.silk-toggle svg, [class*="rounded-full"] > svg[width="13"],
    [class*="rounded-full"] > svg[width="14"]) {
  width: 12px !important; height: 12px !important; flex: none !important;
}
/* ==== END ONE ICON STANDARD ==== */
