:root {
    color-scheme: dark;
    --bg: #0d1113;
    --bg-elevated: #111518;
    --surface: #15191c;
    --surface-low: #111518;
    --surface-high: #1b2024;
    --surface-highest: #242a30;
    --text: #dce1e7;
    --text-strong: #f7f9fb;
    --muted: #aeb6c2;
    --muted-soft: #7f8794;
    --border: #38404b;
    --border-soft: rgba(230, 236, 244, 0.11);
    --primary: #b7ccff;
    --primary-strong: #6ea0ff;
    --primary-ink: #091525;
    --mint: #38debb;
    --mint-ink: #00382d;
    --amber: #f6c453;
    --danger: #ffb4ab;
    --panel-bg: rgba(21, 25, 28, 0.86);
    --panel-bg-solid: #15191c;
    --topbar-bg: rgba(13, 17, 19, 0.88);
    --sidebar-bg: #15191c;
    --input-bg: #090d0f;
    --nav-active-bg: rgba(183, 204, 255, 0.1);
    --focus-ring: rgba(183, 204, 255, 0.14);
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --sidebar-width: 264px;
    --sidebar-collapsed-width: 76px;
    --topbar-height: 72px;
    --container: 1180px;
    --gutter: 16px;
}

html.theme-light {
    color-scheme: light;
    --bg: #f6f8fb;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-low: #f8fafc;
    --surface-high: #eef3f8;
    --surface-highest: #e4ebf3;
    --text: #293241;
    --text-strong: #101722;
    --muted: #516074;
    --muted-soft: #778398;
    --border: #ccd6e3;
    --border-soft: rgba(15, 23, 42, 0.12);
    --primary: #315fbd;
    --primary-strong: #214b9d;
    --primary-ink: #ffffff;
    --mint: #067c67;
    --mint-ink: #ecfffb;
    --amber: #9a6500;
    --danger: #b42318;
    --panel-bg: rgba(255, 255, 255, 0.92);
    --panel-bg-solid: #ffffff;
    --topbar-bg: rgba(246, 248, 251, 0.9);
    --sidebar-bg: #ffffff;
    --input-bg: #ffffff;
    --nav-active-bg: rgba(49, 95, 189, 0.1);
    --focus-ring: rgba(49, 95, 189, 0.14);
    --shadow: 0 16px 42px rgba(28, 38, 58, 0.1);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.sidebar-collapsed {
    --sidebar-width: var(--sidebar-collapsed-width);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
    transition: background 180ms ease, color 180ms ease;
}

body.app-body {
    background: var(--bg);
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand-name {
    color: var(--text-strong);
    font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.96;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

p {
    color: var(--muted);
}

.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.25em;
    width: 1.25em;
    height: 1.25em;
    overflow: hidden;
    font-family: "Material Symbols Outlined";
    font-size: 1.25rem;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

html:not(.fonts-ready) .material-symbols-outlined {
    color: transparent;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-160%);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--primary-ink);
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.section-label {
    margin: 0 0 10px;
    color: var(--primary);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    object-fit: cover;
}

.brand-name,
.brand-kicker {
    display: block;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.brand-kicker {
    margin-top: 4px;
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--primary);
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--primary);
    color: var(--primary-ink);
}

.button-secondary {
    border-color: var(--border-soft);
    background: var(--surface-low);
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--primary);
    background: var(--surface-high);
    color: var(--text-strong);
}

.button-danger {
    border-color: rgba(255, 180, 171, 0.5);
    background: transparent;
    color: var(--danger);
}

.button-danger:hover,
.button-danger:focus-visible {
    background: var(--danger);
    color: #2f0703;
}

.button-danger-muted {
    min-height: 36px;
    border-color: rgba(255, 180, 171, 0.22);
    background: rgba(255, 180, 171, 0.04);
    color: rgba(255, 180, 171, 0.82);
    padding: 0 13px;
    font-size: 0.84rem;
}

.button-danger-muted:hover,
.button-danger-muted:focus-visible {
    border-color: rgba(255, 180, 171, 0.44);
    background: rgba(255, 180, 171, 0.1);
    color: var(--danger);
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
}

.button-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--surface-high);
    color: var(--text);
    padding: 0 7px;
    font-size: 0.72rem;
    font-weight: 650;
}

.button-full {
    width: 100%;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    color: var(--muted);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: var(--primary);
    background: var(--surface-high);
    color: var(--primary);
}

.theme-toggle-light-icon,
html.theme-light .theme-toggle-dark-icon {
    display: none;
}

html.theme-light .theme-toggle-light-icon {
    display: inline-flex;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.field .delete-confirm-label {
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: none;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.marketing-header,
.marketing-main,
.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.marketing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.marketing-nav,
.site-footer nav,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.marketing-nav a,
.site-footer a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.marketing-nav a:hover,
.site-footer a:hover {
    color: var(--primary);
}

.marketing-main {
    padding: 52px 0 72px;
}

.marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 220px);
}

.hero-copy {
    max-width: 760px;
}

.lede {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: 1.12rem;
}

.hero-panel,
.auth-card,
.proof-card,
.checkout-summary,
.search-card,
.number-option,
.payment-option,
.feature-card,
.metric-card,
.action-panel,
.data-panel {
    border: 1px solid var(--border-soft);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-panel {
    display: grid;
    gap: 18px;
    border-radius: var(--radius-lg);
    padding: 22px;
}

.status-card,
.proof-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius);
    padding: 16px;
}

.status-card {
    background: var(--surface-low);
    border: 1px solid rgba(56, 222, 187, 0.26);
}

.status-card .material-symbols-outlined,
.proof-card .material-symbols-outlined {
    color: var(--mint);
}

.status-card strong,
.status-card span,
.proof-card strong,
.proof-card span {
    display: block;
}

.status-card span,
.proof-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.flow-list {
    display: grid;
    gap: 12px;
}

.flow-list.compact {
    margin-top: 24px;
}

.flow-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 4px 12px;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
}

.flow-step span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--surface-highest);
    color: var(--primary);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 800;
}

.flow-step small {
    color: var(--muted-soft);
}

.flow-step.is-complete span {
    background: rgba(56, 222, 187, 0.16);
    color: var(--mint);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 22px;
}

.feature-card .material-symbols-outlined {
    color: var(--primary);
    font-size: 2rem;
}

.feature-card h2 {
    margin-top: 18px;
    font-size: 1.3rem;
}

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 24px 0 34px;
}

.footer-theme-toggle {
    width: 32px;
    height: 32px;
    color: var(--muted);
}

.footer-theme-toggle:hover {
    color: var(--text);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted-soft);
    font-size: 0.9rem;
}

.legal-shell {
    width: min(920px, calc(100% - 32px));
    margin: 54px auto 84px;
}

.legal-shell h1 {
    margin: 8px 0 14px;
    color: var(--text-strong);
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    line-height: 0.98;
}

.legal-card,
.status-summary-card,
.status-component-list {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}

.legal-card {
    display: grid;
    gap: 24px;
    margin-top: 28px;
    padding: 28px;
}

.legal-card h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 1.05rem;
}

.legal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.status-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 20px;
}

.status-summary-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.status-component-list {
    display: grid;
    margin-top: 16px;
    overflow: hidden;
}

.status-component-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 18px;
}

.status-component-row:last-child {
    border-bottom: 0;
}

.status-component-row > span {
    display: grid;
    gap: 3px;
}

.status-component-row > span strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 560;
}

.status-component-row small {
    color: var(--muted-soft);
    font-size: 0.78rem;
}

.status-component-row > strong {
    color: var(--mint);
    font-size: 0.86rem;
    font-weight: 560;
}

.error-main {
    width: 100%;
}

.error-light-canvas {
    display: none;
}

.error-canvas {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    min-height: calc(100vh - 190px);
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
}

