:root {
    --ies-dark-blue: #003a70;
    --ies-logo-blue: #005eb8;
    --ies-electric-blue: #0072ce;
    --ies-cyan: #00aeef;
    --ies-light-blue: #eaf6fb;
    --ies-charcoal: #1f2933;
    --ies-graphite: #2b2b2b;
    --ies-gold: #f2c94c;
    --ies-silver: #d9dee3;
    --ies-surface: rgba(255, 255, 255, 0.84);
    --ies-surface-strong: rgba(255, 255, 255, 0.94);
    --ies-border: rgba(0, 94, 184, 0.16);
    --ies-shadow: 0 20px 60px rgba(0, 58, 112, 0.12);
    --ies-radius: 22px;
    --ies-text: #18324c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Bahnschrift", "Segoe UI Variable", "Segoe UI", sans-serif;
    color: var(--ies-text);
    background:
        radial-gradient(circle at top right, rgba(0, 174, 239, 0.18), transparent 26%),
        radial-gradient(circle at left 18%, rgba(0, 114, 206, 0.16), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 38%, #f8fbfd 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(50px);
}

body::before {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -90px;
    background: rgba(0, 174, 239, 0.18);
}

body::after {
    width: 340px;
    height: 340px;
    left: -100px;
    bottom: 70px;
    background: rgba(0, 94, 184, 0.12);
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.4rem;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(0, 174, 239, 0.18), transparent 30%),
        linear-gradient(180deg, #032a51 0%, #003a70 44%, #0a2d5f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.sidebar-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.55;
}

.sidebar-glow-top {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
    background: rgba(0, 174, 239, 0.35);
}

.sidebar-glow-bottom {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -60px;
    background: rgba(0, 114, 206, 0.28);
}

.brand-panel,
.sidebar-search,
.sidebar-footer {
    position: relative;
    z-index: 1;
}

.brand-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    margin-bottom: 1.4rem;
}

.brand-panel-compact {
    display: flex;
    justify-content: center;
    padding: 0.8rem;
}

.brand-logo-frame {
    display: grid;
    place-items: center;
    min-height: 132px;
    padding: 1rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 40px rgba(0, 13, 28, 0.18);
}

.brand-logo-link {
    display: block;
    text-decoration: none;
}

.brand-panel-compact .brand-logo-link {
    width: 100%;
    max-width: 248px;
}

.brand-panel-compact .brand-logo-frame {
    min-height: 0;
    padding: 0.85rem 0.9rem;
}

.brand-logo {
    width: 100%;
    max-width: 210px;
    height: auto;
    object-fit: contain;
}

.brand-copy {
    padding-top: 1rem;
}

.brand-kicker,
.sidebar-section-label,
.topbar-label,
.user-badge-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 700;
}

.brand-kicker {
    color: rgba(234, 246, 251, 0.78);
    margin-bottom: 0.45rem;
}

.brand-copy h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    line-height: 1.12;
    color: #fff;
    font-weight: 700;
}

.brand-copy p {
    margin: 0;
    color: rgba(234, 246, 251, 0.8);
    font-size: 0.92rem;
}

.sidebar-section-label {
    color: rgba(234, 246, 251, 0.65);
    margin: 1rem 0 0.55rem;
}

.sidebar-search {
    margin-bottom: 1rem;
}

.sidebar-search-field {
    position: relative;
}

.sidebar-search-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: rgba(0, 58, 112, 0.56);
    font-size: 0.92rem;
    pointer-events: none;
}

.sidebar .form-control {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.sidebar-search .form-control {
    padding-left: 2.65rem;
}

.sidebar .form-control::placeholder {
    color: rgba(0, 58, 112, 0.5);
    opacity: 1;
}

.sidebar .nav {
    gap: 0.28rem;
}

.sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    margin-right: 1rem;
    font-size: 1rem;
    color: rgba(234, 246, 251, 0.82);
}

