/* COREUCX Portal v2 - supplemental styles (app.css stays untouched/shared) */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.modal { background: var(--elevated, var(--surface)); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 88vh; overflow: hidden; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 15px; font-weight: 600; }
.modal-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
:root { --pulse-dur: 1s; --pulseT: 0; }
@property --pulseT { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes pulse-clock { 0%, 100% { --pulseT: 0; } 50% { --pulseT: 1; } }
/* The pulse clock animates an inherited custom property, so while it runs the
   browser restyles the whole subtree every frame. We therefore attach the
   animation ONLY when something that consumes --pulseT is on screen: a tiny
   rAF-debounced observer (in portal.html) toggles .pulse-on. Idle = no
   animation object at all = zero per-frame cost. */
.app-shell { }
.app-shell.pulse-on { animation: pulse-clock var(--pulse-dur) ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .app-shell.pulse-on { animation: none; } }

/* segmented tabs (used in Inboxes widget, Team Chat, Billing, Flow Studio switcher) */
.modal-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-sizing: border-box;
}
.modal-tab {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}
.modal-tab:hover { color: var(--text); }
.modal-tab.active {
  background: var(--accent-soft, color-mix(in oklab, var(--accent), transparent 85%));
  color: var(--accent-soft-fg, var(--accent));
  box-shadow: var(--shadow-sm);
}

/* Flow Studio enable/disable switch */
.fs-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: border-color 140ms, background 140ms;
}
.fs-switch:hover { border-color: var(--border-strong, var(--border)); }
.fs-switch input { position: absolute; opacity: 0; pointer-events: none; }
.fs-switch .fs-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-strong, var(--border));
  transition: background 180ms ease;
  flex-shrink: 0;
}
.fs-switch .fs-track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.fs-switch input:checked ~ .fs-track { background: var(--c-success); }
.fs-switch input:checked ~ .fs-track::after { transform: translateX(16px); }
.fs-switch .fs-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  transition: color 140ms;
}
.fs-switch input:checked ~ .fs-label { color: var(--c-success); }
.fs-switch .fs-label .fs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 140ms;
}
.fs-switch input:checked ~ .fs-label .fs-dot { background: var(--c-success); }

/* topbar user chip */
.cx-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 140ms, border-color 140ms;
}
.cx-user-chip:hover {
  background: color-mix(in oklab, var(--accent), transparent 86%);
  border-color: var(--accent);
}
.cx-user-chip.open {
  background: color-mix(in oklab, var(--accent), transparent 78%);
  border-color: var(--accent);
}
@keyframes chip-dnd-pulse { 0%, 100% { border-color: var(--border); background: color-mix(in oklab, var(--c-danger), transparent 88%); } 50% { border-color: color-mix(in oklab, var(--c-danger), transparent 50%); background: color-mix(in oklab, var(--c-danger), transparent 72%); } }
.cx-user-chip.chip-dnd { animation: none; border-color: color-mix(in oklab, var(--c-danger), transparent calc(100% - 50% * var(--pulseT))); background: color-mix(in oklab, var(--c-danger), transparent calc(88% - 16% * var(--pulseT))); }
@keyframes chip-ring-pulse { 0%, 100% { border-color: var(--border); background: color-mix(in oklab, var(--accent), transparent 88%); } 50% { border-color: color-mix(in oklab, var(--accent), transparent 50%); background: color-mix(in oklab, var(--accent), transparent 72%); } }
.cx-user-chip.chip-ringing { animation: none; border-color: color-mix(in oklab, var(--accent), transparent calc(100% - 50% * var(--pulseT))); background: color-mix(in oklab, var(--accent), transparent calc(88% - 16% * var(--pulseT))); }
@keyframes chip-paused-pulse { 0%, 100% { border-color: var(--border); background: color-mix(in oklab, var(--c-warning), transparent 88%); } 50% { border-color: color-mix(in oklab, var(--c-warning), transparent 50%); background: color-mix(in oklab, var(--c-warning), transparent 72%); } }
.cx-user-chip.chip-paused { animation: none; border-color: color-mix(in oklab, var(--c-warning), transparent calc(100% - 50% * var(--pulseT))); background: color-mix(in oklab, var(--c-warning), transparent calc(88% - 16% * var(--pulseT))); }
/* Available→Ringing pill in the User Agent header */
@keyframes ua-avail-ring-pulse { 0%, 100% { background: color-mix(in oklab, var(--accent), transparent 88%); border-color: color-mix(in oklab, var(--accent), transparent 70%); } 50% { background: color-mix(in oklab, var(--accent), transparent 70%); border-color: var(--accent); } }
.pill.ua-avail-ring { color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent), transparent calc(70% - 70% * var(--pulseT))); background: color-mix(in oklab, var(--accent), transparent calc(88% - 18% * var(--pulseT))); }
.pill.ua-avail-static { color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent), transparent 60%); background: color-mix(in oklab, var(--accent), transparent 86%); }
.pill.ua-avail-paused { color: var(--c-warning); border: 1px solid color-mix(in oklab, var(--c-warning), transparent calc(70% - 70% * var(--pulseT))); background: color-mix(in oklab, var(--c-warning), transparent calc(88% - 18% * var(--pulseT))); }
.pill.ua-avail-dnd { color: var(--c-danger); border: 1px solid color-mix(in oklab, var(--c-danger), transparent calc(70% - 70% * var(--pulseT))); background: color-mix(in oklab, var(--c-danger), transparent calc(88% - 18% * var(--pulseT))); }
.cx-avatar-wrap { position: relative; display: inline-flex; }
.cx-chip-caret { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.42); color: #fff; opacity: 0; transition: opacity 140ms, color 140ms, transform 160ms; pointer-events: none; }
.cx-user-chip:hover .cx-chip-caret, .cx-user-chip.open .cx-chip-caret { opacity: 1; color: var(--accent); }
@keyframes sub-ring-flash { 0%, 100% { color: var(--accent); opacity: 1; } 50% { color: color-mix(in oklab, var(--accent), white 30%); opacity: 0.55; } }
.cx-user-sub.sub-ringing { color: var(--accent); opacity: calc(0.6 + 0.4 * var(--pulseT)); font-weight: 600; }
@keyframes sub-dnd-flash { 0%, 100% { color: var(--c-danger); opacity: 1; } 50% { color: color-mix(in oklab, var(--c-danger), white 30%); opacity: 0.55; } }
.cx-user-sub.sub-dnd { color: var(--c-danger); opacity: calc(0.6 + 0.4 * var(--pulseT)); font-weight: 600; }
@keyframes sub-hold-flash { 0%, 100% { color: var(--c-warning); opacity: 1; } 50% { color: color-mix(in oklab, var(--c-warning), white 30%); opacity: 0.55; } }
.cx-user-sub.sub-hold { color: var(--c-warning); opacity: calc(0.6 + 0.4 * var(--pulseT)); font-weight: 600; }
.cx-user-sub.sub-paused { color: var(--c-warning); opacity: calc(0.6 + 0.4 * var(--pulseT)); font-weight: 600; }
.cx-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.74 0.18 50), oklch(0.62 0.2 305));
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.18);
}
.cx-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  transition: background 140ms;
}
.cx-user-meta { display: flex; flex-direction: column; align-items: center; line-height: 1.25; text-align: center; }
.cx-user-name { font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; }
.cx-user-sub { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }

