:root {
  color-scheme: dark;
  --bg: #0b0e15;
  --bg-soft: #10131a;
  --surface: #171a22;
  --surface-low: #11151d;
  --surface-high: #20242e;
  --surface-higher: #2a2f3b;
  --ink: #eef2ff;
  --muted: #aab3c5;
  --faint: #737b8f;
  --border: #343a48;
  --border-soft: rgba(142, 151, 173, 0.22);
  --primary: #8fb8ff;
  --primary-strong: #3b82f6;
  --teal: #14d6a3;
  --amber: #ff9f2d;
  --rose: #ff4f8b;
  --red: #ff7a6f;
  --violet: #a78bfa;
  --green: #22c55e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --sidebar: 280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(143, 184, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 184, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

[hidden] {
  display: none !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 14, 21, 0.82);
  backdrop-filter: blur(16px);
}

.auth-card {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: rgba(143, 184, 255, 0.12);
  border: 1px solid rgba(143, 184, 255, 0.22);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-card input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-low);
  color: var(--ink);
  padding: 0 12px;
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.15;
}

h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.material-symbols-outlined {
  font-size: 21px;
  line-height: 1;
  vertical-align: middle;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background: rgba(23, 26, 34, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(20, 214, 163, 0.16));
  border: 1px solid rgba(143, 184, 255, 0.22);
  color: var(--primary);
}

.brand strong {
  display: block;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.brand small,
.sidebar-footer p,
.last-sync {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.nav-item {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-family: Geist, Inter, sans-serif;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: var(--ink);
  background: var(--surface-high);
}

.nav-item.active {
  color: #dbe8ff;
  background: #2d405d;
}

.mobile-module-menu,
.mobile-bottom-nav,
.mobile-details-toggle {
  display: none;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-low);
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.status-dot.ok {
  background: var(--teal);
  box-shadow: 0 0 16px rgba(20, 214, 163, 0.6);
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.bad {
  background: var(--red);
}

.main-shell {
  min-width: 0;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 21, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.eyebrow,
.metric-label,
.panel-count {
  color: var(--primary);
  font-family: Geist, Inter, sans-serif;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 28px 32px 56px;
  display: grid;
  gap: 24px;
}

.workspace > * {
  min-width: 0;
}

.view-panel {
  display: none !important;
}

.view-panel.active {
  display: grid !important;
  gap: 24px;
}

.panel,
.metric-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(32, 36, 46, 0.92), rgba(20, 24, 32, 0.94));
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.general-command {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.command-center-panel {
  display: grid;
  gap: 20px;
}

.general-command-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.72fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(143, 184, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(20, 214, 163, 0.05)),
    rgba(11, 14, 21, 0.68);
  overflow: hidden;
}

.general-command-hero.complete {
  border-color: rgba(20, 214, 163, 0.32);
  background:
    linear-gradient(135deg, rgba(20, 214, 163, 0.16), rgba(59, 130, 246, 0.08)),
    rgba(11, 14, 21, 0.58);
}

.general-command-hero.pending {
  border-color: rgba(255, 159, 45, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 159, 45, 0.14), rgba(59, 130, 246, 0.08)),
    rgba(11, 14, 21, 0.58);
}

.general-command-hero.human {
  border-color: rgba(255, 79, 139, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.15), rgba(255, 159, 45, 0.08)),
    rgba(11, 14, 21, 0.58);
}

.command-hero-main,
.command-hero-side {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(17, 21, 29, 0.78);
}

.command-hero-main {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
}

.command-score-ring {
  width: 136px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--surface-low) 0 58%, transparent 59%),
    conic-gradient(var(--primary-strong) var(--score), rgba(115, 123, 143, 0.22) 0);
  box-shadow: inset 0 0 0 1px rgba(143, 184, 255, 0.14);
}

.general-command-hero.complete .command-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 58%, transparent 59%),
    conic-gradient(var(--teal) var(--score), rgba(115, 123, 143, 0.22) 0);
}

.general-command-hero.pending .command-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 58%, transparent 59%),
    conic-gradient(var(--amber) var(--score), rgba(115, 123, 143, 0.22) 0);
}

.general-command-hero.human .command-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 58%, transparent 59%),
    conic-gradient(var(--rose) var(--score), rgba(115, 123, 143, 0.22) 0);
}

.command-score-ring strong,
.command-score-ring span {
  min-width: 0;
  text-align: center;
}

.command-score-ring strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.command-score-ring span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.05;
}

.command-hero-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.command-hero-copy h3 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.command-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.command-hero-main > .primary-button {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
  padding: 0 14px;
  white-space: normal;
}

.general-sentiment-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sentiment-split-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(11, 14, 21, 0.62);
  text-align: left;
}

.sentiment-split-card:hover,
.sentiment-split-card:focus-visible {
  border-color: rgba(143, 184, 255, 0.44);
  background: rgba(32, 36, 46, 0.88);
}

.sentiment-split-card .material-symbols-outlined {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(143, 184, 255, 0.1);
  color: var(--primary);
  font-size: 18px;
}

.sentiment-split-card.positive .material-symbols-outlined,
.sentiment-split-card.positive b {
  color: var(--teal);
}

.sentiment-split-card.negative .material-symbols-outlined,
.sentiment-split-card.negative b {
  color: var(--rose);
}

.sentiment-split-card > span:not(.material-symbols-outlined) {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sentiment-split-card strong,
.sentiment-split-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sentiment-split-card strong {
  font-size: 13px;
}

.sentiment-split-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.sentiment-split-card b {
  font-size: 18px;
}

.sentiment-split-card i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.sentiment-split-card i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.sentiment-split-card.positive i em {
  background: var(--teal);
}

.sentiment-split-card.negative i em {
  background: var(--rose);
}

.command-hero-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.command-hero-side > .row-title {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
}

.command-hero-side h3 {
  margin: 0;
}

#generalCommandNetworkSummary {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  overflow-wrap: anywhere;
}

.command-network-strip {
  display: grid;
  gap: 10px;
}

.command-network-item {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(11, 14, 21, 0.58);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.command-network-item:hover,
.command-network-item:focus-visible {
  border-color: rgba(143, 184, 255, 0.46);
  background: rgba(32, 36, 46, 0.9);
  transform: translateY(-1px);
}

.command-network-item > .material-symbols-outlined {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.command-network-item.complete > .material-symbols-outlined {
  color: var(--teal);
}

.command-network-item.pending > .material-symbols-outlined {
  color: var(--amber);
}

.command-network-item.human > .material-symbols-outlined {
  color: var(--rose);
}

.command-network-item > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.command-network-item strong,
.command-network-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.command-network-item strong {
  font-size: 14px;
}

.command-network-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.command-network-item b {
  min-width: 44px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(143, 184, 255, 0.1);
  font-size: 13px;
  text-align: center;
}

.command-network-item.complete b {
  color: var(--teal);
  background: rgba(20, 214, 163, 0.1);
}

.command-network-item.pending b {
  color: var(--amber);
  background: rgba(255, 159, 45, 0.1);
}

.command-network-item.human b {
  color: var(--rose);
  background: rgba(255, 79, 139, 0.1);
}

.general-plan {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(143, 184, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 184, 255, 0.08), rgba(20, 214, 163, 0.04)),
    rgba(11, 14, 21, 0.54);
}

.general-plan > .row-title {
  align-items: flex-end;
}

#generalPlanSummary {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.general-plan h3 {
  margin: 0;
}

.general-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.general-plan-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.82);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.general-plan-card:hover,
.general-plan-card:focus-visible {
  border-color: rgba(143, 184, 255, 0.48);
  background: rgba(32, 36, 46, 0.92);
  transform: translateY(-1px);
}

.general-plan-card.complete {
  border-color: rgba(20, 214, 163, 0.26);
}

.general-plan-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
}

.general-plan-card.human {
  border-color: rgba(255, 79, 139, 0.34);
}

.plan-number,
.general-plan-card > .material-symbols-outlined {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-high);
}

.plan-number {
  width: 24px;
  height: 24px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.general-plan-card > .material-symbols-outlined {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.general-plan-card.complete > .material-symbols-outlined {
  color: var(--teal);
}

.general-plan-card.pending > .material-symbols-outlined {
  color: var(--amber);
}

.general-plan-card.human > .material-symbols-outlined {
  color: var(--rose);
}

.plan-copy,
.plan-metric {
  min-width: 0;
  display: grid;
}

.plan-copy {
  gap: 4px;
}

.plan-copy small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-copy strong,
.plan-copy em,
.plan-metric strong,
.plan-metric small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.plan-copy strong {
  font-size: 14px;
}

.plan-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.plan-metric {
  grid-column: 2 / -1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-items: start;
  text-align: left;
}

.plan-metric strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.plan-metric small {
  color: var(--muted);
  font-size: 11px;
}

.general-live {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(143, 184, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 214, 163, 0.07), rgba(59, 130, 246, 0.08)),
    rgba(11, 14, 21, 0.5);
}

.general-live > .row-title {
  align-items: flex-end;
}

#generalLiveSummary {
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.general-live h3 {
  margin: 0;
}

.general-live-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.general-live-card {
  min-width: 0;
  min-height: 168px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.82);
  font-family: Geist, Inter, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.general-live-card:hover,
.general-live-card:focus-visible {
  border-color: rgba(143, 184, 255, 0.44);
  background: rgba(32, 36, 46, 0.9);
  transform: translateY(-1px);
}

.general-live-card.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.general-live-card.pending {
  border-color: rgba(255, 159, 45, 0.26);
}

.general-live-card.human {
  border-color: rgba(255, 79, 139, 0.3);
}

.general-live-card > .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.general-live-card.complete > .material-symbols-outlined {
  color: var(--teal);
}

.general-live-card.pending > .material-symbols-outlined {
  color: var(--amber);
}

.general-live-card.human > .material-symbols-outlined {
  color: var(--rose);
}

.general-live-card > span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.general-live-card small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.general-live-card strong,
.general-live-card em,
.general-live-card b {
  min-width: 0;
  overflow-wrap: break-word;
}

.general-live-card strong {
  font-size: 15px;
}

.general-live-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.general-live-card b {
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
}

.general-delivery {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(143, 184, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 159, 45, 0.06), rgba(20, 214, 163, 0.05)),
    rgba(11, 14, 21, 0.48);
}

