/* The "next" interface (2.37.0): the same markup as the classic interface,
   restyled. Every rule is scoped to html.ui-next[data-ui="next"], which
   ui-next.js sets before the first paint; the classic interface ignores this
   file. The three themes still apply: glass and minimal are the light look,
   graphite (Black Diamond) the dark one. Loaded last, so it wins the cascade
   at equal specificity; the doubled class on html wins against the theme
   sheets' two-class rules. */

html.ui-next.ui-next[data-ui="next"] {
    --nx-bg: #f4f6fa;
    --nx-bg-2: #eaeef5;
    --nx-surface: #ffffff;
    --nx-surface-2: #f7f9fc;
    --nx-line: rgba(15, 23, 42, 0.08);
    --nx-line-strong: rgba(15, 23, 42, 0.16);
    --nx-text: #0f172a;
    --nx-text-2: #5b6472;
    --nx-text-3: #6b7482;
    --nx-brand: #2563eb;
    --nx-fill: #2563eb;
    --nx-fill-hover: #1d4ed8;
    --nx-brand-text: #1d4ed8;
    --nx-brand-soft: rgba(37, 99, 235, 0.10);
    --nx-call: #15803d;
    --nx-call-text: #166534;
    --nx-end: #dc2626;
    --nx-warn: #b45309;
    --nx-warn-soft: rgba(180, 83, 9, 0.12);
    --nx-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.07);
    --nx-r: 16px;
    --nx-r-sm: 12px;
    --nx-nav-bg: rgba(255, 255, 255, 0.88);
    --nx-key: #ffffff;
    --nx-key-text: #0f172a;
    --nx-ctl: rgba(255, 255, 255, 0.12);
    --bg-soft: var(--nx-bg);
    --bg-strong: var(--nx-bg-2);
    --surface: var(--nx-surface);
    --surface-strong: var(--nx-surface);
    --border: var(--nx-line);
    --border-strong: var(--nx-line-strong);
    --text: var(--nx-text);
    --muted: var(--nx-text-2);
    --primary: var(--nx-brand);
    --primary-strong: var(--nx-brand-text);
    --primary-soft: var(--nx-brand-soft);
    --radius-card: var(--nx-r);
    --radius-lg: var(--nx-r);
    --radius-md: var(--nx-r-sm);
    --shadow: var(--nx-shadow);
    --shadow-soft: var(--nx-shadow);
    --clx-ink: var(--nx-text);
    --clx-edge: var(--nx-line-strong);
    --font-display: var(--font-body);
}
html.ui-next.ui-next[data-ui="next"][data-theme="graphite"] {
    --nx-bg: #0b0f17;
    --nx-bg-2: #111724;
    --nx-surface: #151c2a;
    --nx-surface-2: #1b2334;
    --nx-line: rgba(255, 255, 255, 0.08);
    --nx-line-strong: rgba(255, 255, 255, 0.18);
    --nx-text: #eef2f8;
    --nx-text-2: #a7b0c0;
    --nx-text-3: #98a2b3;
    --nx-brand: #4f8bff;
    --nx-brand-text: #9dc0ff;
    --nx-brand-soft: rgba(79, 139, 255, 0.18);
    --nx-call: #15803d;
    --nx-call-text: #86efac;
    --nx-end: #ef4444;
    --nx-warn: #fbbf24;
    --nx-warn-soft: rgba(251, 191, 36, 0.14);
    --nx-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --nx-nav-bg: rgba(21, 28, 42, 0.9);
    --nx-key: #1b2334;
    --nx-key-text: #eef2f8;
    --success: #4ade80;
    --success-strong: #86efac;
    --danger: #f87171;
    --ring: 0 0 0 3px rgba(79, 139, 255, 0.5);
}


html.ui-next.ui-next[data-ui="next"][data-theme="minimal"] {
    --nx-brand: #202a37;
    --nx-fill: #202a37;
    --nx-fill-hover: #111821;
    --nx-brand-text: #111821;
    --nx-brand-soft: rgba(32, 42, 55, 0.08);
    --ring: 0 0 0 3px rgba(32, 42, 55, 0.35);
}

/* ---------- frame ---------- */
html.ui-next.ui-next[data-ui="next"] body.app-body { background: var(--nx-bg); color: var(--nx-text); }
html.ui-next.ui-next[data-ui="next"] .app-shell { gap: 0; background: var(--nx-bg); }
html.ui-next.ui-next[data-ui="next"] .app-main { border-radius: 0; padding: 0 14px; scrollbar-width: thin; }
html.ui-next.ui-next[data-ui="next"] .tab-content { gap: 14px; padding-bottom: 12px; }

