:root {
    --ops-bg: #f6f8fb;
    --ops-bg-elevated: #ffffff;
    --ops-surface: #ffffff;
    --ops-surface-muted: #f2f5f9;
    --ops-surface-soft: #eef4ff;
    --ops-text: #101828;
    --ops-text-soft: #475467;
    --ops-text-muted: #667085;
    --ops-border: #d8dee8;
    --ops-border-soft: #e7ebf2;
    --ops-primary: #2f6bff;
    --ops-primary-rgb: 47, 107, 255;
    --ops-primary-strong: #184ee6;
    --ops-info: #0ba5ec;
    --ops-success: #12b76a;
    --ops-warning: #f79009;
    --ops-danger: #f04438;
    --ops-radius: 8px;
    --ops-radius-sm: 6px;
    --ops-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
    --ops-shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.05);
    --ops-sidebar: #ffffff;
    --ops-sidebar-2: #f8fafc;
    --ops-sidebar-text: #172033;
    --ops-sidebar-muted: #667085;

    --app-bg: var(--ops-bg);
    --app-bg-secondary: var(--ops-surface-muted);
    --app-surface: var(--ops-surface);
    --app-surface-solid: var(--ops-surface);
    --app-surface-muted: var(--ops-surface-muted);
    --app-text: var(--ops-text);
    --app-text-soft: var(--ops-text-soft);
    --app-text-faint: var(--ops-text-muted);
    --app-border: var(--ops-border);
    --app-border-strong: #cbd5e1;
    --app-shadow-sm: var(--ops-shadow-soft);
    --app-shadow-md: var(--ops-shadow);
    --app-shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
    --accent: var(--ops-primary);
    --accent-2: #14b8a6;
    --accent-3: var(--ops-success);
    --accent-rgb: var(--ops-primary-rgb);
    --bs-primary: var(--ops-primary);
    --bs-primary-rgb: var(--ops-primary-rgb);
    --bs-link-color: var(--ops-primary);
    --bs-link-hover-color: var(--ops-primary-strong);
}

html[data-theme="dark"] {
    --ops-bg: #0b1220;
    --ops-bg-elevated: #111827;
    --ops-surface: #111827;
    --ops-surface-muted: #172033;
    --ops-surface-soft: #122646;
    --ops-text: #eef4ff;
    --ops-text-soft: #c3cad8;
    --ops-text-muted: #98a2b3;
    --ops-border: #293548;
    --ops-border-soft: #202b3d;
    --ops-primary: #5b8cff;
    --ops-primary-rgb: 91, 140, 255;
    --ops-primary-strong: #8fb1ff;
    --ops-sidebar: #111827;
    --ops-sidebar-2: #111827;
    --ops-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 36px rgba(0, 0, 0, 0.32);

    --app-bg: var(--ops-bg);
    --app-bg-secondary: var(--ops-surface-muted);
    --app-surface: var(--ops-surface);
    --app-surface-solid: var(--ops-surface);
    --app-surface-muted: var(--ops-surface-muted);
    --app-text: var(--ops-text);
    --app-text-soft: var(--ops-text-soft);
    --app-text-faint: var(--ops-text-muted);
    --app-border: var(--ops-border);
    --app-border-strong: #3b465b;
    --accent: var(--ops-primary);
    --accent-rgb: var(--ops-primary-rgb);
}

.redesign-shell,
.redesign-shell * {
    letter-spacing: 0;
}

body.redesign-shell {
    background: var(--ops-bg);
    color: var(--ops-text);
    font-size: 14px;
}

.redesign-shell .app-main-decor {
    display: none;
}

.redesign-shell .app-layout {
    background: var(--ops-bg);
}

.redesign-shell .app-sidebar {
    width: 232px;
    flex-basis: 232px;
    padding: 10px 8px;
    background: var(--ops-sidebar);
    border-right: 1px solid var(--ops-border-soft);
    box-shadow: 1px 0 0 rgba(16, 24, 40, 0.02);
}

.redesign-shell .sidebar-shell {
    gap: 8px;
}

.redesign-shell .sidebar-header {
    padding: 2px 4px 9px;
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell .brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 3px 4px;
    color: var(--ops-text);
    text-decoration: none;
}

.redesign-shell .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    background: #2f6bff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.redesign-shell .brand-lockup {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.redesign-shell .brand-name {
    color: var(--ops-text);
    font-size: 14px;
    font-weight: 760;
    line-height: 1;
}

.redesign-shell .brand-name strong {
    margin-left: 2px;
    color: var(--ops-primary);
    font-size: 16px;
    font-weight: 850;
}

.redesign-shell .brand-caption {
    color: var(--ops-text-muted);
    font-size: 9px;
    font-weight: 760;
    line-height: 1;
    text-transform: uppercase;
}

.redesign-shell .sidebar-nav {
    padding: 1px 0 8px;
    scrollbar-gutter: stable;
}

.redesign-shell .sidebar-section-title {
    margin: 12px 8px 5px;
    color: var(--ops-text-muted);
    font-size: 9px;
    font-weight: 780;
    line-height: 1.25;
    text-transform: uppercase;
}

.redesign-shell .sidebar-link {
    position: relative;
    min-height: 34px;
    margin-bottom: 1px;
    padding: 5px 8px;
    border-radius: 7px;
    color: var(--ops-sidebar-muted);
    font-size: 12px;
    font-weight: 680;
    border: 1px solid transparent;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.redesign-shell .sidebar-link:hover {
    transform: none;
    color: var(--ops-text);
    background: #f4f6fa;
    border-color: #edf0f5;
}

.redesign-shell .sidebar-link.active {
    color: #184ee6;
    background: #edf3ff;
    border-color: #dbe8ff;
    box-shadow: none;
}

.redesign-shell .sidebar-link.active::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: -1px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ops-primary);
    content: "";
}

.redesign-shell .sidebar-link-icon {
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border-radius: 6px;
    background: #f3f5f8;
    color: #526073;
    font-size: 13px;
}

.redesign-shell .sidebar-link.active .sidebar-link-icon {
    background: #dce9ff;
    color: #2f6bff;
}

.redesign-shell .sidebar-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 9px 4px 2px;
    border-top: 1px solid var(--ops-border-soft);
    color: var(--ops-text);
}

.redesign-shell .shell-theme-toggle,
.redesign-shell .sidebar-user-card,
.redesign-shell .shell-lang-row {
    border-radius: 7px;
    border-color: var(--ops-border-soft);
    background: var(--ops-surface-muted);
    box-shadow: none;
    backdrop-filter: none;
}

.redesign-shell .sidebar-utilities {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.redesign-shell .shell-theme-toggle {
    flex: 0 0 32px;
    width: 32px;
    min-height: 32px;
    padding: 0;
    justify-content: center;
    color: var(--ops-text-muted);
}

.redesign-shell .shell-theme-toggle-label {
    display: none;
}

.redesign-shell .shell-lang-row {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 3px;
}

.redesign-shell .lang-pill {
    width: 28px;
    min-height: 24px;
    padding: 0;
    border-radius: 5px;
}

.redesign-shell .sidebar-user-card {
    min-width: 0;
    min-height: 38px;
    padding: 5px 6px;
    color: var(--ops-text);
}

.redesign-shell .sidebar-user-avatar {
    width: 26px;
    height: 26px;
    font-size: 18px;
}

.redesign-shell .sidebar-user-name {
    max-width: 128px;
    color: var(--ops-text);
    font-size: 11px;
}

.redesign-shell .sidebar-user-role {
    color: var(--ops-text-muted);
    font-size: 9px;
}

.redesign-shell .sidebar-footer form {
    margin: 0 !important;
}

.redesign-shell .sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid var(--ops-border-soft);
    border-radius: 7px;
    background: var(--ops-surface-muted);
    color: var(--ops-text-muted);
}

.redesign-shell .sidebar-logout:hover {
    border-color: #fecaca;
    background: #fff5f5;
    color: #d92d20;
}

html[data-theme="dark"] .redesign-shell .app-sidebar {
    border-right-color: var(--ops-border);
}

html[data-theme="dark"] .redesign-shell .sidebar-header,
html[data-theme="dark"] .redesign-shell .sidebar-footer {
    border-color: var(--ops-border);
}

html[data-theme="dark"] .redesign-shell .sidebar-link:hover {
    background: #1f2a3c;
    border-color: #293548;
}

html[data-theme="dark"] .redesign-shell .sidebar-link.active {
    color: #b9d2ff;
    background: #142a50;
    border-color: #1f427c;
}

html[data-theme="dark"] .redesign-shell .sidebar-link-icon {
    background: #1b2638;
    color: #aab7c9;
}

html[data-theme="dark"] .redesign-shell .sidebar-link.active .sidebar-link-icon {
    background: #244b88;
    color: #c8dcff;
}

.ops-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 12px 24px;
    background: rgba(246, 248, 251, 0.94);
    border-bottom: 1px solid var(--ops-border);
    backdrop-filter: blur(16px);
}

html[data-theme="dark"] .ops-topbar {
    background: rgba(11, 18, 32, 0.9);
}

.ops-topbar-main {
    min-width: 0;
}

.ops-kicker {
    display: block;
    color: var(--ops-text-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.ops-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.ops-title-row strong {
    color: var(--ops-text);
    font-size: 18px;
    font-weight: 780;
}

.ops-title-row span {
    color: var(--ops-text-muted);
    font-size: 13px;
}

.ops-health-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ops-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--ops-border);
    border-radius: 999px;
    background: var(--ops-bg-elevated);
    color: var(--ops-text-soft);
    font-size: 12px;
    font-weight: 650;
    box-shadow: var(--ops-shadow-soft);
}

