*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #f3f4f6; color: #1f2937; line-height: 1.5; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #1f2937; color: #fff; position: fixed; height: 100vh; overflow-y: auto; }
.sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #374151; }
.sidebar-header h2 { font-size: 1.1rem; font-weight: 600; }
.sidebar-nav { padding: .75rem 0; }
.sidebar-menu { list-style: none; }
.sidebar-link { display: block; width: 100%; padding: .65rem 1.5rem; color: #d1d5db; background: none; border: none; text-align: left; cursor: pointer; font-size: .875rem; }
.sidebar-link:hover, .sidebar-link.active { background: #374151; color: #fff; text-decoration: none; }
.sidebar-link.active { background: #2563eb; }
.sidebar-group { margin: 0; list-style: none; }
.sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .65rem 1.5rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color .15s, background .15s;
}
.sidebar-group-toggle:hover { color: #d1d5db; background: #374151; }
.sidebar-group-toggle[aria-expanded="true"] { color: #e5e7eb; }
.sidebar-chevron {
    flex-shrink: 0;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -.15rem;
    transition: transform .2s ease;
}
.sidebar-group-toggle[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(-135deg);
    margin-top: .15rem;
}
.sidebar-submenu {
    list-style: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease-out;
}
.sidebar-submenu.is-open {
    max-height: 600px;
    transition: max-height .35s ease-in;
}
.sidebar-submenu .sidebar-link {
    padding-left: 2.25rem;
    font-size: .8125rem;
}
.sidebar-footer { margin-top: .5rem; border-top: 1px solid #374151; padding-top: .25rem; }
.sidebar-back { font-size: .8125rem; padding-top: .35rem; padding-bottom: 0; display: inline-block; }
.sidebar-divider { padding: .5rem 1.5rem; font-size: .7rem; text-transform: uppercase; color: #9ca3af; letter-spacing: .05em; margin-top: .5rem; }
.sidebar-logout { color: #fca5a5; }
.main-content { flex: 1; margin-left: 260px; min-height: 100vh; }
.content-wrapper { padding: 2rem; max-width: 1280px; }

.guest-layout .top-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: #fff; border-bottom: 1px solid #e5e7eb; }
.guest-layout .brand { font-weight: 700; font-size: 1.25rem; color: #2563eb; }
.guest-layout .nav-links { display: flex; gap: 1rem; align-items: center; }
.guest-main { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }
.page-lede { color: #6b7280; margin: -.35rem 0 1.15rem; max-width: 40rem; }
.form-help {
    margin: .35rem 0 0;
    font-size: .78rem;
    color: #6b7280;
    line-height: 1.4;
}
.form-section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    margin: .35rem 0 .85rem;
    padding-top: .35rem;
    border-top: 1px solid #e5e7eb;
}
.form-section-label:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.guest-layout--auth {
    background: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.guest-layout--auth .top-nav {
    flex-shrink: 0;
}
.guest-main--auth {
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    height: 100%;
}
.auth-split__visual {
    position: relative;
    overflow: hidden;
    background: #1e3a8a;
    min-height: 0;
}
.auth-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.auth-split__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 2rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(15, 23, 42, .55));
}
.auth-split__eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .35rem;
    opacity: .9;
}
.auth-split__tagline {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 22rem;
}
.auth-split__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    min-height: 0;
    overflow-y: auto;
}
.auth-split__card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.auth-split__card--register {
    max-width: 460px;
}
.auth-split__card--register .form-row {
    margin-bottom: .75rem;
}
.auth-split__card--register .form-group {
    margin-bottom: .75rem;
}
.auth-split__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .2rem;
    color: #111827;
}
.auth-split__subtitle {
    color: #6b7280;
    font-size: .875rem;
    margin-bottom: .85rem;
}
.auth-split__footer {
    margin-top: .85rem;
    text-align: center;
    color: #6b7280;
    font-size: .875rem;
}
.auth-split__card .form-group { margin-bottom: .75rem; }
.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}
.form-label-row .form-label { margin-bottom: 0; }
.form-label-link { font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.auth-split__card .alert { margin-bottom: .75rem; }
@media (max-width: 900px) {
    .guest-layout--auth { height: 100vh; overflow: hidden; }
    .auth-split {
        grid-template-columns: 1fr;
        grid-template-rows: 160px 1fr;
    }
    .auth-split__visual { min-height: 0; max-height: none; }
    .auth-split__caption { padding: .85rem 1.25rem; }
    .auth-split__tagline { font-size: 1rem; }
    .auth-split__panel { padding: .75rem 1rem; }
}

.card { background: #fff; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 1.5rem; margin-bottom: 1.25rem; }
.card-header { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid #e5e7eb; }
.form-group { margin-bottom: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-row .form-group { margin-bottom: 0; }
.form-row--align-start { align-items: start; }
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row .form-group { margin-bottom: 1rem; }
    .form-row .form-group:last-child { margin-bottom: 0; }
}
.form-label { display: block; margin-bottom: .35rem; font-weight: 500; font-size: .875rem; }
.form-input, .form-textarea, .form-select { width: 100%; padding: .5rem .65rem; border: 1px solid #d1d5db; border-radius: .375rem; font-size: 1rem; }
.password-field {
    position: relative;
    display: block;
}
.password-field .form-input {
    padding-right: 2.75rem;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    border-radius: .35rem;
}
.password-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}
.password-toggle:hover,
.password-toggle.is-active {
    color: #2563eb;
    background: transparent;
}
.form-textarea { min-height: 120px; resize: vertical; }
.tox-tinymce {
    border: 1px solid #d1d5db !important;
    border-radius: .375rem !important;
}
.tox .tox-toolbar__primary { background: #f9fafb !important; }
.rich-text p { margin: 0 0 .65rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 .65rem 1.25rem; }
.rich-text a { color: #2563eb; }
.btn { display: inline-block; padding: .5rem 1rem; border-radius: .375rem; font-weight: 500; border: none; cursor: pointer; font-size: .875rem; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-sm { padding: .35rem .65rem; font-size: .8125rem; }
.table-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: .375rem;
    border: none;
    background: transparent;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.icon-btn:hover { background: transparent; text-decoration: none; opacity: .8; }
.icon-btn--edit { color: #2563eb; }
.icon-btn--edit:hover { color: #1d4ed8; background: transparent; }
.icon-btn--chart { color: #059669; }
.icon-btn--chart:hover { color: #047857; background: transparent; }
.icon-btn--score {
    min-width: 2.75rem;
    font-size: .75rem;
    font-weight: 700;
}
.icon-btn__score { line-height: 1; }
.icon-btn--score.score-ring--low { color: #991b1b; background: transparent; }
.icon-btn--score.score-ring--low:hover { background: transparent; }
.icon-btn--score.score-ring--watch { color: #b45309; background: transparent; }
.icon-btn--score.score-ring--watch:hover { background: transparent; }
.icon-btn--score.score-ring--strong { color: #047857; background: transparent; }
.icon-btn--score.score-ring--strong:hover { background: transparent; }
.icon-btn--delete { color: #dc2626; }
.icon-btn--delete:hover { color: #b91c1c; background: transparent; }
.icon-btn--restore { color: #059669; }
.icon-btn--restore:hover { color: #047857; background: transparent; }
.assessment-details { margin-top: 1rem; }
.assessment-details__toggle {
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    color: #2563eb;
    padding: .5rem 0;
    list-style: none;
}
.assessment-details__toggle::-webkit-details-marker { display: none; }
.assessment-details[open] .assessment-details__toggle { margin-bottom: .75rem; }
.assessment-details .assessment-readonly { margin-top: .5rem; }
.checkbox-list { display: flex; flex-direction: column; gap: .45rem; }
.checkbox-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem .75rem;
    max-height: 220px;
    overflow-y: auto;
    padding: .65rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    background: #f9fafb;
}
.checkbox-item { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; }
.radio-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .65rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    background: #f9fafb;
    max-height: 220px;
    overflow-y: auto;
}
.radio-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .875rem;
    cursor: pointer;
}

.alert { padding: .85rem 1rem; border-radius: .375rem; margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: .5rem; overflow: hidden; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: .875rem; }
.table th { background: #f9fafb; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-label { font-size: .8125rem; color: #6b7280; }

.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.25rem; }
.page-actions { margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.form-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.badge { display: inline-block; padding: .2rem .5rem; border-radius: 999px; font-size: .75rem; background: #e5e7eb; }
.badge-success { background: #d1fae5; color: #065f46; }

.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2.25rem; margin-bottom: .75rem; }
.hero p { color: #6b7280; max-width: 560px; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.assessment-block { border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1rem; margin-bottom: 1rem; background: #fafafa; }
.score-options { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.score-options label { display: flex; align-items: center; gap: .25rem; font-size: .875rem; }

/* Assessment variable wizard */
.assessment-wizard { overflow: hidden; }
.wizard-progress { margin-bottom: 1rem; }
.wizard-progress__bar {
    height: .45rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.wizard-progress__fill {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
    transition: width .25s ease;
}
.wizard-progress__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: baseline;
    margin: .55rem 0 0;
    font-size: .875rem;
    color: #6b7280;
}
.wizard-progress__label {
    color: #1e3a8a;
    font-weight: 600;
}
.wizard-progress__label::before {
    content: '·';
    margin-right: .5rem;
    color: #9ca3af;
    font-weight: 400;
}
.wizard-steps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.15rem;
}
.wizard-steps-nav__item {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
}
.wizard-steps-nav__item.is-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.wizard-steps-nav__item.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.wizard-step[hidden] { display: none !important; }
.wizard-step__title {
    margin: 0 0 .45rem;
    font-size: 1.2rem;
    color: #111827;
}
.wizard-step__hint,
.wizard-step__desc {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.5;
}
.wizard-step__parent {
    margin: -.5rem 0 1rem;
    font-size: .8rem;
    color: #9ca3af;
}
.wizard-question {
    padding: .85rem 0;
    border-top: 1px solid #f3f4f6;
}
.wizard-question:first-of-type { border-top: none; padding-top: 0; }
.wizard-question--error {
    background: #fef2f2;
    border-radius: .5rem;
    padding: .85rem;
    border: 1px solid #fecaca;
}
.wizard-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.wizard-actions__spacer { flex: 1; }

@media (max-width: 768px) {
    .sidebar { position: relative; width: 100%; height: auto; }
    .main-content { margin-left: 0; }
}

/* ── Dashboard ── */
.dashboard-page { display: flex; flex-direction: column; gap: 1.5rem; }

.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .22);
}
.dashboard-hero__eyebrow { font-size: .8125rem; opacity: .85; margin-bottom: .35rem; }
.dashboard-hero__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
.dashboard-hero__subtitle { margin-top: .35rem; opacity: .9; font-size: .9375rem; }
.dashboard-hero__roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.dashboard-hero__aside { display: flex; gap: .75rem; flex-wrap: wrap; }
.dashboard-hero__stat {
    min-width: 110px;
    padding: .85rem 1rem;
    border-radius: .75rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
}
.dashboard-hero__stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.dashboard-hero__stat-label { font-size: .75rem; opacity: .85; }

.role-pill {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
}
.role-pill--startup { background: rgba(99,102,241,.35); }
.role-pill--investor { background: rgba(16,185,129,.35); }
.role-pill--mentor { background: rgba(245,158,11,.35); }
.role-pill--partner { background: rgba(168,85,247,.35); }
.role-pill--corporate { background: rgba(236,72,153,.35); }
.role-pill--admin { background: rgba(239,68,68,.35); }

.dashboard-alerts { display: flex; flex-direction: column; gap: .75rem; }
.dashboard-alert {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border-radius: .75rem;
    border: 1px solid transparent;
}
.dashboard-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.dashboard-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dashboard-alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dashboard-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dashboard-alert__icon {
    width: .65rem; height: .65rem; border-radius: 50%; margin-top: .45rem; flex-shrink: 0;
    background: currentColor;
}
.dashboard-alert__body p { margin-top: .15rem; font-size: .875rem; opacity: .9; }

.dashboard-section__head h2 { font-size: 1.125rem; font-weight: 700; }
.dashboard-section__head p { color: #6b7280; font-size: .875rem; margin-top: .15rem; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .85rem;
    margin-top: .85rem;
}
.quick-action {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .95rem 1rem;
    border-radius: .85rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    color: inherit;
}
.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
    border-color: #cbd5e1;
    text-decoration: none;
}
.quick-action__text { flex: 1; min-width: 0; }
.quick-action__text strong { display: block; font-size: .9375rem; }
.quick-action__text small { display: block; color: #6b7280; font-size: .75rem; margin-top: .1rem; }
.quick-action__arrow { color: #94a3b8; font-size: 1rem; }
.quick-action__icon {
    width: 2.25rem; height: 2.25rem; border-radius: .65rem; flex-shrink: 0;
    background: #e5e7eb center/1.1rem no-repeat;
}
.quick-action--blue .quick-action__icon { background-color: #dbeafe; }
.quick-action--purple .quick-action__icon { background-color: #ede9fe; }
.quick-action--indigo .quick-action__icon { background-color: #e0e7ff; }
.quick-action--teal .quick-action__icon { background-color: #ccfbf1; }
.quick-action--green .quick-action__icon { background-color: #d1fae5; }
.quick-action--amber .quick-action__icon { background-color: #fef3c7; }
.quick-action--slate .quick-action__icon { background-color: #f1f5f9; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.dashboard-grid__main, .dashboard-grid__side { display: flex; flex-direction: column; gap: 1.25rem; }

.widget-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.widget-card--compact { padding: 1rem 1.15rem; }
.widget-card--account { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.widget-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.widget-card__head h3 { font-size: 1rem; font-weight: 700; }
.widget-card__link { font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.widget-muted { color: #6b7280; font-size: .875rem; margin: .5rem 0; }
.text-link { font-size: .875rem; font-weight: 500; display: inline-block; margin-top: .5rem; }

.startup-widget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
}
.startup-widget__info h4 { font-size: 1.125rem; font-weight: 700; }
.startup-widget__tagline { color: #6b7280; margin-top: .25rem; font-size: .9375rem; }
.startup-widget__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.meta-chip {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    background: #f3f4f6;
    color: #374151;
}
.meta-chip--verified { background: #d1fae5; color: #065f46; }
.meta-chip--muted { background: #fef3c7; color: #92400e; }
.startup-widget__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.startup-widget__score { text-align: center; min-width: 140px; }
.score-ring {
    width: 110px; height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid #e5e7eb;
    background: #f9fafb;
}
.score-ring--strong { border-color: #10b981; background: #ecfdf5; }
.score-ring--good { border-color: #3b82f6; background: #eff6ff; }
.score-ring--watch { border-color: #f59e0b; background: #fffbeb; }
.score-ring--low { border-color: #ef4444; background: #fef2f2; }
.score-ring__value { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.score-ring__label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-top: .15rem; }
.score-band { font-size: .8125rem; font-weight: 600; margin-top: .65rem; color: #374151; }
.score-stage { font-size: .8125rem; color: #6b7280; margin-top: .25rem; }

.startup-widget__empty-score {
    padding: 1rem;
    border-radius: .75rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
    max-width: 200px;
}
.startup-widget__empty-score p { font-size: .8125rem; color: #64748b; margin-bottom: .75rem; }

.empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: .75rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.empty-state__icon {
    width: 3rem; height: 3rem; margin: 0 auto .75rem;
    border-radius: .85rem; background: #e0e7ff;
}
.empty-state h4 { font-size: 1rem; margin-bottom: .35rem; }
.empty-state p { color: #64748b; font-size: .875rem; max-width: 360px; margin: 0 auto 1rem; }

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.mini-stat__value { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.mini-stat__label { display: block; font-size: .8125rem; color: #6b7280; margin-top: .2rem; }

.news-feed { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.news-feed__item a {
    display: block;
    padding: .75rem .85rem;
    border-radius: .65rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    text-decoration: none;
    color: inherit;
    transition: background .15s, border-color .15s;
}
.news-feed__item a:hover { background: #eff6ff; border-color: #dbeafe; text-decoration: none; }
.news-feed__item strong { display: block; font-size: .875rem; line-height: 1.35; }
.news-feed__item span { display: block; font-size: .75rem; color: #6b7280; margin-top: .25rem; }

.account-dl { display: grid; gap: .65rem; margin-bottom: 1rem; }
.account-dl div { display: grid; grid-template-columns: 100px 1fr; gap: .5rem; font-size: .875rem; }
.account-dl dt { color: #6b7280; }
.account-dl dd { font-weight: 500; word-break: break-word; }
.account-links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Assessment results ── */
.assessment-results-page { display: flex; flex-direction: column; gap: 1.25rem; }
.results-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    color: #fff;
}
.results-hero__eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.results-hero__title { margin: .25rem 0 0; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.results-hero__tagline { margin-top: .35rem; opacity: .85; font-size: .9375rem; max-width: 520px; }
.score-ring--lg { width: 120px; height: 120px; border-width: 7px; }
.score-ring--lg .score-ring__value { font-size: 1.35rem; }

/* Dark score ring — results hero (color by percentage) */
.results-hero .score-ring--dark {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.results-hero .score-ring--dark .score-ring__value { color: #fff; }
.results-hero .score-ring--dark .score-ring__label { color: rgba(255, 255, 255, 0.78); }
.results-hero .score-ring--dark.score-ring--low {
    background: linear-gradient(145deg, #991b1b 0%, #7f1d1d 45%, #450a0a 100%);
    border-color: #fca5a5;
}
.results-hero .score-ring--dark.score-ring--watch {
    background: linear-gradient(145deg, #d97706 0%, #b45309 45%, #78350f 100%);
    border-color: #fcd34d;
}
.results-hero .score-ring--dark.score-ring--strong {
    background: linear-gradient(145deg, #059669 0%, #047857 45%, #064e3b 100%);
    border-color: #6ee7b7;
}

.results-hero--compact { margin-bottom: 1rem; }
.results-hero--compact .results-hero__title { margin: .25rem 0 0; color: #fff; font-size: 1.25rem; }

.program-events-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e5e7eb; }
.program-events-section__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.program-events-empty { margin-top: .5rem; }
.program-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .85rem;
}
.program-event-card {
    border: 1px solid #e5e7eb;
    border-radius: .85rem;
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 100%;
}
.program-event-card h4 { font-size: .9375rem; margin: 0; color: #111827; }
.program-event-card__venue { font-size: .8125rem; color: #6b7280; margin: .15rem 0 0; }
.program-event-card__date { font-size: .8125rem; color: #374151; margin: .35rem 0 0; }
.program-event-card__desc { font-size: .8125rem; color: #6b7280; margin: .35rem 0 0; line-height: 1.45; }
.program-event-card__actions { display: flex; gap: .5rem; margin-top: auto; }

.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.modal__dialog {
    position: relative;
    width: min(100%, 520px);
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}
.modal__dialog--wide { width: min(100%, 760px); }
.modal__dialog > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal__header, .modal__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; flex-shrink: 0; }
.modal__header { border-bottom: 1px solid #e5e7eb; }
.modal__header h3 { margin: 0; font-size: 1.05rem; }
.modal__body { padding: 1.25rem; }
.modal__body--scroll { overflow-y: auto; flex: 1; min-height: 0; }
.modal__footer { border-top: 1px solid #e5e7eb; justify-content: flex-end; }
.modal__close { border: none; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #6b7280; }
.modal .tox-tinymce { max-height: min(280px, 40vh) !important; }
body.modal-open { overflow: hidden; }

.idea-show-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .25rem;
}
.idea-show-header .page-title { margin-bottom: 0; }
.idea-show-header__actions { margin-bottom: 0; }

.ideas-list { display: flex; flex-direction: column; gap: .75rem; }
.idea-card { margin-bottom: 0; }
.idea-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.idea-card__main { min-width: 0; flex: 1; }
.idea-card__title { margin: 0; font-size: 1.05rem; }
.idea-card__meta { margin: .35rem 0 0; font-size: .875rem; color: #6b7280; }
.idea-card__actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-shrink: 0;
}

.startup-services { margin: 1.5rem 0 2rem; }
.startup-services__heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
}
.startup-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.startup-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 1.15rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.startup-service-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .1);
    transform: translateY(-1px);
}
.startup-service-card h3 {
    margin: 0 0 .65rem;
    font-size: 1rem;
    color: #1e3a8a;
}
.startup-service-card p {
    margin: 0 0 .45rem;
    font-size: .84rem;
    color: #4b5563;
    line-height: 1.45;
}
.startup-service-card__cta {
    margin-top: auto;
    padding-top: .75rem;
    font-size: .84rem;
    font-weight: 600;
    color: #2563eb;
}
@media (max-width: 900px) {
    .startup-services__grid { grid-template-columns: 1fr; }
}

.admin-startup-assessment { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.section-title { font-size: 1.15rem; font-weight: 700; color: #111827; }
.section-subtitle { font-size: .875rem; color: #6b7280; margin-top: -.35rem; }
.assessment-readonly .form-textarea[readonly],
.assessment-readonly .form-select:disabled,
.assessment-readonly input:disabled { background: #f9fafb; color: #374151; cursor: not-allowed; }
.assessment-readonly .score-options label { opacity: .85; }
.assessment-results-embed .results-metrics,
.assessment-results-embed .widget-card,
.assessment-results-embed .results-split { margin-top: 1rem; }

.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .85rem;
}
.results-metric {
    padding: 1rem 1.1rem;
    border-radius: .85rem;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.results-metric__label { display: block; font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.results-metric__value { display: block; font-size: 1.05rem; font-weight: 700; color: #111827; line-height: 1.3; }
.results-metric--stage { background: #f0fdf4; border-color: #bbf7d0; }
.results-metric--band { background: #fffbeb; border-color: #fde68a; }
.results-metric--model .form-select { margin-top: .15rem; font-size: .875rem; }
.results-model-form { margin: 0; }

.results-recommendation { font-size: .9375rem; line-height: 1.65; color: #374151; }
.widget-card--danger { border-color: #fecaca; background: #fef2f2; }
.widget-card--danger h3 { color: #991b1b; }
.widget-card__meta { font-size: .75rem; color: #6b7280; font-weight: 500; }

.results-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.results-list li {
    position: relative;
    padding: .65rem .85rem .65rem 2rem;
    border-radius: .65rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: .875rem;
    line-height: 1.45;
}
.results-list li::before {
    content: '';
    position: absolute;
    left: .75rem;
    top: .95rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #94a3b8;
}
.results-list--strengths li { background: #ecfdf5; border-color: #d1fae5; }
.results-list--strengths li::before { background: #10b981; }
.results-list--risks li { background: #fff7ed; border-color: #fed7aa; }
.results-list--risks li::before { background: #f59e0b; }
.results-list--danger li { background: #fff; border-color: #fecaca; }
.results-list--danger li::before { background: #ef4444; }

.table-wrap { overflow-x: auto; }
.empty-state__icon--chart { background: #dbeafe; }

@media (max-width: 768px) {
    .results-split { grid-template-columns: 1fr; }
    .results-hero__score { margin: 0 auto; }
}

/* Get Assistance CTAs + page */
.assist-cta-row {
    display: flex;
    justify-content: flex-end;
}
.assist-page { display: flex; flex-direction: column; gap: 1.35rem; }
.assist-hero {
    padding: 1.5rem 1.5rem 1.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
}
.assist-hero .page-title { color: #fff; margin: .35rem 0 .65rem; }
.assist-hero__eyebrow {
    margin: 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .8;
}
.assist-hero__lede {
    margin: 0 0 1.1rem;
    max-width: 46rem;
    line-height: 1.6;
    opacity: .92;
}
.assist-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.assist-hero__actions .btn-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}
.assist-hero__actions .btn-secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; }

.assist-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.assist-section h2 { margin: 0 0 .65rem; font-size: 1.15rem; color: #111827; }
.assist-section > p { margin: 0; color: #4b5563; line-height: 1.6; }
.assist-section__intro { margin-bottom: 1rem !important; }
.assist-section--cta {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.15rem;
    align-items: stretch;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .85rem;
    padding: 1.25rem 1.15rem 1.15rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
    position: relative;
}
.pricing-card--featured {
    border-color: #2563eb;
    box-shadow: 0 10px 28px rgba(37, 99, 235, .16);
    transform: translateY(-4px);
}
.pricing-card__badge {
    position: absolute;
    top: -.7rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pricing-card__tier {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2563eb;
}
.pricing-card__name {
    margin: .35rem 0 .55rem;
    font-size: 1.1rem;
    color: #111827;
}
.pricing-card__price {
    margin: 0 0 .65rem;
    color: #0f172a;
    display: flex;
    align-items: baseline;
    gap: .35rem;
}
.pricing-card__price span {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.pricing-card__price small {
    font-size: .85rem;
    color: #6b7280;
    font-weight: 500;
}
.pricing-card__desc {
    margin: 0 0 .85rem;
    font-size: .875rem;
    color: #4b5563;
    line-height: 1.5;
    min-height: 3.2rem;
}
.pricing-card__features {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex: 1;
}
.pricing-card__features li {
    position: relative;
    padding-left: 1.15rem;
    font-size: .84rem;
    color: #374151;
    line-height: 1.4;
}
.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .45rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #10b981;
}
.pricing-card__btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card--featured { transform: none; }
}

.assist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-top: .85rem;
}
.assist-card {
    padding: 1rem;
    border-radius: .65rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.assist-card h3 { margin: 0 0 .4rem; font-size: .95rem; color: #1e3a8a; }
.assist-card p { margin: 0; font-size: .875rem; color: #4b5563; line-height: 1.5; }

.assist-stages {
    list-style: none;
    margin: .85rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.assist-stages li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    padding: .9rem 1rem;
    border-radius: .65rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.assist-stages__num {
    font-weight: 800;
    font-size: .85rem;
    color: #2563eb;
    letter-spacing: .04em;
}
.assist-stages h3 { margin: 0 0 .35rem; font-size: .95rem; }
.assist-stages p { margin: 0; font-size: .875rem; color: #4b5563; line-height: 1.5; }
.assist-stages__meta { margin-top: .4rem !important; font-size: .8rem !important; color: #6b7280 !important; }

@media (max-width: 720px) {
    .assist-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .startup-widget { grid-template-columns: 1fr; }
    .startup-widget__score, .startup-widget__empty-score { max-width: none; margin: 0 auto; }
}

@media (max-width: 640px) {
    .content-wrapper { padding: 1rem; }
    .dashboard-hero { padding: 1.25rem; }
    .dashboard-hero__aside { width: 100%; }
    .quick-actions { grid-template-columns: 1fr; }
}

.admin-dash { display: flex; flex-direction: column; gap: 1.25rem; }
.admin-dash__hero {
    padding: 1.15rem 1.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1d4ed8 100%);
    color: #fff;
}
.admin-dash__eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin: 0; }
.admin-dash__title { margin: .2rem 0 0; color: #fff; }
.admin-dash__lede { margin: .35rem 0 0; opacity: .85; font-size: .9rem; max-width: 560px; }
.admin-dash .page-title { margin-bottom: 0; }
.admin-dash .stats-grid { margin-bottom: 0; }
.admin-dash__charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .85rem;
    padding: 1rem 1.1rem 1.15rem;
}
.chart-card--wide { grid-column: 1 / -1; }
.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.chart-card__head h3 { font-size: .95rem; margin: 0; }
.chart-card__meta { font-size: .75rem; color: #6b7280; }
.chart-card__body { position: relative; height: 240px; }
.chart-card__body--bar { height: 280px; }
.admin-dash__split {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1rem;
}
.score-chip {
    display: inline-flex;
    align-items: center;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}
.score-chip.score-ring--low { background: #fef2f2; color: #991b1b; }
.score-chip.score-ring--watch { background: #fffbeb; color: #b45309; }
.score-chip.score-ring--strong { background: #ecfdf5; color: #047857; }
.var-avg-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.var-avg-list__meta { display: flex; justify-content: space-between; gap: .75rem; font-size: .8125rem; margin-bottom: .3rem; }
.var-avg-list__meta span { color: #6b7280; white-space: nowrap; }
.var-avg-bar { height: .45rem; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.var-avg-bar span { display: block; height: 100%; background: #2563eb; border-radius: 999px; }

.admin-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.admin-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 1rem;
    align-items: flex-end;
}
.admin-filters__field { min-width: 140px; flex: 1 1 140px; }
.admin-filters__field--search { flex: 2 1 220px; }
.admin-filters__actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding-bottom: .05rem;
}
.table tr.is-deleted td { background: #fef2f2; color: #7f1d1d; }
.table .badge-deleted {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .4rem;
    border-radius: .25rem;
    background: #fecaca;
    color: #991b1b;
    font-size: .7rem;
    font-weight: 600;
    vertical-align: middle;
}

.news-image-preview { margin-bottom: .75rem; }
.news-image-preview img {
    display: block;
    max-width: 220px;
    max-height: 140px;
    border-radius: .65rem;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}
.news-image-preview p { margin-top: .45rem; }

@media (max-width: 1100px) {
    .admin-dash__charts { grid-template-columns: 1fr 1fr; }
    .admin-dash__split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .admin-dash__charts { grid-template-columns: 1fr; }
}

/* Assessment variables org chart */
.var-org-card { overflow: hidden; }
.var-org-scroll {
    overflow-x: auto;
    padding: .5rem .25rem 1rem;
}
.var-org-chart {
    display: inline-block;
    min-width: 100%;
    text-align: center;
}
.org-tree,
.org-tree ul {
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
    position: relative;
    list-style: none;
    margin: 0;
}
.org-tree { padding-top: 0; }
.org-tree > li {
    padding-top: 0;
}
.org-tree > li::before,
.org-tree > li::after {
    display: none;
}
.org-tree li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 1.25rem .65rem 0;
}
.org-tree li::before,
.org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #cbd5e1;
    width: 50%;
    height: 1.25rem;
}
.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #cbd5e1;
}
.org-tree li:only-child::before,
.org-tree li:only-child::after { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree > li:only-child { padding-top: 0; }
.org-tree li:first-child::before,
.org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before {
    border-right: 2px solid #cbd5e1;
    border-radius: 0 .35rem 0 0;
}
.org-tree li:first-child::after {
    border-radius: .35rem 0 0 0;
}
.org-tree ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #cbd5e1;
    width: 0;
    height: 1.25rem;
}
.org-node {
    position: relative;
    z-index: 1;
    min-width: 160px;
    max-width: 200px;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: .65rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .08);
    text-align: center;
}
.org-node--inactive {
    border-color: #e5e7eb;
    background: #f9fafb;
    opacity: .85;
}
.org-node__name {
    font-weight: 650;
    font-size: .9rem;
    color: #1e3a8a;
    line-height: 1.3;
    margin-bottom: .35rem;
}
.org-node--inactive .org-node__name { color: #6b7280; }
.org-node__meta {
    font-size: .75rem;
    color: #6b7280;
    line-height: 1.35;
    margin-bottom: .5rem;
}
.org-node__link {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
}
.org-node:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .14);
}


