/* VOYLOX Design System V1: shared Control Plane components and responsive states. */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.v3-overlay-open {
    overflow: hidden;
}

.v3-auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--ui-primary) 14%, transparent), transparent 34rem),
        var(--ui-bg);
    color: var(--ui-text);
}

.v3-auth-shell {
    display: grid;
    min-height: 100vh;
    box-sizing: border-box;
    place-items: center;
    padding: 32px 20px;
}

.v3-auth-card {
    width: min(420px, 100%);
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: var(--ui-surface);
    box-shadow: 0 24px 60px rgba(16, 24, 40, .14);
}

.v3-auth-brand { display:flex; flex-direction:column; align-items:flex-start; gap:9px; margin-bottom:28px; }
.v3-auth-logo { display:block; width:min(230px, 72vw); height:auto; object-fit:contain; }
.v3-brand-logo-dark { display:none; }
[data-theme="dark"] .v3-brand-logo-light { display:none; }
[data-theme="dark"] .v3-brand-logo-dark { display:block; }
.v3-auth-tagline { color:var(--ui-muted); font-size:11px; }
.v3-auth-copy h1 { margin:0; font-size:23px; line-height:1.25; }
.v3-auth-copy p { margin:8px 0 24px; color:var(--ui-muted); font-size:13px; line-height:1.55; }
.v3-auth-card .field { margin-bottom:16px; }
.v3-auth-card .field label { display:block; margin-bottom:6px; color:var(--ui-text-secondary); font-size:12px; font-weight:700; }
.v3-auth-card input { width:100%; min-height:44px; box-sizing:border-box; border:1px solid var(--ui-border-strong); border-radius:9px; background:var(--ui-surface); color:var(--ui-text); padding:10px 12px; }
.v3-auth-card input:focus-visible,.v3-password-toggle:focus-visible,.v3-auth-submit:focus-visible { border-color:var(--ui-primary); outline:3px solid color-mix(in srgb, var(--ui-primary) 24%, transparent); outline-offset:2px; }
.v3-auth-card input[aria-invalid="true"] { border-color:var(--ui-danger); }
.v3-auth-error { margin-bottom:18px; }
.v3-auth-error strong { display:block; margin-bottom:5px; }
.v3-auth-error ul { margin:0; padding-left:18px; }
.v3-password-field { position:relative; }
.v3-password-field input { padding-right:76px; }
.v3-password-toggle { position:absolute; top:5px; right:5px; min-height:34px; padding:0 10px; border:0; border-radius:7px; background:var(--ui-surface-soft); color:var(--ui-text-secondary); cursor:pointer; font-size:11px; font-weight:700; }
.v3-auth-submit { width:100%; min-height:44px; margin-top:4px; }
.v3-auth-footnote { margin:20px 0 0; color:var(--ui-muted); font-size:10px; text-align:center; }
.v3-credential-shell { width:100%; box-sizing:border-box; padding:28px 20px; }
.v3-credential-card { width:min(760px,100%); box-sizing:border-box; margin:4vh auto; padding:28px; border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-surface); box-shadow:var(--ui-shadow); }
.v3-credential-card h1 { margin:0 0 18px; font-size:22px; }
.v3-credential-warning { margin-bottom:18px; line-height:1.55; }
.v3-credential-row { display:grid; grid-template-columns:minmax(130px,190px) minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid var(--ui-border); }
.v3-credential-label { color:var(--ui-muted); font-size:12px; }
.v3-credential-value { min-width:0; color:var(--ui-text); font-family:var(--ui-mono); overflow-wrap:anywhere; }
.v3-credential-value.is-secret { font-weight:800; }
.v3-credential-card > .btn { margin-top:22px; text-decoration:none; }

@media (max-width: 480px) {
    .v3-auth-shell { align-items:start; padding:20px 14px; }
    .v3-auth-card { margin-top:7vh; padding:24px 20px; }
    .v3-credential-shell { padding:14px; }
    .v3-credential-card { padding:22px 18px; }
    .v3-credential-row { grid-template-columns:1fr; gap:4px; }
}

.v3-page {
    display: grid;
    gap: var(--ui-space-4);
    min-width: 0;
    overflow-x: hidden;
}

.v3-page > *,
.v3-page section,
.v3-resource-card,
.v3-resource-card .module-table-wrap {
    min-width: 0;
    max-width: 100%;
}

.v3-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.v3-page-header-copy {
    max-width: 720px;
}

.v3-page-eyebrow {
    display: block;
    margin-bottom: var(--ui-space-1);
    color: var(--ui-muted);
    font-size: var(--ui-type-eyebrow);
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.v3-page-header h2 {
    margin: 0;
    color: var(--ui-text);
    font-size: var(--ui-type-page-title);
    line-height: 1.3;
}

.v3-page-header p {
    margin: 5px 0 0;
    color: var(--ui-muted);
    font-size: var(--ui-type-body);
    line-height: 1.5;
}

.v3-page-header-actions {
    display: flex;
    align-items: end;
    flex: 0 0 auto;
    gap: 8px;
}

.v3-dashboard-active-calls header.is-status-only {
    justify-content: flex-end;
}

.v3-tenant-context {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 230px;
}

.v3-tenant-context label {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 700;
}

.v3-tenant-context select {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 8px;
    background: var(--ui-surface);
    color: var(--ui-text);
    padding: 7px 10px;
}

.v3-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--ui-space-4);
    padding: var(--ui-space-3) var(--ui-space-4);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.v3-button:focus-visible,
.v3-icon-button:focus-visible,
.v3-menu-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ui-accent) 24%, transparent);
    outline-offset: 2px;
}

.v3-button.ghost {
    border-color: transparent;
    background: transparent;
    color: var(--ui-text-secondary);
}

.v3-button.ghost:hover {
    background: var(--ui-surface-hover);
    color: var(--ui-text);
}

.v3-button.danger {
    border-color: color-mix(in srgb, var(--ui-danger) 35%, transparent);
    background: var(--ui-danger-bg);
    color: var(--ui-danger);
}

.v3-button.danger:hover {
    border-color: var(--ui-danger);
    background: color-mix(in srgb, var(--ui-danger-bg) 82%, var(--ui-danger));
}

.v3-button.is-icon-only {
    width: var(--ui-control-height-regular);
    padding: 0;
}

.v3-button[disabled],
.v3-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .55;
}

.v3-button.is-loading {
    cursor: wait;
}

.v3-toolbar-fields {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr));
    align-items: end;
    gap: 10px;
    width: 100%;
}

.v3-toolbar .field {
    min-width: 0;
}

.v3-search-field {
    position: relative;
}

.v3-search-field::before {
    content: "⌕";
    position: absolute;
    left: 11px;
    bottom: 9px;
    color: var(--ui-muted);
    pointer-events: none;
}

.v3-search-field input {
    padding-left: 32px;
}

.v3-result-count {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    min-width: 75px;
    padding-bottom: 9px;
    color: var(--ui-muted);
    font-size: 12px;
    white-space: nowrap;
}

.v3-toolbar-summary {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
}

.v3-filter-clear {
    min-width: max-content;
}

.v3-filter-clear[hidden] {
    display: none;
}

.v3-result-count strong {
    color: var(--ui-text);
    font-size: 14px;
}

.v3-resource-card {
    overflow: visible;
}

.v3-resource-list-shell {
    display: grid;
    min-width: 0;
    gap: var(--ui-space-4);
}

.v3-resource-list-shell > * {
    min-width: 0;
}

.v3-table-shell {
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.v3-table-shell:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ui-accent) 20%, transparent);
    outline-offset: -3px;
}

.v3-resource-table {
    min-width: 760px;
}

.v3-resource-table th:last-child,
.v3-resource-table td:last-child {
    width: 56px;
    text-align: right;
}

.v3-resource-table th {
    position: relative;
}

.v3-resource-table td {
    color: var(--ui-text-secondary);
}

