:root {
    --bg-900: #0b0e14;
    --bg-850: #0f131c;
    --bg-800: #131824;
    --panel: rgba(23, 28, 40, 0.82);
    --panel-strong: rgba(17, 22, 33, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --text-primary: #e8edf7;
    --text-secondary: #9aa4b8;
    --muted: #6c7382;
    --accent: #f3a43d;
    --accent-strong: #ff7e29;
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
    --header-height: 76px;
    --shell-header-offset: var(--header-height);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --font-main: 'Inter', 'Orbitron', system-ui, -apple-system, sans-serif;
}

.management-body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: var(--font-main);
    background: radial-gradient(circle at 10% 10%, rgba(255, 126, 41, 0.08) 0, transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(120, 90, 255, 0.08) 0, transparent 30%),
        linear-gradient(140deg, #0b0e14 0%, #0f121b 50%, #0b0e14 100%);
    overflow: hidden;
    position: relative;
}

.management-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 126, 41, 0.06) 0, transparent 30%),
        radial-gradient(circle at 30% 70%, rgba(111, 149, 255, 0.05) 0, transparent 25%);
    pointer-events: none;
    z-index: 0;
}

.global-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-height);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(20, 24, 34, 0.92), rgba(15, 17, 25, 0.92));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #222836, #11151f);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 18px rgba(255, 126, 41, 0.35);
}

.brand-mark img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 126, 41, 0.35));
}

.brand-title {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.brand-kicker {
    font-size: 12px;
    color: var(--text-secondary);
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
}

.header-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    flex: 1;
}

.header-tabs .tab {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 6px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.header-tabs .tab:hover {
    color: var(--text-primary);
}

.header-tabs .tab.active {
    color: var(--accent);
    border-color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1080px) {
    .global-header {
        height: auto;
        min-height: var(--header-height);
        padding: 12px 18px;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px 16px;
    }

    .header-left,
    .header-actions {
        flex: 0 0 auto;
    }

    .header-left {
        min-width: 0;
    }

    .header-tabs {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .header-tabs::-webkit-scrollbar {
        display: none;
    }

    .header-tabs .tab {
        flex: 0 0 auto;
    }
}

.notif-wrapper {
    position: relative;
}

.bell {
    position: relative;
}

.bell-static {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bell-static svg {
    width: 22px;
    height: 22px;
    fill: #f97316;
}

.bell-static:hover {
    background: rgba(255, 126, 41, 0.08);
    border-color: rgba(255, 126, 41, 0.45);
    box-shadow: 0 0 12px rgba(255, 126, 41, 0.35);
    transform: translateY(-1px);
}

.bell-static.nudge {
    animation: bell-nudge 0.6s ease;
}

@keyframes bell-nudge {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-6deg); }
    80% { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ffb347, #ff7e29);
    color: #0b0e14;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 126, 41, 0.5);
}

.notif-panel {
    position: absolute;
    right: 0;
    top: 120%;
    width: 320px;
    background: linear-gradient(180deg, rgba(23,28,40,0.96), rgba(17,22,33,0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 50;
    max-height: 420px;
    overflow: hidden;
}

.notif-panel.show {
    display: block;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 8px;
}

.notif-title-main {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.notif-sub {
    font-size: 12px;
    color: var(--muted);
}

.notif-list {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}
.notif-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
}
.notif-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffb347, #ff7e29);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255,126,41,0.4);
}

.notif-item {
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 8px;
    background: rgba(255,255,255,0.02);
}

.notif-countdown.timer-card {
    background: linear-gradient(135deg, rgba(255, 126, 41, 0.08), rgba(255, 126, 41, 0.02));
    border-color: rgba(255, 126, 41, 0.65);
    box-shadow: 0 0 22px rgba(255, 126, 41, 0.35);
}

.notif-item:last-child {
    margin-bottom: 0;
}

.notif-due {
    border-color: rgba(255,126,41,0.35);
}

.notif-countdown {
    background: linear-gradient(135deg, rgba(255, 126, 41, 0.08), rgba(255, 126, 41, 0.02));
    border-color: rgba(255, 126, 41, 0.45);
    box-shadow: 0 0 18px rgba(255, 126, 41, 0.25);
}

.notif-soon {
    border-color: rgba(255,255,255,0.08);
}

.notif-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notif-item.read {
    opacity: 0.7;
    border-color: rgba(255,255,255,0.08);
}

.timer-card.read {
    opacity: 1;
    border-color: rgba(255, 126, 41, 0.65);
    box-shadow: 0 0 22px rgba(255, 126, 41, 0.35);
}
.notif-meta, .notif-time {
    font-size: 12px;
    color: var(--muted);
}

.notif-time.timer {
    margin-top: 4px;
}

.notif-timer {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffb347, #ff7e29);
    color: #0b0e14;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 0 14px rgba(255, 126, 41, 0.35);
}

.notif-note {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

/* Profile modal */
#profile-modal .modal-card {
    width: min(900px, 92vw);
    max-width: 900px;
}

.bot-block {
    margin-top: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.bot-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bot-desc {
    color: var(--text-secondary);
    margin: 8px 0 10px;
    line-height: 1.4;
}

.bot-status {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.bind-code-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,126,41,0.35);
    background: rgba(255,126,41,0.06);
}

.bind-code-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.bind-code-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.bind-code-exp {
    color: var(--text-secondary);
    margin-top: 4px;
}

.bind-instruction {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.notif-empty {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.header-chip {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.header-chip.live {
    background: rgba(255, 126, 41, 0.16);
    color: var(--accent);
    border-color: rgba(255, 126, 41, 0.35);
    box-shadow: 0 0 20px rgba(255, 126, 41, 0.35);
}

.header-chip.subtle {
    color: var(--muted);
}

.workspace {
    position: relative;
    z-index: 1;
    display: flex;
    height: calc(100vh - var(--shell-header-offset));
    overflow: hidden;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: 304px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    min-height: 0;
}

.user-profile {
    padding: 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
}

.sidebar-stack {
    display: grid;
    gap: 14px;
}

.nav-menu--primary {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left, rgba(255, 126, 41, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.user-avatar-placeholder {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0;
    background: linear-gradient(135deg, #222836, #151925);
    border: 2px solid rgba(255, 126, 41, 0.55);
    box-shadow: 0 0 18px rgba(255, 126, 41, 0.35);
}

.user-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 126, 41, 0.55);
    box-shadow: 0 0 18px rgba(255, 126, 41, 0.35);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-profile--panel {
    display: grid;
    gap: 14px;
}

.user-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.user-name-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-name-group {
    min-width: 0;
    flex: 1;
}

.user-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.user-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 6px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    border: 1px solid var(--border);
}

.profile-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.daily-stats {
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.daily-stats-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.daily-stats-sub {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.35;
}

.daily-stats-shell {
    display: grid;
    gap: 12px;
}

.daily-stats-metrics {
    display: grid;
    gap: 10px;
}

.daily-metric-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.03);
}

.daily-metric-card--shadow {
    background:
        radial-gradient(circle at top right, rgba(255, 126, 41, 0.10), transparent 42%),
        rgba(255, 255, 255, 0.03);
}

.daily-metric-card--quiet {
    background: rgba(255, 255, 255, 0.02);
}

.daily-metric-card.is-ready {
    border-color: rgba(255, 126, 41, 0.22);
}

.daily-metric-card.is-muted {
    opacity: 0.82;
}

.daily-metric-label {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.daily-metric-value {
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.daily-metric-card--count .daily-metric-value {
    font-size: 1.6rem;
    line-height: 1;
}

.daily-metric-meta {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.35;
}

.daily-stats--danger .arc-active,
.daily-stats--danger #clients-bar {
    stroke: rgba(239, 68, 68, 0.95);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.86), rgba(248, 113, 113, 0.86));
}

.daily-stats--warning .arc-active,
.daily-stats--warning #clients-bar {
    stroke: rgba(245, 158, 11, 0.95);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.85));
}

.daily-stats--success .arc-active,
.daily-stats--success #clients-bar {
    stroke: rgba(16, 185, 129, 0.95);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(52, 211, 153, 0.88));
}

.gauge {
    margin: 0 auto 8px;
    position: relative;
}

.gauge-arc {
    position: relative;
    width: 196px;
    height: 154px;
    margin: 0 auto;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.arc-active {
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
    stroke-dasharray: 251.3;
    stroke-dashoffset: 251.3;
    transition: stroke-dashoffset 0.4s ease;
}

.gauge-center {
    position: absolute;
    top: 56%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    pointer-events: none;
    gap: 6px;
}

.gauge-value {
    font-size: 30px;
    font-weight: 800;
}

.gauge-caption {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

.gauge-meta {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 26px;
}

.gauge-label-top {
    color: var(--muted);
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    text-transform: uppercase;
    pointer-events: none;
}

.daily-tier-rail {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.daily-tier-segment {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.daily-tier-segment.is-active {
    color: #0b0e14;
    border-color: transparent;
}

.daily-stats--danger .daily-tier-segment.is-active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(248, 113, 113, 0.88));
}

.daily-stats--warning .daily-tier-segment.is-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.88));
}

.daily-stats--success .daily-tier-segment.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(52, 211, 153, 0.88));
}

.progress-track {
    margin: 10px 0 6px;
    height: 6px;
    background: #1c2130;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb347, #ff7e29);
    border-radius: inherit;
    box-shadow: 0 0 14px rgba(255, 126, 41, 0.45);
}