.ops-chip--live {
    color: #087443;
    border-color: rgba(18, 183, 106, 0.28);
    background: rgba(18, 183, 106, 0.1);
}

html[data-theme="dark"] .ops-chip--live {
    color: #75e0a7;
}

.ops-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ops-border);
    border-radius: var(--ops-radius);
    background: var(--ops-bg-elevated);
    color: var(--ops-text-soft);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ops-icon-button:hover {
    color: var(--ops-primary);
    border-color: rgba(var(--ops-primary-rgb), 0.36);
    background: var(--ops-surface-soft);
}

.redesign-shell .app-main {
    background: var(--ops-bg);
}

.redesign-shell .app-content-wrap {
    max-width: 1680px;
    padding: 20px 24px 28px !important;
}

.redesign-shell .page-title {
    margin: 2px 0 14px;
    color: var(--ops-text);
    font-size: 24px;
    font-weight: 780;
    line-height: 1.2;
}

.redesign-shell .card-panel,
.redesign-shell .card,
.redesign-shell .modal-content,
.redesign-shell .dropdown-menu,
.redesign-shell .offcanvas,
.redesign-shell .list-group-item,
.redesign-shell .accordion-item {
    background: var(--ops-surface);
    border: 1px solid var(--ops-border-soft);
    border-radius: var(--ops-radius);
    box-shadow: var(--ops-shadow-soft);
    color: var(--ops-text);
    backdrop-filter: none;
}

.redesign-shell .card-panel {
    overflow: visible;
}

.redesign-shell .card-panel-header,
.redesign-shell .card-header {
    min-height: 52px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--ops-border-soft);
    background: linear-gradient(180deg, rgba(var(--ops-primary-rgb), 0.03), rgba(var(--ops-primary-rgb), 0));
}

.redesign-shell .card-panel-header h5,
.redesign-shell .card-panel-header h6,
.redesign-shell .card-header h5,
.redesign-shell .card-header h6 {
    color: var(--ops-text);
    font-weight: 760;
}

.redesign-shell .card-panel-body,
.redesign-shell .card-body {
    padding: 16px;
}

.redesign-shell .row.g-3 {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.redesign-shell .form-label {
    margin-bottom: 6px;
    color: var(--ops-text-soft);
    font-size: 12px;
    font-weight: 760;
}

.redesign-shell .form-control,
.redesign-shell .form-select,
.redesign-shell textarea,
.redesign-shell input[type="text"],
.redesign-shell input[type="number"],
.redesign-shell input[type="password"],
.redesign-shell input[type="date"] {
    min-height: 38px;
    border-radius: var(--ops-radius);
    border-color: var(--ops-border);
    background-color: var(--ops-bg-elevated);
    color: var(--ops-text);
    font-size: 13px;
    box-shadow: none;
}

.redesign-shell textarea.form-control,
.redesign-shell textarea {
    line-height: 1.5;
}

.redesign-shell .form-control:focus,
.redesign-shell .form-select:focus,
.redesign-shell textarea:focus,
.redesign-shell input:focus {
    border-color: rgba(var(--ops-primary-rgb), 0.65);
    box-shadow: 0 0 0 3px rgba(var(--ops-primary-rgb), 0.18);
}

.redesign-shell .form-text,
.redesign-shell .text-muted,
.redesign-shell .small.text-muted {
    color: var(--ops-text-muted) !important;
}

.redesign-shell .btn {
    min-height: 36px;
    border-radius: var(--ops-radius);
    font-size: 13px;
    font-weight: 720;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.redesign-shell .btn-sm {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
}

.redesign-shell .btn:active {
    transform: translateY(1px);
}

.redesign-shell .btn-primary,
.redesign-shell .btn-success {
    border-color: var(--ops-primary);
    background: var(--ops-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(var(--ops-primary-rgb), 0.18);
}

.redesign-shell .btn-primary:hover,
.redesign-shell .btn-success:hover {
    border-color: var(--ops-primary-strong);
    background: var(--ops-primary-strong);
}

.redesign-shell .btn-outline-primary {
    border-color: rgba(var(--ops-primary-rgb), 0.36);
    color: var(--ops-primary);
    background: rgba(var(--ops-primary-rgb), 0.04);
}

.redesign-shell .btn-outline-primary:hover,
.redesign-shell .btn-outline-primary.active,
.redesign-shell .btn-check:checked + .btn-outline-primary {
    border-color: var(--ops-primary);
    background: var(--ops-primary);
    color: #ffffff;
}

.redesign-shell .btn-outline-secondary,
.redesign-shell .btn-light {
    border-color: var(--ops-border);
    color: var(--ops-text-soft);
    background: var(--ops-bg-elevated);
}

.redesign-shell .btn-outline-secondary:hover,
.redesign-shell .btn-light:hover {
    border-color: rgba(var(--ops-primary-rgb), 0.32);
    color: var(--ops-primary);
    background: var(--ops-surface-soft);
}

.redesign-shell .btn-outline-danger {
    border-color: rgba(240, 68, 56, 0.34);
    color: var(--ops-danger);
    background: rgba(240, 68, 56, 0.04);
}

.redesign-shell .alert {
    border-radius: var(--ops-radius);
    border-width: 1px;
    box-shadow: none;
}

.redesign-shell .alert-info,
.redesign-shell .alert-secondary {
    color: #175cd3;
    border-color: rgba(47, 107, 255, 0.22);
    background: rgba(47, 107, 255, 0.08);
}

.redesign-shell .alert-success {
    color: #087443;
    border-color: rgba(18, 183, 106, 0.22);
    background: rgba(18, 183, 106, 0.09);
}

.redesign-shell .alert-warning {
    color: #b54708;
    border-color: rgba(247, 144, 9, 0.28);
    background: rgba(247, 144, 9, 0.1);
}

.redesign-shell .alert-danger {
    color: #b42318;
    border-color: rgba(240, 68, 56, 0.26);
    background: rgba(240, 68, 56, 0.09);
}

html[data-theme="dark"] .redesign-shell .alert-info,
html[data-theme="dark"] .redesign-shell .alert-secondary {
    color: #b2ddff;
}

html[data-theme="dark"] .redesign-shell .alert-success {
    color: #abefc6;
}

html[data-theme="dark"] .redesign-shell .alert-warning {
    color: #fedf89;
}

html[data-theme="dark"] .redesign-shell .alert-danger {
    color: #fecdca;
}

.redesign-shell .badge,
.redesign-shell .status-badge,
.redesign-shell .token-getter-status,
.redesign-shell .proxy-autosave-status {
    border-radius: 999px;
    font-weight: 750;
}

.redesign-shell .text-bg-primary,
.redesign-shell .bg-primary {
    background-color: var(--ops-primary) !important;
}

.redesign-shell .text-bg-success,
.redesign-shell .bg-success {
    background-color: var(--ops-success) !important;
}

.redesign-shell .text-bg-warning,
.redesign-shell .bg-warning {
    background-color: var(--ops-warning) !important;
}

.redesign-shell .text-bg-danger,
.redesign-shell .bg-danger {
    background-color: var(--ops-danger) !important;
}

.redesign-shell .table-responsive {
    border: 1px solid var(--ops-border-soft);
    border-radius: var(--ops-radius);
    background: var(--ops-surface);
}

.redesign-shell table.table {
    margin-bottom: 0;
    color: var(--ops-text);
    font-size: 13px;
}

.redesign-shell .table > :not(caption) > * > * {
    padding: 9px 10px;
    border-bottom-color: var(--ops-border-soft);
    background: transparent;
    color: var(--ops-text);
}

.redesign-shell .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ops-surface-muted);
    color: var(--ops-text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.redesign-shell .table tbody tr:hover {
    background: rgba(var(--ops-primary-rgb), 0.04);
}

.redesign-shell .progress {
    height: 8px !important;
    border-radius: 999px;
    background: var(--ops-surface-muted);
}

.redesign-shell .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ops-primary), #14b8a6);
}

.redesign-shell .form-check-input {
    border-color: var(--ops-border);
}

.redesign-shell .form-check-input:checked {
    border-color: var(--ops-primary);
    background-color: var(--ops-primary);
}

.redesign-shell .btn-group {
    gap: 4px;
}

.redesign-shell .btn-group > .btn {
    border-radius: var(--ops-radius) !important;
}

.redesign-shell #btn-mode-standard,
.redesign-shell #btn-mode-company,
.redesign-shell #btn-broadcast-dryrun,
.redesign-shell #btn-broadcast-start,
.redesign-shell #btn-company-save-template,
.redesign-shell #btn-company-broadcast,
.redesign-shell #btn-company-refresh {
    min-width: 128px;
}

.redesign-shell #broadcast-standard-section .card-panel:first-of-type,
.redesign-shell #broadcast-progress-panel,
.redesign-shell #broadcast-company-section {
    border-left: 3px solid rgba(var(--ops-primary-rgb), 0.72);
}

.redesign-shell #broadcast-per-account-greetings-hint,
.redesign-shell #groups-preview,
.redesign-shell #broadcast-progress-text {
    font-size: 12px;
}

.redesign-shell #broadcast-progress-panel {
    position: sticky;
    top: 76px;
    z-index: 10;
}

.redesign-shell #broadcast-per-account > div,
.redesign-shell #broadcast-recent-errors > div,
.redesign-shell .proxy-autosave-status {
    border-radius: var(--ops-radius);
}

.redesign-shell .msg-automation-panel,
.redesign-shell .msg-stage-bar {
    border-left: 3px solid rgba(20, 184, 166, 0.72);
}

.redesign-shell .msg-shell {
    gap: 12px;
}

.redesign-shell .msg-pane {
    border-radius: var(--ops-radius);
}

