:root {
    --bg-1: #f2eef8;
    --bg-2: #fcfaff;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-soft: rgba(247, 242, 251, 0.9);
    --ink-1: #281f39;
    --ink-2: #766d89;
    --brand: #5f438d;
    --brand-2: #8b68c3;
    --accent: #b989d2;
    --line: rgba(40, 31, 57, 0.09);
    --shadow-lg: 0 30px 80px rgba(37, 25, 57, 0.14);
    --shadow-md: 0 16px 36px rgba(37, 25, 57, 0.1);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.login-minimal-bg {
    background:
    radial-gradient(circle at 12% 18%, rgba(216, 111, 65, 0.16) 0, rgba(216, 111, 65, 0) 36%),
    radial-gradient(circle at 86% 14%, rgba(53, 109, 154, 0.16) 0, rgba(53, 109, 154, 0) 36%),
    linear-gradient(180deg, #faf6ef 0%, #f2eadf 100%);
}

.login-minimal-shell {
    width: min(100%, 460px);
    margin: clamp(8vh, 10vh, 12vh) auto 0;
}

.login-minimal-card {
    position: relative;
    overflow: hidden;
}

.login-minimal-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
    radial-gradient(circle at 90% 8%, rgba(53, 109, 154, 0.14) 0, rgba(53, 109, 154, 0) 36%),
    radial-gradient(circle at 12% 92%, rgba(216, 111, 65, 0.12) 0, rgba(216, 111, 65, 0) 38%);
}

.login-minimal-inner {
    position: relative;
    display: grid;
    gap: 18px;
}

.login-minimal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #173149;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.login-minimal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5f89, #d86f41);
    box-shadow: 0 0 0 5px rgba(42, 95, 137, 0.15);
}

.login-minimal-form {
    display: grid;
    gap: 14px;
}

.login-minimal-form .btn-primary {
    margin-top: 2px;
    min-height: 44px;
}

.login-pro-bg {
    min-height: 100vh;
    background:
    radial-gradient(circle at 12% 12%, rgba(26, 118, 188, 0.16) 0, rgba(26, 118, 188, 0) 36%),
    radial-gradient(circle at 88% 10%, rgba(16, 160, 144, 0.16) 0, rgba(16, 160, 144, 0) 34%),
    linear-gradient(180deg, #eef3f9 0%, #e7edf6 100%);
    padding: clamp(28px, 6vh, 64px) 16px;
}

.login-pro-shell {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.login-pro-card {
    background: #ffffff;
    border: 1px solid rgba(28, 49, 74, 0.09);
    border-radius: 26px;
    box-shadow: 0 28px 52px rgba(18, 33, 52, 0.16);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 580px;
}

.login-pro-side {
    position: relative;
    padding: clamp(30px, 5vw, 54px);
    background:
    radial-gradient(circle at 85% 8%, rgba(106, 191, 255, 0.2) 0, rgba(106, 191, 255, 0) 42%),
    linear-gradient(145deg, #0f2940 0%, #154166 52%, #106b87 118%);
    color: #f0f7ff;
    display: grid;
    gap: 28px;
    align-content: start;
}

.login-pro-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.login-pro-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6dd6ff, #27d2b0);
    box-shadow: 0 0 0 5px rgba(109, 214, 255, 0.2);
}

.login-pro-copy h1 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.48rem, 2.4vw, 2.24rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.login-pro-copy p {
    margin: 12px 0 0;
    color: rgba(232, 245, 255, 0.88);
    font-size: 0.98rem;
    max-width: 40ch;
}

.login-pro-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.login-pro-metrics article {
    border: 1px solid rgba(210, 236, 255, 0.3);
    border-radius: 14px;
    padding: 11px;
    background: linear-gradient(160deg, rgba(219, 240, 255, 0.1), rgba(219, 240, 255, 0));
}

.login-pro-metrics span {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(221, 241, 255, 0.78);
}

.login-pro-metrics strong {
    display: block;
    margin-top: 4px;
    color: #f6fbff;
    font-size: 0.95rem;
}

.login-pro-main {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    padding: clamp(30px, 4.5vw, 52px);
    display: grid;
    gap: 18px;
    align-content: center;
}

.login-pro-main-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.login-pro-main-head h2 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    color: #17314c;
    font-size: clamp(1.28rem, 2vw, 1.78rem);
}

.login-pro-main-head span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #62819d;
    font-weight: 700;
}

.login-pro-form {
    display: grid;
    gap: 14px;
}

.login-pro-input-wrap {
    position: relative;
}

