/*
 * Depaza chat — app shell styles.
 *
 * Identity (see resources/css/app.css for the raw tokens):
 *   ink-navy slate neutrals · Depaza blue for brand + primary actions ·
 *   EU-star gold ONLY for actions on the user's connected tools (the "action trail").
 * Type: Geologica. Every colour below resolves to a theme token, so this one sheet
 * serves light and dark ([data-theme="dark"] on <html>).
 */

:root {
  --dz-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dz-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dz-canvas: rgb(var(--dz-white));
  --dz-surface: rgb(var(--dz-white));
  --dz-rail: rgb(var(--dz-n-50));
  --dz-ink: rgb(var(--dz-n-900));
  --dz-body: rgb(var(--dz-n-800));
  --dz-muted: rgb(var(--dz-n-500));
  --dz-faint: rgb(var(--dz-n-400));
  --dz-hairline: rgb(var(--dz-n-200));
  --dz-hairline-soft: rgb(var(--dz-n-100));
  --dz-brand: rgb(var(--dz-brand-500));
  --dz-brand-ink: rgb(var(--dz-brand-600));
  --dz-gold: rgb(var(--dz-gold-500));
  --dz-gold-ink: rgb(var(--dz-gold-700));
  --dz-gold-wash: rgb(var(--dz-gold-50));
  --dz-shadow: 0 1px 2px rgb(var(--dz-n-900) / 0.04), 0 10px 32px -14px rgb(var(--dz-n-900) / 0.16);
  --dz-shadow-pop: 0 2px 6px rgb(var(--dz-n-900) / 0.06), 0 22px 48px -18px rgb(var(--dz-n-900) / 0.32);
  --dz-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --dz-safe-b: env(safe-area-inset-bottom, 0px);
  --dz-safe-t: env(safe-area-inset-top, 0px);
  /* Soft-keyboard height (mobile), driven by visualViewport in chat.js. */
  --kb: 0px;
}
[data-theme="dark"] {
  --dz-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -14px rgb(0 0 0 / 0.6);
  --dz-shadow-pop: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 48px -16px rgb(0 0 0 / 0.75);
  --dz-rail: rgb(16 20 35);
}

