:root {
    --sidebar-width: 268px;
    --brand-green: #6c9359;
    --brand-green-dark: #38592d;
    --brand-green-deep: #1f371c;
    --brand-green-ink: #132612;
    --brand-blue: #0170b9;
    --brand-blue-dark: #075383;
    --green-950: #132612;
    --green-900: #1f371c;
    --green-800: #38592d;
    --green-700: #5f864d;
    --green-600: #6c9359;
    --leaf-100: #e6f0e1;
    --leaf-50: #f5f8f2;
    --amber: #d69a2d;
    --clay: #9d5c32;
    --ink: #18231a;
    --muted: #667467;
    --line: #dfe7dc;
    --surface: #ffffff;
    --canvas: #f4f7f2;
    --shadow: 0 14px 34px rgba(31, 55, 28, 0.08);
}

/* YEELD MIS theme overrides */
:root {
    --sidebar-width: 268px;
    --brand-green: #0f2d4f;
    --brand-green-dark: #0b223d;
    --brand-green-deep: #07182c;
    --brand-green-ink: #061426;
    --brand-blue: #0f2d4f;
    --brand-blue-dark: #07182c;
    --green-950: #061426;
    --green-900: #0b223d;
    --green-800: #14395f;
    --green-700: #1f5a88;
    --green-600: #5f8aa8;
    --leaf-100: #e9f0f6;
    --leaf-50: #f6f9fc;
    --amber: #d89b45;
    --clay: #b85f38;
    --ink: #0b1727;
    --muted: #66768a;
    --line: #dfe7f0;
    --surface: #ffffff;
    --canvas: #eef4fb;
    --shadow: 0 14px 34px rgba(15, 45, 79, 0.08);
}

.sidebar {
    background: #fff;
    border-right: 1px solid #e1e8f0;
    box-shadow: 10px 0 30px rgba(15, 45, 79, 0.07);
}

.sidebar-brand,
.sidebar-nav a,
.sidebar-group summary {
    color: #102944;
}

.sidebar-brand {
    min-height: 76px;
}

.sidebar-brand .brand-mark-image {
    background: transparent;
    height: 46px;
    width: 58px;
}

.sidebar-brand .brand-mark-image img {
    object-fit: contain;
    transform: scale(1.55);
    transform-origin: left center;
}

.sidebar-brand strong {
    color: #0f2d4f;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-group summary:hover,
.sidebar-group[open] summary {
    background: #edf4fb;
    border-left-color: #0f2d4f;
    color: #061426;
}

.topbar {
    background: #0f2d4f;
    border-bottom-color: #081a2e;
}

.btn-success,
.btn-login-primary {
    background: #0f2d4f;
    border-color: #0f2d4f;
    color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-login-primary:hover,
.btn-login-primary:focus {
    background: #0a2039;
    border-color: #0a2039;
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #5f8aa8;
    box-shadow: 0 0 0 0.2rem rgba(15, 45, 79, 0.14);
}

.kpi-card {
    border-left-color: #0f2d4f;
}

.yeeld-login-page {
    background: #dfe8f3;
    color: #0f2037;
    min-height: 100vh;
}

.yeeld-login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.yeeld-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(15, 45, 79, 0.16);
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.95fr);
    max-width: 100%;
    min-height: 676px;
    overflow: hidden;
    width: min(100%, 1000px);
}

.yeeld-login-form {
    align-self: center;
    padding: 3.2rem 3rem;
}

.yeeld-login-form .login-brand {
    margin-bottom: 2.2rem;
}

.yeeld-login-form .login-brand img {
    height: 68px;
    width: auto;
}

.yeeld-login-form h1 {
    color: #1d5a82;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.35rem;
}

.yeeld-login-form p {
    color: #26394e;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.yeeld-login-form .form-label {
    color: #07182c;
    font-size: 0.94rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.yeeld-login-form .form-control {
    background: #eaf2ff;
    border: 1px solid #dfe9f7;
    border-radius: 8px;
    color: #081a2e;
    font-size: 0.98rem;
    min-height: 52px;
    padding-inline: 1rem;
}

.yeeld-login-form .password-field {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.yeeld-login-form .password-field .icon-button {
    align-self: stretch;
    background: #eaf2ff;
    border: 1px solid #dfe9f7;
    color: #6d7b89;
    height: 52px;
    width: 48px;
}

.btn-login-primary {
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 900;
    min-height: 46px;
}

.yeeld-login-links {
    margin-top: 1rem;
    text-align: center;
}

.yeeld-login-links a {
    color: #4a8ad8;
    font-weight: 700;
    text-decoration: none;
}

.yeeld-partner-panel {
    align-content: center;
    border-left: 1px solid #e3eaf2;
    display: grid;
    gap: 1.8rem;
    justify-items: center;
    padding: 2.7rem 3rem;
}

.yeeld-partner-panel h2 {
    color: #142b47;
    font-size: 0.96rem;
    font-weight: 800;
    margin: 0;
}

.partner-logo-row,
.partner-logo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(350px, 100%);
}

.partner-logo-row span,
.partner-logo-grid span,
.partner-logo-wide {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 96px;
    padding: 0.8rem;
}

.partner-logo-wide {
    min-height: 120px;
    width: min(350px, 100%);
}

.partner-logo-row img,
.partner-logo-grid img,
.partner-logo-wide img {
    display: block;
    max-height: 78px;
    max-width: 100%;
    object-fit: contain;
}

.partner-logo-wide img {
    max-height: 100px;
}

.select2-container--bootstrap-5 .select2-selection {
    align-items: center;
    border-color: #cbd8e6;
    border-radius: 8px;
    display: flex;
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0 2.15rem 0 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.25;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    align-items: center;
    display: inline-flex;
    height: 1rem;
    margin-right: 0.45rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    right: 0.6rem;
    top: 0;
}

.branch-selector {
    min-width: 270px;
}

.branch-selector .select2-container,
.partner-scope-select {
    width: 270px !important;
}

.branch-selector .select2-container--bootstrap-5 .select2-selection--single {
    background: #f8fbff;
    border-color: #b7cbe2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    min-height: 40px;
}

.branch-selector .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #0f2d4f;
    font-size: 0.86rem;
    font-weight: 850;
}

.partner-scope-label {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #bfd1e5;
    border-radius: 8px;
    background: #f8fbff;
    color: #0b2f55;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.partner-scope-label i {
    color: #14557a;
}

.partner-scope-label strong {
    color: #60758d;
    font-size: 11px;
    font-weight: 850;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #5f8aa8;
    box-shadow: 0 0 0 0.2rem rgba(15, 45, 79, 0.14);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #cbd8e6;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #0f2d4f;
}

.swal2-confirm {
    background-color: #0f2d4f !important;
}

@media (max-width: 900px) {
    .yeeld-login-card {
        grid-template-columns: 1fr;
    }

    .yeeld-partner-panel {
        border-left: 0;
        border-top: 1px solid #e3eaf2;
    }
}

.page-intro-panel {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 25, 43, 0.06);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.05rem 1.2rem;
}

.page-intro-panel h2 {
    color: #10192b;
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
}

.page-intro-panel p {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
    margin: 0.25rem 0 0;
    max-width: 760px;
}

.page-kicker {
    color: #1f5a88;
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.page-form-panel {
    overflow: visible;
}

.page-form {
    gap: 1rem;
}

.page-form > .nav-tabs {
    display: none;
}

.page-form > .tab-content {
    display: grid;
    gap: 1rem;
}

.page-form .tab-pane {
    display: block !important;
    opacity: 1 !important;
}

.page-form .form-page-section,
.form-page-section {
    background: #fbfdff;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16, 25, 43, 0.04);
    padding: 1rem;
}

.form-section-title {
    align-items: center;
    border-bottom: 1px solid #e8eef5;
    display: flex;
    gap: 0.75rem;
    margin: -0.1rem 0 1rem;
    padding-bottom: 0.75rem;
}

.form-section-title > span {
    align-items: center;
    background: #e9f3ff;
    border: 1px solid #cfe1f6;
    border-radius: 8px;
    color: #0f2d4f;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 0.9rem;
    font-weight: 900;
    height: 36px;
    justify-content: center;
}

.form-section-title h4 {
    color: #10192b;
    font-size: 0.98rem;
    font-weight: 900;
    margin: 0;
}

.form-section-title p {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    margin: 0.15rem 0 0;
}

.page-form .location-stack {
    margin-top: 1rem;
}

.page-form .btn[type="submit"] {
    justify-self: start;
    min-width: 240px;
}

#yeeldAjaxBar {
    background: linear-gradient(90deg, #0f2d4f, #4a8ad8);
    height: 3px;
    left: var(--sidebar-width, 292px);
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.14s ease, transform 0.22s ease;
    z-index: 2000;
}

body.page-loading #yeeldAjaxBar {
    opacity: 1;
    transform: scaleX(0.72);
}