.cx-user-menu { position: fixed; top: 60px; right: 12px; width: 340px; background: var(--elevated, var(--surface)); border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 0 6px 6px; overflow: hidden; padding: 6px; z-index: 60; }
.cx-user-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.cx-user-menu-sec {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding: 8px 8px 3px;
  margin-top: 2px;
}
.cx-user-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms;
}
.cx-user-menu-item:hover { background: color-mix(in oklab, var(--accent), transparent 86%); color: var(--accent); }
.cx-user-menu-item:hover svg { color: var(--accent); }

/* user-agent phone preference toggles */
.ua-toggle { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 26px; padding: 0 6px; line-height: 1; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-muted); font-family: var(--font-sans); font-size: 10.5px; font-weight: 500; cursor: pointer; transition: all 130ms; white-space: nowrap; }
.ua-toggle:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 90%); }
.ua-toggle:not(.on):not(.on-danger):hover .ua-toggle-dot { background: var(--accent); }
.ua-toggle .ua-toggle-lbl { display: inline-flex; align-items: center; line-height: 1; position: relative; top: 0.5px; }
.ua-toggle.on:hover { background: color-mix(in oklab, var(--c-success), transparent 80%); border-color: var(--c-success); }
.ua-toggle.on-danger:hover { background: color-mix(in oklab, var(--c-danger), transparent 80%); border-color: var(--c-danger); }
.ua-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
.ua-toggle:disabled:hover { border-color: var(--border); color: var(--text-muted); background: transparent; }
.btn.ua-pause .ua-lbl-hover { display: none; }
.btn.ua-pause:hover .ua-lbl-rest { display: none; }
.btn.ua-pause:hover .ua-lbl-hover { display: inline; }
.ua-stat { text-align: center; transition: border-color 120ms; }
/* inbound/outbound telemetry grid */
.ua-tele { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 2px 0 10px; }
.ua-tele-tabs { display: flex; gap: 4px; padding: 10px 0 0; border-top: 1px solid var(--border); margin-top: 0; margin-bottom: 10px; }
.ua-tele-tab { flex: 1; min-width: 0; height: 26px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text-muted); font-family: var(--font-sans); font-size: 10.5px; font-weight: 500; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 120ms; }
.ua-tele-tab:hover { border-color: var(--accent); color: var(--accent); }
.ua-tele-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ua-tele2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; align-items: stretch; }
.ua-tele2-col { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 3px; border: 1px solid var(--border); border-radius: 9px; padding: 0 4px 4px; align-content: start; overflow: hidden; }
.ua-tele2-hd { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); text-align: left; padding: 7px 6px 6px; margin: 0 -4px 3px; height: auto; line-height: 1; white-space: nowrap; background: var(--bg-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.ua-tele2-hd::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ua-tele-hdrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 0 4px; }
.ua-tele-hdrs > span { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); text-align: center; }
.ua-tele-cell { background: var(--bg-2); border: 1px solid transparent; border-radius: 7px; min-height: 30px; box-sizing: border-box; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; }.ua-tele-cell:hover { background: var(--surface); border-color: var(--border); transform: translateY(-1px); background: var(--surface); transform: translateY(-1px); }nter; gap: 2px; text-align: center; transition: background 140ms, transform 140ms; }.ua-tele-v { font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; order: 2; }
.ua-tele-c { font-size: 8px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); order: 1; }
/* ===== redesigned Today's Performance ===== */
.ua-perf2 { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 12px; }
.ua-perf2-head { display: none; }
.ua-perf2-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.ua-perf2-live { display: inline-flex; align-items: center; gap: 5px; color: var(--c-success); }
.ua-perf2-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); animation: ua-live-pulse 1.4s ease-in-out infinite; }
@keyframes ua-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.ua-perf2-hero { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; }
.ua-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.ua-ring-arc { transition: stroke-dashoffset 900ms cubic-bezier(0.2,0.8,0.3,1); }
.ua-ring-lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ua-ring-pct { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.ua-ring-cap { font-size: 8px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.ua-hero-main { min-width: 0; }
.ua-hero-num { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--text), color-mix(in oklab, var(--accent), var(--text) 30%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ua-hero-cap { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }
.ua-perf2-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ua-mini { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: var(--bg-2); border-radius: 8px; transition: background 140ms; }
.ua-mini:hover { background: var(--bg-2); }
.ua-mini-ic { display: inline-flex; }
.ua-mini-v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.ua-mini-c { font-size: 9.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-top: 2px; }
.ua-perf2-chan { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0 0; display: flex; flex-direction: column; }
.ua-chrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; opacity: 0; animation: ua-chrow-in 0.5s ease forwards; }
@keyframes ua-chrow-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.ua-chrow-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; transition: transform 200ms cubic-bezier(0.34,1.5,0.6,1); }
.ua-chrow:hover .ua-chrow-ic { transform: scale(1.12) rotate(-4deg); }
.ua-chrow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ua-chrow-top { display: flex; align-items: center; justify-content: space-between; }
.ua-chrow-lbl { font-size: 11.5px; color: var(--text); font-weight: 500; }.ua-chrow-val { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-muted); width: auto; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.ua-chrow-track { display: block; height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.ua-chrow-fill { display: block; height: 100%; border-radius: 4px; width: 0; animation: ua-chrow-fill 0.8s cubic-bezier(0.2,0.8,0.3,1) forwards; transition: filter 140ms; }
@keyframes ua-chrow-fill { from { transform: scaleX(0); transform-origin: left; } }
.ua-chrow:hover .ua-chrow-fill { filter: brightness(1.2) saturate(1.25); }.ua-perf-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px 7px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }
.ua-perf-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ua-perf-grid .ua-stat { padding: 11px 12px; position: relative; overflow: hidden; transition: background 160ms; }
.ua-perf-grid .ua-stat:nth-child(odd) { border-right: 1px solid var(--border); }
.ua-perf-grid .ua-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.ua-perf-grid .ua-stat::before { content: ""; position: absolute; inset: 0; background: var(--st); opacity: 0; transition: opacity 160ms; pointer-events: none; }
.ua-perf-grid .ua-stat:hover::before { opacity: 0.07; }
.ua-stat-top { display: flex; align-items: center; gap: 6px; justify-content: center; }
.ua-stat-ic { display: inline-flex; transition: transform 200ms cubic-bezier(0.34,1.5,0.6,1); }
.ua-perf-grid .ua-stat:hover .ua-stat-ic { transform: scale(1.25); }
.ua-stat-val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 3px; transition: transform 160ms; }
.ua-perf-grid .ua-stat:hover .ua-stat-val { transform: scale(1.06); }
.ua-menu-btn { display: flex; align-items: center; gap: 6px; width: 100%; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 12px; cursor: pointer; transition: border-color 120ms; }
.ua-menu-btn:hover, .ua-menu-btn.open { border-color: var(--accent); }
.ua-menu-cur { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 30px; }
.ua-menu-badge { flex-shrink: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--accent); color: var(--accent-fg, #fff); font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ua-menu-pop { position: absolute; width: 100%; left: 0; right: auto; top: calc(100% + 6px); bottom: auto; max-height: 220px; overflow-y: auto; }
.ua-stat:hover { border-color: var(--accent) !important; background: color-mix(in oklab, var(--accent), transparent 90%); }
.ua-stat:hover .eyebrow, .ua-stat:hover > div { color: var(--accent); }
/* orange hover on all inputs & selects */
.input:hover:not(:disabled), .select:hover:not(:disabled) { border-color: var(--accent); }
.btn.ua-pause:not(.primary):not(:disabled):hover { background: color-mix(in oklab, var(--accent), transparent 90%) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.btn.ua-pause.primary:not(:disabled):hover { background: var(--bg-2) !important; border-color: var(--accent) !important; color: var(--accent) !important; filter: none; }
.btn.ua-logout .ua-lbl-hover { display: none; }
.btn.ua-logout:hover .ua-lbl-rest { display: none; }
.btn.ua-logout:hover .ua-lbl-hover { display: inline; }
.btn.ua-login:not(:disabled):hover { background: color-mix(in oklab, var(--accent), transparent 90%) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.ua-toggle .ua-toggle-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; align-self: center; position: relative; top: -0.5px; transition: background 130ms; }
/* optically nudge status dots to the visual center of adjacent caps text */
.pill .dot, .card-header .label .dot { position: relative; top: 0.5px; }
.pill .pill-lbl { display: inline-flex; align-items: center; line-height: 1; position: relative; top: 1px; }
.pill .pill-lbl > span { display: inline-flex; align-items: center; }
.ua-toggle.on { background: color-mix(in oklab, var(--c-success), transparent 88%); border-color: color-mix(in oklab, var(--c-success), transparent 55%); color: var(--c-success); }
.ua-toggle.on .ua-toggle-dot { background: var(--c-success); }
.ua-toggle.on-danger { background: color-mix(in oklab, var(--c-danger), transparent 88%); border-color: color-mix(in oklab, var(--c-danger), transparent 55%); color: var(--c-danger); }
.ua-toggle.on-danger .ua-toggle-dot { background: var(--c-danger); }
.cx-user-menu-item.active { background: var(--accent-soft, var(--bg-2)); }
.cx-user-menu-item.danger { color: var(--c-danger); }
.cx-user-menu-div { height: 1px; background: var(--border); margin: 6px 2px; }
.hbtn-sw { width: 26px; height: 15px; border-radius: 8px; background: var(--border-strong, var(--border)); position: relative; flex-shrink: 0; transition: background 150ms; }
.hbtn-sw.on { background: var(--c-success); }
.hbtn-sw-dot { position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform 180ms cubic-bezier(0.34,1.4,0.64,1); }
.hbtn-sw.on .hbtn-sw-dot { transform: translateX(11px); }
/* align topbar right edge with workspace content (12px) so the chip lines up with the Phone column */
.topbar { padding-right: 12px; }
/* orange hover on all sidebar nav items */
.sidebar .nav-item:not(.active):hover { background: color-mix(in oklab, var(--accent), transparent 90%) !important; color: var(--accent) !important; }
.sidebar .nav-item:not(.active):hover .icon { color: var(--accent); }
/* reserved call-events area in the Phone widget */
.call-event { min-height: 86px; box-sizing: border-box; }.call-hist { height: 86px; box-sizing: border-box; position: relative; }
.call-hist-list-legacy { display: none; }
.call-event-idle { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--border); border-radius: 7px; color: var(--text-faint); font-size: 12px; }
/* recent-calls history inside the reserved call-events area */
.call-hist { border: 1px solid var(--border); border-radius: 7px; display: flex; flex-direction: column; overflow: hidden; }
/* reply template picker */
.tpl-pop { position: absolute; bottom: calc(100% + 4px); left: 10px; right: 10px; width: auto; max-height: 280px; overflow-y: auto; background: var(--elevated, var(--surface)); border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.tpl-pop-hd { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); padding: 5px 8px; }
.tpl-pop-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 7px; padding: 7px 8px; cursor: pointer; transition: background 120ms; }
.tpl-pop-item:hover { background: color-mix(in oklab, var(--accent), transparent 88%); }
.tpl-pop-name { font-size: 12.5px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.tpl-badge { color: var(--c-success); font-size: 11px; }
.tpl-pop-body { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-pop-empty { padding: 12px 8px; font-size: 12px; color: var(--text-faint); text-align: center; }
.tpl-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.call-hist-head { padding: 6px 9px 3px; }
.call-hist-list { overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; scrollbar-width: none; -ms-overflow-style: none; }
.call-hist-list::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }
.chl-thumb { position: absolute; right: 2px; top: 0; width: 4px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity 160ms; pointer-events: none; }
/* thin orange scrollbar (transparent track) for main content + table areas */
.main { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.main::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
/* table scrolls inside the card instead of the page */
.tbl-scroll { overflow-y: auto; overflow-x: auto; max-height: calc(100vh - 230px); scrollbar-width: none; -ms-overflow-style: none; }
.tbl-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }
.tbl-scroll-wrap { position: relative; min-height: 0; display: flex; flex-direction: column; }
.tbl-thumb { position: absolute; right: 2px; width: 4px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity 500ms; pointer-events: none; z-index: 3; }
.tbl-scroll .tbl thead th { position: sticky; top: 0; z-index: 1; background: var(--bg-2); }
.tbl-scroll .tbl thead th:has(.th-filter-menu) { z-index: 101; }
/* on list-table pages the table scrolls, so the page itself shouldn't */
.main:has(.tbl-scroll) { overflow: hidden; }
.main:has(.tbl-scroll) > .page { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; }
.main:has(.tbl-scroll) > .page > .card.flush:has(.tbl-scroll) { min-height: 0; display: flex; flex-direction: column; }
.main:has(.tbl-scroll) > .page > .card.flush:has(.tbl-scroll) .tbl-scroll { max-height: calc(100vh - 230px); min-height: 0; }
.main:has(.tbl-scroll) > .page > .card.flush:last-of-type { min-height: 0; display: flex; flex-direction: column; }
.main:has(.tbl-scroll) > .page > .card.flush:last-of-type .tbl-scroll { max-height: calc(100vh - 230px); min-height: 0; }
.main:has(.tbl-scroll) > .page > .card:not(.flush) { flex-shrink: 0; }
.btn.note-send { width: 92px; min-width: 92px; height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; }
.btn.note-send:disabled, .btn.note-send:disabled:hover { background: color-mix(in oklab, var(--accent), transparent 80%) !important; border-color: color-mix(in oklab, var(--accent), transparent 70%) !important; color: var(--accent-fg, #fff) !important; opacity: 1 !important; cursor: default; transform: none !important; filter: none !important; }
.btn.note-send .note-send-hover { display: none; }
.btn.reply-send { width: 92px; min-width: 92px; height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; }
.btn.reply-send:disabled, .btn.reply-send:disabled:hover { background: color-mix(in oklab, var(--accent), transparent 80%) !important; border-color: color-mix(in oklab, var(--accent), transparent 70%) !important; color: var(--accent-fg, #fff) !important; opacity: 1 !important; cursor: default; transform: none !important; filter: none !important; }
.btn.note-send:hover:not(:disabled) { background: var(--c-success) !important; border-color: oklch(0.5 0.16 152) !important; color: #fff !important; }
.btn.note-send:hover:not(:disabled) .note-send-lbl { display: none; }
.btn.note-send:hover:not(:disabled) .note-send-hover { display: inline-flex; align-items: center; justify-content: center; }
.btn.note-send:active:not(:disabled) { border-color: var(--c-success) !important; }
.btn.call-go:not(:disabled):hover { background: transparent !important; border-color: var(--c-success) !important; color: var(--c-success) !important; }
.btn.call-go:not(:disabled):active { background: var(--c-success) !important; border-color: var(--c-success) !important; color: #fff !important; }.call-hist-row { display: flex; align-items: center; gap: 8px; padding: 5px 9px; font-size: 11.5px; border-top: 1px solid var(--border); cursor: pointer; transition: background 120ms; }
.call-hist-row:hover { background: color-mix(in oklab, var(--accent), transparent 90%); }
.call-hist-row:hover .call-hist-name { color: var(--accent); }
@keyframes presence-pulse-kf { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.82); } }
.cx-presence.presence-pulse { animation: none; opacity: calc(0.55 + 0.45 * var(--pulseT)); transform: scale(calc(0.85 + 0.15 * var(--pulseT))); }
.btn.success:not(:disabled):hover { background: oklch(0.55 0.15 152); border-color: oklch(0.55 0.15 152); box-shadow: 0 3px 12px color-mix(in oklab, var(--c-success), transparent 45%); }
.btn.success:disabled { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text-faint) !important; opacity: 1; }
/* interactive bar chart */
.cx-bar { opacity: 0.85; transform-origin: bottom; transition: opacity 130ms, transform 130ms, filter 130ms; animation: cx-bar-grow 0.5s cubic-bezier(0.2,0.8,0.3,1) both; }
@keyframes cx-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }.cx-bar-col:hover .cx-bar { opacity: 1; transform: scaleY(1.05); filter: brightness(1.15) saturate(1.25); box-shadow: 0 0 12px -2px var(--accent); opacity: 1; transform: scaleY(1.04); filter: brightness(1.12) saturate(1.2); }
.cx-bar-val { transition: opacity 130ms, color 130ms; }.cx-bar-col:hover .cx-bar-lbl { color: var(--accent); }
.call-hist-row:first-child { border-top: 0; }
.call-hist-dir { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }
.call-hist-dir.in { background: color-mix(in oklab, var(--c-success), transparent 86%); color: var(--c-success); }
.call-hist-dir.out { background: color-mix(in oklab, var(--c-info), transparent 86%); color: var(--c-info); }
.call-hist-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.call-hist-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.call-hist-when { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); flex-shrink: 0; white-space: nowrap; }

/* notifications */
.notif-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-danger); color: #fff; font-size: 9.5px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg), 0 1px 3px rgba(0,0,0,0.3); letter-spacing: 0.02em; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }.notif-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; position: relative; transition: background 120ms; display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 10px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; transition: background 130ms, border-color 130ms, transform 130ms; position: relative; }.notif-item:hover { background: var(--bg-2); background: var(--bg-2); border-color: color-mix(in oklab, var(--accent), transparent 70%); transform: translateX(2px); }
.notif-unread { position: absolute; left: 1px; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 2px; background: var(--accent); }

/* slick notification panel */
.notif-panel { position: fixed; top: 60px; right: 12px; width: 340px; padding: 0 6px 6px; box-sizing: border-box; background: var(--elevated, var(--surface)); border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }x: 60; overflow: hidden; }
.notif-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.notif-count { font-size: 9.5px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-danger); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }gn-items: center; justify-content: center; flex-shrink: 0; }
.notif-action { border: 0; background: transparent; color: var(--accent); font-family: var(--font-sans); font-size: 12px; font-weight: 500; cursor: pointer; padding: 5px 9px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.notif-action:hover { background: var(--accent-soft, color-mix(in oklab, var(--accent), transparent 88%)); }
.notif-list { max-height: 380px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }.notif-item:active { transform: translateX(2px) scale(0.99); }
.notif-item.read { opacity: 1; }
.notif-item.read .notif-name { font-weight: 500; color: var(--text-muted); }
.notif-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-row1 { display: flex; align-items: baseline; gap: 8px; }
.notif-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.notif-time { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); flex-shrink: 0; }
.notif-body { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.notif-empty { padding: 30px 16px; text-align: center; font-size: 12.5px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; }
.notif-clear { display: block; width: calc(100% + 12px); margin: 0 -6px -6px; padding: 10px; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; background: transparent; color: var(--c-danger); font-family: var(--font-sans); font-size: 12.5px; cursor: pointer; transition: background 120ms, color 120ms; }
.notif-clear:hover { background: color-mix(in oklab, var(--c-danger), transparent 90%); color: var(--c-danger); }
.notif-clear:active { background: color-mix(in oklab, var(--c-danger), transparent 80%); }

/* logout button turns red on hover */
.btn.ua-logout:hover { background: var(--c-danger) !important; border-color: var(--c-danger) !important; color: #fff !important; box-shadow: none !important; transform: none !important; }

/* documentation pages */
.doc-body { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.6; color: var(--text); max-width: 880px; }
.doc-body h3 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; letter-spacing: -0.01em; }
.doc-body h3:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 6px; color: var(--text-muted); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--text); }
.doc-body ul { margin: 2px 0 8px; padding-left: 18px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.doc-body .doc-callout { display: flex; gap: 9px; padding: 10px 12px; border-radius: 8px; background: color-mix(in oklab, var(--accent), transparent 92%); border: 1px solid color-mix(in oklab, var(--accent), transparent 75%); margin: 8px 0; font-size: 12.5px; color: var(--text-muted); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 12.5px; }
.doc-body table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.doc-body table td { padding: 7px 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.doc-body table td:first-child { color: var(--text); white-space: nowrap; }

/* ============ documentation - website style (dx-) ============ */
@keyframes dx-rise { from { transform: translateY(14px); } to { transform: translateY(0); } }
.dx { max-width: 1080px; margin: 0 auto; padding: 0 8px 60px; }.dx-reveal { opacity: 1; animation: dx-rise 0.5s cubic-bezier(0.2,0.7,0.2,1) both; }
@media (prefers-reduced-motion: no-preference) {}
.dx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 500; }
.dx-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

/* hero */
.dx-hero { position: relative; text-align: center; padding: 54px 24px 40px; border: 1px solid var(--border); border-radius: var(--r-xl, 18px); overflow: hidden; background: var(--surface); margin-bottom: 36px; }
.dx-hero-grid { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(circle, var(--border) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, black 25%, transparent 75%); opacity: 0.6; }
.dx-hero-glow { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 720px; height: 420px; z-index: 0; background: radial-gradient(ellipse, color-mix(in oklab, var(--accent), transparent 80%), transparent 65%); filter: blur(24px); }
.dx-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dx-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; max-width: 18ch; text-wrap: balance; }
.dx-hero .dx-lead { font-size: clamp(15px, 2vw, 18px); color: var(--text-muted); line-height: 1.6; max-width: 62ch; text-wrap: pretty; }