.progress-legend {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 13px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.nav-item.active {
    color: var(--accent);
    background: rgba(255, 126, 41, 0.14);
    border-color: rgba(255, 126, 41, 0.4);
    box-shadow: 0 0 20px rgba(255, 126, 41, 0.25);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: currentColor;
    opacity: 0.9;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at 15% 30%, rgba(255, 126, 41, 0.04) 0, transparent 30%),
        radial-gradient(circle at 80% 60%, rgba(111, 149, 255, 0.04) 0, transparent 32%),
        linear-gradient(160deg, #0b0e14 0%, #0f121b 100%);
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

.main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.content-area {
    position: relative;
    z-index: 1;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
    min-height: 0;
}

/* Table / Grid */
.clients-panel {
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

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

.panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

.report-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    min-width: 140px;
    line-height: 1.2;
}

.report-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.report-countdown {
    margin-top: 4px;
    font-weight: 700;
    color: #ffb347;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 0.95rem;
}

.report-clients {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffb347, #ff7e29);
    color: #0d1018;
    border: 1px solid #ff9c3d;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 126, 41, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(255, 126, 41, 0.45);
}

.nexus-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.nexus-table thead th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.nexus-table tbody td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.nexus-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge.status-manager {
    background: rgba(255, 126, 41, 0.16);
    color: #ffb347;
    border-color: rgba(255, 126, 41, 0.4);
}

.status-badge.role-supervisor {
    background: rgba(252, 211, 77, 0.2);
    color: #ffd166;
    border-color: rgba(252, 211, 77, 0.45);
}

.status-badge.role-manager {
    background: rgba(255, 126, 41, 0.2);
    color: #ffb074;
    border-color: rgba(255, 126, 41, 0.45);
}

.status-badge.role-realizer {
    background: rgba(59, 130, 246, 0.2);
    color: #9ec5ff;
    border-color: rgba(59, 130, 246, 0.45);
}

.status-badge.role-owner {
    background: rgba(45, 212, 191, 0.2);
    color: #a4f3e7;
    border-color: rgba(45, 212, 191, 0.45);
}

.status-badge.role-other {
    background: rgba(148, 163, 184, 0.2);
    color: #d5dbe4;
    border-color: rgba(148, 163, 184, 0.45);
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 36px;
}

.muted-detail {
    display: inline-block;
    color: var(--muted);
    margin-left: 6px;
    font-size: 0.85em;
}

.result-badge {
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.result-badge.result-order {
    background: rgba(34, 197, 94, 0.16);
    color: #8ef2b8;
    border-color: rgba(34, 197, 94, 0.35);
}

.result-badge.result-sent_email,
.result-badge.result-sent_messenger {
    background: rgba(59, 130, 246, 0.16);
    color: #9bc4ff;
    border-color: rgba(59, 130, 246, 0.32);
}

.result-badge.result-wrote_ig {
    background: rgba(236, 72, 153, 0.16);
    color: #f8b3dc;
    border-color: rgba(236, 72, 153, 0.32);
}

.result-badge.result-no_answer,
.result-badge.result-invalid_number {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.3);
}

.result-badge.result-not_interested,
.result-badge.result-expensive {
    background: rgba(239, 68, 68, 0.16);
    color: #ffb3b3;
    border-color: rgba(239, 68, 68, 0.35);
}

.result-badge.result-waiting_payment,
.result-badge.result-waiting_prepayment {
    background: rgba(255, 193, 7, 0.16);
    color: #ffe08a;
    border-color: rgba(255, 193, 7, 0.35);
}

.result-badge.result-test_batch {
    background: rgba(94, 234, 212, 0.18);
    color: #c0fff3;
    border-color: rgba(94, 234, 212, 0.4);
}

.result-badge.result-xml_connected {
    background: rgba(45, 212, 191, 0.16);
    color: #9cf2e5;
    border-color: rgba(45, 212, 191, 0.35);
}

.result-badge.result-thinking {
    background: rgba(234, 179, 8, 0.16);
    color: #ffe08a;
    border-color: rgba(234, 179, 8, 0.35);
}

.result-badge.result-other {
    background: rgba(156, 163, 175, 0.14);
    color: #d1d5db;
    border-color: rgba(156, 163, 175, 0.3);
}

.date-group {
    margin-bottom: 18px;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.table-shell {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.actions-cell {
    text-align: right;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    color: var(--accent);
    border-color: rgba(255, 126, 41, 0.35);
    box-shadow: 0 0 12px rgba(255, 126, 41, 0.2);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.icon-btn.ghost.danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffb3b3;
}

.icon-btn.ghost.danger:hover {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.12);
}

.btn-ghost.small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.admin-panel {
    margin-top: 24px;
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.admin-payouts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.admin-payouts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-payout-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
}

.admin-payout-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-payout-card__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-payout-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-payout-card__metrics {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.admin-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}

.admin-metric__label {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.admin-metric__value {
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

.admin-payout-card__timeline {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.admin-payout-card__hint {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-payout-card__value {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.admin-payout-card__actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-payout-card__request {
    color: var(--text-secondary);
    font-weight: 700;
}

.admin-payout-card__buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-payout-card__details {
    margin-top: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-payout-card__details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-payout-card__details[open] summary {
    margin-bottom: 10px;
}

.admin-payout-card__forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.admin-payout-form {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-payout-form__title {
    font-weight: 800;
    color: var(--text-primary);
}

.admin-payout-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.admin-payout-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.admin-payout-frozen-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-payout-frozen-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-payout-frozen-amount {
    font-weight: 800;
    color: var(--text-primary);
}

.admin-payout-frozen-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.status-dot {
    font-size: 14px;
    margin-right: 6px;
}

.status-dot.online { color: #34d399; }
.status-dot.offline { color: #94a3b8; }

.overview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.admin-overview-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-overview-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.admin-overview-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-overview-search {
    flex: 1;
    min-width: 240px;
}

.admin-overview-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.admin-overview-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.admin-chip.accent {
    border-color: rgba(255, 126, 41, 0.35);
    background: rgba(255, 126, 41, 0.10);
    color: #ffb347;
    box-shadow: 0 0 16px rgba(255, 126, 41, 0.18);
}

.admin-overview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.admin-overview-list::-webkit-scrollbar {
    width: 8px;
}
.admin-overview-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}
.admin-overview-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffb347, #ff7e29);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255,126,41,0.35);
}

.overview-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-group-title {
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    padding: 2px 2px;
}

.client-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.client-item[open] {
    border-color: rgba(255, 126, 41, 0.35);
    box-shadow: 0 0 22px rgba(255, 126, 41, 0.15);
}

.client-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
}

.client-summary::-webkit-details-marker { display: none; }

.client-left { flex: 1; min-width: 0; }
.client-shop {
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.client-sub {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.client-created {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    margin-left: 2px;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.pill.points {
    border-color: rgba(255, 126, 41, 0.30);
    background: rgba(255, 126, 41, 0.10);
    color: #ffb347;
}

.pill.next {
    border-color: rgba(148, 163, 184, 0.30);
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5e1;
}
.pill.next-due {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}
.pill.next-soon {
    border-color: rgba(255, 126, 41, 0.55);
    background: rgba(255, 126, 41, 0.14);
    color: #ffb347;
}

.pill.role-owner { border-color: rgba(168, 85, 247, 0.45); background: rgba(168, 85, 247, 0.12); color: #e9d5ff; }
.pill.role-supervisor { border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.12); color: #bfdbfe; }
.pill.role-manager { border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.10); color: #e2e8f0; }
.pill.role-realizer { border-color: rgba(20, 184, 166, 0.45); background: rgba(20, 184, 166, 0.12); color: #99f6e4; }
.pill.role-other { border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.08); color: #cbd5e1; }

.pill.result-order { border-color: rgba(34, 197, 94, 0.55); background: rgba(34, 197, 94, 0.14); color: #bbf7d0; }
.pill.result-test_batch { border-color: rgba(168, 85, 247, 0.55); background: rgba(168, 85, 247, 0.14); color: #e9d5ff; }
.pill.result-waiting_payment { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.10); color: #bbf7d0; }
.pill.result-waiting_prepayment { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.10); color: #bfdbfe; }
.pill.result-sent_email,
.pill.result-sent_messenger,
.pill.result-wrote_ig { border-color: rgba(255, 126, 41, 0.40); background: rgba(255, 126, 41, 0.12); color: #ffb347; }
.pill.result-xml_connected { border-color: rgba(20, 184, 166, 0.45); background: rgba(20, 184, 166, 0.12); color: #99f6e4; }
.pill.result-thinking { border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.12); color: #fde68a; }
.pill.result-no_answer,
.pill.result-not_interested,
.pill.result-invalid_number,
.pill.result-expensive { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.10); color: #fecaca; }
.pill.result-other { border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.08); color: #cbd5e1; }

.client-details {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.client-detail {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 10px;
    background: rgba(255,255,255,0.02);
}

.client-k {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 800;
}

.client-v {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.admin-overview-more {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.overview-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.overview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.overview-main {
    flex: 1;
}

.overview-shop {
    color: var(--text-primary);
    font-weight: 700;
}

.overview-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.overview-result {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.overview-details {
    display: none;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.4;
}

.overview-details.show {
    display: block;
}

.overview-details .muted {
    color: var(--muted);
    margin-right: 6px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.65);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    width: min(800px, 90vw);
    background: var(--panel-strong);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 0.25s ease;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    letter-spacing: 0.04em;
}

.modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 16px 20px 10px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

[hidden] {
    display: none !important;
}

.modal-overlay-secondary {
    z-index: 1400;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.field textarea {
    min-height: 90px;
    resize: vertical;
}

.field-conditional {
    display: none;
    margin-top: -2px;
}

.reason-capture {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.entry-info-banner {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 48%),
        linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(255, 255, 255, 0.03));
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.entry-info-banner.compact {
    margin-bottom: 14px;
}

.entry-section {
    padding: 0 0 18px;
}

.entry-section + .entry-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.entry-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.entry-section-help {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.entry-section-heading h4 {
    margin: 2px 0 0;
    font-size: 1.02rem;
}

.entry-section-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #ffb15f;
}

.entry-section-copy {
    max-width: 320px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
}

.helper-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.2;
}

.field-hint {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
}

.reason-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.evidence-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 44%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.duplicate-review-surface {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 44%),
        linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.duplicate-review-surface--inline {
    padding: 14px 16px;
    margin-top: 2px;
    width: 100%;
}

.duplicate-review-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.duplicate-review-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #ffb15f;
    margin-bottom: 6px;
}

.duplicate-review-badge {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.duplicate-review-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.duplicate-summary-sub {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.4;
}

.duplicate-review-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.duplicate-review-list li {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, auto));
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(8, 12, 20, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.duplicate-review-list li strong {
    color: var(--text-primary);
}

.duplicate-override-box {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.duplicate-override-box label {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.duplicate-override-text {
    min-height: 90px;
}

.duplicate-override-actions {
    display: flex;
    justify-content: flex-end;
}

.duplicate-summary-card {
    width: min(640px, 84vw);
    max-height: min(74vh, 760px);
}

.duplicate-summary-content {
    display: grid;
    gap: 14px;
}

.duplicate-summary-card .modal-body {
    padding: 14px 18px 18px;
}

.duplicate-summary-item {
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.duplicate-summary-item header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-bottom: 12px;
    align-items: start;
}

.duplicate-summary-item h4 {
    margin: 4px 0 0;
}

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

.duplicate-summary-grid dt {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.duplicate-summary-grid dd {
    margin: 0;
    color: var(--text-primary);
}

.duplicate-score-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.24);
    color: #ffb15f;
    font-size: 0.82rem;
    white-space: nowrap;
}

.field-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .field-span-2 {
        grid-column: span 1;
    }

    .duplicate-review-header,
    .duplicate-review-list li {
        grid-template-columns: 1fr;
    }

    .entry-section-heading,
    .duplicate-summary-item header {
        display: grid;
    }

    .duplicate-summary-grid,
    .messenger-grid,
    .next-call-datetime {
        display: grid;
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-card {
        width: min(100vw - 12px, 860px);
        max-height: min(100dvh - 8px, 960px);
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .daily-stats-head,
    .bot-block-head,
    .profile-toolbar {
        display: grid;
    }
}

.next-call-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.callback-context-card {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 44%),
        rgba(255, 255, 255, 0.03);
}

.callback-context-card__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.callback-context-card__title {
    font-weight: 700;
    color: var(--text-primary);
}

.callback-context-card__phase,
.callback-context-card__previous {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.callback-context-card__phase-label {
    color: #7dd3fc;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.callback-context-card__phase-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.callback-context-card__phase-text,
.callback-context-card__previous span,
.callback-context-card__previous small {
    color: var(--text-secondary);
    line-height: 1.45;
}

.callback-context-card__previous strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.callback-context-card__meta {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.45;
}

.next-call-helper {
    margin-bottom: 10px;
}

.pill-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    cursor: pointer;
}

.pill-radio input {
    accent-color: var(--accent);
}

.next-call-datetime {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.next-call-datetime input {
    flex: 1;
}

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

.field-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.linked-shop-summary {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-followup-cta {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.22);
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 42%),
        linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(255, 255, 255, 0.03));
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.45;
}

.tg-followup-cta a {
    color: #ffd27f;
    font-weight: 600;
}

.btn-small {
    min-width: auto !important;
    padding: 10px 14px;
    font-size: 0.84rem;
}

.callback-ghost-row td {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(56, 189, 248, 0.04));
}

.callback-ghost-row td:first-child {
    box-shadow: inset 3px 0 0 rgba(125, 211, 252, 0.78);
}

.callback-next-call {
    display: grid;
    gap: 3px;
}

.callback-next-call small {
    color: #7dd3fc;
    font-size: 0.78rem;
}

.is-readonly {
    border-color: rgba(125, 211, 252, 0.22) !important;
    background: rgba(255, 255, 255, 0.025) !important;
    color: var(--text-secondary) !important;
}

.panel-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.help-tooltip-trigger {
    flex: 0 0 auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.96));
    backdrop-filter: blur(10px);
}

.modal-footer .btn-ghost,
.modal-footer .btn-primary {
    min-width: 130px;
    justify-content: center;
}

#admin-overview-modal .modal-card {
    width: min(860px, 90vw);
}

.management-body.modal-open {
    overflow: hidden;
}

.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 92vw);
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    padding: 26px;
    backdrop-filter: blur(10px);
}

.auth-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.auth-logo {
    width: 54px;
    height: 54px;
}

/* ==================== SHOPS (Management) ==================== */
.shops-panel {
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

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

@media (max-width: 1240px) {
    .shops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .shops-grid { grid-template-columns: 1fr; }
}

.shop-card {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

button.shop-card {
    text-align: left;
    cursor: pointer;
}

.shop-card:hover {
    border-color: rgba(255, 126, 41, 0.28);
    background: rgba(255, 255, 255, 0.035);
}

.shop-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.shop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.35);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.badge-full {
    border-color: rgba(255, 126, 41, 0.35);
    background: rgba(255, 126, 41, 0.18);
    color: #ffddb9;
}
.badge-test {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.16);
    color: #f3e8ff;
}
.badge-timer-active {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.14);
    color: #dbeafe;
}
.badge-timer-urgent {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.16);
    color: #fee2e2;
}
.badge-timer-expired {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.10);
    color: #e2e8f0;
}

.shop-body {
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-title {
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.shop-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.35;
}

.shop-muted {
    color: var(--muted);
}

.shop-amount {
    color: #ffddb9;
    font-weight: 800;
}

.shop-actions {
    padding: 12px 14px 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-ghost.small.danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fee2e2;
}

.shops-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--text-secondary);
}

.shops-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-add-card {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.shop-media-add {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 126, 41, 0.14) 0, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.10) 0, transparent 40%),
        rgba(255,255,255,0.02);
}

.shop-add-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    border: 1px solid rgba(255, 126, 41, 0.35);
    background: rgba(255, 126, 41, 0.10);
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
}

.shop-form-section {
    padding: 10px 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.shop-form-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 12px;
    margin-bottom: 10px;
}

.checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-field input[type="checkbox"] {
    accent-color: var(--accent);
}

.type-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.repeater {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.repeater-row {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.repeater-row .row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr auto auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 820px) {
    .repeater-row .row-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.row-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.shop-modal-content {
    display: grid;
    gap: 12px;
}

.shipment-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
}

.shipment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.shipment-title {
    font-weight: 800;
}

.shipment-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.shipment-items {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

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

@media (max-width: 920px) {
    .shop-manage-grid { grid-template-columns: 1fr; }
}

#shop-manage-modal .modal-card {
    width: min(1280px, 96vw);
}

.shop-manage-block {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    padding: 14px;
}

.block-title {
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.shop-next-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.shop-next-label {
    color: var(--text-secondary);
    font-weight: 700;
}

.shop-next-row input[type="datetime-local"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
}

.shop-comm-form .btn-primary {
    margin-top: 10px;
}

.shop-comm-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.shop-comm-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 10px 12px;
}

.shop-comm-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.shop-comm-when {
    color: #ffddb9;
    font-weight: 800;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 0.9rem;
}

.shop-inventory {
    display: grid;
    gap: 10px;
}

.inv-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.inv-toolbar input[type="search"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    min-width: min(520px, 100%);
}

.inv-group {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
}

.inv-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.inv-group-name {
    font-weight: 900;
}

.inv-group-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.inv-group-totals {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.inv-size-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.inv-size-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    font-weight: 800;
    cursor: default;
}

.inv-size-pill .count {
    font-weight: 900;
    font-family: 'Orbitron', 'Inter', sans-serif;
    color: #ffddb9;
}

.inv-group-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.inv-editor {
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

.inv-editor-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
}

.inv-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.inv-editor-title {
    font-weight: 900;
    letter-spacing: 0.02em;
}

.inv-sale-grid {
    display: grid;
    gap: 8px;
}

.inv-sale-row {
    display: grid;
    grid-template-columns: 90px 1fr 120px;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.inv-sale-row .inv-sale-size {
    font-weight: 900;
}

.inv-sale-row .inv-sale-available {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.inv-sale-row input[type="number"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.inv-editor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 12px;
}

.inv-sale-total {
    color: var(--text-secondary);
    margin-top: 10px;
    font-weight: 700;
}

.inv-row {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
}

.inv-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.inv-name {
    font-weight: 800;
}

.inv-stats {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.inv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}


.auth-sub {
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 12px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin: 14px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-oauth {
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.auth-oauth-icon {
    width: 18px;
    height: 18px;
}

.auth-footnote {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.w-full {
    width: 100%;
    text-align: center;
}

/* Scrollbar */
.content-area::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 10px;
}

.content-area::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.content-area::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Commercial Offer (Email) */
.offer-grid {
    display: grid;
    grid-template-columns: minmax(380px, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}

@media (max-width: 980px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
}

.offer-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.offer-preview {
    position: sticky;
    top: calc(var(--shell-header-offset) + 22px);
    align-self: start;
}

@media (max-width: 980px) {
    .offer-preview {
        position: static;
    }
}

.offer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.offer-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.offer-card-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.offer-field-hint {
    margin-top: -2px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.3;
}

.offer-toggle-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.offer-toggle-title {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.offer-toggle-sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 2px;
}

.offer-unit {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 12px;
}

.offer-unit-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offer-unit-title {
    font-weight: 900;
    letter-spacing: 0.02em;
}

.offer-unit-sub {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.25;
}

.offer-profit-line {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.offer-profit {
    color: #a78bfa;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.offer-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-block;
}

.offer-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.offer-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.offer-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8edf7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, background 0.18s ease;
}

.offer-switch input:checked + .offer-switch-track {
    background: rgba(255, 126, 41, 0.18);
    border-color: rgba(255, 126, 41, 0.45);
    box-shadow: 0 0 16px rgba(255, 126, 41, 0.2);
}

.offer-switch input:checked + .offer-switch-track::after {
    transform: translateX(22px);
    background: #ffb347;
}

.offer-messengers {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
}

.offer-messengers-title {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.offer-messenger-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 520px) {
    .offer-messenger-row {
        grid-template-columns: 1fr;
    }

    .offer-messenger-input-wrap {
        grid-column: 1;
    }
}

.offer-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 800;
    cursor: pointer;
}

.offer-check input {
    accent-color: var(--accent);
}

.offer-check-messenger {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
}

.offer-messenger-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.offer-messenger-label span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-messenger-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: 0.06em;
    font-family: 'Orbitron', 'Inter', sans-serif;
}

.offer-messenger-icon-viber {
    background: rgba(111, 149, 255, 0.12);
    border: 1px solid rgba(111, 149, 255, 0.28);
    color: #c7d5ff;
}

.offer-messenger-icon-whatsapp {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.26);
    color: #8ef2b8;
}

.offer-messenger-icon-telegram {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.26);
    color: #9bc4ff;
}

.offer-messenger-input-wrap {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.offer-messenger-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.offer-messenger-input:focus {
    border-color: rgba(255, 126, 41, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 126, 41, 0.12);
    background: rgba(255, 126, 41, 0.06);
}

.offer-messenger-help {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.25;
}

.offer-messenger-row.is-enabled {
    border-color: rgba(255, 126, 41, 0.35);
    background: rgba(255, 126, 41, 0.04);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.offer-messenger-row.is-disabled .offer-messenger-input {
    opacity: 0.72;
    cursor: not-allowed;
}

.offer-messenger-row.is-disabled .offer-messenger-help {
    opacity: 0.72;
}

.offer-preview-card {
    padding: 0;
    overflow: hidden;
}

.offer-preview-card .offer-card-head {
    padding: 16px 16px 0;
}

.offer-preview-head {
    align-items: flex-start;
}

.offer-preview-tabs {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.offer-preview-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.offer-preview-tab.is-active {
    background: rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.22);
}

.offer-preview-meta {
    margin: 10px 16px 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 6px;
}

.offer-preview-meta-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.offer-preview-meta-label {
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.offer-preview-meta-value {
    color: var(--text-primary);
    font-weight: 900;
}

.offer-preview-meta-sub {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.3;
}

.offer-preview-surface {
    margin: 14px 16px 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
}

.offer-preview-pane {
    margin: 0;
}

.offer-preview-pane-light {
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.55;
    background: rgba(0, 0, 0, 0.22);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.offer-preview-iframe {
    width: 100%;
    border: 0;
    display: block;
    background: #121212;
    min-height: 740px;
}

.offer-preview-images {
    justify-content: flex-end;
}

.field input.is-readonly {
    opacity: 0.72;
    cursor: not-allowed;
}

.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-actions-sub {
    color: var(--muted);
    font-size: 0.9rem;
}

.offer-mono {
    font-family: 'Orbitron', 'Inter', sans-serif;
    color: #ffb347;
}

.offer-dup-hint {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(252, 211, 77, 0.14);
    border: 1px solid rgba(252, 211, 77, 0.32);
    color: #ffd166;
    font-size: 0.92rem;
    line-height: 1.35;
}

.offer-error {
    margin-top: 8px;
    color: #fca5a5;
    font-size: 0.92rem;
}

.offer-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.offer-alert-success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #8ef2b8;
}

.offer-alert-danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.offer-confirm-card {
    width: min(560px, 92vw);
}

.offer-confirm-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.offer-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.offer-btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(13, 16, 24, 0.35);
    border-top-color: rgba(13, 16, 24, 0.95);
    display: none;
    animation: offer-spin 0.8s linear infinite;
}

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

.offer-submit.is-loading .offer-btn-spinner {
    display: inline-block;
}

.offer-submit.is-loading {
    opacity: 0.9;
    cursor: wait;
    transform: none;
    box-shadow: 0 14px 30px rgba(255, 126, 41, 0.25);
}

.offer-submit.is-success {
    background: linear-gradient(135deg, #34d399, #22c55e);
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 18px 38px rgba(34, 197, 94, 0.25);
}

.offer-panel {
    padding-bottom: 160px;
}

.offer-history {
    margin-top: 18px;
    padding-bottom: 18px;
}

.offer-log-email {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.offer-log-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.offer-log-meta {
    display: grid;
    gap: 8px;
}

.offer-log-meta-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.offer-log-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.offer-log-value {
    color: var(--text-primary);
    font-weight: 700;
}

.offer-log-error {
    margin-top: 10px;
    color: #fca5a5;
    font-size: 0.9rem;
    line-height: 1.35;
}

.offer-log-actions {
    text-align: right;
    white-space: nowrap;
}

.offer-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.offer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.offer-check-link {
    font-weight: 800;
    padding: 10px 12px;
}

.offer-unit-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.offer-unit-controls {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 860px) {
    .offer-unit-controls {
        grid-template-columns: 1fr;
    }
}

.offer-unit-advanced {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.offer-unit-advanced summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.offer-unit-advanced-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 860px) {
    .offer-unit-advanced-grid {
        grid-template-columns: 1fr;
    }
}

.offer-unit-loyalty {
    margin-top: 12px;
}

.offer-unit-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.25);
    color: #ffd166;
    font-size: 0.9rem;
    line-height: 1.35;
}

.offer-field-warn {
    margin-top: 8px;
    color: #fca5a5;
    font-size: 0.88rem;
    line-height: 1.25;
}

.offer-input-warn {
    border-color: rgba(239, 68, 68, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.offer-preview-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.offer-preview-sizes {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.offer-preview-size {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.offer-preview-size.is-active {
    background: rgba(255, 126, 41, 0.18);
    color: #ffb347;
    box-shadow: 0 0 16px rgba(255, 126, 41, 0.2);
}

.offer-preview-viewport {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.offer-preview-viewport.is-mobile {
    width: 360px;
}

.offer-gallery {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

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

.offer-gallery-slot {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
}

.offer-gallery-slot-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.offer-gallery-slot-sub {
    display: grid;
    gap: 8px;
}

.offer-gallery-url {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.offer-gallery-caption {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.offer-gallery-url:focus {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
    background: rgba(139, 92, 246, 0.06);
}

.offer-gallery-clear {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 900;
    transition: all 0.15s ease;
}

.offer-gallery-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.offer-gallery-clear:hover:not(:disabled) {
    color: #ffb347;
    border-color: rgba(255, 126, 41, 0.35);
    box-shadow: 0 0 12px rgba(255, 126, 41, 0.18);
}

.offer-gallery-preview {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.offer-gallery-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.offer-gallery-title {
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-gallery-open {
    display: inline-block;
    margin-top: 6px;
    color: #a78bfa;
    font-weight: 900;
    text-decoration: underline;
    font-size: 0.9rem;
}

.offer-gallery-error {
    color: #fca5a5;
    font-size: 0.9rem;
    line-height: 1.35;
}

.offer-gallery-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.25);
    color: #ffd166;
    font-size: 0.92rem;
    line-height: 1.35;
}

.offer-messenger-icon-phone {
    background: rgba(255, 126, 41, 0.12);
    border: 1px solid rgba(255, 126, 41, 0.26);
    color: #ffb347;
    font-size: 16px;
}

.offer-log-action {
    margin-left: 8px;
}

.offer-log-card {
    width: min(980px, 94vw);
    height: min(86vh, 860px);
    display: flex;
    flex-direction: column;
}

.offer-log-modal-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.offer-log-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-log-pane {
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.offer-log-iframe {
    width: 100%;
    height: 62vh;
    min-height: 420px;
    border: 0;
    display: block;
    background: #121212;
}

.offer-log-pane-light {
    padding: 16px;
    white-space: pre-wrap;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.55;
    background: rgba(0, 0, 0, 0.22);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


.cp-top-tabs {
    display: flex;
    gap: 10px;
    padding: 8px;
    margin: 14px 0 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 22, 33, 0.75), rgba(23, 28, 40, 0.55));
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.cp-top-tab {
    flex: 1;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.cp-top-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.cp-top-tab.active {
    color: #12141c;
    background: linear-gradient(135deg, rgba(255, 126, 41, 0.95), rgba(243, 164, 61, 0.95));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 26px rgba(255, 126, 41, 0.22);
}

.home-pane {
    display: none;
}

.home-pane.home-pane-active {
    display: block;
}

.mgmt-home-tabs {
    margin-top: 0;
    margin-bottom: 16px;
}

.btn-process-lead {
    padding: 8px 14px;
    font-size: 0.85rem;
    box-shadow: none;
}

.parsing-panel #parser-counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.parsing-panel summary.offer-title {
    cursor: pointer;
}

.offer-grid.offer-grid-single {
    grid-template-columns: 1fr;
}

.offer-help {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.cp-messenger-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 14px;
}

.cp-subtabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.cp-subtab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cp-subtab:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.cp-subtab.active {
    color: #0b0e14;
    background: rgba(243, 164, 61, 0.95);
}

.cp-template-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cp-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cp-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.cp-pill.active {
    color: #0b0e14;
    background: rgba(255, 126, 41, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}

.cp-preview-shell {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: radial-gradient(circle at 20% 0%, rgba(255, 126, 41, 0.10) 0, transparent 40%),
        linear-gradient(180deg, rgba(12, 14, 20, 0.85), rgba(17, 22, 33, 0.65));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.cp-preview-hint {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.cp-preview {
    margin: 0;
    padding: 16px;
    color: #eaf0ff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.cp-preview-receipt {
    display: block;
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.28);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre-wrap;
}

.cp-preview pre {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.28);
    color: #eaf0ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.cp-preview blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid rgba(255, 126, 41, 0.6);
    background: rgba(255, 255, 255, 0.04);
    color: #f5e9d3;
}

.cp-preview u {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.cp-preview .tg-spoiler {
    background: rgba(255, 255, 255, 0.12);
    color: transparent;
    border-radius: 6px;
    padding: 0 4px;
}

.cp-messenger-controls {
    margin-top: 14px;
}

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

.cp-inline-hint {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

.cp-validation {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.cp-validation-item {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(252, 211, 77, 0.32);
    background: rgba(252, 211, 77, 0.14);
    color: #ffd166;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cp-validation-item.is-danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.cp-messenger-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.cp-copy-status {
    min-height: 18px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
}

.cp-copy-status[data-kind="ok"] {
    color: rgba(16, 185, 129, 0.95);
}

.cp-copy-status[data-kind="err"] {
    color: rgba(239, 68, 68, 0.95);
}

@media (max-width: 680px) {
    .cp-top-tabs {
        gap: 8px;
        padding: 6px;
    }

    .cp-top-tab {
        padding: 11px 12px;
    }

    .cp-messenger-actions {
        flex-direction: column;
        align-items: stretch;
    }
}


.payouts-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: start;
}

.balance-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg, rgba(17, 22, 33, 0.86), rgba(23, 28, 40, 0.60));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    padding: 22px;
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.balance-card__glow {
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 126, 41, 0.28) 0, transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(111, 149, 255, 0.22) 0, transparent 52%),
        radial-gradient(circle at 60% 80%, rgba(243, 164, 61, 0.18) 0, transparent 55%);
    filter: blur(26px);
    opacity: 0.85;
    pointer-events: none;
}

.balance-card__head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.balance-card__kicker {
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.balance-card__value {
    margin-top: 8px;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.balance-card__value .uah {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 800;
    margin-left: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.balance-card__status {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.balance-card__meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.balance-metric {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 12px;
}

.balance-metric__label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.balance-metric__value {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 900;
}

.balance-card__actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.balance-card__hint {
    min-height: 18px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
}

.balance-card__hint[data-kind="ok"] {
    color: rgba(16, 185, 129, 0.95);
}

.balance-card__hint[data-kind="err"] {
    color: rgba(239, 68, 68, 0.95);
}

.balance-card__hint[data-kind="info"] {
    color: rgba(59, 130, 246, 0.95);
}

.payouts-side {
    display: grid;
    gap: 12px;
}

.payout-note {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 14px;
}

.payout-note--attention {
    background: linear-gradient(135deg, rgba(255, 126, 41, 0.16), rgba(17, 22, 33, 0.55));
    border-color: rgba(255, 126, 41, 0.22);
}

.payout-note__title {
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--text-primary);
}

.payout-note__text {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.payouts-stats {
    margin-top: 18px;
}

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

.stat-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 14px;
}

.stat-card__label {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 12px;
}

.stat-card__value {
    margin-top: 8px;
    font-weight: 900;
    font-size: 16px;
}

.payouts-history {
    margin-top: 18px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.9);
}

.status-chip.status-processing {
    border-color: rgba(59, 130, 246, 0.30);
    background: rgba(59, 130, 246, 0.10);
}

.status-chip.status-processing::before {
    background: rgba(59, 130, 246, 0.95);
}

.status-chip.status-approved {
    border-color: rgba(245, 158, 11, 0.30);
    background: rgba(245, 158, 11, 0.10);
}

.status-chip.status-approved::before {
    background: rgba(245, 158, 11, 0.95);
}

.status-chip.status-rejected {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
}

.status-chip.status-rejected::before {
    background: rgba(239, 68, 68, 0.95);
}

.status-chip.status-paid {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.10);
}

.status-chip.status-paid::before {
    background: rgba(16, 185, 129, 0.95);
}

.status-chip.status-none {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.status-chip.status-running {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.10);
}

.status-chip.status-running::before {
    background: rgba(16, 185, 129, 0.95);
}

.status-chip.status-paused {
    border-color: rgba(245, 158, 11, 0.30);
    background: rgba(245, 158, 11, 0.10);
}

.status-chip.status-paused::before {
    background: rgba(245, 158, 11, 0.95);
}

.status-chip.status-stopped,
.status-chip.status-completed {
    border-color: rgba(148, 163, 184, 0.30);
    background: rgba(148, 163, 184, 0.10);
}

.status-chip.status-stopped::before,
.status-chip.status-completed::before {
    background: rgba(148, 163, 184, 0.95);
}

.status-chip.status-failed {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
}

.status-chip.status-failed::before {
    background: rgba(239, 68, 68, 0.95);
}

@media (max-width: 980px) {
    .payouts-grid {
        grid-template-columns: 1fr;
    }

    .balance-card__meta {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .payouts-stats__grid {
        grid-template-columns: 1fr;
    }
}


.admin-mini-input {
    width: 100%;
    min-width: 120px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 9px 10px;
    font-weight: 700;
    outline: none;
}

.admin-mini-input:focus {
    border-color: rgba(243, 164, 61, 0.45);
    box-shadow: 0 0 0 4px rgba(243, 164, 61, 0.10);
}

.admin-alert {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 800;
    min-height: 18px;
}

.admin-alert[data-kind="ok"] {
    border-color: rgba(16, 185, 129, 0.30);
    background: rgba(16, 185, 129, 0.10);
    color: rgba(16, 185, 129, 0.95);
}

.admin-alert[data-kind="err"] {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
    color: rgba(239, 68, 68, 0.95);
}

/* ==================== Profile modal enhancements ==================== */

.form-alert {
    display: none;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 700;
}

.form-alert[data-kind="ok"] {
    display: block;
    border-color: rgba(16, 185, 129, 0.30);
    background: rgba(16, 185, 129, 0.10);
    color: rgba(16, 185, 129, 0.95);
}

.form-alert[data-kind="err"] {
    display: block;
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
    color: rgba(239, 68, 68, 0.95);
}

.form-alert[data-kind="info"] {
    display: block;
    border-color: rgba(243, 164, 61, 0.25);
    background: rgba(243, 164, 61, 0.08);
    color: rgba(243, 164, 61, 0.95);
}

.profile-readonly {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
}

.profile-readonly__label {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-readonly__value {
    margin-top: 6px;
    font-weight: 800;
    color: var(--text-primary);
}

@media (max-width: 720px) {
    .profile-readonly {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        display: grid;
    }

    .profile-hero__meta {
        justify-items: start;
    }
}

.profile-section {
    margin-top: 18px;
}

.profile-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.profile-section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field-help {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.field-toggle .toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.toggle-ui {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, background 0.18s ease;
}

.toggle-switch input:checked + .toggle-ui {
    transform: translate(18px, -50%);
    background: rgba(243, 164, 61, 0.95);
}

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

@media (max-width: 720px) {
    .dob-grid {
        grid-template-columns: 1fr;
    }
}

.field-error {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

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

.bot-preferences-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.preference-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
}

.preference-toggle strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.preference-toggle small {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.8rem;
}

.bind-code-box code {
    color: #ffd27f;
}

/* ==================== Info / FAQ ==================== */

.info-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: radial-gradient(1200px 600px at 10% 10%, rgba(243, 164, 61, 0.18), transparent 55%),
                radial-gradient(900px 500px at 80% 10%, rgba(93, 188, 210, 0.12), transparent 60%),
                rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
}

.info-hero__title {
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.info-hero__text {
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 72ch;
}

.info-hero__badge {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(243, 164, 61, 0.25);
    background: rgba(243, 164, 61, 0.10);
    color: rgba(243, 164, 61, 0.95);
    font-weight: 900;
    white-space: nowrap;
}

.faq-accordion {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 850;
    color: var(--text-primary);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    flex: 0 0 auto;
}

.faq-item[open] .faq-question::after {
    content: '—';
    color: rgba(243, 164, 61, 0.95);
    border-color: rgba(243, 164, 61, 0.25);
    background: rgba(243, 164, 61, 0.10);
}

.faq-answer {
    padding: 0 18px 18px;
}

.soon-card {
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.12);
}

.soon-card__title {
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.soon-card__text {
    color: var(--text-secondary);
    line-height: 1.5;
}
.btn-with-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-inline-hint {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.panel-action-group__sr-only {
    display: none;
}

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

.callback-missed-row td {
    background: rgba(239, 68, 68, 0.055);
}

.callback-state {
    display: inline-flex;
    margin-top: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.callback-state--today {
    color: #fbbf24;
}

.callback-state--due_now {
    color: #fbbf24;
}

.callback-state--missed {
    color: #fca5a5;
}

.callback-state--future {
    color: #93c5fd;
}

.callback-state--today_projection {
    color: #93c5fd;
}

.callback-state--attention_soon {
    color: #facc15;
}

.callback-state--priority_due {
    color: #fde68a;
}

.callback-state--needs_contact {
    color: #fecaca;
}

.callback-context-card__note {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    line-height: 1.45;
}

.callback-phase-history {
    margin-top: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.callback-phase-history summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.callback-phase-history summary::-webkit-details-marker {
    display: none;
}

.callback-phase-history__list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.callback-phase-item {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.callback-phase-item__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.callback-phase-item__result {
    font-weight: 700;
    margin-bottom: 6px;
}

.callback-phase-item__text,
.callback-phase-item__next {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.88rem;
}

.callback-phase-item__note {
    margin-top: 6px;
    color: #cfe8ff;
    font-size: 0.84rem;
    line-height: 1.4;
}

.profile-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top left, rgba(255, 126, 41, 0.14), transparent 42%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
}

.profile-hero__main h4 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.profile-hero__copy {
    margin-top: 8px;
    max-width: 56ch;
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 0.9rem;
}

.profile-hero__meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.profile-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: min(100%, 18rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Final shell and home UX overrides */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.management-body[data-mgmt-shell="1"] .sidebar {
    width: clamp(284px, 22vw, 320px);
    padding: 18px 14px 20px;
    overflow: hidden;
    container-type: inline-size;
    container-name: management-rail;
    background:
        radial-gradient(circle at top center, rgba(255, 126, 41, 0.08), transparent 30%),
        rgba(10, 14, 22, 0.92);
}

.sidebar-rail {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100dvh - var(--shell-header-offset) - 36px);
    min-width: 0;
    min-height: 0;
}

.sidebar-rail__scroll {
    min-height: 0;
    display: grid;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar-rail__scroll[data-scroll-cue="visible"] {
    scroll-padding-bottom: 56px;
}

.sidebar-rail__scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-rail__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.sidebar-insights {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.user-profile--panel {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 126, 41, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.user-profile__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    grid-template-areas: "avatar identity actions";
    gap: 12px 14px;
    align-items: center;
}

.user-avatar,
.user-avatar-placeholder {
    grid-area: avatar;
    width: 58px;
    height: 58px;
    box-shadow: 0 0 16px rgba(255, 126, 41, 0.24);
}

.user-name {
    font-size: 0.98rem;
    line-height: 1.08;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.user-name-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.user-profile__meta {
    grid-area: identity;
    min-width: 0;
    display: grid;
    align-self: center;
}

.user-profile__identity {
    grid-area: auto;
    align-self: center;
    padding-top: 2px;
}

.user-role {
    display: inline-flex;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    min-width: 0;
}

.user-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(3, 42px);
    justify-content: end;
    align-self: start;
    min-width: calc(42px * 3 + 16px);
    gap: 8px;
}

.user-actions__item,
.status-shortcut--icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
}

.user-role__text {
    display: block;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.profile-mosaic {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 126, 41, 0.14), transparent 44%),
        rgba(255, 255, 255, 0.03);
}

.profile-mosaic__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-mosaic__value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-mosaic__value::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.7);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.profile-mosaic.is-ready .profile-mosaic__value::before {
    background: rgba(16, 185, 129, 0.95);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.profile-mosaic__meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

.sidebar-rail__scroll-cue {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: -18px;
    padding: 18px 12px 8px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0), rgba(10, 14, 22, 0.92) 48%, rgba(10, 14, 22, 0.98));
    color: rgba(232, 233, 236, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.sidebar-rail__mouse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 22px;
    color: rgba(219, 223, 231, 0.74);
}

.sidebar-rail__mouse svg {
    width: 18px;
    height: 22px;
}

.sidebar-rail__scroll-arrow {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sidebar-rail__scroll[data-scroll-cue="visible"] .sidebar-rail__scroll-cue {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu--primary {
    position: relative;
    top: auto;
    overflow: hidden;
}

.sidebar-nav-panel .nav-menu--primary {
    gap: 0;
    padding-bottom: 26px;
}

.sidebar-nav-panel .nav-menu--primary > .nav-item + .nav-item {
    margin-top: 8px;
}

.user-profile__top {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "avatar identity";
    align-items: center;
}

.user-profile__meta {
    display: flex;
    align-items: center;
}

.user-name-group {
    width: 100%;
    gap: 0;
}

.user-identity-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.user-name {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.user-role {
    flex: 0 1 auto;
    max-width: 52%;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 48%),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
}

.user-role__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions-strip {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}

.user-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
        rgba(11, 15, 22, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.user-action:hover,
.user-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 179, 71, 0.24);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    color: var(--text-primary);
    text-decoration: none;
}

.user-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.user-action__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.user-action__label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-action--money {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    padding: 3px;
    gap: 6px;
    border-color: rgba(255, 179, 71, 0.2);
    background:
        radial-gradient(circle at top left, rgba(255, 179, 71, 0.18), transparent 44%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(11, 15, 22, 0.86);
}

.user-action__money-core {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 7px 10px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(17, 22, 33, 0.96), rgba(9, 13, 20, 0.98)),
        rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-action__money-caption {
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.user-action__money-amount {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-action__money-currency {
    flex: 0 0 42px;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(232, 233, 236, 0.9);
}

.user-action__money-currency-icon {
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1;
}

.user-action--money.is-muted {
    opacity: 0.78;
    border-color: rgba(255, 255, 255, 0.08);
}

.user-action--money.has-request {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.user-action--stats,
.user-action--edit,
.user-action--logout {
    padding-inline: 10px;
}

.user-action--icon-only {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    gap: 0;
}

.user-action--icon-only .user-action__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.user-action--icon-only .user-action__label {
    display: none;
}

.sidebar-nav-shell {
    min-width: 0;
    position: relative;
}

.sidebar-nav-slot {
    position: relative;
    display: grid;
    gap: 0;
}

.sidebar-nav-panel {
    display: block;
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.sidebar-collapse-toggle,
.sidebar-collapsed-launcher,
.sidebar-nav-panel {
    position: relative;
    width: 100%;
    min-width: 0;
}

.sidebar-collapse-toggle,
.sidebar-collapsed-launcher {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sidebar-collapsed-launcher:hover,
.sidebar-collapsed-launcher:focus-visible {
    border-color: rgba(255, 179, 71, 0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.sidebar-collapse-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-collapse-toggle--cue {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 12px;
    align-self: stretch;
    margin: 0;
    padding: 12px 12px 6px;
    min-height: 52px;
    border-radius: 0 0 20px 20px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
    z-index: 2;
}

.sidebar-collapse-toggle--full-bleed::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0) 0%, rgba(10, 14, 22, 0.32) 30%, rgba(10, 14, 22, 0.86) 68%, rgba(10, 14, 22, 0.985) 100%);
    z-index: -1;
    transition: opacity 0.18s ease;
}

.sidebar-collapse-toggle--full-bleed::after {
    content: "";
    position: absolute;
    right: 22%;
    bottom: 4px;
    left: 22%;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 91, 87, 0.18) 0%, rgba(255, 91, 87, 0.06) 38%, rgba(255, 91, 87, 0) 74%);
    opacity: 0;
    transform: translateY(4px) scale(0.88);
    transition: opacity 0.22s ease, transform 0.24s ease;
    pointer-events: none;
    z-index: -1;
}

.sidebar-collapse-toggle--cue:hover,
.sidebar-collapse-toggle--cue:focus-visible {
    box-shadow: none;
}

.sidebar-collapse-toggle--full-bleed:hover::before,
.sidebar-collapse-toggle--full-bleed:focus-visible::before {
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.06) 0%, rgba(10, 14, 22, 0.38) 30%, rgba(10, 14, 22, 0.92) 68%, rgba(10, 14, 22, 1) 100%);
}

.sidebar-collapse-toggle--full-bleed:hover::after,
.sidebar-collapse-toggle--full-bleed:focus-visible::after {
    opacity: 0.62;
    transform: translateY(0) scale(1);
}

.sidebar-collapse-toggle__arrow {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #ff5b57;
    opacity: 0.96;
    transform: translateY(0);
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.22s ease;
    will-change: transform;
}

.sidebar-collapse-toggle__arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sidebar-collapse-toggle__arrow--left {
    justify-self: start;
}

.sidebar-collapse-toggle__arrow--right {
    justify-self: end;
}

.sidebar-collapse-toggle__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(246, 248, 252, 0.92);
    text-align: center;
    justify-self: center;
    transform: translateY(0);
    transform-origin: center bottom;
    transition: color 0.18s ease, text-shadow 0.22s ease, transform 0.22s ease, filter 0.22s ease;
    will-change: transform;
}

.sidebar-collapse-toggle--cue:hover .sidebar-collapse-toggle__label,
.sidebar-collapse-toggle--cue:focus-visible .sidebar-collapse-toggle__label {
    color: rgba(250, 251, 255, 0.98);
    text-shadow: 0 0 18px rgba(255, 91, 87, 0.24);
    transform: translateY(-1px) scale(1.045);
    filter: brightness(1.04);
}

.sidebar-collapse-toggle--cue:hover .sidebar-collapse-toggle__arrow,
.sidebar-collapse-toggle--cue:focus-visible .sidebar-collapse-toggle__arrow {
    color: #ff867f;
    animation: sidebar-collapse-arrow-drift 1.12s cubic-bezier(0.42, 0, 0.26, 1) infinite alternate;
}

.sidebar-collapse-toggle--cue:hover .sidebar-collapse-toggle__arrow--right,
.sidebar-collapse-toggle--cue:focus-visible .sidebar-collapse-toggle__arrow--right {
    animation-delay: 0.14s;
}

@keyframes sidebar-collapse-arrow-drift {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.88;
    }

    100% {
        transform: translateY(-3px) scale(1.08);
        opacity: 1;
    }
}

.sidebar-collapsed-launcher {
    display: none;
    min-height: 62px;
    padding: 12px 14px;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 126, 41, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
        rgba(11, 15, 22, 0.84);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.sidebar-collapsed-launcher__surface {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        rgba(17, 22, 33, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-collapsed-launcher__icon {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 245, 230, 0.92);
    box-shadow: 0 -6px 0 rgba(255, 245, 230, 0.92), 0 6px 0 rgba(255, 245, 230, 0.92);
}

.sidebar-collapsed-launcher__copy {
    display: grid;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.sidebar-collapsed-launcher__eyebrow {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sidebar-collapsed-launcher__label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.sidebar-collapsed-launcher__arrow {
    margin-left: auto;
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #ff5b57;
}

.sidebar-collapsed-launcher__arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

#sidebar-rail[data-sidebar-ready="true"] .sidebar-collapsed-launcher {
    display: inline-flex;
}

#sidebar-rail .nav-item,
#sidebar-rail .sidebar-collapse-toggle,
#sidebar-rail .sidebar-collapsed-launcher,
#sidebar-rail .sidebar-nav-panel,
#sidebar-rail .sidebar-nav-slot {
    transition:
        height 0.36s cubic-bezier(0.2, 0.75, 0.25, 1),
        opacity 0.26s ease,
        transform 0.34s cubic-bezier(0.2, 0.75, 0.25, 1),
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"] .sidebar-nav-slot {
    overflow: hidden;
}

body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"] .sidebar-nav-slot > .sidebar-collapsed-launcher,
body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"] .sidebar-nav-slot > .sidebar-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
}

body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"][data-sidebar-collapsed="true"] .sidebar-collapsed-launcher {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"][data-sidebar-collapsed="true"] .sidebar-nav-panel {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    pointer-events: none;
}

body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"][data-sidebar-collapsed="false"] .sidebar-collapsed-launcher {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
}

body[data-shell-layout="rail"] #sidebar-rail[data-sidebar-ready="true"][data-sidebar-collapsed="false"] .sidebar-nav-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#sidebar-rail[data-sidebar-collapsed="true"] .nav-menu .nav-item {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    pointer-events: none;
}

#sidebar-rail[data-sidebar-collapsed="false"] .nav-menu .nav-item {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

#sidebar-primary-nav .nav-item:nth-child(1) { transition-delay: 0.02s; }
#sidebar-primary-nav .nav-item:nth-child(2) { transition-delay: 0.05s; }
#sidebar-primary-nav .nav-item:nth-child(3) { transition-delay: 0.08s; }
#sidebar-primary-nav .nav-item:nth-child(4) { transition-delay: 0.11s; }
#sidebar-primary-nav .nav-item:nth-child(5) { transition-delay: 0.14s; }

#sidebar-rail[data-sidebar-collapsed="true"] #sidebar-primary-nav .nav-item {
    transition-delay: 0s;
}

.rail-peek-list:empty {
    display: none;
}

.rail-peek-list,
.rail-reveal--deep {
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        max-height 0.32s ease,
        margin 0.28s ease,
        padding 0.28s ease;
}

.rail-peek-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.rail-peek-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: nowrap;
}

.rail-peek-chip strong {
    color: var(--text-primary);
    font-weight: 800;
}

.rail-peek-chip--today {
    border-color: rgba(125, 211, 252, 0.26);
    background: rgba(56, 189, 248, 0.12);
}

.rail-peek-chip--missed {
    border-color: rgba(248, 113, 113, 0.26);
    background: rgba(239, 68, 68, 0.10);
}

.rail-peek-chip--review {
    border-color: rgba(251, 191, 36, 0.26);
    background: rgba(245, 158, 11, 0.11);
}

#sidebar-rail[data-rail-progress="top"] .rail-peek-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    margin: 0;
}

#sidebar-rail[data-rail-progress="top"] .rail-reveal--deep {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(12px);
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border-width: 0;
}

#sidebar-rail[data-rail-progress="mid"] .rail-peek-list,
#sidebar-rail[data-rail-progress="deep"] .rail-peek-list {
    max-height: 80px;
    opacity: 1;
    transform: none;
}

#sidebar-rail[data-rail-progress="mid"] .rail-reveal--deep {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border-width: 0;
}

#sidebar-rail[data-rail-progress="deep"] .rail-reveal--deep {
    max-height: 180px;
    opacity: 1;
    transform: none;
}

#sidebar-rail[data-rail-tier="compact"] .profile-mosaic__meta,
#sidebar-rail[data-rail-tier="collapsed"] .profile-mosaic__meta {
    font-size: 0.76rem;
}

#sidebar-rail[data-rail-tier="compact"] .rail-peek-chip {
    font-size: 0.72rem;
}

#sidebar-rail[data-rail-tier="collapsed"] .profile-mosaic {
    padding: 9px 10px;
}

#sidebar-rail[data-rail-tier="collapsed"] .daily-metric-meta,
#sidebar-rail[data-rail-tier="collapsed"] .rail-reveal--deep {
    display: none;
}

.daily-stats {
    padding: 14px;
    border-radius: 22px;
}

.daily-stats-headline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.daily-stats-head {
    position: relative;
}

.info-dot {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.info-dot:hover,
.info-dot[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(255, 179, 71, 0.34);
    background: rgba(255, 179, 71, 0.14);
    color: rgba(255, 229, 191, 0.96);
}

.help-popover {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 179, 71, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 179, 71, 0.12), transparent 48%),
        rgba(11, 15, 22, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    color: var(--text-primary);
}

.help-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(255, 179, 71, 0.22);
    border-left: 1px solid rgba(255, 179, 71, 0.22);
    background: rgba(14, 18, 26, 0.96);
    transform: rotate(45deg);
}

.help-popover--daily {
    top: calc(100% + 10px);
    left: 0;
    width: min(18rem, calc(100% - 2px));
    max-width: calc(100vw - 48px);
}

.help-popover strong {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-popover span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

.daily-stats-shell {
    gap: 14px;
}

.gauge {
    margin-bottom: 4px;
}

.daily-disclosure {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.daily-disclosure__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    transition: background 0.18s ease;
}

.daily-disclosure__summary::-webkit-details-marker {
    display: none;
}

.daily-disclosure__summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.daily-disclosure__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.daily-disclosure__eyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.daily-disclosure__title {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.daily-disclosure__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.daily-disclosure__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.daily-disclosure__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.daily-disclosure[open] .daily-disclosure__icon {
    transform: rotate(180deg);
    background: rgba(255, 179, 71, 0.14);
    border-color: rgba(255, 179, 71, 0.28);
}

.daily-disclosure__content {
    padding: 0 14px 14px;
}

.gauge-arc {
    width: 174px;
    height: 136px;
}

.gauge-caption {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}

.gauge-value {
    font-size: 2rem;
}

.daily-metric-card--count {
    display: grid;
    gap: 10px;
}

.daily-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.daily-inline-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.daily-metric-card--count .daily-metric-value {
    margin-top: 0;
    font-size: 2.15rem;
    line-height: 1;
    text-align: center;
}

.progress-track--segmented {
    position: relative;
    height: 9px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(239, 68, 68, 0.18) 0 38%,
            rgba(255, 255, 255, 0.08) 38% 39%,
            rgba(245, 158, 11, 0.18) 39% 97%,
            rgba(255, 255, 255, 0.08) 97% 98%,
            rgba(16, 185, 129, 0.16) 98% 100%
        );
}

.progress-track--segmented .progress-fill {
    position: relative;
    z-index: 1;
}

.daily-tier-rail {
    gap: 8px;
}

.daily-tier-segment {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.daily-metric-meta {
    text-align: center;
    font-size: 0.78rem;
}

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

.daily-followups__item {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 12px 12px 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(11, 15, 22, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.daily-followups__item--today {
    border-color: rgba(96, 165, 250, 0.18);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(11, 15, 22, 0.82);
}

.daily-followups__item--urgent {
    border-color: rgba(255, 179, 71, 0.2);
    background:
        radial-gradient(circle at top right, rgba(255, 179, 71, 0.16), transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(11, 15, 22, 0.82);
}

.daily-followups__label {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.daily-followups__value {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.daily-followups__hint {
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
    .user-action,
    .sidebar-collapse-toggle,
    .sidebar-collapse-toggle--full-bleed::before,
    .sidebar-collapse-toggle--full-bleed::after,
    .sidebar-collapse-toggle__arrow,
    .sidebar-collapse-toggle__label,
    .sidebar-collapsed-launcher,
    .sidebar-nav-panel,
    .sidebar-nav-slot,
    #sidebar-rail .nav-item,
    .action-rail__callback,
    .action-rail__callback::before,
    .action-rail__callback-text,
    .action-rail__icon {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }
}

.profile-hero {
    padding: 18px 20px;
    gap: 18px;
}

.profile-hero__meta {
    min-width: 220px;
}

.profile-hero__mosaic {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(255, 126, 41, 0.14), transparent 42%),
        rgba(255, 255, 255, 0.04);
    text-align: left;
}

.profile-hero__mosaic-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-hero__mosaic strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.profile-hero__mosaic span:last-child {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

#profile-modal .modal-card {
    width: min(980px, calc(100vw - 64px));
    max-width: 980px;
}

#client-modal .modal-card,
#process-modal .modal-card {
    width: min(1120px, calc(100vw - 72px));
    max-width: 1120px;
    max-height: min(90dvh, 920px);
}

#client-modal .modal-body,
#process-modal .modal-body {
    padding-bottom: 92px;
}

#lead-modal .modal-card {
    width: min(980px, calc(100vw - 72px));
    max-width: 980px;
}

.modal-section-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.modal-section-progress__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-section-progress__item.is-active {
    color: #0b0e14;
    background: linear-gradient(135deg, #ffb347, #ff7e29);
    border-color: transparent;
}

#client-modal .field-grid,
#process-modal .field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#client-modal .field-grid > .field,
#process-modal .field-grid > .field {
    min-width: 0;
}

.helper-chip {
    font-size: 0.78rem;
    line-height: 1.2;
}

.duplicate-review-surface--inline {
    padding: 16px 18px;
    border-radius: 22px;
    container-type: inline-size;
}

.duplicate-review-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

.duplicate-review-actions {
    justify-self: end;
}

.duplicate-review-list li {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
}

.duplicate-review-list li > * {
    min-width: 0;
}

.duplicate-review-list li strong,
.duplicate-review-list li span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.duplicate-mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.duplicate-override-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.duplicate-summary-card {
    width: min(720px, 92vw);
    max-width: 720px;
    max-height: min(86dvh, 860px);
}

.duplicate-summary-card .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 19, 28, 0.98), rgba(15, 19, 28, 0.88));
    backdrop-filter: blur(10px);
}

.duplicate-summary-card .modal-body {
    padding-top: 14px;
}

.duplicate-summary-content {
    gap: 12px;
}

.duplicate-summary-item {
    border-radius: 20px;
}

.duplicate-summary-grid {
    gap: 10px 18px;
}

.modal-footer-summary {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-right: auto;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.field-hint--single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nexus-table {
    table-layout: fixed;
}

.nexus-table th,
.nexus-table td {
    min-width: 0;
}

.cell-primary,
.cell-name,
.cell-source {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-note-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.20);
    background: rgba(56, 189, 248, 0.10);
    color: #c7f2ff;
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-support-stack {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.row-note-chip--projection {
    border-color: rgba(250, 204, 21, 0.26);
    background: rgba(250, 204, 21, 0.12);
    color: #fef08a;
}

.row-passive-note {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: rgba(191, 219, 254, 0.82);
    font-size: 0.72rem;
    line-height: 1.3;
}

.site-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    text-decoration: none;
}

.site-link-chip__icon {
    flex: 0 0 auto;
    color: #ffb15f;
}

.site-link-chip__text {
    display: block;
    min-width: 0;
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-shell--client-list {
    overflow: visible;
}

.table-shell--client-list .col-shop { width: 16%; }
.table-shell--client-list .col-phone { width: 11%; }
.table-shell--client-list .col-site { width: 8.5%; }
.table-shell--client-list .col-name { width: 15%; }
.table-shell--client-list .col-status { width: 10%; }
.table-shell--client-list .col-source { width: 9.5%; }
.table-shell--client-list .col-result { width: 13.5%; }
.table-shell--client-list .col-next-call { width: 15%; }
.table-shell--client-list .col-action { width: 146px; }

.table-shell--client-list .nexus-table thead th {
    padding: 10px 12px;
    font-size: 0.84rem;
}

.table-shell--client-list .nexus-table tbody td {
    padding: 10px 12px;
    font-size: 0.92rem;
    vertical-align: middle;
}

.result-stack {
    display: grid;
    gap: 0;
    justify-items: start;
    min-width: 0;
}

.result-help-anchor {
    position: relative;
    display: inline-grid;
    gap: 0;
    max-width: 100%;
}

.result-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.1;
    text-align: center;
}

.result-summary .result-badge {
    max-width: calc(100% - 30px);
}

.result-detail-trigger {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 800;
    color: #f7d39f;
    border-color: rgba(255, 179, 71, 0.22);
    background: rgba(255, 179, 71, 0.12);
    cursor: pointer;
}

.result-detail-trigger:hover,
.result-detail-trigger[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(255, 179, 71, 0.36);
    background: rgba(255, 179, 71, 0.18);
    color: #fff1d6;
}

.help-popover--row-result {
    top: calc(100% + 10px);
    left: 0;
    width: min(18rem, calc(100vw - 48px));
    max-width: 18rem;
    z-index: 18;
}

.help-popover--row-result strong {
    font-size: 0.76rem;
}

.help-popover__body {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.help-popover__body--multiline {
    white-space: pre-line;
}

.phase-indicator {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nexus-table th.col-actions,
.actions-cell--callbacks {
    width: 146px;
    min-width: 146px;
}

.actions-cell--callbacks {
    vertical-align: middle;
    overflow: visible;
}

.cell-result,
.cell-next-call,
.actions-cell--callbacks {
    overflow: visible;
}

.cell-next-call {
    text-align: center;
}

.action-rail {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    overflow: visible;
}

.action-rail--overlay {
    isolation: isolate;
}

.action-rail__stack {
    display: grid;
    justify-items: end;
    gap: 7px;
    width: 142px;
    min-width: 142px;
    overflow: visible;
}

.action-rail__stack--vertical {
    align-items: stretch;
}

.action-rail__stack--has-callback {
    padding-top: 0;
}

.action-rail__callback {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.20);
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
        rgba(9, 13, 20, 0.92);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.action-rail__callback::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    pointer-events: none;
    opacity: 0;
}

.action-rail__callback--jump {
    border-color: rgba(110, 231, 183, 0.18);
    background:
        radial-gradient(circle at top left, rgba(110, 231, 183, 0.10), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
        rgba(10, 16, 18, 0.9);
    color: #d9fff0;
}

.action-rail__callback--attention-soon::before {
    opacity: 1;
    background:
        conic-gradient(
            from 0deg,
            rgba(250, 204, 21, 0) 0deg 212deg,
            rgba(250, 204, 21, 0.95) 248deg 282deg,
            rgba(250, 204, 21, 0) 316deg 360deg
        );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1.5px;
    animation: callback-attention-orbit 1.7s linear infinite;
}

.action-rail__callback--priority-due {
    border-color: rgba(250, 204, 21, 0.44);
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, 0.14),
        0 0 26px rgba(250, 204, 21, 0.12);
    animation: callback-priority-pulse 1.6s ease-in-out infinite;
}

.action-rail__callback--priority-due .action-rail__icon {
    background: rgba(250, 204, 21, 0.18);
}

.action-rail__callback--needs-contact {
    border-color: rgba(248, 113, 113, 0.34);
    background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
        rgba(20, 10, 12, 0.92);
    color: #ffe4e6;
}

.action-rail__callback--needs-contact .action-rail__icon {
    background: rgba(248, 113, 113, 0.16);
}

@media (hover: hover) {
    .action-rail__callback:hover {
        transform: translateY(-1px);
        border-color: rgba(125, 211, 252, 0.34);
        box-shadow: 0 14px 24px rgba(6, 11, 18, 0.26);
        background:
            radial-gradient(circle at top left, rgba(125, 211, 252, 0.16), transparent 42%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05)),
            rgba(11, 15, 22, 0.92);
    }

    .action-rail__callback--jump:hover {
        border-color: rgba(110, 231, 183, 0.32);
        box-shadow: 0 14px 24px rgba(4, 12, 11, 0.24);
        background:
            radial-gradient(circle at top left, rgba(110, 231, 183, 0.14), transparent 42%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
            rgba(10, 18, 19, 0.92);
    }
}

.action-rail__callback:focus-visible {
    border-color: rgba(125, 211, 252, 0.38);
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.18);
}

.action-rail__callback--jump:focus-visible {
    border-color: rgba(110, 231, 183, 0.36);
    box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.16);
}

.action-rail__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(125, 211, 252, 0.12);
    transition: transform 0.18s ease, background 0.18s ease;
}

.action-rail__callback--jump .action-rail__icon {
    background: rgba(110, 231, 183, 0.12);
}

.action-rail__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.action-rail__callback-text {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    max-width: none;
    min-width: 0;
    opacity: 1;
    padding-left: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    transform: none;
    transition: color 0.18s ease;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-align: left;
    text-transform: none;
}

.action-rail__callback:hover .action-rail__callback-text,
.action-rail__callback:focus-visible .action-rail__callback-text {
    color: #f4fbff;
}

.action-rail__callback:hover .action-rail__icon,
.action-rail__callback:focus-visible .action-rail__icon {
    transform: scale(1.03);
    background: rgba(125, 211, 252, 0.18);
}

.action-rail__callback--jump:hover .action-rail__icon,
.action-rail__callback--jump:focus-visible .action-rail__icon {
    background: rgba(110, 231, 183, 0.18);
}

.action-rail__utilities {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.action-rail__utility {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

@keyframes callback-attention-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes callback-priority-pulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(250, 204, 21, 0.10),
            0 0 18px rgba(250, 204, 21, 0.08);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(250, 204, 21, 0.24),
            0 0 34px rgba(250, 204, 21, 0.20);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(250, 204, 21, 0.10),
            0 0 18px rgba(250, 204, 21, 0.08);
    }
}

@keyframes phase-row-spotlight-glow {
    0% {
        box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.18), 0 0 0 rgba(110, 231, 183, 0);
        background-color: rgba(110, 231, 183, 0.03);
    }
    24% {
        box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.42), 0 0 28px rgba(110, 231, 183, 0.14);
        background-color: rgba(110, 231, 183, 0.10);
    }
    100% {
        box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0), 0 0 0 rgba(110, 231, 183, 0);
        background-color: transparent;
    }
}

.nexus-table tbody tr.phase-row-spotlight td {
    animation: phase-row-spotlight-glow 2.8s cubic-bezier(0.2, 0.78, 0.18, 1);
}

.callback-ghost-row td {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(56, 189, 248, 0.05));
}

.callback-projection-row td {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(56, 189, 248, 0.04)),
        rgba(10, 14, 22, 0.54);
    opacity: 0.82;
}

.callback-projection-row .cell-primary,
.callback-projection-row .cell-phone,
.callback-projection-row .cell-name,
.callback-projection-row .cell-source,
.callback-projection-row .callback-next-call__time {
    color: rgba(233, 237, 244, 0.88);
}

.callback-missed-row td {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05), rgba(255, 255, 255, 0.012));
}

.callback-closed-row td {
    background:
        linear-gradient(180deg, rgba(9, 13, 20, 0.62), rgba(15, 23, 42, 0.38)),
        rgba(8, 11, 18, 0.88);
}

.callback-closed-row .cell-primary,
.callback-closed-row .cell-phone,
.callback-closed-row .cell-name,
.callback-closed-row .cell-source,
.callback-closed-row .cell-website,
.callback-closed-row .callback-next-call__time {
    color: rgba(226, 232, 240, 0.78);
}

.callback-closed-row .status-badge,
.callback-closed-row .result-badge {
    filter: saturate(0.72) brightness(0.9);
}

.callback-closed-row .site-link-chip,
.callback-closed-row .action-rail__utility {
    opacity: 0.72;
}

.callback-closed-row .callback-next-call__closed-panel {
    border-color: rgba(148, 163, 184, 0.1);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.22), rgba(15, 23, 42, 0.14));
}

.callback-closed-row .callback-next-call__closed-title {
    color: rgba(226, 232, 240, 0.84);
}

.callback-closed-row .callback-next-call__closed-note {
    color: rgba(148, 163, 184, 0.62);
}

.callback-missed-row .callback-state--missed,
.callback-missed-row .callback-state--needs_contact {
    color: #fecaca;
    letter-spacing: 0.08em;
}

body[data-row-mode="condensed"] .nexus-table thead th {
    padding: 9px 10px;
    font-size: 0.82rem;
}

body[data-row-mode="condensed"] .nexus-table tbody td {
    padding: 9px 10px;
    font-size: 0.9rem;
}

body[data-row-mode="condensed"] .site-link-chip__text {
    max-width: 10ch;
}

body[data-row-mode="condensed"] .result-badge {
    max-width: 130px;
    font-size: 0.82rem;
}

body[data-row-mode="condensed"] .result-detail-trigger,
body[data-row-mode="condensed"] .phase-indicator,
body[data-row-mode="condensed"] .callback-next-call small {
    font-size: 0.72rem;
}

.callback-next-call {
    display: grid;
    gap: 6px;
    align-content: start;
    justify-items: center;
    text-align: center;
}

.callback-next-call--closed {
    gap: 0;
}

.callback-next-call__time {
    font-weight: 700;
    line-height: 1.2;
}

.callback-next-call__time--quiet {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
}

.callback-next-call__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.callback-next-call small {
    margin-top: 0;
}

.callback-next-call .callback-state {
    margin-top: 0;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.68rem;
    line-height: 1.1;
}

.callback-next-call__closed-panel {
    display: grid;
    gap: 4px;
    justify-items: center;
    min-width: 144px;
    padding: 10px 14px 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.callback-next-call__closed-panel::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    margin-bottom: 2px;
}

.callback-next-call__closed-title {
    font-size: 0.8rem;
    line-height: 1.08;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.9);
}

.callback-next-call__closed-note {
    font-size: 0.57rem;
    line-height: 1.15;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.74);
}

.callback-next-call__reopen {
    width: 100%;
    margin-top: 4px;
    padding: 7px 0 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: transparent;
    color: rgba(191, 219, 254, 0.72);
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
    .callback-next-call__reopen:hover {
        color: rgba(219, 234, 254, 0.9);
        transform: translateY(-1px);
    }
}

.callback-next-call__reopen:focus-visible {
    outline: none;
    color: #dbeafe;
    text-decoration: underline;
}

body[data-row-mode="card"] .table-shell {
    border: 0;
    background: transparent;
    overflow: visible;
}

body[data-row-mode="card"] .nexus-table,
body[data-row-mode="card"] .nexus-table tbody {
    display: block;
    width: 100%;
}

body[data-row-mode="card"] .nexus-table thead {
    display: none;
}

body[data-row-mode="card"] .nexus-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

body[data-row-mode="card"] .nexus-table tbody td {
    display: grid;
    gap: 4px;
    padding: 0;
    border: 0;
}

body[data-row-mode="card"] .nexus-table tbody td:not(.actions-cell) {
    grid-column: 1;
}

body[data-row-mode="card"] .nexus-table tbody td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

body[data-row-mode="card"] .nexus-table tbody td.actions-cell--callbacks {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    margin-top: 0;
}

body[data-row-mode="card"] .actions-cell--callbacks .action-rail {
    width: auto;
}

body[data-row-mode="card"] .actions-cell--callbacks::before {
    display: none;
}

body[data-row-mode="card"] .actions-cell--callbacks .icon-btn,
body[data-row-mode="card"] .actions-cell--callbacks .action-rail__callback {
    align-self: flex-end;
}

body[data-row-mode="card"] .actions-cell--callbacks .btn-primary {
    width: auto;
}

body[data-row-mode="card"] .actions-cell--callbacks .action-rail__stack {
    width: 100%;
    min-width: 0;
}

body[data-row-mode="card"] .actions-cell--callbacks .action-rail__callback {
    width: 100%;
    min-width: 0;
    max-width: 176px;
}

body[data-row-mode="card"] .actions-cell--callbacks .action-rail__utilities {
    justify-content: flex-end;
}

body[data-row-mode="card"] .help-popover--row-result {
    width: min(18rem, calc(100vw - 32px));
}

body[data-row-mode="card"] .callback-projection-row {
    opacity: 1;
}

body[data-row-mode="card"] .callback-projection-row td {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .action-rail__callback-text {
        opacity: 1;
    }
}

@container management-rail (max-width: 296px) {
    .profile-mosaic__meta {
        display: none;
    }

    .rail-peek-list {
        gap: 6px;
    }

    .rail-peek-chip {
        padding-inline: 8px;
        font-size: 0.7rem;
    }

    .user-name {
        font-size: 0.92rem;
    }

    .user-identity-line {
        gap: 6px;
    }

    .user-role {
        max-width: 44%;
        padding: 5px 8px;
    }

    .user-actions-strip {
        gap: 5px;
    }

    .user-action {
        min-height: 37px;
        border-radius: 14px;
        padding-inline: 8px;
    }

    .user-action__label,
    .sidebar-collapse-toggle__label {
        font-size: 0.66rem;
        letter-spacing: 0.05em;
    }

    .user-action__money-caption {
        font-size: 0.48rem;
    }

    .user-action__money-currency {
        flex-basis: 38px;
        min-width: 38px;
    }

    .user-action__money-currency-icon {
        font-size: 0.96rem;
    }

    .user-action--icon-only {
        flex-basis: 36px;
        width: 36px;
        min-width: 36px;
    }

    .daily-followups {
        gap: 8px;
    }

    .daily-followups__item {
        padding: 10px 10px 9px;
    }

    .daily-followups__value {
        font-size: 1.16rem;
    }

    .daily-followups__hint {
        display: none;
    }
}

@container management-rail (max-width: 332px) {
    .user-profile__top {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "avatar identity";
        row-gap: 8px;
    }

    .user-identity-line {
        gap: 8px;
    }

    .user-role {
        max-width: 48%;
    }

    .user-actions-strip {
        gap: 4px;
    }

    .user-action {
        min-height: 36px;
        padding-inline: 7px;
    }

    .user-action__money-caption {
        display: none;
    }

    .user-action__money-amount {
        font-size: 0.84rem;
    }

    .user-action__money-currency {
        flex-basis: 36px;
        min-width: 36px;
    }

    .user-action__money-currency-icon {
        font-size: 0.9rem;
    }

    .user-action--icon-only {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
    }

    .daily-followups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1512px) {
    #client-modal .modal-card,
    #process-modal .modal-card {
        width: min(1040px, calc(100vw - 56px));
    }
}

@media (max-width: 1366px) {
    .management-body[data-mgmt-shell="1"] .sidebar {
        width: 292px;
        padding-inline: 12px;
    }

    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .duplicate-summary-card {
        width: min(680px, 92vw);
    }
}

@media (max-width: 1279px) {
    #client-modal .modal-card,
    #process-modal .modal-card,
    #lead-modal .modal-card,
    #profile-modal .modal-card {
        width: min(100vw - 32px, 960px);
    }

    #client-modal .field-grid,
    #process-modal .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .duplicate-review-list li {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
}