/* ---- Code blocks: always dark, in both themes ---- */
.prose-chat pre code.hljs { display: block; overflow-x: auto; padding: 0.9rem 1rem; background: rgb(var(--dz-code-bg)); font-family: var(--dz-mono); font-size: 0.82rem; line-height: 1.55; -webkit-font-smoothing: antialiased; tab-size: 2; }
.hljs { color: #e6e8ef; }
.hljs-keyword, .hljs-selector-tag, .hljs-tag { color: #ff8fb8; }
.hljs-string, .hljs-title, .hljs-name, .hljs-type, .hljs-attribute { color: #b8e986; }
.hljs-comment, .hljs-quote { color: #6f7894; font-style: italic; }
.hljs-number, .hljs-literal { color: #ffc46b; }
.hljs-function .hljs-title, .hljs-title.function_ { color: #8fa6ff; }
.hljs-built_in, .hljs-params { color: #d0a8ff; }

.dz-code { margin: .85rem 0; border-radius: .8rem; overflow: hidden; border: 1px solid rgb(var(--dz-code-head)); background: rgb(var(--dz-code-bg)); }
.dz-code-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .45rem .4rem .85rem; background: rgb(var(--dz-code-head)); border-bottom: 1px solid rgb(255 255 255 / 0.06); }
/* Bare ``` fence (no lang): only the copy affordance — push it right. */
.dz-code-head > .dz-code-copy:only-child { margin-left: auto; }
.dz-code-lang { font-family: var(--dz-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: #9aa3bf; user-select: none; }
.dz-code-copy { display: inline-flex; align-items: center; gap: .35rem; font-size: 11.5px; font-weight: 500; color: #9aa3bf; background: transparent; border: 1px solid transparent; border-radius: .45rem; padding: .22rem .5rem; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.dz-code-copy:hover { background: rgb(255 255 255 / 0.08); color: #f4f5fa; }
.dz-app-root .dz-code-copy:focus-visible { outline: none; border-color: rgb(143 166 255 / .7); box-shadow: 0 0 0 2px rgb(143 166 255 / .25); }
.dz-code-copy .dz-code-ico-done { display: none; }
.dz-code-copy.copied { color: #6ee7a8; }
.dz-code-copy.copied .dz-code-ico-copy { display: none; }
.dz-code-copy.copied .dz-code-ico-done { display: inline; }
.dz-code > pre { margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: rgb(var(--dz-code-bg)) !important; padding: 0.9rem 1rem; }
/* Light-on-dark even before highlight.js runs (mid-stream ``` blocks). */
.prose-chat .dz-code pre,
.prose-chat .dz-code pre code { color: #e6e8ef; }

/* ---- Generated images ---- */
.prose-chat .dz-img { position: relative; display: inline-block; margin: .75rem 0; max-width: 100%; line-height: 0; }
.prose-chat .dz-img-el { max-height: 22rem; max-width: 100%; width: auto; height: auto; display: block;
                         border: 1px solid var(--dz-hairline); border-radius: .8rem; cursor: zoom-in; }
.dz-img-bar { position: absolute; top: .5rem; right: .5rem; display: inline-flex; gap: .25rem; opacity: 0; transition: opacity .15s ease; }
.dz-img:hover .dz-img-bar, .dz-img:focus-within .dz-img-bar { opacity: 1; }
.dz-img-bar > * { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
                  border-radius: .5rem; background: rgb(11 15 34 / .6); color: #fff; border: 0; padding: 0; cursor: pointer;
                  transition: background .15s ease; }
.dz-img-bar > *:hover { background: rgb(11 15 34 / .82); }
@media (max-width: 768px) { .dz-img-bar { opacity: 1; } }

.prose-chat .dz-audio { display: block; margin: .75rem 0; max-width: 100%; }
.prose-chat .dz-audio audio { max-width: 100%; height: 2.25rem; }

.prose-chat .dz-img.is-loading { min-width: 6rem; min-height: 4rem; vertical-align: middle; }
.prose-chat .dz-img.is-loading .dz-img-el { opacity: 0; }
.prose-chat .dz-img.is-loaded .dz-img-el { opacity: 1; transition: opacity .2s ease; }
.prose-chat .dz-img.is-error .dz-img-el { opacity: 1; }
.dz-img.is-loaded .dz-img-ph, .dz-img.is-error .dz-img-ph { display: none; }
.dz-img:not(.is-loaded) .dz-img-bar { display: none; }
.dz-img-ph {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--dz-hairline); border-radius: .8rem; background: rgb(var(--dz-n-100)); line-height: normal;
}
.dz-img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--dz-n-900) / .05) 45%, rgb(var(--dz-n-900) / .09) 55%, transparent);
  transform: translateX(-100%);
  animation: dzImgShimmer 1.4s var(--dz-ease-out) infinite;
}
@keyframes dzImgShimmer { to { transform: translateX(100%); } }
.dz-img-ph-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; color: var(--dz-muted); }
.dz-img-ph-txt { font-size: .75rem; font-weight: 500; }
.dz-img-spin { animation: dzImgSpin .8s linear infinite; }
@keyframes dzImgSpin { to { transform: rotate(360deg); } }

/* ---- Attachment chips ---- */
.att-chip { position: relative; }
.att-thumb-btn { padding: 0; margin: 0; border: 0; background: none; line-height: 0; cursor: zoom-in; border-radius: .5rem; flex: 0 0 auto; }
.att-thumb { width: 1.75rem; height: 1.75rem; border-radius: .5rem; object-fit: cover; display: block;
             border: 1px solid var(--dz-hairline); background: rgb(var(--dz-n-100)); }
.att-thumb-btn:hover .att-thumb { border-color: rgb(var(--dz-n-300)); }
.att-dl { display: inline-flex; align-items: center; justify-content: center; color: var(--dz-faint); border-radius: .375rem;
          padding: .1rem; transition: color .15s ease; flex: 0 0 auto; }
.att-dl:hover { color: var(--dz-ink); }
.att-hovercard {
  position: absolute; bottom: calc(100% + .4rem); left: 0; z-index: 50;
  opacity: 0; pointer-events: none; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  background: var(--dz-surface); border: 1px solid var(--dz-hairline); border-radius: .8rem; padding: .25rem;
  box-shadow: var(--dz-shadow-pop);
}
.att-hovercard img { display: block; max-width: 15rem; max-height: 15rem; width: auto; height: auto; border-radius: .5rem; }
.att-chip:hover .att-hovercard, .att-chip:focus-within .att-hovercard { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .att-hovercard { display: none; } }

/* ---- Motion ---- */
.message-enter { animation: messageEnter 0.26s var(--dz-ease-out) forwards; }
@keyframes messageEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* In-conversation Find */
.chat-message.search-hit { box-shadow: inset 0 0 0 2px rgb(var(--dz-gold-300)); }
.chat-message.search-current { box-shadow: inset 0 0 0 3px rgb(var(--dz-gold-500)), 0 0 0 1px rgb(var(--dz-gold-100)); }
.chat-message.search-current-pulse { animation: searchPulse 1.6s ease-out; }
@keyframes searchPulse {
  0%   { box-shadow: inset 0 0 0 3px rgb(var(--dz-gold-500)), 0 0 0 1px rgb(var(--dz-gold-100)); }
  70%  { box-shadow: inset 0 0 0 3px rgb(var(--dz-gold-500)), 0 0 0 1px rgb(var(--dz-gold-100)); }
  100% { box-shadow: inset 0 0 0 2px rgb(var(--dz-gold-300)); }
}

/* Indeterminate top progress bar */
.depaza-progress-stripe {
  width: 32%;
  background: linear-gradient(90deg, transparent, rgb(var(--dz-brand-300)) 30%, var(--dz-brand) 70%, transparent);
  animation: depazaProgress 1.25s var(--dz-ease-out) infinite;
  will-change: transform;
}
@keyframes depazaProgress { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* Streaming caret */
.depaza-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.18em;
  background: var(--dz-brand); border-radius: 2px; opacity: 0.9;
  animation: depazaCaret 1.05s var(--dz-ease-out) infinite;
}
@keyframes depazaCaret { 0%, 100% { opacity: 0.18; } 45% { opacity: 0.95; } }

/* ============================================================
   App shell
   ============================================================ */
.dz-app-root, .dz-chat-pane, .dz-chat-surface { background-color: var(--dz-canvas); color: var(--dz-ink); }

.dz-sidebar {
  background: var(--dz-rail);
  border-right: 1px solid var(--dz-hairline);
  padding-top: 6px;
}
[data-theme="dark"] .dz-sidebar img[src*="depaza-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
.dz-eu-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #003399; color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 7px 4px 6px; border-radius: 6px; line-height: 1; flex-shrink: 0;
}
.dz-eu-badge::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  background: #ffcc00;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* New chat: ink slab, not a gradient. The kbd chip advertises the command palette. */
.dz-new-chat {
  width: 100%;
  border: 0;
  border-radius: 12px;
  color: rgb(var(--dz-white));
  background: var(--dz-ink);
  padding: 10px 12px 10px 14px;
  font-weight: 550;
  font-size: 14px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 6px 16px -10px rgb(var(--dz-n-900) / 0.6);
  transition: transform .15s var(--dz-ease-spring), background .15s var(--dz-ease-out);
}
.dz-new-chat:hover { background: rgb(var(--dz-n-800)); }
.dz-new-chat:active { transform: scale(0.985); }
.dz-new-chat-kbd {
  font-family: var(--dz-mono); font-size: 11px; font-weight: 500;
  padding: 2px 6px; border-radius: 6px;
  background: rgb(var(--dz-white) / 0.14); color: rgb(var(--dz-white) / 0.85);
}

.dz-sidebar nav a { border-radius: 10px; color: rgb(var(--dz-n-700)); }
.dz-sidebar nav a.bg-neutral-200,
.dz-sidebar nav a[href].font-medium.bg-neutral-200 {
  background: rgb(var(--dz-n-100)) !important;
  color: var(--dz-ink) !important;
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--dz-brand);
}
.dz-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  color: rgb(var(--dz-white));
  background: var(--dz-ink);
  box-shadow: 0 0 0 2px var(--dz-rail), 0 0 0 3.5px rgb(var(--dz-brand-300));
  display: grid; place-items: center; font-weight: 600; font-size: 12px;
}
.dz-sidebar-foot, .dz-mobile-bar { border-color: var(--dz-hairline); background: var(--dz-rail); }
.dz-mobile-bar { background: var(--dz-canvas); border-bottom: 1px solid var(--dz-hairline); }
.dz-sidebar-foot { border-top: 1px solid var(--dz-hairline); padding-top: 0.75rem; margin-top: 0.25rem; }
.dz-conv-active { background: rgb(var(--dz-white)); box-shadow: 0 0 0 1px var(--dz-hairline), var(--dz-shadow); }
[data-theme="dark"] .dz-conv-active { background: rgb(var(--dz-n-100)); box-shadow: none; }

.dz-chat-header { background: transparent; border-bottom: 1px solid transparent; }
.dz-chat-pane.is-thread .dz-chat-header { border-bottom-color: var(--dz-hairline-soft); }

.dz-chat-pane .prose-chat { font-size: 16px; line-height: 1.7; color: var(--dz-body); }

/* Thread: fade the canvas into the floating composer instead of a hard rule. */
.dz-composer-bar { background: transparent; border-top: none; }
.dz-chat-pane.is-thread .dz-composer-bar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 48px;
  background: linear-gradient(to bottom, rgb(var(--dz-white) / 0), var(--dz-canvas));
  pointer-events: none;
}
@media (min-width: 768px) {
  .dz-chat-pane.is-empty { justify-content: flex-start; position: relative; }
  .dz-chat-pane.is-empty .dz-chat-surface { flex: 0 0 auto; overflow: visible; }
  .dz-composer-bar { overflow: visible; }
  .dz-chat-pane.is-empty .dz-composer-bar { padding: 14vh 48px 32px; max-width: 900px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .dz-chat-pane.is-empty .dz-empty-hero { animation: dzEmptyIn 0.42s var(--dz-ease-out) both; }
}
@keyframes dzEmptyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Composer
   ============================================================ */
.dz-composer {
  background: var(--dz-surface);
  border: 1px solid var(--dz-hairline);
  border-radius: 22px;
  padding: 0.5rem 0.6rem 0.5rem;
  box-shadow: var(--dz-shadow);
  transition: border-color 0.2s var(--dz-ease-out), box-shadow 0.25s var(--dz-ease-out);
}
.dz-composer:focus-within { border-color: rgb(var(--dz-n-300)); box-shadow: 0 0 0 4px rgb(var(--dz-brand-500) / 0.08), var(--dz-shadow); }
.dz-composer.is-dragging { border-color: var(--dz-brand); box-shadow: 0 0 0 4px rgb(var(--dz-brand-500) / 0.14); }
.dz-composer.is-recording { border-color: rgb(220 38 38 / 0.55); box-shadow: 0 0 0 4px rgb(220 38 38 / 0.1); }
.dz-composer.is-empty-hero {
  min-height: 132px; margin-top: 28px; padding: 16px 14px 12px 18px;
  border-radius: 24px; justify-content: space-between;
}
.dz-composer.is-empty-hero textarea { min-height: 52px; font-size: 17px; padding-left: 0; padding-right: 0; }
.dz-composer.is-empty-hero textarea::placeholder { color: var(--dz-faint); }
.dz-composer.is-empty-hero .dz-prompt-actions { gap: 6px; color: var(--dz-muted); font-size: 14px; }
.dz-action-label { font-size: 13.5px; color: var(--dz-muted); white-space: nowrap; }
/* Send: the one saturated control on the stage. */
.dz-send-hero {
  width: 42px !important; height: 42px !important;
  background: var(--dz-brand) !important;
  box-shadow: 0 6px 16px -6px rgb(var(--dz-brand-500) / 0.65);
}
.dz-send-hero:hover { background: var(--dz-brand-ink) !important; }
.dz-send-hero:disabled { opacity: 1; }

/* Composer chips row: active connectors + temporary flag */
.dz-composer-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 4px 6px; }
.dz-cchip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px;
  padding: 0 9px 0 5px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: rgb(var(--dz-n-700));
  background: rgb(var(--dz-n-50)); border: 1px solid var(--dz-hairline);
}
.dz-cchip img, .dz-cchip .dz-mono-tile { width: 16px; height: 16px; border-radius: 4px; }
.dz-cchip.is-connector { background: var(--dz-gold-wash); border-color: rgb(var(--dz-gold-200)); color: var(--dz-gold-ink); }
.dz-cchip.is-temp { background: rgb(var(--dz-n-900)); color: rgb(var(--dz-white)); border-color: transparent; padding-left: 9px; }
.dz-cchip button { color: inherit; opacity: .6; line-height: 1; }
.dz-cchip button:hover { opacity: 1; }

/* Mic */
.dz-mic-btn {
  color: var(--dz-muted); background: transparent; border: 1px solid transparent;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.dz-mic-btn:hover, .dz-mic-btn:active { color: var(--dz-ink); background: transparent; }

/* Recording overlay */
.dz-recording-bar { background: var(--dz-surface); border-radius: inherit; animation: dzRecIn 0.22s var(--dz-ease-spring) both; }
@keyframes dzRecIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.dz-rec-send { box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.5); }
.dz-wave-bar {
  width: 3px; min-height: 4px; border-radius: 9999px; background: var(--dz-brand);
  transition: height 110ms linear, background-color 0.2s var(--dz-ease-out); will-change: height;
}
.dz-recording-bar.is-cancel .dz-wave-bar { background: #dc2626; }
.dz-wave.is-idle .dz-wave-bar { animation: dzWavePulse 1.1s var(--dz-ease-out) infinite; }
.dz-wave.is-idle .dz-wave-bar:nth-child(3n+1) { animation-delay: -0.15s; }
.dz-wave.is-idle .dz-wave-bar:nth-child(3n+2) { animation-delay: -0.45s; }
.dz-wave.is-idle .dz-wave-bar:nth-child(3n+3) { animation-delay: -0.75s; }
@keyframes dzWavePulse { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.6); } }