.redesign-shell .msg-pane-kicker {
    color: var(--ops-primary);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.redesign-shell .msg-stage-btn,
.redesign-shell .msg-size-btn {
    border-radius: var(--ops-radius-sm);
    border-color: var(--ops-border);
    background: var(--ops-bg-elevated);
    color: var(--ops-text-soft);
}

.redesign-shell .msg-stage-btn.is-active {
    border-color: rgba(var(--ops-primary-rgb), 0.35);
    background: var(--ops-surface-soft);
    color: var(--ops-primary);
}

.redesign-shell .msg-stage-num {
    background: var(--ops-primary);
    color: #ffffff;
}

.redesign-shell .msg-pane-note,
.redesign-shell .msg-compose-help,
.redesign-shell .msg-history-note,
.redesign-shell .macro-preview {
    border-radius: var(--ops-radius);
    border-color: var(--ops-border-soft);
    background: var(--ops-surface-muted);
    color: var(--ops-text-soft);
}

.redesign-shell .msg-automation-summary,
.redesign-shell .msg-automation-card,
.redesign-shell .msg-chat-placeholder,
.redesign-shell .msg-photo-preview,
.redesign-shell .msg-compose-input,
.redesign-shell .ext-step-card,
.redesign-shell .ext-connect-card,
.redesign-shell .ext-code-card,
.redesign-shell .ext-connect-value,
.redesign-shell .ext-code-value {
    border-radius: var(--ops-radius);
}

.redesign-shell .msg-automation-card,
.redesign-shell .ext-step-card,
.redesign-shell .ext-connect-card,
.redesign-shell .ext-code-card {
    border-color: var(--ops-border-soft);
    background: var(--ops-surface);
    box-shadow: none;
}

.redesign-shell .msg-compose-panel {
    border-top-color: var(--ops-border-soft);
    background: var(--ops-surface);
}

.redesign-shell .msg-compose-textarea {
    min-height: 96px;
}

.redesign-shell .macro-modal-dialog .card-panel {
    border-radius: 10px;
    box-shadow: var(--ops-shadow);
}

.redesign-shell .macro-backdrop {
    background: rgba(11, 18, 32, 0.42);
    backdrop-filter: blur(4px);
}

.redesign-shell .token-getter-shell,
.redesign-shell .token-card,
.redesign-shell .token-list-card {
    background: var(--ops-surface);
    border-color: var(--ops-border-soft);
    border-radius: var(--ops-radius);
    box-shadow: var(--ops-shadow-soft);
}

.redesign-shell .token-getter-hero {
    border-radius: var(--ops-radius);
    background: var(--ops-surface);
}

.redesign-shell .token-getter-title {
    color: var(--ops-text);
    font-size: 26px;
}

.redesign-shell .token-getter-subtitle {
    color: var(--ops-text-muted);
}

.redesign-shell .token-form-grid {
    gap: 12px;
}

.redesign-shell .token-input-card textarea,
.redesign-shell [data-token-input] {
    border-radius: var(--ops-radius);
    border-color: var(--ops-border);
    background: var(--ops-bg-elevated);
    color: var(--ops-text);
}

.redesign-shell [data-active-tab="accounts"] .table-responsive {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

.redesign-shell [data-active-tab="accounts"] .table td[data-label="Прокси"] {
    min-width: 320px;
}

.redesign-shell [data-active-tab="accounts"] .table td:first-child,
.redesign-shell [data-active-tab="accounts"] .table td:nth-child(2) {
    font-weight: 720;
}

.redesign-shell [data-active-tab="new_groups"] .card-panel.h-100,
.redesign-shell [data-active-tab="preparation"] .card-panel.h-100 {
    min-height: 104px;
}

.redesign-shell [data-active-tab="new_groups"] #ng-last-errors,
.redesign-shell [data-active-tab="new_groups"] #newGroupsLastErrors {
    border-radius: var(--ops-radius);
}

.redesign-shell [data-active-tab="my_stats"] .card-panel,
.redesign-shell [data-active-tab="admin_stats"] .card-panel {
    border-left: 3px solid rgba(11, 165, 236, 0.58);
}

.redesign-shell .login-card {
    border-radius: 14px;
    box-shadow: var(--ops-shadow);
    backdrop-filter: none;
}

.redesign-shell .auth-stage {
    background: var(--ops-bg);
}

.redesign-shell :focus-visible {
    outline: 3px solid rgba(var(--ops-primary-rgb), 0.32);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .redesign-shell .app-sidebar {
        width: 82px;
        flex-basis: 82px;
    }

    .redesign-shell .brand-logo-image,
    .redesign-shell .sidebar-link-label,
    .redesign-shell .shell-theme-toggle-label,
    .redesign-shell .sidebar-user-meta,
    .redesign-shell .btn-brand-secondary,
    .redesign-shell .sidebar-section-title {
        display: none;
    }

    .redesign-shell .sidebar-link {
        justify-content: center;
        padding: 8px;
    }

    .redesign-shell .sidebar-link-icon {
        margin: 0;
    }
}

@media (max-width: 900px) {
    .ops-topbar {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 16px;
    }

    .ops-health-strip {
        justify-content: flex-start;
    }

    .redesign-shell .app-content-wrap {
        padding: 16px !important;
    }

    .redesign-shell #broadcast-progress-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .redesign-shell .app-layout {
        display: block;
    }

    .redesign-shell .app-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .redesign-shell .sidebar-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        overflow: visible;
    }

    .redesign-shell .sidebar-link-label,
    .redesign-shell .sidebar-section-title {
        display: inline;
    }

    .redesign-shell .sidebar-section-title {
        grid-column: 1 / -1;
        margin: 8px 4px 2px;
    }

    .redesign-shell .sidebar-link {
        justify-content: flex-start;
        margin: 0;
    }

    .redesign-shell .sidebar-footer,
    .redesign-shell .sidebar-header {
        display: none;
    }

    .ops-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .ops-chip {
        min-height: 28px;
        padding-inline: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .redesign-shell *,
    .redesign-shell *::before,
    .redesign-shell *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

/* Campaign Pulse: a quieter, shared visual language for every workspace. */
:root {
    --ops-bg: #ffffff;
    --ops-bg-elevated: #ffffff;
    --ops-surface: #ffffff;
    --ops-surface-muted: #f7f9fc;
    --ops-surface-soft: #f0f5ff;
    --ops-text: #172033;
    --ops-text-soft: #526078;
    --ops-text-muted: #75819a;
    --ops-border: #dfe5ee;
    --ops-border-soft: #e9edf3;
    --ops-primary: #1465e8;
    --ops-primary-rgb: 20, 101, 232;
    --ops-primary-strong: #0b53cb;
    --ops-radius: 8px;
    --ops-radius-sm: 6px;
    --ops-shadow: none;
    --ops-shadow-soft: none;
}

body.redesign-shell,
.redesign-shell .app-layout,
.redesign-shell .app-main {
    background: var(--ops-bg);
}

/* The page already has an explicit title. Removing the diagnostic header keeps
   the working surface as open as the selected campaign layout. */
.redesign-shell .ops-topbar {
    display: none;
}

.redesign-shell .app-sidebar {
    width: 262px;
    flex-basis: 262px;
    padding: 14px 10px 10px;
    background: var(--ops-sidebar);
    border-right-color: var(--ops-border-soft);
    box-shadow: none;
}

.redesign-shell .sidebar-shell {
    gap: 10px;
}

.redesign-shell .sidebar-header {
    padding: 3px 7px 14px;
    border-bottom-color: var(--ops-border-soft);
}

.redesign-shell .brand-logo {
    min-height: 34px;
    padding: 0;
    gap: 0;
}

.redesign-shell .brand-mark,
.redesign-shell .brand-caption {
    display: none;
}

.redesign-shell .brand-name {
    color: var(--ops-text);
    font-size: 21px;
    font-weight: 820;
    letter-spacing: 0;
}

.redesign-shell .brand-name strong {
    color: var(--ops-primary);
    font-size: inherit;
    font-weight: 820;
}

.redesign-shell .sidebar-nav {
    padding: 4px 0 8px;
}

.redesign-shell .sidebar-section-title {
    margin: 15px 8px 5px;
    color: var(--ops-text-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0;
}

.redesign-shell .sidebar-link {
    min-height: 38px;
    margin-bottom: 2px;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--ops-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.redesign-shell .sidebar-link:hover {
    color: var(--ops-text);
    background: var(--ops-surface-muted);
    border-color: transparent;
}

.redesign-shell .sidebar-link.active {
    color: var(--ops-primary);
    background: var(--ops-surface-soft);
    border-color: transparent;
}

.redesign-shell .sidebar-link.active::before {
    top: 7px;
    bottom: 7px;
    left: -10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
}

.redesign-shell .sidebar-link-icon,
.redesign-shell .sidebar-link.active .sidebar-link-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 5px;
    background: transparent;
    color: currentColor;
    font-size: 15px;
}

.redesign-shell .sidebar-footer {
    grid-template-columns: 1fr auto;
    padding: 10px 5px 3px;
    border-top-color: var(--ops-border-soft);
}

.redesign-shell .sidebar-user-card,
.redesign-shell .shell-theme-toggle,
.redesign-shell .shell-lang-row,
.redesign-shell .sidebar-logout {
    border-color: transparent;
    background: transparent;
}

.redesign-shell .sidebar-user-card:hover,
.redesign-shell .shell-theme-toggle:hover,
.redesign-shell .sidebar-logout:hover {
    background: var(--ops-surface-muted);
}

.redesign-shell .app-content-wrap {
    max-width: 1760px;
    padding: 28px 30px 36px !important;
}

.redesign-shell .page-title {
    margin: 1px 0 22px;
    color: var(--ops-text);
    font-size: 28px;
    font-weight: 780;
    line-height: 1.18;
}

.redesign-shell .card-panel,
.redesign-shell .card,
.redesign-shell .list-group-item,
.redesign-shell .accordion-item {
    border-color: var(--ops-border-soft);
    border-radius: var(--ops-radius);
    background-color: var(--ops-surface);
    color: var(--ops-text);
    box-shadow: none;
}

.redesign-shell .card-panel-header,
.redesign-shell .card-header {
    min-height: 50px;
    padding: 14px 18px;
    border-bottom-color: var(--ops-border-soft);
    background: var(--ops-surface);
}

.redesign-shell .card-panel-body,
.redesign-shell .card-body {
    padding: 18px;
}

.redesign-shell .card-panel-header h5,
.redesign-shell .card-panel-header h6,
.redesign-shell .card-header h5,
.redesign-shell .card-header h6 {
    font-size: 15px;
    font-weight: 760;
}

.redesign-shell .form-label {
    color: var(--ops-text-soft);
    font-size: 12px;
    font-weight: 740;
}

.redesign-shell .form-control,
.redesign-shell .form-select,
.redesign-shell textarea,
.redesign-shell input[type="text"],
.redesign-shell input[type="number"],
.redesign-shell input[type="password"],
.redesign-shell input[type="date"] {
    min-height: 40px;
    border-color: var(--ops-border);
    border-radius: 7px;
    background: var(--ops-surface);
    color: var(--ops-text);
}

.redesign-shell .form-control:hover,
.redesign-shell .form-select:hover,
.redesign-shell textarea:hover,
.redesign-shell input:hover {
    border-color: var(--app-border-strong);
}

.redesign-shell .form-control:focus,
.redesign-shell .form-select:focus,
.redesign-shell textarea:focus,
.redesign-shell input:focus {
    border-color: var(--ops-primary);
    box-shadow: 0 0 0 3px rgba(var(--ops-primary-rgb), 0.12);
}

.redesign-shell .btn {
    min-height: 38px;
    border-radius: 7px;
    box-shadow: none;
    font-weight: 700;
}

.redesign-shell .btn-primary,
.redesign-shell .btn-success {
    background: var(--ops-primary);
    border-color: var(--ops-primary);
    box-shadow: none;
}

.redesign-shell .btn-primary:hover,
.redesign-shell .btn-success:hover {
    background: var(--ops-primary-strong);
    border-color: var(--ops-primary-strong);
    box-shadow: none;
}

.redesign-shell .btn-outline-primary {
    border-color: rgba(var(--ops-primary-rgb), 0.32);
    background: var(--ops-surface);
    color: var(--ops-primary);
}

/* One tab language for the broadcast switcher, the dialogs folders,
   Bootstrap tabs and future admin sections. */
.redesign-shell .nav-tabs,
.redesign-shell .nav-pills,
.redesign-shell [role="tablist"],
.redesign-shell .msg-tabs,
.redesign-shell .msg-stage-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell .nav-tabs .nav-link,
.redesign-shell .nav-pills .nav-link,
.redesign-shell .msg-tabs .btn,
.redesign-shell .msg-stage-steps .msg-stage-btn,
.redesign-shell #btn-mode-standard,
.redesign-shell #btn-mode-company {
    position: relative;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--ops-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.redesign-shell .nav-tabs .nav-link:hover,
.redesign-shell .nav-pills .nav-link:hover,
.redesign-shell .msg-tabs .btn:hover,
.redesign-shell .msg-stage-steps .msg-stage-btn:hover,
.redesign-shell #btn-mode-standard:hover,
.redesign-shell #btn-mode-company:hover {
    background: var(--ops-surface-muted);
    color: var(--ops-text);
}

.redesign-shell .nav-tabs .nav-link.active,
.redesign-shell .nav-pills .nav-link.active,
.redesign-shell .msg-tabs .btn.active,
.redesign-shell .msg-stage-steps .msg-stage-btn.is-active,
.redesign-shell #btn-mode-standard.active,
.redesign-shell #btn-mode-company.active,
.redesign-shell #btn-mode-standard.btn-primary,
.redesign-shell #btn-mode-company.btn-primary {
    background: var(--ops-surface-soft);
    border-color: transparent;
    color: var(--ops-primary);
}