.nav-link-label {
    min-width: 0;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    transform: translateX(3px);
    background: linear-gradient(90deg, rgba(0, 174, 239, 0.28), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.sidebar .nav-link.active .nav-link-icon,
.sidebar .nav-link:hover .nav-link-icon {
    color: #ffffff;
}

.sidebar-footer {
    margin-top: 1.4rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.sidebar-footer-copy {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(234, 246, 251, 0.78);
}

.content {
    padding: 1.3rem 1.5rem 2rem;
}

.content-shell {
    min-height: calc(100vh - 2.6rem);
}

.auth-brand-card {
    height: 100%;
    border-radius: 34px;
    padding: 1.4rem;
    color: #fff;
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 174, 239, 0.3), transparent 25%),
        linear-gradient(180deg, #04274a 0%, #003a70 45%, #0b2f63 100%);
    box-shadow: 0 30px 70px rgba(0, 58, 112, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.auth-logo-frame {
    min-height: 180px;
}

.product-brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-brand-badge {
    width: min(100%, 520px);
    height: auto;
    display: block;
}

.product-brand-lockup p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 30rem;
    color: rgba(234, 246, 251, 0.86);
}

.auth-brand-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.auth-strip-item {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-strip-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.22rem;
}

.auth-strip-label {
    font-size: 0.8rem;
    color: rgba(234, 246, 251, 0.76);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-messages {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: min(420px, calc(100% - 3rem));
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 94, 184, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
    box-shadow: var(--ies-shadow);
    backdrop-filter: blur(16px);
}

.topbar-context {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5a6f88;
    line-height: 1.25;
}

.topbar-product-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.topbar-product-badge-frame {
    width: min(100%, 360px);
    overflow: visible;
}

.topbar-product-badge {
    width: 100%;
    height: auto;
    display: block;
}

.user-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.user-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 8.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(234, 246, 251, 0.92), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(0, 114, 206, 0.12);
    flex: 0 0 auto;
}

.user-badge-label {
    color: #72839a;
}

.user-badge-name {
    font-weight: 700;
    color: var(--ies-dark-blue);
    white-space: nowrap;
}

.page-header h2,
h2,
h3,
h4,
h5,
.table thead th {
    font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
}

h2,
.page-header h2 {
    font-size: clamp(1.8rem, 2.1vw, 2.5rem);
    color: var(--ies-dark-blue);
    margin-bottom: 0.3rem;
}

.page-header,
.d-flex > div > p.text-muted,
p.text-muted {
    color: #5f738b !important;
}

.metric-card,
.section-card,
.card,
.login-card {
    background: linear-gradient(180deg, var(--ies-surface-strong), var(--ies-surface));
    border: 1px solid var(--ies-border);
    border-radius: var(--ies-radius);
    box-shadow: var(--ies-shadow);
    backdrop-filter: blur(14px);
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.4rem;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--ies-logo-blue), var(--ies-cyan));
}

.metric-card .label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    color: #6f7f93;
}

.metric-card .value {
    margin-top: 0.55rem;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--ies-dark-blue);
    font-weight: 700;
}

.metric-foot {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: #68809b;
    line-height: 1.45;
}

.metric-card-emphasis {
    background:
        radial-gradient(circle at top right, rgba(0, 174, 239, 0.15), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 246, 251, 0.9));
}

.metric-card-warning::before {
    background: linear-gradient(90deg, var(--ies-gold), #f3a533);
}

.section-card {
    overflow: hidden;
}

.section-card.p-3,
.card-body {
    padding: 1.3rem !important;
}

.card-header {
    border-bottom: 1px solid rgba(0, 94, 184, 0.08);
    background: linear-gradient(180deg, rgba(234, 246, 251, 0.92), rgba(255, 255, 255, 0.88));
}

.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(234, 246, 251, 0.55);
    --bs-table-hover-bg: rgba(0, 174, 239, 0.08);
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive {
    border-radius: inherit;
    overflow: hidden;
}

.table thead th {
    border-bottom: 1px solid rgba(0, 94, 184, 0.12);
    color: var(--ies-dark-blue);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    background: rgba(234, 246, 251, 0.6);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.table thead th:first-child {
    border-top-left-radius: calc(var(--ies-radius) - 1px);
}

.table thead th:last-child {
    border-top-right-radius: calc(var(--ies-radius) - 1px);
}

.table tbody td {
    border-color: rgba(0, 94, 184, 0.08);
    color: var(--ies-charcoal);
}

.table thead th:first-child,
.table tbody td:first-child {
    padding-left: 1.25rem;
}

.table thead th:last-child,
.table tbody td:last-child {
    padding-right: 1.25rem;
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    color: inherit;
    line-height: 1.1;
}

.table-sort-link:hover {
    color: var(--ies-logo-blue);
}

.table-sort-link.is-active {
    color: var(--ies-logo-blue);
}

.table-sort-indicator {
    margin-left: auto;
    font-size: 0.78rem;
    color: #8295ad;
}

.table-sort-link.is-active .table-sort-indicator {
    color: var(--ies-electric-blue);
}

.list-search-field {
    position: relative;
}

.list-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7c90aa;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.list-search-field .form-control {
    padding-left: 2.8rem;
}

a {
    color: var(--ies-logo-blue);
    text-decoration: none;
}

a:hover {
    color: var(--ies-electric-blue);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-width: 1px;
    box-shadow: none;
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ies-logo-blue), var(--ies-electric-blue) 56%, var(--ies-cyan));
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0052a0, #0068bc 56%, #00a4df);
}

