:root {
    --brand: #8E33FF;
    --brand-dark: #6B21C8;
    --brand-light: #F3EEFF;
    --navy: #150B3B;
    --bg: #F8F9FC;
    --surface: #FFFFFF;
    --text: #1A1A2E;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --sidebar-border: #E8E0F5;
    --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: var(--text); background: var(--bg); overflow: hidden; }
a { color: #2563EB; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand); color: white; font-weight: 800; font-size: 11px; flex-shrink: 0; }

/* ── Auth (Login / Register) ── */
.auth-body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden !important;
    background: #0a0618;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(400px, 32vw, 480px);
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.auth-visual {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #040810;
}

.auth-map-mount {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: auto;
}
.auth-map-mount .mapboxgl-map,
.auth-map-mount .mapboxgl-canvas-container,
.auth-map-mount canvas.mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
}
.auth-map-mount .mapboxgl-map { position: absolute; inset: 0; }
.auth-map-mount .mapboxgl-canvas { outline: none; }
.auth-map-mount.is-ready .mapboxgl-canvas {
    filter: brightness(1.06) contrast(1.04) saturate(0.92);
}

.auth-visual-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(6, 4, 18, 0.58) 0%,
            rgba(6, 4, 18, 0.14) 18%,
            transparent 36%);
}
.auth-map-mount.map-booting::after,
.auth-map-mount.auth-map-booting::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #040810;
    z-index: 1;
    opacity: 0.92;
}
.auth-map-mount .mapboxgl-ctrl-top-right {
    top: 14px;
    right: 14px;
    z-index: 3;
}
.auth-map-mount.auth-map-booting {
    background: #040810;
}
.auth-map-mount.auth-map-fallback {
    background:
        radial-gradient(circle at 62% 42%, rgba(124,58,237,.28), transparent 42%),
        radial-gradient(circle at 38% 58%, rgba(99,102,241,.15), transparent 48%),
        #040810;
}

.auth-live-feed {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
    height: 48px;
    margin: 16px 0 14px;
    overflow: hidden;
    pointer-events: none;
}
.auth-live-stage {
    position: relative;
    width: 100%;
    height: 100%;
}
.auth-live-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    opacity: 0;
    transform: none;
    transition: opacity .55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}
.auth-live-item.is-visible {
    opacity: 1;
}
.auth-live-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.55);
}
.auth-live-text {
    font-size: 12px;
    font-weight: 650;
    color: rgba(255,255,255,.92);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-visual-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(42%, 500px);
    max-width: 500px;
    color: white;
    padding: clamp(28px, 4vh, 48px) clamp(24px, 3vw, 48px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: authFadeUp .6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    overflow: hidden;
}
.auth-visual-content a,
.auth-visual-content button { pointer-events: auto; }
@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-hero { max-width: 480px; }

.auth-brand-badge {
    width: 52px; height: 52px; font-size: 11px; border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 8px 28px rgba(142, 51, 255, 0.45);
}

.auth-hero-title {
    margin: 0 0 14px;
    display: flex; flex-direction: column; gap: 4px;
    line-height: 1.08;
}
.auth-hero-line {
    display: block;
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.auth-hero-accent {
    color: #C4B5FD;
    background: linear-gradient(135deg, #E9D5FF 0%, #C4B5FD 40%, #8E33FF 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .auth-hero-accent { color: #C4B5FD; -webkit-text-fill-color: currentColor; }
}
.auth-hero-sub {
    margin: 0;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    line-height: 1.55;
    color: rgba(233, 213, 255, 0.88);
    max-width: 380px;
}

.auth-brand-title {
    margin: 0 0 10px; font-size: 42px; font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #E9D5FF 50%, #C4B5FD 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-brand-sub {
    margin: 0; font-size: 15px; color: rgba(233, 213, 255, 0.85);
    font-weight: 500; line-height: 1.5;
}

.auth-features {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
    position: relative; z-index: 1;
}
.auth-features li {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88);
    padding: 11px 14px; border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.auth-feature-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #A855F7, #6366F1);
    box-shadow: 0 0 8px rgba(142, 51, 255, 0.6);
}
.auth-visual-foot {
    margin: 32px 0 0; font-size: 12px; font-weight: 600;
    color: rgba(196, 181, 253, 0.7); letter-spacing: 0.3px;
}

.auth-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vh, 36px) clamp(20px, 2vw, 28px);
    height: 100%;
    min-height: 0;
    min-width: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(142,51,255,.08), transparent 55%),
        linear-gradient(165deg, #F8F9FC 0%, #EEF2FF 45%, #F5F3FF 100%);
    border-left: 1px solid rgba(232,224,245,.9);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    margin: auto 0;
    padding: clamp(24px, 2.5vh, 32px) clamp(22px, 2vw, 30px) clamp(22px, 2vh, 28px);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow:
        0 24px 64px rgba(30,27,75,.1),
        0 0 0 1px rgba(142,51,255,.06),
        inset 0 1px 0 rgba(255,255,255,.9);
    animation: authCardIn .5s cubic-bezier(0.22, 1, 0.36, 1) .1s both;
}
.auth-card-wide { max-width: 440px; }
@keyframes authCardIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-card-head { margin-bottom: 24px; }
.auth-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F5F3FF, #EEF2FF);
    border: 1px solid #DDD6FE;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6D28D9;
}
.auth-card-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8E33FF;
    box-shadow: 0 0 8px rgba(142,51,255,.6);
}
.auth-logo-compact {
    display: flex; align-items: center; gap: 14px;
}
.auth-logo-compact .logo-badge {
    width: 48px; height: 48px; font-size: 12px; border-radius: 14px;
    box-shadow: 0 4px 16px rgba(142,51,255,.3);
}
.auth-card-brand {
    display: block; font-size: 20px; font-weight: 800; color: var(--text);
}
.auth-card-welcome {
    display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px;
}

.auth-form { margin-bottom: 20px; }
.auth-field { margin-bottom: 18px; }
.auth-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--text-muted); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.auth-input-wrap {
    position: relative; display: flex; align-items: center;
}
.auth-input-icon {
    position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #9CA3AF; pointer-events: none;
}
.auth-input-icon svg { display: block; width: 18px; height: 18px; }
.auth-input {
    width: 100%; padding-block: 14px; padding-inline: 44px 14px;
    border: 1.5px solid #E8E0F5; border-radius: 14px;
    outline: none; background: rgba(255,255,255,.92); font-size: 14px;
    color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input::placeholder { color: #9CA3AF; }
.auth-input:hover { border-color: #DDD6FE; background: #FAFAFF; }
.auth-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(142,51,255,.12);
    background: white;
}

.auth-btn {
    width: 100%; margin-top: 8px; padding: 15px 24px;
    border: none; border-radius: 16px;
    font-size: 15px; font-weight: 700; color: white;
    background: linear-gradient(135deg, #8E33FF 0%, #A855F7 50%, #6366F1 100%);
    background-size: 200% 100%;
    box-shadow: 0 6px 24px rgba(142,51,255,.35);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: transform .15s, box-shadow .2s, background-position .3s;
    font-family: var(--font);
}
.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(142,51,255,.45);
    background-position: 100% 0;
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.auth-btn.is-loading { pointer-events: none; opacity: .8; }
.auth-btn.is-loading .auth-btn-arrow { animation: spin .8s linear infinite; }
.auth-btn-arrow { font-size: 18px; font-weight: 400; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0 14px; color: #94A3B8; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
}
.auth-divider::before,
.auth-divider::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
}
.auth-btn-google {
    background: #fff !important;
    color: #334155 !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(15,23,42,.06) !important;
}
.auth-btn-google:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
}
.auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
}
.auth-trust-pill {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    text-align: center;
}
.auth-trust-pill b {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #4338CA;
    line-height: 1.1;
}
.auth-trust-pill span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.auth-footer {
    text-align: center; margin: 0; font-size: 13px; color: var(--text-muted);
}
.auth-link {
    color: var(--brand); font-weight: 700; text-decoration: none;
    margin-inline-start: 4px; transition: color .15s;
}
.auth-link:hover { color: var(--brand-dark); text-decoration: underline; }

.error-text { color: #DC2626; font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }

@media (max-width: 1100px) and (min-width: 901px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1.2fr) minmax(380px, 44%);
    }
    .auth-visual-content {
        width: min(48%, 440px);
    }
}

@media (max-width: 900px) {
    .auth-body {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(280px, 38dvh) auto;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .auth-visual {
        height: 100%;
        min-height: 280px;
    }
    .auth-visual-scrim {
        background:
            linear-gradient(180deg,
                rgba(6, 4, 18, 0.55) 0%,
                rgba(6, 4, 18, 0.2) 45%,
                transparent 70%);
    }
    .auth-visual-content {
        width: 100%;
        max-width: none;
        padding: 20px 18px 16px;
        justify-content: flex-end;
    }
    .auth-hero-line { font-size: clamp(22px, 6vw, 28px); }
    .auth-hero-sub { font-size: 13px; max-width: none; }
    .auth-brand-badge { margin-bottom: 10px; width: 44px; height: 44px; }
    .auth-live-feed { height: 44px; margin: 8px 0 6px; max-width: 100%; }
    .auth-features { gap: 6px; }
    .auth-features li { padding: 8px 12px; font-size: 12px; }
    .auth-panel {
        height: auto;
        min-height: 0;
        border-left: none;
        border-top: 1px solid #E8E0F5;
        padding: 20px 16px max(28px, env(safe-area-inset-bottom, 16px));
    }
    .auth-card,
    .auth-card-wide {
        max-width: min(440px, 100%);
        margin: 0 auto;
        animation: authFadeUp .5s ease both;
    }
    .auth-map-mount .mapboxgl-ctrl-top-right {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        grid-template-rows: minmax(240px, 34dvh) auto;
    }
    .auth-card,
    .auth-card-wide {
        padding: 22px 18px 20px;
        border-radius: 20px;
    }
    .auth-input { padding-block: 12px; font-size: 16px; }
    .auth-btn { padding: 14px 20px; font-size: 15px; }
}

/* App shell */
.app-shell { display: flex; flex-direction: column; height: 100vh; min-height: 100dvh; }
.app-body { display: flex; flex: 1; min-height: 0; min-width: 0; }
.sidebar { width: 400px; min-width: 400px; flex-shrink: 0; background: linear-gradient(180deg, #FAFAFF 0%, #F3EEFF 40%, #FFF 100%); border-inline-end: 1px solid var(--sidebar-border); display: flex; flex-direction: column; padding: 14px 18px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding-inline-end: 2px; }
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #DDD6FE; border-radius: 3px; }

/* Modern top navbar */
.app-topnav {
    position: relative; z-index: 1200;
    display: flex; align-items: center; gap: 18px;
    min-height: 64px; padding: 10px 20px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228,226,240,.95);
    box-shadow: 0 8px 24px rgba(30,27,75,.05);
}
.app-topnav-brand {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0;
}
.app-topnav-mark {
    width: 36px; height: 36px; border-radius: 11px;
    box-shadow: 0 6px 14px rgba(83,74,183,.18);
}
.app-topnav-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.app-topnav-brand-text strong {
    font-size: 15px; font-weight: 800; color: #1E1B4B; letter-spacing: -.02em;
}
.app-topnav-brand-text span {
    font-size: 10px; font-weight: 650; color: #6366F1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}
.app-topnav-links {
    display: flex; align-items: center; gap: 4px;
    flex: 1; min-width: 0; justify-content: center;
}
.app-nav-link {
    position: relative; border: 0; background: transparent; cursor: pointer;
    padding: 9px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: #64748B;
    transition: color .18s ease, background .18s ease;
}
.app-nav-link:hover { color: #4338CA; background: #F5F3FF; }
.app-nav-link.active {
    color: #4338CA; background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
}
.app-nav-link.active::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px;
    height: 2px; border-radius: 99px;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
}
.app-topnav-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto;
}
.app-nav-pill {
    border: 1px solid #E4E2F0; background: #fff; color: #4338CA;
    border-radius: 999px; padding: 7px 12px; cursor: pointer;
    font-size: 11.5px; font-weight: 750; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(30,27,75,.04);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.app-nav-pill:hover {
    border-color: #C4B5FD; transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(83,74,183,.12);
}
.app-nav-pill--soft {
    color: #475569; background: #F8FAFC;
}
.app-nav-plan { position: relative; }
.app-nav-plan-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px 5px 8px; border-radius: 999px; cursor: pointer;
    border: 1px solid #DDD6FE; background: linear-gradient(135deg, #FAF5FF, #fff);
    box-shadow: 0 2px 10px rgba(99,102,241,.1);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    max-width: min(240px, 42vw);
}
.app-nav-plan-btn:hover,
.app-nav-plan.is-open .app-nav-plan-btn {
    border-color: #A78BFA;
    box-shadow: 0 8px 20px rgba(99,102,241,.18);
    transform: translateY(-1px);
}
.app-nav-plan-icon {
    flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 9px;
    background: linear-gradient(135deg, #7C3AED, #6366F1);
    box-shadow: 0 4px 10px rgba(99,102,241,.28);
    position: relative;
}
.app-nav-plan-icon::before {
    content: "◆";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 11px; line-height: 1;
}
.app-nav-plan-copy {
    display: flex; flex-direction: column; align-items: flex-start;
    line-height: 1.15; min-width: 0;
}
.app-nav-plan-label {
    font-size: 9.5px; font-weight: 800; color: #7C3AED;
    text-transform: uppercase; letter-spacing: .05em;
}
.app-nav-plan-meta {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 750; color: #1E1B4B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 170px;
}
.app-nav-plan-sep { color: #CBD5E1; font-weight: 700; }
.app-nav-plan-menu {
    min-width: 320px;
    padding: 12px;
}
.app-topnav-lang .f2g-lang-btn {
    background: #fff !important; color: #0f172a !important;
    border: 1px solid #E4E2F0 !important;
    box-shadow: 0 2px 8px rgba(30,27,75,.04);
}
.app-topnav-lang .f2g-lang-btn:hover {
    border-color: #C4B5FD !important; background: #F8F7FF !important;
}
.app-nav-profile { position: relative; }
.app-nav-profile-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px 5px 5px; border-radius: 999px; cursor: pointer;
    border: 1px solid #E4E2F0; background: #fff;
    box-shadow: 0 2px 8px rgba(30,27,75,.04);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    max-width: min(220px, 40vw);
}
.app-nav-profile-btn:hover,
.app-nav-profile.is-open .app-nav-profile-btn {
    border-color: #A78BFA;
    box-shadow: 0 8px 20px rgba(99,102,241,.16);
    transform: translateY(-1px);
}
.app-nav-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff; font-size: 12px; font-weight: 800;
}
.app-nav-profile-copy {
    display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0;
}
.app-nav-profile-label { font-size: 9.5px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: .04em; }
.app-nav-email {
    max-width: 140px; font-size: 11.5px; font-weight: 700; color: #1E1B4B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-nav-caret { font-size: 10px; color: #94A3B8; margin-inline-end: 2px; }
.app-nav-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
    min-width: 300px; max-width: min(360px, calc(100vw - 24px));
    max-height: min(78vh, 560px); overflow-y: auto;
    padding: 10px; border-radius: 18px;
    background: #fff; border: 1px solid #E8E0F5;
    box-shadow: 0 22px 48px rgba(30,27,75,.2);
    display: grid; gap: 6px; z-index: 1300;
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd transparent;
}
.app-nav-menu::-webkit-scrollbar { width: 5px; }
.app-nav-menu::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 99px; }
.app-nav-menu[hidden] { display: none !important; }
.app-nav-menu-divider {
    height: 1px; margin: 2px 4px;
    background: linear-gradient(90deg, transparent, #E8E0F5 20%, #E8E0F5 80%, transparent);
}
.app-nav-billing {
    padding: 0;
    margin-bottom: 2px;
    border-radius: 0;
    background: transparent;
    border: 0;
}

/* Profile menu — plan & billing */
.pn-hero {
    padding: 14px;
    border-radius: 16px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(142,51,255,.18), transparent 55%),
        linear-gradient(145deg, #1e1b4b 0%, #4c1d95 52%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(79,70,229,.28);
}
.pn-hero.is-empty {
    background: linear-gradient(145deg, #312e81, #6366f1);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    opacity: .92;
}
.pn-hero-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin-bottom: 12px;
}
.pn-hero-label {
    font-size: 10px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; opacity: .78;
}
.pn-hero-plan {
    margin: 4px 0 0; font-size: 18px; font-weight: 800; line-height: 1.15;
}
.pn-hero-badge {
    flex-shrink: 0;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.pn-quota-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pn-quota {
    padding: 8px 10px; border-radius: 12px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
}
.pn-quota-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 10px; font-weight: 700; opacity: .88; margin-bottom: 6px;
}
.pn-quota-val { font-size: 13px; font-weight: 800; }
.pn-quota-bar {
    height: 5px; border-radius: 99px;
    background: rgba(255,255,255,.16); overflow: hidden;
}
.pn-quota-bar i {
    display: block; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, #c4b5fd, #fff);
    transition: width .35s ease;
}
.pn-quota.is-low .pn-quota-bar i { background: linear-gradient(90deg, #fca5a5, #fecaca); }
.pn-hero-renew {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: 10px; font-weight: 650; opacity: .82;
}
.pn-plans-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 4px 6px;
}
.pn-plans-head strong {
    font-size: 11px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #64748B;
}
.pn-plans {
    display: grid; gap: 8px;
    max-height: 240px; overflow-y: auto;
    padding-inline-end: 2px;
    scrollbar-width: thin;
    scrollbar-color: #ddd6fe transparent;
}
.pn-plans::-webkit-scrollbar { width: 4px; }
.pn-plans::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 99px; }
.pn-plan {
    position: relative;
    display: grid; gap: 8px;
    width: 100%; padding: 12px 12px 12px 14px;
    border-radius: 14px; border: 1.5px solid #E8E0F5;
    background: #fff; text-align: start; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}
.pn-plan::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
    width: 3px; border-radius: 99px;
    background: linear-gradient(180deg, #8E33FF, #6366F1);
    opacity: .35;
}
.pn-plan:hover:not(:disabled) {
    border-color: #C4B5FD;
    box-shadow: 0 8px 20px rgba(142,51,255,.12);
    transform: translateY(-1px);
}
.pn-plan.is-current {
    border-color: #8E33FF;
    background: linear-gradient(180deg, #FAF5FF 0%, #fff 100%);
    box-shadow: 0 6px 18px rgba(142,51,255,.14);
}
.pn-plan.is-current::before { opacity: 1; }
.pn-plan.is-featured:not(.is-current) {
    border-color: #DDD6FE;
    background: linear-gradient(180deg, #F5F3FF 0%, #fff 100%);
}
.pn-plan:disabled { cursor: default; opacity: 1; }
.pn-plan-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.pn-plan-name {
    font-size: 14px; font-weight: 800; color: #1E1B4B; line-height: 1.2;
}
.pn-plan-price {
    text-align: end; flex-shrink: 0;
}
.pn-plan-price b {
    display: block; font-size: 15px; font-weight: 800;
    color: #7C3AED; line-height: 1.1;
}
.pn-plan-price small {
    display: block; margin-top: 2px; font-size: 9px; font-weight: 700;
    color: #94A3B8; text-transform: uppercase; letter-spacing: .04em;
}
.pn-plan-feats {
    display: flex; flex-wrap: wrap; gap: 5px;
}
.pn-feat {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 999px;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    font-size: 10px; font-weight: 700; color: #475569;
}
.pn-plan-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pn-plan-tag {
    font-size: 10px; font-weight: 700; color: #64748B; line-height: 1.3;
}
.pn-plan-cta {
    flex-shrink: 0;
    padding: 5px 12px; border-radius: 999px;
    font-size: 10px; font-weight: 800; letter-spacing: .02em;
    border: 0; cursor: pointer;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,.25);
}
.pn-plan.is-current .pn-plan-cta {
    background: #EDE9FE; color: #6D28D9;
    box-shadow: none; cursor: default;
}
.pn-plan:hover:not(.is-current) .pn-plan-cta {
    box-shadow: 0 6px 16px rgba(99,102,241,.32);
}

/* Profile dropdown menu */
.app-nav-profile-menu {
    min-width: 280px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 10px;
    gap: 8px;
}
.pp-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(99,102,241,.2), transparent 55%),
        linear-gradient(145deg, #1e1b4b 0%, #4338CA 55%, #6366F1 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(67,56,202,.28);
}
.pp-hero-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 800;
    background: rgba(255,255,255,.16);
    border: 1.5px solid rgba(255,255,255,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.pp-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pp-hero-copy strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-hero-copy span {
    font-size: 11px;
    font-weight: 600;
    opacity: .86;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-nav {
    display: grid;
    gap: 6px;
    padding: 2px 0;
}
.pp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #EEF2FF;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: start;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
}
.pp-item:hover {
    border-color: #C4B5FD;
    background: linear-gradient(180deg, #FAF5FF 0%, #fff 100%);
    box-shadow: 0 6px 16px rgba(99,102,241,.1);
    transform: translateY(-1px);
}
.pp-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    position: relative;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #E0E7FF;
}
.pp-item-icon--intel::before {
    content: "";
    position: absolute;
    inset: 10px 8px 8px 10px;
    border: 2px solid #6366F1;
    border-radius: 4px 4px 2px 2px;
}
.pp-item-icon--intel::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 7px;
    width: 10px;
    height: 4px;
    border-radius: 2px 2px 0 0;
    background: #6366F1;
}
.pp-item-icon--web::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 11px;
    bottom: 10px;
    border: 2px solid #7C3AED;
    border-radius: 3px;
}
.pp-item-icon--web::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 11px;
    height: 5px;
    background: #7C3AED;
    border-radius: 2px 2px 0 0;
}
.pp-item-icon--admin::before {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    top: 10px;
    bottom: 10px;
    border: 2px solid #475569;
    border-radius: 4px;
}
.pp-item-icon--admin::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    top: 14px;
    height: 2px;
    background: #475569;
    box-shadow: 0 5px 0 #475569;
}
.pp-item-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pp-item-copy strong {
    font-size: 13px;
    font-weight: 800;
    color: #1E1B4B;
    line-height: 1.15;
}
.pp-item-copy small {
    font-size: 10px;
    font-weight: 650;
    color: #64748B;
    line-height: 1.25;
}
.pp-item-arrow {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #A78BFA;
    opacity: .85;
}
.pp-foot {
    padding-top: 4px;
    border-top: 1px solid #F1F5F9;
}
.pp-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #FECACA;
    border-radius: 14px;
    background: linear-gradient(180deg, #FEF2F2 0%, #FFF5F5 100%);
    cursor: pointer;
    text-align: start;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.pp-logout:hover {
    border-color: #FCA5A5;
    background: #FEE2E2;
    box-shadow: 0 4px 14px rgba(239,68,68,.12);
}
.pp-logout-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #FEE2E2;
    border: 1px solid #FECACA;
    position: relative;
}
.pp-logout-icon::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 10px;
    height: 12px;
    border: 2px solid #DC2626;
    border-inline-start: 0;
    border-radius: 0 3px 3px 0;
}
.pp-logout-icon::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 15px;
    width: 8px;
    height: 2px;
    background: #DC2626;
    box-shadow: -3px -3px 0 #DC2626, -3px 3px 0 #DC2626;
}
.pp-logout-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pp-logout-copy strong {
    font-size: 13px;
    font-weight: 800;
    color: #B91C1C;
}
.pp-logout-copy small {
    font-size: 10px;
    font-weight: 650;
    color: #DC2626;
    opacity: .78;
}