.v3-resource-primary {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v3-resource-primary strong {
    color: var(--ui-text);
    font-size: 13px;
}

.v3-resource-primary span {
    color: var(--ui-muted);
    font-size: 11px;
}

.v3-resource-identity {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    gap: 6px;
    color: var(--ui-text);
}

.v3-resource-identifier {
    flex: 0 0 auto;
    color: var(--ui-text);
    font-size: 13px;
    font-weight: 750;
}

.v3-resource-identity-separator {
    color: var(--ui-muted);
}

.v3-resource-name {
    overflow: hidden;
    color: var(--ui-text);
    font: inherit;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.v3-readonly-grid.is-dense {
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.field[hidden] {
    display: none;
}

.v3-readonly-item {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface-soft);
}

.v3-readonly-item span,
.v3-readonly-item strong {
    display: block;
}

.v3-readonly-item span {
    color: var(--ui-muted);
    font-size: 10px;
}

.v3-readonly-item strong {
    margin-top: 4px;
    color: var(--ui-text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.v3-fact-grid {
    grid-column: 1 / -1;
    margin: 0;
}

.v3-fact-item dt,
.v3-fact-item dd {
    margin: 0;
}

.v3-fact-item dt {
    color: var(--ui-muted);
    font-size: 10px;
}

.v3-fact-item dd {
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--ui-text);
    font-size: 12px;
    font-weight: 700;
}

.v3-provisioning {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.v3-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.v3-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.v3-status-badge.is-success {
    color: var(--ui-success);
    background: var(--ui-success-bg);
}

.v3-status-badge.is-neutral {
    color: var(--ui-muted);
    background: var(--ui-surface-soft);
}

.v3-status-badge.is-warning {
    color: var(--ui-warning);
    background: var(--ui-warning-bg);
}

.v3-status-badge.is-danger {
    color: var(--ui-danger);
    background: var(--ui-danger-bg);
}

.v3-status-badge.is-info {
    color: var(--ui-info);
    background: var(--ui-info-bg);
}

.v3-alert {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: var(--ui-space-3);
    padding: var(--ui-space-3) var(--ui-space-4);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface-soft);
    color: var(--ui-text-secondary);
    font-size: var(--ui-type-body);
    line-height: 1.5;
}

.v3-alert-action { display:inline-flex; margin-top:var(--ui-space-2); color:currentColor; font-weight:var(--ui-weight-semibold); text-underline-offset:3px; }
.v3-alert-dismiss { display:inline-grid; place-items:center; align-self:start; width:var(--ui-control-height-compact); height:var(--ui-control-height-compact); padding:0; border:0; border-radius:var(--ui-radius-sm); background:transparent; color:currentColor; cursor:pointer; opacity:.72; }
.v3-alert-dismiss:hover { background:color-mix(in srgb,currentColor 10%,transparent); opacity:1; }
.v3-alert-dismiss .v3-icon { width:var(--ui-icon); height:var(--ui-icon); }

.v3-alert-marker {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: currentColor;
}

.v3-alert-content strong {
    display: block;
    margin-bottom: var(--ui-space-1);
    color: currentColor;
    font-size: var(--ui-type-label);
}

.v3-alert-body > :first-child { margin-top: 0; }
.v3-alert-body > :last-child { margin-bottom: 0; }
.v3-alert.is-info { border-color: color-mix(in srgb, var(--ui-info) 25%, var(--ui-border)); background: var(--ui-info-bg); color: var(--ui-info); }
.v3-alert.is-success { border-color: color-mix(in srgb, var(--ui-success) 25%, var(--ui-border)); background: var(--ui-success-bg); color: var(--ui-success); }
.v3-alert.is-warning { border-color: color-mix(in srgb, var(--ui-warning) 25%, var(--ui-border)); background: var(--ui-warning-bg); color: var(--ui-warning); }
.v3-alert.is-danger { border-color: color-mix(in srgb, var(--ui-danger) 25%, var(--ui-border)); background: var(--ui-danger-bg); color: var(--ui-danger); }
.content > .v3-alert { margin-bottom:var(--ui-space-4); }

.v3-action-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.v3-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface);
    color: var(--ui-text-secondary);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.v3-icon-button:hover,
.v3-icon-button:focus-visible {
    border-color: var(--ui-border-strong);
    background: var(--ui-surface-hover);
    outline: none;
}

.v3-action-menu-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    width: 180px;
    padding: 5px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: var(--ui-surface);
    box-shadow: 0 12px 30px rgba(16, 24, 40, .16);
    text-align: left;
}

.v3-action-menu-panel.is-floating {
    position: fixed;
    z-index: 1100;
}

.v3-action-menu-panel form {
    margin: 0;
}

.v3-action-menu-divider {
    height: 1px;
    margin: 5px 6px;
    background: var(--ui-border);
}

.v3-menu-action {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ui-text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.v3-menu-action:hover,
.v3-menu-action:focus-visible {
    background: var(--ui-surface-hover);
    outline: none;
}

.v3-menu-action.is-danger {
    color: var(--ui-danger);
}

.v3-active-call-terminate {
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
}

.v3-mobile-list {
    display: none;
}

.v3-mobile-card {
    padding: 14px;
    border-bottom: 1px solid var(--ui-border);
}

.v3-mobile-card:last-child {
    border-bottom: 0;
}

.v3-mobile-card-head,
.v3-mobile-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.v3-mobile-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 13px 0;
}

.v3-mobile-card-meta span {
    display: block;
    color: var(--ui-muted);
    font-size: 10px;
}

.v3-mobile-card-meta strong {
    display: block;
    margin-top: 3px;
    color: var(--ui-text-secondary);
    font-size: 12px;
}

.v3-mobile-description {
    min-width: 0;
    color: var(--ui-muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.v3-filter-empty[hidden] {
    display: none;
}

.v3-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    margin: 0 auto;
    padding: 12px;
    text-align: center;
}

.v3-empty-state > strong {
    color: var(--ui-text);
    font-size: 14px;
}

.v3-empty-state > p {
    margin: 6px 0 14px;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.5;
}

.v3-empty-state-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:var(--ui-space-2); }

.v3-loading { display:flex; align-items:center; justify-content:center; gap:var(--ui-space-2); min-height:44px; color:var(--ui-muted); font-size:var(--ui-type-helper); }
.v3-spinner { width:var(--ui-icon-md); height:var(--ui-icon-md); border:2px solid var(--ui-border-strong); border-top-color:var(--ui-brand); border-radius:50%; animation:v3-spin var(--ui-motion-slow) linear infinite; }
.v3-loading.is-skeleton { display:block; width:100%; }
.v3-skeleton-stack { display:grid; gap:var(--ui-space-2); width:100%; }
.v3-skeleton-line { display:block; height:12px; border-radius:var(--ui-radius-xs); background:linear-gradient(90deg,var(--ui-surface-muted),var(--ui-surface-hover),var(--ui-surface-muted)); background-size:200% 100%; animation:v3-skeleton 1.2s ease-in-out infinite; }
.v3-skeleton-line:nth-child(2n) { width:82%; }
.v3-skeleton-line:nth-child(3n) { width:64%; }
.v3-loading.is-progress { align-items:flex-start; flex-direction:column; }
.v3-progress-track { display:block; width:100%; height:5px; overflow:hidden; border-radius:var(--ui-radius-pill); background:var(--ui-surface-muted); }
.v3-progress-track span { display:block; width:38%; height:100%; border-radius:inherit; background:var(--ui-brand); animation:v3-progress 1.4s var(--ui-motion-ease) infinite; }
@keyframes v3-spin { to { transform:rotate(360deg); } }
@keyframes v3-skeleton { 0% { background-position:100% 0; } 100% { background-position:-100% 0; } }
@keyframes v3-progress { 0% { transform:translateX(-110%); } 100% { transform:translateX(290%); } }

.v3-drawer-root,
.v3-modal-root {
    position: fixed;
    inset: 0;
}

.v3-drawer-root { z-index:var(--ui-z-drawer,800); }
.v3-modal-root { z-index:var(--ui-z-modal,900); }

.v3-drawer-root {
    --v3-drawer-size-standard: 560px;
    --v3-drawer-size-wide: 720px;
    --v3-drawer-size-editor: 960px;
    --v3-drawer-scroll-top: 0px;
    --v3-drawer-scroll-bottom: 0px;
    --v3-drawer-thumb-height: 0px;
    --v3-drawer-thumb-top: 0px;
}

.v3-overlay-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(16, 24, 40, .48);
    cursor: default;
}

.v3-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(var(--v3-drawer-size-standard), 100%);
    height: 100%;
    background: var(--ui-surface);
    box-shadow: -12px 0 32px rgba(16, 24, 40, .18);
}

.v3-drawer.is-wide {
    width: min(var(--v3-drawer-size-wide), 100%);
}

.v3-drawer.is-editor {
    width: min(var(--v3-drawer-size-editor), 100%);
}

.v3-forward-target {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(120px, .65fr) minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    background: var(--ui-surface-soft);
}

.v3-forward-target > strong {
    align-self: center;
    color: var(--ui-text);
}

.v3-active-tenant {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 18px 22px 0;
    padding: 12px 14px;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    background: var(--ui-surface-soft);
}

