@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   RADAR MS — V2  (Hub-style Indigo)
   Light é default; .theme-dark vira opt-in.
   ============================================================ */

:root {
    /* Primary brand — indigo (match com --accent inline) */
    --primary:        #444ce7;
    --primary-light:  #6168ec;
    --primary-dark:   #3036b5;
    --primary-dim:    rgba(68,76,231,0.10);
    --primary-glow:   rgba(68,76,231,0.18);
    --gradient:       linear-gradient(135deg, #3036b5 0%, #596bff 100%);

    /* Backgrounds — light institucional */
    --bg-root:        #FBFCFE;
    --bg-sidebar:     #FFFFFF;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F2F5FA;
    --bg-input:       #F8FAFC;
    --bg-elevated:    #F2F5FA;

    /* Borders */
    --border:         #E5E9F1;
    --border-focus:   #444ce7;
    --border-hover:   #C9D2E2;

    /* Text */
    --text-title:     #0B1325;
    --text-primary:   #2F3B55;
    --text-secondary: #4A5A75;
    --text-muted:     #6B7894;
    --text-disabled:  #9AA4BB;

    /* Semantic */
    --success:        #047857;
    --success-dim:    rgba(4,120,87,0.10);
    --error:          #B91C1C;
    --error-dim:      rgba(185,28,28,0.10);
    --warning:        #B45309;
    --warning-dim:    rgba(180,83,9,0.10);
    --info:           #2563EB;
    --info-dim:       rgba(37,99,235,0.10);

    /* Shadows */
    --shadow-sm:      0 1px 2px rgba(15,37,84,0.04);
    --shadow-md:      0 1px 2px rgba(15,37,84,0.04), 0 4px 16px rgba(15,37,84,0.06);
    --shadow-btn:     0 1px 2px rgba(68,76,231,0.18);
    --shadow-card:    0 1px 2px rgba(15,37,84,0.04);

    /* Radius */
    --r-sm:   8px;
    --r-md:  10px;
    --r-lg:  14px;

    /* Sidebar */
    --sidebar-w: 240px;

    /* Transition */
    --t: all 0.2s ease;
}

/* Dark theme (opt-in via .theme-dark) */
body.theme-dark {
    --primary:        #596bff;
    --primary-light:  #7a87ff;
    --primary-dark:   #444ce7;
    --primary-dim:    rgba(89,107,255,0.14);
    --primary-glow:   rgba(89,107,255,0.22);
    --gradient:       linear-gradient(135deg, #444ce7 0%, #596bff 100%);

    --bg-root:        #0B1220;
    --bg-sidebar:     #0F1729;
    --bg-card:        #131C2E;
    --bg-card-hover:  #1A2440;
    --bg-input:       #1A2440;
    --bg-elevated:    #1A2440;

    --border:         #1F2A44;
    --border-focus:   #596bff;
    --border-hover:   #2D3D5E;

    --text-title:     #F5F7FB;
    --text-primary:   #C5CFE0;
    --text-secondary: #B6C0D4;
    --text-muted:     #7A8AA8;
    --text-disabled:  #5A6680;

    --success:        #10B981;
    --success-dim:    rgba(16,185,129,0.14);
    --error:          #EF4444;
    --error-dim:      rgba(239,68,68,0.14);
    --warning:        #F59E0B;
    --warning-dim:    rgba(245,158,11,0.14);
    --info:           #3B82F6;
    --info-dim:       rgba(59,130,246,0.14);

    --shadow-sm:      0 1px 2px rgba(0,0,0,0.35);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.45);
    --shadow-btn:     0 1px 2px rgba(89,107,255,0.30);
    --shadow-card:    0 1px 0 rgba(255,255,255,0.03) inset;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    background: var(--bg-root);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.2s ease !important;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.v2-app { display: flex; height: 100vh; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.v2-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* User card no rodape do sidebar */
.v2-user-card {
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    flex-shrink: 0;
    position: relative;
}
.v2-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(68,76,231,.30);
}
.v2-user-info {
    flex: 1;
    min-width: 0;
}
.v2-user-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.v2-user-role {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 1px;
    text-transform: capitalize;
}
.v2-user-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
    flex-shrink: 0;
}
.v2-user-action:hover { background: var(--bg-card-hover); color: var(--text-title); }
.v2-user-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    right: 12px;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    padding: 4px;
    overflow: hidden;
}
.v2-user-menu.open { display: block; }
.v2-user-menu button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}
.v2-user-menu button:hover { background: var(--bg-card-hover); }
.v2-user-menu button.danger { color: var(--error); }
.v2-user-menu button.danger:hover { background: var(--error-dim); }
.v2-user-menu .menu-email {
    padding: 8px 12px 10px;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}

/* Brand */
.v2-sidebar-brand {
    padding: 20px 18px 16px;
    border-bottom: 1.5px solid var(--border);
    flex-shrink: 0;
}

.v2-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.v2-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-btn);
    flex-shrink: 0;
}

.v2-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.2px;
}
.v2-brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Search */
.v2-search-wrap { position: relative; }
.v2-search {
    width: 100%;
    padding: 9px 12px 9px 34px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-title);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: var(--t);
}
.v2-search:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.v2-search::placeholder { color: var(--text-muted); }
.v2-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
}
.v2-autocomplete {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

/* Nav */
.v2-nav {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1.5px solid var(--border);
}

.v2-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--t);
    text-align: left;
    width: 100%;
}
.v2-nav-item:hover {
    background: var(--primary-dim);
    color: var(--text-title);
}
.v2-nav-item.active {
    background: var(--primary-dim);
    color: var(--primary);
    font-weight: 700;
}
.v2-nav-item.active .v2-nav-icon { color: var(--primary); }
.v2-nav-item:focus,
.v2-nav-item:focus-visible {
    outline: none;
}
.v2-nav-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Tree */
.v2-tree { flex: 1; overflow-y: auto; padding: 10px; }

.v2-region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--r-sm);
    user-select: none;
    margin-top: 10px;
    transition: color 0.15s;
}
.v2-region-header:first-child { margin-top: 0; }
.v2-region-header:hover { color: var(--text-secondary); }

.region-chevron { font-size: 10px; transition: transform 0.2s; }
.region-content { overflow: hidden; transition: max-height 0.25s ease, opacity 0.2s; max-height: 2000px; opacity: 1; }
.region-content.region-collapsed { max-height: 0 !important; opacity: 0 !important; }