.login-pro-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #68809c;
    pointer-events: none;
}

.login-pro-input-wrap .form-control {
    padding-left: 38px;
    border-radius: 11px;
    min-height: 46px;
}

.login-pro-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #546a84;
}

.login-pro-password-toggle:hover {
    background: rgba(84, 106, 132, 0.1);
}

.login-pro-form .btn-primary {
    min-height: 46px;
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-bg {
    position: relative;
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-userbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-page {
    animation: rise-in 360ms ease-out;
}

@keyframes rise-in {
    from {
    opacity: 0;
    transform: translateY(12px);
    }

    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.astra-app .btn-outline-light {
    border-color: rgba(230, 244, 255, 0.6);
}

.login-hero h2 {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 2.7vw, 2.35rem);
    line-height: 1.15;
}

.login-hero p {
    margin: 14px 0 0;
    color: rgba(235, 247, 255, 0.9);
    max-width: 46ch;
}

.motif-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.motif-grid span {
    display: block;
    height: 54px;
    border-radius: 10px;
    border: 1px solid rgba(220, 241, 255, 0.26);
    background: linear-gradient(180deg, rgba(214, 242, 255, 0.16), rgba(214, 242, 255, 0.02));
}

.login-kicker {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #1a628f;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

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

.metric-strip-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.table {
    margin-bottom: 0;
}

.table-modern tbody td {
    border-color: #e3ecf5;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.table-compact tbody td,
.table-compact thead th {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: #f8fbff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

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

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

.client-left,
.client-center,
.client-right {
    min-height: 220px;
}

.client-left,
.client-right {
    position: sticky;
    top: 88px;
}

.timeline-wrap {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

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

.audit-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.audit-card strong {
    display: block;
    color: #2a4e68;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.digital-asset-list {
    display: grid;
    gap: 12px;
}

.digital-asset-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.digital-asset-card h4 {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: #133f5d;
    font-size: 0.98rem;
}

.digital-asset-card iframe {
    width: 100%;
    min-height: 280px;
    border: 0;
    background: #eef4fb;
}

.detail-item strong {
    display: block;
    color: #39546c;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-item p {
    margin: 6px 0 0;
}

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

.timeline li {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.timeline small {
    color: #667b8f;
}

.progress-stack {
    display: grid;
    gap: 16px;
}

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

.quick-action-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(14, 39, 62, 0.16);
}

.quick-action-card h3 {
    margin: 0 0 6px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: #14425f;
    font-size: 1.1rem;
}

.quick-action-card p {
    margin: 0;
    color: #5f7386;
}

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

.chart-box {
    width: 100%;
    min-height: 280px;
}

.chart-box-wide {
    min-height: 320px;
}

.map-sidebar {
    height: 70vh;
    min-height: 540px;
}

.map-canvas-wrap {
    min-height: 540px;
}

.crm-map {
    height: 70vh;
    min-height: 540px;
    border-radius: var(--radius-xl);
}

.map-list {
    max-height: calc(70vh - 220px);
    overflow: auto;
    display: grid;
    gap: 8px;
}

.map-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(22, 43, 68, 0.12);
    border-color: #bfd4e7;
}

.map-list-item strong {
    display: block;
    color: #163d58;
    font-size: 0.92rem;
}

.map-list-item small {
    display: block;
    color: #607488;
}

@media (max-width: 992px) {
    .login-pro-card {
    grid-template-columns: 1fr;
    min-height: 0;
    }

    .login-pro-side {
    gap: 18px;
    }

    .login-pro-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-page {
    grid-template-columns: 1fr;
    }

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

    .metric-strip-5,
    .metric-strip-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-grid {
    grid-template-columns: 1fr;
    }

    .quick-actions-grid,
    .map-layout,
    .charts-grid {
    grid-template-columns: 1fr;
    }

    .client-profile-layout {
    grid-template-columns: 1fr;
    }

    .client-left,
    .client-right {
        position: static;
        top: auto;
    }

    .audit-grid {
        grid-template-columns: 1fr;
    }

    .client-table-toolbar {
    grid-template-columns: 1fr;
    }

    .toolbar-actions-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .map-sidebar,
    .crm-map,
    .map-canvas-wrap {
    min-height: 420px;
    height: 60vh;
    }

    .captador-workspace,
    .vendor-overview,
    .todo-board,
    .focus-data-grid {
    grid-template-columns: 1fr;
    }

    .role-hero {
    flex-direction: column;
    align-items: start;
    }

    .workspace-topbar,
    .role-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-topbar {
        align-items: flex-start;
    }

    .captador-workspace,
    .vendor-overview,
    .todo-board,
    .focus-data-grid,
    .charts-grid,
    .lead-intro-grid,
    .map-layout,
    .client-profile-layout {
        grid-template-columns: 1fr;
    }

    .metric-strip,
    .metric-strip-4,
    .metric-strip-5,
    .metric-strip-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar-density-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .lead-intro-grid,
    .vendor-overview,
    .todo-board,
    .captador-workspace,
    .client-profile-layout,
    .focus-data-grid {
        grid-template-columns: 1fr;
    }

    .version-choice-grid,
    .beta-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-pro-bg {
    padding-top: 16px;
    padding-bottom: 20px;
    }

    .login-pro-side,
    .login-pro-main {
    padding: 20px;
    }

    .login-pro-metrics {
    grid-template-columns: 1fr;
    }

    .login-pro-main-head {
    flex-direction: column;
    align-items: flex-start;
    }

    .app-header-inner {
    min-height: 66px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    }

    .app-userbox {
    width: 100%;
    justify-content: space-between;
    }

    .page-heading h1 {
        font-size: 1.7rem;
    }

    .metric-strip {
    grid-template-columns: 1fr;
    }

    .metric-strip-5,
    .metric-strip-3 {
    grid-template-columns: 1fr;
    }

    .kanban-board,
    .charts-grid,
    .client-profile-layout {
    grid-template-columns: 1fr;
    }

    .captador-workspace {
    grid-template-columns: 1fr;
    }

    .queue-panel,
    .focus-panel {
    min-height: auto;
    }

    .focus-meta,
    .big-action-row {
    width: 100%;
    justify-content: stretch;
    }

    .big-action-row .btn {
        flex: 1 1 100%;
    }

    .chat-message {
        max-width: 100%;
    }

    .workspace-chip,
    .workspace-role-badge {
        min-height: 36px;
        font-size: 0.75rem;
        padding: 0 12px;
    }

    .metric-strip,
    .metric-strip-4,
    .metric-strip-5,
    .metric-strip-3,
    .kanban-board,
    .lead-intro-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .big-action-row,
    .focus-meta {
        width: 100%;
    }

    .client-card-grid {
        grid-template-columns: 1fr;
    }

    .opportunity-card-top,
    .opportunity-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .toolbar-view-switch {
        width: 100%;
        justify-content: space-between;
    }

    .view-switch-btn {
        flex: 1 1 0;
    }

    .metric-strip,
    .charts-grid,
    .kanban-board,
    .lead-intro-grid {
        grid-template-columns: 1fr;
    }

    .client-left,
    .client-right {
        position: static;
        top: auto;
    }

    .workspace-version-switch {
        min-height: 36px;
        font-size: 0.72rem;
        padding: 0 11px;
    }
}

.app-header {
    background: rgba(255, 251, 245, 0.86);
    border-bottom: 1px solid rgba(38, 57, 84, 0.1);
    backdrop-filter: blur(18px);
}

.astra-app .btn-outline-secondary {
    border-color: rgba(28, 59, 88, 0.16);
    color: #173149;
}

.detail-item {
    background: rgba(255, 255, 255, 0.72);
}

.role-hero p {
    margin: 0;
    max-width: 56ch;
    color: rgba(255, 249, 243, 0.86);
}

.hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 250, 245, 0.84);
}

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

.queue-panel,
.focus-panel {
    min-height: 620px;
}

.queue-list {
    display: grid;
    gap: 10px;
    max-height: 74vh;
    overflow: auto;
    padding-right: 4px;
}

.queue-item {
    border: 1px solid rgba(28, 59, 88, 0.09);
    background: rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    padding: 14px;
    text-align: left;
    width: 100%;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.queue-item:hover,
.queue-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(216, 111, 65, 0.34);
    box-shadow: 0 14px 26px rgba(60, 50, 35, 0.08);
}

.queue-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
    margin-bottom: 6px;
}

.queue-item strong {
    color: #173149;
    font-size: 0.98rem;
}

.queue-item small {
    display: block;
    color: #6a7a89;
}

.signal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.signal-cold {
    background: #f4d9d4;
    color: #8b4037;
}

.signal-warm {
    background: #fff0cb;
    color: #8a6504;
}

.signal-ready {
    background: #d8f0de;
    color: #2e6b41;
}

.focus-hero {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.focus-hero p {
    margin: 0;
    color: #657788;
}

.focus-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.big-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-call,
.btn-mail {
    min-width: 180px;
    min-height: 54px;
    border-radius: 18px;
    font-weight: 700;
}

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

.todo-list-clean {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.vendor-overview {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
}

.revenue-progress {
    height: 16px;
}

.alert-list-item strong,
.alert-list-item span {
    display: block;
}

.alert-list-item span {
    color: #815746;
    margin-top: 4px;
}

.kanban-column-head small {
    color: #6a7a89;
}

.deal-card.is-dragging {
    opacity: 0.6;
}

.deal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.deal-card h4 {
    margin: 0 0 4px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: #162f45;
    font-size: 1rem;
}

.deal-card p,
.deal-card small {
    margin: 0;
    color: #677686;
}

.deal-meta {
    display: grid;
    gap: 2px;
    margin: 10px 0;
}

.chat-message-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.chat-message-head strong {
    color: #163149;
}

.chat-message-head span,
.chat-message small {
    color: #7b8a97;
    font-size: 0.82rem;
}

.chat-message p {
    margin: 0 0 8px;
    color: #324456;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-profile-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .client-right {
        grid-column: 1 / -1;
        position: static;
    }
}

/* Final visual system override */

    .page-heading h1,
    .panel-title,
    .panel-title-sm,
    .focus-hero h3,
    .deal-card h4,
    .lead-intro-card strong,
    .metric-card strong,
    .role-hero h2,
    .digital-asset-card h4,
    .login-hero h2 {
    font-family: "Sora", "Segoe UI", sans-serif;
}

.app-bg::before,
    .app-bg::after {
    filter: blur(20px);
    opacity: 0.9;
}

.app-bg::before {
    background: radial-gradient(circle, rgba(184, 139, 82, 0.18), rgba(184, 139, 82, 0));
}

.app-bg::after {
    background: radial-gradient(circle, rgba(125, 139, 104, 0.16), rgba(125, 139, 104, 0));
}

a,
    button,
    input,
    select,
    textarea {
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a {
    color: inherit;
}

a:hover {
    text-decoration: none;
}

a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(184, 139, 82, 0.18);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.16);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.surface,
    .surface-soft {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(24, 33, 43, 0.08);
}

.surface-soft {
    background: var(--panel-soft);
}

.panel-title {
    color: #18212b;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}

.panel-title-sm {
    font-size: 0.95rem;
}

.astra-app .btn-outline-secondary:hover,
    .astra-app .btn-outline-light:hover {
    background: #ffffff;
    border-color: rgba(24, 33, 43, 0.16);
    color: #111827;
    transform: translateY(-1px);
}

.astra-app .form-control::placeholder {
    color: #95a0ab;
}

.app-alert {
    border-radius: 16px;
    border: 0;
}

.login-hero p,
    .role-hero p {
    color: rgba(247, 244, 238, 0.82);
}

.login-hero-motif {
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.motif-badge {
    background: rgba(184, 139, 82, 0.18);
    color: #f4e8d6;
}

.login-kicker,
    .hero-kicker {
    color: rgba(184, 139, 82, 0.96);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
}

.metric-strip {
    gap: 14px;
}

.metric-strip-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card strong {
    color: #18212b;
    font-size: 1.2rem;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.table-wrap-modern {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.table-sticky thead th {
    top: 0;
    z-index: 2;
}

.clickable-th {
    cursor: pointer;
    user-select: none;
}

.clickable-th:hover {
    color: #18212b;
    background: #efe8dd;
}

.table-search-input {
    padding-left: 18px;
    border-radius: 999px;
}

.table-density-select {
    min-width: 132px;
}

.status-pill,
    .signal-pill,
    .quality-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.status-new,
    .signal-cold {
    background: #f6e1dc;
    color: #8d4c43;
}

.status-contacted,
    .signal-warm {
    background: #f4ebd3;
    color: #866622;
}

.status-interested,
    .signal-ready {
    background: #e3ecdb;
    color: #536840;
}

.lead-intro-grid,
    .charts-grid,
    .quick-actions-grid,
    .todo-board,
    .vendor-overview {
    gap: 16px;
}

.lead-intro-card,
    .detail-item,
    .audit-card,
    .digital-asset-card,
    .queue-item,
    .deal-card,
    .map-list-item,
    .todo-card {
    border-radius: 20px;
}

.role-hero h2 {
    margin: 8px 0;
    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

.captador-workspace {
    gap: 18px;
}

.queue-panel,
    .focus-panel,
    .client-left,
    .client-center,
    .client-right,
    .map-sidebar,
    .map-canvas-wrap {
    border-radius: 26px;
}

.queue-list,
    .timeline-wrap,
    .map-list {
    padding-right: 2px;
}

.queue-item,
    .map-list-item {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 33, 43, 0.08);
}

.queue-item:hover,
    .queue-item.is-active,
    .map-list-item:hover,
    .quick-action-card:hover,
    .deal-card:hover,
    .digital-asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(26, 34, 42, 0.1);
}

.queue-item.is-active {
    border-color: rgba(184, 139, 82, 0.32);
}

.queue-item strong,
    .deal-card h4,
    .digital-asset-card h4,
    .map-list-item strong {
    color: #18212b;
}

.queue-item small,
    .deal-card p,
    .deal-card small,
    .map-list-item small,
    .detail-item p,
    .digital-asset-card .asset-empty,
    .alert-list-item span,
    .chat-message p,
    .chat-message small {
    color: #6a7480;
}

.focus-hero h3 {
    color: #18212b;
    font-size: 1.68rem;
}

.btn-call {
    background: linear-gradient(135deg, #111827, #334155);
    color: #ffffff;
}

.btn-call:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-mail {
    background: rgba(255, 255, 255, 0.82);
    color: #18212b;
    border: 1px solid rgba(24, 33, 43, 0.08);
}

.btn-mail:hover {
    background: #ffffff;
    color: #111827;
    transform: translateY(-1px);
}

.is-disabled {
    opacity: 0.46;
    pointer-events: none;
}

.todo-list-clean li {
    color: #364450;
}

.todo-bullet {
    background: #b88b52;
    box-shadow: 0 0 0 5px rgba(184, 139, 82, 0.12);
}

.modern-progress {
    background: #e7e0d3;
    border-radius: 999px;
    overflow: hidden;
}

.modern-progress .progress-bar {
    background: linear-gradient(90deg, #111827, #334155);
}

.modern-progress .progress-bar.bg-accent {
    background: linear-gradient(90deg, #9a7a4d, #b88b52);
}

.alert-list-clean {
    gap: 12px;
}

.alert-list-item {
    border-radius: 18px;
    background: rgba(250, 244, 237, 0.95);
    border: 1px solid rgba(180, 94, 86, 0.14);
}

.alert-list-item strong {
    color: #51322d;
}

.kanban-board {
    gap: 16px;
}

.kanban-column-head {
    margin-bottom: 14px;
}

.kanban-column-head strong {
    color: #18212b;
}

.kanban-count {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 33, 43, 0.08);
}

.kanban-list {
    min-height: 390px;
}

.deal-card.is-stalled {
    border-color: rgba(180, 94, 86, 0.26);
    box-shadow: 0 16px 28px rgba(180, 94, 86, 0.1);
}

.deal-meta strong {
    color: #18212b;
}

.deal-alert {
    background: #f6dfdb;
    color: #955249;
}

.detail-item,
    .audit-card,
    .digital-asset-card,
    .chat-message {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(24, 33, 43, 0.08);
}

.detail-item strong,
    .audit-card strong,
    .chat-message-head strong {
    color: #495562;
}

.audit-card span {
    color: #18212b;
}

.digital-asset-card header {
    background: #f5efe6;
    border-bottom: 1px solid rgba(24, 33, 43, 0.08);
}

.digital-asset-card iframe,
    .crm-map {
    background: #f2efe8;
}

.asset-empty {
    background: linear-gradient(180deg, #f8f5ef, #f2ede5);
}

.timeline-chat {
    gap: 14px;
}

.chat-incoming {
    background: rgba(255, 255, 255, 0.88);
}

.chat-message-head span {
    color: #8b948d;
}

.map-layout {
    gap: 18px;
}

.map-list-item {
    cursor: pointer;
}

.map-popup strong {
    color: #18212b;
}

.client-row,
    .table tbody tr[data-row-link] {
    cursor: pointer;
}

@media (max-width: 1100px) {
    .app-menu-toggle {
        display: inline-flex;
    }

    .app-workspace {
        padding: 14px 14px 26px;
    }

    .app-page-shell {
        padding: 0 0 16px;
    }
}

.is-hidden {
    display: none !important;
}

.client-row:hover td {
    background: #fbfaf7;
}

/* 2026 Workspace refresh */

html {
    background: linear-gradient(180deg, #f2eef8 0%, #fcfaff 100%);
}

body {
    background:
        radial-gradient(circle at 12% 12%, rgba(139, 104, 195, 0.18) 0, rgba(139, 104, 195, 0) 26%),
        radial-gradient(circle at 84% 16%, rgba(185, 137, 210, 0.16) 0, rgba(185, 137, 210, 0) 26%),
        linear-gradient(180deg, #f2eef8 0%, #fcfaff 100%);
    color: var(--ink-1);
}

.app-workspace {
    min-width: 0;
    padding: 18px 22px 32px;
}

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

.workspace-topbar-left,
    .workspace-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workspace-chip,
    .workspace-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(22, 35, 49, 0.07);
    color: #432b66;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

.app-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #4f3777;
}

.app-main {
    padding-bottom: 0;
}

.app-page-shell {
    padding: 0 4px 24px;
}

.page-heading {
    margin-bottom: 26px;
}

.page-heading h1 {
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    letter-spacing: -0.03em;
    color: #2d2242;
}

.page-heading p {
    color: #7b7290;
    font-size: 1rem;
}

.surface {
    background: var(--panel);
    border: 1px solid rgba(22, 35, 49, 0.08);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.surface-body {
    padding: clamp(18px, 2vw, 30px);
}

.surface,
    .metric-card,
    .queue-item,
    .deal-card,
    .detail-item,
    .digital-asset-card,
    .todo-card,
    .map-list-item {
    animation: surface-fade 420ms ease-out both;
    animation-delay: var(--surface-delay, 0ms);
}

@keyframes surface-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.astra-app .btn-primary {
    background: linear-gradient(135deg, #6d4aac, #56358f);
    box-shadow: 0 16px 30px rgba(95, 67, 141, 0.28);
}

.astra-app .btn-primary:hover {
    background: linear-gradient(135deg, #613f9c, #4a2f7b);
}

.astra-app .btn-outline-secondary,
    .astra-app .btn-outline-light {
    border-color: rgba(22, 35, 49, 0.1);
    color: #442d69;
    background: rgba(255, 255, 255, 0.62);
}

.astra-app .form-control,
    .astra-app .form-select {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(22, 35, 49, 0.1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.astra-app .form-control:focus,
    .astra-app .form-select:focus {
    border-color: rgba(109, 74, 172, 0.45);
    box-shadow: 0 0 0 4px rgba(109, 74, 172, 0.12);
}

.label-muted {
    color: #65597d;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-card {
    background: rgba(255, 255, 255, 0.66);
    border-radius: 20px;
    padding: 16px;
}

.metric-card span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.astra-app .table-wrap,
    .astra-app .table-wrap-modern {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(22, 35, 49, 0.08);
}

.astra-app .table thead th {
    background: #f4effb;
    color: #463360;
    border-bottom: 1px solid rgba(22, 35, 49, 0.08);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.astra-app .table tbody td {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(22, 35, 49, 0.06);
}

.astra-app .table tbody tr:hover td {
    background: rgba(248, 244, 255, 0.96);
}

.status-pill,
    .quality-pill,
    .signal-pill {
    border-radius: 999px;
}

.status-new {
    background: #f9dfd6;
    color: #974a36;
}

.status-contacted {
    background: #f7edd0;
    color: #84610b;
}

.status-interested {
    background: #d9ece5;
    color: #2f6a54;
}

.status-closed {
    background: #e7def7;
    color: #5a4684;
}

.quality-pill {
    background: #f3eef9;
    border-color: rgba(95, 67, 141, 0.12);
    color: #5d4489;
}

.radio-inline-group {
    gap: 8px;
}

.radio-inline-group label {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(22, 35, 49, 0.08);
    font-size: 0.86rem;
}

.login-page {
    max-width: 1180px;
    margin: 3vh auto;
    border-radius: 34px;
    overflow: hidden;
}

.login-hero {
    background:
        radial-gradient(circle at 18% 22%, rgba(185, 137, 210, 0.24) 0, rgba(185, 137, 210, 0) 36%),
        linear-gradient(145deg, #251b38, #3c2858 58%, #6d4aac 120%);
}

.login-form-pane {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 246, 240, 0.96));
}

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

.lead-intro-card {
    padding: 14px 16px;
}

.lead-intro-card strong,
    .lead-intro-card span {
    display: block;
}

.lead-intro-card strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: #442d69;
    margin-bottom: 4px;
}

.lead-intro-card span {
    color: #7a7190;
    font-size: 0.92rem;
}

.lead-form-grid > [class*="col-"] {
    padding-top: 4px;
    padding-bottom: 4px;
}

.role-hero {
    border-radius: 32px;
    overflow: hidden;
}

.role-hero-captador {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 28%),
        linear-gradient(135deg, #2a1d40, #4b3370 54%, #7d5ab6 120%);
}

.role-hero-vendedor {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 28%),
        linear-gradient(135deg, #261a38, #4a2f72 48%, #9c6ad1 122%);
}

.queue-item,
    .deal-card,
    .detail-item,
    .audit-card,
    .digital-asset-card,
    .map-list-item {
    border-radius: 20px;
}

.queue-item:hover,
    .queue-item.is-active,
    .deal-card:hover,
    .map-list-item:hover,
    .quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(29, 39, 44, 0.1);
}

.deal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 247, 243, 0.9));
}

.kanban-column {
    background: linear-gradient(180deg, rgba(245, 241, 234, 0.75), rgba(255, 255, 255, 0.64));
    border-radius: 24px;
}

.kanban-list.is-over {
    background: rgba(109, 74, 172, 0.08);
}

.client-profile-layout {
    gap: 18px;
}

.digital-asset-card header,
    .kanban-column-head,
    .workspace-topbar,
    .client-table-toolbar {
    backdrop-filter: blur(10px);
}

.chat-message {
    box-shadow: 0 10px 26px rgba(29, 39, 44, 0.08);
}

.chat-outgoing {
    background: linear-gradient(180deg, #f4effd, #ffffff);
}

.map-sidebar,
    .map-canvas-wrap,
    .crm-map {
    min-height: 620px;
}

.workspace-version-switch {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(95, 67, 141, 0.16);
    background: rgba(255, 255, 255, 0.68);
    color: #5a4186;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.workspace-version-switch:hover {
    background: rgba(244, 236, 255, 0.9);
    border-color: rgba(95, 67, 141, 0.32);
    color: #4b3370;
}

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

.version-choice-card {
    height: 100%;
}

.version-choice-card h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #2d2242;
}

.version-choice-card p {
    color: #6f6582;
}

.version-choice-card ul {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #5f5475;
}

.version-choice-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.version-choice-stable {
    background: #ece4f8;
    color: #634a91;
}

.version-choice-beta {
    background: #f5e8fa;
    color: #8a4f9d;
}

.beta-board {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    align-items: start;
}

.beta-col {
    display: grid;
    gap: 8px;
}

.beta-col h3 {
    margin: 0;
    color: #322449;
}

.beta-col p {
    margin: 0;
    color: #6e6483;
}

[hidden] {
    display: none !important;
}

.client-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.toolbar-search-wrap {
    flex: 1 1 420px;
}

.toolbar-actions-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(95, 67, 141, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.view-switch-btn {
    appearance: none;
    -webkit-appearance: none;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6a5b84;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: inherit;
    cursor: pointer;
}

.view-switch-btn:hover {
    background: rgba(109, 74, 172, 0.08);
    color: #4b3370;
}

.view-switch-btn.is-active {
    background: linear-gradient(135deg, #6d4aac, #56358f);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(95, 67, 141, 0.2);
}

.toolbar-density-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.clients-view-panel {
    animation: surface-fade 220ms ease-out both;
}

.opportunity-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.opportunity-inline-high {
    background: #f0e7fb;
    color: #674999;
}

.opportunity-inline-medium {
    background: #ece5f7;
    color: #705688;
}

.opportunity-inline-low {
    background: #ece8f4;
    color: #6e6680;
}

.client-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.client-opportunity-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(95, 67, 141, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 243, 255, 0.94));
    box-shadow: var(--shadow-md);
    cursor: pointer;
    overflow: hidden;
}

.client-opportunity-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 24px;
    background: #c7b7df;
}

.client-opportunity-card.opportunity-high::before {
    background: #8b68c3;
}

.client-opportunity-card.opportunity-medium::before {
    background: #a17bc7;
}

.client-opportunity-card.opportunity-low::before {
    background: #b9aacd;
}

.client-opportunity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(52, 35, 81, 0.14);
}

.opportunity-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.opportunity-card-top h3 {
    margin: 0 0 4px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    color: #2d2242;
}

.opportunity-card-top p {
    margin: 0 0 4px;
    color: #665b7b;
    font-weight: 600;
}

.opportunity-card-top small {
    color: #877e99;
}

.opportunity-score {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px solid rgba(95, 67, 141, 0.1);
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.96), rgba(244, 236, 255, 0.94));
}

.opportunity-score strong,
    .opportunity-score span {
    display: block;
    line-height: 1;
}

.opportunity-score strong {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.2rem;
}

.opportunity-score span {
    margin-top: 2px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.opportunity-score-high {
    color: #6a49a1;
    box-shadow: inset 0 0 0 8px rgba(139, 104, 195, 0.14);
}

.opportunity-score-medium {
    color: #7a5a98;
    box-shadow: inset 0 0 0 8px rgba(161, 123, 199, 0.12);
}

.opportunity-score-low {
    color: #726a86;
    box-shadow: inset 0 0 0 8px rgba(185, 170, 205, 0.12);
}

.opportunity-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.opportunity-focus-box {
    padding: 14px;
    border-radius: 18px;
    background: rgba(245, 239, 252, 0.92);
    border: 1px solid rgba(95, 67, 141, 0.08);
}

.opportunity-focus-box strong {
    display: block;
    margin-bottom: 4px;
    color: #392955;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.opportunity-focus-box p {
    margin: 0;
    color: #675d7c;
}

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

.presence-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(95, 67, 141, 0.08);
}

.presence-chip.is-ok {
    background: #efe7fb;
    color: #61478f;
}

.presence-chip.is-missing {
    background: #f8ecf8;
    color: #8f4c86;
}

.opportunity-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.opportunity-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(139, 104, 195, 0.14);
    color: #654894;
    font-size: 0.74rem;
    font-weight: 700;
}

.opportunity-tag-neutral {
    background: rgba(185, 170, 205, 0.16);
    color: #6d6481;
}

.opportunity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.opportunity-footer small {
    color: #857b97;
}

/* Sidebar v3: colapsado por defecto, expandible y con hover de iconos */
.app-shell {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 100vh;
}

body:not(.sidebar-compact) .app-shell {
    grid-template-columns: 264px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 10px;
    background: #ffffff;
    border-right: 1px solid rgba(22, 35, 49, 0.1);
}

.app-sidebar-head {
    padding: 4px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    text-decoration: none;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4d6fff;
    flex: 0 0 12px;
}

.brand-copy {
    display: none;
}

body:not(.sidebar-compact) .brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-text {
    color: #1f2d3d;
    font-weight: 800;
}

.brand-copy small {
    color: #5f6c7b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.app-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #253548;
}

body:not(.sidebar-compact) .app-nav-link {
    justify-content: flex-start;
    padding: 0 12px;
}

.app-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    color: #2f4560;
    background: #f1f5f9;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav-label {
    display: none;
    color: #253548;
    font-weight: 600;
}

body:not(.sidebar-compact) .app-nav-label {
    display: inline;
}

.app-nav-link:hover .app-nav-icon {
    background: #dbe8ff;
    color: #1f4fd6;
    transform: translateY(-1px);
}

.app-nav-link.is-active .app-nav-icon {
    background: #1f4fd6;
    color: #ffffff;
}

.app-sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding: 0 4px;
}

.app-role,
.app-sidebar-foot .btn {
    display: none;
}

.app-sidebar-tools {
    display: grid;
    gap: 8px;
}

.app-sidebar-tool {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 11px;
    border: 1px solid rgba(22, 35, 49, 0.11);
    background: #f7fafc;
    color: #30455c;
    text-decoration: none;
    padding: 0 11px;
}

.app-sidebar-tool i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.app-sidebar-tool-label {
    display: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-sidebar-tool:hover {
    border-color: rgba(31, 79, 214, 0.24);
    background: #eaf1ff;
    color: #1f4fd6;
}

body:not(.sidebar-compact) .app-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(22, 35, 49, 0.1);
    color: #4c5d70;
    font-size: 0.78rem;
}

body:not(.sidebar-compact) .app-sidebar-foot .btn {
    display: inline-flex;
}

body:not(.sidebar-compact) .app-sidebar-tool {
    justify-content: flex-start;
}

body:not(.sidebar-compact) .app-sidebar-tool-label {
    display: inline;
}

.app-shell-backdrop {
    display: none;
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-112%);
        width: 280px;
        z-index: 40;
        transition: transform 0.22s ease;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-shell-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(15, 23, 32, 0.35);
        opacity: 0;
        pointer-events: none;
        z-index: 30;
        transition: opacity 0.2s ease;
    }

    body.sidebar-open .app-shell-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .brand-copy {
        display: grid !important;
    }

    .app-nav-label {
        display: inline !important;
    }

    .app-role,
    .app-sidebar-foot .btn {
        display: inline-flex !important;
    }

    .app-sidebar-tool {
        justify-content: flex-start;
    }

    .app-sidebar-tool-label {
        display: inline !important;
    }

    .app-nav-link {
        justify-content: flex-start;
        padding: 0 12px;
    }
}
