:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef2ff;
  --green: #16a34a;
  --green-soft: #e8f8ee;
  --green-bubble: #d9fdd3;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --blue: #0284c7;
  --blue-soft: #e0f2fe;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
code {
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "Cascadia Code", monospace;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
p { margin: 0; line-height: 1.5; }
a { color: var(--primary); }
::selection { background: var(--primary-soft); }

/* ------------------------------- inputs -------------------------------- */
input, textarea, select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
textarea { resize: none; }
select { cursor: pointer; }
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field.compact { margin-bottom: 8px; }
.inline-form { display: flex; gap: 6px; margin-top: 8px; }
.inline-form input { min-width: 0; }
.inline-form .btn { flex: none; }

/* ------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #6058ff, var(--primary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.success { background: var(--green-soft); color: var(--green); border-color: #bbf7d0; }
.btn.success:hover { background: #dcfce7; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--red); border-color: #fecaca; background: var(--red-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.tiny { width: 26px; height: 26px; font-size: 12px; }
.bell-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  font-style: normal;
}

/* -------------------------------- login -------------------------------- */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
}
.login-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 700px at 20% 15%, #6d5cff 0%, transparent 55%),
              radial-gradient(700px 700px at 85% 90%, #22c55e 0%, transparent 55%),
              linear-gradient(135deg, #241b6b, #0f172a 70%);
  display: grid;
  place-items: center;
}
.login-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.orb-1 { width: 320px; height: 320px; background: #8b5cf6; top: 12%; left: 12%; }
.orb-2 { width: 240px; height: 240px; background: #34d399; bottom: 14%; right: 16%; }
.login-badge {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  letter-spacing: -.04em;
}
.login-card {
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 40px 44px;
}
.login-card h1 { margin: 26px 0 8px; font-size: 26px; }
.login-card > p.muted { margin-bottom: 26px; }
.login-card .hint { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 4px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
}
.brand.big .brand-mark { width: 46px; height: 46px; font-size: 22px; }
.brand.big strong { font-size: 18px; }

/* -------------------------------- layout -------------------------------- */
.app {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-strong); }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
}
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); margin-left: auto; }
.nav-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.conn-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.conn-summary strong { display: block; font-size: 12px; }
.conn-summary small { color: var(--muted); font-size: 10.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); flex: none; box-shadow: 0 0 0 4px rgba(148,163,184,.15); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 20;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 19px; margin-bottom: 2px; }
.topbar-title p { font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.chip.ok { background: var(--green-soft); color: var(--green); border-color: #bbf7d0; }
.chip.warn { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.content { flex: 1; min-height: 0; overflow: auto; padding: 22px 24px 30px; }
.content:has(.inbox) { overflow: hidden; padding: 0; }
.view { height: 100%; }

/* -------------------------------- inbox -------------------------------- */
.inbox {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr) 286px;
  height: 100%;
  min-height: 0;
  background: var(--surface);
  position: relative;
}
.inbox-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
}
.inbox-tools { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--border); }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
}
.search-box span { font-size: 12px; opacity: .6; }
.search-box input { border: 0; background: transparent; padding: 9px 0; box-shadow: none; }
.search-box input:focus { box-shadow: none; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.seg {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 7px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.seg.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-count {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  padding: 1px 5px;
}
.inbox-tools select { padding: 8px 10px; font-size: 12px; }

.chat-list { flex: 1; overflow-y: auto; padding: 6px; }
.chat-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background .12s;
}
.chat-item:hover { background: var(--surface-2); }
.chat-item.active { background: var(--primary-soft); }
.chat-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.chat-item.is-handoff { background: #fff8ed; }
.chat-item.is-handoff:hover { background: #fff3dd; }
.chat-item.is-handoff.active { background: #ffefd6; }
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.avatar.green { background: linear-gradient(145deg, #bbf7d0, #86efac); color: #166534; }
.avatar.xl { width: 66px; height: 66px; font-size: 22px; }
.chat-body { min-width: 0; flex: 1; }
.chat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chat-top strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top time { font-size: 10px; color: var(--muted-2); flex: none; }
.chat-preview { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-sub { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: var(--muted-2); }
.chat-sub .tag-mini { background: var(--surface-3); border-radius: 999px; padding: 1px 6px; }
.chat-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.unread { background: var(--primary); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 1px 6px; min-width: 18px; text-align: center; }
.handoff-flag { font-size: 10px; color: var(--amber); font-weight: 700; }
.paused-flag { font-size: 10px; color: var(--muted); }

.conversation { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; background: var(--surface); }
.empty-state { margin: auto; text-align: center; padding: 30px; max-width: 340px; }
.empty-icon { font-size: 40px; margin-bottom: 10px; }
.empty-state h3 { margin-bottom: 6px; }
.conversation-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.conv-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  min-height: 66px;
}
.conv-id { min-width: 0; flex: 1; }
.conv-id strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-id small { color: var(--muted); font-size: 11.5px; }
.conv-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn.back { display: none; font-size: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag {
  font-size: 9.5px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 650;
  letter-spacing: .01em;
}
.tag.warn { background: var(--amber-soft); color: var(--amber); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.danger { background: var(--red-soft); color: var(--red); }

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #f3f6f4;
  background-image: radial-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bubble {
  max-width: min(72%, 560px);
  padding: 8px 11px 6px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid #e6ebe7;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.45;
  width: fit-content;
  align-self: flex-start;
  animation: bubble-in .16s ease-out;
}
.bubble-text { display: block; white-space: pre-wrap; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bubble.out {
  align-self: flex-end;
  background: var(--green-bubble);
  border-color: #c5f2bd;
  border-bottom-right-radius: 3px;
}
.bubble.in { border-bottom-left-radius: 3px; }
.bubble time { display: block; font-size: 9.5px; color: #6b7a86; margin-top: 3px; text-align: right; }
.bubble .label {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 700;
}
.bubble.sys {
  align-self: center;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11.5px;
  max-width: 80%;
  text-align: center;
  border-radius: 999px;
  padding: 5px 12px;
}
.bubble.sys time { display: none; }
.bubble.image-bubble { padding: 5px; }
.bubble.image-bubble img { max-width: 240px; border-radius: 7px; display: block; }

.quick-replies {
  display: flex;
  gap: 6px;
  padding: 8px 16px 0;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.quick-replies:empty { display: none; }
.quick {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.quick:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.composer { display: flex; gap: 8px; padding: 10px 14px 12px; background: var(--surface); border-top: 1px solid var(--border); }
.composer textarea { min-height: 42px; max-height: 150px; padding: 11px 13px; border-radius: 12px; }
.composer .send { width: 44px; height: 42px; padding: 0; border-radius: 50%; font-size: 15px; }

/* ---------------------------- panel contacto ---------------------------- */
.contact-panel {
  border-left: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  min-height: 0;
  padding: 20px 18px;
  position: relative;
}
.contact-close { position: absolute; top: 8px; right: 8px; }
.contact-empty { color: var(--muted-2); font-size: 12.5px; text-align: center; margin-top: 40px; }
.contact-content { display: flex; flex-direction: column; gap: 16px; }
.contact-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.contact-hero strong { font-size: 15px; margin-top: 4px; }
.contact-hero small { color: var(--muted); font-size: 12px; }
.contact-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.panel-block { border-top: 1px solid var(--border); padding-top: 14px; }
.panel-block h4 { margin-bottom: 8px; }
.panel-block .stack { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.handoff-card {
  background: #fff8ed;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px;
}
.handoff-title { font-weight: 700; color: #92400e; font-size: 12.5px; margin-bottom: 4px; }
.handoff-card p { font-size: 11.5px; margin-bottom: 8px; }

/* -------------------------------- bell ---------------------------------- */
.bell-panel {
  position: absolute;
  top: 60px;
  right: 24px;
  width: 340px;
  max-height: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 30;
  animation: rise .16s ease-out;
}
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.bell-head strong { font-size: 13px; }
.bell-list { overflow-y: auto; }
.bell-item { display: flex; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.bell-item:hover { background: var(--surface-2); }
.bell-item-body { min-width: 0; flex: 1; }
.bell-item-body strong { font-size: 12.5px; display: block; }
.bell-item-body small { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.bell-item-body time { color: var(--muted-2); font-size: 10px; }
.bell-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 12px; }

/* ------------------------------ conexiones ------------------------------ */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stat b { font-size: 23px; letter-spacing: -.03em; }
.stat small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.section-head p { font-size: 12px; margin-top: 3px; }
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.account {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}
.account:hover { box-shadow: var(--shadow); }
.account-head { display: flex; align-items: center; gap: 11px; }
.account-name { flex: 1; min-width: 0; }
.account-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.account-name small { color: var(--muted); font-size: 11.5px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.connected { color: var(--green); background: var(--green-soft); border-color: #bbf7d0; }
.status.qr, .status.connecting { color: var(--amber); background: var(--amber-soft); border-color: #fde68a; }
.status.logged_out, .status.error { color: var(--red); background: var(--red-soft); border-color: #fecaca; }
.qr-box { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 10px; }
.qr-box img { width: 118px; height: 118px; border-radius: 8px; background: #fff; display: block; }
.qr-note { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.qr-note strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.account-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 11px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch i { width: 34px; height: 19px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .18s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(15px); }
.account-meta select { width: auto; max-width: 160px; padding: 6px 8px; font-size: 11.5px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 16px; }
.error { color: var(--red); font-size: 12px; margin-top: 6px; }
.warn-line { color: var(--amber); font-size: 11.5px; margin: 0; }

/* -------------------------------- flujos -------------------------------- */
.flows-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; margin: -22px -24px -30px; }
.flows-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.flows-toolbar select { width: auto; min-width: 190px; padding: 7px 10px; font-size: 12.5px; }
.flows-toolbar .spacer { flex: 1; }
.pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pill.custom { background: var(--amber-soft); border-color: #fde68a; color: var(--amber); }
.pill.ok { background: var(--green-soft); border-color: #bbf7d0; color: var(--green); }
.flows-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.flow-canvas {
  position: relative;
  overflow: hidden;
  background-color: #f7f9fd;
  background-image: radial-gradient(rgba(79, 70, 229, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  cursor: grab;
  min-height: 0;
}
.flow-canvas.dragging { cursor: grabbing; }
.flow-world { position: absolute; top: 0; left: 0; width: 4200px; height: 3000px; transform-origin: 0 0; }
.flow-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-edges path { fill: none; stroke: #b7c2d8; stroke-width: 2; }
.flow-edges path.handoff { stroke: #f59e0b; stroke-dasharray: 5 4; }
.flow-nodes { position: absolute; inset: 0; }
.flow-node {
  position: absolute;
  width: 226px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  user-select: none;
  transition: border-color .12s, box-shadow .12s;
}
.flow-node:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.flow-node.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); }
.flow-node.start { border-color: var(--green); }
.flow-node.handoff { background: #fffdf5; }
.flow-node:active { cursor: grabbing; }
.node-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.node-type { font-size: 12px; }
.node-id { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-start-flag { margin-left: auto; font-size: 9px; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 1px 5px; font-weight: 700; }
.node-text { font-size: 11.5px; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.node-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.node-chip { font-size: 9px; background: var(--surface-3); color: var(--muted); border-radius: 5px; padding: 1px 5px; }
.node-chip.handoff { background: var(--amber-soft); color: var(--amber); }
.flow-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.flow-zoom button { border: 0; background: transparent; width: 34px; height: 32px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); }
.flow-zoom button:hover { background: var(--surface-2); color: var(--text); }
.flow-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10.5px;
  color: var(--muted);
  z-index: 2;
}
.flow-inspector {
  border-left: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}
.inspector-empty { color: var(--muted-2); font-size: 12.5px; text-align: center; margin-top: 30px; }
.inspector-section { margin-bottom: 14px; }
.inspector-section > label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.inspector-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.inspector-title strong { font-size: 14px; flex: 1; }
.option-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 78px;
  gap: 5px;
  margin-bottom: 5px;
}
.option-row input { padding: 6px 7px; font-size: 11.5px; }
.option-row .key-input { text-align: center; }
.helper { font-size: 10.5px; color: var(--muted-2); line-height: 1.4; margin-top: 4px; }
.inspector-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }

/* -------------------------------- ajustes ------------------------------- */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 4px; }
.kv { display: grid; gap: 8px; margin-top: 12px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.kv-row span { color: var(--muted); }
.kv-row b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.badge-ok { color: var(--green); }
.badge-no { color: var(--red); }
.logs-card { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.logs { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; max-height: 380px; overflow: auto; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; line-height: 1.65; }
.log-line { display: flex; gap: 9px; }
.log-line time { color: var(--muted-2); flex: none; }
.log-line .lvl { flex: none; width: 40px; text-transform: uppercase; font-size: 9.5px; font-weight: 700; }
.log-line .lvl.info { color: var(--blue); }
.log-line .lvl.warn { color: var(--amber); }
.log-line .lvl.error { color: var(--red); }
.log-line .lvl.debug { color: var(--muted); }

/* --------------------------------- simulador ------------------------------ */
.sim { display: flex; flex-direction: column; gap: 10px; }
.sim-head { display: flex; gap: 6px; flex-wrap: wrap; }
.sim-head input { flex: 1 1 150px; }
.sim-head select { flex: 1 1 150px; }
.sim-log {
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f3f6f4;
  background-image: radial-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 18px 18px;
}
.sim-log .bubble { max-width: 85%; }
.sim-empty { margin: auto; color: var(--muted-2); font-size: 12px; text-align: center; }
.sim-input { display: flex; gap: 6px; }
.sim-input input { flex: 1; }

/* -------------------------------- modal --------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 80;
  animation: fade .14s ease-out;
  backdrop-filter: blur(2px);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise .18s ease-out;
}
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { flex: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); }
.modal-error { color: var(--red); font-size: 12px; margin-top: 8px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.preset {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.preset:hover { border-color: var(--primary); background: var(--primary-soft); }
.preset strong { display: block; font-size: 12.5px; }
.preset small { color: var(--muted); font-size: 10.5px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: -6px -20px 16px; padding: 0 20px; }
.tab { border: 0; background: transparent; padding: 10px 12px; font: inherit; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.pay-method { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.pay-method-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pay-method-head input { font-weight: 600; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-grid .full { grid-column: 1 / -1; }
.pay-method .btn { margin-top: 8px; }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.switch-line:last-child { border-bottom: 0; }

/* -------------------------------- toast --------------------------------- */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  font-size: 13px;
  animation: rise .18s ease-out;
}
.toast.err { background: #7f1d1d; }
.toast.ok { background: #14532d; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 1280px) {
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .contact-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    z-index: 12;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform .2s ease;
  }
  .inbox.contact-open .contact-panel { transform: none; }
  .flows-body { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .brand-text, .nav-label, .sidebar-foot .conn-summary div, .nav-badge { display: none; }
  .sidebar { padding: 16px 10px; align-items: center; }
  .nav-item { justify-content: center; padding: 11px; }
  .nav { width: 100%; }
  .sidebar-foot { width: 100%; }
  .nav-dot { position: absolute; top: 8px; right: 8px; margin: 0; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 24px; }
  .flows-shell { margin: -18px -16px -24px; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .app { grid-template-columns: 1fr; height: auto; min-height: 100vh; padding-bottom: 62px; }
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    flex-direction: row;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    gap: 0;
  }
  .sidebar .brand, .sidebar-foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .nav-item { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 10px; flex: 1; }
  .nav-icon { font-size: 18px; }
  .nav-label { display: block; font-size: 9.5px; }
  .workspace { min-height: calc(100vh - 62px); }
  .topbar { position: sticky; top: 0; padding: 10px 14px; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-title p, .chip { display: none; }
  .content { padding: 12px; }
  .content:has(.inbox) { padding: 0; }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 62px); }
  .inbox .inbox-list { display: flex; }
  .inbox .conversation { display: none; }
  .inbox.chat-open .inbox-list { display: none; }
  .inbox.chat-open .conversation { display: flex; }
  .icon-btn.back { display: inline-grid; }
  .conv-actions .btn.ghost { display: none; }
  .messages { padding: 16px 12px; }
  .bubble { max-width: 84%; }
  .contact-panel { width: min(320px, 88vw); }
  .flows-shell { margin: -12px; height: calc(100vh - 120px); }
  .flows-body { grid-template-columns: 1fr; }
  .flow-inspector { position: absolute; left: 0; right: 0; bottom: 0; max-height: 48%; border-left: 0; border-top: 1px solid var(--border); transform: translateY(102%); transition: transform .2s ease; z-index: 5; }
  .flow-inspector.open { transform: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-card { padding: 28px 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: stretch; }
  .accounts-grid { grid-template-columns: 1fr; }
  .bell-panel { right: 12px; width: calc(100vw - 24px); }
  .toast { right: 12px; left: 12px; bottom: 74px; max-width: none; }
}
@media (max-width: 420px) {
  .pay-grid { grid-template-columns: 1fr; }
  .modal { max-height: 92vh; }
  .topbar-actions .icon-btn { width: 34px; }
}

/* ============================ v3 · equipo y cola ========================= */

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.user-chip > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip strong { font-size: 12px; }
.user-chip small { font-size: 10.5px; color: var(--muted); }
.avatar.mini { width: 28px; height: 28px; font-size: 11px; }

.btn.warn {
  color: #b45309;
  background: linear-gradient(180deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}
.btn.warn:hover { filter: brightness(1.03); background: #fde68a; }

.chat-state-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 700;
}
.state-pill.queue { background: var(--amber-soft); color: #b45309; }
.state-pill.attending { background: var(--primary-soft); color: var(--primary-strong); }
.state-pill.survey { background: #fef9c3; color: #a16207; }
.state-pill.closed { background: var(--green-soft); color: var(--green); }
.urgent-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
}

.chat-item.is-queue { border-left: 3px solid var(--amber); }
.chat-item.is-urgent { border-left: 3px solid var(--red); background: #fffafa; }
.handoff-flag.urgent { color: var(--red); }
.state-mini {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}
.state-mini.queue { background: var(--amber-soft); color: #b45309; }
.state-mini.attending { background: var(--primary-soft); color: var(--primary-strong); }
.state-mini.survey { background: #fef9c3; color: #a16207; }
.state-mini.assigned { background: var(--primary-soft); color: var(--primary-strong); }
.csat-mini { font-size: 10px; color: #b45309; font-weight: 700; }

.assign-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid;
  gap: 7px;
}
.assign-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.assign-row span { color: var(--muted); }

.quick-fab {
  position: absolute;
  right: 18px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #6058ff, var(--primary-strong));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(79, 70, 229, .35);
  transition: transform .15s, box-shadow .15s;
  z-index: 6;
}
.quick-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 32px rgba(79, 70, 229, .42); }
.quick-pop {
  position: absolute;
  right: 16px;
  bottom: 138px;
  width: min(330px, calc(100% - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 7;
}
.quick-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.quick-pop-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.quick-pop-list .quick { text-align: left; white-space: normal; border-radius: 10px; padding: 8px 10px; }
.quick-pop .btn { margin-top: 10px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.quick-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quick-card-actions { display: flex; gap: 2px; }
.quick-card p { font-size: 12.5px; color: var(--muted); flex: 1; }
.quick-card .btn { align-self: flex-start; }
.quick-manage { border-style: dashed; color: var(--primary); }

.broadcast-layout { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 16px; align-items: start; }
.bc-preview-row { margin: 4px 0 8px; }
.bc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bc-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2); }
.bc-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.bc-item-head small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.bc-status { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.bc-status.running { background: var(--blue-soft); color: var(--blue); }
.bc-status.done { background: var(--green-soft); color: var(--green); }
.bc-status.cancelled, .bc-status.error { background: var(--red-soft); color: var(--red); }
.bc-message { font-size: 12px; color: var(--muted); margin: 8px 0; }
.bc-progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bc-progress i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 999px; transition: width .4s; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.bc-meta .ok { color: var(--green); }
.bc-meta .err { color: var(--red); }
.bc-actions { display: flex; gap: 6px; margin-top: 9px; }
.bc-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 28px 0; }

.team-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.team-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.team-row:last-child { border-bottom: 0; }
.team-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.team-body small { color: var(--muted); font-size: 11.5px; }
.team-actions { display: flex; gap: 6px; flex: none; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.role-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2); }

.radio-cards { display: grid; gap: 8px; margin-top: 4px; }
.radio-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface-2);
}
.radio-card input { width: auto; margin-top: 2px; }
.radio-card span { display: flex; flex-direction: column; gap: 2px; }
.radio-card small { color: var(--muted); font-size: 11.5px; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

@media (max-width: 980px) {
  .broadcast-layout { grid-template-columns: 1fr; }
  .user-chip > span:last-child { display: none; }
  .quick-fab { bottom: 78px; }
}

@media (max-width: 720px) {
  .conv-actions { flex-wrap: wrap; justify-content: flex-end; }
  .quick-grid { grid-template-columns: 1fr; }
}