.v3-active-tenant span { color: var(--ui-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.v3-active-tenant strong { color: var(--ui-text); font-size: 12px; }
.v3-drawer-context { display:inline-flex; width:max-content; max-width:100%; margin-top:9px; padding:4px 8px; border:1px solid var(--ui-border); border-radius:999px; background:var(--ui-surface-soft); color:var(--ui-text-secondary); font-family:var(--ui-mono); font-size:10px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v3-member-picker { grid-column: 1 / -1; min-width: 0; }
.v3-member-help { margin: 0 0 10px; color: var(--ui-muted); font-size: 11px; }
.v3-member-summary { display:flex; justify-content:space-between; gap:12px; margin:10px 0 6px; padding:7px 9px; border-radius:7px; background:var(--ui-surface-soft); color:var(--ui-muted); font-size:11px; }
.v3-member-summary strong { color:var(--ui-text); }
.v3-member-list { display:grid; max-height:260px; overflow-y:auto; border-block:1px solid var(--ui-border); }
.v3-member-row { display:grid; grid-template-columns:minmax(0,1fr) 124px; align-items:center; gap:12px; min-height:50px; padding:6px 9px; border-bottom:1px solid var(--ui-border); background:var(--ui-surface); }
.v3-member-row:last-child { border-bottom:0; }
.v3-member-row:has(input[type="checkbox"]:checked) { background:var(--ui-primary-soft); box-shadow:inset 3px 0 0 var(--ui-primary); }
.v3-member-choice { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; min-width:0; cursor:pointer; }
.v3-member-choice input[type="checkbox"] { width:16px; height:16px; accent-color:var(--ui-primary); }
.v3-apply-toggle-row {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface-soft);
    color: var(--ui-text);
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}
.v3-apply-toggle-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ui-primary);
    flex: 0 0 auto;
}
.v3-apply-toggle-row:has(input:focus-visible) {
    outline: 2px solid var(--ui-primary);
    outline-offset: 2px;
}
.v3-member-identity { display:flex; flex-direction:column; min-width:0; }
.v3-member-identity small { overflow:hidden; color:var(--ui-muted); text-overflow:ellipsis; white-space:nowrap; }
.v3-member-penalty { margin:0; }
.v3-member-penalty label { font-size:9px; white-space:nowrap; }
.v3-member-none { padding:18px; color:var(--ui-muted); text-align:center; }
.v3-external-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 8px; padding-top:15px; border-top:1px solid var(--ui-border); }
.v3-external-head > div { display:flex; flex-direction:column; }
.v3-external-head span { color:var(--ui-muted); font-size:11px; }
.v3-external-list { display:grid; gap:8px; }
.v3-external-row { display:grid; grid-template-columns:minmax(110px,.75fr) minmax(150px,1.25fr) 88px minmax(150px,1fr) 34px; gap:8px; align-items:end; padding:9px; border:1px solid var(--ui-border); border-radius:8px; background:var(--ui-surface-soft); }
.v3-external-field { display:grid; gap:4px; min-width:0; color:var(--ui-muted); font-size:9px; font-weight:650; }
.v3-external-field input,.v3-external-field select { width:100%; min-width:0; }
.v3-external-row>.v3-icon-button { margin-bottom:3px; }
.v3-queue-density .field { gap:6px; }
.v3-queue-density .field>label,.v3-queue-density label.field>span { margin-bottom:0; }
.v3-queue-density .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.v3-queue-density .field select { min-height:42px; height:42px; padding:6px 10px; }
.v3-queue-density .v3-form-section { padding:12px 20px; }
.v3-queue-density .v3-form-section>p { margin-bottom:9px; }
.v3-queue-density .v3-form-grid { gap:12px 14px; }
.v3-queue-density .v3-form-section.is-disclosure { padding:0; }
.v3-queue-density .v3-form-section.is-disclosure>summary { padding:12px 20px; }
.v3-queue-density .v3-form-section.is-disclosure>.v3-form-grid { padding:0 20px 12px; }
.v3-queue-density .v3-sticky-actions { padding:9px 20px; }
.v3-queue-density .v3-queue-semantic-section .field { min-width:0; }
.v3-queue-density .v3-queue-semantic-section .field>label { line-height:1.35; overflow-wrap:break-word; }
.v3-queue-density .v3-queue-basic-grid>.v3-form-grid { grid-template-columns:minmax(180px,220px) minmax(280px,400px) minmax(300px,400px); justify-content:start; }
.v3-queue-density .v3-queue-timing-grid>.v3-form-grid { grid-template-columns:repeat(3,minmax(150px,180px)); align-items:end; justify-content:start; }
.v3-queue-density .v3-queue-announcement-grid>.v3-form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; }
.v3-queue-density .v3-queue-announcement-grid .v3-queue-field-compact { width:min(100%,180px); }
.v3-queue-density .v3-queue-announcement-grid .v3-switch-list { grid-column:2 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); }
.v3-queue-density .v3-queue-advanced-grid>.v3-form-grid { grid-template-columns:minmax(320px,1fr) minmax(220px,300px); }
.v3-queue-density .v3-queue-advanced-grid>.v3-form-grid:has(.v3-failover-external[hidden]) { grid-template-columns:minmax(0,1fr); }
.v3-queue-density .v3-queue-advanced-grid .field.is-wide { grid-column:auto; }
.v3-queue-density .v3-failover-external[hidden] { display:none; }
.v3-queue-members { grid-column:1 / -1; display:grid; gap:14px; min-width:0; }
.v3-selected-members { grid-column:1 / -1; display:grid; gap:9px; min-width:0; }
.v3-selected-members .v3-queue-member-card { grid-template-columns:minmax(0,1fr) minmax(90px,120px) auto; }
.v3-selected-members[data-show-penalty="false"] .v3-queue-member-card { grid-template-columns:minmax(0,1fr) auto; }
.v3-selected-members .v3-member-penalty { display:grid; gap:3px; margin:0; color:var(--ui-muted); font-size:9px; }
.v3-selected-members .v3-member-penalty input { width:100%; }
@media(max-width:520px){.v3-selected-members .v3-queue-member-card,.v3-selected-members[data-show-penalty="false"] .v3-queue-member-card{grid-template-columns:minmax(0,1fr) auto}.v3-selected-members .v3-member-penalty{grid-column:1 / -1}.v3-queue-member-heading{align-items:stretch;flex-direction:column}}
.v3-queue-member-group { display:grid; gap:7px; min-width:0; }
.v3-queue-member-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.v3-queue-member-heading>div { display:grid; gap:2px; }
.v3-queue-member-heading span { color:var(--ui-muted); font-size:11px; }
.v3-queue-selected-list { display:grid; gap:6px; min-width:0; }
.v3-queue-member-card,.v3-queue-external-card { display:grid; grid-template-columns:minmax(0,1fr) 120px auto; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--ui-border); border-radius:9px; background:var(--ui-surface-soft); }
.v3-queue-external-card { grid-template-columns:minmax(0,1fr) auto; }
.v3-queue-member-identity { display:flex; flex-direction:column; min-width:0; }
.v3-queue-member-identity small { overflow:hidden; color:var(--ui-muted); text-overflow:ellipsis; white-space:nowrap; }
.v3-resource-member-order,.v3-resource-member-actions { min-width:0; }
.v3-resource-member-actions { display:flex; justify-content:flex-end; }
.v3-queue-member-priority { display:grid; gap:4px; margin:0; color:var(--ui-muted); font-size:9px; }
.v3-queue-member-priority input { width:100%; }
.v3-queue-card-actions { display:flex; gap:4px; }
.v3-queue-member-empty { margin:0; padding:12px; border:1px dashed var(--ui-border-strong); border-radius:9px; color:var(--ui-muted); font-size:11px; text-align:center; }
.v3-queue-member-heading .btn { min-height:36px; padding:0 10px; }
.v3-queue-picker-modal { width:min(640px,calc(100% - 28px)); }
.v3-queue-external-modal { width:min(560px,calc(100% - 28px)); }
.v3-queue-picker-modal,.v3-queue-external-modal { padding:18px; }
.v3-queue-modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.v3-queue-picker-search { display:grid; gap:5px; margin-top:12px; }
.v3-queue-picker-status { margin:10px 0 7px; color:var(--ui-muted); font-size:11px; font-weight:700; }
.v3-queue-picker-results { display:grid; max-height:min(48vh,420px); overflow-y:auto; overscroll-behavior:contain; border:1px solid var(--ui-border); border-radius:9px; background:var(--ui-surface); }
.v3-queue-picker-option { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; min-height:42px; margin:0; padding:5px 9px; border-bottom:1px solid var(--ui-border); cursor:pointer; }
.v3-queue-picker-option:last-child { border-bottom:0; }
.v3-queue-picker-option:has(input:checked) { background:var(--ui-primary-soft); box-shadow:inset 3px 0 0 var(--ui-primary); }
.v3-queue-picker-option input { width:16px; height:16px; accent-color:var(--ui-primary); }
.v3-queue-picker-option span { display:flex; flex-direction:column; min-width:0; }
.v3-queue-picker-option small { overflow:hidden; color:var(--ui-muted); text-overflow:ellipsis; white-space:nowrap; }
.v3-queue-picker-modal .v3-modal-actions,.v3-queue-external-modal .v3-modal-actions { margin-top:14px; }
.v3-queue-external-modal .v3-form-grid { gap:10px 12px; }
.v3-field-error { color:var(--ui-danger)!important; }
.v3-digit-grid { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.v3-digit-row { display:grid; grid-template-columns:68px minmax(0,1fr); align-items:end; gap:8px; }
.v3-digit-row>label { display:flex; align-items:center; gap:6px; min-height:40px; margin:0; }
.v3-digit-key { display:inline-grid; place-items:center; width:28px; height:28px; border:1px solid var(--ui-border-strong); border-radius:7px; background:var(--ui-surface-soft); color:var(--ui-text); font-family:var(--ui-mono); font-weight:750; }
.v3-workspace-tabs { display:flex; gap:6px; margin:0 0 16px; padding:5px; border:1px solid var(--ui-border); border-radius:10px; background:var(--ui-surface-soft); }
.v3-workspace-tabs a { flex:1; padding:9px 12px; border-radius:7px; color:var(--ui-muted); font-size:12px; font-weight:700; text-align:center; text-decoration:none; }
.v3-workspace-tabs a:hover, .v3-workspace-tabs a:focus { background:var(--ui-surface); color:var(--ui-text); }
.v3-timezone-note { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; padding:11px 14px; border:1px solid var(--ui-border); border-radius:9px; background:var(--ui-surface-soft); color:var(--ui-muted); font-size:12px; }
.v3-schedule-row { grid-column:1 / -1; display:grid; grid-template-columns:minmax(180px,1.4fr) minmax(130px,.8fr) minmax(130px,.8fr) auto; align-items:end; gap:10px; padding:12px; border:1px solid var(--ui-border); border-radius:9px; background:var(--ui-surface-soft); }
.v3-schedule-periods,.v3-schedule-period-list,.v3-period-summary { display:grid; gap:10px; }
.v3-repeat-editor { min-width:0; }
.v3-repeat-remove { min-width:max-content; }
.v3-compact-number { width:100%; max-width:160px; }
.v3-compact-number input,.v3-compact-number select { width:100%; }
.v3-period-summary { gap:4px; }
.v3-period-summary > span { display:flex; gap:8px; flex-wrap:wrap; }
.v3-inline-chips { display:flex; flex-wrap:wrap; gap:5px; }
.v3-inline-chips span { padding:3px 7px; border-radius:999px; background:var(--ui-surface-soft); color:var(--ui-muted); font-size:10px; white-space:nowrap; }
.v3-inline-chips span.is-warning, .v3-unresolved { color:var(--ui-warning-text); background:var(--ui-warning-soft); }
#time-conditions { margin-top:28px; }
.v3-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:var(--ui-space-3); margin-bottom:var(--ui-space-4); }
.v3-metric-card,.v3-stat-card { display:flex; flex-direction:column; gap:var(--ui-space-1); min-width:0; padding:var(--ui-space-4); border:1px solid var(--ui-border); border-radius:var(--ui-radius); background:var(--ui-surface); color:var(--ui-text); text-decoration:none; box-shadow:var(--ui-shadow-subtle); }
a.v3-metric-card:hover,a.v3-stat-card:hover { border-color:var(--ui-border-strong); background:var(--ui-surface-hover); }
.v3-metric-label,.v3-metric-helper,.v3-stat-card span,.v3-stat-card small { color:var(--ui-muted); font-size:var(--ui-type-helper); }
.v3-metric-value,.v3-stat-card strong { overflow-wrap:anywhere; font-size:var(--ui-type-metric); line-height:1.1; letter-spacing:-.02em; }
.v3-metric-label { display:flex; align-items:center; gap:5px; }
.v3-help { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:999px; color:var(--ui-muted); cursor:help; }
.v3-help .v3-icon { width:14px; height:14px; }
.v3-help:hover,.v3-help:focus-visible { color:var(--ui-primary); outline:2px solid color-mix(in srgb,var(--ui-accent) 28%,transparent); outline-offset:1px; }
.v3-filter-action-row { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; width:100%; padding-top:12px; border-top:1px solid var(--ui-border); }
.v3-filter-primary-actions,.v3-export-actions { display:flex; align-items:center; gap:8px; }
.v3-export-actions { justify-content:flex-end; padding:0; border:0; background:transparent; }
.v3-export-button { gap:7px; min-height:36px; padding:0 11px; background:var(--ui-surface); }
.v3-export-button .v3-icon { width:16px; height:16px; }
.v3-export-button.is-xlsx .v3-icon { color:var(--ui-success); }
.v3-export-button.is-pdf .v3-icon { color:var(--ui-danger); }
.v3-data-legend { display:flex; align-items:flex-start; gap:6px; margin:-.25rem 0 1rem; color:var(--ui-muted); font-size:11px; }
.v3-data-legend .v3-icon { width:14px; height:14px; margin-top:1px; }
.tenant-lifecycle-summary .v3-stat-card strong{font-size:13px;line-height:1.35}.tenant-lifecycle-table{margin-top:18px}.tenant-lifecycle-reason{margin-top:16px;text-align:left}.tenant-lifecycle-reason textarea{width:100%}
.v3-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr); gap:16px; margin-bottom:16px; }
.v3-dashboard-panel { margin-bottom:16px; padding:18px; }
.v3-dashboard-panel>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:15px; }
.v3-dashboard-panel h2 { margin:0; font-size:15px; }.v3-dashboard-panel header p { margin:4px 0 0; color:var(--ui-muted); font-size:11px; }
.v3-live-status { display:flex; align-items:flex-end; flex-direction:column; gap:5px; flex:0 0 auto; }
.v3-live-status small { color:var(--ui-muted); white-space:nowrap; }
@media (max-width: 520px) {
    .v3-dashboard-panel>header { align-items:stretch; flex-direction:column; }
    .v3-live-status { align-items:flex-start; }
}
.v3-operational-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }.v3-operational-grid div,.v3-health-list div { padding:12px; border-radius:8px; background:var(--ui-surface-soft); }.v3-operational-grid span,.v3-health-list span { display:block; color:var(--ui-muted); font-size:10px; }.v3-operational-grid strong { display:block; margin-top:5px; font-size:18px; }
.v3-health-list { display:grid; gap:8px; }.v3-health-list div { display:flex; align-items:center; justify-content:space-between; gap:10px; }.v3-health-list strong { font-size:11px; }
.v3-quick-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }.v3-quick-grid a { padding:12px; border:1px solid var(--ui-border); border-radius:8px; color:var(--ui-text); font-size:11px; font-weight:700; text-align:center; text-decoration:none; }
@media(max-width:900px){.v3-dashboard-grid{grid-template-columns:1fr}.v3-operational-grid{grid-template-columns:repeat(2,1fr)}.v3-quick-grid{grid-template-columns:repeat(2,1fr)}}
.v3-reporting-page .filter-panel { margin-bottom:16px; }
.v3-operational-toolbar { display:block; }
.v3-operational-toolbar .filter-row,.v3-operational-toolbar .report-filter-grid { width:100%; }
.v3-reporting-page .filter-row { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
.v3-reporting-page .filter-row .field { flex:1 1 145px; }
.v3-workflow-health { margin-bottom:16px; overflow:hidden; }
.v3-workflow-bootstrap-note { margin:0 16px 16px; }
.v3-workflow-groups { display:grid; gap:14px; padding:0 16px 16px; }
.v3-workflow-group { min-width:0; border:1px solid var(--ui-border); border-radius:10px; background:var(--ui-surface-soft); overflow:hidden; }
.v3-workflow-group > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:14px; border-bottom:1px solid var(--ui-border); }
.v3-workflow-group h3 { margin:0; font-size:14px; }
.v3-workflow-group header p { margin:4px 0 0; color:var(--ui-muted); font-size:11px; }
.v3-workflow-source-summary { display:flex; flex-wrap:wrap; gap:7px; }
.v3-workflow-source-summary span,.v3-workflow-counters span { padding:5px 7px; border-radius:7px; background:var(--ui-surface); color:var(--ui-muted); font-size:10px; white-space:nowrap; }
.v3-workflow-source-summary strong,.v3-workflow-counters strong { color:var(--ui-text); }
.v3-workflow-rows { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1px; background:var(--ui-border); }
.v3-workflow-row { min-width:0; padding:13px; background:var(--ui-surface); }
.v3-workflow-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.v3-workflow-row-head strong,.v3-workflow-row-head span { display:block; }
.v3-workflow-row-head .mono { margin-top:3px; color:var(--ui-muted); font-size:10px; }
.v3-workflow-context-note,.v3-workflow-quiet-note { margin:8px 0 0; font-size:10px; color:var(--ui-muted); }
.v3-workflow-quiet-note { color:var(--ui-info); }
.v3-workflow-alert { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; margin-top:9px; padding:8px; border-radius:7px; background:var(--ui-warning-bg); color:var(--ui-warning); font-size:10px; }
.v3-workflow-alert.is-danger { background:var(--ui-danger-bg); color:var(--ui-danger); }
.v3-workflow-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:10px 0 0; }
.v3-workflow-facts div { min-width:0; }
.v3-workflow-facts dt { color:var(--ui-muted); font-size:9px; text-transform:uppercase; letter-spacing:.03em; }
.v3-workflow-facts dd { margin:2px 0 0; overflow-wrap:anywhere; font-size:10px; }
.v3-workflow-counters { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.v3-journey-detail { margin-top:18px; padding:20px; }.v3-journey-detail>header{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.v3-journey-detail h2{margin:0}.v3-journey-detail header p{margin:4px 0;color:var(--ui-muted)}
.v3-journey-timeline{display:grid;gap:0;margin-top:18px}.v3-journey-timeline article{display:grid;grid-template-columns:80px minmax(0,1fr);gap:15px;padding:12px 0;border-top:1px solid var(--ui-border)}.v3-journey-timeline time{color:var(--ui-muted);font-family:var(--ui-mono);font-size:11px}.v3-journey-timeline p{margin:4px 0 0;color:var(--ui-muted);font-size:12px}.v3-tech-row{display:flex;flex-direction:column;gap:3px;padding:9px;border-left:3px solid var(--ui-border);background:var(--ui-surface-soft);font-size:11px}
@media(max-width:600px){.v3-reporting-page .filter-row{align-items:stretch;flex-direction:column}.v3-reporting-page .filter-row .field,.v3-reporting-page .filter-row .btn{width:100%}.v3-journey-timeline article{grid-template-columns:1fr;gap:4px}.v3-workflow-bootstrap-note{margin-inline:10px}.v3-workflow-groups{padding:0 10px 10px}.v3-workflow-group>header{flex-direction:column}.v3-workflow-rows{grid-template-columns:minmax(0,1fr)}.v3-workflow-facts{grid-template-columns:1fr}}

.v3-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--ui-border);
}