.general-delivery > .row-title {
  align-items: flex-end;
}

#generalDeliverySummary {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.general-delivery h3 {
  margin: 0;
}

.general-delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.general-delivery-card {
  min-width: 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.82);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.general-delivery-card:hover,
.general-delivery-card:focus-visible {
  border-color: rgba(143, 184, 255, 0.44);
  background: rgba(32, 36, 46, 0.9);
  transform: translateY(-1px);
}

.general-delivery-card.complete {
  border-color: rgba(20, 214, 163, 0.24);
}

.general-delivery-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
}

.general-delivery-card.human {
  border-color: rgba(255, 79, 139, 0.32);
}

.general-delivery-card > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.general-delivery-card.complete > .material-symbols-outlined {
  color: var(--teal);
}

.general-delivery-card.pending > .material-symbols-outlined {
  color: var(--amber);
}

.general-delivery-card.human > .material-symbols-outlined {
  color: var(--rose);
}

.general-delivery-card > span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.general-delivery-card small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.general-delivery-card strong,
.general-delivery-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.general-delivery-card strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 30px;
  line-height: 0.95;
}

.general-delivery-card em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
}

.delivery-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.22);
}

.delivery-track b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
}

.general-delivery-card.pending .delivery-track b {
  background: linear-gradient(90deg, var(--amber), var(--primary-strong));
}

.general-delivery-card.human .delivery-track b {
  background: linear-gradient(90deg, var(--rose), var(--amber));
}

.general-focus-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 14px;
}

.general-focus-card,
.general-pulse-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.general-focus-card {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(17, 21, 29, 0.84)),
    rgba(17, 21, 29, 0.82);
}

.general-focus-card.complete {
  border-color: rgba(20, 214, 163, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 214, 163, 0.14), rgba(17, 21, 29, 0.84)),
    rgba(17, 21, 29, 0.82);
}

.general-focus-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 159, 45, 0.14), rgba(17, 21, 29, 0.84)),
    rgba(17, 21, 29, 0.82);
}

.general-focus-card.human {
  border-color: rgba(255, 79, 139, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.14), rgba(17, 21, 29, 0.84)),
    rgba(17, 21, 29, 0.82);
}

.focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.general-focus-card h3 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.general-focus-card p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.general-focus-button {
  justify-self: start;
  padding: 0 14px;
}

.general-pulse-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.general-pulse-bars {
  display: grid;
  gap: 9px;
}

.pulse-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.54);
}

.pulse-row.complete {
  border-color: rgba(20, 214, 163, 0.2);
}

.pulse-row.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.pulse-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pulse-row strong,
.pulse-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pulse-row small {
  color: var(--muted);
  font-size: 12px;
}

.pulse-row b {
  text-align: right;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 22px;
}

.pulse-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.pulse-track em {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
}

.pulse-row.pending .pulse-track em {
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.general-journey {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.48);
}

.general-journey > .row-title {
  align-items: flex-end;
}

#generalJourneySummary {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.general-journey h3 {
  margin: 0;
}

.general-journey-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.journey-step {
  min-width: 0;
  min-height: 172px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.82);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.journey-step:hover,
.journey-step:focus-visible {
  border-color: rgba(143, 184, 255, 0.42);
  background: rgba(32, 36, 46, 0.9);
  transform: translateY(-1px);
}

.journey-step.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.journey-step.pending {
  border-color: rgba(255, 159, 45, 0.26);
}

.journey-step.human {
  border-color: rgba(255, 79, 139, 0.3);
}

.journey-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(143, 184, 255, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.journey-step > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.journey-step.complete > .material-symbols-outlined {
  color: var(--teal);
}

.journey-step.pending > .material-symbols-outlined {
  color: var(--amber);
}

.journey-step.human > .material-symbols-outlined {
  color: var(--rose);
}

.journey-step > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.journey-step small,
.journey-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.journey-step small {
  font-weight: 850;
  text-transform: uppercase;
}

.journey-step strong {
  min-width: 0;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.general-network-board {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.48);
}

.general-network-board h3 {
  margin: 0;
}

#generalNetworkBoardSummary {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.general-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.general-network-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 244px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.82);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.general-network-card:hover,
.general-network-card:focus-visible {
  border-color: rgba(143, 184, 255, 0.44);
  background: rgba(32, 36, 46, 0.9);
  transform: translateY(-1px);
}

.general-network-card.complete {
  border-color: rgba(20, 214, 163, 0.24);
}

.general-network-card.pending {
  border-color: rgba(255, 159, 45, 0.28);
}

.general-network-card.human {
  border-color: rgba(255, 79, 139, 0.32);
}

.general-network-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.general-network-head > .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.general-network-card.complete .general-network-head > .material-symbols-outlined {
  color: var(--teal);
}

.general-network-card.pending .general-network-head > .material-symbols-outlined {
  color: var(--amber);
}

.general-network-card.human .general-network-head > .material-symbols-outlined {
  color: var(--rose);
}

.general-network-head > span:last-child,
.general-network-foot,
.general-network-card em {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.general-network-head strong {
  min-width: 0;
  overflow-wrap: break-word;
}

.general-network-head small,
.general-network-card em,
.general-network-foot small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.general-network-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.general-network-metrics span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.5);
}

.general-network-metrics strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.general-network-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.general-network-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.general-network-pipeline span {
  height: 8px;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.24);
}

.general-network-pipeline span.ready {
  background: var(--teal);
}

.general-network-pipeline span.warn {
  background: var(--amber);
}

.general-network-foot {
  margin-top: auto;
}

.general-network-foot b {
  color: var(--primary);
  font-size: 12px;
}

.general-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.general-health-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.health-card,
.action-queue-card,
.readiness-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.health-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 190px;
  padding: 18px;
}

.health-card.complete {
  border-color: rgba(20, 214, 163, 0.28);
  background: linear-gradient(135deg, rgba(20, 214, 163, 0.12), rgba(17, 21, 29, 0.82));
}

.health-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
  background: linear-gradient(135deg, rgba(255, 159, 45, 0.12), rgba(17, 21, 29, 0.82));
}

.health-card.human {
  border-color: rgba(255, 79, 139, 0.32);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.12), rgba(17, 21, 29, 0.82));
}

.health-score-ring {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--primary-strong) var(--health), rgba(115, 123, 143, 0.2) 0);
}

.health-card.complete .health-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--health), rgba(115, 123, 143, 0.2) 0);
}

.health-card.pending .health-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--amber) var(--health), rgba(115, 123, 143, 0.2) 0);
}

.health-card.human .health-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--rose) var(--health), rgba(115, 123, 143, 0.2) 0);
}

.health-score-ring strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.health-score-ring span {
  position: absolute;
  margin-top: 46px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.health-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.health-copy h3 {
  margin: 0;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 0.98;
}

.health-copy p:not(.eyebrow),
.readiness-card p,
.action-queue-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.action-queue-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.action-queue {
  display: grid;
  gap: 8px;
}

.action-queue-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(11, 14, 21, 0.52);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.action-queue-item:hover,
.action-queue-item:focus-visible {
  border-color: rgba(143, 184, 255, 0.44);
  background: rgba(32, 36, 46, 0.88);
  transform: translateY(-1px);
}

.action-queue-item > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.action-queue-item.pending > .material-symbols-outlined {
  color: var(--amber);
}

.action-queue-item.human > .material-symbols-outlined {
  color: var(--rose);
}

.action-queue-item.complete > .material-symbols-outlined {
  color: var(--teal);
}

.action-queue-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.action-queue-item strong,
.action-queue-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-queue-item small {
  font-size: 12px;
}

.system-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.readiness-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
}

.readiness-card .system-icon {
  width: 38px;
  height: 38px;
}

.readiness-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-card strong {
  display: block;
  margin: 2px 0;
  font-size: 14px;
}

.readiness-card p {
  margin: 0;
  font-size: 12px;
}

.command-insights-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 14px;
}

.insight-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.74);
}

.insight-card h3,
.advisor-panel h2 {
  margin: 0;
}

.completion-card {
  grid-column: 1 / -1;
}

.funnel-chart,
.channel-bars {
  display: grid;
  gap: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.funnel-row span,
.channel-bar-body > small,
.completion-list span {
  color: var(--muted);
  font-size: 12px;
}

.funnel-row strong {
  text-align: right;
}

.graph-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.graph-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
  transition: width 220ms ease;
}

.graph-track.warn i {
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.channel-bar-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(11, 14, 21, 0.5);
  text-align: left;
}