.error-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-low);
    box-shadow: var(--shadow);
}

.error-art > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.error-canvas-dark {
    display: grid;
}

html.theme-light .error-canvas-dark,
html.light .error-canvas-dark {
    display: none !important;
}

html.theme-light .error-light-canvas,
html.light .error-light-canvas {
    display: flex;
}

.error-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 50% 42%, rgba(56, 222, 187, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(13, 17, 19, 0.15), var(--bg));
}

.error-robot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 184px;
    height: 184px;
    border: 1px solid rgba(183, 204, 255, 0.22);
    border-radius: 999px;
    background: rgba(21, 25, 28, 0.72);
    box-shadow: 0 0 42px rgba(183, 204, 255, 0.12);
}

.error-robot-main {
    color: var(--primary);
    font-size: 7rem;
    filter: drop-shadow(0 0 16px rgba(56, 222, 187, 0.24));
}

.error-bolt,
.error-link {
    position: absolute;
    color: var(--mint);
}

.error-bolt {
    top: 24px;
    right: 26px;
    font-size: 2rem;
}

.error-link {
    bottom: 22px;
    left: 24px;
    color: var(--danger);
    font-size: 1.7rem;
    transform: rotate(-10deg);
}

.error-chip {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(21, 25, 28, 0.86);
    color: var(--mint);
    padding: 8px 12px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.error-chip span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--mint);
}

.error-copy h1 {
    margin: 8px 0 14px;
    color: var(--text-strong);
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    line-height: 0.98;
}

.error-copy p:not(.section-label) {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.error-light-canvas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 190px);
    width: min(640px, calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
}

.error-light-visual {
    position: relative;
    margin-bottom: 48px;
}

.error-light-glow {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(49, 95, 189, 0.1), transparent, rgba(113, 117, 118, 0.1));
    filter: blur(32px);
    opacity: 0.65;
    transform: scale(1.45);
}

.error-light-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 288px;
    height: 288px;
    border: 1px solid rgba(49, 95, 189, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px -5px rgba(0, 91, 192, 0.1);
    backdrop-filter: blur(16px);
}

.error-light-robot {
    color: var(--primary);
    font-size: 7.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 91, 192, 0.2));
    z-index: 2;
}

.error-light-bolt,
.error-light-link,
.error-light-wire {
    position: absolute;
}

.error-light-bolt {
    top: 68px;
    right: 72px;
    color: var(--mint);
    font-size: 2.3rem;
}

.error-light-link {
    bottom: 70px;
    left: 72px;
    color: var(--danger);
    font-size: 1.9rem;
    transform: rotate(12deg);
}

.error-light-wire {
    color: var(--muted-soft);
    font-size: 4.4rem;
    opacity: 0.22;
    transform: rotate(45deg) scale(1.25);
}

.error-light-chip {
    position: absolute;
    bottom: -14px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(28, 38, 58, 0.08);
    color: var(--mint);
    padding: 9px 14px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
    white-space: nowrap;
}

.error-light-chip span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--mint);
}

.error-light-copy h1 {
    max-width: 620px;
    margin: 8px auto 14px;
    color: var(--text-strong);
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.16;
}

.error-light-copy p:not(.section-label) {
    max-width: 500px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.error-light-copy .error-actions {
    justify-content: center;
    margin-top: 24px;
}

.auth-main {
    display: grid;
    min-height: calc(100vh - 180px);
    align-items: center;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.auth-layout-reverse {
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
}

.auth-story {
    max-width: 620px;
}

.auth-story p {
    font-size: 1.05rem;
}

.auth-card {
    display: grid;
    gap: 18px;
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 34px);
}

.auth-card h1,
.auth-card h2 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.auth-switch {
    margin: 0;
    text-align: center;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 800;
}

.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(22px, 4vw, 40px);
    align-items: start;
}

.checkout-main,
.checkout-summary {
    display: grid;
    gap: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    color: var(--text-strong);
}

.checkout-summary {
    position: sticky;
    top: 24px;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.cart-trigger {
    display: none;
}

.cart-close {
    display: none;
}

.cart-overlay {
    display: none;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    border-radius: var(--radius-lg);
    padding: 18px;
}

.number-results,
.payment-methods {
    display: grid;
    gap: 12px;
}

.number-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

@media (max-width: 720px) {
    .number-search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.number-search-skip {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.number-search-skip:hover {
    color: var(--text);
}

.form-message {
    margin: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    color: var(--muted);
    padding: 12px 14px;
}

.form-message.is-error {
    border-color: rgba(255, 180, 171, 0.34);
    background: rgba(255, 180, 171, 0.08);
    color: var(--danger);
}

.number-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius);
    padding: 16px;
}

.number-option input,
.payment-option input,
.template-card input,
.voice-card input {
    accent-color: var(--primary-strong);
}

.number-option > span:not(.number-price),
.payment-option strong,
.payment-option small {
    display: block;
}

.number-option > span:not(.number-price) {
    flex: 1;
    min-width: 0;
}

.number-option > span:not(.number-price) > strong {
    display: block;
    white-space: nowrap;
    font-size: 1rem;
}

.number-option > span:not(.number-price) > small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
}

.number-option form {
    margin-left: 0;
}

.number-price {
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 800;
}

.cart-list {
    display: grid;
    gap: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 12px;
}

.cart-item-main {
    min-width: 0;
}

.cart-item strong,
.cart-item small {
    display: block;
}

.cart-phone-number {
    white-space: nowrap;
}

.cart-item small {
    color: var(--muted-soft);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    color: var(--primary);
    font-weight: 800;
}

.checkout-summary .cart-item {
    align-items: flex-start;
}

.checkout-summary .cart-item-actions {
    flex-shrink: 0;
    padding-top: 2px;
    white-space: nowrap;
}

.checkout-skip-link {
    justify-self: center;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.checkout-skip-link:hover {
    color: var(--primary);
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    padding: 0;
    font-weight: 800;
}

.payment-option {
    min-height: 116px;
}

.payment-option .material-symbols-outlined {
    color: var(--primary);
    font-size: 2rem;
}

.payment-option.is-selected {
    border-color: rgba(173, 199, 255, 0.46);
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.summary-line {
    align-items: center;
    color: var(--muted);
}

.summary-line span,
.summary-line strong {
    min-width: 0;
}

.summary-line strong {
    color: var(--text);
    text-align: right;
}

.summary-total {
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    color: var(--text);
    font-size: 1.25rem;
}

.summary-total strong {
    color: var(--primary);
}

.fine-print {
    margin: 0;
    color: var(--muted-soft);
    font-size: 0.85rem;
    text-align: center;
}

.not-found-panel {
    max-width: 640px;
    min-height: 420px;
    display: grid;
    align-content: center;
}

.app-shell {
    min-height: 100vh;
    padding-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    border-right: 1px solid var(--border-soft);
    background: var(--sidebar-bg);
    padding: 16px;
    transition: width 180ms ease, padding 180ms ease;
}

.sidebar-collapsed .app-sidebar {
    align-items: center;
    padding-inline: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    width: 100%;
    margin-top: 28px;
}

.sidebar-meta {
    display: grid;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    width: 100%;
}

.nav-item,
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 620;
    text-decoration: none;
}

.nav-item {
    min-height: 46px;
    padding: 0 12px;
}

.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 0;
}

.sidebar-collapsed .nav-item > span:not(.material-symbols-outlined),
.sidebar-collapsed .brand-lockup > span,
.sidebar-collapsed .credit-pill span:not(.material-symbols-outlined),
.sidebar-collapsed .sidebar-account-text {
    display: none;
}