.v2-tree-item {
    padding: 7px 12px;
    border-radius: var(--r-sm);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--t);
    margin-bottom: 1px;
}
.v2-tree-item:hover { background: var(--primary-dim); color: var(--text-title); }
.v2-tree-item.active {
    background: var(--primary-dim);
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.v2-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-root);
}

.v2-content {
    padding: 0;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.v2-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.v2-page-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}
.v2-page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.v2-page-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}
.v2-page-subtitle span { color: var(--primary); font-weight: 700; }

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

.btn-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--t);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
}

.btn-danger-ghost {
    background: transparent;
    color: var(--error);
    border: 1.5px solid var(--border);
}
.btn-danger-ghost:hover {
    background: var(--error-dim);
    border-color: rgba(224,92,106,0.3);
}

.btn-sim {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    font-size: 12px;
}
.btn-sim.active {
    background: var(--primary-dim);
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================================
   KPI CARDS
   ============================================================ */
.v2-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.v2-kpi-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-sm), var(--shadow-card);
    transition: var(--t);
}
.v2-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-card);
}

.v2-kpi-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.v2-kpi-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.v2-kpi-icon.teal    { background: var(--primary-dim); color: var(--primary); }
.v2-kpi-icon.green   { background: var(--success-dim); color: var(--success); }
.v2-kpi-icon.blue    { background: var(--info-dim);    color: var(--info);    }
.v2-kpi-icon.orange  { background: var(--warning-dim); color: var(--warning); }

.v2-kpi-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}
.v2-kpi-value.teal   { color: var(--primary); }
.v2-kpi-value.green  { color: var(--success); }
.v2-kpi-value.red    { color: var(--error);   }

.v2-kpi-meta {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.v2-goal-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-title);
    font-size: 28px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: -1px;
    padding: 0;
    outline: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.v2-goal-input:focus { color: var(--primary); }

/* ============================================================
   PANELS
   ============================================================ */
.v2-panels {
    display: flex;
    gap: 14px;
    min-height: 520px;
    max-height: calc(100vh - 280px);
}

.v2-panel {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm), var(--shadow-card);
    transition: var(--t);
}
.v2-panel:hover { border-color: var(--border-hover); }

.v2-panel-leaders {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.v2-panel-map { flex: 1; position: relative; }

.v2-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1.5px solid var(--border);
    flex-shrink: 0;
}
.v2-panel-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.v2-panel-count {
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
}

.v2-leaders-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}
.v2-leaders-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Leader card */
.v2-leader-card {
    border-radius: var(--r-md);
    padding: 16px 18px;
    margin-bottom: 10px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--t);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: fadeUp 0.25s ease both;
}
.v2-leader-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(2px);
}
.v2-leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}
.v2-leader-info { flex: 1; min-width: 0; }
.v2-leader-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.v2-leader-meta {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.v2-leader-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

/* Badges */
.v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
}
.v2-badge-score-strong { background: var(--success-dim); color: var(--success); }
.v2-badge-score-medium { background: var(--warning-dim); color: var(--warning); }
.v2-badge-score-weak   { background: var(--error-dim);   color: var(--error);   }
.v2-badge-status-fechado    { background: var(--success-dim); color: var(--success); }
.v2-badge-status-negociacao { background: var(--warning-dim); color: var(--warning); }
.v2-badge-status-sondagem   { background: var(--primary-dim); color: var(--primary); }
.v2-badge-status-perdido    { background: var(--error-dim);   color: var(--error);   }

/* ============================================================
   MAP LEGEND
   ============================================================ */
.v2-map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    width: 168px;
    box-shadow: var(--shadow-md);
}
.v2-legend-section { margin-bottom: 10px; }
.v2-legend-section:last-child { margin-bottom: 0; }
.v2-legend-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1.5px solid var(--border);
}
.v2-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.v2-legend-item:last-child { margin-bottom: 0; }
.v2-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.v2-dot.green  { background: var(--success); }
.v2-dot.yellow { background: var(--warning); border: 1.5px dashed rgba(0,0,0,0.25); }
.v2-dot.large  { width: 11px; height: 11px; }

/* ============================================================
   BENTO GRID
   ============================================================ */
.v2-kpi-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.v2-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 14px;
}

.v2-bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 26px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
}
.v2-bento-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-card);
}

.v2-bento-chart { grid-column: span 2; grid-row: span 3; max-height: 70vh; display: flex; flex-direction: column; }
.v2-bento-chart #main-chart { flex: 1; overflow-y: auto; padding-right: 4px; }
.v2-bento-tall  { grid-row: span 2; }

.v2-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.v2-card-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -1px;
    line-height: 1;
}
.v2-card-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Chart header */
.v2-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.v2-tabs {
    display: inline-flex;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 3px;
    gap: 2px;
}
.v2-tab {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--t);
}
.v2-tab:hover { color: var(--text-primary); }
.v2-tab.active {
    background: var(--bg-card);
    color: var(--text-title);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
}

/* Bar Chart */
.radar-bar-item { margin-bottom: 14px; position: relative; }
.radar-bar-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; font-weight: 600; color: var(--text-secondary); }
.radar-bar-outer { height: 5px; background: var(--bg-input); border-radius: 3px; overflow: visible; display: flex; align-items: center; }
.radar-bar-inner { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 1s cubic-bezier(0.34,1.56,0.64,1); z-index: 1; }
.qe-line { position: absolute; left: 100%; top: -4px; bottom: -4px; width: 2px; background: var(--success); z-index: 2; border-radius: 2px; box-shadow: 0 0 5px var(--success); }

/* ============================================================
   MODAL — LEADER
   ============================================================ */
.v2-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.v2-modal {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    animation: fadeUp 0.22s ease;
}