.channel-bar-row:hover {
  border-color: rgba(143, 184, 255, 0.38);
  background: rgba(32, 36, 46, 0.76);
}

.channel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-high);
  color: var(--primary);
}

.channel-icon.instagram {
  color: var(--rose);
}

.channel-icon.facebook,
.channel-icon.messenger {
  color: var(--primary);
}

.channel-icon.elevenlabs {
  color: var(--amber);
}

.channel-icon.whatsapp {
  color: var(--teal);
}

.channel-bar-body,
.channel-bar-head {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.channel-bar-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.completion-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.completion-ring {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--complete), rgba(115, 123, 143, 0.22) 0);
}

.completion-ring strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.completion-ring span {
  margin-top: 40px;
  color: var(--muted);
  font-size: 11px;
  position: absolute;
}

.completion-list {
  display: grid;
  gap: 10px;
}

.completion-list span {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.48);
}

.completion-list strong {
  color: var(--ink);
  font-size: 18px;
}

.advisor-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(143, 184, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(32, 36, 46, 0.92), rgba(17, 21, 29, 0.96));
  border-color: rgba(143, 184, 255, 0.28);
}

.network-advisor {
  box-shadow: none;
  background: rgba(17, 21, 29, 0.82);
}

.module-advisor {
  margin-top: 18px;
  box-shadow: none;
  background: rgba(17, 21, 29, 0.78);
}

.horizontal-advisor {
  margin: 0 0 18px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) minmax(260px, 0.95fr);
  align-items: start;
}

.horizontal-advisor .advisor-signals {
  grid-column: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.horizontal-advisor .advisor-checklist {
  grid-column: 3;
  grid-row: 2;
}

[data-assistant-mount] {
  min-width: 0;
}

.horizontal-advisor [data-assistant-mount] {
  grid-column: 1 / -1;
}

.advisor-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.advisor-summary {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.advisor-action {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(143, 184, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.12);
  color: #dbe8ff;
  font-weight: 750;
}

.advisor-jump {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(143, 184, 255, 0.26);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.72);
  font-family: Geist, Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.advisor-jump:hover {
  border-color: rgba(143, 184, 255, 0.48);
  background: rgba(42, 47, 59, 0.88);
}

.advisor-action.pending {
  color: #ffd09b;
  border-color: rgba(255, 159, 45, 0.3);
  background: rgba(255, 159, 45, 0.1);
}

.advisor-action.human {
  color: #ffbed4;
  border-color: rgba(255, 79, 139, 0.32);
  background: rgba(255, 79, 139, 0.1);
}

.advisor-action.complete {
  color: #a7f3d0;
  border-color: rgba(20, 214, 163, 0.3);
  background: rgba(20, 214, 163, 0.09);
}

.advisor-signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.advisor-signals > span {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.5);
}

.advisor-signal-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.advisor-signals small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.advisor-signals strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.advisor-signal-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.22);
}

.advisor-signal-track em {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
}

.advisor-checklist {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.advisor-checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.advisor-checklist li::before {
  content: "check";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 214, 163, 0.14);
  color: var(--teal);
  font-family: "Material Symbols Outlined";
  font-size: 14px;
}

.advisor-checklist li.pending::before {
  content: "priority_high";
  background: rgba(255, 159, 45, 0.15);
  color: var(--amber);
}

.advisor-checklist li.neutral::before {
  content: "arrow_right_alt";
  background: rgba(143, 184, 255, 0.12);
  color: var(--primary);
}

.internal-assistant-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.assistant-query-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.assistant-query-head h3 {
  margin: 0;
}

.assistant-context-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

#internalAssistantModel {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(143, 184, 255, 0.24);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(143, 184, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.internal-assistant-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
}

[data-assistant-mount] .internal-assistant-form {
  margin-top: 0;
}

.assistant-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-quick-actions button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  gap: 6px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(11, 14, 21, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.assistant-quick-actions button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-quick-actions .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 16px;
}

.assistant-quick-actions button:hover,
.assistant-quick-actions button:focus-visible {
  border-color: rgba(143, 184, 255, 0.4);
  background: rgba(32, 36, 46, 0.86);
}

.internal-assistant-result {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(143, 184, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.58);
}

.internal-assistant-result.ok {
  border-color: rgba(20, 214, 163, 0.28);
}

.internal-assistant-result.watch {
  border-color: rgba(255, 159, 45, 0.3);
}

.internal-assistant-result.urgent {
  border-color: rgba(255, 79, 139, 0.34);
}

.assistant-result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.assistant-result-title strong,
.assistant-result-summary,
.assistant-result-answer,
.assistant-result-warnings li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.assistant-result-title span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.assistant-result-summary,
.assistant-result-answer {
  color: var(--muted);
  font-size: 13px;
}

.assistant-result-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-result-toolbar button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(143, 184, 255, 0.24);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.assistant-result-toolbar button:hover,
.assistant-result-toolbar button:focus-visible {
  border-color: rgba(143, 184, 255, 0.46);
  background: rgba(42, 47, 59, 0.9);
}

.assistant-result-toolbar .material-symbols-outlined {
  font-size: 17px;
}

.assistant-result-answer {
  color: var(--ink);
  white-space: pre-wrap;
}

.assistant-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assistant-result-metrics span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.assistant-result-metrics small,
.assistant-result-metrics em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.assistant-result-metrics strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 22px;
}

.assistant-result-actions {
  display: grid;
  gap: 8px;
}

.assistant-action-button {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 21, 29, 0.78);
  text-align: left;
}

.assistant-action-button:hover,
.assistant-action-button:focus-visible {
  border-color: rgba(143, 184, 255, 0.4);
  background: rgba(32, 36, 46, 0.88);
}

.assistant-action-button small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.assistant-result-warnings {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--amber);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(20, 214, 163, 0.34);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 750;
}

.toast.bad {
  border-color: rgba(255, 122, 111, 0.42);
  color: #ffd6d1;
}

.toast.warn {
  border-color: rgba(255, 159, 45, 0.42);
  color: #ffd09b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.command-visual {
  min-height: 390px;
  overflow: hidden;
  position: relative;
}

.command-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent 24px, rgba(143, 184, 255, 0.08) 25px, transparent 26px),
    linear-gradient(180deg, transparent 0, transparent 24px, rgba(143, 184, 255, 0.06) 25px, transparent 26px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 84%, transparent);
  pointer-events: none;
}

.section-title {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.section-title.compact {
  max-width: min(620px, 100%);
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
  overflow-wrap: anywhere;
}

.row-title,
.activity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.signal-map {
  min-height: 265px;
  position: relative;
  isolation: isolate;
}

.signal-map::before,
.signal-map::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 184, 255, 0.45), transparent);
}

.signal-map::after {
  top: 35%;
  transform: rotate(-9deg);
  opacity: 0.65;
}

.signal-node,
.signal-core {
  position: absolute;
  width: 170px;
  min-height: 86px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.9);
  z-index: 1;
}

.signal-node .material-symbols-outlined,
.signal-core .material-symbols-outlined {
  color: var(--primary);
}

.signal-node small,
.signal-core small {
  color: var(--muted);
  font-size: 12px;
}

.signal-core {
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 190px;
  min-height: 108px;
  align-content: center;
  text-align: center;
  border-color: rgba(143, 184, 255, 0.55);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(17, 21, 29, 0.96));
}

.node-ig {
  left: 0;
  top: 12px;
  border-color: rgba(255, 79, 139, 0.38);
}

.node-fb {
  left: 34px;
  bottom: 4px;
  border-color: rgba(59, 130, 246, 0.45);
}

.node-voice {
  right: 28px;
  top: 12px;
  border-color: rgba(255, 159, 45, 0.45);
}

.node-db {
  right: 0;
  bottom: 4px;
  border-color: rgba(20, 214, 163, 0.38);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.metric-card strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 0.9;
  letter-spacing: 0;
}

.metric-card small {
  color: var(--muted);
}

.metric-card.highlight {
  border-color: rgba(255, 159, 45, 0.45);
}

.systems-grid,
.network-modules-grid,
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-card,
.network-module,
.credential {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-low);
}

.system-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-high);
  color: var(--primary);
}

.system-card strong,
.network-module strong,
.credential strong {
  display: block;
  font-size: 14px;
}

.system-card span:last-child,
.network-module p,
.credential span {
  color: var(--muted);
  font-size: 12px;
}

.network-modules-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.network-module {
  min-height: 132px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: start;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.network-module.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.network-module.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.network-module.human {
  border-color: rgba(255, 79, 139, 0.28);
}

.network-module:hover,
.network-module:focus-visible {
  border-color: rgba(143, 184, 255, 0.48);
  background: rgba(24, 30, 42, 0.96);
  transform: translateY(-1px);
}

.network-module .module-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.module-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.module-stats span {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.44);
}

.module-stats strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.module-stats small {
  color: var(--muted);
  font-size: 11px;
}

.network-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.network-overview-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.network-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-self: start;
}

.compact-metric {
  min-height: 118px;
  padding: 16px;
}

.compact-metric strong {
  font-size: clamp(34px, 4vw, 54px);
}

.network-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
}

.network-command-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr) minmax(280px, 0.95fr);
  gap: 14px;
  margin-bottom: 18px;
}