.sidebar-collapsed .brand-lockup {
    justify-content: center;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 38px;
    height: 38px;
    margin-top: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    color: var(--muted-soft);
    padding: 0;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sidebar-collapsed .sidebar-toggle {
    align-self: center;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    border-color: var(--primary);
    background: var(--surface-high);
    color: var(--primary);
}

.sidebar-toggle-expand,
.sidebar-collapsed .sidebar-toggle-collapse {
    display: none;
}

.sidebar-collapsed .sidebar-toggle-expand {
    display: inline-flex;
}

.nav-button {
    width: 100%;
    border: 0;
    appearance: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.logout-form {
    margin: 0;
}

.sidebar-account {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 10px;
}

.sidebar-collapsed .sidebar-account {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px;
}

.sidebar-collapsed .sidebar-logout {
    width: 34px;
    height: 34px;
}

.sidebar-account .avatar-badge {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
}

.sidebar-account-text {
    min-width: 0;
}

.sidebar-account-text strong,
.sidebar-account-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-text strong {
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1.2;
}

.sidebar-account-text small {
    color: var(--muted-soft);
    font-size: 0.72rem;
}

.sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    appearance: none;
    background: transparent;
    color: var(--muted-soft);
    padding: 0;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
    border-color: rgba(255, 180, 171, 0.22);
    background: rgba(255, 180, 171, 0.08);
    color: var(--danger);
}

.nav-item:hover,
.nav-item.is-active {
    background: var(--nav-active-bg);
    color: var(--primary);
}

.nav-item-muted {
    color: var(--muted-soft);
}

.credit-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid rgba(56, 222, 187, 0.2);
    border-radius: var(--radius);
    background: rgba(56, 222, 187, 0.08);
    color: var(--mint);
    padding: 0 12px;
}

.sidebar-collapsed .credit-pill {
    justify-content: center;
    padding: 0;
}

.credit-pill strong {
    color: var(--text-strong);
}

.app-topbar {
    position: fixed;
    inset: 0 0 auto var(--sidebar-width);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--topbar-height);
    border-bottom: 1px solid var(--border-soft);
    background: var(--topbar-bg);
    padding: 0 var(--gutter);
    backdrop-filter: blur(18px);
    transition: inset 180ms ease;
}

.app-topbar > div:first-child {
    min-width: 0;
    overflow: hidden;
}

.app-topbar h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(173, 199, 255, 0.28);
    border-radius: 50%;
    background: var(--surface-high);
    color: var(--primary);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 800;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(280px, 32vw);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--surface-low);
    padding: 6px 12px 6px 6px;
}

.account-chip strong,
.account-chip small {
    display: block;
}

.account-chip strong {
    color: var(--text-strong);
    font-size: 0.86rem;
}

.account-chip small {
    max-width: 180px;
    overflow: hidden;
    color: var(--muted-soft);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-mobile-trigger {
    display: none;
}

.account-drawer-overlay {
    display: none;
}

.account-drawer {
    display: none;
}

.app-main {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: 0 auto;
    padding: 18px var(--gutter) 40px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-lg);
    padding: 18px;
}

.metric-card .material-symbols-outlined,
.panel-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(173, 199, 255, 0.12);
    color: var(--primary);
    font-size: 1.8rem;
}

.metric-card p {
    margin-bottom: 2px;
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--text-strong);
    font-size: 1.8rem;
}

.metric-card small {
    display: block;
    color: var(--muted-soft);
    font-size: 0.78rem;
    font-weight: 750;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.4fr);
    gap: 16px;
}

.dashboard-grid + .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-next-action .button {
    justify-self: start;
}

.dashboard-calls-panel .inline-alert {
    margin: 0 0 16px;
}

.dashboard-call-list,
.dashboard-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
}

.dashboard-call-row,
.dashboard-list-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid var(--border-soft);
    color: var(--text);
    padding: 11px 14px;
    text-decoration: none;
}

.dashboard-list-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.dashboard-call-row:first-child,
.dashboard-list-row:first-child {
    border-top: 0;
}

.dashboard-call-row:hover,
.dashboard-call-row:focus-visible,
a.dashboard-list-row:hover,
a.dashboard-list-row:focus-visible {
    background: rgba(173, 199, 255, 0.06);
}

.dashboard-call-row > .material-symbols-outlined,
.dashboard-list-row > .material-symbols-outlined {
    color: var(--primary);
}

.dashboard-call-row strong,
.dashboard-call-row small,
.dashboard-list-row strong,
.dashboard-list-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-call-row strong,
.dashboard-list-row strong {
    font-weight: 620;
}

.dashboard-call-row small,
.dashboard-list-row small {
    color: var(--muted-soft);
}

.compact-empty {
    min-height: 150px;
}

.billing-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
}

.billing-hero-side {
    display: grid;
    min-width: 220px;
    gap: 10px;
}

.billing-hero-side .button {
    width: 100%;
}

.billing-hero h2,
.billing-pack-card h2,
.billing-note h2 {
    margin: 0 0 8px;
}

.billing-hero p,
.billing-pack-card p,
.billing-note p {
    max-width: 720px;
    color: var(--muted);
}

.billing-balance-card {
    display: grid;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 18px;
}

.billing-balance-card .material-symbols-outlined {
    color: var(--primary);
}

.billing-balance-card small,
.billing-pack-meta small {
    color: var(--muted-soft);
    font-size: 0.78rem;
}

.billing-balance-card strong {
    color: var(--text-strong);
    font-size: 2.1rem;
    line-height: 1;
}

.billing-pack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.billing-pack-card {
    display: grid;
    gap: 18px;
}

.billing-pack-meta span {
    display: block;
    color: var(--text-strong);
    font-size: 1.35rem;
    font-weight: 650;
}

.billing-pack-card .button {
    width: 100%;
}

.billing-cycle-list {
    display: grid;
    gap: 10px;
}

.billing-cycle-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.6fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 14px;
}

.billing-cycle-row strong,
.billing-cycle-row small {
    display: block;
}

.billing-cycle-row strong {
    color: var(--text-strong);
    font-weight: 620;
}

.billing-cycle-row small {
    color: var(--muted-soft);
    font-size: 0.82rem;
}

.billing-cycle-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.billing-cycle-actions form {
    margin: 0;
}

.billing-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.billing-note > .material-symbols-outlined {
    color: var(--primary);
}

.billing-receipts-card .config-card-header {
    margin-bottom: 20px;
}

.billing-receipts-list {
    display: grid;
    gap: 10px;
    align-content: start;
    grid-auto-rows: min-content;
}

.billing-receipts-table {
    display: grid;
    align-content: start;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
}

.billing-receipt-header,
.billing-receipt-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.85fr) minmax(180px, 1.35fr) minmax(90px, 0.55fr) minmax(92px, 0.55fr) minmax(92px, 0.55fr);
    gap: 12px;
    align-items: center;
}

.billing-receipt-header {
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0;
    padding: 10px 14px;
    text-transform: uppercase;
}

.billing-receipt-row {
    min-height: 58px;
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 14px;
}

.billing-receipt-row:last-child {
    border-bottom: 0;
}

.billing-receipt-description strong,
.billing-receipt-description small {
    display: block;
}

.billing-receipt-description strong,
.billing-receipt-amount {
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 560;
}

.billing-receipt-date,
.billing-receipt-description small,
.billing-receipt-unavailable {
    color: var(--muted-soft);
    font-size: 0.78rem;
}

.billing-receipt-kind {
    color: var(--primary);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.billing-document-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 560;
    text-decoration: none;
    white-space: nowrap;
}

.billing-document-link:hover,
.billing-document-link:focus-visible {
    color: var(--text-strong);
}

.billing-document-link .material-symbols-outlined {
    font-size: 17px;
}

.app-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
    gap: 24px;
}

.action-panel,
.data-panel {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.action-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin: 0;
}

.panel-heading a {
    color: var(--primary);
    font-weight: 800;
}

.panel-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-heading .button-primary {
    color: var(--primary);
}

