:root {
    --bg-dark: #050505;
    --card-bg: #09090b;

    --text-primary: #fafafa;

    --text-secondary: #a1a1aa;

    --border-color: #27272a;

    --primary-color: #fafafa;
    --primary-fg: #18181b;
    --font-family: 'Inter', sans-serif;
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 40px rgba(0, 0, 0, 0.8);
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

html,
body {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

    background-image: radial-gradient(circle at 50% 0%, #18181b 0%, #050505 60%);
}

.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle at center, rgba(200, 200, 255, 0.03), transparent 70%);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.login-body {
    background-color: #030303;
    background-image: radial-gradient(circle at 50% 10%, #0a0a0c 0%, #030303 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--text-primary);
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.login-box {
    background-color: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    text-align: center;
}

.icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.8), rgba(9, 9, 11, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 28px;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.login-form-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pin-group {
    position: relative;
    width: 100%;
}

.pin-hidden-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: text;
    z-index: 10;
}

.pin-display {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pin-cell {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.pin-cell::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-cell.filled::after {
    opacity: 1;
    transform: scale(1);
}

.pin-cell.active {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.btn-submit {
    height: 56px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    background: var(--text-primary);
    color: var(--bg-dark);
}

.login-toast-container {
    margin-top: 32px;
    width: 100%;
    position: relative;
    min-height: 48px;
}

.login-toast {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.login-toast i {
    font-size: 16px;
}

.toast-success {
    color: hsl(158, 64%, 60%);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.toast-error {
    color: hsl(0, 70%, 70%);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    }
}

.animate-glow-pulse {
    animation: glowPulse 3s infinite;
}

body.dashboard {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    --live-view-panel-width: clamp(460px, 58vw, 1200px);
}

body.dashboard.workflow-manager-open {
    overflow: hidden;
}

body.dashboard .main-content {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding-right 0.56s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

body.dashboard.is-ready .main-content {
    opacity: 1;
    transform: none;
}

body.dashboard.is-ready .main-content.settings {
    transform: none;
    will-change: auto;
}

body.dashboard.workflow-manager-open .main-content.settings {
    transform: none !important;
    will-change: auto !important;
    overflow: hidden;
}

body.dashboard.is-leaving .main-content {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard .sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    min-height: 100vh;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 130px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.dashboard .sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding-top: 6px;
}

.dashboard .forward-arrow {
    position: absolute;
    top: 6px;
    right: -17px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    transition: color 0.2s ease, transform 0.3s ease;
}

.dashboard .user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 20px;
    letter-spacing: 0.08em;
    background: linear-gradient(150deg, rgba(39, 39, 42, 0.9), rgba(15, 15, 18, 0.95));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.dashboard .user-avatar.has-image {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.dashboard .user-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.dashboard .user-role-badge {
    background-color: rgba(39, 39, 42, 0.55);
    color: rgba(250, 250, 250, 0.7);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dashboard .menu-section {
    margin-bottom: 20px;
}

.dashboard .menu-label {
    color: rgba(161, 161, 170, 0.6);
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 10px;
    max-height: 24px;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.dashboard .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-bottom: 2px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 13px;
}

.dashboard .menu-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 12px;
    text-align: center;
}

.dashboard .menu-item:hover {
    color: var(--text-primary);
}

.dashboard .menu-item.active {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard .sidebar-footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(39, 39, 42, 0.6);
}

.dashboard .footer-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-size: 13px;
}

.dashboard .footer-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 12px;
    text-align: center;
}

.dashboard .footer-item:hover {
    color: var(--text-primary);
    background-color: rgba(24, 24, 27, 0.6);
}

.dashboard .footer-item.logout {
    color: rgba(250, 250, 250, 0.6);
}

.dashboard .footer-item.logout:hover {
    color: hsl(0, 75%, 70%);
    background-color: transparent;
}

.dashboard .sidebar.is-collapsed {
    width: var(--sidebar-width);
    transition: width 0.25s ease;
}

.dashboard .sidebar {
    transition: width 0.25s ease;
}

.dashboard .menu-item span,
.dashboard .footer-item span {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, max-width 0.2s ease;
}

.dashboard .user-role-badge {
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
    max-height: 28px;
    overflow: hidden;
}

.dashboard .sidebar.is-collapsed .menu-label,
.dashboard .sidebar.is-collapsed .user-role-badge {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-bottom: 0;
    padding: 0;
}

.dashboard .sidebar.is-collapsed .menu-item,
.dashboard .sidebar.is-collapsed .footer-item {
    justify-content: center;
    padding: 10px 0;
}

.dashboard .sidebar.is-collapsed .menu-item span,
.dashboard .sidebar.is-collapsed .footer-item span {
    display: none;
}

.dashboard .sidebar.is-collapsed .menu-item i,
.dashboard .sidebar.is-collapsed .footer-item i {
    margin-right: 0;
}

.dashboard .sidebar.is-collapsed .sidebar-header {
    margin-bottom: 20px;
}

.dashboard .sidebar.is-collapsed .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.dashboard .sidebar.is-collapsed .forward-arrow {
    transform: rotate(180deg);
}

.dashboard .sidebar.is-collapsed {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
}

.dashboard .sidebar,
.dashboard .sidebar.is-collapsed {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
}

body.dashboard .sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
}

.dashboard .main-content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 48px;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.dashboard.live-view-open .main-content {
    padding-right: calc(48px + var(--live-view-panel-width));
}

@media (min-width: 1221px) {
    .dashboard.live-view-open.modal-open .main-content {
        padding-right: calc(48px + min(var(--live-view-panel-width), 560px));
    }
}

.dashboard .main-content {
    scrollbar-width: none;
}

.dashboard .main-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.dashboard .main-content.settings {
    padding-top: 28px;
    padding-bottom: 28px;
}

.dashboard .header {
    margin-bottom: 32px;
}

.dashboard .header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard .header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard .templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard .templates-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard .templates-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard #editAvailabilityBtn {
    width: fit-content;
    min-width: 0;
    flex: 0 0 auto;
    align-self: center;
    padding: 10px 14px;
    border-radius: 9px;
    gap: 7px;
    font-size: 12px;
    line-height: 1;
    justify-content: center;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.dashboard #editAvailabilityBtn:hover {
    transform: translateY(-1px);
}

.dashboard .templates-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1400px) {
    .dashboard .templates-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .dashboard .templates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dashboard .templates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dashboard .templates-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard .template-card {
    position: relative;
    background-color: var(--card-bg);
    border: none;
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    opacity: 1;
    animation: templateFadeIn 0.45s ease both;
    pointer-events: auto;
    z-index: 1;
}

.dashboard .template-card:hover {
    border-color: rgba(250, 250, 250, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.dashboard .template-empty-state {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 28px;
}

.dashboard .template-empty-state h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.dashboard .template-empty-state p {
    max-width: 460px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard .template-card:nth-child(1) {
    animation-delay: 0s;
}

.dashboard .template-card:nth-child(2) {
    animation-delay: 0.05s;
}

.dashboard .template-card:nth-child(3) {
    animation-delay: 0.1s;
}

.dashboard .template-card:nth-child(4) {
    animation-delay: 0.15s;
}

.dashboard .template-card:nth-child(5) {
    animation-delay: 0.2s;
}

.dashboard .template-card:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes templateFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard .template-card .card-highlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.dashboard .logo-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: linear-gradient(150deg, rgba(39, 39, 42, 0.9), rgba(15, 15, 18, 0.95));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    pointer-events: none;
    overflow: hidden;
}

.dashboard .template-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
}

.dashboard .template-logo[src*="Apple"] {
    transform: scale(1.45);
}

.dashboard .template-logo[src*="Google"] {
    transform: scale(1.35);
}

.dashboard .template-logo[src*="Ledger"] {
    object-fit: contain;
    transform: scale(1.1);
    padding: 6px;
}

.dashboard .template-card[data-template="Ledger"] .logo-placeholder {
    background: #fff;
}

.dashboard .template-logo[src*="Trustwallet"] {
    object-fit: contain;
    transform: scale(1);
}

.dashboard .template-card[data-template*="Trust"] .logo-placeholder,
.dashboard .template-card[data-template="Trustwallet"] .logo-placeholder {
    background: #fff;
}

.dashboard .template-logo[src*="Yahoo"] {
    object-fit: contain;
    transform: scale(1);
}

.dashboard .template-card[data-template="Yahoo"] .logo-placeholder {
    background: #fff;
}

.dashboard .template-logo[src*="Unchained"] {
    object-fit: cover;
    transform: scale(1.15);
}

.dashboard .template-card[data-template="Unchained"] .logo-placeholder {
    background: #f0f0f2;
}

.dashboard .template-logo[src*="Binance"] {
    transform: scale(1.25);
}

.dashboard .template-logo[src*="Coinbase"] {
    transform: scale(1.15);
}

.dashboard .template-logo[src*="Coinsquare"] {
    transform: scale(1.25);
}

.dashboard .template-logo[src*="Coinspot"] {
    transform: scale(1.15);
}

.dashboard .logo-placeholder span {
    font-size: 24px;
    font-weight: 700;
    color: rgba(250, 250, 250, 0.8);
}

.dashboard .template-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    pointer-events: none;
}

.dashboard .btn-preview {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dashboard .template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dashboard .btn-edit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dashboard .btn-edit:hover {
    background-color: var(--primary-color);
    color: var(--primary-fg);
    border-color: var(--primary-color);
}

.dashboard .btn-preview:hover {
    background-color: var(--primary-color);
    color: var(--primary-fg);
    border-color: var(--primary-color);
}

.dashboard .template-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 30;
}

.dashboard .template-preview-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashboard .template-preview {
    width: min(1000px, 92%);
    max-width: 1000px;
    height: min(85vh, 760px);
    max-height: 85vh;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--card-shadow);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard .template-preview-overlay.is-open .template-preview {
    transform: scale(1);
}

.dashboard .template-preview.is-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding: 20px;
}

.dashboard .template-preview.is-fullscreen .preview-frame {
    max-height: none;
    height: calc(100vh - 230px);
}

.dashboard .preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard .preview-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .preview-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard .preview-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard .preview-select {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #050505;
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 12px;
    padding: 8px 12px;
    position: relative;
}

.dashboard .preview-select::after {
    display: none;
}

.dashboard .preview-exchange-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(39, 39, 42, 0.6);
}

.dashboard .preview-select select {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 6px 28px 6px 0;
    outline: none;
    cursor: pointer;
    background-image: none;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.dashboard .preview-select select::-ms-expand {
    display: none;
}

.dashboard .preview-select select option {
    background: #050505;
    color: var(--text-primary);
}

.dashboard #previewPageSelect {
    background: #050505;
}

.dashboard #previewPageSelect option {
    background: #050505;
    color: var(--text-primary);
}

.dashboard .preview-frame-shell {
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.7);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard .preview-frame-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: rgba(12, 12, 14, 0.85);
    border-bottom: 1px solid rgba(39, 39, 42, 0.7);
    font-size: 12px;
}

.dashboard .preview-path {
    font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
    color: rgba(244, 244, 245, 0.85);
    flex: 1;
    min-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .preview-toolbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.dashboard .preview-zoom-value {
    min-width: 48px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashboard .preview-mode-toggle[aria-pressed="true"] {
    color: hsl(158, 64%, 70%);
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
}

.dashboard .preview-fullscreen-toggle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 6px;
    background: rgba(5, 5, 5, 0.92);
    color: #f4f4f5;
    border-color: rgba(82, 82, 91, 0.8);
}

.dashboard .preview-fullscreen-toggle i {
    font-size: 12px;
}

.dashboard .preview-fullscreen-toggle[aria-pressed="true"] {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.45);
    color: hsl(158, 64%, 70%);
}

