/* ============================================================
   IAcon — Design System Grupo Reis (compartilhado entre as 4 visões)
   ============================================================ */
:root {
  --bg: oklch(0.975 0.005 240);
  --surface: #ffffff;
  --surface-2: oklch(0.955 0.008 240);
  --fg: oklch(0.22 0.04 240);
  --muted: oklch(0.52 0.03 240);
  --border: oklch(0.87 0.015 240);
  --accent: oklch(0.65 0.12 75);

  --navy: #1a2942;
  --navy-dark: #131f35;
  --navy-soft: #233652;
  --navy-hover: #2d4564;
  --navy-border: #3d5574;
  --navy-border-hover: #5a7496;

  --on-nav: #ffffff;
  --rail-text: #dbe4f2;
  --rail-text-2: #b9c6dd;
  --rail-muted: #7f92b2;
  --rail-icon: #8fa3c4;
  --rail-strong: #cbd6ea;

  --ok: oklch(0.47 0.13 152);
  --ok-bg: oklch(0.93 0.05 152);
  --warn: oklch(0.55 0.14 70);
  --warn-bg: oklch(0.94 0.06 85);
  --info: oklch(0.5 0.1 250);
  --info-bg: oklch(0.93 0.04 250);

  --whats: oklch(0.44 0.12 156);
  --whats-hi: oklch(0.36 0.12 156);

  --line-strong: #c3ccda;
  --line-soft: #cdd6e3;
  --line-dash: #c5cede;
  --line-navy: #4d6180;
  --card-hover-line: #b9c4d6;
  --lock: #7e90af;
  --lock-dim: #6d7f9e;

  --radius: 10px;
  --shadow: 0 1px 2px oklch(0.2 0.02 240 / 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;

  --font-sans: var(--font);
  --font-mono: var(--mono);
  --font-display: var(--font);
  --font-body: var(--font);

  --blue-navy: var(--navy);
  --blue-navy-light: var(--navy-soft);
  --blue-navy-dark: var(--navy-dark);

  --sidebar-bg: var(--navy);
  --sidebar-fg: var(--rail-text);
  --sidebar-hover: var(--navy-soft);
  --sidebar-active: var(--navy-hover);

  --gradient-start: oklch(0.985 0.004 240);
  --gradient-end: oklch(0.955 0.008 240);
  --chat-bg: oklch(0.975 0.005 240);
  --chat-user-bg: var(--navy);
  --chat-user-fg: var(--on-nav);
  --chat-ai-bg: var(--surface);
  --chat-ai-fg: var(--fg);

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}
button { font-family: inherit; cursor: pointer; }
:where(a, button, [role="button"], input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
a, button, .btn, .action-btn, .rail-link, .link-btn, .card, .row, .dropzone, .tab-btn,
.tenant-selector-btn, .chat-action, .big-action, .esp-btn, .step, .row-line {
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease,
    box-shadow 0.14s ease, transform 0.14s ease;
}

/* ---------- aplicação shell ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.view { display: none; flex: 1; min-height: 0; }
.view.active { display: flex; flex-direction: column; }
.scroll { flex: 1; overflow-y: auto; padding: 1.6rem 1.8rem; min-height: 0; }

/* ---------- topbar ---------- */
.topbar {
  height: 64px; flex-shrink: 0; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
}
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); align-items: center; justify-content: center; }
.top-left { flex: 1 1 auto; min-width: 0; }
.top-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.top-title { font-size: 1.1rem; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; background: var(--accent); color: var(--navy-dark); flex-shrink: 0; }
.avatar.dark { background: var(--navy); color: #fff; }

.tenant-pill { display: flex; align-items: center; gap: 0.55rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 0.8rem; color: var(--fg); white-space: nowrap; }
.tenant-pill .mono { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- rail lateral (navy) ---------- */
.rail {
  width: 264px; background: var(--navy); color: var(--rail-text);
  display: flex; flex-direction: column; flex-shrink: 0;
  border-right: 1px solid var(--navy-dark);
}
.rail-brand { padding: 1.4rem 1.25rem 1rem; border-bottom: 1px solid var(--navy-soft); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.rail-brand img { width: 54px; height: 54px; object-fit: contain; }
.rail-brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); line-height: 1.1; }
.rail-brand-sub { font-size: 0.66rem; color: var(--rail-text-2); }
.rail-brand-badge { margin-top: 0.2rem; background: var(--navy-hover); color: #fff; border: 1px solid var(--navy-border); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; padding: 0.2rem 0.6rem; border-radius: 4px; }
.rail-nav { flex: 1; overflow-y: auto; padding: 0.9rem 0.8rem 0.4rem; }
.rail-group-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rail-muted); padding: 0.85rem 0.6rem 0.4rem; }
.rail-link { display: flex; align-items: center; gap: 0.7rem; width: 100%; background: transparent; border: none; border-radius: 8px; padding: 0.55rem 0.7rem; margin-bottom: 2px; color: var(--rail-strong); font-size: 0.88rem; font-weight: 500; text-align: left; }
.rail-link svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--rail-icon); }
.rail-link:hover { background: var(--navy-soft); color: #fff; }
.rail-link:hover svg { color: #fff; }
.rail-link.active { background: var(--navy-hover); color: #fff; }
.rail-link.active svg { color: var(--accent); }
.rail-link.locked { color: var(--lock); cursor: not-allowed; }
.rail-link.locked svg { color: var(--lock-dim); }
.rail-link.locked:hover { background: transparent; color: var(--lock); }
.lock-glyph { margin-left: auto; display: inline-flex; }
.lock-glyph svg { width: 15px; height: 15px; }
.rail-foot { padding: 0.8rem 1.2rem; border-top: 1px solid var(--navy-soft); font-size: 0.66rem; color: var(--rail-muted); }

#railOverlay { display: none; position: fixed; inset: 0; background: oklch(0 0 0 / 0.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
#railOverlay.show { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-102%); transition: transform 0.25s ease; width: 276px; box-shadow: 0 0 40px oklch(0 0 0 / 0.3); }
  .rail.open { transform: translateX(0); }
  .menu-btn { display: flex; }
  .app { display: block; }
  .main { height: 100vh; }
  #railOverlay { display: block; }
  .scroll { padding: 1.1rem; }
  .top-right { gap: 0.4rem; }
  .top-right .btn { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
}

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; padding: 0.55rem 1rem; min-height: 40px; border: 1px solid transparent; white-space: nowrap; }
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: var(--accent); color: var(--navy-dark); border-color: var(--accent); }
.btn-gold:hover { background: oklch(0.72 0.12 75); box-shadow: 0 3px 10px oklch(0.55 0.12 75 / 0.25); }
.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 0.7rem 1.4rem; min-height: 46px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-whats { background: var(--whats); color: var(--on-nav); border-color: var(--whats); }
.btn-whats:hover { background: var(--whats-hi); color: var(--on-nav); box-shadow: 0 3px 10px oklch(0.45 0.13 155 / 0.3); }
.link-btn { background: none; border: none; color: var(--info); font-size: 0.8rem; font-weight: 600; padding: 0.2rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- cards genéricos ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 1rem; }
.m-card { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.m-card:hover { border-color: var(--card-hover-line); transform: translateY(-1px); }
.m-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.m-card h3 { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.m-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-icon svg { width: 17px; height: 17px; }
.m-value { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--fg); line-height: 1.1; }
.m-sub { font-size: 0.76rem; color: var(--muted); }
.m-foot { border-top: 1px solid var(--border); padding-top: 0.5rem; font-size: 0.74rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.m-foot svg { width: 14px; height: 14px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-title { font-size: 0.98rem; font-weight: 700; }
.panel-sub { font-size: 0.76rem; color: var(--muted); }

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
.row-title { font-size: 0.9rem; font-weight: 600; }
.row-sub { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }
.row-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row-icon svg { width: 17px; height: 17px; }

.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.14rem 0.5rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: oklch(0.42 0.13 65); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip.gold { background: oklch(0.93 0.06 85); color: oklch(0.45 0.12 70); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.data th { text-align: left; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0.6rem 1.2rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: oklch(0.97 0.006 240); }
table.data tfoot td { background: var(--surface-2); font-weight: 700; }
.mono { font-family: var(--mono); }
.cell-title { font-weight: 600; }
.cell-sub { font-size: 0.74rem; color: var(--muted); }

/* ---------- toolbars / busca ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.42rem 0.8rem; }
.search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search input { border: none; background: none; outline: none; font: inherit; color: var(--fg); width: 100%; }
.welcome-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.welcome h1 { font-size: 1.45rem; letter-spacing: -0.02em; color: var(--fg); }
.welcome p { color: var(--muted); font-size: 0.88rem; }
.block-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 0.6rem; }
.block-label:first-child { margin-top: 0; }

/* ---------- abas ---------- */
.tabs { display: flex; gap: 0.2rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tab-btn { padding: 0.6rem 1rem; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.tab-btn.active { color: var(--fg); border-bottom-color: var(--accent); }
.tab-btn:hover { color: var(--fg); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.kan-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.kan-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.kan-head h3 { font-size: 0.82rem; font-weight: 800; color: var(--fg); }
.kan-count { background: var(--navy); color: #fff; border-radius: 999px; font-size: 0.66rem; font-weight: 700; padding: 0.1rem 0.5rem; font-family: var(--mono); }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow); }
.kcard-title { font-size: 0.84rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.kcard-title svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.kcard-sub { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); }
.kbar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.kbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.kfoot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.agent-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; color: var(--info); }

/* ---------- personas / RBAC ---------- */
.person-cell { display: flex; align-items: center; gap: 0.7rem; }
.p-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-ava.owner { background: var(--accent); color: var(--navy-dark); }
.p-ava.ceo { background: oklch(0.5 0.13 280); color: #fff; }
.p-ava.office { background: var(--navy); color: #fff; }
.p-name { font-weight: 600; font-size: 0.9rem; }
.p-mail { font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }
.perfil-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg); }
.perfil-pill b { font-family: var(--mono); color: var(--accent); }
.perfil-pill.ceo { background: oklch(0.96 0.03 280); border-color: oklch(0.82 0.06 280); color: oklch(0.42 0.1 280); }
.esp-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; font-weight: 600; color: var(--navy); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.7rem; text-decoration: none; }
.esp-btn:hover { border-color: var(--accent); background: var(--surface); }
.esp-btn svg { width: 15px; height: 15px; }

/* ---------- dropzone / upload ---------- */
.dropzone { border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--surface); padding: 2rem 1.5rem; text-align: center; color: var(--muted); transition: border-color 0.14s ease, background 0.14s ease; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: oklch(0.99 0.006 88); }
.dropzone .dz-icon { width: 52px; height: 52px; margin: 0 auto 0.7rem; border-radius: 50%; background: var(--surface-2); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.dropzone .dz-icon svg { width: 26px; height: 26px; }
.dropzone h3 { color: var(--fg); font-size: 0.98rem; margin-bottom: 0.2rem; }
.dropzone p { font-size: 0.84rem; }
.formats { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; display: inline-block; background: var(--surface-2); padding: 0.22rem 0.7rem; border-radius: 5px; }

/* ---------- chat / atendimento ---------- */
.chat-layout { flex: 1; display: flex; min-height: 0; }
.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-right: 1px solid var(--border); }
.chat-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.2rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.chat-bar-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-bar-icon svg { width: 19px; height: 19px; }
.chat-bar .name { font-size: 0.95rem; font-weight: 700; }
.chat-bar .status { font-size: 0.74rem; color: var(--ok); display: flex; align-items: center; gap: 0.3rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.85rem; background: var(--chat-bg); min-height: 0; }
.msg { display: flex; gap: 0.6rem; max-width: 78%; }
.msg.ai { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.66rem; font-weight: 800; background: var(--navy); color: #fff; }
.msg.user .msg-ava { background: var(--accent); color: var(--navy-dark); }
.bubble { padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; }
.msg.ai .bubble { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--navy); color: #fff; border-top-right-radius: 4px; }
.msg-time { font-size: 0.66rem; color: var(--muted); margin-top: 0.2rem; text-align: right; }
.composer { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--surface); border-top: 1px solid var(--border); }
.composer input { flex: 1; min-width: 0; height: 46px; padding: 0 1rem; border: 1px solid var(--border); border-radius: 24px; background: var(--surface-2); font: inherit; color: var(--fg); outline: none; }
.composer input:focus { border-color: var(--accent); background: var(--surface); }
.big-action { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1.5px solid var(--line-soft); color: var(--navy); }
.big-action svg { width: 23px; height: 23px; }
.big-action:hover { border-color: var(--accent); color: var(--accent); }
.big-action.send { background: var(--navy); border-color: var(--navy); color: #fff; }
.big-action.send:hover { background: var(--navy-soft); color: #fff; }
.big-action.recording { background: oklch(0.55 0.2 25); border-color: oklch(0.55 0.2 25); color: #fff; animation: pulse 1.1s infinite; }

/* ---------- nitro / móvel colaborador ---------- */
.mobile-shell { min-height: 100vh; max-width: 430px; margin: 0 auto; background: var(--surface); display: flex; flex-direction: column; box-shadow: 0 0 40px oklch(0.2 0.02 240 / 0.1); }
.mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; gap: 0.5rem; }
.clock-stage { display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.5rem 1.5rem; text-align: center; }
.clock-btn { width: 170px; height: 170px; border-radius: 50%; border: 8px solid oklch(0.93 0.06 85); background: var(--accent); color: var(--navy-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; font-size: 1.05rem; font-weight: 800; box-shadow: 0 10px 30px oklch(0.55 0.12 75 / 0.3); }
.clock-btn.out { background: var(--navy); border-color: oklch(0.28 0.04 240); color: #fff; }
.clock-btn svg { width: 34px; height: 34px; }
.clock-meta { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.meter { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); }
.meter .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- toast / misc ---------- */
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 300; display: flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; padding: 0.8rem 1.1rem; border-radius: 10px; box-shadow: 0 8px 24px oklch(0.15 0.03 240 / 0.3); font-size: 0.82rem; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.navy-callout { background: var(--navy); color: var(--rail-text); border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.82rem; line-height: 1.5; box-shadow: var(--shadow); }
.navy-callout b { color: #fff; }
.navy-callout code { font-family: var(--mono); color: var(--accent); background: rgba(255,255,255,0.08); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.76rem; }

@media (max-width: 1020px) {
  .chat-layout { flex-direction: column; }
  .chat-pane { border-right: none; min-height: 60vh; }
}