/* ============================================================
   Empty stage
   ============================================================ */
.dz-empty-unfold {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: var(--dz-muted);
}
.dz-empty-unfold:hover { background: rgb(var(--dz-n-100)); color: var(--dz-ink); }
.dz-empty-hero { display: flex; flex-direction: column; align-items: flex-start; text-align: left; margin: 0 auto; gap: 0.25rem; }
.dz-empty-form { width: 100%; margin: 0 auto; }
.dz-empty-logo { height: 16px; width: auto; display: block; }
[data-theme="dark"] .dz-empty-logo { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
.dz-eu-first { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.45rem; margin: 0 0 0.9rem; line-height: 1.3; }
.dz-eu-flag { display: block; width: 20px; height: 13px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 51 153 / 0.18); flex-shrink: 0; }
.dz-eu-first-lead { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--dz-ink); }
.dz-eu-first-dot { color: rgb(var(--dz-n-300)); font-weight: 500; }
.dz-eu-first-rest { font-size: 12.5px; font-weight: 400; color: var(--dz-muted); }
/* The greeting is set like a headline, left-aligned on the same edge as the composer. */
.dz-empty-hi {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--dz-ink);
  text-wrap: balance;
}
.dz-empty-welcome { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--dz-muted); max-width: 40rem; }
.dz-composer.is-empty-hero:focus-within { border-color: rgb(var(--dz-n-300)); }
.dz-empty-below { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin: 18px auto 0; width: 100%; }
/* "Connect your tools" strip under the empty composer */
.dz-connect-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px 10px 14px; border-radius: 16px;
  border: 1px dashed rgb(var(--dz-gold-300)); background: var(--dz-gold-wash);
  color: var(--dz-gold-ink); font-size: 13.5px;
}
.dz-connect-strip .dz-logos { display: inline-flex; }
.dz-connect-strip .dz-logos > * { width: 22px; height: 22px; border-radius: 6px; background: var(--dz-surface); box-shadow: 0 0 0 2px var(--dz-gold-wash); margin-left: -4px; padding: 2px; }
.dz-connect-strip .dz-logos > *:first-child { margin-left: 0; }
.dz-connect-strip a { margin-left: auto; font-weight: 600; color: var(--dz-ink); }
.dz-empty-beats {
  list-style: none; margin: 34px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--dz-hairline-soft);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; text-align: left;
}
.dz-empty-beats li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.dz-empty-beat-ic { font-size: 18px; line-height: 1; margin-bottom: 8px; display: grid; place-items: center; min-height: 1.2rem; filter: grayscale(0.2); }
.dz-empty-beats strong { font-size: 14px; font-weight: 600; color: var(--dz-ink); margin-bottom: 4px; }
.dz-empty-beats span { font-size: 12.5px; line-height: 1.45; color: var(--dz-muted); max-width: 24ch; }
.dz-empty-footer { text-align: left; margin-top: 48px; color: var(--dz-faint); font-size: 12px; }
.dz-eu-card { border: 1px solid var(--dz-hairline); border-radius: 14px; padding: 14px; background: var(--dz-surface); }
.dz-eu-card-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--dz-ink); }
.dz-eu-card-body { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--dz-muted); }
.dz-eu-card-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--dz-brand-ink); text-decoration: none; }
.dz-empty-rail { display: none; width: 320px; flex-shrink: 0; padding: 96px 24px 24px 0; background: var(--dz-canvas); flex-direction: column; }
.dz-right-card { border: 1px solid var(--dz-hairline); border-radius: 16px; padding: 18px; background: var(--dz-surface); margin-bottom: 14px; }
.dz-right-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--dz-ink); }
.dz-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.dz-check-list li { display: flex; gap: 10px; align-items: center; color: rgb(var(--dz-n-700)); font-size: 13px; }
.dz-check { width: 18px; height: 18px; border-radius: 50%; background: rgb(var(--dz-brand-50)); color: var(--dz-brand-ink); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.dz-model-card { display: block; width: 100%; text-align: left; border: 1px solid var(--dz-hairline); border-radius: 12px; padding: 12px 14px; margin-top: 8px; background: var(--dz-surface); transition: border-color .15s; }
.dz-model-card:hover { border-color: rgb(var(--dz-n-300)); }
.dz-model-card.is-active { border-color: var(--dz-brand); box-shadow: inset 0 0 0 1px var(--dz-brand); }
.dz-model-name { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--dz-ink); }
.dz-recommended { background: rgb(var(--dz-brand-50)); color: var(--dz-brand-ink); font-size: 10.5px; border-radius: 999px; padding: 2px 7px; font-weight: 600; }
.dz-model-desc { color: var(--dz-muted); font-size: 12px; line-height: 1.4; }
.dz-upgrade { background: var(--dz-ink); border-color: transparent; text-align: left; padding: 22px 18px 18px; color: rgb(var(--dz-white)); }
.dz-upgrade-stars { font-size: 22px; margin-bottom: 10px; }
.dz-upgrade h3 { font-size: 18px; line-height: 1.25; margin-bottom: 8px; color: rgb(var(--dz-white)); }
.dz-upgrade p { font-size: 13px; color: rgb(var(--dz-white) / 0.7); margin: 0; }
.dz-upgrade-btn { width: 100%; border: 0; color: #fff; margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 600; background: var(--dz-brand); }
.dz-upgrade-btn:hover { background: rgb(var(--dz-brand-400)); }
[data-theme="dark"] .dz-upgrade-btn { color: #fff; background: rgb(45 91 255); }
@media (min-width: 1180px) { .dz-empty-rail { display: flex; } }
@media (max-width: 767px) {
  .dz-empty-beats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 22px; padding-top: 20px; }
  .dz-composer.is-empty-hero { min-height: 7.5rem; }
  .dz-empty-hi { font-size: 32px; }
  .dz-empty-welcome { font-size: 15px; }
  .dz-empty-footer { margin-top: 28px; }
  .dz-chat-pane.is-empty .dz-composer-bar { padding: 24px 18px 28px; }
  .dz-action-label { display: none; }
  .dz-new-chat-kbd { display: none; }
}
@media (max-width: 480px) { .dz-empty-beats { grid-template-columns: 1fr; } }
.dz-prompt-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1rem;
  background: transparent; border: 1px solid var(--dz-hairline); border-radius: 1rem;
  font-size: 0.8125rem; line-height: 1.35; color: rgb(var(--dz-n-700));
  transition: transform 0.18s var(--dz-ease-spring), box-shadow 0.2s var(--dz-ease-out), border-color 0.2s var(--dz-ease-out), background 0.2s var(--dz-ease-out);
}
.dz-prompt-card:active { transform: translateY(0) scale(0.99); }
.dz-prompt-arrow { flex-shrink: 0; color: rgb(var(--dz-n-300)); opacity: 0; transform: translateX(-4px); transition: color 0.2s var(--dz-ease-out), opacity 0.2s var(--dz-ease-out), transform 0.2s var(--dz-ease-spring); }
.dz-prompt-card:hover .dz-prompt-arrow { color: var(--dz-brand); opacity: 1; transform: translateX(0); }