.panel-heading .button-primary:hover,
.panel-heading .button-primary:focus-visible {
    color: var(--primary-ink);
}

.compact-heading {
    align-items: center;
    margin-bottom: 12px;
}

.compact-heading h3 {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 30px;
    border: 1px solid rgba(56, 222, 187, 0.24);
    border-radius: 999px;
    background: rgba(56, 222, 187, 0.08);
    color: var(--mint);
    padding: 0 10px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.status-badge.neutral {
    border-color: var(--border-soft);
    background: var(--surface-low);
    color: var(--muted);
}

.traffic-bars {
    display: flex;
    align-items: end;
    gap: 9px;
    height: 210px;
}

.traffic-bars span {
    flex: 1;
    min-width: 10px;
    height: var(--bar-height);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: rgba(173, 199, 255, 0.72);
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 180px;
    align-content: center;
    border: 1px dashed rgba(173, 199, 255, 0.28);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.empty-state .material-symbols-outlined {
    color: var(--primary);
    font-size: 2.2rem;
}

.empty-state strong {
    color: var(--text);
}

.empty-state p {
    margin-bottom: 0;
}

.phone-number-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.phone-number-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-low);
    padding: 18px;
}

.phone-number-card-header,
.phone-number-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.phone-number-card-header .material-symbols-outlined {
    color: var(--primary);
    font-size: 2rem;
}

.phone-number-card h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.55rem;
    overflow-wrap: anywhere;
}

.phone-number-card p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.phone-number-card .summary-line {
    border-top: 1px solid var(--border-soft);
    padding-top: 10px;
}

.phone-number-card .summary-line + .summary-line {
    border-top: 0;
    padding-top: 0;
}

.phone-number-card .summary-line strong {
    max-width: 62%;
    overflow-wrap: anywhere;
}

.agent-create-flow {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.resource-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
}

.resource-header,
.resource-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(116px, 0.72fr) minmax(112px, 0.64fr) minmax(70px, 0.36fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 13px 16px;
}

.phone-resource-header,
.phone-resource-row {
    grid-template-columns: minmax(180px, 1.15fr) minmax(110px, 0.55fr) minmax(150px, 0.85fr) minmax(112px, 0.58fr) minmax(86px, 0.42fr);
}

.workspace-agent-header,
.workspace-agent-row {
    grid-template-columns: minmax(220px, 1.25fr) minmax(130px, 0.62fr) minmax(130px, 0.62fr) minmax(130px, 0.62fr) minmax(90px, 0.42fr) minmax(86px, 0.32fr);
}

.resource-header {
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
}

.resource-row {
    border-top: 1px solid var(--border-soft);
    color: var(--text);
    text-decoration: none;
}

.resource-list .resource-row:first-child {
    border-top: 0;
}

a.resource-row:hover,
a.resource-row:focus-visible,
.choice-row:hover {
    background: rgba(173, 199, 255, 0.06);
}

.resource-row > span,
.resource-main {
    min-width: 0;
}

.resource-row strong,
.resource-row small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.resource-row small {
    color: var(--muted-soft);
}

.resource-row a {
    color: var(--primary);
    font-weight: 620;
    text-decoration: none;
}

.resource-row strong {
    font-weight: 620;
}

.resource-row a:hover {
    color: var(--text-strong);
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.workspace-agent-create-form {
    display: grid;
    gap: 18px;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 13px 14px;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.toggle-row strong,
.toggle-row small {
    display: block;
}

.toggle-row small {
    color: var(--muted);
}

.crm-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: start;
}

.crm-task-row {
    grid-template-columns: minmax(180px, 1.3fr) minmax(130px, 0.78fr) minmax(82px, 0.42fr) minmax(96px, 0.48fr) minmax(100px, 0.52fr);
}

.crm-contact-row {
    grid-template-columns: minmax(180px, 1.15fr) minmax(124px, 0.68fr) minmax(150px, 0.9fr) minmax(86px, 0.42fr) minmax(96px, 0.48fr);
}

.crm-task-list .resource-main small,
.crm-contact-list .resource-main small {
    font-size: 0.72rem;
}

.analytics-shell {
    display: block;
}

.analytics-list-panel,
.analytics-detail-panel {
    min-width: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-low);
    box-shadow: var(--shadow);
}

.analytics-call-dialog {
    width: min(1040px, calc(100vw - 72px));
}

.analytics-call-card {
    background: var(--panel-bg-solid);
}

.analytics-call-drawer-body {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow: auto;
}

.analytics-list-panel {
    overflow: hidden;
}

.analytics-detail-panel {
    display: grid;
    gap: 18px;
    padding: 18px;
    position: sticky;
    top: calc(var(--topbar-height) + 18px);
}

.analytics-toolbar,
.call-detail-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}

.analytics-toolbar h2,
.call-detail-header h2 {
    margin: 0;
}

.analytics-toolbar p,
.call-detail-header p {
    margin: 2px 0 0;
    color: var(--muted);
}

.analytics-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 0 22px;
    min-width: 0;
    overflow-x: auto;
}

.analytics-tab {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--muted-soft);
    font-weight: 750;
    white-space: nowrap;
}

.analytics-tab.is-active {
    color: var(--mint);
    box-shadow: inset 0 -2px 0 var(--mint);
}

.detail-tabs {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    padding: 0 14px;
}

.analytics-filters {
    display: grid;
    grid-template-columns: minmax(170px, 0.75fr) minmax(280px, 1.05fr) minmax(200px, 0.9fr) minmax(180px, 0.8fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 18px 22px;
}

.analytics-filters label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--muted-soft);
    font-size: 0.82rem;
    font-weight: 750;
}

.analytics-filters select,
.analytics-filters input,
.filter-control {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--text);
    padding: 0 12px;
}

.custom-date-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 10px;
    min-width: 0;
}

.custom-date-fields[hidden] {
    display: none;
}

.compact-button {
    min-height: 44px;
    padding-inline: 14px;
}

.inline-alert {
    margin: 0 22px 18px;
    border: 1px solid rgba(255, 180, 171, 0.25);
    border-radius: var(--radius);
    background: rgba(255, 180, 171, 0.08);
    color: var(--danger);
    padding: 12px 14px;
    font-weight: 700;
}

.inline-alert.success {
    border-color: rgba(56, 222, 187, 0.25);
    background: rgba(56, 222, 187, 0.08);
    color: var(--mint);
}

.compact-alert {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 560;
}

.analytics-table {
    display: grid;
    border-top: 1px solid var(--border-soft);
    overflow-x: auto;
}

.analytics-table-header,
.analytics-table-row {
    display: grid;
    grid-template-columns: 120px minmax(170px, 1.1fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) 92px minmax(142px, 0.9fr) 156px 82px 74px;
    gap: 14px;
    align-items: center;
    min-width: 1180px;
    padding: 13px 22px;
}

.analytics-table-header {
    color: var(--muted-soft);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.analytics-table-row {
    border-top: 1px solid var(--border-soft);
    color: var(--text);
    text-decoration: none;
}

.analytics-table-row:hover,
.analytics-table-row:focus-visible,
.analytics-table-row.is-selected {
    background: rgba(56, 222, 187, 0.06);
}

.analytics-table-row[hidden],
.analytics-empty[hidden],
.analytics-load-more[hidden] {
    display: none;
}

.analytics-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--border-soft);
    color: var(--muted);
    padding: 16px 22px;
    font-size: 0.86rem;
    font-weight: 620;
}

.analytics-load-more .material-symbols-outlined {
    color: var(--primary);
}