/* section */
.dx-sec { margin: 44px 0; }
.dx-sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-width: 64ch; }
.dx-sec-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.dx-sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.dx-sec-head p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* flow-studio style block diagram */
.dx-flow { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--surface); padding: 26px 22px; overflow-x: auto; background-image: radial-gradient(circle, var(--border) 1px, transparent 1px); background-size: 22px 22px; }
.dx-flow-row { display: flex; align-items: center; gap: 0; min-width: max-content; }
.dx-node { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 11px; padding: 11px 14px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.25)); flex-shrink: 0; min-width: 150px; }
.dx-node .dx-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.dx-node .dx-nt { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.dx-node .dx-ns { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); margin-top: 2px; }
.dx-wire { width: 34px; height: 2px; background: var(--border-strong, var(--border)); position: relative; flex-shrink: 0; }
.dx-wire::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); border-left: 6px solid var(--border-strong, var(--border)); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.dx-flow-col { display: flex; flex-direction: column; gap: 10px; }

/* card grid */
.dx-grid { display: grid; gap: 14px; }
.dx-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.dx-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.dx-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.dx-card { border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.dx-card:hover { transform: translateY(-3px); border-color: var(--border-strong, var(--border)); box-shadow: var(--shadow-md); }
.dx-card .dx-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.dx-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.dx-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.dx-card .dx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.dx-tag { font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-muted); }