/* Jump-to-latest pill */
.dz-jump-latest { box-shadow: var(--dz-shadow-pop); transition: transform 0.18s var(--dz-ease-spring), color 0.15s var(--dz-ease-out), border-color 0.15s var(--dz-ease-out); }
.dz-jump-latest:hover { transform: translateX(-50%) translateY(-2px); border-color: rgb(var(--dz-n-300)); }
.dz-jump-latest:active { transform: translateX(-50%) translateY(0) scale(0.97); }

/* ============================================================
   Live activity + timeline
   ============================================================ */
.dz-live-dot { position: relative; width: 7px; height: 7px; border-radius: 9999px; background: var(--dz-brand); }
.dz-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: var(--dz-brand); animation: dzPing 1.8s var(--dz-ease-out) infinite; }
.dz-activity-chip { transition: all 0.15s var(--dz-ease-out); }

.dz-timeline { position: relative; margin-left: 0.45rem; padding-left: 1.15rem; }
.dz-timeline::before { content: ""; position: absolute; left: 4.5px; top: 7px; bottom: 7px; width: 1.5px; background: var(--dz-hairline); border-radius: 2px; }
.dz-timeline.is-live::before { background: linear-gradient(to bottom, var(--dz-brand), var(--dz-hairline)); }
.dz-tl-node { position: relative; display: flex; align-items: center; gap: 0.5rem; padding: 3px 0; font-size: 12px; color: var(--dz-muted); animation: dzNodeIn 0.32s var(--dz-ease-spring) both; }
.dz-tl-dot { position: absolute; left: -1.15rem; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 9999px; box-sizing: border-box; background: var(--dz-surface); border: 1.5px solid rgb(var(--dz-n-300)); transition: border-color 0.3s var(--dz-ease-spring), background 0.3s var(--dz-ease-spring); }
.dz-tl-node.is-done .dz-tl-dot { background: var(--dz-brand); border-color: var(--dz-brand); }
.dz-tl-node.is-running .dz-tl-dot { border-color: var(--dz-brand); }
.dz-tl-node.is-running .dz-tl-dot::after { content: ""; position: absolute; inset: -3.5px; border-radius: 9999px; border: 1.5px solid rgb(var(--dz-brand-500) / 0.45); animation: dzPing 1.8s var(--dz-ease-out) infinite; }
/* Connector steps on the timeline wear gold. */
.dz-tl-node.is-connector .dz-tl-dot { border-color: var(--dz-gold); }
.dz-tl-node.is-connector.is-done .dz-tl-dot { background: var(--dz-gold); }
.dz-tl-ic { display: inline-flex; color: var(--dz-faint); transition: color 0.3s var(--dz-ease-out); }
.dz-tl-ic img { width: 13px; height: 13px; border-radius: 3px; }
.dz-tl-node.is-running .dz-tl-ic { color: var(--dz-brand); }
.dz-tl-label { font-size: 12px; letter-spacing: -0.005em; }
.dz-tl-node.is-running .dz-tl-label { color: var(--dz-ink); }
.dz-tl-time { font-family: var(--dz-mono); font-size: 11px; color: var(--dz-faint); }
@keyframes dzNodeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes dzPing { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }

.dz-live { margin: 0.1rem 0 0.4rem; }
.dz-track { display: flex; align-items: center; margin-bottom: 0.55rem; }
.dz-track-stage { display: flex; align-items: center; }
.dz-track-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 9999px; box-sizing: border-box; background: var(--dz-surface); border: 1.5px solid rgb(var(--dz-n-300)); color: var(--dz-faint); transition: background .3s var(--dz-ease-spring), border-color .3s var(--dz-ease-spring), color .3s var(--dz-ease-out); }
.dz-track-stage.is-done .dz-track-dot { background: var(--dz-brand); border-color: var(--dz-brand); color: #fff; }
.dz-track-stage.is-current .dz-track-dot { border-color: var(--dz-brand); color: var(--dz-brand); animation: dzTrackPulse 1.6s var(--dz-ease-out) infinite; }
.dz-track-stage.is-pending .dz-track-dot { opacity: 0.45; border-style: dashed; }
.dz-track-bar { width: 20px; height: 1.5px; background: var(--dz-hairline); transition: background .3s var(--dz-ease-out); }
.dz-track-stage.is-done .dz-track-bar { background: var(--dz-brand); }
@keyframes dzTrackPulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--dz-brand-500) / 0); } 50% { box-shadow: 0 0 0 4px rgb(var(--dz-brand-500) / 0.18); } }
.dz-live-line { display: flex; align-items: flex-start; gap: 0.6rem; }
.dz-live-line > .dz-live-dot { margin-top: 0.48em; }
.dz-live-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-narrator { font-size: 15px; font-weight: 450; line-height: 1.35; color: var(--dz-muted); letter-spacing: -0.01em; min-height: 1.35em; animation: dzQuipIn 0.35s var(--dz-ease-out) both; }
.dz-live-fact { font-size: 13px; font-weight: 450; line-height: 1.35; color: var(--dz-faint); letter-spacing: -0.01em; }
@keyframes dzQuipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Reasoning ("Thought for 6s") */
.dz-think { margin: 0 0 .7rem; }
.dz-think-btn { display: inline-flex; align-items: center; gap: .4rem; font-size: 12.5px; color: var(--dz-muted); }
.dz-think-btn:hover { color: var(--dz-ink); }
.dz-think-body { margin-top: .45rem; padding: .1rem 0 .1rem .85rem; border-left: 2px solid var(--dz-hairline); font-size: 13.5px; line-height: 1.6; color: var(--dz-muted); white-space: pre-wrap; max-height: 22rem; overflow: auto; }

.dz-followup {
  font-size: 13px; line-height: 1.3; color: rgb(var(--dz-n-700));
  background: var(--dz-surface); border: 1px solid var(--dz-hairline);
  border-radius: 12px; padding: 0.45rem 0.8rem; text-align: left;
  transition: color 0.15s var(--dz-ease-out), border-color 0.15s var(--dz-ease-out), background 0.15s var(--dz-ease-out);
  animation: dzFollowIn 0.32s var(--dz-ease-out) both;
}
.dz-followups .dz-followup:nth-child(1) { animation-delay: 0ms; }
.dz-followups .dz-followup:nth-child(2) { animation-delay: 40ms; }
.dz-followups .dz-followup:nth-child(3) { animation-delay: 80ms; }
.dz-followups .dz-followup:nth-child(4) { animation-delay: 120ms; }
.dz-followup:hover { color: var(--dz-ink); border-color: rgb(var(--dz-n-300)); background: rgb(var(--dz-n-50)); }
@keyframes dzFollowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   THE ACTION TRAIL — connector tool calls (the signature element)
   A gold thread runs down the left edge of every action Depaza takes in a
   connected service; approvals pause on that thread.
   ============================================================ */