.btn-outline-primary {
    color: var(--ies-logo-blue);
    border-color: rgba(0, 114, 206, 0.24);
    background: rgba(255, 255, 255, 0.8);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover {
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: #5d738a;
    border-color: rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.form-control,
.form-select,
textarea,
select {
    min-height: 46px;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 94, 184, 0.14) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--ies-charcoal) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 1px 0 rgba(0, 94, 184, 0.03);
}

textarea.form-control,
textarea {
    min-height: 130px;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(0, 114, 206, 0.42) !important;
    box-shadow: 0 0 0 0.24rem rgba(0, 114, 206, 0.12) !important;
}

label {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ies-dark-blue);
    margin-bottom: 0.4rem;
}

.alert {
    border: 1px solid rgba(0, 94, 184, 0.12);
    border-radius: 18px;
    box-shadow: var(--ies-shadow);
}

.alert-warning {
    background: linear-gradient(180deg, rgba(242, 201, 76, 0.18), rgba(255, 255, 255, 0.9));
    color: #5e4300;
}

.alert-info {
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.12), rgba(255, 255, 255, 0.92));
    color: var(--ies-dark-blue);
}

.object-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.object-form-grid {
    display: grid;
    gap: 1rem;
}

.object-form-field,
.object-form-checkbox {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 94, 184, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 246, 251, 0.74));
}

.object-form-field label,
.object-form-checkbox .form-check-label {
    margin-bottom: 0.45rem;
}

.object-form-checkbox .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 24px;
}

.object-form-checkbox .form-check-input {
    margin-top: 0;
}

.object-form-quick-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.object-form-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.object-form-quick-note {
    font-size: 0.84rem;
    color: #667b93;
}

.badge {
    border-radius: 999px;
    padding: 0.52rem 0.68rem;
    font-weight: 700;
}

.text-bg-warning {
    background: rgba(242, 201, 76, 0.2) !important;
    color: #5a4300 !important;
}

.text-bg-success {
    background: rgba(46, 139, 87, 0.15) !important;
    color: #1e6a3f !important;
}

.warning-list li {
    margin-bottom: 0.38rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ies-logo-blue);
}

.dashboard-hero,
.opportunity-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.7rem;
    border-radius: 32px;
    border: 1px solid rgba(0, 94, 184, 0.12);
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 174, 239, 0.18), transparent 28%),
        radial-gradient(circle at 22% 100%, rgba(0, 114, 206, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 252, 0.84));
    box-shadow: var(--ies-shadow);
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.dashboard-chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 94, 184, 0.12);
    color: var(--ies-dark-blue);
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-chip-link {
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-chip-icon {
    margin-right: 0.45rem;
    font-size: 0.84rem;
}

.dashboard-chip-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 114, 206, 0.22);
    box-shadow: 0 10px 22px rgba(0, 58, 112, 0.12);
}

.dashboard-chip-alert {
    background: rgba(242, 201, 76, 0.18);
    color: #7a5600;
}

.dashboard-hero-panel,
.opportunity-hero-actions {
    border-radius: 24px;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(0, 58, 112, 0.96), rgba(0, 94, 184, 0.92));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.dashboard-hero-panel-wide {
    margin-top: 0.15rem;
}

.hero-panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(234, 246, 251, 0.74);
    margin-bottom: 1rem;
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.hero-panel-stat {
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(234, 246, 251, 0.74);
    line-height: 1.4;
}

.hero-stat-icon {
    font-size: 0.8rem;
}

.dashboard-stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.dashboard-stat-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.hero-stat-value {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.45rem;
    font-weight: 700;
}

.dashboard-filter-card {
    border-radius: 28px;
}

.dashboard-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-link {
    flex: 0 0 auto;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 64px rgba(0, 58, 112, 0.16);
    border-color: rgba(0, 114, 206, 0.24);
    color: inherit;
}