.redesign-shell .nav-tabs .nav-link.active::after,
.redesign-shell .nav-pills .nav-link.active::after,
.redesign-shell .msg-tabs .btn.active::after,
.redesign-shell .msg-stage-steps .msg-stage-btn.is-active::after,
.redesign-shell #btn-mode-standard.active::after,
.redesign-shell #btn-mode-company.active::after,
.redesign-shell #btn-mode-standard.btn-primary::after,
.redesign-shell #btn-mode-company.btn-primary::after {
    position: absolute;
    right: 8px;
    bottom: -9px;
    left: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--ops-primary);
    content: "";
}

.redesign-shell .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--ops-border-soft);
    border-radius: 8px;
    background: var(--ops-surface-muted);
}

.redesign-shell .btn-group > .btn {
    min-height: 30px;
    border-color: transparent !important;
    background: transparent;
    color: var(--ops-text-muted);
}

.redesign-shell .btn-group > .btn.active,
.redesign-shell .btn-group > .btn:active,
.redesign-shell .btn-group > .btn-check:checked + .btn {
    background: var(--ops-surface);
    color: var(--ops-primary);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.redesign-shell .table-responsive {
    border-color: var(--ops-border-soft);
    border-radius: 7px;
}

.redesign-shell table.table {
    font-size: 13px;
}

.redesign-shell .table > :not(caption) > * > * {
    padding: 11px 12px;
    border-bottom-color: var(--ops-border-soft);
}

.redesign-shell .table thead th {
    background: var(--ops-surface-muted);
    color: var(--ops-text-muted);
    font-size: 10px;
    letter-spacing: 0;
}

.redesign-shell .table tbody tr:hover {
    background: var(--ops-surface-soft);
}

.redesign-shell .progress,
.redesign-shell .progress-bar {
    border-radius: 999px;
}

.redesign-shell .progress {
    height: 6px !important;
    background: var(--ops-border-soft);
}

.redesign-shell .progress-bar {
    background: var(--ops-primary);
}

.redesign-shell .badge,
.redesign-shell .status-badge,
.redesign-shell .token-getter-status,
.redesign-shell .proxy-autosave-status {
    border-radius: 5px;
    letter-spacing: 0;
}

.redesign-shell [data-active-tab="broadcast"] #broadcast-standard-section > .card-panel:first-child,
.redesign-shell [data-active-tab="broadcast"] #broadcast-progress-panel,
.redesign-shell [data-active-tab="broadcast"] #broadcast-company-section {
    border-left: 0;
}

.redesign-shell [data-active-tab="broadcast"] #broadcast-mode-local-hint,
.redesign-shell [data-active-tab="broadcast"] #broadcast-mode-server-hint {
    margin-bottom: 18px;
    border-left: 3px solid var(--ops-primary);
    border-radius: 0 7px 7px 0;
    background: #f5f8ff;
}

.redesign-shell [data-active-tab^="admin_"] .page-title,
.redesign-shell [data-active-tab="admin_stats"] .page-title {
    margin-bottom: 18px;
}

.redesign-shell [data-active-tab^="admin_"] .card-panel,
.redesign-shell [data-active-tab="admin_stats"] .card-panel {
    border-left: 0;
}

@media (max-width: 1180px) {
    .redesign-shell .app-sidebar {
        width: 76px;
        flex-basis: 76px;
    }

    .redesign-shell .sidebar-link.active::before {
        left: -10px;
    }
}

@media (max-width: 900px) {
    .redesign-shell .app-content-wrap {
        padding: 20px !important;
    }

    .redesign-shell .page-title {
        font-size: 24px;
    }

    .redesign-shell .nav-tabs,
    .redesign-shell .nav-pills,
    .redesign-shell [role="tablist"],
    .redesign-shell .msg-tabs,
    .redesign-shell .msg-stage-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 760px) {
    .redesign-shell .app-layout {
        display: block;
    }

    .redesign-shell .app-sidebar {
        width: 100%;
        height: auto;
        flex-basis: auto;
        padding: 8px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--ops-border-soft);
    }

    .redesign-shell .sidebar-shell {
        display: block;
    }

    .redesign-shell .sidebar-header,
    .redesign-shell .sidebar-footer,
    .redesign-shell .sidebar-section-title {
        display: none;
    }

    .redesign-shell .sidebar-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding: 0;
        scrollbar-width: none;
    }

    .redesign-shell .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .redesign-shell .sidebar-link {
        flex: 0 0 auto;
        min-height: 36px;
        margin: 0;
        padding: 6px 9px;
        white-space: nowrap;
    }

    .redesign-shell .sidebar-link.active::before {
        top: auto;
        right: 8px;
        bottom: -8px;
        left: 8px;
        width: auto;
        height: 2px;
        border-radius: 2px 2px 0 0;
    }

    .redesign-shell .sidebar-link-icon {
        display: inline-flex;
    }

    .redesign-shell .app-content-wrap {
        padding: 18px 16px 28px !important;
    }
}

/* Campaigns keep their own context rail. It contains real application routes
   and modes, so the three-column treatment never invents campaign records. */
.redesign-shell .broadcast-workspace {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.redesign-shell .broadcast-context-rail {
    min-height: calc(100vh - 72px);
    padding: 4px 28px 20px 0;
    border-right: 1px solid var(--ops-border-soft);
}

.redesign-shell .broadcast-context-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #172033;
    font-size: 18px;
    font-weight: 760;
}