/* header: logo, name, presence dot, number, three small actions */
html.ui-next.ui-next[data-ui="next"] .app-header.app-header-slim {
    min-height: 52px; padding: 10px 6px 6px 14px; gap: 8px;
    background: transparent; border: 0; box-shadow: none; border-radius: 0;
}
html.ui-next.ui-next[data-ui="next"] .brand-logo { width: 28px; height: 28px; border-radius: 50%; flex: none; }
html.ui-next.ui-next[data-ui="next"] .identity-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--nx-text); }
html.ui-next.ui-next[data-ui="next"] .identity-number { font-size: 13px; color: var(--nx-text-2); font-variant-numeric: tabular-nums; }
html.ui-next.ui-next[data-ui="next"] .status-badge.status-badge-slim { background: transparent; border: 0; padding: 0; gap: 4px; }
html.ui-next.ui-next[data-ui="next"] .status-badge .status-text { font-size: 12px; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .header-actions { gap: 2px; }
html.ui-next.ui-next[data-ui="next"] .header-actions .copy-chip {
    border-radius: 999px; background: transparent; border: 0; box-shadow: none; color: var(--nx-text-2);
}
html.ui-next.ui-next[data-ui="next"] .header-actions .copy-chip:hover { background: var(--nx-line); }
html.ui-next.ui-next[data-ui="next"] .header-actions .copy-chip[aria-pressed="true"] { background: var(--nx-brand-soft); color: var(--nx-brand-text); }

/* reminders and the return bar */
html.ui-next.ui-next[data-ui="next"] .name-reminder, html.ui-next.ui-next[data-ui="next"] .terms-reminder {
    margin: 0 14px 8px; border-radius: var(--nx-r-sm); background: var(--nx-brand-soft); border: 0; color: var(--nx-brand-text); box-shadow: none;
}
html.ui-next.ui-next[data-ui="next"] .call-return-bar {
    margin: 0 14px 8px; border-radius: var(--nx-r-sm); background: var(--nx-call); color: #fff; border: 0; box-shadow: none; font-weight: 600;
}
html.ui-next.ui-next[data-ui="next"] .call-return-bar .call-return-text, html.ui-next.ui-next[data-ui="next"] .call-return-bar .call-return-timer, html.ui-next.ui-next[data-ui="next"] .call-return-bar .call-return-cta { color: #fff; }

/* ---------- cards and type ---------- */
html.ui-next.ui-next[data-ui="next"] .card {
    background: var(--nx-surface); border: 0; border-radius: var(--nx-r); box-shadow: var(--nx-shadow); padding: 16px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.ui-next.ui-next[data-ui="next"] .section-topline { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nx-text-3); }
html.ui-next.ui-next[data-ui="next"] .section-title { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--nx-text); }
html.ui-next.ui-next[data-ui="next"] .section-note { color: var(--nx-text-2); font-size: 13.5px; line-height: 1.45; }
html.ui-next.ui-next[data-ui="next"] .count-pill, html.ui-next.ui-next[data-ui="next"] .mini-badge, html.ui-next.ui-next[data-ui="next"] .count-chip {
    background: var(--nx-bg-2); color: var(--nx-text-2); border: 0; border-radius: 999px; font-weight: 600;
}

/* buttons: pills, one accent */
html.ui-next.ui-next[data-ui="next"] .primary-button {
    background: var(--nx-fill); color: #fff; border: 0; border-radius: 999px; box-shadow: none; font-weight: 600; text-shadow: none;
    background-image: none;
}
html.ui-next.ui-next[data-ui="next"] .primary-button:hover { background: var(--nx-fill-hover); }
html.ui-next.ui-next[data-ui="next"] .primary-button.danger-button { background: var(--nx-end); }
html.ui-next.ui-next[data-ui="next"] .soft-button {
    background: var(--nx-bg-2); color: var(--nx-text); border: 0; border-radius: 999px; box-shadow: none; font-weight: 600; background-image: none;
}
html.ui-next.ui-next[data-ui="next"] .soft-button.danger-soft { color: #b91c1c; }
html.ui-next.ui-next[data-ui="next"][data-theme="graphite"] .soft-button.danger-soft { color: #fca5a5; }
html.ui-next.ui-next[data-ui="next"] .icon-pill, html.ui-next.ui-next[data-ui="next"] .icon-button {
    background: var(--nx-bg-2); border: 0; box-shadow: none; border-radius: 999px; color: var(--nx-text);
}
html.ui-next.ui-next[data-ui="next"] input[type="text"], html.ui-next.ui-next[data-ui="next"] input[type="tel"],
html.ui-next.ui-next[data-ui="next"] input[type="password"], html.ui-next.ui-next[data-ui="next"] input[type="search"],
html.ui-next.ui-next[data-ui="next"] textarea, html.ui-next.ui-next[data-ui="next"] select {
    background: var(--nx-surface-2); border: 1px solid var(--nx-line-strong); border-radius: 14px; color: var(--nx-text); box-shadow: none;
}

/* ---------- bottom navigation ---------- */
html.ui-next.ui-next[data-ui="next"] .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 6px 4px 0;
    background: var(--nx-nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--nx-line); border-radius: 0; box-shadow: none;
}
html.ui-next.ui-next[data-ui="next"] .app-shell { padding-bottom: 0; }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; --clx-icon-size: 24px; min-height: 54px; padding: 6px 0 8px; border-radius: 12px;
    background: transparent; border: 0; box-shadow: none; color: var(--nx-text-3); font-size: 11px; font-weight: 500;
}
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item .nav-icon { width: 26px; height: 26px; background: transparent; border: 0; box-shadow: none; color: inherit; }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item .nav-icon svg { width: 24px; height: 24px; }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item .nav-label { position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip-path: none; font-size: 11px; line-height: 1.1; color: inherit; white-space: nowrap; }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item.active { color: var(--nx-brand); background: transparent; }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item.active .nav-icon { background: transparent; color: var(--nx-brand); }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item .nav-badge {
    position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--nx-fill); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 0;
}
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-item { position: relative; }
html.ui-next.ui-next[data-ui="next"] .bottom-nav .nav-avatar { width: 26px; height: 26px; font-size: 11px; }