.analytics-load-more.is-loading .material-symbols-outlined {
    animation: spin 900ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.analytics-table-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-call-id,
.analytics-assistant-name {
    font-size: 0.82rem;
    font-weight: 520;
    line-height: 1.2;
}

.analytics-call-id {
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
}

.analytics-assistant-name {
    color: #bda7ff;
}

html.theme-light .analytics-assistant-name {
    color: #5b45b8;
}

.analytics-table-muted {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.2;
}

.crm-shell {
    display: block;
}

.crm-list-panel {
    width: 100%;
}

.crm-filters {
    display: flex;
    align-items: end;
    gap: 10px;
}

.crm-filters > label:first-child {
    width: min(420px, 100%);
    flex: 0 1 420px;
}

.crm-preview-filter {
    min-height: 38px;
    align-self: end;
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 0 2px;
    white-space: nowrap;
}

.analytics-filters .crm-preview-filter {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 520;
}

.analytics-filters .crm-preview-filter input {
    width: 14px;
    min-height: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    accent-color: var(--primary);
}

.crm-preview-filter span {
    color: var(--muted);
    line-height: 1;
}

.crm-filters .compact-button {
    width: auto;
    min-height: 38px;
    padding: 0 11px;
    flex: 0 0 auto;
}

.crm-table-header,
.crm-table-row {
    grid-template-columns: minmax(190px, 1.2fr) minmax(140px, 0.82fr) minmax(190px, 1fr) 102px minmax(132px, 0.82fr) 92px 128px;
    min-width: 1120px;
}

.crm-contact-name {
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 540;
}

.crm-contact-detail {
    display: grid;
    gap: 14px;
}

.crm-contact-summary-panel {
    padding: 20px;
}

.crm-contact-actions {
    align-items: center;
    justify-content: flex-end;
}

.crm-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.crm-detail-stats > div {
    border: 1px solid var(--border-soft);
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 14px;
}

.crm-detail-stats span {
    display: block;
    color: var(--muted-soft);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.crm-detail-stats strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 560;
}

.crm-task-detail-header,
.crm-task-detail-row {
    grid-template-columns: minmax(260px, 1.4fr) 126px 100px 128px 128px;
    min-width: 860px;
}

.crm-transcript-panel {
    overflow: hidden;
}

.crm-transcript-loading,
.crm-transcript-empty {
    min-height: 220px;
}

.crm-call-list-table {
    display: grid;
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
}

.crm-call-list-header,
.crm-call-list-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.68fr) minmax(130px, 0.44fr) minmax(260px, 1.25fr) minmax(150px, 0.58fr) minmax(82px, 0.3fr) minmax(112px, 0.38fr);
    align-items: center;
    gap: 18px;
    min-width: 1040px;
}

.crm-call-list-header {
    border-bottom: 1px solid var(--border-soft);
    padding: 13px 16px;
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
}

.crm-call-list-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text);
    padding: 15px 16px;
    text-align: left;
    transition: background 150ms ease, color 150ms ease;
}

.crm-call-list-row:last-child {
    border-bottom: 0;
}

.crm-call-list-row:hover,
.crm-call-list-row:focus-visible,
.crm-call-list-row.is-selected {
    background: var(--surface-high);
}

.crm-call-list-row.is-latest {
    box-shadow: inset 2px 0 0 var(--primary);
}

.crm-call-date {
    display: grid;
    gap: 3px;
}

.crm-call-date strong {
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 560;
}

.crm-call-date small {
    color: var(--primary);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.64rem;
    font-weight: 650;
    text-transform: uppercase;
}

.crm-agent-pill,
.crm-call-date small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border-soft));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    padding: 0 8px;
}

.crm-agent-pill {
    max-width: 100%;
    overflow: hidden;
    color: var(--primary);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.64rem;
    font-weight: 650;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.crm-call-drawer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.crm-call-summary {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-call-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.crm-call-row-action .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.1rem;
}

.crm-task-drawer-list {
    display: grid;
    gap: 10px;
}

.crm-task-drawer-item {
    display: grid;
    gap: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 14px;
}

.crm-task-drawer-item strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.crm-task-drawer-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.crm-task-drawer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted-soft);
    font-size: 0.74rem;
    font-weight: 560;
}

.type-pill,
.reason-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(173, 199, 255, 0.06);
    padding: 0 10px;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 620;
}

.reason-pill {
    background: rgba(56, 222, 187, 0.08);
    color: var(--mint);
    min-height: 22px;
    padding: 0 8px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.66rem;
    font-weight: 650;
    line-height: 1;
    text-transform: capitalize;
}

.call-detail-meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-weight: 750;
    white-space: nowrap;
}

.recording-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 16px;
}

.recording-panel.is-loading {
    min-height: 220px;
    align-content: center;
}

.mono-time,
.transcript-time {
    color: var(--muted-soft);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.82rem;
}

.call-audio {
    width: 100%;
}

.muted-note {
    margin: 0;
    color: var(--muted-soft);
}

.transcript-timeline {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 22px;
    min-height: 420px;
    max-height: 640px;
    overflow: auto;
    padding: 14px 8px 4px;
}

.transcript-item {
    display: grid;
    align-self: start;
    gap: 6px;
    max-width: 68%;
}

.transcript-item.user {
    justify-self: end;
}

.transcript-item.event {
    justify-self: center;
    max-width: 80%;
}

.transcript-bubble {
    border-radius: var(--radius);
    background: var(--surface-high);
    padding: 13px 15px;
}

.transcript-item.user .transcript-bubble {
    background: var(--surface-highest);
}

.transcript-item.event .transcript-bubble {
    border: 1px solid rgba(56, 222, 187, 0.35);
    background: rgba(56, 222, 187, 0.08);
}

.transcript-bubble strong {
    display: block;
    margin-bottom: 4px;
    color: var(--mint);
    font-size: 0.82rem;
}

.transcript-item.user .transcript-bubble strong {
    color: var(--amber);
}

.transcript-bubble p {
    margin: 0;
    color: var(--text);
}

.transcript-item.user .transcript-time {
    justify-self: end;
}

.analytics-empty {
    margin: 22px;
}

.analytics-detail-empty {
    min-height: 520px;
    margin: 0;
}

.resource-action {
    justify-self: end;
    color: var(--primary);
    font-weight: 800;
}

.choice-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    cursor: pointer;
}

.choice-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-strong);
}

.choice-row.is-selected {
    background: rgba(173, 199, 255, 0.08);
    box-shadow: inset 3px 0 0 var(--primary);
}

.compact-resource-list .resource-row {
    padding: 12px 14px;
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stepper span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--surface-low);
    color: var(--muted);
    padding: 0 12px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stepper .is-complete {
    color: var(--mint);
}

.stepper .is-active {
    border-color: rgba(173, 199, 255, 0.42);
    color: var(--primary);
}

.configuration-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
}

.form-panel,
.template-grid,
.voice-grid {
    display: grid;
    gap: 18px;
}

.template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.voice-picker {
    display: grid;
    gap: 16px;
}

.voice-filter-bar {
    display: grid;
    gap: 12px;
}

.voice-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--surface-low);
    padding: 0 12px;
}

.voice-search-field .material-symbols-outlined {
    color: var(--muted);
    font-size: 1.25rem;
}

.voice-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.voice-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voice-filter-tabs button {
    min-height: 34px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    appearance: none;
    background: transparent;
    color: var(--muted);
    padding: 0 12px;
    font-weight: 800;
}

.voice-filter-tabs button:hover,
.voice-filter-tabs button:focus-visible,
.voice-filter-tabs button.is-active {
    border-color: rgba(173, 199, 255, 0.52);
    background: rgba(173, 199, 255, 0.12);
    color: var(--primary);
}

.template-card,
.voice-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 16px;
}

.voice-card.is-filtered-out {
    display: none;
}

.template-card.is-selected,
.voice-card.is-selected {
    border-color: rgba(173, 199, 255, 0.54);
    background: rgba(173, 199, 255, 0.08);
}