.network-health-card,
.network-panel-block {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.network-health-card {
  min-height: 196px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.network-health-card.complete {
  border-color: rgba(20, 214, 163, 0.28);
  background: linear-gradient(135deg, rgba(20, 214, 163, 0.1), rgba(17, 21, 29, 0.84));
}

.network-health-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
  background: linear-gradient(135deg, rgba(255, 159, 45, 0.1), rgba(17, 21, 29, 0.84));
}

.network-health-card.human {
  border-color: rgba(255, 79, 139, 0.32);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.1), rgba(17, 21, 29, 0.84));
}

.network-score-ring {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--primary-strong) var(--network), rgba(115, 123, 143, 0.2) 0);
}

.network-health-card.complete .network-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--network), rgba(115, 123, 143, 0.2) 0);
}

.network-health-card.pending .network-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--amber) var(--network), rgba(115, 123, 143, 0.2) 0);
}

.network-health-card.human .network-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--rose) var(--network), rgba(115, 123, 143, 0.2) 0);
}

.network-score-ring strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.network-score-ring span {
  position: absolute;
  margin-top: 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.network-health-card h3 {
  margin: 8px 0;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 0.98;
}

.network-health-card p,
.network-flow-step p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.network-panel-block {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.network-flow {
  display: grid;
  gap: 8px;
}

.network-flow-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.54);
}

.network-flow-step > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--amber);
  background: var(--surface-high);
}

.network-flow-step.complete > .material-symbols-outlined {
  color: var(--teal);
}

.network-flow-step div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.network-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.network-signals > span {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.5);
}

.network-signals > span.risk {
  border-color: rgba(255, 79, 139, 0.3);
}

.network-signal-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.network-signals small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.network-signals strong {
  overflow-wrap: anywhere;
}

.network-signal-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.22);
}

.network-signal-track em {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
}

.network-signals > span.risk .network-signal-track em {
  background: linear-gradient(90deg, var(--rose), var(--amber));
}

.whatsapp-qr-panel {
  margin-bottom: 18px;
}

.whatsapp-control-card {
  display: grid;
  gap: 16px;
}

.whatsapp-control-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 14px;
}

.whatsapp-status-card,
.whatsapp-bot-card,
.whatsapp-qr-code-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.58);
}

.whatsapp-status-card {
  min-height: 158px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.whatsapp-status-card.complete {
  border-color: rgba(20, 214, 163, 0.3);
  background: linear-gradient(135deg, rgba(20, 214, 163, 0.1), rgba(11, 14, 21, 0.64));
}

.whatsapp-status-card.pending {
  border-color: rgba(255, 159, 45, 0.32);
  background: linear-gradient(135deg, rgba(255, 159, 45, 0.1), rgba(11, 14, 21, 0.64));
}

.whatsapp-status-card.human {
  border-color: rgba(255, 79, 139, 0.32);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.1), rgba(11, 14, 21, 0.64));
}

.whatsapp-status-card .system-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--teal);
  background: var(--surface-high);
}

.whatsapp-status-card.pending .system-icon {
  color: var(--amber);
}

.whatsapp-status-card.human .system-icon {
  color: var(--rose);
}

.whatsapp-status-card h3,
.whatsapp-bot-card h3,
.whatsapp-qr-code-card h3 {
  margin: 8px 0 5px;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 24px;
  line-height: 1.02;
}

.whatsapp-status-card p,
.whatsapp-bot-card p,
.whatsapp-qr-code-card p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.whatsapp-bot-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.whatsapp-handoff-field {
  display: grid;
  gap: 7px;
}

.whatsapp-handoff-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.whatsapp-handoff-field input {
  width: 100%;
  min-height: 42px;
}

.whatsapp-control-actions {
  display: flex;
  justify-content: flex-start;
}

.whatsapp-control-actions button {
  min-width: 156px;
}

.whatsapp-qr-code-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

#whatsappQrCodeMeta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.whatsapp-qr-ascii {
  width: 100%;
  max-width: 100%;
  max-height: 460px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(143, 184, 255, 0.18);
  border-radius: var(--radius);
  color: #fff;
  background: #030712;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
}

.whatsapp-qr-code-card.empty .whatsapp-qr-ascii {
  display: none;
}

.network-test-guide {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.48);
}

.network-test-guide > .row-title {
  align-items: flex-end;
}

#networkTestSummary {
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.network-test-guide h3 {
  margin: 0;
}

.network-test-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.network-test-step {
  min-width: 0;
  min-height: 176px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.82);
}

.network-test-step.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.network-test-step.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.network-test-step.human {
  border-color: rgba(255, 79, 139, 0.3);
}

.network-test-step > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.network-test-step.complete > .material-symbols-outlined {
  color: var(--teal);
}

.network-test-step.pending > .material-symbols-outlined {
  color: var(--amber);
}

.network-test-step.human > .material-symbols-outlined {
  color: var(--rose);
}

.network-test-step > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.network-test-step > div > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.network-test-step strong,
.network-test-step p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.network-test-step p {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 12px;
  font-family: Geist, Inter, sans-serif;
  font-weight: 750;
}

.status-pill.neutral {
  color: var(--primary);
  background: rgba(143, 184, 255, 0.12);
}

.status-pill.ok,
.ok-text {
  color: var(--teal);
}

.status-pill.warn,
.warn-text {
  color: var(--amber);
}

.status-pill.bad,
.bad-text {
  color: var(--red);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface-high);
}

.primary-button,
.secondary-button,
.copy-row button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 750;
  font-family: Geist, Inter, sans-serif;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), #2563eb);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.24);
}

.primary-button.loading .material-symbols-outlined,
.secondary-button.loading .material-symbols-outlined,
.icon-button.loading .material-symbols-outlined {
  animation: spin 900ms linear infinite;
}

.secondary-button,
.copy-row button {
  color: var(--ink);
  border: 1px solid var(--border);
  background: rgba(42, 47, 59, 0.8);
}

.secondary-button.danger {
  color: var(--red);
}

.call-action-panel {
  margin: -10px 0 0;
}

.call-action-card,
.thread-call-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: rgba(143, 184, 255, 0.16);
}

.call-action-card.complete,
.thread-call-action.complete {
  border-color: rgba(20, 214, 163, 0.28);
}

.call-action-card.pending,
.thread-call-action.pending {
  border-color: rgba(255, 159, 45, 0.28);
}

.call-action-card h2,
.call-action-card p,
.thread-call-action p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.call-action-meta span {
  min-width: 96px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-high);
}

.call-action-meta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.call-action-meta strong {
  display: block;
  margin-top: 2px;
}

.call-action-buttons,
.detail-phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.thread-call-action {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.82);
}

.profile-phone {
  margin-top: 8px;
  font-weight: 800;
  color: var(--teal);
}

.calls-operator-panel {
  display: grid;
}

.calls-operator-card {
  display: grid;
  gap: 18px;
}

.calls-desk-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(20, 214, 163, 0.24);
  background:
    linear-gradient(180deg, rgba(20, 214, 163, 0.08), rgba(17, 21, 29, 0.88) 42%),
    var(--panel);
}

.calls-desk-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.calls-desk-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.calls-desk-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.calls-desk-header p {
  margin: 8px 0 0;
  max-width: 620px;
  color: var(--muted);
}

.calls-desk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}

.calls-desk-stats span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(143, 184, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.72);
}

.calls-desk-stats small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calls-desk-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 28px;
  line-height: 1;
}

.calls-operator-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.46fr) auto;
  gap: 12px;
  align-items: stretch;
}

.calls-operator-main h2,
.calls-operator-main p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calls-latest-card,
.calls-phone-box {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.76);
}

.calls-latest-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.calls-latest-card p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.calls-phone-box.complete {
  border-color: rgba(20, 214, 163, 0.28);
  background: rgba(10, 63, 55, 0.42);
}

.calls-phone-box.pending {
  border-color: rgba(255, 159, 45, 0.28);
  background: rgba(85, 53, 18, 0.34);
}

.calls-phone-box small,
.calls-field-grid small,
.call-fact-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calls-phone-box strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.calls-field-grid,
.call-fact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calls-field-grid span,
.call-fact-row span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.72);
}

.calls-field-grid strong,
.call-fact-row strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.calls-assistant-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.52);
}

.network-workspace.calls-mode {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: start;
}

.call-list-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(17, 21, 29, 0.82);
}

.call-list-item.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.call-list-item.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.call-list-head,
.call-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.call-list-head strong,
.call-list-head small {
  display: block;
}

.call-list-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.call-phone-row > strong {
  min-width: 0;
  color: var(--teal);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.call-last-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.2fr) minmax(280px, 0.72fr);
  gap: 24px;
}

.inbox-overview-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.inbox-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.inbox-filter-bar {
  margin: -4px 0 10px;
}

.inbox-filter-stack {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.filter-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.inbox-list-panel,
.thread-panel,
.profile-panel {
  min-height: 540px;
}

.conversation-list,
.item-list {
  display: grid;
  gap: 10px;
}

.conversation-item,
.item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(17, 21, 29, 0.82);
}

.conversation-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.conversation-item:hover,
.conversation-item:focus-visible,
.conversation-item.active {
  border-color: rgba(143, 184, 255, 0.42);
  background: rgba(32, 36, 46, 0.9);
}

.conversation-item.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.conversation-item.pending {
  border-color: rgba(255, 159, 45, 0.26);
}

.conversation-item.human {
  border-color: rgba(255, 79, 139, 0.3);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(143, 184, 255, 0.2), rgba(20, 214, 163, 0.16));
  color: var(--ink);
  font-weight: 800;
}