.v3-drawer-header h2 {
    margin: 0;
    color: var(--ui-text);
    font-size: 18px;
}

.v3-drawer-header p {
    margin: 5px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.5;
}

.v3-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
}

.v3-drawer-scroll-fade,
.v3-drawer-scroll-rail {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

.v3-drawer-scroll-fade {
    right: 0;
    left: 0;
    height: 24px;
}

.v3-drawer-scroll-fade.is-top {
    top: var(--v3-drawer-scroll-top);
    background: linear-gradient(to bottom, var(--ui-surface), transparent);
}

.v3-drawer-scroll-fade.is-bottom {
    bottom: var(--v3-drawer-scroll-bottom);
    background: linear-gradient(to top, var(--ui-surface), transparent);
}

.v3-drawer-scroll-rail {
    top: calc(var(--v3-drawer-scroll-top) + 8px);
    right: 4px;
    bottom: calc(var(--v3-drawer-scroll-bottom) + 8px);
    width: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ui-border-strong) 50%, transparent);
}

.v3-drawer-scroll-thumb {
    position: absolute;
    top: var(--v3-drawer-thumb-top);
    right: 0;
    width: 4px;
    height: var(--v3-drawer-thumb-height);
    border-radius: inherit;
    background: var(--ui-muted);
}

