/* App font loaded via partials/app-font-link.ejs */

/* ===== CSS modules (Phase 2) ===== */
@import url('css/tokens.css');
@import url('css/layout.css');
@import url('css/components.css');
@import url('css/pages/credits.css');
@import url('css/pages/take-test.css');
@import url('css/pages/admin.css');
@import url('css/pages/tablet-1024.css');
@import url('css/pages/auth.css');
@import url('css/slack-theme.css');
@import url('css/theme-bindings.css');

/* Design tokens: public/css/tokens.css */

html:not([data-app-font-size]) {
  font-size: 100%;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    height: 100%;
}

body {
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

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

.mobile-overlay {
    display: none;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--panel-border);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease;
    z-index: 1001;
}

.sidebar-inner {
    display: grid;
    height: 100%;
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f07d22;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.45rem;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f264a;
    letter-spacing: 0.5px;
}

.mobile-close-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: #334155;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.chevron {
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.chevron.rotated {
    transform: rotate(-90deg);
}

.sidebar-section-body {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
    opacity: 1;
    margin-top: 8px;
}

.sidebar-section-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 16px 18px;
    border-radius: 16px;
    color: #223a5d;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.nav-item.active {
    background: #e8eafc;
    color: #4762e6;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--panel-border);
}

.sidebar-footer-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading);
}

.sidebar-footer-sub {
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Main */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    min-height: 74px;
    border-bottom: 1px solid var(--panel-border);
    background: #f7f7f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d7dce3;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-wrap {
    flex: 1;
    max-width: 420px;
}

.search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d7dce3;
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
    color: #4b5563;
    outline: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading);
}

.user-org {
    font-size: 0.82rem;
    color: var(--muted);
}

.content-area {
    padding: 28px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-header {
    margin-bottom: 20px;
    width: 100%;
    max-width: 980px;
}

.page-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading);
}

.page-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.assessment-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: 20px;
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100vh - 180px);
}

.assessment-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.section-meta {
    min-width: 260px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.question-counter {
    margin: 0;
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--heading);
    justify-self: anchor-center;
}

.progress-wrap {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    padding-top: 8px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 100%);
    border-radius: 999px;
    transition: width 0.25s ease;
}

/* Fixed zone */
.fixed-question-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transition-surface {
    position: relative;
    will-change: transform, opacity, filter;
}

.question-card,
.answer-card {
    border: 1px solid #ebedf0;
    border-radius: 16px;
    background: #fcfcfd;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.question-card {
    flex: 0 0 auto;
    height: 190px;
    min-height: 190px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.answer-card {
    min-height: 0;
}

.question-card.review-active {
    background: var(--green-bg);
    border-color: var(--green-border);
    border-top-color: #22c55e;
}

.question-card-scroll,
.answer-card-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.review-banner {
    margin-bottom: 14px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: var(--green-text);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.question-text {
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--heading);
    margin: 0;
    font-weight: 750;
}

/* Likert */
.likert-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-btn {
    width: 100%;
    border: 1px solid #dce2ea;
    background: #fff;
    border-radius: 12px;
    min-height: 54px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    color: var(--text);
}

.option-btn:hover {
    border-color: #b7c5f7;
    background: #f8faff;
}

.option-btn.active {
    border-color: #7aa2ff;
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px #7aa2ff;
}

.option-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #eef2f7;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.option-btn.active .option-number {
    background: #3b82f6;
    color: #fff;
}

.option-label {
    font-size: 1rem;
    font-weight: 600;
}

/* DISC */
.disc-table-wrap {
    overflow-x: auto;
}

.disc-table {
    width: 100%;
    border-collapse: collapse;
}

.disc-table th {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: #f8fafc;
    border-bottom: 1px solid #e8ebf0;
    padding: 14px 12px;
    text-align: left;
}

.disc-table td {
    border-bottom: 1px solid #edf1f5;
    padding: 14px 12px;
    vertical-align: middle;
}

.trait-col {
    width: 70%;
}

.pick-col {
    width: 15%;
    text-align: center !important;
}

.trait-cell {
    min-width: 280px;
}

.trait-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 4px;
}

.trait-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.pick-cell {
    text-align: center;
}

.disc-pick {
    width: 56px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.18s ease;
}

.disc-pick:hover {
    border-color: #b7c5f7;
    background: #f8faff;
}

.disc-pick.active {
    border-color: #7aa2ff;
    background: #edf4ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #7aa2ff;
}

/* Transition states */
.transition-surface.is-loading {
    pointer-events: none;
    filter: grayscale(0.05);
}

.transition-surface.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245, 246, 248, 0.78);
    backdrop-filter: blur(1px);
    z-index: 5;
}

.transition-surface.is-loading::after {
    content: none;
}

.slide-out-left,
.slide-out-right {
    animation: fadeOutSoft 0.2s ease forwards;
}

.slide-in-right,
.slide-in-left {
    animation: fadeInSoft 0.29s ease forwards;
}

@keyframes fadeOutSoft {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Bottom nav */
.nav-actions {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    gap: 10px;
    align-items: center;
}

.nav-actions-top {
    margin-bottom: 2px;
}

.nav-btn {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #d8dee7;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
}

.nav-btn-icon {
    font-size: 1.4rem;
    padding: 0;
}

.nav-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-btn-review-toggle {
    background: #fff;
    color: #334155;
}

.nav-btn-review-toggle.review-on {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 0;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 24px;
    border: 1px solid #e7ebf0;
}

.modal-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--heading);
}

.modal-text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.modal.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .assessment-card {
        max-width: 100%;
    }

        .quote-text {
        font-size: 1.15rem;
    }

    .quote-icon {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .app-shell {
        display: block;
    }

    .sidebar-user-profile {
    margin-top: 14px;
    padding-top: 14px;
}

.sidebar-user-badge .user-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

    /* Sidebar drawer: public/css/layout.css */

    .topbar {
        padding: 14px 16px;
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-left {
        width: 100%;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .search-wrap {
        max-width: 100%;
    }

.content-area {
    padding: 12px;
    align-items: stretch;
}

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.88rem;
    }

    .assessment-card {
        padding: 12px;
        border-radius: 14px;
        min-height: calc(100vh - 165px);
    }

    .assessment-card-header {
        gap: 10px;
    }

    .section-meta {
        min-width: 0;
        width: 100%;
    }

    .progress-wrap {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding-top: 0;
    }

    .question-card {
        flex-basis: 31%;
        height: 180px;
        min-height: 180px;
    }

    .question-card-scroll,
    .answer-card-scroll {
        padding: 5px;
    }

.question-text {
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--heading);
    margin: 0;
    font-weight: 700;
    text-align: left;
}

    .likert-options {
        gap: 10px;
    }

    .option-btn {
        min-height: 50px;
        padding: 10px 12px;
        gap: 10px;
    }

    .option-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .option-label {
        font-size: 0.92rem;
    }

    .disc-table th,
    .disc-table td {
        padding: 8px 6px;
    }

    .trait-cell {
        min-width: 200px;
    }

    .trait-label {
        font-size: 0.9rem;
    }

    .trait-desc {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .disc-pick {
        width: 44px;
        height: 36px;
        font-size: 0.95rem;
    }

    .nav-actions {
        grid-template-columns: 56px 1fr 56px;
    }

    .nav-btn {
        height: 42px;
        font-size: 0.92rem;
    }

    .nav-btn-icon {
        font-size: 1.2rem;
    }

           .quote-text {
        font-size: 1.15rem;
    }
}

.sidebar-user-profile {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--panel-border);
}

.sidebar-user-badge {
    align-items: center;
    gap: 14px;
}

.sidebar-user-badge .user-avatar {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
}

.sidebar-user-badge .user-name {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-user-badge .user-org {
    font-size: 0.9rem;
}

/* Quote style question card */
.quote-card {
    position: relative;
    background: #f4efe4;
    border-radius: 18px;
    padding: 26px 22px 22px 22px;
    border: 1px solid #e5dfcf;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.quote-icon {
    font-size: 48px;
    font-weight: 800;
    color: #2b2f8f;
    line-height: 1;
    margin-bottom: 0px;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.55;
    font-weight: 500;
    color: #1f2937;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 6px;
}

/* Dashboard and shared app layout */
.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 24px;
    background: #f7f8fb;
}

.dashboard-panel {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dashboard-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    max-height: none;
    overflow: visible;
}

.dashboard-section-card,
.result-header-card,
.result-section-card {
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
    padding: 22px;
    margin-bottom: 20px;
}

.section-heading {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    margin: -8px 0 18px;
    color: #6b7280;
    font-size: 0.95rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
}

.profile-avatar-lg,
.profile-avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 999px;
}

.profile-avatar-lg {
    object-fit: cover;
    background: #dbeafe;
    display: block;
}

.profile-avatar-fallback {
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input {
    width: 100%;
    height: 44px;
    border: 1px solid #d8dee7;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
}

.save-btn,
.back-link,
.view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.save-btn {
    border: 0;
    background: #4f46e5;
    color: #fff;
    cursor: pointer;
}

.table-wrap {
    overflow-x: auto;
}

table.simple-table {
    width: 100%;
    border-collapse: collapse;
}

table.simple-table th,
table.simple-table td {
    border-bottom: 1px solid #edf1f5;
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

table.simple-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.credit-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.credit-box {
    background: #fff;
    border: 1px solid #e3e6eb;
    border-radius: 16px;
    padding: 18px;
}

.credit-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.credit-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.blocked-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-weight: 600;
}

.empty-state-box {
    padding: 16px 18px;
    border: 1px dashed #d8dee7;
    border-radius: 14px;
    color: #6b7280;
    background: #fff;
}

.view-link {
    border: 1px solid #d8dee7;
    background: #fff;
    color: #111827;
}

.view-link:hover {
    background: #f8fafc;
}

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

.result-page {
    min-height: 100vh;
    background: #f7f8fb;
}

.result-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.result-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.result-meta {
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.back-link {
    background: #4f46e5;
    color: #fff;
}

.info-note {
    color: #6b7280;
    font-size: 0.92rem;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 12px;
    }

    .profile-grid,
    .credit-boxes {
        grid-template-columns: 1fr;
    }

    .dashboard-section-card,
    .result-header-card,
    .result-section-card {
        padding: 16px;
        border-radius: 16px;
    }

    .result-title {
        font-size: 1.25rem;
    }

    table.simple-table th,
    table.simple-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}


.topbar,
.topbar-left,
.mobile-menu-btn,
.mobile-close-btn,
#mobileMenuBtn,
#mobileCloseBtn {
    position: relative;
}

.mobile-menu-btn,
.mobile-close-btn,
#mobileMenuBtn,
#mobileCloseBtn {
    z-index: 1102;
    pointer-events: auto;
    touch-action: manipulation;
}

body.sidebar-active .mobile-overlay {
    display: block;
}

@media (max-width: 768px) {
    .main-content {
        position: relative;
        z-index: 1;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .sidebar {
        z-index: 1101;
        will-change: transform;
    }

    .mobile-overlay {
        z-index: 1100;
    }
}


/* Result detail mobile-first summary cards */
.compact-result-container {
    max-width: 980px;
}

.compact-result-header {
    margin-bottom: 16px;
}

.compact-result-topbar {
    align-items: flex-start;
}

.compact-meta span {
    display: inline-flex;
    align-items: center;
}

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

.result-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e7ebf0;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    padding: 20px;
    min-height: 100%;
}

