/* Customer Hub · Teleperformance × América Móvil · Powered by Voicing AI
   One card style, one accent, colour only for status and the one primary action per screen.
   Type scale: 22 page title · 15 card title · 14 body · 13 secondary and table cells · 12 labels and pills · 28 headline number.
   Radii: 6 controls · 10 cards · 999 pills. Spacing unit 8 (4 / 8 / 12 / 16 / 24 / 32). No gradients, no glow, no accent bars. */
:root, [data-theme="light"] {
  --bg: #f6f6f7; --panel: #ffffff; --panel-2: #fafafa; --fill: #f1f1f3; --fill-2: #e7e7ea; --fill-3: #d4d4d8;
  --line: #e4e4e7; --line-2: #ededf0;
  --ink: #1d1d1f; --ink-2: #48484a; --ink-3: #6e6e73;
  --accent: #0a5fc2; --accent-ink: #ffffff; --accent-soft: #e8f0fb; --accent-line: #b9d0ef;
  --ok: #1f7a3a; --ok-soft: #e7f4ea; --warn: #8a5200; --warn-soft: #fbf0dc; --bad: #b3261e; --bad-soft: #fbe9e7;
  --bubble-me: #eef3fb; --bubble-them: #f1f1f3;
  --shadow-pop: 0 12px 32px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
  --r-c: 6px; --r: 10px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #111113; --panel: #1b1b1d; --panel-2: #212124; --fill: #28282b; --fill-2: #333337; --fill-3: #45454a;
  --line: #2f2f33; --line-2: #28282c;
  --ink: #f2f2f7; --ink-2: #c7c7cc; --ink-3: #9a9aa0;
  --accent: #4c9bff; --accent-ink: #ffffff; --accent-soft: #1b2b44; --accent-line: #2d4f7c;
  --ok: #5fd07f; --ok-soft: #173322; --warn: #f0b55a; --warn-soft: #3a2a10; --bad: #ff7b70; --bad-soft: #3d1a17;
  --bubble-me: #1d2c44; --bubble-them: #28282b;
  --shadow-pop: 0 12px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  color-scheme: dark;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: 14px; line-height: 20px; color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
i[data-ic] { display: inline-grid; font-style: normal; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-c); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
.muted { color: var(--ink-3); } .ink2 { color: var(--ink-2); }
.small { font-size: 13px; line-height: 18px; } .tiny { font-size: 12px; line-height: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================================================================ shell: sidebar · top bar · content · status bar */
.app { display: grid; grid-template-columns: 232px minmax(0,1fr); height: 100vh; height: 100dvh; }
.side { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 16px 12px 12px; background: var(--panel); border-right: 1px solid var(--line); z-index: 30; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 8px; }
.brand .tp { width: 24px; height: 27px; color: var(--ink); flex: none; }
.brand-sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.brand .amx { height: 28px; width: auto; max-width: 132px; object-fit: contain; }
[data-theme="dark"] .brand .amx { filter: brightness(0) invert(.92); }
.product { margin: 16px 8px 12px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.navlinks { display: grid; gap: 2px; }
.navlinks a { color: var(--ink-2); height: 36px; padding: 0 10px; border-radius: var(--r-c); display: flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; position: relative; }
.navlinks a:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
.navlinks a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.navlinks a svg.i { color: var(--ink-3); } .navlinks a.on svg.i { color: var(--accent); }
.navlinks .count { margin-left: auto; font-style: normal; background: var(--fill-2); color: var(--ink); border-radius: 999px; font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center; font-weight: 600; }
.navlinks a.on .count { background: var(--accent); color: var(--accent-ink); }
.navlinks .count:empty { display: none; }
.navlinks .navsep { height: 1px; background: var(--line); margin: 8px 6px; }
.side-foot { margin-top: auto; padding: 12px 4px 4px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.persona { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 0 4px; }
.persona .nm { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.persona .rl { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidemenu { display: grid; gap: 6px; padding: 4px; }
.sidemenu .lbl { display: none; }
.sidemenu .seg { width: 100%; } .sidemenu .seg button { flex: 1; }
.side-actions { display: grid; gap: 2px; padding-top: 4px; }
.side-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-c); background: transparent; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.side-btn:hover { background: var(--fill); color: var(--ink); }
.side-btn svg { width: 16px; height: 16px; flex: none; }
#logout:hover { color: var(--bad); }
html.nav-collapsed #collapse svg { transform: rotate(180deg); }
@media (min-width: 901px) {
  html.nav-collapsed .app { grid-template-columns: 64px minmax(0,1fr); }
  html.nav-collapsed .brand { padding: 0; justify-content: center; }
  html.nav-collapsed .brand-sep, html.nav-collapsed .brand .amx, html.nav-collapsed .navlinks span, html.nav-collapsed .product,
  html.nav-collapsed .persona > div:last-child, html.nav-collapsed .sidemenu, html.nav-collapsed .side-btn span { display: none; }
  html.nav-collapsed .navlinks a, html.nav-collapsed .side-btn { justify-content: center; padding: 0; }
  html.nav-collapsed .navlinks .count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 11px; padding: 0 4px; }
  html.nav-collapsed .persona { grid-template-columns: 32px; justify-content: center; }
  #navtoggle { display: none; }
}
.shell { min-width: 0; min-height: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { flex: none; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--bg); }
.topbar .ttl { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.topbar h1 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.topbar .tsub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.topbar .back:hover { color: var(--accent); text-decoration: none; }
.topbar .back svg.i { width: 14px; height: 14px; }
.topactions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.iconbtn { width: 32px; height: 32px; border-radius: var(--r-c); border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--fill); color: var(--ink); }
.scrim { display: none; }
main#view { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0 24px 16px; }
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 1360px; margin: 0 auto; gap: 16px; }
.page.scrolls { overflow: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.page.scrolls > * { flex: none; }
.page > .card:not(.fill):not(.col), .page > .ctabs, .page > .ofilters { flex: none; }
.statusbar { flex: none; height: 28px; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-top: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.statusbar .sb-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.statusbar b { color: var(--ink-2); font-weight: 600; }

/* ================================================================ controls (buttons are rectangles; only status uses pills) */
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: var(--r-c); height: 32px; padding: 0 12px; font-weight: 500; font-size: 13px;
  display: inline-flex; gap: 6px; align-items: center; justify-content: center; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--fill); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); background: var(--accent); }
.btn.text { border-color: transparent; background: transparent; color: var(--accent); padding: 0 8px; }
.btn.text:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); background: transparent; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { height: 32px; padding: 0 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg.i { width: 15px; height: 15px; }
input.inp, select.inp, textarea.inp { border: 1px solid var(--line); border-radius: var(--r-c); height: 32px; padding: 0 10px; background: var(--panel); width: 100%; font-size: 13px; }
textarea.inp { height: auto; padding: 8px 10px; resize: vertical; line-height: 18px; }
input.inp:focus, select.inp:focus, textarea.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236e6e73' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
input.inp.search { width: 280px; padding-left: 32px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center; }
.seg { display: inline-flex; background: var(--fill); border-radius: var(--r-c); padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; min-height: 28px; padding: 0 10px; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.seg button:disabled { opacity: .45; cursor: default; }
.seg.lang-seg button { padding: 0 9px; font-size: 12px; font-weight: 600; }
.seg svg.i { width: 14px; height: 14px; }
.check { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.hit { display: inline-grid; place-items: center; width: 32px; height: 32px; cursor: pointer; }
.toggle { width: 40px; height: 24px; border-radius: 12px; background: var(--fill-3); position: relative; border: 0; flex: none; transition: background .15s; }
.toggle::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.toggle.on { background: var(--accent); } .toggle.on::after { left: 18px; }
.techsw { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); border: 0; background: none; height: 32px; padding: 0 4px; }
.techsw .toggle { width: 32px; height: 20px; } .techsw .toggle::after { width: 16px; height: 16px; }
.techsw .toggle.on::after { left: 14px; }

/* ================================================================ cards: one style, divider lines inside, no nested boxes */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; overflow: hidden; }
.card > .h { min-height: 44px; padding: 8px 16px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.card > .h .meta { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.card > .h .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card > .b { padding: 16px; }
.card > .b.tight { padding: 8px 16px; }
.divider { border-top: 1px solid var(--line-2); margin: 12px 0; }
.kv { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 8px 16px; font-size: 13px; line-height: 18px; }
.kv .k { color: var(--ink-3); }
.lbl { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-3); }
.sect { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0 0 8px; }
.empty { padding: 16px; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.empty .btn { margin-top: 10px; }
.skel { display: grid; gap: 10px; padding: 16px; }
.skel span { height: 12px; border-radius: 4px; background: var(--fill); display: block; }
.skel span:nth-child(2) { width: 82%; } .skel span:nth-child(3) { width: 64%; }

/* status pills: tinted background + matching text, no dot */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 22px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); color: var(--ink-2); white-space: nowrap; line-height: 1; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info, .badge.live { background: var(--accent-soft); color: var(--accent); }
.badge.live.solid { background: var(--accent); color: var(--accent-ink); }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.badge svg.i { width: 12px; height: 12px; }
.badge.lg { height: 28px; padding: 0 12px; font-size: 14px; font-weight: 600; }
.dir { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.dir svg.i { width: 13px; height: 13px; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--fill-3); flex: none; }
.dot.ok { background: var(--ok); } .dot.on { background: var(--accent); } .dot.bad { background: var(--bad); }
.newmark { font-size: 11px; font-weight: 600; color: var(--accent); }

/* ================================================================ tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 500; height: 40px; padding: 0 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13px; line-height: 18px; }
tbody tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
tr.click.sel td { background: var(--accent-soft); }
tr.click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
td.chev { width: 32px; color: var(--ink-3); text-align: right; }
td.chev svg.i { width: 14px; height: 14px; }
table.fixed { table-layout: fixed; }
table.fixed .badge, table.fixed .otag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; vertical-align: middle; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.scroll thead th { position: sticky; top: 0; z-index: 1; }
.col { display: flex; flex-direction: column; min-height: 0; }
.fill { flex: 1; min-height: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.who b { font-weight: 600; }

/* ================================================================ live calls: 3 + 6 + 3 */
.live-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(290px, 3.3fr) minmax(0, 5.6fr) minmax(290px, 3.3fr); gap: 16px; }
.live-grid > * { min-height: 0; }
.live-grid.wide { grid-template-columns: minmax(0, 1fr); }
.live-grid.wide > .calls-card, .live-grid.wide > #pop { display: none; }
.grp { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 12px 16px 4px; }
.callrow { padding: 10px 16px; cursor: pointer; display: grid; gap: 4px; border-bottom: 1px solid var(--line-2); }
.callrow:hover { background: var(--panel-2); }
.callrow.sel { background: var(--accent-soft); }
.callrow.sel .muted, .callrow.sel .when, .callrow.sel .last, tr.click.sel td .muted, .hrow.sel .when, .hrow.sel .muted { color: var(--ink-2); }
.badtxt { color: var(--bad); }
.callrow .t { display: flex; gap: 8px; align-items: center; min-width: 0; }
.callrow .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callrow .when { margin-left: auto; color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.callrow .last { color: var(--ink-3); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callrow.ended { grid-template-columns: minmax(9ch, max-content) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 16px; }
.callrow.ended .nm { font-weight: 500; min-width: 72px; }
.callrow.ended .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callrow.ended .badge { justify-self: end; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }
@media (max-width: 1360px) { .callrow.ended .when { display: none; } .callrow.ended { grid-template-columns: minmax(9ch, max-content) minmax(0, 1fr); } }
.callrow.enter, .act.enter, .msg.enter { animation: fadein .12s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.strip { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line-2); min-height: 56px; }
.strip .nm { font-size: 15px; font-weight: 600; }
.strip .step { font-size: 13px; color: var(--ink-2); }
.strip .sep { width: 1px; height: 16px; background: var(--line); }
.strip .right { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.feed { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.msg .who { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; display: block; }
.msg.customer { background: var(--bubble-them); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.bot { background: var(--bubble-me); align-self: flex-end; border-bottom-right-radius: 4px; }
.act { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; align-items: start; padding: 4px 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.act > svg.i { width: 15px; height: 15px; margin-top: 2px; color: var(--ink-3); }
.act.success > svg.i { color: var(--ok); } .act.handoff > svg.i { color: var(--accent); }
.act.warn > svg.i, .act.warn .txt { color: var(--warn); } .act.danger > svg.i, .act.danger .txt { color: var(--bad); }
.act .tm { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.act .tool { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ink-3); }
.act details { grid-column: 2 / 4; } .act summary { font-size: 12px; color: var(--accent); cursor: pointer; }
.act.tech { opacity: .75; }
pre.json { background: var(--fill); color: var(--ink-2); padding: 10px; border-radius: var(--r-c); font-size: 11px; line-height: 15px; overflow: auto; max-height: 240px; margin: 6px 0 0; }
.sysline { align-self: center; font-size: 12px; color: var(--ink-3); padding: 2px 0; text-align: center; }
.sysline.bad { color: var(--bad); font-weight: 500; }
.notice { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; padding: 8px 12px; border-radius: var(--r-c); font-size: 13px; line-height: 18px; background: var(--bad-soft); color: var(--bad); }
.notice svg.i { margin-top: 1px; }
.pcsum { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 8px; font-size: 13px; line-height: 19px; }
/* screen pop */
.pop-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.pop-head h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-sec { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.pop-sec:last-child { border-bottom: 0; }
.pop-sec .why { font-size: 14px; line-height: 20px; }
.ilist { display: grid; gap: 6px; }
.ilist .it { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 18px; min-width: 0; }
.ilist .it > * { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ilist .it > b, .ilist .it > .v { flex: none; }
.ilist .it > .ellip { flex: 1 1 auto; }
.ilist .it .v { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flash { animation: fadein .12s ease-out; }

/* ================================================================ customer 360 */
.c-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.c-head > div { padding: 16px; min-width: 0; }
.c-head > div + div { border-left: 1px solid var(--line-2); }
.c-id { display: flex; gap: 14px; align-items: center; }
.c-id h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.c-id .sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; margin-top: 16px; }
.facts .v.big { white-space: nowrap; }
.facts .v { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.facts .v.big { font-size: 28px; line-height: 32px; }
.facts .v.bad { color: var(--bad); }
.facts .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.lastcall .sum { font-size: 13px; line-height: 18px; color: var(--ink-2); margin-top: 8px; }
.created { list-style: none; margin: 0; padding: 0; }
.created li { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; line-height: 18px; }
.created li:last-child { border-bottom: 0; }
.created .ty { font-weight: 600; } .created .ty .mono { display: block; font-weight: 400; color: var(--ink-3); }
.c360 { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: 16px; align-items: start; }
.c360 > .stack { display: grid; gap: 16px; min-width: 0; }
/* customer profile: the page itself never scrolls; the two columns fill the height left under the header and
   each scrolls inside itself. The left column's last card grows so both columns end at the same line. */
.page.cust > * { flex: none; }
.page.cust > .c360 { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); padding-bottom: 2px; }
.page.cust .c360 > .stack { display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.page.cust .c360 > .stack > .card { flex: none; }
.page.cust .c360 > .stack > .card:last-child { flex: 1 0 auto; }
.page.cust .c360 > .card.tabs { display: flex; flex-direction: column; min-height: 0; }
.page.cust .c360 > .card.tabs > .tabbar { flex: none; }
.page.cust .tabscroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.page.cust > .created-card { display: flex; flex-direction: column; max-height: 28vh; }
.page.cust > .created-card > .created { min-height: 0; overflow: auto; }
.lines .ln { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; line-height: 18px; }
.lines .ln:first-child { padding-top: 0; } .lines .ln:last-child { border-bottom: 0; padding-bottom: 0; }
.lines .ln b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lines .ln .m { color: var(--ink-3); font-size: 12px; }
.lines .ln .r { text-align: right; }
.tabbar { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tabbar button { border: 0; background: none; height: 44px; padding: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabbar button:hover { color: var(--ink); }
.tabbar button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tabbar button.zero { color: var(--ink-3); font-weight: 400; }
.tabbar .n { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.subh { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 16px 16px 8px; }
.callgrp { border-bottom: 1px solid var(--line-2); padding: 12px 16px; }
.callgrp:last-child { border-bottom: 0; }
.callgrp .gh { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 6px; flex-wrap: wrap; }
.callgrp .gh .muted { font-weight: 400; }
.callgrp .feed { padding: 0; }
.inv .invtop { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.inv .invtop .kv { flex: 1; min-width: 240px; }
.inv .invtotal { text-align: right; margin-left: auto; }
.inv .big { font-size: 28px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invsum { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); grid-template-columns: 170px auto; justify-content: start; }
details.more > summary { cursor: pointer; padding: 10px 16px; color: var(--accent); font-size: 13px; font-weight: 500; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.sched { display: flex; flex-wrap: wrap; gap: 6px; }
.sched span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--fill); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sub td { padding-top: 0; }
.sms { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin-bottom: 8px; font-size: 13px; line-height: 18px; }
.sms .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }

/* ================================================================ campaigns */
.ctabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; flex: none; }
.ctab { display: grid; gap: 2px; text-align: left; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: inherit; }
.ctab:hover { border-color: var(--fill-3); }
.ctab.on { border-color: var(--accent); background: var(--accent-soft); }
.ctab .k { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ctab.on .k { color: var(--accent); }
.ctab .o { font-weight: 600; font-size: 14px; line-height: 20px; }
.ctab .n { font-size: 12px; color: var(--ink-2); }
.campwrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.campwrap > .card { max-height: 100%; }
.offercard .kv { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
.offercard .kv > div:nth-child(even) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.offerline { font-size: 13px; line-height: 18px; }
.offerline b { font-weight: 600; }
tr.dim td { color: var(--ink-3); }
.ctable td { vertical-align: middle; }
.ctable td.offerline { min-width: 160px; }
.ctable td:nth-child(4) { white-space: nowrap; }
.ctable td:nth-child(5) { white-space: nowrap; width: 1%; }
.ctable td:nth-child(2) { max-width: 260px; }
.pfield { display: grid; gap: 6px; }
.adorn { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-c); background: var(--panel); height: 32px; overflow: hidden; }
.adorn:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.adorn span { display: grid; place-items: center; padding: 0 8px; color: var(--ink-3); font-size: 13px; background: var(--panel-2); }
.adorn input { border: 0 !important; box-shadow: none !important; height: 30px !important; min-width: 0; }
.preview { margin-top: 4px; padding: 12px; border-radius: var(--r-c); background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; line-height: 19px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pgrid .full { grid-column: 1 / -1; }
.pgrid .perr { min-height: 16px; margin-bottom: 6px; font-size: 12px; color: var(--bad); }
.pgrid .help { font-size: 12px; color: var(--ink-3); }
.pbool { display: flex !important; align-items: center; gap: 10px; color: var(--ink) !important; font-size: 13px !important; min-height: 32px; }
.plist { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.plist label { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; color: var(--ink) !important; font-size: 13px !important; font-weight: 400 !important; min-height: 32px; }

/* ================================================================ outbound */
.ofilters { display: flex; align-items: center; gap: 12px; flex: none; flex-wrap: wrap; }
.otag { display: inline-flex; align-items: center; padding: 0 8px; height: 22px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--fill); color: var(--ink-2); }
.otag.won { background: var(--ok-soft); color: var(--ok); } .otag.warm { background: var(--warn-soft); color: var(--warn); }
.otag.lost { background: var(--bad-soft); color: var(--bad); }
.otag.lg { height: 28px; padding: 0 12px; font-size: 14px; font-weight: 600; }
tr.odrow > td { padding: 0; background: var(--panel-2); }
.odetail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 16px 16px 20px; }
.odetail .olbl { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 16px 0 6px; }
.odetail .ocol > .olbl:first-child { margin-top: 0; }
.odetail .oups { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; line-height: 18px; }
.odetail .oups li.top { font-weight: 600; }
.odetail .oquote { font-style: italic; color: var(--ink-2); margin-bottom: 8px; }
.odetail .correct { display: grid; gap: 10px; }
.odetail .correct label { display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 500; }

/* ================================================================ transfers: master-detail */
.md { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(320px, 4fr) minmax(0, 8fr); gap: 16px; }
.md > * { min-height: 0; }
.hrow { padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; display: grid; gap: 4px; }
.hrow:hover { background: var(--panel-2); }
.hrow.sel { background: var(--accent-soft); }
.hrow .t { display: flex; gap: 8px; align-items: center; }
.hrow .nm { font-weight: 600; }
.hrow .when { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.hrow .why { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.ho-reason { font-size: 15px; line-height: 22px; font-weight: 600; }
.ho-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; }
.ho-facts .v { font-size: 13px; font-weight: 600; margin-top: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; font-size: 13px; line-height: 18px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.steps li:last-child { border-bottom: 0; }
.steps li svg.i { width: 15px; height: 15px; color: var(--ink-3); margin-top: 1px; }
.steps li .tm { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ================================================================ sessions */
.sdetail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; padding: 12px 16px 16px; background: var(--panel-2); }
.sdetail .full { grid-column: 1 / -1; }
.sdetail .card > .b { padding: 12px 16px; }
.idchip { display: inline-flex; align-items: center; gap: 4px; }

/* ================================================================ demo controls */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.switch { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.switch:first-child { padding-top: 0; } .switch:last-child { border-bottom: 0; padding-bottom: 0; }
.switch .tx b { font-weight: 600; font-size: 14px; } .switch .tx div { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
code.u { background: var(--fill); padding: 2px 6px; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; font-family: "SF Mono", ui-monospace, Menlo, monospace; }
details.tech > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 12px; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech[open] > summary { margin-bottom: 12px; }
.phone { width: 300px; border-radius: 36px; background: var(--fill); padding: 40px 12px 20px; min-height: 460px; border: 8px solid var(--ink); margin: 0 auto; }
.phone .sms { border: 0; box-shadow: 0 1px 1px rgba(0,0,0,.06); }

/* ================================================================ toasts & sheet */
.toast-wrap { position: fixed; right: 20px; bottom: 40px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--panel); color: var(--ink); border-radius: var(--r); padding: 12px 14px; width: 360px; box-shadow: var(--shadow-pop); animation: fadein .12s ease-out; cursor: pointer;
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); }
.toast .ti { color: var(--ink-3); margin-top: 1px; } .toast.ho .ti { color: var(--accent); } .toast.danger .ti { color: var(--bad); } .toast.ok .ti { color: var(--ok); }
.toast b { display: block; font-size: 13px; font-weight: 600; } .toast .small { color: var(--ink-2); }
.toast.out { opacity: 0; transition: opacity .2s; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.32); display: grid; place-items: center; z-index: 70; }
.sheet-wrap[hidden] { display: none; }
.sheet { background: var(--panel); border-radius: var(--r); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: var(--shadow-pop); padding: 20px; }
.sheet.wide { width: min(680px, calc(100vw - 32px)); }
.sheet h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.sheet .hint { color: var(--ink-3); font-size: 13px; line-height: 18px; margin-bottom: 16px; }
.sheet label { display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }
.sheet .grph { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 4px 0 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.sheet .grph:first-child { border-top: 0; padding-top: 0; }
.sheet .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; position: sticky; bottom: -20px; background: var(--panel); padding: 12px 0 0; }

/* ================================================================ sign-in */
.role-locked #rolebox { display: none; }
.signed-out .app { visibility: hidden; }
/* split screen: animated brand stage (left) + sign-in card (right) */
#login { --tp1: #2a0b47; --tp2: #4b1677; --tp3: #7a1f9e; --tpm: #e6007e; --tpv: #9b6bff;
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); background: var(--bg); overflow: hidden; }
.login-stage { position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  background: radial-gradient(120% 90% at 0% 0%, var(--tp3) 0%, var(--tp2) 38%, var(--tp1) 100%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.aurora.a1 { width: 520px; height: 520px; left: -120px; top: -140px; background: var(--tpm); animation: drift1 18s ease-in-out infinite alternate; }
.aurora.a2 { width: 460px; height: 460px; right: -140px; bottom: -120px; background: var(--tpv); animation: drift2 22s ease-in-out infinite alternate; }
.aurora.a3 { width: 360px; height: 360px; left: 35%; top: 40%; background: #4f2bd9; opacity: .4; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, -100px) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-120px, 80px) scale(.85); } }
.stage-grid { position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%); -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%); }
.stage-top, .stage-center, .stage-copy { position: relative; z-index: 1; }
.stage-top { display: flex; align-items: center; gap: 14px; animation: fadeDown .8s ease-out both; }
.stage-tp { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.stage-tp .tp { width: 26px; height: 29px; color: #fff; }
.stage-x { opacity: .55; font-size: 18px; }
.stage-amx { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.stage-center { display: grid; place-items: center; align-content: center; gap: 26px; min-height: 0; }
.orb { position: relative; width: 132px; height: 132px; display: grid; place-items: center; animation: fadeIn 1s .2s ease-out both; }
.orb .core { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; letter-spacing: .04em;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f7c8ff 18%, var(--tpm) 55%, var(--tp3) 100%);
  box-shadow: 0 0 40px rgba(230,0,126,.55), inset 0 -8px 18px rgba(42,11,71,.45); animation: breathe 3.2s ease-in-out infinite; }
.orb .core span { color: #fff; text-shadow: 0 1px 6px rgba(42,11,71,.6); font-size: 15px; }
.orb .ring { position: absolute; inset: 24px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); animation: ripple 3.6s ease-out infinite; }
.orb .r2 { animation-delay: 1.2s; } .orb .r3 { animation-delay: 2.4s; }
@keyframes breathe { 50% { transform: scale(1.07); box-shadow: 0 0 64px rgba(230,0,126,.75), inset 0 -8px 18px rgba(42,11,71,.45); } }
@keyframes ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 4px; height: 46px; animation: fadeIn 1s .4s ease-out both; }
.wave i { display: block; width: 4px; height: var(--h); border-radius: 3px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.35));
  transform-origin: center; animation: bar 1.15s ease-in-out var(--d) infinite alternate; }
@keyframes bar { from { transform: scaleY(.18); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
.bubbles { width: min(440px, 100%); display: grid; gap: 10px; }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; animation: bubble 14s ease-in-out infinite; }
.bub small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.bub.ana { justify-self: start; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-bottom-left-radius: 4px; }
.bub.cust { justify-self: end; background: linear-gradient(135deg, var(--tpm), #b0007a); border-bottom-right-radius: 4px; box-shadow: 0 6px 18px rgba(230,0,126,.35); }
.bub.b1 { animation-delay: 0s; } .bub.b2 { animation-delay: 1.6s; } .bub.b3 { animation-delay: 3.2s; } .bub.b4 { animation-delay: 4.8s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(.98); } 6% { opacity: 1; transform: none; } 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-6px); } }
.stage-copy { animation: fadeUp .9s .3s ease-out both; }
.stage-copy h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.stage-copy p { margin: 0 0 16px; max-width: 520px; font-size: 14px; line-height: 21px; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.login-side { position: relative; display: grid; place-items: center; padding: 32px 24px; background: var(--bg); }
.login-side::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 100% 0%, rgba(155,107,255,.12), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(230,0,126,.08), transparent 70%); }
.login-card { position: relative; width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px 24px;
  display: grid; gap: 14px; box-shadow: 0 24px 60px -24px rgba(42,11,71,.35), 0 2px 8px rgba(0,0,0,.04); }
.login-brand .brand { justify-content: center; margin: 2px 0 2px; padding: 0; height: 40px; }
#login .brand .amx, #login .brand .brand-sep { display: inline-block !important; }
.login-title { font-size: 22px; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.login-line { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: -8px; }
.login-sub { font-size: 12px; color: var(--ink-3); text-align: center; }
.login-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.login-card input { font-size: 14px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.login-card input:focus { outline: none; border-color: #7a1f9e; box-shadow: 0 0 0 3px rgba(122,31,158,.18); }
#login .btn.login-go { position: relative; overflow: hidden; height: 42px; border: 0; border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #4b1677 0%, #7a1f9e 55%, #e6007e 100%); box-shadow: 0 10px 24px -10px rgba(122,31,158,.7); transition: transform .15s, box-shadow .15s; }
#login .btn.login-go:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(122,31,158,.8); }
#login .btn.login-go::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 3.8s ease-in-out 1.2s infinite; }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.login-err { min-height: 16px; font-size: 12px; color: var(--bad); margin: -4px 0; }
.login-lang { justify-self: end; margin: -14px -10px -6px 0; }
.rise { animation: fadeUp .6s ease-out both; }
.login-card .rise:nth-child(1) { animation-delay: .05s; } .login-card .rise:nth-child(2) { animation-delay: .12s; } .login-card .rise:nth-child(3) { animation-delay: .19s; }
.login-card .rise:nth-child(4) { animation-delay: .26s; } .login-card .rise:nth-child(5) { animation-delay: .33s; } .login-card .rise:nth-child(6) { animation-delay: .4s; }
.login-card .rise:nth-child(8) { animation-delay: .47s; } .login-card .rise:nth-child(9) { animation-delay: .54s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 960px) {
  #login { grid-template-columns: minmax(0, 1fr); }
  .login-stage { display: none; }
  .login-side { background: radial-gradient(120% 90% at 0% 0%, #7a1f9e 0%, #4b1677 40%, #2a0b47 100%); }
}
@media (max-height: 640px) { .bubbles { display: none; } }

/* ================================================================ responsive */
@media (max-width: 1360px) {
  .live-grid { grid-template-columns: minmax(270px, 3.3fr) minmax(0, 5.4fr) minmax(270px, 3.3fr); }
  .campwrap { grid-template-columns: minmax(0, 1fr) 260px; }
  .ctable .blbl { display: none; }
}
@media (max-width: 1100px), (max-height: 700px) {
  main#view { overflow: auto; display: block; }
  .page { display: block; } .page > * + * { margin-top: 16px; }
  .scroll, .fill { overflow: visible; flex: none; }
  .page.cust .c360 > .stack, .page.cust .tabscroll, .page.cust > .created-card > .created { overflow: visible; }
  .page.cust > .created-card { max-height: none; }
  .col { display: block; }
  .live-grid, .md { display: grid; grid-template-columns: minmax(0,1fr); }
  .live-grid .scroll { max-height: 520px; overflow: auto; }
  .scroll thead th { position: static; }
  .c360, .campwrap, .two, .c-head { grid-template-columns: minmax(0,1fr); }
  .c-head > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0,1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-pop); }
  html.nav-open .side { transform: none; }
  html.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 25; }
  #collapse { display: none; }
  .topbar, main#view { padding-left: 16px; padding-right: 16px; }
  .topbar .tsub { display: none; }
  .search { width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .odetail, .sdetail, .pgrid { grid-template-columns: minmax(0,1fr); }
  .toast-wrap { left: 16px; right: 16px; } .toast { width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
