:root {
    --bg: #f3f4f9;
    --panel: #ffffff;
    --panel-soft: #f8f8fd;
    --border: #e5e6ef;
    --text: #121829;
    --muted: #74798c;
    --primary: #5146f4;
    --primary-dark: #3d34d0;
    --sidebar: #0d1030;
    --sidebar-soft: #1a1f4a;
    --success: #2bb673;
    --warning: #f0c14b;
    --danger: #ef6a6a;
    --info: #1fa2e1;
    --radius: 26px;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.bi { font-family: "bootstrap-icons" !important; font-style: normal; font-weight: 400 !important; font-variant: normal; text-transform: none; line-height: 1; display: inline-block; vertical-align: -.125em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.bi::before { display: inline-block; }
.nav-pill i, .icon-btn i, .dashboard-study-icon i, .dashboard-empty-icon i, .empty-illustration i, .vendor-icon i, .avatar-icon i, .metric-card i, .tab-pill i { font-size: 1.15rem; line-height: 1; }
.brand-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; }
.sidebar-panel { background: linear-gradient(180deg, #0f1238 0%, #0a0d2b 100%); color: #c8cae2; padding: 0 18px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand-wrap { min-height: 90px; display: flex; align-items: center; justify-content: center; background: #fff; margin: 0 -18px 18px; padding: 10px 8px; border-right: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.brand-logo { width: 138px; max-width: 100%; max-height: 56px; object-fit: contain; display: block; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-pill { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 22px; font-size: 15px; color: #c3c8eb; transition: 0.2s ease; }
.nav-pill:hover, .nav-pill.active { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 22px 0; }
.sidebar-nav-bottom { margin-top: auto; }
.main-shell { min-width: 0; }
.topbar-panel { height: 78px; background: rgba(255,255,255,.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 30px; position: sticky; top: 0; z-index: 2600; overflow: visible; }
.search-shell { width: min(640px, 56vw); display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; color: var(--muted); }
.search-shell input { background: transparent; }
.topbar-icons { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: inline-flex; justify-content: center; align-items: center; color: var(--text); }
.topbar-trigger { position: relative; }
.topbar-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff5f79; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff; }
.topbar-dropdown { position: relative; }
.topbar-trigger[aria-expanded="true"] { border-color: #d4d9ea; box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08); }
.topbar-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 320px; background: #fff; border: 1px solid #e7eaf2; border-radius: 24px; box-shadow: 0 24px 56px rgba(18, 24, 39, 0.12); padding: 12px; display: none; z-index: 2800; }
.topbar-dropdown.is-open .topbar-menu { display: block; }
.topbar-menu-panel { width: 360px; }
.topbar-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 14px; border-bottom: 1px solid #eef0f6; margin-bottom: 8px; }
.topbar-menu-header strong { font-size: 16px; }
.topbar-menu-header span { color: var(--muted); font-size: 13px; font-weight: 600; }
.topbar-menu-item { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 12px; border: 0; background: transparent; text-align: left; border-radius: 18px; color: inherit; }
.topbar-menu-item:hover { background: #f7f8fc; }
.topbar-menu-item i { color: #66708a; font-size: 18px; margin-top: 2px; }
.topbar-menu-item span { display: grid; gap: 4px; }
.topbar-menu-item strong { font-size: 15px; }
.topbar-menu-item small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.topbar-menu-item-danger i,
.topbar-menu-item-danger strong { color: var(--danger); }
.topbar-profile-summary { padding: 12px; display: grid; gap: 4px; border-bottom: 1px solid #eef0f6; margin-bottom: 8px; }
.topbar-profile-summary strong { font-size: 16px; }
.topbar-profile-summary small { color: var(--muted); font-size: 13px; }
.content-shell { padding: 34px 38px 42px; }
.flash-stack { display: grid; gap: 12px; margin-bottom: 18px; }
.page-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.page-hero h1 { font-size: 28px; margin: 0 0 6px; font-weight: 700; }
.page-subtitle { margin: 0; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dashboard-hero { align-items: center; }
.study-select-chip { display: flex; align-items: center; gap: 12px; min-width: 280px; background: #fff; border: 1px solid #d9dbe6; border-radius: 20px; padding: 8px 14px; }
.study-select-chip select { width: auto; min-width: 150px; }
.panel-card { background: var(--panel); border: 1px solid #ebeaf2; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { padding: 26px 30px; border-bottom: 1px solid #efeff5; }
.panel-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.panel-body { padding: 28px 30px 30px; }
.banner-note { border-radius: 24px; background: #f1effd; color: #6d6b7c; padding: 16px 20px; border: 1px solid #e3defc; }
.study-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.label-kicker { display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); font-weight: 700; }
.study-meta-grid strong { font-size: 17px; }
.metric-grid { display: grid; gap: 20px; }
.metric-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { background: #fff; border: 1px solid #ececf3; border-radius: 24px; padding: 28px 24px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.metric-card span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; }
.metric-card strong { font-size: 28px; font-weight: 700; }
.metric-card small { color: var(--muted); font-size: 14px; }
.metric-card.highlight { border-left: 3px solid #3ac18c; }
.metric-inline { flex-direction: row; align-items: center; gap: 16px; min-height: auto; padding: 22px; }
.metric-inline i { font-size: 22px; color: var(--muted); }
.metric-inline strong { font-size: 20px; display: block; }
.metric-inline span { font-size: 14px; text-transform: none; letter-spacing: 0; }
.detail-stack { display: grid; gap: 22px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.soft-badge { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1; }
.success-soft { background: rgba(43, 182, 115, 0.14); color: var(--success); }
.warning-soft { background: rgba(240, 193, 75, 0.22); color: #c58a00; }
.danger-soft { background: rgba(239, 106, 106, 0.16); color: #d04f4f; }
.primary-soft { background: rgba(81, 70, 244, 0.12); color: var(--primary); }
.info-soft { background: rgba(31, 162, 225, 0.12); color: var(--info); }
.muted-soft { background: #f1f2f7; color: #5f6373; }
.muted-soft-dark { background: #f1f2f7; color: #202433; }
.list-stack { display: grid; gap: 16px; padding: 30px; }
.compact-list { padding-top: 18px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid #ededf2; border-radius: 24px; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(251,251,254,1) 100%); padding: 22px 24px; }
.list-row strong { display: block; font-size: 16px; margin-bottom: 6px; }
.list-row span { color: var(--muted); }
.row-score { font-size: 18px; font-weight: 700; color: var(--text); }
.two-panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.empty-state-panel { padding: 48px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-illustration { width: 78px; height: 78px; border-radius: 50%; background: #f3f0ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.table-responsive { padding: 0 24px 24px; }
.app-table { --bs-table-bg: transparent; }
.app-table thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; padding: 18px 16px; border-bottom-color: #ececf2; }
.app-table tbody td { padding: 18px 16px; border-bottom-color: #f0f0f5; }
.tab-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.tab-pill { display: inline-flex; align-items: center; gap: 10px; padding: 15px 20px; border-radius: 22px; background: #f3f4f9; border: 1px solid #ececf2; color: #4c5063; font-weight: 600; }
.tab-pill span { background: rgba(18,24,41,.06); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.tab-pill.active { background: #fff; box-shadow: var(--shadow); color: var(--text); }
.filter-bar { background: transparent; }
.app-input { border-radius: 18px; border: 1px solid #dfe1ea; padding: 14px 16px; min-height: 54px; background: #fff; }
.form-label { font-weight: 600; margin-bottom: 10px; }
.app-modal { border: 0; border-radius: 30px; box-shadow: 0 30px 80px rgba(16, 24, 40, 0.22); }
.option-grid { display: grid; gap: 12px; }
.option-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-tile { position: relative; display: block; }
.choice-tile input { position: absolute; opacity: 0; inset: 0; }
.choice-tile span { display: block; background: #fff; border: 1px solid #e1e3eb; border-radius: 18px; padding: 15px 16px; transition: .2s ease; }
.choice-tile input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 2px rgba(81,70,244,.2); background: #f7f5ff; }
.selection-card { border: 1px solid #e7e7ef; border-radius: 22px; background: #fff; max-height: 270px; overflow: auto; }
.recipient-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f1f6; }
.recipient-row:last-child { border-bottom: 0; }
.directory-card, .vendor-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; border: 1px solid #ededf3; border-radius: 24px; padding: 24px; background: #fff; }
.directory-main { display: flex; align-items: center; gap: 16px; }
.avatar-icon { width: 46px; height: 46px; border-radius: 50%; background: #eef8ff; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.directory-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.directory-meta { color: var(--muted); }
.directory-scores, .score-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.directory-scores div, .score-strip div { text-align: center; }
.directory-scores strong, .score-strip strong { display: block; font-size: 18px; }
.directory-scores span, .score-strip span { color: var(--muted); font-size: 13px; }
.vendor-grid, .agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vendor-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.intelligence-grid { display: grid; grid-template-columns: 220px repeat(4, minmax(0, 1fr)); gap: 28px; padding: 30px; align-items: center; }
.health-score-box { height: 170px; border: 1px solid #eef0f4; border-radius: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff; }
.health-score-box strong { font-size: 52px; color: var(--success); }
.health-score-box span { text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.intelligence-stat { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.intelligence-stat strong { color: var(--success); }
.progress-stat { padding: 18px 26px; }
.progress-stat > div:first-child { display: flex; justify-content: space-between; margin-bottom: 12px; }
.progress { height: 9px; background: #ececf2; border-radius: 999px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--primary) 0%, #5f57ff 100%); border-radius: 999px; }
.agent-card { background: #fff; border: 1px solid #ececf2; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.agent-head { display: flex; justify-content: space-between; gap: 16px; }
.agent-status { margin-top: 10px; color: var(--muted); font-size: 14px; }
.metric-pair { display: flex; justify-content: space-between; margin-top: 16px; color: var(--muted); }
.mini-progress { margin-top: 10px; height: 8px; }
.agent-actions { display: flex; gap: 10px; margin-top: 18px; }
.toggle-chip { width: 54px; height: 32px; border-radius: 999px; border: 0; background: #d9deef; padding: 4px; display: flex; align-items: center; }
.toggle-chip span { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: block; transition: 0.2s ease; }
.toggle-chip.active { justify-content: flex-end; background: #1fa2e1; }
.section-dot { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 20px 0; }
.section-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #20a8f0; }
.settings-card { max-width: 760px; }
.settings-form { padding: 30px; }
.audit-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; border: 1px solid #ededf3; border-radius: 22px; padding: 18px 22px; background: #fff; }
.audit-row strong { display: block; margin-bottom: 8px; }
.audit-row span { color: var(--muted); }
.audit-row.success strong { color: var(--success); }
.audit-row.warning strong { color: #d49a12; }
.audit-row.danger strong { color: var(--danger); }
.login-body { background: radial-gradient(circle at top left, rgba(81,70,244,.25), transparent 25%), radial-gradient(circle at bottom right, rgba(43,182,115,.18), transparent 28%), #f4f5fb; }
.login-visual { background: linear-gradient(160deg, #0f1238 0%, #1f2a6a 60%, #3944a8 100%); color: #fff; }
.login-visual-inner { max-width: 560px; padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.login-logo {
    width: 170px;
    background: #FFF;
    border-radius: 10px;
    padding: 10px;
}
.eyebrow { display: inline-flex; color: var(--primary); background: rgba(81,70,244,.12); border-radius: 999px; padding: 7px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; width: fit-content; }
.login-visual .eyebrow { color: #fff; background: rgba(255,255,255,.12); }
.login-visual h1 { font-size: 48px; line-height: 1.1; margin: 0; }
.login-visual p { color: rgba(255,255,255,.78); font-size: 18px; }
.login-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 12px; }
.glass-card { padding: 22px; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); display: grid; gap: 6px; }
.glass-card span { color: rgba(255,255,255,.8); }
.login-card { max-width: 520px; width: 100%; border-radius: 34px; }
.login-role-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.login-role-option { position: relative; display: block; cursor: pointer; }
.login-role-option input { position: absolute; opacity: 0; inset: 0; }
.login-role-option span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 1px solid #dfe3ee; border-radius: 18px; background: #fff; color: #4a5066; font-weight: 700; transition: .2s ease; }
.login-role-option.active span,
.login-role-option input:checked + span { border-color: rgba(81,70,244,.35); background: #f4f2ff; color: var(--primary); box-shadow: 0 12px 28px rgba(81, 70, 244, 0.12); }
.credential-hint { background: #f5f6fb; border-radius: 20px; padding: 16px 18px; display: grid; gap: 4px; }
.credential-hint span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.detail-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.detail-box { background: #fafafd; border: 1px solid #ececf3; border-radius: 22px; padding: 22px; text-align: center; }
.detail-box strong { display: block; font-size: 24px; margin-bottom: 8px; }
.detail-box span { color: var(--muted); }
.modal-footer { padding: 0 28px 28px; }
.dashboard-partner-block { display: grid; gap: 14px; }
.dashboard-partner-list { display: grid; gap: 14px; }
.dashboard-partner-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px 20px; border: 1px solid #ececf3; border-radius: 22px; background: #fff; }
.dashboard-partner-row strong { display: block; font-size: 16px; margin-bottom: 6px; }
.dashboard-partner-row span { display: block; color: var(--muted); margin-bottom: 6px; }
.dashboard-partner-row small { color: #5e657a; display: block; line-height: 1.5; }
.dashboard-partner-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.study-message-modal .modal-body { padding-top: 0; }
.study-message-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.study-message-thread { min-height: 320px; max-height: 420px; overflow: auto; border: 1px solid #ececf3; border-radius: 24px; background: #fafafd; padding: 18px; display: grid; gap: 14px; }
.study-message-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; }
.study-message-empty i { font-size: 30px; color: #8c91a6; }
.study-message-row { display: flex; }
.study-message-row.is-self { justify-content: flex-end; }
.study-message-row.is-peer { justify-content: flex-start; }
.study-message-bubble { max-width: min(78%, 560px); background: #fff; border: 1px solid #e8ebf3; border-radius: 22px; padding: 14px 16px; box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04); }
.study-message-row.is-self .study-message-bubble { background: #f3f0ff; border-color: #ddd7ff; }
.study-message-bubble strong { display: block; margin-bottom: 6px; }
.study-message-bubble p { margin: 0 0 8px; white-space: pre-wrap; }
.study-message-bubble small { color: var(--muted); }
.study-message-form textarea { min-height: 120px; }

@media (max-width: 1280px) {
    .metric-grid-four, .vendor-grid, .agent-grid, .study-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intelligence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar-panel { position: relative; height: auto; }
    .topbar-panel { padding: 0 20px; }
    .search-shell { width: 100%; }
    .content-shell { padding: 24px 18px 34px; }
    .page-hero, .directory-card, .vendor-card, .list-row, .audit-row { flex-direction: column; align-items: flex-start; }
    .metric-grid-four, .metric-grid-two, .study-meta-grid, .vendor-grid, .agent-grid, .option-grid.two-col { grid-template-columns: 1fr; }
    .intelligence-grid { grid-template-columns: 1fr; }
    .login-feature-grid { grid-template-columns: 1fr; }
    .dashboard-partner-row { flex-direction: column; }
    .dashboard-partner-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 640px) {
    .brand-wrap { height: auto; padding: 12px 0; }
    .search-shell { width: 100%; }
    .tab-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .study-select-chip { min-width: 100%; }
    .panel-header, .panel-body, .list-stack { padding-left: 18px; padding-right: 18px; }
    .table-responsive { padding: 0 12px 18px; }
    .topbar-menu,
    .topbar-menu-panel { width: min(320px, calc(100vw - 32px)); right: 0; }
}

.dashboard-select-layout { position: relative; z-index: 30; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.dashboard-select-card { min-height: 294px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f9f9ff 0%, #ffffff 100%); overflow: visible; }
.dashboard-empty-wrap { max-width: 470px; padding: 44px 28px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.dashboard-empty-wrap h3 { margin: 0; font-size: 22px; }
.dashboard-empty-wrap p { margin: 0; color: var(--muted); line-height: 1.55; }
.dashboard-empty-icon { width: 72px; height: 72px; border-radius: 24px; display: inline-flex; align-items: center; justify-content: center; background: #f1edff; color: #8c7cff; font-size: 34px; }
.dashboard-study-picker { position: relative; z-index: 2200; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.dashboard-picker-top { padding: 0; background: transparent; }
.dashboard-picker-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-radius: 18px; background: linear-gradient(90deg, #5a4cf5 0%, #4c40ec 100%); color: #fff; font-weight: 600; box-shadow: 0 16px 32px rgba(81, 70, 244, 0.22); }
.dashboard-picker-toggle { cursor: pointer; }
.dashboard-picker-toggle::after { display: none !important; }
.dashboard-picker-toggle i:last-child { transition: transform .2s ease; }
.dashboard-study-picker.is-open .dashboard-picker-toggle i:last-child,
.dashboard-study-picker .dashboard-picker-toggle[aria-expanded="true"] i:last-child,
.dashboard-study-picker:focus-within .dashboard-picker-toggle i:last-child { transform: rotate(180deg); }
.dashboard-picker-menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, 100%); background: #fff; border: 1px solid #e6e8f0; border-radius: 24px; box-shadow: 0 24px 60px rgba(22, 31, 56, 0.14); overflow: hidden; z-index: 1500; }
.dashboard-study-picker.is-open .dashboard-picker-menu,
.dashboard-study-picker .dashboard-picker-menu.show,
.dashboard-study-picker:focus-within .dashboard-picker-menu { display: block; }
.dashboard-picker-body { padding: 20px 18px 18px; }
.dashboard-picker-list { display: grid; gap: 16px; }
.dashboard-picker-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dashboard-picker-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dashboard-picker-item > div span { color: var(--muted); font-size: 13px; }
.dashboard-picker-create { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #4d4f59; font-weight: 600; }
.dashboard-study-list { padding: 20px 24px 24px; display: grid; gap: 16px; }
.dashboard-study-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 24px; border: 1px solid #ededf2; background: linear-gradient(180deg, #fff 0%, #fcfcff 100%); }
.dashboard-study-main { display: flex; align-items: center; gap: 16px; }
.dashboard-study-icon { width: 48px; height: 48px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: #f1edff; color: #7668f8; font-size: 20px; }
.dashboard-study-icon-muted { background: #f5f6fa; color: #8a8fa3; }
.dashboard-study-row strong { display: block; font-size: 16px; margin-bottom: 6px; }
.dashboard-study-main span { color: var(--muted); }
.dashboard-study-response-note { display: block; margin-top: 6px; color: #636d84; font-size: 13px; font-weight: 600; }
.dashboard-study-side { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.dashboard-all-list { padding: 12px 24px 24px; }
.dashboard-all-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid #f0f1f5; }
.dashboard-all-row:last-child { border-bottom: 0; }
.dashboard-all-code { font-weight: 600; color: var(--text); }
.dashboard-all-area { color: var(--muted); }

@media (max-width: 1280px) {
    .dashboard-select-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .dashboard-study-row { padding: 18px; }
    .dashboard-all-row { grid-template-columns: 1fr; gap: 10px; }
    .dashboard-study-side { width: 100%; justify-content: space-between; }
}

.upload-dropzone { position: relative; min-height: 180px; border: 2px dashed #e1e3eb; border-radius: 28px; background: #fff; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; padding: 26px; cursor: pointer; }
.upload-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-dropzone-icon { width: 58px; height: 58px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: #71758a; font-size: 34px; }
.upload-dropzone strong { font-size: 18px; font-weight: 600; color: var(--text); }
.upload-dropzone small { color: var(--muted); font-size: 15px; }
.dashboard-hero-study-tools { display: flex; align-items: center; gap: 16px; }
.dashboard-hero-study-form { margin: 0; }
.dashboard-selected-picker { position: relative; min-width: 0; z-index: 2200; overflow: visible; }
.dashboard-selected-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 330px;
    padding: 12px 16px 12px 18px;
    border-radius: 20px;
    border: 1px solid #d9d5ff;
    background: #fff;
    color: var(--text);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.06);
    cursor: pointer;
    appearance: none;
}
.dashboard-selected-chip > span:first-child {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}
.dashboard-selected-chip i:first-child {
    color: #66708a;
}
.dashboard-selected-chip i:last-child {
    color: #6e7388;
    transition: transform .2s ease;
}
.dashboard-selected-picker.is-open .dashboard-selected-chip i:last-child,
.dashboard-selected-picker .dashboard-selected-chip[aria-expanded="true"] i:last-child,
.dashboard-selected-picker:focus-within .dashboard-selected-chip i:last-child {
    transform: rotate(180deg);
}
.dashboard-selected-menu {
    width: 360px;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    margin: 0;
    padding: 0;
}
.dashboard-selected-picker.is-open .dashboard-picker-menu,
.dashboard-selected-picker .dashboard-picker-menu.show,
.dashboard-selected-picker:focus-within .dashboard-picker-menu {
    display: block;
}
.topbar-menu-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    color: var(--muted);
}
.topbar-menu-empty i {
    color: #9097ad;
    font-size: 18px;
    margin-top: 2px;
}
.topbar-menu-empty strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}
.topbar-menu-empty small {
    display: block;
    font-size: 13px;
    line-height: 1.45;
}
.dashboard-picker-item.is-current {
    padding: 12px 12px;
    border-radius: 18px;
    background: #f3f1ff;
}
.dashboard-study-close { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #6e7388; }
.dashboard-study-close:hover { background: #eceef7; color: var(--text); }
.dashboard-rfq-empty { min-height: 250px; }
.dashboard-all-link { color: inherit; transition: .2s ease; }
.dashboard-all-link:hover { background: #fafbff; }

@media (max-width: 992px) {
    .dashboard-hero-study-tools { width: 100%; justify-content: space-between; }
    .dashboard-selected-chip { min-width: 0; width: 100%; }
}

@media (max-width: 640px) {
    .dashboard-hero-study-tools { flex-direction: column; align-items: stretch; }
    .dashboard-study-close { align-self: flex-end; }
}
.marketplace-table tbody tr { cursor: pointer; transition: .2s ease; }
.marketplace-table tbody tr:hover { background: #fafbff; }
.marketplace-modal .modal-header { padding: 30px 32px 8px; }
.marketplace-modal .modal-body { padding: 10px 32px 30px; }
.marketplace-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.marketplace-modal-value { font-size: 18px; font-weight: 700; color: var(--text); }
.marketplace-modal-stats { display: flex; gap: 28px; flex-wrap: wrap; color: #6f7489; }
.marketplace-modal-stats div { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.marketplace-modal-stats i { font-size: 20px; }
.marketplace-modal-actions { display: flex; gap: 16px; }

@media (max-width: 640px) {
    .marketplace-modal-grid { grid-template-columns: 1fr; }
    .marketplace-modal-actions { flex-direction: column; }
}
.rfq-builder-page { display: grid; gap: 28px; }
.rfq-builder-head { display: grid; gap: 10px; }
.rfq-back-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #35394a; font-weight: 600; }
.rfq-back-link:hover { color: var(--primary); }
.rfq-builder-head h1 { margin: 0; font-size: 46px; line-height: 1.08; }
.rfq-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: center; }
.rfq-step { position: relative; display: flex; align-items: center; gap: 12px; color: #757b90; font-weight: 600; }
.rfq-step:not(:last-child)::after { content: ''; height: 1px; flex: 1; min-width: 34px; background: #e7e9f1; margin-left: 12px; }
.rfq-step span { width: 42px; height: 42px; border-radius: 50%; background: #f3f4f8; color: #8a90a4; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.rfq-step strong { font-size: 16px; white-space: nowrap; }
.rfq-step.active { color: var(--text); }
.rfq-step.active span { background: #20a8f0; color: #fff; box-shadow: 0 12px 28px rgba(32, 168, 240, 0.22); }
.rfq-builder-card .panel-body { padding: 42px; }
.rfq-upload-zone { min-height: 230px; border-style: dashed; border-color: #dfe3eb; background: #fcfcff; }
.rfq-upload-zone .upload-dropzone-icon { width: 72px; height: 72px; font-size: 44px; color: #6f7489; }
.rfq-builder-or { text-align: center; color: #8d92a5; font-size: 22px; margin: 10px 0 30px; }
.rfq-large-textarea { min-height: 170px; padding-top: 18px; }
.rfq-section-sep { height: 1px; background: #eceef5; margin: 12px 0 26px; }
.rfq-section-title { display: inline-flex; align-items: center; gap: 10px; color: #3f4859; font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.rfq-section-title i { color: #20a8f0; }
.rfq-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.rfq-builder-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
.rfq-continue-btn { min-width: 180px; min-height: 56px; font-size: 18px; }

@media (max-width: 1100px) {
    .rfq-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .rfq-builder-head h1 { font-size: 36px; }
    .rfq-builder-card .panel-body { padding: 24px 20px; }
    .rfq-stepper { grid-template-columns: 1fr; gap: 12px; }
    .rfq-step:not(:last-child)::after { display: none; }
    .rfq-step strong { white-space: normal; }
    .rfq-builder-actions { justify-content: stretch; }
    .rfq-continue-btn { width: 100%; }
}
.rfq-step.is-complete span,
.rfq-step.is-active span { background: #20a8f0; color: #fff; box-shadow: 0 12px 28px rgba(32, 168, 240, 0.22); }
.rfq-step.is-complete::after,
.rfq-step.is-active::after { background: #20a8f0; }
.rfq-choice-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.rfq-choice-grid.compact { gap: 10px; }
.rfq-choice-pill { position: relative; display: block; }
.rfq-choice-pill input { position: absolute; inset: 0; opacity: 0; }
.rfq-choice-pill span { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 999px; border: 1px solid #e3e5ee; background: #fff; color: #394052; font-weight: 600; transition: .2s ease; }
.rfq-choice-pill.small-pill span { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.rfq-choice-pill input:checked + span { background: linear-gradient(90deg, #5a4cf5 0%, #4c40ec 100%); border-color: transparent; color: #fff; box-shadow: 0 12px 28px rgba(81, 70, 244, 0.18); }
.rfq-builder-actions.between { justify-content: space-between; }
.rfq-back-btn { min-width: 120px; min-height: 54px; }
.rfq-select-section .panel-body { max-height: 360px; overflow: auto; }
.rfq-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rfq-select-card,
.rfq-academy-card { position: relative; display: flex; align-items: center; gap: 14px; border: 1px solid #e6e8f0; border-radius: 22px; padding: 18px 18px; background: #fff; transition: .2s ease; }
.rfq-select-card input,
.rfq-academy-card input,
.rfq-notification-card input { position: absolute; opacity: 0; pointer-events: none; }
.rfq-select-card:hover,
.rfq-academy-card:hover { border-color: #cfd6ea; }
.rfq-select-radio { width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid #6659ef; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rfq-select-radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #6659ef; transform: scale(0); transition: .2s ease; }
.rfq-select-card input:checked ~ .rfq-select-radio::after,
.rfq-academy-card input:checked ~ .rfq-select-radio::after { transform: scale(1); }
.rfq-select-card input:checked ~ .rfq-select-copy,
.rfq-academy-card input:checked ~ .rfq-academy-copy { color: #1f2434; }
.rfq-select-card input:checked ~ .soft-badge,
.rfq-select-card input:checked ~ .rfq-select-copy,
.rfq-select-card input:checked ~ .rfq-select-radio,
.rfq-academy-card input:checked ~ .rfq-select-radio,
.rfq-academy-card input:checked ~ .rfq-academy-copy { }
.rfq-select-card input:checked ~ .rfq-select-copy,
.rfq-select-card input:checked ~ .soft-badge,
.rfq-academy-card input:checked ~ .rfq-academy-copy { }
.rfq-select-card input:checked,
.rfq-academy-card input:checked { }
.rfq-select-card:has(input:checked),
.rfq-academy-card:has(input:checked) { border-color: #1fa2e1; background: #eef9ff; box-shadow: inset 0 0 0 1px rgba(31,162,225,.18); }
.rfq-select-copy { display: grid; gap: 4px; flex: 1; }
.rfq-select-copy strong,
.rfq-academy-copy strong { font-size: 16px; }
.rfq-select-copy small,
.rfq-academy-copy small { color: var(--muted); font-size: 14px; }
.rfq-academy-copy { display: grid; gap: 4px; }
.rfq-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rfq-review-grid h4 { margin: 0 0 18px; font-size: 18px; }
.rfq-review-list { display: grid; gap: 14px; color: #2f3546; }
.rfq-review-list span { color: var(--muted); font-weight: 600; }
.rfq-recipient-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rfq-recipient-grid div { display: flex; align-items: center; gap: 12px; color: #273042; font-size: 17px; }
.rfq-recipient-grid i { color: #20a8f0; font-size: 20px; }
.rfq-notification-stack { display: grid; gap: 18px; }
.rfq-notification-card { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; border-radius: 24px; border: 1px solid #e6e8f0; background: #fff; }
.rfq-notification-copy { display: flex; align-items: center; gap: 16px; }
.rfq-notification-copy > i { font-size: 22px; color: #20a8f0; }
.rfq-notification-copy span { display: grid; gap: 4px; }
.rfq-notification-copy strong { font-size: 18px; }
.rfq-notification-copy small { color: var(--muted); font-size: 15px; }
.rfq-toggle { width: 26px; height: 26px; border-radius: 50%; border: 1.8px solid #6659ef; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rfq-toggle::after { content: '\2713'; font-size: 14px; color: #fff; transform: scale(0); transition: .2s ease; }
.rfq-notification-card:has(input:checked) .rfq-toggle { background: #6659ef; }
.rfq-notification-card:has(input:checked) .rfq-toggle::after { transform: scale(1); }

@media (max-width: 1100px) {
    .rfq-select-grid,
    .rfq-review-grid,
    .rfq-recipient-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .rfq-choice-grid { gap: 10px; }
    .rfq-choice-pill span { width: 100%; justify-content: center; }
    .rfq-builder-actions.between { flex-direction: column-reverse; gap: 12px; }
    .rfq-back-btn,
    .rfq-continue-btn { width: 100%; }
    .rfq-notification-card { padding: 18px; }
}
.rfq-select-section .panel-body { padding: 24px 28px 30px; }
.rfq-select-card { min-height: 82px; }
.rfq-academy-card { padding: 24px 26px; }
.rfq-academy-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rfq-academy-title i { color: #2bb673; font-size: 22px; }
.rfq-academy-title strong { font-size: 16px; }
.rfq-list-table tbody tr { cursor: pointer; transition: .2s ease; }
.rfq-list-table tbody tr:hover { background: #fafbff; }
.rfq-detail-modal .modal-header { padding: 28px 32px 10px; }
.rfq-detail-modal .modal-body { padding: 12px 32px 30px; }
.rfq-detail-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px; background: #f4f5f9; border-radius: 999px; margin-bottom: 22px; }
.rfq-detail-tab { min-height: 48px; border: 0; border-radius: 999px; background: transparent; color: #6f7489; font-weight: 700; }
.rfq-detail-tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.rfq-detail-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.rfq-detail-stat-card { padding: 20px; border: 1px solid #e8eaf1; border-radius: 22px; background: #fff; display: grid; gap: 8px; }
.rfq-detail-stat-card span { color: var(--muted); font-size: 14px; }
.rfq-detail-stat-card strong { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.rfq-detail-section { margin-bottom: 26px; }
.rfq-detail-section h4 { margin-bottom: 14px; font-size: 17px; }
.rfq-detail-timeline { display: grid; gap: 16px; }
.rfq-detail-timeline-item { display: flex; align-items: flex-start; gap: 12px; }
.rfq-detail-timeline-item strong { display: block; font-size: 16px; margin-bottom: 3px; }
.rfq-detail-timeline-item small { color: var(--muted); font-size: 14px; }
.rfq-detail-timeline-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rfq-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rfq-detail-bid-list { display: grid; gap: 16px; }
.rfq-detail-bid-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid #ececf2; border-radius: 22px; padding: 18px 20px; background: #fff; }
.rfq-detail-bid-row strong { display: block; font-size: 16px; margin-bottom: 4px; }
.rfq-detail-bid-row small { color: var(--muted); }
.rfq-detail-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.rfq-detail-empty h4 { margin: 0; }
.rfq-detail-empty p { margin: 0; color: var(--muted); }
.rfq-activity-list { display: grid; gap: 18px; padding-top: 8px; }
.rfq-activity-item { display: flex; align-items: flex-start; gap: 14px; }
.rfq-activity-dot { width: 10px; height: 10px; border-radius: 50%; background: #20a8f0; margin-top: 8px; flex-shrink: 0; }
.rfq-activity-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.rfq-activity-item small { color: var(--muted); font-size: 14px; }

@media (max-width: 1100px) {
    .rfq-detail-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .rfq-detail-modal .modal-header,
    .rfq-detail-modal .modal-body { padding-left: 18px; padding-right: 18px; }
    .rfq-detail-tabs,
    .rfq-detail-stat-grid { grid-template-columns: 1fr; }
    .rfq-detail-bid-row { flex-direction: column; align-items: flex-start; }
}

.rfq-inline-code { color: #20a8f0; font-weight: 600; }


.rfq-inline-code { color: #20a8f0; font-weight: 600; }

.bid-row-trigger { cursor: pointer; }
.bid-row-trigger:hover { background: #fafbff; }
.bid-detail-modal .modal-header { padding: 28px 30px 10px; }
.bid-detail-modal .modal-body { padding: 12px 30px 28px; }
.bid-amount-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid #9fdbff; background: #eef9ff; border-radius: 24px; padding: 20px 18px; margin-bottom: 24px; }
.bid-amount-card span { color: var(--muted); font-size: 15px; }
.bid-amount-card strong { display: block; font-size: 28px; color: #1494f0; margin-top: 6px; }
.bid-meta-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #2f3546; font-size: 18px; }
.bid-meta-line i { color: #6f7489; }
.bid-team-list { display: grid; gap: 14px; }
.bid-team-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid #e8eaf1; border-radius: 22px; padding: 16px 18px; background: #fff; }
.bid-team-row strong { display: block; font-size: 16px; margin-bottom: 4px; }
.bid-team-row small { color: var(--muted); }
.bid-submission-meta { color: #60657a; display: grid; gap: 8px; margin-top: 6px; }
.bid-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 768px) {
    .bid-amount-card,
    .bid-team-row { flex-direction: column; align-items: flex-start; }
}

.list-row.resource-modal-trigger { text-decoration: none; color: inherit; }
.list-row.resource-modal-trigger:hover { color: inherit; }
.resource-modal-actions .btn { min-height: 56px; }
.invite-toast {
    position: fixed;
    right: 28px;
    top: 98px;
    z-index: 1085;
    width: min(360px, calc(100vw - 32px));
    padding: 20px 22px;
    border: 1px solid #dfe4ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 60px rgba(28, 33, 48, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity .22s ease, transform .22s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.invite-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.invite-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #eef4ff;
    color: #1fa2e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.invite-toast[data-tone="success"] .invite-toast-icon {
    background: rgba(43, 182, 115, 0.14);
    color: var(--success);
}
.invite-toast[data-tone="contact"] .invite-toast-icon {
    background: rgba(31, 162, 225, 0.12);
    color: var(--info);
}
.invite-toast-copy {
    min-width: 0;
}
.invite-toast strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--text);
}
.invite-toast p {
    margin: 0;
    color: #535a70;
    font-size: 15px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .invite-toast {
        right: 16px;
        left: 16px;
        top: 16px;
        width: auto;
    }
}
.validation-hint,
.group-invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 8px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
}
.was-validated .validation-hint.is-visible,
.group-validation.is-invalid .group-invalid-feedback {
    display: block;
}
.group-validation.is-invalid {
    padding: 14px;
    border: 1px solid rgba(239, 106, 106, 0.3);
    border-radius: 20px;
    background: rgba(239, 106, 106, 0.04);
}

.vendor-card-copy {
    display: grid;
    gap: 14px;
    flex: 1;
}
.vendor-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.vendor-icon,
.metric-card-icon,
.agent-card-icon,
.talent-cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef8ff;
    color: var(--info);
    flex-shrink: 0;
    font-size: 21px;
}
.rfq-bid-icon {
    background: #f4f6fb;
    color: #68708a;
}
.metric-card-icon {
    margin-left: auto;
    background: rgba(43, 182, 115, 0.12);
    color: var(--success);
}
.agent-card-icon {
    background: rgba(31, 162, 225, 0.1);
}
.metric-card-interactive,
.talent-progress-trigger,
.talent-list-trigger {
    border: 1px solid #e7eaf2;
    background: #fff;
    width: 100%;
}
.metric-card-interactive {
    position: relative;
    align-items: flex-start;
    text-align: left;
}
.metric-card-interactive:hover,
.talent-progress-trigger:hover,
.talent-list-trigger:hover,
.cro-scorecard-row:hover,
.vendor-card:hover {
    border-color: #d8dded;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}
.metric-card-interactive span {
    order: 2;
}
.metric-card-interactive strong {
    order: 1;
}
.metric-card-interactive small {
    order: 3;
}
.talent-progress-trigger {
    border-radius: 24px;
}
.talent-list-trigger {
    width: 100%;
    text-align: left;
}
.talent-cert-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cro-scorecard-list {
    display: grid;
    gap: 20px;
}
.cro-scorecard-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    border: 1px solid #ececf2;
    border-radius: 26px;
    padding: 24px 20px;
    background: #fff;
    color: inherit;
}
.cro-scorecard-rank {
    font-size: 28px;
    font-weight: 700;
    color: #2e3445;
    text-align: center;
}
.cro-scorecard-main {
    display: grid;
    gap: 20px;
}
.cro-scorecard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cro-scorecard-header strong {
    font-size: 18px;
}
.cro-scorecard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.cro-scorecard-metric {
    display: grid;
    gap: 10px;
}
.cro-scorecard-metric > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #545b70;
}
.cro-scorecard-metric strong {
    color: var(--text);
}
.cro-scorecard-overall {
    display: grid;
    gap: 6px;
    justify-items: end;
    min-width: 90px;
}
.cro-scorecard-overall strong {
    font-size: 34px;
    color: #f0a000;
}
.cro-scorecard-overall span {
    color: var(--muted);
    font-weight: 600;
}
.agent-description {
    min-height: 72px;
}
.agent-toggle-action {
    min-width: 112px;
}
.settings-wide-card {
    max-width: 100%;
}
.settings-placeholder-stack {
    display: grid;
    gap: 18px;
}
.settings-placeholder-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    border: 1px solid #ececf2;
    border-radius: 24px;
    background: #fff;
}
.settings-placeholder-row strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}
.settings-placeholder-row p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
}
.invite-toast[data-position="bottom-right"] {
    top: auto;
    bottom: 28px;
    transform: translateY(18px);
}
.invite-toast[data-position="bottom-right"].show {
    transform: translateY(0);
}
.support-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
}
.support-chat-fab {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f57ff 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(81, 70, 244, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
}
.support-chat-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff5f79;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.support-chat-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(360px, calc(100vw - 32px));
    height: 488px;
    border: 1px solid #e3e6f0;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 72px rgba(18, 24, 39, 0.18);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}
.support-chat-header {
    min-height: 60px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5f57ff 0%, var(--primary) 100%);
    color: #fff;
}
.support-chat-header strong {
    display: block;
    font-size: 18px;
}
.support-chat-header small {
    display: block;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}
.support-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
}
.support-chat-peer-wrap {
    padding: 12px 16px 0;
}
.support-chat-peer-select {
    min-height: 46px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 16px;
}
.support-chat-body {
    padding: 16px;
    overflow-y: auto;
    background: #fff;
    display: grid;
    gap: 12px;
}
.support-chat-empty {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--muted);
    text-align: center;
}
.support-chat-empty i {
    font-size: 38px;
    color: #c2c7d8;
}
.support-chat-message {
    display: flex;
}
.support-chat-message.is-self {
    justify-content: flex-end;
}
.support-chat-message.is-peer {
    justify-content: flex-start;
}
.support-chat-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid #e6e9f2;
    background: #f7f8fc;
    display: grid;
    gap: 6px;
}
.support-chat-message.is-self .support-chat-bubble {
    background: rgba(81,70,244,.08);
    border-color: rgba(81,70,244,.14);
}
.support-chat-bubble strong {
    font-size: 13px;
}
.support-chat-bubble p {
    margin: 0;
    color: #2f3446;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.support-chat-bubble small {
    color: var(--muted);
    font-size: 11px;
}
.support-chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 16px;
    border-top: 1px solid #edf0f6;
    background: #fff;
}
.support-chat-input {
    border-radius: 18px;
    min-height: 46px;
    border: 1px solid #dfe3ec;
    background: #f7f8fc;
}
.support-chat-send {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f88ff 0%, var(--primary) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@media (max-width: 1100px) {
    .cro-scorecard-row {
        grid-template-columns: 1fr;
    }
    .cro-scorecard-rank,
    .cro-scorecard-overall {
        justify-items: start;
        text-align: left;
    }
    .cro-scorecard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .settings-placeholder-row,
    .vendor-title-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .invite-toast[data-position="bottom-right"] {
        bottom: 16px;
        top: auto;
    }
    .support-chat-widget {
        right: 16px;
        bottom: 16px;
    }
    .support-chat-panel {
        bottom: 68px;
    }
}
@media (max-width: 640px) {
    .cro-scorecard-metrics {
        grid-template-columns: 1fr;
    }
}

.settings-tabs {
    gap: 10px;
}
.settings-role-stack,
.settings-integration-stack,
.settings-anonymization-stack {
    display: grid;
    gap: 18px;
}
.settings-role-row,
.settings-integration-row,
.settings-anonymization-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 18px;
    border: 1px solid #e7eaf2;
    border-radius: 24px;
    background: #fff;
}
.settings-role-main,
.settings-integration-main {
    display: flex;
    align-items: center;
    gap: 18px;
}
.settings-role-main strong,
.settings-integration-main strong,
.settings-anonymization-row strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}
.settings-role-main p,
.settings-integration-main p,
.settings-anonymization-row p,
.settings-anonymization-alert p {
    margin: 0;
    color: var(--muted);
}
.settings-role-actions,
.settings-integration-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.settings-role-users {
    color: #2f3546;
    font-weight: 500;
}
.settings-inline-icon {
    width: 40px;
    height: 40px;
}
.settings-role-dot,
.settings-integration-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-integration-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
    background: #f4f6fb;
}
.tone-info { background: #20a8f0; color: #20a8f0; }
.tone-success { background: #2bb673; color: #2bb673; }
.tone-warning { background: #f0c14b; color: #f0c14b; }
.tone-muted { background: #b9bfd3; color: #7a8198; }
.settings-integration-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 22px;
}
.settings-api-panel {
    display: grid;
    gap: 18px;
}
.settings-api-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-api-field {
    min-height: 54px;
    border: 1px solid #dfe1ea;
    border-radius: 18px;
    background: #fff;
    padding: 0 18px;
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: 600;
    letter-spacing: .08em;
}
.settings-warning-note {
    border: 1px solid rgba(240, 193, 75, 0.45);
    background: rgba(240, 193, 75, 0.16);
    color: #db8f00;
    border-radius: 20px;
    padding: 16px 18px;
}
.settings-anonymization-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
    border: 1px solid rgba(43, 182, 115, 0.28);
    background: rgba(43, 182, 115, 0.08);
    border-radius: 22px;
    color: var(--success);
}
.settings-anonymization-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}
.settings-anonymization-alert i {
    font-size: 24px;
}
.settings-switch {
    width: 56px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    background: #d8dced;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: .2s ease;
    flex-shrink: 0;
}
.settings-switch span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    display: block;
    transition: .2s ease;
}
.settings-switch.is-on {
    background: #5a4cf5;
    justify-content: flex-end;
}
@media (max-width: 1100px) {
    .settings-integration-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .settings-role-row,
    .settings-integration-row,
    .settings-anonymization-row,
    .settings-api-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .settings-role-actions,
    .settings-integration-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.settings-role-modal-dialog {
    max-width: 680px;
}
.settings-role-modal-dialog .modal-body {
    padding: 18px 28px 12px;
}
.settings-role-modal-dialog .modal-content {
    overflow: visible;
}
.settings-api-field {
    font-family: Consolas, 'Courier New', monospace;
    letter-spacing: 0;
    overflow: hidden;
}
.settings-api-field span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.audit-log-card {
    align-items: center;
}
.audit-log-main {
    display: flex;
    align-items: center;
    gap: 16px;
}
.audit-log-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f2f4fb;
    color: #73798f;
    font-size: 20px;
}
.audit-log-icon.success {
    background: rgba(43, 182, 115, 0.14);
    color: var(--success);
}
.audit-log-icon.warning {
    background: rgba(240, 193, 75, 0.18);
    color: #d49a12;
}
.audit-log-icon.danger {
    background: rgba(239, 106, 106, 0.16);
    color: var(--danger);
}
.audit-log-side {
    display: grid;
    gap: 10px;
    justify-items: end;
}
@media (max-width: 768px) {
    .audit-log-main {
        width: 100%;
    }
    .audit-log-side {
        width: 100%;
        justify-items: start;
    }
}

.talent-deployment-grid {
    grid-template-columns: 1.15fr .95fr;
}
.deployment-pipeline-stack,
.deployment-region-stack {
    display: grid;
    gap: 18px;
}
.deployment-stage-row,
.deployment-region-row {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}
.deployment-stage-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 70px;
    gap: 16px;
    align-items: center;
}
.deployment-stage-label,
.deployment-stage-percent {
    font-size: 16px;
    color: #3a4155;
}
.deployment-stage-bar {
    height: 36px;
    border-radius: 999px;
    background: #dfe1e8;
    overflow: hidden;
}
.deployment-stage-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
}
.deployment-stage-fill.training { background: #73798f; }
.deployment-stage-fill.assessment { background: #f0a000; }
.deployment-stage-fill.ready { background: #2bb673; }
.deployment-stage-fill.deployed { background: #20a8f0; }
.deployment-ready-banner {
    margin-top: 10px;
    padding: 20px 18px;
    border-radius: 22px;
    border: 1px solid rgba(43, 182, 115, 0.28);
    background: rgba(43, 182, 115, 0.08);
}
.deployment-ready-banner strong {
    display: block;
    color: var(--success);
    font-size: 18px;
    margin-bottom: 10px;
}
.deployment-ready-banner p {
    margin: 0;
    color: #5a647a;
}
.deployment-region-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e7eaf2;
    border-radius: 22px;
    background: #fff;
}
.deployment-region-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.deployment-region-main i {
    color: #6d748a;
    font-size: 20px;
}
.deployment-region-main strong {
    font-size: 17px;
}
.deployment-region-metrics {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #5f667b;
}
.deployment-region-metrics strong {
    color: var(--text);
}
.deployment-region-ready {
    color: var(--success);
    font-weight: 700;
}
@media (max-width: 1100px) {
    .talent-deployment-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .deployment-stage-row {
        grid-template-columns: 1fr;
    }
    .deployment-region-row,
    .deployment-region-metrics {
        flex-direction: column;
        align-items: flex-start;
    }
}

.metric-card-link {
    text-decoration: none;
    color: inherit;
}
.metric-card-link:hover {
    color: inherit;
    border-color: rgba(92, 72, 255, 0.28);
    box-shadow: 0 14px 28px rgba(24, 31, 61, 0.06);
}
.study-response-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #e7eaf2;
    background: #fafbfe;
}
.study-response-summary-note i {
    font-size: 22px;
    color: var(--primary);
}
.study-response-summary-note strong,
.study-response-summary-note span {
    display: block;
}
.study-response-summary-note span {
    color: #606980;
    margin-top: 6px;
}
.study-response-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 24px;
}
.study-response-switch.is-active {
    border-color: rgba(92, 72, 255, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
}
.study-response-directory {
    display: grid;
    gap: 14px;
}
.study-response-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #e7eaf2;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.study-response-item:hover,
.study-response-item.is-active {
    color: inherit;
    border-color: rgba(92, 72, 255, 0.28);
    box-shadow: 0 14px 28px rgba(24, 31, 61, 0.06);
}
.study-response-item strong,
.study-response-item span,
.study-response-item small {
    display: block;
}
.study-response-item span,
.study-response-item small {
    color: #677089;
}
.study-response-item span {
    margin-top: 6px;
}
.study-response-item small {
    margin-top: 10px;
}
.study-response-item-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}
.study-response-conversation-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.study-response-conversation-meta strong,
.study-response-conversation-meta span {
    display: block;
}
.study-response-conversation-meta span {
    color: #677089;
    margin-top: 6px;
}
.study-response-thread-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.study-response-thread-meta small {
    color: #6f7890;
}
.study-response-thread {
    display: grid;
    gap: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}
.study-response-message {
    display: flex;
}
.study-response-message.is-admin {
    justify-content: flex-end;
}
.study-response-message.is-partner {
    justify-content: flex-start;
}
.study-response-bubble {
    max-width: 78%;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid #e7eaf2;
    background: #fff;
}
.study-response-message.is-admin .study-response-bubble {
    background: #f3f0ff;
    border-color: rgba(92, 72, 255, 0.22);
}
.study-response-bubble strong,
.study-response-bubble p,
.study-response-bubble small {
    display: block;
}
.study-response-bubble p {
    margin: 10px 0 8px;
    color: #2f3750;
    white-space: pre-wrap;
}
.study-response-bubble small {
    color: #6f7890;
}
@media (max-width: 1100px) {
    .study-response-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .study-response-item,
    .study-response-conversation-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .study-response-item-meta {
        align-items: flex-start;
    }
    .study-response-bubble {
        max-width: 100%;
    }
}

.ecosystem-dashboard {
    display: grid;
    gap: 22px;
}

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

.ecosystem-kpi-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #e7eaf2;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 31, 70, 0.05);
}

.ecosystem-kpi-card.blue { box-shadow: inset 0 0 0 1px rgba(33, 112, 242, 0.12); }
.ecosystem-kpi-card.green { box-shadow: inset 0 0 0 1px rgba(18, 183, 106, 0.12); }
.ecosystem-kpi-card.violet { box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12); }
.ecosystem-kpi-card.orange { box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.12); }
.ecosystem-kpi-card.teal { box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12); }
.ecosystem-kpi-card.pink { box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.12); }

.ecosystem-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eff5ff, #f8fbff);
    color: #3952d4;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ecosystem-kpi-title,
.ecosystem-kpi-subtitle,
.ecosystem-kpi-detail {
    display: block;
}

.ecosystem-kpi-title {
    color: #4d5875;
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ecosystem-kpi-value {
    display: block;
    margin-top: 4px;
    color: #1e2a47;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
}

.ecosystem-kpi-subtitle {
    margin-top: 4px;
    color: #28314d;
    font-weight: 700;
}

.ecosystem-kpi-detail {
    margin-top: 6px;
    color: #7a839a;
}

.ecosystem-grid {
    display: grid;
    gap: 18px;
}

.ecosystem-grid-top {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.ecosystem-grid-middle,
.ecosystem-grid-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-card .panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.panel-eyebrow {
    color: #7e87a0;
    font-size: 0.86rem;
    font-weight: 600;
}

.ecosystem-map-surface {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
    border: 1px solid #e8eef7;
    overflow: hidden;
    padding: 14px 18px;
}

.ecosystem-jsv-map {
    width: 100%;
    height: 290px;
}

.ecosystem-jsv-map .jsvmap-container {
    width: 100%;
    height: 100%;
    background: transparent !important;
}

.ecosystem-jsv-map .jsvmap-region {
    vector-effect: non-scaling-stroke;
}

.ecosystem-jsv-map .jsvmap-zoom-btn {
    display: none;
}

.ecosystem-legend,
.ecosystem-country-grid,
.ecosystem-legend-list,
.ecosystem-activity-list,
.ecosystem-bar-stack,
.ecosystem-why-grid,
.ecosystem-category-grid,
.ecosystem-commitment-grid {
    display: grid;
}

.ecosystem-legend {
    grid-template-columns: repeat(4, max-content);
    gap: 18px;
    margin-top: 16px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 8px;
}

.legend-dot.strong-focus,
.country-chip.strong-focus { background: #0B63CE; }
.legend-dot.in-progress,
.country-chip.in-progress { background: #3D9BEF; }
.legend-dot.planned,
.country-chip.planned { background: #B7D4F4; }
.legend-dot.exploring { background: #E5E7EB; }
.legend-dot.cro { background: #175cd3; }
.legend-dot.smo { background: #12b76a; }
.legend-dot.consultant { background: #f79009; }
.legend-dot.edc { background: #a855f7; }
.legend-dot.professional { background: #7c3aed; }

.ecosystem-country-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.country-chip {
    padding: 10px 12px;
    border-radius: 14px;
    color: #1f2d4d;
    font-size: 0.84rem;
    font-weight: 700;
    background: #edf3ff;
    text-align: center;
}

.ecosystem-donut-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 18px;
}

.ecosystem-donut {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto;
}

.ecosystem-donut::after {
    content: '';
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: #fff;
}

.ecosystem-donut-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.ecosystem-donut-center span,
.ecosystem-donut-center strong {
    display: block;
}

.ecosystem-donut-center span {
    color: #64708d;
    font-size: 0.9rem;
}

.ecosystem-donut-center strong {
    color: #1a2440;
    font-size: 2rem;
}

.ecosystem-legend-list {
    gap: 12px;
}

.ecosystem-legend-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: #40506f;
}

.ecosystem-legend-row span {
    display: inline-flex;
    align-items: center;
}

.ecosystem-bar-stack {
    gap: 14px;
}

.ecosystem-bar-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 12px;
    align-items: center;
}

.ecosystem-bar-label {
    color: #293550;
    font-weight: 600;
}

.ecosystem-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e7edf7;
    overflow: hidden;
}

.ecosystem-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4c8cff, #71b0ff);
}

.ecosystem-bar-value {
    color: #465774;
    font-weight: 700;
}

.ecosystem-category-grid,
.ecosystem-why-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ecosystem-category-card,
.ecosystem-why-card {
    padding: 18px 16px;
    border-radius: 20px;
    border: 1px solid #e8edf7;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    text-align: center;
}

.ecosystem-category-card i,
.ecosystem-why-card i {
    font-size: 1.9rem;
    color: #3d5ee6;
}

.ecosystem-category-card span,
.ecosystem-category-card strong,
.ecosystem-category-card small,
.ecosystem-why-card strong,
.ecosystem-why-card p {
    display: block;
}

.ecosystem-category-card span,
.ecosystem-why-card strong {
    margin-top: 10px;
    color: #23304a;
    font-weight: 700;
}

.ecosystem-category-card strong {
    margin-top: 8px;
    font-size: 1.7rem;
}

.ecosystem-category-card small,
.ecosystem-why-card p {
    margin-top: 6px;
    color: #73809b;
}

.ecosystem-funnel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.ecosystem-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.ecosystem-funnel-step {
    height: 28px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    border-radius: 8px;
}

.funnel-one { background: linear-gradient(90deg, #1b64e0, #2b83ff); }
.funnel-two { background: linear-gradient(90deg, #11b27c, #35d39b); }
.funnel-three { background: linear-gradient(90deg, #7c63ff, #aa8cff); }
.funnel-four { background: linear-gradient(90deg, #f39c12, #f7b955); }
.funnel-five { background: linear-gradient(90deg, #ef4444, #f59e9b); }
.funnel-blue { background: linear-gradient(90deg, #2b83ff, #52abff); }
.funnel-cyan { background: linear-gradient(90deg, #22b8cf, #57d8e9); }
.funnel-green { background: linear-gradient(90deg, #37c871, #7ee88f); }
.funnel-lime { background: linear-gradient(90deg, #9ad64d, #c6ea7a); }
.funnel-yellow { background: linear-gradient(90deg, #f4c14f, #ffd982); }

.ecosystem-activity-list {
    gap: 12px;
}

.ecosystem-activity-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f8;
}

.ecosystem-activity-row:last-child {
    border-bottom: 0;
}

.ecosystem-activity-row strong,
.ecosystem-activity-row span,
.ecosystem-activity-row small {
    display: block;
}

.ecosystem-activity-row span,
.ecosystem-quote {
    color: #667389;
}

.ecosystem-activity-meta {
    text-align: right;
}

.ecosystem-commitment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.ecosystem-commitment-grid div {
    padding: 14px 12px;
    border-radius: 16px;
    background: #f8f9fe;
    text-align: center;
    border: 1px solid #ebeff7;
}

.ecosystem-commitment-grid i {
    display: block;
    margin-bottom: 8px;
    color: #4860de;
}

.ecosystem-cta-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 260px;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(90deg, #102a6a 0%, #0f3784 38%, #1258df 100%);
    color: #fff;
    box-shadow: 0 24px 40px rgba(13, 31, 82, 0.18);
}

.ecosystem-cta-pill,
.ecosystem-cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
}

.ecosystem-cta-pill {
    background: rgba(255, 255, 255, 0.08);
}

.ecosystem-cta-pill i,
.ecosystem-cta-button i {
    font-size: 1.5rem;
}

.ecosystem-cta-pill strong,
.ecosystem-cta-pill span,
.ecosystem-cta-button span,
.ecosystem-cta-button small {
    display: block;
}

.ecosystem-cta-pill span,
.ecosystem-cta-button small {
    color: rgba(255, 255, 255, 0.78);
}

.ecosystem-cta-button {
    justify-content: space-between;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
}

.ecosystem-cta-button small {
    font-size: 0.82rem;
}

@media (max-width: 1550px) {
    .ecosystem-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ecosystem-grid-top,
    .ecosystem-grid-middle,
    .ecosystem-grid-bottom {
        grid-template-columns: 1fr;
    }
    .ecosystem-cta-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .ecosystem-donut-wrap,
    .ecosystem-funnel-layout {
        grid-template-columns: 1fr;
    }
    .ecosystem-category-grid,
    .ecosystem-why-grid,
    .ecosystem-commitment-grid,
    .ecosystem-country-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ecosystem-legend {
        grid-template-columns: 1fr;
    }
    .ecosystem-cta-bar {
        grid-template-columns: 1fr;
    }

    .ecosystem-map-surface {
        min-height: 280px;
    }

    .ecosystem-jsv-map {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .ecosystem-kpi-grid,
    .ecosystem-category-grid,
    .ecosystem-why-grid,
    .ecosystem-commitment-grid,
    .ecosystem-country-grid {
        grid-template-columns: 1fr;
    }
    .ecosystem-bar-row {
        grid-template-columns: 1fr;
    }

    .ecosystem-map-surface {
        min-height: 240px;
        padding: 10px 12px;
    }

    .ecosystem-jsv-map {
        height: 190px;
    }
}