.v2-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1.5px solid var(--border);
    flex-shrink: 0;
}
.v2-modal-title { font-size: 16px; font-weight: 800; color: var(--text-title); }
.v2-modal-sub   { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.v2-modal-close {
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
}
.v2-modal-close:hover { background: var(--bg-elevated); color: var(--text-title); }

.v2-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v2-modal-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1.5px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Form */
.v2-form-row { display: grid; gap: 12px; }
.v2-form-group { display: flex; flex-direction: column; gap: 6px; }

.v2-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.v2-label.required::after { content: ' *'; color: var(--primary); }

.v2-input, .v2-select, .v2-textarea {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-title);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 9px 12px;
    outline: none;
    transition: var(--t);
    width: 100%;
}
.v2-input:focus, .v2-select:focus, .v2-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.v2-input::placeholder, .v2-textarea::placeholder { color: var(--text-muted); }
.v2-input-votes {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    padding: 5px 10px;
}
.v2-input-large {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.v2-textarea { resize: none; line-height: 1.6; }
.v2-select { appearance: none; -webkit-appearance: none; cursor: pointer; color-scheme: dark; }
/* Força as opções do dropdown a ficarem no tema do app (evita fundo branco em dark mode) */
select option, .v2-select option {
    background: var(--bg-input);
    color: var(--text-title);
}
body:not(.theme-dark) select option, body:not(.theme-dark) .v2-select option {
    background: #fff;
    color: #1a1a1a;
}

.v2-form-divider { height: 1.5px; background: var(--border); margin: 2px 0; }
.v2-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.v2-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.v2-cep-row { display: flex; gap: 8px; }
.v2-cep-row .v2-input { flex: 1; }
.btn-cep {
    padding: 9px 14px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--t);
}
.btn-cep:hover { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); }

.v2-history {
    display: none;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
}
.v2-history-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--success);
    margin-bottom: 8px;
}
.v2-history-list { display: flex; flex-direction: column; gap: 6px; }

/* ============================================================
   MODAL — LEADER · HERO + TIERS (rebranding)
   ============================================================ */
.v2-modal--leader { max-width: 600px; }
.v2-modal--leader .ldr-header {
    padding: 18px 24px 16px;
    background:
        radial-gradient(circle at 0% 0%, var(--primary-dim) 0%, transparent 55%),
        var(--bg-card);
}
.v2-modal--leader .ldr-header-brand { display: flex; align-items: center; gap: 12px; }
.v2-modal--leader .ldr-header-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-btn);
    flex-shrink: 0;
}
.v2-modal--leader .ldr-title { font-size: 18px; letter-spacing: -0.2px; line-height: 1.15; }
.v2-modal--leader .ldr-sub { font-size: 11px; margin-top: 3px; letter-spacing: 0.2px; }

.v2-modal--leader .ldr-body { gap: 14px; padding: 18px 22px 22px; }

/* HERO BLOCK ---------------------------------------------------- */
.ldr-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-dim) 0%, transparent 70%), var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
}
.ldr-hero::before {
    content: '';
    position: absolute; inset: 0 auto 0 0;
    width: 3px; background: var(--gradient);
}
.ldr-hero-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    transition: var(--t);
}
.ldr-hero-avatar.has-initial {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px var(--primary-glow);
}
.ldr-hero-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 240px; }
.ldr-hero-name-wrap { display: flex; flex-direction: column; gap: 2px; }
.ldr-hero-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--primary);
}
.ldr-req { color: var(--primary); margin-left: 2px; }
.ldr-hero-name {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1.5px dashed var(--border) !important;
    border-radius: 0 !important;
    padding: 4px 0 6px !important;
    color: var(--text-title);
    width: 100% !important;
    box-sizing: border-box;
    min-width: 0;
}
.ldr-hero-name:focus {
    border-bottom-color: var(--primary) !important;
    box-shadow: none !important;
}
.ldr-hero-phone-wrap {
    position: relative;
    display: flex; align-items: center;
    width: 100%;
}
.ldr-hero-phone-icon {
    position: absolute; left: 10px;
    color: var(--text-muted);
    pointer-events: none;
    width: 14px; height: 14px;
}
.ldr-hero-phone {
    padding-left: 32px !important;
    font-size: 13px;
    background: var(--bg-input) !important;
    width: 100% !important;
    box-sizing: border-box;
}
.ldr-hero-votes {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px;
    padding: 10px 14px;
    background: var(--primary-dim);
    border: 1.5px solid var(--border-hover);
    border-radius: var(--r-md);
    min-width: 96px;
    cursor: text;
    flex-shrink: 0;
    box-sizing: border-box;
}
.ldr-hero-votes-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.7px; text-transform: uppercase;
    color: var(--primary);
}
.ldr-hero-votes-input {
    font-size: 30px !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px;
    color: var(--primary) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: center;
    line-height: 1;
    width: 100%;
}
.ldr-hero-votes-input:focus { box-shadow: none !important; }
.ldr-hero-votes-input::-webkit-outer-spin-button,
.ldr-hero-votes-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ldr-hero-votes-input[type=number] { -moz-appearance: textfield; }
.ldr-hero-votes-foot {
    font-size: 9px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* SECTIONS — cada uma é um mini-card pra criar hierarquia visual ---- */
.ldr-section {
    display: flex; flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.ldr-section-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--text-title);
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 1.5px solid var(--border);
    position: relative;
}
.ldr-section-head::before {
    content: ''; position: absolute;
    left: 0; bottom: -1.5px;
    width: 32px; height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}
.ldr-section-head .lc { width: 14px; height: 14px; color: var(--primary); }

.ldr-grid { display: grid; gap: 12px; }
.ldr-grid-1 { grid-template-columns: 1fr; }
.ldr-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.ldr-span-2 { grid-column: span 2; }

/* FOOTER -------------------------------------------------------- */
.v2-modal--leader .ldr-footer { padding: 16px 24px; }
.ldr-save {
    gap: 6px !important;
    box-shadow: var(--shadow-btn);
    padding-left: 18px !important;
    padding-right: 18px !important;
}
.ldr-save .lc { width: 14px; height: 14px; }

/* Responsivo ---------------------------------------------------- */
@media (max-width: 640px) {
    .ldr-hero-votes { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .ldr-hero-votes-input { font-size: 24px !important; text-align: right; }
    .ldr-grid-3 { grid-template-columns: 1fr 1fr; }
    .ldr-span-2 { grid-column: span 2; }
}

/* ============================================================
   MODAL — REPORT
   ============================================================ */
.v2-report-modal {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    animation: fadeUp 0.22s ease;
}
.v2-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1.5px solid var(--border);
}
.v2-report-title { font-size: 15px; font-weight: 800; color: var(--text-title); }
.v2-report-title span { color: var(--primary); }
.v2-report-terminal {
    background: #060d14;
    border: 1.5px solid var(--primary-dim);
    border-radius: var(--r-md);
    margin: 16px 24px;
    padding: 16px;
}
.v2-report-terminal pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    color: var(--success);
    line-height: 1.6;
    max-height: 360px;
    overflow-y: auto;
    white-space: pre-wrap;
}
.v2-report-footer { display: flex; gap: 8px; padding: 0 24px 20px; }

