@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #111b21;
  --ink-soft: #1f2c33;
  --green: #25d366;
  --green-dark: #128c57;
  --green-soft: #dcf8e7;
  --canvas: #f5f7f6;
  --panel: #ffffff;
  --line: #e4e9e7;
  --text: #17211d;
  --muted: #66736d;
  --danger: #d94747;
  --warning: #b7791f;
  --shadow: 0 16px 44px rgba(17, 27, 33, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  background: var(--ink);
  color: #dce5e1;
  display: flex;
  flex: 0 0 262px;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 16px 18px;
  position: sticky;
  top: 0;
}
.brand, .login-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}
.brand { margin: 0 8px 34px; }
.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .2);
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 22px;
  height: 42px;
  justify-content: center;
}
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong, .login-brand strong {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: -.2px;
}
.brand-copy small, .login-brand small {
  color: #93a39c;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.nav { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.nav-label {
  color: #6f8078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
  margin: 0 12px 10px;
  text-transform: uppercase;
}
.nav a {
  align-items: center;
  border-radius: 10px;
  color: #aebbb5;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 12px;
  padding: 11px 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav a:hover { background: rgba(255,255,255,.055); color: #fff; transform: translateX(2px); }
.nav a.active { background: rgba(37,211,102,.13); color: var(--green); }
.nav-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  display: inline-flex;
  font-size: 12px;
  height: 25px;
  justify-content: center;
  opacity: .85;
  width: 25px;
}
.creator {
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  margin: 16px 8px 0;
  padding-top: 17px;
}
.creator span { color: #718179; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.creator strong { color: #dce5e1; font-size: 12px; margin-top: 3px; }

.main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.topbar {
  align-items: center;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-kicker { color: var(--muted); display: block; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.topbar h1 { font-family: "Manrope", sans-serif; font-size: 20px; letter-spacing: -.5px; margin: 3px 0 0; }
.user-menu { align-items: center; display: flex; gap: 10px; }
.avatar {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.username { font-size: 12px; font-weight: 600; }
.logout { border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-left: 5px; padding: 5px 0 5px 15px; }
.logout:hover { color: var(--danger); }
.content { flex: 1; margin: 0 auto; max-width: 1440px; padding: 30px 32px 44px; width: 100%; }

.eyebrow, .card-kicker {
  color: var(--green-dark);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.welcome-card {
  align-items: center;
  background: linear-gradient(115deg, var(--ink) 0%, #1b3930 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 174px;
  overflow: hidden;
  padding: 30px 34px;
  position: relative;
}
.welcome-card::after {
  background: radial-gradient(circle, rgba(37,211,102,.18) 0%, transparent 66%);
  content: "";
  height: 300px;
  position: absolute;
  right: -70px;
  top: -110px;
  width: 300px;
}
.welcome-card .eyebrow { color: var(--green); }
.welcome-card h2, .data-header h2 { font-family: "Manrope", sans-serif; font-size: 28px; letter-spacing: -.8px; margin: 8px 0 5px; }
.welcome-card p, .data-header p { color: #aebbb5; margin: 0; }
.wa-orbit {
  align-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  display: flex;
  height: 112px;
  justify-content: center;
  margin-right: 28px;
  position: relative;
  width: 112px;
  z-index: 1;
}
.wa-orbit::before { border: 1px solid rgba(37,211,102,.22); border-radius: 50%; content: ""; inset: 13px; position: absolute; }
.wa-orbit span { align-items: center; background: var(--green); border-radius: 50%; color: var(--ink); display: flex; font-size: 27px; height: 54px; justify-content: center; width: 54px; }

.api-warn {
  align-items: flex-start;
  background: #fff8e7;
  border: 1px solid #f1dfaf;
  border-radius: 12px;
  color: var(--warning);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
  padding: 12px 16px;
}
.api-warn span { color: #866b30; font-size: 12px; }

/* Controles del asistente */
.control-center { margin-bottom: 20px; padding: 22px; }
.control-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
}
.control-heading h3 { margin-top: 4px; }
.control-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.sync-state {
  align-items: center;
  border-radius: 100px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  gap: 7px;
  padding: 7px 10px;
}
.sync-state > span { border-radius: 50%; height: 7px; width: 7px; }
.sync-on { background: var(--green-soft); color: var(--green-dark); }
.sync-on > span { background: var(--green); box-shadow: 0 0 0 4px rgba(37,211,102,.12); }
.sync-off { background: #fff4d8; color: var(--warning); }
.sync-off > span { background: #e4a724; }
.control-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .7fr); padding-top: 20px; }
.control-label { display: flex; flex-direction: column; margin-bottom: 12px; }
.control-label strong { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 13px; }
.control-label span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.mode-selector { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-option {
  align-items: flex-start;
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  min-height: 104px;
  padding: 13px;
  text-align: left;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.mode-option:hover:not(:disabled) { border-color: #b8c7c0; transform: translateY(-1px); }
.mode-option.active { background: #f0fbf4; border-color: var(--green); box-shadow: 0 0 0 2px rgba(37,211,102,.09); }
.mode-option.pending { opacity: .65; }
.mode-option:disabled { cursor: wait; }
.mode-icon {
  align-items: center;
  background: #edf1ef;
  border-radius: 9px;
  color: #53615a;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.mode-option.active .mode-icon { background: var(--green); color: var(--ink); }
.mode-option > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.mode-option strong { color: var(--ink); font-size: 11px; line-height: 1.25; }
.mode-option small { color: var(--muted); font-size: 9.5px; line-height: 1.35; margin-top: 5px; }
.mode-check {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 17px;
  justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .18s, transform .18s;
  width: 17px;
}
.mode-option.active .mode-check { opacity: 1; transform: scale(1); }
.mention-control {
  align-items: center;
  background: linear-gradient(145deg, var(--ink), #20362e);
  border-radius: 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 128px;
  padding: 18px;
}
.mention-copy { align-items: flex-start; display: flex; gap: 12px; }
.mention-symbol {
  align-items: center;
  background: rgba(37,211,102,.16);
  border-radius: 10px;
  color: var(--green);
  display: flex;
  flex: 0 0 36px;
  font-size: 17px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
}
.mention-copy > div { max-width: 190px; }
.mention-copy strong { font-family: "Manrope", sans-serif; font-size: 12px; }
.mention-copy p { color: #91a099; font-size: 10px; line-height: 1.45; margin: 5px 0 0; }
.switch { cursor: pointer; display: inline-flex; flex: 0 0 auto; margin-left: 12px; }
.switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.switch-track { background: #46554e; border-radius: 100px; display: block; height: 26px; padding: 3px; transition: background .18s; width: 46px; }
.switch-thumb { background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.25); display: block; height: 20px; transition: transform .18s; width: 20px; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(37,211,102,.28); outline-offset: 2px; }
.switch input:disabled + .switch-track { cursor: wait; opacity: .55; }
.control-toast {
  background: var(--ink);
  border-left: 3px solid var(--green);
  border-radius: 9px;
  bottom: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  max-width: 360px;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
  z-index: 50;
}
.control-toast.error { border-left-color: var(--danger); }
.control-toast.visible { opacity: 1; transform: translateY(0); }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.dashboard-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 22px rgba(17,27,33,.035); }
.card h3 { font-family: "Manrope", sans-serif; font-size: 17px; letter-spacing: -.3px; margin: 4px 0 0; }
.status-card, .knowledge-card { min-height: 220px; padding: 22px; }
.card-head, .section-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.status-pill { align-items: center; border-radius: 100px; display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; padding: 7px 10px; }
.status-pill .dot { border-radius: 50%; height: 7px; width: 7px; }
.status-on { background: var(--green-soft); color: var(--green-dark); }
.status-on .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(37,211,102,.12); }
.status-off { background: #fdeaea; color: var(--danger); }
.status-off .dot { background: var(--danger); }
.status-qr { background: #fff4d8; color: var(--warning); }
.status-qr .dot { background: #e4a724; }
.status-visual { align-items: center; display: flex; gap: 18px; margin-top: 35px; }
.status-visual > div { display: flex; flex-direction: column; }
.status-visual strong { font-family: "Manrope", sans-serif; font-size: 16px; }
.status-visual small { color: var(--muted); margin-top: 3px; }
.pulse-ring {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  display: flex;
  height: 70px;
  justify-content: center;
  position: relative;
  width: 70px;
}
.pulse-ring::after { border: 1px solid rgba(37,211,102,.35); border-radius: 50%; content: ""; inset: -7px; position: absolute; }
.pulse-ring span { align-items: center; background: var(--green); border-radius: 50%; color: var(--ink); display: flex; font-size: 11px; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.knowledge-card { background: linear-gradient(145deg, #fff 35%, #f1fbf5); }
.knowledge-count { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 52px; font-weight: 800; letter-spacing: -3px; margin-top: 24px; }
.knowledge-card p { color: var(--muted); line-height: 1.5; margin: -2px 0 0; max-width: 180px; }
.empty-inline { color: var(--muted); margin-top: 35px; }

/* Instancia de WhatsApp */
.instance-card { min-height: 220px; padding: 22px; }
.instance-badge {
  align-items: center;
  border-radius: 100px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  padding: 7px 9px;
}
.instance-badge > span { border-radius: 50%; height: 6px; width: 6px; }
.instance-badge.connected { background: var(--green-soft); color: var(--green-dark); }
.instance-badge.connected > span { background: var(--green); }
.instance-badge.disconnected { background: #fdeaea; color: var(--danger); }
.instance-badge.disconnected > span { background: var(--danger); }
.instance-badge.unavailable { background: #eef1ef; color: var(--muted); }
.instance-badge.unavailable > span { background: #95a19b; }
.instance-profile { align-items: center; display: flex; gap: 12px; margin-top: 25px; }
.instance-avatar {
  align-items: center;
  background: linear-gradient(145deg, var(--green), #55e58b);
  border: 4px solid var(--green-soft);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  flex: 0 0 52px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
}
.instance-profile > div { display: flex; flex-direction: column; min-width: 0; }
.instance-profile strong { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.instance-profile span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.instance-description { color: #526059; font-size: 11px; font-style: italic; line-height: 1.45; margin: 15px 0 0; }
.instance-jid { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; margin-top: 14px; padding-top: 10px; }
.instance-jid span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.instance-jid code { color: #53615a; font-size: 9px; max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.instance-empty { align-items: center; display: flex; gap: 13px; margin-top: 35px; }
.instance-empty-icon { align-items: center; background: #edf1ef; border-radius: 50%; color: #829089; display: flex; flex: 0 0 48px; font-size: 10px; font-weight: 800; height: 48px; justify-content: center; }
.instance-empty > div { display: flex; flex-direction: column; }
.instance-empty strong { color: var(--ink); font-size: 12px; }
.instance-empty p { color: var(--muted); font-size: 10px; line-height: 1.4; margin: 4px 0 0; }
.metrics-card { margin-top: 20px; padding: 22px; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); padding-top: 18px; }
.stat { border-right: 1px solid var(--line); padding: 5px 18px 5px 2px; }
.stat:last-child { border-right: 0; }
.stat-value { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.stat-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; margin-top: 2px; text-transform: uppercase; }

.data-header { margin-bottom: 20px; }
.data-header h2 { color: var(--ink); margin-bottom: 3px; }
.data-header p { color: var(--muted); }
.data-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.grid { border-collapse: collapse; font-size: 12px; width: 100%; }
table.grid th { background: #f4f7f5; color: #637069; font-size: 10px; font-weight: 800; letter-spacing: .55px; padding: 13px 16px; text-align: left; text-transform: uppercase; }
table.grid td { border-top: 1px solid var(--line); color: #34413b; max-width: 380px; padding: 13px 16px; vertical-align: top; word-break: break-word; }
table.grid tbody tr:hover td { background: #fbfdfc; }
.detail-grid th { width: 220px; }
.table-summary { color: var(--muted); font-size: 11px; margin: 0; padding: 13px 16px; }
.empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; min-height: 280px; justify-content: center; padding: 30px; text-align: center; }
.empty-state > span { align-items: center; background: var(--green-soft); border-radius: 50%; color: var(--green-dark); display: flex; font-size: 23px; height: 56px; justify-content: center; margin-bottom: 14px; width: 56px; }
.empty-state strong { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 16px; }
.empty-state p { margin: 5px 0 0; }
.value-list { list-style: none; margin: 0; padding: 10px 20px; }
.value-list li { border-bottom: 1px solid var(--line); padding: 11px 0; }
.single-value { font-family: ui-monospace, monospace; padding: 22px; }

.login-page { background: var(--ink); }
.login-shell { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 100vh; }
.login-intro {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px 56px;
  position: relative;
}
.login-intro::before {
  background-image: radial-gradient(rgba(37,211,102,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom right, transparent 15%, #000 100%);
  position: absolute;
}
.login-intro::after {
  border: 1px solid rgba(37,211,102,.18);
  border-radius: 50%;
  bottom: -250px;
  content: "";
  height: 550px;
  position: absolute;
  right: -190px;
  width: 550px;
}
.login-brand, .intro-copy, .intro-signature { position: relative; z-index: 1; }
.login-brand > span:last-child { display: flex; flex-direction: column; }
.intro-copy { max-width: 620px; }
.intro-copy .eyebrow { color: var(--green); }
.intro-copy h1 { font-family: "Manrope", sans-serif; font-size: clamp(35px, 4vw, 58px); letter-spacing: -2.2px; line-height: 1.08; margin: 17px 0; }
.intro-copy p { color: #a9b7b1; font-size: 16px; line-height: 1.65; max-width: 490px; }
.intro-signature { color: #798a82; font-size: 11px; letter-spacing: .5px; }
.intro-signature strong { color: #d8e2dd; }
.login-panel { align-items: center; background: #f8faf9; display: flex; justify-content: center; padding: 40px; }
.login-form-wrap { max-width: 390px; width: 100%; }
.login-form-wrap h2 { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 30px; letter-spacing: -1px; margin: 8px 0 5px; }
.form-help { color: var(--muted); margin: 0 0 28px; }
.login-form-wrap label { color: #35423c; display: block; font-size: 11px; font-weight: 700; margin: 16px 0 6px; }
.login-form-wrap input { background: #fff; border: 1px solid #dce3e0; border-radius: 10px; color: var(--ink); outline: none; padding: 12px 13px; transition: border .18s, box-shadow .18s; width: 100%; }
.login-form-wrap input::placeholder { color: #a8b1ad; }
.login-form-wrap input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(37,211,102,.12); }
.btn-primary { align-items: center; background: var(--ink); border: 0; border-radius: 10px; color: #fff; cursor: pointer; display: flex; font-weight: 700; justify-content: space-between; margin-top: 22px; padding: 13px 16px; transition: background .18s, transform .18s; width: 100%; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary span { color: var(--green); font-size: 18px; }
.btn-primary:hover span { color: #fff; }
.alert { background: #fff0f0; border: 1px solid #f3c8c8; border-radius: 9px; color: var(--danger); font-size: 12px; margin-top: 14px; padding: 10px 12px; }
.connection-note { align-items: center; color: #829089; display: flex; font-size: 10px; gap: 7px; justify-content: center; margin-top: 20px; }
.connection-dot { background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(37,211,102,.12); height: 6px; width: 6px; }

@media (max-width: 900px) {
  .sidebar { flex-basis: 78px; padding-inline: 11px; }
  .brand { justify-content: center; margin-inline: 0; }
  .brand-copy { display: none; }
  .nav-label, .nav a { font-size: 0; }
  .nav a { justify-content: center; padding: 10px; }
  .nav-icon { font-size: 12px; }
  .creator { align-items: center; margin-inline: 0; }
  .creator span { display: none; }
  .creator strong { font-size: 9px; }
  .control-grid { grid-template-columns: 1fr; }
  .mention-control { min-height: 110px; }
  .mention-copy > div { max-width: none; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: 340px; padding: 30px 34px; }
  .intro-copy h1 { font-size: 38px; }
  .login-panel { min-height: 560px; }
}

@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { bottom: 0; flex-direction: row; height: 64px; min-height: 0; padding: 8px; position: fixed; top: auto; width: 100%; z-index: 20; }
  .brand, .creator, .nav-label { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav a { display: flex; flex: 1; padding: 6px; }
  .nav a:nth-of-type(n+5) { display: none; }
  .nav-icon { border: 0; font-size: 17px; }
  .main { padding-bottom: 64px; }
  .topbar { height: 68px; padding: 0 18px; }
  .topbar-kicker, .username { display: none; }
  .topbar h1 { margin: 0; }
  .logout { padding-left: 10px; }
  .content { padding: 20px 16px 30px; }
  .welcome-card { min-height: 150px; padding: 24px; }
  .welcome-card h2, .data-header h2 { font-size: 23px; }
  .welcome-card p { max-width: 260px; }
  .wa-orbit { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .control-center { padding: 18px; }
  .control-heading { gap: 12px; }
  .control-heading p { display: none; }
  .sync-state { font-size: 0; padding: 8px; }
  .mode-selector { grid-template-columns: 1fr; }
  .mode-option { min-height: 84px; }
  .mention-control { align-items: flex-end; }
  .control-toast { bottom: 78px; left: 16px; max-width: none; right: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(even) { border-right: 0; }
  .login-intro { min-height: 300px; padding: 25px 24px; }
  .intro-copy h1 { font-size: 31px; letter-spacing: -1.4px; }
  .intro-copy p { font-size: 13px; }
  .intro-signature { display: none; }
  .login-panel { min-height: calc(100vh - 300px); padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