.dz-trail { position: relative; margin: 0.15rem 0 0.9rem; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.dz-trail::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--dz-gold), rgb(var(--dz-gold-300) / 0.35));
}
.dz-tool {
  position: relative;
  border: 1px solid var(--dz-hairline); border-radius: 14px; background: var(--dz-surface);
  transition: border-color .2s var(--dz-ease-out), box-shadow .2s var(--dz-ease-out);
}
.dz-tool-head { border-radius: 14px; }
.dz-tool::before { /* knot on the thread */
  content: ""; position: absolute; left: -16px; top: 15px; width: 10px; height: 10px; border-radius: 999px;
  background: var(--dz-canvas); border: 2px solid var(--dz-gold);
}
.dz-tool.is-done::before { background: var(--dz-gold); }
.dz-tool.is-error::before { border-color: #dc2626; background: var(--dz-canvas); }
.dz-tool.is-running { border-color: rgb(var(--dz-gold-300)); box-shadow: 0 0 0 3px rgb(var(--dz-gold-400) / 0.12); }
.dz-tool.is-running::before { animation: dzKnot 1.4s var(--dz-ease-out) infinite; }
@keyframes dzKnot { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--dz-gold-400) / .5); } 50% { box-shadow: 0 0 0 5px rgb(var(--dz-gold-400) / 0); } }
.dz-tool-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-align: left; }
.dz-tool-icon { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto; object-fit: contain; background: rgb(var(--dz-n-50)); box-shadow: 0 0 0 1px var(--dz-hairline); }
.dz-mono-tile { display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: rgb(var(--dz-white)); background: var(--dz-ink); }
.dz-tool-title { flex: 1; min-width: 0; font-size: 13px; color: var(--dz-ink); }
.dz-tool-title b { font-weight: 600; }
.dz-tool-title span { color: var(--dz-muted); }
.dz-tool-meta { font-family: var(--dz-mono); font-size: 11px; color: var(--dz-faint); flex: 0 0 auto; }
.dz-tool-body { border-top: 1px solid var(--dz-hairline-soft); padding: 10px 12px 12px; display: grid; gap: 8px; }
.dz-tool-kv { font-size: 11px; font-weight: 600; color: var(--dz-faint); margin-bottom: 3px; }
.dz-tool-pre { margin: 0; font-family: var(--dz-mono); font-size: 11.5px; line-height: 1.5; color: rgb(var(--dz-n-700)); background: rgb(var(--dz-n-50)); border-radius: 8px; padding: 8px 10px; max-height: 14rem; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.dz-tool-imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.dz-tool-imgs img { max-height: 120px; border-radius: 8px; border: 1px solid var(--dz-hairline); }

/* Approval: the turn is paused on the thread until the user decides. */
.dz-approval { border-color: rgb(var(--dz-gold-400)); background: linear-gradient(180deg, var(--dz-gold-wash), var(--dz-surface) 70%); box-shadow: 0 0 0 4px rgb(var(--dz-gold-400) / 0.14); }
.dz-approval::before { background: var(--dz-gold); border-color: var(--dz-gold); animation: dzKnot 1.4s var(--dz-ease-out) infinite; }
.dz-approval-q { font-size: 14px; color: var(--dz-ink); line-height: 1.4; }
.dz-approval-q b { font-weight: 600; }
.dz-approval-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dz-btn-allow { background: var(--dz-ink); color: rgb(var(--dz-white)); border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.dz-btn-allow:hover { background: rgb(var(--dz-n-800)); }
.dz-btn-soft { background: var(--dz-surface); color: var(--dz-ink); border: 1px solid var(--dz-hairline); border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.dz-btn-soft:hover { border-color: rgb(var(--dz-n-300)); }
.dz-approval-timer { margin-left: auto; font-family: var(--dz-mono); font-size: 11px; color: var(--dz-gold-ink); }
.dz-approval-note { font-size: 12px; color: var(--dz-muted); }

/* ============================================================
   Versions ‹ 2/3 ›, feedback, model chip
   ============================================================ */
.dz-branch { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--dz-muted); font-variant-numeric: tabular-nums; }
.dz-branch button { padding: 3px; border-radius: 6px; color: var(--dz-muted); }
.dz-branch button:hover:not(:disabled) { background: rgb(var(--dz-n-100)); color: var(--dz-ink); }
.dz-branch button:disabled { opacity: .3; }
.dz-pop {
  background: var(--dz-surface); border: 1px solid var(--dz-hairline); border-radius: 16px; box-shadow: var(--dz-shadow-pop);
}
.dz-reason { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--dz-hairline); color: rgb(var(--dz-n-700)); }
.dz-reason.is-on { background: var(--dz-ink); color: rgb(var(--dz-white)); border-color: transparent; }
.dz-model-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--dz-muted); border-radius: 999px; padding: 4px 8px; }
.dz-model-chip:hover { color: var(--dz-ink); background: rgb(var(--dz-n-100)); }
.dz-model-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--dz-brand); }
.dz-temp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--dz-ink); color: rgb(var(--dz-white)); }

/* ============================================================
   Menus: "+" composer menu, slash menu, command palette
   ============================================================ */
.dz-menu { min-width: 280px; padding: 6px; }
.dz-menu-label { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--dz-faint); }
.dz-menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--dz-ink); text-align: left; }
.dz-menu-item:hover, .dz-menu-item.is-active { background: rgb(var(--dz-n-100)); }
.dz-menu-item .dz-mi-ic { width: 20px; height: 20px; display: grid; place-items: center; color: var(--dz-muted); flex: 0 0 auto; }
.dz-menu-item .dz-mi-ic img { width: 18px; height: 18px; border-radius: 4px; }
.dz-menu-item .dz-mi-sub { display: block; font-size: 12px; color: var(--dz-muted); }
.dz-menu-sep { height: 1px; background: var(--dz-hairline-soft); margin: 6px 4px; }
.dz-switch { position: relative; display: inline-flex; width: 32px; height: 18px; flex: 0 0 auto; border-radius: 999px; background: rgb(var(--dz-n-300)); transition: background .15s; }
.dz-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .18s var(--dz-ease-spring); }
.dz-switch.is-on { background: var(--dz-brand); }
.dz-switch.is-gold.is-on { background: var(--dz-gold); }
.dz-switch.is-on::after { transform: translateX(14px); }