.app-nav-menu > button,
.app-nav-menu .app-nav-menu-link {
    display: flex; align-items: center; width: 100%;
    padding: 10px 12px; border: 0; border-radius: 10px;
    background: transparent; color: #334155; cursor: pointer;
    font-size: 12.5px; font-weight: 650; text-align: start; text-decoration: none;
}
.app-nav-menu > button:hover,
.app-nav-menu .app-nav-menu-link:hover { background: #F5F3FF; color: #4338CA; }
.app-nav-menu .is-danger { color: #B91C1C; }
.app-nav-menu .is-danger:hover { background: #FEF2F2; color: #991B1B; }

.sidebar-tools-head {
    margin-bottom: 12px; padding: 12px 14px; border-radius: 14px;
    background: #fff; border: 1px solid #E8E0F5;
    box-shadow: 0 4px 14px rgba(142,51,255,.06);
}
.sidebar-tools-head strong {
    display: block; font-size: 13px; font-weight: 800; color: #1E1B4B;
}
.sidebar-tools-head span {
    display: block; margin-top: 4px; font-size: 10px; font-weight: 600;
    color: #64748B; line-height: 1.35;
}

/* Vonsel-style qualified toggles */
.sb-card { padding: 14px; }
.sb-eyebrow {
    display: block; margin: 0 0 10px;
    font-size: 10px; font-weight: 850; letter-spacing: .08em;
    text-transform: uppercase; color: #6366F1;
}
.sb-qualified { display: grid; gap: 8px; }
.sb-eyebrow-line {
    padding-bottom: 6px; margin-bottom: 4px;
    border-bottom: 2px solid #14B8A6; width: fit-content;
}
.qd-block {
    border: 1px solid #EEEAF8; border-radius: 14px; background: #fff;
    overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.qd-block.is-open, .qd-block:has(.qd-head input:checked) {
    border-color: #C7D2FE;
    box-shadow: 0 6px 16px rgba(83,74,183,.08);
}
.qd-block-flat { border-style: dashed; }
.qd-head {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    margin: 0; padding: 12px 12px; border: 0; border-radius: 0;
    background: transparent; box-shadow: none;
}
.qd-head:hover { background: #FAFBFF; box-shadow: none; border-color: transparent; }
.qd-panel {
    display: none; padding: 0 12px 12px; border-top: 1px solid #F1F5F9;
    background: #F8FAFC;
}
.qd-block.is-open .qd-panel,
.qd-block:has(.qd-head input:checked) .qd-panel { display: block; padding-top: 10px; }
.qd-block-flat .qd-panel { display: none !important; }
.qd-mini-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 650; color: #334155; cursor: pointer;
}
.qd-hint { margin: 8px 0 0; font-size: 10.5px; color: #64748B; font-weight: 600; line-height: 1.35; }
.qd-tier {
    display: grid; gap: 6px; width: 100%; text-align: start;
    margin: 0 0 8px; padding: 10px 10px; border-radius: 12px; cursor: pointer;
    border: 1px solid #E2E8F0; background: #fff; color: #334155;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.qd-tier:hover { border-color: #A5B4FC; }
.qd-tier.is-active {
    border-color: #6EE7B7; background: #ECFDF5;
    box-shadow: inset 0 0 0 1px rgba(16,185,129,.15);
}
.qd-tier-label { font-size: 11.5px; font-weight: 750; color: #1E1B4B; }
.qd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.qd-chips i {
    font-style: normal; font-size: 10px; font-weight: 750;
    padding: 4px 8px; border-radius: 8px;
    background: #F1F5F9; color: #64748B; border: 1px solid #E2E8F0;
}
.qd-chips i.is-on {
    background: #D1FAE5; color: #047857; border-color: #6EE7B7;
}
.qd-chips i.is-soft {
    background: #F1F5F9; color: #94A3B8; border-style: dashed;
}
.qd-legend {
    display: flex; justify-content: flex-end; gap: 12px;
    margin-top: 4px; font-size: 10px; font-weight: 650; color: #64748B;
}
.qd-legend .dot-on, .qd-legend .dot-soft {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-inline-end: 4px; vertical-align: middle;
}
.qd-legend .dot-on { background: #10B981; }
.qd-legend .dot-soft { background: #CBD5E1; }
.qd-legend em { font-style: normal; }
.qd-plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.qd-plan {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 10px; border-radius: 12px; cursor: pointer; text-align: start;
    border: 1px solid #E2E8F0; background: #fff; font-size: 11.5px; font-weight: 750; color: #1E1B4B;
}
.qd-plan.is-active { border-color: #A5B4FC; background: #EEF2FF; }
.qd-badge {
    font-size: 9px; font-weight: 900; letter-spacing: .04em;
    padding: 3px 7px; border-radius: 999px;
}
.qd-badge-pro { background: #E0E7FF; color: #4338CA; }
.qd-badge-biz { background: #FEF3C7; color: #B45309; }
.qd-grid-3 {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.qd-grid-3 label span {
    display: block; margin-bottom: 4px; font-size: 10px; font-weight: 700; color: #64748B;
}
.qd-grid-3 .select-input { min-height: 36px; padding: 6px 8px; font-size: 11px; }
@media (max-width: 420px) {
    .qd-grid-3 { grid-template-columns: 1fr; }
    .qd-plan-row { grid-template-columns: 1fr; }
}
.sb-toggle-row {
    display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
    margin: 0; padding: 10px 10px; border-radius: 12px; cursor: pointer;
    border: 1px solid #EEEAF8; background: #FAFBFF;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.sb-toggle-row:hover {
    border-color: #C4B5FD; background: #F5F3FF;
    box-shadow: 0 6px 14px rgba(83,74,183,.08);
}
.sb-toggle-ico {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; font-size: 15px;
    background: linear-gradient(145deg, #EEF2FF, #F5F3FF);
    border: 1px solid #E0E7FF;
}
.sb-toggle-copy { min-width: 0; }
.sb-toggle-copy b {
    display: block; font-size: 12.5px; font-weight: 750; color: #1E1B4B; line-height: 1.2;
}
.sb-toggle-copy small {
    display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600;
    color: #64748B; line-height: 1.3;
}
.sb-switch {
    position: relative; width: 42px; height: 24px; flex-shrink: 0;
}
.sb-switch input {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.sb-switch i {
    display: block; width: 100%; height: 100%; border-radius: 999px;
    background: #E2E8F0; border: 1px solid #CBD5E1;
    transition: background .18s ease, border-color .18s ease;
}
.sb-switch i::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 6px rgba(15,23,42,.18);
    transition: transform .18s ease;
}
.sb-switch input:checked + i {
    background: linear-gradient(135deg, #6366F1, #7C3AED);
    border-color: transparent;
}
.sb-switch input:checked + i::after { transform: translateX(18px); }
.sb-toggle-row:has(input:focus-visible) {
    outline: 2px solid #818CF8; outline-offset: 2px;
}
.sb-quick-presets {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid #F1F5F9;
}
.sb-advanced-card { padding: 12px; }
.sb-adv-body { margin-top: 10px; }
.sb-adv-body.hidden { display: none; }
.sb-adv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sb-adv-hint {
    margin: 6px 0 0; font-size: 10.5px; font-weight: 600; color: #94A3B8; line-height: 1.35;
}
.sb-adv-details {
    margin-top: 10px; padding: 8px 10px; border-radius: 10px;
    border: 1px solid #F1F5F9; background: #FAFBFF;
}
.sb-adv-details summary {
    cursor: pointer; font-size: 11.5px; font-weight: 750; color: #4338CA;
    list-style: none;
}
.sb-adv-details summary::-webkit-details-marker { display: none; }
.sb-adv-details[open] summary { margin-bottom: 8px; }
.sb-adv-details .tag-wrap { margin-top: 4px; }

/* Compact SEARCH AREA */
.sb-area-card { padding: 12px 14px 10px; }
.sb-area-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px;
}
.sb-area-field { display: grid; gap: 4px; margin: 0; min-width: 0; }
.sb-area-field > span {
    font-size: 10px; font-weight: 700; color: #64748B; letter-spacing: .01em;
}
.sb-area-field .text-input,
.sb-area-field .select-input,
.sb-area-field .f2g-select-trigger {
    min-height: 38px; border-radius: 10px; font-size: 12px;
}
.sb-area-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 0;
}
.sb-area-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 8px 5px 10px; border-radius: 999px;
    background: #EEF2FF; border: 1px solid #C7D2FE;
    color: #3730A3; font-size: 11px; font-weight: 750;
}
.sb-area-chip button {
    width: 16px; height: 16px; border: 0; border-radius: 50%; cursor: pointer;
    background: #FEE2E2; color: #DC2626; font-size: 10px; line-height: 1;
    display: grid; place-items: center; padding: 0;
}
.sb-area-footer {
    display: flex; justify-content: flex-end; margin-top: 8px;
    padding-top: 8px; border-top: 1px solid #F1F5F9;
}
.sb-area-clear {
    border: 0; background: transparent; cursor: pointer;
    font-size: 11px; font-weight: 750; color: #DC2626; padding: 2px 4px;
}
.sb-area-clear:hover { text-decoration: underline; }
.sb-area-clear:disabled { color: #CBD5E1; cursor: default; text-decoration: none; }

.sb-force-btn {
    width: 100%; margin-bottom: 6px; opacity: .85; font-size: 11px;
}

/* Sidebar search CTA panel */
.sc-panel {
    margin-top: 8px;
    padding: 14px;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(142,51,255,.07), transparent 55%),
        #fff;
    border: 1px solid #E8E0F5;
    box-shadow: 0 8px 28px rgba(142,51,255,.08);
    display: grid;
    gap: 10px;
}
.sc-limit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.sc-limit-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748B;
}
.sc-limit-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F5F3FF, #EEF2FF);
    border: 1px solid #DDD6FE;
}
.sc-limit-badge output {
    font-size: 15px;
    font-weight: 800;
    color: #6D28D9;
    line-height: 1;
}
.sc-limit-unit {
    font-size: 10px;
    font-weight: 700;
    color: #7C3AED;
    opacity: .85;
}
.sc-range {
    width: 100%;
    height: 6px;
    margin: 0;
    accent-color: #8E33FF;
    cursor: pointer;
}
.sc-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #DDD6FE, #C4B5FD);
}
.sc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.35);
}
.sc-search-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    text-align: start;
    background: linear-gradient(135deg, #7C3AED 0%, #8E33FF 45%, #6366F1 100%);
    box-shadow: 0 10px 24px rgba(99,102,241,.32);
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.sc-search-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(99,102,241,.38);
}
.sc-search-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}
.sc-search-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.22), transparent 55%);
    pointer-events: none;
}
.sc-search-icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
}
.sc-search-icon::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.sc-search-icon::after {
    content: "";
    position: absolute;
    bottom: 9px;
    right: 9px;
    width: 7px;
    height: 2px;
    background: #fff;
    border-radius: 99px;
    transform: rotate(45deg);
    transform-origin: right center;
}
.sc-search-copy {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sc-search-copy strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}
.sc-search-copy small {
    font-size: 11px;
    font-weight: 550;
    opacity: .88;
    line-height: 1.25;
}
.sc-search-arrow {
    position: relative;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    opacity: .92;
}
.sc-secondary-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.sc-secondary-btn:hover {
    border-color: #C4B5FD;
    background: #F5F3FF;
    color: #6D28D9;
}
.sc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 14px;
}
.sc-kbd {
    font-size: 10px;
    font-weight: 650;
    color: #94A3B8;
    letter-spacing: .02em;
}
.sc-cache {
    font-size: 10px;
    font-weight: 700;
    color: #7C3AED;
    text-align: end;
}
.sc-cache[hidden] { display: none !important; }
.sc-license {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    cursor: pointer;
}
.sc-license[hidden] { display: none !important; }
.sc-progress {
    margin: 0;
    font-size: 11px;
    color: #64748B;
    text-align: center;
    line-height: 1.4;
    min-height: 0;
}
.sc-progress:empty { display: none; }
.sc-cancel-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.sc-cancel-btn:hover { background: #FEE2E2; }

.logo-card { background: white; border-radius: 18px; padding: 16px; margin-bottom: 14px; border: 1.5px solid #DDD6FE; box-shadow: 0 2px 16px rgba(142,51,255,.07); }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-row h1 { margin: 0; font-size: 22px; font-weight: 700; }
.logo-row .sub { margin: 2px 0 0; font-size: 10px; color: var(--brand); font-weight: 600; }
.tagline-box { margin-top: 12px; padding: 8px 5px; border-radius: 8px; background: var(--brand-light); border: 1px solid #DDD6FE; font-size: 10px; font-weight: 600; color: var(--brand-dark); }
.website-btn { margin-top: 6px; padding: 8px 5px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--brand); font-size: 10px; font-weight: 600; }
.nav-switch { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-btn { padding: 8px 6px; border-radius: 10px; border: 1px solid #DDD6FE; background: #fff; color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.nav-btn.active { background: var(--brand); color: #fff; border-color: var(--brand-dark); }

.card { background: white; border-radius: 18px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--sidebar-border); box-shadow: 0 2px 16px rgba(142,51,255,.07); }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-badge { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg, #8E33FF, #A855F7 55%, #6366F1); color: white; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.section-title { font-size: 14px; font-weight: 700; }
.section-sub { font-size: 10px; color: var(--text-muted); }

.field-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin: 0 0 4px; display: block; }
.input-wrap { position: relative; margin-bottom: 2px; }
.text-input { width: 100%; padding: 0 14px; min-height: 44px; border: 1.5px solid #DDD6FE; border-radius: 12px; outline: none; background: white; font-size: 13px; }
.text-input:focus { border-color: var(--brand); }
.input-hint { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: 12px; pointer-events: none; }
.select-input { width: 100%; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--brand); border-radius: 12px; background: var(--brand-light); color: var(--brand-dark); font-size: 12px; font-weight: 600; outline: none; }
.select-input:focus { border-color: var(--brand-dark); background: white; }

/* Modern custom dropdown */
.f2g-select { position: relative; width: 100%; }
.f2g-select-native {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.f2g-select-trigger {
    width: 100%; min-height: 44px; padding-block: 10px; padding-inline: 14px 36px;
    border: 1.5px solid #DDD6FE; border-radius: 12px;
    background: white; color: var(--text);
    font-size: 13px; font-weight: 600; text-align: start;
    cursor: pointer; position: relative;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: var(--font);
}
.f2g-select-trigger:hover {
    border-color: var(--brand);
    background: #FAFAFF;
}
.f2g-select.open .f2g-select-trigger {
    border-color: var(--brand);
    background: white;
    box-shadow: 0 0 0 3px rgba(142,51,255,.15);
}
.f2g-select-value {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.f2g-select-chevron {
    position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
    color: var(--brand); display: flex; align-items: center;
    transition: transform .2s ease;
}
.f2g-select.open .f2g-select-chevron { transform: translateY(-50%) rotate(180deg); }

.f2g-select-panel {
    display: none; position: fixed; z-index: 1200;
    background: white;
    border: 1.5px solid #E8E0F5; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(21,11,59,.18), 0 2px 8px rgba(142,51,255,.08);
    overflow: hidden;
    animation: f2gDropIn .18s ease;
    flex-direction: column;
}
.f2g-select-panel.is-open {
    display: flex;
    overscroll-behavior: contain;
}
.f2g-select.open-up .f2g-select-panel {
    animation: f2gDropInUp .18s ease;
}
.f2g-select.open .f2g-select-panel { display: flex; flex-direction: column; }
@keyframes f2gDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes f2gDropInUp {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.f2g-select-search-wrap {
    padding: 8px 10px; border-bottom: 1px solid #F1F5F9; flex-shrink: 0;
}
.f2g-select-search-wrap.hidden { display: none; }
.f2g-select-search {
    width: 100%; padding: 8px 12px; border: 1.5px solid #E8E0F5;
    border-radius: 10px; font-size: 12px; outline: none; background: #FAFAFE;
    font-family: var(--font);
}
.f2g-select-search:focus { border-color: var(--brand); background: white; }

.f2g-select-list {
    list-style: none; margin: 0; padding: 6px;
    overflow-y: auto; overflow-x: hidden;
    flex: 1; min-height: 80px;
    scrollbar-width: thin; scrollbar-color: #DDD6FE transparent;
    overscroll-behavior: contain;
}
.f2g-select-list::-webkit-scrollbar { width: 6px; }
.f2g-select-list::-webkit-scrollbar-thumb { background: #DDD6FE; border-radius: 6px; }

.f2g-select-option {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 500; color: var(--text);
    cursor: pointer; transition: background .12s, color .12s;
}
.f2g-select-option:hover {
    background: var(--brand-light); color: var(--brand-dark);
}
.f2g-select-option.selected {
    background: linear-gradient(135deg, rgba(142,51,255,.12), rgba(99,102,241,.08));
    color: var(--brand-dark); font-weight: 700;
}
.f2g-opt-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f2g-check { color: var(--brand); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.f2g-select-empty {
    padding: 16px 12px; text-align: center; color: var(--text-muted); font-size: 12px;
}

.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loc-filter { margin-bottom: 6px; font-size: 12px; padding: 8px 12px; min-height: 38px; }
.loc-select { margin-bottom: 8px; }

/* Quick-search chips — compact minimal pills */
.tag-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 4px;
}
.sb-tags-scroll {
    max-height: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 2px;
    padding: 1px 2px 1px 0;
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd transparent;
}
.sb-tags-scroll::-webkit-scrollbar { width: 4px; }
.sb-tags-scroll::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 99px;
}
.sb-tags-scroll::-webkit-scrollbar-track { background: transparent; }
.sb-tags-scroll .tag-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100%;
}
.tag-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    margin: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: white;
    color: var(--brand-dark);
    border: 1px solid #E0D9FC;
    line-height: 1.15;
    white-space: nowrap;
    box-sizing: border-box;
}
.tag-btn:hover { background: var(--brand-light); border-color: var(--brand); }
.tag-btn.active { background: var(--brand); color: white; border-color: var(--brand-dark); font-weight: 700; }
.tag-btn.tag-add { border-style: dashed; color: #16a34a; border-color: #86efac; background: #f0fdf4; padding: 3px 7px; }
.tag-btn.tag-add:hover { background: #dcfce7; border-color: #22c55e; }
.tag-btn.tag-custom,
.tag-btn.tag-ai {
    background: #fff;
    border-color: #ddd6fe;
    color: var(--brand-dark);
}
.tag-btn.tag-ai:hover,
.tag-btn.tag-custom:hover { background: var(--brand-light); border-color: var(--brand); }
.tag-btn.tag-ai.active { background: var(--brand); border-color: var(--brand-dark); color: #fff; }
.tag-ai-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 12px;
    padding: 0 3px;
    border-radius: 3px;
    border: 1px solid #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .04em;
    flex: 0 0 auto;
}
.tag-btn.tag-ai.active .tag-ai-mark {
    border-color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.2);
    color: #fff;
}
.tag-ai-text {
    display: inline-block;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-btn .tag-x {
    color: #ef4444;
    font-weight: 700;
    opacity: 0.75;
    flex: 0 0 auto;
    line-height: 1;
    font-size: 10px;
}
.tag-btn.active .tag-x { color: #fecaca; }

.sb-ai-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    color: #fff;
    background: linear-gradient(135deg, #5b4fd6 0%, #7c3aed 48%, #4f46e5 100%);
    box-shadow: 0 8px 20px rgba(91, 79, 214, 0.28);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sb-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(91, 79, 214, 0.34); }
.sb-ai-btn:disabled { opacity: .72; cursor: wait; transform: none; }
.sb-ai-btn-glow {
    position: absolute; inset: -40% auto auto 55%;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.28), transparent 68%);
    pointer-events: none;
}
.sb-ai-btn .sb-ai-bot {
    position: relative;
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.sb-ai-btn .sb-ai-bot::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 40px; height: 40px;
    margin: -18px 0 0 -20px;
    border-radius: 12px;
    background: rgba(255,255,255,.2);
    z-index: -1;
}
.sb-ai-btn.is-loading .sb-ai-bot { animation: sb-ai-pulse 1s ease-in-out infinite; }
.sb-ai-btn-copy { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-ai-btn-copy strong { font-size: 13px; font-weight: 700; line-height: 1.2; }
.sb-ai-btn-copy small { font-size: 11px; opacity: .88; line-height: 1.25; font-weight: 500; }
@keyframes sb-ai-pulse { 50% { transform: scale(1.08); opacity: .85; } }

.sb-ai-panel {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}
.sb-ai-panel-head,
#aiInterestTags,
.sb-ai-chip-grid { display: none !important; }
.sb-ai-note {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #6b7280;
}
.sb-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 18px;
    padding: 0 6px;
    border-radius: 6px;
    background: #5b4fd6;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}
.sb-ai-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sb-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 10px 7px 8px;
    border-radius: 999px;
    border: 1px solid #ddd6fe;
    background: #fff;
    color: #312e81;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.sb-ai-chip:hover { border-color: #8b5cf6; background: #f5f3ff; transform: translateY(-1px); }
.sb-ai-chip.is-active { background: #5b4fd6; border-color: #4c1d95; color: #fff; }
.sb-ai-chip-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 5px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
}
.sb-ai-chip.is-active .sb-ai-chip-mark { background: rgba(255,255,255,.22); color: #fff; }
.sb-ai-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sb-ai-note {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #6b7280;
}

.template-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 8px; margin-bottom: 6px; border-radius: 12px; border: 1.5px solid #E8E0F5; background: #FAFAFE; cursor: pointer; }
.template-card:hover { background: var(--brand-light); border-color: var(--brand); }
.template-card.selected { background: var(--brand-light); border: 2.5px solid var(--brand); }
.template-card .icon { font-size: 18px; }
.template-card .body { flex: 1; min-width: 0; }
.template-card .title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.template-card .title { font-size: 12px; font-weight: 600; }
.template-card .query { font-size: 10px; color: var(--text-muted); }
.segment-badge { font-size: 9px; padding: 2px 6px; border-radius: 6px; background: var(--brand-light); border: 1px solid #DDD6FE; color: var(--brand-dark); }
.template-card .arrow { color: var(--brand); font-weight: 700; }
.template-card.selected .arrow { font-size: 0; }
.template-card.selected .arrow::before { content: '✓'; font-size: 16px; }

.filter-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.btn-ghost { padding: 8px 12px; border-radius: 10px; border: 1px solid #DDD6FE; background: white; color: var(--brand); font-size: 12px; font-weight: 600; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-ghost.sm { font-size: 11px; padding: 6px 10px; }
.filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filter-header .section-head { margin-bottom: 0; }
.slider-label { color: var(--brand); font-weight: 600; font-size: 12px; margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 24px; }
.modern-check { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 12px; cursor: pointer; }
.modern-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.cache-hint { font-size: 10px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.result-limit-label { text-align: center; color: var(--brand); font-weight: 700; margin-top: 4px; font-size: 13px; }

.expand-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 12px; border: 1px solid #E8E0F5; background: #FAFAFE; font-size: 13px; font-weight: 600; color: var(--text); }
.expand-btn:hover { background: var(--brand-light); border-color: #DDD6FE; }
.expand-btn .chev { color: var(--brand); transition: transform .2s; }
.expand-btn.open .chev { transform: rotate(180deg); }
.expand-body { margin-top: 10px; }
.expand-body.hidden { display: none; }

.history-item { display: flex; align-items: stretch; background: #FAFAFE; border: 1px solid #E8E0F5; border-radius: 12px; padding: 10px 8px; margin-bottom: 6px; }
.history-item .load-btn { flex: 1; text-align: left; padding: 0; cursor: pointer; background: transparent; }
.history-item .title { font-size: 12px; font-weight: 600; }
.history-item .sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.history-item .del-btn { padding: 6px 2px; font-size: 10px; color: var(--brand); border: 1px solid #DDD6FE; border-radius: 8px; background: white; align-self: flex-start; }

/* Minimal research history */
.sb-history-card { padding: 12px 12px 10px; }
.sb-history-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.sb-history-head .sb-eyebrow { margin: 0; }
.sb-history-meta { display: inline-flex; align-items: center; gap: 8px; }
.sb-history-count {
    min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
    display: inline-grid; place-items: center;
    font-size: 10px; font-weight: 800; color: #4338CA;
    background: #EEF2FF; border: 1px solid #E0E7FF;
}
.sb-history-head .chev {
    width: 18px; height: 18px; border-radius: 6px; position: relative;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    transition: transform .2s ease, background .15s;
}
.sb-history-head .chev::before {
    content: ""; position: absolute; left: 5px; top: 6px;
    width: 6px; height: 6px; border-right: 1.5px solid #64748B; border-bottom: 1.5px solid #64748B;
    transform: rotate(45deg);
}
.sb-history-head.open .chev { transform: rotate(180deg); background: #EEF2FF; border-color: #C7D2FE; }
.sb-history-body { margin-top: 10px; }
.sb-history-body.hidden { display: none; }
.sb-history-list {
    display: grid; gap: 4px; max-height: 220px; overflow-y: auto;
    padding-inline-end: 2px;
}
.sb-history-list::-webkit-scrollbar { width: 4px; }
.sb-history-list::-webkit-scrollbar-thumb { background: #DDD6FE; border-radius: 4px; }
.sb-hist-row {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px;
    padding: 8px 8px 8px 10px; border-radius: 10px;
    border: 1px solid transparent; background: #FAFBFF;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.sb-hist-row:hover {
    background: #fff; border-color: #E0E7FF;
    box-shadow: 0 4px 12px rgba(30,27,75,.06);
}
.sb-hist-main {
    min-width: 0; text-align: start; border: 0; background: transparent; cursor: pointer; padding: 0;
}
.sb-hist-title {
    display: block; font-size: 12px; font-weight: 750; color: #1E1B4B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-hist-sub {
    display: block; margin-top: 2px; font-size: 10px; font-weight: 600; color: #94A3B8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-hist-n {
    font-size: 10px; font-weight: 800; color: #6366F1;
    min-width: 28px; text-align: center; padding: 3px 6px; border-radius: 8px;
    background: #F5F3FF;
}
.sb-hist-del {
    width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
    display: grid; place-items: center; color: #94A3B8; background: transparent;
    opacity: .55; transition: opacity .15s, color .15s, background .15s;
}
@media (hover: hover) {
    .sb-hist-del { opacity: 0; }
    .sb-hist-row:hover .sb-hist-del { opacity: 1; }
}
.sb-hist-del:hover { color: #DC2626; background: #FEF2F2; }
.sb-history-empty {
    margin: 6px 2px 0; font-size: 11px; font-weight: 600; color: #94A3B8;
}
.sb-history-empty[hidden] { display: none !important; }

.user-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; color: var(--text-muted); }

/* Main area */
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; overflow: hidden; }
.page-hidden { display: none !important; }
.page-view-enter { animation: pageFadeIn .26s ease; }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-view {
    flex: 1; overflow-y: auto; padding: 16px;
    background: linear-gradient(180deg, #F8F9FC, #FFFFFF);
}
.dashboard-header h2 { margin: 0; font-size: 24px; }
.dashboard-header p { margin: 6px 0 14px; font-size: 12px; color: var(--text-muted); }
.dash-ai-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 16px; margin-bottom: 12px;
    background: linear-gradient(135deg, #150B3B 0%, #6B21C8 55%, #6366F1 100%);
    border-radius: 16px; color: #fff;
    box-shadow: 0 10px 28px rgba(21,11,59,.25);
}
.dash-ai-hero h3 { margin: 0; font-size: 16px; }
.dash-ai-hero p { margin: 6px 0 0; font-size: 12px; color: #E9D5FF; max-width: 760px; }
.dashboard-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.dash-card {
    background: #fff; border: 1px solid #E8E0F5; border-radius: 14px; padding: 14px;
    box-shadow: 0 2px 10px rgba(142,51,255,.06);
}
.dash-card label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.dash-card strong { font-size: 18px; color: var(--brand-dark); }
.dash-list-card {
    margin-top: 12px; background: #fff; border: 1px solid #E8E0F5; border-radius: 14px; padding: 14px;
}
.dash-list-card h3 { margin: 0 0 8px; font-size: 14px; }
.dash-list-item { padding: 8px; border: 1px solid #E8E0F5; border-radius: 10px; margin-bottom: 6px; font-size: 12px; }
.dash-list-empty { font-size: 12px; color: var(--text-muted); }
.outreach-history-list { display: grid; gap: 8px; }
.outreach-history-item {
    border: 1px solid #E8E0F5; border-radius: 10px; padding: 9px 10px;
    background: #FAFAFF;
}
.o-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.o-top strong { font-size: 12px; }
.o-status { font-size: 10px; font-weight: 700; color: #6B7280; background: #F3F4F6; padding: 3px 7px; border-radius: 999px; }
.o-status.ok { color: #065F46; background: #ECFDF5; }
.o-status.err { color: #B91C1C; background: #FEF2F2; }
.o-meta { margin-top: 4px; font-size: 10px; color: #6B7280; }
.o-subj { margin-top: 4px; font-size: 11px; color: #374151; }
.dash-recent-btn {
    width: 100%; text-align: left; margin-bottom: 6px;
    padding: 10px 11px; border-radius: 10px; border: 1px solid #E8E0F5;
    background: #FAFAFF;
}
.dash-recent-btn:hover { border-color: var(--brand); background: var(--brand-light); }
.dash-recent-btn strong { display: block; font-size: 12px; color: var(--text); }
.dash-recent-btn span { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.dash-columns { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dash-bar { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-size: 11px; }
.dash-bar-track { height: 8px; background: #EDE9FE; border-radius: 999px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: linear-gradient(90deg, #8E33FF, #6366F1); }
.map-row { flex: 1; display: flex; min-height: 280px; position: relative; background: #040810; overflow: hidden; }
.map-row.map-flying::after {
    content: '';
    /* Küre artık her zaman görünür (z-index 15) olduğu için vinyet onun üstünde olmalı */
    position: absolute; inset: 0; z-index: 17; pointer-events: none;
    background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 35%, rgba(4, 8, 16, 0.22) 100%);
    animation: flyVignette .55s ease both;
}
@keyframes flyVignette {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Uydudan bakış (orbit) fazı — "Google Earth" hissi: daha koyu atmosfer + hafif renk sıçraması */
.map-row.map-orbit.map-flying::after {
    background: radial-gradient(ellipse 78% 62% at 50% 45%, transparent 22%, rgba(3, 7, 20, 0.44) 100%);
}
/* Küreden düz haritaya geçiş anı — atmosfere giriş parlaması */
.map-row.globe-handoff::before {
    content: '';
    position: absolute; inset: 0; z-index: 16; pointer-events: none;
    background: radial-gradient(ellipse 58% 48% at 50% 45%, rgba(199, 178, 255, 0.65), rgba(196, 181, 253, 0.08) 55%, transparent 75%);
    animation: handoffFlash .6s cubic-bezier(.22,1,.36,1) both;
    mix-blend-mode: screen;
}
@keyframes handoffFlash {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}
#map { flex: 1; min-width: 0; position: relative; z-index: 1; transition: opacity .55s cubic-bezier(.22,1,.36,1), filter .45s ease; }
#map .maplibregl-map,
#map .mapboxgl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
#map .maplibregl-canvas,
#map .mapboxgl-canvas { outline: none; }
#map.map-booting::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.18), transparent 55%),
        linear-gradient(180deg, #0b1220 0%, #152238 100%);
    animation: mapBootPulse 1.1s ease-in-out infinite alternate;
}
@keyframes mapBootPulse {
    from { opacity: 0.85; }
    to { opacity: 0.55; }
}
#map.map-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.map-row.map-orbit #map { filter: saturate(1.18) brightness(0.93) contrast(1.06); }

.map-badge {
    position: absolute; top: 12px; left: 12px; z-index: 25;
    background: #fff; border: none;
    color: #3c4043; padding: 8px 14px; border-radius: 8px;
    font: 500 13px var(--font);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: transform .28s cubic-bezier(.22,1,.36,1), background .3s, color .3s, box-shadow .3s;
}
.map-badge.badge-pulse {
    box-shadow: 0 0 0 3px rgba(142, 51, 255, 0.28), 0 4px 18px rgba(142, 51, 255, 0.2);
}
.map-badge.globe-mode {
    background: rgba(10,22,40,.9);
    color: #c4b5fd;
    border: 1px solid rgba(142,51,255,.45);
    box-shadow: 0 4px 20px rgba(142,51,255,.25);
}
.map-badge.density-mode {
    left: auto;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 2px solid #8E33FF;
    background: #fff;
    color: #3c4043;
    box-shadow: 0 2px 10px rgba(142,51,255,.22);
    font: 500 12px var(--font);
    animation: densityBadgeIn .45s cubic-bezier(.22,1,.36,1) both;
}
.map-badge.density-mode .map-badge-pin {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    animation: densityPinPulse 1.8s ease-in-out infinite;
}
@keyframes densityBadgeIn {
    from { opacity: 0; transform: translateY(-8px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes densityPinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ── 3D Dünya (globe.gl / Three.js — hafif doku küresi) ── */
.globe-welcome {
    position: absolute; inset: 0; z-index: 15;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #040810;
    transition: opacity .45s cubic-bezier(.22,1,.36,1), visibility .45s;
}
.globe-welcome.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* Sonuç/yoğunluk pinleri gelince "Global Keşif" başlığı yoldan çekilsin */
.globe-welcome.has-content .globe-caption {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
}

/* Katman sırası: yıldızlar(1) < parıltı(2) < harita(3) — harita tuvali şeffaf
   kısımlarından arkadaki yıldız/parıltıyı gösterir (bkz. maplibre-gl-starfield.js) */
#starfieldContainer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#globeGlow { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#globeMount {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 3;
}
#globeMount canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
#globeMount .globe-fallback {
    color: #94a3b8;
    text-align: center;
    padding: 40% 16px 0;
    font: 14px var(--font);
}

/* Küre üzerindeki gerçek sonuç pinleri (maplibregl.Marker, anchor: center) */
.globe-pin { pointer-events: none; }
.globe-pin-dot {
    display: block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #8E33FF;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(142, 51, 255, .35), 0 2px 6px rgba(0, 0, 0, .4);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .15s cubic-bezier(.22,1,.36,1);
}
.globe-pin-dot:hover { transform: scale(1.4); }

/* Hedefte nabız gibi genişleyen halka — "buraya iniyoruz" işareti */
.globe-ring {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid #C4B5FD;
    pointer-events: none;
    animation: globeRingPulse 1.1s ease-out infinite;
}
@keyframes globeRingPulse {
    0% { transform: scale(.4); opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
}

.globe-caption {
    position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
    z-index: 20; text-align: center; color: white;
    pointer-events: none;
    width: 90%; max-width: 520px;
    transition: opacity .4s ease, transform .4s ease;
}
.globe-fallback {
    color: #c4b5fd; text-align: center; padding: 40px; font-size: 14px;
}

.globe-caption h2 {
    margin: 0 0 10px; font-size: 28px; font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.globe-caption p { margin: 0 0 16px; font-size: 14px; color: #e9d5ff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.globe-chip {
    display: inline-block;
    padding: 10px 22px; border-radius: 24px; font-size: 13px; font-weight: 700;
    background: rgba(21,11,59,.75); border: 1.5px solid rgba(142,51,255,.7); color: #f3eeff;
    box-shadow: 0 4px 24px rgba(142,51,255,.4);
    backdrop-filter: blur(8px);
    margin-bottom: 12px;
}
.globe-dive-btn {
    display: block; margin: 0 auto 10px; padding: 12px 24px;
    border-radius: 24px; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; color: white;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    box-shadow: 0 4px 20px rgba(142,51,255,.5);
    pointer-events: auto;
}
.globe-dive-btn:hover { filter: brightness(1.08); }
.globe-zoom-hint { font-size: 11px; color: #a78bfa; margin: 8px 0 0; }

/* globe.gl ülke etiket popup */
.globe-country-label {
    font-family: var(--font); font-size: 11px; font-weight: 700;
    color: #f3eeff; background: rgba(21,11,59,.85);
    padding: 4px 8px; border-radius: 6px; border: 1px solid #8E33FF;
}

.detail-panel {
    width: 340px; flex-shrink: 0; background: white; border-inline-start: 1px solid var(--border);
    overflow-y: auto; display: none; box-shadow: -2px 0 20px rgba(0,0,0,.08);
}
.detail-panel.visible { display: block; }
.detail-hero { background: linear-gradient(135deg, #8E33FF, #A855F7 55%, #6366F1); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.detail-hero .label { font-size: 11px; color: #E9D5FF; margin-bottom: 4px; }
.detail-hero h3 { margin: 0; font-size: 17px; font-weight: 700; color: white; line-height: 1.3; }
.detail-hero .rating { color: #FDE68A; font-weight: 600; margin-top: 6px; }
.detail-badge { display: inline-block; margin-top: 10px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 10px; color: white; }
.detail-body { padding: 20px 16px; }
.detail-field { margin-bottom: 12px; }
.detail-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.detail-phone { background: #F3F4F6; border-radius: 10px; padding: 10px 8px; font-weight: 600; }
.btn-maps { width: 100%; padding: 14px 20px; border-radius: 24px; font-weight: 700; color: white; background: linear-gradient(135deg, #8E33FF, #A855F7 55%, #6366F1); margin-top: 16px; }

/* Results panel */
.results-panel {
    --list-grid: 28px 24px 140px 110px 175px 100px 88px 150px 170px 54px 44px 62px 200px;
    background: white; border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,.12);
    display: none; flex-direction: column;
    flex-shrink: 0; overflow: hidden;
    height: 58vh; max-height: 65vh; min-height: 320px;
}
.results-panel.visible { display: flex; }
.results-panel.fullscreen {
    position: fixed; inset: 0; z-index: 200;
    height: 100vh; max-height: 100vh; min-height: 0;
}

.results-panel .results-header { padding: 8px 14px 0; gap: 6px; }
.results-panel .results-icon { padding: 6px; font-size: 13px; border-radius: 8px; }
.results-panel .results-title { font-size: 15px; }
.results-panel .count-badge { padding: 4px 8px; font-size: 11px; margin-inline-start: 8px; }
.results-panel .btn-pill,
.results-panel .btn-toolbar-primary { min-height: 32px; padding: 5px 12px; font-size: 12px; }

.results-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.results-title-row { display: flex; align-items: center; gap: 10px; }
.results-icon { background: var(--brand); border-radius: 10px; padding: 10px 8px; font-size: 16px; }
.results-title { font-size: 18px; font-weight: 700; margin: 0; }
.results-sub { font-size: 10px; color: var(--text-muted); }
.count-badge { background: var(--brand-light); border-radius: 8px; padding: 10px 5px; font-size: 12px; font-weight: 600; color: var(--brand-dark); margin-inline-start: 12px; }
.toolbar-btns { display: flex; gap: 8px; }
.btn-pill { padding: 10px 16px; border-radius: 20px; border: 1px solid #E5E7EB; background: white; font-size: 13px; font-weight: 600; color: var(--text); min-height: 44px; }
.btn-pill:hover { border-color: var(--brand); background: var(--brand-light); }
.btn-toolbar-primary { padding: 10px 16px; border-radius: 12px; background: var(--brand); color: white; font-size: 13px; font-weight: 600; min-height: 44px; }
.btn-toolbar-primary:hover { opacity: .92; }

.results-panel .results-filters { padding: 4px 14px; gap: 6px; }
.results-panel .results-filters .text-input { min-height: 34px; font-size: 12px; }
.results-panel .f2g-select-trigger { min-height: 34px; padding: 6px 32px 6px 10px; font-size: 12px; }

.results-filters { display: grid; grid-template-columns: 1fr 130px 80px auto; gap: 8px; padding: 8px 16px; align-items: center; flex-shrink: 0; }
.page-info-text { font-size: 11px; color: var(--text-muted); }

/* Modern results list — horizontal scroll */
.list-scroll-hint {
    padding: 0 14px 3px; margin: 0; flex-shrink: 0;
    font-size: 9px; color: var(--brand); font-weight: 600;
}
.list-scroll-hint.hidden { display: none; }
.list-scroll-wrap.hidden { display: none; }
.list-scroll-wrap {
    flex: 1; min-height: 0; min-width: 0;
    overflow-x: auto; overflow-y: auto;
    padding: 0 14px 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #DDD6FE #F8F9FC;
}
.list-scroll-wrap::-webkit-scrollbar { height: 10px; width: 10px; }
.list-scroll-wrap::-webkit-scrollbar-thumb { background: #C4B5FD; border-radius: 8px; border: 2px solid #F8F9FC; }
.list-scroll-wrap::-webkit-scrollbar-track { background: #F8F9FC; border-radius: 8px; }
.list-scroll-wrap::-webkit-scrollbar-corner { background: #F8F9FC; }

.list-inner { min-width: 1540px; }
.list-header-row {
    display: grid;
    grid-template-columns: var(--list-grid);
    gap: 6px; align-items: center;
    padding: 6px 10px; margin-bottom: 3px;
    background: linear-gradient(135deg, #8E33FF, #7C3AED);
    color: white; font-size: 10px; font-weight: 700;
    border-radius: 8px; position: sticky; top: 0; z-index: 2;
    white-space: nowrap;
}
.list-header-row span { overflow: hidden; text-overflow: ellipsis; }

.list-wrap { padding: 0; overflow: visible; }
.list-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }
.list-empty.hidden { display: none; }

.result-row {
    display: grid;
    grid-template-columns: var(--list-grid);
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    min-height: 32px;
    margin-bottom: 3px;
    background: #fff;
    border: 1px solid #E8E0F5;
    border-radius: 8px;
    transition: border-color .12s, background .12s;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.25;
    contain: layout style;
}
.result-row:nth-child(even) { background: #FAFBFC; }
.result-row:hover {
    border-color: var(--brand);
    background: #FAFAFF;
}
.result-row.selected {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: 0 0 0 2px rgba(142,51,255,.2);
}

.btn-eye {
    width: 26px; height: 26px; border-radius: 7px; border: 1px solid #DDD6FE;
    background: var(--brand-light); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; padding: 0;
}
.btn-eye svg { width: 14px; height: 14px; }
.btn-eye:hover { background: var(--brand); color: white; border-color: var(--brand-dark); }

.row-num {
    font-size: 11px; font-weight: 700; color: var(--brand);
    text-align: center; flex-shrink: 0;
}
.col-cell {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.col-cell.name { font-weight: 700; color: var(--text); font-size: 11px; }
.col-cell.phone { color: var(--brand-dark); font-weight: 600; font-size: 10px; }
.col-cell.link a { color: #2563EB; text-decoration: none; font-size: 10px; }
.col-cell.link a:hover { text-decoration: underline; }
.col-cell.muted { color: var(--text-muted); font-size: 10px; }
.col-cell.summary { color: #334155; font-size: 10px; }
.col-cell.socials {
    overflow: visible;
    white-space: normal;
}
.list-socials {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}
.list-social-empty { color: var(--text-muted); font-size: 10px; }
.list-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform .12s, background .12s, border-color .12s;
}
.list-social:hover {
    transform: translateY(-1px);
    background: #EEF2FF;
    border-color: #C7D2FE;
    color: #4338CA;
}
.list-social[data-net="instagram"] { background: #FDF2F8; color: #BE185D; border-color: #FBCFE8; }
.list-social[data-net="linkedin"] { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.list-social[data-net="facebook"] { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.list-social[data-net="youtube"] { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.list-social[data-net="x"] { background: #F8FAFC; color: #0F172A; border-color: #CBD5E1; }
.list-social[data-net="tiktok"] { background: #F8FAFC; color: #0F172A; border-color: #CBD5E1; }
.list-social[data-net="whatsapp"] { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }

.badge-rating {
    display: inline-flex; align-items: center; gap: 2px;
    background: #FFF7ED; color: #C2410C; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 6px; white-space: nowrap;
}
.badge-rating .star { color: #F59E0B; font-size: 9px; }
.badge-status {
    display: inline-block; font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 6px;
    background: #ECFDF5; color: #065F46; white-space: nowrap;
}
.badge-status.closed { background: #FEF2F2; color: #B91C1C; }

/* Detail popup modal — wide modern sheet */
.modal-backdrop#detailModal {
    padding: 24px 16px;
    background: rgba(10, 6, 28, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1450;
}
.detail-modal {
    position: relative;
    background: linear-gradient(180deg, #fcfbff 0%, #ffffff 28%);
    border-radius: 28px;
    width: min(1080px, 96vw);
    max-height: min(92vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 8px 32px rgba(142, 51, 255, .12),
        0 32px 96px rgba(10, 6, 28, .45);
    border: 1px solid rgba(255,255,255,.55);
    animation: dmSheetIn .38s cubic-bezier(.22, 1, .36, 1);
}
@keyframes dmSheetIn {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
#detailModalContent {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
}

.dm-hero {
    position: relative;
    padding: 28px 32px 22px;
    background:
        radial-gradient(900px 220px at 12% -20%, rgba(142,51,255,.55), transparent 55%),
        radial-gradient(700px 200px at 88% 0%, rgba(99,102,241,.4), transparent 50%),
        linear-gradient(125deg, #12082f 0%, #3b1570 48%, #5b21b6 100%);
    color: white;
    overflow: hidden;
}
.dm-hero::after {
    content: "";
    position: absolute; inset: auto -10% -40% 40%;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
    pointer-events: none;
}
.detail-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 38px; height: 38px; border-radius: 12px; border: none;
    background: rgba(255,255,255,.14); color: white; font-size: 20px; cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s, transform .2s;
}
.detail-modal-close:hover { background: rgba(255,255,255,.28); transform: scale(1.04); }

.dm-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(233,213,255,.85);
    margin-bottom: 10px;
}
.dm-kicker-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #A78BFA;
    box-shadow: 0 0 0 4px rgba(167,139,250,.25);
    animation: dmPulseDot 1.6s ease-in-out infinite;
}
@keyframes dmPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .7; }
}
.dm-hero h2 {
    margin: 0; max-width: calc(100% - 52px);
    font-size: clamp(22px, 2.4vw, 30px); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.2;
}
.dm-hero-meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center;
}
.dm-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 650;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(6px);
}
.dm-chip.rating { color: #FDE68A; }
.dm-chip.open { color: #A7F3D0; background: rgba(16,185,129,.18); border-color: rgba(167,243,208,.25); }
.dm-chip.closed { color: #FECACA; background: rgba(239,68,68,.16); border-color: rgba(254,202,202,.22); }
.dm-chip.muted { color: rgba(255,255,255,.78); }

.dm-body {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 0;
    min-height: 420px;
    align-items: stretch;
}
.dm-col {
    padding: 22px 28px 28px;
}
.dm-col-main {
    border-right: 1px solid #EDE7F8;
    background: linear-gradient(180deg, rgba(248,249,252,.65), transparent 120px);
}
.dm-col-side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    background:
        radial-gradient(480px 200px at 100% 0%, rgba(142,51,255,.08), transparent 55%),
        linear-gradient(180deg, #F9F7FD, #F3EEFB);
}

/* CRM side panel */
.dm-crm-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}
.dm-crm-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(228,217,248,.9);
    background: rgba(255,255,255,.45);
}
.dm-crm-brand {
    display: flex; align-items: center; gap: 11px; min-width: 0;
}
.dm-crm-brand-ico {
    width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 17px;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    color: white;
    box-shadow: 0 8px 20px rgba(142,51,255,.28);
}
.dm-crm-brand strong {
    display: block; font-size: 14px; font-weight: 800; color: var(--navy);
}
.dm-crm-brand span {
    display: block; font-size: 11px; color: #8B7AAF; font-weight: 600; margin-top: 2px;
}
.dm-crm-score {
    position: relative; width: 54px; height: 54px; flex-shrink: 0;
}
.dm-crm-score svg {
    width: 54px; height: 54px; transform: rotate(-90deg);
}
.dm-crm-score-track {
    fill: none; stroke: rgba(221,214,254,.65); stroke-width: 5;
}
.dm-crm-score-fill {
    fill: none; stroke: url(#dmScoreGrad); stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset .6s cubic-bezier(.22,1,.36,1);
}
.dm-crm-score-val {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: #5B21B6;
}

.dm-crm-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dm-crm-status {
    padding: 12px 13px 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    border: 1px solid #EBE4F7;
}
.dm-crm-status label {
    display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #8B7AAF; margin-bottom: 9px;
}
.dm-crm-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.dm-crm-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 750;
    border: 1.5px solid transparent;
    background: #F8F7FC; color: #6B7280;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.dm-crm-pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; opacity: .55;
}
.dm-crm-pill:hover { transform: translateY(-1px); }
.dm-crm-pill.on {
    color: white; box-shadow: 0 6px 16px rgba(21,11,59,.12);
}
.dm-crm-pill.on .dot { background: rgba(255,255,255,.85); opacity: 1; }
.dm-crm-pill[data-status="0"].on { background: linear-gradient(135deg, #6366F1, #818CF8); border-color: #6366F1; }
.dm-crm-pill[data-status="1"].on { background: linear-gradient(135deg, #8E33FF, #A855F7); border-color: #8E33FF; }
.dm-crm-pill[data-status="2"].on { background: linear-gradient(135deg, #F59E0B, #FBBF24); border-color: #F59E0B; color: #422006; }
.dm-crm-pill[data-status="2"].on .dot { background: #92400E; }
.dm-crm-pill[data-status="3"].on { background: linear-gradient(135deg, #10B981, #34D399); border-color: #10B981; }
.dm-crm-pill[data-status="4"].on { background: linear-gradient(135deg, #EF4444, #F87171); border-color: #EF4444; }
.dm-crm-status select { display: none; }

.dm-crm-card {
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    border: 1px solid #EBE4F7;
    overflow: hidden;
    animation: dmFieldIn .45s cubic-bezier(.22,1,.36,1) both;
}
.dm-crm-card:nth-of-type(2) { animation-delay: .05s; }
.dm-crm-card:nth-of-type(3) { animation-delay: .1s; }
.dm-crm-card:nth-of-type(4) { animation-delay: .15s; }
.dm-crm-card-h {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 13px 9px;
    border-bottom: 1px solid #F1ECFA;
    background: linear-gradient(180deg, rgba(248,245,255,.9), rgba(255,255,255,.4));
}
.dm-crm-card-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: #6D5B9A;
}
.dm-crm-card-title .ico {
    width: 24px; height: 24px; border-radius: 8px;
    display: grid; place-items: center; font-size: 12px;
    background: #F3EEFF; color: #6D28D9;
}
.dm-crm-card-body { padding: 11px 13px 12px; }
.dm-crm-card .text-input,
.dm-crm-card textarea.text-input {
    border: 1px solid #E8E0F5;
    border-radius: 12px;
    background: #FCFBFF;
    resize: vertical;
    min-height: 72px;
}
.dm-crm-card .text-input:focus,
.dm-crm-card textarea.text-input:focus {
    border-color: #C4B5FD;
    box-shadow: 0 0 0 3px rgba(142,51,255,.1);
}
.dm-crm-card input.text-input { min-height: auto; }

.dm-crm-ai-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 10px;
    font-size: 11px; font-weight: 750;
    color: #5B21B6;
    background: #F5F0FF;
    border: 1px solid #DDD6FE;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.dm-crm-ai-btn:hover { background: #EDE4FF; transform: translateY(-1px); }
.dm-crm-ai-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.dm-crm-ai-btn.is-loading { opacity: .7; pointer-events: none; }
.dm-crm-ai-btn.is-loading::after {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(91,33,182,.25); border-top-color: #5B21B6;
    animation: spin .7s linear infinite;
}

/* Brief card — modern compact */
.dm-crm-brief-card .dm-crm-card-body { display: flex; flex-direction: column; gap: 10px; }
.dm-brief-site-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 12px;
    background: #F8F7FC; border: 1px dashed #D8CBF5;
}
.dm-brief-site-ico {
    width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #EDE9FE; color: #6D28D9; font-size: 13px;
}
.dm-brief-site-row input {
    flex: 1; border: none; background: transparent;
    font-size: 12px; font-weight: 650; color: #374151; outline: none;
    min-width: 0;
}
.dm-brief-site-row input::placeholder { color: #9CA3AF; font-weight: 500; }
.dm-brief-editor textarea.text-input {
    min-height: 64px;
    line-height: 1.45;
    font-size: 13px;
}
.dm-brief-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 10px; font-weight: 700; color: #9CA3AF;
}
.dm-brief-meta .quality {
    padding: 3px 8px; border-radius: 999px;
    background: #F3F4F6; color: #6B7280;
}
.dm-brief-meta .quality.good { background: #ECFDF5; color: #047857; }
.dm-brief-meta .quality.mid { background: #FFFBEB; color: #B45309; }
.dm-brief-meta .quality.low { background: #FEF2F2; color: #B91C1C; }
.dm-brief-preview {
    padding: 10px 11px; border-radius: 12px;
    background: linear-gradient(135deg, #F5F0FF, #EEF2FF);
    border: 1px solid #DDD6FE;
}
.dm-brief-preview label {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #7C6BA8; margin-bottom: 6px;
}
.dm-brief-preview-box {
    display: flex; align-items: flex-start; gap: 8px;
}
.dm-brief-preview-ico {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(255,255,255,.75); color: #5B21B6; font-size: 12px;
}
.dm-brief-preview-box p {
    margin: 0; font-size: 12px; line-height: 1.4; color: #312E81; font-weight: 650;
}
.dm-brief-preview-box p.empty { color: #9CA3AF; font-style: italic; font-weight: 500; }
.dm-brief-ai-result {
    display: flex; flex-direction: column; gap: 6px;
}
.dm-brief-ai-chip {
    padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,.9); border: 1px solid #E9D5FF;
}
.dm-brief-ai-chip label {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: #8B5CF6; margin-bottom: 3px;
}
.dm-brief-ai-chip p {
    margin: 0; font-size: 11.5px; line-height: 1.4; color: #4C1D95; font-weight: 600;
}
.dm-brief-status {
    min-height: 0;
    font-size: 11px; font-weight: 650; line-height: 1.35;
    color: #6B7280;
}
.dm-brief-status.ok { color: #047857; }
.dm-brief-status.err { color: #B91C1C; }
.dm-brief-tips {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.dm-brief-tip {
    padding: 5px 9px; border-radius: 8px;
    font-size: 10px; font-weight: 700;
    background: rgba(255,255,255,.85);
    border: 1px solid #EDE7F8;
    color: #6D5B9A;
}

.dm-crm-extra-preview {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px;
}
.dm-crm-extra-chip {
    padding: 9px 10px; border-radius: 11px;
    background: #F8F7FC; border: 1px solid #EDE7F8;
}
.dm-crm-extra-chip label {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: #9CA3AF; margin-bottom: 3px;
}
.dm-crm-extra-chip p {
    margin: 0; font-size: 12px; line-height: 1.4; color: #374151; font-weight: 600;
}

.dm-crm-assign {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.dm-crm-assign-item {
    position: relative;
}
.dm-crm-assign-item .ico {
    position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%);
    font-size: 12px; pointer-events: none; z-index: 1;
}
.dm-crm-assign select {
    width: 100%;
    padding-inline-start: 30px;
    border-radius: 12px;
    border: 1px solid #E8E0F5;
    background: rgba(255,255,255,.9);
    font-size: 12px; font-weight: 650;
}

.dm-crm-snapshot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.dm-crm-stat {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    border: 1px solid #EBE4F7;
}
.dm-crm-stat.span-2 { grid-column: 1 / -1; }
.dm-crm-stat label {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: #9CA3AF; margin-bottom: 6px;
}
.dm-crm-stat strong {
    display: block; font-size: 15px; font-weight: 800; color: var(--navy);
}
.dm-crm-stat span {
    display: block; font-size: 11px; color: #6B7280; font-weight: 600; margin-top: 2px;
}
.dm-crm-channels {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.dm-crm-channel {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 9px; border-radius: 8px;
    font-size: 11px; font-weight: 700;
}
.dm-crm-channel.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.dm-crm-channel.no { background: #F9FAFB; color: #9CA3AF; border: 1px solid #E5E7EB; }
.dm-crm-next {
    display: flex; align-items: flex-start; gap: 10px;
}
.dm-crm-next-ico {
    width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #EEF2FF, #E9D5FF);
    color: #5B21B6; font-size: 14px;
}
.dm-crm-next p {
    margin: 0; font-size: 12px; line-height: 1.45; color: #4B5563; font-weight: 600;
}

.dm-crm-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(228,217,248,.9);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(8px);
}
.dm-crm-footer .dm-save { margin: 0; }

.dm-section-title {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 0 14px;
    font-size: 11px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: #7C6BA8;
}
.dm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dm-field {
    padding: 12px 14px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    border: 1px solid #EBE4F7;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    animation: dmFieldIn .45s cubic-bezier(.22,1,.36,1) both;
}
.dm-field:nth-child(1) { animation-delay: .04s; }
.dm-field:nth-child(2) { animation-delay: .08s; }
.dm-field:nth-child(3) { animation-delay: .12s; }
.dm-field:nth-child(4) { animation-delay: .16s; }
.dm-field:nth-child(5) { animation-delay: .2s; }
.dm-field:nth-child(6) { animation-delay: .24s; }
.dm-field:hover {
    border-color: #D8CBF5;
    box-shadow: 0 8px 20px rgba(142,51,255,.06);
    transform: translateY(-1px);
}
.dm-field.span-2 { grid-column: 1 / -1; }
.dm-field label {
    display: block; font-size: 10px; font-weight: 750;
    color: #8B7AAF; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px;
}
.dm-field span, .dm-field a {
    font-size: 13.5px; color: var(--text); word-break: break-word; line-height: 1.45;
}
.dm-field a { color: #5B21B6; font-weight: 650; }
.dm-field a:hover { text-decoration: underline; }
.dm-hours {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.dm-hour-pill {
    padding: 4px 9px; border-radius: 8px;
    background: #F3EEFF; color: #4C1D95;
    font-size: 11px; font-weight: 600;
}
.dm-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-social {
    padding: 6px 11px; border-radius: 10px;
    background: #EEF2FF; color: #3730A3;
    font-size: 12px; font-weight: 700;
    border: 1px solid #DBEAFE;
    transition: transform .15s, background .15s;
}
.dm-social:hover { background: #E0E7FF; transform: translateY(-1px); }

.dm-actions-primary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0 8px;
}
.dm-act {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 14px 14px 13px;
    border-radius: 16px;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}
.dm-act::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%);
    pointer-events: none;
}
.dm-act:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21,11,59,.1); }
.dm-act:active { transform: translateY(0); }
.dm-act .dm-act-ico {
    width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center;
    font-size: 16px; background: rgba(255,255,255,.55);
}
.dm-act strong { font-size: 13px; font-weight: 800; }
.dm-act small { font-size: 11px; opacity: .75; font-weight: 600; }
.dm-act-mail { background: linear-gradient(145deg, #F5F0FF, #EDE4FF); color: #5B21B6; border-color: #DDD6FE; }
.dm-act-sms { background: linear-gradient(145deg, #ECFDF5, #D1FAE5); color: #065F46; border-color: #A7F3D0; }
.dm-act-wa { background: linear-gradient(145deg, #F0FDF4, #DCFCE7); color: #166534; border-color: #BBF7D0; }
.dm-act-call { background: linear-gradient(145deg, #EFF6FF, #DBEAFE); color: #1E40AF; border-color: #BFDBFE; }
.dm-act:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.dm-actions-secondary {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.dm-sec-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 13px; border-radius: 11px;
    font-size: 12px; font-weight: 700;
    background: white; color: #5B21B6;
    border: 1px solid #E4D9F8;
    transition: background .15s, border-color .15s, transform .15s;
}
.dm-sec-btn:hover { background: #F5F0FF; border-color: #C4B5FD; transform: translateY(-1px); }
.dm-sec-btn.primary {
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    color: white; border-color: transparent;
}
.dm-sec-btn.primary:hover { filter: brightness(1.05); }

.dm-side-block + .dm-side-block { margin-top: 18px; }
.dm-save {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 14px; font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    box-shadow: 0 10px 24px rgba(142,51,255,.28);
    transition: transform .15s, box-shadow .15s;
}
.dm-save:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(142,51,255,.35); }

/* Smart Reviews — visual insight panel */
.sr-panel {
    margin-top: 22px;
    border-radius: 20px;
    border: 1px solid #E4D9F8;
    background:
        radial-gradient(520px 180px at 0% 0%, rgba(142,51,255,.1), transparent 55%),
        radial-gradient(420px 160px at 100% 0%, rgba(99,102,241,.08), transparent 50%),
        linear-gradient(180deg, #FCFAFF, #F7F4FC);
    overflow: hidden;
    animation: dmFieldIn .5s cubic-bezier(.22,1,.36,1) .18s both;
}
.sr-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(228,217,248,.85);
}
.sr-brand {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.sr-brand-ico {
    width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 16px;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    color: white;
    box-shadow: 0 8px 18px rgba(142,51,255,.28);
}
.sr-brand strong {
    display: block; font-size: 13px; font-weight: 800; color: var(--navy);
    letter-spacing: -.01em;
}
.sr-brand span {
    display: block; font-size: 11px; color: #8B7AAF; font-weight: 600; margin-top: 1px;
}
.sr-run {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 11px;
    font-size: 12px; font-weight: 750;
    color: white;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    border: none; cursor: pointer;
    box-shadow: 0 6px 16px rgba(142,51,255,.25);
    transition: transform .15s, filter .15s;
    white-space: nowrap;
}
.sr-run:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sr-body { padding: 14px 14px 16px; }
.sr-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 22px 16px 18px;
    color: #7C6BA8;
}
.sr-empty-ico {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center; font-size: 22px;
    background: rgba(142,51,255,.1);
    border: 1px dashed rgba(142,51,255,.28);
    margin-bottom: 4px;
}
.sr-empty strong { color: #4C1D95; font-size: 13px; }
.sr-empty p { margin: 0; font-size: 12px; line-height: 1.45; max-width: 280px; }

.sr-summary {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    border: 1px solid #EBE4F7;
    margin-bottom: 10px;
}
.sr-summary-ico {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #EEF2FF; color: #4338CA; font-size: 15px;
}
.sr-summary p {
    margin: 0; font-size: 13px; line-height: 1.5; color: #2E2648; font-weight: 550;
}
.sr-summary label {
    display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #8B7AAF; margin-bottom: 4px;
}

.sr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.sr-card {
    position: relative;
    padding: 12px 12px 11px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid #EBE4F7;
    min-height: 88px;
    animation: srCardIn .45s cubic-bezier(.22,1,.36,1) both;
}
.sr-card:nth-child(1) { animation-delay: .05s; }
.sr-card:nth-child(2) { animation-delay: .1s; }
.sr-card:nth-child(3) { animation-delay: .15s; }
.sr-card:nth-child(4) { animation-delay: .2s; }
@keyframes srCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.sr-card-h {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 8px;
}
.sr-card-title {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase;
}
.sr-card-title .ico {
    width: 24px; height: 24px; border-radius: 8px;
    display: grid; place-items: center; font-size: 12px;
}
.sr-card.pain .ico { background: #FEF2F2; color: #B91C1C; }
.sr-card.pain .sr-card-title { color: #9F1239; }
.sr-card.opp .ico { background: #ECFDF5; color: #047857; }
.sr-card.opp .sr-card-title { color: #065F46; }
.sr-card.pitch .ico { background: #EEF2FF; color: #4338CA; }
.sr-card.pitch .sr-card-title { color: #3730A3; }
.sr-card.hook .ico { background: #F5F3FF; color: #6D28D9; }
.sr-card.hook .sr-card-title { color: #5B21B6; }

.sr-card.pain { border-color: #FECACA; background: linear-gradient(180deg, #FFF7F7, #fff); }
.sr-card.opp { border-color: #A7F3D0; background: linear-gradient(180deg, #F3FDF8, #fff); }
.sr-card.pitch { border-color: #C7D2FE; background: linear-gradient(180deg, #F5F7FF, #fff); }
.sr-card.hook { border-color: #DDD6FE; background: linear-gradient(180deg, #F8F5FF, #fff); }

.sr-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.sr-list li {
    position: relative;
    padding: 7px 9px 7px 28px;
    border-radius: 9px;
    font-size: 12px; line-height: 1.4; font-weight: 600;
    color: #2E2648;
    background: rgba(255,255,255,.7);
}
.sr-list li::before {
    position: absolute; left: 8px; top: 7px;
    width: 14px; height: 14px; border-radius: 5px;
    display: grid; place-items: center;
    font-size: 9px; font-weight: 800;
}
.sr-card.pain .sr-list li::before { content: "!"; background: #FEE2E2; color: #B91C1C; }
.sr-card.opp .sr-list li::before { content: "↑"; background: #D1FAE5; color: #047857; }

.sr-text {
    margin: 0;
    font-size: 12.5px; line-height: 1.45; color: #2E2648; font-weight: 600;
}
.sr-copy {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center;
    font-size: 12px; cursor: pointer;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.06);
    color: #6B7280;
    transition: background .15s, color .15s, transform .15s;
}
.sr-copy:hover { background: white; color: #5B21B6; transform: scale(1.05); }
.sr-copy.done { color: #047857; border-color: #A7F3D0; }

.sr-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
}
.sr-tag {
    padding: 5px 9px; border-radius: 8px;
    font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.05);
    color: #374151;
}

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

@keyframes dmFieldIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Busy / processing overlay inside detail sheet */
.dm-busy {
    position: absolute; inset: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    background: rgba(18, 8, 47, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: dmBusyIn .28s ease;
}
.dm-busy[hidden] { display: none !important; }
@keyframes dmBusyIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.dm-busy-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(2px);
    animation: dmBusyOrb 8s ease-in-out infinite;
}
.dm-busy-orb-a {
    width: 280px; height: 280px; top: 12%; left: 18%;
    background: radial-gradient(circle, rgba(142,51,255,.45), transparent 70%);
}
.dm-busy-orb-b {
    width: 220px; height: 220px; bottom: 16%; right: 14%;
    background: radial-gradient(circle, rgba(99,102,241,.4), transparent 70%);
    animation-delay: -3s;
}
@keyframes dmBusyOrb {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(12px,-10px) scale(1.06); }
}
.dm-busy-card {
    position: relative; z-index: 1;
    width: min(360px, 86%);
    padding: 28px 26px 24px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 24px 64px rgba(10,6,28,.35);
    animation: dmBusyCard .4s cubic-bezier(.22,1,.36,1);
}
@keyframes dmBusyCard {
    from { opacity: 0; transform: translateY(14px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dm-busy-icon {
    position: relative;
    width: 78px; height: 78px;
    margin: 0 auto 16px;
}
.dm-busy-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: #8E33FF;
    border-right-color: rgba(142,51,255,.35);
    animation: spin 1s linear infinite;
}
.dm-busy-ring-rev {
    inset: 8px;
    border-top-color: #6366F1;
    border-right-color: transparent;
    animation: spinReverse 1.35s linear infinite;
}
.dm-busy-glyph {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 26px;
    animation: dmGlyphPulse 1.5s ease-in-out infinite;
}
@keyframes dmGlyphPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.dm-busy[data-kind="send"] .dm-busy-glyph { animation: dmSendBounce 1.1s ease-in-out infinite; }
@keyframes dmSendBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.dm-busy-card h3 {
    margin: 0 0 6px;
    font-size: 17px; font-weight: 800; color: var(--navy);
}
.dm-busy-card p {
    margin: 0;
    font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.dm-busy-steps {
    display: flex; justify-content: center; gap: 6px;
    margin: 16px 0 10px;
}
.dm-busy-steps i {
    display: block; width: 7px; height: 7px; border-radius: 50%;
    background: #DDD6FE;
    transition: width .3s, border-radius .3s, background .3s;
}
.dm-busy-steps i.on {
    width: 22px; border-radius: 4px;
    background: linear-gradient(90deg, #8E33FF, #6366F1);
}
.dm-busy-bar {
    height: 4px; border-radius: 4px; overflow: hidden;
    background: rgba(221,214,254,.55);
}
.dm-busy-bar span {
    display: block; height: 100%; width: 40%;
    border-radius: 4px;
    background: linear-gradient(90deg, #8E33FF, #A855F7, #6366F1);
    background-size: 200% 100%;
    animation: dmBusyBar 1.2s ease-in-out infinite;
}
@keyframes dmBusyBar {
    0% { transform: translateX(-40%); }
    100% { transform: translateX(280%); }
}

.btn-modal-primary {
    background: linear-gradient(135deg, #8E33FF, #6366F1); color: white; border: none; cursor: pointer;
}
.btn-modal-ghost {
    background: white; color: var(--brand); border: 1.5px solid #DDD6FE; cursor: pointer;
}

@media (max-width: 880px) {
    .detail-modal { width: 96vw; max-height: 94vh; border-radius: 22px; }
    .dm-body { grid-template-columns: 1fr; }
    .dm-col-main { border-right: none; border-bottom: 1px solid #EDE7F8; }
    .dm-col { padding: 18px 18px 22px; }
    .dm-col-side { padding: 0; }
    .dm-hero { padding: 22px 18px 18px; }
    .dm-actions-primary { grid-template-columns: 1fr 1fr; }
    .dm-info-grid { grid-template-columns: 1fr; }
    .dm-field.span-2 { grid-column: auto; }
    .dm-crm-assign { grid-template-columns: 1fr; }
    .dm-crm-snapshot { grid-template-columns: 1fr; }
    .dm-crm-stat.span-2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .detail-modal, .dm-field, .dm-busy, .dm-busy-card, .dm-busy-orb,
    .dm-busy-ring, .dm-busy-glyph, .dm-busy-bar span, .dm-kicker-dot {
        animation: none !important;
    }
}

.results-panel .results-footer { padding: 6px 14px; }
.results-panel .stat-pill { padding: 4px 10px; font-size: 11px; }

.results-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); flex-shrink: 0; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 0; }
.stat-pill { border-radius: 10px; padding: 10px 6px; margin-right: 8px; font-size: 11px; font-weight: 600; border: 1px solid; }
.stat-pill.total { background: #F3EEFF; border-color: #DDD6FE; color: var(--navy); }
.stat-pill.phone { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.stat-pill.web { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.stat-pill.rating { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
.pagination { display: flex; align-items: center; gap: 4px; }
.page-label { background: var(--brand-light); border-radius: 10px; padding: 12px 6px; font-weight: 600; color: var(--brand-dark); font-size: 13px; }

/* Loading overlay — glassmorphism */
.search-overlay {
    position: absolute; inset: 0; z-index: 500;
    display: none; align-items: center; justify-content: center;
    background: rgba(248, 249, 252, 0.55);
    animation: overlayFadeIn .28s ease;
}
.search-overlay.visible { display: flex; }
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-backdrop {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.overlay-orb {
    position: absolute; border-radius: 50%;
    opacity: 0.5;
    /* blur kaldırıldı — soft radial yeter; GPU thrash yok */
    animation: orbFloat 10s ease-in-out infinite;
    will-change: transform;
}
.overlay-orb-1 {
    width: 280px; height: 280px; top: 10%; left: 15%;
    background: radial-gradient(circle, rgba(142,51,255,.5), transparent 70%);
}
.overlay-orb-2 {
    width: 220px; height: 220px; bottom: 20%; right: 12%;
    background: radial-gradient(circle, rgba(99,102,241,.4), transparent 70%);
    animation-delay: -3s; animation-duration: 12s;
}
.overlay-orb-3 {
    width: 160px; height: 160px; top: 45%; left: 55%;
    background: radial-gradient(circle, rgba(168,85,247,.35), transparent 70%);
    animation-delay: -5s; animation-duration: 14s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(20px, -14px, 0) scale(1.05); }
    66% { transform: translate3d(-12px, 10px, 0) scale(0.96); }
}

.overlay-card {
    position: relative; z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: 36px 40px 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 32px rgba(142, 51, 255, 0.12),
        0 24px 64px rgba(21, 11, 59, 0.08);
    max-width: 440px; width: 90%;
    animation: overlayCardIn .35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes overlayCardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-context {
    margin-bottom: 18px; min-height: 20px;
    display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.overlay-query {
    font-size: 13px; font-weight: 700; color: var(--brand-dark);
    background: rgba(142, 51, 255, 0.08);
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(142, 51, 255, 0.15);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.overlay-loc {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
}

.loading-ring-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.loading-ring-glow {
    position: absolute; inset: -8px; border-radius: 50%;
    background: radial-gradient(circle, rgba(142,51,255,.25), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.loading-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(221, 214, 254, 0.6);
}
.loading-ring-spin {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: var(--brand);
    border-right-color: rgba(142, 51, 255, 0.35);
    animation: spin 1s linear infinite;
}
.loading-ring-spin-reverse {
    inset: 8px;
    border-top-color: #6366F1;
    border-right-color: transparent;
    animation: spinReverse 1.4s linear infinite;
}
@keyframes spinReverse { to { transform: rotate(-360deg); } }
.loading-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #8E33FF, #6366F1);
    color: white; font-weight: 800; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(142, 51, 255, 0.4);
    animation: logoPulse 2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 4px 16px rgba(142, 51, 255, 0.4); }
    50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 6px 24px rgba(142, 51, 255, 0.55); }
}

.overlay-steps {
    display: flex; justify-content: center; gap: 6px; margin-bottom: 14px;
}
.overlay-step {
    width: 6px; height: 6px; border-radius: 50%;
    background: #DDD6FE;
    transition: all .35s ease;
}
.overlay-step.active {
    width: 22px; border-radius: 4px;
    background: linear-gradient(90deg, #8E33FF, #6366F1);
    box-shadow: 0 2px 8px rgba(142, 51, 255, 0.35);
}

.overlay-headline {
    font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text);
    transition: opacity .25s ease, transform .25s ease;
}
.overlay-headline.is-changing {
    opacity: 0; transform: translateY(6px);
}
.overlay-sub {
    font-size: 12px; color: var(--text-muted);
    transition: opacity .25s ease;
}
.overlay-sub.is-changing { opacity: 0; }

.overlay-bar {
    width: 220px; height: 4px;
    background: rgba(221, 214, 254, 0.5);
    border-radius: 4px; margin: 20px auto 0; overflow: hidden;
}
.overlay-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #8E33FF, #A855F7, #6366F1);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: barShimmer 2s ease-in-out infinite, barGrow 12s ease-out forwards;
}
@keyframes barShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@keyframes barGrow {
    0% { width: 8%; }
    70% { width: 72%; }
    100% { width: 88%; }
}
.overlay-hint {
    margin-top: 14px; font-size: 10px; color: #9CA3AF; font-weight: 500;
}

/* Export modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(21,11,59,.5); z-index: 1400; display: none; align-items: center; justify-content: center; }
.modal-backdrop.visible { display: flex; }
.modal { background: white; border-radius: 18px; padding: 24px; min-width: 320px; box-shadow: 0 24px 64px rgba(0,0,0,.2); }
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal-btns { display: flex; flex-direction: column; gap: 8px; }
.modal-btns button { padding: 12px; border-radius: 12px; border: 1.5px solid #DDD6FE; background: var(--brand-light); font-weight: 600; color: var(--brand-dark); }
.modal-btns button:hover { background: var(--brand); color: white; }
.modal-close { margin-top: 12px; width: 100%; padding: 8px; color: var(--text-muted); font-size: 12px; }

.license-banner { padding: 14px; background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 14px; font-size: 12px; color: #C2410C; margin-bottom: 12px; }
.license-banner.hidden { display: none; }
.empty-hint { font-size: 10px; color: var(--text-muted); padding: 4px 0; }

@media (max-width: 1200px) {
    .app-shell { height: auto; min-height: 100dvh; overflow: auto; }
    body { overflow: auto; }
    .app-body { flex-direction: column; }
    .sidebar { width: 100%; min-width: 0; max-height: none; }
    .main-area { min-height: 600px; }
    .detail-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 50; }
    .app-topnav { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
    .app-topnav-links {
        order: 3; width: 100%; justify-content: flex-start;
        overflow-x: auto; padding-bottom: 2px;
    }
    .app-nav-email { max-width: 90px; }
    .app-nav-profile-label { display: none; }
    .app-nav-plan-label { display: none; }
    .app-nav-plan-meta { font-size: 10px; max-width: 120px; }
}

.plans-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.plan-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
    background: #fff; cursor: pointer; text-align: left; width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.plan-btn:hover { border-color: var(--brand); box-shadow: 0 2px 12px rgba(142,51,255,.12); }
.plan-btn strong { font-size: 13px; color: var(--text); }
.plan-btn span { font-size: 12px; color: var(--brand); font-weight: 700; }
.plan-btn small { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.outreach-modal textarea.text-input { min-height: 88px; resize: vertical; }
.outreach-modal.outreach-studio {
    position: relative;
    width: min(1280px, 96vw);
    height: min(860px, 92vh);
    max-height: 92vh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(228, 226, 240, 0.9);
    border-radius: 22px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.7) inset,
        0 32px 90px rgba(30, 27, 75, 0.32);
    background:
        radial-gradient(900px 280px at 0% 0%, rgba(83,74,183,0.08), transparent 55%),
        radial-gradient(700px 240px at 100% 0%, rgba(37,99,235,0.06), transparent 50%),
        #F4F5FA;
}
.outreach-modal h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #1E1B4B;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.ox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(120deg, rgba(255,255,255,0.95) 0%, rgba(245,243,255,0.9) 100%);
    border-bottom: 1px solid rgba(232, 228, 244, 0.95);
    backdrop-filter: blur(8px);
}
.ox-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #534AB7;
}
.ox-close {
    width: 38px; height: 38px; border-radius: 12px;
    border: 1px solid #E4E2F0; background: #fff; cursor: pointer;
    color: #64748B; font-size: 14px;
    transition: background .2s, color .2s, transform .2s;
}
.ox-close:hover { background: #FEE2E2; color: #DC2626; transform: scale(1.04); }
.ox-grid {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px 12px;
    overflow: auto;
    min-height: 0;
    flex: 1;
    align-items: start;
}
.ox-grid.ox-stack-all {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px 14px;
    scroll-behavior: smooth;
}
.outreach-modal.outreach-studio {
    scroll-behavior: auto;
}
.ox-grid.ox-layout-split {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}
.outreach-modal.outreach-studio .ox-layout-split .ox-side,
.outreach-modal.outreach-studio .ox-layout-split .ox-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    contain: layout style;
}
.outreach-modal.outreach-studio .ox-layout-split .ox-side {
    position: static;
    align-self: stretch;
    background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 55%, #F1F5F9 100%);
    border-inline-end: 1px solid #DDE3F0;
    padding: 20px 18px 20px 20px;
    box-shadow: inset -8px 0 24px rgba(30, 27, 75, 0.03);
}
.outreach-modal.outreach-studio .ox-layout-split .ox-main {
    padding: 20px 22px 20px 20px;
    background: #F7F8FC;
}
.outreach-modal.outreach-studio .ox-side .ox-card {
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(30, 27, 75, 0.04);
    border: 1px solid rgba(228, 226, 240, 0.95);
    background: #fff;
}
.outreach-modal.outreach-studio .ox-main .ox-card {
    padding: 16px 18px;
    background: #fff;
}
.outreach-modal.outreach-studio .ox-card-h {
    margin-bottom: 12px;
}
.outreach-modal.outreach-studio .field-label {
    margin-top: 10px;
    margin-bottom: 6px;
}
.outreach-modal.outreach-studio .ox-quick-fill > summary,
.outreach-modal.outreach-studio .ox-details > summary {
    margin-bottom: 0;
}
.outreach-modal.outreach-studio .ox-quick-fill[open] > summary,
.outreach-modal.outreach-studio .ox-details[open] > summary {
    margin-bottom: 12px;
}
.outreach-modal.outreach-studio .ox-offer-card .ox-offer-main {
    min-height: 88px;
    max-height: 160px;
}
.outreach-modal.outreach-studio .ox-msg-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.outreach-modal.outreach-studio .ox-msg-card #oxTextPane:not([hidden]),
.outreach-modal.outreach-studio .ox-compose-pane:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    min-width: 0;
    align-items: start;
}
.outreach-modal.outreach-studio .ox-compose-pane .ox-compose-editor,
.outreach-modal.outreach-studio .ox-compose-pane .ox-compose-preview,
.outreach-modal.outreach-studio .ox-compose-pane .ox-qa-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.outreach-modal.outreach-studio .ox-msg-card #oxTextPane {
    flex: 1 1 auto;
    min-height: 0;
}
.outreach-modal.outreach-studio .ox-compose-editor {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.outreach-modal.outreach-studio .ox-compose-editor .ox-subject {
    margin-bottom: 0;
    width: 100%;
}
.outreach-modal.outreach-studio .ox-compose-editor .ox-body {
    min-height: 200px !important;
    max-height: none;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
.outreach-modal.outreach-studio .ox-compose-preview {
    min-height: auto;
    max-width: 100%;
    align-self: stretch;
    position: static;
    overflow: visible;
    flex: 0 0 auto;
}
.outreach-modal.outreach-studio .ox-preview-device {
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
}
.outreach-modal.outreach-studio .ox-token-row {
    margin-bottom: 12px;
}
.outreach-modal.outreach-studio .ox-foot {
    padding: 16px 22px;
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #E8E4F4;
}
.outreach-modal.outreach-studio .ox-sms-tools {
    margin-top: 14px;
    padding-top: 12px;
}
.outreach-modal.outreach-studio .text-input,
.outreach-modal.outreach-studio .select-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .ox-grid.ox-layout-split {
        grid-template-columns: 1fr;
    }
    .outreach-modal.outreach-studio .ox-layout-split .ox-side {
        border-inline-end: 0;
        box-shadow: none;
        max-height: none;
    }
}
.ox-stack-all > .ox-card,
.ox-stack-all > .ox-details {
    scroll-margin-top: 72px;
}
.ox-side, .ox-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ox-side { max-height: calc(92vh - 168px); overflow: auto; padding-right: 2px; }
.ox-main { min-height: 0; }
.ox-steps-hidden,
.ox-steps[hidden] { display: none !important; }
.ox-live-bar {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 12px 14px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-color: #E0E7FF;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.06);
}
.ox-live-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.ox-live-bar-top strong { font-size: 13px; color: #1E1B4B; letter-spacing: -0.01em; }
.ox-live-bar-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 10px;
    align-items: start;
}
.ox-live-bar .ox-live-grid { margin-bottom: 0; }
.ox-live-bar .ox-live-checklist {
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ox-live-bar .ox-live-tip { margin-top: 10px; }
.ox-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 16px;
    padding: 14px 15px;
    box-shadow: 0 8px 22px rgba(30, 27, 75, 0.05);
}
.ox-card-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.ox-card-h strong { font-size: 13px; color: #1E1B4B; letter-spacing: -0.01em; }
.ox-hint { font-size: 11px; color: #64748B; font-weight: 600; }
.ox-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.ox-preset {
    border: 1px solid #E4E2F0; background: #fff; color: #4338CA;
    border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 750;
    cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.ox-preset:hover, .ox-preset.is-on {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border-color: #C4B5FD;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(83, 74, 183, 0.12);
}
.ox-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ox-upload { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ox-upload input[type=file] { font-size: 11px; max-width: 100%; }
.ox-upload-status { margin: 6px 0 0; font-size: 11px; color: #64748B; font-weight: 600; }
.ox-token-row { display: flex; flex-wrap: wrap; gap: 4px; }
.ox-token {
    border: 1px solid #E4E2F0; background: #F8FAFC; border-radius: 8px;
    padding: 4px 9px; font-size: 10px; font-weight: 700; color: #475569; cursor: pointer;
    transition: background .15s, color .15s;
}
.ox-token:hover { background: #EEF2FF; color: #4338CA; }
.ox-body { min-height: 220px !important; max-height: min(42vh, 360px); font-size: 13px; line-height: 1.55; resize: vertical; }
.ox-compose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}
.ox-compose-editor { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ox-compose-editor .ox-body { flex: 1; }
.ox-compose-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #E0E7FF;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F3FF 100%);
}
.ox-preview-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ox-preview-head strong { font-size: 12px; color: #1E1B4B; }
.ox-preview-device {
    flex: 1;
    min-height: 200px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: #fff;
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ox-preview-subject {
    font-size: 12px; font-weight: 800; color: #1E1B4B;
    padding-bottom: 8px; border-bottom: 1px dashed #E2E8F0;
    line-height: 1.35;
}
.ox-preview-bubble {
    align-self: flex-start;
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    font-size: 12px; line-height: 1.5; color: #312E81;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 72px;
}
.ox-preview-device.is-wa .ox-preview-bubble {
    background: linear-gradient(135deg, #DCFCE7, #ECFDF5);
    border-color: #86EFAC;
    color: #14532D;
    border-radius: 14px 14px 4px 14px;
    align-self: flex-end;
}
.ox-preview-device.is-sms .ox-preview-bubble {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
}
.ox-preview-notes { display: grid; gap: 6px; }
.ox-preview-note {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 11px; color: #64748B; font-weight: 650;
}
.ox-preview-note em { font-style: normal; font-weight: 800; color: #4338CA; }
.ox-live-card { min-height: 0; }
.ox-live-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.ox-live-stat {
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid #E0E7FF;
    background: #fff;
    display: grid; gap: 4px;
}
.ox-live-stat span {
    font-size: 10px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: #64748B;
}
.ox-live-stat strong { font-size: 14px; color: #1E1B4B; letter-spacing: -.02em; }
.ox-live-checklist {
    list-style: none; margin: 0 0 12px; padding: 0;
    display: grid; gap: 6px;
}
.ox-live-checklist li {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 10px;
    border: 1px solid #E2E8F0; background: #fff;
    font-size: 11px; font-weight: 700; color: #64748B;
}
.ox-live-checklist li::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: #CBD5E1; flex-shrink: 0;
}
.ox-live-checklist li.is-ok {
    color: #065F46; border-color: #A7F3D0; background: #ECFDF5;
}
.ox-live-checklist li.is-ok::before { background: #10B981; }
.ox-live-tip {
    padding: 10px 12px; border-radius: 12px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    font-size: 11px; font-weight: 650; color: #4338CA; line-height: 1.45;
}
.ox-msg-card { min-height: 0; }
.ox-offer-card { min-height: 0; }
.ox-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; border-top: 1px solid #E8E4F4;
    background: rgba(255,255,255,0.92);
}
.ox-foot-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-inline-start: auto; }
.ox-foot-hint {
    margin: 0; font-size: 11px; font-weight: 600; color: #64748B; max-width: 420px; line-height: 1.35;
}
.ox-needs {
    margin-top: 12px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    animation: oxNeedsIn .45s ease both;
}
.ox-needs strong { display: block; font-size: 12px; color: #4338CA; margin-bottom: 4px; }
.ox-needs p { margin: 0; font-size: 12px; color: #312E81; line-height: 1.5; white-space: pre-wrap; }
@keyframes oxNeedsIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* AI working overlay */
.ox-ai-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 18, 50, 0.48);
    backdrop-filter: blur(10px);
    animation: oxAiFade .28s ease both;
}
.ox-ai-overlay[hidden] { display: none !important; }
.ox-ai-card {
    width: min(420px, 92vw);
    text-align: center;
    padding: 28px 24px 22px;
    border-radius: 22px;
    background:
        radial-gradient(420px 160px at 50% 0%, rgba(129,140,248,0.22), transparent 60%),
        #fff;
    border: 1px solid rgba(199, 210, 254, 0.9);
    box-shadow: 0 28px 70px rgba(15, 12, 40, 0.35);
    animation: oxAiCardIn .4s cubic-bezier(.22,1,.36,1) both;
}
.ox-ai-orb {
    width: 72px; height: 72px; margin: 0 auto 14px;
    position: relative;
}
.ox-ai-orb span {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #6366F1;
    border-right-color: #A78BFA;
    animation: oxAiSpin 1.1s linear infinite;
}
.ox-ai-orb span:nth-child(2) {
    inset: 8px;
    border-top-color: #534AB7;
    border-right-color: transparent;
    animation-duration: 1.6s;
    animation-direction: reverse;
}
.ox-ai-orb span:nth-child(3) {
    inset: 18px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border: 0;
    animation: oxAiPulse 1.4s ease-in-out infinite;
}
.ox-ai-kicker {
    margin: 0 0 6px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #6366F1;
}
.ox-ai-card h4 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1E1B4B;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.ox-ai-sub {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.4;
    min-height: 2.6em;
}
.ox-ai-steps {
    list-style: none; margin: 0 0 16px; padding: 0;
    display: grid; gap: 7px; text-align: left;
}
.ox-ai-steps li {
    position: relative;
    padding-block: 8px; padding-inline: 32px 10px;
    border-radius: 10px;
    font-size: 12px; font-weight: 650;
    color: #94A3B8;
    background: #F8FAFC;
    transition: color .3s, background .3s, transform .3s;
}
.ox-ai-steps li::before {
    content: '';
    position: absolute; inset-inline-start: 10px; top: 50%;
    width: 10px; height: 10px; margin-top: -5px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: background .3s, box-shadow .3s;
}
.ox-ai-steps li.is-done { color: #059669; background: #ECFDF5; }
.ox-ai-steps li.is-done::before { background: #10B981; }
.ox-ai-steps li.is-active {
    color: #4338CA; background: #EEF2FF;
    transform: translateX(2px);
}
.ox-ai-steps li.is-active::before {
    background: #6366F1;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
    animation: oxAiDot 1s ease-in-out infinite;
}
.ox-ai-bar {
    height: 5px; border-radius: 999px; overflow: hidden;
    background: #EEF2FF;
}
.ox-ai-bar i {
    display: block; height: 100%; width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, #534AB7, #818CF8, #534AB7);
    background-size: 200% 100%;
    animation: oxAiBar 1.2s ease-in-out infinite;
}
@keyframes oxAiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes oxAiCardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes oxAiSpin { to { transform: rotate(360deg); } }
@keyframes oxAiPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1); opacity: 1; }
}
@keyframes oxAiDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
    50% { box-shadow: 0 0 0 6px rgba(99,102,241,0.28); }
}
@keyframes oxAiBar {
    0% { transform: translateX(-30%); background-position: 0% 0; }
    50% { transform: translateX(120%); background-position: 100% 0; }
    100% { transform: translateX(220%); background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ox-ai-orb span, .ox-ai-bar i, .ox-ai-steps li.is-active::before {
        animation: none !important;
    }
}

.outreach-mailto-list { display: grid; gap: 6px; margin-top: 8px; }
.outreach-mailto-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border: 1px solid #E4E2F0; border-radius: 10px; background: #fff;
    font-size: 12px;
}
.outreach-mailto-item strong { color: #1E1B4B; }
.outreach-mailto-item button {
    border: 1px solid #C4B5FD; background: #EEF2FF; color: #4338CA;
    border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.outreach-modal .field-label {
    margin-top: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .35px;
    color: #64748B;
}
.outreach-modal .text-input,
.outreach-modal .f2g-select-trigger,
.outreach-modal .select-input {
    border-color: #E4E2F0;
    background: #fff;
}
.outreach-modal .text-input:focus,
.outreach-modal .f2g-select.open .f2g-select-trigger {
    box-shadow: 0 0 0 3px rgba(83, 74, 183, .14);
}
.outreach-template-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 8px 0 0; }
.outreach-template-row .text-input { min-height: 38px; }
.outreach-recipients-preview {
    margin-top: 0; display: flex; flex-direction: column; gap: 8px;
    max-height: 220px; overflow-y: auto;
}
.outreach-rec-chip {
    border: 1px solid #E4E2F0; border-radius: 12px; padding: 8px 10px;
    background: linear-gradient(180deg, #FAFAFE, #fff); font-size: 10px; width: 100%;
}
.outreach-rec-chip strong { display: block; color: #1E1B4B; margin-bottom: 4px; }
.outreach-rec-chip span { color: #64748B; }
.outreach-rec-chip .ox-rec-phone {
    width: 100%; min-height: 34px; font-size: 12px; margin-top: 2px;
}
.ox-rec-chip-sms {
    display: block !important;
}
.ox-rec-chip-sms .ox-rec-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.ox-rec-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.ox-rec-row .ox-rec-phone {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}
.ox-rec-sms-send {
    flex: 0 0 auto;
    border: 1px solid #C7D2FE;
    background: #EEF2FF;
    color: #3730A3;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 0 12px;
    height: 34px;
    cursor: pointer;
    white-space: nowrap;
}
.ox-rec-sms-send:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.ox-rec-chip-sms .ox-rec-remove {
    flex: 0 0 auto;
    margin-top: 0 !important;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}
.ox-rec-sms-status {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    font-size: 11px;
    font-weight: 800;
    color: #64748B;
    line-height: 1.2;
}
.ox-rec-sms-status.is-ok { color: #065F46; }
.ox-rec-sms-status.is-err { color: #B91C1C; }
.ox-rec-sms-status.is-sending { color: #3730A3; }
.ox-card-h-who {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}
.ox-card-h-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 160px;
    min-width: 0;
}
.ox-card-h-who .ox-pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
}
.ox-card-h-who .btn-sms-rec-open {
    flex: 0 0 auto;
    margin-left: auto;
}
.ox-sms-tools { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E4E2F0; }
.ox-sms-sender-row, .ox-sms-add-row {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-bottom: 6px;
}
.ox-sms-add-row { grid-template-columns: 1fr auto; margin-top: 8px; }
@media (max-width: 560px) {
    .ox-sms-sender-row { grid-template-columns: 1fr; }
}
.outreach-last-result {
    margin-top: 8px; max-height: 140px; overflow-y: auto;
    border: 1px solid #E4E2F0; border-radius: 10px; background: #FAFAFE;
}
@media (max-width: 900px) {
    .ox-grid { grid-template-columns: 1fr; }
    .ox-grid.ox-layout-split {
        grid-template-columns: 1fr;
        overflow: auto;
    }
    .outreach-modal.outreach-studio .ox-layout-split .ox-side,
    .outreach-modal.outreach-studio .ox-layout-split .ox-main {
        max-height: none;
        overflow: visible;
        position: static;
    }
    .ox-compose-grid { grid-template-columns: 1fr; }
    .ox-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ox-live-bar-body { grid-template-columns: 1fr; }
    .ox-live-bar .ox-live-checklist { grid-template-columns: 1fr; }
    .ox-side { max-height: none; }
    .ox-two { grid-template-columns: 1fr; }
}
.outreach-last-result:empty { display: none; }
.outreach-result-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 11px; padding: 8px 10px; border-bottom: 1px solid #F3F4F6;
}
.outreach-result-row:last-child { border-bottom: none; }
.outreach-result-row.ok strong { color: #065F46; }
.outreach-result-row.err strong { color: #B91C1C; }
.outreach-result-row.warn strong { color: #92400E; }

.wa-recipients-modal {
  width: min(640px, 94vw);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
}
.wa-rec-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 18px 12px;
}
.wa-rec-toolbar .text-input {
  flex: 1 1 180px;
  min-width: 140px;
}
.wa-rec-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  margin-left: auto;
}
.wa-rec-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 10px;
}
.wa-rec-list {
  flex: 1;
  overflow: auto;
  padding: 0 18px 18px;
  max-height: min(58vh, 520px);
}

/* SMS Alıcı Modal — modern redesign */
.sms-rec-backdrop {
  z-index: 10200 !important;
}
.sms-recipients-modal {
  width: min(760px, 96vw);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
/* Header */
.sms-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #F1F0F7;
  background: linear-gradient(135deg, #7C3AED08 0%, #ffffff 100%);
}
.sms-rec-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sms-rec-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px #7C3AED30;
}
.sms-rec-head h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-dark, #1E1B4B);
}
.sms-rec-sub {
  margin: 0;
  font-size: 12px;
  color: #64748B;
}
/* Toolbar */
.sms-rec-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 22px 10px;
  border-bottom: 1px solid #F8F7FC;
}
.sms-rec-search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 140px;
}
.sms-rec-search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  opacity: .6;
}
.sms-rec-search-input {
  width: 100%;
  padding-left: 34px !important;
  border-radius: 12px !important;
}
.sms-rec-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sms-rec-checkall-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.sms-rec-checkall-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #7C3AED;
  cursor: pointer;
}
.sms-rec-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #7C3AED;
  border-radius: 999px;
  padding: 2px 10px;
  min-width: 28px;
  text-align: center;
}
.sms-rec-bulk-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  box-shadow: 0 3px 10px #7C3AED35;
}
.sms-rec-bulk-send:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}
.sms-rec-bulk-send:not(:disabled):hover {
  opacity: .9;
  transform: translateY(-1px);
}
.sms-rec-bulk-send em {
  font-style: normal;
  background: #ffffff30;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 11px;
}
.sms-rec-bulk-ico { font-size: 14px; }
/* List */
.sms-rec-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Row chips */
.sms-recipients-modal .outreach-rec-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAFAFD;
  border: 1px solid #EDE9F8;
  border-radius: 12px;
  padding: 10px 12px;
  transition: background .12s, border-color .12s;
}
.sms-recipients-modal .outreach-rec-chip.is-checked {
  background: #F5F3FF;
  border-color: #C4B5FD;
}
.sms-rec-row-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #7C3AED;
  cursor: pointer;
}
.sms-recipients-modal .ox-rec-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sms-recipients-modal .ox-rec-main strong {
  font-size: 13px;
  font-weight: 600;
  color: #1E1B4B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sms-recipients-modal .ox-rec-main span {
  font-size: 12px;
  color: #64748B;
}
.sms-recipients-modal .ox-rec-remove {
  flex: 0 0 auto;
  border: 0;
  background: #FEF2F2;
  color: #B91C1C;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .12s;
}
.sms-recipients-modal .ox-rec-remove:hover {
  background: #FEE2E2;
}
.sms-recipients-modal .outreach-rec-chip.is-sent {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
@media (max-width: 600px) {
  .sms-rec-toolbar { flex-direction: column; align-items: stretch; }
  .sms-rec-toolbar-actions { justify-content: space-between; }
  .sms-rec-bulk-send { flex: 1; justify-content: center; }
}
.wa-rec-tpl {
  font-size: 11px;
  font-weight: 600;
  color: #0F766E;
  background: #CCFBF1;
  padding: 2px 8px;
  border-radius: 999px;
}

.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar-month { font-size: 12px; font-weight: 700; color: var(--brand-dark); text-transform: capitalize; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.calendar-weekdays span { font-size: 9px; color: var(--text-muted); text-align: center; font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day {
    min-height: 32px; border: 1px solid #E8E0F5; border-radius: 8px; background: #fff;
    color: var(--text); font-size: 11px; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.calendar-day:hover { border-color: var(--brand); background: var(--brand-light); }
.calendar-day.today { border-color: #A78BFA; font-weight: 700; }
.calendar-day.selected { background: var(--brand); color: #fff; border-color: var(--brand-dark); }
.calendar-day i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #3B82F6; }
.calendar-day.selected i { background: #fff; }
.calendar-day.muted { background: transparent; border: none; }
.calendar-events-list { margin-top: 6px; max-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.calendar-event-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border: 1px solid #E8E0F5; border-radius: 10px; padding: 7px 8px; background: #FAFAFE; }
.calendar-event-item .t { font-size: 11px; font-weight: 700; color: var(--text); }
.calendar-event-item .s { font-size: 10px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.calendar-event-item .del { border: 1px solid #DDD6FE; border-radius: 6px; font-size: 10px; width: 22px; height: 22px; color: var(--brand); background: #fff; }
.calendar-empty { font-size: 10px; color: var(--text-muted); padding: 6px 2px; }

/* Compact animated AI robot (shared by dash CTA, FAB, panel, chat) */
.ai-bot {
    position: relative; display: inline-block; flex-shrink: 0;
    width: 28px; height: 34px;
    animation: intelRobotFloat 2s ease-in-out infinite;
}
.ai-bot-antenna {
    position: absolute; left: 50%; top: -2px; width: 3px; height: 7px;
    margin-left: -1.5px; border-radius: 99px; background: #C7D2FE;
}
.ai-bot-antenna i {
    position: absolute; left: 50%; top: -5px; width: 7px; height: 7px;
    margin-left: -3.5px; border-radius: 50%; background: #22D3EE;
    border: 2px solid #CFFAFE; box-shadow: 0 0 0 0 rgba(34,211,238,.35);
    animation: intelRobotSignal 1.6s ease-out infinite;
}
.ai-bot-head {
    position: absolute; left: 2px; top: 6px; right: 2px; height: 22px; padding: 3px;
    border-radius: 9px 9px 7px 7px;
    background: linear-gradient(145deg, #6366F1, #8B5CF6);
    box-shadow: 0 4px 10px rgba(79,70,229,.35), inset 0 1px rgba(255,255,255,.3);
}
.ai-bot-ear {
    position: absolute; top: 6px; width: 4px; height: 8px; border-radius: 3px; background: #A5B4FC; z-index: -1;
}
.ai-bot-ear.left { left: -3px; }
.ai-bot-ear.right { right: -3px; }
.ai-bot-face {
    position: relative; display: flex; justify-content: center; align-items: center; gap: 6px;
    height: 100%; overflow: hidden; border-radius: 6px;
    background: linear-gradient(145deg, #111827, #1E1B4B); border: 1px solid #818CF8;
}
.ai-bot-eye {
    width: 4px; height: 4px; border-radius: 50%; background: #67E8F9;
    box-shadow: 0 0 5px #22D3EE; animation: intelRobotBlink 3.2s infinite;
}
.ai-bot-scan {
    position: absolute; left: 2px; right: 2px; top: 2px; height: 1.5px; border-radius: 99px;
    background: linear-gradient(90deg, transparent, #67E8F9, transparent);
    box-shadow: 0 0 6px #22D3EE; animation: aiBotScan 1.5s ease-in-out infinite alternate;
}
.ai-bot--btn { width: 26px; height: 32px; }
.ai-bot--btn .ai-bot-head { height: 20px; }
.ai-bot--fab { width: 32px; height: 38px; }
.ai-bot--fab .ai-bot-head { height: 24px; top: 7px; }
.ai-bot--fab .ai-bot-eye { width: 5px; height: 5px; }
.ai-bot--fab .ai-bot-face { gap: 7px; }
.ai-bot--panel { width: 30px; height: 36px; }
.ai-bot--panel .ai-bot-head { height: 22px; }
.ai-bot--msg { width: 22px; height: 26px; animation-duration: 2.4s; }
.ai-bot--msg .ai-bot-antenna { height: 5px; top: -1px; }
.ai-bot--msg .ai-bot-antenna i { width: 5px; height: 5px; margin-left: -2.5px; top: -4px; border-width: 1.5px; }
.ai-bot--msg .ai-bot-head { left: 1px; right: 1px; top: 5px; height: 17px; padding: 2px; border-radius: 7px 7px 5px 5px; }
.ai-bot--msg .ai-bot-ear { width: 3px; height: 6px; top: 4px; }
.ai-bot--msg .ai-bot-face { gap: 4px; border-radius: 4px; }
.ai-bot--msg .ai-bot-eye { width: 3px; height: 3px; }
@media (prefers-reduced-motion: reduce) {
    .ai-bot, .ai-bot-antenna i, .ai-bot-eye, .ai-bot-scan { animation: none !important; }
}
@keyframes aiBotScan { from { transform: translateY(0); } to { transform: translateY(10px); } }

.dash-ai-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 8px; border: 0; border-radius: 14px; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #6366F1 100%);
    box-shadow: 0 8px 22px rgba(79,70,229,.35), inset 0 1px rgba(255,255,255,.22);
    transition: transform .18s ease, box-shadow .18s ease;
}
.dash-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(79,70,229,.45), inset 0 1px rgba(255,255,255,.28);
}
.dash-ai-btn:active { transform: translateY(0); }
.dash-ai-btn-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: start; }
.dash-ai-btn-copy b { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; }
.dash-ai-btn-copy small { font-size: 9.5px; font-weight: 600; opacity: .82; margin-top: 1px; }

.assistant-fab {
    position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    box-shadow: 0 10px 28px rgba(79,70,229,.42);
    border: 0; cursor: pointer;
    display: grid; place-items: center; padding: 0;
    transition: transform .18s ease, box-shadow .18s ease;
}
.assistant-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 32px rgba(79,70,229,.5); }
.assistant-panel {
    position: fixed; inset-inline-end: 18px; bottom: 84px; z-index: 900;
    width: min(420px, calc(100vw - 24px));
    height: min(82vh, 720px);
    max-height: calc(100dvh - 100px);
    background: #fff; border: 1px solid #E8E0F5; border-radius: 20px; overflow: hidden;
    box-shadow: 0 22px 55px rgba(21,11,59,.28);
    transform: translateY(16px) scale(.98);
    opacity: 0; pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
    display: flex; flex-direction: column;
}
.assistant-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1; pointer-events: auto;
}
.assistant-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid #E8E0F5;
    background: linear-gradient(135deg, #FAFAFF 0%, #F5F3FF 100%);
    flex-shrink: 0;
}
.assistant-head-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.assistant-head-avatar {
    width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #312E81, #4F46E5);
    box-shadow: inset 0 0 0 1px rgba(196,181,253,.45), 0 6px 14px rgba(79,70,229,.28);
}
.assistant-head strong { display: block; font-size: 14px; color: #1F2937; }
.assistant-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.assistant-head-actions { display: flex; gap: 6px; }
.assistant-icon-btn {
    width: 34px; height: 34px; border-radius: 10px; border: 1px solid #DDD6FE;
    color: var(--brand); background: #fff; cursor: pointer; font-size: 14px;
}
.assistant-icon-btn:hover { background: #F5F3FF; }
.assistant-starters {
    display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px;
    border-bottom: 1px solid #F3F4F6; background: #FCFCFF; flex-shrink: 0;
    max-height: 96px; overflow-y: auto;
}
.assistant-starters.is-collapsed { display: none; }
.assistant-chip {
    border: 1px solid #E9E3F8; background: #fff; color: #4C1D95;
    border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.assistant-chip:hover { border-color: var(--brand); background: #F5F3FF; }
.assistant-messages {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 12px;
    display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(180deg, #FCFCFF 0%, #F8F9FC 100%);
}
.assistant-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.assistant-msg.user { margin-inline-start: auto; flex-direction: row-reverse; }
.assistant-msg-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
}
.assistant-msg.user .assistant-msg-avatar { background: #C7D2FE; color: #312E81; font-size: 11px; }
.assistant-msg.bot .assistant-msg-avatar {
    background: linear-gradient(145deg, #312E81, #4F46E5);
    box-shadow: inset 0 0 0 1px rgba(196,181,253,.35);
    overflow: visible;
}
.assistant-msg-bubble {
    padding: 10px 12px; border-radius: 16px; border: 1px solid #E8E0F5;
    background: #fff; box-shadow: 0 2px 10px rgba(21,11,59,.06); min-width: 0;
}
.assistant-msg.user .assistant-msg-bubble {
    background: linear-gradient(135deg, #EEF2FF 0%, #EDE9FE 100%);
    border-color: #C7D2FE;
}
.assistant-msg-text { font-size: 12.5px; line-height: 1.55; color: #1F2937; word-break: break-word; }
.assistant-msg-text p { margin: 0 0 .55em; }
.assistant-msg-text p:last-child { margin-bottom: 0; }
.assistant-msg-text ul { margin: .35em 0 .55em; padding-inline-start: 1.1em; }
.assistant-msg-text li { margin: .2em 0; }
.assistant-msg-text strong { font-weight: 700; color: #312E81; }
.assistant-msg-meta { font-size: 10px; color: #6B7280; margin-top: 5px; }
.assistant-followups, .assistant-suggestions, .assistant-actions {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.assistant-followups button, .assistant-suggestions button {
    border: 1px dashed #C4B5FD; background: #FAF5FF; color: #5B21B6;
    border-radius: 999px; padding: 5px 9px; font-size: 11px; cursor: pointer; text-align: start;
}
.assistant-followups button:hover, .assistant-suggestions button:hover { background: #EDE9FE; }
.assistant-action-btn {
    border: 0; border-radius: 10px; padding: 7px 11px; font-size: 11px; font-weight: 700;
    cursor: pointer; background: linear-gradient(135deg,#8E33FF,#6366F1); color: #fff;
}
.assistant-action-btn.confirm {
    background: #fff; color: #9A3412; border: 1px solid #FDBA74;
}
.assistant-confirm-card {
    margin-top: 8px; padding: 10px; border-radius: 12px;
    background: #FFF7ED; border: 1px solid #FED7AA;
}
.assistant-confirm-card p { margin: 0 0 8px; font-size: 12px; color: #9A3412; }
.assistant-confirm-card .row { display: flex; gap: 6px; flex-wrap: wrap; }
.assistant-confirm-card .ok {
    border: 0; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700;
    background: #EA580C; color: #fff; cursor: pointer;
}
.assistant-confirm-card .cancel {
    border: 1px solid #FDBA74; border-radius: 8px; padding: 6px 10px; font-size: 11px;
    background: #fff; color: #9A3412; cursor: pointer;
}
.assistant-typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.assistant-typing-dots i {
    width: 6px; height: 6px; border-radius: 50%; background: #8E33FF; display: inline-block;
    animation: typingPulse 1s infinite ease-in-out;
}
.assistant-typing-dots i:nth-child(2) { animation-delay: .15s; }
.assistant-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typingPulse {
    0%, 80%, 100% { transform: translateY(0); opacity: .4; }
    40% { transform: translateY(-4px); opacity: 1; }
}
.assistant-input-wrap {
    display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #F3F4F6; background: #fff; flex-shrink: 0; align-items: flex-end;
}
.assistant-input {
    min-height: 40px; max-height: 110px; resize: none; border-radius: 12px !important;
    padding: 10px 12px !important; line-height: 1.4; flex: 1;
}
.assistant-input-wrap .btn-toolbar-primary {
    min-height: 40px; border-radius: 12px; padding-inline: 14px; flex-shrink: 0;
}
.assistant-input-wrap .btn-toolbar-primary:disabled { opacity: .55; cursor: wait; }
@media (max-width: 640px) {
    .assistant-panel {
        inset: 8px 8px 8px 8px; bottom: 8px; width: auto; height: auto;
        max-height: none; border-radius: 18px;
    }
    .assistant-fab { inset-inline-end: 14px; bottom: 14px; }
    .assistant-sub { max-width: 180px; }
}

/* Assistant upgrades: draft CTA, dock, z-stack with modals */
.assistant-panel.is-docked {
    width: min(300px, calc(100vw - 24px));
    height: min(42vh, 360px);
    bottom: 18px;
    opacity: .94;
}
.assistant-msg { animation: asMsgIn .28s ease; }
@keyframes asMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.assistant-followups, .assistant-suggestions, .assistant-actions {
    flex-direction: column; flex-wrap: nowrap;
}
.assistant-followups button, .assistant-suggestions button {
    display: flex; align-items: flex-start; gap: 8px;
    border-radius: 12px; padding: 9px 11px; line-height: 1.4;
}
.assistant-followups button .as-fq-ico {
    flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 10px; font-weight: 800;
    background: #FCE7F3; color: #BE185D;
}
.assistant-action-btn {
    width: 100%; padding: 11px 12px; font-size: 12.5px;
    box-shadow: 0 8px 18px rgba(99,102,241,.25);
}
.assistant-action-btn.primary.draft {
    padding: 12px 14px; font-size: 13px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}
.assistant-draft-preview {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px;
    padding: 10px 12px; margin-bottom: 2px; width: 100%;
}
.assistant-draft-preview strong {
    display: block; font-size: 12px; color: #0F172A; margin-bottom: 4px;
}
.assistant-draft-preview p {
    margin: 0; font-size: 11.5px; color: #475569; line-height: 1.45;
}

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

/* ── Mapped CRM panel ── */
#crmView {
    --crm-brand: #534AB7;
    --crm-brand-soft: #EEECF9;
    --crm-surface: #F5F4FA;
    --crm-border: #E4E2F0;
    --crm-radius: 14px;
    --crm-gap: 12px;
}

.crm-dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.crm-head-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--crm-brand-soft); color: var(--crm-brand);
    font-size: 12px; font-weight: 600;
}
.crm-pill b { font-weight: 800; }

.crm-filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; margin-bottom: 16px;
    background: linear-gradient(180deg, #FAFAFC 0%, #F5F4FA 100%);
    border: 1px solid var(--crm-border); border-radius: var(--crm-radius);
}
.crm-filter-bar-left, .crm-filter-bar-right {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.crm-filter-label { display: inline-flex; align-items: center; gap: 8px; }
.crm-filter-bar .select-input {
    max-width: 180px; min-height: 36px; border-radius: 10px;
    border-color: var(--crm-border); background: #fff;
}
.crm-fav-check { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.crm-ico { font-style: normal; opacity: 0.85; }

.btn-crm-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 8px 16px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #5B52C4, #534AB7); color: #fff;
    font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
    box-shadow: 0 6px 14px rgba(83, 74, 183, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-crm-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(83, 74, 183, 0.28); }
.btn-crm-primary:active { transform: translateY(0) scale(0.98); }
.btn-crm-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; min-width: 72px; padding: 8px 14px;
    border: 1.5px solid var(--crm-border); border-radius: 10px; background: #fff;
    color: var(--crm-brand); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-crm-outline:hover { background: var(--crm-brand-soft); border-color: #C9C4E8; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(83, 74, 183, 0.08); }
.btn-crm-outline:active { transform: translateY(0) scale(0.98); }
.btn-crm-danger {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 32px; padding: 6px 12px; border: 1.5px solid #FECACA; border-radius: 10px;
    background: #FEF2F2; color: #DC2626; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.btn-crm-danger:hover { background: #FEE2E2; transform: translateY(-1px); }
.btn-crm-icon {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 64px; min-height: 52px; padding: 8px 10px;
    border: 1.5px solid var(--crm-border); border-radius: 12px; background: #fff;
    color: var(--crm-brand); font-size: 10px; font-weight: 700; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-crm-icon:hover { background: var(--crm-brand-soft); border-color: #C9C4E8; transform: translateY(-1px); box-shadow: 0 6px 12px rgba(83, 74, 183, 0.08); }
.btn-crm-icon:active { transform: translateY(0) scale(0.97); }

.crm-layout {
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    gap: 16px; align-items: start;
}
.crm-side { display: flex; flex-direction: column; gap: 16px; }
.crm-panel {
    background: #fff; border: 1px solid var(--crm-border); border-radius: var(--crm-radius);
    padding: 16px; box-shadow: 0 4px 16px rgba(30, 27, 75, 0.04);
}
.crm-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.crm-panel-head h3, .crm-route-card .crm-panel-head h3 {
    margin: 0; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 800; color: var(--navy);
}
.crm-panel-count {
    min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px;
    background: var(--crm-brand-soft); color: var(--crm-brand);
    font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.crm-panel-ico {
    width: 28px; height: 28px; border-radius: 8px; background: var(--crm-brand-soft);
    display: inline-grid; place-items: center; position: relative;
}
.crm-panel-ico::before {
    content: ""; width: 12px; height: 12px; border: 2px solid var(--crm-brand); border-radius: 3px;
}
.crm-ico-pipe::before { border-radius: 2px; box-shadow: 4px -4px 0 -1px var(--crm-brand); }
.crm-ico-list::before {
    height: 2px; width: 12px; border: 0; background: var(--crm-brand);
    box-shadow: 0 4px 0 var(--crm-brand), 0 8px 0 var(--crm-brand);
}
.crm-ico-map::before {
    width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    border: 2px solid var(--crm-brand); background: transparent;
}
.crm-ico-route::before {
    width: 14px; height: 14px; border: 0; border-radius: 0;
    background:
        linear-gradient(135deg, transparent 40%, var(--crm-brand) 40%, var(--crm-brand) 60%, transparent 60%),
        radial-gradient(circle at 20% 80%, var(--crm-brand) 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, var(--crm-brand) 2px, transparent 3px);
}

.crm-empty { font-size: 12px; color: var(--text-muted); padding: 8px 0; }
.crm-empty-state {
    text-align: center; padding: 28px 16px; border: 1px dashed var(--crm-border);
    border-radius: 12px; background: linear-gradient(180deg, #FAFAFC, #F5F4FA);
}
.crm-empty-state strong { display: block; color: var(--navy); font-size: 13px; margin-bottom: 4px; }
.crm-empty-state p { margin: 0; font-size: 12px; color: var(--text-muted); }
.crm-empty-ico {
    display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px;
    border-radius: 12px; background: var(--crm-brand-soft); color: var(--crm-brand); font-size: 18px;
}
.crm-empty-sm { padding: 16px 12px; }

.crm-inline-form { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.crm-inline-form .text-input {
    flex: 1; min-width: 0; min-height: 36px; border-radius: 10px; border-color: var(--crm-border);
}
.crm-inline-form .btn-crm-outline { flex-shrink: 0; }

.crm-pipeline-list {
    display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; padding-right: 2px;
}
.crm-lead-card {
    display: grid; grid-template-columns: 22px 42px 1fr auto; gap: 12px; align-items: start;
    padding: 14px; border: 1px solid var(--crm-border); border-radius: 14px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.crm-lead-card:hover {
    border-color: #C9C4E8; box-shadow: 0 8px 22px rgba(83, 74, 183, 0.08); transform: translateY(-1px);
}
.crm-lead-check { margin: 4px 0 0; }
.crm-lead-avatar {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(145deg, #7C3AED, #534AB7); flex-shrink: 0;
}
.crm-lead-avatar[data-status="1"] { background: linear-gradient(145deg, #3B82F6, #1D4ED8); }
.crm-lead-avatar[data-status="2"] { background: linear-gradient(145deg, #F59E0B, #B45309); }
.crm-lead-avatar[data-status="3"] { background: linear-gradient(145deg, #10B981, #047857); }
.crm-lead-avatar[data-status="4"] { background: linear-gradient(145deg, #F87171, #B91C1C); }
.crm-lead-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.crm-lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crm-lead-top strong { font-size: 13px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.crm-lead-addr {
    display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: var(--text-muted); line-height: 1.4;
}
.crm-addr-ico {
    width: 10px; height: 10px; margin-top: 2px; flex-shrink: 0;
    border: 1.5px solid #94A3B8; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.crm-lead-brief {
    font-size: 11px; color: #534AB7; font-weight: 600; line-height: 1.35;
    padding: 6px 8px; border-radius: 8px; background: #F5F3FF; border: 1px dashed #DDD6FE;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crm-lead-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-chip {
    display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
    padding: 3px 8px; border-radius: 999px; background: #F8FAFC; border: 1px solid var(--crm-border);
    font-size: 10px; font-weight: 700; color: var(--navy); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.crm-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: 0.7; }
.crm-chip-phone { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }
.crm-chip-mail { color: #1D4ED8; background: #EFF6FF; border-color: #BFDBFE; }
.crm-chip-web { color: #6D28D9; background: #F5F3FF; border-color: #DDD6FE; }
.crm-chip-rate { color: #B45309; background: #FFFBEB; border-color: #FDE68A; }
.crm-lead-actions { align-self: center; }
.crm-map-btn-ico {
    width: 14px; height: 14px; display: inline-block;
    border: 2px solid currentColor; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); margin-bottom: 2px;
}

.crm-badge {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.4; white-space: nowrap;
}
.crm-badge-status { background: #EEECF9; color: #534AB7; }
.crm-badge-status[data-status="0"] { background: #EEECF9; color: #534AB7; }
.crm-badge-status[data-status="1"] { background: #DBEAFE; color: #1D4ED8; }
.crm-badge-status[data-status="2"] { background: #FEF3C7; color: #B45309; }
.crm-badge-status[data-status="3"] { background: #D1FAE5; color: #047857; }
.crm-badge-status[data-status="4"] { background: #FEE2E2; color: #B91C1C; }
.crm-badge-fav { background: #FEF3C7; color: #B45309; }

.crm-side-list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow: auto; }
.crm-list-card, .crm-territory-card {
    border: 1px solid var(--crm-border); border-radius: 12px; padding: 12px;
    background: linear-gradient(180deg, #FFFFFF, #FAFAFC);
    transition: border-color .15s, box-shadow .15s;
}
.crm-list-card:hover, .crm-territory-card:hover {
    border-color: #C9C4E8; box-shadow: 0 4px 14px rgba(83, 74, 183, 0.07);
}
.crm-side-card-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.crm-side-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
}
.crm-side-avatar-list { background: var(--crm-brand-soft); }
.crm-side-avatar-list::before {
    content: ""; width: 14px; height: 2px; background: var(--crm-brand);
    box-shadow: 0 4px 0 var(--crm-brand), 0 8px 0 var(--crm-brand);
}
.crm-side-avatar-ter { background: #EEECF9; }
.crm-side-card-text { min-width: 0; flex: 1; }
.crm-side-card-text strong {
    display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crm-list-card .crm-list-desc, .crm-territory-card .crm-ter-meta {
    display: block; font-size: 11px; color: var(--text-muted);
}
.crm-ter-count {
    display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
    background: var(--crm-brand-soft); color: var(--crm-brand); font-size: 10px; font-weight: 800;
}
.crm-list-actions, .crm-ter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crm-ter-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.8);
}

.crm-route-card {
    margin-top: 16px; padding: 16px;
    background: linear-gradient(180deg, #FAFAFC, #F5F4FA);
    border: 1px solid var(--crm-border); border-radius: var(--crm-radius);
}
.crm-route-hint { margin: 0 0 12px; font-size: 12px; color: var(--text-muted); }
.crm-route-body { display: flex; flex-direction: column; gap: 8px; }
.crm-route-stop {
    background: #fff; border: 1px solid var(--crm-border); border-radius: 12px; padding: 10px 12px;
}
.crm-route-stop strong { display: block; font-size: 12px; color: var(--navy); margin-bottom: 2px; }
.crm-route-stop span { font-size: 11px; color: var(--text-muted); }
.crm-route-export {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; align-self: flex-start;
    min-height: 36px; padding: 8px 16px; border-radius: 10px; background: var(--crm-brand);
    color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none;
}
.crm-route-export:hover { filter: brightness(1.06); }

@media (max-width: 960px) {
    .crm-layout { grid-template-columns: 1fr; }
    .crm-filter-bar { flex-direction: column; align-items: stretch; }
    .crm-filter-bar-right { justify-content: flex-start; }
    .crm-lead-card { grid-template-columns: 22px 36px 1fr; }
    .crm-lead-actions { grid-column: 2 / -1; }
    .btn-crm-icon { flex-direction: row; min-height: 36px; width: 100%; gap: 8px; }
}

.crm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.crm-toolbar .select-input { max-width: 180px; }
.crm-lead-row {
    display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center;
    padding: 8px 10px; border: 1px solid #E8E0F5; border-radius: 10px; background: #fff;
}
.crm-lead-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crm-lead-main strong { font-size: 13px; color: var(--navy); }
.crm-lead-main span { font-size: 11px; color: var(--brand-dark); font-weight: 600; }
.crm-lead-main small { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-lead-meta { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.nav-switch { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-switch .nav-btn { flex: 1; min-width: 0; font-size: 11px; padding: 8px 6px; }

/* Düşük hareket tercihi — animasyonları kes, görünüm aynı */
@media (prefers-reduced-motion: reduce) {
    .overlay-orb,
    .loading-ring-glow,
    .loading-logo,
    .overlay-bar-fill,
    .assistant-typing-dots i {
        animation: none !important;
    }
    .page-view-enter,
    .search-overlay,
    .overlay-card,
    .modal-panel {
        animation: none !important;
    }
    .result-row,
    .auth-btn,
    .select-trigger {
        transition: none !important;
    }
}

.crm-route-stop{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;}
.crm-route-num{width:28px;height:28px;border-radius:50%;background:var(--crm-brand);color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;}

.crm-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin: -6px 0 14px;
    background: linear-gradient(90deg, #EEECF9, #F5F3FF);
    border: 1px solid #C9C4E8;
    border-radius: 12px;
    animation: crm-bulk-in .2s ease;
}
@keyframes crm-bulk-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.crm-bulk-bar[hidden] { display: none !important; }
.crm-bulk-left, .crm-bulk-right {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.crm-bulk-left strong { font-size: 12px; color: #534AB7; }
.btn-crm-ghost {
    border: 0; background: transparent; color: #534AB7;
    font-size: 11px; font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 8px;
    transition: background .45s ease, color .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.btn-crm-ghost:hover { background: rgba(83,74,183,.1); transform: translateY(-1px); }
.crm-select-sm {
    max-width: 140px !important;
    min-height: 32px !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
}
.crm-panel-head-right { display: flex; align-items: center; gap: 10px; }
.crm-select-all-lab { font-size: 11px; color: var(--text-muted); margin: 0; }
.crm-lead-tools {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px;
}
.btn-crm-tool {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--crm-border); background: #fff;
    color: #534AB7; font-size: 14px; cursor: pointer;
    display: inline-grid; place-items: center;
    transition: background .4s ease, border-color .4s ease, transform .45s cubic-bezier(.22,1,.36,1), color .35s ease;
}
.btn-crm-tool:hover { background: #EEECF9; border-color: #C9C4E8; transform: translateY(-1px); }
.btn-crm-tool.is-on { background: #FEF3C7; border-color: #FDE68A; color: #B45309; }
.crm-lead-tools .crm-select-sm { max-width: 118px !important; }
@media (max-width: 960px) {
    .crm-bulk-bar { flex-direction: column; align-items: stretch; }
}

.crm-stats-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.crm-stat-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 18px;
    padding: 14px 14px 13px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.85) inset,
        0 8px 22px rgba(30, 27, 75, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform .55s cubic-bezier(.22,1,.36,1),
        box-shadow .55s ease,
        border-color .45s ease;
}
.crm-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stat-wash, transparent);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}
.crm-stat-card::after {
    content: '';
    position: absolute;
    right: -18px;
    top: -22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--stat-orb, rgba(83,74,183,0.08));
    pointer-events: none;
    z-index: -1;
    transition: transform .45s ease;
}
.crm-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--stat-border, #C4B5FD);
    box-shadow: 0 16px 32px rgba(30, 27, 75, 0.1);
}
.crm-stat-card:hover::after {
    transform: scale(1.25) translate(-4px, 6px);
}
.crm-stat-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.crm-stat-ico {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    background: var(--stat-ico-bg, #EEF2FF);
    position: relative;
    box-shadow: 0 4px 10px rgba(30, 27, 75, 0.06);
}
.crm-stat-ico::before {
    content: '';
    display: block;
}
.crm-stat-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crm-stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1E1B4B;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-top: 2px;
}
.crm-stat-slash {
    margin: 0 2px;
    color: #94A3B8;
    font-weight: 700;
}
.crm-stat-sub {
    font-size: 11px;
    font-weight: 650;
    color: var(--stat-accent, #534AB7);
}
.crm-stat-meter {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    margin-top: 2px;
}
.crm-stat-meter i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: var(--stat-bar, linear-gradient(90deg, #534AB7, #818CF8));
    transition: width .8s cubic-bezier(.22,1,.36,1);
}

.crm-stat-total {
    --stat-wash: linear-gradient(145deg, rgba(83,74,183,0.08), transparent 60%);
    --stat-orb: rgba(83,74,183,0.14);
    --stat-border: #C4B5FD;
    --stat-accent: #534AB7;
    --stat-ico-bg: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}
.crm-stat-total .crm-stat-ico::before {
    width: 11px; height: 11px;
    border: 2px solid #534AB7;
    border-radius: 3px;
    box-shadow: 3px -3px 0 -1px #534AB7;
}
.crm-stat-phone {
    --stat-wash: linear-gradient(145deg, rgba(5,150,105,0.08), transparent 60%);
    --stat-orb: rgba(5,150,105,0.14);
    --stat-border: #6EE7B7;
    --stat-accent: #059669;
    --stat-ico-bg: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    --stat-bar: linear-gradient(90deg, #059669, #34D399);
}
.crm-stat-phone .crm-stat-ico::before {
    width: 8px; height: 12px;
    border: 2px solid #059669;
    border-radius: 3px;
}
.crm-stat-email {
    --stat-wash: linear-gradient(145deg, rgba(37,99,235,0.08), transparent 60%);
    --stat-orb: rgba(37,99,235,0.14);
    --stat-border: #93C5FD;
    --stat-accent: #2563EB;
    --stat-ico-bg: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    --stat-bar: linear-gradient(90deg, #2563EB, #60A5FA);
}
.crm-stat-email .crm-stat-ico::before {
    width: 12px; height: 9px;
    border: 2px solid #2563EB;
    border-radius: 2px;
    background: linear-gradient(135deg, transparent 42%, #2563EB 42%, #2563EB 58%, transparent 58%);
    background-origin: border-box;
}
.crm-stat-web {
    --stat-wash: linear-gradient(145deg, rgba(124,58,237,0.08), transparent 60%);
    --stat-orb: rgba(124,58,237,0.14);
    --stat-border: #C4B5FD;
    --stat-accent: #7C3AED;
    --stat-ico-bg: linear-gradient(135deg, #F5F3FF, #EDE9FE);
    --stat-bar: linear-gradient(90deg, #7C3AED, #A78BFA);
}
.crm-stat-web .crm-stat-ico::before {
    width: 12px; height: 12px;
    border: 2px solid #7C3AED;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #7C3AED;
}
.crm-stat-geo {
    --stat-wash: linear-gradient(145deg, rgba(217,119,6,0.08), transparent 60%);
    --stat-orb: rgba(217,119,6,0.14);
    --stat-border: #FCD34D;
    --stat-accent: #D97706;
    --stat-ico-bg: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    --stat-bar: linear-gradient(90deg, #D97706, #FBBF24);
}
.crm-stat-geo .crm-stat-ico::before {
    width: 10px; height: 10px;
    border: 2px solid #D97706;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: rgba(217,119,6,0.15);
}
.crm-stat-org {
    --stat-wash: linear-gradient(145deg, rgba(14,165,233,0.08), transparent 60%);
    --stat-orb: rgba(14,165,233,0.14);
    --stat-border: #7DD3FC;
    --stat-accent: #0284C7;
    --stat-ico-bg: linear-gradient(135deg, #F0F9FF, #E0F2FE);
}
.crm-stat-org .crm-stat-ico::before {
    width: 12px; height: 2px;
    border: 0;
    background: #0284C7;
    box-shadow: 0 4px 0 #0284C7, 0 8px 0 #0284C7;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .crm-stat-card,
    .crm-stat-meter i,
    .crm-stat-card::after { transition: none !important; }
}
.crm-chart-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.crm-chart-card {
    background: #fff;
    border: 1px solid var(--crm-border, #E4E2F0);
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.04);
}
.crm-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.crm-chart-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #1E1B4B;
}
.crm-chart-hint {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}
.crm-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: end;
    min-height: 140px;
}
.crm-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.crm-bar-track {
    width: 100%;
    max-width: 36px;
    height: 100px;
    border-radius: 10px;
    background: #F1F5F9;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.crm-bar-fill {
    width: 100%;
    min-height: 4px;
    border-radius: 10px 10px 4px 4px;
    transition: height .45s cubic-bezier(.22,1,.36,1);
}
.crm-bar-col strong {
    font-size: 13px;
    font-weight: 800;
    color: #1E1B4B;
}
.crm-bar-col span {
    font-size: 10px;
    font-weight: 700;
    color: #64748B;
    text-align: center;
    line-height: 1.2;
}
.crm-donut-wrap {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
}
.crm-donut { width: 120px; height: 120px; }
.crm-donut-legend {
    display: grid;
    gap: 8px;
}
.crm-donut-legend div {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}
.crm-donut-legend i {
    width: 10px; height: 10px; border-radius: 50%;
}
.crm-donut-legend b { color: #1E1B4B; font-weight: 800; }

@media (max-width: 1100px) {
    .crm-stats-board { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .crm-chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .crm-stats-board { grid-template-columns: repeat(2, 1fr); }
}

.crm-search-lists-panel {
    background: #fff;
    border: 1px solid var(--crm-border, #E4E2F0);
    border-radius: 16px;
    padding: 14px 16px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.04);
}
.crm-search-lists-hint {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.4;
}
.crm-search-lists-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.crm-search-lists-grid.crm-empty {
    display: block;
}
.crm-search-list-card {
    border: 1px solid #E4E2F0;
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #FAFAFE 0%, #fff 100%);
    transition: border-color .2s, box-shadow .2s;
}
.crm-search-list-card:hover {
    border-color: #C4B5FD;
    box-shadow: 0 8px 20px rgba(83, 74, 183, 0.08);
}
.crm-search-list-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.crm-search-list-badge {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #4338CA;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.crm-side-avatar-search {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    position: relative;
}
.crm-side-avatar-search::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid #6366F1;
    border-radius: 50%;
    border-right-color: transparent;
    transform: rotate(-45deg);
}
.crm-side-avatar-search::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background: #6366F1;
    border-radius: 2px;
    right: 7px;
    bottom: 8px;
    transform: rotate(45deg);
}
.crm-panel-ico.crm-ico-search {
    background: #EEF2FF;
}
.crm-panel-ico.crm-ico-search::before {
    content: '⌕';
    font-size: 14px;
    color: #4F46E5;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1100px) {
    .crm-search-lists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .crm-search-lists-grid { grid-template-columns: 1fr; }
}

.crm-history-panel {
    position: relative;
    background:
        linear-gradient(180deg, #FAFAFE 0%, #fff 40%);
    border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 20px;
    padding: 16px 18px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(30, 27, 75, 0.05);
    overflow: hidden;
}
.crm-history-split {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 14px;
    min-height: 340px;
}
.crm-history-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 440px;
    overflow: auto;
    padding: 2px 6px 2px 2px;
}
.crm-history-rail.crm-empty { display: block; }
.crm-history-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 14px;
    padding: 12px 12px 12px 14px;
    background: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    animation: crmHistRailIn .35s ease forwards;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.crm-history-item.is-instant {
    opacity: 1;
    transform: none;
    animation: none;
}
.crm-history-item::before {
    content: '';
    position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: transparent;
    transition: background .25s ease;
}
.crm-history-item:hover {
    border-color: #C4B5FD;
    background: #FAFAFE;
    box-shadow: 0 6px 16px rgba(83, 74, 183, 0.08);
}
.crm-history-item:hover::before {
    background: #A78BFA;
}
.crm-history-item.is-active {
    border-color: #534AB7;
    background: #F5F3FF;
    box-shadow: 0 8px 18px rgba(83, 74, 183, 0.1);
}
.crm-history-item.is-active::before {
    background: #534AB7;
}
.crm-history-item-text {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 4px;
}
.crm-history-item-text strong {
    font-size: 13px;
    font-weight: 800;
    color: #1E1B4B;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.crm-history-item-text span {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}
.crm-history-item-count {
    flex-shrink: 0;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #4338CA;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease;
}
.crm-history-item.is-active .crm-history-item-count {
    background: #534AB7;
    color: #fff;
}
.crm-history-results {
    position: relative;
    border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    overflow: hidden;
}
.crm-history-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(238, 234, 248, 0.95);
}
.crm-history-results-head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #1E1B4B;
    letter-spacing: -0.015em;
}
.crm-history-active-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}
.crm-history-results-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.crm-history-results-actions[hidden] {
    display: none !important;
}
.crm-history-places {
    flex: 1;
    overflow: auto;
    max-height: 400px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.crm-history-places.crm-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.crm-hist-place-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 14px;
    background: #fff;
    opacity: 0;
    transform: translateY(8px);
    animation: crmHistCardIn .32s ease forwards;
    transition: border-color .2s ease, box-shadow .25s ease;
}
.crm-hist-place-card.is-instant {
    opacity: 1;
    transform: none;
    animation: none;
}
.crm-hist-place-card:hover {
    border-color: #C4B5FD;
    box-shadow: 0 8px 18px rgba(83, 74, 183, 0.08);
}
.crm-hist-place-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.crm-hist-add.is-done {
    border-color: #059669;
    color: #059669;
    background: #ECFDF5;
}
.crm-history-loading {
    display: grid;
    gap: 10px;
    padding: 4px;
}
.crm-history-skeleton {
    height: 64px;
    border-radius: 14px;
    background: #F1F5F9;
}

@keyframes crmHistRailIn {
    to { opacity: 1; transform: none; }
}
@keyframes crmHistCardIn {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .crm-history-item,
    .crm-hist-place-card,
    .crm-stat-card,
    .crm-stat-meter i,
    .btn-crm-primary,
    .btn-crm-outline,
    .btn-crm-icon,
    .btn-crm-ghost,
    .btn-crm-tool {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 960px) {
    .crm-history-split { grid-template-columns: 1fr; }
    .crm-history-rail { max-height: 220px; }
}

.crm-history-bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #EEEAF8;
    background: #FAFAFE;
    font-size: 12px;
}
.crm-history-bulk strong { color: #534AB7; font-size: 12px; }
.crm-history-bulk-hint { color: #64748B; font-weight: 600; }
.crm-hist-place-card {
    grid-template-columns: auto auto 1fr auto;
}
.crm-hist-check-lab { margin: 4px 0 0; }
.outreach-rec-more {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
    color: #534AB7;
    padding: 6px 0;
}

.ox-msg-tabs { display: inline-flex; gap: 4px; background: #EEF2FF; padding: 3px; border-radius: 10px; }
.ox-msg-tab {
    border: 0; background: transparent; color: #64748B;
    font-size: 11px; font-weight: 750; padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.ox-msg-tab.is-on { background: #fff; color: #4338CA; box-shadow: 0 2px 8px rgba(83,74,183,.12); }
.ox-html-pane { margin-top: 8px; }
.ox-html-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.ox-html-actions { display: flex; gap: 8px; }
.ox-html-preview {
    width: 100%; height: min(320px, 38vh); border: 1px solid #E4E2F0; border-radius: 14px;
    background: #F1F5F9; box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.ox-html-preview[hidden] { display: none !important; }

/* ── Mail Stüdyosu v2 (daha tatlı / mantıklı akış) ── */
.outreach-modal.outreach-studio {
    width: min(1280px, 96vw);
    height: min(860px, 92vh);
    max-height: 92vh;
    min-height: 0;
    border-radius: 24px;
    background:
        radial-gradient(820px 260px at 8% -10%, rgba(99, 102, 241, 0.1), transparent 55%),
        radial-gradient(640px 220px at 100% 0%, rgba(14, 165, 233, 0.07), transparent 48%),
        linear-gradient(180deg, #F7F8FC 0%, #F1F3F9 100%);
}
.ox-head {
    align-items: center;
    padding: 14px 18px;
}
.ox-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ox-head-badge {
    width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #EEF2FF, #E0E7FF);
    border: 1px solid #C7D2FE;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(83, 74, 183, 0.12);
}
.ox-head-sub {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}
.ox-steps {
    display: flex; gap: 6px; flex-shrink: 0;
    padding: 4px; border-radius: 14px;
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
}
.ox-step {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: transparent;
    color: #64748B; font-size: 11px; font-weight: 750;
    padding: 7px 11px; border-radius: 10px; cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    white-space: nowrap;
}
.ox-step > span:first-child {
    width: 18px; height: 18px; min-width: 18px; border-radius: 50%;
    display: grid; place-items: center;
    background: #E2E8F0; color: #475569;
    font-size: 10px; font-weight: 800;
    flex-shrink: 0;
}
.ox-step > span:last-child {
    width: auto; height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    display: inline;
    line-height: 1.2;
}
.ox-step.is-on {
    background: #fff; color: #3730A3;
    box-shadow: 0 4px 12px rgba(83, 74, 183, 0.14);
}
.ox-step.is-on > span:first-child { background: #534AB7; color: #fff; }
.ox-step.is-done > span:first-child { background: #10B981; color: #fff; }
.ox-card.is-focus {
    border-color: #C7D2FE;
    box-shadow: 0 10px 28px rgba(83, 74, 183, 0.1);
}
.ox-msg-head { align-items: flex-start; }
.ox-msg-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ox-hint-soft { margin: 8px 0 0; }
.ox-muted { font-weight: 500; color: #94A3B8; }
.ox-pill {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 999px;
    background: #EEF2FF; color: #4338CA;
    font-size: 11px; font-weight: 750;
    border: 1px solid #C7D2FE;
}
.ox-brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ox-inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ox-inline-row .text-input { flex: 1; min-width: 140px; }
.ox-profile-meter { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(15, 23, 42, .04); border: 1px solid rgba(15, 23, 42, .08); }
.ox-profile-meter-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.ox-profile-bar { height: 6px; border-radius: 99px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.ox-profile-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #0ea5e9, #22c55e); border-radius: 99px; }
.ox-profile-meter.is-thin { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); }

/* Company intelligence page */
.intel-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.intel-right { display: grid; grid-template-columns: minmax(420px, 520px) minmax(0, 1fr); gap: 14px; align-items: start; }
.intel-profile-panel .text-input,
.intel-profile-panel .select-input { margin-bottom: 0; }
.intel-action-btn {
    position: relative; display: inline-grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center;
    min-height: 43px; padding: 7px 12px 7px 8px; border-radius: 13px; cursor: pointer;
    text-align: left; border: 1px solid #C7D2FE; color: #312E81; background: #fff;
    box-shadow: 0 5px 14px rgba(30,27,75,.07); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.intel-action-btn:hover { transform: translateY(-2px); border-color: #818CF8; box-shadow: 0 10px 22px rgba(30,27,75,.12); }
.intel-action-btn:disabled { opacity: .62; cursor: wait; transform: none; }
.intel-action-btn > span:last-child { display: grid; gap: 1px; }
.intel-action-btn b { font-size: 11.5px; font-weight: 900; line-height: 1.2; }
.intel-action-btn small { color: #64748B; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.intel-action-btn-icon {
    display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px;
    color: #4F46E5; background: #EEF2FF;
}
.intel-action-btn-icon svg, .intel-save-btn svg, .intel-profile-logo svg {
    width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.intel-action-btn-icon.is-spark {
    color: #fff; background: linear-gradient(135deg, #6366F1, #A855F7);
    box-shadow: 0 5px 12px rgba(99,102,241,.32); animation: intelAiGlow 2.2s ease-in-out infinite;
}
.intel-action-btn-ai { color: #fff; border-color: transparent; background: linear-gradient(125deg, #312E81, #4F46E5 65%, #7C3AED); }
.intel-action-btn-ai small { color: #C7D2FE; }
.intel-action-btn-ai:hover { border-color: transparent; box-shadow: 0 12px 25px rgba(79,70,229,.28); }
.intel-action-btn-scan .intel-action-btn-icon { color: #0891B2; background: #ECFEFF; }
.intel-action-btn-profile { min-width: 205px; }
.intel-profile-panel { padding: 0 !important; overflow: hidden; border-color: #DDD6FE !important; }
.intel-profile-head {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px;
    background: radial-gradient(circle at 75% 0, rgba(129,140,248,.15), transparent 34%), linear-gradient(120deg, #FAFAFF, #F5F3FF);
    border-bottom: 1px solid #EDE9FE;
}
.intel-profile-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.intel-profile-logo {
    flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    color: #fff; background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    box-shadow: 0 9px 20px rgba(79,70,229,.24);
}
.intel-profile-logo svg { width: 22px; height: 22px; }
.intel-profile-title h3 { margin: 0 0 3px; color: #1E1B4B; font-size: 17px; font-weight: 900; }
.intel-profile-title p { margin: 0; color: #64748B; font-size: 11.5px; line-height: 1.4; }
.intel-profile-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.intel-save-btn {
    display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 8px 14px;
    border: 0; border-radius: 12px; color: #fff; background: #059669; font-size: 11.5px; font-weight: 900;
    cursor: pointer; box-shadow: 0 7px 16px rgba(5,150,105,.22); transition: transform .2s, box-shadow .2s;
}
.intel-save-btn:hover { transform: translateY(-2px); box-shadow: 0 11px 22px rgba(5,150,105,.3); }
.intel-save-btn svg { width: 16px; height: 16px; }
.intel-profile-meter {
    display: grid; grid-template-columns: minmax(180px, auto) 1fr auto; gap: 14px; align-items: center;
    margin: 14px 20px 0; padding: 10px 12px; border-radius: 12px; color: #312E81;
    background: #F8FAFF; border: 1px solid #E0E7FF;
}
.intel-profile-meter > div:first-child { display: grid; gap: 1px; }
.intel-profile-meter span { font-size: 11px; font-weight: 900; }
.intel-profile-meter small { color: #64748B; font-size: 9.5px; }
.intel-profile-meter strong { color: #4338CA; font-size: 15px; font-weight: 900; }
.intel-profile-meter-track { height: 7px; border-radius: 999px; overflow: hidden; background: #E2E8F0; }
.intel-profile-meter-track > i {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, #06B6D4, #6366F1, #A855F7); transition: width .8s ease;
}
.intel-profile-meter.is-thin { border-color: #FDE68A; background: #FFFBEB; }
.intel-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 20px 20px; }
.intel-form-card {
    min-width: 0; padding: 14px; border-radius: 15px; background: #fff; border: 1px solid #E4E2F0;
    box-shadow: 0 5px 16px rgba(30,27,75,.035); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.intel-form-card:focus-within { border-color: #A5B4FC; box-shadow: 0 10px 24px rgba(79,70,229,.09); transform: translateY(-1px); }
.intel-form-card-ai {
    background: radial-gradient(circle at 100% 0, rgba(139,92,246,.1), transparent 40%), #FAFAFF;
    border-color: #DDD6FE;
}
.intel-form-card > header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.intel-form-icon {
    flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    color: #4338CA; background: #EEF2FF; font-size: 9px; font-weight: 950; letter-spacing: .03em;
}
.intel-form-card-ai .intel-form-icon { color: #fff; background: linear-gradient(135deg, #6366F1, #A855F7); }
.intel-form-card h4 { margin: 0 0 2px; color: #1E1B4B; font-size: 12.5px; font-weight: 900; }
.intel-form-card header p { margin: 0; color: #94A3B8; font-size: 9.5px; line-height: 1.3; }
.intel-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.intel-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.intel-field.is-wide { grid-column: 1 / -1; }
.intel-field label { color: #475569; font-size: 10.5px; font-weight: 800; }
.intel-field > small { color: #94A3B8; font-size: 9px; line-height: 1.3; }
.intel-field .text-input, .intel-field .select-input {
    min-width: 0; width: 100%; border-radius: 10px; border-color: #E2E8F0; background: #FAFBFD;
    font-size: 11.5px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.intel-field .text-input:focus, .intel-field .select-input:focus {
    border-color: #818CF8; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
@keyframes intelAiGlow {
    0%, 100% { box-shadow: 0 5px 12px rgba(99,102,241,.28); }
    50% { box-shadow: 0 5px 18px rgba(168,85,247,.52); transform: scale(1.04); }
}
.intel-competitor-panel { background: linear-gradient(180deg, #fff, #FCFCFF); }
.intel-competitor-list { display: grid; align-content: start; gap: 10px; max-height: none; min-height: 480px; overflow: auto; padding: 1px 3px 6px 1px; scrollbar-width: thin; }
@media (min-width: 1101px) {
    .intel-competitor-panel {
        position: sticky; top: 12px; display: flex; flex-direction: column; height: calc(100vh - 24px);
        max-height: calc(100vh - 24px); overflow: hidden;
    }
    .intel-competitor-panel > .crm-panel-head,
    .intel-competitor-panel > .ox-hint,
    .intel-competitor-panel .intel-manual-add { flex: 0 0 auto; }
    .intel-competitor-panel > .ox-hint { margin: 0 0 8px; font-size: 11px; line-height: 1.35; }
    .intel-competitor-panel .intel-side-insights {
        flex: 0 0 auto; max-height: 148px; overflow: auto; margin-top: 0; margin-bottom: 8px;
    }
    .intel-competitor-panel .intel-competitor-list { flex: 1 1 auto; min-height: 0; max-height: none; }
    .intel-competitor-panel .intel-diag { flex: 0 0 auto; max-height: 72px; }
}
.intel-side-insights {
    flex: 0 0 auto; display: grid; gap: 8px; margin-top: 0; margin-bottom: 8px; padding: 10px 12px; border-radius: 14px;
    background: radial-gradient(circle at 100% 0, rgba(139,92,246,.12), transparent 42%), #F8F7FF;
    border: 1px solid #DDD6FE; box-shadow: 0 7px 18px rgba(49,46,129,.06);
}
.intel-side-insights[hidden] { display: none !important; }
.intel-side-insights > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.intel-side-insights h4 { margin: 0; color: #1E1B4B; font-size: 11.5px; font-weight: 900; }
.intel-side-insights > header > span { padding: 3px 6px; border-radius: 999px; color: #4338CA; background: #E0E7FF; font-size: 7px; font-weight: 900; }
.intel-side-distribution { display: grid; gap: 6px; }
.intel-side-distribution > div { display: grid; grid-template-columns: 54px 1fr 16px; align-items: center; gap: 7px; }
.intel-side-distribution span { display: inline-flex; align-items: center; gap: 4px; color: #64748B; font-size: 7.5px; font-weight: 750; }
.intel-side-distribution span > i { width: 6px; height: 6px; border-radius: 50%; }
.intel-side-distribution b { height: 5px; overflow: hidden; border-radius: 99px; background: #E2E8F0; }
.intel-side-distribution b > i { display: block; height: 100%; border-radius: inherit; transition: width .8s cubic-bezier(.22,1,.36,1); }
.intel-side-distribution i.high { background: #EF4444; }
.intel-side-distribution i.medium { background: #F59E0B; }
.intel-side-distribution i.low { background: #10B981; }
.intel-side-distribution em { color: #475569; font-size: 8px; font-style: normal; font-weight: 900; text-align: right; }
.intel-side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.intel-side-stats > div { display: grid; justify-items: center; gap: 1px; padding: 7px 3px; border-radius: 9px; background: rgba(255,255,255,.78); border: 1px solid #EDE9FE; }
.intel-side-stats strong { color: #4338CA; font-size: 14px; font-weight: 950; }
.intel-side-stats span { color: #94A3B8; font-size: 6.5px; text-align: center; }
.intel-side-focus {
    display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 9px; border-radius: 10px;
    color: #E0E7FF; background: linear-gradient(135deg, #312E81, #4F46E5);
}
.intel-side-focus > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.13); font-size: 11px; }
.intel-side-focus > div { min-width: 0; }
.intel-side-focus small { display: block; color: #A5B4FC; font-size: 6.5px; font-weight: 900; letter-spacing: .08em; }
.intel-side-focus strong { display: block; overflow: hidden; margin: 1px 0 2px; color: #fff; font-size: 9.5px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.intel-side-focus p { margin: 0; color: #C7D2FE; font-size: 7.5px; line-height: 1.35; }
.intel-risk-overview {
    display: grid; grid-template-columns: 1.35fr .75fr .65fr; gap: 7px; padding: 9px; border-radius: 14px;
    color: #fff; background: radial-gradient(circle at 0 0, rgba(34,211,238,.18), transparent 38%), linear-gradient(135deg, #171438, #312E81);
    box-shadow: 0 9px 22px rgba(30,27,75,.14);
}
.intel-risk-overview > div { min-width: 0; display: grid; align-content: center; padding: 7px 8px; border-radius: 9px; background: rgba(255,255,255,.06); }
.intel-risk-overview small { color: #A5B4FC; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.intel-risk-overview strong { overflow: hidden; color: #fff; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.intel-risk-overview > div:not(:first-child) strong { font-size: 19px; }
.intel-risk-overview span { color: #C7D2FE; font-size: 8.5px; }
.intel-risk-legend { display: flex; align-items: center; gap: 8px; padding: 0 4px; color: #64748B; font-size: 8px; }
.intel-risk-legend > span { display: inline-flex; align-items: center; gap: 3px; }
.intel-risk-legend i { width: 6px; height: 6px; border-radius: 50%; }
.intel-risk-legend i.low { background: #10B981; }
.intel-risk-legend i.medium { background: #F59E0B; }
.intel-risk-legend i.high { background: #EF4444; }
.intel-risk-legend em { margin-inline-start: auto; color: #94A3B8; font-style: normal; }
.intel-comp-card {
    --risk-color: #F59E0B; position: relative; display: grid; gap: 9px;
    border: 1px solid #E4E2F0; border-radius: 16px; padding: 12px; background: #fff;
    box-shadow: 0 6px 18px rgba(30,27,75,.055); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.intel-comp-card::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; border-radius: 0 5px 5px 0; background: var(--risk-color); }
.intel-comp-card:hover { transform: translateY(-2px); border-color: #C7D2FE; box-shadow: 0 12px 26px rgba(30,27,75,.1); }
.intel-comp-card.risk-high { --risk-color: #EF4444; }
.intel-comp-card.risk-low { --risk-color: #10B981; }
.intel-comp-card.is-off { opacity: .57; background: #F8FAFC; filter: saturate(.7); }
.intel-comp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.intel-comp-rank {
    display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px;
    color: #4338CA; background: #EEF2FF; font-size: 9px; font-weight: 950;
}
.intel-comp-identity { min-width: 0; }
.intel-comp-identity strong { display: block; overflow: hidden; color: #1E1B4B; font-size: 12.5px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.intel-comp-identity > span { display: block; overflow: hidden; margin-top: 1px; color: #94A3B8; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.intel-risk-score { display: grid; justify-items: end; min-width: 51px; }
.intel-risk-score > div { display: flex; align-items: baseline; color: var(--risk-color); }
.intel-risk-score strong { font-size: 20px; line-height: 1; font-weight: 950; letter-spacing: -.05em; }
.intel-risk-score small { font-size: 7px; font-weight: 800; }
.intel-risk-score > span { margin-top: 2px; color: #94A3B8; font-size: 6.5px; font-weight: 900; letter-spacing: .08em; }
.intel-risk-line { height: 5px; overflow: hidden; border-radius: 999px; background: #F1F5F9; }
.intel-risk-line > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--risk-color) 65%, white), var(--risk-color)); transition: width .8s cubic-bezier(.22,1,.36,1); }
.intel-risk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.intel-risk-level { display: inline-flex; align-items: center; gap: 5px; color: #B45309; font-size: 8.5px; font-weight: 850; }
.intel-risk-level i { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 3px #FEF3C7; }
.intel-risk-level.high { color: #B91C1C; }
.intel-risk-level.high i { background: #EF4444; box-shadow: 0 0 0 3px #FEE2E2; }
.intel-risk-level.low { color: #047857; }
.intel-risk-level.low i { background: #10B981; box-shadow: 0 0 0 3px #D1FAE5; }
.intel-confidence { color: #94A3B8; font-size: 8px; }
.intel-confidence b { color: #475569; }
.intel-signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.intel-signal-grid > span {
    display: grid; grid-template-columns: auto 1fr; column-gap: 5px; align-items: center; padding: 6px 7px;
    border-radius: 9px; color: #94A3B8; background: #F8FAFC; border: 1px solid #F1F5F9;
}
.intel-signal-grid > span > b { grid-row: 1 / 3; font-size: 11px; font-weight: 900; }
.intel-signal-grid small { font-size: 7.5px; }
.intel-signal-grid em { overflow: hidden; color: #64748B; font-size: 8.5px; font-style: normal; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.intel-signal-grid > span.has-signal { color: #4F46E5; background: #F8F7FF; border-color: #EDE9FE; }
.intel-comp-positioning { margin: 0; padding: 7px 8px; border-inline-start: 2px solid #C4B5FD; color: #64748B; background: #FAFAFF; font-size: 9px; line-height: 1.4; }
.intel-comp-footer { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid #F1F5F9; }
.intel-comp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.intel-comp-links a { color: #4F46E5; font-size: 8.5px; font-weight: 800; text-decoration: none; }
.intel-comp-links a:hover { text-decoration: underline; }
.intel-manual-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 8px; }
.intel-manual-add .text-input { margin: 0; }
.intel-diag {
    background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 10px;
    padding: 6px 10px; font-size: 11px; color: #475569; margin-top: 8px; margin-bottom: 0; line-height: 1.45;
    max-height: 120px; overflow: auto; flex-shrink: 0;
}
.intel-diag details { margin: 0; }
.intel-diag summary {
    cursor: pointer; font-weight: 750; color: #64748B; list-style: none;
    display: flex; align-items: center; gap: 6px;
}
.intel-diag summary::-webkit-details-marker { display: none; }
.intel-diag summary::before { content: "▸"; font-size: 10px; }
.intel-diag details[open] summary::before { content: "▾"; }
.intel-diag .intel-diag-body { margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.intel-comp-socials {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px;
}
.intel-comp-socials a {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
    border-radius: 999px; font-size: 10px; font-weight: 750; text-decoration: none;
    background: #F1F5F9; color: #334155; border: 1px solid #E2E8F0;
}
.intel-comp-socials a:hover { background: #EEF2FF; color: #4338CA; border-color: #C7D2FE; }
.intel-comp-socials a[data-net="instagram"] { background: #FDF2F8; color: #BE185D; border-color: #FBCFE8; }
.intel-comp-socials a[data-net="linkedin"] { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.intel-comp-socials a[data-net="twitter"], .intel-comp-socials a[data-net="x"] { background: #F8FAFC; color: #0F172A; border-color: #CBD5E1; }
.intel-comp-socials a[data-net="facebook"] { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.intel-comp-socials a[data-net="youtube"] { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.intel-comp-socials a[data-net="tiktok"] { background: #F8FAFC; color: #0F172A; border-color: #CBD5E1; }
.intel-comp-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.intel-comp-actions button { min-height: 28px; border-radius: 8px; cursor: pointer; font-size: 8.5px; font-weight: 850; transition: .2s ease; }
.intel-comp-actions .intel-toggle { padding: 5px 9px; color: #4338CA; border: 1px solid #C7D2FE; background: #EEF2FF; }
.intel-comp-actions .intel-toggle.is-selected { color: #047857; border-color: #A7F3D0; background: #ECFDF5; }
.intel-comp-actions .intel-toggle:hover { transform: translateY(-1px); filter: saturate(1.2); }
.intel-comp-actions .intel-remove { width: 28px; padding: 0; color: #94A3B8; border: 1px solid #E2E8F0; background: #fff; font-size: 14px; }
.intel-comp-actions .intel-remove:hover { color: #DC2626; border-color: #FECACA; background: #FEF2F2; }
.intel-badge-rating { background: #FEF3C7; color: #B45309; }
.intel-badge-ads { background: #F3E8FF; color: #7E22CE; border-color: #E9D5FF; }
.intel-meta-link, .intel-meta-cta {
    display: inline-flex; margin-top: 6px; font-size: 11px; font-weight: 750; color: #4F46E5; text-decoration: none;
}
.intel-meta-cta {
    margin-top: 8px; padding: 8px 10px; border-radius: 10px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF); border: 1px solid #C7D2FE;
}
.intel-meta-link:hover, .intel-meta-cta:hover { text-decoration: underline; }
.intel-live-stage {
    position: relative; overflow: hidden; margin-bottom: 14px; border-radius: 18px; padding: 16px 18px;
    background: radial-gradient(circle at 0% 50%, rgba(99,102,241,.22), transparent 42%),
                linear-gradient(120deg, #111827, #1E1B4B 55%, #312E81);
    border: 1px solid rgba(165,180,252,.28); color: #E0E7FF;
    box-shadow: 0 16px 36px rgba(30,27,75,.18);
}
.intel-process-modal {
    position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px;
}
.intel-process-modal[hidden] { display: none !important; }
.intel-process-backdrop {
    position: absolute; inset: 0; background: rgba(12, 10, 35, .72);
    backdrop-filter: blur(14px); animation: oxAiFade .25s ease both;
}
.intel-process-card {
    position: relative; z-index: 1; width: min(560px, 94vw); max-height: 90vh; overflow: auto;
    padding: 26px 28px 24px; border-radius: 25px; text-align: center;
    background: radial-gradient(circle at 50% 0, rgba(99,102,241,.18), transparent 38%), #fff;
    border: 1px solid rgba(199,210,254,.9); box-shadow: 0 36px 90px rgba(15,12,40,.42);
    animation: oxAiCardIn .4s cubic-bezier(.22,1,.36,1) both;
}
.intel-process-modal.has-ten-steps .intel-process-card { width: min(680px, 94vw); }
.intel-ai-lab { width: 210px; height: 152px; margin: 0 auto 8px; position: relative; }
.intel-ai-lab::before {
    content: ""; position: absolute; left: 27px; right: 27px; bottom: 9px; height: 19px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(79,70,229,.22), transparent 68%); animation: intelRobotShadow 2s ease-in-out infinite;
}
.intel-ai-robot { position: absolute; z-index: 3; left: 67px; top: 14px; width: 78px; height: 118px; animation: intelRobotFloat 2s ease-in-out infinite; }
.intel-robot-antenna { position: absolute; z-index: 1; left: 36px; top: -13px; width: 6px; height: 17px; border-radius: 9px; background: #4338CA; }
.intel-robot-antenna i {
    position: absolute; left: -3px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: #22D3EE;
    border: 3px solid #CFFAFE; box-shadow: 0 0 0 0 rgba(34,211,238,.35); animation: intelRobotSignal 1.6s ease-out infinite;
}
.intel-robot-head {
    position: absolute; z-index: 3; left: 5px; top: 4px; width: 68px; height: 49px; padding: 6px;
    border-radius: 19px 19px 15px 15px; background: linear-gradient(145deg, #4F46E5, #7C3AED);
    box-shadow: 0 11px 22px rgba(79,70,229,.28), inset 0 1px rgba(255,255,255,.28);
}
.intel-robot-face {
    position: relative; display: flex; justify-content: center; align-items: center; gap: 16px; height: 100%; overflow: hidden;
    border-radius: 12px; background: linear-gradient(145deg, #111827, #1E1B4B); border: 1px solid #818CF8;
    box-shadow: inset 0 0 17px rgba(34,211,238,.2);
}
.intel-robot-eye { width: 9px; height: 9px; border-radius: 50%; background: #67E8F9; box-shadow: 0 0 9px #22D3EE; animation: intelRobotBlink 3.2s infinite; }
.intel-robot-scanline {
    position: absolute; left: 3px; right: 3px; top: 5px; height: 2px; border-radius: 99px;
    background: linear-gradient(90deg, transparent, #67E8F9, transparent); box-shadow: 0 0 8px #22D3EE;
    animation: intelRobotScan 1.7s ease-in-out infinite alternate;
}
.intel-robot-ear { position: absolute; z-index: -1; top: 17px; width: 8px; height: 17px; border-radius: 6px; background: #A5B4FC; }
.intel-robot-ear.left { left: -6px; }
.intel-robot-ear.right { right: -6px; }
.intel-robot-body {
    position: absolute; left: 14px; top: 56px; width: 50px; height: 55px; border-radius: 13px 13px 18px 18px;
    background: linear-gradient(145deg, #312E81, #4F46E5); box-shadow: 0 12px 22px rgba(49,46,129,.23);
}
.intel-robot-body svg { width: 24px; height: 24px; margin: 9px 13px 4px; fill: none; stroke: #C4B5FD; stroke-width: 1.5; }
.intel-robot-body i { display: inline-block; width: 5px; height: 5px; margin: 0 1px; border-radius: 50%; background: #67E8F9; animation: intelRobotLed 1.2s infinite; }
.intel-robot-body i:nth-of-type(2) { animation-delay: .2s; }
.intel-robot-body i:nth-of-type(3) { animation-delay: .4s; }
.intel-robot-arm { position: absolute; z-index: 1; top: 64px; width: 12px; height: 39px; border-radius: 10px; background: #818CF8; transform-origin: 50% 5px; }
.intel-robot-arm.left { left: 4px; transform: rotate(17deg); animation: intelRobotArmLeft 1.8s ease-in-out infinite; }
.intel-robot-arm.right { right: 4px; transform: rotate(-30deg); animation: intelRobotArmRight 1.8s ease-in-out infinite; }
.intel-ai-search-beam {
    position: absolute; z-index: 1; left: 121px; top: 64px; width: 72px; height: 52px; opacity: .42;
    background: conic-gradient(from 199deg at 0 0, transparent 0 8deg, rgba(34,211,238,.42) 9deg 31deg, transparent 32deg);
    filter: blur(.2px); animation: intelSearchBeam 1.8s ease-in-out infinite;
}
.intel-ai-orbit {
    position: absolute; z-index: 2; padding: 3px 6px; border: 1px solid #C7D2FE; border-radius: 7px;
    color: #6366F1; background: rgba(255,255,255,.88); box-shadow: 0 5px 12px rgba(49,46,129,.09);
    font-size: 7px; font-weight: 950; letter-spacing: .08em; animation: intelDataOrbit 2.4s ease-in-out infinite;
}
.intel-ai-orbit.orbit-a { left: 13px; top: 42px; }
.intel-ai-orbit.orbit-b { right: 4px; top: 31px; animation-delay: -.8s; }
.intel-ai-orbit.orbit-c { left: 25px; top: 102px; animation-delay: -1.6s; }
.intel-ai-percent {
    position: absolute; z-index: 5; right: 6px; bottom: 5px; display: grid; grid-template-columns: auto auto; align-items: baseline;
    min-width: 66px; padding: 7px 9px 6px; border-radius: 12px; color: #fff; text-align: left;
    background: linear-gradient(135deg, #0F172A, #312E81); box-shadow: 0 8px 18px rgba(30,27,75,.24);
    font-variant-numeric: tabular-nums;
}
.intel-ai-percent strong { font-size: 21px; line-height: 1; font-weight: 950; letter-spacing: -.05em; }
.intel-ai-percent > span { margin-left: 2px; color: #67E8F9; font-size: 9px; font-weight: 900; }
.intel-ai-percent small { grid-column: 1 / -1; margin-top: 3px; color: #A5B4FC; font-size: 6.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.intel-process-card > h3 { margin: 4px 0 7px; color: #1E1B4B; font-size: 20px; font-weight: 900; }
.intel-process-card > p { margin: 0 auto 16px; max-width: 450px; color: #64748B; font-size: 12.5px; line-height: 1.5; }
.intel-process-progress {
    position: relative; height: 11px; border-radius: 999px; background: #EEF2FF; overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(30,27,75,.08);
}
.intel-process-progress > i {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, #06B6D4, #6366F1 55%, #A855F7);
    transition: width .5s cubic-bezier(.22,1,.36,1); box-shadow: 0 0 16px rgba(99,102,241,.4);
}
.intel-process-scan {
    position: absolute; inset: 0 auto 0 -30%; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    animation: intelScan 1.7s linear infinite;
}
.intel-process-steps { display: grid; gap: 7px; margin-top: 16px; text-align: left; }
.intel-process-steps.is-ten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 9px; }
.intel-process-step {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px;
    min-height: 39px; padding: 8px 10px; border-radius: 11px; color: #94A3B8; background: #F8FAFC;
    font-size: 11.5px; border: 1px solid #F1F5F9; transition: color .3s, background .3s, border-color .3s, transform .3s, box-shadow .3s;
    animation: intelStepReveal .35s calc(var(--step-delay, 0ms)) both;
}
.intel-process-step b {
    position: relative; z-index: 1; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px;
    background: #E2E8F0; color: #64748B; font-size: 8.5px; transition: .3s ease;
}
.intel-process-step > span { position: relative; z-index: 1; font-weight: 650; }
.intel-process-step em { position: relative; z-index: 1; font-style: normal; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.intel-process-step.is-done { color: #047857; background: linear-gradient(90deg, #ECFDF5, #F0FDF4); border-color: #A7F3D0; }
.intel-process-step.is-done b { color: #fff; background: #10B981; transform: rotateY(360deg); }
.intel-process-step.is-active {
    color: #3730A3; background: linear-gradient(100deg, #EEF2FF, #F5F3FF); border-color: #A5B4FC;
    transform: translateX(4px); box-shadow: 0 7px 18px rgba(79,70,229,.1);
}
.intel-process-step.is-active::after {
    content: ""; position: absolute; inset: 0 auto 0 -35%; width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: intelStepScan 1.7s linear infinite;
}
.intel-process-step.is-active b { color: #fff; background: linear-gradient(135deg, #6366F1, #8B5CF6); animation: intelPulse 1.3s ease-in-out infinite; }
.intel-process-step.is-active em { color: #6366F1; }
.intel-process-step.is-stopped { color: #991B1B; background: #FEF2F2; border-color: #FECACA; }
.intel-process-step.is-stopped b { color: #fff; background: #EF4444; }
.intel-process-step.is-stopped em { color: #DC2626; }
.intel-process-modal.is-failed .intel-ai-robot, .intel-process-modal.is-failed .intel-ai-search-beam { animation-play-state: paused; }
.intel-process-result {
    margin-top: 16px; padding: 13px 14px; border-radius: 13px; text-align: left;
    color: #312E81; background: linear-gradient(135deg, #EEF2FF, #F5F3FF); border: 1px solid #C7D2FE;
    font-size: 11.5px; line-height: 1.55; animation: intelRise .35s ease both;
}
.intel-process-result strong { display: block; margin-bottom: 4px; color: #4338CA; }
.intel-process-result.is-error { color: #991B1B; background: #FEF2F2; border-color: #FECACA; }
.intel-process-result.is-error strong { color: #B91C1C; }
.intel-process-result small { color: #64748B; }
.intel-process-found { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(99,102,241,.16); color: #475569; }
.intel-process-found b { display: inline; color: #312E81; }
.intel-process-close { margin-top: 14px; width: 100%; justify-content: center; }
@keyframes intelRobotFloat { 0%,100% { transform: translateY(1px); } 50% { transform: translateY(-6px); } }
@keyframes intelRobotShadow { 0%,100% { transform: scaleX(.88); opacity: .55; } 50% { transform: scaleX(1); opacity: .28; } }
@keyframes intelRobotSignal { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.4); } 100% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } }
@keyframes intelRobotBlink { 0%,44%,50%,100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes intelRobotScan { from { transform: translateY(0); } to { transform: translateY(25px); } }
@keyframes intelRobotLed { 0%,100% { opacity: .3; } 50% { opacity: 1; box-shadow: 0 0 7px #22D3EE; } }
@keyframes intelRobotArmLeft { 0%,100% { transform: rotate(17deg); } 50% { transform: rotate(31deg); } }
@keyframes intelRobotArmRight { 0%,100% { transform: rotate(-30deg); } 50% { transform: rotate(-43deg); } }
@keyframes intelSearchBeam { 0%,100% { opacity: .18; transform: rotate(-4deg); } 50% { opacity: .6; transform: rotate(5deg); } }
@keyframes intelDataOrbit { 0%,100% { transform: translateY(0) scale(.96); opacity: .62; } 50% { transform: translateY(-7px) scale(1); opacity: 1; } }
@keyframes intelStepReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes intelStepScan { to { left: 115%; } }
@keyframes intelScan { to { left: 100%; } }
.intel-live-orb {
    position: absolute; width: 140px; height: 140px; right: -20px; top: -40px; border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,.45), transparent 70%);
    animation: intelPulse 2.4s ease-in-out infinite;
}
.intel-live-copy { position: relative; z-index: 1; display: grid; gap: 6px; }
.intel-live-copy strong { font-size: 16px; color: #fff; }
.intel-live-copy p { margin: 0; font-size: 12.5px; color: #C7D2FE; }
.intel-live-bar {
    height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px;
}
.intel-live-bar > i {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, #22D3EE, #818CF8, #C084FC);
    transition: width .45s ease; box-shadow: 0 0 16px rgba(129,140,248,.55);
}
.intel-phase-track { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.intel-phase-track span {
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px; color: #94A3B8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.intel-phase-track span.is-on { color: #E0E7FF; border-color: rgba(165,180,252,.35); background: rgba(99,102,241,.25); }
.intel-phase-track span.is-current { color: #fff; box-shadow: 0 0 0 2px rgba(129,140,248,.35); animation: intelPulse 1.6s ease-in-out infinite; }
.intel-kpi-board {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px;
}
.intel-kpi {
    border: 1px solid #E4E2F0; border-radius: 16px; background: #fff; padding: 12px 13px;
    display: grid; gap: 4px; box-shadow: 0 6px 16px rgba(30,27,75,.04);
    transition: transform .2s, box-shadow .2s;
}
.intel-kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30,27,75,.08); }
.intel-kpi-ico {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px;
    background: linear-gradient(135deg, #6366F1, #A855F7); color: #fff; font-size: 12px;
}
.intel-kpi small { color: #64748B; font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.intel-kpi strong { font-size: 24px; color: #1E1B4B; font-weight: 900; letter-spacing: -.03em; }
.intel-charts-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px;
    align-items: stretch;
}
.intel-chart-panel {
    min-height: 220px; max-height: 280px;
    display: flex; flex-direction: column; overflow: hidden;
}
.intel-chart-panel .intel-section-title { flex: 0 0 auto; margin-bottom: 8px; }
.intel-chart-panel .intel-donut-wrap,
.intel-chart-panel .intel-bar-chart {
    flex: 1 1 auto; min-height: 0;
}
.intel-chart-scroll {
    overflow-x: hidden; overflow-y: auto;
    padding-right: 4px; scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent;
}
.intel-chart-scroll::-webkit-scrollbar { width: 6px; }
.intel-chart-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1; border-radius: 999px;
}
.intel-chart-scroll::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
.intel-donut-wrap { display: grid; justify-items: center; align-content: start; gap: 10px; }
.intel-donut {
    width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
    animation: intelSpinIn .7s ease;
}
.intel-donut-hole {
    width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center;
}
.intel-donut-hole strong { font-size: 22px; color: #1E1B4B; line-height: 1; }
.intel-donut-hole small { color: #94A3B8; font-size: 10px; }
.intel-donut-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 11px; color: #64748B; }
.intel-donut-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 4px; }
.intel-donut-legend i.high { background: #DC2626; }
.intel-donut-legend i.medium { background: #D97706; }
.intel-donut-legend i.low { background: #059669; }
.intel-bar-chart { display: grid; gap: 8px; align-content: start; }
.intel-hbar {
    display: grid; grid-template-columns: minmax(70px, 110px) 1fr auto; gap: 8px; align-items: center;
    font-size: 11px; color: #475569;
}
.intel-hbar > span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.intel-hbar > div { height: 8px; border-radius: 999px; background: #EEF2FF; overflow: hidden; }
.intel-hbar > div > i {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, #6366F1, #22D3EE); transition: width .8s ease;
}
.intel-hbar em { font-style: normal; font-weight: 800; color: #1E1B4B; min-width: 24px; text-align: right; }
.intel-mini-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.intel-mini-meters > div {
    border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px; background: #F8FAFC; display: grid; gap: 5px;
}
.intel-mini-meters span { font-size: 9px; font-weight: 850; color: #64748B; text-transform: uppercase; letter-spacing: .05em; }
.intel-mini-meters b {
    display: block; height: 6px; border-radius: 999px; background: #E2E8F0; position: relative; overflow: hidden;
}
.intel-mini-meters b::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%);
    background: linear-gradient(90deg, #818CF8, #C084FC); border-radius: inherit; transition: width .7s ease;
}
.intel-mini-meters em { font-style: normal; font-size: 12px; font-weight: 900; color: #1E1B4B; }
.intel-chip.is-ads { background: #F5F3FF; border-color: #DDD6FE; color: #6D28D9; }
.intel-ads-note { margin: 6px 0 0; font-size: 10.5px; color: #94A3B8; line-height: 1.4; }
.intel-anim-in { animation: intelRise .45s ease both; }
.ox-profile-bar > i { transition: width .8s ease; }
@keyframes intelPulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.08); opacity: 1; }
}
@keyframes intelRise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes intelSpinIn {
    from { transform: scale(.85); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@media (max-width: 1100px) {
    .intel-kpi-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intel-charts-row { grid-template-columns: 1fr; }
    .intel-chart-panel { max-height: none; }
    .intel-chart-scroll { max-height: 240px; }
}
@media (max-width: 640px) {
    .intel-kpi-board { grid-template-columns: 1fr 1fr; }
    .intel-mini-meters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .intel-live-orb, .intel-phase-track span.is-current, .intel-anim-in, .intel-donut,
    .intel-ai-robot, .intel-ai-lab::before, .intel-robot-antenna i, .intel-robot-eye, .intel-robot-scanline,
    .intel-robot-body i, .intel-robot-arm, .intel-ai-search-beam, .intel-ai-orbit, .intel-process-step,
    .intel-process-step::after, .intel-process-scan { animation: none !important; }
    .intel-live-bar > i, .intel-hbar > div > i, .intel-mini-meters b::after, .ox-profile-bar > i { transition: none !important; }
}
.intel-badge {
    font-size: 10px; font-weight: 750; padding: 2px 7px; border-radius: 999px;
    background: #EEF2FF; color: #4338CA; border: 1px solid #C7D2FE;
}
.intel-summary {
    margin: 2px 0 0; color: #E0E7FF; font-size: 13.5px; line-height: 1.65;
}
.intel-eyebrow { display: block; color: #6366F1; font-size: 9.5px; font-weight: 900; letter-spacing: .13em; margin-bottom: 3px; }
.intel-executive {
    display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start;
    margin: 4px 0 14px; padding: 17px 18px; border-radius: 16px;
    background: radial-gradient(circle at 95% 0, rgba(99,102,241,.35), transparent 38%), linear-gradient(135deg, #171438, #28225F);
    border: 1px solid rgba(165,180,252,.25); box-shadow: 0 12px 28px rgba(30,27,75,.16);
}
.intel-executive-icon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, #818CF8, #C084FC); color: #fff; font-size: 18px;
    box-shadow: 0 6px 14px rgba(129,140,248,.32);
}
.intel-executive small { color: #A5B4FC; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.intel-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.intel-card { border-radius: 16px; padding: 14px 15px; border: 1px solid transparent; min-height: 130px; position: relative; overflow: hidden; }
.intel-card::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -30px; top: -35px; background: currentColor; opacity: .045; }
.intel-card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.intel-card-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #fff; font-weight: 900; font-size: 13px; }
.intel-card h4 { margin: 0; font-size: 13px; font-weight: 850; }
.intel-card ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.intel-card li { font-size: 12.5px; line-height: 1.48; padding-inline-start: 15px; position: relative; }
.intel-card li:not(.muted)::before { content: ""; position: absolute; inset-inline-start: 1px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .65; }
.intel-card li.muted { list-style: none; margin-inline-start: -16px; color: #94a3b8; }
.intel-card-plus { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.intel-card-minus { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.intel-card-opp { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.intel-card-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.intel-card-plus .intel-card-icon { background: #059669; }
.intel-card-minus .intel-card-icon { background: #DC2626; }
.intel-card-opp .intel-card-icon { background: #2563EB; }
.intel-card-warn .intel-card-icon { background: #D97706; }
.intel-profiles-wrap, .intel-actions-wrap { margin-top: 20px; }
.intel-section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.intel-section-title h4 { margin: 0; color: #1E1B4B; font-size: 15px; font-weight: 850; }
.intel-section-note { color: #94A3B8; font-size: 10.5px; }
.intel-profile-cards { display: grid; gap: 12px; }
.intel-rival-profile {
    overflow: hidden; border: 1px solid #E4E2F0; border-radius: 17px; background: #fff;
    box-shadow: 0 6px 18px rgba(30,27,75,.055); transition: transform .2s, box-shadow .2s;
}
.intel-rival-profile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,27,75,.1); }
.intel-rival-head {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 14px 16px; background: linear-gradient(120deg, #F8FAFF, #F5F3FF); border-bottom: 1px solid #EDE9FE;
}
.intel-rival-rank { font-size: 21px; line-height: 1; color: #C7D2FE; font-weight: 900; letter-spacing: -.05em; }
.intel-rival-head h5 { margin: 0 0 3px; color: #1E1B4B; font-size: 14.5px; font-weight: 900; }
.intel-rival-head p { margin: 0; color: #64748B; font-size: 11.5px; line-height: 1.4; }
.intel-threat { padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.intel-threat.high { color: #B91C1C; background: #FEE2E2; border: 1px solid #FECACA; }
.intel-threat.medium { color: #B45309; background: #FEF3C7; border: 1px solid #FDE68A; }
.intel-threat.low { color: #047857; background: #D1FAE5; border: 1px solid #A7F3D0; }
.intel-rival-body { display: grid; gap: 13px; padding: 15px 16px 16px; }
.intel-rival-body section h6 { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; color: #475569; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.intel-rival-body section h6 span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: #EEF2FF; color: #4F46E5; font-size: 11px; }
.intel-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.intel-chip { padding: 4px 8px; border: 1px solid #E2E8F0; border-radius: 8px; background: #F8FAFC; color: #475569; font-size: 10.5px; line-height: 1.25; }
.intel-chip.is-positive { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }
.intel-chip.is-negative { color: #B91C1C; background: #FEF2F2; border-color: #FECACA; }
.intel-no-data { color: #94A3B8; font-size: 10.5px; font-style: italic; }
.intel-social-row { display: flex; flex-wrap: wrap; gap: 6px; }
.intel-social { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px 4px 4px; border-radius: 8px; background: #F8FAFC; border: 1px solid #E2E8F0; color: #475569; font-size: 10px; text-decoration: none; }
.intel-social b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #6366F1, #A855F7); font-size: 9px; }
a.intel-social:hover { border-color: #A5B4FC; color: #4338CA; background: #EEF2FF; }
.intel-rival-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.intel-rival-columns > section { padding: 10px; border-radius: 11px; }
.intel-rival-columns .is-strong { background: #F0FDF8; border: 1px solid #D1FAE5; }
.intel-rival-columns .is-gap { background: #FFF7F7; border: 1px solid #FEE2E2; }
.intel-site-review { padding: 10px 11px; border-radius: 11px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.intel-site-review p { margin: 0; color: #475569; font-size: 11.5px; line-height: 1.55; }
.intel-counter-move {
    display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 11px 12px;
    border-radius: 12px; background: linear-gradient(125deg, #312E81, #4338CA); color: #fff;
}
.intel-counter-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: rgba(255,255,255,.14); }
.intel-counter-move small { color: #C7D2FE; font-size: 8.5px; font-weight: 900; letter-spacing: .12em; }
.intel-counter-move p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.5; color: #EEF2FF; }
.intel-actions { display: grid; gap: 8px; }
.intel-action {
    border: 1px solid #E4E2F0; border-radius: 14px; padding: 11px 13px; background: #fff;
    display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
}
.intel-action-num { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #EEF2FF; color: #4F46E5; font-size: 11px; font-weight: 900; }
.intel-action-copy { display: grid; gap: 5px; min-width: 0; }
.intel-action-copy > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.intel-action .prio {
    display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
    padding: 2px 6px; border-radius: 999px; width: fit-content;
}
.intel-action .prio.high { background: #FEE2E2; color: #B91C1C; }
.intel-action .prio.medium { background: #FEF3C7; color: #B45309; }
.intel-action .prio.low { background: #E2E8F0; color: #475569; }
.intel-action strong { font-size: 13px; color: #1e1b4b; }
.intel-action span { font-size: 12px; color: #64748b; line-height: 1.45; }
@media (max-width: 1100px) {
    .intel-grid { grid-template-columns: 1fr; }
    .intel-right { grid-template-columns: 1fr; }
    .intel-profile-form { grid-template-columns: 1fr; }
    .intel-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .intel-process-steps.is-ten { grid-template-columns: 1fr; }
    .intel-profile-head { align-items: flex-start; flex-direction: column; padding: 15px; }
    .intel-profile-actions { width: 100%; justify-content: stretch; }
    .intel-profile-actions > button { flex: 1 1 100%; }
    .intel-profile-meter { margin: 12px 15px 0; grid-template-columns: 1fr auto; }
    .intel-profile-meter-track { grid-column: 1 / -1; grid-row: 2; }
    .intel-profile-form { padding: 12px 15px 16px; }
    .intel-field-grid { grid-template-columns: 1fr; }
    .intel-field.is-wide { grid-column: auto; }
    .intel-action-btn small { white-space: normal; }
    .intel-manual-add { grid-template-columns: 1fr; }
    .intel-rival-head { grid-template-columns: auto 1fr; }
    .intel-threat { grid-column: 2; width: fit-content; }
    .intel-rival-columns { grid-template-columns: 1fr; }
    .intel-section-note { display: none; }
}
.ox-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ox-offer-main {
    min-height: 78px !important;
    font-size: 13.5px;
    line-height: 1.5;
}
.ox-subject { font-weight: 650; }
.ox-presets { display: grid; gap: 8px; }
.ox-preset {
    display: grid; gap: 2px; text-align: left;
    border: 1px solid #E4E2F0; background: #fff; color: #312E81;
    border-radius: 12px; padding: 10px 12px;
    font-size: 12px; font-weight: 750;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.ox-preset small {
    font-size: 10.5px; font-weight: 600; color: #64748B; line-height: 1.35;
}
.ox-preset:hover, .ox-preset.is-on {
    background: linear-gradient(135deg, #F5F3FF, #EEF2FF);
    border-color: #A5B4FC;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(83, 74, 183, 0.12);
}
.ox-preset.is-on { outline: 2px solid rgba(83, 74, 183, 0.18); }
.ox-details > summary,
.ox-more > summary {
    list-style: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 13px; font-weight: 750; color: #1E1B4B;
    padding: 2px 0;
    user-select: none;
}
.ox-details > summary::-webkit-details-marker,
.ox-more > summary::-webkit-details-marker { display: none; }
.ox-details > summary::after,
.ox-more > summary::after {
    content: '▾';
    color: #94A3B8; font-size: 12px;
    transition: transform .2s;
}
.ox-details[open] > summary::after,
.ox-more[open] > summary::after { transform: rotate(180deg); }
.ox-details[open] > summary { margin-bottom: 10px; }
.ox-more {
    margin-top: 12px;
    padding: 10px 12px;
    background: #F8FAFC;
    border: 1px dashed #D4D4F0;
    border-radius: 12px;
}
.ox-more-body { margin-top: 10px; }
.ox-token-label {
    font-size: 10px; font-weight: 750; color: #94A3B8;
    text-transform: uppercase; letter-spacing: .04em;
}
.ox-token {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ox-body { min-height: 190px !important; font-size: 13.5px; line-height: 1.6; }
.ox-foot-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.ox-foot-secondary { display: flex; gap: 8px; flex-wrap: wrap; }
.ox-btn-soft { padding: 8px 12px !important; font-size: 12px !important; }
.btn-ox-ai {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid #C4B5FD;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    color: #4338CA;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13px; font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(83, 74, 183, 0.1);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-ox-ai:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(83, 74, 183, 0.16); }
.btn-ox-ai:disabled { opacity: .65; cursor: wait; transform: none; }
.ox-ai-spark { font-size: 14px; }
.btn-ox-send {
    padding: 11px 18px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(83, 74, 183, 0.28);
}
.btn-ox-outlook {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #93C5FD;
    background: linear-gradient(135deg, #2563EB 0%, #0A66C2 55%, #0369A1 100%);
    color: #fff;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-ox-outlook:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.36);
    color: #fff;
}
.btn-ox-outlook:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}
.btn-ox-outlook .ox-outlook-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}
.btn-ox-outlook .ox-outlook-ico svg {
    display: block;
}
.ox-needs {
    background: linear-gradient(135deg, #ECFDF5, #EEF2FF);
    border: 1px solid #A7F3D0;
}
.ox-needs strong { color: #047857; }
.ox-needs p { color: #064E3B; }
.ox-html-preview { height: 340px; border-radius: 16px; }

/* Mail Stüdyosu — tek temiz layout (çakışmaları ezer) */
.outreach-modal.outreach-studio {
    width: min(1360px, 96vw) !important;
    height: min(900px, 93vh) !important;
    max-height: 93vh !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
}
.outreach-modal.outreach-studio .ox-head {
    flex: 0 0 auto !important;
    z-index: 3;
    align-items: center;
    padding: 14px 18px !important;
}
.outreach-modal.outreach-studio .ox-foot {
    flex: 0 0 auto !important;
    padding: 14px 18px !important;
    z-index: 3;
    background: #fff !important;
}
.outreach-modal.outreach-studio .ox-grid.ox-layout-split {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 340px minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-grid.ox-layout-split,
.outreach-modal.outreach-studio.is-sms-channel .ox-grid.ox-layout-split {
    grid-template-columns: 360px minmax(0, 1fr) !important;
}
.outreach-modal.outreach-studio .ox-layout-split .ox-side,
.outreach-modal.outreach-studio .ox-layout-split .ox-main {
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: auto !important;
    overscroll-behavior: contain !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-self: stretch !important;
    position: relative !important;
    contain: layout style !important;
}
.outreach-modal.outreach-studio .ox-layout-split .ox-side {
    background: #F4F6FB !important;
    border-inline-end: 1px solid #E2E8F0 !important;
    padding: 16px 14px !important;
    box-shadow: none !important;
}
.outreach-modal.outreach-studio .ox-layout-split .ox-main {
    background: #FAFBFE !important;
    padding: 16px 18px 20px !important;
}
.outreach-modal.outreach-studio .ox-side,
.outreach-modal.outreach-studio .ox-main {
    max-height: none !important;
    padding-right: 0 !important;
}
.outreach-modal.outreach-studio .ox-live-bar[hidden],
.outreach-modal.outreach-studio .ox-seller-store[hidden] {
    display: none !important;
}
.outreach-modal.outreach-studio .ox-card {
    flex-shrink: 0;
    position: relative;
    z-index: 0;
    overflow: visible;
}
.outreach-modal.outreach-studio .ox-card-who {
    padding: 14px !important;
}
.outreach-modal.outreach-studio .ox-who-hint { margin: 0 0 10px; }
.outreach-modal.outreach-studio .ox-sms-sender-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}
.outreach-modal.outreach-studio .ox-msg-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 18px !important;
}
.outreach-modal.outreach-studio .ox-msg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}
.outreach-modal.outreach-studio .ox-tone-wrap {
    flex: 0 1 220px;
    min-width: 160px;
}
.outreach-modal.outreach-studio .ox-tone-wrap .field-label { margin-top: 0; }
.outreach-modal.outreach-studio .ox-msg-toolbar .ox-token-row {
    flex: 1 1 auto;
    margin: 0;
    align-items: center;
}
.outreach-modal.outreach-studio .ox-compose-pane,
.outreach-modal.outreach-studio .ox-compose-stack,
.outreach-modal.outreach-studio .ox-compose-grid,
.outreach-modal.outreach-studio #oxTextPane:not([hidden]) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}
.outreach-modal.outreach-studio #oxTextPane[hidden],
.outreach-modal.outreach-studio #oxHtmlPane[hidden] {
    display: none !important;
}
.outreach-modal.outreach-studio #oxHtmlPane:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}
.outreach-modal.outreach-studio .ox-compose-editor,
.outreach-modal.outreach-studio .ox-compose-preview,
.outreach-modal.outreach-studio .ox-qa-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
}
.outreach-modal.outreach-studio .ox-review-col {
    display: contents !important;
}
.outreach-modal.outreach-studio .ox-compose-editor .ox-subject {
    width: 100% !important;
    margin-bottom: 0 !important;
}
.outreach-modal.outreach-studio .ox-field-head .field-label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.outreach-modal.outreach-studio .ox-compose-editor > .ox-field-head:first-child {
    margin-top: 0;
}
.outreach-modal.outreach-studio .ox-compose-editor > .ox-field-head {
    margin-top: 12px;
}
.outreach-modal.outreach-studio textarea.ox-body,
.outreach-modal.outreach-studio .ox-compose-editor .ox-body {
    width: 100% !important;
    min-height: 220px !important;
    max-height: none !important;
    height: auto !important;
    resize: vertical !important;
    flex: none !important;
}
.outreach-modal.outreach-studio .ox-compose-preview {
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    overflow: visible !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}
.outreach-modal.outreach-studio .ox-preview-device {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
    padding: 12px !important;
}
.outreach-modal.outreach-studio .ox-preview-bubble {
    max-height: 160px;
    overflow: auto;
    max-width: 100%;
}
.outreach-modal.outreach-studio .ox-presets {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.outreach-modal.outreach-studio .ox-preset {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    max-width: 100%;
}
.outreach-modal.outreach-studio .ox-preset small {
    display: none;
}
.outreach-modal.outreach-studio .ox-offer-card > summary,
.outreach-modal.outreach-studio .ox-details > summary {
    list-style: none;
    cursor: pointer;
}
.outreach-modal.outreach-studio .ox-offer-body {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.outreach-modal.outreach-studio .ox-offer-main {
    min-height: 72px !important;
    max-height: 140px !important;
}

/* —— Gelişmiş Mail Studio UI —— */
.outreach-modal.outreach-studio .ox-ready-card {
    padding: 14px !important;
    background: linear-gradient(165deg, #FFFFFF 0%, #F5F3FF 100%) !important;
    border: 1px solid #E0E7FF !important;
}
.outreach-modal.outreach-studio .ox-ready-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.outreach-modal.outreach-studio .ox-ready-top strong {
    display: block;
    font-size: 13px;
    color: #1E1B4B;
}
.outreach-modal.outreach-studio .ox-ready-score {
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #4338CA;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
}
.outreach-modal.outreach-studio .ox-ready-score.is-good {
    color: #047857;
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.outreach-modal.outreach-studio .ox-ready-bar {
    height: 7px;
    border-radius: 99px;
    background: #E2E8F0;
    overflow: hidden;
    margin-bottom: 12px;
}
.outreach-modal.outreach-studio .ox-ready-bar > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366F1, #22C55E);
    transition: width .35s ease;
}
.outreach-modal.outreach-studio .ox-ready-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 6px;
}
.outreach-modal.outreach-studio .ox-ready-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 650;
    color: #64748B;
    padding: 6px 8px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}
.outreach-modal.outreach-studio .ox-ready-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
}
.outreach-modal.outreach-studio .ox-ready-list li.is-ok {
    color: #065F46;
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.outreach-modal.outreach-studio .ox-ready-list li.is-ok::before { background: #10B981; }
.outreach-modal.outreach-studio .ox-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.outreach-modal.outreach-studio .ox-stat {
    text-align: center;
    padding: 8px 4px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E8E4F4;
}
.outreach-modal.outreach-studio .ox-stat span {
    display: block;
    font-size: 9px;
    font-weight: 750;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.outreach-modal.outreach-studio .ox-stat strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #1E1B4B;
}
.outreach-modal.outreach-studio .ox-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.outreach-modal.outreach-studio .ox-chip {
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.outreach-modal.outreach-studio .ox-chip:hover {
    border-color: #A5B4FC;
    color: #4338CA;
}
.outreach-modal.outreach-studio .ox-chip.is-on {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border-color: #818CF8;
    color: #3730A3;
    box-shadow: 0 4px 12px rgba(83, 74, 183, 0.12);
}
.outreach-modal.outreach-studio .ox-ai-prompt-bar {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(120deg, #F5F3FF, #EEF2FF);
    border: 1px solid #DDD6FE;
    animation: oxFadeUp .45s ease both;
}
.outreach-modal.outreach-studio .ox-ai-prompt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.outreach-modal.outreach-studio .ox-ai-prompt-bar .field-label { margin-top: 0; margin-bottom: 6px; }
.outreach-modal.outreach-studio .ox-ai-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #818CF8;
    box-shadow: 0 0 0 0 rgba(129, 140, 248, .55);
    animation: oxPulse 1.8s ease-out infinite;
}
.outreach-modal.outreach-studio .ox-ai-prompt-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.outreach-modal.outreach-studio .ox-magic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.outreach-modal.outreach-studio .ox-magic {
    border: 0;
    background: rgba(255,255,255,.85);
    color: #4338CA;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10.5px;
    font-weight: 750;
    cursor: pointer;
    border: 1px solid #C7D2FE;
    transition: transform .15s, background .15s, box-shadow .15s;
}
.outreach-modal.outreach-studio .ox-magic.is-on {
    background: #4338CA;
    color: #fff;
    border-color: #4338CA;
}
.outreach-modal.outreach-studio .ox-preview-modes {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
}
.outreach-modal.outreach-studio .ox-mode-btn {
    border: 0;
    background: transparent;
    color: #64748B;
    font-size: 10px;
    font-weight: 750;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}
.outreach-modal.outreach-studio .ox-mode-btn.is-on {
    background: #fff;
    color: #3730A3;
    box-shadow: 0 2px 8px rgba(83, 74, 183, .12);
}
.outreach-modal.outreach-studio .ox-visual-stage {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    background: #EEF2FF;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    animation: oxFadeUp .4s ease both;
}
.outreach-modal.outreach-studio .ox-visual-stage[hidden] { display: none !important; }
.outreach-modal.outreach-studio .ox-visual-stage.is-phone {
    max-width: 300px;
    margin: 0 auto;
    min-height: 420px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(30, 27, 75, .16);
}
.outreach-modal.outreach-studio .ox-visual-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}
.outreach-modal.outreach-studio .ox-visual-chrome > span {
    width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1;
}
.outreach-modal.outreach-studio .ox-visual-chrome > span:nth-child(1) { background: #F87171; }
.outreach-modal.outreach-studio .ox-visual-chrome > span:nth-child(2) { background: #FBBF24; }
.outreach-modal.outreach-studio .ox-visual-chrome > span:nth-child(3) { background: #34D399; }
.outreach-modal.outreach-studio .ox-visual-chrome > em {
    margin-inline-start: 6px;
    font-style: normal;
    font-size: 10px;
    font-weight: 750;
    color: #64748B;
    flex: 1;
}
.outreach-modal.outreach-studio .ox-visual-card {
    flex: 1 1 auto;
    min-height: 300px;
    max-height: min(48vh, 440px);
    overflow: auto;
    padding: 14px;
    background: linear-gradient(180deg, #EEF2FF 0%, #E0E7FF 100%);
}
.outreach-modal.outreach-studio .ox-visual-card-lg {
    min-height: 420px;
    max-height: min(62vh, 620px);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
}
.outreach-modal.outreach-studio .ox-v-mail {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(30, 27, 75, .12);
    animation: oxFadeUp .35s ease both;
}
.outreach-modal.outreach-studio .ox-v-hero {
    background: linear-gradient(135deg, #534AB7, #6366F1);
    color: #fff;
    padding: 22px 22px 18px;
}
.outreach-modal.outreach-studio .ox-v-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .92;
}
.outreach-modal.outreach-studio .ox-v-title {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
}
.outreach-modal.outreach-studio .ox-v-sub {
    margin: 8px 0 0;
    font-size: 12px;
    opacity: .92;
}
.outreach-modal.outreach-studio .ox-v-body {
    padding: 20px 22px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}
.outreach-modal.outreach-studio .ox-v-body p { margin: 0 0 12px; }
.outreach-modal.outreach-studio .ox-v-empty { color: #94A3B8; font-style: italic; }
.outreach-modal.outreach-studio .ox-v-needs {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
}
.outreach-modal.outreach-studio .ox-v-needs span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4338CA;
    margin-bottom: 4px;
}
.outreach-modal.outreach-studio .ox-v-needs p { margin: 0; font-size: 13px; color: #312E81; }
.outreach-modal.outreach-studio .ox-v-bullets {
    margin: 0 0 14px;
    padding: 0 0 0 18px;
}
.outreach-modal.outreach-studio .ox-v-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #534AB7;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}
.outreach-modal.outreach-studio .ox-v-attach {
    display: block;
    margin: 0 0 16px;
    text-decoration: none;
    color: inherit;
}
.outreach-modal.outreach-studio .ox-v-attach-image {
    margin: 4px 0 16px;
}
.outreach-modal.outreach-studio .ox-v-attach-image img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}
.outreach-modal.outreach-studio .ox-v-attach-image figcaption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #64748B;
}
.outreach-modal.outreach-studio .ox-v-attach-image figcaption strong {
    color: #334155;
    font-weight: 700;
}
.outreach-modal.outreach-studio .ox-v-attach-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    transition: border-color .15s, box-shadow .15s;
}
.outreach-modal.outreach-studio .ox-v-attach-file:hover {
    border-color: #C7D2FE;
    box-shadow: 0 8px 20px rgba(83, 74, 183, .08);
}
.outreach-modal.outreach-studio .ox-v-file-badge {
    flex: 0 0 auto;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    background: #534AB7;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.outreach-modal.outreach-studio .ox-v-file-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.outreach-modal.outreach-studio .ox-v-file-meta strong {
    font-size: 13px;
    color: #1E1B4B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.outreach-modal.outreach-studio .ox-v-file-meta em {
    font-style: normal;
    font-size: 11px;
    color: #64748B;
}
.outreach-modal.outreach-studio .ox-attach-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed #C7D2FE;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F3FF 100%);
}
.outreach-modal.outreach-studio .ox-attach-bar-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.outreach-modal.outreach-studio .ox-attach-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #534AB7;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.outreach-modal.outreach-studio .ox-attach-pick:hover { filter: brightness(1.06); }
.outreach-modal.outreach-studio .ox-attach-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.outreach-modal.outreach-studio .ox-attach-clear {
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #B91C1C;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.outreach-modal.outreach-studio .ox-attach-live {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #E2E8F0;
}
.outreach-modal.outreach-studio .ox-attach-live[hidden] { display: none !important; }
.outreach-modal.outreach-studio .ox-attach-live-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #EEF2FF;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.outreach-modal.outreach-studio .ox-attach-live-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.outreach-modal.outreach-studio .ox-attach-ext {
    font-size: 11px;
    font-weight: 800;
    color: #4338CA;
}
.outreach-modal.outreach-studio .ox-attach-live-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.outreach-modal.outreach-studio .ox-attach-live-meta strong {
    font-size: 13px;
    color: #1E1B4B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.outreach-modal.outreach-studio .ox-attach-live-meta span {
    font-size: 11px;
    color: #64748B;
}
.outreach-modal.outreach-studio .ox-sign-bar {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #fff;
}
.outreach-modal.outreach-studio .ox-sign-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.outreach-modal.outreach-studio .ox-sign-head strong {
    display: block;
    font-size: 13px;
    color: #1E1B4B;
}
.outreach-modal.outreach-studio .ox-sign-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.outreach-modal.outreach-studio .ox-sign-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
}
.outreach-modal.outreach-studio .ox-sign-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.outreach-modal.outreach-studio .ox-sign-input {
    min-height: 88px !important;
    resize: vertical;
    font-size: 13px;
    line-height: 1.5;
}
.outreach-modal.outreach-studio .ox-v-sign {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}
.outreach-modal.outreach-studio .ox-v-sign-line {
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    margin: 0 0 2px;
}
.outreach-modal.outreach-studio .ox-v-sign-line.is-lead {
    font-weight: 700;
    color: #1E1B4B;
    font-size: 14px;
}
.outreach-modal.outreach-studio .ox-v-sign-gap {
    height: 8px;
}
.outreach-modal.outreach-studio .ox-v-foot {
    padding: 12px 22px 16px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    font-size: 11px;
    color: #64748B;
}
.outreach-modal.outreach-studio .ox-live-html {
    width: 100%;
    flex: 1 1 auto;
    min-height: 300px;
    height: min(42vh, 380px);
    border: 0;
    background: #EEF2FF;
    display: block;
}
.outreach-modal.outreach-studio .ox-live-html[hidden] { display: none !important; }
.outreach-modal.outreach-studio .ox-visual-stage.is-phone .ox-live-html {
    min-height: 380px;
    height: min(52vh, 460px);
}
.outreach-modal.outreach-studio .ox-mail-frame[hidden] { display: none !important; }
.outreach-modal.outreach-studio .ox-msg-tabs { display: inline-flex !important; }
.outreach-modal.outreach-studio .ox-msg-tabs[hidden] { display: none !important; }
.outreach-modal.outreach-studio .ox-msg-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding-bottom: 8px;
}
.outreach-modal.outreach-studio .ox-html-pane {
    margin-top: 8px;
    min-height: 420px;
}
.outreach-modal.outreach-studio .ox-html-preview {
    width: 100%;
    height: min(36vh, 320px) !important;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #EEF2FF;
}
.outreach-modal.outreach-studio .ox-html-preview[hidden],
.outreach-modal.outreach-studio #oxHtmlPreview[hidden],
.outreach-modal.outreach-studio .ox-live-html[hidden] {
    display: none !important;
}
.outreach-modal.outreach-studio #oxHtmlVisualCard {
    display: block !important;
}
.outreach-modal.outreach-studio #oxHtmlPane .ox-visual-card-lg {
    max-height: none;
    min-height: 420px;
}
.outreach-modal.outreach-studio .ox-mail-frame.is-phone {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(30, 27, 75, .14);
}
.outreach-modal.outreach-studio .ox-mail-frame.is-refresh {
    animation: oxPreviewPop .45s ease;
}
.outreach-modal.outreach-studio .ox-mail-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}
.outreach-modal.outreach-studio .ox-mail-chrome > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
}
.outreach-modal.outreach-studio .ox-mail-chrome > span:nth-child(1) { background: #F87171; }
.outreach-modal.outreach-studio .ox-mail-chrome > span:nth-child(2) { background: #FBBF24; }
.outreach-modal.outreach-studio .ox-mail-chrome > span:nth-child(3) { background: #34D399; }
.outreach-modal.outreach-studio .ox-mail-chrome > em {
    margin-inline-start: 6px;
    font-style: normal;
    font-size: 10px;
    font-weight: 750;
    color: #64748B;
    flex: 1;
}
.outreach-modal.outreach-studio .ox-mail-live {
    font-size: 9px;
    font-weight: 800;
    color: #059669;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    padding: 2px 7px;
    animation: oxPulseSoft 2s ease-in-out infinite;
}
.outreach-modal.outreach-studio .ox-inbox-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #F1F5F9;
    background: linear-gradient(180deg, #FAFBFF, #fff);
}
.outreach-modal.outreach-studio .ox-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    box-shadow: 0 8px 16px rgba(99, 102, 241, .25);
}
.outreach-modal.outreach-studio .ox-inbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.outreach-modal.outreach-studio .ox-inbox-top strong {
    font-size: 12px;
    color: #1E1B4B;
}
.outreach-modal.outreach-studio .ox-inbox-top time {
    font-size: 10px;
    font-weight: 700;
    color: #94A3B8;
}
.outreach-modal.outreach-studio .ox-inbox-sub {
    font-size: 10px;
    color: #94A3B8;
    font-weight: 600;
    margin-top: 1px;
}
.outreach-modal.outreach-studio .ox-inbox-snippet {
    margin-top: 3px;
    font-size: 11px;
    color: #475569;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.outreach-modal.outreach-studio .ox-preview-bubble {
    max-height: 160px;
    overflow: auto;
    max-width: 100%;
}
.outreach-modal.outreach-studio .ox-preview-bubble.is-typing {
    animation: none;
}
.outreach-modal.outreach-studio .ox-coach {
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    color: #4338CA;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}
.outreach-modal.outreach-studio .ox-qa-grade.is-pop {
    animation: none;
}
.outreach-modal.outreach-studio .ox-mail-live,
.outreach-modal.outreach-studio .ox-wa-chat-live,
.outreach-modal.outreach-studio .ox-ai-pulse,
.outreach-modal.outreach-studio .btn-ox-ai .ox-ai-spark {
    animation: none !important;
}
.outreach-modal.outreach-studio .ox-wa-tpl-card:hover:not(:disabled) {
    transform: none;
}
.outreach-modal.outreach-studio .ox-ready-card { animation-delay: .04s; }
.outreach-modal.outreach-studio .ox-goal-card { animation-delay: .08s; }
.outreach-modal.outreach-studio .ox-msg-card { animation-delay: .06s; }
.outreach-modal.outreach-studio.is-ai-writing .ox-ai-mini,
.outreach-modal.outreach-studio.is-ai-writing .btn-ox-ai {
    animation: oxAiBtnPulse 1.1s ease-in-out infinite;
}
.ox-sent-alert {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: oxSentFadeIn .22s ease both;
}
.ox-sent-alert[hidden] { display: none !important; }
.ox-sent-alert-card {
    width: min(380px, 94vw);
    text-align: center;
    padding: 28px 24px 22px;
    border-radius: 22px;
    background: linear-gradient(165deg, #ECFDF5 0%, #fff 42%, #F8FAFC 100%);
    border: 1px solid #A7F3D0;
    box-shadow: 0 24px 60px rgba(5, 150, 105, .22);
    animation: oxSentPop .35s cubic-bezier(.22, 1, .36, 1) both;
}
.ox-sent-alert-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #10B981, #059669);
    box-shadow: 0 10px 24px rgba(5, 150, 105, .35);
}
.ox-sent-alert.is-partial .ox-sent-alert-ico {
    background: linear-gradient(145deg, #F59E0B, #D97706);
    box-shadow: 0 10px 24px rgba(217, 119, 6, .3);
}
.ox-sent-alert.is-fail .ox-sent-alert-ico {
    background: linear-gradient(145deg, #EF4444, #DC2626);
    box-shadow: 0 10px 24px rgba(220, 38, 38, .3);
}
.ox-sent-alert-card strong {
    display: block;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.02em;
    color: #065F46;
}
.ox-sent-alert.is-partial .ox-sent-alert-card strong { color: #92400E; }
.ox-sent-alert.is-fail .ox-sent-alert-card strong { color: #991B1B; }
.ox-sent-alert-card p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #64748B;
    font-weight: 600;
}
.ox-sent-alert-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.ox-sent-alert-stats[hidden] { display: none !important; }
.ox-sent-alert-stats span {
    font-size: 12px;
    font-weight: 750;
    padding: 6px 10px;
    border-radius: 999px;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}
.ox-sent-alert-stats #oxSentAlertFail {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}
.ox-sent-alert-btn {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #059669, #10B981);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(5, 150, 105, .28);
}
.ox-sent-alert-btn:hover { filter: brightness(1.04); }

/* Toplu WhatsApp gönderim progress */
.ox-send-progress {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: oxSentFadeIn .22s ease both;
}
.ox-send-progress[hidden] { display: none !important; }
.ox-send-progress-card {
    width: min(360px, 94vw);
    text-align: center;
    padding: 28px 24px 22px;
    border-radius: 22px;
    background: linear-gradient(165deg, #ECFDF5 0%, #fff 40%, #F8FAFC 100%);
    border: 1px solid #A7F3D0;
    box-shadow: 0 24px 60px rgba(5, 150, 105, .22);
    animation: oxSentPop .35s cubic-bezier(.22, 1, .36, 1) both;
}
.ox-send-progress-ring {
    --p: 0;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle closest-side, #fff 72%, transparent 73%),
        conic-gradient(#10B981 calc(var(--p) * 1%), #E2E8F0 0);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .18);
}
.ox-send-progress-ring span {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.03em;
    color: #065F46;
}
.ox-send-progress-card strong {
    display: block;
    font-size: 18px;
    font-weight: 850;
    color: #065F46;
    letter-spacing: -.02em;
}
.ox-send-progress-card > p {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 650;
    color: #64748B;
}
.ox-send-progress-bar {
    margin: 16px 0 0;
    height: 8px;
    border-radius: 99px;
    background: #E2E8F0;
    overflow: hidden;
}
.ox-send-progress-bar > i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #34D399, #059669);
    transition: width .28s ease;
}
.ox-send-progress-current {
    margin: 10px 0 0 !important;
    min-height: 1.2em;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ox-send-progress-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.ox-send-progress-stats span {
    font-size: 12px;
    font-weight: 750;
    padding: 6px 10px;
    border-radius: 999px;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}
.ox-send-progress-stats #oxSendProgressFail {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}
@keyframes oxSentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes oxSentPop {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
}
.outreach-modal.outreach-studio .ox-success-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 25;
    background: radial-gradient(circle at 50% 30%, rgba(167, 243, 208, .35), transparent 55%);
    animation: oxSuccessFlash .9s ease both;
}
@keyframes oxFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes oxPulse {
    0% { box-shadow: 0 0 0 0 rgba(129, 140, 248, .5); }
    70% { box-shadow: 0 0 0 10px rgba(129, 140, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
}
@keyframes oxPulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}
@keyframes oxPreviewPop {
    0% { transform: scale(.985); }
    50% { transform: scale(1.012); }
    100% { transform: none; }
}
@keyframes oxTypingGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(129,140,248,.1); }
    50% { box-shadow: 0 0 0 4px rgba(129,140,248,.12); }
}
@keyframes oxGradePop {
    0% { transform: scale(.85); }
    60% { transform: scale(1.12); }
    100% { transform: none; }
}
@keyframes oxAiBtnPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}
@keyframes oxSuccessFlash {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .outreach-modal.outreach-studio *,
    .outreach-modal.outreach-studio *::before,
    .outreach-modal.outreach-studio *::after {
        animation: none !important;
        transition: none !important;
    }
}
.outreach-modal.outreach-studio .ox-ai-mini {
    padding: 10px 14px !important;
    white-space: nowrap;
}
.outreach-modal.outreach-studio .ox-msg-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.outreach-modal.outreach-studio .ox-icon-btn {
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #64748B;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.outreach-modal.outreach-studio .ox-icon-btn:hover {
    border-color: #FCA5A5;
    color: #B91C1C;
    background: #FEF2F2;
}
.outreach-modal.outreach-studio .ox-tone-wrap { flex: 1 1 100%; min-width: 0; }
.outreach-modal.outreach-studio .ox-snippet-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.outreach-modal.outreach-studio .ox-snippet {
    border: 1px dashed #C7D2FE;
    background: #FAFBFF;
    color: #4338CA;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.outreach-modal.outreach-studio .ox-snippet:hover {
    background: #EEF2FF;
    border-style: solid;
}
.outreach-modal.outreach-studio .ox-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.outreach-modal.outreach-studio .ox-field-head .field-label { margin-bottom: 4px; }
.outreach-modal.outreach-studio .ox-field-meta {
    font-size: 11px;
    font-weight: 750;
    color: #94A3B8;
}
.outreach-modal.outreach-studio .ox-field-meta.is-ok { color: #059669; }
.outreach-modal.outreach-studio .ox-field-meta.is-warn { color: #D97706; }
.outreach-modal.outreach-studio .ox-field-tip {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}
.outreach-modal.outreach-studio .ox-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* AI kalite kontrol paneli */
.outreach-modal.outreach-studio .ox-qa-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1px solid #DDD6FE !important;
    background: linear-gradient(165deg, #FFFFFF, #F5F3FF) !important;
}
.outreach-modal.outreach-studio .ox-qa-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.outreach-modal.outreach-studio .ox-qa-head strong {
    display: block;
    font-size: 12.5px;
    color: #1E1B4B;
}
.outreach-modal.outreach-studio .ox-qa-grade {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 900;
    color: #4338CA;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
}
.outreach-modal.outreach-studio .ox-qa-grade.is-a { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }
.outreach-modal.outreach-studio .ox-qa-grade.is-b { color: #0F766E; background: #F0FDFA; border-color: #99F6E4; }
.outreach-modal.outreach-studio .ox-qa-grade.is-c { color: #B45309; background: #FFFBEB; border-color: #FDE68A; }
.outreach-modal.outreach-studio .ox-qa-grade.is-d,
.outreach-modal.outreach-studio .ox-qa-grade.is-f { color: #B91C1C; background: #FEF2F2; border-color: #FECACA; }
.outreach-modal.outreach-studio .ox-qa-meters {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}
.outreach-modal.outreach-studio .ox-qa-meter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    align-items: center;
}
.outreach-modal.outreach-studio .ox-qa-meter span {
    font-size: 10.5px;
    font-weight: 750;
    color: #64748B;
}
.outreach-modal.outreach-studio .ox-qa-meter b {
    font-size: 11px;
    color: #1E1B4B;
}
.outreach-modal.outreach-studio .ox-qa-meter > i {
    grid-column: 1 / -1;
    display: block;
    height: 5px;
    border-radius: 99px;
    background: #E2E8F0;
    overflow: hidden;
}
.outreach-modal.outreach-studio .ox-qa-meter > i > em {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #818CF8, #34D399);
    transition: width .3s ease;
}
.outreach-modal.outreach-studio .ox-qa-meter[data-qa="spam"] > i > em {
    background: linear-gradient(90deg, #34D399, #F59E0B, #EF4444);
}
.outreach-modal.outreach-studio .ox-qa-tips {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 6px;
    max-height: 140px;
    overflow: auto;
}
.outreach-modal.outreach-studio .ox-qa-tips li {
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    color: #334155;
    padding: 7px 9px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E2E8F0;
}
.outreach-modal.outreach-studio .ox-qa-tips li.is-warn {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: #92400E;
}
.outreach-modal.outreach-studio .ox-qa-tips li.is-ok {
    border-color: #A7F3D0;
    background: #ECFDF5;
    color: #065F46;
}
.outreach-modal.outreach-studio .ox-qa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1100px) {
    .outreach-modal.outreach-studio .ox-tools-grid { grid-template-columns: 1fr; }
    .outreach-modal.outreach-studio .ox-ai-prompt-row { grid-template-columns: 1fr; }
    .outreach-modal.outreach-studio .ox-compose-pane:not([hidden]),
    .outreach-modal.outreach-studio .ox-compose-stack,
    .outreach-modal.outreach-studio .ox-compose-grid,
    .outreach-modal.outreach-studio #oxTextPane:not([hidden]) {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .outreach-modal.outreach-studio .ox-grid.ox-layout-split {
        grid-template-columns: 1fr !important;
        overflow: auto !important;
    }
    .outreach-modal.outreach-studio .ox-layout-split .ox-side {
        border-inline-end: 0 !important;
        max-height: none !important;
    }
}

@media (max-width: 860px) {
    .ox-steps { display: none; }
    .ox-brand-grid, .ox-quick-row { grid-template-columns: 1fr; }
    .ox-head { flex-wrap: wrap; }
}

/* Tekli / toplu mail alıcı seçici */
.email-pick-modal {
    width: min(520px, 94vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E4E2F0;
    box-shadow: 0 24px 60px rgba(30, 27, 75, 0.22);
}
.email-pick-modal.is-bulk {
    width: min(640px, 96vw);
}
.email-pick-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid #E8E4F4;
    background: linear-gradient(120deg, #FAFBFF, #F5F3FF);
}
.email-pick-head h3 { margin: 0; font-size: 1.15rem; color: #1E1B4B; letter-spacing: -0.02em; }
.email-pick-search { padding: 12px 14px 0; display: grid; gap: 8px; }
.email-mode-chooser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px 16px 20px;
}
.email-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #FAFBFF 0%, #F8FAFC 100%);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.email-mode-card:hover {
    border-color: #A5B4FC;
    box-shadow: 0 12px 28px rgba(83, 74, 183, .14);
    transform: translateY(-2px);
}
.email-mode-ico {
    font-size: 22px;
    line-height: 1;
}
.email-mode-card strong {
    font-size: 14px;
    color: #1E1B4B;
}
.email-mode-card span:last-child {
    font-size: 12px;
    line-height: 1.4;
    color: #64748B;
    font-weight: 600;
}
.email-pick-body[hidden],
.email-mode-chooser[hidden] { display: none !important; }
.email-pick-back {
    border: 0;
    background: transparent;
    color: #4338CA;
    font-size: 12px;
    font-weight: 750;
    padding: 0;
    cursor: pointer;
    text-align: left;
}
.email-pick-back:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .email-mode-chooser { grid-template-columns: 1fr; }
}

/* SMS Studio: mail-only UI gizle, telefon önizleme */
.outreach-modal.outreach-studio.is-sms-channel #oxAttachBar,
.outreach-modal.outreach-studio.is-sms-channel #oxSignBar,
.outreach-modal.outreach-studio.is-wa-channel #oxSignBar,
.outreach-modal.outreach-studio.is-sms-channel #oxMsgTabs,
.outreach-modal.outreach-studio.is-wa-channel #oxMsgTabs,
.outreach-modal.outreach-studio.is-sms-channel #oxHtmlPane,
.outreach-modal.outreach-studio.is-wa-channel #oxHtmlPane,
.outreach-modal.outreach-studio.is-sms-channel #oxPreviewModes,
.outreach-modal.outreach-studio.is-wa-channel #oxPreviewModes,
.outreach-modal.outreach-studio.is-sms-channel #oxVisualStage,
.outreach-modal.outreach-studio.is-wa-channel #oxVisualStage,
.outreach-modal.outreach-studio.is-sms-channel #oxInboxRow,
.outreach-modal.outreach-studio.is-wa-channel #oxInboxRow,
.outreach-modal.outreach-studio.is-sms-channel #btnCopyHtmlFoot,
.outreach-modal.outreach-studio.is-wa-channel #btnCopyHtmlFoot,
.outreach-modal.outreach-studio.is-sms-channel #btnOpenOutlook,
.outreach-modal.outreach-studio.is-wa-channel #btnOpenOutlook,
.outreach-modal.outreach-studio.is-sms-channel #oxReadyList li[data-ready="subject"],
.outreach-modal.outreach-studio.is-wa-channel #oxReadyList li[data-ready="subject"],
.outreach-modal.outreach-studio.is-sms-channel #oxReadyList li[data-ready="personal"],
.outreach-modal.outreach-studio.is-wa-channel #oxReadyList li[data-ready="personal"],
.outreach-modal.outreach-studio.is-sms-channel .ox-stat:has(#oxStatSubject),
.outreach-modal.outreach-studio.is-wa-channel .ox-stat:has(#oxStatSubject),
.outreach-modal.outreach-studio.is-sms-channel .ox-qa-meter[data-qa="subject"],
.outreach-modal.outreach-studio.is-wa-channel .ox-qa-meter[data-qa="subject"] {
    display: none !important;
}
.ox-mail-cc {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 8px 0 4px;
    padding: 6px 0 10px;
    border-bottom: 1px solid #EEF1F6;
}
.ox-mail-cc-label {
    padding-top: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    line-height: 1;
}
.ox-mail-cc-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.ox-mail-cc-field .ox-mail-chips {
    display: contents;
}
.ox-mail-cc-field .ox-mail-chips[hidden] {
    display: none !important;
}
.ox-mail-cc-field .text-input {
    flex: 1 1 140px;
    min-width: 120px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0F172A !important;
}
.ox-mail-cc-field .text-input::placeholder {
    color: #B6C0CE;
    font-weight: 500;
}
.ox-mail-cc-field .text-input:focus {
    outline: none !important;
    box-shadow: none !important;
}
.ox-mail-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 3px 8px 3px 10px;
    border-radius: 8px;
    border: 0;
    background: #F1F5F9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}
.ox-mail-chip em {
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.ox-mail-chip-x {
    border: 0;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 0 2px;
    border-radius: 4px;
}
.ox-mail-chip-x:hover {
    color: #0F172A;
    background: rgba(15, 23, 42, 0.06);
}
/* legacy class aliases (hidden) */
.ox-mail-ccbcc,
.ox-mail-copy-block,
.ox-mail-to-add { display: none !important; }
.outreach-modal.outreach-studio.is-sms-channel #oxMailFrame,
.outreach-modal.outreach-studio.is-wa-channel #oxMailFrame {
    display: flex !important;
    flex-direction: column;
}
.outreach-modal.outreach-studio.is-sms-channel #oxTextPane:not([hidden]),
.outreach-modal.outreach-studio.is-wa-channel #oxTextPane:not([hidden]) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
}
.outreach-modal.outreach-studio.is-sms-channel .ox-compose-preview,
.outreach-modal.outreach-studio.is-wa-channel .ox-compose-preview,
.outreach-modal.outreach-studio.is-sms-channel .ox-qa-card,
.outreach-modal.outreach-studio.is-wa-channel .ox-qa-card {
    width: 100% !important;
    max-width: 100% !important;
}
.outreach-modal.outreach-studio.is-sms-channel .ox-compose-preview,
.outreach-modal.outreach-studio.is-wa-channel .ox-compose-preview {
    width: 100% !important;
    max-width: 100% !important;
}
.outreach-modal.outreach-studio.is-sms-channel .ox-preview-device,
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-device {
    min-height: 260px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
}
.outreach-modal.outreach-studio.is-sms-channel .ox-preview-bubble {
    max-width: 100%;
}
.outreach-modal.outreach-studio.is-wa-channel textarea.ox-body,
.outreach-modal.outreach-studio.is-wa-channel .ox-compose-editor .ox-body,
.outreach-modal.outreach-studio.is-sms-channel textarea.ox-body,
.outreach-modal.outreach-studio.is-sms-channel .ox-compose-editor .ox-body {
    min-height: 140px !important;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-notes,
.outreach-modal.outreach-studio.is-sms-channel .ox-preview-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-qa-meters,
.outreach-modal.outreach-studio.is-sms-channel .ox-qa-meters {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.outreach-modal.outreach-studio.is-wa-channel #oxQaCard,
.outreach-modal.outreach-studio.is-sms-channel #oxQaCard {
    width: 100%;
}
.sms-pick-modal .email-mode-card:hover {
    border-color: #67E8F9;
    box-shadow: 0 12px 28px rgba(8, 145, 178, .14);
}
.sms-pick-modal .email-mode-chooser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
    .sms-pick-modal .email-mode-chooser { grid-template-columns: 1fr; }
}

.sms-import-body .sms-import-panel {
    padding: 4px 16px 8px;
    display: grid;
    gap: 10px;
}
.sms-import-body .ox-kicker {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    margin: 0;
}
.sms-import-text {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 12px;
}
.sms-import-preview {
    font-size: 12px;
    font-weight: 750;
    color: #334155;
}
.wa-pick-modal .email-mode-card:hover {
    border-color: #6EE7B7;
    box-shadow: 0 12px 28px rgba(5, 150, 105, .14);
}
.wa-pick-modal {
    width: min(720px, 96vw);
}
.wa-pick-modal.is-import,
.wa-pick-modal.is-bulk {
    width: min(640px, 96vw);
}
.wa-pick-modal .wa-mode-chooser-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
    .wa-pick-modal .wa-mode-chooser-3 { grid-template-columns: 1fr; }
}
.wa-import-body .wa-import-panel {
    padding: 4px 16px 8px;
    display: grid;
    gap: 10px;
}
.wa-import-label {
    font-size: 12px;
    font-weight: 750;
    color: #334155;
}
.wa-import-text {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
}
.wa-import-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wa-import-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid #A7F3D0;
    background: #ECFDF5;
    color: #065F46;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.wa-import-file-btn:hover {
    background: #D1FAE5;
    border-color: #6EE7B7;
}
.wa-import-file-name {
    font-size: 12px;
    font-weight: 650;
    color: #64748B;
}
.wa-import-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #64748B;
    font-weight: 600;
}
.wa-import-preview {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #065F46;
}
.ox-wa-freetext-ban {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    color: #9A3412;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}
.ox-wa-freetext-ban[hidden] { display: none !important; }
.ox-wa-freetext-ban strong { font-weight: 850; }
.ox-wa-freetext-ban em {
    font-style: normal;
    font-weight: 800;
    color: #7C2D12;
}
.outreach-modal.outreach-studio .ox-body.ox-body-tpl-locked {
    opacity: .72;
    border-color: #FDBA74;
    background: #FFFBF5;
}

/* ——— WhatsApp Studio (premium channel) ——— */
.outreach-modal.outreach-studio.is-wa-channel .ox-head {
    background: linear-gradient(180deg, #ECFDF5 0%, #fff 72%);
    border-bottom: 1px solid #D1FAE5;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-head-badge {
    background: linear-gradient(135deg, #059669, #10B981) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(5, 150, 105, .28);
}
.outreach-modal.outreach-studio.is-wa-channel .ox-steps {
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-step.is-on {
    color: #065F46;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-step.is-on > span:first-child {
    background: #059669;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-step.is-done > span:first-child {
    background: #10B981;
}
.outreach-modal.outreach-studio.is-wa-channel .btn-ox-send,
.outreach-modal.outreach-studio.is-wa-channel #btnSendOutreach {
    background: linear-gradient(135deg, #059669, #10B981) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px rgba(5, 150, 105, .28);
}
.outreach-modal.outreach-studio.is-wa-channel .btn-ox-send:hover,
.outreach-modal.outreach-studio.is-wa-channel #btnSendOutreach:hover {
    filter: brightness(1.05);
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-note em {
    color: #059669;
}

.ox-wa-tools {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #D1FAE5;
}
.ox-wa-tools[hidden] { display: none !important; }
.ox-wa-biz {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ECFDF5, #F0FDF4);
    border: 1px solid #A7F3D0;
}
.ox-wa-biz-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #059669, #34D399);
    color: #fff; font-weight: 800; font-size: 14px;
    flex-shrink: 0;
}
.ox-wa-biz-meta { min-width: 0; flex: 1; display: grid; gap: 2px; }
.ox-wa-biz-meta strong {
    font-size: 13px; color: #064E3B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ox-wa-biz-meta span { font-size: 11px; color: #047857; font-weight: 600; }
.ox-wa-badge {
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 8px; border-radius: 999px;
    background: #059669; color: #fff;
}
.ox-wa-badge.is-web { background: #0F766E; }
.ox-wa-meta-tpl {
    margin: 8px 0 4px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(165deg, #F0FDF4 0%, #ECFDF5 45%, #F8FAFC 100%);
    border: 1px solid #A7F3D0;
    display: grid;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(6, 95, 70, .06);
}
.ox-wa-meta-tpl[hidden] { display: none !important; }
.ox-wa-tpl-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.ox-wa-tpl-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #065F46;
    letter-spacing: .01em;
}
.ox-wa-tpl-head .ox-hint { margin: 2px 0 0; color: #047857; }
.ox-wa-tpl-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 750;
    color: #047857;
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    padding: 4px 9px;
    border-radius: 999px;
}
.ox-wa-tpl-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}
.ox-wa-tpl-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #D1FAE5;
    background: rgba(255,255,255,.92);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.ox-wa-tpl-card:hover:not(:disabled) {
    border-color: #6EE7B7;
    box-shadow: 0 6px 16px rgba(5, 150, 105, .12);
    transform: translateY(-1px);
}
.ox-wa-tpl-card.is-on {
    border-color: #059669;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, .18);
}
.ox-wa-tpl-card:disabled,
.ox-wa-tpl-card.is-locked {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.2);
}
.ox-wa-tpl-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 16px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}
.ox-wa-tpl-card.is-on .ox-wa-tpl-ico {
    background: #059669;
    border-color: #047857;
    color: #fff;
}
.ox-wa-tpl-card-main { min-width: 0; display: grid; gap: 2px; }
.ox-wa-tpl-card-main strong {
    font-size: 13px;
    font-weight: 800;
    color: #064E3B;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ox-wa-tpl-card-main span {
    font-size: 11px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ox-wa-tpl-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ox-wa-tpl-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}
.ox-wa-tpl-tag.is-pdf { background: #FEF3C7; color: #B45309; border-color: #FCD34D; }
.ox-wa-tpl-tag.is-pending { background: #F1F5F9; color: #64748B; border-color: #CBD5E1; }
.ox-wa-tpl-tag.is-ok { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.ox-wa-tpl-picked {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
}
.ox-wa-tpl-picked[hidden] { display: none !important; }
.ox-wa-tpl-foot-line {
    align-self: flex-end;
    max-width: min(720px, 78%);
    margin: -2px 0 0;
    padding: 0 10px;
    font-size: 11px;
    color: #667781;
    background: transparent;
}
.ox-wa-tpl-foot-line[hidden] { display: none !important; }
.ox-wa-tpl-btns {
    display: grid;
    gap: 4px;
    margin-top: 2px;
}
.ox-wa-tpl-btns[hidden] { display: none !important; }
.ox-wa-tpl-btns-live {
    align-self: flex-end;
    width: min(720px, 78%);
    max-width: min(720px, 78%);
}
.ox-wa-msg-card {
    display: grid;
    gap: 6px;
}
.ox-wa-tpl-btn {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #027EB5;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(2, 126, 181, .18);
}
.ox-wa-tpl-empty {
    padding: 16px 12px;
    text-align: center;
    color: #64748B;
    font-size: 12px;
}
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.ox-wa-mode-row {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.ox-wa-mode {
    border: 1px solid #D1FAE5;
    background: #fff;
    color: #047857;
    font-size: 11px; font-weight: 750;
    padding: 6px 10px; border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.ox-wa-mode:hover { border-color: #6EE7B7; }
.ox-wa-mode.is-on {
    background: #059669; color: #fff; border-color: #059669;
}
.ox-wa-quick {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.ox-wa-quick-btn {
    border: 1px solid #D1FAE5;
    background: #F0FDF4;
    color: #065F46;
    font-size: 11px; font-weight: 700;
    padding: 5px 9px; border-radius: 8px;
    cursor: pointer;
}
.ox-wa-quick-btn:hover {
    background: #D1FAE5;
    border-color: #6EE7B7;
}
.ox-wa-meter {
    display: grid; gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}
.ox-wa-meter-head {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 11px; font-weight: 700; color: #64748B;
}
.ox-wa-meter-head strong { color: #065F46; font-weight: 800; }
.ox-wa-meter-bar {
    height: 6px; border-radius: 999px; background: #E2E8F0; overflow: hidden;
}
.ox-wa-meter-bar > i {
    display: block; height: 100%; width: 0;
    border-radius: inherit;
    background: #94A3B8;
    transition: width .25s ease, background .2s;
}
.ox-wa-meter-bar > i.is-good { background: linear-gradient(90deg, #10B981, #34D399); }
.ox-wa-meter-bar > i.is-warn { background: #F59E0B; }
.ox-wa-meter-bar > i.is-bad { background: #EF4444; }

.outreach-modal.outreach-studio.is-wa-channel #oxComposePreview,
.outreach-modal.outreach-studio.is-sms-channel #oxComposePreview {
    order: 1;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-card-h,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-card-h {
    order: 0;
}
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-ai-prompt-bar,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-msg-toolbar,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-snippet-row,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-token-row,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-attach-bar,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > .ox-sign-bar,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > #oxTextPane,
.outreach-modal.outreach-studio.is-wa-channel #oxSecMsg > #oxHtmlPane,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-ai-prompt-bar,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-msg-toolbar,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-snippet-row,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-token-row,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-attach-bar,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > .ox-sign-bar,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > #oxTextPane,
.outreach-modal.outreach-studio.is-sms-channel #oxSecMsg > #oxHtmlPane {
    order: 5;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-compose-preview {
    align-items: stretch !important;
    padding: 16px 18px 18px !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, .10), transparent 55%),
        linear-gradient(180deg, #F0FDF4 0%, #F8FAFC 48%, #FFFFFF 100%) !important;
    border: 1px solid #BBF7D0 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(6, 95, 70, .06);
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-head {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    gap: 10px;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-head strong {
    color: #065F46;
    font-size: 13px;
    letter-spacing: .01em;
}
.outreach-modal.outreach-studio.is-wa-channel #oxMailFrame.is-wa-frame {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #86EFAC;
    box-shadow: 0 6px 16px rgba(5, 150, 105, .10);
    background: #ECE5DD;
    transform: translateZ(0);
    contain: layout paint;
}
.outreach-modal.outreach-studio.is-wa-channel #oxMailFrame.is-wa-frame .ox-mail-chrome {
    display: none !important;
}
.ox-wa-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #0B6B5F 0%, #075E54 100%);
    color: #fff;
    position: relative;
}
.ox-wa-chat-head::before {
    content: none;
}
.ox-wa-chat-head[hidden] { display: none !important; }
.ox-wa-chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 800; font-size: 13px; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.ox-wa-chat-meta { min-width: 0; flex: 1; display: grid; gap: 1px; }
.ox-wa-chat-meta strong {
    font-size: 13px; font-weight: 750;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ox-wa-chat-meta span { font-size: 10px; opacity: .85; font-weight: 600; }
.ox-wa-chat-live {
    font-style: normal; font-size: 10px; font-weight: 800;
    padding: 4px 8px; border-radius: 999px;
    background: rgba(37, 211, 102, .22);
    border: 1px solid rgba(255,255,255,.18);
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-device {
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.42), transparent 42%),
        linear-gradient(180deg, #E8E0D5 0%, #ECE5DD 55%, #E5DDD5 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    padding: 14px 16px 12px !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #94A3B8 transparent;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-device::-webkit-scrollbar {
    width: 6px;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-device::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 999px;
}
.ox-wa-day {
    align-self: center;
    font-size: 10px; font-weight: 700;
    color: #54656F;
    background: rgba(255,255,255,.92);
    padding: 4px 12px; border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(11,20,26,.06);
    flex-shrink: 0;
}
.ox-wa-day[hidden] { display: none !important; }

.outreach-modal.outreach-studio.is-wa-channel .ox-wa-msg-card {
    align-self: flex-end !important;
    width: min(560px, 86%) !important;
    max-width: min(560px, 86%) !important;
    display: grid !important;
    gap: 6px !important;
    padding: 8px 8px 6px !important;
    background: #D9FDD3 !important;
    border-radius: 12px 12px 4px 12px !important;
    box-shadow: 0 1px 1.5px rgba(11, 20, 26, .14) !important;
    animation: none;
    float: none !important;
    position: relative !important;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-msg-card > * {
    float: none !important;
    position: relative !important;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-msg-card > .ox-wa-media {
    align-self: stretch;
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.55);
    box-shadow: none;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-msg-card > .ox-wa-media-file,
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-msg-card .ox-wa-media-file {
    background: transparent;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-bubble {
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    color: #111B21 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2px 4px 0 !important;
    font-size: 13.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    animation: none;
    order: 2;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-msg-card > .ox-wa-media { order: 1; }
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-tpl-foot-line {
    align-self: stretch !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 11px;
    color: #667781;
    order: 3;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-tpl-btns-live {
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2px !important;
    order: 4;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-tpl-btn {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(2, 126, 181, .2);
    border-radius: 8px;
    color: #027EB5;
    font-weight: 700;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-wa-bubble-foot {
    align-self: flex-end !important;
    margin: 0 2px 0 0 !important;
    order: 5;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-notes {
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-preview-note {
    background: rgba(255,255,255,.85);
    border: 1px solid #D1FAE5;
    border-radius: 12px;
    padding: 8px 10px;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-coach {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}
@keyframes oxWaBubbleIn {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.ox-wa-bubble-foot {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: -2px;
    margin-right: 4px;
    font-size: 10px;
    color: #667781;
    font-weight: 600;
}
.ox-wa-bubble-foot[hidden] { display: none !important; }
.ox-wa-ticks {
    letter-spacing: -1px;
    color: #8696A0;
    font-weight: 800;
}
.ox-wa-ticks.is-read { color: #53BDEB; }
.ox-wa-note em { color: #059669 !important; }
.ox-wa-attach {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed #6EE7B7;
    background: linear-gradient(180deg, #ECFDF5, #F0FDF4);
}
.ox-wa-attach-head {
    display: grid;
    gap: 2px;
}
.ox-wa-attach-head strong {
    font-size: 13px;
    color: #064E3B;
}
.ox-wa-attach-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #A7F3D0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    color: #047857;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ox-wa-attach-pick:hover {
    border-color: #34D399;
    box-shadow: 0 8px 20px rgba(5, 150, 105, .12);
    transform: translateY(-1px);
}
.ox-wa-attach-ico { font-size: 18px; }
.ox-wa-media {
    align-self: flex-end;
    max-width: min(720px, 78%);
    border-radius: 12px;
    overflow: hidden;
    background: #DCF8C6;
    box-shadow: 0 1px 1px rgba(11,20,26,.12);
    margin-bottom: 4px;
}
.ox-wa-media[hidden] { display: none !important; }
.ox-wa-media img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}
.ox-wa-media-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #DCF8C6;
}
.ox-wa-media-file .ox-wa-file-badge {
    width: 36px; height: 36px; border-radius: 8px;
    display: grid; place-items: center;
    background: #075E54; color: #fff;
    font-size: 10px; font-weight: 800;
}
.ox-wa-media-file strong {
    font-size: 12px; color: #111B21;
    display: block;
}
.ox-wa-media-file span {
    font-size: 10px; color: #54656F; font-weight: 600;
}
.outreach-modal.outreach-studio.is-wa-channel #oxAttachBar {
    border-color: #A7F3D0;
    background: linear-gradient(180deg, #ECFDF5, #fff);
}
.outreach-modal.outreach-studio.is-wa-channel .ox-attach-pick {
    color: #047857;
}

.outreach-modal.outreach-studio.is-wa-channel .ox-coach {
    color: #065F46;
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.outreach-modal.outreach-studio.is-wa-channel .ox-qa-grade {
    background: #ECFDF5;
    color: #065F46;
}
.outreach-modal.outreach-studio.is-wa-channel #oxQaCard {
    border-color: #A7F3D0;
}

.email-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px 0;
}
.email-bulk-toolbar[hidden] { display: none !important; }
.email-bulk-checkall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #4338CA;
    cursor: pointer;
}
.email-bulk-count {
    font-size: 12px;
    font-weight: 800;
    color: #1E1B4B;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 999px;
    padding: 4px 10px;
}
.email-bulk-toolbar-actions {
    margin-inline-start: auto;
    display: flex;
    gap: 6px;
}
.email-pick-list {
    padding: 10px 14px 12px;
    overflow: auto;
    display: grid; gap: 8px;
    max-height: min(48vh, 420px);
    flex: 1 1 auto;
}
.email-pick-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    text-align: left; width: 100%;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid #E4E2F0; background: #FAFBFF;
    cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.email-pick-item:hover {
    border-color: #A5B4FC;
    box-shadow: 0 8px 18px rgba(83, 74, 183, 0.12);
    transform: translateY(-1px);
}
.email-bulk-row {
    cursor: default;
}
.email-bulk-row.is-on {
    border-color: #A5B4FC;
    background: linear-gradient(120deg, #EEF2FF, #FAFBFF);
}
.email-bulk-row.is-invalid {
    opacity: .55;
}
.email-bulk-check {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.email-bulk-meta { flex: 1; min-width: 0; }
.email-bulk-remove {
    border: 0;
    background: #FEF2F2;
    color: #B91C1C;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.email-bulk-remove:hover { background: #FEE2E2; }
.email-pick-item strong { display: block; font-size: 13px; color: #1E1B4B; }
.email-pick-item span { display: block; margin-top: 2px; font-size: 11px; color: #64748B; font-weight: 600; }
.email-pick-item em {
    font-style: normal; font-size: 11px; font-weight: 800;
    color: #4338CA; background: #EEF2FF; border: 1px solid #C7D2FE;
    padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.email-pick-empty {
    margin: 0; padding: 24px 18px 28px;
    text-align: center; font-size: 13px; font-weight: 600; color: #64748B;
}
.email-bulk-add {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 14px 12px;
    border-top: 1px solid #EEF2FF;
    background: #FAFBFF;
}
.email-bulk-add[hidden] { display: none !important; }
.email-bulk-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid #E8E4F4;
    background: #fff;
}
.email-bulk-foot[hidden] { display: none !important; }
.email-bulk-foot .btn-ox-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.email-bulk-foot .btn-ox-ai em {
    font-style: normal;
    font-weight: 800;
    opacity: .9;
}
.email-bulk-foot .btn-ox-ai:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.btn-pill-accent {
    background: #EEF2FF !important;
    border-color: #C7D2FE !important;
    color: #3730A3 !important;
    font-weight: 800;
}
.outreach-modal.outreach-studio .outreach-rec-chip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.outreach-modal.outreach-studio .outreach-rec-chip.ox-rec-chip-sms {
    display: block;
}
.outreach-modal.outreach-studio .ox-rec-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.outreach-modal.outreach-studio .ox-rec-remove {
    flex: 0 0 auto;
    border: 0;
    background: #FEF2F2;
    color: #B91C1C;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 2px;
}
.outreach-modal.outreach-studio .ox-rec-chip-sms .ox-rec-remove {
    width: 34px;
    height: 34px;
    margin-top: 0;
    border-radius: 10px;
}

/* ── Dashboard Komuta Merkezi (CRM seviyesinde) ── */
.dashboard-view.page-hidden { display: none !important; }
.dashboard-view {
    --dash-brand: #534AB7;
    --dash-soft: #EEECF9;
    --dash-border: #E4E2F0;
    padding: 4px 2px 28px;
}
.dash-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.dash-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; color: #1E1B4B; }
.dash-head p { margin: 6px 0 0; font-size: 13px; color: #64748B; font-weight: 600; }
.dash-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-pill {
    display: inline-flex; align-items: center;
    padding: 6px 12px; border-radius: 999px;
    background: var(--dash-soft); color: var(--dash-brand);
    font-size: 12px; font-weight: 750; border: 1px solid #D8D4F0;
}

.dash-quick {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px; margin-bottom: 12px;
}
.dash-quick-btn {
    text-align: left; border: 1px solid var(--dash-border); border-radius: 12px;
    background: #fff; padding: 10px 12px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.04);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.dash-quick-btn:hover {
    transform: translateY(-1px); border-color: #C4B5FD;
    box-shadow: 0 10px 18px rgba(83, 74, 183, 0.1);
}
.dash-quick-btn strong { display: block; font-size: 12.5px; color: #1E1B4B; }
.dash-quick-btn span { display: block; margin-top: 2px; font-size: 10.5px; color: #64748B; font-weight: 600; }

.dash-stats-board {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px; margin-bottom: 12px;
}
.dash-stat-card {
    position: relative; text-align: left; cursor: pointer;
    background: #fff; border: 1px solid rgba(228, 226, 240, 0.95);
    border-radius: 14px; padding: 10px 11px;
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    overflow: hidden; isolation: isolate;
    box-shadow: 0 6px 14px rgba(30, 27, 75, 0.04);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .3s;
}
.dash-stat-card::before {
    content: ''; position: absolute; inset: 0;
    background: var(--dash-wash, transparent); z-index: -1;
}
.dash-stat-card:hover {
    transform: translateY(-3px); border-color: #C4B5FD;
    box-shadow: 0 14px 28px rgba(30, 27, 75, 0.1);
}
.dash-stat-top { display: flex; align-items: center; gap: 8px; }
.dash-stat-ico {
    width: 28px; height: 28px; border-radius: 9px;
    background: var(--dash-ico, #EEF2FF); flex-shrink: 0;
    display: inline-grid; place-items: center; position: relative;
}
.dash-stat-ico::before {
    content: ''; width: 10px; height: 10px; border-radius: 3px;
    background: var(--dash-accent, #534AB7);
}
.dash-stat-search { --dash-wash: linear-gradient(160deg, #EEF2FF, transparent 70%); --dash-accent: #534AB7; }
.dash-stat-phone { --dash-wash: linear-gradient(160deg, #ECFDF5, transparent 70%); --dash-accent: #059669; --dash-ico: #D1FAE5; }
.dash-stat-web { --dash-wash: linear-gradient(160deg, #EFF6FF, transparent 70%); --dash-accent: #2563EB; --dash-ico: #DBEAFE; }
.dash-stat-rating { --dash-wash: linear-gradient(160deg, #FFFBEB, transparent 70%); --dash-accent: #D97706; --dash-ico: #FEF3C7; }
.dash-stat-crm { --dash-wash: linear-gradient(160deg, #F5F3FF, transparent 70%); --dash-accent: #7C3AED; --dash-ico: #EDE9FE; }
.dash-stat-events { --dash-wash: linear-gradient(160deg, #EFF6FF, transparent 70%); --dash-accent: #2563EB; --dash-ico: #DBEAFE; }
.dash-stat-phone .dash-stat-ico::before { border-radius: 50%; }
.dash-stat-rating .dash-stat-ico::before {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.dash-stat-label {
    font-size: 10px; font-weight: 800; color: #64748B;
    text-transform: uppercase; letter-spacing: .04em;
}
.dash-stat-num {
    font-size: 1.35rem; font-weight: 800; color: #1E1B4B;
    letter-spacing: -0.04em; line-height: 1.05;
}
.dash-stat-sub { font-size: 10.5px; font-weight: 650; color: var(--dash-accent, #534AB7); }
.dash-stat-meter {
    height: 4px; border-radius: 999px; background: rgba(148,163,184,.22); overflow: hidden; margin-top: 2px;
}
.dash-stat-meter i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--dash-accent, #534AB7), #818CF8);
    border-radius: inherit; transition: width .5s ease;
}

.dash-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 12px; align-items: start;
}
.dash-main-col, .dash-side-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 1101px) {
    .dash-side-col {
        position: sticky; top: 8px;
        max-height: calc(100vh - 16px); overflow: auto;
        padding-bottom: 8px; scrollbar-width: thin;
    }
}
.dash-twin {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start;
}
.dash-panel {
    background: #fff; border: 1px solid var(--dash-border); border-radius: 14px;
    padding: 12px 13px; box-shadow: 0 5px 14px rgba(30, 27, 75, 0.04);
}
.dash-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 8px;
}
.dash-panel-head h3 { margin: 0; font-size: 14px; font-weight: 800; color: #1E1B4B; }
.dash-count-badge {
    min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px;
    background: var(--dash-soft); color: var(--dash-brand);
    font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-crm-ghost.sm { min-height: 28px; padding: 4px 10px; font-size: 11px; }
/* Manuel alıcı listesi açma butonu — sadece ikon */
.btn-sms-rec-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #F5F3FF;
  border: 1.5px solid #C4B5FD;
  color: #7C3AED;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
  flex-shrink: 0;
  position: relative;
}
.btn-sms-rec-open:hover {
  background: #EDE9FE;
  border-color: #7C3AED;
  box-shadow: 0 2px 8px #7C3AED22;
  transform: translateY(-1px);
}
.btn-sms-rec-ico {
  width: 15px;
  height: 15px;
  display: block;
}
.btn-sms-rec-n {
  position: absolute;
  top: -6px;
  right: -6px;
  font-style: normal;
  background: #7C3AED;
  color: #fff;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 1px 3px #7C3AED40;
}
.btn-sms-rec-n:empty { display: none; }

.dash-list-body { display: grid; gap: 7px; }
.dash-item {
    padding: 10px 12px; border-radius: 12px;
    border: 1px solid #E8E4F4; background: #FAFBFF;
}
.dash-item strong { display: block; font-size: 12.5px; color: #1E1B4B; }
.dash-item span { display: block; margin-top: 2px; font-size: 11px; color: #64748B; font-weight: 600; }
.dash-item-btn {
    width: 100%; text-align: left; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dash-item-btn:hover {
    border-color: #C4B5FD; box-shadow: 0 8px 16px rgba(83,74,183,.1); transform: translateY(-1px);
}
.dash-tile-list { display: grid; gap: 7px; }
.dash-tile {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center;
    width: 100%; text-align: left; padding: 9px 10px; border-radius: 12px; cursor: pointer;
    border: 1px solid #E8E4F4; background: #fff;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dash-tile:hover {
    transform: translateY(-1px); box-shadow: 0 10px 18px rgba(30,27,75,.08);
}
.dash-tile-ico {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center; position: relative;
    background: #EEF2FF;
}
.dash-tile-ico::before {
    content: ""; width: 14px; height: 14px; border-radius: 4px;
    background: currentColor; opacity: .95;
}
.dash-tile-body { min-width: 0; }
.dash-tile-body strong {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; color: #1E1B4B;
}
.dash-tile-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dash-tile-count {
    min-width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
    background: #EEF2FF; color: #4338CA; font-size: 11px; font-weight: 900;
}
.dash-chip {
    display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px;
    font-size: 9.5px; font-weight: 750; font-style: normal;
    background: #F1F5F9; color: #475569;
}
.dash-chip.is-fav { background: #DBEAFE; color: #1D4ED8; }
.dash-chip.is-phone { background: #EFF6FF; color: #2563EB; }
.dash-chip.is-mail { background: #EEF2FF; color: #4338CA; }
.dash-chip.is-ok { background: #EFF6FF; color: #1D4ED8; }
.dash-chip.is-warn { background: #F1F5F9; color: #64748B; }

.dash-tile-search { border-color: #E2E8F0; background: #fff; }
.dash-tile-search .dash-tile-ico { color: #2563EB; background: #DBEAFE; }
.dash-tile-search .dash-tile-ico::before {
    clip-path: polygon(20% 20%, 80% 20%, 80% 55%, 65% 55%, 90% 90%, 75% 90%, 50% 55%, 20% 55%);
    border-radius: 0; width: 15px; height: 15px;
}
.dash-tile-search-hot { border-color: #BFDBFE; background: #F8FAFC; }
.dash-tile-search-hot .dash-tile-ico { color: #1D4ED8; background: #DBEAFE; }
.dash-tile-search-hot .dash-tile-ico::before {
    clip-path: polygon(20% 20%, 80% 20%, 80% 55%, 65% 55%, 90% 90%, 75% 90%, 50% 55%, 20% 55%);
    border-radius: 0;
}
.dash-tile-search-hot .dash-tile-count { background: #DBEAFE; color: #1D4ED8; }
.dash-tile-search-empty { border-color: #E2E8F0; background: #fff; }
.dash-tile-search-empty .dash-tile-ico { color: #64748B; background: #F1F5F9; }
.dash-tile-search-empty .dash-tile-count { background: #F1F5F9; color: #64748B; }

.dash-tile-fav,
.dash-tile-phone,
.dash-tile-mail,
.dash-tile-lead,
.dash-tile-touch,
.dash-tile-offer,
.dash-tile-won,
.dash-tile-lost {
    border-color: #E2E8F0; background: #fff;
}
.dash-tile-fav .dash-tile-ico,
.dash-tile-phone .dash-tile-ico,
.dash-tile-mail .dash-tile-ico,
.dash-tile-lead .dash-tile-ico,
.dash-tile-touch .dash-tile-ico,
.dash-tile-offer .dash-tile-ico,
.dash-tile-won .dash-tile-ico,
.dash-tile-lost .dash-tile-ico {
    color: #2563EB; background: #DBEAFE;
}
.dash-tile-fav .dash-tile-ico::before {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}
.dash-tile-phone .dash-tile-ico::before { border-radius: 50% 50% 40% 40%; width: 11px; height: 14px; }
.dash-tile-mail .dash-tile-ico::before {
    width: 14px; height: 10px; border-radius: 2px;
    box-shadow: inset 0 0 0 1.5px currentColor; background: transparent;
}
.dash-tile-fav:hover,
.dash-tile-phone:hover,
.dash-tile-mail:hover,
.dash-tile-lead:hover,
.dash-tile-touch:hover,
.dash-tile-offer:hover,
.dash-tile-won:hover,
.dash-tile-lost:hover,
.dash-tile-search:hover,
.dash-tile-search-hot:hover {
    border-color: #93C5FD; background: #F8FAFC;
}

.dash-cal-hero {
    background: linear-gradient(180deg, #F8FAFC, #fff);
    border-color: #E2E8F0;
    box-shadow: 0 8px 18px rgba(30, 64, 175, .05);
}
.dash-cal-hero .dash-eyebrow { color: #2563EB; }
.dash-cal-upcoming {
    display: grid; gap: 6px; margin-bottom: 10px;
}
.dash-cal-empty {
    padding: 8px 10px; border-radius: 10px; font-size: 11px; font-weight: 650;
    color: #64748B; background: #F8FAFC; border: 1px dashed #CBD5E1;
}
.dash-cal-up-item {
    display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center;
    width: 100%; text-align: left; padding: 7px 8px; border-radius: 11px; cursor: pointer;
    border: 1px solid #E2E8F0; background: #fff;
}
.dash-cal-up-item:hover { border-color: #93C5FD; box-shadow: 0 6px 14px rgba(37,99,235,.08); }
.dash-cal-up-date {
    display: grid; place-items: center; gap: 0; min-height: 40px; border-radius: 10px;
    background: linear-gradient(160deg, #1D4ED8, #3B82F6); color: #fff;
}
.dash-cal-up-date b { font-size: 15px; line-height: 1; font-weight: 900; }
.dash-cal-up-date small { font-size: 8px; font-weight: 800; text-transform: uppercase; opacity: .9; }
.dash-cal-up-body { min-width: 0; }
.dash-cal-up-body strong {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; color: #1E3A8A;
}
.dash-cal-up-body span { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 650; color: #64748B; }
.dash-cal-day-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px;
}
.dash-cal-day-head .cache-hint { margin: 0; }
.calendar-grid-rich { gap: 5px; }
.calendar-grid-rich .calendar-day {
    min-height: 34px; border-radius: 10px; font-weight: 700;
    border-color: #E2E8F0; background: #fff; color: #1E293B;
}
.calendar-grid-rich .calendar-day.has-event,
.calendar-grid-rich .calendar-day.has-many {
    border-color: #BFDBFE; background: #fff;
}
.calendar-grid-rich .calendar-day.has-event i,
.calendar-grid-rich .calendar-day.has-many i {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; min-width: 4px; padding: 0;
    border-radius: 50%; background: #3B82F6; color: transparent;
    font-size: 0; line-height: 0; overflow: hidden;
}
.calendar-grid-rich .calendar-day.selected {
    background: #2563EB; border-color: #1D4ED8; color: #fff;
}
.calendar-grid-rich .calendar-day.selected i { background: #fff; }
.calendar-grid-rich .calendar-day.today:not(.selected) {
    box-shadow: inset 0 0 0 1.5px #60A5FA;
}
.calendar-events-list { margin-top: 6px; max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.calendar-event-item {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: start;
    border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 9px; background: #fff;
}
.calendar-event-time {
    display: grid; place-items: center; min-height: 28px; border-radius: 8px;
    background: #EFF6FF; color: #1D4ED8; font-size: 10px; font-weight: 850;
}

.dash-empty {
    text-align: center; padding: 22px 14px;
    border: 1px dashed var(--dash-border); border-radius: 12px;
    background: linear-gradient(180deg, #FAFAFC, #F5F4FA);
}
.dash-empty strong { display: block; font-size: 13px; color: #1E1B4B; margin-bottom: 4px; }
.dash-empty p { margin: 0 0 10px; font-size: 12px; color: #64748B; font-weight: 600; line-height: 1.4; }

.dash-pipe-bars { display: grid; gap: 8px; }
.dash-pipe-row {
    display: grid; grid-template-columns: 88px 1fr 36px; gap: 8px; align-items: center;
    font-size: 11px; font-weight: 700; color: #475569;
}
.dash-pipe-track {
    height: 8px; border-radius: 999px; background: #EEF2FF; overflow: hidden;
}
.dash-pipe-track i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #534AB7, #818CF8);
    border-radius: inherit;
}
.dash-pipe-row strong { text-align: right; color: #1E1B4B; }

.dash-ox-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dash-ox-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0;
}
.dash-ox-chip b { font-weight: 800; color: #1E1B4B; }
.dash-ox-chip.ok { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.dash-ox-chip.warn { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.dash-ox-chip.err { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.dash-ox-chip.dash-ox-ch-whatsapp { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.dash-ox-chip.dash-ox-ch-email { background: #EEF2FF; border-color: #C7D2FE; color: #4338CA; }
.dash-ox-chip.dash-ox-ch-sms { background: #F5F3FF; border-color: #DDD6FE; color: #6D28D9; }
.dash-outreach-summary { display: grid; gap: 8px; min-width: 0; }
.dash-ox-hint { margin: 0; font-size: 11px; font-weight: 650; color: #64748B; line-height: 1.35; }
.dash-eyebrow {
    display: block; color: #6366F1; font-size: 9px; font-weight: 900;
    letter-spacing: .12em; margin-bottom: 2px;
}
.dash-ox-filters {
    display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 8px;
}
.dash-ox-filter {
    min-height: 28px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
    border: 1px solid #E2E8F0; background: #fff; color: #64748B;
    font-size: 10.5px; font-weight: 750;
}
.dash-ox-filter.is-on, .dash-ox-filter:hover {
    border-color: #C7D2FE; background: #EEF2FF; color: #4338CA;
}
.dash-ox-list {
    display: grid; gap: 5px; max-height: 360px; overflow: auto; padding-right: 2px;
}
.ox-row {
    display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: start;
    padding: 7px 9px; border-radius: 10px; border: 1px solid #E8E4F4; background: #FAFBFF;
}
.ox-row.ox-failed { border-color: #FECACA; background: #FFF8F8; }
.ox-row.ox-pending { border-color: #FDE68A; background: #FFFBEB; }
.ox-ch {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    font-size: 10px; font-weight: 900; letter-spacing: .02em; color: #fff;
    background: #64748B;
}
.ox-ch[data-ch="email"] { background: linear-gradient(135deg, #4F46E5, #6366F1); }
.ox-ch[data-ch="email"]::after { content: "MAIL"; font-size: 8px; }
.ox-ch[data-ch="sms"] { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.ox-ch[data-ch="sms"]::after { content: "SMS"; font-size: 9px; }
.ox-ch[data-ch="whatsapp"] { background: linear-gradient(135deg, #059669, #10B981); }
.ox-ch[data-ch="whatsapp"]::after { content: "WA"; font-size: 9px; }
.ox-main { min-width: 0; }
.ox-line1 {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ox-line1 strong {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; color: #1E1B4B;
}
.ox-line2 {
    display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 2px;
    font-size: 10px; font-weight: 650; color: #64748B;
}
.ox-ch-label {
    padding: 1px 6px; border-radius: 999px; background: #EEF2FF; color: #4338CA; font-weight: 800; font-size: 9px;
}
.ox-line3 {
    margin-top: 3px; font-size: 10.5px; color: #475569; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ox-err {
    margin-top: 3px; font-size: 10px; font-weight: 700; color: #B91C1C;
}
.o-status.warn { color: #B45309; background: #FFFBEB; }

.dash-focus {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    margin-bottom: 12px;
}
.dash-focus[hidden] { display: none !important; }
.dash-focus-card {
    text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid #E0E7FF; background: linear-gradient(135deg, #F8FAFF, #EEF2FF);
    transition: transform .15s, box-shadow .15s;
}
.dash-focus-card:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(67,56,202,.1); }
.dash-focus-card strong { display: block; font-size: 12px; color: #1E1B4B; margin-bottom: 2px; }
.dash-focus-card span { display: block; font-size: 10.5px; font-weight: 600; color: #64748B; line-height: 1.35; }

.dash-week-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
}
.dash-week-card {
    padding: 8px 10px; border-radius: 10px; border: 1px solid #E8E4F4;
    background: linear-gradient(180deg, #fff, #F8FAFC);
}
.dash-week-card small {
    display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #94A3B8; margin-bottom: 1px;
}
.dash-week-card strong { display: block; font-size: 16px; color: #1E1B4B; line-height: 1.1; }
.dash-week-card span { display: block; margin-top: 2px; font-size: 10px; font-weight: 650; color: #64748B; }
.dash-week-actions { margin-top: 10px; }
.dash-muted { margin: 0; font-size: 12px; font-weight: 600; color: #94A3B8; }
.dash-channel-mix { display: grid; gap: 7px; }
.dash-ch-row {
    display: grid; grid-template-columns: 64px 1fr 28px; gap: 7px; align-items: center;
    font-size: 11px; font-weight: 700; color: #475569;
}
.dash-ch-track { height: 7px; border-radius: 999px; background: #EEF2FF; overflow: hidden; }
.dash-ch-track i { display: block; height: 100%; border-radius: inherit; }
.dash-ch-track i.ch-email { background: linear-gradient(90deg, #4F46E5, #818CF8); }
.dash-ch-track i.ch-sms { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.dash-ch-track i.ch-whatsapp { background: linear-gradient(90deg, #059669, #34D399); }
.dash-ch-track i.ch-other { background: #94A3B8; }
.dash-task-list { display: grid; gap: 6px; }
.dash-task {
    display: flex; align-items: flex-start; gap: 8px; width: 100%;
    text-align: left; padding: 8px 10px; border-radius: 10px; cursor: pointer;
    border: 1px solid #E8E4F4; background: #FAFBFF;
    font-size: 11.5px; font-weight: 650; color: #334155;
}
.dash-task i {
    width: 14px; height: 14px; margin-top: 2px; border-radius: 4px; flex-shrink: 0;
    border: 1.5px solid #C7D2FE; background: #fff;
}
.dash-task.is-done { opacity: .72; }
.dash-task.is-done i {
    border-color: #6EE7B7; background: #10B981;
    box-shadow: inset 0 0 0 2px #fff;
}
.dash-week-actions-head {
    font-size: 11px; font-weight: 800; color: #475569; margin-bottom: 6px;
}
.dash-week-action-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-week-action {
    padding: 6px 10px; border-radius: 999px; cursor: pointer;
    border: 1px solid #DDD6FE; background: #F5F3FF; color: #5B21B6;
    font-size: 10.5px; font-weight: 750;
}
.dash-week-action:hover { background: #EDE9FE; }

.dash-agenda-item {
    display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start;
    padding: 9px 10px; border-radius: 12px; border: 1px solid #E8E4F4; background: #FAFBFF;
}
.dash-agenda-time {
    display: grid; place-items: center; min-height: 34px; border-radius: 9px;
    background: #EEF2FF; color: #4338CA; font-size: 11px; font-weight: 850;
}
.dash-agenda-item strong { display: block; font-size: 12.5px; color: #1E1B4B; }
.dash-agenda-item span { display: block; margin-top: 2px; font-size: 11px; color: #64748B; font-weight: 600; }

.dash-pipe-row strong { display: grid; justify-items: end; gap: 0; }
.dash-pipe-row strong small { font-size: 9px; font-weight: 700; color: #94A3B8; }
.dash-pipe-row:nth-child(1) .dash-pipe-track i { background: linear-gradient(90deg, #4F46E5, #818CF8); }
.dash-pipe-row:nth-child(2) .dash-pipe-track i { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.dash-pipe-row:nth-child(3) .dash-pipe-track i { background: linear-gradient(90deg, #DB2777, #F472B6); }
.dash-pipe-row:nth-child(4) .dash-pipe-track i { background: linear-gradient(90deg, #059669, #34D399); }
.dash-pipe-row:nth-child(5) .dash-pipe-track i { background: linear-gradient(90deg, #D97706, #FBBF24); }

.dash-credit-meters em {
    float: right; font-style: normal; color: #4338CA; font-weight: 850;
}

.dash-panel-tools { display: flex; gap: 6px; flex-wrap: wrap; }

.dash-plan-body strong { display: block; font-size: 1.05rem; color: #1E1B4B; }
.dash-plan-body p { margin: 4px 0 10px; font-size: 12px; font-weight: 650; color: #64748B; }
.dash-credit-meters { display: grid; gap: 10px; }
.dash-credit-meters span { display: block; font-size: 11px; font-weight: 750; color: #64748B; margin-bottom: 4px; }

.dash-cal-add { margin-top: 10px; }
.dash-cal-add > summary {
    list-style: none; cursor: pointer; font-size: 12px; font-weight: 750; color: var(--dash-brand);
    padding: 6px 0;
}
.dash-cal-add > summary::-webkit-details-marker { display: none; }
.dash-cal-add[open] > summary { margin-bottom: 8px; }
.dash-cal-add .text-input { margin-top: 6px; }

@media (max-width: 1100px) {
    .dash-stats-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-twin { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-stats-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-side-col { position: static; max-height: none; overflow: visible; }
}

/* Dashboard v3 — aktivite, donut, trend, uyarı, widget */
.dash-alert {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, #FEF3C7, #FFF7ED);
    border: 1px solid #FCD34D;
}
.dash-alert[hidden] { display: none !important; }
.dash-alert strong { display: block; font-size: 13px; color: #92400E; }
.dash-alert p { margin: 2px 0 0; font-size: 12px; font-weight: 650; color: #B45309; }

.dash-widget-bar {
    display: grid; gap: 10px; margin-bottom: 12px;
    padding: 12px 14px; border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7FF 100%);
    border: 1px solid var(--dash-border, #E4E2F0);
    box-shadow: 0 8px 20px rgba(30, 27, 75, 0.05);
}
.dash-widget-bar[hidden] { display: none !important; }
.dash-widget-bar-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.dash-widget-bar-head strong {
    display: block; font-size: 12px; font-weight: 800; color: #1E1B4B; letter-spacing: .01em;
}
.dash-widget-bar-head span {
    display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: #64748B;
}
.dash-widget-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.dash-widget-chip {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    margin: 0; padding: 7px 12px 7px 9px; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1px solid #E4E2F0; color: #475569;
    font-size: 11.5px; font-weight: 700; user-select: none;
    box-shadow: 0 2px 6px rgba(30, 27, 75, 0.03);
    transition: background .18s ease, border-color .18s ease, color .18s ease,
                box-shadow .18s ease, transform .18s ease;
}
.dash-widget-chip:hover {
    border-color: #C4B5FD; color: #4338CA;
    box-shadow: 0 6px 14px rgba(83, 74, 183, 0.1);
    transform: translateY(-1px);
}
.dash-widget-chip input {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.dash-widget-check {
    position: relative; flex-shrink: 0;
    width: 16px; height: 16px; border-radius: 5px;
    border: 1.5px solid #C7D2FE; background: #F8FAFC;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dash-widget-check::after {
    content: ""; position: absolute; left: 4px; top: 1px;
    width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0); opacity: 0;
    transition: transform .16s ease, opacity .16s ease;
}
.dash-widget-chip:has(input:checked) {
    color: #4338CA;
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    border-color: #A5B4FC;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}
.dash-widget-chip:has(input:checked) .dash-widget-check {
    background: linear-gradient(135deg, #6366F1, #7C3AED);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.dash-widget-chip:has(input:checked) .dash-widget-check::after {
    opacity: 1; transform: rotate(45deg) scale(1);
}
.dash-widget-chip:has(input:focus-visible) {
    outline: 2px solid #818CF8; outline-offset: 2px;
}
.dash-widget-label { line-height: 1; white-space: nowrap; }

.dash-quick { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.dash-trend {
    display: inline-block; font-size: 11px; font-weight: 800; min-height: 1.1em;
}
.dash-trend.is-up { color: #059669; }
.dash-trend.is-down { color: #DC2626; }
.dash-trend.is-flat { color: #94A3B8; }

.dash-activity { display: grid; gap: 5px; max-height: 260px; overflow: auto; }
.dash-act {
    display: flex; align-items: flex-start; gap: 8px; width: 100%;
    text-align: left; padding: 7px 9px; border-radius: 10px;
    border: 1px solid #E8E4F4; background: #FAFBFF; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dash-act:hover {
    border-color: #C4B5FD; box-shadow: 0 8px 16px rgba(83,74,183,.1); transform: translateY(-1px);
}
.dash-act-dot {
    width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
    background: #94A3B8;
}
.dash-act-search { background: #6366F1; }
.dash-act-crm { background: #7C3AED; }
.dash-act-calendar { background: #2563EB; }
.dash-act-email, .dash-act-mail { background: #2563EB; }
.dash-act-sms { background: #059669; }
.dash-act-whatsapp, .dash-act-wa { background: #16A34A; }
.dash-act-body { min-width: 0; }
.dash-act-body strong { display: block; font-size: 12.5px; color: #1E1B4B; }
.dash-act-body span { display: block; margin-top: 2px; font-size: 11px; color: #64748B; font-weight: 600; }

.dash-ox-row {
    display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center;
}
.dash-ox-donut-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.dash-ox-donut { width: 96px; height: 96px; }
.dash-ox-donut-center {
    position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
    pointer-events: none;
}
.dash-ox-donut-center strong { font-size: 15px; color: #1E1B4B; line-height: 1; }
.dash-ox-donut-center span { font-size: 10px; font-weight: 750; color: #64748B; text-transform: uppercase; }

.dash-week-box {
    margin: 0; padding: 12px 14px; border-radius: 12px;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    font-size: 12px; line-height: 1.55; color: #334155;
    white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    max-height: 280px; overflow: auto;
}
.dash-panel-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-crm-outline.sm { min-height: 28px; padding: 4px 10px; font-size: 11px; }

@media (max-width: 1100px) {
    .dash-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-ox-row { grid-template-columns: 1fr; }
    .dash-focus { grid-template-columns: 1fr; }
    .dash-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-week-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Localization / RTL ───────────────────────────────────────── */
.app-lang-slot,
.auth-lang-slot {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 10px;
}
.auth-lang-slot {
    position: fixed;
    top: 14px;
    inset-inline-end: 16px;
    z-index: 1400;
    margin: 0;
}
.auth-home-link {
    position: fixed;
    top: 14px;
    inset-inline-start: 16px;
    z-index: 1400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #F8FAFC;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.auth-home-link:hover {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    color: #fff;
}
.auth-home-inline {
    display: inline-flex;
    font-weight: 700;
}
.auth-footer + .auth-footer {
    margin-top: 8px;
}
@media (max-width: 900px) {
    .auth-home-link {
        background: rgba(255, 255, 255, 0.92);
        border-color: #E8E0F5;
        color: #4C1D95;
        box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
    }
    .auth-home-link:hover {
        background: #fff;
        color: #5B21B6;
    }
}
html[dir="rtl"] body,
body.rtl {
    text-align: start;
}
html[dir="rtl"] .sidebar,
html[dir="rtl"] .app-shell {
    direction: rtl;
}
html[dir="rtl"] .nav-switch,
html[dir="rtl"] .intel-action-row,
html[dir="rtl"] .logo-row {
    flex-direction: row-reverse;
}
html[dir="rtl"] .auth-input-wrap .auth-input {
    padding-inline-start: 42px;
    padding-inline-end: 14px;
}
html[dir="rtl"] .auth-input-icon {
    inset-inline-start: 12px;
    inset-inline-end: auto;
}
html[dir="rtl"] .f2g-lang-menu {
    inset-inline-end: auto;
    inset-inline-start: 0;
}
.lang-switch-row {
    display: flex;
    margin: 10px 0 2px;
}
.lang-switch-row .f2g-lang,
.lang-switch-row .f2g-lang-btn {
    width: 100%;
    justify-content: center;
}
/* Arabic script fallback fonts (app + auth) */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
    font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI Variable", "Segoe UI", system-ui, Tahoma, Arial, sans-serif;
}
/* Direction-sensitive chrome → logical equivalents in RTL */
html[dir="rtl"] .sidebar {
    border-right: none;
    border-inline-end: 1px solid var(--sidebar-border);
}
html[dir="rtl"] .sidebar-scroll {
    padding-right: 0;
    padding-inline-end: 2px;
}
html[dir="rtl"] .detail-panel {
    border-left: none;
    border-inline-start: 1px solid var(--border);
    box-shadow: 2px 0 20px rgba(0, 0, 0, .08);
}
html[dir="rtl"] .assistant-fab,
html[dir="rtl"] .assistant-panel {
    right: auto;
    inset-inline-end: 18px;
}
html[dir="rtl"] .assistant-msg.user {
    margin-left: 0;
    margin-inline-start: auto;
}
html[dir="rtl"] .modal,
html[dir="rtl"] .detail-modal,
html[dir="rtl"] .dashboard-view {
    direction: rtl;
    text-align: start;
}

/* Brand mark */
.logo-mark {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    object-fit: cover;
    background: transparent;
}
.logo-badge.logo-mark { padding: 0; overflow: hidden; background: transparent; }
.auth-brand-badge { padding: 0; overflow: hidden; background: transparent; border: none; }
.auth-brand-badge .logo-mark { width: 50px; height: 50px; }

/* Onboarding register */
.auth-card-wide { max-width: 440px; }
.onboard-steps {
    display: flex; gap: 8px; margin: 0 0 1.1rem;
}
.onboard-steps span {
    width: 28px; height: 28px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #94a3b8;
    border: 1px solid rgba(148,163,184,.35);
}
.onboard-steps span.is-active {
    color: #fff; background: var(--brand); border-color: var(--brand);
}
.onboard-panel { display: none; }
.onboard-panel.is-active { display: block; animation: onboardIn .28s ease; }
@keyframes onboardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.onboard-title {
    margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 700; color: #0f172a;
}
.onboard-lead {
    margin: 0 0 1rem; font-size: .9rem; color: var(--text-muted); line-height: 1.45;
}
.onboard-choices { display: grid; gap: 8px; }
.onboard-choice {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff;
    cursor: pointer; font-size: .92rem;
}
.onboard-choice:has(input:checked) {
    border-color: var(--brand); background: var(--brand-light);
}
.onboard-nav { display: flex; gap: 10px; margin-top: .25rem; }
.onboard-nav .auth-btn { flex: 1; }
.auth-btn-ghost {
    background: transparent !important; color: var(--text) !important;
    border: 1px solid var(--border) !important; box-shadow: none !important;
}
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 1rem 0 .85rem; color: #94a3b8; font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}
.auth-btn-google {
    display: flex !important; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border) !important;
    background: #fff !important; color: #111827 !important;
    font-weight: 600; text-decoration: none;
}
.auth-btn-google:hover { background: #f8fafc !important; }

/* Admin control */
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 28px 18px 48px; color: #e2e8f0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-brand { display: flex; gap: 12px; align-items: center; }
.admin-brand strong { display: block; font-size: 1.1rem; }
.admin-brand span { opacity: .7; font-size: .85rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 18px;
}
.admin-card-wide { grid-column: 1 / -1; }
.admin-card h2 { margin: 0 0 12px; font-size: 1rem; }
.admin-list { margin: 0; padding-left: 1.1rem; line-height: 1.7; }
.admin-plan { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.admin-table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 800px) {
    .admin-grid { grid-template-columns: 1fr; }
    .admin-card-wide { grid-column: auto; }
}