.conversation-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.conversation-head,
.item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-head strong,
.item-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.conversation-item p,
.item p,
.profile-summary p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.conversation-item p,
.truncate-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-action {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(143, 184, 255, 0.12);
  color: #c8dcff;
  border: 1px solid rgba(143, 184, 255, 0.18);
  font-size: 11px;
  font-family: Geist, Inter, sans-serif;
  font-weight: 750;
}

.badge.instagram {
  color: #ff9ac0;
  border-color: rgba(255, 79, 139, 0.28);
}

.badge.facebook,
.badge.messenger {
  color: #a9c9ff;
  border-color: rgba(59, 130, 246, 0.28);
}

.badge.elevenlabs {
  color: #ffd09b;
  border-color: rgba(255, 159, 45, 0.28);
}

.mobile-thread-bar {
  display: none;
}

.thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.thread-header p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.thread-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.thread-signals span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.5);
}

.thread-signals small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.thread-signals strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.thread-body {
  min-height: 350px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 18px;
}

.message-bubble {
  width: min(82%, 620px);
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-high);
}

.message-bubble.outbound {
  margin-left: auto;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(143, 184, 255, 0.26);
}

.message-bubble.public_comment {
  border-color: rgba(20, 214, 163, 0.34);
  background: rgba(20, 214, 163, 0.1);
}

.message-bubble.private_message,
.message-bubble.direct_message {
  border-color: rgba(143, 184, 255, 0.3);
}

.message-bubble.inbound {
  margin-right: auto;
}

.message-bubble small {
  display: block;
  color: var(--faint);
  margin-bottom: 6px;
  font-family: Geist, Inter, sans-serif;
}

.message-bubble p {
  overflow-wrap: anywhere;
}

.thread-context {
  width: min(92%, 680px);
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(143, 184, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(143, 184, 255, 0.08);
}

.thread-context p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.manual-reply-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.manual-reply-form.disabled {
  opacity: 0.76;
}

.manual-reply-head,
.manual-reply-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.manual-reply-head h3 {
  margin: 0;
}

.manual-reply-head select {
  width: min(220px, 100%);
  min-height: 40px;
}

.manual-reply-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
}

.manual-reply-actions {
  align-items: center;
}

#manualReplyHint {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.manual-token-field {
  flex: 0 1 250px;
  min-width: 180px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d1118;
  color: var(--muted);
}

.manual-token-field input {
  min-height: 38px;
  border: 0;
  padding-left: 0;
  background: transparent;
}

.profile-summary {
  display: grid;
  gap: 14px;
}

.profile-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.82);
}

.profile-open-button {
  justify-self: start;
  padding: 8px 12px;
}

.profile-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-low);
}

.kpi small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.activity-grid,
.work-grid,
.connection-grid {
  display: grid;
  gap: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.filter-chip {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(17, 21, 29, 0.82);
  font-family: Geist, Inter, sans-serif;
  font-size: 12px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip .material-symbols-outlined {
  font-size: 17px;
}

.filter-chip.active {
  color: #dbe8ff;
  border-color: rgba(143, 184, 255, 0.42);
  background: rgba(59, 130, 246, 0.22);
}

.expediente-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.expediente-workflow article {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.28), rgba(17, 21, 29, 0));
}

.expediente-workflow .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: rgba(143, 184, 255, 0.12);
}

.expediente-workflow div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.expediente-workflow small,
.expediente-zone-head > span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.expediente-workflow strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.expediente-zone {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.expediente-zone-head {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.expediente-zone-head h3 {
  margin: 0;
  font-size: 22px;
}

.expediente-zone > .filter-bar,
.expediente-zone .expediente-command-grid {
  margin: 0;
}

.expediente-command-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 0.95fr) minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.expediente-command-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.82);
}

.expediente-command-card.priority {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(17, 21, 29, 0.84)),
    rgba(17, 21, 29, 0.82);
}

.expediente-command-card > strong {
  min-width: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.expediente-command-card > p,
.panel-head p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.expediente-pipeline,
.expediente-network-breakdown {
  display: grid;
  gap: 8px;
}

.pipeline-step,
.network-breakdown-row {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(11, 14, 21, 0.54);
  font-family: Geist, Inter, sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pipeline-step {
  min-height: 46px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
}

.pipeline-step strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.pipeline-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pipeline-step.pending strong {
  color: var(--amber);
}

.pipeline-step.complete strong {
  color: var(--teal);
}

.pipeline-step.human strong {
  color: var(--rose);
}

.pipeline-step:hover,
.pipeline-step:focus-visible,
.pipeline-step.active,
.network-breakdown-row:hover,
.network-breakdown-row:focus-visible,
.network-breakdown-row.active {
  border-color: rgba(143, 184, 255, 0.42);
  background: rgba(32, 36, 46, 0.86);
  transform: translateY(-1px);
}

.network-breakdown-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  text-align: left;
}

.network-breakdown-row .material-symbols-outlined {
  color: var(--primary);
  font-size: 22px;
}

.network-breakdown-row div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.network-breakdown-row div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.network-breakdown-row strong,
.network-breakdown-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.network-breakdown-row span {
  color: var(--muted);
}

.network-breakdown-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.network-breakdown-row i::before {
  content: "";
  display: block;
  width: var(--width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
}

.expediente-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 1.12fr) minmax(280px, 0.88fr);
  gap: 12px;
}

.expediente-work-queue {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  align-content: start;
  align-items: start;
  gap: 10px;
}

.expediente-folder,
.expediente-gap-panel {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.expediente-folder {
  min-height: 118px;
  align-self: start;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  font-family: Geist, Inter, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.expediente-folder:hover,
.expediente-folder:focus-visible,
.expediente-folder.active {
  border-color: rgba(143, 184, 255, 0.46);
  background: rgba(32, 36, 46, 0.9);
  transform: translateY(-1px);
}

.expediente-folder > .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.expediente-folder.pending > .material-symbols-outlined {
  color: var(--amber);
}

.expediente-folder.complete > .material-symbols-outlined {
  color: var(--teal);
}

.expediente-folder.human > .material-symbols-outlined {
  color: var(--rose);
}

.expediente-folder > span {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.expediente-folder > span > span {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.expediente-folder strong,
.expediente-folder small,
.expediente-folder em {
  min-width: 0;
  overflow-wrap: break-word;
}

.expediente-folder strong {
  line-height: 1.12;
  word-break: normal;
  hyphens: none;
}

.expediente-folder small {
  color: var(--muted);
  font-size: 12px;
}

.expediente-folder em {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 34px;
  font-style: normal;
  line-height: 0.95;
}

.expediente-gap-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.expediente-gap-panel h3 {
  margin: 0;
}

.expediente-gap-list {
  display: grid;
  gap: 9px;
}

.expediente-gap-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.54);
}

.expediente-gap-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.expediente-gap-row strong,
.expediente-gap-row span,
.expediente-gap-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.expediente-gap-row span,
.expediente-gap-row small {
  color: var(--muted);
  font-size: 12px;
}

.expediente-gap-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.expediente-gap-row i::before {
  content: "";
  display: block;
  width: var(--width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--primary-strong));
}

.audience-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr) minmax(220px, 0.75fr);
  gap: 12px;
}

.audience-sentiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.audience-sentiment-card,
.audience-locations-card,
.audience-tags-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.8);
}

.audience-sentiment-card {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.audience-sentiment-card.positive {
  border-color: rgba(20, 214, 163, 0.28);
}

.audience-sentiment-card.neutral,
.audience-sentiment-card.mixed {
  border-color: rgba(143, 184, 255, 0.24);
}

.audience-sentiment-card.negative {
  border-color: rgba(255, 79, 139, 0.34);
}

.audience-sentiment-card > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.audience-sentiment-card span,
.audience-sentiment-card p,
.audience-sentiment-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.audience-sentiment-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audience-sentiment-card strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 38px;
  line-height: 0.9;
}

.audience-sentiment-card.positive strong {
  color: var(--teal);
}

.audience-sentiment-card.negative strong {
  color: var(--rose);
}

.audience-sentiment-card p,
.audience-sentiment-card small {
  color: var(--muted);
  font-size: 12px;
}

.audience-sample-list,
.audience-location-list,
.audience-tag-list {
  display: grid;
  gap: 8px;
}

.audience-sample-list button,
.audience-location-row,
.audience-tag-chip {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(11, 14, 21, 0.52);
  font-family: Geist, Inter, sans-serif;
  text-align: left;
}

.audience-sample-list button {
  min-height: 32px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.audience-locations-card,
.audience-tags-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.audience-location-row {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.audience-location-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audience-location-row strong,
.audience-location-row span,
.audience-location-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.audience-location-row span,
.audience-location-row small {
  color: var(--muted);
  font-size: 12px;
}

.audience-location-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.audience-location-row i::before {
  content: "";
  display: block;
  width: var(--width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--primary-strong), var(--rose));
}

.audience-tag-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
}

.audience-tag-chip {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.audience-operator-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.audience-guide-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.audience-guide-card.positive {
  border-color: rgba(20, 214, 163, 0.26);
}

.audience-guide-card.negative {
  border-color: rgba(255, 79, 139, 0.32);
}

.audience-guide-card.neutral,
.audience-guide-card.mixed {
  border-color: rgba(143, 184, 255, 0.24);
}

.audience-guide-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.audience-guide-head > .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(143, 184, 255, 0.12);
}