.dz-palette-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(var(--dz-n-950) / 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
[data-theme="dark"] .dz-palette-backdrop { background: rgb(0 0 0 / 0.55); }
.dz-palette { width: min(640px, 100%); overflow: hidden; }
.dz-palette input { width: 100%; border: 0; background: transparent; padding: 16px 18px; font-size: 16px; color: var(--dz-ink); outline: none; }
.dz-palette input::placeholder { color: var(--dz-faint); }
.dz-palette-list { max-height: 55vh; overflow-y: auto; padding: 6px; border-top: 1px solid var(--dz-hairline-soft); }
.dz-kbd { font-family: var(--dz-mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgb(var(--dz-n-100)); color: var(--dz-muted); border: 1px solid var(--dz-hairline); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .message-enter, .dz-tl-node, .dz-live-dot::after, .dz-tl-node.is-running .dz-tl-dot::after,
  .dz-recording-bar, .dz-wave-bar, .dz-track-stage.is-current .dz-track-dot, .dz-narrator,
  .dz-empty-hero, .dz-followup, .depaza-progress-stripe, .depaza-caret,
  .dz-img-ph::before, .dz-img-spin, .dz-tool.is-running::before, .dz-approval::before { animation: none !important; }
  .depaza-caret { opacity: 1; }
  .dz-wave-bar { transform: none !important; }
}

/* Assistant action row: reveal on hover / focus; pinned on the latest answer */
.dz-action-row { opacity: 0; transform: translateY(2px); transition: opacity .18s var(--dz-ease-out), transform .18s var(--dz-ease-out); }
.group:hover .dz-action-row, .dz-action-row:focus-within, .dz-action-row.is-pinned { opacity: 1; transform: none; }
@media (hover: none) { .dz-action-row { opacity: 1; transform: none; } }

/* Attempted-link capsule: model wrote [Name](link), not a real URL. */
.dz-link-capsule {
  display: inline-flex; align-items: center; gap: 0.35em; max-width: 100%;
  padding: 0.05em 0.6em 0.1em 0.45em; margin: 0 0.1em;
  border: 1px solid var(--dz-hairline); border-radius: 999px; background: var(--dz-canvas);
  color: rgb(var(--dz-n-700)); font-size: 0.92em; line-height: 1.45; vertical-align: baseline;
  cursor: default; user-select: text; white-space: nowrap;
}
.dz-link-capsule::before {
  content: ""; width: 0.7em; height: 0.7em; flex: 0 0 auto; background: var(--dz-faint);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.07 0l1.41-1.41a5 5 0 0 0-7.07-7.07L10 5.93'/><path d='M14 11a5 5 0 0 0-7.07 0L5.5 12.42a5 5 0 0 0 7.07 7.07L14 18.07'/><path d='M4 4l16 16'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.07 0l1.41-1.41a5 5 0 0 0-7.07-7.07L10 5.93'/><path d='M14 11a5 5 0 0 0-7.07 0L5.5 12.42a5 5 0 0 0 7.07 7.07L14 18.07'/><path d='M4 4l16 16'/></svg>") center / contain no-repeat;
}

/* Citations */
a.citation-link { text-decoration: none; border-bottom: none; }
.citation {
  position: relative; font-size: 0.65rem; line-height: 1;
  background: rgb(var(--dz-brand-50)); color: var(--dz-brand-ink);
  padding: 1px 4.5px; border-radius: 4px; margin: 0 2px; cursor: pointer; user-select: none; vertical-align: super;
}
.citation:hover { background: rgb(var(--dz-brand-100)); color: rgb(var(--dz-brand-700)); }
.citation::after {
  content: attr(data-title); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: rgb(var(--dz-n-900)); color: rgb(var(--dz-white)); font-size: 11px; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; z-index: 50;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}
.citation:hover::after { opacity: 1; }
.sources-section { font-size: 12px; }
.sources-section a { text-decoration: underline; text-underline-offset: 2px; }

/* Email compose card */
.email-card, .translation-card {
  margin: 0.85rem 0 0.4rem; border: 1px solid var(--dz-hairline); border-radius: 1.1rem;
  overflow: hidden; background: var(--dz-surface); box-shadow: var(--dz-shadow);
}
.email-card-toolbar, .translation-card-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.55rem 1rem;
}
.email-edit-btn, .copy-email-btn, .email-gmail-btn, .email-mailapp-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 13.5px; font-weight: 500;
  color: rgb(var(--dz-n-700)); background: var(--dz-surface); border: 1px solid var(--dz-hairline);
  border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer;
}
.copy-email-btn, .email-gmail-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }
.email-edit-btn:hover, .copy-email-btn:hover, .email-gmail-btn:hover, .email-mailapp-btn:hover { background: rgb(var(--dz-n-50)); }
.copy-email-btn.copied { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.email-card-tools { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.email-send-btn, .copy-translation-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 36px; padding: 0 0.95rem;
  border: 0; border-radius: 999px; background: var(--dz-brand); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.email-send-btn:hover, .copy-translation-btn:hover { background: var(--dz-brand-ink); }
.email-send-btn:disabled { opacity: 0.7; cursor: wait; }
.email-send-btn.is-sent, .copy-translation-btn.copied { background: #059669; }
.email-card .email-to, .email-card .email-subject {
  display: block; width: 100%; border: 0; border-top: 1px solid var(--dz-hairline-soft);
  padding: 0.7rem 1.05rem; font-size: 14.5px; color: var(--dz-ink); background: transparent; outline: none;
}
.email-card .email-to::placeholder, .email-card .email-subject::placeholder { color: var(--dz-faint); }
.email-card .email-subject { font-weight: 600; font-size: 16px; }
.email-body, .translation-body {
  display: block; width: 100%; border: 0; border-top: 1px solid var(--dz-hairline-soft);
  padding: 0.85rem 1.05rem 0.7rem; font-size: 0.95rem; line-height: 1.55; color: var(--dz-body);
  font-family: inherit; resize: none; outline: none; background: transparent; min-height: 120px;
}
.translation-body { padding-bottom: 0.9rem; }
.email-card-brand { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 1rem 0.7rem; border-top: 1px solid var(--dz-hairline-soft); background: rgb(var(--dz-n-50)); }
.email-card-logo { height: 14px; width: auto; }
[data-theme="dark"] .email-card-logo { filter: invert(1) hue-rotate(180deg); }
.translation-card-title { font-size: 13.5px; font-weight: 600; color: rgb(var(--dz-n-700)); }
.email-card-invite { flex: 1; min-width: 0; font-size: 12px; color: var(--dz-muted); font-weight: 500; }
.email-invite-hide { border: 0; background: transparent; color: var(--dz-faint); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.email-invite-hide:hover { color: var(--dz-ink); }

@media (hover: hover) {
  .dz-prompt-card:hover { transform: translateY(-2px); border-color: rgb(var(--dz-n-300)); box-shadow: var(--dz-shadow-pop); }
}

/* ============================================================
   Finish pass: user turn, focus rings, selection, scrollbars, muted text
   ============================================================ */
.dz-user-bubble { background: rgb(var(--dz-n-100)); border: none; border-radius: 1.25rem 1.25rem 0.4rem 1.25rem; }
.dz-app-root :where(a, button, [role="button"], summary, select):focus-visible { outline: 2px solid var(--dz-brand); outline-offset: 2px; }
@media (forced-colors: active) {
  .dz-app-root :where(a, button, [role="button"], summary, select):focus-visible { outline: 2px solid Highlight; }
}
.dz-app-root ::selection { background: rgb(var(--dz-brand-500) / 0.2); color: var(--dz-ink); }
.dz-app-root .dz-code ::selection, .dz-app-root pre code.hljs ::selection { background: rgb(143 166 255 / 0.35); color: #fff; }
/* Readable floor for muted UI text (WCAG AA on the surface). */
.dz-app-root .text-neutral-400 { color: rgb(var(--dz-n-500)); }
.dz-app-root .placeholder\:text-neutral-400::placeholder { color: rgb(var(--dz-n-500)); }

@media (pointer: fine) {
  .dz-chat-surface, .dz-app-root aside .overflow-y-auto, .prose-chat pre, .prose-chat table, .dz-palette-list { scrollbar-width: thin; scrollbar-color: rgb(var(--dz-n-400) / 0.4) transparent; }
  .dz-chat-surface::-webkit-scrollbar, .dz-app-root aside .overflow-y-auto::-webkit-scrollbar, .prose-chat pre::-webkit-scrollbar, .prose-chat table::-webkit-scrollbar { width: 10px; height: 10px; }
  .dz-chat-surface::-webkit-scrollbar-thumb, .dz-app-root aside .overflow-y-auto::-webkit-scrollbar-thumb, .prose-chat pre::-webkit-scrollbar-thumb, .prose-chat table::-webkit-scrollbar-thumb { background: rgb(var(--dz-n-400) / 0.35); border: 3px solid transparent; background-clip: padding-box; border-radius: 9999px; }
  .dz-chat-surface:hover::-webkit-scrollbar-thumb { background: rgb(var(--dz-n-400) / 0.55); background-clip: padding-box; }
  .dz-code pre::-webkit-scrollbar-thumb { background: rgb(148 163 184 / 0.4); background-clip: padding-box; }
  .dz-chat-surface::-webkit-scrollbar-track, .prose-chat pre::-webkit-scrollbar-track { background: transparent; }
}

/* ============================================================
   Artifacts panel (documents, code, diagrams)
   ============================================================ */
.dz-artifact-doc { max-width: 46rem; margin: 0 auto; padding: 28px 32px 48px; }
.dz-artifact-doc.prose-chat { font-size: 15.5px; line-height: 1.7; color: var(--dz-body); }
.dz-artifact-edit { width: 100%; height: 100%; resize: none; border: 0; outline: none; padding: 16px; font-family: var(--dz-mono); font-size: 12.5px; line-height: 1.6; background: rgb(var(--dz-code-bg)); color: #e6e8ef; }
.dz-sel-ask { position: fixed; z-index: 70; display: inline-flex; gap: 2px; padding: 3px; }
.dz-sel-ask button { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 10px; color: var(--dz-ink); }
.dz-sel-ask button:hover { background: rgb(var(--dz-n-100)); }

/* ============================================================
   MOBILE (<768px)
   ============================================================ */
@media (max-width: 767px) {
  .dz-app-root { height: 100dvh; min-height: 100dvh; overflow: hidden; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  * { -webkit-tap-highlight-color: transparent; }
  body { overscroll-behavior-y: none; }
  .dz-chat-surface { overscroll-behavior: contain; }
  textarea, input, button, .dz-sheet { touch-action: manipulation; }
  .dz-composer-bar { padding-top: 0.5rem; padding-bottom: calc(0.6rem + max(var(--kb, 0px), var(--dz-safe-b))); transition: none; }
  .dz-composer { box-shadow: none; border-radius: 1.4rem; }
  .dz-composer:focus-within { border-color: rgb(var(--dz-n-400)); box-shadow: none; }
  .dz-sheet-backdrop { background: rgb(var(--dz-n-950) / 0.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .dz-sheet {
    position: fixed !important; left: 0; right: 0; bottom: 0; top: auto;
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
    border-radius: 1.25rem 1.25rem 0 0 !important; max-height: 90dvh; padding-bottom: var(--dz-safe-b);
  }
  .dz-onboard-pulse { animation: dzOnboardPulse 2.4s ease-in-out infinite; }
  @keyframes dzOnboardPulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0,0,0,.15); } 50% { transform: scale(1.04); box-shadow: 0 14px 32px rgba(0,0,0,.2); } }
  .dz-onboard-beat { animation: dzOnboardBeatIn .4s ease-out both; }
  @keyframes dzOnboardBeatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) { .dz-onboard-pulse, .dz-onboard-beat { animation: none !important; } }
  .dz-sheet-handle::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 9999px; background: rgb(var(--dz-n-300)); margin: 8px auto 2px; flex-shrink: 0; }
  .dz-trail { padding-left: 14px; }
  .dz-tool::before { left: -13px; }
  .dz-palette-backdrop { padding-top: 8vh; }
}

/* ============================================================
   POLISH PASS — ChatGPT-level density and restraint.
   Overrides earlier rules on purpose (later in the cascade).
   ============================================================ */

/* ---- Rail ---- */
.dz-sidebar { width: 260px; padding-top: 4px; }
@media (max-width: 767px) { .dz-sidebar { width: 85vw; max-width: 300px; } }
.dz-eu-mark {
  display: inline-flex; align-items: center; gap: 3px; height: 16px; padding: 0 5px 0 4px;
  border-radius: 5px; font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  color: #fff; background: #003399;
}
.dz-eu-mark::before { content: ""; width: 6px; height: 6px; background: #ffcc00;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.dz-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 9px; color: rgb(var(--dz-n-500)); flex: 0 0 auto;
  transition: background .12s var(--dz-ease-out), color .12s var(--dz-ease-out), transform .12s var(--dz-ease-out);
}
.dz-icon-btn:hover { background: rgb(var(--dz-n-100)); color: var(--dz-ink); }
.dz-icon-btn:active { transform: scale(.96); }
.dz-icon-btn.is-sm { width: 28px; height: 28px; border-radius: 8px; }
/* Respect Tailwind visibility utilities used alongside .dz-icon-btn (it sets display). */
.dz-icon-btn.hidden { display: none; }
@media (min-width: 768px) { .dz-icon-btn.md\:hidden { display: none; } .dz-icon-btn.md\:inline-flex { display: inline-flex; } }
.dz-rail-row {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px;
  border-radius: 9px; font-size: 14px; font-weight: 400; color: rgb(var(--dz-n-800)); text-align: left;
  transition: background .12s var(--dz-ease-out);
}
.dz-rail-row:hover { background: rgb(var(--dz-n-100)); }
.dz-rail-row.is-active { background: rgb(var(--dz-n-100)); font-weight: 500; color: var(--dz-ink); }
.dz-rail-row > svg { color: rgb(var(--dz-n-500)); flex: 0 0 auto; }
.dz-rail-row.is-sub { height: 32px; font-size: 13.5px; }
.dz-rail-row.is-quiet { color: rgb(var(--dz-n-500)); font-size: 13px; height: 30px; }
.dz-rail-count { font-size: 11.5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--dz-gold-wash); color: var(--dz-gold-ink); font-weight: 600; }
/* New chat is a quiet row now (was a dark slab); the kbd hint shows on hover. */
.dz-new-chat { background: transparent; box-shadow: none; color: rgb(var(--dz-n-800)); padding: 0 10px; font-weight: 400; font-size: 14px; border-radius: 9px; }
.dz-new-chat:hover { background: rgb(var(--dz-n-100)); }
.dz-new-chat-kbd { background: transparent; color: rgb(var(--dz-n-400)); opacity: 0; transition: opacity .12s; padding: 0; }
.dz-new-chat:hover .dz-new-chat-kbd { opacity: 1; }
.dz-rail-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px;
  background: var(--dz-surface); box-shadow: 0 0 0 1px var(--dz-hairline); color: rgb(var(--dz-n-500)); }
.dz-rail-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 14px; color: var(--dz-ink); }
.dz-rail-nav { margin-top: 0; }
.dz-rail-group { padding: 14px 10px 4px; font-size: 12px; font-weight: 500; color: rgb(var(--dz-n-500)); user-select: none; }
.dz-conv-row { height: 34px; display: flex; align-items: center; padding: 0 10px; border-radius: 9px; font-size: 14px; color: rgb(var(--dz-n-800)); transition: background .12s; }
.dz-conv-row:hover { background: rgb(var(--dz-n-100)); }
.dz-conv-active, .dz-conv-active:hover { background: rgb(var(--dz-n-200) / .7); box-shadow: none; color: var(--dz-ink); }
[data-theme="dark"] .dz-conv-active { background: rgb(var(--dz-n-200)); }
.dz-rail-list .group { position: relative; }
.dz-conv-tool { opacity: 0; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 7px; color: rgb(var(--dz-n-500)); flex: 0 0 auto; transition: opacity .12s, background .12s; }
.dz-conv-tool:hover { background: rgb(var(--dz-n-200)); color: var(--dz-ink); }
.group:hover .dz-conv-tool, .dz-conv-tool.is-on { opacity: 1; }
@media (hover: none) { .dz-conv-tool { opacity: 1; } }
.dz-conv-row + .dz-conv-tool, .dz-conv-tool + .dz-conv-tool { margin-left: -2px; }
.dz-rail-upgrade { height: auto; padding: 8px 10px; align-items: flex-start; }
.dz-rail-upgrade > svg { margin-top: 2px; color: var(--dz-brand); }
.dz-sidebar-foot { border-top: 0; padding-top: 4px; margin-top: 0; }
.dz-account-row { height: 46px; gap: 10px; }
.dz-avatar { width: 28px; height: 28px; font-size: 11px; box-shadow: none; background: var(--dz-brand); color: #fff; }

/* ---- Empty stage: one quiet sentence, the composer, a few starting points ---- */
.dz-empty-hero { align-items: center; text-align: center; gap: 0; }
.dz-eu-first { justify-content: center; margin: 0 0 14px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgb(var(--dz-n-50)); box-shadow: 0 0 0 1px var(--dz-hairline-soft); }
.dz-eu-first-lead, .dz-eu-first-rest { font-size: 12px; }
.dz-empty-logo { height: 13px; }
.dz-empty-hi { font-size: clamp(26px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
@media (min-width: 768px) {
  .dz-chat-pane.is-empty .dz-composer-bar { padding: 22vh 32px 32px; max-width: 820px; }
}
.dz-composer.is-empty-hero { min-height: 112px; margin-top: 26px; border-radius: 28px; padding: 14px 12px 10px 18px; }
.dz-composer.is-empty-hero textarea { font-size: 16px; min-height: 44px; }
.dz-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.dz-suggest-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; color: rgb(var(--dz-n-700)); background: var(--dz-surface); box-shadow: 0 0 0 1px var(--dz-hairline);
  transition: background .12s, box-shadow .12s, color .12s;
}
.dz-suggest-pill:hover { background: rgb(var(--dz-n-50)); color: var(--dz-ink); box-shadow: 0 0 0 1px rgb(var(--dz-n-300)); }
.dz-suggest-ic { display: inline-flex; color: rgb(var(--dz-n-500)); }
.dz-empty-below { margin-top: 14px; }

/* ---- Composer ---- */
.dz-composer { border-radius: 28px; padding: 6px 8px 6px 10px; box-shadow: 0 1px 2px rgb(var(--dz-n-900) / .04), 0 6px 24px -12px rgb(var(--dz-n-900) / .14); }
.dz-composer:focus-within { border-color: rgb(var(--dz-n-300)); box-shadow: 0 1px 2px rgb(var(--dz-n-900) / .04), 0 6px 24px -12px rgb(var(--dz-n-900) / .2); }
.dz-composer textarea { font-size: 16px; }
.dz-ctl {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px;
  font-size: 13.5px; color: rgb(var(--dz-n-600)); transition: background .12s, color .12s;
}
.dz-ctl:hover { background: rgb(var(--dz-n-100)); color: var(--dz-ink); }
.dz-ctl.is-on { background: rgb(var(--dz-brand-50)); color: var(--dz-brand-ink); }
.dz-model-chip { height: 32px; padding: 0 10px; font-size: 13.5px; }
.dz-chip-stack { display: inline-flex; }
.dz-chip-stack > span { margin-left: -5px; display: inline-flex; }
.dz-chip-stack > span:first-child { margin-left: 0; }
.dz-chip-stack img, .dz-chip-stack .dz-mono-tile { width: 16px; height: 16px; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--dz-gold-wash); background: var(--dz-surface); }
.dz-disclaimer { text-align: center; font-size: 11.5px; color: rgb(var(--dz-n-400)); margin-top: 8px; }

/* ---- Header ---- */
.dz-chat-header { height: 52px; }
.dz-header-model { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--dz-ink); letter-spacing: -0.01em; transition: background .12s; }
.dz-header-model:hover { background: rgb(var(--dz-n-100)); }
.dz-header-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  font-size: 13.5px; color: rgb(var(--dz-n-700)); box-shadow: 0 0 0 1px var(--dz-hairline); transition: background .12s; }
.dz-header-btn:hover { background: rgb(var(--dz-n-50)); }
.dz-chat-pane.is-thread .dz-chat-header { border-bottom-color: transparent; }