.dashboard .preview-tag {
    background: rgba(16, 185, 129, 0.15);
    color: hsl(158, 64%, 65%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard .preview-frame {
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.dashboard .preview-frame::-webkit-scrollbar {
    display: none;
}

.dashboard .preview-stage {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    flex: 0 0 auto;
    background: transparent;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard .preview-stage::-webkit-scrollbar {
    display: none;
}

.dashboard .preview-frame.is-mobile .preview-stage {
    width: min(390px, 100%);
}

.dashboard .preview-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: transparent;
    transform-origin: top center;
    transition: opacity 0.25s ease;
}

.dashboard .preview-frame iframe.is-loading {
    opacity: 0;
}

.dashboard .preview-frame iframe.preview-iframe-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.dashboard .preview-frame iframe.preview-iframe-revealing {
    z-index: 2;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

.dashboard .preview-frame iframe.preview-iframe-revealing.is-visible {
    opacity: 1;
}

.dashboard .preview-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border-radius: 12px;
}

.dashboard .preview-loading-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.dashboard .preview-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    animation: previewSpin 0.7s linear infinite;
}

@keyframes previewSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .dashboard .preview-controls {
        grid-template-columns: 1fr;
    }

    .dashboard .preview-frame-toolbar {
        align-items: flex-start;
    }

    .dashboard .preview-toolbar-actions {
        justify-content: flex-start;
        margin-left: 0;
    }

    .dashboard .preview-frame {
        height: 420px;
        padding: 12px;
    }
}

.dashboard .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(9, 9, 11, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.dashboard .toast.show {
    opacity: 1;
    transform: translateY(0);
}

.dashboard .toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard .toast-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard .stats-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard .stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.dashboard .stat-card:hover {
    border-color: rgba(39, 39, 42, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.dashboard .stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard .stat-card-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.dashboard .stat-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(39, 39, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .stat-card-icon i {
    font-size: 14px;
    color: var(--text-secondary);
}

.dashboard .stat-card-value {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard .stat-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dashboard {
    --bg-dark: #040404;
    --card-bg: #0a0a0b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --primary-color: #fafafa;
    --primary-fg: #18181b;
    --font-family: 'Inter', sans-serif;
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 40px rgba(0, 0, 0, 0.8);
    --status-green: 168, 230, 207;
    --status-red: 255, 182, 193;
}

body.dashboard {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #18181b 0%, #040404 60%);
}

.dashboard .stats-grid {
    margin-bottom: 24px;
}

.dashboard .footer-item.logout:hover {
    color: hsl(0, 75%, 70%);
    background-color: transparent;
}

.dashboard .data-table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.dashboard .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard.live-view-open .data-table {
    table-layout: fixed;
}

.dashboard.live-view-open .data-table th,
.dashboard.live-view-open .data-table td {
    padding-left: 16px;
    padding-right: 16px;
}

.dashboard.live-view-open .data-table th:nth-child(5),
.dashboard.live-view-open .data-table td:nth-child(5) {
    width: 176px;
}

.dashboard .data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(161, 161, 170, 0.7);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dashboard .data-table th:last-child {
    text-align: right;
}

.dashboard .data-table th:nth-child(2),
.dashboard .data-table td:nth-child(2) {
    width: 136px;
    white-space: nowrap;
    text-align: center;
}

.dashboard .data-table td {
    padding: 18px 24px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s ease;
    vertical-align: middle;
}

.dashboard .data-table tr:last-child td {
    border-bottom: none;
}

.dashboard .data-table tr:hover td {
    background-color: rgba(39, 39, 42, 0.2);
}

.dashboard .cell-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard .cell-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .cell-icon i {
    font-size: 14px;
    color: rgba(250, 250, 250, 0.6);
}

.dashboard .ip-cell .cell-icon {
    width: 48px;
    height: 32px;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease;
}

.dashboard .ip-cell .cell-icon:hover {
    transform: scale(1.08);
}

.dashboard .session-info-popover {
    position: fixed;
    z-index: 9999;
    width: 340px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    overflow: hidden;
}

.dashboard .session-info-popover.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dashboard .session-info-popover-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard .session-info-popover-flag {
    width: 36px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dashboard .session-info-popover-flag-fallback {
    width: 36px;
    height: 26px;
    border-radius: 4px;
    background: rgba(39, 39, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.dashboard .session-info-popover-title {
    flex: 1;
    min-width: 0;
}

.dashboard .session-info-popover-title strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.96);
    letter-spacing: -0.01em;
}

.dashboard .session-info-popover-title small {
    display: block;
    font-size: 0.72rem;
    color: rgba(161, 161, 170, 0.85);
    margin-top: 2px;
}

.dashboard .session-info-popover-close {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(39, 39, 42, 0.4);
    color: rgba(161, 161, 170, 0.8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dashboard .session-info-popover-close:hover {
    color: hsl(0, 85%, 78%);
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.45);
}

.dashboard .session-info-popover-body {
    padding: 10px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 380px;
    overflow-y: auto;
}

.dashboard .session-info-popover-body::-webkit-scrollbar {
    width: 4px;
}

.dashboard .session-info-popover-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dashboard .session-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard .session-info-row:last-child {
    border-bottom: none;
}

.dashboard .session-info-label {
    font-size: 0.72rem;
    color: rgba(161, 161, 170, 0.85);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 72px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    padding-top: 1px;
}

.dashboard .session-info-value {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.94);
    text-align: right;
    word-break: break-all;
    line-height: 1.4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dashboard .session-info-value.is-expandable {
    font-size: 0.68rem;
    color: rgba(161, 161, 170, 0.78);
    display: block;
    word-break: break-all;
    text-align: right;
    max-width: 220px;
}

.dashboard .session-info-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.dashboard .session-info-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dashboard .session-info-status-dot.is-connected {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.dashboard .session-info-status-dot.is-disconnected {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.dashboard .page-icon {
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.8), rgba(12, 12, 15, 0.9));
    overflow: hidden;
    border-radius: 10px;
    border: none;
    box-shadow: none;
    padding: 0;
}

.dashboard .page-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.dashboard .cell-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dashboard .primary-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .secondary-text {
    font-size: 11px;
    color: rgba(161, 161, 170, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .ip-cell .primary-text {
    font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.dashboard .page-placeholder {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashboard .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    min-width: 0;
    max-width: 130px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: none;
    border: 1px solid rgba(82, 82, 91, 0.5);
    background: rgba(63, 63, 70, 0.24);
    color: rgba(250, 250, 250, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard .status-text {
    display: block;
    width: auto;
    max-width: 100px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: inherit;
}

.dashboard .status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    animation: statusDotFlash 1.15s ease-in-out infinite;
}

.dashboard .status-badge.status-connected {
    color: hsl(152, 62%, 66%);
}

.dashboard .status-badge.status-disconnected {
    color: hsl(0, 74%, 69%);
}

.dashboard .status-badge.status-pending {
    color: hsl(40, 82%, 68%);
}

.dashboard .status-badge:hover {
    background: rgba(63, 63, 70, 0.32);
    border-color: rgba(113, 113, 122, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard .status-badge.status-disconnected .status-dot {
    animation-duration: 1.3s;
}

.dashboard .status-badge.status-pending .status-dot {
    animation-duration: 1s;
}

@keyframes statusDotFlash {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    }

    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
    }
}

@supports (view-transition-name: root) {
    ::view-transition-old(root) {
        animation: pageSlideOut 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
    }

    ::view-transition-new(root) {
        animation: pageSlideIn 0.32s cubic-bezier(0, 0, 0.2, 1) forwards;
    }
}

@keyframes pageSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-8px);
    }
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard .actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.dashboard .actions-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background-color: rgba(39, 39, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.dashboard.live-view-open .data-table .actions-group {
    gap: 3px;
    padding: 3px;
}

.dashboard.live-view-open .data-table .action-btn {
    width: 30px;
    height: 30px;
}

.dashboard .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    position: relative;
}

.dashboard .action-btn:hover {
    background-color: rgba(39, 39, 42, 0.8);
    color: var(--text-primary);
}

.dashboard .actions-group .action-btn:nth-child(1):hover {
    background-color: rgba(16, 185, 129, 0.2);
    color: hsl(158, 88%, 68%);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.dashboard .actions-group .action-btn:nth-child(2):hover {
    background-color: rgba(59, 130, 246, 0.18);
    color: hsl(214, 95%, 74%);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.dashboard .actions-group .action-btn:nth-child(3):hover {
    background-color: rgba(234, 179, 8, 0.2);
    color: hsl(48, 95%, 68%);
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.3);
}

.dashboard .action-btn.delete:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: hsl(0, 70%, 70%);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3);
}

.dashboard .action-btn i {
    font-size: 12px;
}

.dashboard .action-btn .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.dashboard .action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.dashboard.modal-open {
    overflow: hidden;
}

.dashboard .redirect-frame-overlay {
    position: fixed;
    inset: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 13, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
}

.dashboard .redirect-frame-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashboard .redirect-frame {
    width: min(700px, 88vw);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 9, 11, 0.96);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 18px;
    position: relative;
    transform: translateY(10px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: min(90vh, 820px);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard .redirect-frame::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard .redirect-frame *:not([class*="fa-"]):not(i),
.dashboard .redirect-frame input,
.dashboard .redirect-frame textarea,
.dashboard .redirect-frame select,
.dashboard .redirect-frame button,
.dashboard .redirect-frame label,
.dashboard .redirect-frame span,
.dashboard .redirect-frame strong,
.dashboard .redirect-frame small,
.dashboard .redirect-frame p,
.dashboard .redirect-frame h3,
.dashboard .redirect-frame div {
    font-family: 'Inter', sans-serif;
}

.dashboard .redirect-frame-overlay.is-open .redirect-frame {
    transform: translateY(0) scale(1);
}

.dashboard .redirect-frame-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(39, 39, 42, 0.5);
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .redirect-frame-close:hover {
    color: var(--text-primary);
    background: rgba(63, 63, 70, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

.dashboard .redirect-frame-head h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.dashboard .redirect-frame-head p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    max-width: 54ch;
    line-height: 1.5;
}

.dashboard .redirect-frame-context {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard .redirect-context-block {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    background: linear-gradient(160deg, rgba(24, 24, 27, 0.65), rgba(12, 12, 16, 0.72));
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.dashboard .redirect-context-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard .redirect-context-media {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 18, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dashboard .redirect-context-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    clip-path: inset(0 round 9px);
}

.dashboard #redirectCurrentPageLogo,
.dashboard #insightsCurrentPageLogo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
}

.dashboard .redirect-context-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dashboard .redirect-context-label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    font-weight: 500;
}

.dashboard .redirect-context-block strong {
    font-size: 0.84rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .redirect-context-block small {
    color: var(--text-secondary);
    font-size: 0.69rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .redirect-frame-body {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.dashboard .redirect-options-panel,
.dashboard .redirect-summary-panel {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: visible;
}

.dashboard .redirect-options-panel {
    width: 100%;
    flex: 0 0 auto;
}

.dashboard .redirect-options-head {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.dashboard .redirect-options-note {
    margin-top: 8px;
    font-size: 0.7rem;
    color: rgba(161, 161, 170, 0.65);
    display: none;
    
}

.dashboard .redirect-hint-field {
    display: grid;
    margin-top: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    background: rgba(15, 23, 42, 0.24);
    transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.24s ease,
        padding 0.24s ease, margin-top 0.24s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard .redirect-hint-field.is-visible {
    margin-top: 10px;
    padding: 10px 12px;
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.08);
}

.dashboard .redirect-hint-field.is-invalid {
    border-color: rgba(248, 113, 113, 0.48);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.16);
}

.dashboard .redirect-hint-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(236, 236, 240, 0.96);
    letter-spacing: 0.01em;
}

.dashboard .redirect-hint-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(9, 9, 11, 0.62);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 0.78rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard textarea.redirect-hint-input {
    min-height: 44px;
    height: 44px;
    padding: 12px;
    line-height: 1.6;
    resize: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard textarea.redirect-hint-input::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.dashboard .redirect-hint-input::placeholder {
    color: rgba(161, 161, 170, 0.74);
}

.dashboard .redirect-hint-input:focus {
    border-color: rgba(96, 165, 250, 0.52);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
    background: rgba(9, 9, 11, 0.76);
}

.dashboard .redirect-hint-field.is-invalid .redirect-hint-input {
    border-color: rgba(248, 113, 113, 0.52);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.12);
}

.dashboard .redirect-hint-note {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(161, 161, 170, 0.84);
}

.dashboard .redirect-hint-note.is-error {
    color: #fca5a5;
}

.dashboard .redirect-select {
    position: relative;
}

.dashboard .redirect-select-trigger {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.28);
    color: var(--text-primary);
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.dashboard .redirect-select-trigger:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.12);
}

.dashboard .redirect-select.is-open .redirect-select-trigger {
    border-color: rgba(96, 165, 250, 0.6);
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
    box-shadow: none;
}

.dashboard .redirect-option-media {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dashboard .redirect-option-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    clip-path: inset(0 round 8px);
    transform: scale(1.12);
}

.dashboard #redirectCurrentPageLogo[alt*="Coinsquare"],
.dashboard #insightsCurrentPageLogo[alt*="Coinsquare"],
.dashboard .redirect-option-logo[alt*="Coinsquare"] {
    transform: scale(1.18);
}

.dashboard .redirect-select-copy,
.dashboard .redirect-select-option-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard .redirect-select-copy strong,
.dashboard .redirect-select-option-copy strong {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .redirect-select-copy small,
.dashboard .redirect-select-option-copy small {
    color: var(--text-secondary);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .redirect-select-arrow {
    margin-left: auto;
    font-size: 11px;
    color: rgba(161, 161, 170, 0.9);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.dashboard .redirect-select.is-open .redirect-select-arrow {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.dashboard .redirect-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: rgba(10, 10, 13, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    padding: 0 8px 8px;
    display: grid;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard .redirect-select.is-open .redirect-select-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.dashboard .redirect-select-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard .redirect-select-search {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: rgba(10, 10, 13, 0.98);
    padding: 8px 10px;
    margin: 0 -8px 4px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 18px rgba(5, 9, 18, 0.34);
}

.dashboard .redirect-select.is-open .redirect-select-search {
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 10px 18px rgba(5, 9, 18, 0.34);
}

.dashboard .redirect-select-search:focus-within {
    border-color: rgba(59, 130, 246, 0.52);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14), 0 10px 18px rgba(5, 9, 18, 0.34);
}

.dashboard .redirect-select-search i {
    font-size: 11px;
    color: rgba(161, 161, 170, 0.86);
}

.dashboard .redirect-select-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.72rem;
    line-height: 1.2;
}

.dashboard .redirect-select-search-input::placeholder {
    color: rgba(161, 161, 170, 0.72);
}

.dashboard .redirect-select-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.dashboard .redirect-select-empty {
    padding: 10px 8px;
    border-radius: 8px;
    color: rgba(161, 161, 170, 0.84);
    font-size: 0.72rem;
}

.dashboard .redirect-select-group {
    margin-top: 6px;
    padding: 6px 6px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard .redirect-select-group .redirect-option-media {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.dashboard .redirect-select-group-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dashboard .redirect-select-group-copy strong {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: rgba(236, 236, 240, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .redirect-select-group-copy small {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: rgba(161, 161, 170, 0.84);
    text-transform: uppercase;
}

.dashboard .redirect-select-group:first-child {
    margin-top: 0;
}

.dashboard .redirect-select-search+.redirect-select-group {
    margin-top: 0;
}

.dashboard .redirect-select-option {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(24, 24, 27, 0.6);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.dashboard .redirect-select-option[hidden],
.dashboard .redirect-select-group[hidden],
.dashboard .redirect-select-empty[hidden] {
    display: none !important;
}

.dashboard .redirect-select-option:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(37, 99, 235, 0.14);
    transform: translateX(2px);
}

.dashboard .redirect-select-option.is-active {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(37, 99, 235, 0.18);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.dashboard .redirect-summary-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.dashboard .redirect-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
}

.dashboard .redirect-preview-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.dashboard .redirect-preview-zoom-btn,
.dashboard .redirect-preview-expand {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(39, 39, 42, 0.45);
    color: rgba(228, 228, 231, 0.9);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .redirect-preview-zoom-btn i,
.dashboard .redirect-preview-expand i {
    font-size: 11px;
}

.dashboard .redirect-preview-zoom-btn:hover,
.dashboard .redirect-preview-expand:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    transform: scale(1.06);
}

.dashboard .redirect-preview-zoom-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.dashboard .redirect-preview-zoom-value {
    min-width: 44px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashboard .redirect-preview-frame {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(8, 8, 10, 0.6);
    flex: 1 1 auto;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: block;
    padding: 0;
    position: relative;
}

.dashboard .redirect-preview-frame::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard .redirect-preview-stage {
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid rgba(39, 39, 42, 0.7);
    overflow: hidden;
    background: rgba(8, 8, 10, 0.6);
    pointer-events: auto;
    position: relative;
}

.dashboard .redirect-preview-frame iframe {
    width: 1600px;
    height: 900px;
    max-width: none;
    border: none;
    background: rgba(8, 8, 10, 0.6);
    pointer-events: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    will-change: transform, opacity;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.dashboard .redirect-preview-frame iframe.redirect-preview-iframe-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.dashboard .redirect-preview-frame iframe.redirect-preview-iframe-revealing {
    z-index: 2;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.16s ease-out;
}

.dashboard .redirect-preview-frame iframe.redirect-preview-iframe-revealing.is-visible {
    opacity: 1;
}

.dashboard .redirect-frame.is-preview-zoomed {
    width: min(860px, 94vw);
    max-height: min(92vh, 920px);
}

.dashboard .redirect-frame.is-preview-zoomed .redirect-preview-frame {
    min-height: 280px;
    max-height: none;
    height: auto;
    flex: 1 1 auto;
}

.dashboard .redirect-frame.is-preview-zoomed .redirect-summary-panel {
    overflow: visible;
    padding-bottom: 0;
}

.dashboard .redirect-frame.is-preview-zoomed .redirect-apply-btn {
    position: sticky;
    bottom: -1px;
    z-index: 4;
    margin-top: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 -8px 20px rgba(9, 9, 11, 0.85);
}

.dashboard .redirect-summary-panel code {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.8);
    color: hsl(206, 88%, 76%);
    font-size: 0.78rem;
    padding: 8px 12px;
    line-height: 1.3;
    word-break: break-all;
    flex: 0 0 auto;
}

.dashboard .redirect-summary-panel p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex: 0 0 auto;
}

.dashboard .redirect-apply-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #f8fbff;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
    letter-spacing: 0.01em;
    margin-top: 12px;
}

.dashboard .redirect-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.dashboard .redirect-apply-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .dashboard .redirect-frame-overlay {
        padding: 12px;
    }

    .dashboard .redirect-frame {
        padding: 18px;
        max-height: 90vh;
        border-radius: 16px;
    }

    .dashboard .redirect-frame-context {
        grid-template-columns: 1fr;
    }

    .dashboard .redirect-preview-actions {
        gap: 6px;
    }

    .dashboard .redirect-preview-zoom-value {
        min-width: 40px;
    }

    .dashboard .redirect-preview-frame {
        min-height: 140px;
    }
}

.dashboard .live-view-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--live-view-panel-width);
    padding: 10px 10px 10px 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    background: linear-gradient(270deg, rgba(2, 6, 13, 0.78) 0%, rgba(2, 6, 13, 0.2) 42%, rgba(2, 6, 13, 0) 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    transition: width 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.62s;
    will-change: transform, opacity;
    z-index: 92;
}

.dashboard .live-view-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: width 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

@media (min-width: 1221px) {
    .dashboard.live-view-open.modal-open .live-view-overlay {
        width: min(var(--live-view-panel-width), 560px);
    }
}

.dashboard .live-view-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 24px;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: ew-resize;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 6;
    touch-action: none;
}

.dashboard .live-view-overlay.is-open .live-view-resize-handle {
    opacity: 1;
}

.dashboard .live-view-resize-handle::before {
    content: '';
    position: absolute;
    top: 14%;
    bottom: 14%;
    left: 11px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.25));
}

.dashboard .live-view-resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    width: 12px;
    height: 66px;
    transform: translateY(-50%);
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.45);
    background: rgba(30, 41, 59, 0.78);
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.45);
}

.dashboard .live-view-overlay.is-open .live-view-resize-handle:hover::after,
.dashboard.live-view-resizing .live-view-resize-handle::after {
    border-color: rgba(191, 219, 254, 0.9);
    background: rgba(30, 64, 175, 0.85);
}

.dashboard .live-view-frame {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 18px 0 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 9, 11, 0.96);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 16px;
    position: relative;
    transform: translate3d(56px, 0, 0);
    opacity: 0.82;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
}

.dashboard .live-view-overlay.is-open .live-view-frame {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.dashboard .live-view-overlay.is-light .live-view-frame {
    border-color: rgba(148, 163, 184, 0.62);
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard .live-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(39, 39, 42, 0.5);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.dashboard .live-view-overlay.is-light .live-view-close {
    border-color: rgba(148, 163, 184, 0.54);
    background: rgba(241, 245, 249, 0.92);
    color: rgba(71, 85, 105, 0.92);
}

.dashboard .live-view-close:hover {
    color: hsl(0, 90%, 82%);
    border-color: rgba(248, 113, 113, 0.65);
    background: rgba(127, 29, 29, 0.55);
}

.dashboard .live-view-head h3 {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.dashboard .live-view-head p {
    color: var(--text-secondary);
    font-size: 0.78rem;
    max-width: 60ch;
}

.dashboard .live-view-overlay.is-light .live-view-head h3 {
    color: rgba(15, 23, 42, 0.95);
}

.dashboard .live-view-overlay.is-light .live-view-head p {
    color: rgba(71, 85, 105, 0.86);
}

.dashboard .live-view-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard .live-view-context-block {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    background: linear-gradient(160deg, rgba(24, 24, 27, 0.65), rgba(12, 12, 16, 0.72));
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dashboard .live-view-overlay.is-light .live-view-context-block {
    border-color: rgba(148, 163, 184, 0.5);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
}

.dashboard .live-view-context-block strong {
    font-size: 0.84rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .live-view-overlay.is-light .live-view-context-block strong {
    color: rgba(15, 23, 42, 0.94);
}

.dashboard .live-view-context-block small {
    color: var(--text-secondary);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .live-view-overlay.is-light .live-view-context-block small {
    color: rgba(71, 85, 105, 0.86);
}

.dashboard .live-view-body {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(220px, 0.45fr);
    gap: 12px;
}

.dashboard .live-view-preview-panel,
.dashboard .live-view-box {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard .live-view-overlay.is-light .live-view-preview-panel,
.dashboard .live-view-overlay.is-light .live-view-box {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

.dashboard .live-view-stream-panel {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(200px, 1fr);
    gap: 12px;
    container-type: inline-size;
    container-name: stream-panel;
}

@container stream-panel (max-width: 480px) {
    .dashboard .live-view-stream-panel {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(120px, 0.55fr) minmax(120px, 0.45fr);
    }
}

.dashboard .live-view-stream-panel .live-view-box {
    height: 100%;
}

.dashboard .live-view-capture-box {
    min-width: 0;
    overflow: hidden;
}

.dashboard .live-view-action-box {
    min-width: 0;
    overflow: hidden;
}

.dashboard .live-view-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    flex: 0 0 auto;
}

.dashboard .live-view-overlay.is-light .live-view-panel-head {
    color: rgba(51, 65, 85, 0.92);
}

.dashboard .live-view-capture-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    text-transform: none;
    letter-spacing: 0;
    min-width: 0;
    overflow: hidden;
}

.dashboard .live-view-capture-title span {
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.96);
}

.dashboard .live-view-overlay.is-light .live-view-capture-title span {
    color: rgba(15, 23, 42, 0.95);
}

.dashboard .live-view-capture-actions {
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.dashboard .live-view-feed-settings {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(8, 8, 10, 0.74);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    min-width: 0;
}

.dashboard .live-view-feed-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(212, 212, 216, 0.9);
    font-size: 0.69rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.dashboard .live-view-feed-title i {
    font-size: 0.72rem;
    opacity: 0.9;
}

.dashboard .live-view-feed-label {
    font-size: 0.68rem;
    color: rgba(161, 161, 170, 0.86);
    white-space: nowrap;
}

.dashboard .live-view-control-select {
    min-width: 92px;
    height: 28px;
    border-radius: 7px;
    border: 0;
    background-color: rgba(22, 22, 25, 0.94);
    color: rgba(228, 228, 231, 0.94);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0 24px 0 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M5 7l5 6 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    outline: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard .live-view-control-select:hover {
    background-color: rgba(32, 32, 36, 0.96);
}

.dashboard .live-view-control-select:focus {
    background-color: rgba(34, 34, 38, 0.98);
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.2);
}

.dashboard .live-view-tool-btn {
    height: 30px;
    border-radius: 9px;
    border: 0;
    background: rgba(22, 22, 25, 0.9);
    color: rgba(229, 231, 235, 0.9);
    font-size: 0.74rem;
    font-weight: 400;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.dashboard .live-view-tool-btn i {
    font-size: 0.73rem;
    opacity: 0.9;
}

.dashboard .live-view-tool-btn:hover {
    opacity: 0.96;
}

.dashboard .live-view-tool-btn.export {
    color: rgb(74 222 128);
    background: rgba(16, 185, 129, 0.14);
}

.dashboard .live-view-tool-btn.export:hover {
    color: rgb(110 231 183);
    background: rgba(16, 185, 129, 0.22);
}

.dashboard .live-view-tool-btn.clear {
    color: rgb(252 165 165);
    background: rgba(248, 113, 113, 0.14);
}

.dashboard .live-view-tool-btn.clear:hover {
    color: rgb(254 202 202);
    background: rgba(248, 113, 113, 0.22);
}

.dashboard .live-view-capture-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    user-select: none;
}

.dashboard .live-view-capture-stat {
    padding: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
}

.dashboard .live-view-capture-stat+.live-view-capture-stat {
    position: relative;
    padding-left: 14px;
}

.dashboard .live-view-capture-stat+.live-view-capture-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    transform: translateY(-50%);
    background: rgba(148, 163, 184, 0.35);
}

.dashboard .live-view-selfie-btn {
    margin-left: auto;
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: 8px;
    padding: 3px 10px;
    background: rgba(79, 70, 229, 0.2);
    color: rgba(224, 231, 255, 0.98);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dashboard .live-view-selfie-btn:hover {
    background: rgba(79, 70, 229, 0.32);
    border-color: rgba(129, 140, 248, 0.6);
}

.dashboard .live-view-capture-stat-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.99rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.96);
}

.dashboard .live-view-capture-stat-label {
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(161, 161, 170, 0.88);
    white-space: nowrap;
}

.dashboard .live-view-panel-head small {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.7rem;
    color: rgba(161, 161, 170, 0.9);
}

.dashboard .live-view-preview-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(8, 8, 10, 0.76);
    flex: 1 1 auto;
    min-height: 320px;
}

.dashboard .live-view-overlay.is-light .live-view-preview-frame {
    border-color: rgba(148, 163, 184, 0.58);
    background: rgba(255, 255, 255, 0.98);
}

.dashboard .live-view-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(8, 8, 10, 0.76);
    display: block;
}

.dashboard .live-view-overlay.is-light .live-view-preview-frame iframe {
    background: rgba(255, 255, 255, 0.98);
}

.dashboard .live-view-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(59, 130, 246, 0.95);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.06s linear, top 0.06s linear;
    z-index: 2;
}

.dashboard .live-view-log,
.dashboard .live-view-typing-box {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(9, 9, 12, 0.9);
    color: rgba(229, 231, 235, 0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.4;
}

.dashboard .live-view-action-feed {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(9, 9, 12, 0.9);
    color: rgba(229, 231, 235, 0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.76rem;
    line-height: 1.35;
    padding: 9px 10px;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 6px;
}

.dashboard .live-view-action-line {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 7px;
    padding: 3px 8px;
    background: rgba(18, 18, 22, 0.92);
    color: rgba(226, 232, 240, 0.95);
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard .live-view-action-line.is-click {
    background: rgba(26, 26, 30, 0.96);
}

.dashboard .live-view-action-line.is-key {
    background: rgba(22, 22, 26, 0.96);
}

.dashboard .live-view-action-line.is-input {
    background: rgba(28, 28, 33, 0.96);
}

.dashboard .live-view-action-line.is-system {
    background: rgba(34, 34, 39, 0.96);
    color: rgba(250, 250, 250, 0.88);
}

.dashboard .live-view-action-line.is-image {
    gap: 6px;
}

.dashboard .live-view-image-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(165, 180, 252, 0.85);
}

.dashboard .live-view-image-link {
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    background: rgba(79, 70, 229, 0.18);
    color: rgba(224, 231, 255, 0.98);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dashboard .live-view-image-link:hover {
    background: rgba(79, 70, 229, 0.28);
    border-color: rgba(129, 140, 248, 0.55);
}

.dashboard .live-view-image-modal {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 18, 0.62);
    z-index: 100;
    padding: 20px;
}

.dashboard .live-view-image-modal.is-open {
    display: flex;
}

.dashboard .live-view-image-card {
    width: min(96%, 1600px);
    height: calc(100vh - 40px);
    background: rgba(10, 14, 24, 0.98);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(8, 15, 30, 0.55);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.dashboard .live-view-image-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard .live-view-image-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.96);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .live-view-image-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard .live-view-image-open {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.65);
    color: rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.72rem;
    cursor: pointer;
}

.dashboard .live-view-image-close {
    border: 0;
    background: rgba(30, 41, 59, 0.85);
    color: rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.dashboard .live-view-image-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    background: rgba(2, 6, 23, 0.8);
    padding: 12px;
}

.dashboard .live-view-image-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: max-content;
    height: max-content;
    gap: 12px;
}

.dashboard .live-view-image-stage img {
    display: block;
    max-width: none;
    max-height: none;
    border-radius: 10px;
}

.dashboard .live-view-overlay.is-light .live-view-image-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.6);
}

.dashboard .live-view-overlay.is-light .live-view-image-title {
    color: rgba(15, 23, 42, 0.9);
}

.dashboard .live-view-overlay.is-light .live-view-image-open {
    background: rgba(226, 232, 240, 0.9);
    color: rgba(15, 23, 42, 0.8);
}

.dashboard .live-view-overlay.is-light .live-view-image-close {
    background: rgba(226, 232, 240, 0.9);
    color: rgba(15, 23, 42, 0.8);
}

.dashboard .live-view-overlay.is-light .live-view-image-stage {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.4);
}

.dashboard .live-view-action-empty {
    color: rgba(148, 163, 184, 0.86);
    font-size: 0.74rem;
}

.dashboard .live-view-log {
    overflow: auto;
    padding: 9px 10px;
}

.dashboard .live-view-log-line+.live-view-log-line {
    margin-top: 5px;
}

.dashboard .live-view-typing-box {
    resize: none;
    outline: none;
    padding: 9px 10px;
    min-height: 84px;
    caret-color: transparent;
    cursor: default;
}

.dashboard .live-view-typing-box::placeholder {
    color: rgba(161, 161, 170, 0.72);
}

.dashboard .live-view-stream-panel.is-light .live-view-box {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.46);
}

.dashboard .live-view-stream-panel.is-light .live-view-panel-head {
    color: rgba(51, 65, 85, 0.92);
}

.dashboard .live-view-stream-panel.is-light .live-view-typing-box {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.58);
    color: rgba(15, 23, 42, 0.94);
}

.dashboard .live-view-stream-panel.is-light .live-view-typing-box::placeholder {
    color: rgba(71, 85, 105, 0.78);
}

.dashboard .live-view-stream-panel.is-light .live-view-control-select {
    background-color: rgba(241, 245, 249, 0.96);
    color: rgba(15, 23, 42, 0.94);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M5 7l5 6 5-6'/%3E%3C/svg%3E");
}

.dashboard .live-view-stream-panel.is-light .live-view-feed-settings {
    background: rgba(241, 245, 249, 0.92);
}

.dashboard .live-view-stream-panel.is-light .live-view-feed-title {
    color: rgba(51, 65, 85, 0.92);
}

.dashboard .live-view-stream-panel.is-light .live-view-feed-label {
    color: rgba(71, 85, 105, 0.9);
}

.dashboard .live-view-stream-panel.is-light .live-view-tool-btn {
    background: rgba(226, 232, 240, 0.92);
    color: rgba(51, 65, 85, 0.94);
}

.dashboard .live-view-stream-panel.is-light .live-view-tool-btn.export {
    background: rgba(16, 185, 129, 0.14);
    color: rgb(5 150 105);
}

.dashboard .live-view-stream-panel.is-light .live-view-tool-btn.export:hover {
    background: rgba(16, 185, 129, 0.2);
    color: rgb(4 120 87);
}

.dashboard .live-view-stream-panel.is-light .live-view-tool-btn.clear {
    background: rgba(239, 68, 68, 0.14);
    color: rgb(220 38 38);
}

.dashboard .live-view-stream-panel.is-light .live-view-tool-btn.clear:hover {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(185 28 28);
}

.dashboard .live-view-stream-panel.is-light .live-view-capture-stat {
    background: transparent;
}

.dashboard .live-view-stream-panel.is-light .live-view-capture-stat+.live-view-capture-stat::before {
    background: rgba(100, 116, 139, 0.45);
}

.dashboard .live-view-stream-panel.is-light .live-view-selfie-btn {
    background: rgba(226, 232, 240, 0.9);
    border-color: rgba(100, 116, 139, 0.4);
    color: rgba(15, 23, 42, 0.85);
}

.dashboard .live-view-stream-panel.is-light .live-view-selfie-btn:hover {
    background: rgba(203, 213, 225, 0.9);
    border-color: rgba(100, 116, 139, 0.6);
}

.dashboard .live-view-stream-panel.is-light .live-view-capture-stat-value {
    color: rgba(15, 23, 42, 0.94);
}

.dashboard .live-view-stream-panel.is-light .live-view-capture-stat-label {
    color: rgba(71, 85, 105, 0.86);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-feed {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.58);
    color: rgba(15, 23, 42, 0.94);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-line {
    background: rgba(241, 245, 249, 0.92);
    color: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.22);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-line.is-click {
    background: rgba(241, 245, 249, 0.98);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-line.is-key {
    background: rgba(239, 246, 255, 0.92);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-line.is-input {
    background: rgba(240, 253, 244, 0.92);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-line.is-system {
    background: rgba(248, 250, 252, 0.96);
    color: rgba(30, 41, 59, 0.92);
}

.dashboard .live-view-stream-panel.is-light .live-view-action-empty {
    color: rgba(71, 85, 105, 0.84);
}

@media (max-width: 980px) {
    .dashboard .live-view-body {
        grid-template-rows: minmax(220px, 1fr) minmax(260px, 0.56fr);
    }

    .dashboard .live-view-capture-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard .live-view-capture-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dashboard .live-view-stream-panel {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(120px, 0.55fr) minmax(120px, 0.45fr);
    }

    .dashboard .live-view-feed-settings {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 1220px) {
    .dashboard.live-view-open .main-content {
        padding-right: 48px;
    }

    .dashboard .live-view-overlay {
        left: 0;
        width: 100vw;
        padding: 0;
        background: rgba(2, 6, 13, 0.86);
    }

    .dashboard .live-view-resize-handle {
        display: none;
    }

    .dashboard .live-view-frame {
        border-radius: 0;
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .dashboard .live-view-context {
        grid-template-columns: 1fr;
    }
}

.dashboard.live-view-resizing,
.dashboard.live-view-resizing * {
    cursor: ew-resize !important;
    user-select: none !important;
}

.dashboard .table-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
}

.dashboard .table-footer p {
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard .settings-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

@media (max-width: 1400px) {
    .dashboard .settings-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard .settings-grid-layout {
        grid-template-columns: 1fr;
    }
}

.dashboard .settings-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard .settings-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.dashboard .settings-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 4px 12px;
}

.dashboard .settings-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.dashboard .settings-section-label i {
    font-size: 14px;
    color: var(--text-secondary);
    width: 18px;
    text-align: center;
}

.dashboard .settings-section-hint {
    font-size: 12px;
    color: rgba(161, 161, 170, 0.5);
    font-weight: 400;
}

.dashboard .settings-section-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.dashboard .settings-section-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: radial-gradient(circle at 50% -20%, rgba(161, 161, 170, 0.08) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.dashboard .settings-grid-layout>.settings-section:not(.settings-section-workflow) .settings-section-body {
    overflow: hidden;
}

.dashboard .settings-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 112px;
}

.dashboard .settings-sync-top {
    height: 148px;
}

.dashboard .settings-fields-stack .field {
    gap: 6px;
}

.dashboard .settings-fields-stack .field span {
    font-size: 10px;
    letter-spacing: 0.09em;
    color: rgba(174, 174, 184, 0.82);
}

.dashboard .settings-fields-stack .field input[type="text"],
.dashboard .settings-fields-stack .field input[type="password"] {
    height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    background: linear-gradient(180deg, rgba(16, 16, 20, 0.86) 0%, rgba(10, 10, 12, 0.92) 100%);
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(248, 250, 252, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard .settings-fields-stack .field input[type="text"]::placeholder,
.dashboard .settings-fields-stack .field input[type="password"]::placeholder {
    color: rgba(148, 148, 160, 0.72);
}

.dashboard .settings-fields-stack .field input[type="text"]:hover,
.dashboard .settings-fields-stack .field input[type="password"]:hover {
    border-color: rgba(82, 82, 91, 0.78);
}

.dashboard .settings-fields-stack .field input[type="text"]:focus,
.dashboard .settings-fields-stack .field input[type="password"]:focus {
    border-color: rgba(244, 244, 245, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.9) 0%, rgba(11, 11, 13, 0.95) 100%);
}

.dashboard .settings-divider {
    height: 1px;
    background: rgba(39, 39, 42, 0.45);
    margin: 4px 0;
}

.dashboard .settings-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
    margin-top: 0;
    align-content: start;
}

.dashboard .settings-toggle-grid .toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-height: 42px;
}

.dashboard .settings-toggle-grid .toggle-row>span:first-child {
    white-space: nowrap;
}

.dashboard .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 9px 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.dashboard .toggle-row:hover {
    color: var(--text-primary);
}

.dashboard .toggle-row input {
    display: none;
}

.dashboard .switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background-color: rgba(9, 9, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard .switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(161, 161, 170, 0.8), rgba(113, 113, 122, 0.8));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard .toggle-row input:checked+.switch {
    background-color: rgba(59, 130, 246, 0.8);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(59, 130, 246, 0.3);
}

.dashboard .toggle-row input:checked+.switch::after {
    transform: translateX(20px);
    background: linear-gradient(180deg, #ffffff, #f4f4f5);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.dashboard .toggle-row.is-green input:checked+.switch {
    background-color: rgba(16, 185, 129, 0.8);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(16, 185, 129, 0.3);
}

.dashboard .toggle-row.is-green input:checked+.switch::after {
    transform: translateX(20px);
    background: linear-gradient(180deg, #ffffff, #f4f4f5);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.dashboard .settings-section-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
}

.dashboard .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid rgba(39, 39, 42, 0.6);
    background: rgba(39, 39, 42, 0.25);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dashboard .btn-action:hover {
    background: rgba(39, 39, 42, 0.45);
    color: var(--text-primary);
    border-color: rgba(39, 39, 42, 0.8);
}

.dashboard .card {
    background: rgba(10, 10, 12, 0.65);
    border: 1px solid rgba(39, 39, 42, 0.5);
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.dashboard .card-glass {
    background: rgba(10, 10, 12, 0.65);
    border: 1px solid rgba(39, 39, 42, 0.5);
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.dashboard .card-highlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.dashboard .status-strip {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard .status-core {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard .status-core h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.dashboard .status-core p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(142, 65%, 52%);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: statusGlow 2s infinite;
}

.dashboard .status-indicator.disabled {
    background: hsl(0, 70%, 60%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    animation: none;
}

@keyframes statusGlow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.dashboard .status-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.dashboard .status-toggle-wrapper {
    display: flex;
    width: 100%;
}

.dashboard .btn-premium-toggle {
    width: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard .btn-premium-bg {
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: inherit;
    transition: all 0.3s ease;
}

.dashboard .btn-premium-text {
    position: relative;
    z-index: 2;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(158, 64%, 60%);
    transition: color 0.3s ease;
}

.dashboard .btn-premium-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.dashboard .btn-premium-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dashboard .btn-premium-toggle:hover .btn-premium-bg {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.dashboard .btn-premium-toggle:hover .btn-premium-glow {
    opacity: 1;
}

.dashboard .btn-premium-toggle.disabled .btn-premium-bg {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.dashboard .btn-premium-toggle.disabled .btn-premium-text {
    color: hsl(0, 70%, 65%);
}

.dashboard .btn-premium-toggle.disabled .btn-premium-glow {
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
}

.dashboard .btn-status {
    color: hsl(142, 70%, 70%);
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.dashboard .btn-status:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.45);
}

.dashboard .btn-status.disabled {
    color: hsl(0, 72%, 72%);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.dashboard .btn-status.disabled:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
}

.dashboard .status-strip {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.dashboard .status-core {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard .status-indicator-ring {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.dashboard .status-indicator-ring.disabled {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.2), 0 0 20px rgba(239, 68, 68, 0.1);
}

.dashboard .status-core .status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transition: all 0.3s ease;
}

.dashboard .status-core.disabled .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444;
}

.dashboard .status-core.disabled .status-info h2 {
    color: hsl(0, 70%, 70%);
}

.dashboard .status-core.disabled .status-info p {
    color: hsl(0, 74%, 66%);
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

.dashboard .status-info h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.dashboard .status-info p {
    font-size: 0.8125rem;
    color: hsl(158, 45%, 70%);
}

.dashboard .status-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard .metric-box {
    background: rgba(8, 8, 10, 0.55);
    border: 1px solid rgba(39, 39, 42, 0.62);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    box-shadow: none;
}

.dashboard .metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(161, 161, 170, 0.72);
    font-weight: 500;
}

.dashboard .metric-value {
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-shadow: none;
}

.dashboard .status-error-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard .status-error-row.is-disabled {
    opacity: 0.72;
}

.dashboard .status-error-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(161, 161, 170, 0.72);
    font-weight: 500;
}

.dashboard .status-error-select {
    width: 100%;
    background: rgba(8, 8, 10, 0.62);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 10px;
    padding: 10px 12px;
    padding-right: 32px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(161, 161, 170, 0.82) 50%),
        linear-gradient(135deg, rgba(161, 161, 170, 0.82) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard .status-error-select:hover {
    background-color: rgba(8, 8, 10, 0.75);
}

.dashboard .status-error-select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard .status-error-select option {
    background: #0b0b0d;
    color: var(--text-primary);
}

.dashboard .status-error-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dashboard .settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-auto-rows: 1fr;
}

.dashboard .settings-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.dashboard .card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard .card-head h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .card-head p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dashboard .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(39, 39, 42, 0.6);
    color: var(--text-secondary);
}

.dashboard .card-icon.blue {
    color: hsl(210, 80%, 65%);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.dashboard .card-icon.green {
    color: hsl(152, 70%, 55%);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dashboard .settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard .field span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.dashboard .field input {
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .field select {
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    padding-right: 28px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(161, 161, 170, 0.8) 50%),
        linear-gradient(135deg, rgba(161, 161, 170, 0.8) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .field input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard .field select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard .toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.dashboard .toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.dashboard .toggle>span:first-child {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.dashboard .toggle:hover>span:first-child {
    color: var(--text-primary);
}

.dashboard .toggle input {
    display: none;
}

.dashboard .switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background-color: rgba(9, 9, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard .switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(161, 161, 170, 0.8), rgba(113, 113, 122, 0.8));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard .toggle input:checked+.switch {
    background-color: rgba(59, 130, 246, 0.8);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(59, 130, 246, 0.3);
}

.dashboard .toggle input:checked+.switch::after {
    transform: translateX(20px);
    background: linear-gradient(180deg, #ffffff, #f4f4f5);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.dashboard .toggle.is-green input:checked+.switch {
    background-color: rgba(16, 185, 129, 0.8);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(16, 185, 129, 0.3);
}

.dashboard .settings-row {
    display: grid;
    gap: 16px;
}

.dashboard .toggle-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-primary);
}

.dashboard .toggle.compact .switch {
    width: 40px;
    height: 20px;
}

.dashboard .toggle.compact .switch::after {
    width: 14px;
    height: 14px;
}

.dashboard .slider-block {
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 12px;
    padding: 6px 10px 7px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 84px;
}

.dashboard .slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.dashboard .slider-head .muted {
    color: rgba(250, 250, 250, 0.92);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.dashboard .slider-input {
    width: 100%;
    appearance: none;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.5) 50%, rgba(24, 24, 27, 0.9) 50%, rgba(24, 24, 27, 0.9) 100%);
    border: 1px solid rgba(39, 39, 42, 0.75);
    outline: none;
}

.dashboard .slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.dashboard .slider-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.dashboard .alerts-body {
    gap: 20px;
}

.dashboard .alerts-body .alerts-volume-stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 11px;
}

.dashboard .alerts-body .settings-sync-top {
    min-height: 148px;
}

.dashboard .alerts-body.settings-section-body::before {
    display: none;
}

.dashboard .alerts-body .card-highlight {
    display: none;
}

.dashboard .alerts-body .volume-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.dashboard .alerts-body .volume-level-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(174, 174, 184, 0.88);
}

.dashboard .alerts-body .volume-level-header .muted {
    font-size: 11px;
    font-weight: 600;
    color: rgba(244, 244, 245, 0.95);
    letter-spacing: 0.05em;
}

.dashboard .alerts-body .volume-level-slider {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.dashboard .alerts-body .stroke-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard .alerts-body .slider-icon {
    width: 14px;
    height: 14px;
    color: rgba(161, 161, 170, 0.88);
}

.dashboard .alerts-body .slider-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, rgba(24, 112, 245, 0.92) 0%, rgba(24, 112, 245, 0.92) 50%, rgba(86, 95, 110, 0.62) 50%, rgba(86, 95, 110, 0.62) 100%);
    outline: none;
    cursor: pointer;
}

.dashboard .alerts-body .slider-input:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dashboard .alerts-body .slider-input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.dashboard .alerts-body .slider-input::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.dashboard .alerts-body .slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    border: 2px solid rgba(221, 228, 238, 0.9);
    background: linear-gradient(180deg, #ffffff, #e4e4e7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(59, 130, 246, 0.15);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard .alerts-body .slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.dashboard .alerts-body .slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(221, 228, 238, 0.9);
    background: linear-gradient(180deg, #ffffff, #e4e4e7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(59, 130, 246, 0.15);
    cursor: pointer;
}

.dashboard .alerts-body .audio-alert-row {
    min-height: 50px;
    padding: 9px 12px;
    border-radius: 12px;
    display: block;
    cursor: pointer;
}

.dashboard .alerts-body .audio-alert-row input {
    display: none;
}

.dashboard .alerts-body .audio-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard .alerts-body .audio-alert-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard .alerts-body .audio-alert-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 39, 42, 0.4);
    border: 1px solid rgba(39, 39, 42, 0.6);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .alerts-body .audio-alert-icon {
    width: 14px;
    height: 14px;
    color: rgba(161, 161, 170, 0.92);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.dashboard .alerts-body .audio-alert-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.dashboard .alerts-body .audio-alert-row:hover {
    border-color: rgba(82, 82, 91, 0.78);
}

.dashboard .alerts-body .toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background-color: rgba(9, 9, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.dashboard .alerts-body .toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(161, 161, 170, 0.8), rgba(113, 113, 122, 0.8));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard .alerts-body .audio-alert-row input:checked+.audio-alert-content .toggle-switch {
    background-color: rgba(16, 185, 129, 0.8);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(16, 185, 129, 0.3);
}

.dashboard .alerts-body .audio-alert-row input:checked+.audio-alert-content .toggle-switch::after {
    transform: translateX(20px);
    background: linear-gradient(180deg, #ffffff, #f4f4f5);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.dashboard .alerts-body .audio-alert-row input:checked+.audio-alert-content .audio-alert-icon-box {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.16);
}

.dashboard .alerts-body .audio-alert-row input:checked+.audio-alert-content .audio-alert-icon {
    color: hsl(158, 64%, 65%);
}

.dashboard .settings-section-workflow {
    grid-column: 1 / -1;
}

.dashboard .analytics-body {
    padding: 22px 24px 20px;
    gap: 16px;
}

.dashboard .status-strip .analytics-inline {
    padding: 0;
    gap: 16px;
}

.dashboard .status-strip .analytics-inline .analytics-chart-shell {
    padding: 0;
    margin-top: 2px;
    background: transparent;
    border-color: rgba(39, 39, 42, 0.55);
}

.dashboard .status-strip .analytics-inline #analyticsChartSvg {
    height: 132px;
}

.dashboard .status-strip .analytics-inline .analytics-main-stat strong {
    font-size: 1.55rem;
    line-height: 0.98;
}

.dashboard .status-strip .analytics-inline .analytics-main-stat {
    gap: 0;
    min-width: 0;
}

.dashboard .status-strip .analytics-inline .analytics-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    line-height: 1;
}

.dashboard .status-strip .analytics-inline .analytics-main-stat p span {
    font-size: 0.72rem;
    color: rgba(196, 196, 204, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard .status-strip .analytics-inline .analytics-axis {
    display: grid;
}

.dashboard .status-strip .analytics-inline .analytics-top-row {
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 16px;
    padding: 0 2px;
}

.dashboard .status-strip .analytics-inline .trend-pill {
    padding: 0;
    font-size: 11px;
    border: none;
    background: transparent;
    letter-spacing: 0.05em;
    color: rgba(248, 250, 252, 0.95);
}

.dashboard .analytics-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard .analytics-main-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard .analytics-overline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(196, 196, 204, 0.82);
}

.dashboard .analytics-main-stat p {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dashboard .analytics-main-stat strong {
    font-size: 2.25rem;
    line-height: 1;
    color: #f8fafc;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.dashboard .analytics-main-stat p span {
    font-size: 0.85rem;
    color: rgba(210, 210, 218, 0.82);
}

.dashboard .analytics-trend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dashboard .trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dashboard .trend-pill.positive {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(248, 250, 252, 0.95);
}

.dashboard .analytics-trend small {
    font-size: 11px;
    color: rgba(182, 182, 192, 0.78);
}

.dashboard .analytics-chart-shell {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.98) 0%, rgba(6, 6, 8, 0.92) 100%);
    border: 1px solid rgba(39, 39, 42, 0.95);
    border-radius: 14px;
    padding: 12px 12px 10px;
}

.dashboard #analyticsChartSvg {
    width: 100%;
    height: 220px;
    display: block;
}

.dashboard .analytics-grid-line {
    stroke: rgba(161, 161, 170, 0.22);
    stroke-width: 1;
}

.dashboard .analytics-grid-line-vertical {
    opacity: 0.45;
}

.dashboard #analyticsArea {
    opacity: 0.9;
}

.dashboard #analyticsLine {
    fill: none;
    stroke: #f8fafc;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 12px rgba(248, 250, 252, 0.34));
}

.dashboard .analytics-point {
    fill: #ffffff;
    stroke: rgba(248, 250, 252, 0.92);
    stroke-width: 2;
}

.dashboard .analytics-axis {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    padding: 0 2px;
}

.dashboard .analytics-axis span {
    font-size: 11px;
    color: rgba(174, 174, 184, 0.8);
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard .workflow-body {
    padding: 22px;
    gap: 16px;
}

.dashboard .workflow-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard .workflow-source {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(174, 174, 184, 0.78);
}

.dashboard .workflow-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    min-height: 420px;
}

.dashboard .workflow-canvas-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(82, 82, 91, 0.85) transparent;
    height: 100%;
    display: flex;
}

.dashboard .workflow-canvas-scroll::-webkit-scrollbar {
    height: 7px;
}

.dashboard .workflow-canvas-scroll::-webkit-scrollbar-thumb {
    background: rgba(82, 82, 91, 0.85);
    border-radius: 999px;
}

.dashboard .workflow-canvas {
    position: relative;
    flex: 1;
    min-width: 760px;
    min-height: 340px;
    height: 100%;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(39, 39, 42, 0.92);
    background-color: rgba(8, 8, 10, 0.96);
    background-image:
        linear-gradient(rgba(161, 161, 170, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(161, 161, 170, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    overflow: hidden;
}

.dashboard .workflow-canvas-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 760px;
    min-height: 340px;
    transition: transform 0.15s ease;
}

.dashboard .workflow-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 12%, rgba(248, 250, 252, 0.1), transparent 48%);
    pointer-events: none;
}

.dashboard .workflow-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dashboard .workflow-links path {
    fill: none;
    stroke: rgba(248, 250, 252, 0.9);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(248, 250, 252, 0.35));
}

.dashboard .workflow-node {
    position: absolute;
    z-index: 2;
    width: 170px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(63, 63, 70, 0.85);
    background: linear-gradient(180deg, rgba(18, 18, 21, 0.96) 0%, rgba(12, 12, 14, 0.96) 100%);
    color: rgba(226, 232, 240, 0.96);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: grab;
}

.dashboard .workflow-node:hover {
    border-color: rgba(248, 250, 252, 0.58);
}

.dashboard .workflow-node.active {
    border-color: rgba(248, 250, 252, 0.8);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.3), 0 0 26px rgba(248, 250, 252, 0.22);
}

.dashboard .workflow-node-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(239, 68, 68, 0.15);
    color: rgba(239, 68, 68, 0.8);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.dashboard .workflow-node:hover .workflow-node-delete {
    opacity: 1;
}

.dashboard .workflow-node-delete:hover {
    background: rgba(239, 68, 68, 0.35);
    color: rgba(248, 113, 113, 1);
}

.dashboard .workflow-toolbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.dashboard .workflow-zoom-label {
    min-width: 48px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashboard .workflow-zoom-in,
.dashboard .workflow-zoom-out {
    width: 30px;
    min-width: 30px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard .workflow-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.16) 0%, rgba(39, 39, 42, 0.42) 100%);
    color: rgba(248, 113, 113, 0.92);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard .workflow-clear-all .btn-icon {
    width: 13px;
    height: 13px;
    color: currentColor;
}

.dashboard .workflow-clear-all:hover {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.28) 0%, rgba(39, 39, 42, 0.58) 100%);
    color: rgba(252, 165, 165, 0.98);
}

.dashboard .workflow-index {
    font-size: 11px;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.92);
    letter-spacing: 0.04em;
}

.dashboard .workflow-node strong {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dashboard .workflow-node small.workflow-node-exchange {
    font-size: 12px;
    color: rgba(176, 176, 186, 0.9);
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard .workflow-node small.workflow-node-exchange img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.12);
}

.dashboard .workflow-node.node-entry {
    top: 56px;
    left: 32px;
}

.dashboard .workflow-node.node-recovery {
    top: 128px;
    left: 272px;
    width: 210px;
}

.dashboard .workflow-node.node-access {
    top: 58px;
    left: 542px;
}

.dashboard .workflow-node.node-balance {
    top: 188px;
    left: 542px;
}

.dashboard .workflow-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(39, 39, 42, 0.95);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.96) 0%, rgba(8, 8, 10, 0.96) 100%);
    padding: 16px;
}

.dashboard .workflow-editor h3 {
    font-size: 15px;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.96);
    letter-spacing: -0.01em;
}

.dashboard .workflow-editor p {
    font-size: 12px;
    color: rgba(176, 176, 186, 0.9);
    line-height: 1.5;
    margin-bottom: 4px;
}

.dashboard .workflow-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard .workflow-field span {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(174, 174, 184, 0.82);
}

.dashboard .workflow-field select {
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid rgba(63, 63, 70, 0.95);
    border-radius: 10px;
    padding: 10px 12px;
    padding-right: 30px;
    color: rgba(226, 232, 240, 0.95);
    font-size: 12px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(176, 176, 186, 0.88) 50%),
        linear-gradient(135deg, rgba(176, 176, 186, 0.88) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .workflow-field select:focus {
    border-color: rgba(248, 250, 252, 0.55);
    box-shadow: 0 0 0 3px rgba(248, 250, 252, 0.16);
}

.dashboard .workflow-confirm {
    margin-top: auto;
}

.dashboard .workflow-manager-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(2, 2, 3, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1200;
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
}

.dashboard .workflow-manager-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashboard .workflow-manager-modal {
    width: min(760px, 100%);
    max-height: min(86vh, 880px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.96) 0%, rgba(5, 5, 7, 0.96) 100%);
    border-color: rgba(39, 39, 42, 0.88);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard .workflow-manager-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(39, 39, 42, 0.8);
    background: rgba(24, 24, 27, 0.75);
    color: rgba(161, 161, 170, 0.96);
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.dashboard .workflow-manager-close:hover {
    color: rgba(248, 250, 252, 0.98);
    border-color: rgba(82, 82, 91, 0.85);
    background: rgba(39, 39, 42, 0.72);
}

.dashboard .workflow-manager-head h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(248, 250, 252, 0.96);
    margin: 0;
}

.dashboard .workflow-manager-head p {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(148, 148, 158, 0.8);
    line-height: 1.45;
}

.dashboard .workflow-manager-save-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard .workflow-manager-save-row label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(161, 161, 170, 0.84);
}