.redesign-shell .broadcast-context-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    color: #65728a;
    text-decoration: none;
}

.redesign-shell .broadcast-context-icon:hover {
    border-color: #cbdcff;
    background: #f4f7ff;
    color: var(--ops-primary);
}

.redesign-shell .broadcast-context-caption {
    margin: 7px 0 12px;
    color: var(--ops-text-muted);
    font-size: 12px;
}

.redesign-shell .broadcast-context-list[role="tablist"] {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
}

.redesign-shell .broadcast-context-list #btn-mode-standard,
.redesign-shell .broadcast-context-list #btn-mode-company,
.redesign-shell .broadcast-context-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #526078;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
}

.redesign-shell .broadcast-context-link {
    gap: 9px;
}

.redesign-shell .broadcast-context-link i {
    width: 16px;
    color: #78849a;
    font-size: 14px;
    text-align: center;
}

.redesign-shell .broadcast-context-list #btn-mode-standard:hover,
.redesign-shell .broadcast-context-list #btn-mode-company:hover,
.redesign-shell .broadcast-context-link:hover {
    background: #f7f9fc;
    color: #172033;
}

.redesign-shell .broadcast-context-list #btn-mode-standard.btn-primary,
.redesign-shell .broadcast-context-list #btn-mode-company.btn-primary {
    position: relative;
    background: #f0f5ff;
    color: var(--ops-primary);
}

.redesign-shell .broadcast-context-list #btn-mode-standard.btn-primary::after,
.redesign-shell .broadcast-context-list #btn-mode-company.btn-primary::after {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: -1px;
    width: 3px;
    height: auto;
    background: var(--ops-primary);
}

.redesign-shell .broadcast-workspace-main {
    min-width: 0;
}

.redesign-shell .broadcast-workspace-main > .page-title {
    margin-top: 2px;
}

@media (max-width: 900px) {
    .redesign-shell .broadcast-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .redesign-shell .broadcast-context-rail {
        min-height: 0;
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid var(--ops-border-soft);
    }

    .redesign-shell .broadcast-context-list[role="tablist"] {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 0 4px;
    }

    .redesign-shell .broadcast-context-list #btn-mode-standard,
    .redesign-shell .broadcast-context-list #btn-mode-company,
    .redesign-shell .broadcast-context-link {
        flex: 0 0 auto;
        width: auto;
    }

    .redesign-shell .broadcast-context-list #btn-mode-standard.btn-primary::after,
.redesign-shell .broadcast-context-list #btn-mode-company.btn-primary::after {
        top: auto;
        right: 8px;
        bottom: 0;
        left: 8px;
        width: auto;
        height: 2px;
    }
}

/* Final override: the broadcast screen no longer has an inner navigation rail. */
.redesign-shell .broadcast-workspace.broadcast-workspace--single {
    display: block;
}

.redesign-shell .broadcast-workspace.broadcast-workspace--single .broadcast-workspace-main {
    display: block;
    width: 100%;
    min-width: 0;
}

.redesign-shell .broadcast-workspace.broadcast-workspace--single #broadcast-company-section {
    display: none !important;
}

/* VK accounts: keep setup, entry, and day-to-day management visually distinct
   without changing any existing account actions or form behavior. */
