/* dro-agent.css — a plain, fast chat surface in the ChatGPT idiom: a quiet
   conversations rail, one 768px reading column, a grey bubble for the user and
   bare text for the reply, and a pill composer with a solid send button.
   Everything comes from tokens.css, so light, dark and RTL follow for free
   (logical properties throughout; no gradients, no blur, no heavy shadows). */

.da-body {
  background: var(--bg); color: var(--fg);
  --da-rail-w: 260px;
  --da-col: 768px;
  --da-rail-bg: var(--surface-2);
  --da-user-bg: var(--surface-2);
  --da-hover: color-mix(in srgb, var(--fg) 6%, transparent);
  --da-ring: color-mix(in srgb, var(--fg) 18%, transparent);
}
.da-body [hidden] { display: none !important; }
/* Doubled class so it outranks .da-icon-btn's display, whatever the source order. */
.da-only-mobile.da-only-mobile { display: none; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.da-main {
  position: relative;
  display: grid;
  grid-template-columns: var(--da-rail-w) minmax(0, 1fr);
  /* The promo strip and the site footer sit outside this shell, so leave them
     room: the composer and its hint must never be clipped. */
  height: calc(100vh - var(--header-h, 48px) - 56px);
  min-height: 520px;
}

/* ── Conversations rail ────────────────────────────────────────────────── */
.da-sidebar {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--da-rail-bg); border-inline-end: 1px solid var(--border);
}
.da-side-head { display: flex; align-items: center; gap: 6px; padding: 10px; }
.da-side-head .da-btn { flex: 1; justify-content: flex-start; }
.da-conv-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; scrollbar-width: thin; }
.da-conv { position: relative; display: flex; border-radius: 8px; }
.da-conv-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 34px 8px 10px; border: 0; background: transparent; color: var(--fg); text-align: start;
  font: 400 13.5px/1.35 var(--font-body); border-radius: 8px; cursor: pointer;
}
html[dir="rtl"] .da-conv-open { padding: 8px 10px 8px 34px; }
.da-conv-open:hover { background: var(--da-hover); }
.da-conv.is-active .da-conv-open { background: var(--da-hover); font-weight: 500; }
.da-conv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-conv-time { flex: 0 0 auto; font-size: 11px; color: var(--fg-subtle); }
.da-conv:hover .da-conv-time { visibility: hidden; }
.da-conv-del, .da-conv-rename {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--fg-muted);
  font-size: 15px; line-height: 1; cursor: pointer; opacity: 0;
}
.da-conv-rename { inset-inline-end: 30px; font-size: 12px; }
.da-conv-del { inset-inline-end: 6px; }
.da-conv:hover .da-conv-del, .da-conv:hover .da-conv-rename,
.da-conv-del:focus-visible, .da-conv-rename:focus-visible { opacity: 1; }
.da-conv-del:hover, .da-conv-rename:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); }
.da-conv-empty { padding: 18px 10px; color: var(--fg-subtle); font-size: 12.5px; }
.da-side-foot { padding: 10px 14px; border-top: 1px solid var(--border); color: var(--fg-subtle); font-size: 11.5px; line-height: 1.45; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.da-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); font: 500 13.5px/1 var(--font-body); cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.da-btn:hover { background: var(--da-hover); }
.da-btn:focus-visible { outline: 2px solid var(--da-ring); outline-offset: 1px; }
.da-btn-primary, .da-btn-accent { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.da-btn-primary:hover, .da-btn-accent:hover { background: var(--fg); color: var(--bg); opacity: .88; }
.da-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-muted); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.da-icon-btn svg { width: 19px; height: 19px; }
.da-icon-btn:hover { background: var(--da-hover); color: var(--fg); }
.da-icon-btn:focus-visible { outline: 2px solid var(--da-ring); outline-offset: 1px; }
.da-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.da-icon-btn.is-rec { color: #fff; background: #e5484d; }
.da-icon-btn.is-rec:hover { background: #e5484d; color: #fff; }

/* ── Chat column ───────────────────────────────────────────────────────── */
.da-chat { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.da-topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.da-brand { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.da-kicker { flex: 0 0 auto; white-space: nowrap; font: 600 14px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--fg); }
.da-sub { color: var(--fg-subtle); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-cost { flex: 0 0 auto; color: var(--fg-subtle); font-size: 12px; }

.da-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 0; }
.da-messages { display: flex; flex-direction: column; gap: 22px; max-width: var(--da-col); margin: 0 auto; padding-bottom: 8px; }

/* ── Messages ──────────────────────────────────────────────────────────── */
.da-msg { display: flex; flex-direction: column; gap: 8px; }
.da-msg-user { align-items: flex-end; }
.da-msg-user .da-bubble {
  max-width: min(85%, 560px); padding: 10px 16px; border-radius: 20px;
  background: var(--da-user-bg); color: var(--fg);
  font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.da-msg-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 85%; }
.da-file {
  display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 6px 10px 6px 6px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--fg-muted);
}
.da-file-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.da-file-ic { width: 24px; text-align: center; font-size: 14px; }
.da-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-perception { display: flex; flex-direction: column; gap: 2px; max-width: 85%; }
.da-perception-row { font-size: 11.5px; color: var(--fg-subtle); line-height: 1.45; overflow-wrap: anywhere; }
.da-perception-row b { color: var(--fg-muted); font-weight: 600; }
.da-perception-row.is-bad { color: var(--danger); }
.da-perception-ic { display: inline-block; width: 14px; }

/* The reply is bare text in the column, the way ChatGPT reads. */
.da-msg-bot { align-items: stretch; }
.da-msg-bot .da-avatar { display: none; }
.da-bot-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.da-msg-bot .da-bubble { font-size: 15px; line-height: 1.7; color: var(--fg); overflow-wrap: anywhere; }
.da-avatar {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg); font: 700 13px/1 var(--font-display); letter-spacing: -.02em;
}
.da-avatar-p { opacity: .7; }

/* Working row + streaming caret */
@keyframes da-orb { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.da-working { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-subtle); font-size: 13px; }
.da-working-orb { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-muted); animation: da-orb 1.1s ease-in-out infinite; }
@keyframes da-blink { 50% { opacity: 0; } }
.da-caret { display: inline-block; width: 9px; height: 15px; margin-inline-start: 3px; vertical-align: -2px; border-radius: 2px; background: var(--fg); animation: da-blink 1s steps(1) infinite; }