.result-summary-card-wide {
    grid-column: 1 / -1;
}

.summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #6366f1;
}

.summary-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.summary-note {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.45;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 14px;
}

.summary-rank-badge {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.summary-item-texts {
    min-width: 0;
}

.summary-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.summary-item-value {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-pattern-card {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
}

.profile-pattern-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.profile-graph-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-pattern-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
}

.profile-pattern-name {
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 700;
    color: #4b5563;
    word-break: break-word;
}

@media (max-width: 768px) {
    .result-summary-grid,
    .profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .result-summary-card {
        border-radius: 18px;
        padding: 16px;
    }

    .summary-title {
        font-size: 1.08rem;
    }

    .summary-note,
    .profile-pattern-name,
    .summary-item-value {
        font-size: 0.95rem;
    }

    .summary-item-pill {
        padding: 12px;
        border-radius: 16px;
    }

    .profile-pattern-card {
        padding: 14px;
        border-radius: 16px;
    }

    .profile-pattern-number {
        font-size: 1.2rem;
    }
}

/* ===== Refresh 2026 dashboard/test/result UI ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(245, 246, 248, 0.96);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.page-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px 28px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.page-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #dbe3ff;
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
.page-loader-text { font-weight: 600; color: #334155; }
.page-is-loading .page-loader { opacity: 1; visibility: visible; }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard-layout { min-height: 100vh; display: flex; }
.sidebar-compact .sidebar-nav-tight { gap: 12px; }
.sidebar-profile-dock { margin-top: auto; position: relative; }
.profile-gear-btn {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--panel-border);
  background: #fff; color: #334155; font-size: 1.15rem; font-weight: 700; cursor: pointer;
}
.profile-dock-card {
  position: absolute; left: 0; bottom: 62px; width: 240px; background: #fff; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12); border: 1px solid var(--panel-border); padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .24s ease;
}
.profile-dock-card.open { opacity: 1; visibility: visible; transform: translateY(0); }
.logout-form { margin-top: 14px; }
.logout-btn {
  width: 100%; border: 0; border-radius: 12px; background: #111827; color: #fff;
  height: 42px; font-weight: 700; cursor: pointer;
}
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  background: #eef2ff; color: #3730a3; font-weight: 600; text-decoration: none;
}
.dashboard-space, .result-detail-space, .test-screen-wrap { padding: 24px; display: block; flex-direction: column; gap: 20px;     align-content: start; }
.dashboard-hero-card {
  background: linear-gradient(135deg, #3656da 0%, #739df0 100%); color: #fff; border-radius: 28px;
  padding: 24px; box-shadow: 0 18px 40px rgba(54, 86, 218, 0.18);
}
.dashboard-hero-copy h1, .intro-header-row h1 { margin: 4px 0 10px; font-size: 2rem; line-height: 1.1; }
.hero-kicker { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .92; }
.hero-text { margin: 0; max-width: 700px; line-height: 1.6; }
.dashboard-hero-stats, .snapshot-main-grid, .intro-rule-grid, .profile-card-grid, .credit-summary-grid { display: grid; gap: 14px; }
.dashboard-hero-stats, .snapshot-main-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.hero-stat-card, .snapshot-key-card, .intro-rule-card, .profile-card-tile, .mini-stat-card {
  background: rgba(255,255,255,.92); color: #0f172a; border-radius: 22px; padding: 18px;
}
.hero-stat-card span, .snapshot-key-card span, .intro-rule-card span, .profile-card-tile span, .mini-stat-card span { display: block; color: #64748b; font-size: .82rem; font-weight: 600; }
.hero-stat-card strong, .snapshot-key-card strong, .intro-rule-card strong, .profile-card-tile strong, .mini-stat-card strong { display: block; margin-top: 8px; font-size: 1.3rem; color: #0f172a; }
.hero-stat-card-action a { margin-top: 8px; display: inline-flex; color: #3656da; font-weight: 700; text-decoration: none; }
.dashboard-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-option-card {
  background: #fff; border-radius: 22px; border: 1px solid var(--panel-border); padding: 18px; display: flex; gap: 14px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dashboard-option-card.active, .dashboard-option-card:hover { transform: translateY(-2px); border-color: #d9eed9; box-shadow: 0 14px 28px rgba(79,70,229,0.08); }
.dashboard-option-icon { width: 48px; height: 48px; border-radius: 16px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.dashboard-option-card h3, .section-headline-row h2 { margin: 0 0 6px; font-size: 1.1rem; }
.dashboard-option-card p, .section-headline-row p { margin: 0; color: #64748b; line-height: 1.55; }
.dashboard-panel-card, .mobile-section-card, .intro-screen-card, .assessment-card {
  background: #fff; border-radius: 24px; border: 1px solid var(--panel-border); box-shadow: var(--shadow-card); padding: 22px;
}
.mobile-list-card {
    width: 100%; display: flex; flex-direction: column; gap: 12px; }
.mobile-list-item {
  display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 1px solid #e9edf5; border-radius: 18px; padding: 14px 16px; justify-content: space-between;
}
.mobile-list-link { text-decoration: none; color: inherit; margin-top: 15px; }
.mobile-list-content { min-width: 0; flex: 1; }
.mobile-list-title { font-weight: 700; color: #111827; font-size: 0.85rem; }
.mobile-list-sub { color: #64748b; font-size: .88rem; margin-top: 2px; }
.rank-dot {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg,#4caf50,#67e8f9);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.rank-dot-teal { background: linear-gradient(135deg,#14b8a6,#818cf8); }
.score-pill {
  padding: 7px 12px; border-radius: 999px; background: #ebe8ff; color: #4338ca; font-weight: 700; white-space: nowrap;
}
.score-pill-warning { background: #fff7ed; color: #c2410c; }
.score-pill-success { background: #ecfdf5; color: #15803d; }
.identity-snapshot-mini { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.snapshot-mini-box {
  background: linear-gradient(180deg, #f8fbff, #eef2ff); border: 1px solid #dbe4ff; border-radius: 18px; padding: 16px;
}
.snapshot-mini-box span { font-size: .8rem; color: #64748b; display: block; }
.snapshot-mini-box strong { display: block; margin-top: 8px; font-size: 1.25rem; }
.snapshot-mini-box small { display: block; margin-top: 6px; color: #64748b; }
.empty-state { padding: 24px; text-align: center; color: #64748b; }
.dashboard-fade-in, .auth-fade-shell, .animated-form { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform:none;} }

.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(180deg, #f6f8fb, #eef2ff);
}
.auth-card {
  width: 100%; max-width: 430px; background: rgba(255,255,255,.96); border: 1px solid var(--panel-border);
  border-radius: 24px; padding: 28px; box-shadow: 0 20px 46px rgba(15,23,42,.08);
}
.auth-card-wide { max-width: 470px; }
.auth-copy { color: #64748b; line-height: 1.6; margin: 0 0 18px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.auth-field input {
  width: 100%; height: 46px; border: 1px solid #d7dce3; border-radius: 14px; padding: 0 14px;
}
.auth-btn {
  width: 100%; height: 48px; border: 0; border-radius: 14px; background: linear-gradient(135deg,var(--primary),#7165f5);
  color: #fff; font-weight: 700; cursor: pointer;
}
.auth-error, .auth-warning, .auth-success {
  margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600;
}
.auth-error { background: #fef2f2; color: #b91c1c; }
.auth-warning { background: #fff7ed; color: #c2410c; }
.auth-success { background: #ecfdf5; color: #166534; }
.auth-link { margin-top: 14px; text-align: center; }

.intro-header-row { display: grid; align-items: flex-start; gap: 16px; }
.credit-cost-chip { background: #fff7ed; color: #c2410c; border-radius: 999px; padding: 10px 14px; font-weight: 700; white-space: nowrap; }
.intro-rule-grid, .credit-summary-grid { grid-template-columns: repeat(2, minmax(1,1fr)); padding-bottom: 18px; }
.intro-rule-card p { color: #64748b; margin: 8px 0 0; line-height: 1.55; }
.intro-note-card { margin-top: 6px; background: #f8fafc; border: 1px solid #e6ebf2; border-radius: 20px; padding: 9px 18px 6px; }
.intro-note-card ul { margin: 0; padding-left: 18px; color: #475569; line-height: 1.8; }
.intro-actions { margin-top: 18px; display: flex; justify-content: center; gap: 12px; }
.ghost-link-btn, .primary-action-btn {
  border: 0; text-decoration: none; border-radius: 14px; min-height: 48px; padding: 0 18px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; cursor: pointer;
}
.ghost-link-btn { background: #eef2ff; color: #3730a3; }
.primary-action-btn { background: linear-gradient(135deg,var(--primary),#7165f5); color: #fff; }
.primary-action-btn[disabled] { opacity: .45; cursor: not-allowed; }
.inline-warning { margin-top: 12px; color: #b45309; background: #fff7ed; padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.timer-chip {
  min-width: 90px; text-align: center; padding: 10px 14px; border-radius: 999px; background: #111827; color: #fff; font-weight: 600;
}
.credit-chip {
  min-width: 90px; text-align: center; padding: 10px 14px; border-radius: 999px; background: #4338ca; color: #fff; font-weight: 600;
}
.assessment-card-header-tight { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-title-small { font-size: 1.12rem; margin: 0; }
.progress-wrap-strong { margin: 14px 0 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-btn-secondary { background: #e5e7eb; color: #111827; }

.c3-result-snapshot {
  background: linear-gradient(135deg, #4063ea 0%, #7da0f5 100%); color: #fff; border-radius: 28px; padding: 24px;
}
.c3-result-snapshot h1 { margin: 0 0 16px; }
.snapshot-key-card small, .profile-card-tile small { display: block; margin-top: 6px; color: #64748b; }
.snapshot-description { margin: 16px 0 0; line-height: 1.65; background: rgba(255,255,255,.92); color: #0f172a; border-radius: 20px; padding: 16px 18px; }
.profile-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 1024px) {
  .dashboard-hero-stats, .snapshot-main-grid, .intro-rule-grid, .credit-summary-grid, .identity-snapshot-mini, .profile-card-grid { grid-template-columns: 1fr; }
  .dashboard-option-grid:not(.okta-tile-grid) { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Sidebar drawer: public/css/layout.css */
  .topbar { padding: 12px 16px; align-items: flex-start; }
  .dashboard-space, .result-detail-space, .test-screen-wrap { padding: 16px; }
  .dashboard-hero-card, .dashboard-panel-card, .mobile-section-card, .intro-screen-card, .assessment-card { padding: 18px; border-radius: 22px; }
  .intro-header-row, .intro-actions, .assessment-card-header-tight { flex-direction: column; align-items: stretch; }
  .credit-pill { font-size: .9rem; }
  .nav-item { padding: 14px 16px; }
  .brand-text { font-size: 1.25rem; }
  .profile-dock-card { width: min(240px, calc(100vw - 56px)); }
}


.nav-item {
    text-decoration: none;
}