.dashboard .workflow-manager-save-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.dashboard .workflow-manager-save-controls input {
    height: 42px;
    padding: 0 12px;
    color: rgba(230, 236, 244, 0.96);
    font-size: 13px;
    border-radius: 10px;
}

.dashboard .workflow-manager-save-controls .workflow-save-as {
    width: auto;
    min-width: 122px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 12px;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.95) 0%, rgba(17, 17, 21, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.9);
    color: rgba(228, 230, 236, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard .workflow-manager-save-controls .workflow-save-as:hover {
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.95) 0%, rgba(21, 21, 25, 0.95) 100%);
    border-color: rgba(82, 82, 91, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard .workflow-manager-list-shell {
    border: 1px solid rgba(39, 39, 42, 0.92);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.94) 0%, rgba(5, 5, 7, 0.96) 100%);
    position: relative;
    overflow: hidden;
}

.dashboard .workflow-manager-list-shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 112px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.dashboard .workflow-manager-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(137, 137, 147, 0.88);
}

.dashboard .workflow-manager-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 282px;
    overflow: auto;
    padding-right: 2px;
}

.dashboard .workflow-manager-list::-webkit-scrollbar {
    width: 8px;
}

.dashboard .workflow-manager-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(63, 63, 70, 0.5);
}

