:root {
    --bg: #07101c;
    --bg-deep: #040915;
    --sidebar: rgba(7, 19, 33, 0.96);
    --panel: rgba(10, 25, 43, 0.92);
    --panel-strong: rgba(12, 31, 53, 0.98);
    --panel-soft: rgba(13, 35, 60, 0.9);
    --line: rgba(81, 140, 198, 0.18);
    --text: #eff6ff;
    --muted: #8ca3bf;
    --accent: #44d4c9;
    --accent-strong: #10b8e9;
    --success: #4ce38a;
    --warning: #ffb454;
    --danger: #ff6d7c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Bahnschrift", "Segoe UI Variable", "Aptos", sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    background:
        radial-gradient(circle at top left, rgba(16, 184, 233, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(68, 212, 201, 0.12), transparent 24%),
        linear-gradient(180deg, #091425 0%, var(--bg) 45%, var(--bg-deep) 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
    pointer-events: none;
}

a {
    color: #91ebff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #d8fbff;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    padding: 1.35rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(6, 18, 32, 0.98), rgba(8, 17, 31, 0.96)),
        var(--sidebar);
    border-right: 1px solid rgba(81, 140, 198, 0.16);
    position: relative;
}

.eyebrow,
.top-row-kicker,
.hero-chip-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.66rem;
    color: var(--muted);
}

.nav-menu {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.nav-item {
    border-radius: 0.85rem;
    padding: 0.72rem 0.85rem;
    color: rgba(235, 245, 255, 0.88);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-item.active,
.nav-item:hover {
    background: rgba(16, 184, 233, 0.09);
    border-color: rgba(77, 189, 255, 0.18);
    transform: translateX(4px);
}

.sidebar-callout,
.content-panel,
.stat-card,
.detail-card,
.callout,
.hero-chip,
.event-item {
    background: linear-gradient(180deg, rgba(11, 28, 46, 0.96), rgba(8, 23, 39, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sidebar-callout {
    margin-top: 1.3rem;
    border-radius: 1rem;
    padding: 0.85rem;
}

.sidebar-callout strong {
    display: block;
    margin: 0.45rem 0;
}

.sidebar-callout p {
    color: rgba(224, 235, 248, 0.74);
    margin-bottom: 0;
}

.app-main {
    padding: 1.5rem;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.top-row-title {
    font-size: 1.45rem;
    font-weight: 700;
}

.top-row-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.top-row-status,
.top-row-link,
.panel-link,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
}

.top-row-status {
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.top-row-link,
.panel-link {
    border: 1px solid rgba(77, 189, 255, 0.18);
    background: rgba(68, 212, 201, 0.08);
}

.panel-link-button {
    color: #91ebff;
    font: inherit;
    cursor: pointer;
}

.content-panel {
    border-radius: 1.5rem;
    padding: 1.15rem;
    animation: rise-in 320ms ease;
}

.feature-control-panel {
    margin-bottom: 0.95rem;
}

.feature-summary-copy {
    margin-bottom: 0;
    color: rgba(224, 235, 248, 0.72);
    line-height: 1.4;
    max-width: 44rem;
}

.feature-summary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    align-items: center;
}

.feature-control-pill {
    font-size: 0.72rem;
}

.feature-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem;
}

.feature-toggle-card {
    border-radius: 1rem;
    padding: 0.85rem;
    background: linear-gradient(180deg, rgba(13, 33, 56, 0.98), rgba(8, 22, 38, 0.96));
    border: 1px solid rgba(91, 157, 218, 0.18);
    display: grid;
    gap: 0.65rem;
}

.feature-toggle-card-disabled {
    opacity: 0.72;
    border-style: dashed;
}

.feature-toggle-top,
.feature-toggle-label-row,
.feature-toggle-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.feature-toggle-top {
    align-items: start;
}

.feature-toggle-label-row {
    align-items: center;
    margin-bottom: 0.35rem;
}

.feature-toggle-label {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.feature-toggle-description {
    margin-bottom: 0;
    color: rgba(224, 235, 248, 0.72);
    line-height: 1.35;
    font-size: 0.82rem;
    max-width: 26rem;
}

.feature-toggle-state,
.feature-toggle-save {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.feature-toggle-state {
    background: rgba(68, 212, 201, 0.1);
    border: 1px solid rgba(68, 212, 201, 0.18);
    color: #c6fffa;
}

.feature-toggle-meta {
    align-items: center;
    color: var(--muted);
    font-size: 0.74rem;
}

.feature-toggle-scope {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.feature-toggle-save {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(81, 140, 198, 0.18);
    color: rgba(236, 244, 255, 0.86);
}

.feature-toggle-save-saving {
    color: #b8f4ff;
    border-color: rgba(77, 189, 255, 0.22);
    background: rgba(16, 184, 233, 0.12);
}

.feature-toggle-save-saved {
    color: #baffd3;
    border-color: rgba(76, 227, 138, 0.22);
    background: rgba(76, 227, 138, 0.1);
}

.feature-toggle-save-error {
    color: #ffd0d5;
    border-color: rgba(255, 109, 124, 0.28);
    background: rgba(255, 109, 124, 0.12);
}

.feature-status-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.feature-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(81, 140, 198, 0.18);
    background: rgba(255, 255, 255, 0.04);
    min-height: 2.1rem;
}

.feature-status-badge-label {
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.feature-status-badge-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(236, 244, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-status-badge-enabled {
    border-color: rgba(76, 227, 138, 0.24);
    background: linear-gradient(180deg, rgba(16, 60, 39, 0.78), rgba(10, 33, 24, 0.86));
}

.feature-status-badge-enabled .feature-status-badge-state {
    background: rgba(76, 227, 138, 0.14);
    color: #cbffd9;
}

.feature-status-badge-disabled {
    border-color: rgba(81, 140, 198, 0.2);
    background: linear-gradient(180deg, rgba(13, 33, 56, 0.86), rgba(8, 22, 38, 0.9));
}

.feature-status-badge-disabled .feature-status-badge-state {
    background: rgba(81, 140, 198, 0.14);
    color: #d8ebff;
}

.feature-status-badge-pending {
    border-color: rgba(255, 180, 84, 0.24);
    background: linear-gradient(180deg, rgba(64, 42, 10, 0.82), rgba(39, 27, 8, 0.9));
}

.feature-status-badge-pending .feature-status-badge-state {
    background: rgba(255, 180, 84, 0.14);
    color: #ffe0ac;
}

.feature-status-badge-warning {
    border-color: rgba(255, 124, 94, 0.24);
    background: linear-gradient(180deg, rgba(67, 28, 21, 0.84), rgba(40, 17, 13, 0.92));
}

.feature-status-badge-warning .feature-status-badge-state {
    background: rgba(255, 124, 94, 0.14);
    color: #ffd3c8;
}

.feature-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.feature-switch-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.feature-switch-slider {
    position: relative;
    width: 2.8rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(81, 140, 198, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: background 180ms ease, border-color 180ms ease;
}

.feature-switch-slider::after {
    content: "";
    position: absolute;
    top: 0.14rem;
    left: 0.14rem;
    width: 1.16rem;
    height: 1.16rem;
    border-radius: 999px;
    background: #f5fbff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 180ms ease;
}

.feature-switch-input:checked + .feature-switch-slider {
    background: linear-gradient(90deg, rgba(16, 184, 233, 0.9), rgba(68, 212, 201, 0.88));
    border-color: rgba(132, 236, 255, 0.42);
}

.feature-switch-input:checked + .feature-switch-slider::after {
    transform: translateX(1.16rem);
}

.feature-switch-input:disabled {
    cursor: not-allowed;
}

.feature-switch-input:disabled + .feature-switch-slider {
    opacity: 0.7;
}

.overview-hero,
.hero-meta,
.stats-grid,
.detail-grid,
.overview-grid,
.panel-section {
    display: grid;
    gap: 1rem;
}

.overview-hero {
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.calls-hero {
    grid-template-columns: minmax(0, 1.3fr) auto;
}

.overview-hero-copy {
    min-width: 0;
}

.overview-hero-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.hero-summary {
    max-width: 56rem;
    color: rgba(226, 236, 248, 0.76);
    line-height: 1.45;
    font-size: 0.92rem;
}

.overview-hero-title {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.05;
    margin-bottom: 0;
}

.hero-summary-compact {
    margin-bottom: 0;
}

.overview-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    background: linear-gradient(135deg, rgba(46, 172, 90, 0.22), rgba(16, 60, 39, 0.72));
    border: 1px solid rgba(76, 227, 138, 0.2);
    color: #d9ffe7;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-meta {
    grid-template-columns: repeat(1, max-content);
    justify-content: end;
    align-content: start;
}

.hero-chip {
    border-radius: 0.85rem;
    padding: 0.72rem 0.85rem;
    min-width: 8rem;
}

.hero-chip-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.72rem;
    min-width: 0;
}

.hero-chip-compact {
    min-width: 7.25rem;
}

.hero-chip strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.hero-chip-inline strong {
    margin-top: 0;
    white-space: nowrap;
}

.live-dashboard-hero-meta,
.transcription-hero-meta {
    align-items: stretch;
}

.live-dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.live-dashboard-hero-meta .hero-chip {
    min-width: 0;
}

.live-dashboard-hero-meta .transcription-refresh-button {
    min-width: 0;
    padding-inline: 1.05rem;
}

.overview-refresh-button {
    padding-block: 0.48rem;
}

.overview-control-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.overview-control-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    padding: 0.82rem 0.88rem;
}

.overview-control-header {
    margin-bottom: 0.55rem;
}

.overview-control-card .dashboard-filter-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.overview-control-card .dashboard-filter-label {
    font-size: 0.68rem;
}

.overview-control-card .dashboard-date-filter-presets {
    gap: 0.35rem;
}

.overview-control-card .dashboard-preset-button {
    padding: 0.32rem 0.58rem;
    font-size: 0.73rem;
}

.overview-control-card .feature-status-badge-row {
    gap: 0.45rem;
}

.overview-control-card .feature-status-badge {
    gap: 0.38rem;
    min-height: 1.92rem;
    padding: 0.38rem 0.62rem;
}

.overview-control-card .feature-status-badge-label {
    font-size: 0.76rem;
}

.overview-control-card .feature-status-badge-state {
    font-size: 0.63rem;
}

.overview-custom-grid {
    grid-template-columns: repeat(2, minmax(0, 160px)) auto;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.overview-custom-actions {
    align-self: end;
}

.stats-grid {
    margin: 0.85rem 0 1.05rem;
}

.stats-grid-dashboard {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.overview-kpi-grid {
    gap: 0.72rem;
    margin: 0.72rem 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card,
.detail-card {
    border-radius: 1.15rem;
    padding: 0.95rem;
    animation: rise-in 360ms ease;
}

.stat-card-primary {
    background: linear-gradient(145deg, rgba(11, 35, 64, 0.96), rgba(8, 28, 55, 0.96));
}

.stat-card-success {
    background: linear-gradient(145deg, rgba(8, 40, 43, 0.96), rgba(8, 29, 33, 0.96));
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.stat-value {
    display: block;
    margin-top: 0.4rem;
    font-size: clamp(1.6rem, 1.9vw, 2rem);
    line-height: 1.05;
}

.stat-caption {
    display: block;
    margin-top: 0.45rem;
    color: rgba(224, 235, 248, 0.64);
    line-height: 1.35;
    font-size: 0.84rem;
}

.stat-caption-compact {
    margin-top: 0.65rem;
}

.stat-card-breakdown {
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

.stat-card-kpi {
    display: grid;
    align-content: start;
    gap: 0.18rem;
    min-height: 5.8rem;
    padding: 0.72rem 0.78rem;
    border-radius: 1rem;
}

.stat-card-kpi .stat-label {
    font-size: 0.74rem;
    line-height: 1.2;
}

.stat-card-kpi .stat-value {
    margin-top: 0.18rem;
    font-size: clamp(1.45rem, 1.65vw, 1.8rem);
}

.stat-card-kpi .stat-caption {
    margin-top: 0.14rem;
    font-size: 0.77rem;
    line-height: 1.24;
}

.stat-card-kpi .stat-card-link-row-plain {
    gap: 0.2rem 0.65rem;
    margin-top: 0.18rem;
}

.stat-card-kpi .stat-inline-link-plain {
    font-size: 0.7rem;
}

.stat-card-kpi-wide {
    grid-column: span 2;
}

.stat-card-alert {
    background: linear-gradient(145deg, rgba(47, 22, 18, 0.96), rgba(25, 14, 20, 0.96));
    border: 1px solid rgba(255, 124, 94, 0.18);
}

.stat-card-alert-compact {
    display: flex;
    flex-direction: column;
}

.stat-card-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.stat-card-link-row-plain {
    gap: 0.55rem 0.75rem;
    margin-top: 0.75rem;
    align-items: center;
}

.stat-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(81, 140, 198, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(236, 244, 255, 0.88);
    font-size: 0.7rem;
    text-decoration: none;
    white-space: nowrap;
}

.stat-inline-link:hover {
    border-color: rgba(129, 192, 255, 0.32);
    color: #ffffff;
}

.stat-inline-link-plain {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(236, 244, 255, 0.9);
    font-size: 0.74rem;
    line-height: 1.2;
}

.stat-inline-link-plain:hover {
    border: none;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.stat-card-alert .stat-value {
    margin-top: 0.4rem;
}

.stat-card-alert .stat-caption {
    margin-top: 0.45rem;
}

.stat-card-focus {
    border: 1px solid rgba(129, 192, 255, 0.34);
    box-shadow: 0 0 0 1px rgba(129, 192, 255, 0.18);
}

.stat-breakdown-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.stat-breakdown-item {
    display: grid;
    gap: 0.2rem;
}

.stat-breakdown-header {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(236, 244, 255, 0.9);
}

.stat-breakdown-header strong {
    font-size: 0.82rem;
    line-height: 1;
}

.stat-breakdown-track {
    height: 0.42rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.overview-attestation-rail {
    margin-bottom: 0.75rem;
    padding: 0.82rem 0.88rem;
}

.overview-attestation-header {
    margin-bottom: 0.55rem;
}

.overview-attestation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.55rem 0.75rem;
}

.overview-attestation-item {
    display: grid;
    gap: 0.28rem;
    align-content: start;
}

.overview-attestation-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.78rem;
}

.overview-attestation-item-header strong {
    font-size: 0.82rem;
    line-height: 1;
}

.overview-attestation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #d8ebff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-attestation-badge-a {
    color: #8ca0ff;
}

.overview-attestation-badge-b {
    color: #73e5d8;
}

.overview-attestation-badge-c {
    color: #ffbf6e;
}

.overview-attestation-track {
    height: 0.36rem;
}

.overview-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 0.75rem;
}

.overview-panel-header-compact {
    margin-bottom: 0.55rem;
}

.overview-table-toolbar {
    align-self: start;
}

.overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 1.1rem;
}

.dashboard-card {
    min-height: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 0.7rem;
}

.panel-header h2,
.detail-card h2 {
    margin-bottom: 0;
}

.breakdown-list {
    display: grid;
    gap: 0.7rem;
}

.breakdown-item {
    display: grid;
    gap: 0.35rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.breakdown-track {
    height: 0.58rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.breakdown-fill {
    height: 100%;
    border-radius: 999px;
}

.decision-fill {
    background: linear-gradient(90deg, #18b5ea, #4edbc5);
}

.attestation-fill {
    background: linear-gradient(90deg, #476dff, #7b8bff);
}

.cost-fill {
    background: linear-gradient(90deg, #2dd58f, #73ffb9);
}

.billing-fill {
    background: linear-gradient(90deg, #f5ad2a, #ffd56f);
}

.cost-summary {
    margin-bottom: 0.75rem;
}

.cost-total {
    display: block;
    font-size: 1.7rem;
    line-height: 1.1;
    color: #9dffc8;
}

.cost-total-account {
    color: #ffe19c;
}

.cost-ledger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.transcription-monitor-page {
    display: grid;
    gap: 0.75rem;
}

.diagnostics-page {
    display: grid;
    gap: 0.75rem;
}

.diagnostics-page > .detail-card,
.diagnostics-page > .panel-section,
.diagnostics-page > .stats-grid {
    margin: 0;
}

.diagnostics-overview-hero {
    margin-bottom: 0;
    gap: 0.8rem;
}

.diagnostics-hero-meta {
    grid-template-columns: repeat(3, max-content);
    align-items: stretch;
    gap: 0.55rem;
}

.diagnostics-back-link {
    align-self: center;
    justify-self: end;
}

.diagnostics-section {
    margin: 0;
}

.diagnostics-section-focus {
    border-radius: 1.15rem;
    padding: 0.95rem;
    background: linear-gradient(180deg, rgba(15, 35, 59, 0.96), rgba(9, 22, 39, 0.96));
    border: 1px solid rgba(129, 192, 255, 0.28);
}

.transcription-monitor-page > .detail-card,
.transcription-monitor-page > .panel-section,
.transcription-monitor-page > .overview-grid,
.transcription-monitor-page > .stats-grid {
    margin: 0;
}

.transcription-overview-hero {
    margin-bottom: 0;
    gap: 0.8rem;
}

.transcription-hero-meta {
    grid-template-columns: repeat(3, max-content);
    align-items: stretch;
    gap: 0.55rem;
}

.transcription-overview-hero .hero-chip {
    padding: 0.58rem 0.72rem;
    min-width: 7rem;
}

.transcription-overview-hero .hero-chip strong {
    margin-top: 0.18rem;
    font-size: 0.84rem;
}

.transcription-overview-hero .overview-hero-title {
    margin-bottom: 0.3rem;
}

.transcription-overview-hero .hero-summary {
    font-size: 0.86rem;
    line-height: 1.35;
}

.transcription-refresh-button {
    min-width: 6rem;
    justify-self: end;
}

.transcription-filter-panel {
    padding: 0.8rem 0.9rem;
}

.transcription-filter-panel .dashboard-filter-header {
    margin-bottom: 0.55rem;
}

.transcription-filter-panel .dashboard-filter-label {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
}

.transcription-filter-panel .dashboard-select,
.transcription-filter-panel .dashboard-input {
    min-height: 2rem;
    padding: 0.35rem 0.62rem;
}

.transcription-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.transcription-filter-preset-field {
    grid-column: 1 / -1;
}

.transcription-filter-presets {
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
}

.transcription-filter-presets .dashboard-preset-button {
    padding: 0.34rem 0.62rem;
    font-size: 0.74rem;
    white-space: nowrap;
}

.transcription-custom-grid {
    grid-template-columns: repeat(2, minmax(0, 170px)) auto;
    gap: 0.6rem;
    margin-top: 0.55rem;
}

.transcription-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
}

.transcription-stats-grid .stat-card {
    padding: 0.72rem 0.8rem;
    border-radius: 1rem;
}

.transcription-stats-grid .stat-label {
    font-size: 0.74rem;
}

.transcription-stats-grid .stat-value {
    margin-top: 0.22rem;
    font-size: clamp(1.35rem, 1.55vw, 1.75rem);
}

.transcription-stats-grid .stat-caption {
    margin-top: 0.28rem;
    font-size: 0.76rem;
    line-height: 1.25;
}

.transcription-overview-grid {
    margin-bottom: 0;
    gap: 0.75rem;
}

.transcription-monitor-page .panel-section {
    gap: 0.55rem;
}

.transcription-monitor-page .panel-header {
    margin-bottom: 0.5rem;
    gap: 0.65rem;
}

.transcription-monitor-page .detail-card,
.transcription-monitor-page .panel-section > .table-shell,
.transcription-monitor-page .panel-section > .empty-state {
    min-height: 0;
}

.transcription-monitor-page .detail-card {
    padding: 0.8rem 0.9rem;
}

.transcription-monitor-page .detail-card h2,
.transcription-monitor-page .panel-section h2 {
    font-size: 1.02rem;
}

.transcription-monitor-page .callout,
.transcription-monitor-page .empty-state {
    padding: 0.7rem 0.8rem;
    line-height: 1.3;
}

.transcription-monitor-page .table-shell {
    border-radius: 0.85rem;
}

.transcription-monitor-page .table-surface th,
.transcription-monitor-page .table-surface td {
    padding: 0.48rem 0.62rem;
    line-height: 1.2;
}

.transcription-monitor-page .table-surface td {
    font-size: 0.82rem;
}

.transcription-monitor-page .table-surface thead th {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

.transcription-monitor-page .voiceprint-trend-table th,
.transcription-monitor-page .voiceprint-trend-table td {
    padding: 0.36rem 0.56rem;
    line-height: 1.15;
}

.transcription-monitor-page .voiceprint-trend-table td {
    font-size: 0.8rem;
}

.transcription-monitor-page .voiceprint-trend-table td:first-child {
    white-space: nowrap;
}

.transcription-monitor-page .transcription-trend-table th,
.transcription-monitor-page .transcription-trend-table td {
    padding: 0.36rem 0.56rem;
    line-height: 1.15;
}

.transcription-monitor-page .transcription-trend-table td {
    font-size: 0.8rem;
}

.transcription-monitor-page .transcription-trend-table td:first-child {
    white-space: nowrap;
}

.transcription-monitor-page .ai-insights-trend-table th,
.transcription-monitor-page .ai-insights-trend-table td {
    padding: 0.36rem 0.56rem;
    line-height: 1.15;
}

.transcription-monitor-page .ai-insights-trend-table td {
    font-size: 0.8rem;
}

.transcription-monitor-page .ai-insights-trend-table td:first-child {
    white-space: nowrap;
}

.transcription-monitor-page .status-chip {
    padding: 0.3rem 0.58rem;
    font-size: 0.67rem;
}

.transcription-queue-fill {
    background: linear-gradient(90deg, #4aa8ff, #78d7ff);
}

.transcription-language-fill {
    background: linear-gradient(90deg, #31c48d, #96f7d2);
}

.transcription-trend-list {
    display: grid;
    gap: 0.55rem;
}

.transcription-trend-row {
    display: grid;
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.62rem 0.72rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(92, 149, 210, 0.16);
    background: rgba(9, 25, 42, 0.5);
}

.transcription-trend-labels {
    display: grid;
    gap: 0.12rem;
}

.transcription-trend-labels strong {
    font-size: 0.82rem;
}

.transcription-trend-labels .stat-caption {
    margin-top: 0;
    font-size: 0.75rem;
    line-height: 1.2;
}

.transcription-trend-bars {
    display: grid;
    gap: 0.32rem;
}

.transcription-trend-bar {
    display: grid;
    grid-template-columns: 4.1rem minmax(0, 1fr) 2rem;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.74rem;
}

.transcription-trend-bar-label {
    color: rgba(226, 236, 248, 0.76);
}

.transcription-trend-track {
    height: 0.38rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
}

.transcription-trend-fill {
    height: 100%;
    border-radius: 999px;
}

.transcription-trend-fill-sent {
    background: linear-gradient(90deg, #4aa8ff, #79dbff);
}

.transcription-trend-fill-processed {
    background: linear-gradient(90deg, #2bd39e, #97f3c9);
}

.transcription-trend-fill-error {
    background: linear-gradient(90deg, #f36b6b, #ffb16f);
}

.cost-ledger-card {
    border: 1px solid rgba(56, 171, 122, 0.22);
    border-radius: 0.95rem;
    padding: 0.95rem;
    background: rgba(10, 31, 26, 0.35);
}

.cost-ledger-card-account {
    border-color: rgba(245, 173, 42, 0.24);
    background: rgba(46, 33, 9, 0.3);
}

.cost-ledger-header {
    margin-bottom: 0.85rem;
}

.cost-ledger-header h3 {
    margin: 0.15rem 0 0.3rem;
}

.table-shell {
    overflow-x: auto;
    border-radius: 1rem;
    background: rgba(8, 24, 41, 0.98);
    border: 1px solid var(--line);
}

.table-surface {
    width: 100%;
    border-collapse: collapse;
}

.table-surface th,
.table-surface td {
    padding: 0.62rem 0.78rem;
    border-bottom: 1px solid rgba(81, 140, 198, 0.11);
    text-align: left;
    vertical-align: top;
    line-height: 1.3;
}

.table-surface td {
    color: rgba(236, 244, 255, 0.9);
}

.table-surface thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.overview-live-panel-copy {
    margin: 0.28rem 0 0;
    color: rgba(224, 235, 248, 0.74);
    line-height: 1.3;
    max-width: 24rem;
}

.overview-active-calls-table th,
.overview-active-calls-table td {
    padding: 0.42rem 0.56rem;
}

.overview-active-calls-table td {
    vertical-align: top;
}

.overview-active-call-score,
.overview-active-call-muted {
    color: rgba(224, 235, 248, 0.68);
    font-size: 0.74rem;
}

.overview-active-call-destination {
    color: rgba(236, 244, 255, 0.9);
}

.overview-active-call-inline-list {
    line-height: 1.3;
}

.overview-active-call-decision {
    color: rgba(242, 251, 255, 0.88);
    font-weight: 400;
}

.overview-active-call-decision-allow {
    color: #bfffd8;
}

.overview-active-call-decision-challenge,
.overview-active-call-score-medium {
    color: #ffd99f;
}

.overview-active-call-decision-block,
.overview-active-call-score-high {
    color: #ffd1d7;
}

.overview-active-call-status-token,
.overview-active-call-signal-token {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.overview-active-call-score {
    font-size: 0.7rem;
    font-weight: 400;
}

.overview-active-call-inline-token {
    display: inline;
    white-space: nowrap;
}

.overview-active-call-inline-token + .overview-active-call-inline-token::before {
    content: ", ";
    color: rgba(224, 235, 248, 0.62);
}

.overview-active-call-signal-list {
    color: rgba(236, 244, 255, 0.84);
}

.overview-active-calls-table .overview-active-call-status-token,
.overview-active-calls-table .overview-active-call-signal-token {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    font-weight: 400;
}

.overview-active-calls-table .overview-active-call-status-token.call-route-disposition,
.overview-active-calls-table .overview-active-call-signal-token.mini-chip {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    justify-content: flex-start;
}

.call-session-id {
    font-weight: 700;
    color: #f2fbff;
    text-decoration: none;
    min-width: 0;
}

.call-session-id:hover {
    text-decoration: underline;
}

.call-session-meta,
.call-media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.overview-table-primary {
    color: #f2fbff;
    font-weight: 700;
    line-height: 1.2;
}

.overview-table-meta,
.overview-secondary-link {
    display: inline-block;
    color: rgba(224, 235, 248, 0.68);
    font-size: 0.72rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.overview-secondary-link {
    text-decoration: none;
}

.overview-secondary-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.14rem;
}

.overview-table-meta-inline {
    margin-top: 0;
}

.overview-active-call-id-link {
    display: inline;
    margin-top: 0;
    max-width: none;
}

.overview-high-risk-table th,
.overview-high-risk-table td {
    padding: 0.44rem 0.56rem;
    vertical-align: middle;
}

.overview-high-risk-table .status-chip {
    padding: 0.28rem 0.6rem;
    font-size: 0.7rem;
}

.overview-compact-empty-state {
    margin: 0;
}

.overview-empty-note {
    margin: 0;
    color: rgba(224, 235, 248, 0.76);
    line-height: 1.35;
}

.call-session-toolbar,
.call-session-pager,
.call-session-pager-row,
.call-session-pager-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.call-leg-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(14, 42, 76, 0.58);
    color: #d7ecff;
    font-size: 0.72rem;
    font-weight: 700;
}

.calls-window-summary span {
    color: var(--muted);
}

.call-transcript-preview,
.call-transcript-current {
    margin: 0;
    color: rgba(236, 244, 255, 0.88);
    line-height: 1.45;
}

.call-transcript-preview {
    font-size: 0.84rem;
}

.call-review-list {
    display: grid;
    gap: 1rem;
}

.call-review-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(81, 140, 198, 0.16);
    background:
        linear-gradient(180deg, rgba(12, 30, 49, 0.98), rgba(8, 22, 37, 0.96)),
        radial-gradient(circle at top left, rgba(54, 123, 188, 0.16), transparent 42%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.call-review-grid {
    display: grid;
    grid-template-columns:
        minmax(10.5rem, 0.95fr)
        minmax(16.5rem, 1.7fr)
        minmax(10rem, 0.9fr)
        minmax(23rem, 2.45fr)
        minmax(8rem, 0.72fr)
        minmax(8.5rem, 0.78fr);
}

.call-review-section {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.05rem;
    min-width: 0;
    align-content: start;
}

.call-review-section + .call-review-section {
    border-left: 1px solid rgba(81, 140, 198, 0.14);
}

.call-review-section-label,
.call-session-pager-label,
.call-review-kv-label,
.call-route-node-label,
.call-review-time-meta {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.call-review-time-block,
.call-review-decision-stack,
.call-review-duration-stack,
.call-review-updated {
    display: grid;
    gap: 0.3rem;
}

.call-review-decision-stack {
    gap: 0.85rem;
}

.call-review-time {
    font-size: 1.68rem;
    line-height: 1;
    color: #f5fbff;
}

.call-review-id {
    font-family: "Cascadia Mono", "Consolas", monospace;
    font-size: 0.92rem;
    color: rgba(221, 236, 252, 0.84);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.call-review-id-row,
.call-review-meta-list,
.call-review-media-badges,
.call-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.call-review-actions {
    display: grid;
    gap: 0.55rem;
    align-items: stretch;
    width: 100%;
}

.call-review-section-media {
    min-width: 0;
}

.call-review-id-row {
    flex-wrap: nowrap;
    min-width: 0;
    gap: 0.35rem;
}

.call-review-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 1.95rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(81, 140, 198, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(215, 236, 255, 0.88);
    cursor: pointer;
}

.call-review-copy-button:hover {
    background: rgba(18, 54, 84, 0.52);
    border-color: rgba(120, 192, 248, 0.28);
}

.call-review-copy-icon {
    position: relative;
    display: inline-flex;
    width: 0.92rem;
    height: 0.92rem;
}

.call-review-copy-icon::before,
.call-review-copy-icon::after {
    content: "";
    position: absolute;
    border-radius: 0.14rem;
    border: 0.1rem solid currentColor;
    background: transparent;
}

.call-review-copy-icon::before {
    inset: 0.18rem 0.04rem 0.02rem 0.22rem;
}

.call-review-copy-icon::after {
    inset: 0.02rem 0.22rem 0.18rem 0.04rem;
    background: rgba(8, 22, 37, 0.95);
}

.call-route-grid {
    display: grid;
    align-items: start;
    column-gap: 0.7rem;
    row-gap: 0.65rem;
    grid-auto-rows: min-content;
}

.call-route-grid-two {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
        "caller arrow-first dialed"
        "caller-label . dialed-label"
        ". . dialed-status";
}

.call-route-grid-three {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
        "caller arrow-first dialed arrow-second transfer"
        "caller-label . dialed-label . transfer-label"
        ". . dialed-status . transfer-status";
}

.call-route-value {
    font-size: 1.05rem;
    line-height: 1.15;
    color: #f3fbff;
    overflow-wrap: anywhere;
}

.call-route-value-caller {
    grid-area: caller;
}

.call-route-value-dialed {
    grid-area: dialed;
}

.call-route-value-transfer {
    grid-area: transfer;
}

.call-route-label {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.call-route-label-caller {
    grid-area: caller-label;
}

.call-route-label-dialed {
    grid-area: dialed-label;
}

.call-route-label-transfer {
    grid-area: transfer-label;
}

.call-route-disposition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 1.6rem;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 161, 196, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #eff7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.call-route-label-dialed + .call-route-disposition {
    grid-area: dialed-status;
}

.call-route-label-transfer + .call-route-disposition {
    grid-area: transfer-status;
}

.call-route-disposition-success {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(21, 85, 47, 0.45);
    color: #d8ffe5;
}

.call-route-disposition-pending {
    border-color: rgba(250, 204, 21, 0.26);
    background: rgba(107, 82, 15, 0.38);
    color: #fff2bf;
}

.call-route-disposition-warning {
    border-color: rgba(248, 196, 74, 0.28);
    background: rgba(115, 74, 14, 0.4);
    color: #ffe8b8;
}

.call-route-disposition-danger {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(108, 30, 30, 0.42);
    color: #ffd6d6;
}

.call-route-grid-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: rgba(120, 192, 248, 0.65);
    font-size: 1rem;
    font-weight: 700;
    align-self: center;
    transform: translateY(-0.08rem);
}

.call-route-grid-arrow-first {
    grid-area: arrow-first;
}

.call-route-grid-arrow-second {
    grid-area: arrow-second;
}

.call-route-attestation-shield {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: currentColor;
}

.call-route-attestation-shield::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    clip-path: polygon(50% 0, 88% 16%, 84% 60%, 50% 100%, 16% 60%, 12% 16%);
    opacity: 0.95;
}

.call-route-attestation-shield span {
    position: relative;
    z-index: 1;
    color: rgba(6, 19, 33, 0.96);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.call-review-decision-details {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.call-review-score-block {
    display: grid;
    gap: 0.3rem;
}

.call-review-score-line,
.call-review-deepfake-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.call-review-inline-label {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.call-review-score-line strong {
    color: #f3fbff;
    font-size: 1rem;
}

.call-review-deepfake-line strong {
    color: rgba(223, 236, 250, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
}

.call-review-deepfake-value {
    cursor: help;
}

.call-review-kv {
    display: grid;
    gap: 0.2rem;
}

.call-review-kv strong,
.call-review-updated strong {
    color: #f3fbff;
    font-size: 1rem;
}

.call-review-outcome {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 161, 196, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #eff7ff;
    font-size: 1rem;
    font-weight: 700;
}

.call-review-outcome-allow {
    border-color: rgba(74, 222, 128, 0.28);
    background: linear-gradient(180deg, rgba(28, 114, 62, 0.9), rgba(21, 85, 47, 0.92));
    color: #deffe9;
}

.call-review-outcome-challenge {
    border-color: rgba(250, 204, 21, 0.28);
    background: linear-gradient(180deg, rgba(126, 96, 17, 0.9), rgba(91, 70, 13, 0.92));
    color: #fff0b9;
}

.call-review-outcome-block {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(180deg, rgba(124, 37, 37, 0.92), rgba(89, 25, 25, 0.94));
    color: #ffd8d8;
}

.call-review-outcome-icon {
    position: relative;
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.call-review-outcome-icon-check::before {
    content: "";
    position: absolute;
    left: 0.18rem;
    top: 0.04rem;
    width: 0.34rem;
    height: 0.64rem;
    border-right: 0.14rem solid currentColor;
    border-bottom: 0.14rem solid currentColor;
    transform: rotate(40deg);
}

.call-transcript-expanded {
    white-space: pre-wrap;
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.22rem 0.58rem;
    min-height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 161, 196, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(224, 235, 248, 0.82);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mini-chip-recording {
    border-color: rgba(74, 222, 128, 0.24);
    background: rgba(17, 59, 38, 0.55);
    color: #cbffd9;
}

.mini-chip-transcript {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(14, 42, 76, 0.58);
    color: #d7ecff;
}

.mini-chip-pending {
    border-color: rgba(250, 204, 21, 0.22);
    background: rgba(58, 44, 10, 0.58);
    color: #ffe8a3;
}

.mini-chip-alert {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(71, 20, 24, 0.6);
    color: #ffd0d0;
}

.mini-chip-attestation {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(69, 46, 8, 0.58);
    color: #ffd987;
}

.mini-chip-attestation-a {
    border-color: rgba(74, 222, 128, 0.24);
    background: rgba(17, 59, 38, 0.55);
    color: #cbffd9;
}

.mini-chip-attestation-b {
    border-color: rgba(250, 204, 21, 0.22);
    background: rgba(58, 44, 10, 0.58);
    color: #ffe8a3;
}

.mini-chip-attestation-c {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(71, 20, 24, 0.6);
    color: #ffd0d0;
}

.mini-chip-deepfake {
    border-color: rgba(168, 85, 247, 0.24);
    background: rgba(52, 24, 88, 0.58);
    color: #ecd6ff;
}

.mini-chip-ani {
    border-color: rgba(34, 211, 238, 0.24);
    background: rgba(9, 54, 66, 0.58);
    color: #d5fbff;
}

.mini-chip-voiceprint {
    border-color: rgba(250, 204, 21, 0.22);
    background: rgba(58, 44, 10, 0.58);
    color: #ffe8a3;
}

.mini-chip-audio-hd {
    border-color: rgba(45, 212, 191, 0.24);
    background: rgba(8, 57, 54, 0.6);
    color: #d2fffb;
}

.mini-chip-audio-standard {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(29, 41, 57, 0.62);
    color: #e2edf9;
}

.mini-chip-bad-actor {
    border-color: rgba(249, 115, 22, 0.28);
    background: rgba(77, 29, 9, 0.68);
    color: #ffd8b4;
}

.mini-chip-bad-actor-match {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(69, 18, 18, 0.72);
    color: #ffd0d0;
}

.mini-chip-compact {
    min-height: 1.8rem;
}

.mini-chip-abbrev {
    min-height: 1.8rem;
    padding: 0.18rem 0.48rem;
    gap: 0.2rem;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    flex: 0 0 auto;
}

.mini-chip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 0.95rem;
}

.mini-chip-icon-recording::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.08);
}

.mini-chip-icon-transcript::before {
    content: "";
    width: 0.85rem;
    height: 0.6rem;
    border-radius: 0.2rem;
    background:
        linear-gradient(90deg,
            transparent 0,
            transparent 8%,
            currentColor 8%,
            currentColor 16%,
            transparent 16%,
            transparent 28%,
            currentColor 28%,
            currentColor 36%,
            transparent 36%,
            transparent 48%,
            currentColor 48%,
            currentColor 56%,
            transparent 56%,
            transparent 68%,
            currentColor 68%,
            currentColor 76%,
            transparent 76%);
    opacity: 0.95;
}

.mini-chip-icon-shield::before {
    content: "";
    width: 0.72rem;
    height: 0.82rem;
    background: currentColor;
    clip-path: polygon(50% 0, 92% 16%, 88% 58%, 50% 100%, 12% 58%, 8% 16%);
}

.mini-chip-icon-search::before {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    border: 0.12rem solid currentColor;
    border-radius: 999px;
}

.mini-chip-icon-search::after {
    content: "";
    position: absolute;
    width: 0.42rem;
    height: 0.12rem;
    background: currentColor;
    border-radius: 999px;
    transform: translate(0.27rem, 0.23rem) rotate(45deg);
    transform-origin: center;
}

.mini-chip-icon-wave::before {
    content: "";
    width: 0.85rem;
    height: 0.6rem;
    background:
        linear-gradient(90deg,
            currentColor 0 10%,
            transparent 10% 18%,
            currentColor 18% 28%,
            transparent 28% 36%,
            currentColor 36% 46%,
            transparent 46% 54%,
            currentColor 54% 64%,
            transparent 64% 72%,
            currentColor 72% 82%);
    mask:
        linear-gradient(180deg, transparent 0 12%, #000 12% 88%, transparent 88%);
    opacity: 0.92;
}

.mini-chip-icon-bad-actor::before,
.mini-chip-icon-bad-actor-match::before {
    content: "";
    width: 0.82rem;
    height: 0.82rem;
    background: currentColor;
    clip-path: polygon(22% 32%, 34% 16%, 66% 16%, 78% 32%, 78% 60%, 68% 80%, 32% 80%, 22% 60%);
    opacity: 0.95;
}

.mini-chip-icon-bad-actor::after,
.mini-chip-icon-bad-actor-match::after {
    content: "";
    position: absolute;
    width: 0.68rem;
    height: 0.18rem;
    background: rgba(10, 10, 10, 0.42);
    border-radius: 999px;
    transform: translateY(-0.02rem);
}

.mini-chip-icon-bad-actor-match::after {
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.1);
    transform: translate(0.3rem, -0.28rem);
}

.mini-chip-icon-phone::before {
    content: "";
    width: 0.68rem;
    height: 0.68rem;
    border: 0.14rem solid currentColor;
    border-radius: 0.22rem 0.22rem 0.34rem 0.34rem;
    transform: rotate(-18deg);
}

.mini-chip-icon-transfer::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-top: 0.12rem solid currentColor;
    border-right: 0.12rem solid currentColor;
    transform: rotate(45deg);
}

.action-link-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.action-link-icon-open::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border: 0.1rem solid currentColor;
    border-radius: 0.18rem;
}

.action-link-icon-open::after {
    content: "";
    position: absolute;
    width: 0.4rem;
    height: 0.4rem;
    border-top: 0.1rem solid currentColor;
    border-right: 0.1rem solid currentColor;
    transform: translate(0.18rem, -0.18rem) rotate(45deg);
}

.action-link-icon-bad-actor::before {
    content: "";
    width: 0.82rem;
    height: 0.82rem;
    background: currentColor;
    clip-path: polygon(22% 32%, 34% 16%, 66% 16%, 78% 32%, 78% 60%, 68% 80%, 32% 80%, 22% 60%);
    opacity: 0.9;
}

.action-link-icon-bad-actor::after {
    content: "";
    position: absolute;
    width: 0.68rem;
    height: 0.16rem;
    background: rgba(10, 10, 10, 0.38);
    border-radius: 999px;
}

.action-link-icon-play::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 0.35rem solid transparent;
    border-bottom: 0.35rem solid transparent;
    border-left: 0.52rem solid currentColor;
    transform: translateX(0.06rem);
}

.action-link-icon-close::before,
.action-link-icon-close::after {
    content: "";
    position: absolute;
    width: 0.68rem;
    height: 0.1rem;
    background: currentColor;
    border-radius: 999px;
}

.action-link-icon-close::before {
    transform: rotate(45deg);
}

.action-link-icon-close::after {
    transform: rotate(-45deg);
}

.call-review-transcript {
    font-size: 0.92rem;
    font-style: italic;
    margin: 0;
}

.call-session-toolbar {
    justify-content: flex-end;
    align-items: flex-end;
}

.call-session-pager,
.call-session-pager-row {
    justify-content: flex-end;
    align-items: flex-end;
}

.call-session-pager-footer {
    margin-top: 0.9rem;
}

.call-session-pager-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.call-session-pager-label {
    line-height: 1;
}

.dashboard-select-compact {
    min-width: 4.9rem;
    padding: 0.42rem 2rem 0.42rem 0.72rem;
    min-height: auto;
    border-radius: 999px;
    font-size: 0.82rem;
}

.call-session-pager-button {
    border: 1px solid rgba(81, 140, 198, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #f2fbff;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 2.25rem;
}

.call-session-pager-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.call-review-action-primary,
.call-review-action-secondary {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: 0.55rem;
    text-align: left;
    padding: 0.52rem 0.82rem;
    font-size: 0.94rem;
}

.call-review-action-primary > span:last-child,
.call-review-action-secondary > span:last-child {
    flex: 1 1 auto;
}

.call-review-media-badges-single-row {
    flex-wrap: wrap;
    gap: 0.32rem;
    overflow-x: visible;
    scrollbar-width: auto;
    width: 100%;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.config-stack {
    display: grid;
    gap: 0.8rem;
}

.config-tab-list {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.config-tab-button {
    min-width: 8rem;
}

.config-tab-button-active {
    background: rgba(68, 212, 201, 0.16);
    border-color: rgba(77, 189, 255, 0.34);
}

.config-feature-section {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.config-subsection-header {
    margin-bottom: 0;
}

.config-setting-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(81, 140, 198, 0.12);
    background: rgba(7, 22, 37, 0.48);
}

.config-setting-main,
.config-setting-text,
.config-setting-editor,
.config-setting-updated {
    display: grid;
    gap: 0.45rem;
}

.agent-assist-editor-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.config-setting-key {
    font-size: 0.95rem;
    line-height: 1.35;
    color: rgba(240, 246, 255, 0.96);
    overflow-wrap: anywhere;
}

.config-setting-description {
    margin: 0;
    color: rgba(224, 235, 248, 0.74);
    line-height: 1.45;
}

.config-setting-value-label,
.config-setting-updated-label {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.config-input-wide,
.config-setting-readonly {
    width: 100%;
}

.config-input-wide {
    min-height: 2.55rem;
}

.agent-assist-guidance-input {
    min-height: 7.5rem;
    resize: vertical;
}

.config-setting-readonly {
    min-height: 2.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(81, 140, 198, 0.15);
    background: rgba(5, 18, 31, 0.56);
    color: rgba(236, 244, 255, 0.9);
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.config-setting-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: end;
}

.config-setting-updated-value {
    color: rgba(236, 244, 255, 0.9);
    font-size: 0.82rem;
    line-height: 1.35;
}

.config-setting-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: fit-content;
}

.config-runtime-table-shell {
    border-radius: 0.95rem;
}

.config-runtime-table th,
.config-runtime-table td {
    padding: 0.48rem 0.62rem;
}

.config-runtime-table td {
    vertical-align: middle;
}

.config-collection-table td {
    vertical-align: top;
}

.config-table-key {
    color: rgba(240, 246, 255, 0.96);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.config-table-primary-cell {
    display: grid;
    gap: 0.18rem;
}

.config-table-primary-value {
    color: rgba(240, 246, 255, 0.96);
    font-size: 0.85rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.config-table-secondary-value {
    color: rgba(224, 235, 248, 0.66);
    font-size: 0.76rem;
    line-height: 1.3;
}

.config-table-summary-cell,
.config-table-value,
.config-table-updated {
    font-size: 0.82rem;
    line-height: 1.45;
}

.config-table-summary-cell {
    color: rgba(236, 244, 255, 0.88);
    max-width: 34rem;
    overflow-wrap: anywhere;
}

.config-table-summary-muted {
    color: rgba(224, 235, 248, 0.68);
}

.config-table-action {
    white-space: nowrap;
}

.config-table-edit-button {
    padding: 0.34rem 0.62rem;
}

.config-source-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 189, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.72rem;
    line-height: 1.2;
}

.config-source-pill-override {
    border-color: rgba(68, 212, 201, 0.22);
    background: rgba(68, 212, 201, 0.1);
}

.config-source-pill-account {
    border-color: rgba(111, 220, 255, 0.2);
    background: rgba(16, 184, 233, 0.1);
}

.config-source-pill-default {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(224, 235, 248, 0.78);
}

.config-source-pill-system {
    border-color: rgba(77, 189, 255, 0.2);
    background: rgba(77, 189, 255, 0.08);
}

.config-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.72rem;
    line-height: 1.2;
}

.config-status-pill-active {
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(34, 197, 94, 0.12);
}

.config-status-pill-inactive {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(224, 235, 248, 0.76);
}

.config-status-pill-new {
    border-color: rgba(77, 189, 255, 0.2);
    background: rgba(77, 189, 255, 0.08);
}

.config-table-detail-row td {
    padding: 0.82rem;
    background: rgba(5, 18, 31, 0.74);
}

.config-inline-editor,
.config-inline-copy {
    display: grid;
    gap: 0.65rem;
}

.config-inline-note-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.config-inline-note {
    color: rgba(224, 235, 248, 0.74);
    font-size: 0.82rem;
    line-height: 1.4;
}

.config-inline-editor-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(16rem, 1fr) auto;
    align-items: end;
}

.config-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.config-inline-cancel-button {
    background: rgba(255, 255, 255, 0.02);
}

.config-table-prompt-cell {
    display: grid;
    gap: 0.2rem;
}

.config-table-prompt-name {
    color: rgba(240, 246, 255, 0.96);
}

.config-table-prompt-copy {
    color: rgba(224, 235, 248, 0.74);
    font-size: 0.8rem;
    line-height: 1.35;
}

.fraud-workflow-page {
    display: grid;
    gap: 0.9rem;
}

.fraud-workflow-header {
    align-items: center;
}

.fraud-workflow-subtitle {
    margin: 0.25rem 0 0;
    color: rgba(224, 235, 248, 0.72);
    font-size: 0.86rem;
}

.fraud-workflow-actions,
.fraud-workflow-simulation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.fraud-workflow-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.fraud-workflow-metric,
.fraud-workflow-panel,
.fraud-workflow-data-panel {
    border: 1px solid rgba(81, 140, 198, 0.16);
    background: linear-gradient(180deg, rgba(9, 27, 46, 0.88), rgba(6, 20, 35, 0.9));
}

.fraud-workflow-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-height: 6.4rem;
    padding: 0.8rem 0.85rem;
    border-radius: 0.95rem;
}

.fraud-workflow-metric-challenge {
    border-color: rgba(255, 180, 84, 0.24);
}

.fraud-workflow-metric-attestation {
    border-color: rgba(155, 114, 255, 0.24);
}

.fraud-workflow-metric-ai {
    border-color: rgba(77, 189, 255, 0.24);
}

.fraud-workflow-metric-danger {
    border-color: rgba(255, 109, 124, 0.24);
    background: rgba(44, 20, 30, 0.42);
}

.fraud-workflow-metric-icon,
.fraud-workflow-step-icon,
.fraud-rule-signal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0.8rem;
}

.fraud-workflow-metric-icon {
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid rgba(77, 189, 255, 0.2);
    background: rgba(16, 184, 233, 0.08);
    color: #91ebff;
}

.fraud-workflow-metric-icon svg,
.fraud-workflow-step-icon svg,
.fraud-rule-signal-icon svg,
.fraud-workflow-step-outcome svg,
.fraud-workflow-ai-output-stack svg,
.fraud-workflow-ai-note svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fraud-workflow-metric-input {
    width: 5.2rem;
    min-height: 2.2rem;
    padding: 0.2rem 0.35rem;
    border: 0;
    border-bottom: 1px solid rgba(77, 189, 255, 0.24);
    background: transparent;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.fraud-workflow-metric-input:focus {
    outline: 2px solid rgba(68, 212, 201, 0.22);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.fraud-workflow-metric-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.fraud-workflow-value-word {
    font-size: 1.3rem;
    color: #c7a8ff;
}

.fraud-workflow-panel {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 0.95rem;
}

.fraud-workflow-main-grid,
.fraud-workflow-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(26rem, 0.95fr);
    gap: 0.85rem;
    align-items: start;
}

.fraud-workflow-secondary-grid {
    grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.28fr);
}

.fraud-workflow-flow-panel {
    gap: 0.45rem;
}

.fraud-workflow-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(13rem, 1.05fr)) repeat(2, minmax(18.75rem, 1.22fr)) repeat(2, minmax(13rem, 1.05fr));
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.fraud-workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "index copy";
    gap: 0.18rem 0.5rem;
    min-height: 5.2rem;
    min-width: 9.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(81, 140, 198, 0.16);
    background: rgba(255, 255, 255, 0.035);
    align-content: start;
    align-items: start;
}

.fraud-workflow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.6rem;
    width: 0.45rem;
    height: 0.45rem;
    border-top: 2px solid rgba(145, 171, 255, 0.64);
    border-right: 2px solid rgba(145, 171, 255, 0.64);
    transform: translateY(-50%) rotate(45deg);
}

.fraud-workflow-step-live {
    border-color: rgba(68, 212, 201, 0.28);
    background: rgba(68, 212, 201, 0.08);
}

.fraud-workflow-step-after {
    border-color: rgba(145, 171, 255, 0.2);
    background: rgba(100, 123, 255, 0.07);
}

.fraud-workflow-step-index {
    grid-area: index;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(16, 184, 233, 0.18);
    color: #d8fbff;
    font-size: 0.76rem;
    font-weight: 700;
    align-self: start;
    justify-self: start;
}

.fraud-workflow-step-copy {
    grid-area: copy;
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    align-self: start;
}

.fraud-workflow-step-copy strong {
    font-size: 0.86rem;
    line-height: 1.25;
}

.fraud-workflow-step-copy span {
    color: rgba(224, 235, 248, 0.7);
    font-size: 0.76rem;
    line-height: 1.3;
    align-self: center;
}

.fraud-workflow-step-labeled,
.fraud-workflow-step-wide {
    grid-template-columns: auto minmax(0, 1fr) minmax(10.75rem, 12rem);
    grid-template-areas:
        "index copy side";
    column-gap: 0.62rem;
    align-content: start;
    align-items: start;
}

.fraud-workflow-step-labeled {
    min-width: 13rem;
}

.fraud-workflow-step-wide {
    min-width: 18.75rem;
}

.fraud-workflow-step-outcomes {
    grid-area: side;
    display: grid;
    gap: 0.1rem;
    align-content: start;
    justify-items: end;
}

.fraud-workflow-step-outcome {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    width: 100%;
    text-align: right;
}

.fraud-workflow-step-outcome strong {
    display: inline-flex;
    gap: 0.22rem;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    width: 100%;
}

.fraud-workflow-step-side-labels {
    grid-area: side;
    display: grid;
    justify-items: end;
    align-content: start;
    align-items: end;
    gap: 0.1rem;
}

.fraud-workflow-stage-label {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    min-height: 0;
    padding: 0;
    background: none;
    color: rgba(236, 244, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    white-space: nowrap;
    cursor: help;
    user-select: none;
    justify-self: end;
    justify-content: flex-end;
    width: 100%;
    text-align: right;
}

.fraud-workflow-stage-label-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    justify-content: flex-end;
}

.fraud-workflow-stage-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #91ebff;
}

.fraud-workflow-stage-label-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fraud-workflow-path-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1rem;
    color: rgba(190, 214, 238, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fraud-workflow-path-live,
.fraud-workflow-path-after {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fraud-workflow-path-live::before,
.fraud-workflow-path-after::before {
    content: "";
    height: 2px;
    flex: 1 1 auto;
    min-width: 2rem;
    background: rgba(77, 189, 255, 0.78);
}

.fraud-workflow-path-after::before {
    background: rgba(145, 171, 255, 0.34);
}

.fraud-workflow-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    margin-left: 0.2rem;
    border-radius: 999px;
    border: 1px solid rgba(190, 214, 238, 0.32);
    color: rgba(224, 235, 248, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.fraud-rule-table-shell {
    overflow-x: auto;
    border-radius: 0.8rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
}

.fraud-rule-table {
    --fraud-rule-chip-lane-width: 12.75rem;
    --fraud-rule-score-input-width: 4.6rem;
    --fraud-rule-score-delta-width: 2.45rem;
    --fraud-rule-score-value-width: 7.43rem;
    width: 100%;
    min-width: 48rem;
    border-collapse: collapse;
}

.fraud-rule-table th {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(4, 14, 25, 0.7);
    color: rgba(190, 214, 238, 0.78);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.fraud-rule-table td {
    padding: 0.62rem 0.65rem;
    border-bottom: 1px solid rgba(81, 140, 198, 0.09);
    vertical-align: top;
}

.fraud-rule-table tr:last-child td {
    border-bottom: 0;
}

.fraud-rule-signal {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    min-width: 11rem;
}

.fraud-rule-signal strong {
    display: inline;
    color: rgba(245, 250, 255, 0.96);
    font-size: 0.78rem;
    line-height: 1.3;
}

.fraud-rule-signal-icon {
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid rgba(68, 212, 201, 0.22);
    background: rgba(68, 212, 201, 0.08);
    color: #91ebff;
}

.fraud-rule-condition-stack,
.fraud-rule-score-stack,
.fraud-rule-notes {
    display: grid;
    gap: 0.35rem;
}

.fraud-rule-condition-stack,
.fraud-rule-score-stack {
    justify-items: stretch;
    align-content: start;
}

.fraud-rule-score-stack {
    width: fit-content;
    max-width: 100%;
}

.fraud-rule-condition-stack {
    width: var(--fraud-rule-chip-lane-width);
    max-width: 100%;
}

.fraud-rule-condition-chip,
.fraud-rule-score-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 1.45rem;
    width: 100%;
    max-width: 100%;
    color: rgba(236, 244, 255, 0.84);
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow-wrap: normal;
}

.fraud-rule-condition-chip,
.fraud-rule-score-label {
    padding: 0;
}

.fraud-rule-score-line {
    display: grid;
    width: 100%;
    grid-template-columns: var(--fraud-rule-chip-lane-width) auto;
    gap: 0.38rem;
    align-items: center;
}

.fraud-rule-score-label {
    min-width: 0;
}

.fraud-rule-score-value-group {
    display: grid;
    grid-template-columns: var(--fraud-rule-score-input-width) var(--fraud-rule-score-delta-width);
    align-items: center;
    justify-self: end;
    min-width: var(--fraud-rule-score-value-width);
    gap: 0.38rem;
    white-space: nowrap;
}

.fraud-rule-score-value-group-single {
    grid-template-columns: auto;
    min-width: 0;
}

.fraud-rule-score-input {
    width: var(--fraud-rule-score-input-width);
    min-height: 1.7rem;
    padding: 0.18rem 0.35rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(81, 140, 198, 0.28);
    background: rgba(5, 18, 31, 0.9);
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.fraud-rule-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.7rem;
    width: 100%;
    padding: 0.18rem 0.44rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(81, 140, 198, 0.16);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.fraud-rule-score-badge-block {
    border-color: rgba(255, 109, 124, 0.3);
    color: #ffd1d7;
}

.fraud-rule-notes {
    color: rgba(224, 235, 248, 0.7);
    font-size: 0.72rem;
    line-height: 1.35;
}

.fraud-rule-notes small {
    color: rgba(190, 214, 238, 0.64);
}

.fraud-workflow-control-grid,
.fraud-workflow-ai-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.6rem;
}

.fraud-workflow-control {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.65rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(81, 140, 198, 0.12);
    background: rgba(5, 18, 31, 0.4);
}

.fraud-workflow-toggle-control {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.fraud-workflow-toggle-control .fraud-workflow-control-meta {
    grid-column: 1 / -1;
}

.fraud-workflow-control-meta {
    color: rgba(224, 235, 248, 0.64);
    font-size: 0.74rem;
    line-height: 1.3;
}

.transcript-ai-page .fraud-workflow-ai-control-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
}

.transcript-ai-page .fraud-workflow-control {
    gap: 0.28rem;
    padding: 0.55rem 0.65rem;
}

.transcript-ai-page .fraud-workflow-toggle-control {
    grid-template-columns: minmax(0, 1fr) auto;
}

.transcript-ai-page .fraud-workflow-ai-settings-card .dashboard-input {
    min-width: 0;
}

.fraud-workflow-memory-note,
.fraud-workflow-alert {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fraud-workflow-memory-note span,
.fraud-workflow-alert span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(81, 140, 198, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(236, 244, 255, 0.86);
    font-size: 0.76rem;
}

.fraud-workflow-alert span {
    border-color: rgba(255, 109, 124, 0.28);
    background: rgba(255, 109, 124, 0.1);
}

.fraud-workflow-preview-grid {
    display: grid;
    grid-template-columns: minmax(9rem, 0.44fr) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.fraud-workflow-gauge-shell {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
}

.fraud-workflow-gauge {
    --score: 0;
    display: grid;
    place-items: center;
    width: 8rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(8, 23, 39, 0.98) 0 58%, transparent 59%),
        conic-gradient(var(--success) 0 calc(var(--score) * 1%), var(--warning) calc(var(--score) * 1%) 70%, var(--danger) 70% 100%);
    border: 1px solid rgba(81, 140, 198, 0.18);
}

.fraud-workflow-gauge span {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.fraud-workflow-decision-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(81, 140, 198, 0.18);
    color: rgba(236, 244, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
}

.fraud-workflow-decision-allow {
    border-color: rgba(76, 227, 138, 0.28);
    background: rgba(76, 227, 138, 0.08);
    color: #bfffd8;
}

.fraud-workflow-decision-challenge {
    border-color: rgba(255, 180, 84, 0.34);
    background: rgba(255, 180, 84, 0.1);
    color: #ffd99f;
}

.fraud-workflow-decision-block {
    border-color: rgba(255, 109, 124, 0.34);
    background: rgba(255, 109, 124, 0.1);
    color: #ffd1d7;
}

.fraud-workflow-threshold-shell {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.fraud-workflow-threshold-axis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: rgba(190, 214, 238, 0.72);
    font-size: 0.68rem;
}

.fraud-workflow-threshold-axis span:nth-child(2),
.fraud-workflow-threshold-axis span:nth-child(3) {
    text-align: center;
}

.fraud-workflow-threshold-axis span:last-child {
    text-align: right;
}

.fraud-workflow-threshold-bar {
    position: relative;
    display: flex;
    height: 0.66rem;
    overflow: visible;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.fraud-workflow-threshold-segment {
    height: 100%;
}

.fraud-workflow-threshold-allow {
    background: var(--success);
    border-radius: 999px 0 0 999px;
}

.fraud-workflow-threshold-challenge {
    background: var(--warning);
}

.fraud-workflow-threshold-block {
    background: var(--danger);
    border-radius: 0 999px 999px 0;
}

.fraud-workflow-score-marker {
    position: absolute;
    top: -0.32rem;
    width: 0.28rem;
    height: 1.3rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.12);
    transform: translateX(-50%);
}

.fraud-workflow-threshold-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(224, 235, 248, 0.7);
    font-size: 0.74rem;
}

.fraud-workflow-contribution-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(5, 18, 31, 0.36);
}

.fraud-workflow-contribution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.fraud-workflow-contribution-header span {
    color: rgba(190, 214, 238, 0.68);
    font-size: 0.72rem;
}

.fraud-workflow-contribution-list {
    display: grid;
}

.fraud-workflow-contribution-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.2rem minmax(5rem, 0.45fr);
    gap: 0.5rem;
    align-items: center;
    min-height: 2rem;
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(81, 140, 198, 0.08);
    color: rgba(236, 244, 255, 0.88);
    font-size: 0.78rem;
}

.fraud-workflow-contribution-row > span:first-child {
    overflow-wrap: anywhere;
}

.fraud-workflow-contribution-total {
    border-bottom: 0;
    font-weight: 800;
}

.fraud-workflow-impact-positive {
    color: var(--danger);
    font-weight: 800;
}

.fraud-workflow-impact-negative {
    color: var(--success);
    font-weight: 800;
}

.fraud-workflow-impact-neutral {
    color: rgba(224, 235, 248, 0.72);
    font-weight: 800;
}

.fraud-workflow-impact-track {
    height: 0.36rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
}

.fraud-workflow-impact-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.fraud-workflow-step-outcome-allow {
    border-color: rgba(76, 227, 138, 0.24);
}

.fraud-workflow-step-outcome-allow strong {
    color: #bfffd8;
}

.fraud-workflow-step-outcome-challenge {
    border-color: rgba(255, 180, 84, 0.3);
}

.fraud-workflow-step-outcome-challenge strong {
    color: #ffd99f;
}

.fraud-workflow-step-outcome-block {
    border-color: rgba(255, 109, 124, 0.3);
}

.fraud-workflow-step-outcome-block strong {
    color: #ffd1d7;
}

.fraud-workflow-ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(18rem, 1.1fr);
    gap: 0.65rem;
    align-items: stretch;
}

.fraud-workflow-ai-card {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(5, 18, 31, 0.36);
}

.fraud-workflow-ai-settings-card,
.fraud-workflow-ai-slider-card {
    grid-column: span 1;
}

.fraud-workflow-ai-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.fraud-workflow-ai-card-header span {
    color: rgba(190, 214, 238, 0.68);
    font-size: 0.72rem;
}

.fraud-workflow-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.fraud-workflow-chip-list span {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(77, 189, 255, 0.22);
    background: rgba(16, 184, 233, 0.06);
    color: #ccefff;
    font-size: 0.72rem;
}

.fraud-workflow-ai-output-stack {
    display: grid;
    gap: 0.45rem;
}

.fraud-workflow-ai-output-stack article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(81, 140, 198, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.fraud-workflow-ai-output-stack article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.5rem;
    color: #c7a8ff;
    background: rgba(155, 114, 255, 0.1);
}

.fraud-workflow-ai-output-stack small {
    display: block;
    color: rgba(224, 235, 248, 0.66);
}

.voiceprint-config-page {
    gap: 0.78rem;
}

.voiceprint-config-page .fraud-workflow-panel {
    padding: 0.85rem;
    border-radius: 1.15rem;
}

.voiceprint-config-page .fraud-workflow-subtitle {
    max-width: 48rem;
}

.voiceprint-config-grid {
    grid-template-columns: minmax(18rem, 0.95fr) minmax(20rem, 1.05fr);
}

.voiceprint-library-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.25fr);
    gap: 0.75rem;
    align-items: stretch;
}

.voiceprint-upload-card,
.voiceprint-library-card {
    gap: 0.75rem;
}

.voiceprint-library-card-header {
    align-items: flex-start;
}

.voiceprint-library-heading {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.voiceprint-library-heading strong {
    font-size: 0.92rem;
}

.voiceprint-library-heading span {
    color: rgba(190, 214, 238, 0.66);
    font-size: 0.75rem;
    line-height: 1.35;
}

.voiceprint-upload-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.voiceprint-upload-chip-list span {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 189, 255, 0.18);
    background: rgba(16, 184, 233, 0.06);
    color: #d8f6ff;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voiceprint-upload-stack {
    display: grid;
    gap: 0.55rem;
}

.voiceprint-upload-control {
    padding: 0.7rem;
}

.voiceprint-upload-textarea {
    min-height: 6rem;
    resize: vertical;
}

.voiceprint-upload-file-control {
    gap: 0.45rem;
    background: linear-gradient(180deg, rgba(7, 21, 36, 0.62), rgba(5, 18, 31, 0.52));
}

.voiceprint-upload-file-header {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
}

.voiceprint-upload-file-limit {
    color: rgba(190, 214, 238, 0.62);
    font-size: 0.72rem;
    white-space: nowrap;
}

.voiceprint-upload-input {
    padding: 0.35rem 0.45rem;
}

.voiceprint-upload-input::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.4rem 0.72rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(77, 189, 255, 0.2);
    background: rgba(68, 212, 201, 0.1);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.voiceprint-upload-selected-file {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
    padding: 0.42rem 0.58rem;
    border-radius: 0.65rem;
    border: 1px dashed rgba(77, 189, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
}

.voiceprint-upload-selected-file strong {
    color: rgba(240, 246, 255, 0.94);
    font-size: 0.8rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.voiceprint-upload-selected-file span {
    color: rgba(190, 214, 238, 0.7);
    font-size: 0.74rem;
    white-space: nowrap;
}

.voiceprint-upload-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
}

.voiceprint-upload-footnote {
    color: rgba(224, 235, 248, 0.66);
    font-size: 0.75rem;
    line-height: 1.35;
    max-width: 22rem;
}

.voiceprint-library-table-shell {
    border-radius: 0.85rem;
}

.voiceprint-library-table th,
.voiceprint-library-table td {
    padding: 0.44rem 0.58rem;
}

.voiceprint-library-table tbody tr:last-child td {
    border-bottom: none;
}

.voiceprint-library-table .config-table-primary-value {
    font-size: 0.79rem;
    line-height: 1.28;
}

.voiceprint-library-table .config-table-secondary-value,
.voiceprint-library-table .config-table-summary-cell,
.voiceprint-library-table .config-table-updated {
    font-size: 0.74rem;
    line-height: 1.32;
}

.voiceprint-library-primary-cell {
    min-width: 10rem;
}

.voiceprint-library-created-cell {
    white-space: nowrap;
}

.voiceprint-library-notes-cell {
    max-width: 18rem;
}

.voiceprint-library-action-cell {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.voiceprint-library-table .config-table-edit-button {
    min-height: 1.9rem;
    padding: 0.28rem 0.55rem;
}

.fraud-workflow-ai-slider-card {
    border-color: rgba(77, 189, 255, 0.22);
}

.fraud-workflow-ai-range {
    width: 100%;
    accent-color: var(--accent-strong);
}

.fraud-workflow-ai-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    color: rgba(190, 214, 238, 0.72);
    font-size: 0.76rem;
}

.fraud-workflow-ai-range-labels strong {
    color: #91ebff;
    font-size: 1.2rem;
}

.fraud-workflow-ai-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
    padding: 0.6rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(77, 189, 255, 0.18);
    background: rgba(16, 184, 233, 0.07);
    color: rgba(224, 235, 248, 0.78);
}

.fraud-workflow-ai-note p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
}

.fraud-workflow-related-stack {
    display: grid;
    gap: 0.65rem;
}

.fraud-workflow-data-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 0.8rem;
}

.fraud-workflow-data-header {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
}

.fraud-workflow-data-header strong {
    font-size: 0.86rem;
}

.fraud-workflow-data-header span {
    color: rgba(224, 235, 248, 0.66);
    font-size: 0.74rem;
}

.fraud-workflow-mini-table {
    display: grid;
    gap: 0.38rem;
}

.fraud-workflow-mini-table > div {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) minmax(6rem, 0.8fr) minmax(5rem, 0.8fr) auto;
    gap: 0.45rem;
    align-items: center;
    min-height: 2rem;
    padding: 0.36rem 0;
    border-bottom: 1px solid rgba(81, 140, 198, 0.09);
    font-size: 0.76rem;
}

.fraud-workflow-mini-table span {
    overflow-wrap: anywhere;
}

.prompt-catalog-editor-grid {
    align-items: start;
}

.prompt-catalog-editor-wide {
    grid-column: 1 / -1;
}

.prompt-catalog-textarea {
    min-height: 10rem;
    resize: vertical;
}

.prompt-catalog-description-input {
    min-height: 5rem;
}

.prompt-catalog-body {
    min-height: 6.5rem;
}

.prompt-catalog-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.55rem;
    color: rgba(236, 244, 255, 0.9);
}

.inline-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 185, 255, 0.4);
    color: rgba(181, 225, 255, 0.95);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    user-select: none;
}

.prompt-catalog-footer {
    align-items: start;
}

.agent-assist-phrase-footer {
    align-items: start;
}

.agent-assist-action-row {
    gap: 0.45rem;
    flex-wrap: wrap;
}

.agent-assist-delete-button {
    border-color: rgba(220, 53, 69, 0.28);
}

.detail-grid-wide {
    margin-top: 1rem;
}

.detail-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 0.8rem;
}

.detail-list dt {
    color: var(--muted);
}

.caller-history-page {
    gap: 0.85rem;
}

.caller-history-summary-card {
    padding: 0.8rem 0.9rem;
}

.caller-history-summary-card h2 {
    margin-bottom: 0.55rem;
}

.caller-history-summary-list {
    gap: 0.35rem 0.65rem;
}

.caller-history-summary-list dt,
.caller-history-summary-list dd {
    margin: 0;
    line-height: 1.3;
}

.caller-history-table-shell {
    border-radius: 0.9rem;
}

.caller-history-table {
    min-width: 68rem;
}

.caller-history-table th,
.caller-history-table td {
    padding: 0.44rem 0.58rem;
    font-size: 0.82rem;
}

.caller-history-table th {
    white-space: nowrap;
}

.caller-history-table td {
    line-height: 1.28;
}

.caller-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.caller-history-table-primary,
.caller-history-table-secondary {
    display: grid;
    gap: 0.16rem;
}

.caller-history-table-primary strong,
.caller-history-table-action {
    white-space: nowrap;
}

.caller-history-table-secondary {
    color: rgba(214, 230, 247, 0.8);
}

.caller-history-table-text {
    min-width: 14rem;
    max-width: 22rem;
    color: rgba(232, 241, 252, 0.88);
}

.bullet-list {
    margin: 0;
    padding-left: 1.2rem;
}

.bullet-list li + li {
    margin-top: 0.4rem;
}

.status-chip {
    border: 1px solid rgba(68, 212, 201, 0.18);
    background: rgba(68, 212, 201, 0.08);
    color: #b4fff4;
    font-weight: 600;
    font-size: 0.72rem;
}

.status-chip.status-chip-danger {
    border-color: rgba(255, 109, 109, 0.32);
    background: rgba(255, 109, 109, 0.12);
    color: #ffd2d2;
}

.call-status-danger {
    color: #ffb4b4;
}

.event-list {
    display: grid;
    gap: 0.65rem;
}

.event-item {
    border-radius: 0.9rem;
    padding: 0.8rem;
}

.event-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.event-item p,
.empty-state,
.callout {
    color: rgba(224, 235, 248, 0.74);
}

.event-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.callout {
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
}

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

h1 {
    font-size: clamp(1.95rem, 3.4vw, 2.5rem);
    margin-bottom: 0.55rem;
}

h2 {
    font-size: 1.15rem;
}

h3 {
    font-size: 1rem;
}

.dashboard-filter-panel {
    margin-bottom: 0.95rem;
}

.dashboard-filter-header {
    margin-bottom: 0.8rem;
}

.dashboard-filter-grid,
.dashboard-custom-grid {
    display: grid;
    gap: 0.75rem;
}

.dashboard-filter-grid {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    align-items: end;
}

.dashboard-custom-grid {
    grid-template-columns: repeat(2, minmax(0, 180px)) auto;
    align-items: end;
    margin-top: 0.8rem;
}

.dashboard-filter-field {
    display: grid;
    gap: 0.35rem;
}

.dashboard-filter-field-wide {
    min-width: 0;
}

.dashboard-filter-label {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-select,
.dashboard-input {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(81, 140, 198, 0.22);
    background: rgba(5, 18, 31, 0.92);
    color: var(--text);
    box-sizing: border-box;
    font: inherit;
    line-height: 1.3;
    vertical-align: middle;
}

.dashboard-select:focus,
.dashboard-input:focus {
    outline: 2px solid rgba(68, 212, 201, 0.24);
    outline-offset: 1px;
    border-color: rgba(68, 212, 201, 0.35);
}

.dashboard-filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dashboard-date-filter-presets {
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
}

.dashboard-date-filter-presets .dashboard-preset-button {
    flex: 0 1 auto;
    padding: 0.34rem 0.62rem;
    font-size: 0.74rem;
    line-height: 1.15;
    white-space: nowrap;
}

.audit-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
    margin-top: 0.85rem;
}

.audit-filter-control {
    width: 100%;
    min-width: 0;
    min-height: 2.05rem;
    border-radius: 0.62rem;
    padding-block: 0.34rem;
    font-size: 0.82rem;
}

.audit-filter-actions {
    grid-column: -2 / -1;
    align-self: end;
}

.dashboard-segmented-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dashboard-preset-button,
.dashboard-apply-button {
    border-radius: 999px;
    border: 1px solid rgba(77, 189, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.dashboard-preset-button:hover,
.dashboard-apply-button:hover {
    background: rgba(68, 212, 201, 0.08);
    border-color: rgba(77, 189, 255, 0.26);
    transform: translateY(-1px);
}

.dashboard-preset-button-active {
    background: linear-gradient(135deg, rgba(16, 184, 233, 0.2), rgba(68, 212, 201, 0.16));
    border-color: rgba(111, 220, 255, 0.34);
    color: #e9fdff;
}

.dashboard-filter-actions {
    display: flex;
    align-items: end;
}

.dashboard-filter-message {
    margin-top: 0.7rem;
    color: #ffd8dd;
    font-size: 0.82rem;
}

.calls-filter-grid {
    margin-top: 0.8rem;
}

.calls-window-summary {
    display: grid;
    gap: 0.2rem;
    min-height: 2.25rem;
    align-content: center;
}

.call-media-review {
    display: grid;
    gap: 0.85rem;
}

.call-detail-header-actions,
.call-inline-audio-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.call-detail-voiceprint-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.call-media-panel {
    border-radius: 0.95rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(6, 19, 33, 0.72);
    padding: 0.9rem;
}

.call-media-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.call-audio-player {
    width: 100%;
    min-width: 0;
}

.call-audio-player-inline {
    min-height: 3rem;
}

.call-session-audio-row td {
    padding-top: 0;
}

.call-inline-audio-panel {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(6, 19, 33, 0.72);
}

.call-inline-audio-panel-card {
    margin: 0 1rem 1rem;
}

.call-inline-audio-header {
    justify-content: space-between;
}

.call-inline-audio-copy {
    display: grid;
    gap: 0.2rem;
}

.call-inline-audio-copy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.call-detail-page {
    gap: 1rem;
}

.call-detail-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.call-detail-title-block {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.call-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.call-detail-title-row h1 {
    margin-bottom: 0;
}

.call-detail-page-id {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(145, 235, 255, 0.92);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.84rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.call-detail-header-meta,
.call-detail-header-badges,
.call-detail-transcript-meta,
.call-detail-transcript-event-badges {
    display: flex;
    flex-wrap: wrap;
}

.call-detail-header-meta {
    gap: 0.6rem 1rem;
    color: rgba(224, 235, 248, 0.74);
    font-size: 0.85rem;
}

.call-detail-header-meta strong {
    color: rgba(240, 246, 255, 0.95);
}

.call-detail-header-badges {
    gap: 0.5rem;
    align-items: center;
}

.call-detail-hero-rail,
.call-detail-summary-grid,
.call-detail-feature-grid,
.call-detail-transfer-summary-grid,
.call-detail-totals-grid {
    display: grid;
    gap: 0.75rem;
}

.call-detail-hero-rail {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.call-detail-route-hero {
    grid-column: span 2;
}

.call-detail-hero-card {
    display: grid;
    gap: 0.38rem;
    align-content: start;
    min-height: 6.9rem;
}

.call-detail-hero-card-decision {
    border-color: rgba(250, 204, 21, 0.18);
}

.call-detail-hero-card .call-review-outcome,
.call-detail-hero-card .status-chip {
    width: fit-content;
}

.call-detail-hero-label,
.call-detail-route-kicker,
.call-detail-total-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
}

.call-detail-hero-value {
    color: rgba(240, 246, 255, 0.96);
    font-size: 1.08rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.call-detail-hero-note,
.call-detail-group-title p,
.call-detail-card-title p,
.call-detail-table-secondary,
.call-detail-reason-copy,
.call-detail-timeline-body p,
.call-detail-segment-text {
    color: rgba(224, 235, 248, 0.72);
}

.call-detail-hero-note {
    font-size: 0.8rem;
    line-height: 1.35;
}

.call-detail-decision-text {
    font-size: 1.16rem;
}

.call-detail-tone {
    font-weight: 700;
}

.call-detail-tone-positive {
    color: #cbffd9;
}

.call-detail-tone-warn {
    color: #ffe8a3;
}

.call-detail-tone-danger {
    color: #ffd0d0;
}

.call-detail-tone-neutral {
    color: rgba(236, 244, 255, 0.9);
}

.call-detail-route-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.call-detail-route-block {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.call-detail-route-arrow {
    color: #91ebff;
    font-size: 1.25rem;
    line-height: 1;
}

.call-detail-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 0.9rem;
}

.call-detail-card-title,
.call-detail-group-header,
.call-detail-segment-top,
.call-detail-transcript-event-top,
.call-detail-reason-top {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.call-detail-card-title,
.call-detail-group-header {
    min-width: 0;
}

.call-detail-card-title > div,
.call-detail-group-title,
.call-detail-transcript-event-title {
    min-width: 0;
}

.call-detail-card-title h2,
.call-detail-group-title h3 {
    margin-bottom: 0.15rem;
}

.call-detail-card-title p,
.call-detail-group-title p {
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.call-detail-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(77, 189, 255, 0.2);
    background: rgba(16, 184, 233, 0.08);
    color: #91ebff;
}

.call-detail-card-icon-small {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
    border-radius: 0.65rem;
}

.call-detail-card-icon svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.call-detail-summary-card {
    display: grid;
    gap: 1rem;
}

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

.call-detail-summary-group {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(5, 18, 31, 0.58);
}

.call-detail-group-title {
    display: grid;
    gap: 0.18rem;
}

.call-detail-group-title h3 {
    margin: 0;
    font-size: 0.96rem;
}

.call-detail-kv-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.42rem 0.75rem;
    margin: 0;
}

.call-detail-kv-list dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.call-detail-kv-list dd {
    margin: 0;
    color: rgba(236, 244, 255, 0.9);
    overflow-wrap: anywhere;
}

.call-detail-feature-grid,
.call-detail-transfer-summary-grid,
.call-detail-totals-grid {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.call-detail-feature-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.62rem 0.72rem;
    border-radius: 0.88rem;
    border: 1px solid rgba(125, 161, 196, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.call-detail-feature-pill-enabled {
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(17, 59, 38, 0.42);
}

.call-detail-feature-pill-disabled {
    color: rgba(224, 235, 248, 0.78);
    background: rgba(255, 255, 255, 0.025);
}

.call-detail-feature-pill-name {
    color: rgba(240, 246, 255, 0.94);
    font-size: 0.82rem;
}

.call-detail-feature-pill-state {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.call-detail-summary-disclosure {
    border-top: 1px solid rgba(81, 140, 198, 0.12);
    padding-top: 0.85rem;
}

.call-detail-summary-disclosure summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #d8fbff;
    font-weight: 600;
    list-style: none;
}

.call-detail-summary-disclosure summary::-webkit-details-marker {
    display: none;
}

.call-detail-summary-disclosure summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 189, 255, 0.18);
    background: rgba(68, 212, 201, 0.08);
    color: #e9fdff;
    font-size: 0.78rem;
    line-height: 1;
}

.call-detail-summary-disclosure[open] summary::before {
    content: "-";
}

.call-detail-summary-grid-secondary {
    margin-top: 0.85rem;
}

.call-detail-transcript-controls {
    margin-bottom: 0.75rem;
}

.call-detail-transcript-meta,
.call-detail-transcript-event-badges {
    gap: 0.45rem;
}

.call-detail-transcript-meta {
    margin-bottom: 0.75rem;
}

.call-detail-transcript-body {
    margin-bottom: 0;
    padding: 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(5, 18, 31, 0.6);
}

.call-detail-transcript-note {
    margin: -0.1rem 0 0.75rem;
    color: rgba(224, 235, 248, 0.72);
    font-size: 0.8rem;
    line-height: 1.4;
}

.voiceprint-call-link {
    color: #91ebff;
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.voiceprint-call-link:hover,
.voiceprint-call-link:focus-visible {
    color: #c7fdff;
    text-decoration: underline;
}

.voiceprint-path-cell,
.voiceprint-error-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

.voiceprint-path-cell {
    color: rgba(236, 244, 255, 0.86);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.78rem;
}

.voiceprint-error-cell {
    color: rgba(255, 232, 163, 0.92);
}

.call-detail-segment-list,
.call-detail-reason-list,
.call-detail-timeline-list {
    display: grid;
    gap: 0.75rem;
}

.call-detail-segment-list {
    margin-top: 0.8rem;
}

.call-detail-segment-row,
.call-detail-reason-item {
    padding: 0.82rem;
    border-radius: 0.92rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(5, 18, 31, 0.58);
}

.call-detail-segment-top,
.call-detail-reason-top {
    justify-content: space-between;
    gap: 0.6rem;
}

.call-detail-segment-speaker {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 246, 255, 0.95);
}

.call-detail-segment-text,
.call-detail-reason-copy {
    margin: 0.55rem 0 0;
    line-height: 1.45;
}

.call-detail-transcript-history {
    gap: 0.75rem;
}

.call-detail-transcript-event {
    display: grid;
    gap: 0.65rem;
}

.call-detail-transcript-event-top {
    justify-content: space-between;
}

.call-detail-transcript-event-title {
    display: grid;
    gap: 0.15rem;
}

.call-detail-impact-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    min-height: 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 161, 196, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.call-detail-impact-chip-positive {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(71, 20, 24, 0.6);
    color: #ffd0d0;
}

.call-detail-impact-chip-negative {
    border-color: rgba(74, 222, 128, 0.24);
    background: rgba(17, 59, 38, 0.52);
    color: #cbffd9;
}

.call-detail-impact-chip-neutral {
    color: rgba(224, 235, 248, 0.82);
    background: rgba(255, 255, 255, 0.03);
}

.call-detail-reason-list,
.call-detail-timeline-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.call-detail-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: max-content 0.75rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.call-detail-timeline-time {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
    padding-top: 0.05rem;
}

.call-detail-timeline-marker {
    position: relative;
    width: 0.75rem;
    min-height: 1.2rem;
}

.call-detail-timeline-marker::before {
    content: "";
    position: absolute;
    top: 0.22rem;
    left: 0.19rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #44d4c9;
    box-shadow: 0 0 0 4px rgba(68, 212, 201, 0.14);
}

.call-detail-timeline-item:not(:last-child) .call-detail-timeline-marker::after {
    content: "";
    position: absolute;
    top: 0.82rem;
    left: 0.37rem;
    bottom: -1rem;
    width: 1px;
    background: rgba(77, 189, 255, 0.24);
}

.call-detail-timeline-body {
    display: grid;
    gap: 0.28rem;
    padding-bottom: 0.15rem;
}

.call-detail-timeline-body strong,
.call-detail-table-primary {
    color: rgba(240, 246, 255, 0.95);
}

.call-detail-timeline-status {
    color: #d8fbff;
    font-size: 0.82rem;
}

.call-detail-timeline-body p,
.call-detail-table-secondary {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
}

.call-detail-ledger-heading {
    display: grid;
    gap: 0.2rem;
}

.call-detail-table-shell {
    overflow-x: auto;
}

.call-detail-table th,
.call-detail-table td {
    vertical-align: top;
}

.call-detail-table-wrap {
    overflow-wrap: anywhere;
}

.call-detail-transcript-table th,
.call-detail-transcript-table td {
    padding: 0.48rem 0.62rem;
    font-size: 0.8rem;
    line-height: 1.2;
    vertical-align: top;
}

.call-detail-transcript-table thead th {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

.call-detail-transcript-table-text {
    min-width: 22rem;
    overflow-wrap: anywhere;
    white-space: normal;
}

.call-detail-total-card {
    display: grid;
    gap: 0.18rem;
    padding: 0.78rem 0.82rem;
    border-radius: 0.92rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(5, 18, 31, 0.58);
}

.call-detail-total-value {
    color: rgba(240, 246, 255, 0.96);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-warning-banner {
    margin-bottom: 1rem;
}

.account-switcher,
.login-form,
.user-editor-grid {
    display: grid;
    gap: 0.75rem;
}

.account-switcher {
    grid-template-columns: minmax(180px, 220px) auto;
    align-items: center;
}

.account-switcher-select,
.config-input {
    min-width: 0;
}

.config-save-button,
.login-submit {
    width: fit-content;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 17%, rgba(34, 130, 255, 0.2), transparent 28%),
        radial-gradient(circle at 18% 43%, rgba(15, 111, 221, 0.18), transparent 28%),
        radial-gradient(circle at 79% 46%, rgba(38, 134, 255, 0.14), transparent 26%),
        linear-gradient(145deg, #020813 0%, #041120 48%, #020711 100%);
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.auth-shell::before {
    background-image:
        radial-gradient(circle, rgba(22, 122, 255, 0.48) 1.2px, transparent 1.4px),
        linear-gradient(rgba(55, 141, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 141, 235, 0.08) 1px, transparent 1px);
    background-size: 12px 12px, 88px 88px, 88px 88px;
    background-position: 7vw 20vh, center, center;
    opacity: 0.42;
    mask-image:
        radial-gradient(ellipse at 16% 42%, black 0 21%, transparent 32%),
        linear-gradient(black, black);
    mask-composite: intersect;
}

.auth-shell::after {
    background:
        radial-gradient(circle at 79% 43%, transparent 0 5rem, rgba(30, 126, 255, 0.12) 5.05rem 5.1rem, transparent 5.15rem 8rem, rgba(30, 126, 255, 0.11) 8.05rem 8.1rem, transparent 8.15rem 11.5rem, rgba(30, 126, 255, 0.09) 11.55rem 11.6rem, transparent 11.65rem),
        linear-gradient(rgba(33, 122, 219, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 122, 219, 0.08) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    opacity: 0.78;
}

.auth-panel,
.login-card,
.password-card,
.nested-card {
    background: linear-gradient(180deg, rgba(11, 28, 46, 0.96), rgba(8, 23, 39, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.auth-panel {
    width: min(100%, 39.5rem);
    border-radius: 1.2rem;
    padding: clamp(1.65rem, 4vw, 2.55rem);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 26, 49, 0.9), rgba(4, 14, 28, 0.94)),
        rgba(4, 16, 32, 0.88);
    border: 1px solid rgba(139, 180, 231, 0.42);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(21, 91, 180, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: -35% 10% auto;
    height: 55%;
    background: radial-gradient(circle, rgba(28, 103, 255, 0.26), transparent 66%);
    pointer-events: none;
}

.login-card {
    position: relative;
    display: grid;
    justify-items: stretch;
    gap: 1.05rem;
    width: 100%;
    max-width: 33.5rem;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-brand-mark {
    position: relative;
    justify-self: center;
    width: 5.15rem;
    height: 5.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #51d7ff;
    filter: drop-shadow(0 0 16px rgba(33, 133, 255, 0.5));
}

.login-brand-mark svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: rgba(6, 24, 48, 0.84);
    stroke: #3fa7ff;
    stroke-width: 3;
}

.login-brand-mark svg path:first-child {
    fill: rgba(7, 28, 58, 0.74);
    stroke: #2e7dff;
}

.login-brand-mark svg path:nth-child(2) {
    fill: rgba(8, 40, 76, 0.64);
    stroke: #54d5ff;
    opacity: 0.86;
}

.voice-bar {
    display: block;
    width: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #68e4ff, #216eff);
    box-shadow: 0 0 12px rgba(90, 214, 255, 0.62);
    z-index: 1;
}

.voice-bar + .voice-bar {
    margin-left: 0.28rem;
}

.voice-bar-short {
    height: 0.58rem;
}

.voice-bar-mid {
    height: 1.12rem;
}

.voice-bar-tall {
    height: 1.78rem;
}

.voice-bar-peak {
    height: 2.5rem;
}

.login-header {
    display: grid;
    justify-items: center;
    gap: 0.42rem;
    text-align: center;
}

.login-eyebrow {
    color: #54a9ff;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.login-header h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 2.55rem);
    line-height: 1;
    color: #f5f8ff;
    font-weight: 750;
}

.login-header p {
    margin: 0;
    color: #9fb4d4;
    font-size: 0.98rem;
}

.login-card .login-form {
    gap: 1rem;
}

.login-field {
    display: grid;
    gap: 0.42rem;
}

.login-field label {
    color: #edf4ff;
    font-size: 0.92rem;
    font-weight: 700;
}

.login-input-shell {
    min-height: 3.25rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    padding: 0 0.9rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(111, 158, 213, 0.36);
    background: rgba(3, 14, 30, 0.56);
    box-shadow:
        inset 0 0 24px rgba(9, 34, 65, 0.72),
        0 0 0 1px rgba(10, 56, 116, 0.08);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-input-shell:focus-within {
    border-color: rgba(83, 190, 255, 0.72);
    background: rgba(5, 21, 44, 0.82);
    box-shadow:
        inset 0 0 22px rgba(16, 68, 125, 0.62),
        0 0 0 3px rgba(38, 126, 255, 0.17),
        0 0 26px rgba(32, 125, 255, 0.22);
}

.login-input-icon {
    width: 1.18rem;
    height: 1.18rem;
    color: #91a8ca;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input-shell input {
    width: 100%;
    min-width: 0;
    min-height: 1.8rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f6faff;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.25;
}

.login-input-shell input::placeholder {
    color: rgba(137, 158, 190, 0.58);
    opacity: 1;
}

.login-input-shell input:-webkit-autofill,
.login-input-shell input:-webkit-autofill:hover,
.login-input-shell input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f6faff;
    background-clip: text;
    box-shadow: 0 0 0 1000px transparent inset;
    caret-color: #f6faff;
    transition: background-color 9999s ease-out;
}

.login-card .dashboard-warning-banner {
    margin: 0;
    border-color: rgba(255, 109, 124, 0.38);
    background: rgba(90, 28, 42, 0.34);
    color: #ffd7dd;
}

.login-card .login-submit {
    width: 100%;
    min-height: 3.75rem;
    margin-top: 0.08rem;
    border: 1px solid rgba(95, 183, 255, 0.45);
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #2479ff 0%, #1166f6 44%, #0c51dc 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    font-size: 1.06rem;
    font-weight: 700;
    box-shadow:
        0 13px 28px rgba(16, 96, 255, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.login-submit-icon {
    width: 1.12rem;
    height: 1.12rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(0.02rem);
}

.login-card .login-submit:hover,
.login-card .login-submit:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(128, 213, 255, 0.72);
    box-shadow:
        0 17px 34px rgba(16, 96, 255, 0.46),
        0 0 0 3px rgba(67, 168, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-card .login-submit:focus-visible {
    outline: 0;
}

.login-footer {
    margin-top: 0.45rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(111, 158, 213, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: #9fb4d4;
    font-size: 0.92rem;
}

.login-footer-icon svg {
    width: 1.24rem;
    height: 1.24rem;
    fill: none;
    stroke: #8ba9d7;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screen-pop-shell {
    min-height: 100vh;
    padding: 1.2rem;
}

.screen-pop-main {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.screen-pop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.95fr);
    gap: 1rem;
}

.screen-pop-card {
    border-radius: 1.2rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(11, 28, 46, 0.96), rgba(8, 23, 39, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: rise-in 320ms ease;
}

.screen-pop-helper {
    min-height: 12rem;
    align-content: center;
}

.screen-pop-summary-top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.screen-pop-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.screen-pop-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    align-items: center;
}

.screen-pop-chip {
    min-height: 2rem;
    padding: 0.38rem 0.72rem;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
}

.screen-pop-chip-decision {
    border-color: rgba(125, 161, 196, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #eff7ff;
}

.screen-pop-chip-decision-allow {
    border-color: rgba(74, 222, 128, 0.28);
    background: linear-gradient(180deg, rgba(28, 114, 62, 0.56), rgba(21, 85, 47, 0.62));
    color: #deffe9;
}

.screen-pop-chip-decision-challenge {
    border-color: rgba(250, 204, 21, 0.28);
    background: linear-gradient(180deg, rgba(126, 96, 17, 0.56), rgba(91, 70, 13, 0.62));
    color: #fff0b9;
}

.screen-pop-chip-decision-block {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(180deg, rgba(124, 37, 37, 0.6), rgba(89, 25, 25, 0.66));
    color: #ffd8d8;
}

.screen-pop-panel-title {
    margin: 0;
}

.screen-pop-conversation-card {
    display: grid;
    gap: 0.9rem;
}

.screen-pop-assist-thread {
    display: grid;
    gap: 0.8rem;
}

.screen-pop-assist-message {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem 1rem 1rem 0.35rem;
    border: 1px solid rgba(81, 140, 198, 0.18);
    background: linear-gradient(180deg, rgba(10, 30, 48, 0.88), rgba(6, 20, 34, 0.88));
}

.screen-pop-assist-message-status {
    gap: 0.7rem;
    border-color: rgba(81, 140, 198, 0.24);
    background: linear-gradient(180deg, rgba(12, 33, 52, 0.92), rgba(7, 22, 38, 0.92));
}

.screen-pop-assist-message-chat {
    width: min(100%, 48rem);
}

.screen-pop-assist-message-alert {
    width: min(100%, 52rem);
    border-color: rgba(255, 212, 98, 0.34);
    background: linear-gradient(180deg, rgba(61, 42, 9, 0.96), rgba(43, 26, 6, 0.96));
    box-shadow: 0 0 0 1px rgba(255, 212, 98, 0.08);
}

.screen-pop-assist-meta {
    color: rgba(190, 214, 238, 0.7);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.screen-pop-assist-lines {
    display: grid;
    gap: 0.5rem;
}

.screen-pop-assist-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.42rem;
}

.screen-pop-assist-line-label {
    color: rgba(190, 214, 238, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.screen-pop-assist-line-value {
    color: #eff8ff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.screen-pop-assist-severity-high {
    color: #ff8d8d;
}

.screen-pop-assist-severity-medium {
    color: #ffe38a;
}

.screen-pop-assist-severity-low {
    color: #8ef0b0;
}

.screen-pop-assist-severity-unknown {
    color: #c7d6e6;
}

.screen-pop-assist-text {
    margin: 0;
    color: #eff8ff;
    font-size: 0.97rem;
    line-height: 1.55;
}

.screen-pop-transcript-box {
    padding: 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(81, 140, 198, 0.14);
    background: rgba(6, 19, 33, 0.72);
    max-height: 24rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.screen-pop-transcript-text {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.password-card,
.nested-card {
    border-radius: 1.15rem;
    padding: 1rem;
}

.login-help {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    color: rgba(224, 235, 248, 0.72);
    font-size: 0.84rem;
}

.password-success {
    color: #c5ffd9;
    background: rgba(28, 76, 41, 0.3);
}

.user-editor-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 0.95rem;
}

h1:focus {
    outline: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#blazor-error-ui {
    color-scheme: dark only;
    background: #381921;
    bottom: 0;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 1080px) {
    .dashboard-date-filter-presets,
    .transcription-filter-presets {
        flex-wrap: wrap;
    }
}

@media (max-width: 1180px) {
    .overview-hero,
    .overview-control-band,
    .overview-lower-grid,
    .detail-grid,
    .cost-ledger-grid,
    .transcription-trend-row,
    .fraud-workflow-main-grid,
    .fraud-workflow-secondary-grid,
    .fraud-workflow-ai-grid,
    .fraud-workflow-preview-grid {
        grid-template-columns: 1fr;
    }

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

    .fraud-workflow-step-labeled,
    .fraud-workflow-step-wide {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "index copy"
            "side side";
        row-gap: 0.5rem;
        min-width: 18rem;
    }

    .hero-meta {
        justify-content: start;
    }

    .stat-card-kpi-wide {
        grid-column: auto;
    }

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

    .call-review-section:nth-child(odd) {
        border-left: none;
    }

    .transcription-hero-meta {
        grid-template-columns: repeat(2, max-content);
    }

    .call-detail-route-hero,
    .call-detail-summary-grid {
        grid-column: auto;
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar,
    .app-main {
        padding: 1rem;
    }

    .account-switcher,
    .hero-meta,
    .overview-control-band,
    .overview-lower-grid,
    .overview-attestation-list,
    .detail-grid,
    .overview-grid,
    .stats-grid-dashboard,
    .cost-ledger-grid,
    .screen-pop-grid,
    .dashboard-filter-grid,
    .dashboard-custom-grid,
    .audit-filter-grid,
    .calls-filter-grid,
    .fraud-workflow-control-grid,
    .fraud-workflow-ai-control-grid,
    .fraud-workflow-summary-grid,
    .fraud-workflow-path-labels {
        grid-template-columns: 1fr;
    }

    .audit-filter-actions {
        grid-column: auto;
    }

    .voiceprint-config-grid,
    .voiceprint-library-grid {
        grid-template-columns: 1fr;
    }

    .top-row,
    .top-row-actions,
    .panel-header,
    .call-detail-page-header,
    .screen-pop-summary-top,
    .screen-pop-summary-chips,
    .feature-summary-actions,
    .breakdown-header,
    .event-header,
    .feature-toggle-top,
    .feature-toggle-label-row,
    .feature-toggle-meta,
    .config-setting-footer,
    .call-media-panel-header,
    .call-detail-header-actions,
    .call-inline-audio-header,
    .call-session-toolbar,
    .call-session-pager,
    .call-session-pager-row,
    .call-session-pager-control,
    .voiceprint-upload-file-header,
    .voiceprint-upload-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .call-review-grid {
        grid-template-columns: 1fr;
    }

    .transcription-trend-bar {
        grid-template-columns: 1fr;
    }

    .transcription-hero-meta {
        grid-template-columns: 1fr;
    }

    .config-inline-editor-grid {
        grid-template-columns: 1fr;
    }

    .live-dashboard-hero-meta .hero-chip-inline {
        width: 100%;
    }

    .overview-custom-grid {
        grid-template-columns: 1fr;
    }

    .call-detail-hero-rail,
    .call-detail-summary-grid,
    .call-detail-feature-grid,
    .call-detail-transfer-summary-grid,
    .call-detail-totals-grid,
    .call-detail-route-values,
    .call-detail-kv-list {
        grid-template-columns: 1fr;
    }

    .call-detail-route-arrow,
    .call-detail-timeline-marker {
        display: none;
    }

    .call-detail-transcript-event-top,
    .call-detail-segment-top,
    .call-detail-reason-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .call-detail-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .call-detail-timeline-time {
        white-space: normal;
    }

    .fraud-workflow-header,
    .fraud-workflow-actions,
    .fraud-workflow-simulation-controls {
        align-items: stretch;
        width: 100%;
    }

    .fraud-workflow-actions > *,
    .fraud-workflow-simulation-controls > * {
        width: 100%;
    }

    .fraud-workflow-rail {
        grid-template-columns: repeat(2, minmax(12rem, 1fr)) repeat(2, minmax(17rem, 1.18fr)) repeat(2, minmax(12rem, 1fr));
    }

    .fraud-workflow-mini-table > div,
    .fraud-workflow-contribution-row,
    .fraud-rule-score-line {
        grid-template-columns: 1fr;
    }

    .transcription-filter-panel {
        padding: 0.75rem 0.8rem;
    }

    .transcription-filter-presets {
        flex-wrap: wrap;
    }

    .transcription-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    }

    .call-review-section + .call-review-section {
        border-left: none;
        border-top: 1px solid rgba(81, 140, 198, 0.14);
    }

    .call-review-time {
        font-size: 1.45rem;
    }

    .call-route-grid-two {
        grid-template-columns: 1fr;
        grid-template-areas:
            "caller"
            "caller-label"
            "dialed"
            "dialed-label"
            "dialed-status";
        row-gap: 0.35rem;
    }

    .call-route-grid-three {
        grid-template-columns: 1fr;
        grid-template-areas:
            "caller"
            "caller-label"
            "dialed"
            "dialed-label"
            "dialed-status"
            "transfer"
            "transfer-label"
            "transfer-status";
        row-gap: 0.35rem;
    }

    .call-route-grid-arrow {
        display: none;
    }

    .call-review-id-row,
    .call-review-media-badges-single-row {
        overflow-x: visible;
    }

    .feature-switch {
        align-self: flex-start;
    }

    .config-setting-action {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .call-detail-page-id {
        width: 100%;
    }

    .auth-shell {
        align-items: start;
        padding: 1rem;
    }

    .auth-shell::before {
        opacity: 0.22;
    }

    .auth-shell::after {
        background-position: 64% 24%, center, center;
        opacity: 0.54;
    }

    .auth-panel {
        margin-top: 0.5rem;
        border-radius: 1rem;
        padding: 1.15rem;
    }

    .login-card {
        gap: 0.9rem;
    }

    .login-brand-mark {
        width: 4.25rem;
        height: 4.25rem;
    }

    .voice-bar {
        width: 0.24rem;
    }

    .voice-bar + .voice-bar {
        margin-left: 0.24rem;
    }

    .voice-bar-short {
        height: 0.52rem;
    }

    .voice-bar-mid {
        height: 1rem;
    }

    .voice-bar-tall {
        height: 1.58rem;
    }

    .voice-bar-peak {
        height: 2.18rem;
    }

    .login-eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .login-header h1 {
        font-size: 1.95rem;
    }

    .login-header p {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .login-input-shell {
        min-height: 3.15rem;
        padding: 0 0.8rem;
    }

    .login-card .login-submit {
        min-height: 3.4rem;
    }

    .login-footer {
        margin-top: 0.2rem;
        padding-top: 1rem;
        font-size: 0.88rem;
    }
}