.audience-guide-head div,
.audience-guide-card p,
.audience-guide-card em,
.audience-guide-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.audience-guide-head strong {
  display: block;
  font-size: 15px;
}

.audience-guide-head small,
.audience-guide-card p,
.audience-guide-card em,
.audience-guide-locations {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.audience-guide-card em {
  font-style: normal;
  color: var(--ink);
}

.audience-guide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.audience-guide-actions button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(11, 14, 21, 0.52);
  font-family: Geist, Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.audience-guide-actions button:hover,
.audience-guide-actions button:focus-visible {
  border-color: rgba(143, 184, 255, 0.42);
  background: rgba(32, 36, 46, 0.86);
}

.audience-sample-list button:hover,
.audience-sample-list button:focus-visible,
.audience-location-row:hover,
.audience-location-row:focus-visible,
.audience-tag-chip:hover,
.audience-tag-chip:focus-visible {
  border-color: rgba(143, 184, 255, 0.42);
  background: rgba(32, 36, 46, 0.86);
}

.expediente-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.84);
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.summary-card strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 0.95;
}

.expediente-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.5);
}

.secondary-filter {
  margin: 0;
}

.search-box {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d1118;
  color: var(--muted);
}

.search-box input {
  border: 0;
  padding-left: 0;
  background: transparent;
}

.expediente-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.expediente-list-panel,
.expediente-detail-panel,
.expediente-timeline-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.72);
}

.expediente-list-panel,
.expediente-detail-panel {
  min-height: 560px;
}

.expediente-list,
.expediente-detail,
.timeline-list {
  display: grid;
  gap: 12px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3,
.panel-head p {
  margin: 0;
}

.expediente-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.66);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.expediente-card:hover,
.expediente-card:focus-visible,
.expediente-card.active {
  border-color: rgba(143, 184, 255, 0.46);
  background: rgba(32, 36, 46, 0.92);
}

.expediente-card.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.expediente-card-title,
.expediente-card-footer,
.detail-header,
.timeline-item > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.expediente-card-title strong,
.detail-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.expediente-card p,
.expediente-card small,
.detail-header p,
.detail-field small,
.missing-box p,
.next-action p,
.timeline-item p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.expediente-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.missing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.missing-chip-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(255, 159, 45, 0.24);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 159, 45, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.missing-chip-row span.complete {
  color: var(--teal);
  border-color: rgba(20, 214, 163, 0.24);
  background: rgba(20, 214, 163, 0.08);
}

.expediente-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 123, 143, 0.2);
}

.expediente-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--teal));
}

.status-token {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 11px;
  font-weight: 800;
}

.status-token.pending {
  color: var(--amber);
  border-color: rgba(255, 159, 45, 0.28);
}

.status-token.complete {
  color: var(--teal);
  border-color: rgba(20, 214, 163, 0.28);
}

.status-token.human {
  color: var(--rose);
  border-color: rgba(255, 79, 139, 0.28);
}

.status-token.neutral {
  color: var(--primary);
  border-color: rgba(143, 184, 255, 0.28);
}

.detail-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dossier-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dossier-strip span {
  min-width: 0;
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.52);
}

.dossier-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.next-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.62);
}

.next-action .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-high);
}

.next-action.pending .material-symbols-outlined {
  color: var(--amber);
}

.next-action.complete .material-symbols-outlined {
  color: var(--teal);
}

.next-action.human .material-symbols-outlined {
  color: var(--rose);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-section h3 {
  margin: 0;
  font-size: 15px;
}

.affiliation-detail-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.52);
}

.affiliation-detail-head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.affiliation-detail-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.affiliation-detail-head p {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-field {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.52);
}

.detail-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-field.missing {
  border-color: rgba(255, 159, 45, 0.34);
  background: rgba(255, 159, 45, 0.08);
}

.detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.missing-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 159, 45, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 159, 45, 0.08);
}

.timeline-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.62);
}

.timeline-item small {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
}

.activity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
}

.brain-command-grid,
.brain-behavior-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.brain-command-grid {
  grid-template-columns: 1fr;
}

.brain-behavior-grid {
  grid-template-columns: 1fr;
}

.brain-status-card,
.brain-rule-card,
.brain-panel-block {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.brain-status-card {
  min-height: 178px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.brain-status-card.complete {
  border-color: rgba(20, 214, 163, 0.28);
  background: linear-gradient(135deg, rgba(20, 214, 163, 0.1), rgba(17, 21, 29, 0.84));
}

.brain-status-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
  background: linear-gradient(135deg, rgba(255, 159, 45, 0.1), rgba(17, 21, 29, 0.84));
}

.brain-score-ring {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--primary-strong) var(--brain), rgba(115, 123, 143, 0.2) 0);
}

.brain-status-card.complete .brain-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--brain), rgba(115, 123, 143, 0.2) 0);
}

.brain-status-card.pending .brain-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--amber) var(--brain), rgba(115, 123, 143, 0.2) 0);
}

.brain-score-ring strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.brain-score-ring span {
  position: absolute;
  margin-top: 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.brain-status-card h3 {
  margin: 8px 0;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 31px;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.brain-status-card p,
.brain-channel-row p,
.brain-risk-item p,
.brain-channel-row em {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.brain-rule-card,
.brain-panel-block {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.brain-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.brain-rule-grid span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.5);
}

.brain-rule-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.brain-rule-grid strong {
  overflow-wrap: anywhere;
}

.brain-channel-matrix,
.brain-risk-list {
  display: grid;
  gap: 10px;
}

.brain-channel-row,
.brain-risk-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.54);
}

.brain-channel-row > .material-symbols-outlined,
.brain-risk-item > .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.brain-channel-row div,
.brain-risk-item div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.brain-channel-row div > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.brain-channel-row small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.brain-channel-row em {
  font-style: normal;
  color: #c8dcff;
}

.brain-risk-item.complete > .material-symbols-outlined {
  color: var(--teal);
}

.brain-risk-item.pending > .material-symbols-outlined {
  color: var(--amber);
}

.brain-playbook {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.48);
}

.brain-playbook > .row-title {
  align-items: flex-end;
}

#brainPlaybookSummary {
  max-width: 380px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.brain-playbook h3 {
  margin: 0;
}

.brain-playbook-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.brain-playbook-step {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  min-height: 178px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.82);
}

.brain-playbook-step.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.brain-playbook-step.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.brain-playbook-step > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.brain-playbook-step.complete > .material-symbols-outlined {
  color: var(--teal);
}

.brain-playbook-step.pending > .material-symbols-outlined {
  color: var(--amber);
}

.brain-playbook-step > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.brain-playbook-step > div > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.brain-playbook-step strong,
.brain-playbook-step p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brain-playbook-step p {
  color: var(--muted);
  font-size: 13px;
}

.form-title {
  margin-top: 4px;
}

#brain.work-grid > article:first-child {
  grid-row: 1 / span 2;
}

#brain.work-grid > .module-advisor {
  grid-column: 2;
  margin-top: 0;
}

#brain.work-grid > article:last-child {
  grid-column: 2;
}

.connection-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.integrations-command-grid,
.integrations-summary-grid,
.integrations-workspace {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.integrations-command-grid {
  grid-template-columns: minmax(320px, 1.12fr) minmax(260px, 0.88fr);
}

.integrations-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-monitor {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.7);
}

.ops-monitor > .row-title {
  align-items: flex-end;
}

#opsMonitorSummary {
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.ops-monitor h3 {
  margin: 0;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.ops-summary-card,
.ops-checklist-row {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.54);
}

.ops-summary-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.ops-summary-card.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.ops-summary-card.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.ops-summary-card > .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.ops-summary-card.complete > .material-symbols-outlined {
  color: var(--teal);
}

.ops-summary-card.pending > .material-symbols-outlined {
  color: var(--amber);
}

.ops-summary-card > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.ops-summary-card > div > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ops-summary-card strong,
.ops-summary-card p,
.ops-checklist-row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-summary-card p {
  color: var(--muted);
  font-size: 13px;
}

.ops-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.ops-checklist-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 64px;
  padding: 10px;
  color: var(--ink);
  font-size: 13px;
}

.ops-checklist-row .material-symbols-outlined {
  color: var(--teal);
}

.integrations-readiness {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.48);
}

.integrations-readiness > .row-title {
  align-items: flex-end;
}

#integrationsReadinessSummary {
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.integrations-readiness h3 {
  margin: 0;
}

.integrations-readiness-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.integrations-readiness-step {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  min-height: 176px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.82);
}

.integrations-readiness-step.complete {
  border-color: rgba(20, 214, 163, 0.22);
}

.integrations-readiness-step.pending {
  border-color: rgba(255, 159, 45, 0.24);
}

.integrations-readiness-step > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.integrations-readiness-step.complete > .material-symbols-outlined {
  color: var(--teal);
}

.integrations-readiness-step.pending > .material-symbols-outlined {
  color: var(--amber);
}

.integrations-readiness-step > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.integrations-readiness-step > div > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.integrations-readiness-step strong,
.integrations-readiness-step p {
  min-width: 0;
  overflow-wrap: break-word;
}

.integrations-readiness-step p {
  color: var(--muted);
  font-size: 13px;
}

.integrations-workspace {
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
}

.integrations-health-card,
.integrations-priority-card,
.integrations-panel-block {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.78);
}

.integrations-health-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.integrations-health-card.complete {
  border-color: rgba(20, 214, 163, 0.28);
  background: linear-gradient(135deg, rgba(20, 214, 163, 0.1), rgba(17, 21, 29, 0.84));
}