[data-v3-scroll-state="top"] .v3-drawer-scroll-fade.is-bottom,
[data-v3-scroll-state="middle"] .v3-drawer-scroll-fade,
[data-v3-scroll-state="bottom"] .v3-drawer-scroll-fade.is-top,
[data-v3-scroll-state]:not([data-v3-scroll-state="none"]) .v3-drawer-scroll-rail {
    opacity: .72;
}

.v3-form-shell,
.v3-complex-editor {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.v3-form-shell-content,
.v3-complex-editor-content {
    min-width: 0;
}

.v3-editor-section-nav {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 20px;
    border-bottom: 1px solid var(--ui-border);
    background: color-mix(in srgb, var(--ui-surface) 96%, transparent);
    backdrop-filter: blur(8px);
}

.v3-editor-section-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface-soft);
    color: var(--ui-text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.v3-editor-section-link:hover,
.v3-editor-section-link:focus-visible,
.v3-editor-section-link.is-active {
    border-color: var(--ui-primary);
    color: var(--ui-primary);
}

.v3-editor-section-link.is-active {
    background: var(--ui-primary-soft);
}

.v3-editor-section-link.is-invalid,
.v3-form-section.is-invalid {
    border-color: var(--ui-danger);
}

.v3-editor-section-link.is-invalid small {
    color: var(--ui-danger);
}

.v3-editor-section-link.is-configured small {
    color: var(--ui-success);
}

.v3-editor-section-link small {
    font-size: 9px;
}

.v3-drawer-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.v3-drawer-form .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.v3-drawer-form .field select,
.v3-external-field input,
.v3-external-field select {
    min-height: 42px;
    height: 42px;
}

.v3-drawer-form .field textarea {
    min-height: 88px;
}

.v3-drawer-tenant {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 18px 22px 0;
    padding: 12px 14px;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    background: var(--ui-surface-soft);
}

.v3-drawer-tenant span {
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.v3-drawer-tenant strong {
    color: var(--ui-text);
    font-size: 12px;
}

.v3-drawer-validation {
    margin: 18px 22px 0;
}

.v3-drawer-validation > strong {
    display: block;
    margin-bottom: 6px;
}

.v3-drawer-validation ul {
    margin: 0;
    padding-left: 18px;
}

.v3-form-section {
    min-width: 0;
    margin: 0;
    padding: 18px 20px;
    border: 0;
}

.v3-form-section + .v3-form-section {
    border-top: 1px solid var(--ui-border);
}

.v3-form-section legend {
    float: left;
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 750;
}

.v3-form-section > p {
    clear: both;
    margin: 0 0 13px;
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.5;
}

.v3-form-section.is-disclosure {
    padding: 0;
}

.v3-form-section.is-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
}

.v3-form-section.is-disclosure > summary::-webkit-details-marker {
    display: none;
}

.v3-form-section.is-disclosure > summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ui-accent) 24%, transparent);
    outline-offset: -3px;
}

.v3-form-section.is-disclosure > summary span:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v3-form-section.is-disclosure > summary strong {
    color: var(--ui-text);
    font-size: 14px;
}

.v3-form-section.is-disclosure > summary small {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.v3-form-section-chevron {
    color: var(--ui-muted);
    font-size: 18px;
    line-height: 1;
    transform: rotate(-90deg);
    transition: transform .15s ease;
}

.v3-form-section.is-disclosure[open] .v3-form-section-chevron {
    transform: rotate(0);
}

.v3-form-section.is-disclosure > .v3-form-grid {
    padding: 0 20px 18px;
}

.v3-switch-list {
    display: grid;
    gap: 8px;
}

.v3-switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface-soft);
    cursor: pointer;
}

.v3-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.v3-switch-copy strong {
    color: var(--ui-text);
    font-size: var(--ui-type-label);
}

.v3-switch-copy small {
    color: var(--ui-muted);
    font-size: var(--ui-type-helper);
    font-weight: 400;
    line-height: 1.4;
}

.v3-switch-control {
    position: relative;
    flex: 0 0 auto;
}

.v3-switch-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.v3-switch-track {
    display: block;
    width: 38px;
    height: 22px;
    padding: 3px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 999px;
    background: var(--ui-surface);
    transition: background .15s ease, border-color .15s ease;
}

.v3-switch-track span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ui-muted);
    transition: transform .15s ease, background .15s ease;
}

.v3-switch-control input:checked + .v3-switch-track {
    border-color: var(--ui-accent);
    background: var(--ui-accent);
}

.v3-switch-control input:checked + .v3-switch-track span {
    background: var(--ui-surface);
    transform: translateX(16px);
}

.v3-switch-control input:focus-visible + .v3-switch-track {
    outline: 3px solid color-mix(in srgb, var(--ui-accent) 24%, transparent);
    outline-offset: 2px;
}

.v3-switch-control input:disabled + .v3-switch-track,
.v3-switch-field:has(input:disabled) {
    cursor: not-allowed;
    opacity: .55;
}

.v3-form-grid {
    clear: both;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
}

.v3-form-grid .field.is-wide {
    grid-column: 1 / -1;
}

.v3-field-error {
    color: var(--ui-danger);
    font-size: 11px;
}

.v3-sticky-actions {
    position: sticky;
    z-index: 2;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding: 12px 20px;
    border-top: 1px solid var(--ui-border);
    background: color-mix(in srgb, var(--ui-surface) 94%, transparent);
    backdrop-filter: blur(8px);
}

.v3-sticky-actions-secondary {
    margin-right: auto;
}

.v3-sticky-actions-primary {
    display: flex;
    gap: 8px;
}

.v3-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100% - 28px));
    padding: 22px;
    transform: translate(-50%, -50%);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: 0 20px 45px rgba(16, 24, 40, .25);
}

.v3-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--ui-danger-bg);
    color: var(--ui-danger);
    font-weight: 800;
}