/* ============================================================
   CONFIRM DIALOG
   ============================================================ */
.v2-confirm {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px 24px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: fadeUp 0.2s ease;
}
.v2-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
    background: var(--error-dim);
    border: 1.5px solid rgba(224,92,106,0.2);
}
.v2-confirm-icon.warn { background: var(--warning-dim); border-color: rgba(240,160,75,0.2); }
.v2-confirm-icon.info { background: var(--primary-dim); border-color: var(--border-hover); }
.v2-confirm-title  { font-size: 16px; font-weight: 800; color: var(--text-title); text-align: center; }
.v2-confirm-msg    { font-size: 13px; font-weight: 500; color: var(--text-secondary); text-align: center; line-height: 1.6; max-width: 300px; }
.v2-confirm-actions { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.v2-confirm-cancel {
    flex: 1; padding: 11px; border-radius: var(--r-md);
    border: 1.5px solid var(--border); background: var(--bg-input);
    color: var(--text-muted); font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: var(--t);
}
.v2-confirm-cancel:hover { background: var(--bg-elevated); color: var(--text-title); }
.v2-confirm-ok {
    flex: 1; padding: 11px; border-radius: var(--r-md); border: none;
    background: var(--error); color: #fff;
    font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer; transition: var(--t);
}
.v2-confirm-ok:hover { filter: brightness(1.08); transform: translateY(-1px); }
.v2-confirm-ok.warn { background: var(--primary); }
.v2-confirm-ok.info { background: var(--primary); }

/* ============================================================
   INTEL OVERLAY
   ============================================================ */
.v2-intel-overlay {
    display: none;
    position: fixed;
    top: 0; left: var(--sidebar-w); right: 0; bottom: 0;
    background: rgba(9,13,20,0.97);
    z-index: 100;
    padding: 60px;
    backdrop-filter: blur(20px);
}
.v2-intel-close {
    position: absolute;
    top: 28px; right: 36px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--t);
}
.v2-intel-close:hover { color: var(--text-title); border-color: var(--primary); }

/* ============================================================
   MAP OVERLAY (full state view)
   ============================================================ */
.v2-map-overlay {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    width: 180px;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   LEAFLET OVERRIDES
   ============================================================ */
.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--r-md) !important;
    color: var(--text-title) !important;
    box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    padding: 8px 8px 0 0 !important;
}

/* ============================================================
   AUTOCOMPLETE
   ============================================================ */
.autocomplete-item {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--t);
    border-bottom: 1.5px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--primary-dim); color: var(--primary); }

/* ============================================================
   STRATEGY TEXTAREA
   ============================================================ */
#strategy-notes {
    flex: 1;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-title);
    padding: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    resize: none;
    margin-top: 10px;
    outline: none;
    transition: var(--t);
    line-height: 1.6;
}
#strategy-notes:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--primary-dim); }
#strategy-notes::placeholder { color: var(--text-muted); }

/* ============================================================
   FILTER SELECTS
   ============================================================ */
.v2-filter-select {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--r-md);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--t);
    appearance: none;
    -webkit-appearance: none;
}
.v2-filter-select:focus { border-color: var(--border-focus); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes simPulse {
    0%  { box-shadow: 0 0 0 0   var(--primary-glow); }
    70% { box-shadow: 0 0 0 8px transparent; }
    100%{ box-shadow: 0 0 0 0   transparent; }
}

.loading-overlay {
    position: absolute; inset: 0;
    background: rgba(9,13,20,0.65);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; border-radius: var(--r-lg);
}
.spinner {
    width: 26px; height: 26px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .v2-kpi-grid { grid-template-columns: 1fr 1fr; }
    .v2-bento-grid { grid-template-columns: 1fr 1fr; }
    .v2-bento-chart { grid-column: span 2; }
    .v2-bento-tall { grid-row: span 1; }
    .v2-panels { flex-direction: column; }
    .v2-panel-leaders { width: 100%; max-height: 300px; }
    .v2-kpi-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .v2-sidebar { display: none; }
    .v2-content { padding: 16px; }
    .v2-kpi-grid { grid-template-columns: 1fr; }
    .v2-bento-grid { grid-template-columns: 1fr; }
    .v2-bento-chart { grid-column: span 1; max-height: 50vh; }
    .v2-page-header { flex-direction: column; }
    .v2-kpi-grid-3 { grid-template-columns: 1fr; }
    #leaflet-map { height: 50vh !important; }
}

/* ============================================================
   DASHBOARD — Status da Campanha
   ============================================================ */

.dash-hero {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    position: relative;
}

.dash-hero-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dash-hero-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.dash-hero-headline {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.1;
    margin-bottom: 8px;
}

.dash-hero-headline-sub {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.dash-hero-divider {
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

.dash-insight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
}

.dash-refresh {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--t);
}
.dash-refresh:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* KPI Cards */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--t);
    box-shadow: var(--shadow-card);
}
.dash-kpi-card:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
}

.dash-kpi-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.dash-kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1;
    margin-bottom: 6px;
}
.dash-kpi-delta {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dash-kpi-delta.up   { color: var(--success); }
.dash-kpi-delta.down { color: var(--error); }
.dash-kpi-delta.zero { color: var(--text-muted); }

/* Linha mapa + atenção */
.dash-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}
@media (max-width: 900px) {
    .dash-row { grid-template-columns: 1fr; }
}

.dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.dash-panel-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Atenção */
.dash-attention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: var(--t);
}
.dash-attention-item:hover { background: var(--bg-card-hover); }
.dash-attention-item:last-child { border-bottom: none; }

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-attention-main {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}
.dash-attention-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Feed */
.dash-feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-secondary);
}
.dash-feed-item:last-child { border-bottom: none; }
.dash-feed-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 50px;
}

/* Skeleton */
@keyframes dash-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.8; }
}
.dash-skeleton {
    background: var(--bg-elevated);
    border-radius: var(--r-sm);
    animation: dash-pulse 1.5s infinite ease-in-out;
}

/* Foco visível (a11y) */
.dash-kpi-card:focus-visible,
.dash-attention-item:focus-visible,
.dash-refresh:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================================
   DASHBOARD V9 — Hub Pro layout (substitui o bloco antigo .dash-*)
   ============================================================ */