html.theme-light .choice-row.is-selected,
html.theme-light .template-card.is-selected,
html.theme-light .voice-card.is-selected {
    border-color: rgba(33, 75, 157, 0.78);
    background: #eef4ff;
    box-shadow:
        inset 0 0 0 1px rgba(33, 75, 157, 0.16),
        0 0 0 3px rgba(33, 75, 157, 0.1);
}

html.theme-light .choice-row.is-selected {
    box-shadow:
        inset 3px 0 0 var(--primary-strong),
        0 0 0 3px rgba(33, 75, 157, 0.1);
}

html.theme-light .template-card.is-selected strong,
html.theme-light .voice-card.is-selected strong,
html.theme-light .choice-row.is-selected strong {
    color: var(--primary-strong);
}

.voice-card.is-connecting,
.voice-card.is-speaking {
    border-color: rgba(56, 222, 187, 0.54);
    background: rgba(56, 222, 187, 0.08);
}

.voice-card.is-speaking {
    box-shadow: 0 0 0 4px rgba(56, 222, 187, 0.08);
}

.template-card .material-symbols-outlined,
.voice-card-choice .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.7rem;
}

.template-card small,
.voice-card small {
    color: var(--muted);
}

.voice-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.voice-card-meta span {
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--muted-soft);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
}

.voice-card-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    cursor: pointer;
}

.voice-card-choice input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.voice-card-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.voice-card-copy strong,
.voice-card-copy small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.voice-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
}

.voice-test-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(173, 199, 255, 0.32);
    border-radius: var(--radius-sm);
    appearance: none;
    background: transparent;
    color: var(--primary);
    padding: 0 12px;
    font-weight: 800;
}

.voice-test-button:hover,
.voice-test-button:focus-visible {
    background: var(--primary);
    color: var(--primary-ink);
}

.voice-card.is-speaking .voice-test-button,
.voice-card.is-connecting .voice-test-button {
    border-color: rgba(56, 222, 187, 0.5);
    color: var(--mint);
}

.voice-card.is-speaking .voice-test-button:hover,
.voice-card.is-connecting .voice-test-button:hover,
.voice-card.is-speaking .voice-test-button:focus-visible,
.voice-card.is-connecting .voice-test-button:focus-visible {
    background: var(--mint);
    color: var(--mint-ink);
}

.voice-activity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 34px;
    min-height: 22px;
    opacity: 0.35;
}

.voice-activity span {
    display: block;
    width: 5px;
    height: 8px;
    border-radius: 999px;
    background: var(--muted-soft);
}

.voice-card.is-connecting .voice-activity,
.voice-card.is-speaking .voice-activity {
    opacity: 1;
}

.voice-card.is-connecting .voice-activity span {
    background: var(--mint);
    animation: voice-wait 900ms ease-in-out infinite;
}

.voice-card.is-speaking .voice-activity span {
    background: var(--mint);
    animation: voice-level 520ms ease-in-out infinite;
}

.voice-card.is-speaking .voice-activity span:nth-child(2),
.voice-card.is-connecting .voice-activity span:nth-child(2) {
    animation-delay: 120ms;
}

.voice-card.is-speaking .voice-activity span:nth-child(3),
.voice-card.is-connecting .voice-activity span:nth-child(3) {
    animation-delay: 240ms;
}

.voice-preview-status {
    margin: 0;
    color: var(--muted-soft);
    font-size: 0.84rem;
}

.voice-preview-status.is-error {
    color: var(--danger);
}

.model-option-list {
    display: grid;
    gap: 8px;
}

.model-option-note {
    display: grid;
    gap: 3px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--surface-low);
    padding: 11px 12px;
}

.model-option-note.is-selected {
    border-color: color-mix(in srgb, var(--primary) 62%, var(--border-soft));
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-low));
}

.model-option-note strong {
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 650;
}

.model-option-note small {
    color: var(--muted);
    font-size: 0.82rem;
}

@keyframes voice-level {
    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 22px;
    }
}

@keyframes voice-wait {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .voice-card.is-connecting .voice-activity span,
    .voice-card.is-speaking .voice-activity span {
        animation: none;
        height: 14px;
    }
}

.section-divider {
    border-top: 1px solid var(--border-soft);
    margin-top: 22px;
    padding-top: 22px;
}

.agent-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.agent-config-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
}

.training-panel {
    min-height: calc(100vh - var(--topbar-height) - 64px);
}

.training-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.behavior-card-groups {
    display: grid;
    gap: 22px;
}

.behavior-card-group {
    display: grid;
    gap: 12px;
}

.behavior-card-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
}

.behavior-card-group-heading h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 850;
}

.training-editor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
}

.behavior-section-button {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 12px;
    aspect-ratio: 1;
    min-height: 0;
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    appearance: none;
    background: var(--surface-low);
    color: var(--text);
    padding: 14px;
    text-align: left;
}

.behavior-section-button:hover,
.behavior-section-button:focus-visible {
    border-color: rgba(173, 199, 255, 0.48);
    background: rgba(173, 199, 255, 0.08);
}

.behavior-section-button.is-disabled {
    opacity: 0.62;
}

.behavior-section-button.is-disabled > .material-symbols-outlined:first-child {
    color: var(--muted-soft);
}

.behavior-section-button > .material-symbols-outlined:first-child {
    color: var(--primary);
    font-size: 1.55rem;
}

.behavior-section-button strong {
    display: block;
    min-width: 0;
}

.behavior-section-button strong {
    align-self: end;
    color: var(--text-strong);
    font-size: 0.98rem;
    line-height: 1.15;
}

.section-state-pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 28px;
    border: 1px solid rgba(56, 222, 187, 0.28);
    border-radius: 999px;
    background: rgba(56, 222, 187, 0.08);
    color: var(--mint);
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 850;
}

.section-state-pill.is-off {
    border-color: rgba(180, 188, 203, 0.16);
    background: rgba(180, 188, 203, 0.07);
    color: rgba(180, 188, 203, 0.68);
}

.linked-number-list,
.vapi-status-panel,
.integration-list,
.rename-form {
    display: grid;
    gap: 12px;
}

.agent-config-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
}

.rename-form {
    grid-template-columns: 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 16px;
}

.rename-form .button {
    justify-self: start;
}

.linked-number-list,
.vapi-status-panel {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 16px;
}

.linked-number,
.integration-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
}

.integration-row > span:not(.material-symbols-outlined) {
    flex: 1 1 auto;
    min-width: 0;
}

.linked-number .material-symbols-outlined,
.integration-row .material-symbols-outlined {
    color: var(--primary);
}

.linked-number strong,
.linked-number small,
.integration-row strong,
.integration-row small {
    display: block;
}

.linked-number small,
.integration-row small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.compact-empty {
    min-height: 130px;
}

.compact-button {
    min-height: 40px;
    padding: 0 14px;
}

.config-edit-button {
    margin-left: auto;
}

.compact-config-row {
    font-size: 0.92rem;
}

.agent-test-call {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-soft);
    margin-top: 2px;
    padding-top: 12px;
}