/* ── Markdown ──────────────────────────────────────────────────────────── */
.da-md > :first-child { margin-top: 0; }
.da-md > :last-child { margin-bottom: 0; }
.da-md p { margin: 0 0 14px; }
.da-md h2, .da-md h3, .da-md h4 { font-family: var(--font-body); font-weight: 650; margin: 20px 0 8px; line-height: 1.3; }
.da-md h2 { font-size: 18px; } .da-md h3 { font-size: 16px; } .da-md h4 { font-size: 15px; }
.da-md ul, .da-md ol { margin: 0 0 14px; padding-inline-start: 24px; }
.da-md li { margin: 4px 0; }
.da-md blockquote { margin: 12px 0; padding: 2px 14px; border-inline-start: 2px solid var(--border-strong); color: var(--fg-muted); }
.da-md hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.da-md a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.da-md code { font-family: var(--font-mono); font-size: .87em; background: var(--surface-2); border-radius: 5px; padding: 2px 5px; direction: ltr; unicode-bidi: isolate; }
.da-md strong { font-weight: 650; }
.da-code { direction: ltr; text-align: left; margin: 14px 0; border-radius: 12px; overflow: hidden; background: #0d0d0d; color: #f3f4f5; }
.da-code-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; font-family: var(--font-mono); font-size: 11.5px; color: #b6bac0; background: rgba(255, 255, 255, .04); }
.da-code-lang { text-transform: lowercase; }
.da-code-copy { margin-inline-start: auto; border: 0; background: transparent; color: #b6bac0; border-radius: 6px; padding: 3px 8px; font: 500 11.5px/1.4 var(--font-body); cursor: pointer; }
.da-code-copy:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.da-code pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.da-code pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.da-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 10px; }
.da-md table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.da-md th, .da-md td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.da-md th { background: var(--surface-2); font-weight: 600; }
.da-md tr:last-child td { border-bottom: 0; }

/* ── Actions + rating ──────────────────────────────────────────────────── */
.da-actions { display: flex; align-items: center; gap: 2px; margin-top: -2px; }
.da-act { border: 0; background: transparent; color: var(--fg-subtle); border-radius: 6px; padding: 4px 7px; font: 500 12px/1.4 var(--font-body); cursor: pointer; }
.da-act:hover { background: var(--da-hover); color: var(--fg); }
.da-act[aria-pressed="true"] { background: var(--da-hover); color: var(--fg); }
.da-act-sep { width: 1px; height: 12px; background: var(--border); margin: 0 4px; }
.da-error { padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; line-height: 1.5; }

/* ── Connected services ─────────────────────────────────────────────────── */
.da-tool-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--fg-muted); font: 500 12.5px/1 var(--font-body); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.da-tool-btn:hover { background: var(--surface-2); color: var(--fg); }
.da-conn-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 10.5px; font-weight: 600;
}
.da-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 13, 18, .5); }
.da-sheet-card {
  width: min(560px, 100%); max-height: 80vh; overflow-y: auto; padding: 20px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--border);
}
.da-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.da-sheet-head h2 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.da-sheet-sub { margin: 6px 0 16px; color: var(--fg-subtle); font-size: 13px; line-height: 1.55; }
.da-conn-list { display: flex; flex-direction: column; gap: 8px; }
.da-conn { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.da-conn.is-on { border-color: var(--border-strong); background: var(--surface-2); }
.da-conn-ic { font-size: 20px; flex: 0 0 auto; }
.da-conn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.da-conn-name { font-size: 13.5px; font-weight: 600; }
.da-conn-blurb { color: var(--fg-subtle); font-size: 12px; line-height: 1.45; }
.da-conn-btn { flex: 0 0 auto; min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.da-conn-btn:disabled { opacity: .45; cursor: not-allowed; }
.da-conn-empty { margin: 0; color: var(--fg-subtle); font-size: 13px; }
.da-conn-soon { flex: 0 0 auto; color: var(--fg-subtle); font-size: 12px; }
.da-conn-custom { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.da-conn-custom h3 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.da-conn-custom p { margin: 0 0 4px; color: var(--fg-subtle); font-size: 12px; line-height: 1.5; }
.da-conn-custom input {
  width: 100%; min-height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border-input); background: var(--surface); color: var(--fg);
  font: 400 13.5px/1 var(--font-body); outline: none;
}
.da-conn-custom input:focus { border-color: var(--border-strong); }
.da-conn-custom .da-btn { justify-content: center; }

/* What the reply read while answering. */
.da-tools-used { display: flex; flex-direction: column; gap: 4px; }
.da-tool-row { display: flex; align-items: center; gap: 8px; color: var(--fg-subtle); font-size: 12px; }
.da-tool-row.is-bad { color: var(--danger); }
.da-tool-ic { flex: 0 0 auto; }

/* ── Trial artifacts (preview image / file) ─────────────────────────────── */
.da-artifacts { display: flex; flex-direction: column; gap: 10px; }
.da-artifact { border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: var(--surface); max-width: 460px; }
.da-artifact-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.da-artifact-tag {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--fg-muted); font-size: 11px; font-weight: 500;
}
.da-artifact-img { display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
/* A preview, so it is bounded: a tall render never takes over the transcript
   and a tiny one is not stretched into a blur. */
.da-artifact-img img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.da-artifact-note { margin: 8px 0 0; color: var(--fg-subtle); font-size: 11.5px; line-height: 1.5; }
.da-artifact-file {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  background: var(--surface-2); color: var(--fg); text-decoration: none;
}
.da-artifact-file:hover { background: var(--da-hover); }
.da-artifact-ic { font-size: 18px; }
.da-artifact-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.da-artifact-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-artifact-size { color: var(--fg-subtle); font-size: 11.5px; }
.da-artifact-go { flex: 0 0 auto; color: var(--fg-subtle); font-size: 12px; }
.da-artifact.is-failed { border-style: dashed; }
/* The prompt that produced the preview — the part the user actually reuses. */
.da-artifact-prompt {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 8px 10px;
  border-radius: 10px; background: var(--surface-2);
}
.da-artifact-prompt-text { flex: 1; min-width: 0; color: var(--fg-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

/* ── Suggested droPrompt tools ─────────────────────────────────────────── */
.da-suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.da-suggest-label { font-size: 12px; color: var(--fg-subtle); }
.da-suggest-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.da-card {
  display: inline-flex; align-items: center; gap: 8px; text-align: start;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg); cursor: pointer;
  font: 500 13px/1.35 var(--font-body);
  transition: background var(--dur-fast) var(--ease);
}
.da-card:hover { background: var(--surface-2); }
.da-card:focus-visible { outline: 2px solid var(--da-ring); outline-offset: 1px; }
.da-card-ic { flex: 0 0 auto; font-size: 14px; }
.da-card-body { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.da-card-title { font-weight: 500; }
.da-card-why { display: none; }
.da-card-go { flex: 0 0 auto; color: var(--fg-subtle); font-size: 12px; }
html[dir="rtl"] .da-card-go { direction: ltr; unicode-bidi: isolate; }

/* ── Empty state ───────────────────────────────────────────────────────── */
.da-empty { max-width: var(--da-col); margin: 0 auto; padding: 8vh 0 24px; text-align: center; }
.da-empty h1 { font-family: var(--font-body); font-weight: 600; font-size: clamp(26px, 3.2vw, 32px); letter-spacing: -.01em; line-height: 1.25; margin: 0 0 8px; }
.da-empty h1 .accent { color: var(--fg-muted); font-weight: 400; }
.da-empty p { margin: -16px auto 24px; max-width: 46ch; color: var(--fg-subtle); font-size: 14px; line-height: 1.55; }
.da-starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.da-starter {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg-muted);
  font: 400 13.5px/1.35 var(--font-body); text-align: start; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.da-starter:hover { background: var(--surface-2); color: var(--fg); }
.da-starter:focus-visible { outline: 2px solid var(--da-ring); outline-offset: 1px; }

/* ── Sign-in gate ──────────────────────────────────────────────────────── */
.da-gate { max-width: 460px; margin: 0 auto 24px; text-align: center; }
.da-gate h2 { margin: 0 0 6px; font-family: var(--font-body); font-weight: 600; font-size: 16px; }
.da-gate p { margin: 0 0 14px; color: var(--fg-subtle); font-size: 13.5px; line-height: 1.55; }
.da-gate-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ── Idle: the composer sits mid-screen until the first message ─────────── */
/* .da-chat is a flex column; auto margins on the two ends centre the pair. */
.da-idle .da-scroll { flex: 0 1 auto; margin-top: auto; overflow-y: visible; }
.da-idle .da-composer { margin-bottom: auto; }
.da-idle .da-empty { padding-top: 0; }

/* ── Thinking effort ───────────────────────────────────────────────────── */
.da-tools { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: var(--da-col); margin: 10px auto 0; }
.da-effort { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.da-effort-opt {
  border: 0; background: transparent; color: var(--fg-muted); cursor: pointer;
  padding: 5px 12px; border-radius: 999px; font: 500 12.5px/1 var(--font-body);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.da-effort-opt:hover { color: var(--fg); }
.da-effort-opt.is-on { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.da-effort-opt:focus-visible { outline: 2px solid var(--da-ring); outline-offset: 1px; }
.da-effort-note { flex: 1; min-width: 0; color: var(--fg-subtle); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The status row keeps working under an answer that is already on screen. */
.da-working-after { margin-top: -2px; }

/* ── Composer ──────────────────────────────────────────────────────────── */
.da-composer { padding: 8px 16px 14px; background: var(--bg); }
.da-tray { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--da-col); margin: 0 auto; padding-bottom: 8px; }
.da-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.da-chip-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.da-chip-ic { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); font-size: 15px; flex: 0 0 auto; }
.da-chip-meta { display: flex; flex-direction: column; min-width: 0; }
.da-chip-name { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.da-chip-size { font-size: 11px; color: var(--fg-subtle); }
.da-chip-x { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-muted); font-size: 15px; line-height: 1; cursor: pointer; }
.da-chip-x:hover { background: var(--da-hover); color: var(--fg); }
.da-input-row {
  display: flex; align-items: flex-end; gap: 6px; max-width: var(--da-col); margin: 0 auto; padding: 8px 8px 8px 10px;
  border-radius: 28px; border: 1px solid var(--border-input); background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease);
}
.da-input-row:focus-within { border-color: var(--border-strong); }
#dro-agent-input {
  flex: 1; min-width: 0; min-height: 48px; max-height: 240px; resize: none; border: 0; background: transparent; color: var(--fg);
  padding: 12px 8px; font: 400 17px/1.5 var(--font-body); outline: none;
}
#dro-agent-input::placeholder { font-size: 17px; }
#dro-agent-input::placeholder { color: var(--fg-subtle); }
.da-send {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fg); color: var(--bg); display: inline-flex; align-items: center; justify-content: center;
  transition: opacity var(--dur-fast) var(--ease);
}
.da-send svg { width: 18px; height: 18px; }
.da-send:hover:not(:disabled) { opacity: .85; }
.da-send:disabled { opacity: .25; cursor: not-allowed; }
.da-send:focus-visible { outline: 2px solid var(--da-ring); outline-offset: 2px; }
html[dir="rtl"] .da-send svg { transform: scaleX(-1); }
.da-hint { display: flex; justify-content: center; gap: 10px; margin-top: 6px; color: var(--fg-subtle); font-size: 11.5px; min-height: 0; }
.da-rec-chip { display: inline-flex; align-items: center; gap: 7px; color: #e5484d; font-size: 11.5px; font-weight: 500; }
@keyframes da-rec-blink { 50% { opacity: .25; } }
.da-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: da-rec-blink 1s steps(2, start) infinite; }

/* ── Drop overlay ──────────────────────────────────────────────────────── */
.da-drop {
  position: absolute; inset: 8px; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px dashed var(--border-strong); border-radius: 16px; color: var(--fg-muted);
  font: 500 15px/1.3 var(--font-body); pointer-events: none;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
.da-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 13, 18, .45); }
@media (max-width: 820px) {
  .da-only-mobile.da-only-mobile { display: inline-flex; }
  .da-main { display: block; height: calc(100vh - var(--header-h, 48px)); }
  .da-sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; width: min(84vw, 300px);
    border-inline-end: 1px solid var(--border);
    transform: translateX(-102%); transition: transform .2s var(--ease);
  }
  html[dir="rtl"] .da-sidebar { transform: translateX(102%); }
  .da-main.is-drawer-open .da-sidebar { transform: none; }
  .da-chat { height: 100%; }
  .da-scroll { padding: 4px 12px 0; }
  .da-msg-user .da-bubble, .da-msg-files, .da-perception { max-width: 92%; }
  .da-empty { padding-top: 6vh; }
  .da-sub { display: none; }
  .da-composer { padding: 6px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .da-hint span:first-child { display: none; }
  .da-effort-note { display: none; }
  .da-tools { margin-top: 6px; }
  .da-icon-btn, .da-send { width: 40px; height: 40px; }
  .da-conv-del, .da-conv-rename { opacity: 1; }
}