/* Crumb + header (compacto, hierarquia mais firme) */
.dash-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.dash-crumb b { color: var(--text-title); font-weight: 600; }
.dash-crumb-sep { color: var(--text-disabled); }

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 6px;
}
.dash-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.dash-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.dash-actions { display: flex; gap: 8px; }
.dash-btn-refresh i { transition: transform 0.3s; }
.dash-btn-refresh:active i { transform: rotate(180deg); }

/* Stats strip — 5 colunas horizontal */
.dash-strip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
@media (max-width: 1100px) {
    .dash-strip { grid-template-columns: 1fr 1fr 1fr; }
    .dash-stat-primary { grid-column: 1 / -1; }
}
.dash-stat-cell {
    padding: 22px 26px;
    border-right: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: 0.15s;
    border-top: none;
    border-bottom: none;
    border-left: none;
}
.dash-stat-cell:last-child { border-right: none; }
.dash-stat-cell:hover { background: var(--bg-elevated); }
.dash-stat-primary {
    background: linear-gradient(135deg, var(--primary-dim) 0%, transparent 100%);
}
.dash-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-stat-big {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 6px;
}
.dash-stat-val {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--text-title);
}
.dash-stat-frac {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}
.dash-stat-delta {
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dash-stat-delta.up   { color: var(--success); }
.dash-stat-delta.down { color: var(--error); }
.dash-stat-delta.zero { color: var(--text-muted); }

/* Insights bar */
.dash-insights-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 22px;
    margin-bottom: 14px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    flex-wrap: wrap;
}
.dash-insights-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-right: 14px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}
.dash-ins {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-primary);
    white-space: nowrap;
    padding: 4px 0;
}
.dash-ins b { color: var(--text-title); font-weight: 600; }
.dash-ins-ic {
    width: 26px; height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Alertas Prioritários ─── */
.dash-alerts {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.dash-alerts-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px 8px 0;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.dash-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: var(--r-md);
    flex: 1;
    min-width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.dash-alert-ic {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-alert-warn .dash-alert-ic { background: var(--warning-dim); color: var(--warning); }
.dash-alert-crit .dash-alert-ic { background: var(--error-dim); color: var(--error); }
.dash-alert-late .dash-alert-ic { background: var(--info-dim); color: var(--info); }
.dash-alert-info .dash-alert-ic { background: var(--info-dim); color: var(--info); }
.dash-alert-body { flex: 1; min-width: 0; }
.dash-alert-title { font-size: 12.5px; font-weight: 700; color: var(--text-title); line-height: 1.25; }
.dash-alert-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.dash-alert-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font: 600 11px 'Inter', sans-serif;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--t);
    flex-shrink: 0;
}
.dash-alert-cta:hover { border-color: var(--primary); color: var(--primary); }
.dash-alert-empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* ─── Hoje no Radar ─── */
.dash-today {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 18px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}
.dash-today-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.dash-today-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.01em;
}
.dash-today-sub {
    font-size: 11px;
    color: var(--text-muted);
}
.dash-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.dash-today-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--t);
}
.dash-today-card:hover:not(.is-disabled) {
    border-color: var(--primary);
    background: var(--bg-card);
}
.dash-today-card.is-disabled { opacity: 0.55; }
.dash-today-card-ic {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: var(--primary-dim);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.dash-today-card-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.dash-today-card-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    flex: 1;
}
.dash-today-card-cta {
    margin-top: 6px;
    background: transparent;
    border: 0;
    color: var(--primary);
    font: 700 11px 'Inter', sans-serif;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}
.dash-today-card-cta:hover:not(:disabled) { color: var(--primary-dark); }
.dash-today-card-cta:disabled { color: var(--text-disabled); cursor: not-allowed; }

/* ─── Cidades em Atencao: motivo + ver todas ─── */
.dash-att-motivo {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: italic;
}
.dash-att-foot {
    padding: 10px 12px 4px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}
.dash-att-all {
    background: transparent;
    border: 0;
    color: var(--primary);
    font: 700 11px 'Inter', sans-serif;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dash-att-all:hover { color: var(--primary-dark); }

/* ─── Mapa de Cobertura: preenche o card ─── */
.dash-panel-map {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
.dash-panel-map #dash-map-host {
    flex: 1;
    min-height: 320px;
    margin: 6px 0 10px;
    overflow: hidden;
    border-radius: var(--r-md);
}
.dash-panel-map #dash-map {
    width: 100%;
    height: 100%;
    min-height: 320px;
}
.dash-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}
.dash-lg { display: inline-flex; align-items: center; gap: 6px; }
.dash-lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ─── Atividade: filtros ─── */
.dash-feed-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.dash-feed-filter {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font: 600 11px 'Inter', sans-serif;
    padding: 5px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: var(--t);
}
.dash-feed-filter:hover { color: var(--text-title); border-color: var(--border-hover); }
.dash-feed-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Row mapa + atenção */
.dash-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 900px) {
    .dash-row { grid-template-columns: 1fr; }
}

/* Panel */
.dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-card);
}
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dash-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
    letter-spacing: -0.01em;
}
.dash-panel-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.dash-panel-tag {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Mapa legenda */
.dash-legend {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.dash-lg { display: inline-flex; align-items: center; gap: 6px; }
.dash-lg-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Atenção */
.dash-att-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background: transparent;
    border-left: none; border-right: none; border-top: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
}
.dash-att-row:last-child { border-bottom: none; }
.dash-att-num {
    font-size: 11px;
    color: var(--text-disabled);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dash-att-content { min-width: 0; }
.dash-att-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-title);
}
.dash-att-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.dash-att-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dash-att-pill.err  { background: var(--error-dim);   color: var(--error); }
.dash-att-pill.warn { background: var(--warning-dim); color: var(--warning); }

/* Sidebar nav sections (Inteligência / Operações / Admin) */
.v2-nav-section {
    font-size: 10px;
    color: var(--text-disabled);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 12px 6px;
}
.v2-nav-section:first-child { padding-top: 4px; }
.v2-nav-section-admin {
    /* Esconde label "Admin" quando os botões usuarios/historico estão hidden */
}
/* Se ambos nav-usuarios e nav-historico estão hidden, esconder o header também */
.v2-nav:has(#nav-usuarios[style*="display:none"]):has(#nav-historico[style*="display:none"]) .v2-nav-section-admin {
    display: none;
}