.panel-heading > .agent-test-call {
    width: min(380px, 42vw);
    min-width: min(380px, 42vw);
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.agent-test-copy {
    min-width: 0;
    width: 100%;
}

.agent-test-call strong,
.agent-test-call small {
    display: block;
    min-width: 0;
}

.agent-test-call small {
    color: var(--muted-soft);
    max-width: 100%;
    min-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-test-call small.is-error {
    color: var(--danger);
}

.agent-credit-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 16px;
    font-weight: 560;
}

.agent-credit-alert > .material-symbols-outlined {
    color: var(--danger);
}

.agent-credit-alert strong,
.agent-credit-alert p {
    display: block;
    margin: 0;
}

.agent-credit-alert p {
    color: var(--muted);
    font-size: 0.86rem;
}

.agent-credit-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.agent-call-button {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.agent-test-call.is-connecting .agent-call-button {
    border-color: rgba(56, 222, 187, 0.5);
    color: var(--mint);
}

.agent-test-call.is-speaking .agent-call-button {
    border-color: rgba(255, 180, 171, 0.56);
    background: rgba(255, 180, 171, 0.08);
    color: var(--danger);
}

.agent-call-activity {
    min-width: 28px;
}

.agent-test-call.is-connecting .agent-call-activity,
.agent-test-call.is-speaking .agent-call-activity {
    opacity: 1;
}

.agent-test-call.is-connecting .agent-call-activity span {
    background: var(--mint);
    animation: voice-wait 900ms ease-in-out infinite;
}

.agent-test-call.is-speaking .agent-call-activity span {
    background: var(--mint);
    animation: voice-level 520ms ease-in-out infinite;
}

.browser-test-widget {
    display: grid;
    min-height: 112px;
    align-content: center;
    justify-items: start;
    border: 1px dashed rgba(173, 199, 255, 0.32);
    border-radius: var(--radius);
    padding: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
}

.compact-actions {
    padding-top: 14px;
}

.confirm-dialog {
    width: min(480px, calc(100% - 32px));
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text);
    padding: 0;
}

.confirm-dialog::backdrop {
    background: rgba(5, 8, 10, 0.72);
    backdrop-filter: blur(6px);
}

.config-dialog {
    width: min(880px, calc(100% - 32px));
    max-height: min(860px, calc(100vh - 32px));
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text);
    padding: 0;
}

.config-dialog::backdrop {
    background: rgba(5, 8, 10, 0.72);
    backdrop-filter: blur(6px);
}

.side-tray-dialog {
    width: min(940px, calc(100vw - 72px));
    max-width: 100vw;
    max-height: 100vh;
    margin: 0 0 0 auto;
    border-radius: 0;
}

.side-tray-dialog[open] {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    overflow: hidden;
}

.side-tray-dialog::backdrop {
    background: rgba(5, 8, 10, 0.58);
}

.config-card {
    display: grid;
    gap: 18px;
    max-height: min(860px, calc(100vh - 32px));
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 22px;
}

.side-tray-card {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    background: var(--panel-bg-solid);
    padding: 30px 34px;
    transform: translateX(100%);
    opacity: 0.98;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
}

.side-tray-dialog.is-open .side-tray-card {
    transform: translateX(0);
    opacity: 1;
}

.side-tray-dialog.is-closing .side-tray-card {
    transform: translateX(100%);
    opacity: 0.98;
}

.side-tray-card .config-card-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 20px;
}

.side-tray-card .config-card-header h2 {
    max-width: 760px;
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
}

.side-tray-card .config-card-header p:not(.section-label) {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.side-tray-card .icon-button {
    width: 48px;
    height: 48px;
}

.side-tray-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
}

.side-tray-form .field {
    min-height: 0;
}

.side-tray-form textarea {
    min-height: 220px;
    max-height: none;
    border-radius: var(--radius);
    background: var(--input-bg);
    font-size: 1rem;
    line-height: 1.55;
}

.side-tray-form textarea[name="greeting"],
.transfer-destination-row textarea {
    min-height: 120px;
}

.field-full {
    grid-column: 1 / -1;
}

.transfer-destination-panel {
    display: grid;
    gap: 16px;
}

.transfer-destination-list {
    display: grid;
    gap: 14px;
}

.transfer-destination-panel h3 {
    margin: 4px 0 6px;
    font-size: 1rem;
}

.transfer-destination-panel p:not(.section-label) {
    margin: 0;
    color: var(--muted);
}

.transfer-destination-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 14px;
}

.transfer-destination-row .field {
    min-height: auto;
}

.transfer-add-button {
    justify-self: start;
}

.side-tray-form .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    align-items: center;
    border-top: 1px solid var(--border-soft);
    background: linear-gradient(180deg, transparent, var(--panel-bg-solid) 42%);
    padding: 16px 0 0;
}

.side-tray-form .button {
    min-height: 44px;
    border-radius: var(--radius-sm);
    padding: 0 18px;
    font-size: 0.96rem;
}

.section-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
}

.section-toggle input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.toggle-track {
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    border: 1px solid rgba(180, 188, 203, 0.26);
    border-radius: 999px;
    background: rgba(180, 188, 203, 0.12);
    padding: 3px;
    transition: background 160ms ease, border-color 160ms ease;
}

.toggle-track span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--muted);
    transition: transform 160ms ease, background 160ms ease;
}

.section-toggle input:checked + .toggle-track {
    border-color: rgba(56, 222, 187, 0.44);
    background: rgba(56, 222, 187, 0.16);
}

.section-toggle input:checked + .toggle-track span {
    transform: translateX(20px);
    background: var(--mint);
}

.section-toggle strong,
.section-toggle small {
    display: block;
}

.section-toggle small {
    color: var(--muted);
    line-height: 1.4;
}