body.page-loading #yeeldPageContent {
    opacity: 0.62;
    pointer-events: none;
    position: relative;
    transition: opacity 0.16s ease;
}

body.page-loading #yeeldPageContent::after {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    color: #0f2d4f;
    content: "Loading section...";
    display: flex;
    font-size: 0.88rem;
    font-weight: 900;
    gap: 0.5rem;
    justify-content: center;
    left: 50%;
    min-height: 44px;
    min-width: 180px;
    padding: 0.7rem 1rem;
    position: fixed;
    top: 90px;
    transform: translateX(-50%);
    z-index: 1200;
}

.sidebar-dropdown {
    margin: 2px 12px 2px 0;
}

.sidebar-dropdown summary {
    align-items: center;
    border: 1px solid transparent;
    border-left: 4px solid transparent;
    border-radius: 0 14px 14px 0;
    color: #102944;
    cursor: pointer;
    display: flex;
    font-size: 0.96rem;
    font-weight: 800;
    gap: 13px;
    list-style: none;
    min-height: 46px;
    padding: 10px 18px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown summary > i:first-child {
    align-items: center;
    color: var(--secondary-color, #1f5a88);
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 1.06rem;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.sidebar-dropdown summary span {
    flex: 1 1 auto;
}

.sidebar-chevron {
    font-size: 0.72rem !important;
    transition: transform 0.18s ease;
}

.sidebar-dropdown[open] .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-dropdown summary:hover,
.sidebar-dropdown.active summary {
    background: #eef5ff;
    border-left-color: #0f2d4f;
    color: #07182c;
}

.sidebar-submenu {
    display: grid;
    gap: 0.1rem;
    margin: 0.15rem 0 0.35rem 2.15rem;
}

.sidebar-menu .sidebar-submenu a {
    border-left-width: 0;
    border-radius: 9px;
    font-size: 0.84rem;
    margin: 0 8px 0 0;
    min-height: 36px;
    padding: 7px 10px;
}

.sidebar-menu .sidebar-submenu a i {
    font-size: 0.82rem;
    height: 18px;
    width: 18px;
}

html[data-sidebar-theme="dark"] .sidebar-dropdown summary {
    color: rgba(243, 248, 255, 0.82);
}

html[data-sidebar-theme="dark"] .sidebar-dropdown summary > i:first-child {
    color: var(--sidebar-dark-icon, #9bc9ff);
}

html[data-sidebar-theme="dark"] .sidebar-dropdown summary:hover,
html[data-sidebar-theme="dark"] .sidebar-dropdown.active summary {
    background: rgba(117, 184, 255, 0.1);
    border-left-color: var(--sidebar-dark-active, #75b8ff);
    color: #fff;
}

body.sidebar-collapsed .sidebar-dropdown {
    margin-right: 0;
}

body.sidebar-collapsed .sidebar-dropdown summary {
    border-radius: 12px;
    justify-content: center;
    padding-inline: 8px;
}

body.sidebar-collapsed .sidebar-dropdown summary span,
body.sidebar-collapsed .sidebar-dropdown .sidebar-chevron,
body.sidebar-collapsed .sidebar-submenu {
    display: none;
}

@media (max-width: 768px) {
    .page-intro-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .page-form .btn[type="submit"] {
        justify-self: stretch;
        width: 100%;
    }
}

.yeeld-auth-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.yeeld-auth-card {
    background: #fff;
    border: 1px solid #dfe7f0;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(15, 45, 79, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    max-width: 1080px;
    min-height: 640px;
    overflow: hidden;
    width: min(100%, 1080px);
}

.yeeld-auth-copy {
    background:
        linear-gradient(135deg, rgba(15, 45, 79, 0.96), rgba(23, 71, 112, 0.9)),
        url("../images/brand/cover-img.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.yeeld-auth-logo {
    background: #fff;
    border-radius: 14px;
    display: block;
    height: 86px;
    object-fit: contain;
    padding: 0.45rem 0.7rem;
    width: 250px;
}

.yeeld-auth-kicker {
    color: #cfe2f2;
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-top: auto;
    text-transform: uppercase;
}

.yeeld-auth-copy h1 {
    font-size: clamp(2rem, 4vw, 3.55rem);
    font-weight: 900;
    line-height: 1.04;
    margin: 0.7rem 0 0.9rem;
    max-width: 620px;
}

.yeeld-auth-copy p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.7;
    max-width: 620px;
}

.yeeld-auth-signals {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.6rem;
}

.yeeld-auth-signals span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #dceaf5;
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.8rem;
}

.yeeld-auth-signals strong {
    color: #fff;
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
}

.yeeld-auth-form-panel {
    align-self: center;
    display: grid;
    gap: 1.4rem;
    padding: 3rem;
}

.yeeld-auth-form-head span {
    color: #1f5a88;
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.yeeld-auth-form-head h2 {
    color: #0f2d4f;
    font-size: 2rem;
    font-weight: 900;
    margin: 0.25rem 0;
}

.yeeld-auth-form-head p {
    color: #66768a;
    font-weight: 700;
    margin: 0;
}

.yeeld-auth-form-panel .form-control {
    background: #eef5ff;
    border-color: #d8e5f2;
    min-height: 52px;
}

.yeeld-auth-form-panel .password-field .icon-button {
    background: #eef5ff;
    border-color: #d8e5f2;
    color: #66768a;
    height: 52px;
}

.yeeld-auth-forgot {
    color: #1f73bd;
    display: inline-flex;
    font-weight: 800;
    justify-self: center;
    margin-top: 0.2rem;
    text-decoration: none;
}

.yeeld-auth-partners {
    border-top: 1px solid #e2eaf2;
    display: grid;
    gap: 0.8rem;
    padding-top: 1rem;
}

.yeeld-auth-partners > span {
    color: #66768a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.yeeld-auth-partners div {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yeeld-auth-partners img {
    background: #fff;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    display: block;
    height: 72px;
    object-fit: contain;
    padding: 0.1rem;
    width: 100%;
}

.yeeld-split-auth {
    background: #edf3fa;
    color: #0b1727;
    display: grid;
    grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1fr);
    min-height: 100vh;
}

.yeeld-split-brand {
    background:
        radial-gradient(circle at 78% 36%, rgba(72, 123, 165, 0.24), transparent 32%),
        linear-gradient(150deg, rgba(6, 21, 39, 0.98), rgba(13, 47, 78, 0.91)),
        url("../images/brand/cover-img.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.35rem, 2.4vw, 2.4rem);
    text-align: center;
}

.yeeld-split-brand-inner {
    display: grid;
    justify-items: center;
    max-width: 620px;
    width: min(100%, 620px);
}

.yeeld-split-logo {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
    display: block;
    height: auto;
    max-height: 96px;
    object-fit: contain;
    padding: 0;
    width: min(360px, 100%);
}

.yeeld-split-copy {
    margin-top: clamp(1.8rem, 5vh, 3.2rem);
    max-width: 600px;
}

.yeeld-split-copy span,
.yeeld-split-form-head span,
.yeeld-split-partners > span {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yeeld-split-copy span {
    color: #b9d7ec;
    display: inline-flex;
    justify-content: center;
}

.yeeld-split-copy h1 {
    font-size: clamp(2rem, 3.45vw, 3.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0.75rem auto 0.9rem;
    max-width: 560px;
}

.yeeld-split-copy p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}

.yeeld-split-signals {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.7rem;
    max-width: 560px;
    width: 100%;
}

.yeeld-split-signals div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    min-width: 0;
    padding: 0.82rem 0.65rem;
}

.yeeld-split-signals strong {
    color: #fff;
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.yeeld-split-signals span,
.yeeld-split-foot {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
}

.yeeld-split-form-panel {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 253, 0.98));
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(1.35rem, 2.4vw, 2.4rem);
}

.yeeld-split-form-box {
    width: min(100%, 600px);
}

.yeeld-split-form-head span,
.yeeld-split-partners > span {
    color: #1f5a88;
}

.yeeld-split-form-head h2 {
    color: #0f2d4f;
    font-size: clamp(1.85rem, 2.7vw, 2.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0.45rem 0 0.35rem;
}

.yeeld-split-form-head p {
    color: #66768a;
    font-weight: 750;
    margin: 0 0 1rem;
}

.yeeld-split-form {
    display: grid;
    gap: 0.75rem;
}

.yeeld-split-form .form-label {
    color: #314249;
    font-size: 0.82rem;
    font-weight: 850;
    margin-bottom: 0.5rem;
}

.yeeld-control-wrap {
    position: relative;
}

.yeeld-control-wrap .form-control {
    background: #f5f8fc;
    border: 1px solid #d5e1ee;
    border-radius: 8px;
    color: #081a2e;
    font-weight: 650;
    height: 48px;
    padding-left: 2.9rem;
    padding-right: 3rem;
}

.yeeld-control-wrap .form-control:focus {
    border-color: #0f2d4f;
    box-shadow: 0 0 0 0.2rem rgba(15, 45, 79, 0.12);
}

.yeeld-control-wrap .field-icon {
    color: #8795a3;
    left: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.yeeld-control-wrap .password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #71808b;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    z-index: 3;
}

.yeeld-control-wrap .password-toggle:hover,
.yeeld-control-wrap .password-toggle:focus {
    background: #e5eef9;
    color: #0f2d4f;
}

.force-password-form {
    gap: 0.85rem;
}

.force-readonly-control {
    background: #eef3f8 !important;
    color: #506174 !important;
    cursor: not-allowed;
}

.force-field-note {
    color: #66768a;
    font-size: 0.74rem;
    font-weight: 750;
    margin: 0.4rem 0 0;
}

.force-password-label-row {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.force-password-label-row .form-label {
    margin-bottom: 0;
}

.force-generate-password {
    align-items: center;
    background: #eaf2fb;
    border: 1px solid #cbd9e8;
    border-radius: 8px;
    color: #0f2d4f;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.62rem;
}

.force-generate-password:hover,
.force-generate-password:focus {
    background: #dfeaf7;
    border-color: #9fb9d4;
}

.force-generate-password.is-copied {
    background: #e6f7f0;
    border-color: #9edfc3;
    color: #10613e;
}

.force-password-strength {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.force-strength-track {
    background: #e5ecf4;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.force-strength-track span {
    background: #c9d4df;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.18s ease, background 0.18s ease;
    width: 0;
}

.force-strength-track .score-weak {
    background: #df5f65;
}

.force-strength-track .score-good {
    background: #d59a2c;
}

.force-strength-track .score-strong {
    background: #16835b;
}

.force-strength-copy {
    align-items: baseline;
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
}

.force-strength-copy strong {
    color: #102944;
    font-size: 0.78rem;
    font-weight: 900;
}

.force-strength-copy span {
    color: #66768a;
    font-size: 0.72rem;
    font-weight: 750;
    text-align: right;
}

.force-password-rules {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}

.force-password-rules li {
    align-items: center;
    color: #647383;
    display: flex;
    font-size: 0.75rem;
    font-weight: 800;
    gap: 0.45rem;
}

.force-password-rules li i {
    color: #9aa8b6;
    width: 15px;
}

.force-password-rules li.is-passed {
    color: #176247;
}

.force-password-rules li.is-passed i {
    color: #16835b;
}

.yeeld-split-form .btn-signin {
    background: #0f2d4f;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    height: 48px;
    margin-top: 0.1rem;
    width: 100%;
}

.yeeld-split-form .btn-signin:hover,
.yeeld-split-form .btn-signin:focus {
    background: #081a2e;
}

.yeeld-split-form .yeeld-auth-forgot {
    color: #1f6fb2;
    font-weight: 850;
    justify-self: center;
    text-decoration: none;
}

.yeeld-split-partners {
    border-top: 1px solid #dfe7f0;
    margin-top: 1.1rem;
    padding-top: 0.95rem;
}

.yeeld-split-partners > span {
    display: block;
    margin-bottom: 0.65rem;
}

.yeeld-split-partners div {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yeeld-split-partners img {
    background: #fff;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    display: block;
    height: 72px;
    object-fit: contain !important;
    padding: 0.25rem 0.3rem;
    width: 100%;
}

@media (max-width: 980px) {
    .yeeld-split-auth {
        grid-template-columns: 1fr;
    }

    .yeeld-split-brand,
    .yeeld-split-form-panel {
        min-height: auto;
        padding: 2rem;
    }

    .yeeld-split-copy {
        margin-top: 2rem;
    }
}

@media (max-width: 560px) {
    .yeeld-split-signals,
    .yeeld-split-partners div {
        grid-template-columns: 1fr;
    }

    .yeeld-split-logo {
        width: min(320px, 100%);
    }

    .force-password-label-row,
    .force-strength-copy {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .force-generate-password {
        justify-content: center;
        width: 100%;
    }

    .force-strength-copy span {
        text-align: left;
    }
}

@media (max-width: 980px) {
    .yeeld-auth-card {
        grid-template-columns: 1fr;
    }

    .yeeld-auth-copy {
        min-height: 420px;
    }
}

@media (max-width: 620px) {
    .yeeld-auth-shell {
        padding: 1rem;
    }

    .yeeld-auth-copy,
    .yeeld-auth-form-panel {
        padding: 1.4rem;
    }

    .yeeld-auth-signals,
    .yeeld-auth-partners div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .yeeld-login-shell {
        padding: 1rem;
    }

    .yeeld-login-form,
    .yeeld-partner-panel {
        padding: 1.4rem;
    }

    .partner-logo-row,
    .partner-logo-grid {
        grid-template-columns: 1fr;
    }
}

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

.health-score-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe7f0;
    border-left: 4px solid #0f2d4f;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 45, 79, 0.06);
    display: flex;
    gap: 0.85rem;
    min-height: 92px;
    padding: 1rem;
}

.health-score-card.danger {
    border-left-color: #dc3545;
}

.health-score-card.warning {
    border-left-color: #d89b45;
}

.health-score-card.info {
    border-left-color: #1f73bd;
}

.health-score-card > span {
    align-items: center;
    background: #eef5ff;
    border-radius: 8px;
    color: #0f2d4f;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.health-score-card strong {
    color: #0b1727;
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.health-score-card small {
    color: #66768a;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.health-preview-chip {
    background: #eef5ff;
    border: 1px solid #d8e5f2;
    border-radius: 999px;
    color: #0f2d4f;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0.12rem;
    padding: 0.25rem 0.55rem;
}

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

.health-preview-panel {
    min-height: 320px;
}

.health-row-list {
    display: grid;
    gap: 0.65rem;
}

.health-row-item {
    align-items: center;
    background: #f8fbfe;
    border: 1px solid #e2eaf2;
    border-radius: 8px;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    min-height: 66px;
    padding: 0.75rem 0.85rem;
}

.health-row-item strong {
    color: #0b1727;
    display: block;
    font-size: 0.88rem;
    font-weight: 850;
}

.health-row-item small {
    color: #66768a;
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    margin-top: 0.15rem;
}

.health-empty-state {
    align-items: center;
    border: 1px dashed #cbd8e6;
    border-radius: 8px;
    color: #66768a;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    min-height: 132px;
}

.health-empty-state i {
    color: #1f73bd;
}

.health-preview-footer {
    border-top: 1px solid #eef2f6;
    margin: 1rem -1rem -1rem;
    padding: 0.85rem 1rem;
    text-align: right;
}

@media (max-width: 1180px) {
    .health-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .health-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .health-score-grid {
        grid-template-columns: 1fr;
    }

    .health-row-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--canvas);
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: var(--brand-blue);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-success {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
}

.btn-outline-success {
    color: var(--green-800);
    border-color: var(--green-700);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #fff;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #cbd9ce;
    color: var(--ink);
    font-size: 0.88rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 0.2rem rgba(108, 147, 89, 0.18);
}

.form-label {
    color: #395246;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: #fff;
    color: var(--green-900);
    overflow-y: auto;
    z-index: 1040;
    box-shadow: 10px 0 30px rgba(19, 38, 18, 0.08);
    border-right: 1px solid var(--line);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--green-900);
    text-decoration: none;
    padding: 1rem 1.05rem;
    border-bottom: 1px solid var(--line);
}

.brand-mark,
.login-brand span {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--leaf-100);
    color: var(--green-900);
    flex: 0 0 auto;
}

.brand-mark-image {
    background: #fff;
    overflow: hidden;
    padding: 0.12rem;
}

.brand-mark-image img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.sidebar-brand strong,
.login-brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 0;
}

.sidebar-brand small {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1.05rem;
    background: var(--leaf-50);
    border-bottom: 1px solid var(--line);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber), #f2ba4e);
    color: #fff;
    font-weight: 800;
}

.sidebar-profile strong {
    display: block;
}

.sidebar-profile span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: capitalize;
}

.sidebar-nav {
    display: grid;
    gap: 0.1rem;
    padding: 0.7rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--green-800);
    text-decoration: none;
    padding: 0.68rem 0.76rem;
    border-left: 3px solid transparent;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 750;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--leaf-100);
    border-left-color: var(--brand-green-dark);
    color: var(--green-900);
}

.sidebar-group {
    border-radius: 8px;
}

.sidebar-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--green-800);
    cursor: pointer;
    list-style: none;
    padding: 0.68rem 0.76rem;
    border-left: 3px solid transparent;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 800;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-group summary i:first-child {
    width: 20px;
    text-align: center;
}

.sidebar-group summary:hover,
.sidebar-group[open] summary {
    background: var(--leaf-100);
    border-left-color: var(--brand-green-dark);
    color: var(--green-900);
}

.sidebar-group .chevron {
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.sidebar-group[open] .chevron {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: grid;
    gap: 0.14rem;
    margin: 0.15rem 0 0.35rem 2.05rem;
    padding-left: 0.55rem;
    border-left: 1px solid #cfe0c9;
}

.sidebar-subnav a {
    padding: 0.48rem 0.64rem;
    font-size: 0.77rem;
    font-weight: 720;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    max-width: 100vw;
    overflow-x: hidden;
}

.topbar {
    min-height: 68px;
    background: var(--brand-green-dark);
    border-bottom: 1px solid var(--green-900);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.25rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topbar h1 {
    font-size: 1.06rem;
    margin: 0;
    font-weight: 800;
    color: #fff;
}

.eyebrow {
    color: var(--leaf-100);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.icon-button {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: #fff;
}

.topbar .icon-button:hover,
.topbar .icon-button:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.48);
}

.org-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.public-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
}

.notification-menu {
    position: relative;
}

.notification-trigger {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    color: #fff;
    display: inline-grid;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 40px;
}

.notification-trigger span {
    background: #d92d20;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    min-width: 20px;
    padding: 0.2rem 0.28rem;
    position: absolute;
    right: -0.45rem;
    top: -0.42rem;
}

.topbar .btn-outline-success {
    border-color: rgba(255, 255, 255, 0.52);
    color: #fff;
}

.topbar .btn-outline-success:hover,
.topbar .btn-outline-success:focus {
    background: #fff;
    border-color: #fff;
    color: var(--brand-green-dark);
}

.notification-dropdown {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(19, 38, 18, 0.16);
    overflow: hidden;
    padding: 0;
    width: min(420px, calc(100vw - 1.5rem));
}

.notification-head {
    align-items: center;
    background: #f7fbf4;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
}

.notification-head strong,
.notification-head small {
    display: block;
}

.notification-head strong {
    color: var(--ink);
    font-weight: 900;
}

.notification-head small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 750;
}