/* ============================================================
   PAINEL DE VOTOS — IDÊNTICO ao mockup painel-v2.html
   (paddings/espaçamentos preservados do original)
   ============================================================ */

.pv-crumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 6px;
}
.pv-crumb b { color: var(--text-title); font-weight: 600; }

.pv-h-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.pv-page-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-title);
}
.pv-page-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Layout: facets + main — EXATO do mockup v2 */
.pv-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
}
@media (max-width: 1000px) {
    .pv-layout { grid-template-columns: 1fr; }
}

/* Facets sidebar */
.pv-facets {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 28px;
}
.pv-facet-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.pv-facet-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.pv-facet-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pv-facet-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: 0.15s;
    margin-bottom: 2px;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-facet-item:hover { background: var(--bg-card-hover); }
.pv-facet-item.active {
    background: var(--primary-dim);
    color: var(--primary);
    font-weight: 700;
}
.pv-facet-item .count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-disabled);
    font-variant-numeric: tabular-nums;
}
.pv-facet-item.active .count { color: var(--primary); }
.pv-facet-radio {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--border-hover);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.pv-facet-item.active .pv-facet-radio { border-color: var(--primary); }
.pv-facet-item.active .pv-facet-radio::after {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.pv-facet-search {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px 7px 30px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-title);
    outline: none;
    margin-bottom: 10px;
}
.pv-facet-search:focus { border-color: var(--primary); background: var(--bg-card); }

/* Main */
.pv-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* KPI row — EXATO do mockup v2 */
.pv-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.pv-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.pv-kpi-lbl {
    font-size: 10px; color: var(--text-muted);
    font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pv-kpi-val {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-title);
    font-variant-numeric: tabular-nums;
}

/* Panel */
.pv-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pv-panel-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Tabs segmented control */
.pv-tabs-bar {
    background: var(--bg-elevated);
    padding: 4px;
    border-radius: 10px;
    display: inline-flex;
    gap: 2px;
}
.pv-tab {
    background: transparent;
    border: none;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 7px;
    transition: 0.15s;
}
.pv-tab:hover { color: var(--text-title); }
.pv-tab.active {
    background: var(--bg-card);
    color: var(--text-title);
    box-shadow: var(--shadow-sm);
}

/* Split candidatos + partidos */
.pv-split {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
}
@media (max-width: 1100px) {
    .pv-split { grid-template-columns: 1fr; }
}
.pv-split > div { border-right: 1px solid var(--border); min-width: 0; }
.pv-split > div:last-child { border-right: none; }
@media (max-width: 1100px) {
    .pv-split > div { border-right: none; border-bottom: 1px solid var(--border); }
    .pv-split > div:last-child { border-bottom: none; }
}