.side-tray-card.is-section-disabled textarea {
    opacity: 0.58;
    border-color: rgba(180, 188, 203, 0.14);
    background: rgba(9, 13, 14, 0.64);
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.config-card-header p {
    margin-bottom: 0;
}

.config-form {
    display: grid;
    gap: 16px;
}

.config-status {
    margin: 0;
}

.confirm-card {
    display: grid;
    gap: 18px;
    border: 1px solid rgba(255, 180, 171, 0.22);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 22px;
}

.confirm-card h2 {
    margin-bottom: 8px;
}

.confirm-card p {
    margin-bottom: 0;
}

.mobile-app-nav {
    display: none;
}

@media (max-width: 980px) {
    .marketing-hero,
    .auth-layout,
    .auth-layout-reverse,
    .checkout-shell,
    .error-canvas,
    .app-grid,
    .dashboard-grid,
    .crm-grid,
    .configuration-grid,
    .analytics-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-grid + .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .error-canvas {
        padding: 36px 0;
    }

    .feature-grid,
    .metrics-grid,
    .phone-number-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .resource-header {
        display: none;
    }

    .resource-row,
    .phone-resource-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .transfer-destination-row {
        grid-template-columns: 1fr;
    }

    .resource-action {
        justify-self: start;
    }

    .agent-detail-layout,
    .training-summary {
        grid-template-columns: 1fr;
    }

    .panel-heading > .agent-test-call {
        min-width: 0;
        width: 100%;
    }

    .agent-credit-alert {
        grid-template-columns: 1fr;
    }

    .agent-credit-actions {
        justify-content: flex-start;
    }

    .side-tray-dialog {
        width: min(860px, calc(100vw - 24px));
    }

    .agent-config-sidebar {
        position: static;
    }

    .analytics-detail-panel {
        position: static;
    }

    .analytics-filters {
        grid-template-columns: 1fr;
    }

    .cart-trigger {
        display: flex;
    }

    .cart-close {
        display: flex;
        align-items: center;
        gap: 8px;
        align-self: flex-end;
        background: none;
        border: none;
        color: var(--muted);
        cursor: pointer;
        font-size: 0.85rem;
        padding: 4px 0 8px;
    }

    .cart-close:hover {
        color: var(--text);
    }

    .cart-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 109;
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .cart-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .checkout-summary {
        position: fixed;
        top: 0;
        right: -110%;
        width: min(400px, 92vw);
        height: 100%;
        overflow-y: auto;
        z-index: 110;
        border-radius: 0;
        border-left: 1px solid var(--border-soft);
        transition: right 240ms cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px 20px env(safe-area-inset-bottom, 20px);
    }

    .checkout-summary.is-open {
        right: 0;
    }

    .app-shell {
        padding-left: 0;
        padding-top: var(--topbar-height);
        padding-bottom: 72px;
    }

    .app-sidebar {
        display: none;
    }

    .app-topbar {
        left: 0;
    }

    .mobile-app-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
        border-top: 1px solid var(--border-soft);
        background: var(--topbar-bg);
        backdrop-filter: blur(18px);
    }

    .mobile-nav-item {
        justify-content: center;
        gap: 5px;
        min-height: 64px;
        border-radius: 0;
        flex-direction: column;
        font-size: 0.72rem;
    }

    .mobile-nav-item.is-active {
        color: var(--primary);
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
    }

    .marketing-header {
        padding: 0 0 4px;
        min-height: 64px;
    }

    .marketing-main {
        padding-top: 28px;
    }

    .error-art {
        min-height: 300px;
    }

    .hero-actions,
    .footer-inner,
    .form-actions,
    .rename-form,
    .search-card {
        align-items: stretch;
        flex-direction: column;
    }

    .rename-form {
        grid-template-columns: 1fr;
    }

    .search-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: grid;
        justify-items: start;
    }

    .site-footer nav {
        flex-wrap: wrap;
    }

    .topbar-actions .button span:not(.material-symbols-outlined) {
        display: none;
    }

    .account-chip {
        display: none;
    }

    .avatar-mobile-trigger {
        display: inline-flex;
        padding: 0;
        border: none;
        background: transparent;
    }

    .account-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 119;
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .account-drawer-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .account-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -110%;
        width: min(320px, 88vw);
        height: 100%;
        z-index: 120;
        background: var(--panel-bg);
        border-left: 1px solid var(--border-soft);
        transition: right 240ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .account-drawer.is-open {
        right: 0;
    }

    .account-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 16px 14px;
        border-bottom: 1px solid var(--border-soft);
    }

    .account-drawer-user {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .account-drawer-user div {
        min-width: 0;
    }

    .account-drawer-user strong,
    .account-drawer-user small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-drawer-user strong {
        font-size: 0.9rem;
        color: var(--text-strong);
    }

    .account-drawer-user small {
        font-size: 0.75rem;
        color: var(--muted);
    }

    .account-drawer-nav {
        padding: 10px 8px;
    }

    .account-drawer-item {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 13px 12px;
        background: none;
        border: none;
        border-radius: var(--radius);
        color: var(--text);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
    }

    .account-drawer-item:hover {
        background: var(--surface-low);
    }

    .account-drawer-item .material-symbols-outlined {
        font-size: 1.2rem;
        color: var(--muted);
    }

    .app-topbar {
        gap: 12px;
    }

    .app-topbar h1 {
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .template-grid,
    .voice-grid {
        grid-template-columns: 1fr;
    }

    .training-editor-list {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    }

    .side-tray-dialog {
        width: 100vw;
    }

    .side-tray-card {
        padding: 22px 18px;
    }

    .side-tray-card .config-card-header h2 {
        font-size: 2rem;
    }

    .side-tray-form textarea {
        min-height: 300px;
    }

    .transfer-destination-row textarea,
    .side-tray-form textarea[name="greeting"] {
        min-height: 120px;
    }

    .analytics-toolbar,
    .billing-hero,
    .call-detail-header {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-hero-side {
        min-width: 0;
    }

    .billing-pack-grid {
        grid-template-columns: 1fr;
    }

    .billing-cycle-row {
        grid-template-columns: 1fr;
    }

    .billing-receipts-table {
        overflow-x: auto;
    }

    .billing-receipt-header,
    .billing-receipt-row {
        min-width: 760px;
    }

    .transcript-item,
    .transcript-item.event {
        max-width: 92%;
    }

    /* Panel heading: stack title and CTA vertically */
    .panel-heading {
        flex-direction: column;
    }

    .panel-actions {
        width: 100%;
    }

    .panel-actions .button {
        flex: 1;
        justify-content: center;
    }

    /* Phone number rows: 3-row card — number full width, then assignment + status */
    .phone-resource-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 4px 12px;
        align-items: center;
    }

    /* Number + region — full width, row 1 */
    .phone-resource-row > span:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Hide capability */
    .phone-resource-row > span:nth-child(2) {
        display: none;
    }

    /* Assignment link — row 2 left */
    .phone-resource-row > span:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    /* Status badge — row 2 right */
    .phone-resource-row > span:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    /* Plan — row 3, right-aligned */
    .phone-resource-row > span:nth-child(5) {
        grid-column: 1 / -1;
        grid-row: 3;
        text-align: right;
        font-size: 0.76rem;
        color: var(--muted);
    }

    /* Checkout page */
    .checkout-main h1 {
        font-size: 1.75rem;
        overflow-wrap: break-word;
    }

    .payment-option {
        min-height: auto;
    }

    .checkout-summary .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .checkout-summary .cart-item-actions {
        justify-content: space-between;
        margin-left: 0;
        padding-top: 0;
    }

    .analytics-table-header {
        display: none;
    }

    .analytics-table-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        min-width: 0;
        gap: 5px 10px;
        padding: 12px 16px;
        align-items: center;
    }

    /* Hide: call ID, assistant phone, type, start time, credits */
    .analytics-table-row > span:nth-child(1),
    .analytics-table-row > span:nth-child(3),
    .analytics-table-row > span:nth-child(5),
    .analytics-table-row > span:nth-child(7),
    .analytics-table-row > span:nth-child(9) {
        display: none;
    }

    /* Assistant name — row 1 left */
    .analytics-table-row > span:nth-child(2) {
        grid-column: 1;
        grid-row: 1;
    }

    /* Duration — row 1 right */
    .analytics-table-row > span:nth-child(8) {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    /* Customer phone — row 2 left */
    .analytics-table-row > span:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
    }

    /* Ended reason — row 2 right */
    .analytics-table-row > span:nth-child(6) {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .crm-table-row > span,
    .crm-task-detail-row > span {
        display: block;
    }

    .crm-table-row {
        grid-template-rows: auto auto auto auto;
    }

    .crm-table-row > span:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .crm-table-row > span:nth-child(6) {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .crm-table-row > span:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .crm-table-row > span:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .crm-table-row > span:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .crm-table-row > span:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .crm-table-row > span:nth-child(7) {
        display: block;
        grid-column: 1 / -1;
        grid-row: 4;
        padding-top: 4px;
        color: var(--muted);
        font-size: 0.74rem;
        text-align: left;
    }

    .crm-last-activity::before {
        content: attr(data-mobile-label) ": ";
        color: var(--muted-soft);
        font-weight: 650;
    }

    .crm-detail-stats {
        grid-template-columns: 1fr;
    }

    .crm-contact-actions {
        width: 100%;
        justify-content: space-between;
    }

    .crm-call-list-table {
        overflow-x: visible;
    }

    .crm-call-list-header {
        display: none;
    }

    .crm-call-list-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 8px 14px;
        min-width: 0;
    }

    .crm-call-summary {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .crm-call-row-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .crm-task-detail-row {
        grid-template-rows: auto auto auto;
    }

    .crm-task-detail-row > span:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .crm-task-detail-row > span:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .crm-task-detail-row > span:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .crm-task-detail-row > span:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .crm-task-detail-row > span:nth-child(5) {
        display: none;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: var(--text-strong);
    color: var(--surface-low);
    padding: 10px 18px 10px 14px;
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary);
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sms-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid var(--muted);
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
    margin-left: 3px;
    vertical-align: middle;
    flex-shrink: 0;
}

.sms-info::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-high, #1e1e1e);
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease;
    z-index: 200;
}

.sms-info:hover::after,
.sms-info:focus-visible::after {
    opacity: 1;
}

@media (max-width: 540px) {
    .number-option {
        flex-wrap: wrap;
        gap: 10px;
    }

    .number-option > span:not(.number-price) {
        flex: 1 1 100%;
    }

    .number-option > .number-price {
        margin-left: 0;
    }
}