/* ---- Thread ---- */
.dz-chat-surface .max-w-3xl { max-width: 46rem; }
.dz-chat-surface > .max-w-3xl > * + * { margin-top: 28px; }
.dz-chat-pane .prose-chat { font-size: 16px; line-height: 1.68; }
.dz-user-bubble { padding: 10px 16px !important; border-radius: 22px 22px 6px 22px; font-size: 16px; }
.chat-message .max-w-\[80\%\] { max-width: 72%; }
.dz-user-actions { display: flex; justify-content: flex-end; gap: 2px; margin-top: 4px; margin-right: -6px; opacity: 0; transition: opacity .15s var(--dz-ease-out); }
.chat-message:hover .dz-user-actions, .dz-user-actions:focus-within, .dz-user-actions.is-pinned { opacity: 1; }
@media (hover: none) { .dz-user-actions { opacity: 1; } }
/* The actions live inside the bubble element; float them just below its grey fill. */
.dz-user-bubble { position: relative; }
.dz-user-bubble > .dz-user-actions { position: absolute; top: 100%; right: 0; margin-top: 2px; }
.dz-action-row { margin-top: 6px; gap: 0; color: rgb(var(--dz-n-500)); }
.dz-followup { border-radius: 999px; padding: .45rem .9rem; }