/* stat band */
.dx-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); overflow: hidden; background: var(--bg-2); }
.dx-stat { padding: 22px 20px; border-right: 1px solid var(--border); }
.dx-stat:last-child { border-right: 0; }
.dx-stat .v { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dx-stat .v .u { font-size: 16px; color: var(--accent); }
.dx-stat .l { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* feature split row */
.dx-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }.dx-feature.flip .dx-feat-visual { order: -1; order: 0; }
.dx-feat-copy { display: flex; flex-direction: column; gap: 14px; }
.dx-feat-list { display: flex; flex-direction: column; gap: 12px; }
.dx-feat-item { display: flex; gap: 11px; align-items: flex-start; }
.dx-feat-item .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft, color-mix(in oklab, var(--accent), transparent 85%)); color: var(--accent-soft-fg, var(--accent)); display: grid; place-items: center; flex-shrink: 0; }
.dx-feat-item .ft-t { font-weight: 600; font-size: 13.5px; }
.dx-feat-item .ft-d { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; line-height: 1.5; }

/* numbered steps */
.dx-steps { display: flex; flex-direction: column; gap: 0; }
.dx-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dx-step:last-child { border-bottom: 0; }
.dx-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-fg, #fff); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.dx-step .st { font-weight: 600; font-size: 13.5px; }
.dx-step .sd { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.55; }