.dashboard .workflow-manager-empty {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(161, 161, 170, 0.86);
}

.dashboard .workflow-manager-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(39, 39, 42, 0.88);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12, 12, 15, 0.92) 0%, rgba(9, 9, 12, 0.9) 100%);
    padding: 9px 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard .workflow-manager-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.dashboard .workflow-manager-item:hover {
    border-color: rgba(82, 82, 91, 0.86);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.dashboard .workflow-manager-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard .workflow-manager-item.is-selected {
    border-color: rgba(113, 113, 122, 0.88);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(17, 17, 22, 0.96) 0%, rgba(12, 12, 16, 0.94) 100%);
}

.dashboard .workflow-manager-item-main {
    min-width: 0;
    flex: 1;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.dashboard .workflow-manager-item-name {
    font-size: 13px;
    font-weight: 550;
    color: rgba(228, 232, 238, 0.97);
}

.dashboard .workflow-manager-item-meta {
    font-size: 11px;
    color: rgba(145, 145, 156, 0.84);
}

.dashboard .workflow-manager-item-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dashboard .workflow-manager-item-btn {
    border: 1px solid rgba(63, 63, 70, 0.9);
    border-radius: 8px;
    background: rgba(17, 17, 21, 0.88);
    color: rgba(153, 153, 163, 0.95);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 9px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.dashboard .workflow-manager-item-btn:hover {
    color: rgba(230, 234, 240, 0.97);
    border-color: rgba(82, 82, 91, 0.94);
    background: rgba(31, 31, 36, 0.92);
}

.dashboard .workflow-manager-item-expand {
    color: rgba(153, 153, 163, 0.95);
    border-color: rgba(63, 63, 70, 0.9);
    background: rgba(17, 17, 21, 0.88);
    padding-right: 20px;
    position: relative;
}

.dashboard .workflow-manager-item-expand::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.dashboard .workflow-manager-item-expand.is-open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.dashboard .workflow-manager-item-expand:hover {
    color: rgba(230, 234, 240, 0.97);
    border-color: rgba(82, 82, 91, 0.94);
    background: rgba(31, 31, 36, 0.92);
}

.dashboard .workflow-manager-item-btn.danger {
    color: rgba(248, 113, 113, 0.94);
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(127, 29, 29, 0.18);
}

.dashboard .workflow-manager-item-btn.danger:hover {
    color: rgba(254, 202, 202, 0.98);
    border-color: rgba(248, 113, 113, 0.52);
    background: rgba(127, 29, 29, 0.34);
}

.dashboard .workflow-manager-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid rgba(39, 39, 42, 0.78);
    position: relative;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding-top 0.22s ease, margin-top 0.22s ease;
}

.dashboard .workflow-manager-item-details.is-open {
    max-height: 560px;
    opacity: 1;
    margin-top: 4px;
    padding-top: 10px;
}

.dashboard .workflow-manager-item-details.is-open::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 12px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, rgba(82, 82, 91, 0.42) 0%, rgba(63, 63, 70, 0.24) 100%);
    pointer-events: none;
}

.dashboard .workflow-manager-page-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(39, 39, 42, 0.8);
    background: linear-gradient(180deg, rgba(9, 9, 12, 0.9) 0%, rgba(7, 7, 10, 0.88) 100%);
    margin-left: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dashboard .workflow-manager-page-row:hover {
    border-color: rgba(63, 63, 70, 0.95);
    background: linear-gradient(180deg, rgba(13, 13, 17, 0.92) 0%, rgba(9, 9, 12, 0.9) 100%);
}

.dashboard .workflow-manager-page-meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.dashboard .workflow-manager-page-index {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(202, 202, 214, 0.95);
    background: rgba(39, 39, 42, 0.85);
    border: 1px solid rgba(82, 82, 91, 0.74);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard .workflow-manager-page-logo {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: block;
    transform: scale(1.12);
}

.dashboard .workflow-manager-page-title {
    font-size: 12px;
    color: rgba(223, 227, 233, 0.95);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .workflow-manager-page-exchange {
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(145, 145, 156, 0.92);
    border: 1px solid rgba(63, 63, 70, 0.82);
    border-radius: 999px;
    padding: 3px 8px;
    flex-shrink: 0;
    background: rgba(17, 17, 21, 0.72);
}

.dashboard .workflow-manager-page-empty {
    font-size: 12px;
    color: rgba(161, 161, 170, 0.88);
    padding: 6px 4px 8px 8px;
    margin-left: 8px;
}

.dashboard .workflow-manager-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard .workflow-manager-actions .btn-mini {
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: none;
    background: rgba(17, 17, 21, 0.9);
    border: 1px solid rgba(63, 63, 70, 0.9);
    color: rgba(153, 153, 163, 0.95);
}

.dashboard .workflow-manager-actions .btn-mini:hover {
    background: rgba(31, 31, 36, 0.92);
    border-color: rgba(82, 82, 91, 0.95);
    color: rgba(230, 234, 240, 0.97);
}

.dashboard .workflow-load-btn {
    color: rgba(153, 153, 163, 0.95);
    border-color: rgba(63, 63, 70, 0.9);
    background: rgba(17, 17, 21, 0.9);
}

.dashboard .workflow-load-btn:hover {
    color: rgba(230, 234, 240, 0.97);
    border-color: rgba(82, 82, 91, 0.95);
    background: rgba(31, 31, 36, 0.92);
}

.dashboard .workflow-update-btn {
    color: rgba(153, 153, 163, 0.95);
}

.dashboard .workflow-delete-btn {
    color: rgba(248, 113, 113, 0.94);
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(127, 29, 29, 0.18);
}

.dashboard .workflow-delete-btn:hover {
    color: rgba(254, 202, 202, 0.98);
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.34);
}

.dashboard .workflow-close-btn {
    color: rgba(161, 161, 170, 0.95);
}

@media (max-width: 1180px) {
    .dashboard .workflow-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard .workflow-manager-modal {
        padding: 18px 14px 14px;
    }

    .dashboard .workflow-manager-save-controls {
        grid-template-columns: 1fr;
    }

    .dashboard .workflow-manager-save-controls .workflow-save-as {
        width: 100%;
    }

    .dashboard .workflow-manager-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard .workflow-manager-item-top {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard .workflow-manager-item-actions {
        justify-content: flex-start;
    }

    .dashboard .workflow-manager-actions .btn-mini {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .dashboard .analytics-axis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 6px;
    }

    .dashboard .workflow-canvas {
        min-width: 700px;
    }
}

.dashboard .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.dashboard .btn-solid,
.dashboard .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard .btn-solid {
    background-color: var(--primary-color);
    color: var(--primary-fg);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.dashboard .btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.dashboard .btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.1);
    color: hsl(0, 72%, 70%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dashboard .btn-outline:hover {
    background: rgba(239, 68, 68, 0.2);
}

.dashboard .btn-outline.danger {
    color: hsl(0, 72%, 70%);
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.1);
}

.dashboard .muted {
    color: var(--text-secondary);
}

@media (max-width: 1200px) {
    .dashboard .status-strip-grid {
        grid-template-columns: 1fr;
    }

    .dashboard .status-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard .status-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard .settings-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard .settings-grid {
        grid-template-columns: 1fr;
    }

    .dashboard .settings-form,
    .dashboard .toggle-grid,
    .dashboard .status-actions {
        grid-template-columns: 1fr;
    }

    .dashboard .status-actions-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard .users-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard .users-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.dashboard .users-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard .users-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard .user-card,
.dashboard .role-card,
.dashboard .users-table {
    padding: 22px;
}

.dashboard .user-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard .user-card-head h2 {
    font-size: 1rem;
    font-weight: 600;
}

.dashboard .pin-generator {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.dashboard .pin-output-row {
    display: block;
}

.dashboard .pin-output {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    display: block;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 4px 8px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(82, 82, 91, 0.85);
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: "Consolas", "Courier New", monospace;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: unset;
    scrollbar-width: thin;
}

.dashboard .pin-output-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.dashboard .pin-output-actions .pin-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 96px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(63, 63, 70, 0.6);
    background: rgba(24, 24, 27, 0.78);
    color: var(--text-secondary);
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.dashboard .pin-output-actions .pin-copy-btn span {
    white-space: nowrap;
}

.dashboard .pin-output-actions .pin-copy-btn:hover {
    color: var(--text-primary);
    border-color: rgba(82, 82, 91, 0.7);
    background: rgba(30, 30, 34, 0.85);
}

.dashboard .pin-output-actions .pin-copy-btn.copied {
    color: var(--text-primary);
    border-color: rgba(113, 113, 122, 0.8);
}

.dashboard .user-form {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.dashboard .role-selector {
    margin-bottom: 16px;
}

.dashboard .section-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dashboard .role-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard .user-card .role-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard .role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.6);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dashboard .role-pill.active {
    color: var(--text-primary);
    border-color: rgba(82, 82, 91, 0.7);
    background: rgba(24, 24, 27, 0.6);
}

.dashboard .role-card-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.dashboard .role-card-head p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.dashboard .role-list {
    display: grid;
    gap: 16px;
}

.dashboard .role-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dashboard .role-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.dashboard .role-title.admin {
    color: rgba(244, 244, 245, 0.85);
}

.dashboard .role-title.mover {
    color: rgba(161, 161, 170, 0.9);
}

.dashboard .users-table .table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard .users-table .table-head h2 {
    font-size: 1rem;
    font-weight: 600;
}

.dashboard .table-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dashboard .table-grid {
    display: grid;
    gap: 6px;
}

.dashboard .table-row {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr 0.8fr 0.7fr;
    gap: 12px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(39, 39, 42, 0.5);
    font-size: 0.85rem;
}

.dashboard .table-row.header {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 4px 12px 2px;
}

.dashboard .table-row.table-empty {
    grid-template-columns: 1fr;
    padding: 10px 12px;
}

.dashboard .table-row.table-empty span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dashboard .pin-created {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.dashboard .role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(39, 39, 42, 0.6);
    color: var(--text-secondary);
}

.dashboard .role-badge.admin {
    color: rgba(244, 244, 245, 0.85);
}

.dashboard .role-badge.mover {
    color: rgba(161, 161, 170, 0.9);
}

.dashboard .table-actions {
    display: inline-flex;
    gap: 6px;
}

.dashboard .pin-row-copy-btn.copied {
    color: var(--text-primary);
    border-color: rgba(113, 113, 122, 0.8);
}

.dashboard .user-card .btn-solid:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dashboard .user-card .btn-solid:disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .dashboard .users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard .table-row {
        grid-template-columns: 1.6fr 1fr;
        grid-auto-rows: auto;
    }

    .dashboard .table-row.header {
        display: none;
    }

    .dashboard .table-actions {
        justify-content: flex-end;
    }
}

.dashboard .domains-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard .domains-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard .domains-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.dashboard .domains-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.12);
    color: hsl(192, 90%, 70%);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard .btn-accent:hover {
    transform: translateY(-1px);
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
}

.dashboard .domains-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.dashboard .connect-card,
.dashboard .domain-card {
    padding: 18px;
}

.dashboard .connect-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.dashboard .connect-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .connect-head p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dashboard .add-domain-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.7fr) minmax(0, 0.6fr);
    gap: 10px;
    align-items: center;
    background: rgba(8, 8, 10, 0.45);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.dashboard .add-domain-input,
.dashboard .add-domain-select {
    background: rgba(24, 24, 27, 0.55);
    border: 1px solid rgba(39, 39, 42, 0.7);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.dashboard .add-domain-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(161, 161, 170, 0.8) 50%),
        linear-gradient(135deg, rgba(161, 161, 170, 0.8) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.dashboard .connect-form.compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard .connect-card .field span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.dashboard .connect-card input,
.dashboard .connect-card select {
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .connect-card select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(161, 161, 170, 0.8) 50%),
        linear-gradient(135deg, rgba(161, 161, 170, 0.8) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.dashboard .connect-card input:focus,
.dashboard .connect-card select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.dashboard .nameserver-panel {
    background: rgba(8, 8, 10, 0.5);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 16px;
    margin-bottom: 12px;
}

.dashboard .nameserver-list {
    display: grid;
    gap: 10px;
}

.dashboard .nameserver-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard .nameserver-head h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard .nameserver-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(39, 39, 42, 0.5);
    font-size: 0.85rem;
}

.dashboard .nameserver-row span {
    font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: rgba(244, 244, 245, 0.85);
}

.dashboard .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.6);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard .btn-ghost:hover {
    background: rgba(39, 39, 42, 0.7);
    border-color: rgba(82, 82, 91, 0.7);
}

.dashboard .btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(39, 39, 42, 0.7);
    background: rgba(24, 24, 27, 0.7);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dashboard .btn-mini:hover {
    color: var(--text-primary);
    background: rgba(39, 39, 42, 0.7);
    border-color: rgba(82, 82, 91, 0.7);
}

.dashboard .btn-mini:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dashboard .connect-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.dashboard .connect-actions .btn-solid {
    flex: 1;
}

.dashboard .domains-list {
    display: grid;
    gap: 16px;
}

.dashboard .list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard .list-head h2 {
    font-size: 1rem;
    font-weight: 600;
}

.dashboard .list-filters {
    display: inline-flex;
    gap: 8px;
}

.dashboard .filter-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(39, 39, 42, 0.6);
    background: rgba(24, 24, 27, 0.6);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard .filter-chip.active {
    color: var(--text-primary);
    border-color: rgba(39, 39, 42, 0.6);
    background: rgba(24, 24, 27, 0.6);
}

.dashboard .domain-card {
    position: relative;
}

.dashboard .domain-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard .domain-head h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .domain-head p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard .state-tag {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.dashboard .state-tag.active {
    background: rgba(16, 185, 129, 0.15);
    color: hsl(158, 64%, 65%);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.dashboard .state-tag.pending {
    background: rgba(234, 179, 8, 0.15);
    color: hsl(45, 90%, 70%);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.dashboard .state-tag.disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: hsl(0, 70%, 75%);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.dashboard .domain-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.dashboard .domain-field span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard .domain-field select {
    width: 100%;
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
}

.dashboard .domain-ns {
    display: grid;
    gap: 8px;
}

.dashboard .domain-ns-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.55);
    border: 1px solid rgba(39, 39, 42, 0.6);
    font-size: 0.78rem;
    color: rgba(244, 244, 245, 0.8);
}

.dashboard .domain-ns-row i {
    color: rgba(161, 161, 170, 0.8);
    font-size: 12px;
}

.dashboard .domain-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(39, 39, 42, 0.6);
    background: rgba(24, 24, 27, 0.6);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard .icon-btn:hover {
    background: rgba(39, 39, 42, 0.7);
    color: var(--text-primary);
}

@media (max-width: 1100px) {
    .dashboard .domains-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard .domains-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard .connect-form,
    .dashboard .add-domain-bar,
    .dashboard .domain-body {
        grid-template-columns: 1fr;
    }

    .dashboard .status-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dashboard .domains-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard .domains-hero {
    padding: 22px;
    display: block;
}

.dashboard .domains-hero-main h1 {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.dashboard .domains-hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(161, 161, 170, 0.85);
    margin-bottom: 8px;
}

.dashboard .domains-hero-main p {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.dashboard .btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(14, 116, 144, 0.14));
    color: hsl(190, 90%, 72%);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .btn-accent:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 232, 249, 0.55);
    box-shadow: 0 6px 18px rgba(34, 211, 238, 0.22);
}

.dashboard .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.58);
    border: 1px solid rgba(63, 63, 70, 0.72);
    color: rgba(244, 244, 245, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dashboard .btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(39, 39, 42, 0.8);
    border-color: rgba(82, 82, 91, 0.95);
}