/* ---- Tooltips ([data-tip]) ---- */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]:hover::after {
    content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
    padding: 4px 8px; border-radius: 7px; white-space: nowrap; pointer-events: none; z-index: 80;
    font-size: 12px; font-weight: 500; letter-spacing: 0; color: rgb(var(--dz-white)); background: rgb(var(--dz-n-900));
    animation: dzTipIn .12s var(--dz-ease-out) .35s both;
  }
  .dz-action-row [data-tip]:hover::after, .dz-composer [data-tip]:hover::after { top: auto; bottom: calc(100% + 6px); }
}
@keyframes dzTipIn { from { opacity: 0; transform: translateX(-50%) translateY(-2px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---- Menus: fade + scale from origin ---- */
.dz-menu, .dz-anim { animation: dzMenuIn .12s var(--dz-ease-out) both; transform-origin: top left; }
@keyframes dzMenuIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.dz-menu-item { border-radius: 9px; font-size: 14px; }

/* ---- Toasts ---- */
.dz-toasts { position: fixed; left: 50%; bottom: calc(24px + var(--dz-safe-b)); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.dz-toast { pointer-events: auto; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; color: rgb(var(--dz-white)); background: rgb(var(--dz-n-900)); box-shadow: var(--dz-shadow-pop); animation: dzToastIn .18s var(--dz-ease-spring) both; }
.dz-toast.is-warn { background: #b42318; color: #fff; }
@keyframes dzToastIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Skeleton while a chat loads ---- */
.dz-skel { display: grid; gap: 12px; padding: 8px 0; animation: dzSkelIn .2s ease .15s both; }
@keyframes dzSkelIn { from { opacity: 0; } to { opacity: 1; } }
.dz-thread.is-loading .chat-message { display: none; }
.dz-skel span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgb(var(--dz-n-100)), rgb(var(--dz-n-50)), rgb(var(--dz-n-100))); background-size: 200% 100%; animation: dzSkel 1.2s linear infinite; }
.dz-skel span:nth-child(1) { width: 38%; margin-left: auto; height: 34px; border-radius: 18px; }
.dz-skel span:nth-child(2) { width: 92%; } .dz-skel span:nth-child(3) { width: 84%; } .dz-skel span:nth-child(4) { width: 60%; }
@keyframes dzSkel { to { background-position: -200% 0; } }

/* ---- Code + tables finish ---- */
.dz-code { border-radius: 14px; }
.prose-chat table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--dz-hairline); border-radius: 12px; }
.prose-chat th, .prose-chat td { border: 0; border-bottom: 1px solid var(--dz-hairline-soft); }
.prose-chat tr:last-child td { border-bottom: 0; }
.prose-chat tr:nth-child(even) td { background: transparent; }
.prose-chat thead th { position: sticky; top: 0; background: rgb(var(--dz-n-50)); }

@media (prefers-reduced-motion: reduce) {
  .dz-menu, .dz-anim, .dz-toast, .dz-skel span, [data-tip]:hover::after { animation: none !important; }
}