.content-panel h5 {
    margin-bottom: 0.25rem;
}

.dashboard-section-panel {
    position: relative;
}

.dashboard-section-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ies-logo-blue), var(--ies-cyan));
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.panel-head-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.14), rgba(0, 174, 239, 0.18));
    color: var(--ies-logo-blue);
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.data-row,
.timeline-row,
.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 94, 184, 0.08);
}

.data-row:last-child,
.timeline-row:last-child,
.watchlist-item:last-child {
    border-bottom: 0;
}

.data-row-strong a,
.timeline-title,
.watchlist-body a {
    font-weight: 700;
}

.data-row-meta {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #6b7f96;
}

.data-row-value {
    font-weight: 700;
    color: var(--ies-dark-blue);
    text-align: right;
}

.data-row-date {
    min-width: 4.5rem;
}

.watchlist-icon {
    flex: 0 0 auto;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.14), rgba(0, 174, 239, 0.18));
    color: var(--ies-dark-blue);
    font-weight: 700;
}

.watchlist-item {
    justify-content: flex-start;
    align-items: center;
}

.watchlist-body {
    flex: 1 1 auto;
    min-width: 0;
}

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

.aging-column {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(0, 94, 184, 0.08);
}

.aging-label {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--ies-logo-blue);
}

.aging-label-link {
    display: inline-block;
    text-decoration: none;
}

.aging-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.opportunity-stage-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.opportunity-stage-pill,
.opportunity-priority-pill,
.opportunity-link-pill,
.status-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.opportunity-stage-pill {
    background: linear-gradient(135deg, var(--ies-logo-blue), var(--ies-cyan));
    color: #fff;
}

.opportunity-priority-pill {
    background: rgba(0, 58, 112, 0.08);
    color: var(--ies-dark-blue);
    border: 1px solid rgba(0, 94, 184, 0.1);
}

.opportunity-link-pill,
.status-mini-pill {
    background: rgba(255, 255, 255, 0.76);
    color: var(--ies-dark-blue);
    border: 1px solid rgba(0, 94, 184, 0.12);
}

.opportunity-subline {
    font-size: 0.98rem;
}

.opportunity-keyline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.opportunity-key-item {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 94, 184, 0.08);
}

.key-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6d8096;
    font-weight: 700;
}

.key-value {
    display: block;
    margin-top: 0.45rem;
    color: var(--ies-dark-blue);
    font-weight: 700;
}

.opportunity-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.opportunity-hero-actions .btn {
    width: 100%;
}

.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid rgba(0, 94, 184, 0.08);
}

.detail-list-row:last-child {
    border-bottom: 0;
}

.detail-list-row span {
    color: #6d8096;
}

.detail-list-row strong {
    text-align: right;
    color: var(--ies-dark-blue);
}

.narrative-block h6,
.nested-note-card h6 {
    font-weight: 700;
    color: var(--ies-dark-blue);
}

.nested-note-card {
    height: 100%;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 94, 184, 0.08);
}

.nested-note-card p:last-child,
.narrative-block p:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: rgba(0, 94, 184, 0.26);
    border: 3px solid rgba(0, 114, 206, 0.18);
}

.timeline-dot-bright {
    background: var(--ies-cyan);
}

.timeline-body {
    flex: 1 1 auto;
}

.timeline-title {
    color: var(--ies-dark-blue);
}

.login-card {
    border-radius: 30px;
}

.login-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.login-shell-row {
    min-height: calc(100vh - 2rem);
    width: 100%;
}

.is-guest .app-shell {
    grid-template-columns: minmax(360px, 520px) 1fr;
}

.is-guest .sidebar {
    height: auto;
    min-height: 100vh;
    padding: 1.6rem;
}

.is-guest .content {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-content-shell {
    width: 100%;
    min-height: auto;
}

code {
    color: var(--ies-dark-blue);
}

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

    .dashboard-hero,
    .opportunity-hero {
        grid-template-columns: 1fr;
    }

    .opportunity-keyline {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        position: static;
        height: auto;
    }

    .content {
        padding: 1rem;
    }

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

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

    .is-guest .app-shell {
        grid-template-columns: 1fr;
    }

    .is-guest .sidebar {
        min-height: auto;
        padding: 1rem 1rem 0;
    }

    .is-guest .content {
        padding: 1rem;
    }

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

    .hero-panel-grid,
    .aging-grid {
        grid-template-columns: 1fr;
    }
}