.dashboard .domains-control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

.dashboard .domains-provision {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.dashboard .domains-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard .domains-card-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .domains-card-head p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard .domains-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard .domains-field-span-2 {
    grid-column: span 2;
}

.dashboard .domains-form .field span {
    font-size: 0.62rem;
    letter-spacing: 0.11em;
}

.dashboard .domains-form .field input,
.dashboard .domains-form .field select {
    font-size: 0.83rem;
    border-radius: 10px;
    padding: 11px 12px;
}

.dashboard .provision-ns-panel {
    background: rgba(8, 8, 10, 0.52);
    border: 1px solid rgba(39, 39, 42, 0.62);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.dashboard .provision-ns-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard .provision-ns-head h3 {
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard .provision-ns-head span {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.dashboard .provision-ns-list {
    display: grid;
    gap: 8px;
}

.dashboard .provision-ns-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(39, 39, 42, 0.65);
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.62);
    padding: 8px 10px;
}

.dashboard .provision-ns-row span {
    font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
    font-size: 0.78rem;
    color: rgba(244, 244, 245, 0.88);
}

.dashboard .connect-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.dashboard .connect-actions .btn-solid,
.dashboard .connect-actions .btn-ghost {
    flex: 1;
    width: auto;
    justify-content: center;
}

.dashboard .domains-registry {
    display: grid;
    gap: 12px;
}

.dashboard .domains-registry .list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard .domains-registry .list-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .list-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.dashboard .registry-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard .list-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard .filter-chip {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(39, 39, 42, 0.72);
    background: rgba(24, 24, 27, 0.6);
    color: var(--text-secondary);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.dashboard .filter-chip.active {
    color: rgba(248, 250, 252, 0.95);
    border-color: rgba(82, 82, 91, 0.95);
    background: rgba(39, 39, 42, 0.74);
}

.dashboard .domain-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    border: 1px solid rgba(39, 39, 42, 0.72);
    border-radius: 10px;
    background: rgba(16, 16, 20, 0.78);
    padding: 0 10px;
    height: 37px;
}

.dashboard .domain-search i {
    font-size: 12px;
    color: rgba(161, 161, 170, 0.85);
}

.dashboard .domain-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.79rem;
}

.dashboard .domain-search input::placeholder {
    color: rgba(161, 161, 170, 0.72);
}

.dashboard .domains-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard .domains-grid .domain-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(14, 14, 18, 0.9), rgba(8, 8, 10, 0.9));
    border: 1px solid rgba(39, 39, 42, 0.7);
    border-radius: 14px;
    padding: 15px;
    display: grid;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .domains-grid .domain-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.dashboard .domains-grid .domain-card:hover {
    transform: translateY(-2px);
    border-color: rgba(82, 82, 91, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dashboard .domains-grid .domain-card[hidden] {
    display: none !important;
}

.dashboard .domain-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard .domain-card-head h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .domain-card-head p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dashboard .domains-grid .state-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard .domains-grid .state-tag i {
    font-size: 0.45rem;
}

.dashboard .domains-grid .state-tag.active {
    background: rgba(16, 185, 129, 0.14);
    color: hsl(158, 65%, 64%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dashboard .domains-grid .state-tag.pending {
    background: rgba(234, 179, 8, 0.14);
    color: hsl(45, 90%, 70%);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.dashboard .domains-grid .state-tag.disconnected {
    background: rgba(239, 68, 68, 0.14);
    color: hsl(0, 75%, 72%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dashboard .domain-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard .meta-chip {
    border: 1px solid rgba(39, 39, 42, 0.65);
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.58);
    padding: 8px;
    display: grid;
    gap: 2px;
}

.dashboard .meta-chip span {
    font-size: 0.62rem;
    color: rgba(161, 161, 170, 0.88);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard .meta-chip strong {
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard .domain-progress-wrap {
    display: grid;
    gap: 6px;
}

.dashboard .domain-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.dashboard .domain-progress-head strong {
    color: rgba(244, 244, 245, 0.92);
    font-size: 0.73rem;
}

.dashboard .domain-progress-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.74);
    border: 1px solid rgba(39, 39, 42, 0.75);
    overflow: hidden;
}

.dashboard .domain-progress-track span {
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.66), rgba(14, 165, 233, 0.88));
}

.dashboard .domains-grid .domain-ns {
    display: grid;
    gap: 7px;
}

.dashboard .domains-grid .domain-ns-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(39, 39, 42, 0.66);
    border-radius: 10px;
    background: rgba(19, 19, 23, 0.68);
    padding: 7px 8px;
}

.dashboard .domains-grid .domain-ns-row i {
    color: rgba(161, 161, 170, 0.78);
    font-size: 0.72rem;
}

.dashboard .domains-grid .domain-ns-row span {
    font-size: 0.74rem;
    color: rgba(244, 244, 245, 0.9);
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard .domain-footer {
    margin-top: 2px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.dashboard .domain-route {
    display: grid;
    gap: 6px;
}

.dashboard .domain-route span {
    font-size: 0.62rem;
    color: rgba(161, 161, 170, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dashboard .domain-route select {
    width: 100%;
    background: rgba(8, 8, 10, 0.66);
    border: 1px solid rgba(39, 39, 42, 0.7);
    border-radius: 10px;
    padding: 9px 11px;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.dashboard .domains-grid .domain-actions {
    display: inline-flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard .domain-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid rgba(39, 39, 42, 0.75);
    background: rgba(24, 24, 27, 0.72);
    color: rgba(244, 244, 245, 0.92);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard .domain-action-btn:hover {
    background: rgba(39, 39, 42, 0.78);
    border-color: rgba(82, 82, 91, 0.95);
}

.dashboard .domain-action-btn.danger {
    color: hsl(0, 74%, 70%);
    border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 1120px) {

    .dashboard .domains-control-grid,
    .dashboard .domains-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard .registry-controls {
        align-items: stretch;
    }

    .dashboard .domain-search {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .dashboard .domains-form {
        grid-template-columns: 1fr;
    }

    .dashboard .domains-field-span-2 {
        grid-column: auto;
    }

    .dashboard .domain-meta-grid {
        grid-template-columns: 1fr;
    }

    .dashboard .domain-footer {
        grid-template-columns: 1fr;
    }

    .dashboard .domains-grid .domain-actions {
        width: 100%;
    }

    .dashboard .domain-action-btn {
        flex: 1;
    }
}

.dashboard .domains-shell {
    max-width: 1060px;
    margin: 0 auto;
    gap: 18px;
}

.dashboard .domains-header {
    display: block;
    margin-bottom: 2px;
}

.dashboard .domains-header h1 {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard .domains-header p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.dashboard .domains-control-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.dashboard .domains-provision {
    padding: 18px;
    gap: 12px;
    border-radius: 14px;
}

.dashboard .domains-card-head h2 {
    font-size: 0.98rem;
}

.dashboard .domains-card-head p {
    font-size: 0.78rem;
}

.dashboard .domains-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
    gap: 12px;
    align-items: start;
}

.dashboard .domains-form {
    gap: 10px;
}

.dashboard .domains-form .field input,
.dashboard .domains-form .field select {
    font-size: 0.8rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.dashboard .provision-ns-panel {
    height: 100%;
    gap: 8px;
    background: rgba(12, 12, 15, 0.72);
    border-radius: 12px;
    border-color: rgba(63, 63, 70, 0.62);
}

.dashboard .provision-ns-head h3 {
    font-size: 0.82rem;
}

.dashboard .provision-ns-head span {
    font-size: 0.72rem;
}

.dashboard .provision-ns-row {
    padding: 7px 9px;
}

.dashboard .provision-ns-row span {
    font-size: 0.75rem;
}

.dashboard .provision-note {
    font-size: 0.72rem;
    color: rgba(161, 161, 170, 0.88);
    line-height: 1.4;
}

.dashboard .connect-actions {
    justify-content: flex-end;
    gap: 8px;
}

.dashboard .connect-actions .btn-ghost,
.dashboard .connect-actions .btn-solid {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    padding: 10px 14px;
    font-size: 0.74rem;
}

.dashboard .domains-registry {
    gap: 10px;
}

.dashboard .registry-controls {
    gap: 8px;
}

.dashboard .list-filters {
    gap: 6px;
}

.dashboard .filter-chip {
    padding: 6px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    border-radius: 999px;
    border-color: rgba(63, 63, 70, 0.78);
    background: rgba(24, 24, 27, 0.58);
}

.dashboard .filter-chip.active {
    background: rgba(244, 244, 245, 0.08);
    border-color: rgba(113, 113, 122, 0.9);
    color: rgba(250, 250, 250, 0.96);
}

.dashboard .domain-search {
    height: 34px;
    min-width: 220px;
    border-radius: 9px;
}

.dashboard .domain-search input {
    font-size: 0.76rem;
}

.dashboard .domains-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.dashboard .domains-grid .domain-card {
    padding: 12px 13px;
    border-radius: 12px;
    background: rgba(14, 14, 18, 0.9);
    border-color: rgba(63, 63, 70, 0.7);
    gap: 9px;
}

.dashboard .domains-grid .domain-card::before {
    display: none;
}

.dashboard .domains-grid .domain-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.dashboard .domain-card-head h3 {
    font-size: 0.92rem;
}

.dashboard .domain-card-head p {
    font-size: 0.73rem;
}

.dashboard .domains-grid .state-tag {
    font-size: 0.6rem;
    padding: 4px 8px;
}

.dashboard .domain-overview {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.dashboard .domain-info-block {
    display: grid;
    gap: 5px;
}

.dashboard .domain-info-block span {
    font-size: 0.62rem;
    color: rgba(161, 161, 170, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard .domain-info-block strong {
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard .domain-info-block select {
    width: 100%;
    background: rgba(8, 8, 10, 0.68);
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 0.78rem;
    color: var(--text-primary);
}

.dashboard .domain-ns-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dashboard .domain-ns-inline span {
    font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
    font-size: 0.72rem;
    color: rgba(228, 228, 231, 0.9);
    border: 1px solid rgba(63, 63, 70, 0.72);
    background: rgba(24, 24, 27, 0.62);
    border-radius: 999px;
    padding: 5px 9px;
}

.dashboard .domains-grid .domain-actions {
    gap: 7px;
}

.dashboard .domain-action-btn {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.66rem;
}

@media (max-width: 920px) {
    .dashboard .domains-create-grid {
        grid-template-columns: 1fr;
    }

    .dashboard .registry-controls {
        align-items: stretch;
    }

    .dashboard .domain-search {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .dashboard .domain-overview {
        grid-template-columns: 1fr;
    }

    .dashboard .connect-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .dashboard .connect-actions .btn-ghost,
    .dashboard .connect-actions .btn-solid {
        flex: 1;
    }
}

.dashboard .domains-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 14px;
}

.dashboard .domains-header {
    margin-bottom: 0;
}

.dashboard .domains-header h1 {
    font-size: 1.34rem;
    margin-bottom: 2px;
}

.dashboard .domains-header p {
    font-size: 0.8rem;
}

.dashboard .domains-provision {
    padding: 14px 15px;
    gap: 10px;
}

.dashboard .domains-card-head h2 {
    font-size: 0.94rem;
}

.dashboard .domains-card-head p {
    font-size: 0.74rem;
}

.dashboard .domains-quick-form {
    display: grid;
    grid-template-columns: minmax(0, 2.9fr) minmax(180px, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.dashboard .quick-field {
    display: grid;
    gap: 5px;
}

.dashboard .quick-field span {
    font-size: 0.61rem;
    color: rgba(161, 161, 170, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.dashboard .quick-field input,
.dashboard .quick-field select {
    width: 100%;
    background: rgba(8, 8, 10, 0.66);
    border: 1px solid rgba(63, 63, 70, 0.75);
    border-radius: 9px;
    color: var(--text-primary);
    font-size: 0.78rem;
    padding: 9px 10px;
    outline: none;
}

.dashboard .quick-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(161, 161, 170, 0.75) 50%),
        linear-gradient(135deg, rgba(161, 161, 170, 0.75) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 24px;
}

.dashboard .domains-add-btn {
    width: auto;
    min-width: 120px;
    height: 36px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.73rem;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

.dashboard .ns-inline-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid rgba(63, 63, 70, 0.68);
    border-radius: 10px;
    padding: 8px 9px;
    background: rgba(12, 12, 15, 0.72);
}

.dashboard .ns-label {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(161, 161, 170, 0.88);
}

.dashboard .ns-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(63, 63, 70, 0.75);
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(24, 24, 27, 0.62);
    color: rgba(244, 244, 245, 0.9);
    cursor: pointer;
}

.dashboard .ns-chip code {
    font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
    font-size: 0.72rem;
}

.dashboard .ns-copy-icon {
    font-size: 0.66rem;
    color: rgba(161, 161, 170, 0.95);
}

.dashboard .ns-chip:hover {
    border-color: rgba(113, 113, 122, 0.92);
}

.dashboard .ns-chip.is-copied {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.13);
}

.dashboard .ns-chip.is-copied .ns-copy-icon {
    color: hsl(158, 64%, 66%);
}

.dashboard .ns-chip.is-failed {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.dashboard .ns-chip.is-failed .ns-copy-icon {
    color: hsl(0, 76%, 72%);
}

.dashboard .domains-registry {
    gap: 8px;
}

.dashboard .registry-controls {
    gap: 7px;
}

.dashboard .list-filters {
    gap: 5px;
}

.dashboard .filter-chip {
    padding: 5px 9px;
    font-size: 0.59rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.dashboard .domain-search {
    height: 32px;
    min-width: 210px;
    padding: 0 9px;
}

.dashboard .domain-search input {
    font-size: 0.74rem;
}

.dashboard .domains-grid {
    gap: 8px;
    overflow: visible;
}

.dashboard .domains-grid .domain-card {
    position: relative;
    overflow: visible;
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(170deg, rgba(16, 16, 20, 0.84) 0%, rgba(10, 10, 12, 0.94) 100%);
    border: 1px solid rgba(39, 39, 42, 0.62);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.015), 0 7px 24px rgba(0, 0, 0, 0.31);
    gap: 9px;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.dashboard .domains-grid .domain-card.is-select-open {
    z-index: 140;
}

.dashboard .domains-provision.is-select-open {
    z-index: 160;
}

.dashboard .domains-grid .domain-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 118px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
    pointer-events: none;
}

.dashboard .domains-grid .domain-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -30%, rgba(161, 161, 170, 0.06) 0%, transparent 66%);
    pointer-events: none;
}

.dashboard .domains-grid .domain-card>* {
    position: relative;
    z-index: 1;
}

.dashboard .domains-grid .domain-card:hover {
    transform: translateY(-1px);
    border-color: rgba(82, 82, 91, 0.86);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.024), 0 11px 28px rgba(0, 0, 0, 0.34);
}

.dashboard .domain-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(39, 39, 42, 0.56);
    padding-bottom: 8px;
}

.dashboard .domain-row-main h3 {
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.dashboard .domain-row-main p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.dashboard .domains-grid .state-tag {
    font-size: 0.58rem;
    padding: 4px 7px;
}

.dashboard .domain-row-meta {
    display: grid;
    grid-template-columns: minmax(120px, 0.72fr) minmax(220px, 1.25fr) minmax(340px, 1.9fr) auto;
    gap: 8px;
    align-items: end;
}

.dashboard .domain-row-field {
    display: grid;
    gap: 4px;
}

.dashboard .domain-row-field span {
    font-size: 0.59rem;
    color: rgba(161, 161, 170, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard .domain-row-field strong {
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard .domain-row-ns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard .domain-row-ns .domain-ns-chip {
    min-height: 30px;
    padding: 4px 8px;
    gap: 7px;
}

.dashboard .domain-row-ns .domain-ns-tag {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(161, 161, 170, 0.95);
}

.dashboard .domain-row-ns .domain-ns-chip code {
    font-size: 0.66rem;
    line-height: 1.2;
}

.dashboard .domain-row-ns .domain-ns-chip .ns-copy-icon {
    font-size: 0.6rem;
}

.dashboard .domain-row-routing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.domain-route-control {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: relative;
    z-index: 1;
    transition: z-index 0.2s;
}

.domain-route-control:has(.domain-wheel-select.is-open) {
    z-index: 100;
}

.domain-route-control.workflow-route-control:has(.domain-wheel-select.is-open) {
    z-index: 110;
}

.domain-route-control.landing-route-control:has(.domain-wheel-select.is-open) {
    z-index: 120;
}

.dashboard .domain-route-control>span {
    font-size: 0.59rem;
    color: rgba(161, 161, 170, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard .domain-wheel-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(63, 63, 70, 0.72);
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(7, 7, 9, 0.98) 100%);
    padding: 6px 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: 100%;
}

.dashboard .domain-wheel-select::after {
    display: none;
}

.dashboard .domain-wheel-select i {
    font-size: 0.72rem;
    color: rgba(148, 148, 160, 0.82);
}

.dashboard .domain-wheel-select:hover {
    border-color: rgba(82, 82, 91, 0.86);
    background: linear-gradient(180deg, rgba(13, 13, 16, 0.98) 0%, rgba(9, 9, 11, 0.98) 100%);
}

.dashboard .domain-wheel-select select {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    color: rgba(226, 232, 240, 0.96);
    font-size: 0.78rem;
    font-weight: 550;
    outline: none;
    appearance: none;
    padding: 0 24px 0 0;
}

.dashboard .domain-wheel-select.is-custom-ready select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.dashboard .domain-select-trigger,
.dashboard .domain-select-menu {
    display: none;
}

.dashboard .domain-wheel-select.is-custom-ready .domain-select-trigger {
    display: inline-flex;
}

.dashboard .domain-select-trigger {
    width: 100%;
    min-height: 26px;
    border: none;
    background: transparent;
    color: rgba(226, 232, 240, 0.96);
    padding: 0 24px 0 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: left;
}

.dashboard .domain-select-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.64;
}

.dashboard .domain-select-trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 550;
}

.dashboard .domain-select-trigger-arrow {
    font-size: 0.68rem;
    color: rgba(148, 148, 160, 0.86);
    transition: transform 0.15s ease, color 0.15s ease;
}

.dashboard .domain-wheel-select.is-open .domain-select-trigger-arrow {
    transform: rotate(180deg);
    color: rgba(244, 244, 245, 0.94);
}

.dashboard .domain-wheel-select.is-open {
    z-index: 80;
}

.dashboard .domain-select-menu {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% + 7px);
    z-index: 60;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(63, 63, 70, 0.86);
    background: linear-gradient(180deg, rgba(12, 12, 16, 0.98) 0%, rgba(8, 8, 11, 0.99) 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    padding: 6px;
}

.dashboard .domain-select-search {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(63, 63, 70, 0.74);
    border-radius: 9px;
    background: rgba(10, 10, 13, 0.98);
    min-height: 32px;
    padding: 0 8px;
    margin-bottom: 6px;
}

.dashboard .domain-select-search i {
    font-size: 0.62rem;
    color: rgba(148, 148, 160, 0.82);
}

.dashboard .domain-select-search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: rgba(226, 232, 240, 0.94);
    font-size: 0.7rem;
    outline: none;
}

.dashboard .domain-select-search-input::placeholder {
    color: rgba(148, 148, 160, 0.72);
}

.dashboard .domain-select-search:focus-within {
    border-color: rgba(59, 130, 246, 0.58);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dashboard .domain-wheel-select.is-custom-ready.is-open .domain-select-menu {
    display: block;
}

.dashboard .domain-select-menu::-webkit-scrollbar {
    width: 6px;
}

.dashboard .domain-select-menu::-webkit-scrollbar-thumb {
    background: rgba(82, 82, 91, 0.86);
    border-radius: 999px;
}

.dashboard .domain-select-group {
    padding: 6px 8px 4px;
    margin-top: 4px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 148, 160, 0.86);
    font-weight: 600;
}

.dashboard .domain-select-option {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: rgba(226, 232, 240, 0.94);
    min-height: 34px;
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.72rem;
    text-align: left;
}

.dashboard .domain-select-option[hidden],
.dashboard .domain-select-group[hidden] {
    display: none !important;
}

.dashboard .domain-select-option:hover {
    border-color: rgba(63, 63, 70, 0.74);
    background: rgba(39, 39, 42, 0.46);
}

.dashboard .domain-select-option.is-active {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 64, 175, 0.24);
}

.dashboard .domain-option-logo-shell {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(63, 63, 70, 0.72);
    background: rgba(10, 10, 12, 0.94);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .domain-option-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transform: scale(1.3);
}

.dashboard .domain-option-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .route-mode-select {
    color: rgba(244, 244, 245, 0.96);
    font-weight: 600;
}

.dashboard .domain-route-control:first-child .domain-select-trigger-label {
    color: rgba(244, 244, 245, 0.96);
    font-weight: 600;
}

.dashboard .domain-wheel-select.has-logo {
    padding-left: 9px;
}

.dashboard .domain-template-logo-shell {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(63, 63, 70, 0.72);
    background: rgba(8, 8, 10, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .domain-template-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transform: scale(1.3);
}

.dashboard .domain-wheel-select:focus-within {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dashboard .domain-row-actions {
    display: inline-flex;
    gap: 7px;
    justify-self: end;
    align-self: stretch;
    align-items: flex-end;
}

.dashboard .domain-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 35px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(63, 63, 70, 0.76);
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.66) 0%, rgba(24, 24, 27, 0.82) 100%);
    color: rgba(228, 228, 231, 0.93);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.dashboard .domain-action-btn i {
    font-size: 0.67rem;
    color: rgba(161, 161, 170, 0.88);
}

.dashboard .domain-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(113, 113, 122, 0.86);
    background: linear-gradient(180deg, rgba(52, 52, 58, 0.72) 0%, rgba(28, 28, 32, 0.86) 100%);
}

.dashboard .domain-action-btn.danger {
    border-color: rgba(185, 28, 28, 0.42);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.36) 0%, rgba(69, 16, 16, 0.7) 100%);
    color: rgba(252, 165, 165, 0.94);
}

.dashboard .domain-action-btn.danger i {
    color: rgba(252, 165, 165, 0.86);
}

@media (max-width: 940px) {
    .dashboard .domains-quick-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard .quick-domain {
        grid-column: span 2;
    }

    .dashboard .domains-add-btn {
        justify-self: end;
    }

    .dashboard .domain-row-meta {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 6px;
    }

    .dashboard .domain-row-routing {
        grid-column: span 2;
    }

    .dashboard .domain-row-actions {
        grid-column: span 2;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .dashboard .domains-shell {
        max-width: 100%;
    }

    .dashboard .quick-domain {
        grid-column: auto;
    }

    .dashboard .domains-quick-form {
        grid-template-columns: 1fr;
    }

    .dashboard .domains-add-btn {
        width: 100%;
        justify-self: stretch;
    }

    .dashboard .registry-controls {
        align-items: stretch;
    }

    .dashboard .domain-search {
        width: 100%;
        min-width: 0;
    }

    .dashboard .domain-row-meta {
        grid-template-columns: 1fr;
    }

    .dashboard .domain-row-routing {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .dashboard .domain-row-actions {
        grid-column: auto;
        justify-self: start;
    }

    .dashboard .domain-action-btn {
        flex: 1;
    }
}

.dashboard .profile-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard .profile-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.dashboard .profile-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard .profile-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.dashboard .profile-grid>.profile-card:only-child {
    grid-column: 1 / -1;
}

.dashboard .profile-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard .profile-avatar-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.dashboard .profile-avatar-trigger {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard .profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(150deg, rgba(39, 39, 42, 0.9), rgba(15, 15, 18, 0.95));
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.dashboard .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard .profile-avatar-edit {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(39, 39, 42, 0.8);
    background: rgba(8, 8, 10, 0.9);
    color: rgba(244, 244, 245, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dashboard .profile-avatar-meta h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.dashboard .profile-avatar-meta p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dashboard .profile-form {
    display: grid;
    gap: 14px;
}

.dashboard .profile-message {
    min-height: 20px;
    font-size: 0.8rem;
    color: hsl(145, 70%, 68%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard .profile-message.is-visible {
    opacity: 1;
}

.dashboard .profile-message.error {
    color: hsl(0, 75%, 72%);
}

.dashboard .profile-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard .profile-card-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard .profile-card-head p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dashboard .profile-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard .profile-field-span-2 {
    grid-column: span 2;
}

.dashboard .profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard .profile-actions .btn-solid {
    width: auto;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
}

.dashboard .profile-actions .btn-outline {
    font-size: 12px;
}

.dashboard .profile-session-list {
    display: grid;
    gap: 10px;
    padding-top: 6px;
}

.dashboard .profile-session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(24, 24, 27, 0.45);
    border: 1px solid rgba(39, 39, 42, 0.5);
    border-radius: 12px;
    padding: 10px 12px;
}

.dashboard .profile-session-row strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.dashboard .profile-session-row p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@media (max-width: 1100px) {
    .dashboard .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .dashboard .profile-password-grid {
        grid-template-columns: 1fr;
    }

    .dashboard .profile-field-span-2 {
        grid-column: auto;
    }

    .dashboard .profile-actions {
        justify-content: stretch;
    }

    .dashboard .profile-actions .btn-solid,
    .dashboard .profile-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

.exchange-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: auto;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.exchange-list-container::-webkit-scrollbar {
    width: 4px;
}

.exchange-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.exchange-list-container::-webkit-scrollbar-thumb {
    background-color: rgba(63, 63, 70, 0.4);
    border-radius: 4px;
}

.exchange-category {
    background: linear-gradient(180deg, rgba(16, 16, 20, 0.6) 0%, rgba(10, 10, 12, 0.8) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.exchange-category:hover {
    border-color: rgba(82, 82, 91, 0.6);
}

.exchange-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
}

.exchange-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exchange-circle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.exchange-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transform: scale(1.14);
}

.exchange-logo-text span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.95);
    letter-spacing: 0.01em;
}

.category-toggle {
    font-size: 11px;
    color: rgba(148, 148, 160, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
}

.exchange-category.is-open .category-toggle {
    transform: rotate(180deg);
    color: rgba(248, 250, 252, 0.9);
}

.exchange-category-pages {
    display: none;
    flex-direction: column;
    padding: 6px 10px 10px;
    gap: 4px;
    border-top: 1px solid rgba(63, 63, 70, 0.3);
    margin-top: 0;
    padding-top: 6px;
}

.exchange-category.is-open .exchange-category-pages {
    display: flex;
}

.draggable-page {
    font-size: 12px;
    color: rgba(174, 174, 184, 0.85);
    padding: 7px 10px;
    background: rgba(24, 24, 27, 0.35);
    border: 1px solid rgba(63, 63, 70, 0.22);
    border-left: 2px solid rgba(63, 63, 70, 0.35);
    border-radius: 6px;
    cursor: grab;
    transition: all 0.15s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.draggable-page::before {
    content: '\f58e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    color: rgba(148, 148, 160, 0.4);
    flex-shrink: 0;
}

.draggable-page:hover {
    color: rgba(248, 250, 252, 0.95);
    background: rgba(39, 39, 42, 0.5);
    border-color: rgba(82, 82, 91, 0.5);
    border-left-color: rgba(99, 102, 241, 0.6);
}

.draggable-page:hover::before {
    color: rgba(148, 148, 160, 0.7);
}

.draggable-page:active {
    cursor: grabbing;
    background: rgba(49, 49, 54, 0.6);
}

.dashboard .domains-shell .card-glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: visible;
}

.dashboard .domains-shell .card-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 118px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
    pointer-events: none;
}

.dashboard .domains-shell .card-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% -30%, rgba(161, 161, 170, 0.06) 0%, transparent 66%);
    pointer-events: none;
}

.dashboard .domains-shell .card-glass>* {
    position: relative;
    z-index: 1;
}

.dashboard .domains-shell .card-highlight {
    display: none;
}

.dashboard .input-glass {
    width: 100%;
    background: rgba(8, 8, 10, 0.66);
    border: 1px solid rgba(63, 63, 70, 0.75);
    border-radius: 9px;
    color: var(--text-primary);
    font-size: 0.78rem;
    padding: 9px 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .input-glass::placeholder {
    color: rgba(148, 148, 160, 0.72);
}

.dashboard .input-glass:focus {
    border-color: rgba(244, 244, 245, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard .input-glass-select {
    appearance: none;
    cursor: pointer;
}

.dashboard .select-glass {
    width: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(7, 7, 9, 0.98) 100%);
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 12px;
    padding: 8px 11px;
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 550;
    outline: none;
    appearance: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard .select-glass:hover {
    border-color: rgba(82, 82, 91, 0.86);
}

.dashboard .select-glass:focus {
    border-color: rgba(244, 244, 245, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard .domain-row-routing {
    grid-template-columns: minmax(150px, 0.8fr) minmax(200px, 1.2fr);
}

.dashboard .domain-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(39, 39, 42, 0.75);
    background: rgba(24, 24, 27, 0.72);
    color: rgba(244, 244, 245, 0.92);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.dashboard .domain-action-btn i {
    font-size: 0.75rem;
    color: inherit;
}

.dashboard .domain-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(82, 82, 91, 0.95);
    background: rgba(39, 39, 42, 0.78);
}

.dashboard .domain-action-btn.danger {
    color: hsl(0, 74%, 70%);
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(24, 24, 27, 0.72);
}

.dashboard .domain-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.dashboard .domain-empty-state {
    padding: 32px;
    display: grid;
    gap: 8px;
    place-items: center;
    text-align: center;
}

.dashboard .domain-empty-state[hidden] {
    display: none !important;
}

.dashboard .domain-empty-state i {
    font-size: 2rem;
    color: rgba(161, 161, 170, 0.4);
}

.dashboard .domain-empty-state p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard .toast.success {
    border-color: rgba(16, 185, 129, 0.36);
    background: rgba(8, 12, 10, 0.95);
}

.dashboard .toast.success .toast-title {
    color: hsl(158, 65%, 64%);
}

.dashboard .toast.error {
    border-color: rgba(239, 68, 68, 0.36);
    background: rgba(15, 8, 8, 0.95);
}

.dashboard .toast.error .toast-title {
    color: hsl(0, 76%, 72%);
}

.dashboard .domains-provision {
    padding: 15px 16px 14px;
    gap: 11px;
}

.dashboard .domains-provision .domains-card-head h2 {
    font-size: 0.96rem;
    letter-spacing: -0.01em;
}

.dashboard .domains-provision .domains-card-head p {
    font-size: 0.74rem;
    color: rgba(161, 161, 170, 0.85);
}

.dashboard .domains-provision .domains-quick-form {
    grid-template-columns: minmax(0, 2.7fr) minmax(190px, 1fr) auto;
    gap: 10px;
    position: relative;
    z-index: 8;
}

.dashboard .domains-provision .quick-field {
    gap: 6px;
}

.dashboard .domains-provision .quick-field>span {
    font-size: 0.62rem;
    letter-spacing: 0.095em;
}

.dashboard .domains-provision .create-domain-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.dashboard .domains-provision .create-domain-input-shell i {
    position: absolute;
    left: 11px;
    font-size: 0.72rem;
    color: rgba(148, 148, 160, 0.82);
    pointer-events: none;
    transition: color 0.2s ease;
}

.dashboard .domains-provision .create-domain-input {
    min-height: 40px;
    border-radius: 12px;
    padding: 10px 12px 10px 31px;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.95) 0%, rgba(7, 7, 9, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard .domains-provision .create-domain-input:hover {
    border-color: rgba(82, 82, 91, 0.86);
}

.dashboard .domains-provision .create-domain-input-shell:focus-within i {
    color: rgba(244, 244, 245, 0.78);
}

.dashboard .domains-provision .create-registrar-select-wrap {
    min-height: 40px;
}

.dashboard .domains-provision .create-registrar-select-wrap .domain-select-trigger {
    min-height: 26px;
    font-size: 0.76rem;
}

.dashboard .domains-provision .create-registrar-select-wrap .domain-select-trigger-label {
    font-weight: 550;
}

.dashboard .domains-provision .domain-wheel-select.is-open {
    z-index: 40;
}

.dashboard .domains-provision .domain-select-menu {
    z-index: 140;
}

.dashboard .domains-provision .domains-add-btn {
    min-width: 126px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
}

.dashboard .domains-provision .domains-add-btn i {
    font-size: 0.72rem;
}

.dashboard .domains-provision .ns-inline-panel {
    position: relative;
    z-index: 3;
}

@media (max-width: 940px) {
    .dashboard .domains-provision .domains-quick-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard .domains-provision .quick-domain {
        grid-column: span 2;
    }

    .dashboard .domains-provision .domains-add-btn {
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .dashboard .domains-provision .quick-domain {
        grid-column: auto;
    }

    .dashboard .domains-provision .domains-quick-form {
        grid-template-columns: 1fr;
    }

    .dashboard .domains-provision .domains-add-btn {
        width: 100%;
        justify-self: stretch;
    }
}

.dashboard .main-content.settings {
    padding: 28px;
}

.dashboard .main-content.settings .header {
    margin-bottom: 32px;
}

.dashboard .main-content.settings .header h1 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard .main-content.settings .header p {
    font-size: 14px;
    color: rgba(161, 161, 170, 0.95);
}

.dashboard .main-content.settings .settings-grid-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

@media (max-width: 1200px) {
    .dashboard .main-content.settings .settings-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .dashboard .main-content.settings .settings-grid-layout {
        grid-template-columns: 1fr;
    }
}

.dashboard .main-content.settings .settings-section-head {
    align-items: baseline;
    gap: 12px;
    padding: 0 4px 12px;
}

.dashboard .main-content.settings .settings-section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dashboard .main-content.settings .settings-section-label i {
    color: rgba(161, 161, 170, 0.92);
}

.dashboard .main-content.settings .settings-section-hint {
    font-size: 12px;
    color: rgba(161, 161, 170, 0.5);
}

.dashboard .main-content.settings .settings-section-body {
    padding: 24px;
    gap: 20px;
}

.dashboard .main-content.settings .card-highlight {
    width: 120px;
}

.dashboard .main-content.settings .settings-fields-stack {
    gap: 16px;
    min-height: 0;
}

.dashboard .main-content.settings .settings-sync-top {
    height: auto;
    min-height: 0;
}

.dashboard .main-content.settings .settings-fields-stack .field {
    gap: 6px;
}

.dashboard .main-content.settings .settings-fields-stack .field span {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(161, 161, 170, 0.8);
    text-transform: uppercase;
}

.dashboard .main-content.settings .settings-fields-stack .field input[type="text"],
.dashboard .main-content.settings .settings-fields-stack .field input[type="password"] {
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
}

.dashboard .main-content.settings .settings-divider {
    margin: 0;
}

.dashboard .main-content.settings .settings-toggle-grid {
    gap: 0 32px;
}

.dashboard .main-content.settings .settings-toggle-grid .toggle-row {
    min-height: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard .main-content.settings .settings-toggle-grid .toggle-row>span:first-child {
    white-space: nowrap;
    color: rgba(161, 161, 170, 0.95);
}

.dashboard .main-content.settings .settings-section-footer {
    margin-top: auto;
    padding-top: 12px;
}

.dashboard .main-content.settings .settings-section-footer .btn-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.95);
    background: rgba(39, 39, 42, 0.25);
    border: 1px solid rgba(39, 39, 42, 0.6);
}

.dashboard .main-content.settings .settings-section-footer .btn-action:hover {
    color: rgba(250, 250, 250, 0.96);
}

.dashboard .main-content.settings .status-toggle-wrapper {
    justify-content: center;
}

.dashboard .main-content.settings #statusToggle {
    width: auto;
    padding: 10px 24px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: none;
}

.dashboard .main-content.settings #statusToggle .btn-premium-bg,
.dashboard .main-content.settings #statusToggle .btn-premium-glow {
    display: none;
}

.dashboard .main-content.settings #statusToggle .btn-premium-text {
    color: hsl(158, 64%, 70%);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.dashboard .main-content.settings #statusToggle:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.dashboard .main-content.settings #statusToggle.disabled {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.dashboard .main-content.settings #statusToggle.disabled .btn-premium-text {
    color: hsl(0, 70%, 65%);
}

.dashboard .main-content.settings .status-error-row.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dashboard .main-content.settings {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dashboard .main-content.settings button,
.dashboard .main-content.settings input,
.dashboard .main-content.settings select,
.dashboard .main-content.settings textarea {
    font-family: inherit;
}

.dashboard .main-content.settings .header h1 {
    font-weight: 600;
    line-height: 1.1;
}

.dashboard .main-content.settings .header p {
    font-weight: 400;
    line-height: 1.4;
}

.dashboard .main-content.settings .settings-section-label {
    font-weight: 600;
    line-height: 1.2;
}

.dashboard .main-content.settings .settings-section-hint {
    font-weight: 400;
    line-height: 1.2;
}

.dashboard .main-content.settings .status-core h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

.dashboard .main-content.settings .status-core p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.dashboard .main-content.settings .status-error-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.dashboard .main-content.settings .status-error-select {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.dashboard .main-content.settings .settings-fields-stack .field span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.dashboard .main-content.settings .settings-fields-stack .field input[type="text"],
.dashboard .main-content.settings .settings-fields-stack .field input[type="password"] {
    font-size: 13px;
    font-weight: 400;
}

.dashboard .main-content.settings .settings-toggle-grid .toggle-row>span:first-child {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}

.dashboard .main-content.settings .settings-section-footer .btn-action {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
}

.dashboard .main-content.settings #statusToggle .btn-premium-text {
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.dashboard .main-content.settings .volume-level-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(161, 161, 170, 0.88);
}

.dashboard .main-content.settings .volume-level-header .muted {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.dashboard .main-content.settings .audio-alert-label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}

.dashboard .main-content.settings,
.dashboard .main-content.settings h1,
.dashboard .main-content.settings h2,
.dashboard .main-content.settings h3,
.dashboard .main-content.settings p,
.dashboard .main-content.settings span,
.dashboard .main-content.settings label,
.dashboard .main-content.settings strong,
.dashboard .main-content.settings button,
.dashboard .main-content.settings input,
.dashboard .main-content.settings select,
.dashboard .main-content.settings option,
.dashboard .main-content.settings textarea {
    font-family: 'Inter', sans-serif !important;
}

.dashboard .main-content.settings i.fa-solid,
.dashboard .main-content.settings i.fa-regular,
.dashboard .main-content.settings i.fa-brands,
.dashboard .main-content.settings [class*=" fa-"] {
    font-family: 'Font Awesome 6 Free' !important;
}

.dashboard .main-content.settings i.fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
}

.dashboard .main-content.settings .ui-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dashboard .main-content.settings .settings-section-label .section-icon {
    width: 16px;
    height: 16px;
    color: rgba(161, 161, 170, 0.92);
}

.dashboard .main-content.settings .settings-section-footer .btn-action .btn-icon {
    width: 12px;
    height: 12px;
}

.dashboard .main-content.settings .alerts-body.settings-section-body::before {
    display: block;
}

.dashboard .main-content.settings .alerts-body .card-highlight {
    display: block;
}

.dashboard .main-content.settings .alerts-body .volume-level-slider .slider-icon {
    width: 16px;
    height: 16px;
    color: rgba(161, 161, 170, 0.9);
}

.dashboard .main-content.settings,
.dashboard .main-content.settings h1,
.dashboard .main-content.settings h2,
.dashboard .main-content.settings h3,
.dashboard .main-content.settings p,
.dashboard .main-content.settings span,
.dashboard .main-content.settings label,
.dashboard .main-content.settings strong,
.dashboard .main-content.settings button,
.dashboard .main-content.settings input,
.dashboard .main-content.settings select,
.dashboard .main-content.settings option,
.dashboard .main-content.settings textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.dashboard .main-content.settings .alerts-body .volume-level-slider {
    min-height: 50px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard .main-content.settings .alerts-body .audio-alert-row {
    min-height: 54px;
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard .main-content.settings .alerts-body .audio-alert-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 122px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
    z-index: 1;
}

.dashboard .main-content.settings .alerts-body .audio-alert-row .audio-alert-content {
    position: relative;
    z-index: 2;
}

.dashboard .main-content.settings,
.dashboard .main-content.settings h1,
.dashboard .main-content.settings h2,
.dashboard .main-content.settings h3,
.dashboard .main-content.settings p,
.dashboard .main-content.settings span,
.dashboard .main-content.settings label,
.dashboard .main-content.settings strong,
.dashboard .main-content.settings button,
.dashboard .main-content.settings input,
.dashboard .main-content.settings select,
.dashboard .main-content.settings option,
.dashboard .main-content.settings textarea {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0 !important;
}

.dashboard .main-content.settings .header h1 {
    font-size: 24px;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: hsl(var(--foreground));
}

.dashboard .main-content.settings .header p {
    font-size: 14px;
    font-weight: 400 !important;
    color: hsl(var(--muted-foreground));
}

.dashboard .main-content.settings .settings-section-label {
    font-size: 13px;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: hsl(var(--foreground));
}

.dashboard .main-content.settings .settings-section-hint {
    font-size: 12px;
    font-weight: 400 !important;
    color: rgba(161, 161, 170, 0.95) !important;
}

.dashboard .main-content.settings .settings-toggle-grid .toggle-row>span:first-child,
.dashboard .main-content.settings .audio-alert-label {
    font-size: 13px;
    font-weight: 400 !important;
    color: hsl(var(--muted-foreground));
}

.dashboard .main-content.settings .settings-section-footer .btn-action {
    font-size: 12px;
    font-weight: 500 !important;
    color: rgba(161, 161, 170, 0.95) !important;
    background: rgba(39, 39, 42, 0.25) !important;
    border: 1px solid rgba(39, 39, 42, 0.6) !important;
}

.dashboard .main-content.settings .settings-section-footer .btn-action:hover {
    color: hsl(var(--foreground)) !important;
    background: rgba(39, 39, 42, 0.25) !important;
    border-color: rgba(39, 39, 42, 0.6) !important;
}

.dashboard .main-content.settings .volume-level-label,
.dashboard .main-content.settings .settings-fields-stack .field span,
.dashboard .main-content.settings .status-error-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: rgba(136, 147, 163, 0.96) !important;
}

.dashboard .main-content.settings .volume-level-header .muted {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
    letter-spacing: 0 !important;
}

.dashboard .main-content.settings .settings-fields-stack .field input[type="text"],
.dashboard .main-content.settings .settings-fields-stack .field input[type="password"] {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: hsl(var(--foreground)) !important;
}

.dashboard .main-content.settings .settings-fields-stack .field input[type="text"]::placeholder,
.dashboard .main-content.settings .settings-fields-stack .field input[type="password"]::placeholder {
    color: rgba(167, 176, 190, 0.78) !important;
    font-weight: 400 !important;
}

.dashboard .main-content.settings .settings-section-footer .btn-action .btn-icon {
    width: 12px;
    height: 12px;
    color: currentColor;
}

.dashboard .main-content.settings .audio-alert-label {
    color: rgba(161, 161, 170, 0.95) !important;
    font-weight: 400 !important;
}

.dashboard .main-content.settings .workflow-manager-overlay {
    background: radial-gradient(circle at 50% 0%, rgba(13, 13, 17, 0.64) 0%, rgba(2, 2, 3, 0.92) 62%);
    backdrop-filter: blur(7px);
}

.dashboard .main-content.settings .workflow-manager-modal {
    width: min(860px, 100%);
    max-height: min(88vh, 920px);
    border-radius: 16px;
    border: 1px solid rgba(39, 39, 42, 0.96);
    background: linear-gradient(180deg, rgba(9, 9, 12, 0.98) 0%, rgba(6, 6, 8, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.02);
    gap: 14px;
    padding: 20px 20px 16px;
}

.dashboard .main-content.settings .workflow-manager-head {
    padding-right: 36px;
}

.dashboard .main-content.settings .workflow-manager-head h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(238, 242, 247, 0.97);
}

.dashboard .main-content.settings .workflow-manager-head p {
    color: rgba(140, 140, 150, 0.86);
    line-height: 1.45;
}

.dashboard .main-content.settings .workflow-manager-close {
    background: rgba(17, 17, 21, 0.94);
    border-color: rgba(63, 63, 70, 0.9);
    color: rgba(148, 148, 158, 0.96);
}

.dashboard .main-content.settings .workflow-manager-close:hover {
    background: rgba(28, 28, 33, 0.95);
    border-color: rgba(82, 82, 91, 0.94);
    color: rgba(229, 233, 240, 0.96);
}

.dashboard .main-content.settings .workflow-manager-save-row label {
    color: rgba(142, 142, 152, 0.9);
}

.dashboard .main-content.settings .workflow-manager-save-controls {
    gap: 10px;
}

.dashboard .main-content.settings .workflow-manager-save-controls input {
    background: linear-gradient(180deg, rgba(12, 12, 15, 0.95) 0%, rgba(9, 9, 12, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.88);
    color: rgba(220, 224, 232, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard .main-content.settings .workflow-manager-save-controls input:focus {
    border-color: rgba(113, 113, 122, 0.95);
    box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard .main-content.settings .workflow-manager-save-controls .workflow-save-as {
    background: linear-gradient(180deg, rgba(21, 21, 26, 0.96) 0%, rgba(15, 15, 20, 0.96) 100%);
    border: 1px solid rgba(71, 71, 80, 0.92);
    color: rgba(220, 224, 232, 0.96);
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard .main-content.settings .workflow-manager-save-controls .workflow-save-as:hover {
    background: linear-gradient(180deg, rgba(29, 29, 35, 0.97) 0%, rgba(19, 19, 25, 0.97) 100%);
    border-color: rgba(95, 95, 106, 0.95);
}

.dashboard .main-content.settings .workflow-manager-list-shell {
    border: 1px solid rgba(39, 39, 42, 0.96);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 8, 11, 0.96) 0%, rgba(5, 5, 7, 0.98) 100%);
    padding: 12px;
}

.dashboard .main-content.settings .workflow-manager-list-shell::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.dashboard .main-content.settings .workflow-manager-list-head {
    color: rgba(130, 130, 141, 0.88);
    margin-bottom: 12px;
}

.dashboard .main-content.settings .workflow-manager-list {
    gap: 10px;
    max-height: 312px;
    padding-right: 4px;
}

.dashboard .main-content.settings .workflow-manager-list::-webkit-scrollbar {
    width: 9px;
}

.dashboard .main-content.settings .workflow-manager-list::-webkit-scrollbar-thumb {
    background: rgba(63, 63, 70, 0.44);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.dashboard .main-content.settings .workflow-manager-item {
    border: 1px solid rgba(45, 45, 52, 0.96);
    border-radius: 14px;
    padding: 11px;
    background: linear-gradient(180deg, rgba(12, 12, 16, 0.97) 0%, rgba(8, 8, 11, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dashboard .main-content.settings .workflow-manager-item::before {
    width: 110px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
}

.dashboard .main-content.settings .workflow-manager-item:hover {
    border-color: rgba(74, 74, 84, 0.95);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard .main-content.settings .workflow-manager-item.is-selected {
    border-color: rgba(106, 106, 118, 0.96);
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.98) 0%, rgba(10, 10, 13, 0.96) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard .main-content.settings .workflow-manager-item-top {
    align-items: center;
    gap: 12px;
}

.dashboard .main-content.settings .workflow-manager-item-main {
    justify-content: center;
}

.dashboard .main-content.settings .workflow-manager-item-name {
    font-size: 14px;
    font-weight: 550;
    color: rgba(228, 232, 238, 0.97);
    letter-spacing: -0.01em;
}

.dashboard .main-content.settings .workflow-manager-item-meta {
    font-size: 11px;
    color: rgba(137, 137, 147, 0.88);
    margin-top: 3px;
}

.dashboard .main-content.settings .workflow-manager-item-actions {
    gap: 6px;
}

.dashboard .main-content.settings .workflow-manager-item-btn {
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(63, 63, 70, 0.92);
    background: rgba(16, 16, 20, 0.94);
    color: rgba(152, 152, 163, 0.95);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
}

.dashboard .main-content.settings .workflow-manager-item-btn:hover {
    background: rgba(29, 29, 35, 0.95);
    border-color: rgba(87, 87, 98, 0.96);
    color: rgba(226, 230, 236, 0.98);
}

.dashboard .main-content.settings .workflow-manager-item-expand {
    padding-right: 22px;
}

.dashboard .main-content.settings .workflow-manager-item-expand::after {
    right: 9px;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.dashboard .main-content.settings .workflow-manager-item-expand.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.dashboard .main-content.settings .workflow-manager-item-btn.danger {
    color: rgba(244, 133, 133, 0.96);
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(73, 20, 20, 0.38);
}

.dashboard .main-content.settings .workflow-manager-item-btn.danger:hover {
    color: rgba(254, 208, 208, 0.98);
    border-color: rgba(248, 113, 113, 0.62);
    background: rgba(97, 27, 27, 0.48);
}

.dashboard .main-content.settings .workflow-manager-item-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    transition: max-height 0.3s ease, opacity 0.24s ease, padding-top 0.24s ease, margin-top 0.24s ease;
}

.dashboard .main-content.settings .workflow-manager-item-details.is-open {
    max-height: 560px;
    opacity: 1;
    margin-top: 2px;
    padding: 10px;
    border: 1px solid rgba(42, 42, 49, 0.92);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(8, 8, 11, 0.92) 0%, rgba(6, 6, 9, 0.94) 100%);
}

.dashboard .main-content.settings .workflow-manager-item-details.is-open::before {
    display: none;
}

.dashboard .main-content.settings .workflow-manager-page-row {
    margin-left: 0;
    border: 1px solid rgba(40, 40, 47, 0.92);
    border-radius: 9px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(14, 14, 18, 0.92) 0%, rgba(10, 10, 14, 0.9) 100%);
    cursor: grab;
    user-select: none;
}

.dashboard .main-content.settings .workflow-manager-page-row:hover {
    border-color: rgba(67, 67, 76, 0.94);
    background: linear-gradient(180deg, rgba(17, 17, 22, 0.94) 0%, rgba(12, 12, 17, 0.92) 100%);
}

.dashboard .main-content.settings .workflow-manager-page-row.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
    border-style: dashed;
}

.dashboard .main-content.settings .workflow-manager-page-row.is-drop-target {
    border-color: rgba(106, 106, 118, 0.98);
    box-shadow: 0 0 0 1px rgba(106, 106, 118, 0.45);
}

.dashboard .main-content.settings .workflow-manager-page-index {
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: rgba(228, 232, 238, 0.96);
    background: linear-gradient(180deg, rgba(32, 32, 39, 0.95) 0%, rgba(24, 24, 30, 0.95) 100%);
    border: 1px solid rgba(92, 92, 106, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dashboard .main-content.settings .workflow-manager-page-row:hover .workflow-manager-page-index {
    border-color: rgba(115, 115, 130, 0.95);
    background: linear-gradient(180deg, rgba(38, 38, 46, 0.96) 0%, rgba(28, 28, 35, 0.96) 100%);
    color: rgba(240, 244, 248, 0.98);
}

.dashboard .main-content.settings .workflow-manager-page-logo {
    width: 17px;
    height: 17px;
}

.dashboard .main-content.settings .workflow-manager-page-title {
    color: rgba(218, 222, 228, 0.96);
    font-weight: 500;
}

.dashboard .main-content.settings .workflow-manager-page-exchange {
    color: rgba(143, 143, 154, 0.95);
    border-color: rgba(63, 63, 70, 0.86);
    background: rgba(16, 16, 20, 0.86);
    letter-spacing: 0.03em;
}

.dashboard .main-content.settings .workflow-manager-page-empty {
    color: rgba(141, 141, 151, 0.9);
    padding: 4px 2px;
    margin-left: 0;
}

.dashboard .main-content.settings .workflow-manager-actions {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(39, 39, 42, 0.84);
}

.dashboard .main-content.settings .workflow-manager-actions .btn-mini,
.dashboard .main-content.settings .workflow-load-btn,
.dashboard .main-content.settings .workflow-update-btn,
.dashboard .main-content.settings .workflow-close-btn {
    background: rgba(16, 16, 20, 0.94);
    border-color: rgba(63, 63, 70, 0.92);
    color: rgba(152, 152, 163, 0.95);
}

.dashboard .main-content.settings .workflow-manager-actions .btn-mini:hover,
.dashboard .main-content.settings .workflow-load-btn:hover,
.dashboard .main-content.settings .workflow-update-btn:hover,
.dashboard .main-content.settings .workflow-close-btn:hover {
    background: rgba(29, 29, 35, 0.95);
    border-color: rgba(87, 87, 98, 0.96);
    color: rgba(226, 230, 236, 0.98);
}

@media (max-width: 760px) {
    .dashboard .main-content.settings .workflow-manager-modal {
        width: min(860px, 100%);
        padding: 16px 14px 14px;
    }

    .dashboard .main-content.settings .workflow-manager-item-top {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard .main-content.settings .workflow-manager-item-actions {
        justify-content: flex-start;
    }

    .dashboard .main-content.settings .workflow-manager-item-btn {
        height: 28px;
    }
}

.dashboard .main-content.domains {
    padding: 28px;
    --domains-card-bg: var(--card-bg);
    --domains-card-border: var(--border-color);
    --domains-card-shadow: var(--card-shadow);
    --domains-control-bg: var(--card-bg);
    --domains-control-border: var(--border-color);
    --domains-control-hover-border: rgba(255, 255, 255, 0.15);
    --domains-text: var(--text-primary);
    --domains-muted: var(--text-secondary);
}

.dashboard .main-content.domains .domains-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.dashboard .main-content.domains .domains-header {
    margin: 0;
}

.dashboard .main-content.domains .domains-header h1 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard .main-content.domains .domains-header p {
    font-size: 14px;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domains-control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.dashboard .main-content.domains .domains-provision {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--domains-card-border);
    background: var(--domains-card-bg);
    box-shadow: var(--domains-card-shadow);
    display: grid;
    gap: 14px;
    position: relative;
}

.dashboard .main-content.domains .domains-provision.card-glass::before,
.dashboard .main-content.domains .domains-provision.card-glass::after {
    content: none;
    display: none;
}

.dashboard .main-content.domains .domains-card-head h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dashboard .main-content.domains .domains-card-head p {
    font-size: 12px;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domains-quick-form {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(210px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.dashboard .main-content.domains .quick-field {
    display: grid;
    gap: 6px;
}

.dashboard .main-content.domains .quick-field>span {
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .create-domain-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.dashboard .main-content.domains .create-domain-input-shell i {
    position: absolute;
    left: 12px;
    font-size: 12px;
    color: rgba(148, 148, 160, 0.82);
    pointer-events: none;
    transition: color 0.2s ease;
}

.dashboard .main-content.domains .create-domain-input {
    min-height: 42px;
    border-radius: 12px;
    padding: 10px 12px 10px 33px;
    font-size: 13px;
}

.dashboard .main-content.domains .create-domain-input-shell:focus-within i {
    color: rgba(238, 242, 247, 0.86);
}

.dashboard .main-content.domains .domains-add-btn {
    min-height: 42px;
    min-width: 132px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.dashboard .main-content.domains .ns-inline-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid var(--domains-control-border);
    border-radius: 12px;
    background: var(--domains-control-bg);
    padding: 10px;
}

.dashboard .main-content.domains .ns-label {
    grid-column: 1 / -1;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--domains-muted);
    margin-bottom: 1px;
}

.dashboard .main-content.domains .ns-chip {
    width: 100%;
    min-height: 38px;
    padding: 0 11px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--domains-control-border);
    background: var(--domains-control-bg);
    justify-content: space-between;
    gap: 10px;
}

.dashboard .main-content.domains .ns-chip code {
    font-size: 11px;
    font-weight: 550;
    color: var(--domains-text);
    letter-spacing: 0.01em;
}

.dashboard .main-content.domains .ns-chip .ns-copy-icon {
    font-size: 12px;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .ns-chip:hover {
    border-color: var(--domains-control-hover-border);
    background: rgba(24, 24, 30, 0.94);
}

.dashboard .main-content.domains .domains-registry {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.dashboard .main-content.domains .domains-registry .list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard .main-content.domains .domains-registry .list-head h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dashboard .main-content.domains .list-subtitle {
    font-size: 12px;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .registry-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard .main-content.domains .list-filters {
    display: inline-flex;
    gap: 7px;
    flex-wrap: wrap;
}

.dashboard .main-content.domains .filter-chip {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--domains-control-border);
    border-radius: 999px;
    background: var(--domains-control-bg);
    color: var(--domains-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.dashboard .main-content.domains .filter-chip:hover {
    border-color: var(--domains-control-hover-border);
    color: var(--domains-text);
}

.dashboard .main-content.domains .filter-chip.active {
    border-color: var(--domains-control-hover-border);
    background: rgba(34, 34, 40, 0.95);
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-search {
    min-height: 40px;
    min-width: 250px;
    border: 1px solid var(--domains-control-border);
    border-radius: 11px;
    background: var(--domains-control-bg);
    padding: 0 11px;
}

.dashboard .main-content.domains .domain-search i {
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domain-search input {
    font-size: 13px;
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-search input::placeholder {
    color: rgba(156, 156, 168, 0.74);
}

.dashboard .main-content.domains .domains-grid {
    display: grid;
    gap: 12px;
}

.dashboard .main-content.domains .domains-grid .domain-card {
    border: 1px solid var(--domains-card-border);
    border-radius: 14px;
    background: var(--domains-card-bg);
    box-shadow: var(--domains-card-shadow);
    padding: 14px;
    gap: 11px;
    position: relative;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard .main-content.domains .domains-grid .domain-card:hover {
    border-color: var(--domains-control-hover-border);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 26px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.dashboard .main-content.domains .domains-grid .domain-card.is-select-open,
.dashboard .main-content.domains .domains-provision.is-select-open {
    z-index: 260;
}

.dashboard .main-content.domains .domains-grid .domain-card > .domain-row-meta:has(.domain-wheel-select.is-open) {
    z-index: 50;
}

.dashboard .main-content.domains .domains-grid .domain-card::before,
.dashboard .main-content.domains .domains-grid .domain-card::after {
    content: none;
    display: none;
}

.dashboard .main-content.domains .domain-row-main {
    border-bottom: 1px solid rgba(63, 63, 70, 0.62);
    padding-bottom: 11px;
    margin-bottom: 2px;
}

.dashboard .main-content.domains .domain-row-main h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.dashboard .main-content.domains .domains-grid .state-tag {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.dashboard .main-content.domains .domain-row-meta {
    display: grid;
    grid-template-columns: minmax(140px, 0.72fr) minmax(220px, 1.06fr) minmax(320px, 1.48fr) auto;
    gap: 12px;
    align-items: end;
}

.dashboard .main-content.domains .domain-row-field {
    display: grid;
    gap: 5px;
}

.dashboard .main-content.domains .domain-row-field span,
.dashboard .main-content.domains .domain-route-control>span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domain-row-field strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-row-ns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard .main-content.domains .domain-row-ns .domain-ns-chip {
    width: auto;
    min-height: 30px;
    border-radius: 9px;
    padding: 4px 8px;
    gap: 6px;
    border: 1px solid var(--domains-control-border);
    background: var(--domains-control-bg);
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-row-ns .domain-ns-chip code {
    font-size: 10px;
    line-height: 1.1;
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-row-ns .domain-ns-tag {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domain-row-ns .domain-ns-chip .ns-copy-icon {
    font-size: 10px;
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domain-row-ns .domain-ns-chip:hover {
    border-color: var(--domains-control-hover-border);
    background: rgba(31, 31, 36, 0.82);
}

.dashboard .main-content.domains .domain-row-routing {
    display: grid;
    grid-template-columns: minmax(150px, 0.75fr) minmax(280px, 1.25fr);
    gap: 10px;
    align-items: end;
}

.dashboard .main-content.domains .domain-wheel-select {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid var(--domains-control-border);
    background: var(--domains-control-bg);
    box-shadow: none;
}

.dashboard .main-content.domains .domain-wheel-select:hover {
    border-color: var(--domains-control-hover-border);
    background: rgba(21, 21, 27, 0.92);
}

.dashboard .main-content.domains .domain-wheel-select:focus-within {
    border-color: rgba(244, 244, 245, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard .main-content.domains .domain-wheel-select.is-open {
    border-bottom-color: transparent;
    border-radius: 12px 12px 0 0;
}

.dashboard .main-content.domains .domain-select-trigger {
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-select-trigger-arrow {
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domain-wheel-select.is-open .domain-select-trigger-arrow {
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-select-menu {
    top: calc(100% - 1px);
    border: 1px solid var(--domains-control-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: var(--card-bg);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
    padding: 0 6px 6px;
}

.dashboard .main-content.domains .domain-select-group {
    color: var(--domains-muted);
}

.dashboard .main-content.domains .domain-select-search {
    top: 0;
    z-index: 3;
    border: 1px solid var(--domains-control-border);
    border-top: none;
    border-radius: 0 0 9px 9px;
    background: rgba(16, 16, 21, 1);
    box-shadow: 0 10px 18px rgba(5, 9, 18, 0.34);
    margin: 0 -6px 6px;
}

.dashboard .main-content.domains .domain-select-search:focus-within {
    border-color: rgba(244, 244, 245, 0.3);
    box-shadow: 0 10px 18px rgba(5, 9, 18, 0.34);
}

.dashboard .main-content.domains .domain-select-option {
    color: var(--domains-text);
}

.dashboard .main-content.domains .domain-select-option:hover {
    border-color: var(--domains-control-hover-border);
    background: rgba(39, 39, 42, 0.46);
}

.dashboard .main-content.domains .domain-select-option.is-active {
    border-color: var(--domains-control-hover-border);
    background: rgba(39, 39, 42, 0.72);
}

.dashboard .main-content.domains .domain-option-logo {
    border: 1px solid rgba(63, 63, 70, 0.82);
    background: rgba(12, 12, 16, 0.95);
}

.dashboard .main-content.domains .domain-template-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.3);
    border: none;
    background: transparent;
    box-shadow: none;
}

.dashboard .main-content.domains .domain-row-actions {
    display: inline-flex;
    gap: 8px;
    align-items: flex-end;
    justify-self: end;
}

.dashboard .main-content.domains .domain-action-btn {
    min-height: 36px;
    min-width: 108px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
    border-color: var(--domains-control-border);
    background: var(--domains-control-bg);
    color: var(--domains-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dashboard .main-content.domains .domain-action-btn:hover {
    border-color: var(--domains-control-hover-border);
    background: rgba(31, 31, 36, 0.86);
}

.dashboard .main-content.domains .domain-action-btn.danger {
    border-color: rgba(190, 70, 70, 0.45);
    background: rgba(96, 31, 31, 0.32);
    color: rgba(250, 205, 205, 0.95);
}

.dashboard .main-content.domains .domain-action-btn.danger:hover {
    border-color: rgba(220, 90, 90, 0.58);
    background: rgba(118, 36, 36, 0.4);
}

.dashboard .main-content.domains .domain-action-btn i {
    font-size: 12px;
    line-height: 1;
}

.dashboard .main-content.domains .domain-empty-state {
    margin-top: 2px;
    border-radius: 14px;
}

@media (max-width: 1220px) {
    .dashboard .main-content.domains .domain-row-meta {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dashboard .main-content.domains .domain-row-routing {
        grid-column: span 2;
    }

    .dashboard .main-content.domains .domain-row-actions {
        grid-column: span 2;
    }
}

@media (max-width: 920px) {
    .dashboard .main-content.domains .domains-quick-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard .main-content.domains .quick-domain {
        grid-column: span 2;
    }

    .dashboard .main-content.domains .domain-search {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .dashboard .main-content.domains {
        padding: 18px;
    }

    .dashboard .main-content.domains .domains-shell {
        gap: 16px;
    }

    .dashboard .main-content.domains .domains-provision,
    .dashboard .main-content.domains .domains-registry {
        padding: 14px;
    }

    .dashboard .main-content.domains .quick-domain {
        grid-column: auto;
    }

    .dashboard .main-content.domains .domains-quick-form {
        grid-template-columns: 1fr;
    }

    .dashboard .main-content.domains .domains-add-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard .main-content.domains .ns-inline-panel {
        grid-template-columns: 1fr;
    }

    .dashboard .main-content.domains .domain-row-meta {
        grid-template-columns: 1fr;
    }

    .dashboard .main-content.domains .domain-row-routing {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .dashboard .main-content.domains .domain-row-actions {
        grid-column: auto;
        justify-self: stretch;
    }

    .dashboard .main-content.domains .domain-action-btn {
        flex: 1;
    }
}

.availability-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 5, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 32px 16px;
}

.availability-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.availability-modal {
    width: min(880px, 90%);
    max-width: 880px;
    height: min(78vh, 700px);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06) 0%, transparent 30%),
        linear-gradient(180deg, rgba(13, 13, 16, 0.985) 0%, rgba(8, 8, 10, 0.99) 52%, rgba(5, 5, 7, 0.99) 100%);
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 24px;
    padding: 22px;
    gap: 16px;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.025),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    position: relative;
    isolation: isolate;
}

.availability-overlay.is-open .availability-modal {
    transform: scale(1);
}

.availability-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    pointer-events: none;
}

.availability-modal::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 68%);
    pointer-events: none;
    opacity: 0.7;
    z-index: -1;
}

.availability-header {
    padding: 0 2px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
}

.availability-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.availability-header h2 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 18px rgba(255, 255, 255, 0.04);
}

.availability-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 18, 0.92);
    border: 1px solid rgba(63, 63, 70, 0.82);
    color: rgba(212, 212, 216, 0.82);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.availability-close:hover {
    background: rgba(22, 22, 27, 0.96);
    border-color: rgba(82, 82, 91, 0.82);
    color: #fff;
    transform: rotate(90deg);
}

.availability-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.74) 0%, rgba(7, 7, 9, 0.9) 100%);
    border: 1px solid rgba(39, 39, 42, 0.72);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.availability-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2px 2px 0;
}

.availability-accordion {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.availability-accordion.is-open {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.availability-accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: background 0.2s ease;
}

.availability-accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.availability-accordion-header img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.availability-accordion-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.availability-accordion-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.availability-accordion-copy small {
    font-size: 0.78rem;
    color: rgba(161, 161, 170, 0.8);
}

.availability-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.availability-state-pill.is-disabled {
    color: #f87171;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
}

.availability-accordion-arrow {
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.availability-accordion.is-open .availability-accordion-arrow {
    transform: rotate(180deg);
}

.availability-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.15);
}

.availability-accordion.is-open .availability-accordion-content {
    max-height: 1000px;
    
}

.availability-pages-list {
    padding: 0.5rem 1.5rem 1.25rem 4rem;
    
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.availability-pages-list.is-exchange-disabled .availability-page-row:not(.availability-exchange-row) {
    opacity: 0.55;
}

.availability-page-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.availability-page-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.availability-page-row span {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.availability-row-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.availability-row-copy small {
    font-size: 0.78rem;
    color: rgba(161, 161, 170, 0.78);
}

.availability-exchange-row {
    margin-bottom: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.availability-page-empty {
    padding: 8px 12px;
    border-radius: 10px;
    color: rgba(161, 161, 170, 0.8);
    background: rgba(255, 255, 255, 0.02);
}

.status-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    padding: 0;
}

.status-toggle i {
    font-size: 15px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.status-toggle.is-active {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.status-toggle.is-disabled {
    background: rgba(239, 44, 44, 0.25);
    border-color: rgba(239, 44, 44, 0.5);
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 44, 44, 0.2);
}

.status-toggle:hover {
    transform: scale(1.1);
}

.status-toggle:active {
    transform: scale(0.95);
}

.btn-availability-save {
    gap: 8px;
    width: auto;
    min-width: 140px;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 10px;
    justify-content: center;
}

.btn-availability-save:hover {
    transform: translateY(-1px);
}

.btn-availability-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.availability-list-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.availability-group {
    position: relative;
    border: 1px solid rgba(39, 39, 42, 0.78);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.92) 0%, rgba(7, 7, 9, 0.92) 100%);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.availability-group::before {
    content: none;
}

.availability-group:hover {
    border-color: rgba(82, 82, 91, 0.74);
    transform: translateY(-1px);
}

.availability-group.is-open {
    border-color: rgba(113, 113, 122, 0.88);
    background: linear-gradient(180deg, rgba(12, 12, 14, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.availability-group.is-disabled {
    border-color: rgba(127, 29, 29, 0.48);
    background: linear-gradient(180deg, rgba(18, 10, 10, 0.9) 0%, rgba(10, 7, 7, 0.94) 100%);
}

.availability-group-row {
    display: grid;
    grid-template-columns: 38px 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
}

.availability-expand {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(63, 63, 70, 0.86);
    background: rgba(14, 14, 18, 0.9);
    color: rgba(212, 212, 216, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.availability-expand:hover {
    border-color: rgba(113, 113, 122, 0.95);
    background: rgba(22, 22, 27, 0.95);
    color: #fff;
}

.availability-group.is-disabled .availability-expand {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.32);
    color: #f87171;
}

.availability-group.is-disabled .availability-expand:hover {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(127, 29, 29, 0.48);
    color: #fecaca;
}

.availability-group.is-open .availability-expand i {
    transform: rotate(90deg);
}

.availability-expand i {
    transition: transform 0.18s ease;
}

.availability-group-logo-shell {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 22, 27, 0.96) 0%, rgba(10, 10, 12, 0.98) 100%);
    border: 1px solid rgba(39, 39, 42, 0.7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.availability-group-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.22);
    transition: transform 0.2s ease;
}

.availability-group.is-open .availability-group-logo-shell {
    border-color: rgba(82, 82, 91, 0.82);
}

.availability-group.is-open .availability-group-logo {
    transform: scale(1.28);
}

.availability-group-copy {
    min-width: 0;
}

.availability-group-copy strong {
    font-size: 0.92rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.availability-group-pages {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    display: grid;
    gap: 10px;
    padding: 0 10px 0 14px;
    transition: max-height 0.24s ease, border-color 0.24s ease, padding 0.24s ease;
}

.availability-group.is-open .availability-group-pages {
    max-height: 4000px;
    border-top-color: rgba(39, 39, 42, 0.72);
    padding: 12px 10px 12px 14px;
}

.availability-page-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 11px 4px 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(24, 24, 27, 0.95);
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.72) 0%, rgba(5, 5, 7, 0.72) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}

.availability-page-item.is-disabled {
    border-color: rgba(239, 68, 68, 0.42);
    background: linear-gradient(180deg, rgba(36, 12, 12, 0.82) 0%, rgba(18, 8, 8, 0.84) 100%);
}

.availability-page-item::before {
    content: none;
}

.availability-page-item+.availability-page-item {
    border-top: none;
}

.availability-page-item:hover {
    background: linear-gradient(180deg, rgba(12, 12, 15, 0.84) 0%, rgba(7, 7, 9, 0.84) 100%);
    border-color: rgba(63, 63, 70, 0.82);
    transform: translateX(2px);
}

.availability-page-item.is-disabled:hover {
    background: linear-gradient(180deg, rgba(44, 14, 14, 0.88) 0%, rgba(22, 9, 9, 0.9) 100%);
    border-color: rgba(248, 113, 113, 0.5);
}

.availability-group.is-disabled .availability-page-item {
    opacity: 0.58;
}

.availability-page-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.availability-page-copy span {
    font-size: 0.9rem;
    color: rgba(244, 244, 245, 0.95);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.availability-page-logo-shell {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(22, 22, 27, 0.94) 0%, rgba(10, 10, 12, 0.96) 100%);
    border: 1px solid rgba(39, 39, 42, 0.7);
    flex: 0 0 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.availability-page-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.22);
}

.availability-choice-pair {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

.availability-choice {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(63, 63, 70, 0.82);
    background: rgba(12, 12, 14, 0.92);
    color: rgba(161, 161, 170, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.availability-choice:hover {
    transform: translateY(-1px);
    background: rgba(18, 18, 22, 0.96);
    border-color: rgba(82, 82, 91, 0.82);
}

.availability-choice-enable.is-selected {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(20, 83, 45, 0.62);
    color: #4ade80;
    box-shadow: 0 10px 24px rgba(20, 83, 45, 0.18);
}

.availability-choice-disable.is-selected {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(127, 29, 29, 0.58);
    color: #f87171;
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.16);
}

@media (max-width: 900px) {
    .availability-group-row {
        grid-template-columns: 34px 34px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .availability-choice-pair {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 44px;
    }

    .availability-page-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 11px 12px;
    }
}

.mailer-shell {
    max-width: 1500px;
    width: 100%;
}

.mailer-shell .header {
    margin-bottom: 16px;
}

.mailer-shell .header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mailer-shell .header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mailer-accounts-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 0;
}

.mailer-empty-state-compact {
    padding: 12px 20px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    width: 100%;
    display: flex;
    align-items: center;
}

.mailer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1100px) {
    .mailer-grid {
        grid-template-columns: 1fr;
    }
}

.mailer-col {
    min-width: 0;
}

.mailer-accounts-section {
    margin-bottom: 28px;
}

.mailer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mailer-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mailer-section-title i {
    font-size: 14px;
    color: var(--text-secondary);
}

.mailer-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.mailer-add-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.mailer-add-btn i {
    font-size: 11px;
}

.mailer-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mailer-account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    animation: templateFadeIn 0.35s ease both;
    flex-shrink: 0;
}

.mailer-account-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mailer-account-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    flex-shrink: 0;
}

.mailer-account-info {
    flex: 1;
    min-width: 0;
}

.mailer-account-email {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mailer-account-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
}

.mailer-account-provider {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.mailer-account-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mailer-account-badge.oauth {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.mailer-account-badge.app-password {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.mailer-account-delete {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mailer-account-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.mailer-empty-state {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.mailer-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mailer-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mailer-modal {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    background: #0a0a0c;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mailer-modal-overlay.is-open .mailer-modal {
    transform: translateY(0) scale(1);
}

.mailer-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mailer-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.mailer-modal h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mailer-modal>p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.mailer-modal .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mailer-modal .field>span,
.mailer-modal .field>label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mailer-modal .field input,
.mailer-modal .field select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.mailer-modal .field input:focus,
.mailer-modal .field select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.mailer-modal .field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.mailer-modal .field select option {
    background: #0a0a0c;
    color: var(--text-primary);
}

.mailer-auth-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mailer-auth-pill {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.mailer-auth-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.mailer-auth-pill.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.mailer-options-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.mailer-option-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.mailer-option-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.mailer-option-toggle.active {
    background: rgba(244, 197, 66, 0.12);
    border-color: rgba(244, 197, 66, 0.45);
    color: #f4c542;
}

.mailer-option-toggle.active i {
    color: #f4c542;
}

.mailer-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.mailer-modal-actions .btn-solid {
    flex: 1;
}

.mailer-oauth-section {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.04);
}

.mailer-oauth-section h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mailer-oauth-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mailer-oauth-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mailer-oauth-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.mailer-oauth-step-content {
    flex: 1;
    min-width: 0;
}

.mailer-oauth-step-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.mailer-oauth-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.mailer-oauth-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.mailer-oauth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mailer-oauth-code-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: border-color 0.2s ease;
}

.mailer-oauth-code-input:focus {
    border-color: rgba(59, 130, 246, 0.4);
}

.mailer-oauth-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.mailer-oauth-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mailer-oauth-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mailer-compose-section {
    margin-top: 0;
}

.mailer-compose-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.mailer-compose-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}

.mailer-compose-head-back {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mailer-compose-head-back:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.mailer-compose-head-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px;
}

.mailer-compose-head-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mailer-compose-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mailer-template-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mailer-template-tab {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.mailer-template-tab:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.mailer-template-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.mailer-template-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.mailer-template-dropzone:hover,
.mailer-template-dropzone.drag-over {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.mailer-template-dropzone i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.mailer-template-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.mailer-field-group {
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.mailer-field-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.mailer-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mailer-field-grid.single {
    grid-template-columns: 1fr;
}

.mailer-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mailer-field-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mailer-field-input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-family: var(--font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.mailer-field-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.mailer-field-input::placeholder {
    color: rgba(161, 161, 170, 0.5);
}

.mailer-autofill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mailer-autofill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
    color: var(--text-secondary);
}

.mailer-autofill-badge .auto-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.mailer-pfp-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.mailer-pfp-preview {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.mailer-pfp-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mailer-pfp-info {
    flex: 1;
    min-width: 0;
}

.mailer-pfp-status {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mailer-pfp-status.supported {
    color: #34d399;
}

.mailer-pfp-status.unsupported {
    color: #fbbf24;
}

.mailer-pfp-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.mailer-pfp-upload {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.mailer-pfp-upload:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mailer-pfp-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.mailer-recipient-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.mailer-recipient-select:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.mailer-recipient-select option {
    background: #0a0a0c;
    color: var(--text-primary);
}

.mailer-recipient-note {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
}

.mailer-send-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    background: var(--text-primary);
    color: var(--bg-dark);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.mailer-send-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.mailer-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mailer-send-btn i {
    font-size: 14px;
}

.mailer-template-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.mailer-template-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mailer-template-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.mailer-template-item.active {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.mailer-template-item-name {
    flex: 1;
    font-size: 0.84rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mailer-template-item-vars {
    font-size: 11px;
    color: var(--text-secondary);
}

.mailer-template-item-delete {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mailer-template-item-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.mailer-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-family: var(--font-family);
}

.mailer-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mailer-toast.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mailer-toast.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 700px) {
    .mailer-field-grid {
        grid-template-columns: 1fr;
    }
}

.mailer-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: fit-content;
}

.mailer-subtab {
    padding: 9px 22px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mailer-subtab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mailer-subtab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mailer-subtab i {
    font-size: 13px;
    opacity: 0.7;
}

.mailer-subtab.active i {
    opacity: 1;
}

.mailer-panel-compose,
.mailer-panel-searcher {
    animation: searcherFadeIn 0.35s ease both;
}

@keyframes searcherFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.searcher-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.searcher-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.18s ease;
}

.searcher-option:hover {
    color: var(--text-primary);
}

.searcher-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.searcher-option input[type="checkbox"]:checked {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
}

.searcher-option input[type="checkbox"]:checked::after {
    content: '?';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #34d399;
    font-weight: 700;
}

.searcher-modes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.searcher-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
}

.searcher-mode-badge.wallet-sniper {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.searcher-mode-badge.wallet-sniper:hover {
    background: rgba(255, 255, 255, 0.07);
}

.searcher-mode-badge.wallet-sniper.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.searcher-mode-badge.ocr-mode {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.searcher-mode-badge.ocr-mode:hover {
    background: rgba(255, 255, 255, 0.07);
}

.searcher-mode-badge.ocr-mode.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.searcher-mode-badge input[type="checkbox"] {
    display: none;
}

.searcher-mode-badge .mode-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.4;
    transition: opacity 0.18s ease;
}

.searcher-mode-badge.active .mode-dot {
    opacity: 0.8;
    background: var(--text-primary);
}

.searcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 9px;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: var(--font-family);
}

.searcher-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.searcher-btn.primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.searcher-btn.primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.searcher-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.searcher-btn.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.searcher-btn.danger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.searcher-btn.danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
    transform: translateY(-1px);
}

.searcher-btn i {
    font-size: 13px;
}

.searcher-filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.searcher-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    letter-spacing: 0.01em;
}

.searcher-filter-tag:hover {
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.searcher-filter-tag.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.searcher-filter-tag.active[data-severity="critical"] {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.searcher-filter-tag.active[data-severity="high"] {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.18);
}

.searcher-filter-tag.active[data-severity="medium"] {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.18);
}

.searcher-filter-tag .filter-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}

.searcher-filter-tag[data-severity="critical"] .filter-dot {
    background: #ef4444;
}

.searcher-filter-tag[data-severity="high"] .filter-dot {
    background: #f59e0b;
}

.searcher-filter-tag[data-severity="medium"] .filter-dot {
    background: #3b82f6;
}

.searcher-filter-tag[data-severity="low"] .filter-dot {
    background: #6b7280;
}

.searcher-filter-tag.active[data-severity="critical"] .filter-dot {
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.searcher-filter-tag.active[data-severity="high"] .filter-dot {
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.searcher-filter-tag.active[data-severity="medium"] .filter-dot {
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.searcher-stats-simple {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.searcher-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.searcher-stat-item .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.searcher-stat-item .stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.searcher-stat-item .stat-value.highlight {
    color: #34d399;
    
}

.searcher-stat-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
}

.searcher-progress-bar {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 14px;
}

.searcher-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.35));
    transition: width 0.4s ease;
    width: 0%;
}

.searcher-progress-fill.scanning {
    animation: searcherPulse 1.5s ease-in-out infinite;
}

@keyframes searcherPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.searcher-progress-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.searcher-progress-text i {
    color: var(--text-secondary);
    font-size: 11px;
}

.searcher-findings-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.searcher-findings-list {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #0c0c0e;
    
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
}

.searcher-findings-list::-webkit-scrollbar {
    width: 5px;
}

.searcher-findings-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.searcher-findings-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.searcher-findings-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.25;
}

.searcher-finding-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.18s ease;
    animation: searcherFadeIn 0.3s ease both;
}

.searcher-finding-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.searcher-finding-item:last-child {
    border-bottom: none;
}

.searcher-finding-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.searcher-finding-severity {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.searcher-finding-severity.critical {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

.searcher-finding-severity.high {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
}

.searcher-finding-severity.medium {
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
}

.searcher-finding-severity.low {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.searcher-finding-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.searcher-finding-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.searcher-finding-content {
    font-size: 0.8rem;
    color: rgba(244, 244, 245, 0.85);
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    word-break: break-all;
    max-height: 72px;
    overflow-y: auto;
}

.searcher-finding-source {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.searcher-finding-source i {
    font-size: 10px;
    opacity: 0.6;
}

.searcher-finding-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: 6px;
}

.searcher-finding-balance.zero {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.15);
}

.searcher-finding-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 6px;
}

.searcher-finding-source-badge.body {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.searcher-finding-source-badge.ocr {
    background: rgba(168, 85, 247, 0.14);
    color: #a855f7;
}

.searcher-finding-source-badge.qr {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}

.searcher-finding-source-badge.pdf {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.searcher-finding-source-badge.docx {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.searcher-finding-source-badge.xlsx {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.searcher-finding-source-badge.text {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.searcher-finding-content-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    position: relative;
}

.searcher-finding-content-row .searcher-finding-content {
    flex: 1;
    min-width: 0;
}

.searcher-finding-copy {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    margin-top: 6px;
}

.searcher-finding-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.searcher-finding-copy.copied {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.searcher-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.searcher-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.searcher-confirm-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.searcher-confirm-box {
    width: 100%;
    max-width: 440px;
    background: #0a0a0c;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.searcher-confirm-overlay.is-open .searcher-confirm-box {
    transform: translateY(0) scale(1);
}

.searcher-confirm-box h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f87171;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.searcher-confirm-box p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.searcher-confirm-actions {
    display: flex;
    gap: 10px;
}

.searcher-confirm-actions .searcher-btn {
    flex: 1;
    justify-content: center;
}