/* Zyadat AI Studio (update 20): the studio on zyadat.com/ai-tools. Colours and type come from the theme (style.css). */
.zst, .zst-dlg, .zst-toast { --zst-r: 18px; --zst-ink: #04060b; --zst-ink-2: #111620; --zst-lime: var(--color-brand-fill, #c6ff3a); }
.zst { color: var(--color-body-text); }
.zst-dlg *, .zst-dlg *::before, .zst-dlg *::after { box-sizing: border-box; }
.zst-dlg button { font: inherit; }
.zst *, .zst *::before, .zst *::after { box-sizing: border-box; }
.zst-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zst button { font: inherit; }
.zst :focus-visible, .zst-dlg :focus-visible { outline: 2px solid var(--color-brand-line, #6a9b00); outline-offset: 2px; }

/* ---------- back-office 34: the studio's bar (its sections and the credits), the tools' rail, my creations ----------
   Sizes follow the studio's own width (a container), so the page around it (the dashboard's sidebar or none) decides
   nothing. Each tool keeps one colour everywhere (rail, sheet, creations): ads lime, motion sky, designs rose,
   plans amber, writing lilac. */
.zst { container: zst / inline-size; --zst-top: 0px; }
.zst-tool--ad { --k: #c6ff3a; } .zst-tool--motion { --k: #7dd3fc; } .zst-tool--design { --k: #fda4af; } .zst-tool--plan { --k: #fcd34d; } .zst-tool--text { --k: #c4b5fd; }
.zst-bar { position: sticky; top: var(--zst-top, 0px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 16px;
  padding: 7px; border: 1px solid var(--color-line); border-radius: 18px; background: var(--color-surface); box-shadow: 0 10px 28px -22px rgba(4, 6, 11, .5); }
@supports (backdrop-filter: blur(1px)) { .zst-bar { background: color-mix(in srgb, var(--color-surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); } }
.zst-secs { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--color-surface-2, #f1f4f9); }
.zst-sec { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent;
  color: var(--color-body-text); font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.zst-sec:hover { color: var(--color-title); }
.zst-sec[aria-selected="true"] { color: var(--color-on-brand, #04060b); }
.zst-secs__ink { position: absolute; z-index: 0; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 10px; background: var(--zst-lime); box-shadow: 0 6px 16px -10px rgba(106, 155, 0, .9);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), width .32s cubic-bezier(.2, .8, .2, 1), opacity .2s; pointer-events: none; }
.zst-sec__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--color-title); color: var(--color-surface);
  font-size: 12px; font-variant-numeric: tabular-nums; }
.zst-sec[aria-selected="true"] .zst-sec__n { background: #04060b; color: var(--zst-lime); }
.zst-sec__live, .zst-tool__live, .zst-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #0ea5e9; box-shadow: 0 0 0 0 rgba(14, 165, 233, .55); animation: zst-live 1.6s ease-out infinite; }
.zst-sec__live[hidden], .zst-tool__live[hidden], .zst-sec__n[hidden] { display: none; }
.zst-dot { width: 7px; height: 7px; margin-inline-end: 5px; vertical-align: 1px; }
@keyframes zst-live { 0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(14, 165, 233, 0); } }
.zst-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.zst-rail { position: sticky; top: calc(var(--zst-top, 0px) + 74px); display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--color-line); border-radius: 20px;
  background: var(--color-surface); }
.zst-rail__all { display: none; }
.zst-rail__list { position: relative; display: flex; flex-direction: column; gap: 2px; }
.zst-rail__h { padding: 8px 10px 5px; font-size: 12px; font-weight: 800; color: var(--color-body-text); opacity: .72; }
.zst-rail__h:not(:first-child) { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--color-line); }
.zst-rail__h[hidden] { display: none; }
.zst-rail__ink { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 0; border-radius: 13px; background: var(--zst-lime); box-shadow: 0 8px 18px -12px rgba(106, 155, 0, .9);
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), height .34s cubic-bezier(.2, .8, .2, 1), width .34s, opacity .2s; pointer-events: none; }
.zst-tool { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 8px; border: 0; border-radius: 13px; background: transparent;
  color: var(--color-title); font-size: 14.5px; font-weight: 600; text-align: start; cursor: pointer; transition: background-color .15s ease, color .2s ease; }
.zst-tool:hover { background: var(--color-surface-2, #f3f6fb); }
.zst-tool[aria-selected="true"] { background: transparent; color: var(--color-on-brand, #04060b); font-weight: 700; }
.zst-tool[hidden] { display: none; }
.zst-tool__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--zst-ink); color: var(--k, var(--zst-lime)); }
.zst-tool__tx { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.zst-tool__t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zst-rail .zst-tool__tag { padding: 0; background: none; color: var(--color-brand); font-size: 11px; line-height: 1.2; }
.zst-rail .zst-tool__tag iconify-icon { display: none !important; }
.zst-rail .zst-tool[aria-selected="true"] .zst-tool__tag { background: none; color: #3f6212; }
.zst-tool__live { position: absolute; top: 5px; inset-inline-start: 31px; border: 2px solid var(--color-surface); }
.zst-main { min-width: 0; }
.zst-in { animation: zst-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.zst-wallet { display: flex; align-items: center; gap: 8px; flex: none; padding: 5px 5px 5px 14px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); }
[dir="rtl"] .zst-wallet { padding: 5px 14px 5px 5px; }
.zst-wallet__n { font-size: 14px; color: var(--color-body-text); white-space: nowrap; }
.zst-wallet__n b { font-size: 18px; color: var(--color-title); font-variant-numeric: tabular-nums; }
.zst-wallet.is-low .zst-wallet__n b { color: #c2410c; }

/* ---------- buttons, chips, fields ---------- */
.zst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 1px solid var(--color-line-strong, #c7cedb); border-radius: 12px;
  background: var(--color-surface); color: var(--color-title); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.zst-btn:hover { border-color: var(--color-brand-line); text-decoration: none; color: var(--color-title); }
.zst-btn:disabled { opacity: .55; cursor: default; }
.zst-btn--primary { background: var(--zst-lime); border-color: var(--zst-lime); color: var(--color-on-brand, #04060b); }
.zst-btn--primary:hover { color: var(--color-on-brand, #04060b); filter: brightness(.97); }
.zst-btn--quiet { border-color: transparent; background: transparent; }
.zst-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.zst-mini { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 34px; min-height: 34px; padding: 0 9px; border: 1px solid var(--color-line); border-radius: 9px;
  background: var(--color-surface); color: var(--color-title); font-size: 13px; font-weight: 600; cursor: pointer; }
.zst-mini[aria-pressed="true"] { background: var(--color-title); border-color: var(--color-title); color: var(--color-surface); }
.zst-mini--quiet { border-color: transparent; background: transparent; color: var(--color-body-text); }
.zst-link { padding: 0; border: 0; background: none; color: var(--color-brand); font-weight: 700; text-decoration: underline; cursor: pointer; }
.zst-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.zst-lbl { font-size: 14px; font-weight: 700; color: var(--color-title); }
.zst-lbl small { font-weight: 500; color: var(--color-body-text); }
.zst-help { margin: 0; font-size: 13px; line-height: 1.6; color: var(--color-body-text); }
.zst-input { width: 100%; padding: 11px 13px; border: 1px solid var(--color-line-strong, #c7cedb); border-radius: 12px; background: var(--color-input-bg, #f7f9fd); color: var(--color-title);
  font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
textarea.zst-input { min-height: 46px; field-sizing: content; max-height: 260px; }
.zst-input:focus { outline: none; border-color: var(--color-brand-line); box-shadow: 0 0 0 3px rgba(var(--rgb-lime-600, 136, 192, 0), .22); background: var(--color-surface); }
.zst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zst-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface);
  color: var(--color-title); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.zst-chip:hover { border-color: var(--color-brand-line); }
.zst-chip[aria-pressed="true"] { background: var(--color-title); border-color: var(--color-title); color: var(--color-surface); }
.zst-chip--font { font-size: 15px; }
.zst-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-title); cursor: pointer; }
.zst-check input { width: 18px; height: 18px; }
.zst-checks { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.zst-more { border-top: 1px dashed var(--color-line); padding-top: 12px; }
.zst-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--color-brand); list-style-position: inside; }
.zst-more[open] summary { margin-bottom: 14px; }
.zst-more > .zst-field + .zst-field { margin-top: 14px; }
.zst-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zst-color { position: relative; display: inline-flex; }
.zst-color input { width: 46px; height: 36px; padding: 2px; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface); cursor: pointer; }
.zst-x { display: inline-flex; align-items: center; justify-content: center; padding: 4px; border: 0; background: none; color: var(--color-body-text); cursor: pointer; border-radius: 999px; }
.zst-x--sm { position: absolute; top: -8px; inset-inline-end: -8px; width: 20px; height: 20px; padding: 0; background: var(--color-title); color: var(--color-surface); font-size: 14px; line-height: 1; }
.zst-error { margin: 0; color: #b42318; font-size: 14px; }
.zst-h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--color-title); }
.zst-h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-title); }

/* ---------- the workspace ---------- */
.zst-work { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.zst-work.is-wide { grid-template-columns: minmax(0, 1fr); }
.zst-work.is-wide .zst-brief, .zst-work.is-editing .zst-brief { display: none; }
.zst-brief, .zst-side { display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid var(--color-line); border-radius: var(--zst-r); background: var(--color-surface); }
.zst-side[hidden] { display: none; }
.zst-tool[hidden], .zst-tools__g[hidden] { display: none; }
.zst-side__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zst-brief__head { display: flex; align-items: center; gap: 12px; }
.zst-brief__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--zst-ink); color: var(--zst-lime); }
.zst-brief__t { margin: 0; font-size: 19px; font-weight: 700; color: var(--color-title); }
.zst-brief__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--color-body-text); }
.zst-brief__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.zst-go { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 9px; width: 100%; min-height: 54px; padding: 8px 18px; border: 0; border-radius: 14px;
  background: var(--zst-lime); color: var(--color-on-brand, #04060b); font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-btn); }
.zst-go small { font-size: 13px; font-weight: 600; opacity: .78; }
.zst-go:disabled { opacity: .7; cursor: progress; }
.zst-go[aria-busy="true"] iconify-icon { animation: zst-spin 1s linear infinite; }
.zst-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--color-surface-2, #f7f9fd); font-size: 14px; line-height: 1.6; color: var(--color-title); }
.zst-msg--err { background: #fff1f0; color: #8a1c12; }
.zst-msg--warn { background: #fffbeb; color: #7a4d00; }
html[data-theme='dark'] .zst-msg--err { background: rgba(244, 63, 94, .14); color: #fecdd3; }
html[data-theme='dark'] .zst-msg--warn { background: rgba(245, 158, 11, .14); color: #fde68a; }

/* the stage: always dark, so every design and colour reads the same */
.zst-stage { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 520px; padding: 22px; border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #1b2330 0%, var(--zst-ink-2) 45%, var(--zst-ink) 100%); color: #e8edf5; }
.zst-stage--empty, .zst-stage--design, .zst-stage--motion, .zst-stage--plan, .zst-stage--text, .zst-stage--note, .zst-stage--busy { justify-content: center; }
.zst-stage--done { justify-content: flex-start; }
.zst-stage .zst-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #f4f9ff; }
.zst-stage .zst-btn:hover { border-color: var(--zst-lime); color: #fff; }
.zst-stage .zst-btn--primary { background: var(--zst-lime); border-color: var(--zst-lime); color: #04060b; }
.zst-stage .zst-btn--primary:hover { color: #04060b; }
.zst-stage .zst-btn--quiet { background: transparent; border-color: transparent; }
.zst-stage .zst-help, .zst-stage p { color: #b9c3d3; }
.zst-stage .zst-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.zst-sample { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.zst-sample figcaption { font-size: 13px; color: #94a3b8; }
.zst-canvas-wrap { position: relative; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); background: #0b1020; }
.zst-canvas-wrap--portrait { max-width: 460px; }
.zst-canvas-wrap--story { max-width: 340px; border-radius: 26px; }
.zst-canvas-wrap--landscape { max-width: 640px; }
.zst-canvas { display: block; width: 100%; height: auto; }
.zst-canvas--edit { touch-action: none; } /* dragging words on the design; every other canvas lets the page scroll */
.zst-sample .zst-canvas-wrap--story { max-width: 270px; }
.zst-sample .zst-canvas-wrap--portrait { max-width: 380px; }
.zst-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.zst-saved { font-size: 13px; color: #94a3b8; min-width: 60px; }
.zst-empty { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; text-align: center; }
.zst-empty b { font-size: 12px; font-weight: 700; color: var(--zst-lime); }
.zst-empty__sample { padding: 18px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 14px; color: #f4f9ff; font-size: 15.5px; line-height: 1.8; white-space: pre-line; text-align: start; }
.zst-note { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 440px; margin: 0 auto; text-align: center; }
.zst-note h3 { margin: 0; font-size: 20px; color: #fff; }
.zst-note p { margin: 0; line-height: 1.75; }
.zst-note__ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(198, 255, 58, .12); color: var(--zst-lime); }
.zst-note__ic--warn { background: rgba(251, 191, 36, .14); color: #fbbf24; }
.zst-note__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
/* confirming a new account with a code from its e-mail (update 21.1) */
.zst-confirm .zst-help { max-width: 420px; margin: 0; }
.zst-code { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2px; }
.zst-code__in { width: 9.5em; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.zst-wallet--link { gap: 10px; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.zst-wallet--link .zst-wallet__n { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; white-space: normal; line-height: 1.35; }
.zst-wallet--link .zst-btn { flex: none; }

/* being made */
.zst-busy { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.zst-busy__orb { position: relative; width: 120px; height: 120px; margin-bottom: 6px; }
.zst-busy__orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--zst-lime); animation: zst-spin 1.4s linear infinite; }
.zst-busy__orb i:nth-child(2) { inset: 16px; border-top-color: #7dd3fc; animation-duration: 2.1s; animation-direction: reverse; }
.zst-busy__orb i:nth-child(3) { inset: 34px; background: radial-gradient(circle, rgba(198, 255, 58, .45), rgba(198, 255, 58, 0) 70%); border: 0; animation: zst-breathe 2.4s ease-in-out infinite; }
.zst-busy__line { margin: 0; font-size: 17px; font-weight: 700; color: #fff !important; }
.zst-busy__time { margin: 0; font-size: 28px; font-weight: 700; color: var(--zst-lime) !important; font-variant-numeric: tabular-nums; }
.zst-busy__hint { margin: 0; max-width: 380px; font-size: 13.5px; line-height: 1.7; }
/* made in steps (a long video, a long plan): how far it is */
.zst-steps { width: min(280px, 100%); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.zst-steps i { display: block; height: 100%; background: var(--zst-lime); border-radius: inherit; transition: width .4s ease; }
.zst-steps__t { margin: 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* a long video's chapters in the words panel */
.zst-chaps .zst-chip { max-width: 100%; }
.zst-chaps .zst-chip span[dir="auto"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.zst-chap__t { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.zst-wait { display: flex; justify-content: center; padding: 40px 0; }
.zst-dots { display: flex; gap: 6px; }
.zst-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--zst-lime); animation: zst-blink 1.2s infinite ease-in-out; }
.zst-dots i:nth-child(2) { animation-delay: .15s; }
.zst-dots i:nth-child(3) { animation-delay: .3s; }

/* a finished creation */
.zst-res__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.zst-res__t { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.zst-res__meta { margin: 3px 0 0; font-size: 13px; }
.zst-res__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.zst-res { display: flex; flex-direction: column; gap: 14px; }
.zst-change { display: flex; flex-wrap: wrap; gap: 8px; }
.zst-change .zst-input { flex: 1 1 240px; }
.zst-design, .zst-motion { display: flex; flex-direction: column; gap: 14px; }
.zst-player { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.zst-play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--zst-lime); color: #04060b; cursor: pointer; }
.zst-range { flex: 1 1 auto; accent-color: var(--zst-lime); }
.zst-time { flex: none; font-size: 13px; color: #b9c3d3; font-variant-numeric: tabular-nums; }
.zst-snd { width: 40px; height: 40px; background: rgba(255, 255, 255, .1); color: #fff; }
.zst-snd[aria-pressed="true"] { background: rgba(198, 255, 58, .16); color: var(--zst-lime); }
.zst-snd.is-waiting { animation: zst-snd 1.6s ease-in-out infinite; }
@keyframes zst-snd { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 255, 58, .45); } 50% { box-shadow: 0 0 0 8px rgba(198, 255, 58, 0); } }
.zst-sound .zst-lbl { display: inline-flex; align-items: center; gap: 6px; }
.zst-sound .zst-check { margin-top: 10px; }
.zst-rec { width: 100%; max-width: 560px; margin: 0 auto; }
.zst-rec__bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.zst-rec__bar i { display: block; height: 100%; width: 0; background: var(--zst-lime); transition: width .2s linear; }
.zst-rec p { margin: 8px 0 0; font-size: 13px; text-align: center; }

/* the words panel (beside the canvas) */
.zst-panel { display: flex; flex-direction: column; gap: 14px; }
.zst-group { display: flex; flex-direction: column; gap: 8px; }
.zst-texts { display: flex; flex-direction: column; gap: 10px; }
.zst-tx { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.zst-tx.is-sel { border-color: var(--color-brand-line); box-shadow: 0 0 0 3px rgba(var(--rgb-lime-600, 136, 192, 0), .18); }
.zst-tx__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zst-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--color-line); border-radius: 11px; background: var(--color-surface-2, #f7f9fd); }
.zst-seg .zst-mini { border: 0; min-height: 30px; background: transparent; }
.zst-seg .zst-mini[aria-pressed="true"] { background: var(--color-title); color: var(--color-surface); }
.zst-sws { display: inline-flex; gap: 4px; }
.zst-sw { width: 26px; height: 26px; padding: 0; border: 2px solid var(--color-surface); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--color-line-strong, #c7cedb); cursor: pointer; }
.zst-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--color-title); }

/* writing results */
.zst-items { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: zst-i; }
.zst-item { position: relative; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); animation: zst-in .35s ease both; }
.zst-item__t { margin: 0 0 10px; color: #f4f9ff !important; font-size: 15.5px; line-height: 1.8; white-space: pre-line; }
.zst-item__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.zst-item .zst-mini, .zst-rw .zst-mini { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #f4f9ff; }
.zst-time-tag { display: inline-block; margin-inline-end: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(198, 255, 58, .14); color: var(--zst-lime); font-size: 12.5px; font-weight: 700; }
.zst-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zst-tags li { padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #f4f9ff; font-size: 14px; animation: zst-in .3s ease both; }
.zst-menu { position: relative; display: inline-flex; }
.zst-menu__list { position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline-start: 0; display: flex; flex-direction: column; min-width: 190px; padding: 6px; border: 1px solid var(--color-line);
  border-radius: 12px; background: var(--color-surface); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35); }
.zst-menu__list[hidden] { display: none; }
.zst-menu__list button { padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--color-title); font-size: 14px; text-align: start; cursor: pointer; }
.zst-menu__list button:hover { background: var(--color-surface-2, #f7f9fd); }
.zst-rw { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(198, 255, 58, .45); }
.zst-rw__text { margin: 0 0 8px; color: #f4f9ff !important; white-space: pre-line; line-height: 1.75; }
.zst-rw__acts { display: flex; gap: 6px; }
.zst-rw__wait { margin: 0; }

/* the plan */
.zst-plan { display: flex; flex-direction: column; gap: 16px; }
.zst-plan__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.zst-plan__title { margin: 0; font-size: 20px; color: #fff; }
.zst-plan__meta { margin: 4px 0 0; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zst-seg--tabs { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.zst-seg--tabs .zst-mini { color: #e8edf5; }
.zst-seg--tabs .zst-mini[aria-pressed="true"] { background: var(--zst-lime); color: #04060b; }
.zst-plan__why { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.zst-plan__why summary { cursor: pointer; font-weight: 700; color: #fff; }
.zst-plan__why p { margin: 10px 0; line-height: 1.75; }
.zst-pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zst-pillars li { display: flex; flex-direction: column; gap: 2px; max-width: 320px; padding: 8px 12px; border-inline-start: 4px solid var(--c); border-radius: 10px; background: rgba(255, 255, 255, .05); }
.zst-pillars b { color: #fff; font-size: 14px; }
.zst-pillars span { font-size: 12.5px; color: #b9c3d3; line-height: 1.55; }
.zst-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.zst-cal__wd { padding: 4px 2px; font-size: 12px; font-weight: 700; color: #94a3b8; text-align: center; }
.zst-cal__day { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.zst-cal__day.is-blank { background: transparent; }
.zst-cal__day.has-posts { background: rgba(255, 255, 255, .06); }
.zst-cal__n { font-size: 12px; font-weight: 700; color: #94a3b8; }
.zst-pchip { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 5px 6px; border: 0; border-inline-start: 3px solid var(--c); border-radius: 8px; background: rgba(255, 255, 255, .09);
  color: #f4f9ff; text-align: start; cursor: pointer; min-width: 0; }
.zst-pchip:hover { background: rgba(255, 255, 255, .16); }
.zst-pchip.is-done { opacity: .55; }
.zst-pchip__top { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #cbd5e1; }
.zst-pchip__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.35; }
.zst-cal--mini { width: 100%; max-width: 520px; margin: 0 auto; }
.zst-cal--mini .zst-cal__day { min-height: 70px; }
.zst-plist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zst-prow { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-inline-start: 4px solid var(--c);
  border-radius: 12px; background: rgba(255, 255, 255, .05); color: #f4f9ff; text-align: start; cursor: pointer; }
.zst-prow:hover { background: rgba(255, 255, 255, .1); }
.zst-prow.is-done { opacity: .6; }
.zst-prow__when { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #cbd5e1; }
.zst-prow__when b { color: #fff; font-size: 13.5px; }
.zst-prow__what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zst-prow__what b { font-size: 15px; }
.zst-prow__tags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; }
.zst-prow__hook { font-size: 13.5px; color: #b9c3d3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- my creations ---------- */
.zst-mine { padding: 22px; border: 1px solid var(--color-line); border-radius: var(--zst-r); background: var(--color-surface); }
.zst-mine[hidden], .zst-make[hidden], .zst-recent[hidden], .zst-cta[hidden] { display: none; }
.zst-mine__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.zst-mine__count { display: inline-flex; min-width: 26px; height: 26px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 999px; background: var(--color-surface-2, #f1f4f9);
  font-size: 13px; font-weight: 700; color: var(--color-title); font-variant-numeric: tabular-nums; }
.zst-mine__count:empty { display: none; }
.zst-mine__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.zst-mine__kinds small { font-weight: 700; opacity: .65; }
.zst-mine__q { flex: 0 1 280px; min-height: 40px; padding: 8px 12px; }
.zst-mine__day { margin: 20px 0 10px; font-size: 13px; font-weight: 800; color: var(--color-body-text); }
.zst-mine__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 460px; margin: 0 auto; padding: 26px 8px; text-align: center; }
.zst-mine__empty h3 { margin: 0; font-size: 19px; color: var(--color-title); }
.zst-mine__empty p { margin: 0; line-height: 1.75; color: var(--color-body-text); }
.zst-mine__empty .zst-chips { justify-content: center; }
/* back-office 40: «خطتك هالأسبوع» — the weekly plan's card in My creations */
.zst-weekly { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; padding: 18px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-surface-2, #f7f9fd); }
.zst-weekly[hidden] { display: none; }
.zst-weekly__head { display: flex; align-items: flex-start; gap: 12px; }
.zst-weekly__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--zst-ink); color: var(--zst-lime); }
.zst-weekly__tx { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.zst-weekly__tx .zst-help { max-width: 64ch; }
.zst-weekly__on { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface);
  font-size: 12.5px; font-weight: 700; color: var(--color-title); }
.zst-weekly__on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.zst-weekly__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.zst-weekly__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.zst-weekly__acts .zst-msg { padding: 6px 10px; }
.zst-weekly__from { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-body-text); overflow-wrap: anywhere; }
.zst-weekly__h { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--color-body-text); }
.zst-weekly__ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.zst-weekly__idea { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.zst-weekly__when { font-size: 12px; font-weight: 700; color: var(--color-body-text); }
.zst-weekly__t { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--color-title); overflow-wrap: anywhere; }
.zst-weekly__idea .zst-btn { margin-top: auto; }
@media (max-width: 575px) { .zst-weekly { padding: 14px; } .zst-weekly__ic { width: 38px; height: 38px; } }
.zst-recent { margin-top: 22px; }
.zst-recent__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.zst-cards--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[dir="ltr"] .zst-flip, .zst[dir="ltr"] .zst-flip { display: inline-block; transform: scaleX(-1); }
.zst-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.zst-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; width: 100%; height: 100%; padding: 14px; border: 1px solid var(--color-line);
  border-radius: 16px; background: var(--color-surface); color: inherit; text-align: start; cursor: pointer; }
.zst-card:hover, .zst-card.is-on { border-color: var(--color-brand-line); }
.zst-card__ic { grid-row: 1 / 4; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--zst-ink); color: var(--zst-lime); }
.zst-card .zst-card__ic { color: var(--k, var(--zst-lime)); }
.zst-card__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; color: var(--color-title); line-height: 1.4; }
.zst-card__m { font-size: 12px; color: var(--color-body-text); }
.zst-card__s { font-size: 12px; font-weight: 700; color: var(--color-brand); }
.zst-card__s--failed { color: #b42318; }
.zst-card__s--running, .zst-card__s--queued { color: #0369a1; }

/* ---------- dialogs ---------- */
.zst-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--color-surface); color: var(--color-body-text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.zst-dlg--sm { width: min(520px, calc(100vw - 24px)); }
.zst-dlg::backdrop { background: rgba(4, 6, 11, .55); backdrop-filter: blur(2px); }
.zst-dlg:not([open]) { display: none; }
.zst-dlg.is-open { position: fixed; inset: 16px; margin: auto; z-index: 1000; overflow: auto; }
.zst-dlg__in { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.zst-dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zst-post__tags { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; color: var(--color-title); }
.zst-post__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zst-post__note { margin: 0; font-size: 14px; line-height: 1.7; color: var(--color-title); }
.zst-post__acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.zst-dlg .zst-rw { border-color: var(--color-brand-line); }
.zst-dlg .zst-rw__text { color: var(--color-title) !important; }
.zst-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zst-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-surface); color: var(--color-title); cursor: pointer; text-align: start; }
.zst-pack:hover { border-color: var(--color-brand-line); }
.zst-pack.is-best { border-color: var(--zst-lime); box-shadow: 0 0 0 3px rgba(198, 255, 58, .35); }
.zst-pack b { font-size: 17px; }
.zst-pack span { font-size: 15px; font-weight: 700; color: var(--color-brand); }
.zst-pack small { font-size: 12.5px; color: var(--color-body-text); }
/* back-office 36: a member's extra credits on a purchase */
.zst-bonus { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #ecfccb; color: #365314; font-size: 13.5px; font-weight: 700; }
html[data-theme="dark"] .zst-bonus { background: rgba(198, 255, 58, .14); color: #d9f99d; }
.zst-pack__bonus { font-style: normal; font-size: 12.5px; font-weight: 800; color: #4d7c0f; }
html[data-theme="dark"] .zst-pack__bonus { color: #bef264; }
.zst-ledger { display: flex; flex-direction: column; margin: 10px 0 0; padding: 0; list-style: none; }
.zst-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.zst-ledger b { font-variant-numeric: tabular-nums; color: var(--color-title); }
.zst-ledger b.is-plus { color: var(--color-brand); }
.zst-ledger small { color: var(--color-body-text); }

.zst-toast { position: fixed; z-index: 1200; inset-inline: 16px; bottom: 18px; max-width: 460px; margin: 0 auto; padding: 13px 18px; border-radius: 14px; background: #04060b; color: #f4f9ff;
  font-size: 14.5px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.zst-toast.is-on { opacity: 1; transform: none; }
.zst-toast--good { border-inline-start: 4px solid #c6ff3a; }
/* back-office 40: a toast with an undo */
.zst-toast.has-act { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.zst-toast__act { flex: none; margin-inline-start: auto; min-height: 36px; padding: 6px 16px; border: 1px solid rgba(244, 249, 255, .4); border-radius: 999px; background: transparent;
  color: #c6ff3a; font: inherit; font-weight: 700; cursor: pointer; }
.zst-toast__act:hover { background: rgba(244, 249, 255, .1); }
.zst-toast__act:focus-visible { outline: 2px solid #c6ff3a; outline-offset: 2px; }

@keyframes zst-spin { to { transform: rotate(360deg); } }
@keyframes zst-breathe { 0%, 100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes zst-blink { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
@keyframes zst-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* back-office 34: by the studio's own width. A narrower rail (icons, the name on hover), then one column of work, then a
   phone: the bar on top, the tools in a row under it (with "All tools"), the result before the form when one is open */
@container zst (max-width: 1100px) { .zst-body { grid-template-columns: 188px minmax(0, 1fr); gap: 14px; } }
@container zst (max-width: 959px) {
  .zst-body { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
  .zst-rail { padding: 8px 6px; }
  .zst-rail__h { height: 1px; margin: 6px 6px; padding: 0; overflow: hidden; font-size: 0; border-top: 1px solid var(--color-line); opacity: 1; }
  .zst-rail__h:first-child { display: none; }
  .zst-tool { justify-content: center; padding: 7px; }
  .zst-tool__tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .zst-tool__live { inset-inline-start: 38px; }
}
@container zst (max-width: 900px) {
  .zst-work { display: flex; flex-direction: column; }
  .zst-work > * { width: 100%; }
  .zst-work.is-editing .zst-stage { order: 1; }
  .zst-work.is-editing .zst-side { order: 2; }
  .zst-stage { min-height: 360px; }
  .zst-cards--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container zst (max-width: 759px) {
  .zst-bar { gap: 8px; padding: 6px; border-radius: 16px; }
  .zst-sec { padding: 0 12px; font-size: 14px; }
  .zst-wallet { padding: 4px 4px 4px 12px; }
  [dir="rtl"] .zst-wallet, .zst-wallet:dir(rtl) { padding: 4px 12px 4px 4px; }
  .zst-wallet__buy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .zst-wallet--link .zst-wallet__n { font-size: 12.5px; }
  .zst-body { display: block; }
  .zst-rail { position: static; flex-direction: row; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: none; }
  .zst-rail__all { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: 14px;
    background: var(--zst-ink); color: #f4f9ff; font-weight: 700; font-size: 13.5px; cursor: pointer; }
  .zst-rail__all iconify-icon { color: var(--zst-lime); }
  .zst-rail__list { flex-direction: row; gap: 6px; min-width: 0; overflow-x: auto; padding: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
  .zst-rail__list::-webkit-scrollbar { display: none; }
  .zst-rail__h { display: none; }
  .zst-tool { flex: none; width: auto; min-height: 44px; padding: 5px 12px 5px 6px; border: 1px solid var(--color-line); background: var(--color-surface); scroll-snap-align: center; }
  [dir="rtl"] .zst-tool { padding: 5px 6px 5px 12px; }
  .zst-tool[aria-selected="true"] { border-color: transparent; }
  .zst-tool__tx { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .zst-rail .zst-tool__tag { display: none; }
  .zst-tool__ic { width: 30px; height: 30px; border-radius: 9px; }
  .zst-tool__live { inset-inline-start: 26px; }
  .zst-rail__ink { top: 2px; right: auto; height: calc(100% - 4px); border-radius: 13px; }
  .zst[data-sec="mine"] .zst-rail { display: none; }
  .zst-sec iconify-icon, .zst-wallet [data-ledger] { display: none !important; }
  .zst-wallet:not(.zst-wallet--link) .zst-wallet__n > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .zst-sec { min-height: 38px; gap: 6px; }
  .zst-wallet { flex: none; }
  .zst-make .zst-work.is-result .zst-stage { order: -1; }
  .zst-brief, .zst-side { padding: 16px; }
  .zst-stage { padding: 14px; border-radius: 18px; scroll-margin-top: calc(var(--zst-top, 0px) + 70px); }
  .zst-mine { padding: 16px; }
  .zst-mine__q { flex: 1 1 100%; }
  .zst-recent { display: none; }
  .zst-only-wide { display: none; }
}
@container zst (min-width: 760px) { .zst-only-phone { display: none; } }
@media (max-width: 640px) {
  .zst-cal { gap: 3px; }
  .zst-cal__day { min-height: 64px; padding: 3px; border-radius: 8px; }
  .zst-pchip { padding: 3px 4px; }
  .zst-pchip__t { display: none; }
  .zst-prow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .zst-post__row { grid-template-columns: 1fr; }
  .zst-packs { grid-template-columns: 1fr 1fr; }
  .zst-canvas-wrap--story { max-width: 300px; }
}
/* the phone's button at hand (back-office 34) */
.zst-cta { position: fixed; z-index: 45; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 12px; inset-inline-end: 84px; animation: zst-in .22s ease both; } /* the site's chat button sits at the other end */
.zst-cta .zst-go { min-height: 52px; box-shadow: 0 16px 34px -14px rgba(4, 6, 11, .55), 0 0 0 1px rgba(4, 6, 11, .06); }
/* the tools sheet and the voices sheet: a sheet from the bottom on a phone */
.zst-tiles__h { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--color-body-text); }
.zst-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.zst-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 2px; width: 100%; height: 100%; padding: 12px; border: 1px solid var(--color-line);
  border-radius: 16px; background: var(--color-surface); color: var(--color-title); text-align: start; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.zst-tile:hover { border-color: var(--color-brand-line); }
.zst-tile:active { transform: scale(.985); }
.zst-tile.is-on { border-color: var(--zst-lime); box-shadow: 0 0 0 3px rgba(198, 255, 58, .32); }
.zst-tile .zst-tool__ic { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 12px; }
.zst-tile b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; }
.zst-tile span:not(.zst-tool__ic) { font-size: 12.5px; line-height: 1.5; color: var(--color-body-text); }
.zst-tile__c { font-size: 12px; font-weight: 700; color: var(--color-brand); }
.zst-tiles--sm .zst-tile span:not(.zst-tool__ic) { display: none; }
@media (max-width: 640px) {
  .zst-dlg--sheet { width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; border-radius: 22px 22px 0 0; animation: zst-up .26s cubic-bezier(.2, .8, .2, 1) both; }
  .zst-dlg--sheet.is-open { inset: auto 0 0 0; }
  .zst-dlg--sheet .zst-dlg__in { padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes zst-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* back-office 34: the voice in a form, and the voices' sheet */
.zst-vp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 9px; border: 1px solid var(--color-line); border-radius: 15px; background: var(--color-input-bg, #f7f9fd); }
/* back-office 34.2: in the studio's middle column and on phones the form is narrow, so "Change voice" goes under the voice
   (it squeezed the voice's name to nothing); the field is the container the card measures */
.zst-vp-f { container-type: inline-size; }
.zst-vp.is-none { background: transparent; border-style: dashed; }
.zst-vp__play { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--zst-ink); color: var(--zst-lime);
  cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.zst-vp__play:hover { transform: scale(1.06); }
.zst-vp__play[aria-pressed="true"] { background: var(--zst-lime); color: #04060b; }
.zst-vp__play.is-busy iconify-icon { animation: zst-breathe 1s ease-in-out infinite; }
.zst-vp__play.is-none { background: transparent; box-shadow: inset 0 0 0 1px var(--color-line, rgba(127, 127, 127, .3)); cursor: default; } /* back-office 34: nothing to hear yet */
.zst-vp__play.is-none:hover { transform: none; }
.zst-vp__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-surface-2, #eef2f7); color: var(--color-body-text); }
.zst-vp__who { display: flex; flex: 1 1 9em; flex-direction: column; gap: 1px; min-width: 0; }
.zst-vp__who b { overflow: hidden; color: var(--color-title); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.zst-vp__who small { color: var(--color-body-text); font-size: 12.5px; }
.zst-vp__change { flex: none; margin-inline-start: auto; }
.zst-vp__change small { font-weight: 600; opacity: .7; }
@container (max-width: 440px) {
  .zst-vp__change { flex: 1 1 100%; margin-inline-start: 0; }
}
.zst-vs__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zst-vs__q { flex: 1 1 200px; min-height: 40px; padding: 8px 12px; }
.zst-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--color-surface-2, #f1f4f9); }
.zst-seg__b { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--color-body-text); font-size: 13px; font-weight: 700; cursor: pointer; }
.zst-seg__b[aria-pressed="true"] { background: var(--color-surface); color: var(--color-title); box-shadow: 0 1px 3px rgba(4, 6, 11, .14); }
.zst-vs__list { display: flex; flex-direction: column; gap: 6px; max-height: min(56vh, 520px); margin: 0; padding: 2px; overflow: auto; list-style: none; }
.zst-vs__row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.zst-vs__row.is-on { border-color: var(--zst-lime); box-shadow: 0 0 0 3px rgba(198, 255, 58, .3); }
.zst-vs__av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #e2e8f0; color: #04060b; font-size: 14px; font-weight: 800; }
.zst-vs__av--m { background: #bae6fd; } .zst-vs__av--f { background: #fbcfe8; }
.zst-vs__pick { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 36px; margin-inline-start: auto; padding: 0 14px; border: 1px solid var(--color-line-strong, #c7cedb); border-radius: 10px;
  background: var(--color-surface); color: var(--color-title); font-size: 13px; font-weight: 700; cursor: pointer; }
.zst-vs__pick[aria-pressed="true"] { background: var(--zst-lime); border-color: var(--zst-lime); color: #04060b; }
.zst-vs__empty { padding: 18px; color: var(--color-body-text); text-align: center; }
.zst-vs__n { font-size: 13px; font-weight: 600; color: var(--color-body-text); }
.zad-tip { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; margin: 4px auto 0; text-align: start; }
.zad-tip iconify-icon { flex: none; margin-top: 3px; color: var(--zst-lime); }
.zst-back { gap: 6px; }
@media (prefers-reduced-motion: reduce) {
  .zst-in, .zst-cta, .zst-dlg--sheet { animation: none; }
  .zst-secs__ink, .zst-rail__ink { transition: none; }
  .zst-sec__live, .zst-tool__live, .zst-dot, .zst-vp__play.is-busy iconify-icon { animation: none; }
  .zst-busy__orb i, .zst-dots i, .zst-item, .zst-tags li, .zst-go[aria-busy="true"] iconify-icon, .zst-snd.is-waiting { animation: none; }
  .zst-steps i { transition: none; }
  .zst-toast { transition: none; }
}
/* back-office 26: the voice-over */
.zst-voice .zst-lbl { display: inline-flex; align-items: center; gap: 6px; }
.zst-voice .zst-lbl--sm { font-size: 13px; }
.zst-vlines { display: flex; flex-direction: column; gap: 8px; }
.zst-vline { display: grid; grid-template-columns: 78px minmax(0, 1fr) 32px; gap: 6px; align-items: start; }
.zst-vline .zst-vat { padding-inline: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.zst-vline.is-long textarea { border-color: #d97706; }
.zst-vwarn { grid-column: 2 / 4; margin-top: -2px; font-size: 12px; line-height: 1.5; color: #a16207; }
html[data-theme='dark'] .zst-vwarn { color: #fcd34d; }
.zst-vdel { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; color: var(--color-body-text); cursor: pointer; border-radius: 10px; }
.zst-vdel:hover, .zst-vdel:focus-visible { color: #b42318; background: var(--color-surface-2, #f7f9fd); }
.zst-vrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* back-office 32: the voice-over picked with the video, and "with voice" on the motion tool */
.zst-tool__tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: var(--color-brand-soft, rgba(198, 255, 58, .22)); color: var(--color-title); font-size: 11px; font-weight: 700; line-height: 1.4; }
.zst-tool[aria-selected="true"] .zst-tool__tag { background: rgba(4, 6, 11, .12); color: inherit; }
.zst-tool__tag[hidden] { display: none; }
.zst-voice-pick .zst-lbl { display: inline-flex; align-items: center; gap: 6px; }
.zst-voice-pick .zst-help b { color: var(--color-title); font-weight: 700; }
.zst-vauto { display: flex; align-items: center; gap: 10px; }
.zst-vauto .zst-dots { flex: none; }
/* ---------- back-office 33: ad videos ---------- */
.zad-scene--talk, .zad-line__seg--talk { --k: #c6ff3a; --kb: rgba(198, 255, 58, .14); }
.zad-scene--shot, .zad-line__seg--shot { --k: #7dd3fc; --kb: rgba(125, 211, 252, .14); }
.zad-scene--product, .zad-line__seg--product { --k: #fcd34d; --kb: rgba(252, 211, 77, .14); }
.zad-scene--end, .zad-line__seg--end { --k: #fda4af; --kb: rgba(253, 164, 175, .16); }
.zst-stage--ad:not(.zst-stage--done) { justify-content: center; }
/* the form: photos, logo, the selfie, the whole price */
.zad-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.zad-thumb { position: relative; display: inline-flex; width: 76px; height: 76px; }
.zad-thumb img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface-2, #f7f9fd); }
.zad-thumb--logo img { object-fit: contain; padding: 6px; background: #fff; }
.zad-thumb--selfie { width: 72px; height: 72px; flex: none; }
.zad-thumb--selfie img { border-radius: 50%; }
.zad-add { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 76px; height: 76px; padding: 4px;
  border: 1.5px dashed var(--color-line-strong, #c7cedb); border-radius: 14px; color: var(--color-brand); font-size: 11.5px; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; }
.zad-add:hover { border-color: var(--color-brand-line); }
.zad-add:focus-within { outline: 2px solid var(--color-brand-line, #6a9b00); outline-offset: 2px; }
.zad-add:has(input:disabled) { opacity: .6; cursor: progress; }
.zad-sub .zst-lbl--sm { font-size: 13px; }
.zad-selfie { display: flex; align-items: center; gap: 12px; }
.zad-selfie__none { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 72px; height: 72px; border: 1.5px dashed var(--color-line-strong, #c7cedb); border-radius: 50%; color: var(--color-body-text); }
.zad-selfie__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.zad-total { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--color-surface-2, #f7f9fd); color: var(--color-title); }
.zad-total iconify-icon { flex: none; margin-top: 2px; color: var(--color-brand); }
/* the camera */
.zad-consent { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--color-surface-2, #f7f9fd); color: var(--color-title); font-size: 14px; line-height: 1.75; }
.zad-cam__view { position: relative; width: min(100%, 340px); margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #04060b; }
.zad-cam__view video, .zad-cam__view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zad-cam__view video { transform: scaleX(-1); } /* like a mirror while aiming; the photo itself is as others see you */
.zad-cam__ring { position: absolute; inset: 12% 17% 20%; border: 2px dashed rgba(255, 255, 255, .75); border-radius: 50%; pointer-events: none; }
/* the board (on the dark stage) */
.zad { display: flex; flex-direction: column; gap: 16px; }
.zad .zst-lbl, .zad .zst-check { color: #e8edf5; }
.zad .zst-lbl--sm { font-size: 12.5px; font-weight: 600; color: #b9c3d3; }
.zad .zst-more { border-top-color: rgba(255, 255, 255, .14); }
.zad .zst-more summary { color: var(--zst-lime); font-size: 13px; }
.zad .zst-mini { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #f4f9ff; }
.zad .zst-msg, .zad-player .zst-msg { background: rgba(255, 255, 255, .06); color: #e8edf5; }
.zad .zst-msg--good { background: rgba(198, 255, 58, .12); color: #ecffc4; }
.zad .zst-msg--warn, .zad-player .zst-msg--warn { background: rgba(245, 158, 11, .14); color: #fde68a; }
.zad .zst-msg--err { background: rgba(244, 63, 94, .16); color: #fecdd3; }
.zad .zst-link { color: var(--zst-lime); }
.zad .zst-input:disabled { opacity: .6; }
.zad-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.zad-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zad-steps__i { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding-inline: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #94a3b8; font-size: 13.5px; font-weight: 700; }
.zad-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 12px; font-variant-numeric: tabular-nums; }
.zad-steps__i.is-now { background: rgba(198, 255, 58, .14); color: #fff; }
.zad-steps__i.is-now .zad-steps__n { background: var(--zst-lime); color: #04060b; }
.zad-steps__i.is-done { color: #e8edf5; }
.zad-steps__i.is-done .zad-steps__n { background: rgba(198, 255, 58, .2); color: var(--zst-lime); }
/* the timeline: each scene as long as it lasts, in its kind's colour */
.zad-time { display: flex; flex-direction: column; gap: 6px; }
.zad-line { display: flex; gap: 3px; width: 100%; height: 38px; }
.zad-line__seg { position: relative; flex: 1 1 0; min-width: 22px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px;
  background: var(--kb); box-shadow: inset 0 -3px 0 var(--k); color: #f4f9ff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
button.zad-line__seg:hover { background: rgba(255, 255, 255, .12); }
.zad-line__seg iconify-icon { color: var(--k); }
.zad-line__t { display: flex; justify-content: space-between; margin: 0; font-size: 12px; color: #94a3b8 !important; font-variant-numeric: tabular-nums; }
/* what to do now: make the frames, the video; how far it is */
.zad-now { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.zad-now__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.zad-go { flex-wrap: wrap; gap: 4px 9px; min-height: 52px; padding: 8px 20px; border-radius: 14px; font-size: 15.5px; font-weight: 800; }
.zad-go small { font-size: 12.5px; font-weight: 600; opacity: .78; }
.zad-now__run { display: flex; align-items: center; gap: 16px; }
.zad-orb { flex: none; width: 64px; height: 64px; margin: 0; }
.zad-orb i:nth-child(2) { inset: 9px; }
.zad-orb i:nth-child(3) { inset: 18px; }
.zad-now__txt { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.zad-now__t { margin: 0; font-size: 15.5px; font-weight: 700; color: #fff !important; }
.zad-now__time { margin-inline-start: 6px; color: var(--zst-lime); font-variant-numeric: tabular-nums; }
.zad-now .zst-steps { width: 100%; }
.zad-parts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.zad-part { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #b9c3d3; }
.zad-part iconify-icon { color: #7dd3fc; }
.zad-part.is-done iconify-icon { color: var(--zst-lime); }
/* the scenes */
.zad-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.zad-scene { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-inline-start: 3px solid var(--k);
  border-radius: 16px; background: rgba(255, 255, 255, .035); scroll-margin: 90px; }
.zad--square .zad-scene { grid-template-columns: 140px minmax(0, 1fr); }
.zad--landscape .zad-scene { grid-template-columns: minmax(0, 1fr); }
.zad-pic { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 12px; background: #0b1020; }
.zad--square .zad-pic { aspect-ratio: 1 / 1; }
.zad--landscape .zad-pic { aspect-ratio: 16 / 9; }
.zad-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zad-pic__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--k); opacity: .6;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 10px, transparent 10px 20px); }
.zad-pic__busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px;
  background: linear-gradient(110deg, rgba(4, 6, 11, .25) 30%, rgba(198, 255, 58, .2) 50%, rgba(4, 6, 11, .25) 70%); background-size: 240% 100%; animation: zad-shine 1.5s linear infinite; }
.zad-pic__busy b { padding: 2px 8px; border-radius: 99px; background: rgba(4, 6, 11, .72); color: #fff; font-size: 11.5px; }
.zad-pic__bad { position: absolute; top: 6px; inset-inline-end: 6px; display: inline-flex; padding: 5px; border-radius: 50%; background: rgba(4, 6, 11, .78); color: #fbbf24; }
.zad-pic__tag { position: absolute; inset-inline: 6px; bottom: 6px; padding: 3px 7px; border-radius: 8px; background: rgba(4, 6, 11, .8); color: #fde68a; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; }
.zad-pic__clip { position: absolute; bottom: 6px; inset-inline-start: 6px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--zst-lime); color: #04060b; }
.zad-scene__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zad-scene__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.zad-scene__head b { color: #fff; font-size: 14.5px; }
.zad-kind { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--kb); color: var(--k); font-size: 12px; font-weight: 700; }
.zad-scene__t { margin-inline-start: auto; font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.zad-count { font-size: 11.5px; text-align: end; }
.zad-more { padding-top: 8px; }
.zad-more[open] summary { margin-bottom: 10px; }
.zad-more__in { display: flex; flex-direction: column; gap: 10px; }
.zad-scene__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.zad-redo { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.zad-redo .zst-input { flex: 1 1 200px; padding: 8px 11px; font-size: 14px; }
/* the end card's words */
.zad-end { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-inline-start: 3px solid #fda4af; border-radius: 16px; background: rgba(255, 255, 255, .035); }
.zad-end .zst-h3 { display: flex; align-items: center; gap: 6px; color: #fff; }
.zad-end .zst-h3 iconify-icon { color: #fda4af; }
.zad-end__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.zad-end__say { grid-column: 1 / -1; }
/* the player */
.zad-player { display: flex; flex-direction: column; gap: 12px; }
.zad-screen .zst-canvas { position: relative; z-index: 1; }
.zad-vids { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.zad-vids video { position: absolute; inset: 0; width: 100%; height: 100%; }
.zad-load { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(4, 6, 11, .72); }
.zad-load p { margin: 0; font-size: 13px; color: #e8edf5 !important; }
.zad-load .zst-steps { width: 60%; }
/* the example on the empty stage */
.zad-sample { width: 100%; max-width: 620px; margin: 0 auto; gap: 14px; }
.zad-sample .zad-line { height: 30px; }
.zad-sample .zad-line__seg { cursor: default; }
.zad-sample__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.zad-sample__card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-top: 3px solid var(--k); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.zad-sample__ic { color: var(--k); }
.zad-sample__k { font-size: 12px; font-weight: 700; color: #e8edf5; }
.zad-sample__k small { font-weight: 600; color: #94a3b8; font-variant-numeric: tabular-nums; }
.zad-sample__t { font-size: 13px; line-height: 1.5; color: #f4f9ff; }
.zst-card--ad .zst-card__ic { color: #c6ff3a; }
@keyframes zad-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (max-width: 640px) {
  .zad-scene { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .zad--square .zad-scene { grid-template-columns: 110px minmax(0, 1fr); }
  .zad-steps__i { padding-inline: 4px 10px; font-size: 12.5px; }
  .zad-now__run { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .zad-pic__busy { animation: none; }
}
.zad-cast { padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .1); border-top-style: solid; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.zad-cast summary { display: inline-flex; align-items: center; gap: 6px; }
.zad-cast[open] summary { margin-bottom: 10px; }
/* back-office 34: above a result, the way back to my creations (and up to the form on a phone) */
.zst-res__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px 0 -4px; }
.zst-stage .zst-res__nav .zst-btn { color: #b9c3d3; }
.zst-stage .zst-res__nav .zst-btn:hover { color: #fff; }
/* ---------- back-office 35: a member's saved faces (under "Me" in the ad form) and brand kits (above any form) ---------- */
.zad-faces-wrap:empty, .zst-brandbar-wrap:empty { display: none; }
.zad-faces { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--color-line); }
.zad-faces__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.zad-face { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; }
.zad-face img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 50%; background: var(--color-surface-2, #f1f4f9); }
.zad-face__pick { position: relative; display: inline-flex; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; transition: border-color .15s ease; }
.zad-face__pick:hover { border-color: var(--color-brand-line, #6a9b00); }
.zad-face.is-on .zad-face__pick { border-color: var(--color-title); box-shadow: 0 0 0 3px var(--zst-lime); }
.zad-face.is-on .zad-face__pick::after { content: ""; position: absolute; bottom: -3px; inset-inline-start: -3px; width: 20px; height: 20px; border: 2px solid var(--color-surface); border-radius: 50%;
  background: var(--zst-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2304060b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.zad-face.is-pending img, .zad-face.is-making img, .zad-face.is-refused img, .zad-face.is-failed img { opacity: .55; filter: grayscale(.6); }
.zad-face.is-pending, .zad-face.is-making, .zad-face.is-refused, .zad-face.is-failed { color: var(--color-body-text); }
.zad-face.is-old img { opacity: .7; filter: grayscale(.5); } /* saved during a past membership: can only be removed */
.zad-face > iconify-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1.5px dashed var(--color-line-strong, #c7cedb); border-radius: 50%; }
.zad-face.is-making > iconify-icon { animation: zst-live 1.6s ease-out infinite; border-radius: 50%; }
.zad-face small { max-width: 72px; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; }
.zad-face.is-refused small, .zad-face.is-failed small { color: var(--color-danger, #c62828); }
.zad-face .zst-x--sm { top: -4px; inset-inline-end: -2px; }
.zad-faces__add .zst-chip small { font-weight: 600; opacity: .75; white-space: nowrap; }
.zad-faces__lock { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.zad-faces__lock a { color: var(--color-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.zst-brandbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface-2, #f7f9fd); }
.zst-brandbar > .zst-lbl { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 4px; }
.zst-brandbar__dot { display: inline-block; flex: none; width: 12px; height: 12px; border: 1px solid rgba(4, 6, 11, .18); border-radius: 50%; }
.zst-chip--ghost { min-height: 36px; padding: 0 9px; margin-inline-start: -4px; border-color: transparent; background: transparent; color: var(--color-body-text); }
.zst-brand__colors { display: flex; gap: 8px; }
.zst-brand__colors input { width: 52px; height: 38px; padding: 2px; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface); cursor: pointer; }
.zst-dlg [data-brand-form] { display: flex; flex-direction: column; gap: 14px; }
.zst-dlg [data-brand-form] .zst-field { display: flex; flex-direction: column; gap: 6px; }
.zst-btn.is-off { opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .zad-face.is-making > iconify-icon { animation: none; } }

/* ---------- back-office 41: «اطلبها بالكلام» — one line opens the right tool, filled in ----------
   A dark band with the studio's lime: the one place the studio speaks first. While it reads the request a light runs
   round the box; what the words filled in glows once. Nothing moves with reduced motion. */
.zst-ask { position: relative; margin: 0 0 18px; padding: 18px; border-radius: 22px; background: var(--zst-ink); color: #e9eef6; overflow: hidden; isolation: isolate; }
.zst-ask::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; inset-inline-end: -120px; top: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 58, .26), rgba(198, 255, 58, 0) 66%); pointer-events: none; }
.zst-ask:empty { display: none; }
.zst-ask__in { display: grid; gap: 10px; }
.zst-ask__h { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; color: #fff; }
.zst-ask__spark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--zst-lime); color: var(--zst-ink); animation: zst-ask-spark 3.6s ease-in-out infinite; }
@keyframes zst-ask-spark { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg) scale(1.08); } 86% { transform: rotate(8deg) scale(1.04); } }
.zst-ask__p { margin: 0; max-width: 62ch; font-size: 13.5px; line-height: 1.7; color: rgba(233, 238, 246, .74); }
.zst-ask__form { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 6px; border-radius: 18px; background: #121722; border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s ease; }
.zst-ask__form:focus-within { border-color: rgba(198, 255, 58, .6); }
.zst-ask__form::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--zst-a, 0deg), transparent 0 60%, var(--zst-lime) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .2s ease; }
@property --zst-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.zst-ask__form.is-thinking::after { opacity: 1; animation: zst-ask-run 1.1s linear infinite; }
@keyframes zst-ask-run { to { --zst-a: 360deg; } }
.zst-ask__t { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 11px 10px; border: 0; outline: 0; resize: none; background: transparent; color: #fff; font: inherit; font-size: 16px; line-height: 1.5; }
.zst-ask__t::placeholder { color: rgba(233, 238, 246, .5); }
.zst-ask__go { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--zst-lime); color: var(--zst-ink);
  font-weight: 800; font-size: 14.5px; cursor: pointer; transition: transform .15s ease; }
.zst-ask__go:hover { transform: translateY(-1px); }
.zst-ask__go:disabled { cursor: progress; transform: none; }
.zst-ask__form.is-thinking .zst-ask__go iconify-icon { animation: zst-spin 1s linear infinite; }
@keyframes zst-spin { to { transform: rotate(360deg); } }
.zst-ask__msg { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.6; background: rgba(255, 255, 255, .06); }
.zst-ask__msg--err { background: rgba(248, 113, 113, .14); color: #fecaca; }
.zst-ask__ex { display: flex; flex-wrap: wrap; gap: 6px; }
.zst-ask__chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: #e9eef6; font-size: 12.5px; font-weight: 600; line-height: 1.4; text-align: start; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.zst-ask__chip:hover { border-color: var(--zst-lime); background: rgba(198, 255, 58, .1); }
.zst-ask__chip--occ { border-color: rgba(198, 255, 58, .5); background: rgba(198, 255, 58, .12); color: #fff; font-weight: 700; }
.zst-ask__chip--occ small { font-size: 11.5px; font-weight: 600; color: rgba(233, 238, 246, .7); }
.zst-ask__chip--occ iconify-icon { color: var(--zst-lime); }
/* what the words filled in */
.zst-filled { animation: zst-filled 1.8s ease-out both; animation-delay: var(--d, 0ms); border-radius: 14px; }
@keyframes zst-filled { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 58, 0); background-color: transparent; } 18% { box-shadow: 0 0 0 4px rgba(198, 255, 58, .55); background-color: rgba(198, 255, 58, .12); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 58, 0); background-color: transparent; } }
@container zst (max-width: 620px) { .zst-ask { padding: 14px; border-radius: 18px; } .zst-ask__h { font-size: 17px; } .zst-ask__go span { display: none; } .zst-ask__go { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .zst-ask__spark, .zst-ask__form.is-thinking::after, .zst-filled, .zst-ask__form.is-thinking .zst-ask__go iconify-icon { animation: none !important; } }