.nav-item:hover,
.nav-item:focus,
.nav-item:active {
    text-decoration: none;
}

.okta-hero-card {
    width: 100%;
    max-width: 1120px;
}

.dashboard-hero-stats-compact {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

/* Okta tiles: public/css/components.css */

.dashboard-launcher-grid {
    max-width: 760px;
}

.section-headline-row-spaced {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.section-headline-row-end {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0;
}

.page-title {
    font-size: 1.0rem;
    font-weight: 700;
    color: #0f172a;
    justify-self: anchor-center;
}

.page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .section-headline-row-spaced {
        flex-direction: column;
        align-items: stretch;
    }

    .section-headline-row-end {
        justify-content: stretch;
    }
}

.intro-primary-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.secondary-action-btn { border:none; border-radius:14px; padding:14px 18px; font-weight:700; background:#e2e8f0; color:#0f172a; cursor:pointer; }
.secondary-action-btn:hover { transform:translateY(-1px); }
.hidden { display:none !important; }


.brand-logo-image {
  object-fit: cover;
  padding: 0;
  background: #fff;
  border: 1px solid var(--panel-border);
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f07d22;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.auth-brand-logo-image {
  object-fit: cover;
  border: 1px solid var(--panel-border);
  background: #fff;
}

.auth-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}

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

.settings-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: #fafbff;
  margin-bottom: 22px;
}

.settings-preview-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f07d22;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.settings-preview-logo-image {
  object-fit: cover;
  border: 1px solid var(--panel-border);
  background: #fff;
}

.settings-preview-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.settings-preview-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
}

.settings-form .auth-field input[type="file"] {
  padding: 12px;
  background: #fff;
}

.field-help {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.82rem;
}

.settings-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .settings-preview-card {
    align-items: flex-start;
  }
}

/* Result detail interactive cards */
.result-summary-shell {
  padding: 26px;
}

.result-summary-heading h1 {
  margin: 0 0 8px;
  color: var(--heading);
}

.result-summary-heading p {
  margin: 0;
  color: var(--muted);
}

.result-summary-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.result-summary-card {
  border: 1px solid var(--panel-border);
  background: #f8faff;
  border-radius: 24px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 16px 30px rgba(89, 100, 219, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 220px;
  height: 220px;
  overflow: hidden;
}

.result-summary-card:hover,
.result-summary-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(89, 100, 219, 0.14);
  border-color: rgba(89, 100, 219, 0.35);
}

.result-summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.result-summary-value {
  display: -webkit-box;
  color: var(--heading);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.15;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  align-self: center;
}

.result-summary-sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 1.5em;
}

.result-summary-profile-row,
.profile-feature-pattern-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.result-summary-card-profile {
  grid-template-rows: auto 1fr auto;
}

.result-summary-card-profile .result-summary-value {
  min-height: 0;
}

.result-summary-card-profile .profile-color-dots {
  flex-shrink: 0;
}


.profile-color-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-color-dots-inline {
  gap: 8px;
}

.profile-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.45), 0 6px 14px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}

.profile-color-dot-large {
  width: 42px;
  height: 42px;
}

.result-detail-panel-shell {
  min-height: 220px;

  padding: 24px;
}

.result-detail-empty-state {
  color: var(--muted);
  border: 1px dashed var(--panel-border);
  border-radius: 22px;
  padding: 22px;
  background: #fbfcff;
}

.result-detail-panel {
  display: none;
}

.result-detail-panel.is-active {
  display: block;
}

.result-detail-helper {
  margin: 6px 0 0;
  color: var(--muted);
}

.detail-list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.detail-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: #fbfcff;
  border: 1px solid var(--panel-border);
}

.detail-rank-badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7367f0, #5b8ff9);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-rank-badge-teal {
  background: linear-gradient(135deg, #27c3a7, #4bb8ff);
}

.detail-list-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.08rem;
}

.detail-list-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-score-badge {
  min-width: 62px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--heading);
  text-align: center;
  font-weight: 700;
}

.profile-feature-card {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(95, 104, 245, 0.08), rgba(76, 129, 255, 0.12));
  border: 1px solid rgba(95, 104, 245, 0.16);
}

.profile-feature-pattern {
  font-size: 2rem;
  color: var(--heading);
  line-height: 1;
}

.profile-feature-label {
  margin-top: 12px;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-feature-sub {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .result-summary-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .result-summary-shell,
  .result-detail-panel-shell {
    padding: 18px;
  }

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

  .detail-score-badge {
    grid-column: 2;
    justify-self: start;
  }

  .profile-color-dot-large {
    width: 34px;
    height: 34px;
  }
}


.modal, .modal-dialog, .modal-card {
  isolation: isolate;
}
@media (max-width: 768px) {
  .modal { z-index: 5000 !important; }
  .modal-dialog { z-index: 5001 !important; }
  .modal-card { position: relative; z-index: 5002 !important; }
}


/* Preference controls */
.topbar{gap:16px;flex-wrap:wrap;align-items:center;}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.topbar-right{margin-left:auto;justify-content:flex-end;}
.topbar-controls{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.segmented-control{display:inline-flex;align-items:center;gap:6px;padding:4px;border:1px solid var(--panel-border);background:var(--panel);border-radius:999px;box-shadow:var(--shadow-card);}
.segmented-btn{border:0;background:transparent;color:var(--text);padding:8px 12px;border-radius:999px;font-weight:700;cursor:pointer;min-width:48px;line-height:1;}
.segmented-btn.is-active{background:var(--primary);color:#fff;}
.credit-chip,.credit-pill{white-space:nowrap;}

/* Result detail and cards */
.result-snapshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.result-summary-card{min-height:148px;}
.mobile-list-card.fixed-card-list{display:grid;grid-template-columns:repeat(1,minmax(280px,1fr));gap:16px;background:transparent;border:0;padding:0;box-shadow:none;}
.mobile-list-card.fixed-card-list .mobile-list-link{min-height:112px;align-items:flex-start;}

@media (max-width: 768px){
  .topbar{align-items:flex-start;}
  .topbar-right{width:100%;margin-left:0;justify-content:center;}
  .topbar-controls{order:1;max-width:100%;}
  .segmented-control{padding:3px;gap:4px;}
  .segmented-btn{padding:8px 10px;min-width:42px;font-size:.92rem;}
  .credit-chip,.credit-pill{font-size:.95rem;padding:10px 14px;}
  .result-snapshot-grid{grid-template-columns:repeat(3,minmax(96px,1fr));gap:10px;}
  .result-summary-card{min-height:116px;height:auto;padding:14px;grid-template-rows:auto 1fr auto;}
  .result-summary-card strong{font-size:2rem;line-height:1.2;word-break:break-word; }
  .result-summary-card .profile-feature-pattern strong,.profile-feature-pattern{font-size:1rem;}
}


@media (min-width: 1025px) {
  .result-summary-card-grid { grid-auto-rows: 140px; }
  .result-summary-card { min-height: 220px; height: 220px; }
}

/* --- Personality profile detail experience --- */
.profile-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 2rem 1.5rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #9fdcf5 0%, #a4d8ef 100%);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.profile-detail-copy {
  position: relative;
  z-index: 2;
}

.profile-detail-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  color: #27337a;
  margin-bottom: 0.5rem;
}

.profile-detail-title {
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #19255f;
  max-width: 12ch;
}

.profile-detail-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(17, 24, 39, 0.8);
  max-width: 58ch;
}

.profile-detail-art {
  position: relative;
  min-height: 340px;
}

.profile-art-orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
  filter: blur(0.5px);
}

.profile-art-orb-a {
  width: 180px;
  height: 180px;
  right: 110px;
  top: 22px;
  background: rgba(108, 99, 255, 0.18);
}

.profile-art-orb-b {
  width: 250px;
  height: 250px;
  right: 20px;
  top: 10px;
  background: rgba(145, 224, 96, 0.35);
}

.profile-art-orb-c {
  width: 170px;
  height: 240px;
  right: 70px;
  bottom: 20px;
  border-radius: 80px;
  background: rgba(255, 201, 173, 0.45);
}

.profile-art-avatar {
  position: absolute;
  width: 86px;
  height: 110px;
  border-radius: 26px 26px 20px 20px;
  box-shadow: 0 24px 32px rgba(15, 23, 42, 0.16);
}

.profile-art-avatar::before {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  left: 14px;
  top: -22px;
  background: inherit;
  box-shadow: inset 0 6px 14px rgba(255,255,255,0.25);
}

.profile-art-avatar::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 10px;
  border-radius: 999px;
  left: 25px;
  top: 18px;
  background: rgba(255,255,255,0.4);
}