.v3-modal h2 {
    margin: 0;
    color: var(--ui-text);
    font-size: 17px;
}

.v3-modal p {
    margin: 8px 0 0;
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.5;
}

.v3-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

@media (max-width: 1000px) {
    .v3-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .v3-result-count {
        justify-content: flex-start;
        padding: 0;
    }

    .v3-toolbar-summary {
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .v3-queue-density .v3-queue-basic-grid>.v3-form-grid { grid-template-columns:minmax(180px,220px) minmax(280px,420px); }
    .v3-queue-density .v3-queue-basic-grid .v3-queue-field-strategy { grid-column:2; }
    .v3-queue-density .v3-queue-timing-grid>.v3-form-grid { grid-template-columns:repeat(2,minmax(150px,180px)); }
    .v3-queue-density .v3-queue-announcement-grid>.v3-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .v3-queue-density .v3-queue-announcement-grid .v3-switch-list { grid-column:1 / -1; }
}

@media (max-width: 680px) {
    .v3-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .v3-page-header-actions,
    .v3-page-header-actions .btn,
    .v3-tenant-context {
        width: 100%;
    }

    .v3-page-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .v3-toolbar-fields {
        grid-template-columns: 1fr;
    }

    .v3-table-desktop {
        display: none;
    }

    .v3-mobile-list {
        display: block;
    }

    .v3-resource-card {
        overflow: hidden;
    }

    .v3-resource-card > .module-table-wrap,
    .v3-page > section > .module-card > .module-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .v3-workspace-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .v3-workspace-tabs a {
        min-width: max-content;
    }

    .v3-drawer {
        width: 100%;
    }

    .v3-editor-section-nav {
        padding: 8px 16px;
        scroll-snap-type: x proximity;
    }

    .v3-editor-section-link {
        max-width: min(78vw, 280px);
        scroll-snap-align: start;
    }

    .v3-forward-target {
        grid-template-columns: 1fr;
    }
    .v3-member-summary { align-items:flex-start; flex-direction:column; }
    .v3-member-row { grid-template-columns:minmax(0,1fr) 108px; }
    .v3-external-head { align-items:stretch; flex-direction:column; }
    .v3-external-row { grid-template-columns:1fr 1fr 34px; }
    .v3-external-row .v3-external-field { grid-column:span 3; }
    .v3-external-row .v3-external-field.is-priority { grid-column:span 1; }
    .v3-external-row .v3-external-field:has([data-field="confirmation_required"]) { grid-column:span 1; }
    .v3-queue-member-heading { align-items:stretch; flex-direction:column; }
    .v3-queue-member-heading .btn { width:100%; }
    .v3-queue-member-card,.v3-queue-external-card { grid-template-columns:1fr; align-items:stretch; }
    .v3-resource-member-actions { justify-content:flex-start; }
    .v3-queue-member-priority { max-width:140px; }
    .v3-queue-card-actions { justify-content:flex-end; }
    .v3-queue-picker-modal,.v3-queue-external-modal { max-height:calc(100% - 20px); overflow-y:auto; padding:17px; }
    .v3-digit-grid { grid-template-columns:1fr; }
    .v3-schedule-row { grid-template-columns:1fr 1fr; }
    .v3-schedule-row .is-weekday { grid-column:1 / -1; }
    .v3-schedule-row [data-time-period-remove] { grid-column:1 / -1; }

    .v3-drawer-header {
        padding: 17px 16px;
    }

    .v3-form-section {
        padding: 18px 16px;
    }

    .v3-form-section.is-disclosure {
        padding: 0;
    }

    .v3-form-section.is-disclosure > summary {
        padding: 16px;
    }

    .v3-form-section.is-disclosure > .v3-form-grid {
        padding: 0 16px 18px;
    }

    .v3-drawer-tenant,
    .v3-drawer-validation {
        margin-right: 16px;
        margin-left: 16px;
    }

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

    .v3-readonly-grid {
        grid-template-columns: 1fr;
    }

    .v3-form-grid .field {
        width: 100%;
    }

    .v3-queue-density .v3-queue-basic-grid>.v3-form-grid,
    .v3-queue-density .v3-queue-timing-grid>.v3-form-grid,
    .v3-queue-density .v3-queue-announcement-grid>.v3-form-grid,
    .v3-queue-density .v3-queue-advanced-grid>.v3-form-grid {
        grid-template-columns: 1fr;
    }

    .v3-queue-density .v3-queue-basic-grid .v3-queue-field-medium,
    .v3-queue-density .v3-queue-announcement-grid .v3-switch-list,
    .v3-queue-density .v3-queue-advanced-grid .field.is-wide {
        grid-column: 1;
        width: 100%;
    }

    .v3-queue-density .v3-queue-basic-grid .v3-queue-field-strategy {
        grid-column: 1;
    }

    .v3-queue-density .v3-queue-announcement-grid .v3-switch-list {
        grid-template-columns: 1fr;
    }

    .v3-sticky-actions {
        padding: 12px 16px;
    }

    .v3-sticky-actions .btn {
        width: auto;
        flex: 1;
    }

    .v3-sticky-actions-primary {
        flex: 1;
    }

    .v3-modal-actions .btn {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 390px) {
    .v3-editor-section-nav {
        padding-inline: 12px;
    }

    .v3-sticky-actions {
        flex-wrap: wrap;
    }

    .v3-sticky-actions-secondary,
    .v3-sticky-actions-primary {
        width: 100%;
    }
}
/* Dashboard V2 operational snapshots */
.v3-dashboard-context { margin: -.35rem 0 .25rem; color: var(--muted); font-size: .82rem; }
.v3-node-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: .85rem; }
.v3-node-card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.v3-node-card h3 { margin: 0 0 .75rem; font-size: .95rem; }
.v3-node-card dl { display: grid; gap: .45rem; margin: 0; }
.v3-node-card dl div { display: flex; justify-content: space-between; gap: .75rem; }
.v3-node-card dt { color: var(--muted); }
.v3-node-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.v3-pagination { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; padding:.85rem 1rem; border-top:1px solid var(--border); }
.v3-pagination-summary { margin:0; color:var(--muted); font-size:.78rem; }
.v3-pagination-summary strong { color:var(--text); font-weight:700; }
.v3-pagination-controls { display:flex; align-items:center; gap:.35rem; flex-wrap:wrap; }
.v3-pagination-link { display:inline-flex; min-width:2.1rem; min-height:2.1rem; align-items:center; justify-content:center; padding:.35rem .65rem; border:1px solid var(--border); border-radius:8px; background:var(--panel); color:var(--text); font-size:.78rem; font-weight:700; line-height:1; text-decoration:none; }
.v3-pagination-link:hover { border-color:var(--primary); color:var(--primary); }
.v3-pagination-link.is-current { border-color:var(--primary); background:var(--primary); color:var(--ui-brand-foreground); }
.v3-pagination-link.is-disabled { cursor:not-allowed; opacity:.45; }
.v3-pagination-ellipsis { min-width:1.2rem; color:var(--muted); text-align:center; }
[data-theme="dark"] .v3-pagination-link:not(.is-current) { background:var(--ui-surface-soft); border-color:var(--ui-border); }
@media (max-width: 640px) { .v3-pagination { align-items:stretch; flex-direction:column; padding:.75rem; } .v3-pagination-controls { justify-content:center; } .v3-pagination-link { min-width:2rem; min-height:2rem; padding:.35rem .55rem; } }
@media (max-width: 640px) { .v3-node-card dl div { align-items: flex-start; } }

/* VOYLOX Dashboard V4 — flagship operational surface */
.v3-dashboard-v4 { min-width:0; }
.v4-dashboard-context { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin:-.3rem 0 1rem; color:var(--muted); font-size:.76rem; }
.v4-dashboard-attention { margin-bottom:.75rem; }
.v4-dashboard-attention h2,.v4-dashboard-quick-actions h2 { margin:0 0 .45rem; color:var(--muted); font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.v4-dashboard-healthy { display:flex; align-items:center; gap:.45rem; margin:0; padding:.55rem .7rem; border:1px solid var(--border); border-radius:10px; color:var(--muted); font-size:.78rem; }
.v4-dashboard-healthy span { color:var(--ui-success); font-weight:900; }
.v4-dashboard-attention-list { display:grid; gap:.4rem; }
.v4-dashboard-attention-row { display:grid; grid-template-columns:1.35rem minmax(0,1fr) auto; align-items:center; gap:.6rem; min-height:48px; padding:.55rem .7rem; border:1px solid var(--border); border-radius:10px; background:var(--panel); }
.v4-dashboard-attention-row.is-danger { border-left:3px solid var(--ui-danger); }.v4-dashboard-attention-row.is-warning { border-left:3px solid var(--ui-warning); }
.v4-dashboard-severity { display:grid; width:1.25rem; height:1.25rem; place-items:center; border-radius:999px; background:var(--surface-soft); font-size:.72rem; font-weight:900; }
.v4-dashboard-attention-row.is-danger .v4-dashboard-severity { color:var(--ui-danger); }.v4-dashboard-attention-row.is-warning .v4-dashboard-severity { color:var(--ui-warning-text); }
.v4-dashboard-attention-row strong,.v4-dashboard-attention-row small { display:block; }.v4-dashboard-attention-row strong { font-size:.82rem; }.v4-dashboard-attention-row small { margin-top:.1rem; color:var(--muted); font-size:.7rem; }
.v4-dashboard-attention-row>a { color:var(--ui-primary); font-size:.76rem; font-weight:800; text-decoration:none; }
.v4-dashboard-kpi-strip { display:grid; grid-template-columns:1fr 1fr; overflow:hidden; margin-bottom:1rem; border:1px solid var(--border); border-radius:12px; background:var(--panel); }
.v4-dashboard-kpi-zone { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); min-width:0; }
.v4-dashboard-kpi-zone+.v4-dashboard-kpi-zone { border-left:1px solid var(--border); background:var(--surface-soft); }
.v4-dashboard-kpi { display:flex; min-width:0; min-height:94px; flex-direction:column; justify-content:center; padding:.75rem .85rem; border-right:1px solid var(--border); color:var(--text); text-decoration:none; }
.v4-dashboard-kpi:last-child { border-right:0; }.v4-dashboard-kpi:hover { background:color-mix(in srgb,var(--ui-primary) 5%,transparent); }
.v4-dashboard-kpi>span { color:var(--muted); font-size:.7rem; font-weight:750; }.v4-dashboard-kpi>strong { margin:.25rem 0 .1rem; font-size:1.45rem; line-height:1.1; }.v4-dashboard-kpi>small { overflow:hidden; color:var(--muted); font-size:.64rem; line-height:1.35; text-overflow:ellipsis; }
.v4-dashboard-kpi.is-live>strong { color:var(--ui-primary); }.v4-dashboard-kpi[data-tone="warning"]>strong { color:var(--ui-warning-text); }.v4-dashboard-kpi[data-tone="danger"]>strong { color:var(--ui-danger); }
.v4-dashboard-analytics { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr); gap:1rem; }
.v4-dashboard-module { margin-bottom:1rem; padding:1rem; box-shadow:none; }
.v4-dashboard-module>header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.v4-dashboard-module>header h2 { margin:0; font-size:.95rem; }.v4-dashboard-module>header p { margin:.15rem 0 0; color:var(--muted); font-size:.7rem; }.v4-dashboard-module>header>a { color:var(--ui-primary); font-size:.76rem; font-weight:800; text-decoration:none; }
.v3-call-chart { min-width:0; }
.v3-call-chart.is-empty { display:grid; min-height:82px; place-items:center; }.v3-call-chart svg { display:block; width:100%; height:176px; overflow:visible; }
.v3-chart-grid line { stroke:var(--border); stroke-width:.35; }
.v3-chart-line { fill:none; stroke-width:2.25; stroke-linecap:round; stroke-linejoin:round; }
.v3-chart-line.is-inbound,.v3-chart-legend .is-inbound i,.v3-dashboard-breakdown i.is-inbound,.v3-distribution-bar .is-inbound { stroke:#16a34a; background:#16a34a; }
.v3-chart-line.is-outbound,.v3-chart-legend .is-outbound i,.v3-dashboard-breakdown i.is-outbound,.v3-distribution-bar .is-outbound { stroke:#2563eb; background:#2563eb; }
.v3-chart-line.is-internal,.v3-chart-legend .is-internal i,.v3-dashboard-breakdown i.is-internal,.v3-distribution-bar .is-internal { stroke:#8b5cf6; background:#8b5cf6; }
.v3-chart-legend { display:flex; flex-wrap:wrap; gap:.65rem 1rem; margin-bottom:.5rem; color:var(--muted); font-size:.76rem; }
.v3-chart-legend span { display:inline-flex; align-items:center; gap:.35rem; }
.v3-chart-legend i,.v3-dashboard-breakdown i { width:.55rem; height:.55rem; border-radius:999px; flex:none; }
.v3-chart-legend strong { color:var(--text); }
.v3-chart-axis { display:flex; justify-content:space-between; gap:.25rem; margin-top:.15rem; color:var(--muted); font-size:.65rem; }
.v4-dashboard-empty { margin:0; padding:.8rem; color:var(--muted); font-size:.78rem; text-align:center; }
.v4-outcome-bar { display:flex; width:100%; height:.7rem; overflow:hidden; margin:.35rem 0 .75rem; border-radius:999px; background:var(--surface-soft); }.v4-outcome-bar span { width:var(--segment); }
.v4-outcome-list { display:grid; gap:.25rem; margin:0; }.v4-outcome-list div { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.35rem .15rem; border-bottom:1px solid var(--border); }.v4-outcome-list div:last-child { border-bottom:0; }.v4-outcome-list dt { display:flex; align-items:center; gap:.45rem; color:var(--muted); font-size:.72rem; }.v4-outcome-list dd { margin:0; font-size:.78rem; font-weight:800; }.v4-outcome-list i { width:.5rem; height:.5rem; border-radius:999px; }
.v4-outcome-bar .is-answered,.v4-outcome-list .is-answered { background:var(--ui-success); }.v4-outcome-bar .is-no-answer,.v4-outcome-list .is-no-answer { background:#64748b; }.v4-outcome-bar .is-abandoned,.v4-outcome-list .is-abandoned { background:var(--ui-warning); }.v4-outcome-bar .is-busy,.v4-outcome-list .is-busy { background:#f97316; }.v4-outcome-bar .is-ivr,.v4-outcome-list .is-ivr { background:#8b5cf6; }.v4-outcome-bar .is-voicemail,.v4-outcome-list .is-voicemail { background:#0ea5e9; }.v4-outcome-bar .is-failed,.v4-outcome-list .is-failed { background:var(--ui-danger); }
.v4-dashboard-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; border:1px solid var(--border); border-radius:10px; }
.v4-dashboard-health-grid>section { min-width:0; padding:.75rem .85rem; border-right:1px solid var(--border); }.v4-dashboard-health-grid>section:last-child { border-right:0; }.v4-dashboard-health-grid h3 { margin:0 0 .55rem; font-size:.78rem; }.v4-dashboard-health-grid p { margin:0; color:var(--muted); font-size:.72rem; }.v4-dashboard-health-grid dl { display:grid; grid-template-columns:1fr 1fr; gap:.35rem .7rem; margin:0; }.v4-dashboard-health-grid dl div { display:flex; justify-content:space-between; gap:.35rem; }.v4-dashboard-health-grid dt { color:var(--muted); font-size:.68rem; }.v4-dashboard-health-grid dd { margin:0; font-size:.72rem; font-weight:800; }
.v4-dashboard-quick-actions { margin-bottom:.5rem; }.v4-dashboard-quick-actions>div { display:flex; gap:.45rem; overflow-x:auto; padding-bottom:.15rem; }.v4-dashboard-quick-actions a { flex:none; padding:.45rem .7rem; border:1px solid var(--border); border-radius:9px; color:var(--text); font-size:.72rem; font-weight:750; text-decoration:none; }.v4-dashboard-quick-actions a:hover { border-color:var(--ui-primary); color:var(--ui-primary); }
.v3-dashboard-active-calls.is-compact { padding-bottom:.9rem; }
.v3-dashboard-active-calls.is-compact [data-active-call-warning] .v3-empty-state { min-height:108px; padding:1rem; }
.v3-dashboard-ok { margin:0; padding:.8rem; border-radius:10px; color:var(--ui-success-text); background:var(--ui-success-soft); }
.v3-table-secondary { display:block; margin-top:.15rem; color:var(--muted); font-size:.68rem; }
[data-theme="dark"] .v3-chart-line.is-inbound { stroke:#4ade80; }
[data-theme="dark"] .v3-chart-line.is-outbound { stroke:#60a5fa; }
[data-theme="dark"] .v3-chart-line.is-internal { stroke:#a78bfa; }
[data-theme="dark"] .v4-dashboard-kpi-zone.is-secondary { background:var(--ui-surface-soft); }
@media (max-width:1050px) { .v4-dashboard-kpi-strip { grid-template-columns:1fr; }.v4-dashboard-kpi-zone+.v4-dashboard-kpi-zone { border-top:1px solid var(--border); border-left:0; }.v4-dashboard-analytics { grid-template-columns:1fr; } }
@media (max-width:700px) { .v4-dashboard-context { align-items:flex-start; flex-direction:column; }.v4-dashboard-health-grid { grid-template-columns:1fr; }.v4-dashboard-health-grid>section { border-right:0; border-bottom:1px solid var(--border); }.v4-dashboard-health-grid>section:last-child { border-bottom:0; } }
@media (max-width:390px) {
    .v4-dashboard-context { gap:.15rem; margin-bottom:.7rem; }
    .v4-dashboard-attention { margin-bottom:.65rem; }.v4-dashboard-attention-row { grid-template-columns:1.25rem minmax(0,1fr); }.v4-dashboard-attention-row>a { grid-column:2; }
    .v4-dashboard-kpi-strip { display:block; overflow:visible; border:0; background:transparent; }.v4-dashboard-kpi-zone { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; border:1px solid var(--border); border-radius:10px; background:var(--panel); }.v4-dashboard-kpi-zone.is-secondary { display:none; }.v4-dashboard-kpi { flex:0 0 44%; min-height:86px; scroll-snap-align:start; padding:.65rem; }.v4-dashboard-kpi>strong { font-size:1.25rem; }.v4-dashboard-kpi>small { white-space:normal; }
    .v4-dashboard-module { padding:.8rem; }.v3-call-chart svg { height:145px; }.v3-chart-axis span:nth-child(even) { display:none; }
    .v4-dashboard-recent .module-table-wrap { overflow:visible; }.v4-dashboard-recent table,.v4-dashboard-recent tbody,.v4-dashboard-recent tr,.v4-dashboard-recent td { display:block; width:100%; }.v4-dashboard-recent thead { display:none; }.v4-dashboard-recent tr { display:grid; grid-template-columns:1fr 1fr; gap:.35rem .75rem; padding:.65rem 0; border-bottom:1px solid var(--border); }.v4-dashboard-recent tr:nth-child(n+4) { display:none; }.v4-dashboard-recent td { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:0!important; border:0!important; font-size:.72rem; text-align:right; }.v4-dashboard-recent td::before { content:attr(data-label); color:var(--muted); font-size:.64rem; }.v4-dashboard-recent td[data-label="Tenant"] { grid-column:1/-1; }.v4-dashboard-recent td[data-label="Tenant"] strong { margin-left:auto; }.v4-dashboard-recent td .v3-table-secondary { display:none; }
}
.tenant-dependency-list { display: grid; gap: .5rem; margin: 0; }
.tenant-dependency-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.tenant-dependency-list dt, .tenant-dependency-list dd { margin: 0; }
.tenant-dependency-list dd { font-weight: 700; }
.v3-statistics-page { min-width:0; }
.v3-statistics-filter { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; margin-bottom:.65rem; }
.v3-statistics-filter .v3-toolbar-fields { grid-template-columns:repeat(3,minmax(145px,1fr)); }
.v3-statistics-filter.is-platform .v3-toolbar-fields { grid-template-columns:minmax(200px,1.35fr) repeat(3,minmax(135px,1fr)); }
.v3-statistics-filter>.v3-filter-action-row { align-self:end; width:auto; padding:0; border:0; gap:8px; }
.v3-statistics-filter .btn,.v3-filter-action-row .btn { white-space:nowrap; }
.v3-statistics-filter-actions { display:flex; align-items:flex-end; gap:.5rem; }
.v3-analytics-tabs { display:flex; gap:.45rem; overflow-x:auto; margin:0 0 .75rem; padding:.35rem; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.v3-analytics-tab { flex:0 0 auto; min-width:88px; padding:.65rem 1rem; border-radius:9px; color:var(--text-secondary); font-size:.84rem; font-weight:700; text-align:center; text-decoration:none; }
.v3-analytics-tab:hover { background:var(--surface-soft); color:var(--text); }
.v3-analytics-tab.is-active { background:var(--ui-primary); color:var(--ui-brand-foreground); }
.v3-statistics-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:1rem; }
.v3-statistics-secondary-kpis { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin-bottom:1rem; }
.v3-statistics-kpis .v3-metric-card { min-height:108px; justify-content:space-between; }
.v3-statistics-secondary-kpis .v3-metric-card { min-height:82px; padding:12px 14px; box-shadow:none; }
.v3-statistics-secondary-kpis .v3-metric-value { font-size:1.25rem; }
.v3-statistics-kpis [data-tone="success"] { border-top:2px solid var(--ui-success); }
.v3-statistics-kpis [data-tone="warning"] { border-top:2px solid var(--ui-warning); }
.v3-statistics-primary-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr); gap:1rem; }
.v3-statistics-side-stack { display:grid; gap:1rem; }
.v3-direction-summary { margin-bottom:1rem; }
.v3-direction-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.v3-direction-summary-grid a { display:grid; gap:.3rem; padding:.85rem; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); color:var(--text); text-decoration:none; }
.v3-direction-summary-grid a:hover { border-color:var(--ui-primary); }
.v3-direction-summary-grid span,.v3-direction-summary-grid small { color:var(--ui-muted); }
.v3-analytics-top-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.v3-ranked-list { display:grid; gap:.35rem; margin:0; padding:0; list-style:none; counter-reset:ranked; }
.v3-ranked-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.75rem; padding:.52rem .6rem; border-radius:8px; background:var(--surface-soft); counter-increment:ranked; }
.v3-ranked-list li span { min-width:0; overflow-wrap:normal; word-break:keep-all; }
.v3-ranked-list li span::before { content:counter(ranked) '. '; color:var(--ui-muted); font-variant-numeric:tabular-nums; }
.v3-ranked-list li strong { min-width:2.25rem; text-align:right; font-variant-numeric:tabular-nums; }
.v3-analytics-wide-table { min-width:1150px; }
.v3-analytics-wide-table th:not(:first-child),.v3-analytics-wide-table td:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }
.v3-analytics-wide-table th:first-child,.v3-analytics-wide-table td:first-child { position:sticky; left:0; z-index:1; background:var(--ui-surface); }
.v3-analytics-wide-table th:first-child { z-index:2; background:var(--ui-surface-soft); }
.v3-statistics-time-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.v3-statistics-outcomes { display:grid; gap:.45rem; }
.v3-statistics-outcomes>div { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.55rem .65rem; border-radius:9px; background:var(--surface-soft); }
.v3-analytics-bars { display:grid; gap:.5rem; }
.v3-analytics-bars>div { display:grid; grid-template-columns:82px minmax(0,1fr) 32px; align-items:center; gap:.6rem; font-size:.78rem; }
.v3-analytics-bars i { display:block; width:var(--bar); min-width:2px; height:.5rem; border-radius:999px; background:var(--ui-primary); }
.v3-analytics-bars strong { text-align:right; }
.v3-hour-strip { display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); gap:3px; align-items:end; min-height:126px; }
.v3-hour-strip>span { display:flex; flex-direction:column; justify-content:flex-end; min-width:0; height:100%; gap:.3rem; }
.v3-hour-strip i { display:flex; align-items:flex-end; justify-content:center; min-height:8px; height:var(--bar-height); padding-bottom:2px; border-radius:4px 4px 2px 2px; color:transparent; background:var(--ui-primary); opacity:var(--bar-opacity); font-style:normal; font-size:.58rem; }
.v3-hour-strip small { min-height:1em; color:var(--ui-muted); font-size:.58rem; writing-mode:vertical-rl; }
@media(max-width:1280px){.v3-statistics-filter{grid-template-columns:1fr}.v3-statistics-filter>.v3-filter-action-row{justify-content:flex-end;width:100%;padding-top:10px;border-top:1px solid var(--ui-border)}}
@media(max-width:1100px){.v3-statistics-filter .v3-toolbar-fields,.v3-statistics-filter.is-platform .v3-toolbar-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-statistics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.v3-statistics-primary-grid{grid-template-columns:1fr}.v3-statistics-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-analytics-top-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v3-statistics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-statistics-time-grid,.v3-statistics-side-stack,.v3-direction-summary-grid,.v3-analytics-top-grid{grid-template-columns:1fr}.v3-hour-strip{overflow-x:auto;grid-template-columns:repeat(24,minmax(16px,1fr));padding-bottom:.4rem}}
@media(max-width:680px){.v3-filter-action-row{align-items:stretch;flex-direction:column}.v3-filter-primary-actions,.v3-export-actions{width:100%}.v3-filter-primary-actions .btn{flex:1}.v3-export-actions{justify-content:flex-start}.v3-export-button{flex:1}}
@media(max-width:390px){.v3-statistics-page{overflow-x:hidden}.v3-statistics-kpis{gap:.6rem}.v3-statistics-kpis .v3-metric-card{min-height:96px;padding:.8rem}.v3-statistics-filter .v3-toolbar-fields,.v3-statistics-filter.is-platform .v3-toolbar-fields{grid-template-columns:1fr}.v3-statistics-filter-actions{width:100%;justify-content:flex-end}.v3-statistics-primary-grid,.v3-statistics-time-grid{min-width:0}.v3-statistics-trend .v3-call-chart svg{min-width:460px}.v3-statistics-trend .v3-call-chart{overflow-x:auto}.v3-hour-strip{max-width:100%}}