.integrations-health-card.pending {
  border-color: rgba(255, 159, 45, 0.3);
  background: linear-gradient(135deg, rgba(255, 159, 45, 0.1), rgba(17, 21, 29, 0.84));
}

.integrations-score-ring {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--primary-strong) var(--integrations), rgba(115, 123, 143, 0.2) 0);
}

.integrations-health-card.complete .integrations-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--integrations), rgba(115, 123, 143, 0.2) 0);
}

.integrations-health-card.pending .integrations-score-ring {
  background:
    radial-gradient(circle at center, var(--surface-low) 0 57%, transparent 58%),
    conic-gradient(var(--amber) var(--integrations), rgba(115, 123, 143, 0.2) 0);
}

.integrations-score-ring strong {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.integrations-score-ring span {
  position: absolute;
  margin-top: 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.integrations-health-card h3,
.integrations-priority-card h3 {
  margin: 8px 0;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 0.98;
}

.integrations-health-card p,
.integrations-priority-card p,
.integrations-flow-step p,
.integration-map-item p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.integrations-priority-card,
.integrations-panel-block {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.integrations-priority-card .status-token {
  justify-self: start;
}

.integrations-flow,
.integrations-map {
  display: grid;
  gap: 10px;
}

.integrations-flow-step,
.integration-map-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(11, 14, 21, 0.54);
}

.integrations-flow-step > .material-symbols-outlined,
.integration-map-item > .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--surface-high);
}

.integrations-flow-step.complete > .material-symbols-outlined,
.integration-map-item.complete > .material-symbols-outlined {
  color: var(--teal);
}

.integrations-flow-step.pending > .material-symbols-outlined,
.integration-map-item.pending > .material-symbols-outlined {
  color: var(--amber);
}

.integration-map-item.critical.pending {
  border-color: rgba(255, 159, 45, 0.34);
}

.integrations-flow-step div,
.integration-map-item div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.integration-map-item div > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.credentials-grid {
  grid-column: 1 / -1;
}

.field-copy label,
.stack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d1118;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
}

.stack {
  display: grid;
  gap: 13px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.checkline {
  display: flex !important;
  grid-template-columns: auto 1fr;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
}

.checkline input {
  width: 18px;
  min-height: 18px;
}

.button-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 10px;
}

.result-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d1118;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.item-title {
  margin-bottom: 8px;
}

.item p {
  white-space: pre-line;
}

.empty,
.empty-state {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.45);
}

.empty-state .material-symbols-outlined {
  font-size: 34px;
  color: var(--primary);
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 16px;
}

.legal-page h1 {
  font-size: 30px;
}

.legal-page h2 {
  margin-top: 10px;
}

.legal-page p {
  color: var(--muted);
}