/* ---------- keypad (Calls) ---------- */
html.ui-next.ui-next[data-ui="next"] .dialer-stack { gap: 10px; }
html.ui-next.ui-next[data-ui="next"] .keypad-recent { padding: 0; }
html.ui-next.ui-next[data-ui="next"] .keypad-recent-list { display: grid; gap: 0; background: var(--nx-surface); border-radius: var(--nx-r); box-shadow: var(--nx-shadow); overflow: hidden; }
html.ui-next.ui-next[data-ui="next"] .dialer-card { background: transparent; box-shadow: none; padding: 0 4px 6px; }
html.ui-next.ui-next[data-ui="next"] .dialer-display { padding: 4px 0 0; }
html.ui-next.ui-next[data-ui="next"] .dialer-number-row { gap: 6px; }
html.ui-next.ui-next[data-ui="next"] .dialer-number {
    font-family: var(--font-body); font-size: 32px; font-weight: 600; letter-spacing: 0.04em; text-align: center; background: transparent; border: 0; box-shadow: none; color: var(--nx-text);
}
html.ui-next.ui-next[data-ui="next"] .dialer-number::placeholder { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--nx-text-3); }
html.ui-next.ui-next[data-ui="next"] .dialer-caption { display: none; }
html.ui-next.ui-next[data-ui="next"] .paste-chip { width: 40px; height: 40px; border-radius: 999px; background: var(--nx-bg-2); border: 0; box-shadow: none; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .dialpad-grid { gap: 8px 14px; margin: 4px 6px 10px; }
html.ui-next.ui-next[data-ui="next"] .dial-key {
    background: var(--nx-key); color: var(--nx-key-text); border: 0; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05); background-image: none;
    display: grid; place-content: center; gap: 0; line-height: 1;
}
html.ui-next.ui-next[data-ui="next"] .dial-key:active { background: var(--nx-bg-2); transform: scale(0.98); }
html.ui-next.ui-next[data-ui="next"] .dial-digit { font-family: var(--font-body); font-size: 26px; font-weight: 500; color: inherit; background: none; -webkit-text-fill-color: currentColor; }
html.ui-next.ui-next[data-ui="next"] .dial-digit::before, html.ui-next.ui-next[data-ui="next"] .dial-digit::after { display: none; }
html.ui-next.ui-next[data-ui="next"] .dial-letters { font-size: 10px; letter-spacing: 0.16em; font-weight: 600; color: var(--nx-text-3); margin-top: 2px; }
html.ui-next.ui-next[data-ui="next"] .dial-letters.dial-brand { letter-spacing: 0.02em; text-transform: none; }
html.ui-next.ui-next[data-ui="next"] .dial-key-mark { display: none; }
html.ui-next.ui-next[data-ui="next"] .dialpad-actions { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 10px; padding: 0 4px; }
html.ui-next.ui-next[data-ui="next"] .dialpad-actions .add-contact-button { grid-column: 1; }
html.ui-next.ui-next[data-ui="next"] .dialpad-actions .dial-call-button {
    grid-column: 2; min-height: 56px; border-radius: 999px; background: var(--nx-call); color: #fff; font-size: 16px; box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}
html.ui-next.ui-next[data-ui="next"] .dialpad-actions .dial-call-button:hover { background: #166534; }
html.ui-next.ui-next[data-ui="next"] .dialpad-actions .dial-call-button:disabled { box-shadow: none; opacity: 0.5; }
html.ui-next.ui-next[data-ui="next"] .dialpad-actions .icon-pill { grid-column: 3; width: 48px; height: 48px; justify-self: center; }
html.ui-next.ui-next[data-ui="next"] .line-preview-card { padding: 12px 14px; }
html.ui-next.ui-next[data-ui="next"] .line-preview-avatar { width: 44px; height: 44px; border-radius: 999px; }

/* banners on the keypad */
html.ui-next.ui-next[data-ui="next"] .update-card, html.ui-next.ui-next[data-ui="next"] .setup-banner { padding: 14px 16px; }
html.ui-next.ui-next[data-ui="next"] .lifeline-banner { background: var(--nx-warn-soft); box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .lifeline-banner strong { color: var(--nx-warn); }
html.ui-next.ui-next[data-ui="next"] .lifeline-pill { background: var(--nx-warn); color: #fff; }
html.ui-next.ui-next[data-ui="next"] .setup-item { border-top: 1px solid var(--nx-line); padding: 12px 0; }
html.ui-next.ui-next[data-ui="next"] .setup-item-btn { min-height: 44px; padding: 0 16px; }

/* ---------- contacts rows (Contacts tab and keypad) ---------- */
html.ui-next.ui-next[data-ui="next"] .history-card { padding: 14px 0 0; overflow: hidden; }
html.ui-next.ui-next[data-ui="next"] .history-card .section-header, html.ui-next.ui-next[data-ui="next"] .chat-card .section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 10px; }
html.ui-next.ui-next[data-ui="next"] .history-card .count-pill { position: static; flex: none; box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .history-card .section-header .section-note { display: none; }
html.ui-next.ui-next[data-ui="next"] .history-card .section-topline { display: none; }
html.ui-next.ui-next[data-ui="next"] .history-card .section-title { font-size: 22px; }
html.ui-next.ui-next[data-ui="next"] .people-search {
    display: flex; align-items: center; gap: 10px; margin: 0 14px 10px; height: 44px; padding: 0 12px;
    background: var(--nx-surface-2); border: 1px solid var(--nx-line); border-radius: var(--nx-r-sm); color: var(--nx-text-3);
}
html.ui-next.ui-next[data-ui="next"] .people-search:focus-within { border-color: var(--nx-brand); box-shadow: 0 0 0 3px var(--nx-brand-soft); }
html.ui-next.ui-next[data-ui="next"] .people-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--nx-text); outline: 0; padding: 0; }
html.ui-next.ui-next[data-ui="next"] .people-search input::placeholder { color: var(--nx-text-3); }
html.ui-next.ui-next[data-ui="next"] .people-search-empty { display: grid; justify-items: center; gap: 12px; padding: 28px 16px 24px; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .people-search-empty p { margin: 0; font-weight: 600; color: var(--nx-text); }
html.ui-next.ui-next[data-ui="next"] .people-search-empty.hidden { display: none; }
html.ui-next.ui-next[data-ui="next"] .people-search-call { background: var(--nx-call); }
html.ui-next.ui-next[data-ui="next"] .history-list { display: grid; gap: 0; }
html.ui-next.ui-next[data-ui="next"] .history-item.search-miss { display: none; }
html.ui-next.ui-next[data-ui="next"] .history-item {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px; padding: 9px 10px 9px 14px; min-height: 64px; margin: 0;
    background: transparent; border: 0; border-top: 1px solid var(--nx-line); border-radius: 0; box-shadow: none;
}
html.ui-next.ui-next[data-ui="next"] .history-item:first-child { border-top: 0; }
html.ui-next.ui-next[data-ui="next"] .history-item.is-unread { background: var(--nx-brand-soft); }
html.ui-next.ui-next[data-ui="next"] .history-item .history-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin-inline-start: auto; flex: 0 0 auto; }
html.ui-next.ui-next[data-ui="next"] .history-left { display: flex; align-items: center; gap: 12px; flex: 1 1 140px; min-width: 0; background: none; border: 0; padding: 0; text-align: start; color: inherit; }
html.ui-next.ui-next[data-ui="next"] .history-avatar { width: 46px; height: 46px; border-radius: 999px; font-size: 15px; font-weight: 700; flex: none; box-shadow: none; border: 0; }
html.ui-next.ui-next[data-ui="next"] .history-copy { min-width: 0; flex: 1 1 auto; }
html.ui-next.ui-next[data-ui="next"] .history-name { font-size: 16px; font-weight: 600; color: var(--nx-text); flex-wrap: nowrap; min-width: 0; }
html.ui-next.ui-next[data-ui="next"] .history-meta { font-size: 13px; color: var(--nx-text-2); overflow-wrap: normal; font-variant-numeric: tabular-nums; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
html.ui-next.ui-next[data-ui="next"] .history-unread { background: var(--nx-fill); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
html.ui-next.ui-next[data-ui="next"] .history-item .history-action, html.ui-next.ui-next[data-ui="next"] .history-item .history-chip {
    flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; min-width: 44px; border-radius: 999px; background: transparent; border: 0; box-shadow: none; color: var(--nx-text-2); padding: 0; --clx-icon-size: 22px;
}
html.ui-next.ui-next[data-ui="next"] .history-item .history-action:hover, html.ui-next.ui-next[data-ui="next"] .history-item .history-chip:hover { background: var(--nx-line); }
/* Call is the one filled button of a row and sits last, under the thumb */
html.ui-next.ui-next[data-ui="next"] .history-item .history-action[data-clx-icon="call"] { background: var(--nx-call); color: #fff; margin-inline-start: 4px; }
html.ui-next.ui-next[data-ui="next"] .history-item .history-action[data-clx-icon="call"]:hover { background: #166534; }
/* A message chip shows only when the line left a message of that kind */
html.ui-next.ui-next[data-ui="next"] .history-chip[data-clx-icon="video-play"]:not(:has(.history-chip-badge)), html.ui-next.ui-next[data-ui="next"] .history-chip[data-clx-icon="headphones"]:not(:has(.history-chip-badge)) { display: none; }
html.ui-next.ui-next[data-ui="next"] .history-chip.has-new { color: var(--nx-brand); }
html.ui-next.ui-next[data-ui="next"] .history-chip-badge { background: var(--nx-end); color: #fff; border: 0; box-shadow: 0 0 0 2px var(--nx-surface); }
html.ui-next.ui-next[data-ui="next"] .empty-state { padding: 40px 16px; text-align: center; color: var(--nx-text-2); }

/* ---------- chat ---------- */
html.ui-next.ui-next[data-ui="next"] .chat-card { padding: 14px 0 0; overflow: hidden; }
html.ui-next.ui-next[data-ui="next"] .chat-card .section-topline, html.ui-next.ui-next[data-ui="next"] .chat-card .section-note { display: none; }
html.ui-next.ui-next[data-ui="next"] .chat-card .section-title { font-size: 22px; }
html.ui-next.ui-next[data-ui="next"] .chat-thread-row { padding: 11px 14px; min-height: 64px; border-top: 1px solid var(--nx-line); border-radius: 0; background: transparent; margin: 0; }
html.ui-next.ui-next[data-ui="next"] .chat-thread-row:first-child { border-top: 0; }
html.ui-next.ui-next[data-ui="next"] .chat-avatar { width: 46px; height: 46px; border-radius: 999px; box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .chat-thread-name { font-size: 16px; font-weight: 600; }
html.ui-next.ui-next[data-ui="next"] .chat-thread-preview { font-size: 13px; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .chat-unread-badge { background: var(--nx-fill); color: #fff; border: 0; }
html.ui-next.ui-next[data-ui="next"] .chat-thread { background: var(--nx-bg); border: 0; box-shadow: none; border-radius: 0; }
html.ui-next.ui-next[data-ui="next"] .chat-thread-head { background: transparent; border-bottom: 1px solid var(--nx-line); padding: 6px 6px 8px; }
/* the Telegram-like thread of 2.45.0 (chat.css) in the tokens of Refined */
html.ui-next.ui-next[data-ui="next"] .chat-thread {
    --chat-wall: var(--nx-bg); --chat-in: var(--nx-surface); --chat-in-text: var(--nx-text); --chat-in-meta: var(--nx-text-3);
    --chat-out: var(--nx-fill); --chat-out-text: #fff; --chat-out-meta: rgba(255, 255, 255, 0.78); --chat-out-read: #fff;
    --chat-accent: var(--nx-fill); --chat-quote-bar: var(--nx-fill); --chat-day-bg: rgba(15, 23, 42, 0.38);
}
html.ui-next.ui-next[data-ui="next"] .chat-bubble { font-size: 15px; line-height: 1.4; }
html.ui-next.ui-next[data-ui="next"] .chat-msg.is-own .chat-quote { background: rgba(255, 255, 255, 0.16); --chat-quote-bar: #fff; }
html.ui-next.ui-next[data-ui="next"] .chat-msg.is-own .chat-recording-icon, html.ui-next.ui-next[data-ui="next"] .chat-msg.is-own .chat-file-icon { background: rgba(255, 255, 255, 0.22); }
html.ui-next.ui-next[data-ui="next"] .chat-msg.is-own .chat-wave { --chat-wave-on: #fff; --chat-wave-off: rgba(255, 255, 255, 0.4); }
html.ui-next.ui-next[data-ui="next"] .chat-composer { background: var(--nx-surface); border-top: 1px solid var(--nx-line); border-radius: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
html.ui-next.ui-next[data-ui="next"] .chat-composer textarea { border-radius: 22px; background: var(--nx-surface-2); border: 1px solid var(--nx-line); padding: 10px 16px; font-size: 15px; }
html.ui-next.ui-next[data-ui="next"] .chat-send, html.ui-next.ui-next[data-ui="next"] .chat-record-play { width: 44px; height: 44px; border-radius: 999px; background: var(--nx-fill); color: #fff; border: 0; box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .chat-record-play { width: 40px; height: 40px; }
html.ui-next.ui-next[data-ui="next"] .chat-day { font-size: 11px; }
html.ui-next.ui-next[data-ui="next"] .chat-jump { border-radius: 50%; background: var(--nx-surface); box-shadow: var(--nx-shadow); border: 0; }
html.ui-next.ui-next[data-ui="next"] .chat-menu-items, html.ui-next.ui-next[data-ui="next"] .chat-menu-reactions, html.ui-next.ui-next[data-ui="next"] .chat-attach-menu { background: var(--nx-surface); border: 0; box-shadow: var(--nx-shadow); }
html.ui-next.ui-next[data-ui="next"] .chat-msg.is-own .chat-reaction { background: rgba(255, 255, 255, 0.2); color: #fff; }
html.ui-next.ui-next[data-ui="next"] .chat-msg.is-own .chat-reaction.is-mine { background: #fff; color: var(--nx-fill); }
html.ui-next.ui-next[data-ui="next"] .chat-thread.has-emoji .chat-composer, html.ui-next.ui-next[data-ui="next"] .chat-thread.is-keyboard .chat-composer { padding-bottom: 8px; }
html.ui-next.ui-next[data-ui="next"] .chat-record-bar, html.ui-next.ui-next[data-ui="next"] .chat-record-preview, html.ui-next.ui-next[data-ui="next"] .chat-reply-bar { background: var(--nx-surface); border-top: 1px solid var(--nx-line); }
html.ui-next.ui-next[data-ui="next"] .chat-viewer.modal-scrim { backdrop-filter: none; }

/* ---------- profile and settings ---------- */
html.ui-next.ui-next[data-ui="next"] .profile-hero { align-items: center; gap: 14px; }
html.ui-next.ui-next[data-ui="next"] .profile-avatar { width: 64px; height: 64px; border-radius: 999px; font-size: 24px; box-shadow: none; border: 0; }
html.ui-next.ui-next[data-ui="next"] .profile-card .section-topline { display: none; }
html.ui-next.ui-next[data-ui="next"] .profile-photo-group { border: 0; padding: 0; margin: 8px 0 0; }
html.ui-next.ui-next[data-ui="next"] .profile-photo-group legend { font-size: 13px; font-weight: 600; color: var(--nx-text-2); padding: 0; margin-bottom: 8px; }
html.ui-next.ui-next[data-ui="next"] .file-button { border-radius: 999px; background: var(--nx-bg-2); border: 0; box-shadow: none; font-weight: 600; }
html.ui-next.ui-next[data-ui="next"] .settings-row { padding: 12px 0; border-top: 1px solid var(--nx-line); gap: 12px; }
html.ui-next.ui-next[data-ui="next"] .settings-row:first-of-type { border-top: 0; }
html.ui-next.ui-next[data-ui="next"] .settings-copy strong { font-size: 15px; font-weight: 600; }
html.ui-next.ui-next[data-ui="next"] .settings-copy span { font-size: 13px; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .settings-toggle { min-width: 64px; border-radius: 999px; }
html.ui-next.ui-next[data-ui="next"] .settings-toggle[aria-pressed="true"] { background: var(--nx-call); color: #fff; }
html.ui-next.ui-next[data-ui="next"] .theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html.ui-next.ui-next[data-ui="next"] .interface-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.ui-next.ui-next[data-ui="next"] .theme-options button {
    display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px; border-radius: var(--nx-r-sm);
    background: var(--nx-surface-2); border: 2px solid transparent; box-shadow: none; color: var(--nx-text);
}
html.ui-next.ui-next[data-ui="next"] .theme-options button[aria-pressed="true"] { border-color: var(--nx-brand); background: var(--nx-brand-soft); }
html.ui-next.ui-next[data-ui="next"] .theme-options button strong { font-size: 14px; }
html.ui-next.ui-next[data-ui="next"] .theme-options button small { font-size: 12px; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .theme-swatch { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 4px; }
html.ui-next.ui-next[data-ui="next"] .permission-header { align-items: flex-start; gap: 10px; }
html.ui-next.ui-next[data-ui="next"] .about-grid { gap: 0; }
html.ui-next.ui-next[data-ui="next"] .about-row { padding: 12px 0; border-top: 1px solid var(--nx-line); background: transparent; border-radius: 0; }
html.ui-next.ui-next[data-ui="next"] .about-row:first-child { border-top: 0; }
html.ui-next.ui-next[data-ui="next"] .about-row span { color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .blocked-list .blocked-row, html.ui-next.ui-next[data-ui="next"] .devices-list .device-row { border-top: 1px solid var(--nx-line); padding: 10px 0; background: transparent; border-radius: 0; }
html.ui-next.ui-next[data-ui="next"] .profile-account { padding: 8px; }
html.ui-next.ui-next[data-ui="next"] .profile-account .soft-button { width: 100%; }
html.ui-next.ui-next[data-ui="next"] .danger-card { background: transparent; box-shadow: none; border: 1px dashed var(--nx-line-strong); }

/* Info: identity first; the connection details stay, collapsed, at the end */
html.ui-next.ui-next[data-ui="next"] #tabAbout { display: none; }
html.ui-next.ui-next[data-ui="next"] #tabAbout.active { display: flex; flex-direction: column; }
html.ui-next.ui-next[data-ui="next"] .about-hero { align-items: center; gap: 14px; }
html.ui-next.ui-next[data-ui="next"] .logo-shell.logo-shell-large { width: 72px; height: 72px; border-radius: 50%; box-shadow: var(--nx-shadow); background: transparent; }
html.ui-next.ui-next[data-ui="next"] .logo-shell .logo-image { border-radius: 50%; }
html.ui-next.ui-next[data-ui="next"] .legal-grid a { color: var(--nx-brand-text); font-weight: 500; }
html.ui-next.ui-next[data-ui="next"] #connectionStatusCard, html.ui-next.ui-next[data-ui="next"] #callReportWrap, html.ui-next.ui-next[data-ui="next"] #lastCallDebugPanel { order: 20; }
html.ui-next.ui-next[data-ui="next"] #connectionStatusCard { background: transparent; box-shadow: none; border: 1px solid var(--nx-line); }
html.ui-next.ui-next[data-ui="next"] #lastCallDebugPanel { background: transparent; border: 1px solid var(--nx-line); border-radius: var(--nx-r); padding: 14px 16px; }
html.ui-next.ui-next[data-ui="next"] .report-toggle { background: transparent; }
html.ui-next.ui-next[data-ui="next"] .report-toggle-title { font-size: 14px; font-weight: 600; color: var(--nx-text-2); }
html.ui-next.ui-next[data-ui="next"] .diagnostics-link-card { border-radius: var(--nx-r-sm); background: var(--nx-surface-2); border: 0; }

/* ---------- modals and toast ---------- */
html.ui-next.ui-next[data-ui="next"] .modal-scrim { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); }
html.ui-next.ui-next[data-ui="next"] .modal-card { border-radius: 24px; background: var(--nx-surface); border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); gap: 12px; }
html.ui-next.ui-next[data-ui="next"] .modal-card .button-row .primary-button, html.ui-next.ui-next[data-ui="next"] .modal-card .button-row .soft-button { min-height: 48px; }
html.ui-next.ui-next[data-ui="next"] .invitation-dialog { border-radius: 24px; border: 0; background: var(--nx-surface); color: var(--nx-text); }
html.ui-next.ui-next[data-ui="next"] .toast { border-radius: 14px; background: rgba(15, 23, 42, 0.86); color: #fff; border: 0; box-shadow: var(--nx-shadow); font-weight: 500; }
html.ui-next.ui-next[data-ui="next"] .message-offer-actions { display: grid; gap: 8px; }
html.ui-next.ui-next[data-ui="next"] .message-offer-actions .primary-button { background: var(--nx-call); }

/* ---------- the call surface ---------- */
html.ui-next.ui-next[data-ui="next"] .call-surface {
    background: radial-gradient(120% 80% at 50% -10%, #35507a 0%, #121a2b 55%, #0a0e18 100%);
    color: #fff;
}
html.ui-next.ui-next[data-ui="next"] .call-surface[data-call-state="incoming"], html.ui-next.ui-next[data-ui="next"] .call-surface[data-call-state="ringing"] {
    background: radial-gradient(120% 80% at 50% -10%, #1f3d2f 0%, #0f1a16 55%, #080c0a 100%);
}
html.ui-next.ui-next[data-ui="next"] .call-peer { gap: 8px; padding-top: 18px; }
html.ui-next.ui-next[data-ui="next"] .call-avatar { border: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
html.ui-next.ui-next[data-ui="next"] .call-primary { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; color: #fff; }
html.ui-next.ui-next[data-ui="next"] .call-secondary { font-size: 15px; color: rgba(255, 255, 255, 0.65); font-variant-numeric: tabular-nums; }
html.ui-next.ui-next[data-ui="next"] .call-timer { font-size: 16px; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; font-weight: 500; }
html.ui-next.ui-next[data-ui="next"] .call-more-btn { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .call-card { background: transparent; border: 0; box-shadow: none; text-align: center; padding: 4px 16px; }
html.ui-next.ui-next[data-ui="next"] .call-card-headline { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
html.ui-next.ui-next[data-ui="next"] .call-card-detail { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
html.ui-next.ui-next[data-ui="next"] .call-surface[data-call-state="trouble"] .call-card-headline { color: #fbbf24; }

/* the dock: round buttons with a word under each. The icon is the button's
   own ::before (line icon); the word hangs below it from ::after. The words
   are fixed (the accessible names stay as they are and change with the state). */
html.ui-next.ui-next[data-ui="next"] .call-command-bar { background: transparent; border: 0; box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock { gap: 6px; background: transparent; border: 0; box-shadow: none; padding: 0 8px; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .dock-row { gap: 6px; justify-content: space-evenly; align-items: flex-start; padding-bottom: 20px; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button, html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #activeCallActionBtn {
    flex: 0 0 auto; position: relative; width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%;
    background: var(--nx-ctl); border: 0; box-shadow: none; color: #fff; --clx-icon-size: 26px;
    display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s, transform 0.1s;
}
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button:hover { background: rgba(255, 255, 255, 0.22); }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button:active { transform: scale(0.95); box-shadow: none; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button::after {
    content: attr(data-a11y-label); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 500; line-height: 1.1; white-space: nowrap; color: rgba(255, 255, 255, 0.85); letter-spacing: 0;
}
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #muteMicBtn::after { content: 'Mute'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #muteRemoteBtn::after { content: 'Sound'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #audioRouteBtn::after { content: 'Speaker'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #audioRouteBtn[data-mode="earpiece"]::after { content: 'Earpiece'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #audioRouteBtn[data-mode="auto"]::after { content: 'Auto'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #bluetoothRouteBtn::after { content: 'Bluetooth'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #videoToggleBtn::after { content: 'Camera'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #screenShareBtn::after { content: 'Share'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #callChatBtn::after { content: 'Chat'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #activeCallActionBtn::after { content: 'End'; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button[aria-pressed="true"], html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button.is-active, html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #muteMicBtn.active, html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #muteRemoteBtn.active, html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #screenShareBtn.is-active {
    background: #fff; color: #0f172a; border: 0;
}
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #muteMicBtn.active::after, html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #muteRemoteBtn.active::after { position: absolute; height: auto; width: auto; box-shadow: none; z-index: auto; color: rgba(255, 255, 255, 0.85); background: none; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #activeCallActionBtn {
    width: 64px; height: 64px; min-height: 64px; order: 0; flex: 0 0 auto; background: var(--nx-end); color: #fff; border: 0;
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45); --clx-icon-size: 30px;
}
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #activeCallActionBtn:hover { background: #b91c1c; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar.is-ringing .video-dock #activeCallActionBtn { width: 74px; min-width: 74px; height: 74px; min-height: 74px; border-radius: 50%; --clx-icon-size: 34px; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock .call-chat-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--nx-fill); color: #fff; border: 0; font-size: 12px; display: grid; place-items: center; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button.hidden { display: none; }
/* incoming: Decline and Answer as two circles with their words below */
html.ui-next.ui-next[data-ui="next"] .dual-actions { display: flex; flex-direction: row; align-items: flex-start; gap: 36px; justify-content: center; padding: 0 24px; }
html.ui-next.ui-next[data-ui="next"] .dual-actions .call-action {
    width: auto; min-width: 96px; min-height: 0; padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none;
    display: grid; justify-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
}
html.ui-next.ui-next[data-ui="next"] .dual-actions .call-action::before {
    content: ''; display: block; margin: 0; width: 76px; height: 76px; flex: none; border-radius: 50%;
    -webkit-mask: none; mask: none; background-color: var(--nx-call); background-repeat: no-repeat; background-position: center; background-size: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8.1 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.8 2z'/%3E%3C/svg%3E");
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.4);
}
html.ui-next.ui-next[data-ui="next"] .dual-actions .call-action.danger::before {
    background-color: var(--nx-end); box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 9c-1.6 0-3.2.3-4.7.7v3.1c0 .4-.2.7-.6.9-1 .5-1.9 1.1-2.7 1.8-.2.2-.4.3-.7.3s-.5-.1-.7-.3L.3 13.2c-.2-.2-.3-.4-.3-.7s.1-.5.3-.7C3.3 8.9 7.4 7 12 7s8.7 1.9 11.7 4.8c.2.2.3.4.3.7s-.1.5-.3.7l-2.3 2.3c-.2.2-.4.3-.7.3s-.5-.1-.7-.3c-.8-.7-1.7-1.3-2.7-1.8-.4-.2-.6-.5-.6-.9V9.7c-1.5-.4-3.1-.7-4.7-.7z'/%3E%3C/svg%3E");
}
html.ui-next.ui-next[data-ui="next"] .dual-actions .call-action.success::before { animation: nx-bounce 1.6s infinite cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes nx-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { html.ui-next.ui-next[data-ui="next"] .dual-actions .call-action.success::before { animation: none; } }

/* the More sheet, chat panel and the video stage */
html.ui-next.ui-next[data-ui="next"] .call-settings-panel { background: rgba(27, 33, 48, 0.96); border-radius: 22px 22px 0 0; border: 0; color: #fff; }
html.ui-next.ui-next[data-ui="next"] .surface-select, html.ui-next.ui-next[data-ui="next"] .call-settings-panel select { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; }
html.ui-next.ui-next[data-ui="next"] .call-settings-panel label, html.ui-next.ui-next[data-ui="next"] .quality-title { color: rgba(255, 255, 255, 0.75); }
html.ui-next.ui-next[data-ui="next"] .quality-auto-btn { border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; }
html.ui-next.ui-next[data-ui="next"] .quality-auto-btn.is-active { background: #fff; color: #0f172a; }
html.ui-next.ui-next[data-ui="next"] .call-chat-panel { background: var(--nx-surface); color: var(--nx-text); }
html.ui-next.ui-next[data-ui="next"] .video-stage { border-radius: 20px; background: #0b0f17; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
html.ui-next.ui-next[data-ui="next"] .local-video { border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.25); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
html.ui-next.ui-next[data-ui="next"] .video-stage-fs, html.ui-next.ui-next[data-ui="next"] .video-camera-switch, html.ui-next.ui-next[data-ui="next"] .video-pip-chip {
    background: rgba(0, 0, 0, 0.45); color: #fff; border: 0; backdrop-filter: blur(10px);
}
html.ui-next.ui-next[data-ui="next"] .video-stage-tag { border-radius: 999px; background: rgba(239, 68, 68, 0.9); color: #fff; font-weight: 600; font-size: 12px; }
html.ui-next.ui-next[data-ui="next"] .stage-overlay-button { border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; border: 0; backdrop-filter: blur(12px); }
html.ui-next.ui-next[data-ui="next"] .stage-overlay-button.is-active, html.ui-next.ui-next[data-ui="next"] .stage-overlay-button[aria-pressed="true"] { background: #fff; color: #0f172a; }
html.ui-next.ui-next[data-ui="next"] .stage-overlay .stage-end-button { background: #ef4444; color: #fff; }
html.ui-next.ui-next[data-ui="next"] .screen-camera-tile { border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.25); }
html.ui-next.ui-next[data-ui="next"] .remote-video-note { color: rgba(255, 255, 255, 0.7); }

/* wider screens: the same page centred with room to breathe */
@media (min-width: 900px) {
    html.ui-next.ui-next[data-ui="next"] .app-shell { max-width: 640px; }
}

/* Tall screens: a large picture and name. Short ones (a phone in landscape,
   a 568 px phone) keep the compact classic call layout. */
@media (min-height: 701px) {
    html.ui-next.ui-next[data-ui="next"] .call-avatar { width: 120px; height: 120px; font-size: 42px; }
    html.ui-next.ui-next[data-ui="next"] .call-primary { font-size: 28px; }
}
/* Short screens: the dock is the classic one's size, without the words */
@media (max-height: 700px) {
    html.ui-next.ui-next[data-ui="next"] .call-command-bar .dock-row { padding-bottom: 0; gap: 6px; }
    html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button, html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #activeCallActionBtn { width: 44px; height: 44px; min-height: 44px; --clx-icon-size: 24px; }
    html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock button::after { display: none; }
    html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #activeCallActionBtn { width: 64px; min-width: 64px; height: 48px; min-height: 48px; border-radius: 999px; }
    html.ui-next.ui-next[data-ui="next"] .call-command-bar.is-ringing .video-dock #activeCallActionBtn { width: 74px; min-width: 74px; height: 74px; min-height: 74px; border-radius: 50%; }
}

/* The narrowest phones: a long number needs the header's room, the logo yields */
@media (max-width: 360px) {
    html.ui-next.ui-next[data-ui="next"] .brand-logo { display: none; }
}

/* the three hops of the call (2.39.0) */
html.ui-next.ui-next[data-ui="next"] .call-path { margin-top: 14px; }
html.ui-next.ui-next[data-ui="next"] .call-path-node { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
html.ui-next.ui-next[data-ui="next"] .call-path-note { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 8px; }
html.ui-next.ui-next[data-ui="next"] .call-command-bar .video-dock #callMoveBtn::after { content: 'Move'; }
