.aaim-v2-page {
    --aaim-v2-blue: #405de6;
    --aaim-v2-purple: #7c3aed;
    --aaim-v2-cyan: #14b8d4;
    --aaim-v2-navy: #111827;
    --aaim-v2-ink: #172033;
    --aaim-v2-muted: #667085;
    --aaim-v2-line: #d9e1ef;
    --aaim-v2-soft: #f6f8fb;
    --aaim-v2-success: #067647;
    --aaim-v2-warning: #b54708;
    --aaim-v2-danger: #b42318;
    color: var(--aaim-v2-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aaim-v2-page *,
.aaim-v2-page *::before,
.aaim-v2-page *::after {
    box-sizing: border-box;
}

.aaim-v2-shell,
.aaim-v2-dashboard,
.aaim-v2-report,
.aaim-v2-report-export {
    background:
        radial-gradient(circle at top left, rgba(64, 93, 230, 0.08), transparent 32%),
        var(--aaim-v2-soft, #f6f8fb);
    color: var(--aaim-v2-ink, #172033);
    margin: 0 auto;
    max-width: 1180px;
    padding: 24px;
}

.aaim-v2-public-shell {
    max-width: 1240px;
}

.aaim-v2-hero,
.aaim-v2-dashboard-hero {
    background: linear-gradient(135deg, #405de6 0%, #7c3aed 100%);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(64, 93, 230, 0.22);
    color: #fff;
    margin-bottom: 24px;
    padding: 28px;
}

.aaim-v2-public-hero,
.aaim-v2-auth-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(64, 93, 230, 0.88)),
        linear-gradient(135deg, #405de6 0%, #7c3aed 100%);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(23, 32, 51, 0.24);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    margin-bottom: 28px;
    min-height: 420px;
    overflow: hidden;
    padding: 40px;
    position: relative;
}

.aaim-v2-public-hero::after,
.aaim-v2-auth-hero::after {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    content: "";
    height: 220px;
    position: absolute;
    right: -70px;
    top: -70px;
    width: 220px;
}

.aaim-v2-public-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.aaim-v2-public-hero .aaim-v2-badge,
.aaim-v2-auth-hero .aaim-v2-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.aaim-v2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.aaim-v2-hero-bob-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
    padding: 24px;
    position: relative;
    z-index: 1;
}

.aaim-v2-hero-bob-card h2,
.aaim-v2-hero-bob-card p {
    color: #fff;
}

.aaim-v2-bob-orb,
.aaim-v2-bob-avatar,
.aaim-v2-logo-mark {
    align-items: center;
    background: linear-gradient(135deg, #fef3c7 0%, #a5f3fc 42%, #ddd6fe 100%);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.16);
    color: #312e81;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
}

.aaim-v2-bob-orb {
    font-size: 22px;
    height: 108px;
    margin-bottom: 18px;
    width: 108px;
}

.aaim-v2-bob-avatar,
.aaim-v2-logo-mark {
    flex: 0 0 auto;
    font-size: 13px;
    height: 48px;
    width: 48px;
}

.aaim-v2-hero-title,
.aaim-v2-dashboard-hero h1 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.aaim-v2-hero-text,
.aaim-v2-dashboard-hero p {
    margin: 0;
    max-width: 760px;
}

.aaim-v2-dashboard-kicker,
.aaim-v2-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

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

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

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

.aaim-v2-section {
    margin-bottom: 28px;
}

.aaim-v2-section-heading {
    margin-bottom: 16px;
    max-width: 760px;
}

.aaim-v2-card,
.aaim-v2-dashboard-card,
.aaim-v2-stat,
.aaim-v2-bob-panel,
.aaim-v2-report-section {
    background: #fff;
    border: 1px solid var(--aaim-v2-line, #d9e1ef);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
    margin-bottom: 18px;
    padding: 20px;
}

.aaim-v2-section-title,
.aaim-v2-card-title,
.aaim-v2-dashboard-card h2 {
    color: var(--aaim-v2-ink, #172033);
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 14px;
}

.aaim-v2-muted {
    color: var(--aaim-v2-muted, #667085);
}

.aaim-v2-button,
.aaim-v2-dashboard-button,
.aaim-v2-page button[type="submit"] {
    align-items: center;
    background: #fff;
    border: 1px solid var(--aaim-v2-line, #d9e1ef);
    border-radius: 10px;
    color: var(--aaim-v2-ink, #172033);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.aaim-v2-button:hover,
.aaim-v2-dashboard-button:hover,
.aaim-v2-page button[type="submit"]:hover {
    border-color: rgba(64, 93, 230, 0.45);
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.1);
    transform: translateY(-1px);
}

.aaim-v2-button-primary {
    background: linear-gradient(135deg, #405de6 0%, #7c3aed 100%);
    border-color: transparent;
    color: #fff;
}

.aaim-v2-button-primary:hover {
    color: #fff;
}

.aaim-v2-badge {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.aaim-v2-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e3a8a;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.aaim-v2-alert-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: var(--aaim-v2-success, #067647);
}

.aaim-v2-alert-warning {
    background: #fffaeb;
    border-color: #fedf89;
    color: var(--aaim-v2-warning, #b54708);
}

.aaim-v2-alert-danger {
    background: #fef3f2;
    border-color: #fecdca;
    color: var(--aaim-v2-danger, #b42318);
}

.aaim-v2-field,
.aaim-v2-page input[type="text"],
.aaim-v2-page input[type="email"],
.aaim-v2-page input[type="password"],
.aaim-v2-page input[type="tel"],
.aaim-v2-page input[type="number"],
.aaim-v2-page select,
.aaim-v2-page textarea {
    background: #fff;
    border: 1px solid var(--aaim-v2-line, #d9e1ef);
    border-radius: 10px;
    color: var(--aaim-v2-ink, #172033);
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.aaim-v2-field:focus,
.aaim-v2-page input:focus,
.aaim-v2-page select:focus,
.aaim-v2-page textarea:focus {
    border-color: var(--aaim-v2-blue, #405de6);
    box-shadow: 0 0 0 3px rgba(64, 93, 230, 0.16);
    outline: none;
}

.aaim-v2-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}

.aaim-v2-table th,
.aaim-v2-table td,
.aaim-v2-dashboard table th,
.aaim-v2-dashboard table td {
    border-bottom: 1px solid var(--aaim-v2-line, #d9e1ef);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.aaim-v2-table th,
.aaim-v2-dashboard table th {
    background: #f8fafc;
    color: var(--aaim-v2-muted, #667085);
    font-size: 13px;
    font-weight: 800;
}

.aaim-v2-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aaim-v2-stat-value {
    color: var(--aaim-v2-blue, #405de6);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.aaim-v2-navigation,
.aaim-v2-nav {
    background: #fff;
    border: 1px solid var(--aaim-v2-line, #d9e1ef);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
    margin: 0 auto 20px;
    max-width: 1180px;
    padding: 14px;
}

.aaim-v2-app-sidebar {
    align-self: flex-start;
    border-radius: 0 22px 22px 0;
    left: 0;
    margin: 0;
    max-width: 260px;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    width: 260px;
    z-index: 10;
}

.aaim-v2-app-sidebar + .aaim-v2-page,
.aaim-v2-app-sidebar + .aaim-v2-bob-workspace,
.aaim-v2-app-sidebar + .aaim-v2-report {
    margin-left: 280px;
}

.aaim-v2-brand-block {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.aaim-v2-brand-name,
.aaim-v2-brand-subtitle {
    display: block;
}

.aaim-v2-brand-name {
    color: var(--aaim-v2-ink, #172033);
    font-size: 20px;
    line-height: 1.1;
}

.aaim-v2-brand-subtitle {
    color: var(--aaim-v2-muted, #667085);
    font-size: 12px;
    font-weight: 700;
}

.aaim-v2-sidebar-status {
    margin: 0 0 18px;
}

.aaim-v2-app-sidebar .aaim-v2-navigation-list {
    flex-direction: column;
}

.aaim-v2-app-sidebar .aaim-v2-navigation-item a,
.aaim-v2-app-sidebar .aaim-v2-navigation-dashboard a {
    background: #f8fafc;
    width: 100%;
}

.aaim-v2-app-sidebar .aaim-v2-navigation-dashboard a {
    background: linear-gradient(135deg, #405de6 0%, #7c3aed 100%);
    color: #fff;
}

.aaim-v2-sidebar-bob {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    margin-top: 20px;
    padding: 14px;
}

.aaim-v2-sidebar-bob p {
    color: var(--aaim-v2-muted, #667085);
    font-size: 13px;
    margin: 10px 0 0;
}

.aaim-v2-public-nav {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.aaim-v2-navigation-list,
.aaim-v2-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aaim-v2-navigation-item a,
.aaim-v2-nav-item a,
.aaim-v2-navigation-dashboard a {
    border-radius: 10px;
    color: var(--aaim-v2-ink, #172033);
    display: inline-flex;
    font-weight: 700;
    padding: 9px 12px;
    text-decoration: none;
}

.aaim-v2-navigation-item a:hover,
.aaim-v2-nav-item a:hover,
.aaim-v2-navigation-dashboard a:hover {
    background: #eef2ff;
    color: #3730a3;
}

.aaim-v2-bob-panel {
    border-color: rgba(124, 58, 237, 0.22);
}

.aaim-v2-bob-panel-header {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.aaim-v2-report-section {
    break-inside: avoid;
}

.aaim-v2-empty {
    color: var(--aaim-v2-muted, #667085);
    font-style: italic;
}

.aaim-v2-role-card {
    min-height: 170px;
}

.aaim-v2-public-bob {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.aaim-v2-public-footer {
    align-items: center;
    border-top: 1px solid var(--aaim-v2-line, #d9e1ef);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 34px;
    padding: 24px 0 4px;
}

.aaim-v2-public-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aaim-v2-public-footer a {
    color: var(--aaim-v2-muted, #667085);
    font-weight: 700;
    text-decoration: none;
}

.aaim-v2-public-footer a:hover {
    color: var(--aaim-v2-blue, #405de6);
}

.aaim-v2-auth-form {
    display: grid;
    gap: 12px;
}

.aaim-v2-auth-check {
    align-items: center;
    display: flex;
    gap: 8px;
}

.aaim-v2-auth-check input {
    width: auto;
}

@media (max-width: 780px) {
    .aaim-v2-shell,
    .aaim-v2-dashboard,
    .aaim-v2-report,
    .aaim-v2-report-export {
        padding: 16px;
    }

    .aaim-v2-hero,
    .aaim-v2-dashboard-hero {
        border-radius: 14px;
        padding: 22px;
    }

    .aaim-v2-hero-title,
    .aaim-v2-dashboard-hero h1 {
        font-size: 26px;
    }

    .aaim-v2-grid,
    .aaim-v2-grid-3,
    .aaim-v2-grid-4,
    .aaim-v2-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .aaim-v2-public-hero,
    .aaim-v2-auth-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 24px;
    }

    .aaim-v2-hero-actions {
        flex-direction: column;
    }

    .aaim-v2-hero-actions .aaim-v2-button {
        width: 100%;
    }

    .aaim-v2-app-sidebar {
        border-radius: 14px;
        margin: 0 auto 16px;
        max-width: none;
        min-height: auto;
        position: static;
        width: auto;
    }

    .aaim-v2-app-sidebar + .aaim-v2-page,
    .aaim-v2-app-sidebar + .aaim-v2-bob-workspace,
    .aaim-v2-app-sidebar + .aaim-v2-report {
        margin-left: 0;
        margin-top: 0;
    }

    .aaim-v2-public-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .aaim-v2-navigation-list,
    .aaim-v2-nav-list {
        flex-direction: column;
    }

    .aaim-v2-navigation-item a,
    .aaim-v2-nav-item a,
    .aaim-v2-navigation-dashboard a {
        width: 100%;
    }
}