/* callout */
.dx-callout { display: flex; gap: 11px; padding: 14px 16px; border-radius: var(--r-lg, 12px); background: color-mix(in oklab, var(--accent), transparent 93%); border: 1px solid color-mix(in oklab, var(--accent), transparent 78%); font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.dx-callout code { font-family: var(--font-mono); font-size: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: var(--text); }
.dx code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--text); }

/* page-by-page reference */
.dx-ref { display: flex; flex-direction: column; gap: 12px; }
.dx-ref-item { border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--surface); padding: 16px 18px; }
.dx-ref-head { display: flex; gap: 11px; align-items: flex-start; }
.dx-ref-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.dx-ref-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.dx-ref-purpose { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }
.dx-ref-sub { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 12px 0 5px; }
.dx-ref-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.dx-ref-list li { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; padding-left: 16px; position: relative; }
.dx-ref-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.dx-ref-list li strong { color: var(--text); font-weight: 600; }
.dx-ref-list.xref li::before { border-radius: 1px; background: var(--c-info); }
.dx-ref-list code, .dx-ref-purpose code { font-family: var(--font-mono); font-size: 11.5px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; color: var(--text); }

/* flow example + json viewer */
.dx-ex-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.dx-ex-tab { height: 30px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all 120ms; }
.dx-ex-tab:hover { border-color: var(--border-strong, var(--border)); color: var(--text); }
.dx-ex-tab.active { background: var(--accent-soft, color-mix(in oklab, var(--accent), transparent 85%)); color: var(--accent-soft-fg, var(--accent)); border-color: color-mix(in oklab, var(--accent), transparent 60%); }
.dx-ex-view { border: 1px solid var(--border); border-radius: var(--r-lg, 12px); overflow: hidden; }
.dx-ex-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.dx-ex-seg { display: flex; gap: 2px; padding: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; margin-left: auto; }
.dx-ex-seg button { height: 24px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; color: var(--text-muted); font-size: 11.5px; font-weight: 500; font-family: var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.dx-ex-seg button.active { background: var(--accent); color: var(--accent-fg, #fff); }
.dx-ex-body { padding: 20px; background: var(--surface); }
.dx-ex-json { margin: 0; padding: 18px 16px; background: var(--bg-2); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: var(--text-muted); overflow-x: auto; max-height: 360px; overflow-y: auto; white-space: pre; }
.dx-ex-json .k { color: var(--accent); }
.dx-ex-json .s { color: var(--c-success); }
.dx-ex-json .n { color: var(--c-info); }

@media (max-width: 920px) {
  .dx-grid.c4, .dx-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .dx-stats { grid-template-columns: repeat(2, 1fr); }
  .dx-stat:nth-child(2) { border-right: 0; }
  .dx-feature { grid-template-columns: 1fr; gap: 24px; }}

/* ===== Team Chat slide-over ===== */
.tc-panel {
  position: relative;
  width: 460px; max-width: 92vw; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  display: flex; flex-direction: column; z-index: 1;
  overflow: hidden; min-height: 0;
}
@keyframes tc-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.tc-head { display: flex; align-items: center; gap: 9px; height: 41px; box-sizing: border-box; padding: 0 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.tc-body { flex: 1; display: flex; min-height: 0; }
.tc-rail { width: 188px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; padding-bottom: 8px; }
.tc-conv { display: flex; align-items: center; gap: 8px; width: calc(100% - 12px); margin: 1px 6px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 12.5px; cursor: pointer; text-align: left; transition: background 120ms; }
.tc-conv:hover { background: color-mix(in oklab, var(--accent), transparent 90%); color: var(--accent); }
.tc-conv:active { background: color-mix(in oklab, var(--accent), transparent 80%); }
.tc-member:active { background: color-mix(in oklab, var(--accent), transparent 80%); color: var(--accent); }
.tc-member.sel { background: color-mix(in oklab, var(--accent), transparent 82%); color: var(--accent); }
.tc-member.self { cursor: default; }
.tc-member.self:hover { background: transparent; color: var(--text-muted); }
.tc-conv:hover .tc-hash, .tc-conv:hover .tc-caret { color: var(--accent); }
.tc-conv.active { background: color-mix(in oklab, var(--accent), transparent 86%); color: var(--accent); font-weight: 500; }
.tc-conv.active:hover { background: color-mix(in oklab, var(--accent), transparent 88%); }
.tc-conv.active:active { background: color-mix(in oklab, var(--accent), transparent 78%); }
.tc-caret { display: inline-flex; align-items: center; cursor: pointer; color: var(--text-faint); width: 14px; flex-shrink: 0; }
.tc-caret:hover { color: var(--text); }
.tc-member { display: flex; align-items: center; gap: 8px; width: calc(100% - 28px); margin: 1px 6px 1px 22px; padding: 4px 8px; border-radius: 7px; cursor: pointer; font-size: 12px; transition: background 120ms, color 120ms; color: var(--text-muted); }
.tc-member:hover { background: color-mix(in oklab, var(--accent), transparent 90%); color: var(--accent); }
.tc-av-btn { display: inline-flex; border-radius: 50%; transition: box-shadow 130ms, transform 110ms; }
.tc-av-btn:hover { box-shadow: 0 0 0 2px var(--accent); }
.tc-av-btn:active { transform: scale(0.92); }
.btn.primary:disabled { opacity: 0.45; cursor: default; }
.tc-composer .btn.primary:not(:disabled):hover { background: var(--c-success) !important; border-color: oklch(0.5 0.16 152) !important; color: #fff !important; }
.tc-call-chat-composer .btn.primary:not(:disabled):hover { background: var(--c-success) !important; border-color: oklch(0.5 0.16 152) !important; color: #fff !important; }
.tc-call-chat-composer .btn.primary:not(:disabled):active { border-color: var(--c-success) !important; }
.tc-composer .btn.primary:not(:disabled):active { border-color: var(--c-success) !important; }
.tc-thread-head .btn.sm:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 90%); }

/* center pill content (uppercase caps + dot) within the fixed pill height */
.pill { line-height: 1; padding-top: 0; padding-bottom: 0; justify-content: center; }
.tbl .pill { padding-top: 0; padding-bottom: 0; }
.tc-conv-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* incoming-call Answer / Reject buttons */
.call-btn {
  height: 20px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 160ms ease, filter 120ms ease;
}
.call-btn svg { transition: transform 200ms ease; }
.call-btn.answer { background: linear-gradient(180deg, oklch(0.7 0.16 150), oklch(0.62 0.16 152)); box-shadow: 0 1px 2px oklch(0.62 0.16 152 / 0.5); }
.call-btn.reject { background: linear-gradient(180deg, oklch(0.64 0.21 22), oklch(0.57 0.22 24)); box-shadow: 0 1px 2px oklch(0.57 0.22 24 / 0.5); }
.call-btn:hover { filter: brightness(1.05); }
.call-btn.answer:hover { box-shadow: 0 1px 2px oklch(0.62 0.16 152 / 0.5); }
.call-btn.answer:hover svg { transform: rotate(-12deg) scale(1.1); }
.call-btn.reject:hover { box-shadow: 0 1px 2px oklch(0.57 0.22 24 / 0.5); }
.call-btn.reject:hover svg { transform: rotate(135deg) scale(1.05); }
.call-btn:active { transform: scale(0.97); filter: brightness(0.96); }

/* workspace ticket hover border highlight */
.ws-ticket { transition: border-color 130ms ease, background 130ms ease; }
.ws-ticket:hover { border-color: color-mix(in oklab, var(--accent), transparent 45%) !important; background: color-mix(in oklab, var(--accent), transparent 94%) !important; }

/* pulsing My Open tab when a call is ringing - matches the topbar phone button */
.modal-tab.tab-ringing { color: var(--accent); background: color-mix(in oklab, var(--accent), transparent calc(88% - 16% * var(--pulseT))); }

/* topbar phone → workspace button pulsates orange on incoming call (subtle, like an enabled icon-btn) */
@keyframes phone-ring-flash { 0%, 100% { background: color-mix(in oklab, var(--accent), transparent 88%); } 50% { background: color-mix(in oklab, var(--accent), transparent 72%); } }
.topbar-phone.ringing { color: var(--accent) !important; background: color-mix(in oklab, var(--accent), transparent calc(88% - 16% * var(--pulseT))); }
.topbar-phone.ringing svg { opacity: calc(0.6 + 0.4 * var(--pulseT)); }
/* notifications bell pulses orange like the phone button when there are unread */
.icon-btn.notif-pulse { color: var(--accent) !important; background: color-mix(in oklab, var(--accent), transparent calc(88% - 16% * var(--pulseT))); }
.icon-btn.notif-pulse svg { opacity: calc(0.6 + 0.4 * var(--pulseT)); }
.icon-btn.notif-pulse:hover, .topbar-phone.ringing:hover { border-color: var(--accent) !important; }
/* Export buttons turn orange on hover across all pages */
.btn.btn-export:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 90%); }
.btn.btn-import:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 90%); }
/* dial-pad keys: orange hover + orange when pressed */
.btn.dialpad-key:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 90%); }
.btn.dialpad-key:active { color: var(--accent-fg, #fff); background: var(--accent); border-color: var(--accent); transform: scale(0.96); }
.btn.dialpad-key.key-flash, .btn.dialpad-key.key-flash:disabled { color: var(--accent-fg, #fff) !important; background: var(--accent) !important; border-color: var(--accent) !important; opacity: 1 !important; }
/* backspace button inside the dial input */
.dialpad-bksp { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; transition: background 120ms, color 120ms; }
.dialpad-bksp:hover:not(:disabled) { background: color-mix(in oklab, var(--accent), transparent 88%); color: var(--accent); }
.dialpad-bksp:active:not(:disabled) { background: var(--accent); color: var(--accent-fg, #fff); }
.dialpad-bksp:disabled { opacity: 0.35; cursor: default; }
.dialpad-clear-x { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; transition: background 120ms, color 120ms; }
.dialpad-clear-x:hover:not(:disabled) { background: color-mix(in oklab, var(--accent), transparent 88%); color: var(--accent); }
.dialpad-clear-x:active:not(:disabled) { background: var(--accent); color: var(--accent-fg, #fff); }
.dialpad-clear-x:disabled { opacity: 0.35; cursor: default; }
/* CRM panel ticket rows: grey border → orange hover → orange on click */
.crm-tk { background: var(--bg-2); border: 1px solid var(--border); transition: border-color 120ms, background 120ms; }
.crm-tk.clickable { cursor: pointer; }
.crm-tk.clickable:hover { border-color: var(--accent); }
.crm-tk.clickable:active { background: var(--accent-soft); border-color: var(--accent); }
.crm-tk.clickable:active, .crm-tk.clickable:active * { color: var(--accent-soft-fg, var(--accent)) !important; }
.crm-tk.selected { background: var(--accent-soft); border-color: var(--accent); }
.crm-tk.selected, .crm-tk.selected * { color: var(--accent-soft-fg, var(--accent)) !important; }

/* sortable / filterable table headers */
.tbl th { position: relative; }
/* numeric columns: center header label + cell content */
.tbl th.th-num .th-wrap { justify-content: center; }
.tbl td.td-num { text-align: center; }
.tbl th.th-num { text-align: center; }
/* first text column keeps left align */
.tbl th.th-text .th-wrap { justify-content: flex-start; }
.tbl td.td-text { text-align: left; }
/* min column width so headers never crush */
.tbl.tbl-grid th { min-width: 80px; }
.tbl.tbl-grid th.th-text { min-width: 120px; }
/* column auto-fit handle */
.tbl th .th-resize { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 3; user-select: none; }
.tbl th .th-resize::after { content: ""; position: absolute; top: 20%; bottom: 20%; left: 3px; width: 1px; background: var(--border); transition: background 120ms; }
.tbl th .th-resize:hover::after { background: var(--accent); }
.tbl th.col-resizing { user-select: none; }
.tbl th.col-resizing .th-resize::after { background: var(--accent); }
.tbl.tbl-grid { table-layout: fixed; }
.tbl.tbl-grid th[style*="width"] { overflow: hidden; }
.tbl th .th-wrap { display: flex; align-items: center; gap: 4px; width: 100%; }
.tbl th .th-label { display: inline-flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.tbl th .th-label .th-sort { margin-left: auto; }
.tbl th .th-label.sortable { cursor: pointer; }
.tbl th .th-label.sortable:hover { color: var(--accent); }
/* whole sortable header cell highlights on hover */
.tbl.tbl-grid th:hover { background: color-mix(in oklab, var(--accent), transparent 92%); }
.tbl.tbl-grid th:hover .th-sort { opacity: 1; color: var(--accent); }
.tbl th .th-sort { font-size: 8px; opacity: 0.4; }
.tbl th .th-sort.on { opacity: 1; color: var(--accent); }
.th-filter-wrap { position: relative; display: inline-flex; }
.tbl th .th-filter { border: 0; background: transparent; color: var(--text-faint); cursor: pointer; padding: 2px; border-radius: 4px; display: grid; place-items: center; }
.tbl th .th-filter:hover { color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 88%); }
.tbl th .th-filter.on { color: var(--accent); }
.th-filter-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 100; min-width: 130px; max-height: 240px; overflow-y: auto; background: var(--elevated, var(--surface)); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 4px; display: flex; flex-direction: column; gap: 1px; }
.th-filter-menu button { text-align: left; border: 0; background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; padding: 6px 9px; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.th-filter-menu button:hover { background: color-mix(in oklab, var(--accent), transparent 88%); color: var(--accent); }
.th-filter-menu button.active { background: var(--accent-soft); color: var(--accent-soft-fg, var(--accent)); }
/* clearer accent-tinted hover on table rows */
.tbl tbody tr:hover td { background: color-mix(in oklab, var(--accent), transparent 92%) !important; }
.tbl tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
/* individual cell highlights stronger when hovered directly */
.tbl tbody tr:hover td:hover { background: color-mix(in oklab, var(--accent), transparent 80%) !important; }
/* row-action (RowMenu) cell: center its button vertically + horizontally */
.tbl tbody td:last-child { text-align: center !important; vertical-align: middle; }
.tbl tbody td:last-child > * { display: inline-flex; align-items: center; justify-content: center; }
/* inline cell editing */
.tbl td .cell-edit { height: 26px; width: 100%; min-width: 0; box-sizing: border-box; font-size: 12px; padding: 0 6px; }
.tbl td.td-editable { cursor: cell; }
/* portal-styled inline cell dropdown */
.cell-select-wrap { position: relative; width: 100%; min-width: 0; }
.cell-select-cur { display: inline-flex; align-items: center; gap: 5px; justify-content: center; height: 26px; max-width: 100%; padding: 0 8px; border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--surface); font-size: 12px; color: var(--text); white-space: nowrap; box-sizing: border-box; }
.cell-select-menu { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); min-width: 100%; max-height: 240px; overflow-y: auto; background: var(--elevated, var(--surface)); border: 1px solid var(--accent); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 4px; z-index: 40; display: flex; flex-direction: column; gap: 1px; }
.cell-select-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 12px; cursor: pointer; text-align: left; white-space: nowrap; transition: background 120ms, color 120ms; }
.cell-select-opt:hover { background: color-mix(in oklab, var(--accent), transparent 88%); color: var(--accent); }
.cell-select-opt.active { background: var(--accent-soft); color: var(--accent-soft-fg, var(--accent)); }
/* topbar icon buttons get an orange border on hover in both active and inactive states */
.topbar-right .icon-btn:not(.notif-pulse):hover { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 90%); }
.topbar-right .icon-btn.active:hover { background: var(--accent-soft); }
.topbar-right .icon-btn:not(.notif-pulse):active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg, #fff); }
.topbar-right .icon-btn.topbar-phone:active svg { color: #000; }
@keyframes phone-icon-flash { 0%, 100% { color: color-mix(in oklab, var(--accent), transparent 15%); } 50% { color: var(--accent); } }

/* incoming-call sound-wave equalizer next to the phone button */
.ring-wave { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 30px; height: 30px; flex-shrink: 0; }
.ring-wave i { width: 2px; height: 4px; border-radius: 1px; background: var(--accent); animation: ring-wave-bar 0.9s ease-in-out infinite; }
.ring-wave i:nth-child(1) { animation-delay: 0s; }
.ring-wave i:nth-child(2) { animation-delay: 0.15s; }
.ring-wave i:nth-child(3) { animation-delay: 0.3s; }
.ring-wave i:nth-child(4) { animation-delay: 0.15s; }
.ring-wave i:nth-child(5) { animation-delay: 0s; }
@keyframes ring-wave-bar { 0%, 100% { height: 4px; opacity: 0.5; } 50% { height: 15px; opacity: 1; } }
@keyframes ftPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* shared dropdown popover + hover row (Active Conversation pickers) */
.cx-popover { position: absolute; top: calc(100% + 6px); right: 0; overflow-y: auto; background: var(--elevated, var(--surface)); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.rm-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-family: var(--font-sans); font-size: 12.5px; cursor: pointer; text-align: left; }
.rm-item:hover { background: var(--bg-2); }
.cx-hover-row { cursor: pointer; }
.cx-hover-row:hover { background: var(--bg-2); }

/* sidebar visibility modes: open / mini / hidden */
.nav-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; transition: background 120ms, color 120ms; flex-shrink: 0; margin-left: auto; margin-right: 4px; }
.nav-toggle:hover { background: var(--bg-2); color: var(--text); }
.sidebar .nav-section .sec-icon { display: inline-flex; align-items: center; color: var(--text-faint); flex-shrink: 0; }
.sidebar .nav-section.active .sec-icon { color: var(--accent); }
.sidebar .nav-section.collapsible:hover .sec-icon { color: var(--accent); }.app-shell[data-nav="mini"] .sidebar .nav-section .sec-icon { color: var(--text-muted); color: var(--text-muted); display: inline-flex; }
/* brand is a fixed-width header zone - never resizes with nav state, so the toggle never moves */
.topbar .brand { width: 224px; box-sizing: border-box; padding-right: 12px; }
.app-shell[data-nav="open"] { grid-template-columns: 240px 1fr; }
.app-shell[data-nav="mini"] { grid-template-columns: 64px 1fr; }
.app-shell[data-nav="hidden"] { grid-template-columns: 1fr; }
.app-shell[data-nav="hidden"] .sidebar { display: none; }
.sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }
.sidebar > .tbl-thumb { position: absolute; right: 2px; width: 4px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity 400ms; pointer-events: none; z-index: 5; top: 0; }
.app-shell[data-nav="mini"] .sidebar { overflow: visible; }
.app-shell[data-nav="mini"] .sidebar .nav-item { justify-content: center; padding: 8px 0; gap: 0; position: relative; }
.app-shell[data-nav="mini"] .sidebar .nav-item .label { display: none; }
.app-shell[data-nav="mini"] .sidebar .nav-item .badge { position: absolute; top: 3px; right: 8px; }
.app-shell[data-nav="mini"] .sidebar .nav-item:has(.badge) .icon { display: none; }
.app-shell[data-nav="mini"] .sidebar .nav-item:has(.badge) .badge { position: static; top: auto; right: auto; }
.app-shell[data-nav="mini"] .sidebar .nav-section { justify-content: center; padding-left: 0; padding-right: 0; }
.app-shell[data-nav="mini"] .sidebar .nav-section > span:not(.sec-caret):not(.sec-icon), 
.app-shell[data-nav="mini"] .sidebar .nav-section .sec-count { display: none; }.tc-badge { background: var(--accent); color: var(--accent-fg); font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; flex-shrink: 0; }
.tc-badge.muted { background: var(--bg-2); color: var(--text-muted); }
.cx-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--text); white-space: pre; margin: 0; }
.dx-code code { font-family: inherit; background: none; border: 0; padding: 0; color: inherit; }
.dx-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.dx-list li::marker { color: var(--accent); }
.tc-empty-hint { font-size: 11px; color: var(--text-faint); padding: 4px 10px 6px; }
.cx-pill-row { display: flex; gap: 4px; flex-wrap: wrap; }
.cx-name-cell { display: inline-flex; gap: 8px; align-items: center; }
.cx-icon-box { width: 24px; height: 24px; border-radius: 7px; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cx-name { font-weight: 500; }
.cx-mono-sm { font-family: var(--font-mono); font-size: 11.5px; }
.cx-mono-xs { font-family: var(--font-mono); font-size: 11px; }
.tc-dm-av { position: relative; display: inline-flex; flex-shrink: 0; }
.tc-dot { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--surface); }
.tc-thread { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tc-thread-head { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.tc-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.tc-msg { display: flex; gap: 8px; align-items: flex-start; }
.tc-msg.me { flex-direction: row-reverse; }
.tc-msg-from { font-size: 9.5px; font-family: var(--font-mono); color: var(--text-faint); margin-bottom: 2px; }
.tc-bubble { padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: var(--bg-2); color: var(--text); font-size: 12.5px; line-height: 1.45; }
.tc-msg.me .tc-bubble { border-radius: 12px 12px 3px 12px; background: var(--accent); color: var(--accent-fg, #fff); }
.tc-composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); flex-shrink: 0; }
.tc-composer .input { flex: 1; }

/* Team Chat call overlay */
.tc-call { position: absolute; inset: 0; background: oklch(0.16 0.01 250 / 0.97); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: space-between; z-index: 5; padding: 32px 0 28px; animation: tc-in 160ms ease; }
.tc-call-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.tc-call-avatar { position: relative; }
.tc-call-avatar::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0.5; animation: tc-pulse 1.6s ease-out infinite; }
@keyframes tc-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.35); opacity: 0; } }
.tc-call-video { position: relative; width: 86%; aspect-ratio: 3/4; max-height: 60%; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.tc-call-video > img { width: 100%; height: 100%; object-fit: cover; }
.tc-call-self { position: absolute; right: 12px; bottom: 12px; width: 84px; aspect-ratio: 3/4; border-radius: 9px; overflow: hidden; border: 2px solid rgba(255,255,255,0.5); box-shadow: var(--shadow-lg); }
.tc-call-self > img { width: 100%; height: 100%; object-fit: cover; }
.tc-call-name { font-size: 18px; font-weight: 600; color: #fff; }
.tc-call-status { font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.tc-call-controls { display: flex; gap: 16px; align-items: center; }
.tc-call-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 140ms; }
.tc-call-btn:hover { background: rgba(255,255,255,0.24); }
.tc-call-btn.off { background: #fff; color: oklch(0.2 0.01 250); }
.tc-call-btn.active { background: var(--accent); color: var(--accent-fg, #fff); }
.tc-call-btn.end { background: var(--c-danger); }
.tc-call-btn.end:hover { background: oklch(0.6 0.21 25); }
/* screen-share mock */
.tc-call-screen .tc-screen-mock { width: 100%; height: 100%; background: oklch(0.22 0.01 250); display: flex; flex-direction: column; }
.tc-screen-bar { height: 22px; background: oklch(0.27 0.01 250); display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.tc-screen-bar span { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.45 0.02 250); }
.tc-screen-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 12px; }
/* in-call chat drawer */
.tc-call-chat { width: 88%; max-height: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; margin-bottom: 8px; }
.tc-call-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.tc-call-chat-msgs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; min-height: 60px; }
.tc-call-chat-composer { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border); }
.tc-call-chat-composer .btn.primary { height: 30px; }
.tc-call-chat-composer .input { flex: 1; height: 30px; line-height: 30px; padding-top: 0; padding-bottom: 0; font-size: 12px; }
/* group conference */
.tc-conf-head { font-size: 11.5px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }
.tc-conf-head .mono { color: #fff; }
.tc-conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 90%; }
.tc-conf-tile { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.tc-conf-tile > img { width: 100%; height: 100%; object-fit: cover; }
.tc-conf-label { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 500; color: #fff; background: rgba(0,0,0,0.5); padding: 1px 7px; border-radius: 5px; }
.tc-conf-share { width: 90%; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; }

/* global eyebrow / micro-label - unify all the mono uppercase mini-labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  line-height: 1.3;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.ai { color: var(--c-ai); }