.legal-page a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1240px) {
  .overview-grid,
  .general-command,
  .general-command-hero,
  .general-live-cards,
  .general-focus-grid,
  .general-network-grid,
  .general-health-grid,
  .inbox-layout,
  .network-hero,
  .network-command-grid,
  .whatsapp-control-grid,
  .network-workspace,
  .brain-command-grid,
  .brain-behavior-grid,
  .integrations-command-grid,
  .integrations-workspace,
  .expediente-workbench,
  .expediente-command-grid,
  .audience-command-grid,
  .expediente-layout,
  .expediente-toolbar,
  .horizontal-advisor,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-advisor .advisor-signals,
  .horizontal-advisor .advisor-checklist,
  #brain.work-grid > .module-advisor,
  #brain.work-grid > article:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  #brain.work-grid > article:first-child {
    grid-row: auto;
  }

  .inbox-list-panel,
  .thread-panel,
  .profile-panel,
  .expediente-list-panel,
  .expediente-detail-panel {
    min-height: auto;
  }

  .systems-grid,
  .system-readiness-grid,
    .general-plan-grid,
    .general-kpi-row,
    .general-live-cards,
    .general-delivery-grid,
    .general-network-grid,
    .general-journey-steps,
  .brain-playbook-steps,
  .integrations-readiness-steps,
  .ops-summary-grid,
  .ops-checklist,
  .network-test-steps,
  .inbox-summary-grid,
  .thread-signals,
  .network-modules-grid,
  .credentials-grid,
  .activity-grid,
  .expediente-work-queue,
  .audience-operator-guide,
  .audience-sentiment-grid,
  .expediente-workflow,
  .expediente-summary-grid,
  .dossier-strip,
  .timeline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 82px;
  }

  body,
  .shell {
    width: 100%;
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-shell,
  .sidebar {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 16px;
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list {
    display: none;
  }

  .mobile-module-menu {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: rgba(17, 21, 29, 0.72);
  }

  .mobile-module-menu summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 750;
    list-style: none;
    cursor: pointer;
  }

  .mobile-module-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-module-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px;
  }

  .nav-item {
    min-width: 0;
    gap: 9px;
    padding: 10px;
    overflow: hidden;
    font-size: 15px;
    justify-content: flex-start;
  }

  .nav-item .material-symbols-outlined {
    flex: 0 0 auto;
  }

  .mobile-details-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(32, 36, 46, 0.92);
    font-weight: 750;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(143, 184, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(17, 21, 29, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-menu summary {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-rows: 22px 1fr;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 7px;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.05;
    overflow: hidden;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-menu summary.active {
    color: #dbe8ff;
    background: #2d405d;
  }

  .mobile-bottom-menu {
    position: relative;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .mobile-bottom-menu summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-bottom-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(320px, calc(100vw - 20px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(143, 184, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(17, 21, 29, 0.98);
    box-shadow: var(--shadow);
  }

  .mobile-menu-popover .nav-item {
    min-height: 44px;
    justify-content: flex-start;
    background: rgba(32, 36, 46, 0.74);
  }

  .mobile-bottom-nav .material-symbols-outlined {
    font-size: 22px;
  }

  .toast {
    bottom: 92px;
    z-index: 90;
  }

  body.inbox-thread-open #mobileDetailsToggle {
    display: none;
  }

  body.mobile-detail-closed .view-panel.active [data-mobile-detail] {
    display: none !important;
  }

  #inbox:not(.mobile-thread-open) .thread-panel {
    display: none !important;
  }

  #inbox.mobile-thread-open .inbox-overview-panel,
  #inbox.mobile-thread-open .inbox-list-panel,
  #inbox.mobile-thread-open .profile-panel {
    display: none !important;
  }

  #inbox.mobile-thread-open .thread-panel {
    min-height: calc(100dvh - 122px);
    display: grid !important;
    align-content: start;
  }

  .mobile-thread-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(20, 24, 32, 0.98);
  }

  .mobile-thread-bar .secondary-button {
    min-height: 38px;
    padding: 0 12px;
  }

  .mobile-thread-bar > span {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
  }

  #inbox {
    gap: 12px;
  }

  #inbox .inbox-list-panel {
    padding: 14px;
    border-color: rgba(143, 184, 255, 0.2);
    background: rgba(17, 21, 29, 0.72);
  }

  #inbox .inbox-list-panel > .section-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 8px;
  }

  #inbox .inbox-list-panel > .section-title h2 {
    font-size: 22px;
    line-height: 1.06;
  }

  #inbox .panel-count {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #dbe8ff;
    background: rgba(59, 130, 246, 0.22);
    font-size: 18px;
    font-weight: 850;
  }

  #inbox .inbox-filter-stack {
    gap: 9px;
    margin: 4px 0 8px;
  }

  #inbox .filter-label {
    margin: 0 0 5px;
    font-size: 10px;
    letter-spacing: 0;
  }

  #inbox .inbox-filter-bar {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    padding: 0 2px 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #inbox .inbox-filter-bar::-webkit-scrollbar {
    display: none;
  }

  #inbox .filter-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  #inbox .filter-chip.active {
    color: #eef5ff;
    border-color: rgba(143, 184, 255, 0.5);
    background: rgba(59, 130, 246, 0.28);
  }

  #inbox .panel-meta {
    margin: 6px 0 10px;
    font-size: 12px;
  }

  #inbox .conversation-list {
    gap: 8px;
  }

  #inbox .conversation-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
  }

  #inbox .conversation-item.active {
    box-shadow: inset 3px 0 0 var(--primary);
  }

  #inbox .avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
  }

  #inbox .conversation-main {
    gap: 5px;
  }

  #inbox .conversation-head {
    align-items: start;
  }

  #inbox .conversation-head strong {
    line-height: 1.15;
  }

  #inbox .conversation-head small {
    flex: 0 0 auto;
    max-width: 82px;
    color: var(--faint);
    font-size: 11px;
    text-align: right;
  }

  #inbox .conversation-item p {
    font-size: 12px;
    line-height: 1.35;
  }

  #inbox .conversation-labels {
    gap: 5px;
  }

  #inbox .conversation-labels .badge {
    padding: 2px 7px;
    font-size: 10px;
  }

  #inbox .conversation-labels .badge.conversation-kind,
  #inbox .conversation-labels .badge.lead-completion {
    display: none;
  }

  #inbox .conversation-action {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  #inbox.mobile-thread-open .thread-panel {
    padding: 14px;
    border-color: rgba(143, 184, 255, 0.22);
  }

  #inbox .thread-header {
    gap: 8px;
    padding-bottom: 12px;
  }

  #inbox .thread-header h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  #inbox .thread-header p {
    font-size: 12px;
  }

  #inbox .thread-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }

  #inbox .thread-signals span {
    padding: 8px;
    border-radius: 8px;
  }

  #inbox .thread-signals small {
    font-size: 10px;
  }

  #inbox .thread-signals strong {
    font-size: 12px;
  }

  #inbox .next-action {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
  }

  #inbox .thread-body {
    min-height: 0;
    gap: 10px;
    padding-top: 12px;
  }

  #inbox .message-bubble {
    width: min(94%, 620px);
    padding: 11px;
    border-radius: 8px;
  }

  #inbox .message-bubble small {
    margin-bottom: 5px;
    font-size: 10px;
  }

  #inbox .message-bubble p {
    font-size: 13px;
    line-height: 1.42;
  }

  #inbox .thread-context {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
  }

  #inbox .manual-reply-form {
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
  }

  #inbox .manual-reply-head h3 {
    font-size: 18px;
  }

  #inbox .manual-reply-form textarea {
    min-height: 96px;
  }

  .workspace,
  .topbar {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .workspace > *,
  .topbar > *,
  .section-title,
  .section-title h2,
  .section-title p {
    min-width: 0;
    max-width: 100%;
  }

  .panel {
    width: 100%;
    max-width: 100%;
    justify-self: start;
    overflow: hidden;
  }

  .panel p,
  .section-title p,
  .row-title span,
  .expediente-zone-head > span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .general-command,
  .command-center-panel,
  .general-command-hero,
  .command-hero-main,
  .command-hero-side,
  .general-focus-card,
  .general-pulse-card,
  .health-card,
  .action-queue-card,
  .brain-status-card,
  .brain-rule-card,
  .brain-panel-block,
  .ops-monitor,
  .integrations-health-card,
  .integrations-priority-card,
  .integrations-panel-block,
  .network-hero,
  .network-command-grid,
  .whatsapp-control-card,
  .whatsapp-control-grid,
  .network-workspace,
  .network-health-card,
  .network-panel-block,
  .whatsapp-status-card,
  .whatsapp-bot-card,
  .whatsapp-qr-code-card,
  .advisor-panel,
  .horizontal-advisor,
  .module-advisor,
  .advisor-action,
  [data-assistant-mount],
  .internal-assistant-form,
  .activity-header,
  .expediente-zone,
  .expediente-workflow,
  .expediente-workbench,
  .expediente-command-grid,
  .audience-command-grid,
  .expediente-layout,
  .insight-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .advisor-jump,
  .advisor-action .advisor-jump {
    width: 100%;
  }

  .command-center-panel .section-title p,
  .advisor-summary,
  .section-title.compact p:not(.eyebrow) {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .general-plan,
  .general-command-hero,
  .general-live,
  .general-delivery,
  .general-journey,
  .general-network-board {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .general-sentiment-split {
    grid-template-columns: 1fr;
  }

  .general-plan > .row-title,
  .command-hero-side > .row-title,
  .general-live > .row-title,
  .general-delivery > .row-title,
  .general-journey > .row-title,
  .general-network-board > .row-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .command-visual .section-title,
  .command-visual .section-title h2,
  .command-visual .section-title p {
    max-width: calc(100vw - 80px);
  }

  .command-visual .section-title p {
    max-width: calc(100vw - 130px);
  }

  .topbar,
  .row-title,
  .manual-reply-head,
  .manual-reply-actions,
  .expediente-zone-head,
  .activity-header {
    align-items: stretch;
    flex-direction: column;
  }

  #generalJourneySummary {
    max-width: 100%;
    text-align: left;
  }

  #generalNetworkBoardSummary {
    max-width: 100%;
    text-align: left;
  }

  #generalLiveSummary {
    max-width: 100%;
    text-align: left;
  }

  #generalDeliverySummary {
    max-width: 100%;
    text-align: left;
  }

  #generalPlanSummary {
    max-width: 100%;
    text-align: left;
  }

  #generalCommandNetworkSummary {
    max-width: 100%;
    text-align: left;
  }

  #brainPlaybookSummary {
    max-width: 100%;
    text-align: left;
  }

  #integrationsReadinessSummary {
    max-width: 100%;
    text-align: left;
  }

  #opsMonitorSummary {
    max-width: 100%;
    text-align: left;
  }

  #networkTestSummary {
    max-width: 100%;
    text-align: left;
  }

  .topbar > div:first-child {
    min-width: 0;
    max-width: 100%;
  }

  .topbar h1 {
    font-size: 24px;
    line-height: 1.08;
  }

  .top-actions {
    min-width: 0;
    flex-wrap: wrap;
  }

  .manual-reply-head select,
  .manual-token-field,
  #manualReplyButton {
    width: 100%;
  }

  .metric-grid,
  .command-hero-main,
  .general-plan-grid,
  .general-kpi-row,
    .general-live-cards,
    .general-delivery-grid,
    .general-network-grid,
    .general-focus-grid,
  .general-journey-steps,
  .brain-playbook-steps,
  .integrations-readiness-steps,
  .ops-summary-grid,
  .ops-checklist,
  .network-test-steps,
  .general-health-grid,
  .system-readiness-grid,
  .inbox-summary-grid,
  .thread-signals,
  .brain-command-grid,
  .brain-behavior-grid,
  .brain-rule-grid,
  .integrations-command-grid,
  .integrations-summary-grid,
  .integrations-workspace,
  .command-insights-grid,
  .expediente-workbench,
  .expediente-work-queue,
  .expediente-command-grid,
  .audience-command-grid,
  .audience-operator-guide,
  .audience-sentiment-grid,
  .network-kpi-grid,
  .network-command-grid,
  .whatsapp-control-grid,
  .network-signals,
  .systems-grid,
  .network-modules-grid,
  .credentials-grid,
  .activity-grid,
  .expediente-workflow,
  .expediente-summary-grid,
  .dossier-strip,
  .detail-grid,
  .timeline-list,
  .connection-grid,
  .split,
  .button-row,
  .copy-row {
    grid-template-columns: 1fr;
  }

  .general-plan-card,
  .general-live-card,
  .general-delivery-card,
  .journey-step,
  .general-network-card {
    width: 100%;
    max-width: 100%;
  }

  .completion-layout,
  .advisor-signals {
    grid-template-columns: 1fr;
  }

  .horizontal-advisor .advisor-signals,
  .horizontal-advisor .advisor-checklist,
  .horizontal-advisor [data-assistant-mount] {
    grid-column: auto;
    grid-row: auto;
  }

  .horizontal-advisor .advisor-signals {
    grid-template-columns: 1fr;
  }

  .horizontal-advisor .advisor-signal-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3px;
  }

  .horizontal-advisor .advisor-signals strong {
    text-align: left;
  }

  .health-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .brain-status-card,
  .brain-channel-row,
  .brain-risk-item,
  .ops-summary-card,
  .integrations-health-card,
  .integrations-flow-step,
  .integration-map-item,
  .call-action-card,
  .thread-call-action,
  .calls-desk-header,
  .calls-operator-main,
  .calls-assistant-box,
  .network-health-card,
  .whatsapp-status-card,
  .network-flow-step {
    grid-template-columns: 1fr;
  }

  .calls-field-grid,
  .call-fact-row,
  .calls-desk-stats,
  .network-workspace.calls-mode {
    grid-template-columns: 1fr;
  }

  .call-list-head,
  .call-phone-row {
    align-items: stretch;
    flex-direction: column;
  }

  .call-action-buttons,
  .call-action-buttons .primary-button,
  .call-action-buttons .secondary-button,
  .detail-phone-actions,
  .detail-phone-actions .primary-button,
  .detail-phone-actions .secondary-button {
    width: 100%;
  }

  .whatsapp-control-actions,
  .whatsapp-control-actions button {
    width: 100%;
  }

  .whatsapp-qr-ascii {
    max-height: 360px;
    font-size: 8px;
  }

  .health-score-ring {
    width: 118px;
  }

  .command-score-ring {
    width: 104px;
  }

  .command-hero-copy h3 {
    font-size: 28px;
  }

  .command-hero-copy .focus-head {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .command-hero-main > .primary-button {
    grid-column: 1;
    width: 100%;
  }

  .command-visual {
    min-height: 620px;
  }

  .signal-map {
    min-height: 470px;
  }

  .signal-map::before,
  .signal-map::after {
    display: none;
  }

  .signal-node,
  .signal-core {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-bottom: 12px;
  }
}

@media (max-width: 460px) {
  .panel {
    padding: 16px;
  }

  .general-plan,
  .general-command-hero,
  .command-hero-main,
  .command-hero-side,
  .general-live,
  .general-delivery,
  .general-journey,
  .general-network-board {
    padding: 12px;
  }

  .general-plan-grid,
  .command-network-strip,
  .general-live-cards,
  .general-delivery-grid,
  .general-network-grid,
  .general-journey-steps,
  .general-focus-grid,
  .general-health-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .general-plan-card {
    grid-template-columns: 24px 34px minmax(0, 1fr);
    padding: 10px;
  }

  .command-hero-main {
    gap: 12px;
    overflow: hidden;
  }

  .command-score-ring {
    width: 92px;
  }

  .command-hero-copy h3 {
    font-size: 24px;
    line-height: 1.04;
  }

  .command-network-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .command-network-item b {
    justify-self: start;
    grid-column: 2;
  }

  .general-live-card,
  .general-delivery-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 10px;
  }

  .general-delivery-card strong {
    font-size: 26px;
  }

}