.redesign-shell[data-active-tab="accounts"] .accounts-page-title {
    margin: 2px 0 20px !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel,
.redesign-shell[data-active-tab="accounts"] .accounts-add-panel,
.redesign-shell[data-active-tab="accounts"] .accounts-list-panel {
    border-color: var(--ops-border-soft);
    border-radius: var(--ops-radius);
    background: #ffffff;
    box-shadow: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel {
    background: #f7f9fc;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .card-panel-header,
.redesign-shell[data-active-tab="accounts"] .accounts-add-panel .card-panel-header,
.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-header {
    min-height: 54px;
    padding: 15px 18px;
    border-bottom-color: var(--ops-border-soft);
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .card-panel-body,
.redesign-shell[data-active-tab="accounts"] .accounts-add-panel .card-panel-body,
.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-body {
    padding: 18px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-setup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-card,
.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-connect-card,
.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-code-card {
    border-color: var(--ops-border-soft);
    border-radius: var(--ops-radius);
    background: #ffffff;
    box-shadow: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-card {
    min-height: 176px;
    padding: 14px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-title {
    color: var(--ops-text);
    font-size: 14px;
    line-height: 1.3;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-copy,
.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-setup-note {
    color: var(--ops-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-install-details {
    margin-top: 9px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel form.mb-3 {
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) minmax(290px, 1.25fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 0 !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel form.mb-3 .mb-3 {
    margin: 0 !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel form.mb-3 .btn {
    min-height: 38px;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel hr {
    margin: 18px 0 14px;
    border-color: var(--ops-border-soft);
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-tools {
    margin-bottom: 18px !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-tool {
    height: 100%;
    padding: 16px !important;
    border-color: var(--ops-border-soft) !important;
    border-radius: var(--ops-radius) !important;
    background: #f8fafc;
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-tool h6 {
    margin-bottom: 10px !important;
    color: var(--ops-text);
    font-size: 13px;
    font-weight: 760;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table {
    margin: 0;
    border-color: var(--ops-border-soft);
    font-size: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table thead th {
    padding: 10px 12px;
    border-top: 1px solid var(--ops-border-soft);
    border-bottom-color: var(--ops-border-soft);
    background: #f8fafc;
    color: #75819a;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody td {
    padding: 13px 12px;
    border-bottom-color: var(--ops-border-soft);
    color: var(--ops-text-soft);
    vertical-align: top;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody tr {
    transition: background-color 120ms ease;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody tr:hover {
    background: #f8fbff;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody td:nth-child(2) {
    min-width: 150px;
    color: var(--ops-text);
    font-weight: 700;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table td[data-label="Прокси"] {
    min-width: 270px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table .form-text {
    margin-top: 5px;
    color: var(--ops-text-muted);
    font-size: 10px;
    line-height: 1.35;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table .proxy-autosave-status {
    min-height: 16px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-setup-grid {
        grid-template-columns: 1fr;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-card {
        min-height: 0;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-add-panel form.mb-3 {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-add-panel form.mb-3 .btn {
        justify-self: start;
    }
}

/* Selected accounts-register direction. */
.redesign-shell[data-active-tab="accounts"] .accounts-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 2px 0 18px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-page-title {
    margin: 0 !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-page-count,
.redesign-shell[data-active-tab="accounts"] .accounts-list-subtitle {
    margin-top: 5px;
    color: var(--ops-text-muted);
    font-size: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 6px;
    box-shadow: none;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.redesign-shell[data-active-tab="accounts"] .accounts-download-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 6px;
    color: var(--ops-text-soft);
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel {
    margin-bottom: 12px !important;
    background: #f8fafc;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .card-panel-header {
    min-height: 0;
    padding: 12px 18px 0;
    border-bottom: 0;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .card-panel-header h5 {
    color: var(--ops-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .card-panel-body {
    padding: 8px 18px 14px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel > .card-panel-body > .small.text-muted,
.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel > .card-panel-body > .alert {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-setup-grid {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-card {
    display: none;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-card:nth-child(1),
.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-card:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-title {
    margin: 0;
    color: var(--ops-text-muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-step-copy,
.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-install-details {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .d-flex.gap-2 {
    margin: 0 !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .btn {
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel {
    margin-bottom: 12px !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel .card-panel-header {
    min-height: 48px;
    padding: 13px 18px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-add-panel .card-panel-body {
    padding: 14px 18px 16px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 5px;
    background: #f0f5ff;
    color: var(--ops-primary);
    font-size: 12px;
    font-weight: 760;
}

.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-body {
    padding: 14px 18px 18px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-register-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, 100%);
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ops-text-muted);
}

.redesign-shell[data-active-tab="accounts"] .accounts-search-field:focus-within {
    border-color: var(--ops-primary);
    box-shadow: 0 0 0 3px rgba(20, 101, 232, 0.1);
}

.redesign-shell[data-active-tab="accounts"] .accounts-search-field input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ops-text);
    font-size: 13px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-search-field input::placeholder {
    color: #98a2b3;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-filters {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--ops-border-soft);
    border-radius: 7px;
    background: #f8fafc;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-filter {
    min-height: 30px;
    padding: 5px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ops-text-muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-filter:hover,
.redesign-shell[data-active-tab="accounts"] .accounts-status-filter.is-active {
    background: #ffffff;
    color: var(--ops-primary);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.redesign-shell[data-active-tab="accounts"] .accounts-table {
    border-collapse: separate;
    border-spacing: 0;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table thead th {
    padding: 10px 12px;
    border-top: 1px solid var(--ops-border-soft);
    background: #ffffff;
    color: #8793a7;
    font-size: 10px;
    font-weight: 750;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 185px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: #e8eef8;
    color: #63708a;
    font-size: 15px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-avatar-image {
    display: block;
    object-fit: cover;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-name {
    color: var(--ops-text);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.25;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-name .badge {
    margin-left: 5px;
    font-size: 9px;
    vertical-align: 1px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-id,
.redesign-shell[data-active-tab="accounts"] .accounts-last-activity {
    margin-top: 2px;
    color: var(--ops-text-muted);
    font-size: 11px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #138a55;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-line.is-attention {
    color: #bd7505;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-line.is-attention .accounts-status-dot {
    background: #f79009;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-error {
    max-width: 180px;
    margin-top: 5px;
    color: #d1433b;
    font-size: 10px;
    line-height: 1.35;
}

.redesign-shell[data-active-tab="accounts"] .accounts-validation-link {
    display: inline-flex;
    min-height: 26px;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-verify-button {
    min-height: 26px;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-verify-result {
    max-width: 180px;
    margin-top: 4px;
    color: var(--ops-text-muted);
    font-size: 10px;
    line-height: 1.35;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-current {
    overflow: hidden;
    max-width: 250px;
    color: var(--ops-text-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr);
    gap: 3px;
    margin-top: 5px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-form .form-control {
    min-width: 200px;
    min-height: 29px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-form {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 172px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-form .form-control {
    width: 48px;
    min-height: 29px;
    padding: 4px 5px;
    border-radius: 5px;
    font-size: 11px;
    text-align: center;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-suffix {
    color: var(--ops-text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-form .btn-link {
    padding: 2px 4px;
    font-size: 11px;
    text-decoration: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu {
    position: relative;
    display: inline-block;
    text-align: left;
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--ops-text-muted);
    list-style: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu summary::-webkit-details-marker {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu summary:hover {
    border-color: var(--ops-border-soft);
    background: #f8fafc;
    color: var(--ops-text);
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu-popover {
    position: absolute;
    z-index: 5;
    top: 34px;
    right: 0;
    width: 172px;
    padding: 5px;
    border: 1px solid var(--ops-border-soft);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu-popover .btn-link {
    display: block;
    width: 100%;
    padding: 6px 8px;
    color: var(--ops-text-soft);
    font-size: 12px;
    text-align: left;
    text-decoration: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-row-menu-popover .btn-link:hover {
    background: #f8fafc;
    color: var(--ops-text);
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-settings {
    margin-top: 14px;
    border-top: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-settings summary {
    padding: 13px 0 0;
    cursor: pointer;
    color: var(--ops-text-muted);
    font-size: 12px;
    font-weight: 680;
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-settings .accounts-bulk-tools {
    margin-top: 12px;
    margin-bottom: 0 !important;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table-row.is-filtered-out {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-filter-empty {
    padding: 28px 14px 10px;
    color: var(--ops-text-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1100px) {
    .redesign-shell[data-active-tab="accounts"] .accounts-register-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-search-field {
        width: 100%;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-status-filters {
        align-self: flex-start;
        overflow-x: auto;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .redesign-shell[data-active-tab="accounts"] .accounts-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-add-trigger {
        justify-content: center;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-header-actions {
        width: 100%;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-download-trigger,
    .redesign-shell[data-active-tab="accounts"] .accounts-add-trigger {
        flex: 1 1 0;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .ext-setup-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Analytics: a single, outcome-led working view. */
.redesign-shell[data-active-tab="my_stats"] .analytics-overview {
    max-width: 1240px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-overview-header,
.redesign-shell[data-active-tab="my_stats"] .analytics-overview-controls,
.redesign-shell[data-active-tab="my_stats"] .analytics-metric-strip,
.redesign-shell[data-active-tab="my_stats"] .analytics-section-heading,
.redesign-shell[data-active-tab="my_stats"] .analytics-funnel,
.redesign-shell[data-active-tab="my_stats"] .analytics-date-actions {
    display: flex;
    align-items: center;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-overview-header {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-overview-title {
    margin: 0;
    color: var(--ops-text);
    font-size: 28px;
    font-weight: 780;
    line-height: 1.2;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-overview-subtitle {
    margin: 6px 0 0;
    color: var(--ops-text-muted);
    font-size: 14px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-overview-controls {
    justify-content: flex-end;
    gap: 12px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs a {
    min-width: 74px;
    padding: 9px 12px;
    border-right: 1px solid var(--ops-border);
    color: var(--ops-text-soft);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs a:last-child {
    border-right: 0;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs a:hover,
.redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs a.is-active {
    background: var(--ops-primary);
    color: #fff;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-control {
    position: relative;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-control summary {
    display: flex;
    align-items: center;
    min-width: 194px;
    min-height: 40px;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    color: var(--ops-text-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-control summary::-webkit-details-marker {
    display: none;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-control summary .bi-chevron-down {
    margin-left: auto;
    font-size: 11px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-control[open] summary {
    border-color: #91b6f6;
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-popover {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 260px;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: var(--ops-surface);
    box-shadow: var(--ops-shadow);
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-popover label {
    display: grid;
    gap: 5px;
    color: var(--ops-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-popover input {
    min-height: 34px;
    padding: 4px 7px;
    border: 1px solid var(--ops-border);
    border-radius: 5px;
    color: var(--ops-text);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-actions {
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-date-actions a {
    color: var(--ops-text-muted);
    font-size: 12px;
    text-decoration: none;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-metric-strip {
    justify-content: stretch;
    margin-bottom: 30px;
    border-top: 1px solid var(--ops-border-soft);
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="my_stats"] .analytics-metric {
    flex: 1 1 0;
    min-width: 0;
    padding: 23px 28px;
    border-right: 1px solid var(--ops-border-soft);
    text-align: center;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-metric:last-child {
    border-right: 0;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-metric span,
.redesign-shell[data-active-tab="my_stats"] .analytics-metric strong,
.redesign-shell[data-active-tab="my_stats"] .analytics-section-heading h2,
.redesign-shell[data-active-tab="my_stats"] .analytics-section-heading p {
    display: block;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-metric span {
    color: var(--ops-text-soft);
    font-size: 13px;
    font-weight: 600;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-metric strong {
    margin-top: 8px;
    color: var(--ops-text);
    font-size: 28px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-trend-section,
.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-section,
.redesign-shell[data-active-tab="my_stats"] .analytics-templates-section {
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="my_stats"] .analytics-trend-section {
    padding-bottom: 26px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-section,
.redesign-shell[data-active-tab="my_stats"] .analytics-templates-section {
    padding: 26px 0;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-section-heading {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-section-heading h2 {
    margin: 0;
    color: var(--ops-text);
    font-size: 16px;
    font-weight: 720;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-section-heading p {
    margin: 4px 0 0;
    color: var(--ops-text-muted);
    font-size: 12px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-work-meta {
    display: inline-flex;
    gap: 14px;
    color: var(--ops-text-muted);
    font-size: 12px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-chart-wrap {
    position: relative;
    height: 256px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--ops-text-muted);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel {
    justify-content: space-between;
    gap: 18px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel > .bi {
    color: var(--ops-text-muted);
    font-size: 22px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step span,
.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step strong,
.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step small {
    display: block;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step span {
    color: var(--ops-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step strong {
    margin: 8px 0 6px;
    color: var(--ops-text);
    font-size: 26px;
    font-weight: 760;
    line-height: 1;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step small {
    color: var(--ops-primary);
    font-size: 13px;
    font-weight: 650;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-table-wrap {
    overflow-x: auto;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    color: var(--ops-text-soft);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-table th,
.redesign-shell[data-active-tab="my_stats"] .analytics-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--ops-border-soft);
    text-align: left;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-table th {
    padding-top: 0;
    color: var(--ops-text-muted);
    font-size: 11px;
    font-weight: 720;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-table th:first-child,
.redesign-shell[data-active-tab="my_stats"] .analytics-table td:first-child {
    padding-left: 0;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-template-preview {
    display: block;
    max-width: 520px;
    overflow: hidden;
    color: var(--ops-text);
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-value-positive {
    color: #07985a;
    font-weight: 680;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-empty-state {
    margin: 0;
    color: var(--ops-text-muted);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-details {
    margin-top: 22px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-details > summary {
    color: var(--ops-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-details-content {
    margin-top: 18px;
}

.redesign-shell[data-active-tab="my_stats"] .analytics-details-content .card-panel {
    border-left: 0;
}

@media (max-width: 900px) {
    .redesign-shell[data-active-tab="my_stats"] .analytics-overview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-overview-controls {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-metric {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--ops-border-soft);
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-metric:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs,
    .redesign-shell[data-active-tab="my_stats"] .analytics-date-control,
    .redesign-shell[data-active-tab="my_stats"] .analytics-date-control summary {
        width: 100%;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-period-tabs a {
        flex: 1 1 0;
        min-width: 0;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 11px;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-metric {
        padding: 18px 10px;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-metric strong {
        font-size: 23px;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-work-meta {
        flex-direction: column;
        gap: 3px;
        text-align: right;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-chart-wrap {
        height: 218px;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-funnel {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-funnel > .bi {
        display: none;
    }

    .redesign-shell[data-active-tab="my_stats"] .analytics-funnel-step {
        padding: 12px;
        border: 1px solid var(--ops-border-soft);
        border-radius: 6px;
    }
}

/* Focused administration pages. */
.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-page,
.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-page {
    max-width: 1120px;
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-heading,
.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-heading h1,
.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-heading h1 {
    margin: 0;
    color: var(--ops-text);
    font-size: 28px;
    font-weight: 780;
    line-height: 1.2;
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-heading p,
.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-heading p {
    margin: 6px 0 0;
    color: var(--ops-text-muted);
    font-size: 14px;
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-form-wrap {
    max-width: 720px;
    border-top: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-form {
    padding-top: 2px;
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-section h2 {
    margin: 0 0 16px;
    color: var(--ops-text);
    font-size: 16px;
    font-weight: 720;
}

.redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-actions {
    padding-top: 20px;
}

.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    border-top: 1px solid var(--ops-border-soft);
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary > div {
    flex: 1 1 0;
    padding: 17px 20px;
    border-right: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary > div:last-child {
    border-right: 0;
}

.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary span,
.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary strong {
    display: block;
}

.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary span {
    color: var(--ops-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary strong {
    margin-top: 5px;
    color: var(--ops-text);
    font-size: 24px;
    font-weight: 760;
}

@media (max-width: 640px) {
    .redesign-shell[data-active-tab="admin_user_create"] .admin-create-user-heading,
    .redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-heading {
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary > div {
        padding: 14px 10px;
    }

    .redesign-shell[data-active-tab="admin_payment_settings"] .admin-payment-summary strong {
        font-size: 20px;
    }
}

/* Exact register composition: the table begins directly under the page header. */
.redesign-shell[data-active-tab="accounts"] .accounts-page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-title-line {
    display: flex;
    align-items: center;
    gap: 18px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 500;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-status.is-connected .accounts-extension-dot {
    background: #12b76a;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-status.is-connected {
    color: #8793a7;
}

.redesign-shell[data-active-tab="accounts"] .accounts-modal-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: none;
    background: rgba(16, 24, 40, 0.16);
}

.redesign-shell[data-active-tab="accounts"] .accounts-modal-backdrop.is-open {
    display: block;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel,
.redesign-shell[data-active-tab="accounts"] .accounts-add-panel {
    position: fixed;
    z-index: 41;
    top: 50%;
    left: 50%;
    display: none;
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    margin: 0 !important;
    overflow: auto;
    transform: translate(-50%, -50%);
    border-color: var(--ops-border-soft);
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18);
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel.is-open,
.redesign-shell[data-active-tab="accounts"] .accounts-add-panel.is-open {
    display: block;
}

.redesign-shell[data-active-tab="accounts"] .accounts-extension-panel .card-panel-header,
.redesign-shell[data-active-tab="accounts"] .accounts-add-panel .card-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="accounts"] .accounts-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ops-text-muted);
}

.redesign-shell[data-active-tab="accounts"] .accounts-panel-close:hover {
    background: #f2f5f9;
    color: var(--ops-text);
}

.redesign-shell[data-active-tab="accounts"] .accounts-list-panel {
    border: 0;
    border-radius: 0;
}

.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-header {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-body {
    padding: 0;
}

.redesign-shell[data-active-tab="accounts"] .accounts-register-toolbar {
    margin-bottom: 28px;
    padding: 0 0 8px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-filters {
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.redesign-shell[data-active-tab="accounts"] .accounts-status-filters select {
    min-width: 198px;
    min-height: 46px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--ops-text-soft);
    font-size: 13px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    color: var(--ops-text-muted);
}

.redesign-shell[data-active-tab="accounts"] .accounts-table thead th {
    padding: 10px 12px 12px;
    border-top: 0;
    background: transparent;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody td {
    height: 68px;
    padding: 10px 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-table tbody td:first-child {
    padding-left: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-vk-id {
    min-width: 118px;
    color: var(--ops-text-soft);
    font-size: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-profile-cell {
    min-width: 205px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-form {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-form.is-editing {
    display: grid;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-current {
    max-width: 220px;
    color: var(--ops-text-soft);
    font-size: 12px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-current button {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-proxy-current button:hover {
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-form {
    min-width: 126px;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-suffix {
    display: none;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-form .form-control {
    width: 46px;
    border: 0;
    background: transparent;
    color: var(--ops-text-soft);
    font-size: 12px;
    text-align: left;
}

.redesign-shell[data-active-tab="accounts"] .accounts-limit-form .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="accounts"] .accounts-last-activity {
    margin-top: 0;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="accounts"] .accounts-bulk-settings {
    display: none;
}

@media (max-width: 1100px) {
    .redesign-shell[data-active-tab="accounts"] .accounts-status-filters {
        align-self: stretch;
        gap: 8px;
        width: 100%;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-status-filters select {
        min-width: 0;
        flex: 1 1 0;
    }
}

@media (max-width: 700px) {
    .redesign-shell[data-active-tab="accounts"] .accounts-title-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .redesign-shell[data-active-tab="accounts"] .accounts-status-filters select {
        min-width: 0;
        padding-left: 10px;
        font-size: 12px;
    }
}

/* Search token register */
.redesign-shell[data-active-tab="my_tokens"] .main-content,
.redesign-shell[data-active-tab="admin_user_tokens"] .main-content {
    max-width: none;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-register,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-register {
    min-width: 0;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-page-heading,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-page-title,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-page-title {
    margin: 0 0 8px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-pool-state,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-pool-state {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--ops-text-muted);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-pool-state.is-ready > i,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-pool-state.is-ready > i {
    color: var(--ops-success);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-pool-state.is-ready span:first-of-type,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-pool-state.is-ready span:first-of-type {
    color: #087a46;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-pool-state.is-attention > i,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-pool-state.is-attention > i {
    color: var(--ops-warning);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-pool-separator,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-pool-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c2cad7;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-add-button,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-register-alert,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-register-alert {
    margin-bottom: 20px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-capacity-note,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-capacity-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -8px 0 22px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-capacity-note.is-warning,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-capacity-note.is-warning {
    border-color: #f8d5a4;
    background: #fff9ef;
    color: #9a5d00;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-capacity-note.is-danger,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-capacity-note.is-danger {
    border-color: #fecdc8;
    background: #fff7f6;
    color: #b42318;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-register-toolbar,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-register-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-search-field,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-search-field {
    display: flex;
    align-items: center;
    width: min(100%, 400px);
    min-height: 42px;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: #ffffff;
    color: #98a2b3;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-search-field:focus-within,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-search-field:focus-within {
    border-color: #7aa7ef;
    box-shadow: 0 0 0 3px rgba(20, 101, 232, 0.1);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-search-field input,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ops-text);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-search-field input::placeholder,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-search-field input::placeholder {
    color: #98a2b3;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-filter-controls,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-filter-controls .form-select,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-filter-controls .form-select {
    width: 174px;
    min-height: 42px;
    border-color: var(--ops-border);
    border-radius: 6px;
    color: var(--ops-text-soft);
    font-size: 13px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-panel,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-panel {
    margin: -4px 0 14px;
    border: 1px solid var(--ops-border-soft);
    border-radius: 6px;
    background: #fbfcfe;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-panel summary,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-panel summary {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 10px;
    padding: 0 13px;
    cursor: pointer;
    color: var(--ops-text-soft);
    font-size: 13px;
    list-style: none;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-panel summary::-webkit-details-marker,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-panel summary::-webkit-details-marker {
    display: none;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-panel summary > span:first-child,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-panel summary > span:first-child {
    color: var(--ops-text);
    font-weight: 600;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-summary,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-summary {
    margin-left: auto;
    color: var(--ops-text-muted);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-panel summary > i,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-panel summary > i {
    transition: transform 160ms ease;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-panel[open] summary > i,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-panel[open] summary > i {
    transform: rotate(180deg);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-actions,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-actions {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 13px 13px;
    border-top: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-actions .btn,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-actions .btn {
    min-height: 32px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-limit,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-limit {
    width: 154px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-limit > span,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-limit > span {
    display: block;
    margin: 11px 0 4px;
    color: var(--ops-text-muted);
    font-size: 11px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-actions p,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-actions p {
    flex: 1 1 190px;
    margin: 0 0 7px;
    color: var(--ops-text-muted);
    font-size: 12px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table-scroll,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table-scroll {
    overflow: auto;
    border-top: 1px solid var(--ops-border-soft);
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table {
    min-width: 1160px;
    margin: 0;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table thead th,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table thead th {
    padding: 11px 12px;
    border-top: 0;
    border-bottom: 1px solid var(--ops-border-soft);
    background: #ffffff;
    color: #7f8aa0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table tbody td,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table tbody td {
    height: 76px;
    padding: 10px 12px;
    border-color: var(--ops-border-soft);
    vertical-align: middle;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table tbody tr,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table tbody tr {
    background: #ffffff;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table tbody tr.is-selected,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table tbody tr.is-selected {
    background: #f2f7ff;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table tbody tr:hover,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table tbody tr:hover {
    background: #f8fbff;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-select-column,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-select-column {
    width: 44px;
    text-align: center;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-actions-column,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-actions-column {
    width: 52px;
    text-align: right;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-name-cell,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-name-cell {
    width: 17%;
    min-width: 170px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-value-cell,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-value-cell {
    width: 20%;
    min-width: 220px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-limit-cell,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-limit-cell {
    width: 13%;
    min-width: 140px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-proxy-cell,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-proxy-cell {
    width: 17%;
    min-width: 190px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-status-cell,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-status-cell {
    width: 11%;
    min-width: 116px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-check-cell,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-check-cell {
    width: 16%;
    min-width: 180px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-inline-input,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-inline-input {
    min-height: 32px;
    padding: 4px 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ops-text-soft);
    font-size: 13px;
    box-shadow: none;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-inline-input:hover,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-inline-input:hover {
    border-color: var(--ops-border-soft);
    background: #ffffff;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-inline-input:focus,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-inline-input:focus {
    border-color: #8fb5f4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 101, 232, 0.09);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-secret-control,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-secret-control {
    display: flex;
    align-items: center;
    gap: 2px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-secret-control .tokens-inline-input,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-secret-control .tokens-inline-input {
    min-width: 0;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-icon-button,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #7b879b;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-icon-button:hover,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-icon-button:hover {
    background: #eef4ff;
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-icon-button.is-danger:hover,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-icon-button.is-danger:hover {
    background: #fff1f0;
    color: var(--ops-danger);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-token-mask,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-token-mask,
.redesign-shell[data-active-tab="my_tokens"] .tokens-proxy-hint,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-proxy-hint,
.redesign-shell[data-active-tab="my_tokens"] .tokens-failure-meta,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-failure-meta,
.redesign-shell[data-active-tab="my_tokens"] .tokens-state-meta,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-state-meta {
    margin-top: 3px;
    color: var(--ops-text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-usage,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-usage {
    margin-bottom: 5px;
    color: var(--ops-text-soft);
    font-size: 12px;
    font-weight: 600;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-limit-editor,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-limit-editor {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ops-text-muted);
    font-size: 11px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-limit-editor .form-control,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-limit-editor .form-control {
    width: 58px;
    min-height: 28px;
    padding: 2px 5px;
    font-size: 12px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-status-cell .badge,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-status-cell .badge {
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-check-button,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-check-button {
    min-height: 30px;
    padding: 3px 10px;
    border-color: var(--ops-border);
    color: var(--ops-text-soft);
    font-size: 12px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-check-button:hover,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-check-button:hover {
    border-color: #9abcf2;
    background: #f5f9ff;
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-row-error,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-row-error {
    display: none;
    margin-top: 4px;
    color: var(--ops-danger);
    font-size: 11px;
    line-height: 1.35;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-row-error.has-error,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-row-error.has-error {
    display: block;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-filter-empty,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-filter-empty {
    padding: 30px 16px;
    color: var(--ops-text-muted);
    font-size: 13px;
    text-align: center;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-register-footer,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-register-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-register-footer .btn,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-register-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
}

.redesign-shell[data-active-tab="my_tokens"] .tokens-table tbody tr.is-filtered-out,
.redesign-shell[data-active-tab="admin_user_tokens"] .tokens-table tbody tr.is-filtered-out {
    display: none;
}

@media (max-width: 900px) {
    .redesign-shell[data-active-tab="my_tokens"] .tokens-register-toolbar,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-register-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="my_tokens"] .tokens-search-field,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-search-field {
        width: 100%;
    }

    .redesign-shell[data-active-tab="my_tokens"] .tokens-filter-controls,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-filter-controls {
        width: 100%;
    }

    .redesign-shell[data-active-tab="my_tokens"] .tokens-filter-controls .form-select,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-filter-controls .form-select {
        width: 100%;
        flex: 1 1 0;
    }
}

@media (max-width: 640px) {
    .redesign-shell[data-active-tab="my_tokens"] .tokens-page-heading,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .redesign-shell[data-active-tab="my_tokens"] .tokens-add-button,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-add-button {
        width: 100%;
    }

    .redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-actions,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="my_tokens"] .tokens-bulk-limit,
    .redesign-shell[data-active-tab="admin_user_tokens"] .tokens-bulk-limit {
        width: 100%;
    }
}

/* History: one clear archive register instead of separate card collections. */
.redesign-shell[data-active-tab="archives"] .history-page {
    max-width: 1240px;
}

.redesign-shell[data-active-tab="archives"] .history-page-heading {
    margin-bottom: 22px;
}

.redesign-shell[data-active-tab="archives"] .history-page-title {
    margin: 0;
    color: var(--ops-text);
    font-size: 28px;
    font-weight: 780;
    line-height: 1.2;
}

.redesign-shell[data-active-tab="archives"] .history-page-subtitle {
    margin: 6px 0 0;
    color: var(--ops-text-muted);
    font-size: 14px;
}

.redesign-shell[data-active-tab="archives"] .history-tabs {
    display: flex;
    align-items: end;
    gap: 34px;
    min-height: 48px;
    border-bottom: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="archives"] .history-tab {
    position: relative;
    min-height: 48px;
    padding: 0 0 14px;
    border: 0;
    background: transparent;
    color: var(--ops-text-muted);
    font-size: 14px;
    font-weight: 680;
}

.redesign-shell[data-active-tab="archives"] .history-tab span {
    margin-left: 6px;
    color: inherit;
    font-variant-numeric: tabular-nums;
}

.redesign-shell[data-active-tab="archives"] .history-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: '';
    background: transparent;
}

.redesign-shell[data-active-tab="archives"] .history-tab.is-active {
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="archives"] .history-tab.is-active::after {
    background: var(--ops-primary);
}

.redesign-shell[data-active-tab="archives"] .history-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 20px;
}

.redesign-shell[data-active-tab="archives"] .history-search,
.redesign-shell[data-active-tab="archives"] .history-period {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: var(--ops-surface);
    color: var(--ops-text-muted);
}

.redesign-shell[data-active-tab="archives"] .history-search {
    width: min(440px, 100%);
    padding: 0 13px;
    gap: 10px;
}

.redesign-shell[data-active-tab="archives"] .history-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ops-text);
    font-size: 14px;
}

.redesign-shell[data-active-tab="archives"] .history-search input::placeholder {
    color: #98a2b3;
}

.redesign-shell[data-active-tab="archives"] .history-period {
    width: 232px;
    padding: 0 13px;
    gap: 9px;
}

.redesign-shell[data-active-tab="archives"] .history-period select {
    width: 100%;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: var(--ops-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.redesign-shell[data-active-tab="archives"] .history-period > .bi-chevron-down {
    font-size: 11px;
}

.redesign-shell[data-active-tab="archives"] .history-table-wrap {
    overflow: hidden;
    border-top: 1px solid var(--ops-border-soft);
}

.redesign-shell[data-active-tab="archives"] .history-table-scroll {
    overflow-x: auto;
}

.redesign-shell[data-active-tab="archives"] .history-table {
    width: 100%;
    min-width: 790px;
    border-collapse: collapse;
    color: var(--ops-text-soft);
    font-size: 14px;
}

.redesign-shell[data-active-tab="archives"] .history-table th {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--ops-border);
    color: var(--ops-text-soft);
    font-size: 12px;
    font-weight: 720;
    text-align: left;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="archives"] .history-table th .bi {
    margin-left: 4px;
    font-size: 12px;
}

.redesign-shell[data-active-tab="archives"] .history-table td {
    height: 59px;
    padding: 0 16px;
    border-bottom: 1px solid var(--ops-border-soft);
    vertical-align: middle;
    white-space: nowrap;
}

.redesign-shell[data-active-tab="archives"] .history-row {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.redesign-shell[data-active-tab="archives"] .history-row:hover,
.redesign-shell[data-active-tab="archives"] .history-row.is-selected {
    background: #f5f9ff;
}

.redesign-shell[data-active-tab="archives"] .history-row-title {
    max-width: 320px;
    overflow: hidden;
    color: var(--ops-text);
    font-weight: 650;
    text-overflow: ellipsis;
}

.redesign-shell[data-active-tab="archives"] .history-value-success {
    color: #0a9b5f;
    font-weight: 650;
}

.redesign-shell[data-active-tab="archives"] .history-value-danger {
    color: var(--ops-danger);
    font-weight: 650;
}

.redesign-shell[data-active-tab="archives"] .history-table-actions,
.redesign-shell[data-active-tab="archives"] .history-row-actions {
    width: 112px;
    text-align: right;
}

.redesign-shell[data-active-tab="archives"] .history-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.redesign-shell[data-active-tab="archives"] .history-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ops-text-soft);
}

.redesign-shell[data-active-tab="archives"] .history-icon-action:hover {
    background: #eaf2ff;
    color: var(--ops-primary);
}

.redesign-shell[data-active-tab="archives"] .history-selection-row td {
    height: auto;
    padding: 0 16px 14px;
    background: #f5f9ff;
    border-bottom: 1px solid #b9d3ff;
}

.redesign-shell[data-active-tab="archives"] .history-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 10px 12px 10px 16px;
    border: 1px solid #d8e6ff;
    border-radius: 6px;
    background: #fff;
    color: var(--ops-text-soft);
    font-size: 14px;
}

.redesign-shell[data-active-tab="archives"] .history-selection-bar strong {
    margin-right: 5px;
    color: var(--ops-text);
    font-size: 17px;
}

.redesign-shell[data-active-tab="archives"] .history-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 650;
}

.redesign-shell[data-active-tab="archives"] .history-empty-row td,
.redesign-shell[data-active-tab="archives"] .history-filter-empty td {
    height: 130px;
    color: var(--ops-text-muted);
    text-align: center;
}

@media (max-width: 700px) {
    .redesign-shell[data-active-tab="archives"] .history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .redesign-shell[data-active-tab="archives"] .history-search,
    .redesign-shell[data-active-tab="archives"] .history-period {
        width: 100%;
    }

    .redesign-shell[data-active-tab="archives"] .history-page-title {
        font-size: 25px;
    }
}

/* The accounts register owns the page scroll, so row menus are never clipped. */
body.redesign-shell[data-active-tab="accounts"] .accounts-list-unclipped {
    max-height: none !important;
    overflow: visible !important;
}

body.redesign-shell[data-active-tab="accounts"] .accounts-list-panel,
body.redesign-shell[data-active-tab="accounts"] .accounts-list-panel .card-panel-body {
    min-height: 0;
    overflow: visible;
}

body.redesign-shell[data-active-tab="accounts"] .accounts-row-menu-popover {
    z-index: 30;
}

@media (max-width: 900px) {
    body.redesign-shell[data-active-tab="accounts"] .accounts-list-unclipped {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}
.isolation-control { grid-column: 1 / -1; margin: 4px 0 12px; padding: 12px; border: 1px solid var(--ops-border); border-radius: 12px; font-size: 12px; }
.isolation-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 650; cursor: pointer; }
.isolation-switch-row input { appearance: none; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 20px; background: #98a2b3; cursor: pointer; position: relative; transition: background .15s; }
.isolation-switch-row input::after { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: white; transition: transform .15s; }
.isolation-switch-row input:checked { background: var(--ops-primary); }
.isolation-switch-row input:checked::after { transform: translateX(16px); }
.isolation-switch-row input:focus-visible { outline: 3px solid #90b4ff; outline-offset: 3px; }
.isolation-switch-row input:disabled { opacity: .55; cursor: wait; }
@media (max-width: 760px) {
  .redesign-shell .sidebar-footer:has(.isolation-control) { display: block; margin-top: 8px; }
  .redesign-shell .sidebar-footer:has(.isolation-control) > :not(.isolation-control) { display: none; }
  .isolation-control { margin: 0; }
}