.pv-section-title {
    padding: 14px 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

/* Rank item — candidato (EXATO do mockup v2) */
.pv-rank-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background: transparent;
    border-left: none; border-right: none; border-top: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.pv-rank-item:last-child { border-bottom: none; }
.pv-rank-item:hover { background: var(--bg-card-hover); }
.pv-rank-pos {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 800;
    color: var(--text-disabled);
    font-variant-numeric: tabular-nums;
}
.pv-rank-name { font-size: 13px; font-weight: 700; color: var(--text-title); }
.pv-rank-meta {
    font-size: 11px; color: var(--text-muted);
    margin-top: 2px;
    display: flex; gap: 8px; align-items: center;
}
.pv-rank-party {
    padding: 2px 7px; border-radius: 4px;
    font-size: 9.5px; font-weight: 800;
    background: var(--primary-dim); color: var(--primary);
    letter-spacing: 0.05em;
}
.pv-rank-votes {
    font-size: 14px; font-weight: 800;
    color: var(--text-title);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.pv-rank-pct {
    font-size: 10.5px; color: var(--text-muted);
    margin-top: 2px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.pv-rank-elected {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px; font-weight: 800;
    background: var(--success-dim); color: var(--success);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Party row (EXATO do mockup v2) */
.pv-party-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.pv-party-row:last-child { border-bottom: none; }
.pv-party-row:hover { background: var(--bg-card-hover); }
.pv-party-name { font-size: 13px; font-weight: 700; color: var(--text-title); }
.pv-party-votes { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pv-party-pct {
    font-size: 14px; font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.pv-party-bar {
    grid-column: 1 / -1;
    height: 3px; margin-top: 6px;
    background: var(--bg-elevated);
    border-radius: 99px;
    overflow: hidden;
}
.pv-party-bar-fill { height: 100%; background: var(--primary); }

/* Reset containers populados pelo app.js */
#main-chart, #party-list-container {
    padding: 0;
    display: block;
    gap: 0;
}

/* ============================================================
   CRM TERRITORIAL — IDÊNTICO ao mockup crm-v1.html
   ============================================================ */

/* Crumb + Header (igual C1 .crumb / .h-row) */
.crm-crumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 4px;
}
.crm-crumb b { color: var(--text-title); font-weight: 600; }

.crm-h-row {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.crm-page-title {
    font-size: 26px; font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.02em; line-height: 1.1;
}
.crm-page-sub {
    font-size: 13px; color: var(--text-muted); margin-top: 4px;
}
.crm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ========== KPI strip (igual C1 .kpi-strip) ========== */
.crm-kpi-strip {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.crm-kpi { padding: 22px 26px; border-right: 1px solid var(--border); }
.crm-kpi:last-child { border-right: none; }
.crm-kpi.primary { background: linear-gradient(135deg, var(--primary-dim) 0%, transparent 100%); }
.crm-kpi-lbl {
    font-size: 10px; color: var(--text-muted); font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.crm-kpi-val {
    font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--text-title);
}
.crm-kpi-val.indigo { color: var(--primary); }
.crm-kpi-val.red    { color: var(--error); }
.crm-kpi-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.crm-kpi-input {
    width: 100%; background: transparent; border: none;
    font: 800 30px 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1;
    color: var(--text-title); padding: 0;
    font-variant-numeric: tabular-nums; outline: none;
}
.crm-kpi-input:focus { color: var(--primary); }

/* ========== Toolbar (igual C1 .toolbar) ========== */
.crm-toolbar {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 16px; margin-bottom: 14px;
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.crm-search-wrap { position: relative; }
.crm-search-wrap > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.crm-search {
    background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px;
    padding: 7px 10px 7px 30px; font: 12.5px inherit;
    color: var(--text-title); outline: none; width: 240px;
}
.crm-search:focus { border-color: var(--primary); background: var(--bg-card); }
.crm-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ========== Progresso (igual C1 .prog) ========== */
.crm-prog {
    padding: 14px 20px;
    margin-bottom: 14px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-sm);
    display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
    gap: 16px; align-items: center;
}
#crm-view-mapa > .crm-panel:first-child { padding: 0; background: transparent; border: none; box-shadow: none; }
#crm-view-mapa > .crm-panel:first-child > .crm-prog { margin-bottom: 14px; }
.crm-prog-cell { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.crm-prog-cell b {
    color: var(--text-title); font-size: 16px; font-weight: 800;
    font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
    display: block; margin-top: 4px;
}
.crm-prog-bar { height: 8px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; }
.crm-prog-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 99px; transition: width 0.6s ease;
}

/* ========== Main: mapa + sidebar (igual C1 .main + .panel) ========== */
.crm-main {
    display: grid; grid-template-columns: 1fr 360px; gap: 14px;
    align-items: stretch;
}
.crm-main > .crm-panel { min-height: 0; }
@media (max-width: 1000px) { .crm-main { grid-template-columns: 1fr; } }

.crm-panel {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.crm-panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.crm-panel-title { font-size: 13.5px; font-weight: 700; color: var(--text-title); }
.crm-panel-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.crm-panel-tag {
    font-size: 10px; color: var(--text-muted);
    background: var(--bg-elevated); padding: 4px 8px;
    border-radius: 6px; border: 1px solid var(--border);
    font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Lista de lideranças (igual C1 .lid-list / .lid-card) */
.crm-lid-list { padding: 10px; max-height: 580px; overflow-y: auto; }
.crm-lid-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 12.5px; }

/* View Toggle (segmented control) */
.crm-view-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: 10px;
    display: inline-flex;
    gap: 2px;
}
.crm-view-btn {
    background: transparent;
    border: none;
    padding: 7px 12px;
    font: 600 12.5px inherit;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 7px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: 0.15s;
}
.crm-view-btn:hover { color: var(--text-title); }
.crm-view-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Container das views */
.crm-view { display: none; }
.crm-view.active { display: block; }

/* ========== View: KANBAN ========== */
.crm-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) { .crm-kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .crm-kanban { grid-template-columns: 1fr; } }

.crm-kb-col {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    min-height: 500px;
    display: flex; flex-direction: column;
}
.crm-kb-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.crm-kb-title {
    font-size: 12.5px; font-weight: 700; color: var(--text-title);
    display: flex; align-items: center; gap: 8px;
}
.crm-kb-dot { width: 8px; height: 8px; border-radius: 50%; }
.crm-kb-dot.son { background: var(--text-muted); }
.crm-kb-dot.neg { background: var(--warning); }
.crm-kb-dot.fec { background: var(--success); }
.crm-kb-dot.per { background: var(--error); }
.crm-kb-count {
    font-size: 11px; font-weight: 800; color: var(--text-muted);
    background: var(--bg-card); padding: 3px 9px; border-radius: 99px;
    border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.crm-kb-cards { display: flex; flex-direction: column; gap: 8px; }
.crm-kb-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: var(--shadow-sm);
}
.crm-kb-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.crm-kb-card-name { font-size: 13.5px; font-weight: 700; color: var(--text-title); }
.crm-kb-card-city { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.crm-kb-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 8px; margin-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 11px; color: var(--text-muted);
}
.crm-kb-card-votes {
    font-weight: 800; color: var(--primary);
    font-variant-numeric: tabular-nums; font-size: 13px;
}
.crm-kb-force {
    font-size: 9.5px; font-weight: 800;
    padding: 2px 7px; border-radius: 5px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.crm-kb-force.forte { background: var(--success-dim); color: var(--success); }
.crm-kb-force.medio { background: var(--warning-dim); color: var(--warning); }
.crm-kb-force.fraco { background: var(--error-dim); color: var(--error); }
.crm-kb-empty {
    padding: 20px 12px; text-align: center;
    color: var(--text-disabled); font-size: 12px;
}

/* ========== View: LISTA ========== */
.crm-list-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.crm-list-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.crm-list-title { font-size: 14px; font-weight: 700; }
.crm-list-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.crm-list-tablewrap { max-height: calc(100vh - 380px); overflow-y: auto; }
.crm-list-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.crm-list-table thead th {
    background: var(--bg-elevated);
    padding: 10px 18px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); text-align: left;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
}
.crm-list-table thead th.r { text-align: right; }
.crm-list-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.crm-list-table tbody tr { cursor: pointer; transition: 0.1s; }
.crm-list-table tbody tr:hover { background: var(--bg-card-hover); }
.crm-list-table tbody tr:last-child td { border-bottom: none; }
.crm-list-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.crm-list-table td.pos {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-disabled); font-weight: 700; font-size: 11px;
}
.crm-list-table td.name { font-weight: 700; color: var(--text-title); }
.crm-list-table td.votes { font-weight: 800; color: var(--text-title); }
.crm-list-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--primary-dim); color: var(--primary);
    font-weight: 800; font-size: 11px; margin-right: 10px;
    vertical-align: middle;
}
.crm-list-tag {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 5px;
    font-size: 9.5px; font-weight: 800;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.crm-list-tag.son { background: var(--bg-elevated); color: var(--text-muted); }
.crm-list-tag.neg { background: var(--warning-dim); color: var(--warning); }
.crm-list-tag.fec { background: var(--success-dim); color: var(--success); }
.crm-list-tag.per { background: var(--error-dim); color: var(--error); }
.crm-list-tag.forte { background: var(--success-dim); color: var(--success); }
.crm-list-tag.medio { background: var(--warning-dim); color: var(--warning); }
.crm-list-tag.fraco { background: var(--error-dim); color: var(--error); }
.crm-list-tag.dobra { background: var(--primary-dim); color: var(--primary); margin-left: 6px; }

/* Reduzir borda dos bento-cards do CRM pra alinhar com C1 */
#view-crm .v2-bento-card { border-width: 1px; box-shadow: var(--shadow-sm); }
#view-crm .v2-panel { border-width: 1px; box-shadow: var(--shadow-sm); }

/* Liderança card (igual C1 .lid-card) */
.crm-lid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.15s;
}
.crm-lid-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.crm-lid-card.active { border-color: var(--primary); background: var(--primary-dim); }
.crm-lid-head { display: flex; justify-content: space-between; align-items: start; }
.crm-lid-name { font-size: 13.5px; font-weight: 700; color: var(--text-title); }
.crm-lid-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.crm-lid-tag {
    font-size: 9.5px; font-weight: 800; padding: 2px 6px;
    border-radius: 4px; letter-spacing: 0.03em; text-transform: uppercase;
}
.crm-lid-tag.dobra { background: var(--primary-dim); color: var(--primary); }
.crm-lid-force {
    display: flex; flex-direction: column; align-items: end;
    font-size: 10px; color: var(--text-muted); font-weight: 700;
}
.crm-lid-force-val {
    font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.crm-lid-force-val.forte { color: var(--success); }
.crm-lid-force-val.medio { color: var(--warning); }
.crm-lid-force-val.fraco { color: var(--error); }
.crm-lid-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.crm-lid-city { color: var(--text-primary); font-weight: 600; }
.crm-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.crm-status-dot.sondagem { background: var(--text-disabled); }
.crm-status-dot.negoc { background: var(--warning); }
.crm-status-dot.fechado { background: var(--success); }
.crm-status-dot.perdido { background: var(--error); }

/* CRM Pipeline pills (igual mockup C1 .pill) */
.crm-pill {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 99px;
    font: 700 11.5px inherit;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: 0.15s;
}
.crm-pill:hover {
    border-color: var(--border-hover);
}
.crm-pill.active {
    background: var(--primary-dim);
    color: var(--primary);
    border-color: rgba(68,76,231,0.2);
}
.crm-pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.crm-pill-dot.sondagem { background: var(--text-muted); }
.crm-pill-dot.negoc    { background: var(--warning); }
.crm-pill-dot.fechado  { background: var(--success); }
.crm-pill-dot.perdido  { background: var(--error); }
.crm-pill-n {
    background: rgba(0,0,0,0.04);
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
}
body.theme-dark .crm-pill-n { background: rgba(255,255,255,0.06); }
.crm-pill.active .crm-pill-n {
    background: rgba(68,76,231,0.15);
    color: var(--primary);
}


/* ════════════════════════════════════════════════════════════
   Plano de Campo
   ════════════════════════════════════════════════════════════ */
.pc-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font: 600 12.5px Inter, sans-serif;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: var(--t);
}
.pc-tab:hover { color: var(--text-title); }
.pc-tab.active { background: var(--primary); color: #fff; }

.pc-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.pc-kpi-lbl { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pc-kpi-val { font-size: 22px; font-weight: 900; color: var(--text-title); letter-spacing: -0.02em; margin-top: 4px; line-height: 1; }
.pc-kpi-sub { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.pc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.pc-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pc-card-title { font-size: 13.5px; font-weight: 800; color: var(--text-title); letter-spacing: -0.01em; }
.pc-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Tabela */
.pc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pc-table thead th {
    background: var(--bg-elevated);
    padding: 9px 12px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.pc-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pc-table tbody tr:last-child td { border-bottom: none; }
.pc-table tbody tr:hover { background: var(--bg-card-hover); }

/* Status pills */
.pc-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9.5px; font-weight: 800;
    padding: 3px 9px; border-radius: 99px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.pc-pill.s-critica   { background: var(--error-dim);   color: var(--error); }
.pc-pill.s-atrasada  { background: var(--warning-dim); color: var(--warning); }
.pc-pill.s-no-caminho{ background: var(--info-dim);    color: var(--info); }
.pc-pill.s-acima     { background: var(--success-dim); color: var(--success); }
.pc-pill.s-pendente  { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.pc-pill.s-em_andamento { background: var(--info-dim); color: var(--info); }
.pc-pill.s-concluida { background: var(--success-dim); color: var(--success); }
.pc-pill.s-cancelada { background: var(--bg-elevated); color: var(--text-disabled); text-decoration: line-through; }
.pc-pill.p-urgente { background: var(--error-dim); color: var(--error); }
.pc-pill.p-alta    { background: var(--warning-dim); color: var(--warning); }
.pc-pill.p-media   { background: var(--info-dim); color: var(--info); }
.pc-pill.p-baixa   { background: var(--bg-elevated); color: var(--text-muted); }

.pc-tipo-icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-dim); color: var(--primary);
    flex-shrink: 0;
}

.pc-row-actions { display: inline-flex; gap: 4px; }
.pc-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px 6px;
    border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
}
.pc-icon-btn:hover { background: var(--bg-card-hover); color: var(--text-title); }
.pc-icon-btn.danger:hover { background: var(--error-dim); color: var(--error); }
.pc-icon-btn.success:hover { background: var(--success-dim); color: var(--success); }

/* Modal */
.pc-modal-lbl {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}
.pc-modal-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-title);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--t);
}
.pc-modal-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

/* Região card */
.pc-region-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pc-region-name { font-size: 13px; font-weight: 800; color: var(--text-title); letter-spacing: -0.01em; }
.pc-region-meta { font-size: 11px; color: var(--text-muted); }
.pc-region-pct { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.pc-region-bar { height: 5px; border-radius: 99px; background: var(--bg-input); overflow: hidden; margin-top: 4px; }
.pc-region-bar > div { height: 100%; border-radius: 99px; }

/* Agenda */
.pc-agenda-day {
    display: flex; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.pc-agenda-day:last-child { border-bottom: none; }
.pc-agenda-date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 8px 4px;
}
.pc-agenda-date-day { font-size: 18px; font-weight: 900; color: var(--text-title); line-height: 1; }
.pc-agenda-date-month { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.pc-agenda-items { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* Roteiro semanal */
.pc-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pc-week-day {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex; flex-direction: column; gap: 5px;
    min-height: 140px;
}
.pc-week-day-header { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pc-week-day.today { border-color: var(--primary); background: var(--primary-dim); }
.pc-week-day.today .pc-week-day-header { color: var(--primary); }
.pc-week-event {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.3;
}
.pc-week-event:hover { border-color: var(--primary); }
.pc-week-event-time { font-size: 9.5px; color: var(--text-muted); font-weight: 700; }

.pc-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12.5px;
}
.pc-inline-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 4px 6px;
    color: var(--text-title);
    font-family: inherit;
    font-size: 12px;
    cursor: text;
}
.pc-inline-input:hover { border-color: var(--border); background: var(--bg-input); }
.pc-inline-input:focus { border-color: var(--primary); outline: none; background: var(--bg-input); }