.notification-head a {
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.notification-list {
    display: grid;
    max-height: 420px;
    overflow: auto;
}

.notification-item,
.message-timeline-item {
    align-items: center;
    border-bottom: 1px solid #edf2ea;
    color: var(--ink);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.78rem 0.95rem;
    text-decoration: none;
}

.notification-item:hover,
.message-timeline-item:hover {
    background: #f8fbf6;
    color: var(--ink);
}

.notification-item:last-child,
.message-timeline-item:last-child {
    border-bottom: 0;
}

.notification-icon {
    align-items: center;
    background: var(--leaf-100);
    border-radius: 8px;
    color: var(--green-800);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.notification-icon.status-pending,
.notification-icon.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.notification-icon.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.notification-item strong,
.notification-item small,
.notification-item em,
.message-timeline-item strong,
.message-timeline-item small,
.message-timeline-item em {
    display: block;
}

.notification-item strong,
.message-timeline-item strong {
    font-size: 0.82rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item small,
.message-timeline-item small {
    color: #516451;
    font-size: 0.74rem;
    margin-top: 0.14rem;
}

.notification-item em,
.message-timeline-item em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
    margin-top: 0.18rem;
    text-transform: uppercase;
}

.content-wrapper {
    padding: 1.15rem 1.25rem 1.45rem;
    display: grid;
    gap: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

.module-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
}

.table-panel {
    padding: 0.95rem;
}

.table-page-header {
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.table-page-header > div:first-child span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.operations-table {
    min-width: 1120px;
}

.dt-container {
    color: var(--ink);
    font-family: inherit;
}

.dt-container .dt-layout-row {
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.dt-container .dt-layout-row:first-child {
    background: #f8fbf6;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 0;
    padding: 0.65rem 0.75rem;
}

.dt-container .dt-layout-cell {
    min-width: 0;
}

.dt-container .dt-search,
.dt-container .dt-length {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.dt-container .dt-search {
    justify-content: flex-end;
}

.dt-container .dt-search::before {
    color: var(--green-800);
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
    border: 1px solid #cbd9ce;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.84rem;
    min-height: 36px;
}

.dt-container .dt-search input {
    min-width: min(280px, 100%);
}

.dt-container .dt-info {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dt-container .pagination {
    gap: 0.28rem;
}

.dt-container .page-link {
    border-color: #d6e2d3;
    border-radius: 7px;
    color: var(--green-800);
    font-size: 0.82rem;
    font-weight: 800;
}

.dt-container .active > .page-link,
.dt-container .page-link.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.dt-container .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 147, 89, 0.16);
}

.server-pagination-hidden {
    display: none !important;
}

.modal-title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.modal-content {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

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

.panel-header h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.panel-header a {
    font-weight: 800;
    text-decoration: none;
}

.dashboard-hero {
    min-height: 170px;
    border-radius: 8px;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.dashboard-hero .eyebrow {
    color: #bbf7d0;
}

.dashboard-hero h2 {
    max-width: 760px;
    margin: 0.25rem 0 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-shell {
    display: grid;
    gap: 1.1rem;
}

.dashboard-shell .module-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 253, 249, 0.98)),
        var(--surface);
    border-color: #dfe9db;
    box-shadow: 0 18px 42px rgba(31, 55, 28, 0.08);
}

.dashboard-shell .panel-header {
    border-bottom: 1px solid #edf3ea;
    margin: -0.1rem -0.1rem 0.9rem;
    padding: 0.1rem 0.1rem 0.85rem;
}

.dashboard-shell .panel-header h3 {
    color: var(--green-900);
    font-size: 1.02rem;
}

.dashboard-command {
    min-height: 236px;
    border-radius: 8px;
    padding: 1.45rem;
    background:
        linear-gradient(90deg, rgba(19, 38, 18, 0.95) 0%, rgba(31, 55, 28, 0.9) 46%, rgba(31, 55, 28, 0.72) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
    background-position: center right;
    background-size: cover;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    align-items: end;
    gap: 1.25rem;
    box-shadow: 0 22px 50px rgba(19, 38, 18, 0.18);
    overflow: hidden;
    position: relative;
}

.dashboard-command::after {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    content: "";
    inset: 0.75rem;
    pointer-events: none;
    position: absolute;
}

.dashboard-command-copy {
    max-width: 830px;
    position: relative;
    z-index: 1;
}

.dashboard-command .eyebrow {
    color: #dfead8;
}

.dashboard-command h2 {
    font-size: 2.12rem;
    font-weight: 900;
    line-height: 1.08;
    margin: 0.2rem 0 0.45rem;
}

.dashboard-command p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.7rem;
    margin-top: 1.1rem;
    position: relative;
    z-index: 1;
}

.command-actions .btn {
    border-radius: 8px;
    font-weight: 900;
    min-height: 40px;
    padding-inline: 0.95rem;
}

.command-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.72);
}

.command-stat-panel {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
    justify-content: stretch;
    min-width: 0;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.command-stat-panel span,
.command-stat-panel small,
.command-stat-panel em {
    color: rgba(255, 255, 255, 0.76);
    display: block;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.command-stat-panel strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.command-stat-panel div {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    padding-top: 0.55rem;
}

.command-stat-panel b {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.dashboard-section-title {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 0.2rem 0 -0.15rem;
}

.dashboard-section-title span {
    color: var(--brand-green);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-section-title h3 {
    color: var(--green-900);
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0.12rem 0 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 0.9rem;
}

.kpi-card {
    --card-accent: var(--brand-green);
    --card-icon-bg: #eef7e9;
    --card-icon-color: var(--green-800);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 246, 0.96)),
        var(--surface);
    border: 1px solid #d8e4d5;
    border-left: 4px solid var(--card-accent);
    border-radius: 8px;
    padding: 1rem;
    min-width: 0;
    min-height: 118px;
    box-shadow: 0 16px 34px rgba(31, 55, 28, 0.09);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.82rem;
    position: relative;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kpi-card:hover {
    box-shadow: 0 20px 40px rgba(31, 55, 28, 0.13);
    transform: translateY(-2px);
}

.kpi-card span {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--card-icon-bg);
    color: var(--card-icon-color);
    box-shadow: inset 0 0 0 1px rgba(31, 55, 28, 0.08);
    flex: 0 0 auto;
}

.kpi-card strong,
.kpi-card small,
.kpi-card em {
    display: block;
}

.kpi-card strong {
    color: var(--green-900);
    font-size: 1.34rem;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.kpi-card small {
    color: #364636;
    font-weight: 800;
    margin-top: 0.22rem;
}

.kpi-card em {
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
    margin-top: 0.2rem;
}

.kpi-green {
    --card-accent: var(--brand-green);
    --card-icon-bg: #eef7e9;
    --card-icon-color: var(--green-800);
}

.kpi-teal span {
    background: var(--card-icon-bg);
    color: var(--card-icon-color);
}

.kpi-teal {
    --card-accent: var(--brand-blue);
    --card-icon-bg: #e4f1f8;
    --card-icon-color: var(--brand-blue-dark);
}

.kpi-amber span {
    background: var(--card-icon-bg);
    color: var(--card-icon-color);
}

.kpi-amber {
    --card-accent: var(--amber);
    --card-icon-bg: #fbf0d7;
    --card-icon-color: #996316;
}

.kpi-clay span {
    background: var(--card-icon-bg);
    color: var(--card-icon-color);
}

.kpi-clay {
    --card-accent: var(--clay);
    --card-icon-bg: #ffedd5;
    --card-icon-color: var(--clay);
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.85fr);
    gap: 1rem;
}

.chart-card {
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.dashboard-shell .chart-card {
    min-height: 292px;
}

.dashboard-shell .chart-card::before {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-blue), var(--amber));
    content: "";
    height: 3px;
    inset: 0 0 auto;
    position: absolute;
}

.chart-card canvas {
    width: 100%;
    min-height: 190px;
    display: block;
    padding-top: 0.25rem;
}

.dashboard-shell .chart-card canvas {
    height: 232px;
    min-height: 0;
}

.chart-wide {
    min-height: 285px;
}

.chart-wide canvas {
    min-height: 220px;
}

.dashboard-shell .chart-wide canvas {
    height: 260px;
    min-height: 0;
}

.chart-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    background: #eef4eb;
    color: var(--brand-green-dark);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.metric-card {
    --card-accent: var(--brand-green);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 246, 0.96)),
        var(--surface);
    border: 1px solid #d8e4d5;
    border-left: 4px solid var(--card-accent);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(31, 55, 28, 0.09);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 104px;
    overflow: hidden;
    padding: 0.95rem 1rem;
    position: relative;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.metric-card:hover {
    box-shadow: 0 20px 40px rgba(31, 55, 28, 0.13);
    transform: translateY(-2px);
}

.metric-card:nth-child(2n) {
    --card-accent: var(--brand-blue);
}

.metric-card:nth-child(3n) {
    --card-accent: var(--amber);
}

.metric-card:nth-child(4n) {
    --card-accent: #15836f;
}

.metric-card span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.45rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.metric-card span::before {
    background: var(--card-accent);
    border-radius: 3px;
    content: "";
    display: inline-block;
    height: 0.58rem;
    width: 0.58rem;
}

.metric-card strong {
    display: block;
    color: var(--green-900);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-top: 0.46rem;
    word-break: break-word;
}

.notification-center .panel-header > div:first-child span {
    color: var(--muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.notification-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0.95rem;
}

.notification-summary div {
    align-items: center;
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0.2rem 0.55rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.8rem;
}

.notification-summary strong,
.notification-summary small {
    display: block;
}

.notification-summary strong {
    color: var(--green-900);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.notification-summary small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    grid-column: 2;
}

.status-dot {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.status-dot.status-sent {
    background: var(--brand-green);
}

.status-dot.status-pending {
    background: var(--amber);
}

.status-dot.status-failed {
    background: #d92d20;
}

.message-timeline {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.channel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.channel-pills span {
    align-items: center;
    background: #eef4eb;
    border-radius: 999px;
    color: var(--green-800);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.38rem;
    min-height: 30px;
    padding: 0.28rem 0.68rem;
}

.message-filter-bar {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(240px, 1fr) minmax(145px, 180px) minmax(145px, 180px) auto auto;
}

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

.report-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: #fbfdfb;
    min-width: 0;
}

.report-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--green-800);
    background: var(--leaf-100);
    font-size: 1.1rem;
}

.report-pdf {
    color: #991b1b;
    background: #fee2e2;
}

.report-xlsx {
    color: #166534;
    background: #dcfce7;
}

.report-copy {
    min-width: 0;
}

.report-copy strong,
.report-copy span {
    display: block;
}

.report-copy strong {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.report-copy span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.report-actions,
.share-form {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-form {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(170px, 1fr) minmax(90px, 120px) auto auto;
}

.share-dry-run {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    white-space: nowrap;
}

.report-preview-shell {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: min(760px, 78vh);
    overflow: hidden;
    background: #fff;
}

.report-preview-shell iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.report-link-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.report-link-pill {
    align-items: center;
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: inline-flex;
    gap: 0.45rem;
    max-width: 100%;
    min-height: 36px;
    padding: 0.35rem 0.6rem;
    text-decoration: none;
}

.report-link-pill span {
    font-size: 0.8rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-link-pill small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.market-signal-grid,
.preview-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-signal-card,
.preview-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    padding: 1rem;
    min-width: 0;
}

.market-signal-head {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.market-signal-head strong,
.market-signal-head span {
    display: block;
}

.market-signal-head strong {
    font-weight: 900;
}

.market-signal-head span {
    color: var(--muted);
}

.signal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.6rem 0;
}

.signal-meta span {
    align-items: center;
    background: #eef7ef;
    border-radius: 999px;
    color: var(--green-800);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    gap: 0.35rem;
    min-height: 26px;
    padding: 0.2rem 0.6rem;
}

.preview-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.preview-summary div {
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
}

.preview-summary span,
.preview-summary strong {
    display: block;
}

.preview-summary span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-summary strong {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.preview-card h4 {
    font-size: 0.86rem;
    font-weight: 900;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.preview-card p {
    margin: 0;
}

.preview-card pre {
    background: #f3f7f2;
    border-radius: 8px;
    color: var(--ink);
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    margin: 0;
    max-height: 320px;
    overflow: auto;
    padding: 0.75rem;
    white-space: pre-wrap;
}

.health-stack {
    display: grid;
    gap: 1rem;
}

.health-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
    align-items: center;
    gap: 0.8rem;
}

.health-copy strong,
.health-copy span {
    display: block;
}

.health-copy strong {
    font-weight: 900;
}

.health-copy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.health-meter {
    height: 10px;
    border-radius: 999px;
    background: #edf3ea;
    overflow: hidden;
}

.health-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
}

.health-row b {
    color: var(--green-800);
    font-weight: 900;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.stat-card {
    --card-accent: var(--brand-green);
    --card-icon-bg: #eef7e9;
    --card-icon-color: var(--green-800);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 246, 0.96)),
        var(--surface);
    border: 1px solid #d8e4d5;
    border-left: 4px solid var(--card-accent);
    border-radius: 8px;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.82rem;
    min-width: 0;
    min-height: 104px;
    box-shadow: 0 16px 34px rgba(31, 55, 28, 0.09);
    overflow: hidden;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.stat-card:hover {
    box-shadow: 0 20px 40px rgba(31, 55, 28, 0.13);
    transform: translateY(-2px);
}

.stat-card:nth-child(2n) {
    --card-accent: var(--brand-blue);
    --card-icon-bg: #e4f1f8;
    --card-icon-color: var(--brand-blue-dark);
}

.stat-card:nth-child(3n) {
    --card-accent: var(--amber);
    --card-icon-bg: #fbf0d7;
    --card-icon-color: #996316;
}

.stat-card:nth-child(4n) {
    --card-accent: #15836f;
    --card-icon-bg: #e2f4ef;
    --card-icon-color: #0f6f5e;
}

.stat-card span {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--card-icon-bg);
    color: var(--card-icon-color);
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(108, 147, 89, 0.16);
}

.stat-card strong {
    display: block;
    color: var(--green-900);
    font-size: 1.34rem;
    font-weight: 800;
    line-height: 1.1;
    word-break: break-word;
}

.stat-card small {
    color: var(--muted);
    font-weight: 700;
}

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

.dashboard-grid .wide {
    grid-column: 1 / -1;
}

.marketplace-table-stack {
    display: grid;
    gap: 1rem;
}

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

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    max-height: 260px;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.section-title {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--green-900);
    text-transform: uppercase;
}

.list-stack,
.mini-list {
    display: grid;
    gap: 0.75rem;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf2ea;
}

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

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

.list-row span {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eef4eb;
    color: var(--green-800);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-published,
.status-active,
.status-answered,
.status-delivered,
.status-sent {
    background: var(--leaf-100);
    color: var(--green-800);
}

.status-draft,
.status-trial,
.status-pending,
.status-queued,
.status-pending_approval {
    background: #fef3c7;
    color: #92400e;
}

.status-inactive,
.status-expired,
.status-cancelled,
.status-archived,
.status-closed,
.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-needs_cleanup,
.status-paused,
.status-contacted {
    background: #ffedd5;
    color: var(--clay);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: #516451;
    font-size: 0.74rem;
    text-transform: uppercase;
    border-bottom-color: var(--line);
}

.table td {
    border-color: #edf2ea;
}

.table-responsive {
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
}

.table-footer {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.9rem;
}

.table-footer nav {
    max-width: 100%;
}

.pagination {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.page-item {
    min-width: 0;
}

.page-link {
    border-color: var(--line);
    border-radius: 8px;
    color: var(--green-800);
    font-weight: 800;
    min-height: 34px;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 8px;
}

.page-item.disabled .page-link {
    color: #94a3b8;
}

.table-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
    gap: 0.6rem;
    align-items: center;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.table-actions form {
    margin: 0;
}

.table-actions .btn {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
}

.quick-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.quick-action-row form {
    margin: 0;
}

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

.resource-stat-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 84px;
    padding: 1rem;
}

.resource-stat-card span {
    color: var(--green-900);
    font-size: 2rem;
    opacity: 0.9;
}

.resource-stat-card strong,
.resource-stat-card small {
    display: block;
    text-align: right;
}

.resource-stat-card strong {
    color: var(--brand-blue);
    font-size: 1.25rem;
    font-weight: 800;
}

.resource-stat-card small {
    color: var(--green-900);
    font-weight: 700;
}

.training-resource-panel {
    overflow: hidden;
    padding: 0;
}

.training-resource-panel > .panel-header {
    background: #f8faf8;
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 0.85rem 1rem;
}

.resource-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(170px, 0.9fr) auto auto;
    gap: 0.75rem;
    padding: 1rem;
}

.resource-table-wrap {
    border-radius: 0;
}

.resource-management-table th,
.resource-management-table td {
    border-color: #dce3dc;
}

.resource-management-table thead th {
    background: #f5f6f5;
    color: var(--green-900);
}

.resource-row {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    min-width: 360px;
}

.resource-thumb {
    align-items: center;
    background: #eef4eb;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--green-800);
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.resource-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.resource-copy strong,
.resource-copy span,
.resource-copy small {
    display: block;
}

.resource-copy strong {
    color: var(--green-950);
    font-size: 0.86rem;
    font-weight: 800;
}

.resource-copy span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.resource-copy small {
    color: #6b7280;
    margin-top: 0.35rem;
}

.resource-type-pill {
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.18rem 0.55rem;
    white-space: nowrap;
}

.type-youtube,
.type-video {
    background: #d9534f;
}

.type-photo,
.type-image {
    background: #5b3f91;
}

.type-pdf {
    background: #b91c1c;
}

.type-document,
.type-guide {
    background: var(--brand-blue);
}

.type-link,
.type-audio {
    background: var(--green-700);
}

.resource-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

.resource-actions form {
    margin: 0;
}

.resource-actions .btn {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

@media (max-width: 1100px) {
    .resource-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .resource-summary-grid,
    .resource-filter-bar {
        grid-template-columns: 1fr;
    }

    .resource-row {
        min-width: 280px;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

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

.detail-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fbfdfb;
    min-width: 0;
}

.detail-grid span {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.empty-state {
    color: var(--muted);
    margin: 0;
    padding: 1.2rem;
    text-align: center;
}

.inline-details {
    position: relative;
    display: inline-block;
}

.inline-details summary {
    list-style: none;
}

.inline-details summary::-webkit-details-marker {
    display: none;
}

.edit-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(360px, 86vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
    box-shadow: 0 20px 40px rgba(5, 46, 22, 0.18);
    z-index: 1050;
    text-align: left;
}

.wide-popover {
    width: min(560px, 90vw);
}

.market-price {
    font-size: 1.55rem;
    color: var(--green-800);
    font-weight: 800;
}

.market-price span {
    color: var(--muted);
    font-size: 0.9rem;
}

.recommendation {
    border-left: 4px solid var(--amber);
    padding-left: 0.75rem;
    color: #4f3a16;
}

.timeline-list {
    display: grid;
    gap: 0.8rem;
}

.timeline-list div {
    border-left: 3px solid var(--green-600);
    padding-left: 0.8rem;
}

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

.active > .page-link,
.page-link.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 12%, rgba(108, 147, 89, 0.16), transparent 28%),
        linear-gradient(135deg, #f6f8f3 0%, #e7eee4 100%);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1.22fr);
    padding: 0;
}

.login-panel {
    align-self: center;
    justify-self: center;
    width: min(460px, calc(100% - 2rem));
    background: #fff;
    border-radius: 8px;
    padding: 2.15rem;
    box-shadow: 0 24px 60px rgba(31, 55, 28, 0.16);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--green-900);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.login-brand img {
    display: block;
    height: 58px;
    object-fit: contain;
    width: auto;
}

.login-panel h1 {
    color: var(--brand-green-ink);
    font-size: 1.48rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.login-panel p {
    color: var(--muted);
}

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

.password-field {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) 42px;
}

.password-field .icon-button {
    height: 42px;
    width: 42px;
}

.login-options,
.login-public-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.login-options a,
.login-public-links a {
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.login-public-links {
    border-top: 1px solid var(--line);
    margin-top: 1.2rem;
    padding-top: 1rem;
}

.login-public-links a {
    align-items: center;
    color: var(--brand-green-dark);
    display: inline-flex;
    gap: 0.45rem;
}

.login-aside {
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: 100vh;
    padding: 3rem;
    position: relative;
}

.login-aside::before {
    background: linear-gradient(90deg, rgba(19, 38, 18, 0.28), rgba(19, 38, 18, 0));
    content: "";
    inset: 0;
    position: absolute;
}

.login-aside div {
    align-self: flex-end;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.login-aside h2 {
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    max-width: 780px;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.38);
}

.website-page {
    background: #fff;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(31, 55, 28, 0.08);
    color: var(--ink);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--brand-green-dark);
    text-decoration: none;
    font-weight: 900;
}

.site-logo img {
    display: block;
    height: 48px;
    object-fit: contain;
    width: auto;
}

.site-logo i {
    color: var(--brand-green);
}

.site-nav nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav nav a {
    color: var(--brand-green-dark);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.public-site-nav nav a.active,
.public-site-nav nav a:not(.btn):hover {
    color: var(--brand-green);
}

.site-hero {
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 6rem 5vw 5rem;
    color: #fff;
}

.site-nav-solid {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(5, 46, 22, 0.08);
    color: var(--ink);
}

.site-nav-solid nav a {
    color: var(--brand-green-dark);
}

.site-nav-solid nav .btn {
    color: #fff;
}

.public-hero {
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 88vh;
    padding: 8rem 5vw 4rem;
    position: relative;
}

.home-hero {
    background-position: center right;
}

.public-hero > div:first-child {
    max-width: 860px;
    position: relative;
    z-index: 1;
}

.public-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.25rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.public-hero p {
    color: rgba(255, 255, 255, 0.93);
    font-size: 1.02rem;
    font-weight: 650;
    margin: 1rem 0 1.4rem;
    max-width: 740px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.public-hero-compact {
    min-height: 68vh;
}

.public-hero-compact h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero-signal-strip {
    align-items: stretch;
    display: grid;
    flex: 0 0 min(400px, 32vw);
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.hero-signal-strip span {
    background: rgba(19, 38, 18, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    display: block;
    padding: 0.85rem;
    backdrop-filter: blur(10px);
}

.hero-signal-strip strong {
    color: #e6f0e1;
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.public-dashboard-band,
.public-insights-band {
    background: var(--canvas);
}

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

.public-feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 0.85rem;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.public-feature-card img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.public-feature-card span,
.public-feature-card strong {
    display: block;
    margin-inline: 1rem;
}

.public-feature-card span {
    color: var(--brand-green-dark);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.public-feature-card strong {
    font-size: 1rem;
    line-height: 1.35;
}

.image-split-band {
    background: #fff;
}

.image-split-band img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

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

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

.public-report-card {
    background: #fff;
}

.public-table-panel {
    padding: 0;
}

.subscription-shell {
    background: var(--canvas);
    min-height: 100vh;
    padding-top: 70px;
}

.subscription-hero {
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 440px;
    padding: 4rem 5vw;
}

.subscription-hero div:first-child {
    max-width: 800px;
}

.subscription-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.subscription-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    margin: 1rem 0 0;
    max-width: 700px;
}

.subscription-includes {
    display: grid;
    flex: 0 0 min(360px, 34vw);
    gap: 0.7rem;
}

.subscription-includes span {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    display: flex;
    font-weight: 900;
    gap: 0.65rem;
    padding: 0.85rem;
}

.subscription-form-band {
    padding: 2rem 5vw 4rem;
}

.subscription-form {
    background: #fff;
    margin: -4rem auto 0;
    max-width: 1120px;
    position: relative;
}

.form-section-heading {
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.form-section-heading:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.form-section-heading h2 {
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 0.85rem;
}

.channel-checks {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.channel-checks .form-check,
.consent-box {
    margin: 0;
}

.consent-box {
    background: #f6faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem 0.8rem 0.8rem 2.2rem;
}

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

.plan-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 0.45rem;
    min-height: 138px;
    padding: 0.9rem;
}

.plan-card input {
    position: absolute;
    opacity: 0;
}

.plan-card span {
    align-items: center;
    background: var(--leaf-100);
    border-radius: 8px;
    color: var(--green-800);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.plan-card strong,
.plan-card small {
    display: block;
}

.plan-card strong {
    font-weight: 900;
}

.plan-card small {
    color: var(--muted);
    font-weight: 700;
}

.plan-card:has(input:checked) {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.checkout-summary {
    background: #052e16;
    border-radius: 8px;
    color: #fff;
    display: grid;
    gap: 0.25rem;
    min-height: 94px;
    padding: 0.9rem;
}

.checkout-summary span,
.checkout-summary strong,
.checkout-summary b {
    display: block;
}

.checkout-summary span {
    color: #bbf7d0;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.checkout-summary strong {
    font-size: 0.9rem;
}

.checkout-summary b {
    font-size: 1.35rem;
}

.plan-card-disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.muted-control {
    opacity: 0.72;
}

.embedded-dashboard-shell {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.embedded-dashboard-shell iframe {
    border: 0;
    display: block;
    height: min(980px, 84vh);
    width: 100%;
}

.market-data-grid,
.agromet-preview-layout,
.bundle-service-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.public-data-panel {
    box-shadow: none;
}

.compact-list {
    display: grid;
    gap: 0.65rem;
}

.compact-list article {
    background: #fbfdfb;
    border: 1px solid #e1eadf;
    border-radius: 8px;
    display: grid;
    gap: 0.22rem;
    padding: 0.75rem;
}

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

.compact-list strong {
    font-size: 0.86rem;
    font-weight: 900;
}

.compact-list span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.signal-pill {
    background: #e9f4e4;
    color: var(--green-900);
}

.advisory-message-card {
    border-top: 4px solid var(--brand-green);
    display: grid;
    gap: 0.6rem;
}

.advisory-message-card:nth-child(2) {
    border-top-color: var(--brand-blue);
}

.advisory-message-card p {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 720;
    line-height: 1.6;
    margin: 0;
}

.advisory-message-card small {
    color: var(--muted);
    font-weight: 800;
}

.message-label {
    align-items: center;
    color: var(--green-800);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.45rem;
    text-transform: uppercase;
}

.service-cta-strip,
.pricing-strip,
.upload-inline-form {
    align-items: center;
    background: #f6faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: space-between;
    padding: 1rem;
}

.service-cta-strip strong,
.service-cta-strip span {
    display: block;
}

.service-cta-strip strong {
    color: var(--green-900);
    font-size: 1rem;
    font-weight: 900;
}

.service-cta-strip span,
.pricing-strip span,
.upload-inline-form span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.pricing-strip {
    margin-top: 1rem;
    justify-content: flex-start;
}

.pricing-strip span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
}

.upload-inline-form {
    justify-content: flex-start;
}

.upload-inline-form > div {
    flex: 1 1 320px;
}

.site-hero-content {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    color: #bbf7d0;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.site-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.site-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 1rem 0 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.site-band {
    padding: 4rem 5vw;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 1.6rem;
}

.section-heading h2,
.split-band h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem;
    background: #fff;
}

.service-card i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--leaf-100);
    color: var(--green-800);
    margin-bottom: 0.9rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 900;
}

.service-card p,
.split-band p {
    color: var(--muted);
}

.split-band {
    background: var(--leaf-50);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.metric-strip {
    display: grid;
    gap: 0.8rem;
}

.metric-strip div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.metric-strip strong {
    display: block;
    color: var(--green-800);
    font-size: 1.3rem;
}

.metric-strip span {
    color: var(--muted);
}

.request-band {
    background: #fff;
}

.inquiry-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 5vw;
    background: var(--brand-green-ink);
    color: #e6f0e1;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(calc(var(--sidebar-width) * -1));
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

@media (max-width: 1199px) {
    .stat-grid,
    .kpi-grid,
    .metric-grid,
    .report-grid,
    .market-signal-grid,
    .preview-grid,
    .preview-summary,
    .content-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }

    .public-report-grid,
    .public-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-signal-strip {
        display: none;
    }

    .stat-grid,
    .metric-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(calc(var(--sidebar-width) * -1));
        transition: transform 0.2s ease;
    }

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

    .main-content,
    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }

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

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .split-band,
    .dashboard-command,
    .dashboard-grid,
    .market-data-grid,
    .agromet-preview-layout,
    .bundle-service-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-command {
        align-items: flex-start;
        min-height: auto;
    }

    .command-stat-panel {
        display: none;
    }

    .command-actions {
        justify-content: flex-start;
    }

    .site-nav:not(.public-site-nav) nav a:not(.btn) {
        display: none;
    }

    .public-site-nav {
        gap: 0.9rem;
        padding: 0 3vw;
    }

    .public-site-nav nav {
        gap: 0.55rem;
        max-width: calc(100vw - 145px);
        overflow-x: auto;
        padding-bottom: 0.15rem;
        scrollbar-width: thin;
    }

    .public-site-nav nav a {
        font-size: 0.78rem;
    }

    .public-site-nav nav .btn {
        min-width: max-content;
    }

    .login-wrap {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .login-aside {
        display: none;
    }

    .public-hero,
    .subscription-hero {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .subscription-includes {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 0.85rem;
    }

    .dashboard-command {
        padding: 1.1rem;
    }

    .dashboard-command h2 {
        font-size: 1.55rem;
    }

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

    .stat-grid,
    .kpi-grid,
    .metric-grid,
    .report-grid,
    .market-signal-grid,
    .preview-grid,
    .preview-summary,
    .content-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .health-row {
        grid-template-columns: 1fr;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-right {
        gap: 0.45rem;
        justify-content: flex-start;
    }

    .public-chip,
    .org-pill,
    .topbar-right .btn {
        font-size: 0.74rem;
        min-height: 32px;
        padding: 0.28rem 0.58rem;
    }

    .org-pill {
        max-width: 100%;
        white-space: normal;
    }

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

    .notification-summary,
    .message-filter-bar {
        grid-template-columns: 1fr;
    }

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

    .share-form {
        grid-template-columns: 1fr;
    }

    .site-hero {
        min-height: 84vh;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-logo img {
        height: 40px;
    }

    .public-hero {
        min-height: 82vh;
    }

    .public-hero h1 {
        font-size: 2.9rem;
    }

    .public-report-grid,
    .public-feature-grid,
    .public-stat-grid {
        grid-template-columns: 1fr;
    }

    .subscription-form {
        margin-top: -2rem;
    }

    .subscription-hero {
        min-height: 560px;
        padding-inline: 1rem;
    }

    .subscription-form-band {
        padding-inline: 1rem;
    }

    .channel-checks {
        align-items: flex-start;
    }
}

/* Final YEELD MIS theme layer */
:root {
    --brand-green: #0f2d4f;
    --brand-green-dark: #0b223d;
    --brand-green-deep: #07182c;
    --brand-green-ink: #061426;
    --brand-blue: #0f2d4f;
    --brand-blue-dark: #07182c;
    --green-950: #061426;
    --green-900: #0b223d;
    --green-800: #14395f;
    --green-700: #1f5a88;
    --green-600: #5f8aa8;
    --leaf-100: #e9f0f6;
    --leaf-50: #f6f9fc;
    --ink: #0b1727;
    --muted: #66768a;
    --line: #dfe7f0;
    --canvas: #eef4fb;
    --shadow: 0 14px 34px rgba(15, 45, 79, 0.08);
}

.sidebar {
    background: #fff;
    color: #102944;
}

.sidebar-brand,
.sidebar-nav a,
.sidebar-group summary {
    color: #102944;
}

.sidebar-brand strong,
.sidebar-profile strong {
    color: #0f2d4f;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-group summary:hover,
.sidebar-group[open] summary {
    background: #edf4fb;
    border-left-color: #0f2d4f;
    color: #061426;
}

.topbar,
.dashboard-command {
    background: #0f2d4f;
    border-bottom-color: #07182c;
}

.btn-success,
.btn-login-primary {
    background: #0f2d4f;
    border-color: #0f2d4f;
    color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-login-primary:hover,
.btn-login-primary:focus {
    background: #081a2e;
    border-color: #081a2e;
    color: #fff;
}

.yeeld-login-page {
    background: #dfe8f3;
}

.yeeld-login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.yeeld-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(15, 45, 79, 0.16);
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.95fr);
    max-width: 1000px;
    min-height: 676px;
    overflow: hidden;
    width: min(100%, 1000px);
}

.yeeld-login-form {
    align-self: center;
    padding: 3.2rem 3rem;
}

.yeeld-login-form .login-brand img {
    height: 68px;
    width: auto;
}

.yeeld-login-form h1 {
    color: #1d5a82;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.35rem;
}

.yeeld-login-form p {
    color: #26394e;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.yeeld-login-form .form-label {
    color: #07182c;
    font-size: 0.94rem;
}

.yeeld-login-form .form-control,
.yeeld-login-form .password-field .icon-button {
    background: #eaf2ff;
    border-color: #dfe9f7;
    min-height: 52px;
}

.yeeld-login-links {
    margin-top: 1rem;
    text-align: center;
}

.yeeld-login-links a {
    color: #4a8ad8;
    font-weight: 700;
    text-decoration: none;
}

.yeeld-partner-panel {
    align-content: center;
    border-left: 1px solid #e3eaf2;
    display: grid;
    gap: 1.8rem;
    justify-items: center;
    padding: 2.7rem 3rem;
}

.yeeld-partner-panel h2 {
    color: #142b47;
    font-size: 0.96rem;
    font-weight: 800;
    margin: 0;
}

.partner-logo-row,
.partner-logo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(350px, 100%);
}

.partner-logo-row span,
.partner-logo-grid span,
.partner-logo-wide {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 96px;
    padding: 0.8rem;
}

.partner-logo-wide {
    min-height: 120px;
    width: min(350px, 100%);
}

.partner-logo-row img,
.partner-logo-grid img,
.partner-logo-wide img {
    display: block;
    max-height: 78px;
    max-width: 100%;
    object-fit: contain;
}

.partner-logo-wide img {
    max-height: 100px;
}

.permission-role-form .permission-matrix,
.modal .permission-matrix {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.9rem;
}

.permission-matrix-toolbar {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(220px, 1fr) auto;
    margin-bottom: 0.85rem;
}

.permission-matrix-actions {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.permission-matrix-groups {
    display: grid;
    gap: 0.8rem;
    max-height: 420px;
    overflow: auto;
    padding-right: 0.35rem;
}

.permission-group {
    background: #f7fafc;
    border: 1px solid #e3ebf3;
    border-radius: 8px;
    padding: 0.75rem;
}

.permission-group-title {
    color: #0f2d4f;
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.permission-checks {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.permission-check {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
}

.permission-check input {
    flex: 0 0 auto;
    margin-top: 0.18rem;
}

.permission-check span {
    color: #102944;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.permission-table-wrap {
    max-height: 520px;
    overflow: auto;
}

@media (max-width: 700px) {
    .permission-matrix-toolbar {
        grid-template-columns: 1fr;
    }

    .permission-matrix-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .yeeld-login-card {
        grid-template-columns: 1fr;
    }

    .yeeld-partner-panel {
        border-left: 0;
        border-top: 1px solid #e3eaf2;
    }
}