@media (max-width: 980px) {
    .management-body[data-mgmt-shell="1"] .sidebar {
        width: 278px;
        padding-inline: 10px;
    }

    .sidebar-rail {
        top: 12px;
        max-height: calc(100dvh - var(--shell-header-offset) - 24px);
    }

    .sidebar-rail__scroll {
        padding-right: 2px;
        margin-right: -2px;
    }

    .field-hint--single-line {
        white-space: normal;
    }
}

@media (max-width: 1080px) {
    .management-body {
        overflow: auto;
    }

    .workspace {
        display: block;
        height: auto;
        overflow: visible;
    }

    .management-body[data-mgmt-shell="1"] .sidebar,
    .main-content {
        width: 100%;
        min-width: 0;
    }

    .management-body[data-mgmt-shell="1"] .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
    }

    .sidebar-rail {
        position: static;
        top: auto;
        max-height: none;
    }

    .sidebar-nav-slot {
        height: auto !important;
        overflow: visible;
    }

    .sidebar-nav-panel {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .sidebar-collapsed-launcher {
        position: relative;
        inset: auto;
    }

    .sidebar-rail__scroll {
        overflow: visible;
        margin-right: 0;
        padding-right: 0;
    }

    .sidebar-rail__scroll-cue {
        display: none;
    }

    #sidebar-rail[data-rail-tier="stacked"] .rail-peek-list,
    #sidebar-rail[data-rail-tier="stacked"] .rail-reveal--deep {
        max-height: none;
        opacity: 1;
        overflow: visible;
        transform: none;
        margin: 0;
        border-width: 1px;
    }

    .content-area {
        height: auto;
        min-height: calc(100dvh - var(--shell-header-offset));
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .header-left {
        width: 100%;
    }

    .header-actions {
        margin-left: auto;
    }

    .sidebar-rail__scroll-cue {
        grid-template-columns: auto 1fr auto;
    }
}