.profile-art-avatar-yellow { right: 205px; top: 56px; background: linear-gradient(180deg, #ffd33d, #f1b400); }
.profile-art-avatar-red { right: 42px; top: 62px; background: linear-gradient(180deg, #ff5a4a, #f23b2a); }
.profile-art-avatar-teal { right: 118px; top: 132px; background: linear-gradient(180deg, #32c5c8, #147e87); }
.profile-art-avatar-purple { right: 238px; bottom: 56px; background: linear-gradient(180deg, #8f5cff, #5c2dd6); }
.profile-art-avatar-orange { right: 16px; bottom: 24px; background: linear-gradient(180deg, #ffbb43, #f08a10); }

.profile-feature-card-rich {
  background: linear-gradient(180deg, rgba(236,240,252,0.9) 0%, rgba(241,244,255,0.95) 100%);
  border: 1px solid rgba(180, 189, 240, 0.45);
}

.profile-card-grid-interactive {
  margin-top: 1.5rem;
}

.profile-card-toggle {
  cursor: pointer;
  border: 1px solid rgba(189, 197, 233, 0.75);
  background: #fff;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profile-card-toggle:hover,
.profile-card-toggle.is-active {
  transform: translateY(-2px);
  border-color: rgba(85, 106, 255, 0.45);
  box-shadow: 0 18px 28px rgba(111, 122, 175, 0.12);
}

.profile-reference-stack {
  margin-top: 1.5rem;
}

.profile-reference-panel {
  display: none;
  background: #fff;
  border: 1px solid rgba(218, 223, 242, 0.8);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.profile-reference-panel.is-active {
  display: block;
}

.profile-reference-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.profile-reference-header h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 2rem;
  color: #18213f;
}

.profile-reference-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #73809f;
}

.profile-reference-pattern-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-reference-pattern-no {
  font-size: 1.1rem;
  font-weight: 800;
  color: #101828;
}

.profile-reference-pillbox {
  min-width: 180px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f4f7ff;
  border: 1px solid rgba(210, 219, 255, 0.8);
}

.profile-reference-pillbox span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.profile-reference-pillbox strong {
  color: #18213f;
}

.profile-reference-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.25rem;
}

.profile-reference-card {
  border-radius: 22px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  border: 1px solid rgba(222, 228, 245, 0.85);
}

.profile-reference-card h4 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: #202939;
}

.profile-reference-card p {
  color: #5b6476;
  line-height: 1.75;
  margin: 0 0 0.95rem;
}

.profile-attribute-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.profile-attribute-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(228, 232, 243, 0.85);
}

.profile-attribute-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-attribute-item dt {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #74819b;
}

.profile-attribute-item dd {
  margin: 0;
  color: #374151;
  line-height: 1.65;
}

.profile-reference-fallback {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: #f9fafb;
  color: #4b5563;
}

@media (max-width: 980px) {
  .profile-detail-hero,
  .profile-reference-grid {
    grid-template-columns: 1fr;
  }

  .profile-detail-art {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .profile-detail-hero {
    padding: 1.35rem;
    border-radius: 24px;
  }

  .profile-detail-title {
    font-size: 2rem;
  }

  .profile-detail-art {
    min-height: 250px;
  }

  .profile-art-avatar-yellow { right: 150px; top: 36px; }
  .profile-art-avatar-red { right: 18px; top: 46px; }
  .profile-art-avatar-teal { right: 76px; top: 120px; }
  .profile-art-avatar-purple { right: 178px; bottom: 48px; }
  .profile-art-avatar-orange { right: -2px; bottom: 16px; }

  .profile-reference-header {
    flex-direction: column;
  }

  .profile-reference-header h3 {
    font-size: 1.55rem;
  }
}

/* --- Compact premium profile detail refresh --- */
.result-detail-space {
  align-items: center;
}

.result-summary-shell,
.result-detail-panel-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.result-summary-shell {
  padding: 22px;
}

.result-summary-card-grid {
  margin-top: 16px;
  gap: 14px;
}

.result-summary-card {
  min-height: 140px;
  height: auto;
  padding: 18px;
  border-radius: 20px;
}

.result-summary-card .result-summary-value {
  min-height: auto;
}

.result-detail-panel-shell {
  padding: 20px;
}

.profile-premium-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 8px;
}

.profile-detail-hero {
  margin-bottom: 0;
  min-height: 250px;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 26px;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  box-shadow: 0 18px 38px rgba(82, 112, 182, 0.12);
}

.profile-detail-copy {
  align-self: center;
}

.profile-detail-eyebrow {
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.profile-detail-title {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  max-width: 10ch;
  margin-bottom: 0.75rem;
}

.profile-detail-text {
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 46ch;
}

.profile-detail-art {
  min-height: 220px;
}

.profile-art-orb-a {
  width: 120px;
  height: 120px;
  right: 96px;
  top: 12px;
}

.profile-art-orb-b {
  width: 180px;
  height: 180px;
  right: 10px;
  top: 8px;
}

.profile-art-orb-c {
  width: 120px;
  height: 170px;
  right: 58px;
  bottom: 8px;
}

.profile-art-avatar {
  width: 58px;
  height: 78px;
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.14);
}

.profile-art-avatar::before {
  width: 38px;
  height: 38px;
  left: 10px;
  top: -14px;
}

.profile-art-avatar::after {
  width: 24px;
  height: 8px;
  left: 17px;
  top: 12px;
}

.profile-art-avatar-yellow { right: 134px; top: 36px; }
.profile-art-avatar-red { right: 14px; top: 38px; }
.profile-art-avatar-teal { right: 78px; top: 88px; }
.profile-art-avatar-purple { right: 158px; bottom: 28px; }
.profile-art-avatar-orange { right: 4px; bottom: 14px; }

.profile-feature-card-compact {
  margin-top: 0;
  padding: 18px 18px 16px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  min-height: 250px;
  box-shadow: 0 16px 34px rgba(82, 112, 182, 0.08);
}

.profile-feature-card-compact .result-summary-label {
  margin-bottom: 8px;
}

.profile-feature-pattern {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.profile-feature-label {
  margin-top: 10px;
  font-size: 0.98rem;
}

.profile-feature-sub {
  margin-top: 6px;
  font-size: 0.95rem;
}

.profile-card-grid-compact {
  margin-top: 14px;
  gap: 12px;
}

.profile-card-grid-compact .profile-card-tile {
  border-radius: 18px;
  padding: 16px;
  min-height: 120px;
  box-shadow: 0 10px 24px rgba(82, 112, 182, 0.06);
}

.profile-card-grid-compact .profile-card-tile span {
  font-size: 0.8rem;
}

.profile-card-grid-compact .profile-card-tile strong {
  margin-top: 6px;
  font-size: 1.45rem;
}

.profile-card-grid-compact .profile-card-tile small {
  margin-top: 4px;
  font-size: 0.9rem;
}

.profile-reference-stack {
  margin-top: 16px;
}

.profile-reference-panel {
  border-radius: 24px;
  padding: 1.25rem;
}

.profile-reference-header {
  margin-bottom: 1rem;
}

.profile-reference-header h3 {
  font-size: 1.6rem;
}

.profile-reference-pillbox {
  min-width: 150px;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
}

.profile-reference-grid {
  gap: 1rem;
}

.profile-reference-card {
  border-radius: 18px;
  padding: 1rem;
}

.profile-reference-card h4 {
  margin-bottom: 0.75rem;
}

.profile-reference-card p,
.profile-attribute-item dd {
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .profile-premium-top {
    grid-template-columns: 1fr;
  }

  .profile-feature-card-compact {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .result-summary-shell,
  .result-detail-panel-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .result-summary-card-grid {
    grid-template-columns: 1fr;
  }

  .result-summary-card {
    min-height: 112px;
    padding: 16px;
    border-radius: 18px;
  }

  .profile-premium-top {
    gap: 12px;
  }

  .profile-detail-hero {
    padding: 1.15rem;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1rem;
    border-radius: 22px;
  }

  .profile-detail-title {
    font-size: 1.8rem;
    max-width: none;
  }

  .profile-detail-text {
    font-size: 0.94rem;
  }

  .profile-detail-art {
    min-height: 160px;
  }

  .profile-art-orb-a { width: 90px; height: 90px; right: 74px; top: 8px; }
  .profile-art-orb-b { width: 130px; height: 130px; right: 6px; top: 0; }
  .profile-art-orb-c { width: 92px; height: 126px; right: 42px; bottom: 2px; }

  .profile-art-avatar { width: 44px; height: 58px; }
  .profile-art-avatar::before { width: 28px; height: 28px; left: 8px; top: -10px; }
  .profile-art-avatar::after { width: 16px; height: 6px; left: 14px; top: 10px; }

  .profile-art-avatar-yellow { right: 98px; top: 28px; }
  .profile-art-avatar-red { right: 8px; top: 28px; }
  .profile-art-avatar-teal { right: 54px; top: 68px; }
  .profile-art-avatar-purple { right: 114px; bottom: 18px; }
  .profile-art-avatar-orange { right: 2px; bottom: 8px; }

  .profile-feature-card-compact {
    padding: 16px;
    border-radius: 22px;
  }

  .profile-color-dot-large {
    width: 30px;
    height: 30px;
  }

  .profile-card-grid-compact {
    grid-template-columns: 1fr;
  }

  .profile-card-grid-compact .profile-card-tile {
    min-height: auto;
    padding: 14px;
  }

  .profile-reference-panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .profile-reference-pattern-row {
    flex-wrap: wrap;
  }
}


.shared-shell-page{max-width:1180px;margin:0 auto;width:100%;}
.result-detail-space,.content-area.shared-shell-page{padding-inline:clamp(16px,3vw,28px);}
.result-detail-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.result-summary-shell,.result-detail-panel-shell,.assessment-shell,.completion-shell{border:1px solid rgba(186,200,255,.55);box-shadow:0 22px 50px rgba(115,132,192,.14);}
.result-summary-card{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.result-summary-card:hover,.result-summary-card.is-active{transform:translateY(-2px);box-shadow:0 12px 30px rgba(88,107,175,.18);border-color:#8da2ff;}
.result-summary-card-profile{background:linear-gradient(180deg,#f7faff,#eef4ff);}
.profile-detail-hero{background:linear-gradient(135deg,#bfe6ff 0%,#b8e0fb 100%);border:1px solid rgba(188,213,255,.75);box-shadow:0 18px 40px rgba(100,126,190,.15);}
.profile-detail-title{font-size:clamp(2.1rem,4vw,3.2rem);line-height:1.03;letter-spacing:-.03em;}
.profile-detail-text{max-width:34rem;font-size:1.05rem;line-height:1.7;}
.profile-feature-card-rich{background:linear-gradient(180deg,#ffffff 0%,#f5f7ff 100%);box-shadow:0 18px 38px rgba(95,112,175,.13);}
.profile-reference-panel{box-shadow:0 18px 42px rgba(96,109,160,.12);border:1px solid rgba(201,212,252,.8);}
.profile-summary-bullets{margin:0;padding-left:1.1rem;display:grid;gap:14px;}
.profile-summary-bullets li{line-height:1.7;color:var(--text);}
.profile-art-avatar{border-radius:20px;}
.profile-art-avatar-disc-red{background:linear-gradient(180deg,#ff7a6f 0%,#ef4b3a 100%);}
.profile-art-avatar-disc-yellow{background:linear-gradient(180deg,#ffe36a 0%,#f2bf2a 100%);}
.profile-art-avatar-disc-green{background:linear-gradient(180deg,#67d7c4 0%,#2c8d98 100%);}
.profile-art-avatar-disc-blue{background:linear-gradient(180deg,#8c67ff 0%,#5f34d8 100%);}
.profile-art-orb-a{background:rgba(244,206,86,.18);}
.profile-art-orb-b{background:rgba(41,172,94,.14);}
.profile-art-orb-c{background:rgba(67,131,255,.14);}
.assessment-break-card,.completion-shell{max-width:760px;margin:0 auto;text-align:center;padding:clamp(28px,4vw,42px);}
.break-eyebrow,.completion-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.76rem;font-weight:700;color:#5b6fb2;margin-bottom:14px;}
.break-verse{font-size:1.15rem;line-height:1.8;font-weight:600;color:var(--heading);margin:12px 0 16px;}
.break-message,.completion-text{max-width:46rem;margin:0 auto;color:var(--text);line-height:1.75;}
.break-timer-wrap{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:136px;height:136px;border-radius:999px;background:linear-gradient(180deg,#eef5ff,#dbe9ff);color:#23306c;margin:24px 0 10px;box-shadow:inset 0 0 0 8px rgba(255,255,255,.55),0 18px 35px rgba(98,115,180,.2);}
.break-timer-wrap span{font-size:3rem;font-weight:800;line-height:1;}
.break-timer-wrap small{margin-top:6px;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;}
.completion-badge{width:96px;height:96px;border-radius:999px;background:linear-gradient(180deg,#5b8cff,#3a63ff);display:grid;place-items:center;color:#fff;font-size:2.6rem;font-weight:800;margin:0 auto 18px;box-shadow:0 18px 32px rgba(67,99,220,.28);}
.completion-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px;}
@media print{body *{visibility:hidden!important;}#profile-panel,#profile-panel *{visibility:visible!important;}#profile-panel{position:absolute;left:0;top:0;width:100%;padding:0;margin:0;box-shadow:none!important;border:none!important;background:#fff!important;} .topbar,.sidebar,.result-summary-shell,.result-detail-toolbar{display:none!important;}}
body[data-theme="dark"] .profile-detail-hero{background:linear-gradient(135deg,#1c3652 0%,#274463 100%);border-color:#35587c;}
body[data-theme="dark"] .profile-detail-title,body[data-theme="dark"] .profile-detail-eyebrow,body[data-theme="dark"] .profile-reference-header h3,body[data-theme="dark"] .profile-reference-card h4,body[data-theme="dark"] .detail-list-copy h3,body[data-theme="dark"] .result-summary-value,body[data-theme="dark"] .result-summary-label,body[data-theme="dark"] .result-summary-sub,body[data-theme="dark"] .profile-feature-pattern,body[data-theme="dark"] .profile-feature-label,body[data-theme="dark"] .profile-feature-sub,body[data-theme="dark"] .profile-card-tile strong,body[data-theme="dark"] .profile-card-tile span,body[data-theme="dark"] .profile-card-tile small,body[data-theme="dark"] .profile-attribute-item dt,body[data-theme="dark"] .profile-attribute-item dd,body[data-theme="dark"] .profile-summary-bullets li,body[data-theme="dark"] .break-eyebrow,body[data-theme="dark"] .break-verse,body[data-theme="dark"] .break-message,body[data-theme="dark"] .completion-eyebrow,body[data-theme="dark"] .completion-text,body[data-theme="dark"] .completion-shell h1{color:#eef4ff!important;}
body[data-theme="dark"] .profile-reference-panel,body[data-theme="dark"] .profile-reference-card,body[data-theme="dark"] .profile-feature-card-rich,body[data-theme="dark"] .profile-card-tile,body[data-theme="dark"] .detail-list-item,body[data-theme="dark"] .result-summary-card,body[data-theme="dark"] .assessment-break-card,body[data-theme="dark"] .completion-shell{background:#172133!important;border-color:#334155!important;box-shadow:0 20px 40px rgba(0,0,0,.3)!important;}
body[data-theme="dark"] .profile-reference-pillbox,body[data-theme="dark"] .detail-rank-badge,body[data-theme="dark"] .detail-score-badge,body[data-theme="dark"] .break-timer-wrap{background:#0f172a!important;color:#e5efff!important;border-color:#334155!important;}
body[data-theme="dark"] .question-counter,body[data-theme="dark"] #sectionTitle,body[data-theme="dark"] .option-label,body[data-theme="dark"] .option-number,body[data-theme="dark"] .disc-desc,body[data-theme="dark"] .disc-pick,body[data-theme="dark"] .intro-note-card li,body[data-theme="dark"] .intro-note-card h3{color:#eef4ff!important;}
body[data-theme="dark"] .option-btn,body[data-theme="dark"] .disc-pick,body[data-theme="dark"] .quote-card,body[data-theme="dark"] .info-card,body[data-theme="dark"] .inline-warning{background:#172133!important;border-color:#334155!important;color:#e5efff!important;}
@media (max-width: 768px){.result-detail-toolbar{justify-content:flex-start;}.profile-detail-hero{padding:22px;}.profile-detail-art{transform:scale(.85);transform-origin:right top;}.profile-reference-grid{grid-template-columns:1fr!important;}.profile-card-grid-compact{grid-template-columns:1fr!important;}.result-summary-card-grid{grid-template-columns:1fr!important;}.completion-actions,.result-detail-toolbar{flex-direction:row;align-items:stretch;}.break-timer-wrap{width:112px;height:112px;}.break-timer-wrap span{font-size:2.4rem;}}


/* AVK section */
.avk-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.avk-option-btn {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  border: 1px solid #d9e2f6;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.avk-option-btn:hover, .avk-option-btn.active {
  border-color: #8aa2ff;
  background: #eef3ff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.10);
}

.avk-option-key {
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2b2f8f;
  color: #fff;
  font-weight: 800;
}

.avk-option-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
}

.avk-hero-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #dff6df 0%, #eef9dd 100%);
  margin-bottom: 20px;
}

.avk-hero-copy h3 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #2a6d18;
}

.avk-hero-copy p {
  margin: 0;
  font-size: 1.05rem;
  color: #466248;
  max-width: 560px;
}

.avk-hero-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}

.avk-badge {
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.avk-badge-a { background: #60d669; }
.avk-badge-b { background: #7ed957; }
.avk-badge-c { background: #55c6d3; }

.avk-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.avk-card {
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid #d6defa;
}

.avk-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.avk-card-a span { background: #60d669; }
.avk-card-b span { background: #7ed957; }
.avk-card-c span { background: #55c6d3; }
.avk-card strong { display: block; font-size: 2rem; color: #1f2a60; margin-bottom: 8px; }
.avk-card small { color: #475569; font-size: 0.98rem; }

.question-card {
  height: 210px;
  min-height: 210px;
}

.quote-card {
  height: 100%;
}

.quote-text {
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .avk-hero-card { grid-template-columns: 1fr; }
  .avk-hero-badges { justify-content: flex-start; }
  .avk-summary-grid { grid-template-columns: 1fr; }
}


.sidebar-bottom-stack{display:flex;flex-direction:column;gap:14px;margin-top:auto;}
.sidebar-bottom-tools{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid #e5e7eb;background:#fff;border-radius:20px;box-shadow:0 8px 24px rgba(15,23,42,.05);}
.sidebar-balance-chip{display:flex;align-items:center;justify-content:center;padding:12px 14px;border-radius:999px;background:#4338ca;color:#fff;font-weight:700;text-align:center;white-space:nowrap;}
.sidebar-preferences-label{font-size:.85rem;font-weight:700;color:#64748b;text-align:center;letter-spacing:.04em;text-transform:uppercase;}
.sidebar-bottom-tools .topbar-controls{justify-content:center;}
.topbar-controls .theme-control{display:none !important;}
body[data-theme="dark"]{--bg:#f8fafc;--sidebar-bg:#ffffff;--panel:#ffffff;--panel-border:#e5e7eb;--muted:#64748b;--text:#1f2937;--heading:#0f172a;--shadow-card:0 8px 24px rgba(15,23,42,.05);}
@media (max-width: 768px){.sidebar-bottom-tools{padding:12px;border-radius:18px;}.sidebar-balance-chip{font-size:.95rem;padding:11px 12px;}}

.admin-nav-tree .nav-subitem {
  display:block;
  color:#ffffff;
  text-decoration:none;
  padding:10px 14px 10px 28px;
  border-radius:12px;
  margin:4px 0;
  font-size:14px;
}
.admin-nav-tree .nav-subitem.active,
.admin-nav-tree .nav-subitem:hover { background:#d8dee7; color:#0f172a; }
.admin-subnav { margin:4px 0 10px; }
.admin-badge-card { text-align:left; }
.admin-filter-row { display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 22px; }
.admin-progress-stack { display:grid; gap:16px; }
.admin-progress-card, .admin-overview-card { background:#fff; border:1px solid #e2e8f0; border-radius:18px; padding:18px; }
.admin-progress-header, .admin-group-head { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.admin-progress-header h3, .admin-overview-card h3 { margin:0 0 4px; }
.admin-progress-header p { margin:0; color:#64748b; }
.admin-progress-bar { width:100%; height:12px; background:#e2e8f0; border-radius:999px; overflow:hidden; margin:16px 0 10px; }
.admin-progress-bar span { display:block; height:100%; background:linear-gradient(90deg, #2563eb, #14b8a6); border-radius:999px; }
.admin-progress-meta { display:flex; flex-wrap:wrap; gap:14px; color:#475569; font-size:14px; }
.admin-overview-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:18px; }
.admin-group-block { border-top:1px solid #e2e8f0; padding-top:14px; margin-top:14px; }
.admin-name-list { margin:12px 0 0; padding-left:18px; color:#334155; }
.admin-name-list li { margin:8px 0; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:900px; }
.admin-table th, .admin-table td { text-align:left; padding:14px 12px; border-bottom:1px solid #e2e8f0; vertical-align:top; }
.admin-table th { font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#64748b; }
.settings-alert.success { background:#dcfce7; color:#166534; }
.settings-alert.error { background:#fee2e2; color:#991b1b; }
@media (max-width: 768px) {
  .admin-progress-header, .admin-progress-meta, .admin-group-head { display:block; }
  .admin-table { min-width:720px; }
}


.admin-monitor-shell { padding: 24px; display: grid; }
.admin-monitor-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:22px; }
.admin-monitor-title-row { align-items:center; gap:14px; }
.admin-monitor-title-row h2 { margin:0; }
.admin-monitor-subtitle { margin:10px 0 0; color:#64748b; }
.admin-auto-refresh-note { display:inline-flex; align-items:center; gap:10px; color:#334155; font-weight:600; }
.status-dot { width:9px; height:9px; border-radius:999px; background:#22c55e; display:inline-block; box-shadow:0 0 0 4px rgba(34,197,94,.12); }
.admin-monitor-toolbar { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.admin-last-updated { color:#64748b; font-size:14px; }
.ghost-link-btn-solid { border:1px solid #d8dcf4; background:#fff; }
.ghost-link-btn-muted { background:#f8fafc; }
.admin-monitor-filters { display:grid; gap:14px; align-items:end; margin:0 0 22px; padding:18px; border:1px solid #e2e8f0; border-radius:20px; background:#fff; box-shadow:0 10px 30px rgba(15,23,42,.04); }
.admin-filter-field { display:flex; flex-direction:column; gap:8px; }
.admin-filter-field label { font-size:13px; font-weight:700; color:#475569; }
.admin-filter-actions { display:flex; gap:10px; justify-content:flex-end; }
.admin-input-shell, .admin-select-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid #d7def0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 24px rgba(15,23,42,.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.admin-input-shell:hover, .admin-select-shell:hover {
  border-color: #c7d2fe;
}
.admin-input-shell:focus-within, .admin-select-shell:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 98, 221, 0.14), var(--shadow-card);
}
.admin-input-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
.admin-input-control, .admin-select-control {
  width: 100%;
  min-height: 56px;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  border-radius: 18px;
}
.admin-input-control { padding: 0 18px 0 48px; }
.admin-input-control::placeholder { color: #94a3b8; font-weight: 500; }
.admin-select-shell {
  padding: 0 14px;
  overflow: hidden;
}
.admin-select-control {
  padding: 0 40px 0 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.admin-select-control::-ms-expand {
  display: none;
}
.admin-select-control option {
  color: #0f172a;
  background: #ffffff;
}
.admin-select-caret {
  position: absolute;
  right: 18px;
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}
.admin-monitor-table-wrap { border:1px solid #e2e8f0; border-radius:20px; overflow:auto; background:#fff; }
.admin-monitor-table { min-width:980px; }
.admin-monitor-table thead th { background:#f8fafc; position:sticky; top:0; z-index:1; }
.admin-monitor-table tbody tr:hover { background:#faf8ff; }
.admin-user-cell { display:flex; align-items:center; gap:14px; min-width:220px; }
.admin-avatar { width:42px; height:42px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#ecf8ec; color:#2e7d32; font-weight:800; font-size:14px; }
.admin-user-name { font-weight:800; color:#0f172a; }
.admin-user-meta, .admin-email-text, .admin-muted-text { color:#64748b; }
.admin-section-text { color:#0f172a; font-weight:700; }
.admin-progress-cell { min-width:220px; display:grid; grid-template-columns:56px 1fr; align-items:center; gap:12px; }
.admin-progress-text { font-weight:800; color:#0f172a; }
.admin-progress-track { height:8px; border-radius:999px; background:#e5e7eb; overflow:hidden; }
.admin-progress-track span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg, #4caf50, #2e7d32); }
.admin-empty-state-inline { margin:18px 0; }
@media (max-width: 980px) {
  .admin-monitor-header { flex-direction:column; align-items:stretch; }
  .admin-monitor-toolbar { align-items:flex-start; }
  .admin-monitor-filters { grid-template-columns:1fr; }
  .admin-filter-actions { justify-content:flex-start; }
}

select,
.form-select {
  border-radius: 14px;
}

.overview-exec-shell { background: linear-gradient(180deg, #f8fbff 0%, #f7f8fc 100%); }
.overview-exec-header h2 { margin: 0; font-size: 2rem; color: #111827; }
.overview-exec-header p { margin: 10px 0 0; color: #64748b; font-size: 1rem; }
.overview-filter-row { display:grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap:16px; margin:24px 0 26px; }
.overview-filter-box, .overview-kpi-card, .overview-chart-card, .overview-quick-block {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:0 14px 30px rgba(15,23,42,.05);
}
.overview-filter-box { padding:16px 18px; }
.overview-filter-box span { display:block; color:#64748b; font-size:.85rem; font-weight:700; margin-bottom:6px; }
.overview-filter-box strong { font-size:1.28rem; color:#0f172a; }
.overview-kpi-grid { display:grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap:18px; margin-bottom:24px; }
.overview-kpi-card { padding:22px 22px 20px; }
.overview-kpi-card h3 { margin:0; color:#374151; font-size:1rem; font-weight:700; }
.overview-kpi-value { margin-top:18px; font-size:3.2rem; line-height:1; font-weight:900; color:#27324b; }
.overview-kpi-value-sm { font-size:2.2rem; }
.overview-kpi-meta { margin-top:10px; color:#22a15a; font-weight:700; }
.overview-chart-grid { display:grid; grid-template-columns: 1.1fr 1fr; gap:18px; margin-bottom:18px; }
.overview-chart-grid-bottom { grid-template-columns: 1fr 1fr; }
.overview-chart-card { padding:20px 20px 22px; position:relative; overflow:hidden; }
.overview-card-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:16px; }
.overview-card-head h3 { margin:0; font-size:1.1rem; color:#374151; }
.overview-card-head p { margin:8px 0 0; color:#64748b; }
.overview-donut-layout { display:grid; grid-template-columns: 260px 1fr; gap:20px; align-items:center; position:relative; min-height:260px; }
.overview-chart-card-donut { overflow:visible; }
.overview-donut { width:220px; height:220px; border-radius:50%; position:relative; margin:0 auto; }
.overview-donut::after { content:''; position:absolute; inset:38px; background:#fff; border-radius:50%; box-shadow: inset 0 0 0 1px #eef2f7; }
.overview-donut-center { position:absolute; left:110px; top:50%; transform:translate(-50%, -50%); width:120px; text-align:center; z-index:2; }
.overview-donut-center strong { display:block; font-size:2.2rem; color:#1f2937; }
.overview-donut-center span { color:#64748b; font-weight:700; }
.overview-donut-legend { display:grid; gap:12px; }
.overview-legend-row { display:grid; grid-template-columns: 14px 1fr auto; gap:10px; align-items:center; font-size:.98rem; color:#334155; }
.overview-legend-color { width:14px; height:14px; border-radius:999px; display:inline-block; }
.overview-bars { display:grid; gap:14px; margin-top:4px; }
.overview-bar-row { display:grid; grid-template-columns: 170px 1fr 42px; gap:14px; align-items:center; }
.overview-bar-label { font-weight:700; color:#334155; }
.overview-bar-track { height:14px; border-radius:999px; background:#eef2f7; overflow:hidden; }
.overview-bar-track span { display:block; height:100%; border-radius:999px; }
.overview-bar-value { text-align:right; font-weight:800; color:#334155; }
.overview-pattern-chart { min-height:250px; display:flex; align-items:flex-end; justify-content:space-between; gap:14px; padding:12px 4px 0; }
.overview-pattern-col { flex:1; min-width:70px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; }
.overview-pattern-bar-wrap { height:220px; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:8px; width:100%; }
.overview-pattern-count { color:#374151; font-weight:800; font-size:.95rem; }
.overview-pattern-bar { width:58px; border-radius:20px 20px 10px 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.overview-pattern-label { margin-top:10px; color:#64748b; font-weight:700; text-align:center; font-size:.9rem; }
.overview-quick-grid { display:grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap:14px; margin-bottom:18px; }
.overview-quick-block { padding:16px 18px; }
.overview-quick-block span { display:block; color:#64748b; font-size:.84rem; font-weight:700; }
.overview-quick-block strong { display:block; margin-top:8px; font-size:1.3rem; color:#111827; }
.overview-quick-block small { display:block; margin-top:8px; color:#16a34a; font-weight:700; }
.overview-mini-lists { display:grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap:16px; }
.overview-mini-list { background:#f8fafc; border:1px solid #e5e7eb; border-radius:18px; padding:16px; }
.overview-mini-list h4 { margin:0 0 10px; color:#334155; }
.overview-mini-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; color:#334155; border-top:1px solid #edf2f7; }
.overview-mini-row:first-of-type { border-top:0; }
.overview-mini-row span { display:inline-flex; align-items:center; gap:10px; }
.overview-mini-row i { width:10px; height:10px; border-radius:999px; display:inline-block; }
@media (max-width: 1200px) {
  .overview-kpi-grid, .overview-chart-grid, .overview-chart-grid-bottom, .overview-filter-row { grid-template-columns: 1fr 1fr; }
  .overview-donut-layout { grid-template-columns: 1fr; }
  .overview-donut-center { left:50%; top:126px; }
}
@media (max-width: 768px) {
  .overview-kpi-grid, .overview-chart-grid, .overview-chart-grid-bottom, .overview-filter-row, .overview-quick-grid, .overview-mini-lists { grid-template-columns: 1fr; }
  .overview-bar-row { grid-template-columns: 1fr; }
  .overview-bar-value { text-align:left; }
  .overview-pattern-chart { overflow:auto; justify-content:flex-start; }
  .overview-exec-header h2 { font-size:1.6rem; }
}

.admin-results-shell { padding: 24px; }
.admin-results-filters {
  grid-template-columns: minmax(280px, 2.2fr) repeat(4, minmax(170px, 1fr)) auto;
}
.admin-results-search-field { min-width: 260px; }
.admin-results-filter-actions { align-self: end; }
.admin-results-table { min-width: 1180px; }
.admin-results-table td { vertical-align: middle; }
.admin-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f0ff;
  color: #5b3fd6;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.admin-pill-tag-soft {
  background: #eef2ff;
  color: #4338ca;
}
.admin-pattern-pill {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}
.admin-action-btn { white-space: nowrap; }

@media (max-width: 1400px) {
  .admin-results-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-results-filters {
    grid-template-columns: 1fr;
  }
}

.admin-settings-shell {
  padding: 24px;
}

.admin-settings-grid,
.admin-user-access-grid {
  display: grid;
  gap: 20px;
}

.admin-settings-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .04);
}

.admin-card-form {
  display: grid;
  gap: 16px;
}

.admin-settings-form-grid,
.admin-batch-form-grid,
.admin-user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-input-control-plain {
  padding-left: 18px;
}

.admin-file-shell {
  position: relative;
  min-height: 58px;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.admin-file-input {
  width: 100%;
  color: #475569;
}

.admin-brand-preview-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
}

.admin-brand-preview-media,
.admin-brand-preview-fallback {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
}

.admin-brand-preview-image {
  max-width: 74px;
  max-height: 74px;
  object-fit: contain;
}

.admin-brand-preview-fallback {
  color: #4f46e5;
  font-size: 26px;
  font-weight: 800;
}

.admin-brand-preview-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.admin-brand-preview-subtitle,
.admin-batch-date {
  color: #64748b;
}

.admin-card-actions {
  justify-content: flex-start;
}

.admin-textarea-shell {
  min-height: 112px;
  padding: 12px 16px;
  align-items: stretch;
}

.admin-textarea-control {
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  font: inherit;
  color: #0f172a;
  background: transparent;
}

.admin-batch-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.admin-batch-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fbfdff;
}

.admin-batch-item-head,
.admin-batch-title-wrap,
.admin-batch-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.admin-batch-title-wrap {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-batch-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.admin-user-access-shell {
  padding: 24px;
}

.admin-create-user-card {
  max-width: auto;
}

.admin-users-list-card {
  overflow: hidden;
}

.admin-users-table {
  min-width: 1100px;
}

.admin-user-manage-meta {
  min-width: 0;
}

.admin-inline-input,
.admin-inline-number {
  width: 100%;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.admin-inline-number {
  max-width: 100px;
}

.admin-inline-input:focus,
.admin-inline-number:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 4px rgba(76,175,80,.15);
}

.admin-inline-select-shell {
  min-width: 140px;
}

.admin-user-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.admin-inline-action-form {
  margin: 0;
}

@media (max-width: 1100px) {
  .admin-settings-form-grid,
  .admin-batch-form-grid,
  .admin-user-form-grid,
  .admin-settings-grid,
  .admin-user-access-grid {
    grid-template-columns: 1fr;
  }

  .admin-brand-preview-card {
    align-items: flex-start;
  }
}

.admin-users-shell-v2 {
  padding: 24px;
}

.admin-users-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf5;
}

.admin-users-statsline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #64748b;
  font-size: .98rem;
}

.admin-users-statsline strong {
  color: #0f172a;
  font-weight: 800;
}

.admin-users-card-v2 {
  overflow: hidden;
}

.admin-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-users-table-v2 {
  min-width: 1040px;
}

.admin-users-table-v2 tbody tr {
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.admin-users-table-v2 tbody tr:hover {
  background: #faf8ff;
}

.admin-users-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.admin-users-search-input {
  min-width: 280px;
}

.admin-users-table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: #64748b;
  font-size: .94rem;
}

.admin-empty-state {
  padding: 28px 18px;
  text-align: center;
  color: #64748b;
}

.admin-empty-state h4 {
  margin: 0 0 6px;
  color: #0f172a;
}

.admin-users-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-users-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.admin-users-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #dbe2ee;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.admin-users-page.is-active {
  background: linear-gradient(135deg, #4caf50, #4caf50);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 58, 237, .18);
}

.ghost-link-btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}


.admin-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .84rem;
  font-weight: 700;
  text-transform: capitalize;
}

.admin-role-badge-admin {
  background: rgba(59, 130, 246, .1);
  color: #2563eb;
}

.admin-role-badge-user {
  background: rgba(139, 92, 246, .1);
  color: #4caf50;
}

.admin-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #475569;
}

.admin-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.admin-status-inline.is-active .admin-status-dot {
  background: #22c55e;
}

.admin-status-inline.is-idle .admin-status-dot {
  background: #94a3b8;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-user-form-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
}

.admin-quick-actions-stack {
  display: grid;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

@media (max-width: 980px) {
  .admin-users-topline,
  .admin-users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-form-layout {
    grid-template-columns: 1fr;
  }
}

.overview-launch-grid { grid-template-columns: repeat(3, minmax(240px, 1fr)); margin-bottom: 26px; }
.overview-mini-lists-three { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.overview-bars-double { gap: 16px; margin-bottom: 22px; }
.overview-bar-card { background:#fff; border:1px solid #e5e7eb; border-radius:18px; padding:16px 18px; box-shadow:0 10px 24px rgba(15,23,42,.04); }
.overview-bar-card-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; color:#334155; }
.overview-bar-card-head strong { font-size:1rem; }
.overview-bar-card-head span { color:#64748b; font-weight:700; }
.overview-bar-split { height:12px; background:#eef2f7; border-radius:999px; overflow:hidden; display:flex; }
.overview-bar-split .major { display:block; height:100%; }
.overview-bar-split .minor { display:block; height:100%; background:#dbe3f1; }
.overview-bar-legend-inline { display:flex; gap:16px; margin:10px 0 12px; color:#64748b; font-weight:700; font-size:.92rem; }
.analytics-table-wrap { margin-top: 20px; }
.analytics-table td, .analytics-table th { vertical-align: top; }
.analytics-user-cell { min-width: 280px; color:#475569; }
.analytics-color-grid { display:grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap:16px; margin-bottom:20px; }
.color-analytics-card { display:block; text-decoration:none; background:#fff; border:1px solid #e5e7eb; border-radius:20px; padding:18px; color:#0f172a; box-shadow:0 10px 24px rgba(15,23,42,.04); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.color-analytics-card:hover { transform:translateY(-2px); box-shadow:0 18px 34px rgba(15,23,42,.08); }
.color-analytics-card.is-active { border-color:#4caf50; box-shadow:0 18px 34px rgba(76,175,80,.14); }
.color-analytics-swatch { width:34px; height:34px; border-radius:12px; display:block; margin-bottom:12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.color-analytics-card strong { display:block; font-size:1rem; margin-bottom:4px; }
.color-analytics-card small { color:#64748b; }
.color-analytics-meta { display:flex; justify-content:space-between; gap:12px; margin-top:12px; color:#475569; font-size:.92rem; }
.analytics-selected-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:12px; }
.analytics-selected-head h3 { margin:0; color:#111827; }
.analytics-selected-head p { margin:6px 0 0; color:#64748b; }
.mini-color-pill { display:inline-flex; align-items:center; gap:8px; background:#f8fafc; border:1px solid #e5e7eb; border-radius:999px; padding:6px 10px; font-weight:700; }
.mini-color-pill i { width:10px; height:10px; display:inline-block; border-radius:999px; }
@media (max-width: 1100px) {
  .overview-launch-grid, .overview-mini-lists-three, .analytics-color-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .overview-launch-grid, .overview-mini-lists-three, .analytics-color-grid { grid-template-columns: 1fr; }
}

.analytics-page-shell {
  gap: 24px;
}

.analytics-launcher-grid {
  margin-bottom: 0;
}

.analytics-launch-card {
  min-height: 220px;
}

.analytics-launch-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: #4f46e5;
  font-weight: 800;
}

.analytics-chart-card,
.analytics-table-shell {
  background: transparent;
  border: 1px solid #e7edf7;
  border-radius: 24px;
  margin-top: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.analytics-chart-head,
.analytics-table-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.analytics-chart-head h3,
.analytics-table-toolbar h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #111827;
}

.analytics-chart-head p,
.analytics-table-toolbar p {
  margin: 6px 0 0;
  color: #64748b;
}

.analytics-chart-toggle {
  display: inline-flex;
  gap: 10px;
  background: #f8fafc;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.analytics-toggle-btn,
.table-shell-secondary-btn {
  border: 1px solid #dbe4f5;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all .18s ease;
}

.analytics-toggle-btn:hover,
.table-shell-secondary-btn:hover {
  border-color: #d9eed9;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.08);
}

.analytics-toggle-btn.is-active {
  background: linear-gradient(135deg, #4f46e5, #4caf50);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(79, 70, 229, 0.22);
}

.analytics-chart-canvas {
  width: 100%;
  display: block;
  margin-top: 12px;
}

.table-shell-search-wrap {
  min-width: min(100%, 340px);
  flex: 1 1 340px;
}

.table-shell-label,
.analytics-filter-field span {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}

.table-shell-input {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid #dbe4f5;
  background: #ffffff;
  padding: 0 16px;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(15, 23, 42, 0.04);
}

.table-shell-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 4px rgba(76,175,80,0.12);
}

.analytics-search-input {
  font-size: 1rem;
}

.analytics-filter-grid {
  display: flex;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.analytics-filter-field {
  display: flex;
  flex-direction: column;
}

.analytics-table-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 4px), calc(100% - 15px) calc(50% - 4px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.analytics-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.analytics-table {
  min-width: 900px;
}

.analytics-table thead th {
  white-space: nowrap;
}

.analytics-table td {
  color: #334155;
}

.analytics-table td strong {
  color: #111827;
}

@media (max-width: 1200px) {
  .analytics-filter-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .analytics-filter-grid {
    grid-template-columns: 1fr;
  }

  .analytics-chart-toggle {
    width: 100%;
  }

  .analytics-toggle-btn {
    flex: 1 1 0;
  }
}

.analytics-chart-card-dual {
  display: grid;
  gap: 1.25rem;
}

.analytics-chart-head-wrap {
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.analytics-chart-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.analytics-selection-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.analytics-chart-panel {
  border: 1px solid #dbe3f1;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.analytics-chart-panel canvas {
  width: 100%;
  display: block;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* === A10 compact responsive revamp === */
html:not([data-app-font-size]) { font-size: 90%; }
body { line-height: 1.45; }
.sidebar {
  padding: 16px 12px;
}
.sidebar-brand-row { margin-bottom: 18px; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 1.2rem; }
.brand-logo-image { object-fit: cover; }
.brand-text { font-size: 1.35rem; }
.sidebar-section { margin-bottom: 12px; }
.sidebar-nav { gap: 8px; }
.nav-item { padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.nav-subitem { padding: 9px 12px; font-size: .9rem; }
.sidebar-bottom-stack { gap: 10px; }
.sidebar-preferences-card,
.profile-dock-card,
.admin-badge-card,
.sidebar-bottom-tools { padding: 12px; border-radius: 14px; }
.topbar {
  min-height: 62px;
  padding: 0 16px;
  gap: 10px;
}
.mobile-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.content-area,
.dashboard-space,
.result-detail-space,
.test-screen-wrap,
.shared-shell-page {
  padding: 16px !important;
}
.content-header { margin-bottom: 14px; max-width: 100%; }
.page-title { font-size: 1.55rem; }
.page-subtitle { margin-top: 6px; font-size: .92rem; }
.assessment-card,
.dashboard-panel-card,
.dashboard-hero-card,
.mobile-section-card,
.intro-screen-card,
.result-summary-shell,
.result-detail-panel-shell,
.analytics-panel,
.analytics-table-card,
.admin-table-card,
.admin-form-card,
.admin-overview-card,
.admin-panel-card,
.settings-panel-card,
.users-panel-card {
  padding: 16px !important;
  border-radius: 18px !important;
}
.assessment-card { min-height: calc(100vh - 128px); }
.admin-table th,
.admin-table td,
.analytics-table th,
.analytics-table td,
.table th,
.table td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.admin-filter-row,
.admin-toolbar,
.analytics-toolbar,
.analytics-filter-grid,
.dashboard-option-grid,
.dashboard-hero-stats,
.result-snapshot-grid,
.result-summary-card-grid,
.profile-card-grid,
.profile-card-grid-compact,
.profile-reference-grid { gap: 12px !important; }
.settings-input,
.admin-role-select,
.form-control,
.form-select,
.search-input,
.analytics-search-input,
.analytics-filter-input,
.analytics-filter-select {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
}
.btn,
.settings-save-btn,
.analytics-export-btn,
.ghost-link-btn,
.logout-btn { min-height: 38px; padding: 9px 14px; border-radius: 12px; }
.result-summary-card,
.mobile-list-card.fixed-card-list .mobile-list-link { min-height: auto; }

@media (max-width: 1200px) {
  html:not([data-app-font-size]) { font-size: 88%; }
  .content-area,
  .dashboard-space,
  .result-detail-space,
  .test-screen-wrap,
  .shared-shell-page { padding: 14px !important; }
  .dashboard-hero-stats,
  .result-summary-card-grid,
  .profile-card-grid,
  .profile-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .okta-tile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 900px) {
  html:not([data-app-font-size]) { font-size: 86%; }
  .topbar { min-height: auto; }
  .content-area,
  .dashboard-space,
  .result-detail-space,
  .test-screen-wrap,
  .shared-shell-page { padding: 12px !important; }
  .assessment-card,
  .dashboard-panel-card,
  .dashboard-hero-card,
  .mobile-section-card,
  .intro-screen-card,
  .result-summary-shell,
  .result-detail-panel-shell,
  .analytics-panel,
  .analytics-table-card,
  .admin-table-card,
  .admin-form-card,
  .admin-overview-card,
  .admin-panel-card,
  .settings-panel-card,
  .users-panel-card { padding: 14px !important; border-radius: 16px !important; }
  .dashboard-option-grid:not(.okta-tile-grid),
  .dashboard-hero-stats,
  .result-summary-card-grid,
  .profile-card-grid,
  .profile-reference-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html:not([data-app-font-size]) { font-size: 84%; }
  .brand-text { font-size: 1.12rem; }
  .nav-item { padding: 10px 12px; font-size: .92rem; }
  .nav-subitem { padding: 8px 10px; font-size: .88rem; }
  .topbar {
    padding: 10px 12px;
    align-items: stretch;
    flex-direction: column;
  }
  .topbar-left,
  .topbar-right { width: 100%; }
  .topbar-right { justify-content: flex-start; }
  .content-area,
  .dashboard-space,
  .result-detail-space,
  .test-screen-wrap,
  .shared-shell-page { padding: 10px !important; }
  .assessment-card,
  .dashboard-panel-card,
  .dashboard-hero-card,
  .mobile-section-card,
  .intro-screen-card,
  .result-summary-shell,
  .result-detail-panel-shell,
  .analytics-panel,
  .analytics-table-card,
  .admin-table-card,
  .admin-form-card,
  .admin-overview-card,
  .admin-panel-card,
  .settings-panel-card,
  .users-panel-card { padding: 12px !important; border-radius: 14px !important; }
  .search-input,
  .settings-input,
  .admin-role-select,
  .form-control,
  .form-select,
  .analytics-search-input,
  .analytics-filter-input,
  .analytics-filter-select { min-height: 38px; }
}

/* Batch selection flow */
.compact-content-grid {
  display: block;
}

.compact-shell-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.inner-mini-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(111, 99, 255, 0.12);
  box-shadow: none;
}

.batch-selection-form {
  display: grid;
  gap: 18px;
}

.batch-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.batch-pick-card {
  position: relative;
  cursor: pointer;
  min-height: 190px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.batch-pick-card:hover,
.batch-pick-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(111, 99, 255, 0.42);
  box-shadow: 0 14px 32px rgba(95, 76, 255, 0.12);
}

.batch-pick-radio {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 18px;
  height: 18px;
}

.batch-progress-meta-grid,
.batch-confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.batch-progress-meta-grid > div,
.batch-credit-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-progress-meta-grid span,
.batch-credit-stat span {
  font-size: 0.82rem;
  color: #6c7598;
}

.batch-progress-meta-grid strong,
.batch-credit-stat strong,
.large-pill strong,
.batch-confirm-name {
  font-size: 1.05rem;
  color: #1d2442;
}

.batch-rules-card ul.batch-rule-list {
  margin: 0;
  padding-left: 20px;
  color: #505a78;
  display: grid;
  gap: 8px;
}

.settings-field-stacked {
  display: grid;
  gap: 8px;
}

.compact-actions-row {
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .compact-shell-card {
    padding: 18px;
  }

  .batch-picker-grid,
  .batch-confirm-grid,
  .batch-progress-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== B4 batch flow + mobile sidebar fixes ===== */
.batch-confirm-shell{padding:24px !important;}
.batch-confirm-shell .compact-headline-row{align-items:flex-start;gap:14px;margin-bottom:16px;}
.batch-confirm-shell .section-headline-row h2{margin:0 0 6px;}
.batch-confirm-shell .section-headline-row p{margin:0;}
.batch-confirm-grid{margin:8px 0 18px;grid-template-columns:repeat(1,minmax(0,1fr));gap:18px;}
.batch-confirm-shell .inner-mini-card{padding:20px !important;border-radius:22px !important;background:rgba(255,255,255,.9) !important;}
.batch-progress-card{margin:0 0 18px;}
.batch-rules-card{margin:0 0 18px;}
.batch-confirm-actions-row{justify-content:stretch !important;}
.batch-confirm-actions-row .ghost-link-btn,.batch-confirm-actions-row .primary-action-btn,.start-new-test-form{width:100%;}
.batch-confirm-actions-row .primary-action-btn,.batch-confirm-actions-row .ghost-link-btn{min-height:52px;border-radius:18px !important;}
.batch-progress-meta-grid{margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.batch-progress-meta-grid > div{padding:14px 16px;border-radius:16px;background:#faf7ff;border:1px solid #eee5ff;}
.batch-credit-stat strong{font-size:2rem;line-height:1;}
.batch-confirm-name{font-size:1.3rem;font-weight:800;margin-bottom:8px;}

.sidebar{height:100vh;height:100dvh;}
.sidebar-inner{height:100%;display:flex !important;flex-direction:column;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px;}
.sidebar > *,.sidebar-inner > *{position:relative;z-index:1;}
.sidebar-bottom-stack{margin-top:auto;flex-shrink:0;padding-bottom:8px;}
.mobile-overlay{backdrop-filter:none !important;}

@media (max-width: 900px){
  .batch-confirm-shell{padding:18px !important;}
  .batch-confirm-grid,.batch-progress-meta-grid{grid-template-columns:1fr;}
  .batch-progress-meta-grid > div{padding:12px 14px;}
  .sidebar{width:min(88vw,320px) !important;max-width:min(88vw,320px) !important;padding:14px 12px 18px !important;overflow:hidden;}
  .sidebar-inner{padding-right:4px;padding-bottom:18px;}
  .sidebar-profile-dock{margin-top:14px;position:static;}
  .profile-gear-btn{display:none !important;}
  .profile-dock-card{position:static !important;opacity:1 !important;visibility:visible !important;transform:none !important;width:100% !important;margin-top:0;}
  .sidebar-preferences-card{padding:12px !important;}
  .sidebar-bottom-tools .topbar-controls,.sidebar-preferences-card .topbar-controls{justify-content:center;flex-wrap:wrap;}
  .segmented-control.lang-control{width:auto;max-width:210px;margin:0 auto;}
  .logout-btn{min-height:44px !important;}
}

@media (max-width: 640px){
  .batch-confirm-shell{padding:16px !important;border-radius:22px !important;}
  .batch-confirm-shell .inner-mini-card{padding:16px !important;border-radius:18px !important;}
  .batch-confirm-shell .section-headline-row h2{font-size:1.55rem;}
  .batch-credit-stat strong{font-size:1.7rem;}
  .batch-confirm-actions-row .primary-action-btn,.batch-confirm-actions-row .ghost-link-btn{min-height:48px;}
}

.dashboard-panel-card,
.dashboard-option-card,
.okta-tile,
.auth-card,
.admin-settings-card,
.admin-users-card-v2,
.result-card,
.summary-card,
.take-test-shell,
.batch-select-card,
.batch-option-card,
.profile-dock-card,
.sidebar-preferences-card,
.sidebar,
.topbar,
.admin-table,
.auth-field input,
.auth-field select,
.auth-field textarea,
.settings-input,
.search-input,
.ghost-link-btn,
.credit-pill,
.nav-item {
  border-color: var(--panel-border) !important;
}

.dashboard-panel-card,
.dashboard-option-card,
.okta-tile,
.admin-settings-card,
.admin-users-card-v2,
.auth-card,
.profile-dock-card,
.sidebar-preferences-card {
  border: 1.5px solid var(--panel-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  margin-top: 10px;
}

.nav-item {
  border: 1.5px solid transparent;
}

.nav-item.active {
  border-color: rgba(255,255,255,0.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.auth-field input,
.auth-field select,
.settings-input,
.search-input {
  border: 1.5px solid var(--panel-border);
  background: #fcfbff !important;
}

.profile-settings-shell {
  padding: 18px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.profile-settings-card {
  padding: 20px;
  border-radius: 24px;
  background: #fff;
}

.profile-settings-summary {
  text-align: center;
  position: sticky;
  top: 0;
}

.large-profile-avatar-wrap { display:flex; justify-content:center; margin-bottom:14px; }
.large-profile-avatar-image,
.large-profile-avatar-fallback {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  object-fit: cover;
  border: 2px solid var(--panel-border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg,#f4ecff,#efe7ff);
  color: #5033cc;
}
.profile-summary-name { font-size: 1.2rem; font-weight: 800; color: var(--heading); }
.profile-summary-email { font-size: .95rem; color: var(--muted); margin: 6px 0 14px; word-break: break-word; }
.compact-pill { display:inline-flex; }
.profile-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-password-block { margin-top: 14px; padding-top: 16px; border-top: 1.5px solid var(--panel-border); }
.profile-block-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--heading); }
.compact-header-gap { margin-bottom: 14px; }

@media (max-width: 960px) {
  .profile-settings-grid { grid-template-columns: 1fr; }
  .profile-settings-summary { position: static; }
}

@media (max-width: 720px) {
  .profile-form-grid { grid-template-columns: 1fr; }
  .dashboard-option-grid,
  .dashboard-launcher-grid { gap: 14px; }
  .dashboard-option-card,
  .okta-tile { min-height: 210px; }
  .dashboard-panel-card,
  .profile-settings-card,
  .admin-settings-card { padding: 16px; border-radius: 20px; margin: 7px; }

}


/* Credits voucher tabs */
.credits-tab-row{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 20px}
.credits-tab-btn{padding:10px 18px;border-radius:14px;border:1px solid rgba(78,56,180,.18);background:#fff;color:#3f2b82;font-weight:700;text-decoration:none}
.credits-tab-btn.active{background:linear-gradient(135deg,#6942f5,#8a3ffc);color:#fff;border-color:transparent}
.compact-credit-chip{min-width:160px}
.compact-credit-chip span{display:block;font-size:.9rem;color:#6d6d8b}
.compact-credit-chip strong{display:block;font-size:1.35rem;margin-top:4px}
.compact-bullets{margin:0;padding-left:18px}
.credits-topup-layout{align-items:normal}

/* Credits page revamp */
.credits-page-shell{display:flex;flex-direction:column;gap:18px}
.credits-hero-card{padding:16px;border-radius:28px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,243,255,.96));}
.credits-eyebrow,.credits-section-kicker{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7f67d9;margin-bottom:8px}
.credits-intro-card h2,.credits-card-heading h3{margin:0 0 8px;font-size:1.9rem;line-height:1.05;color:var(--heading)}
.credits-intro-card p,.credits-card-heading p{margin:0;color:var(--muted);max-width:56ch}
.credits-stat-card{padding:18px 18px 16px;border-radius:22px;border:1.5px solid var(--panel-border);background:#fff;min-height:148px;display:flex;flex-direction:column;justify-content:space-between;height:100%}
.credits-stat-card-primary{background:linear-gradient(135deg,#6f40f6,#8e43ff);color:#fff;border-color:transparent;box-shadow:0 18px 36px rgba(109,70,241,.24)}
.credits-stat-card-primary .credits-stat-label,.credits-stat-card-primary small{color:rgba(255,255,255,.82)}
.credits-stat-label{display:block;font-size:.85rem;font-weight:700;color:#766da0;margin-bottom:8px}
.credits-stat-card strong{font-size:2rem;line-height:1.05;color:inherit;word-break:break-word}
.credits-stat-card small{font-size:.9rem;color:var(--muted)}
.credits-tab-row-large{margin:0}
.credits-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.credits-content-card{padding:18px 18px 16px;border-radius:24px;background:#fff}
.credits-card-heading{margin-bottom:14px}
.credits-card-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.credits-redeem-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.credits-field-block{display:flex;flex-direction:column;gap:8px;font-weight:700;color:var(--heading)}
.credits-field-block span{font-size:.92rem}
.credits-field-shell{background:#fff}
.credits-primary-btn{grid-column:1 / -1;min-height:52px;border-radius:16px;font-size:1rem}
.credits-rule-list{display:grid;gap:12px}
.credits-rule-item{padding:14px 16px;border:1.5px solid var(--panel-border);border-radius:18px;background:linear-gradient(180deg,#fff,#fbf9ff)}
.credits-rule-item strong{display:block;margin-bottom:4px;color:var(--heading)}
.credits-rule-item p{margin:0;color:var(--muted);font-size:.95rem}
.credits-table-wrap{overflow:auto}
.credits-table{width:100%}
.credits-table tbody td{vertical-align:top}
.credits-empty-state{padding:26px 12px}

@media (max-width: 1280px){
  .credits-hero-card{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 1100px){
  .credits-hero-card{grid-template-columns:1fr}
  .credits-grid-two{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .credits-hero-card,.credits-content-card{padding:16px;border-radius:20px}
  .credits-intro-card h2,.credits-card-heading h3{font-size:1.45rem}
  .credits-summary-grid{grid-template-columns:1fr;gap:10px}
  .credits-stat-card{min-height:unset}
  .credits-redeem-form{grid-template-columns:1fr}
  .credits-card-heading-row{flex-direction:column;align-items:flex-start}
  .credits-tab-row-large{gap:10px}
  .credits-tab-btn{flex:1;min-width:0;text-align:center;padding:11px 14px}
  .credits-table thead{display:none}
  .credits-table,.credits-table tbody,.credits-table tr,.credits-table td{display:block;width:100%}
  .credits-table tbody{display:grid;gap:12px}
  .credits-table tr{padding:14px;border:1.5px solid var(--panel-border);border-radius:18px;background:#fff}
  .credits-table td{padding:0;border:none !important;margin:0 0 10px}
  .credits-table td:last-child{margin-bottom:0}
  .credits-table td::before{content:attr(data-label);display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#8a80ad;margin-bottom:4px}
}
