/* -- Portal Extracted Styles -- */
/* Consolidated from all client portal and custom assessment template <style> blocks.
   Hardcoded hex values replaced with design-token references from :root in main.css. */

/* ========================================================================
   SHARED / CROSS-PAGE COMPONENTS
   ======================================================================== */

/* Back Link (custom_assessments: create, detail, edit, questions) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    margin-bottom: 8px;
}
.back-link:hover {
    color: var(--color-navy);
}

/* Breadcrumb Navigation (assessments/detail, projects/detail) */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.9rem;
}
.breadcrumb-link {
    color: var(--color-orange);
    text-decoration: none;
    transition: opacity var(--transition-base);
}
.breadcrumb-link:hover {
    opacity: 0.8;
}
.breadcrumb-separator {
    color: var(--color-text-muted);
}
.breadcrumb-current {
    color: var(--color-text-muted);
}

/* Status Badges (multiple pages) */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.status-submitted {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.status-badge.status-in_progress {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}
.status-badge.status-scheduled {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
.status-badge.status-draft {
    background: rgba(14, 20, 40, 0.08);
    color: var(--color-text-muted);
}

/* Custom Assessment Status Badges */
.status-draft {
    background: #f3f4f6;
    color: #6b7280;
}
.status-published {
    background: #d1fae5;
    color: #059669;
}
.status-archived {
    background: #fee2e2;
    color: #dc2626;
}

/* Empty States (multiple pages) */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}
.empty-state svg {
    margin-bottom: var(--space-4);
}
.empty-state h3,
.empty-state h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}
.empty-state p,
.empty-state .muted {
    color: var(--color-text-muted);
    margin: 0;
}
.empty-icon {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
}
.empty-state-card h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}
.empty-state-card p {
    margin: 0;
}

.empty-state-with-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--color-orange-lighter) 0%, rgba(14, 20, 40, 0.02) 100%);
    border: 1px dashed var(--color-border-medium);
}
.empty-state-with-cta h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}
.empty-state-with-cta p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0;
}
.empty-state-with-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.empty-search-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

/* Modal Styles (billing, custom_assessments/detail, questions) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 20, 40, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 20, 40, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
}
.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 20, 40, 0.15) transparent;
}
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(14, 20, 40, 0.15);
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 20, 40, 0.25);
}
.modal-content.modal-lg {
    max-width: 680px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-medium);
}
.modal-header h2 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-navy);
}
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}
.modal-close:hover {
    background: #f3f4f6;
    color: var(--color-navy);
}
.modal-body {
    padding: 20px 24px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(14, 20, 40, 0.06);
    background: rgba(14, 20, 40, 0.02);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.modal-title-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}
.modal-icon.ai-gradient {
    background: linear-gradient(135deg, var(--color-info) 0%, #1d4ed8 100%);
}
.modal-icon.csv-gradient {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
}
.modal-icon.manual-gradient {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
}
.modal-icon.invite-gradient {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ea580c 100%);
}
.modal-icon.bulk-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.modal-icon.edit-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.modal-subtitle {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Shared Form Styles */
.form-group {
    margin-bottom: 14px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-navy);
    font-size: 0.85rem;
}
.form-group label svg {
    color: var(--color-text-muted);
}
.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-navy);
    font-size: 0.85rem;
}
.form-label svg {
    color: var(--color-text-muted);
}
.required {
    color: #dc2626;
}
.form-help {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.form-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-error);
}
.field-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 0.85rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c4c9d2;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all var(--transition-base);
    background: #f9fafb;
    color: var(--color-navy);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px var(--color-orange-light);
    background: var(--color-white);
}
.form-textarea {
    resize: vertical;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-medium);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy);
}
.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--color-navy);
    background: var(--color-white);
    transition: all var(--transition-base);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px var(--color-orange-light);
}
.form-field textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(14, 20, 40, 0.08);
}
.form-section:last-child,
.form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.form-section h3 {
    font-size: var(--text-base);
    color: var(--color-navy);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-medium);
}
.section-desc {
    margin: 0 0 24px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Badge Component */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.badge-neutral {
    background: rgba(14, 20, 40, 0.08);
    color: var(--color-text-muted);
}
.badge-warning {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}
.badge-priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.badge-priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.badge-priority-low {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Level Badges */
.level-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
}
.level-badge.level-junior,
.level-junior {
    background: #d1fae5;
    color: #059669;
}
.level-badge.level-mid,
.level-mid {
    background: #fef3c7;
    color: #d97706;
}
.level-badge.level-senior,
.level-senior {
    background: #fee2e2;
    color: #dc2626;
}

/* Level Selector — segmented control (manage, questions, custom detail) */
.level-selector,
.level-options {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.level-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}
.level-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.level-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    background: transparent;
    border-right: 1px solid #e5e7eb;
}
.level-option:last-child .level-card {
    border-right: none;
}
.level-card:hover {
    background: rgba(14, 20, 40, 0.03);
}
.level-option input:checked + .level-card,
.level-option input:checked + div.level-card {
    background: rgba(255, 138, 0, 0.08);
    box-shadow: inset 0 -2px 0 var(--color-orange);
}
.level-option input:checked + .level-card .level-title,
.level-option input:checked + .level-card .level-name {
    color: var(--color-orange);
}
.level-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-navy);
}
.level-years {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}
.level-desc {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 1px;
    line-height: 1.3;
}
.level-title {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9rem;
}

/* Level Selector Group (manage) */
.level-selector-group {
    margin-bottom: var(--space-2);
}
.level-selector-group > .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}
.level-selector-group > .form-help {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-3);
}

/* btn-icon (custom_assessments: list, questions) */
.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}
.btn-icon:hover {
    background: #f3f4f6;
    color: var(--color-navy);
}
.btn-icon.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* btn-ghost (edit, questions) */
.btn-ghost {
    background: none;
    border: 1px solid #d1d5db;
    color: var(--color-navy);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-ghost:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* btn-danger (settings, custom detail) */
.btn-danger {
    color: #dc2626;
    border-color: #dc2626;
}
.btn-danger:hover {
    background: #fee2e2;
}

/* btn-sm (settings) */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* btn-loading (billing) */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* Section Header (multiple pages) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-5);
}
.section-header h2 {
    margin: 0;
    font-size: var(--text-xl);
}
.section-header h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.section-header p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}
.section-header .muted {
    margin: 0;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Info Box (manage, custom detail) */
.info-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}
.info-box svg {
    flex-shrink: 0;
    color: var(--color-info);
}
.info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}
.info-box strong {
    display: block;
    color: var(--color-navy);
    margin-bottom: 4px;
}
.info-box code {
    background: rgba(14, 20, 40, 0.06);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Alert Box (manage) */
.alert-box {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-box.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}
.alert-box svg {
    flex-shrink: 0;
    color: var(--color-warning);
}
.alert-box p {
    margin: 0 0 var(--space-2);
}
.alert-box .btn {
    margin-top: var(--space-2);
}

/* Link with Arrow (assessments) */
.link-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-orange);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap var(--transition-base);
}
.link-with-arrow:hover {
    gap: var(--space-3);
}
.link-with-arrow svg {
    color: var(--color-orange);
}

/* ── Portal Tabs (reusable tab bar for merged pages) ── */
.portal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border-light, rgba(14, 20, 40, 0.06));
    margin-bottom: 1.5rem;
}
.portal-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.portal-tab:hover {
    color: var(--color-navy, #0e1428);
}
.portal-tab.active {
    color: var(--color-orange, #ff8a00);
    border-bottom-color: var(--color-orange, #ff8a00);
}
.portal-tab .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 0.4rem;
    background: var(--color-border-light, rgba(14, 20, 40, 0.06));
    color: #888;
}
.portal-tab.active .tab-badge {
    background: rgba(255, 138, 0, 0.12);
    color: var(--color-orange, #ff8a00);
}
@media (max-width: 640px) {
    .portal-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .portal-tab {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }
}





/* ========================================================================
   ASSESSMENTS CATALOG PAGE (assessments.html)  —  as-* prefix
   ======================================================================== */

/* Header */
.as-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.as-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.as-header .muted { margin: 0; font-size: 0.9rem; }

/* Search + Filter Toolbar */
.as-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.as-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.as-search svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}
.as-search input {
    width: 100%;
    padding: 0.55rem 0.875rem 0.55rem 2.5rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-navy);
    background: #fff;
    transition: border-color 0.15s ease;
}
.as-search input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.08);
}
.as-filters {
    display: flex;
    gap: 0.375rem;
}
.as-filter {
    padding: 0.45rem 0.875rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    background: #fff;
    color: var(--color-navy);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.as-filter:hover { background: rgba(14, 20, 40, 0.03); }
.as-filter.active {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

/* Grid */
.as-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Card */
.as-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.as-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 20, 40, 0.08);
    border-color: rgba(255, 138, 0, 0.3);
}

/* Card Header: icon + title */
.as-card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.as-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 138, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-orange);
}
.as-title-area { flex: 1; min-width: 0; }
.as-title-area h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
}
.as-title-area p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats Row */
.as-stats {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(14, 20, 40, 0.05);
    border-bottom: 1px solid rgba(14, 20, 40, 0.05);
}
.as-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.as-stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}
.as-stat-highlight { color: var(--color-orange) !important; }
.as-stat-lbl {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Progress bar */
.as-progress {
    height: 4px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.as-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), #ff6b00);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Card Footer */
.as-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.as-manage {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-orange);
}
.as-in-progress {
    font-size: 0.75rem;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* No results */
.as-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

/* Empty State */
.as-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px dashed var(--color-border-medium);
    border-radius: 12px;
}
.as-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
}

/* Help */
.as-help {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 138, 0, 0.04);
    border: 1px solid rgba(255, 138, 0, 0.15);
    border-radius: 10px;
    margin-bottom: 3rem;
    font-size: 0.85rem;
}
.as-help svg {
    color: var(--color-orange);
    flex-shrink: 0;
}
.as-help strong {
    color: var(--color-navy);
}
.as-help-link {
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: none;
}
.as-help-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .as-header { flex-direction: column; gap: 0.75rem; }
    .as-toolbar { flex-direction: column; }
    .as-search { min-width: 100%; }
    .as-grid { grid-template-columns: 1fr; }
}


/* ========================================================================
   ASSESSMENT REPORT / DETAIL PAGE (assessments/detail.html)  —  rd-* prefix
   ======================================================================== */

/* Header */
.rd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.rd-header-left { flex: 1; min-width: 0; }
.rd-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.35rem;
}
.rd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}
.rd-breadcrumb a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
}
.rd-breadcrumb a:hover { opacity: 0.75; }
.rd-breadcrumb svg { color: var(--color-text-muted); opacity: 0.5; }
.rd-breadcrumb span { color: var(--color-navy); font-weight: 600; }
.rd-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.rd-meta-text { font-size: 0.85rem; color: var(--color-text-muted); }
.rd-header-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.rd-level-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(14, 20, 40, 0.06);
    color: var(--color-navy);
}
.rd-decision-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
.rd-decision--advance { background: rgba(16,185,129,0.1); color: #059669; }
.rd-decision--hold { background: rgba(245,158,11,0.1); color: #d97706; }
.rd-decision--reject { background: rgba(239,68,68,0.1); color: #dc2626; }

/* Status Pills */
.rd-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}
.rd-st-submitted { background: rgba(16, 185, 129, 0.1); color: #059669; }
.rd-st-in_progress { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.rd-st-scheduled { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.rd-st-draft { background: rgba(14, 20, 40, 0.06); color: var(--color-text-muted); }

/* Recommendation Banner */
.rd-banner {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-left: 4px solid var(--color-orange);
}
.rd-tone-positive { border-left-color: #10b981; background: linear-gradient(135deg, rgba(16,185,129,0.04), transparent); }
.rd-tone-negative { border-left-color: #ef4444; background: linear-gradient(135deg, rgba(239,68,68,0.04), transparent); }
.rd-tone-neutral  { border-left-color: #f59e0b; background: linear-gradient(135deg, rgba(245,158,11,0.04), transparent); }
.rd-banner-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
}
.rd-tone-positive .rd-banner-icon { color: #10b981; }
.rd-tone-negative .rd-banner-icon { color: #ef4444; }
.rd-tone-neutral .rd-banner-icon { color: #f59e0b; }
.rd-banner-left h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0.35rem 0 0.2rem;
}
.rd-banner-left p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.rd-banner-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(255, 138, 0, 0.12);
    color: var(--color-orange);
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rd-tone-negative .rd-banner-badge { background: rgba(239,68,68,0.1); color: #dc2626; }
.rd-tone-positive .rd-banner-badge { background: rgba(16,185,129,0.1); color: #059669; }
.rd-banner-chips { display: flex; gap: 1.5rem; flex-shrink: 0; }
.rd-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.rd-chip-lbl {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.rd-chip-val { font-size: 1.15rem; font-weight: 700; color: var(--color-navy); }

/* Key Metrics Strip */
.rd-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.rd-metric-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.rd-metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.4));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}
.rd-metric-card:hover::before { transform: scaleX(1); }
.rd-metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,138,0,0.1); }
.rd-metric-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rd-metric-val {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-orange);
    line-height: 1.1;
}
.rd-metric-text { font-size: 1.5rem !important; color: var(--color-navy) !important; }
.rd-metric-sub { font-size: 0.82rem; color: var(--color-text-muted); }
.rd-metric-bar {
    height: 6px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.35rem;
}
.rd-metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.6));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Quick Follow-ups */
.rd-followups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.rd-followup {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-orange);
    text-decoration: none;
    transition: all 0.15s;
}
.rd-followup:hover {
    border-color: var(--color-orange);
    background: rgba(255,138,0,0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255,138,0,0.1);
}
.rd-followup svg { color: var(--color-orange); opacity: 0.6; }

/* Section Spacing */
.rd-section { margin-top: 2rem; }
.rd-section-head {
    margin-bottom: 1rem;
}
.rd-section-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rd-section-icon {
    color: var(--color-orange);
    flex-shrink: 0;
    opacity: 0.8;
}
.rd-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.rd-section-sub { font-size: 0.82rem; color: var(--color-text-muted); }
.rd-sub-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 1.5rem 0 0.75rem;
}

/* Take Action */
.rd-action-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
}
.rd-action-form { display: flex; flex-direction: column; gap: 1.25rem; }
.rd-action-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.rd-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--color-border-medium);
    border-radius: 10px;
    background: var(--color-white);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}
.rd-action:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.rd-action svg { flex-shrink: 0; }
.rd-action-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.1rem;
}
.rd-action-hint { display: block; font-size: 0.78rem; color: var(--color-text-muted); }
.rd-action--advance svg { color: #10b981; }
.rd-action--advance:hover { border-color: #10b981; background: rgba(16,185,129,0.04); }
.rd-action--hold svg { color: #f59e0b; }
.rd-action--hold:hover { border-color: #f59e0b; background: rgba(245,158,11,0.04); }
.rd-action--reject svg { color: #ef4444; }
.rd-action--reject:hover { border-color: #ef4444; background: rgba(239,68,68,0.04); }
.rd-action--active.rd-action--advance { border-color: #10b981; background: rgba(16,185,129,0.06); box-shadow: 0 0 0 2px rgba(16,185,129,0.15); }
.rd-action--active.rd-action--hold { border-color: #f59e0b; background: rgba(245,158,11,0.06); box-shadow: 0 0 0 2px rgba(245,158,11,0.15); }
.rd-action--active.rd-action--reject { border-color: #ef4444; background: rgba(239,68,68,0.06); box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
.rd-action-note { display: flex; flex-direction: column; gap: 0.3rem; }
.rd-action-note label { font-size: 0.85rem; font-weight: 500; color: var(--color-navy); }
.rd-action-note textarea {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-navy);
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.rd-action-note textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}

/* Timeline */
.rd-timeline-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.rd-tl-event {
    display: flex;
    gap: 0.85rem;
    position: relative;
}
.rd-tl-event:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -16px;
    width: 2px;
    background: var(--color-border-medium);
}
.rd-tl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-orange);
    flex-shrink: 0;
    margin-top: 2px;
}
.rd-tl-dot--first {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 3px rgba(255,138,0,0.2);
}
.rd-tl-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.rd-tl-top { display: flex; justify-content: space-between; align-items: center; }
.rd-tl-top strong { color: var(--color-navy); font-size: 0.9rem; }
.rd-tl-time { font-size: 0.8rem; color: var(--color-text-muted); }
.rd-tl-desc { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.rd-tl-date { font-size: 0.75rem; color: var(--color-text-muted); }

/* Trait Scores (Behavioral) */
.rd-traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.rd-trait {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rd-trait-top { display: flex; justify-content: space-between; align-items: center; }
.rd-trait-name { font-size: 0.9rem; font-weight: 600; color: var(--color-navy); }
.rd-trait-score { font-size: 1.15rem; font-weight: 700; color: var(--color-orange); }
.rd-trait-bar {
    height: 6px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.rd-trait-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.7));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Risk Flags */
.rd-flags-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.rd-flag {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    background: var(--color-white);
}
.rd-flag--critical { border-left: 4px solid #ef4444; background: rgba(239,68,68,0.03); }
.rd-flag--watchlist { border-left: 4px solid #f59e0b; background: rgba(245,158,11,0.03); }
.rd-flag-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}
.rd-flag-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.rd-flag-body strong { font-size: 0.9rem; color: var(--color-navy); }
.rd-flag-body p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }
.rd-flag-level {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.15rem;
    width: fit-content;
}

/* Skill Cards (Non-behavioral) */
.rd-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.rd-skill {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.rd-skill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.rd-skill-lbl {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.rd-skill-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-orange);
    line-height: 1;
}
.rd-skill--strong { border-left: 3px solid #10b981; background: rgba(16,185,129,0.03); }
.rd-skill--weak { border-left: 3px solid #ef4444; background: rgba(239,68,68,0.03); }
.rd-skill-bar {
    height: 4px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.6rem;
}
.rd-skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.6));
    border-radius: 2px;
    transition: width 0.5s ease;
}
.rd-skill--strong .rd-skill-fill { background: linear-gradient(90deg, #10b981, rgba(16,185,129,0.6)); }
.rd-skill--weak .rd-skill-fill { background: linear-gradient(90deg, #ef4444, rgba(239,68,68,0.6)); }

/* Category Scores Table */
.rd-cat-table {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.rd-cat-head {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid var(--color-border-medium);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rd-cat-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border-medium);
    transition: background 0.12s;
}
.rd-cat-row:last-child { border-bottom: none; }
.rd-cat-row:hover { background: rgba(14,20,40,0.015); }
.rd-cat-name { font-weight: 600; font-size: 0.9rem; color: var(--color-navy); align-self: center; }
.rd-cat-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.rd-cat-bar {
    flex: 1;
    height: 6px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.rd-cat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.6));
    border-radius: 3px;
    transition: width 0.5s ease;
}
.rd-cat-score { font-weight: 700; font-size: 1rem; color: var(--color-orange); white-space: nowrap; min-width: 2.5rem; text-align: right; }

/* Strengths & Development */
.rd-strengths {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.rd-str-section h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.6rem;
}
.rd-str-section + .rd-str-section {
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-medium);
}
.rd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rd-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}
.rd-tag--good { background: rgba(16,185,129,0.1); color: #047857; border: 1px solid rgba(16,185,129,0.15); }
.rd-tag--warn { background: rgba(245,158,11,0.1); color: #b45309; border: 1px solid rgba(245,158,11,0.15); }

/* Team Notes */
.rd-notes-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
}
.rd-note-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-medium);
    margin-bottom: 1.25rem;
}
.rd-note-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.rd-note-field { display: flex; flex-direction: column; gap: 0.25rem; }
.rd-note-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-navy);
}
.rd-note-field select,
.rd-note-field textarea,
.rd-note-field input {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--color-navy);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.rd-note-field select:focus,
.rd-note-field textarea:focus,
.rd-note-field input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}
.rd-note-field textarea { resize: vertical; }
.rd-field-error { font-size: 0.78rem; color: #dc2626; }
.rd-note-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rd-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.rd-checkbox input[type="checkbox"] { cursor: pointer; }
.rd-note-list { display: flex; flex-direction: column; gap: 0.75rem; }
.rd-note-item {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    transition: border-color 0.15s;
}
.rd-note-item:hover { border-color: rgba(255,138,0,0.3); }
.rd-note-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.rd-note-who { display: flex; align-items: center; gap: 0.5rem; }
.rd-note-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-orange), rgba(255,138,0,0.7));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}
.rd-note-who > div { display: flex; flex-direction: column; gap: 0.05rem; }
.rd-note-author { font-weight: 600; color: var(--color-navy); font-size: 0.88rem; }
.rd-note-time { font-size: 0.78rem; color: var(--color-text-muted); }
.rd-note-badge {
    padding: 0.2rem 0.5rem;
    background: rgba(255,138,0,0.1);
    color: var(--color-orange);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.rd-note-badge--advance { background: rgba(16,185,129,0.1); color: #059669; }
.rd-note-badge--hold { background: rgba(245,158,11,0.1); color: #d97706; }
.rd-note-badge--reject { background: rgba(239,68,68,0.1); color: #dc2626; }
.rd-note-item--decision { border-left: 3px solid var(--color-orange); }
.rd-note-text { margin: 0.4rem 0; font-size: 0.9rem; line-height: 1.5; color: var(--color-text); }
.rd-note-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.rd-note-type { font-size: 0.78rem; color: var(--color-text-muted); }
.rd-note-flag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    background: rgba(245,158,11,0.1);
    color: #d97706;
    border-radius: 4px;
    text-transform: uppercase;
}
.rd-note-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-style: italic;
}

/* Advanced Details */
.rd-advanced {
    margin-top: 2rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    overflow: hidden;
}
.rd-advanced-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.rd-advanced-toggle::-webkit-details-marker { display: none; }
.rd-advanced-toggle h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}
.rd-advanced-toggle svg { color: var(--color-text-muted); }
.rd-advanced-chevron { transition: transform 0.2s; }
.rd-advanced[open] .rd-advanced-chevron { transform: rotate(180deg); }
.rd-advanced-body {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.rd-adv-card {
    background: rgba(14,20,40,0.015);
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
}
.rd-adv-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.75rem;
}
.rd-adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.rd-adv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rd-adv-grid > div { display: flex; flex-direction: column; gap: 0.15rem; }
.rd-adv-lbl {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.rd-adv-sub { font-size: 0.82rem; color: var(--color-text-muted); }
.rd-feedback-quote {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--color-orange);
    background: rgba(255,138,0,0.03);
    border-radius: 4px;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Response Drilldown */
.rd-response {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-medium);
}
.rd-response:last-of-type { border-bottom: none; }
.rd-response summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem 0;
    gap: 0.75rem;
}
.rd-response summary strong { color: var(--color-navy); font-size: 0.88rem; }
.rd-resp-outcome {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.rd-resp--correct { background: rgba(16,185,129,0.1); color: #059669; }
.rd-resp--incorrect { background: rgba(239,68,68,0.1); color: #dc2626; }
.rd-resp-body {
    padding: 0.65rem 0.85rem;
    background: rgba(14,20,40,0.02);
    border-radius: 6px;
    margin-top: 0.35rem;
}
.rd-resp-body p { margin: 0.25rem 0; font-size: 0.85rem; color: var(--color-text); }
.rd-resp-more { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* ── rd-* Responsive ── */
@media (max-width: 900px) {
    .rd-banner { flex-direction: column; gap: 1rem; }
    .rd-action-btns { grid-template-columns: 1fr; }
    .rd-traits-grid, .rd-flags-grid { grid-template-columns: 1fr; }
    .rd-note-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .rd-header { flex-direction: column; gap: 0.75rem; }
    .rd-metrics { grid-template-columns: 1fr; }
    .rd-metric-card { padding: 1rem; }
    .rd-metric-val { font-size: 1.75rem; }
    .rd-adv-grid, .rd-adv-grid--3 { grid-template-columns: 1fr; }
    .rd-timeline-card, .rd-action-card, .rd-notes-card { padding: 1rem; }
}


/* ========================================================================
   ANALYTICS PAGE (analytics.html)  —  an-* prefix
   ======================================================================== */

/* Header */
.an-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.an-header-left { flex: 1; min-width: 0; }
.an-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.an-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.an-period-form { margin: 0; }
.an-period-select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-navy);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e1428' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.an-period-select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}

/* Key Metrics */
.an-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.an-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.an-metric::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.4));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}
.an-metric:hover::before { transform: scaleX(1); }
.an-metric:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,138,0,0.08); }
.an-metric-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.an-metric-icon--invites { background: rgba(59,130,246,0.08); color: #3b82f6; }
.an-metric-icon--rate { background: rgba(16,185,129,0.08); color: #10b981; }
.an-metric-icon--score { background: rgba(255,138,0,0.08); color: var(--color-orange); }
.an-metric-icon--time { background: rgba(139,92,246,0.08); color: #8b5cf6; }
.an-metric-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.an-metric-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.an-metric-val {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.15;
}
.an-metric-sub { font-size: 0.78rem; color: var(--color-text-muted); }

/* Charts Row */
.an-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.an-chart-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.an-card-head { margin-bottom: 1rem; }
.an-card-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.an-card-sub { font-size: 0.82rem; color: var(--color-text-muted); }
.an-chart-wrap {
    position: relative;
    height: 260px;
    flex: 1;
}
.an-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Section Headings */
.an-section { margin-bottom: 1.75rem; }
.an-section-head { margin-bottom: 1rem; }
.an-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.an-section-sub { font-size: 0.82rem; color: var(--color-text-muted); }

/* Conversion Funnel */
.an-funnel {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.an-funnel-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.an-funnel-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, rgba(255,138,0,0.06), rgba(255,138,0,0.02));
    border: 1px solid rgba(255,138,0,0.12);
    border-radius: 10px;
    min-width: 120px;
    transition: width 0.5s ease, background 0.2s;
}
.an-funnel-bar--mid {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.02));
    border-color: rgba(59,130,246,0.12);
}
.an-funnel-bar--end {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
    border-color: rgba(16,185,129,0.12);
}
.an-funnel-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.an-funnel-bar svg { opacity: 0.5; }
.an-funnel-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
}
.an-funnel-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
}
.an-funnel-pct {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 3rem;
    text-align: right;
    flex-shrink: 0;
}
.an-funnel-arrow {
    display: flex;
    justify-content: center;
    padding-left: 2.5rem;
    color: var(--color-text-muted);
    opacity: 0.35;
}

/* Assessment Performance Table */
.an-table-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    overflow: hidden;
}
.an-table {
    width: 100%;
    border-collapse: collapse;
}
.an-table thead th {
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid var(--color-border-medium);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
}
.an-table tbody td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border-medium);
    font-size: 0.9rem;
    color: var(--color-navy);
}
.an-table tbody tr:last-child td { border-bottom: none; }
.an-table tbody tr { transition: background 0.12s; }
.an-table tbody tr:hover { background: rgba(14,20,40,0.015); }
.an-cell-name { font-weight: 600; }
.an-bar-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.an-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}
.an-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.6));
    border-radius: 3px;
    transition: width 0.5s ease;
}
.an-bar-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-orange);
    min-width: 2.5rem;
    text-align: right;
}

/* Score Distribution */
.an-dist-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.an-dist-row {
    display: grid;
    grid-template-columns: 5rem 1fr 2.5rem 3rem;
    align-items: center;
    gap: 0.75rem;
}
.an-dist-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}
.an-dist-bar-wrap { width: 100%; }
.an-dist-bar {
    height: 10px;
    background: rgba(14, 20, 40, 0.04);
    border-radius: 5px;
    overflow: hidden;
}
.an-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.65));
    border-radius: 5px;
    transition: width 0.5s ease;
    min-width: 2px;
}
.an-dist-fill--top { background: linear-gradient(90deg, #10b981, rgba(16,185,129,0.65)); }
.an-dist-fill--low { background: linear-gradient(90deg, #ef4444, rgba(239,68,68,0.65)); }
.an-dist-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
    text-align: right;
}
.an-dist-pct {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: right;
}

/* Empty State */
.an-empty {
    text-align: center;
    padding: 4rem 2rem;
}
.an-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.35rem;
}
.an-empty p { max-width: 400px; margin: 0 auto; }

/* ── an-* Responsive ── */
@media (max-width: 1024px) {
    .an-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .an-charts { grid-template-columns: 1fr; }
    .an-funnel-bar { padding: 0.65rem 1rem; }
}
@media (max-width: 640px) {
    .an-header { flex-direction: column; gap: 0.75rem; }
    .an-metrics { grid-template-columns: 1fr; }
    .an-metric { padding: 1rem; }
    .an-metric-val { font-size: 1.35rem; }
    .an-chart-wrap { height: 200px; }
    .an-dist-row { grid-template-columns: 4rem 1fr 2rem 2.5rem; gap: 0.5rem; }
    .an-table-card { overflow-x: auto; }
}


/* ========================================================================
   BILLING & PLANS PAGE (billing.html)  —  bi-* prefix
   ======================================================================== */

/* Header */
.bi-header {
    margin-bottom: 1.75rem;
}
.bi-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}

/* Current Plan Banner */
.bi-plan-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255,138,0,0.06), rgba(255,138,0,0.01));
    border: 1px solid rgba(255,138,0,0.15);
    border-left: 4px solid var(--color-orange);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.bi-plan-left { flex: 1; min-width: 0; }
.bi-plan-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: var(--color-orange);
    color: #fff;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.bi-plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.bi-plan-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0;
}
.bi-plan-right {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-shrink: 0;
}
.bi-plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}
.bi-plan-cycle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Usage Meters */
.bi-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.bi-usage-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.bi-usage-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bi-usage-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.bi-usage-icon--invites { background: rgba(255,138,0,0.08); color: var(--color-orange); }
.bi-usage-icon--projects { background: rgba(59,130,246,0.08); color: #3b82f6; }
.bi-usage-info { display: flex; flex-direction: column; gap: 0.15rem; }
.bi-usage-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
.bi-usage-nums { display: flex; align-items: baseline; gap: 0.3rem; }
.bi-usage-used {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.15;
}
.bi-usage-of {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.bi-usage-limit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
}
.bi-usage-period {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}
.bi-usage-bar {
    height: 8px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.bi-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), rgba(255,138,0,0.6));
    border-radius: 4px;
    transition: width 0.5s ease;
}
.bi-usage-fill--warn { background: linear-gradient(90deg, #ef4444, rgba(239,68,68,0.7)); }
.bi-usage-footer {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.bi-usage-footer--warn {
    color: #dc2626;
    font-weight: 600;
}

/* Section */
.bi-section { margin-bottom: 2rem; }
.bi-section-head { margin-bottom: 1rem; }
.bi-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.bi-section-sub { font-size: 0.82rem; color: var(--color-text-muted); }

/* Plan Cards Grid */
.bi-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.bi-plan-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bi-plan-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.bi-plan-card--current {
    border: 2px solid var(--color-orange);
    box-shadow: 0 4px 16px rgba(255,138,0,0.1);
}
.bi-plan-card--current:hover { box-shadow: 0 6px 24px rgba(255,138,0,0.15); }
.bi-card-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.2rem 0.55rem;
    background: var(--color-orange);
    color: #fff;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Card Sections */
.bi-card-top {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-medium);
    margin-bottom: 1rem;
}
.bi-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}
.bi-card-price { margin-bottom: 0.5rem; }
.bi-card-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
}
.bi-card-freq {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.bi-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Limits */
.bi-card-limits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-medium);
    margin-bottom: 1rem;
}
.bi-card-limit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-navy);
    font-weight: 500;
}
.bi-card-limit svg { color: var(--color-orange); flex-shrink: 0; opacity: 0.7; }

/* Features */
.bi-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}
.bi-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-text);
}
.bi-card-features li svg { color: #10b981; flex-shrink: 0; margin-top: 1px; }

/* Card Footer Button */
.bi-card-foot { margin-top: auto; }
.bi-card-btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid var(--color-border-medium);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-navy);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.bi-card-btn:hover { border-color: var(--color-orange); color: var(--color-orange); }
.bi-card-btn--current {
    background: rgba(14,20,40,0.04);
    border-color: transparent;
    color: var(--color-text-muted);
    cursor: default;
}
.bi-card-btn--current:hover { border-color: transparent; color: var(--color-text-muted); }
.bi-card-btn--upgrade {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: #fff;
}
.bi-card-btn--upgrade:hover {
    background: #e67a00;
    border-color: #e67a00;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,138,0,0.3);
}
.bi-card-btn--switch { border-color: var(--color-border-medium); }
.bi-card-btn--switch:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* Help Footer */
.bi-help {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(14,20,40,0.02);
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--color-text);
    margin-top: 0.5rem;
}
.bi-help svg { color: var(--color-orange); flex-shrink: 0; margin-top: 1px; }
.bi-help-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-orange);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.bi-help-link:hover { opacity: 0.75; }

/* Support Modal */
.bi-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,20,40,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}
.bi-modal {
    background: var(--color-white);
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}
.bi-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-medium);
}
.bi-modal-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}
.bi-modal-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: background 0.15s;
}
.bi-modal-close:hover { background: rgba(14,20,40,0.05); }
.bi-modal-form { padding: 1.5rem; }
.bi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.bi-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}
.bi-form-row .bi-form-field { margin-bottom: 0; }
.bi-form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-navy);
}
.bi-form-field select,
.bi-form-field input,
.bi-form-field textarea {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--color-navy);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bi-form-field select:focus,
.bi-form-field input:focus,
.bi-form-field textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}
.bi-form-field textarea { resize: vertical; }
.bi-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.5rem;
}
.bi-modal-success {
    text-align: center;
    padding: 3rem 2rem;
}
.bi-modal-success h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 1rem 0 0.25rem;
}
.bi-modal-success p { margin: 0 0 1.25rem; }

/* ── bi-* Responsive ── */
@media (max-width: 900px) {
    .bi-plans-grid { grid-template-columns: 1fr; max-width: 400px; }
    .bi-plan-banner { flex-direction: column; gap: 1rem; text-align: center; }
    .bi-plan-right { justify-content: center; }
}
@media (max-width: 640px) {
    .bi-usage-grid { grid-template-columns: 1fr; }
    .bi-form-row { grid-template-columns: 1fr; }
    .bi-plan-banner { padding: 1.25rem; }
    .bi-plan-price { font-size: 2rem; }
}


/* ========================================================================
   SETTINGS PAGE (settings.html)  —  st-* prefix
   ======================================================================== */

/* Header */
.st-header { margin-bottom: 1.75rem; }
.st-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}

/* Section */
.st-section { margin-bottom: 2rem; }
.st-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.st-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.1rem;
}
.st-section-sub {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.st-section-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.st-section-icon--account { background: rgba(59,130,246,0.08); color: #3b82f6; }
.st-section-icon--brand   { background: rgba(168,85,247,0.08); color: #a855f7; }
.st-section-icon--api     { background: rgba(14,165,233,0.08); color: #0ea5e9; }
.st-section-icon--tour    { background: rgba(245,158,11,0.08); color: #f59e0b; }
.st-section-icon--security{ background: rgba(239,68,68,0.08);  color: #ef4444; }
.st-section-icon--notif   { background: rgba(16,185,129,0.08); color: #10b981; }
.st-section-icon--help    { background: rgba(255,138,0,0.08);  color: var(--color-orange); }

/* Card */
.st-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
}
.st-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.st-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    flex-shrink: 0;
}
.st-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}
.st-card-sub {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0.15rem 0 0;
}

/* Account Info Grid */
.st-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
}
.st-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.st-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.st-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-navy);
}

/* Logo Upload */
.st-logo-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-muted);
    border-radius: 10px;
    border: 1px dashed var(--color-border-medium);
}
.st-logo-frame {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14,20,40,0.08);
    flex-shrink: 0;
    overflow: hidden;
}
.st-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.st-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-muted);
}
.st-logo-placeholder span {
    font-size: 0.7rem;
    text-align: center;
}
.st-logo-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.st-logo-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.st-logo-form { display: inline; }

/* Hint Text */
.st-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Color Picker Grid */
.st-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.st-color-group {
    padding: 0.85rem;
    background: var(--color-bg-muted);
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
}
.st-color-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    display: block;
}
.st-color-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.st-color-picker {
    width: 44px;
    height: 38px;
    padding: 2px;
    border: 2px solid rgba(14,20,40,0.1);
    border-radius: 8px;
    cursor: pointer;
    background: var(--color-white);
    transition: border-color 0.15s;
}
.st-color-picker:hover { border-color: rgba(14,20,40,0.2); }
.st-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.st-color-picker::-webkit-color-swatch { border: none; border-radius: 4px; }
.st-color-hex {
    width: 84px;
    padding: 0.45rem 0.6rem;
    border: 1.5px solid var(--color-border-medium);
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--color-navy);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.st-color-hex:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}

/* Branding Preview */
.st-preview-box {
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f8 100%);
    border: 1px solid rgba(14,20,40,0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.st-preview-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8993a8;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.st-preview-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    display: inline-block;
}
.st-preview-card {
    background: var(--color-white);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.st-preview-logo {
    max-width: 72px;
    max-height: 72px;
    margin-bottom: 0.85rem;
    border-radius: 10px;
}
.st-preview-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--color-navy);
}
.st-preview-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1rem;
}
.st-preview-btn {
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(255,138,0,0.25);
}
.st-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,138,0,0.3);
}
.st-preview-footer {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.85rem 0 0;
}

/* Divider */
.st-divider {
    height: 1px;
    background: var(--color-border-medium);
    margin: 1.75rem 0;
}

/* Subsection */
.st-subsection {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.st-subsection-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14,20,40,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    flex-shrink: 0;
}
.st-subsection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}
.st-subsection-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0.1rem 0 0;
}

/* Form Fields */
.st-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.st-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.st-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: 0.01em;
}
.st-field label svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.st-field input[type="text"],
.st-field input[type="url"],
.st-field input[type="password"],
.st-field textarea,
.st-form input[type="text"],
.st-form input[type="url"],
.st-form input[type="password"],
.st-form textarea {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--color-border-medium);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--color-white);
    color: var(--color-navy);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.st-field input[type="text"]:hover,
.st-field input[type="url"]:hover,
.st-field input[type="password"]:hover,
.st-field textarea:hover,
.st-form input[type="text"]:hover,
.st-form input[type="url"]:hover,
.st-form input[type="password"]:hover,
.st-form textarea:hover {
    border-color: rgba(14,20,40,0.2);
}
.st-field input[type="text"]:focus,
.st-field input[type="url"]:focus,
.st-field input[type="password"]:focus,
.st-field textarea:focus,
.st-form input[type="text"]:focus,
.st-form input[type="url"]:focus,
.st-form input[type="password"]:focus,
.st-form textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}
.st-field input::placeholder,
.st-field textarea::placeholder,
.st-form input::placeholder,
.st-form textarea::placeholder {
    color: rgba(14,20,40,0.3);
}
.st-field textarea { resize: vertical; min-height: 72px; }
.st-error {
    font-size: 0.78rem;
    color: #dc2626;
    font-weight: 500;
}

/* Upgrade Badge */
.st-upgrade-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.25rem;
}

/* Toggle Card (hide branding) */
.st-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-bg-muted);
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    margin-bottom: 1.5rem;
}
.st-toggle-card-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.st-toggle-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14,20,40,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    flex-shrink: 0;
}
.st-toggle-card h4 { font-size: 0.88rem; margin: 0; }
.st-toggle-card .muted { font-size: 0.8rem; margin: 0.15rem 0 0; }

/* Toggle Switch */
.st-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.st-toggle input { opacity: 0; width: 0; height: 0; }
.st-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,20,40,0.15);
    border-radius: 24px;
    transition: background 0.2s;
}
.st-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.st-toggle input:checked + .st-toggle-slider { background: var(--color-orange); }
.st-toggle input:checked + .st-toggle-slider::before { transform: translateX(20px); }
.st-toggle input:disabled + .st-toggle-slider { opacity: 0.5; cursor: not-allowed; }

/* Actions Bar */
.st-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

/* Settings Row (toggle rows, simple rows) */
.st-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(14,20,40,0.06);
}
.st-row:last-of-type { border-bottom: none; }
.st-row h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}
.st-row .muted {
    font-size: 0.8rem;
    margin: 0.15rem 0 0;
}

/* Password Grid */
.st-pw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Disabled Form Elements */
.st-form input[type="text"]:disabled,
.st-form textarea:disabled,
.st-toggle input:disabled + .st-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Webhook Config Area */
.st-webhook-config { margin-top: 0.5rem; }

/* Webhook Events Grid */
.st-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.st-event-option { cursor: pointer; }
.st-event-option input {
    position: absolute;
    opacity: 0;
}
.st-event-card {
    display: block;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(14,20,40,0.1);
    border-radius: 10px;
    transition: all 0.15s;
}
.st-event-card:hover {
    border-color: rgba(14,20,40,0.2);
    background: rgba(14,20,40,0.02);
}
.st-event-option input:checked + .st-event-card {
    border-color: var(--color-orange);
    background: rgba(255,138,0,0.04);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.08);
}
.st-event-card strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-navy);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 0.2rem;
}
.st-event-card span {
    font-size: 0.775rem;
    color: #64748b;
}

/* Secret Display */
.st-secret-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}
.st-secret-value {
    padding: 0.45rem 0.85rem;
    background: var(--color-bg-muted);
    border: 1px solid rgba(14,20,40,0.08);
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    color: var(--color-navy);
}

/* Webhook Deliveries */
.st-deliveries {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-medium);
}
.st-deliveries h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.75rem;
}
.st-delivery-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.st-delivery {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    background: var(--color-bg-muted);
    border-radius: 8px;
    font-size: 0.8rem;
}
.st-delivery--success { background: #f0fdf4; }
.st-delivery--failed  { background: #fef2f2; }
.st-delivery-event {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.775rem;
    color: var(--color-navy);
}
.st-delivery-badge { font-weight: 600; }
.st-delivery--success .st-delivery-badge { color: #16a34a; }
.st-delivery--failed  .st-delivery-badge { color: #dc2626; }
.st-delivery-time {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.775rem;
}

/* API Key */
.st-api-area { margin-top: 0.25rem; }
.st-api-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--color-bg-muted);
    border: 1px solid rgba(14,20,40,0.08);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}
.st-api-value {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.775rem;
    word-break: break-all;
    user-select: all;
    color: var(--color-navy);
}
.st-btn-danger {
    color: #dc2626 !important;
}
.st-btn-danger:hover {
    background: #fef2f2 !important;
}

/* Support Grid */
.st-support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.st-support-option {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-muted);
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    transition: border-color 0.15s;
}
.st-support-option:hover { border-color: var(--color-border-medium); }
.st-support-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    flex-shrink: 0;
    border: 1px solid rgba(14,20,40,0.06);
}
.st-support-option h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.2rem;
}
.st-support-option .muted { margin: 0 0 0.5rem; font-size: 0.8rem; }
.st-support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-orange);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.15s;
}
.st-support-link:hover { opacity: 0.75; }

/* ── st-* Responsive ── */
@media (max-width: 900px) {
    .st-pw-grid { grid-template-columns: 1fr; }
    .st-info-grid { grid-template-columns: 1fr; }
    .st-color-grid { grid-template-columns: 1fr; }
    .st-support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .st-card { padding: 1.25rem; }
    .st-logo-area { flex-direction: column; text-align: center; }
    .st-event-grid { grid-template-columns: 1fr; }
    .st-toggle-card { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .st-actions-bar { flex-direction: column; align-items: stretch; }
    .st-actions-bar .btn { text-align: center; justify-content: center; }
    .st-section-head { gap: 0.65rem; }
    .st-section-icon { width: 38px; height: 38px; }
}



/* ========================================================================
   ASSESSMENT MANAGE PAGE (assessments/manage.html)  —  am-* prefix
   ======================================================================== */

/* Header */
.am-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.am-header-left { flex: 1; min-width: 0; }
.am-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.am-header .muted { margin: 0; font-size: 0.9rem; }
.am-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}
.am-breadcrumb a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
}
.am-breadcrumb a:hover { opacity: 0.75; }
.am-breadcrumb svg { color: var(--color-text-muted); opacity: 0.5; }
.am-breadcrumb span { color: var(--color-navy); font-weight: 600; }

/* Two-Column Forms */
.am-forms {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    align-items: start;
}

/* Panel Card */
.am-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
}
.am-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-medium);
}
.am-panel-head svg {
    flex-shrink: 0;
    color: var(--color-orange);
    margin-top: 0.1rem;
}
.am-panel-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.am-panel-head .muted {
    font-size: 0.82rem;
    margin: 0;
}

/* Alert (no projects) */
.am-alert {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.am-alert svg { flex-shrink: 0; color: #d97706; margin-top: 0.1rem; }
.am-alert strong { display: block; color: var(--color-navy); font-size: 0.9rem; margin-bottom: 0.2rem; }
.am-alert p { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }

/* Info box (CSV format hint) */
.am-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--color-text);
}
.am-info svg { flex-shrink: 0; color: #3b82f6; }
.am-info code {
    background: rgba(14, 20, 40, 0.06);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Form Fields */
.am-invite-form,
.am-bulk-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.am-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.am-field label,
.am-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}
.am-field input[type="text"],
.am-field input[type="number"],
.am-field input[type="email"],
.am-field select,
.am-field textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-navy);
    background: var(--color-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.am-field input:focus,
.am-field select:focus,
.am-field textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}
.am-help {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
.am-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.15rem;
}

/* Level Selector */
.am-level-group { margin-bottom: 0.25rem; }
.am-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}
.am-level {
    position: relative;
    cursor: pointer;
}
.am-level input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.am-level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 0.5rem;
    border: 2px solid var(--color-border-medium);
    border-radius: 10px;
    background: var(--color-white);
    transition: all 0.15s;
    position: relative;
}
.am-level-card:hover {
    border-color: rgba(255, 138, 0, 0.4);
}
.am-level input:checked + .am-level-card {
    border-color: var(--color-orange);
    background: rgba(255, 138, 0, 0.04);
}
.am-level-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-navy);
}
.am-level-years {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}
.am-level-desc {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    line-height: 1.25;
}
.am-level--rec .am-level-card::after {
    content: 'Recommended';
    position: absolute;
    top: -0.45rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-orange);
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* Sessions Section */
.am-sessions {
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
}
.am-sessions-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.am-sessions-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.am-sessions-head .muted { margin: 0; font-size: 0.82rem; }

/* Filter Select */
.am-filter { display: flex; align-items: center; }
.am-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-navy);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color 0.15s;
}
.am-select:hover { border-color: #ccc; }
.am-select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

/* Table */
.am-table-wrap {
    overflow-x: auto;
    margin: 0 -1.5rem -1.5rem;
}
.am-table {
    width: 100%;
    border-collapse: collapse;
}
.am-table thead {
    border-bottom: 2px solid var(--color-border-medium);
}
.am-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.am-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border-medium);
    font-size: 0.88rem;
    vertical-align: middle;
}
.am-table tbody tr { transition: background 0.12s; }
.am-table tbody tr:hover { background: rgba(14, 20, 40, 0.015); }
.am-table tbody tr:last-child td { border-bottom: none; }

/* Sortable Header */
.am-sortable {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.am-sortable:hover { color: var(--color-orange); }
.am-sort-icon { opacity: 0.35; transition: opacity 0.15s; }
.am-sortable:hover .am-sort-icon { opacity: 0.7; }
.am-sortable.am-sort-asc .am-sort-icon,
.am-sortable.am-sort-desc .am-sort-icon { opacity: 1; color: var(--color-orange); }

/* Table Cell Styles */
.am-candidate { font-weight: 600; color: var(--color-navy); }
.am-project-link {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
}
.am-project-link:hover { opacity: 0.75; }
.am-muted { color: var(--color-text-muted); }
.am-cell-muted { font-size: 0.82rem; color: var(--color-text-muted); }

/* Status Pill */
.am-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}
.am-st-submitted { background: rgba(16, 185, 129, 0.1); color: #059669; }
.am-st-in_progress { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.am-st-scheduled { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.am-st-draft { background: rgba(14, 20, 40, 0.06); color: var(--color-text-muted); }

/* Score Badge */
.am-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 138, 0, 0.1);
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Notes */
.am-notes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.am-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.am-badge--warn { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.am-badge--info { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }

/* Action Buttons */
.am-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.am-inline-form { display: inline; }
.am-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.12s;
    text-decoration: none;
}
.am-act:hover {
    background: rgba(14, 20, 40, 0.04);
    color: var(--color-navy);
    border-color: #ccc;
}
.am-act--primary {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
}
.am-act--primary:hover { background: #e67700; color: var(--color-white); }
.am-act--success {
    background: #10b981;
    border-color: #10b981;
    color: var(--color-white);
}
.am-act--success:hover { background: #059669; color: var(--color-white); }
.am-act--copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: var(--color-white) !important;
}

/* Empty State */
.am-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.am-empty h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.35rem;
}
.am-empty .muted { margin: 0; font-size: 0.88rem; }

/* ── am-* Responsive ── */
@media (max-width: 900px) {
    .am-forms { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .am-header { flex-direction: column; gap: 0.75rem; }
    .am-levels { grid-template-columns: 1fr; }
    .am-table-wrap { margin: 0 -1rem -1rem; }
    .am-table th,
    .am-table td { padding: 0.65rem 0.75rem; font-size: 0.82rem; }
    .am-sessions { padding: 1rem; }
    .am-panel { padding: 1.15rem; }
    .am-sessions-head { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}


/* ========================================================================
   PROJECTS DETAIL PAGE (projects/detail.html)  —  pd-* prefix
   ======================================================================== */

/* Header */
.pd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.pd-header-left { flex: 1; min-width: 0; }
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}
.pd-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
}
.pd-breadcrumb a:hover { color: var(--color-orange); }
.pd-breadcrumb svg { color: var(--color-text-muted); opacity: 0.5; }
.pd-breadcrumb span { color: var(--color-navy); font-weight: 600; }
.pd-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.pd-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pd-location {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.pd-location svg { opacity: 0.5; }
.pd-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

/* Metrics Strip */
.pd-metrics {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
}
.pd-metric {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.pd-metric-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}
.pd-num-good { color: #059669; }
.pd-num-mid { color: #d97706; }
.pd-metric-info {
    display: flex;
    flex-direction: column;
}
.pd-metric-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-navy);
}
.pd-metric-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.pd-metric-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border-medium);
    flex-shrink: 0;
}

/* Job Description Sections */
.pd-jd-sections {
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.pd-jd-section {
    margin-bottom: 1.5rem;
}
.pd-jd-section:last-child {
    margin-bottom: 0;
}
.pd-jd-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.6rem;
}
.pd-jd-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
}
.pd-jd-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: disc;
}
.pd-jd-list li {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}
.pd-jd-list li:last-child {
    margin-bottom: 0;
}

/* Position Details Strip */
.pd-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    margin-bottom: 1.75rem;
}
.pd-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.pd-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 600;
}
.pd-detail-val {
    font-size: 0.92rem;
    color: var(--color-navy);
    font-weight: 500;
}
.pd-detail-skills {
    flex-basis: 100%;
}
.pd-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.pd-skill-pill {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 100px;
    color: var(--color-text);
}

/* Sections */
.pd-section {
    margin-bottom: 2.5rem;
}
.pd-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}
.pd-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}
.pd-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Pipeline Board */
.pd-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    overflow-x: auto;
}
.pd-col {
    background: rgba(14, 20, 40, 0.02);
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}
.pd-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-medium);
}
.pd-col-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pd-col-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(14, 20, 40, 0.07);
    color: var(--color-text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}
.pd-col-body {
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.pd-col-empty {
    padding: 2rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Pipeline Cards */
.pd-pipe-card {
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pd-pipe-card:hover {
    border-color: var(--color-orange);
    box-shadow: 0 2px 8px rgba(255, 138, 0, 0.08);
}
.pd-pipe-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.pd-pipe-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-pipe-score {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 138, 0, 0.1);
    color: var(--color-orange);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}
.pd-pipe-assess {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}
.pd-pipe-time {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}
.pd-pipe-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(14, 20, 40, 0.05);
    margin-top: 0.25rem;
}
.pd-pipe-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-orange);
    text-decoration: none;
    white-space: nowrap;
}
.pd-pipe-link:hover { text-decoration: underline; }
.pd-stage-form { margin: 0; flex: 1; }
.pd-stage-select {
    width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--color-navy);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.pd-stage-select:hover { border-color: var(--color-orange); }
.pd-stage-select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.08);
}

/* Assessment Breakdown */
.pd-assess-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}
.pd-assess-card {
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.pd-assess-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pd-assess-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
}
.pd-assess-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-orange);
}
.pd-assess-bar {
    height: 4px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.pd-assess-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), #ff6b00);
    border-radius: 2px;
}
.pd-assess-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Activity Table */
.pd-table-wrap {
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    overflow-x: auto;
}
.pd-table {
    width: 100%;
    border-collapse: collapse;
}
.pd-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-border-medium);
    background: rgba(14, 20, 40, 0.02);
}
.pd-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(14, 20, 40, 0.04);
    color: var(--color-text);
}
.pd-table tbody tr:last-child td { border-bottom: none; }
.pd-table tbody tr:hover { background: rgba(14, 20, 40, 0.015); }
.pd-cell-name { font-weight: 600; color: var(--color-navy); }
.pd-cell-muted { color: var(--color-text-muted); font-size: 0.82rem; }
.pd-cell-action { text-align: right; }

/* Level badge */
.pd-level {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: capitalize;
}
.pd-level-junior { background: #d1fae5; color: #059669; }
.pd-level-mid { background: #dbeafe; color: #1d4ed8; }
.pd-level-senior { background: #fef3c7; color: #d97706; }
.pd-level-lead { background: rgba(255, 138, 0, 0.1); color: var(--color-orange); }

/* Status pill */
.pd-status-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}
.pd-st-submitted, .pd-st-completed { background: #d1fae5; color: #059669; }
.pd-st-in-progress { background: #dbeafe; color: #1d4ed8; }
.pd-st-draft { background: #f3f4f6; color: #6b7280; }

/* Report link */
.pd-report-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-orange);
    text-decoration: none;
    white-space: nowrap;
}
.pd-report-link:hover { text-decoration: underline; }

/* Empty State */
.pd-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px dashed var(--color-border-medium);
    border-radius: 12px;
    margin-top: 2rem;
}
.pd-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
}
.pd-empty .muted {
    max-width: 360px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .pd-header {
        flex-direction: column;
        gap: 1rem;
    }
    .pd-actions {
        width: 100%;
    }
    .pd-actions .btn {
        flex: 1;
        justify-content: center;
    }
    .pd-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }
    .pd-metric-divider {
        width: 100%;
        height: 1px;
    }
    .pd-pipeline {
        grid-template-columns: 1fr;
    }
    .pd-assess-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================
   POSITION EDIT PAGE (projects/edit.html)  —  pe-* prefix
   ======================================================================== */

.pe-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.pe-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.pe-breadcrumb a:hover {
    text-decoration: underline;
}
.pe-breadcrumb span {
    color: var(--color-text-muted);
}

.pe-header {
    margin-bottom: 1.5rem;
}
.pe-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
}

.pe-form {
    max-width: 100%;
}

/* Two-column row layout */
.pe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
}
.pe-row-full {
    grid-template-columns: 1fr;
}

/* Job description 2×2 textarea grid */
.pe-jd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Horizontal divider between sub-sections */
.pe-divider {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: 1.25rem 0;
}

.pe-section {
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.pe-section-head {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 0.75rem;
}
.pe-section-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.pe-section-head p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
}

.pe-grid {
    display: grid;
    gap: 1rem;
}
.pe-grid-1 { grid-template-columns: 1fr; }
.pe-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pe-grid-3 { grid-template-columns: repeat(3, 1fr); }

.pe-field-wide {
    grid-column: 1 / -1;
}

.pe-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pe-field input,
.pe-field select,
.pe-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-navy);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s ease;
}
.pe-field input:focus,
.pe-field select:focus,
.pe-field textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pe-field textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.pe-help {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.pe-req {
    color: #ef4444;
}

.pe-field-with-action {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}
.pe-field-with-action select {
    flex: 1;
}
.pe-inline-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.pe-inline-add:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: rgba(255, 138, 0, 0.04);
}
.pe-inline-create {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
    align-items: center;
}
.pe-inline-input {
    flex: 1;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--color-orange);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-navy);
    background: rgba(255, 138, 0, 0.03);
    font-family: inherit;
    outline: none;
}
.pe-inline-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}
.pe-inline-cancel {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
}
.pe-inline-cancel:hover {
    color: var(--color-navy);
}

.pe-field-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pe-field-check input[type="checkbox"] {
    width: auto;
}
.pe-field-check label {
    margin-bottom: 0;
    text-transform: none;
    font-size: 0.88rem;
    color: var(--color-navy);
}

/* AI Screening section */
.pe-section-ai {
    border: 1.5px solid #e0e7ff;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}
.pe-ai-toggle {
    padding: 0.75rem 0 0.25rem;
}
.pe-ai-toggle label {
    font-weight: 600;
    font-size: 0.92rem;
}
.pe-ai-options {
    margin-top: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid #e0e7ff;
}
.pe-checkbox-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pe-checkbox-group li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pe-checkbox-group li label {
    margin-bottom: 0;
    text-transform: none;
    font-size: 0.88rem;
    color: var(--color-navy);
}

.pe-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (max-width: 900px) {
    .pe-row {
        grid-template-columns: 1fr;
    }
    .pe-jd-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .pe-grid-2,
    .pe-grid-3 {
        grid-template-columns: 1fr;
    }
    .pe-actions {
        flex-direction: column;
    }
}


/* ========================================================================
   PROJECTS LIST PAGE (projects/list.html)  —  pj-* prefix
   ======================================================================== */

/* Header */
.pj-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}
.pj-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.pj-header .muted {
    margin: 0;
    font-size: 0.9rem;
}

/* Create Panel (hidden by default) */
.pj-create-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.pj-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}
.pj-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pj-field input,
.pj-field select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-navy);
    background: #fff;
    transition: border-color 0.15s ease;
}
.pj-field input:focus,
.pj-field select:focus {
    border-color: var(--color-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.08);
}
.pj-field-action {
    padding-bottom: 1px;
}
.pj-field-action .btn {
    width: 100%;
    white-space: nowrap;
}

/* Toolbar */
.pj-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.pj-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Cards Grid */
.pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* Individual Card */
.pj-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border-left: 3px solid var(--color-border-medium);
}
.pj-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 20, 40, 0.08);
}

/* Priority-colored left border */
.pj-priority-p0 { border-left-color: #dc2626; }
.pj-priority-p1 { border-left-color: var(--color-orange); }
.pj-priority-p2 { border-left-color: #3b82f6; }
.pj-priority-p3 { border-left-color: #9ca3af; }

/* Card Top: title + status */
.pj-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.pj-card-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
}
.pj-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

/* Status pill */
.pj-status {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pj-status-active { background: #d1fae5; color: #059669; }
.pj-status-on_hold { background: #fef3c7; color: #d97706; }
.pj-status-filled { background: #dbeafe; color: #1d4ed8; }
.pj-status-archived { background: #f3f4f6; color: #6b7280; }

/* Stats Row */
.pj-stats-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(14, 20, 40, 0.05);
    border-bottom: 1px solid rgba(14, 20, 40, 0.05);
}
.pj-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.pj-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}
.pj-stat-lbl {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Progress bar */
.pj-progress {
    height: 4px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.pj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), #ff6b00);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Card Tags */
.pj-card-tags {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.pj-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 138, 0, 0.06);
    color: #b45309;
    border-radius: 100px;
    font-weight: 500;
}

/* Card Footer */
.pj-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pj-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pj-badge-p0 { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.pj-badge-p1 { background: rgba(255, 138, 0, 0.1); color: var(--color-orange); }
.pj-badge-p2 { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.pj-badge-p3 { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.pj-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}
.pj-deadline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--color-bg-subtle, #f5f5f5);
    padding: 2px 8px;
    border-radius: 10px;
}
.pj-deadline-expired {
    color: #c0392b;
    background: #fdecea;
}

/* Empty State */
.pj-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px dashed var(--color-border-medium);
    border-radius: 12px;
}
.pj-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
}
.pj-empty .muted {
    max-width: 360px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .pj-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .pj-form-grid {
        grid-template-columns: 1fr;
    }
    .pj-grid {
        grid-template-columns: 1fr;
    }
    .pj-stats-row {
        gap: 1rem;
    }
}


/* ========================================================================
   CUSTOM ASSESSMENTS – LIST & CREATE  (ca-*)
   ======================================================================== */

/* ── Shared Header ── */
.ca-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.ca-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
}
.ca-header-left .muted { margin: 0.25rem 0 0; }
.ca-header-actions { flex-shrink: 0; padding-top: 0.25rem; }
.ca-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}
.ca-back:hover { color: var(--color-orange); }

/* ── Usage Meter ── */
.ca-usage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 138, 0, 0.04);
    border: 1px solid rgba(255, 138, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1.75rem;
}
.ca-usage-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}
.ca-usage-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 138, 0, 0.1);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ca-usage-body { flex: 1; min-width: 0; }
.ca-usage-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.375rem;
}
.ca-usage-bar {
    width: 100%;
    height: 5px;
    background: rgba(14, 20, 40, 0.06);
    border-radius: 100px;
    overflow: hidden;
}
.ca-usage-fill {
    height: 100%;
    background: var(--color-orange);
    border-radius: 100px;
    transition: width 0.6s ease;
    min-width: 3px;
}
.ca-usage-fill--full {
    background: linear-gradient(90deg, var(--color-orange), #ef4444);
}
.ca-usage-warn {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ef4444;
    white-space: nowrap;
}

/* ── Cards Grid ── */
.ca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1.25rem;
}
.ca-card {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-base);
}
.ca-card:hover {
    border-color: rgba(14, 20, 40, 0.15);
    box-shadow: 0 4px 16px rgba(6, 11, 25, 0.06);
}
.ca-card--archived { opacity: 0.55; }
.ca-card--archived:hover { opacity: 0.7; }

/* Card header row */
.ca-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}
.ca-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ca-card-icon--draft {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.ca-card-icon--published {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.ca-card-icon--archived {
    background: rgba(14, 20, 40, 0.06);
    color: rgba(14, 20, 40, 0.4);
}

/* Status pills */
.ca-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.625rem;
    border-radius: 100px;
}
.ca-status--draft {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.ca-status--published {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.ca-status--archived {
    background: rgba(14, 20, 40, 0.06);
    color: rgba(14, 20, 40, 0.45);
}

/* Card content */
.ca-card-top { flex: 1; }
.ca-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.375rem;
    line-height: 1.35;
}
.ca-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card meta chips */
.ca-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.ca-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(14, 20, 40, 0.5);
    background: rgba(14, 20, 40, 0.03);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}
.ca-meta-item svg { flex-shrink: 0; }
.ca-meta-item--ai {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(168, 85, 247, 0.08));
    color: #7c3aed;
    font-weight: 600;
}

/* Card actions row */
.ca-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-base);
}
.ca-btn--primary {
    background: rgba(255, 138, 0, 0.08);
    color: var(--color-orange);
}
.ca-btn--primary:hover {
    background: rgba(255, 138, 0, 0.15);
}
.ca-card-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ca-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: none;
    color: rgba(14, 20, 40, 0.35);
    cursor: pointer;
    transition: all var(--transition-base);
}
.ca-icon-btn:hover {
    background: rgba(14, 20, 40, 0.06);
    color: var(--color-navy);
}

/* ── Empty State ── */
.ca-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 440px;
    margin: 0 auto;
}
.ca-empty-icon {
    color: var(--color-orange);
    opacity: 0.2;
    margin-bottom: 1rem;
}
.ca-empty h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}
.ca-empty .muted {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Steps Indicator (Create page) ── */
.ca-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}
.ca-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ca-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(14, 20, 40, 0.06);
    color: rgba(14, 20, 40, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}
.ca-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(14, 20, 40, 0.35);
    white-space: nowrap;
}
.ca-step--active .ca-step-num {
    background: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(255, 138, 0, 0.3);
}
.ca-step--active .ca-step-label {
    color: var(--color-navy);
    font-weight: 600;
}
.ca-step-line {
    width: 40px;
    height: 2px;
    background: rgba(14, 20, 40, 0.08);
    margin: 0 0.5rem;
    border-radius: 1px;
    flex-shrink: 0;
}

/* ── Create Layout (Form + Sidebar) ── */
.ca-create-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* ── Form (Create page) ── */
.ca-form-wrap {
    max-width: none;
    min-width: 0;
}
.ca-form-section {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}
.ca-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-form-section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}
.ca-form-section-head .muted {
    font-size: 0.8rem;
    margin: 0.125rem 0 0;
}
.ca-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ca-section-icon--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.ca-section-icon--orange {
    background: rgba(255, 138, 0, 0.1);
    color: var(--color-orange);
}
.ca-section-icon--red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Form fields */
.ca-field {
    margin-bottom: 1.25rem;
}
.ca-field:last-child { margin-bottom: 0; }
.ca-field label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}
.ca-field label svg {
    color: rgba(14, 20, 40, 0.35);
    flex-shrink: 0;
}
.ca-req { color: #ef4444; }
.ca-field-hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(14, 20, 40, 0.45);
    margin-top: 0.375rem;
}
.ca-field-error {
    display: block;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.375rem;
    font-weight: 500;
}
.ca-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Toggle group (anti-cheating) */
.ca-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ca-toggle-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(14, 20, 40, 0.05);
    cursor: pointer;
    transition: background var(--transition-base);
}
.ca-toggle-item:last-child { border-bottom: none; }
.ca-toggle-item:hover { background: rgba(14, 20, 40, 0.01); }
.ca-toggle-item .form-checkbox {
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--color-orange);
}
.ca-toggle-info { flex: 1; }
.ca-toggle-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.125rem;
}
.ca-toggle-hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(14, 20, 40, 0.45);
    line-height: 1.4;
}

/* Form actions */
.ca-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

/* Toggle label with inline icon */
.ca-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.125rem;
}
.ca-toggle-label svg {
    color: rgba(14, 20, 40, 0.35);
    flex-shrink: 0;
}

/* ── Create Sidebar ── */
.ca-create-sidebar {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ca-sidebar-card {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}
.ca-sidebar-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(14, 20, 40, 0.06);
    color: rgba(14, 20, 40, 0.4);
}
.ca-sidebar-card-head h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

/* Steps list */
.ca-sidebar-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ca-sidebar-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(14, 20, 40, 0.04);
}
.ca-sidebar-step:last-child { border-bottom: none; }
.ca-sidebar-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(14, 20, 40, 0.06);
    color: rgba(14, 20, 40, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ca-sidebar-step--active .ca-sidebar-step-num {
    background: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 2px 6px rgba(255, 138, 0, 0.3);
}
.ca-sidebar-step strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-navy);
}
.ca-sidebar-step span {
    font-size: 0.72rem;
    color: rgba(14, 20, 40, 0.4);
}
.ca-sidebar-step--active strong { color: var(--color-orange); }

/* Tips list */
.ca-sidebar-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.ca-sidebar-tips li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(14, 20, 40, 0.6);
    line-height: 1.45;
}
.ca-sidebar-tips svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.075rem;
}

/* Question types */
.ca-sidebar-types {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ca-sidebar-type {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8rem;
    color: var(--color-navy);
    font-weight: 500;
}
.ca-sidebar-type-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ca-sidebar-type-badge--mc   { background: #e0f2fe; color: #0284c7; }
.ca-sidebar-type-badge--text { background: #f0fdf4; color: #16a34a; }
.ca-sidebar-type-badge--video { background: #fdf4ff; color: #a855f7; }
.ca-sidebar-type-badge--file { background: #fef3c7; color: #d97706; }
.ca-sidebar-note {
    margin: 0.875rem 0 0;
    font-size: 0.72rem;
    color: rgba(14, 20, 40, 0.4);
    line-height: 1.45;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .ca-create-layout {
        grid-template-columns: 1fr;
    }
    .ca-create-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .ca-header {
        flex-direction: column;
        gap: 1rem;
    }
    .ca-header h1 { font-size: 1.4rem; }
    .ca-header-actions { width: 100%; }
    .ca-header-actions .btn { width: 100%; justify-content: center; }
    .ca-usage {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .ca-grid {
        grid-template-columns: 1fr;
    }
    .ca-steps { gap: 0; }
    .ca-step-label { display: none; }
    .ca-step-line { width: 24px; }
    .ca-create-sidebar {
        grid-template-columns: 1fr;
    }
    .ca-field-row {
        grid-template-columns: 1fr;
    }
    .ca-form-section { padding: 1.25rem; }
    .ca-form-actions {
        flex-direction: column-reverse;
    }
    .ca-form-actions .btn { width: 100%; justify-content: center; }
}


/* ========================================================================
   CUSTOM ASSESSMENTS – INNER PAGES  (ca-*)
   Detail · Edit · Questions · Session Results
   ======================================================================== */

/* ── Header Meta ── */
.ca-header-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 0.375rem;
}

/* ── Step Done variant (edit page) ── */
.ca-step-num--done {
    background: #d1fae5;
    color: #059669;
}

/* ========================================================================
   DETAIL PAGE – Analytics · Table · Pagination · Actions
   ======================================================================== */

/* Analytics Dashboard */
.ca-analytics {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.ca-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ca-stats-strip:last-child { margin-bottom: 0; }
.ca-stat {
    background: rgba(14, 20, 40, 0.02);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ca-stat-icon {
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}
.ca-stat-icon--green { background: #d1fae5; color: #059669; }
.ca-stat-icon--blue  { background: #dbeafe; color: #1d4ed8; }
.ca-stat-icon--gray  { background: #f3f4f6; color: #6b7280; }
.ca-stat-body { display: flex; flex-direction: column; }
.ca-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}
.ca-stat-label {
    font-size: 0.78rem;
    color: rgba(14, 20, 40, 0.5);
}

/* Performance metrics */
.ca-perf {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ca-perf-bar-card {
    background: rgba(14, 20, 40, 0.02);
    border-radius: 10px;
    padding: 1rem;
}
.ca-perf-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}
.ca-perf-bar-label {
    font-size: 0.8rem;
    color: rgba(14, 20, 40, 0.5);
}
.ca-perf-bar-value {
    font-size: 1rem;
    font-weight: 700;
}
.ca-perf--good { color: #059669; }
.ca-perf--mod  { color: #d97706; }
.ca-perf--low  { color: #dc2626; }
.ca-perf-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.ca-perf-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), #ff6b00);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.ca-perf-fill--green {
    background: linear-gradient(90deg, #059669, #10b981);
}
.ca-perf-scores {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 10px;
    padding: 1rem;
}
.ca-score-item { text-align: center; }
.ca-score-num {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
}
.ca-score-lbl {
    font-size: 0.7rem;
    color: rgba(14, 20, 40, 0.5);
}
.ca-perf-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 10px;
    padding: 1rem;
    min-width: 120px;
}
.ca-perf-time-icon {
    width: 40px;
    height: 40px;
    background: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    flex-shrink: 0;
}
.ca-perf-time-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    display: block;
}
.ca-perf-time-lbl {
    font-size: 0.7rem;
    color: rgba(14, 20, 40, 0.5);
}

/* Level distribution */
.ca-levels {
    background: rgba(14, 20, 40, 0.02);
    border-radius: 10px;
    padding: 1rem;
}
.ca-levels-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}
.ca-levels-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.ca-level-row {
    display: grid;
    grid-template-columns: 56px 1fr 36px;
    align-items: center;
    gap: 0.75rem;
}
.ca-level-name {
    font-size: 0.8rem;
    color: rgba(14, 20, 40, 0.5);
}
.ca-level-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.ca-level-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.ca-level-fill--junior { background: #059669; }
.ca-level-fill--mid    { background: #d97706; }
.ca-level-fill--senior { background: #dc2626; }
.ca-level-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-navy);
    text-align: right;
}

/* Section block (candidates, actions) */
.ca-section {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ca-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}
.ca-section-head .muted {
    font-size: 0.8rem;
    margin: 0.125rem 0 0;
}

/* Table */
.ca-table-wrap {
    overflow-x: auto;
    margin: 0 -1.5rem -1.5rem;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.ca-table {
    width: 100%;
    border-collapse: collapse;
}
.ca-table th,
.ca-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(14, 20, 40, 0.06);
    font-size: 0.85rem;
}
.ca-table th {
    background: rgba(14, 20, 40, 0.02);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(14, 20, 40, 0.45);
}
.ca-table tbody tr:last-child td { border-bottom: none; }
.ca-table tbody tr:hover { background: rgba(14, 20, 40, 0.01); }
.ca-candidate {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.ca-candidate strong {
    font-size: 0.9rem;
    color: var(--color-navy);
}
.ca-candidate-email {
    font-size: 0.78rem;
    color: rgba(14, 20, 40, 0.45);
}

/* Level pills (table) */
.ca-level-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.ca-level-pill--junior { background: #d1fae5; color: #059669; }
.ca-level-pill--mid    { background: #fef3c7; color: #d97706; }
.ca-level-pill--senior { background: #fee2e2; color: #dc2626; }

/* Status pills (table) */
.ca-status-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 12px;
    white-space: nowrap;
}
.ca-status-pill--invited     { background: #f3f4f6; color: #6b7280; }
.ca-status-pill--in_progress { background: #dbeafe; color: #1d4ed8; }
.ca-status-pill--submitted   { background: #d1fae5; color: #059669; }

/* Score display */
.ca-score { font-weight: 600; }
.ca-score--pass { color: #059669; }
.ca-score--fail { color: #dc2626; }

/* Pagination */
.ca-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0;
}
.ca-page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(14, 20, 40, 0.1);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-navy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-base);
}
.ca-page-btn:hover:not(.ca-page-btn--disabled) {
    border-color: var(--color-orange);
    color: var(--color-orange);
}
.ca-page-btn--disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}
.ca-page-info {
    font-size: 0.85rem;
    color: rgba(14, 20, 40, 0.5);
}

/* Actions row */
.ca-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.ca-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(14, 20, 40, 0.1);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-navy);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}
.ca-action-btn:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}
.ca-action-btn--danger:hover {
    border-color: #ef4444;
    color: #ef4444;
}


/* ========================================================================
   QUESTIONS PAGE – Import · Question List · Display
   ======================================================================== */

/* Import Options */
.ca-import-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.ca-import-card {
    background: var(--color-white);
    border: 2px dashed rgba(14, 20, 40, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}
.ca-import-card:hover {
    border-color: var(--color-orange);
    border-style: solid;
}
.ca-import-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ca-import-icon--ai {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: var(--color-white);
}
.ca-import-icon--csv {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--color-white);
}
.ca-import-icon--manual {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--color-white);
}
.ca-import-content h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--color-navy);
}
.ca-import-content p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(14, 20, 40, 0.5);
}

/* Questions List */
.ca-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ca-question {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}
.ca-question-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.ca-q-num {
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.ca-q-type {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.ca-q-type--multiple_choice { background: #e0f2fe; color: #0284c7; }
.ca-q-type--text_short,
.ca-q-type--text_long { background: #f0fdf4; color: #16a34a; }
.ca-q-type--video { background: #fdf4ff; color: #a855f7; }
.ca-q-type--file_upload { background: #fef3c7; color: #d97706; }
.ca-q-ai {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.ca-q-cat {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.ca-q-diff {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}
.ca-q-diff--1, .ca-q-diff--2 { background: #d1fae5; color: #059669; }
.ca-q-diff--3 { background: #fef3c7; color: #d97706; }
.ca-q-diff--4, .ca-q-diff--5 { background: #fee2e2; color: #dc2626; }
.ca-q-pts {
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.ca-q-text {
    font-size: 0.95rem;
    color: var(--color-navy);
    margin: 0 0 1rem;
    line-height: 1.55;
}

/* Options list (question display) */
.ca-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}
.ca-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-navy);
    border: 1px solid transparent;
}
.ca-opt--correct {
    background: #d1fae5;
    border-color: #10b981;
}
.ca-opt-letter {
    width: 24px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.ca-opt--correct .ca-opt-letter {
    background: #10b981;
    color: var(--color-white);
}

/* Question settings (text/video/file meta) */
.ca-q-settings {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}
.ca-q-setting {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: rgba(14, 20, 40, 0.5);
}
.ca-q-setting svg { flex-shrink: 0; }
.ca-q-setting--ref { color: #16a34a; }

/* Explanation */
.ca-explanation {
    font-size: 0.8rem;
    color: rgba(14, 20, 40, 0.55);
    padding: 0.75rem;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.ca-explanation strong {
    color: rgba(14, 20, 40, 0.7);
}

/* Question actions (edit/delete) */
.ca-question-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-icon-btn--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}


/* ========================================================================
   SESSION RESULTS PAGE  (ca-result-*)
   ======================================================================== */

/* Result Summary */
.ca-result-summary {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.ca-result-score {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-score-circle {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.ca-score-circle svg { width: 100%; height: 100%; }
.ca-score-circle-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
}
.ca-result-detail { flex: 1; }
.ca-pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.ca-pass-badge--pass { background: #d1fae5; color: #059669; }
.ca-pass-badge--fail { background: #fee2e2; color: #dc2626; }
.ca-result-context {
    font-size: 0.9rem;
    color: var(--color-navy);
    line-height: 1.6;
    margin: 0;
}

/* Result stats row */
.ca-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-result-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ca-result-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 20, 40, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(14, 20, 40, 0.4);
    flex-shrink: 0;
}
.ca-result-stat-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
}
.ca-result-stat-lbl {
    display: block;
    font-size: 0.75rem;
    color: rgba(14, 20, 40, 0.45);
}

/* Trust / Integrity report */
.ca-trust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.ca-trust-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}
.ca-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}
.ca-flag--warn { background: #fef3c7; color: #d97706; }
.ca-flag--ok   { background: #d1fae5; color: #059669; }
.ca-trust-body {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.ca-trust-score { text-align: center; flex-shrink: 0; }
.ca-trust-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 0.375rem;
}
.ca-trust-circle svg { width: 100%; height: 100%; }
.ca-trust-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}
.ca-trust-score--high .ca-trust-val { color: #059669; }
.ca-trust-score--med  .ca-trust-val { color: #d97706; }
.ca-trust-score--low  .ca-trust-val { color: #dc2626; }
.ca-trust-lbl {
    font-size: 0.75rem;
    color: rgba(14, 20, 40, 0.5);
    font-weight: 500;
}

/* Violations */
.ca-violations {
    display: flex;
    gap: 1.25rem;
    flex: 1;
}
.ca-violation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 10px;
    flex: 1;
}
.ca-violation--active {
    background: rgba(239, 68, 68, 0.05);
}
.ca-violation-icon {
    color: rgba(14, 20, 40, 0.3);
}
.ca-violation--active .ca-violation-icon { color: #ef4444; }
.ca-violation-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
}
.ca-violation--active .ca-violation-count { color: #dc2626; }
.ca-violation-lbl {
    font-size: 0.7rem;
    color: rgba(14, 20, 40, 0.45);
    text-align: center;
}

/* Telemetry log */
.ca-telemetry {
    margin-top: 1rem;
    border: 1px solid rgba(14, 20, 40, 0.06);
    border-radius: 8px;
}
.ca-telemetry summary {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(14, 20, 40, 0.55);
    cursor: pointer;
}
.ca-telemetry-entries {
    max-height: 240px;
    overflow-y: auto;
    padding: 0 1rem 0.75rem;
}
.ca-telemetry-row {
    display: grid;
    grid-template-columns: 160px 1fr 48px;
    gap: 0.75rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(14, 20, 40, 0.04);
    font-size: 0.75rem;
}
.ca-telemetry-time { color: rgba(14, 20, 40, 0.4); font-family: monospace; }
.ca-telemetry-type { color: var(--color-navy); font-weight: 500; }
.ca-telemetry-q    { color: rgba(14, 20, 40, 0.4); text-align: right; }

/* Results list (question-by-question) */
.ca-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ca-result-card {
    background: var(--color-white);
    border: 1px solid rgba(14, 20, 40, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid rgba(14, 20, 40, 0.08);
}
.ca-result-card--correct { border-left-color: #10b981; }
.ca-result-card--wrong   { border-left-color: #ef4444; }
.ca-result-card--pending { border-left-color: #f59e0b; }
.ca-result-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

/* Question badges */
.ca-q-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.ca-q-badge--correct { background: #d1fae5; color: #059669; }
.ca-q-badge--wrong   { background: #fee2e2; color: #dc2626; }
.ca-q-badge--score   { background: #fef3c7; color: #d97706; }
.ca-q-badge--pending { background: #f3f4f6; color: #6b7280; }

/* Answer options (result display) */
.ca-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.ca-answer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(14, 20, 40, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.85rem;
}
.ca-answer--correct {
    background: #d1fae5;
    border-color: #10b981;
}
.ca-answer--wrong {
    background: #fee2e2;
    border-color: #ef4444;
}
.ca-answer--selected { font-weight: 600; }
.ca-answer-letter {
    width: 24px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.ca-answer--correct .ca-answer-letter { background: #10b981; color: #fff; }
.ca-answer--wrong .ca-answer-letter   { background: #ef4444; color: #fff; }
.ca-answer-text { flex: 1; }
.ca-answer-mark {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.ca-answer-mark--correct { color: #10b981; }
.ca-answer-mark--wrong   { color: #ef4444; }

/* Response box (text/video/file) */
.ca-response-box {
    background: rgba(14, 20, 40, 0.02);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.ca-response-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(14, 20, 40, 0.45);
    margin-bottom: 0.5rem;
}
.ca-response-text {
    font-size: 0.9rem;
    color: var(--color-navy);
    line-height: 1.6;
    white-space: pre-wrap;
}
.ca-response-video {
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
}
.ca-response-file {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(14, 20, 40, 0.04);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-navy);
}
.ca-download-link {
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
}
.ca-download-link:hover { text-decoration: underline; }
.ca-no-response {
    font-size: 0.85rem;
    color: rgba(14, 20, 40, 0.35);
    font-style: italic;
    padding: 0.75rem;
    text-align: center;
}

/* Scoring section */
.ca-scoring {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(14, 20, 40, 0.06);
}
.ca-scoring--pending { text-align: center; }
.ca-scoring-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}
.ca-scored-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.ca-scored-badge--ai     { background: #dbeafe; color: #1d4ed8; }
.ca-scored-badge--manual { background: #f3f4f6; color: #6b7280; }
.ca-scoring-feedback {
    font-size: 0.85rem;
    color: rgba(14, 20, 40, 0.6);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}


.ai-count-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ai-count-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========================================================================
   QUESTIONS MODAL FORM STYLES (shared by AI / CSV / Manual / Edit modals)
   ======================================================================== */

/* Number Input */
.number-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    padding: 3px;
}
.number-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-navy);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 1px 2px rgba(14, 20, 40, 0.05);
}
.number-btn:hover {
    background: var(--color-orange);
    color: var(--color-white);
}
.number-input {
    width: 48px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    color: var(--color-navy);
}

/* CSV Upload */
.csv-info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.csv-info-icon {
    color: #0ea5e9;
    flex-shrink: 0;
}
.csv-info-content strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-navy);
    margin-bottom: 4px;
}
.csv-info-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}
.download-template-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-navy);
    text-decoration: none;
    transition: all var(--transition-base);
    margin-bottom: 20px;
}
.download-template-btn:hover {
    border-color: var(--color-success);
    color: var(--color-success);
    background: #f0fdf4;
}
.upload-zone {
    position: relative;
    border: 1.5px dashed #c4c9d2;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-base);
    background: rgba(14, 20, 40, 0.015);
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-orange);
    background: rgba(255, 138, 0, 0.03);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.06);
}
.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    color: #9ca3af;
    margin-bottom: 12px;
}
.upload-text {
    margin: 0 0 6px 0;
    color: var(--color-navy);
    font-size: 0.95rem;
}
.upload-link {
    color: var(--color-orange);
    font-weight: 600;
}
.upload-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.file-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    margin-top: 16px;
}
.file-icon {
    color: var(--color-success);
}
.file-info {
    flex: 1;
}
.file-name {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
    font-size: 0.9rem;
}
.file-size {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.file-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.file-remove:hover {
    color: #dc2626;
    background: #fee2e2;
}

/* Manual Form Sections */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.option-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.option-label {
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}
.option-label.required-option {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}
.option-input-group .form-input {
    flex: 1;
}

/* Answer Selector */
.answer-selector {
    display: flex;
    gap: 8px;
}
.answer-option {
    cursor: pointer;
}
.answer-option input {
    position: absolute;
    opacity: 0;
}
.answer-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 700;
    color: #6b7280;
    transition: all var(--transition-base);
}
.answer-option input:checked + span {
    border-color: var(--color-success);
    background: #d1fae5;
    color: #059669;
}
.answer-option:hover span {
    border-color: var(--color-success);
}

/* Button Variants — override pill radius from .btn base */
.modal-footer .btn {
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.9rem;
}
.btn-ai {
    background: linear-gradient(135deg, var(--color-info) 0%, #1d4ed8 100%);
    border: none;
}
.btn-ai:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.btn-ai:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-csv {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    border: none;
}
.btn-csv:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.btn-manual {
    background: linear-gradient(135deg, var(--color-orange) 0%, #d97706 100%);
    border: none;
}
.btn-invite {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ea580c 100%);
    border: none;
}
.btn-invite:hover {
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
}
.btn-bulk {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
}
.btn-bulk:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.btn-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
}
.btn-edit:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Keyframe Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ========================================================================
   CUSTOM ASSESSMENTS PREVIEW (custom_assessments/preview.html)
   ======================================================================== */

.preview-shell {
    max-width: 900px;
    margin: 0 auto;
}
.preview-header {
    margin-bottom: 24px;
}
.preview-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--color-warning);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    font-weight: 600;
    color: #92400e;
}
.preview-banner svg {
    flex-shrink: 0;
}
.preview-banner span {
    flex: 1;
}
.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}
.candidate-preview {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.session-header-preview {
    background: var(--color-white);
    border-bottom: 2px solid #e2e8f0;
}
.session-header-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.assessment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
}
.assessment-badge svg {
    color: var(--color-orange);
}
.header-progress {
    flex: 1;
    min-width: 0;
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange) 0%, #ff6b00 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}
.progress-stats-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}
.stat-item strong {
    color: var(--color-navy);
    font-weight: 700;
}
.time-left {
    color: var(--color-orange);
    font-weight: 600;
}
.preview-content {
    padding: 32px;
}
.question-card-enhanced {
    background: var(--color-white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
}
.question-category {
    display: inline-flex;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe8cc 100%);
    border: 1px solid var(--color-orange);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-orange);
}
.question-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    margin: 0 0 24px;
}
.input-instruction {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 16px;
}
.options-list-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 15px;
    color: var(--color-navy);
    line-height: 1.5;
    position: relative;
}
.option-preview:hover {
    border-color: var(--color-orange);
    background: #fff9f5;
}
.option-preview input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-orange);
    flex-shrink: 0;
    margin-top: 2px;
}
.option-preview.correct-answer {
    border-color: var(--color-success);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}
.correct-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}
.correct-indicator svg {
    color: #059669;
}
.explanation-preview {
    margin-top: 20px;
    padding: 16px;
    background: #f0f9ff;
    border-left: 4px solid var(--color-info);
    border-radius: var(--radius-md);
}
.explanation-preview strong {
    display: block;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 8px;
}
.explanation-preview p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}
.preview-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ========================================================================
   GETTING STARTED PAGE  (gs-*)
   ======================================================================== */

.gs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.gs-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gs-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #e67600 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}
.gs-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}

/* Progress */
.gs-progress {
    margin-bottom: 1.75rem;
}
.gs-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.gs-progress-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
}
.gs-progress-pct {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-orange);
}
.gs-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(14, 20, 40, 0.07);
    border-radius: 999px;
    overflow: hidden;
}
.gs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange) 0%, #e67600 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

/* Completion Banner */
.gs-complete-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
}
.gs-complete-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    flex-shrink: 0;
}
.gs-complete-banner h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #059669;
    margin: 0 0 0.2rem;
}
.gs-complete-banner p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}
.gs-complete-banner a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 600;
}
.gs-complete-banner a:hover { text-decoration: underline; }

/* Steps List */
.gs-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.gs-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gs-step:hover {
    border-color: var(--color-orange);
    box-shadow: 0 2px 12px rgba(255, 138, 0, 0.06);
}
.gs-step--done {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.18);
}
.gs-step--done:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.06);
}

/* Step Check Circle */
.gs-step-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--color-orange-light);
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.88rem;
}
.gs-step--done .gs-step-check {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.gs-step-num { font-weight: 700; }

/* Step Body */
.gs-step-body {
    flex: 1;
    min-width: 0;
}
.gs-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}
.gs-step--done .gs-step-title {
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(16, 185, 129, 0.4);
}
.gs-step-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Step Action Button */
.gs-step-action {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.gs-step--done .gs-step-action {
    color: #059669;
    pointer-events: none;
    opacity: 0.7;
}

/* Help Footer */
.gs-help {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-muted);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.gs-help p { margin: 0; }
.gs-help a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 600;
}
.gs-help a:hover { text-decoration: underline; }
.gs-help svg { flex-shrink: 0; color: var(--color-text-muted); }

/* gs-* Responsive */
@media (max-width: 768px) {
    .gs-step {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    .gs-step-action {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .gs-header-icon {
        width: 44px;
        height: 44px;
    }
    .gs-header-icon svg {
        width: 22px;
        height: 22px;
    }
    .gs-header h1 { font-size: 1.4rem; }
    .gs-complete-banner { flex-direction: column; text-align: center; }
}

/* Getting Started – Workflow Diagram */
.gs-workflow {
    background: var(--color-surface, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.gs-workflow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.gs-wf-step {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
}
.gs-wf-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-orange, #ff8a00);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.gs-wf-step h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy, #0a1628);
}
.gs-wf-step p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.3;
}
.gs-wf-arrow {
    color: var(--color-text-muted, #ccc);
    padding-top: 0.6rem;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .gs-workflow-steps {
        flex-direction: column;
        align-items: center;
    }
    .gs-wf-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }
    .gs-wf-step {
        padding: 0.5rem 0;
    }
}

/* Getting Started – Pro Badge */
.gs-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff8a00, #ff6b00);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Empty State – Action Buttons */
.ap-empty-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    justify-content: center;
}

/* Dashboard Empty State */
.db-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.db-empty-state p {
    margin: 0 0 0.25rem;
}
.db-empty-state .muted {
    margin-bottom: 1rem;
}
.db-empty-state .btn {
    margin-top: 0.5rem;
}


/* ========================================================================
   PLATFORM GUIDE PAGE  —  gd-* prefix
   ======================================================================== */

/* Header */
.gd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.gd-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gd-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-orange, #ff8a00), #ff6b00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.25);
}
.gd-header h1 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
}
.gd-header .muted {
    margin: 0.15rem 0 0;
}

/* Table of Contents */
.gd-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gd-toc-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    text-decoration: none;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
    transition: all 0.2s ease;
}
.gd-toc-item:hover {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 15%, transparent);
}
.gd-toc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.8;
}
.gd-toc-item:hover .gd-toc-icon {
    opacity: 1;
}

/* Section Head (icon badge + title) */
.gd-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.gd-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.gd-section-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid color-mix(in srgb, var(--accent, #ff8a00) 20%, transparent);
}
.gd-section-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy, #0a1628);
}
.gd-section-head p {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6b7280);
}
.gd-section-head--compact {
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.gd-section-head--compact h2 {
    font-size: 1.05rem;
}
.gd-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--badge) 12%, transparent);
    color: var(--badge);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Cards */
.gd-card {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-left: 3px solid color-mix(in srgb, var(--accent, #e5e7eb) 35%, transparent);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: border-left-color 0.2s;
}
.gd-card:hover {
    border-left-color: color-mix(in srgb, var(--accent, #e5e7eb) 60%, transparent);
}
.gd-card p {
    margin: 0 0 0.75rem;
    color: var(--color-text, #374151);
    line-height: 1.6;
    font-size: 0.9rem;
}
.gd-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent, var(--color-text-muted, #6b7280));
    margin-bottom: 0.6rem;
}

/* Two-column layout */
.gd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Checklist items (replaces bullet lists) */
.gd-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gd-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--color-text, #374151);
    line-height: 1.5;
}
.gd-check-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, var(--color-orange, #ff8a00));
    flex-shrink: 0;
    margin-top: 0.45rem;
}
.gd-check-dot--pro {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

/* Feature grid (Dashboard section) */
.gd-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.65rem;
}
.gd-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: color-mix(in srgb, var(--fa, #ff8a00) 3%, #fff);
    border: 1px solid color-mix(in srgb, var(--fa, #e5e7eb) 12%, transparent);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.gd-feature:hover {
    background: color-mix(in srgb, var(--fa, #ff8a00) 6%, #fff);
    border-color: color-mix(in srgb, var(--fa, #e5e7eb) 25%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--fa, #000) 8%, transparent);
}
.gd-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--fa, var(--color-orange, #ff8a00)) 12%, transparent);
    color: var(--fa, var(--color-orange, #ff8a00));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gd-feature strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-navy, #0a1628);
    margin-bottom: 0.15rem;
}
.gd-feature p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.45;
}

/* Numbered step cards (AI Screening) */
.gd-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.gd-step-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-left: 3px solid color-mix(in srgb, var(--accent, #ec4899) 30%, transparent);
    border-bottom: none;
    position: relative;
    transition: background 0.15s;
}
.gd-step-card:hover {
    background: color-mix(in srgb, var(--accent, #ec4899) 2%, #fff);
}
.gd-step-card:first-child {
    border-radius: 10px 10px 0 0;
}
.gd-step-card:last-child {
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0 0 10px 10px;
}
.gd-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gd-step-body h4 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy, #0a1628);
}
.gd-step-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text, #374151);
    line-height: 1.55;
}
.gd-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}
.gd-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    background: color-mix(in srgb, #ec4899 10%, transparent);
    color: #be185d;
}

/* Tip callout */
.gd-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--accent, var(--color-orange, #ff8a00)) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--color-orange, #ff8a00)) 18%, transparent);
    border-left: 3px solid var(--accent, var(--color-orange, #ff8a00));
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    margin: 1rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text, #374151);
}
.gd-tip svg {
    flex-shrink: 0;
    color: var(--accent, var(--color-orange, #ff8a00));
    margin-top: 0.1rem;
}

/* URL bar (vacancy page) */
.gd-url-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: color-mix(in srgb, var(--accent, #14b8a6) 4%, #f8f9fa);
    border: 1px solid color-mix(in srgb, var(--accent, #14b8a6) 15%, transparent);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.gd-url-bar svg {
    color: var(--accent, var(--color-text-muted, #6b7280));
    flex-shrink: 0;
}
.gd-url-bar a {
    color: var(--accent, var(--color-orange, #ff8a00));
    font-weight: 600;
    text-decoration: none;
}
.gd-url-bar a:hover { text-decoration: underline; }

/* Quick action cards */
.gd-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
}
.gd-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text, #374151);
    transition: all 0.2s ease;
}
.gd-action-card:hover {
    border-color: color-mix(in srgb, var(--ac) 30%, transparent);
    background: color-mix(in srgb, var(--ac) 3%, #fff);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ac) 12%, transparent);
    transform: translateY(-2px);
}
.gd-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ac) 10%, transparent);
    color: var(--ac);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}
.gd-action-card h4 {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-navy, #0a1628);
}
.gd-action-card p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6b7280);
}

/* Plan chip (header) */
.gd-plan-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.gd-plan-chip--starter {
    background: color-mix(in srgb, #10b981 12%, transparent);
    color: #059669;
}
.gd-plan-chip--pro {
    background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(139,92,246,0.12));
    color: #9333ea;
}
.gd-plan-chip--enterprise {
    background: color-mix(in srgb, #3b82f6 12%, transparent);
    color: #2563eb;
}

/* Sub-heading within cards */
.gd-sub-heading {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy, #0a1628);
}

/* Detail/muted text */
.gd-detail-text {
    font-size: 0.82rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.5;
    margin: 0;
}

/* "All Plans" label next to card-label */
.gd-all-plans {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: color-mix(in srgb, #10b981 12%, transparent);
    color: #059669;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Plans comparison grid */
.gd-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.gd-plan-card {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.gd-plan-card--featured {
    border-color: #ec4899;
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.15), 0 4px 16px rgba(236, 72, 153, 0.08);
}
.gd-plan-card--current {
    border-color: var(--color-orange, #ff8a00);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.15);
}
.gd-plan-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.gd-plan-card-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy, #0a1628);
}
.gd-plan-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-navy, #0a1628);
}
.gd-plan-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted, #6b7280);
}
.gd-plan-desc {
    font-size: 0.82rem !important;
    color: var(--color-text-muted, #6b7280) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.5 !important;
}
.gd-plan-limits {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--color-border, #e5e7eb);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: var(--color-text, #374151);
}
.gd-plan-limits strong {
    color: var(--color-navy, #0a1628);
}
.gd-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.gd-plan-features li {
    font-size: 0.8rem;
    color: var(--color-text, #374151);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.45;
}
.gd-plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, var(--color-orange, #ff8a00));
}
.gd-plan-features li:first-child::before {
    display: none;
}
.gd-plan-features li:first-child {
    padding-left: 0;
    font-weight: 600;
    color: var(--color-navy, #0a1628);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}
.gd-plan-current-label {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent, var(--color-orange, #ff8a00));
    text-align: center;
}

/* Assessment type grid */
.gd-assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.gd-assessment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: color-mix(in srgb, var(--assess) 4%, #f8f9fa);
    border: 1px solid color-mix(in srgb, var(--assess) 8%, transparent);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.gd-assessment-item:hover {
    background: color-mix(in srgb, var(--assess) 8%, #f8f9fa);
    border-color: color-mix(in srgb, var(--assess) 20%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--assess) 10%, transparent);
}
.gd-assessment-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--assess) 12%, transparent);
    color: var(--assess);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gd-assessment-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-navy, #0a1628);
    margin-bottom: 0.1rem;
}
.gd-assessment-item p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.4;
}

/* Pipeline flow (AI Screening) */
.gd-pipeline-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}
.gd-pipeline-stage {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: color-mix(in srgb, #ec4899 8%, transparent);
    color: #be185d;
    white-space: nowrap;
}
.gd-pipeline-stage--final {
    background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(139,92,246,0.15));
    color: #7c3aed;
}
.gd-pipeline-arrow {
    color: var(--color-text-muted, #6b7280);
    font-size: 0.8rem;
}

/* Upsell variant for cards and tips */
.gd-card--upsell {
    border-color: color-mix(in srgb, #ec4899 25%, transparent);
    background: color-mix(in srgb, #ec4899 3%, #fff);
}
.gd-tip--upgrade {
    background: color-mix(in srgb, #ec4899 6%, transparent);
    border-color: color-mix(in srgb, #ec4899 18%, transparent);
    border-left-color: #ec4899;
}
.gd-tip--upgrade svg {
    color: #ec4899;
}

/* Help footer */
.gd-help-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, color-mix(in srgb, #6366f1 4%, #f8f9fa), color-mix(in srgb, #ec4899 4%, #f8f9fa));
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    margin-top: 1rem;
}
.gd-help-footer svg { flex-shrink: 0; color: #6366f1; }
.gd-help-footer p { margin: 0; font-size: 0.88rem; }
.gd-help-footer a { color: #6366f1; font-weight: 600; text-decoration: none; }
.gd-help-footer a:hover { text-decoration: underline; }

/* gd-* Responsive */
@media (max-width: 768px) {
    .gd-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .gd-header-icon { width: 44px; height: 44px; }
    .gd-header-icon svg { width: 22px; height: 22px; }
    .gd-header h1 { font-size: 1.3rem; }
    .gd-toc { position: static; overflow-x: auto; flex-wrap: nowrap; }
    .gd-two-col { grid-template-columns: 1fr; }
    .gd-feature-grid { grid-template-columns: 1fr; }
    .gd-plans-grid { grid-template-columns: 1fr; }
    .gd-assessment-grid { grid-template-columns: 1fr; }
    .gd-actions { grid-template-columns: 1fr 1fr; }
    .gd-card { padding: 1rem; }
    .gd-step-card { padding: 1rem; }
    .gd-pipeline-flow { gap: 0.2rem; }
    .gd-pipeline-stage { padding: 0.25rem 0.5rem; font-size: 0.7rem; }
}
@media (max-width: 480px) {
    .gd-actions { grid-template-columns: 1fr; }
    .gd-toc-item { font-size: 0.75rem; padding: 0.3rem 0.55rem; }
    .gd-toc-icon svg { width: 12px; height: 12px; }
    .gd-pipeline-flow { flex-direction: column; align-items: flex-start; }
    .gd-pipeline-arrow { transform: rotate(90deg); }
}


/* ========================================================================
   RESPONSIVE MEDIA QUERIES (consolidated from all pages)
   ======================================================================== */

@media (max-width: 1024px) {
    /* manage.html */
    .portal-card-grid {
        grid-template-columns: 1fr;
    }
    .sessions-table {
        font-size: 0.85rem;
    }
    .sessions-table th,
    .sessions-table td {
        padding: 0.875rem;
    }

    /* projects/detail.html */
    .pipeline-board {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    /* dashboard.html */
    .video-placeholder {
        padding: var(--space-5);
    }
    .video-placeholder svg {
        width: 60px;
        height: 60px;
    }
    .video-help {
        font-size: 0.8rem;
        padding: 0.875rem 1.25rem;
    }
    .onboarding-card {
        padding: var(--space-5);
    }
    .onboarding-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    .onboarding-icon {
        width: 48px;
        height: 48px;
    }
    .onboarding-icon svg {
        width: 24px;
        height: 24px;
    }
    .onboarding-title h2 {
        font-size: var(--text-2xl);
    }
    .onboarding-step {
        flex-direction: column;
        gap: var(--space-4);
        padding: 1.25rem;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    .step-content h4 {
        font-size: var(--text-base);
    }
    .step-content p {
        font-size: var(--text-sm);
    }
    .onboarding-help {
        flex-direction: column;
        text-align: center;
    }

    /* settings.html */
    .color-picker-grid {
        grid-template-columns: 1fr;
    }
    .logo-upload-area {
        flex-direction: column;
        text-align: center;
    }
    .branding-toggle-card {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }
    .form-actions-bar {
        flex-direction: column;
    }
    .form-actions-bar .btn {
        width: 100%;
        justify-content: center;
    }
    .card-title-row {
        flex-direction: column;
    }
    .subsection-header {
        flex-direction: column;
    }

    /* billing.html */
    .plan-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    .plan-pricing {
        text-align: left;
    }
    .plan-cards-grid {
        grid-template-columns: 1fr;
    }
    .billing-support-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .billing-support-card .btn {
        width: 100%;
    }
    .modal-content {
        margin: var(--space-4);
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }

    /* assessments.html - old responsive rules replaced by as-* @media block above */

    /* assessments/detail.html */
    .recommendation-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .recommendation-metrics {
        width: 100%;
        justify-content: space-around;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    .notes-form-grid {
        grid-template-columns: 1fr;
    }
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* assessments/manage.html */
    .section-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    .filter-form {
        width: 100%;
    }
    .select-input {
        width: 100%;
    }
    .sessions-table-wrapper {
        margin: -1rem;
        margin-top: 0;
    }
    .level-options {
        grid-template-columns: 1fr;
    }
    .level-option.recommended .level-card::after {
        right: auto;
        left: 50%;
    }

    /* projects/detail.html */
    .breadcrumb-nav {
        font-size: 0.85rem;
    }
    .page-header-with-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .pipeline-board {
        grid-template-columns: 1fr;
    }
    .activity-table-header,
    .activity-table-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    .activity-table-header {
        display: none;
    }
    .activity-table-row {
        border: 1px solid var(--color-border-medium);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-3);
        padding: var(--space-4);
    }
    .activity-table-row::before {
        content: none;
    }
    .activity-candidate::before {
        content: "Candidate: ";
        font-weight: 400;
        color: var(--color-text-muted);
    }
    .activity-assessment::before {
        content: "Assessment: ";
        font-weight: 400;
        color: var(--color-text-muted);
    }
    .activity-time::before {
        content: "Updated: ";
        font-weight: 400;
        color: var(--color-text-muted);
    }
    .activity-actions {
        justify-content: flex-start;
        margin-top: var(--space-2);
    }

    /* projects/list.html */
    .form-row {
        grid-template-columns: 1fr;
    }
    .portal-card-grid.two-up {
        grid-template-columns: 1fr;
    }
    .project-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .project-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* custom_assessments/detail.html */
    .ca-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .ca-perf {
        grid-template-columns: 1fr;
    }
    .ca-result-stats {
        grid-template-columns: 1fr;
    }
    .ca-trust-body {
        flex-direction: column;
        align-items: stretch;
    }

    /* custom_assessments/questions.html */
    .ca-import-options {
        grid-template-columns: 1fr;
    }
    .ca-options,
    .ca-answers {
        grid-template-columns: 1fr;
    }
    .form-row,
    .form-row.three-col {
        grid-template-columns: 1fr;
    }
    .level-selector {
        grid-template-columns: 1fr;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }

    /* custom_assessments/session_result.html */
    .ca-result-score {
        flex-direction: column;
        text-align: center;
    }
    .ca-violations {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    /* settings.html */
    .color-input-wrapper {
        flex-wrap: wrap;
    }
    .color-hex-input {
        width: 100%;
        margin-top: 0.25rem;
    }

    /* custom_assessments/create.html */
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-row.three-col {
        grid-template-columns: 1fr;
    }

    /* Modal responsive */
    .modal-content {
        border-radius: 16px;
    }
    .modal-header {
        padding: 20px 20px 16px;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-footer {
        padding: 16px 20px;
        border-radius: 0 0 16px 16px;
    }
    .modal-icon {
        width: 40px;
        height: 40px;
    }
    .modal-icon svg {
        width: 20px;
        height: 20px;
    }

    /* custom_assessments/edit.html – uses ca-form-section from ca-* responsive block above */

    /* custom_assessments/preview.html */
    .preview-banner {
        flex-direction: column;
        text-align: center;
    }
    .session-header-content {
        flex-direction: column;
        gap: 12px;
    }
    .question-card-enhanced {
        padding: 20px;
    }
    .question-title {
        font-size: 18px;
    }
    .preview-navigation {
        flex-direction: column;
        gap: 12px;
    }
    .preview-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* custom_assessments/detail.html */
    .ca-stats-strip {
        grid-template-columns: 1fr;
    }
    .ca-perf-scores {
        flex-direction: column;
    }
    .ca-telemetry-row {
        grid-template-columns: 1fr 1fr;
    }
    .ca-telemetry-time { display: none; }
}

/* ═══════════════════════════════════════════════════
   Public Careers Pages  (.cr-*)
   ═══════════════════════════════════════════════════ */

.cr-body {
    background: #fafaf8;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: #1a1a1a;
}

.cr-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ── Hero / Header ── */
.cr-hero {
    text-align: center;
    padding: 2.5rem 0 2rem;
}
.cr-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 1rem;
}
.cr-logo-sm {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}
.cr-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: #0e1428;
}
.cr-subtitle {
    color: #888;
    font-size: 1.05rem;
}

/* ── Breadcrumb ── */
.cr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}
.cr-breadcrumb a {
    color: #ff8a00;
    text-decoration: none;
}
.cr-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Position Cards Grid ── */
.cr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.cr-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cr-card:hover {
    border-color: #ff8a00;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cr-card-top {}
.cr-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #0e1428;
}
.cr-card-meta {
    font-size: 0.82rem;
    color: #888;
    display: block;
    margin-top: 0.2rem;
}
.cr-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.cr-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: #f5f3ef;
    color: #666;
}
.cr-card-salary {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff8a00;
}
.cr-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.cr-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(255,138,0,0.12);
    color: #ff8a00;
}
.cr-card-roles {
    font-size: 0.8rem;
    color: #999;
}

/* ── Position Detail ── */
.cr-position-hero {
    margin-bottom: 2rem;
}
.cr-position-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem;
    color: #0e1428;
}
.cr-position-meta {
    color: #888;
    font-size: 0.95rem;
}

.cr-position-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.cr-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.cr-detail {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cr-detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
}
.cr-detail-val {
    font-size: 0.95rem;
    font-weight: 600;
}

.cr-description {
    margin-bottom: 2rem;
}
.cr-description h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.cr-description p {
    color: #555;
    line-height: 1.7;
}

.cr-skills {
    margin-bottom: 2rem;
}
.cr-skills h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.cr-skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.cr-skill-pill {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    background: #f5f3ef;
    color: #555;
}

.cr-assessment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,138,0,0.08);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 2rem;
}

/* ── Apply Panel ── */
.cr-apply-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1.75rem;
    position: sticky;
    top: 2rem;
}
.cr-apply-panel h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}
.cr-apply-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cr-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
}
.cr-field input[type="text"],
.cr-field input[type="email"],
.cr-field input[type="file"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafaf8;
    transition: border-color 0.15s;
}
.cr-field input:focus {
    outline: none;
    border-color: #ff8a00;
}
.cr-help {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 0.2rem;
}
.cr-error {
    font-size: 0.8rem;
    color: #d44;
    display: block;
    margin-top: 0.2rem;
}
.cr-submit {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    background: #ff8a00;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: 0.5rem;
}
.cr-submit:hover {
    opacity: 0.9;
}

/* ── Success Page ── */
.cr-success {
    text-align: center;
    padding: 6rem 1rem;
}
.cr-success h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 1.25rem 0 0.5rem;
    color: #0e1428;
}
.cr-success p {
    color: #555;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}
.cr-success-sub {
    color: #888 !important;
    font-size: 0.95rem !important;
}
.cr-back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #ff8a00;
    text-decoration: none;
    font-weight: 600;
}
.cr-back-link:hover {
    text-decoration: underline;
}

/* ── Empty ── */
.cr-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #888;
}
.cr-empty h2 {
    color: #555;
    margin-bottom: 0.25rem;
}

/* ── Footer ── */
.cr-footer {
    text-align: center;
    padding: 3rem 0 1rem;
    font-size: 0.8rem;
    color: #bbb;
}
.cr-footer a {
    color: #ff8a00;
    text-decoration: none;
}

/* ── Public Link in Detail ── */
.pd-public-link {
    background: #fffdf7;
    border: 1px dashed #e0dcd4;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}
.pd-public-link-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pd-public-link svg {
    flex-shrink: 0;
    color: var(--color-orange, #ff8a00);
}
.pd-public-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin-bottom: 0.2rem;
}
.pd-public-url {
    width: 100%;
    max-width: 500px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: monospace;
    background: #fff;
    color: #555;
    cursor: pointer;
}
.pd-public-url:focus {
    outline: none;
    border-color: var(--color-orange, #ff8a00);
}

/* ── Assessment Type Tag ── */
.pj-tag-assess {
    background: rgba(255,138,0,0.12);
    color: var(--color-orange, #ff8a00);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cr-grid {
        grid-template-columns: 1fr;
    }
    .cr-position-layout {
        grid-template-columns: 1fr;
    }
    .cr-apply-panel {
        position: static;
    }
    .cr-details {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   Public Vacancy Pages  (.vc-*)
   ═══════════════════════════════════════════════════ */

/* ── Entrance Animation ── */
.vc-anim {
    opacity: 0;
    transform: translateY(16px);
    animation: vc-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes vc-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.vc-body {
    background: #f8f9fc;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    margin: 0;
}
.vc-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.vc-shell-wide {
    max-width: 1060px;
}

/* ── Hero ── */
/* Uses Evalon design system (orange #ff8a00 + navy #0e1428) for consistency.
   Client branding comes through logo; accent colors are always legible. */
.vc-hero {
    background: linear-gradient(180deg, #111830 0%, #0e1428 50%, #0b1020 100%);
    padding: 5.5rem 2rem 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Warm orange glow from top center */
.vc-hero-glow {
    position: absolute;
    width: 1000px;
    height: 600px;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, #ff8a00, transparent 65%);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}
/* Subtle bottom glow */
.vc-glow-2 {
    width: 700px;
    height: 400px;
    top: auto;
    bottom: -200px;
    opacity: 0.06;
}

/* Decorative horizon line */
.vc-hero-line {
    position: absolute;
    bottom: 140px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
    z-index: 1;
    pointer-events: none;
}

/* Content — flexbox column */
.vc-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.vc-logo-row {
    margin-bottom: 1.75rem;
}
.vc-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 8px 32px rgba(0,0,0,0.4),
        0 0 50px -5px rgba(255,138,0,0.25);
    overflow: hidden;
}
.vc-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Eyebrow */
.vc-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff8a00;
}
.vc-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8a00;
    box-shadow: 0 0 10px rgba(255,138,0,0.7);
    animation: vc-pulse 2s ease-in-out infinite;
}

/* Heading */
.vc-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.035em;
    line-height: 1.2;
}
.vc-hero-accent {
    color: #ff8a00;
}

/* Subtitle */
.vc-hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.65;
    font-weight: 400;
    max-width: 460px;
}

/* Stats row */
.vc-hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 1.1rem 2.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}
.vc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.vc-stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ff8a00;
    letter-spacing: -0.02em;
    line-height: 1;
}
.vc-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}
.vc-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.12);
}

@keyframes vc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero fade to page bg */
.vc-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, #f8f9fc);
    z-index: 2;
}

/* ── Toolbar (Search + Filters) ── */
.vc-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    flex-wrap: wrap;
}
.vc-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 0.55rem 0.9rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vc-search:focus-within {
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255,138,0,0.08);
}
.vc-search svg {
    color: #94a3b8;
    flex-shrink: 0;
}
.vc-search input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 0.88rem;
    color: #1e293b;
    width: 100%;
}
.vc-search input::placeholder {
    color: #94a3b8;
}
.vc-filters {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.vc-filter {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.vc-filter:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}
.vc-filter.active {
    background: #0e1428;
    border-color: #0e1428;
    color: #fff;
}

/* No results */
.vc-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}
.vc-no-results svg {
    opacity: 0.3;
    margin-bottom: 0.75rem;
}
.vc-no-results p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #64748b;
}
.vc-clear-search {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff8a00;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Position Cards Grid ── */
.vc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* ── Cards ── */
.vc-card {
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    transition-timing-function: cubic-bezier(0.16,1,0.3,1);
}
.vc-card:hover {
    border-color: rgba(255,138,0,0.3);
    box-shadow: 0 6px 24px rgba(14,20,40,0.08);
    transform: translateY(-2px);
}

/* Top section: title + meta */
.vc-card-top {
    padding: 1.15rem 1.25rem 0.85rem;
}
.vc-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.vc-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #0e1428;
    line-height: 1.35;
    transition: color 0.15s;
}
.vc-card:hover .vc-card-title {
    color: #ff8a00;
}
.vc-card-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f6fa;
    color: #94a3b8;
    transition: all 0.2s;
}
.vc-card:hover .vc-card-arrow {
    background: #ff8a00;
    color: #fff;
    transform: translate(2px, -2px);
}
.vc-card-meta {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.vc-meta-item {
    font-size: 0.8rem;
    color: #7c8ba5;
}
.vc-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c5cdd8;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Bottom section: pills + salary */
.vc-card-bottom {
    padding: 0.7rem 1.25rem 1rem;
    border-top: 1px solid #f0f3f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.vc-card-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.vc-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    background: #f0f3f9;
    color: #5b6882;
}
.vc-pill-roles {
    background: rgba(99,102,241,0.08);
    color: #6366f1;
}

.vc-card-salary {
    font-size: 0.82rem;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Detail Bar (Position Page) ── */
.vc-detail-bar {
    background: #0e1428;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vc-detail-bar-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Breadcrumb ── */
.vc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.45);
    padding: 0.85rem 0;
}
.vc-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.vc-breadcrumb a:hover {
    color: #ff8a00;
}
.vc-bc-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}
.vc-breadcrumb svg {
    opacity: 0.35;
}
.vc-breadcrumb > span {
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Position Detail Hero ── */
.vc-pos-hero {
    margin-bottom: 1.75rem;
    padding-top: 2rem;
}
.vc-pos-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #1e293b;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.vc-pos-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.vc-pos-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.35rem 0.85rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}
.vc-pos-chip svg {
    opacity: 0.45;
    flex-shrink: 0;
}

/* ── Position Layout ── */
.vc-position-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}
.vc-position-info {
    min-width: 0;
}

/* ── Highlights (Salary / Open Roles) ── */
.vc-highlights {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.vc-highlight {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1.5px solid #edf0f7;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}
.vc-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,138,0,0.08), rgba(255,138,0,0.04));
    flex-shrink: 0;
    color: #ff8a00;
}
.vc-highlight-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    display: block;
}
.vc-highlight-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-top: 0.1rem;
}

/* ── Description ── */
.vc-description {
    margin-bottom: 2rem;
}
.vc-description h2,
.vc-skills h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.vc-description h2::before,
.vc-skills h2::before {
    content: '';
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #ff8a00;
    flex-shrink: 0;
}
.vc-desc-body {
    color: #5a6577;
    line-height: 1.8;
    font-size: 0.95rem;
}

.vc-jd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vc-jd-list li {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #5a6577;
    margin-bottom: 0.4rem;
    padding-left: 1.25rem;
    position: relative;
}
.vc-jd-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff8a00;
    opacity: 0.5;
}
.vc-jd-list li:last-child {
    margin-bottom: 0;
}

/* ── Skills ── */
.vc-skills {
    margin-bottom: 2rem;
}
.vc-skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.vc-skill-pill {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
}
.vc-skill-pill:hover {
    background: rgba(255,138,0,0.06);
    border-color: rgba(255,138,0,0.2);
    color: #ff8a00;
}

/* ── Apply Panel ── */
.vc-apply-panel {
    background: #fff;
    border: 1.5px solid #edf0f7;
    border-radius: 18px;
    padding: 0;
    position: sticky;
    top: 1.5rem;
    box-shadow: 0 8px 36px rgba(14,20,40,0.05);
    overflow: hidden;
}
.vc-apply-accent {
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #ffb347);
}
.vc-apply-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.5rem 1.75rem 1.1rem;
}
.vc-apply-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ff8a00;
    box-shadow: 0 4px 14px rgba(255,138,0,0.3);
    flex-shrink: 0;
}
.vc-apply-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}
.vc-apply-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0.1rem 0 0;
}
.vc-apply-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0 1.75rem 1.75rem;
}
.vc-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #475569;
}
.vc-req {
    color: #ef4444;
}
.vc-field input[type="text"],
.vc-field input[type="email"],
.vc-field input[type="tel"],
.vc-field input[type="file"],
.vc-field select,
.vc-field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.vc-field input:focus,
.vc-field select:focus,
.vc-field textarea:focus {
    outline: none;
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255,138,0,0.08);
    background: #fff;
}
.vc-help {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.25rem;
}
.vc-error {
    font-size: 0.8rem;
    color: #dc3545;
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
}
.vc-submit {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: #ff8a00;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 18px rgba(255,138,0,0.25);
    transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.vc-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: vc-shimmer 3s ease-in-out infinite;
}
@keyframes vc-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.vc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,138,0,0.35);
}
.vc-submit span { position: relative; z-index: 1; }
.vc-submit svg { position: relative; z-index: 1; }

/* ── Success Page ── */
.vc-success {
    text-align: center;
    padding: 5rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}
.vc-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
}
.vc-confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--c);
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
    animation: vc-confetti-burst 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes vc-confetti-burst {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
}
.vc-success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ff8a00;
    box-shadow: 0 8px 32px rgba(255,138,0,0.3);
    margin-bottom: 1.5rem;
}
.vc-success h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}
.vc-success p {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    line-height: 1.6;
}
.vc-success-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 2rem auto 0;
    max-width: 420px;
    text-align: left;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.vc-success-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #1e293b;
}

/* Timeline */
.vc-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.vc-tl-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}
.vc-tl-item:last-child { padding-bottom: 0; }
.vc-tl-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.vc-tl-item:last-child::before { display: none; }
.vc-tl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: 1px;
}
.vc-tl-done .vc-tl-dot {
    border-color: #ff8a00;
    background: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255,138,0,0.15);
}
.vc-tl-done .vc-tl-dot::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}
.vc-tl-done::before {
    background: #ff8a00 !important;
}
.vc-tl-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.vc-tl-content strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}
.vc-tl-content span {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Back Button */
.vc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2rem;
    color: #ff8a00;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
    border: 1.5px solid rgba(255,138,0,0.3);
    border-radius: 999px;
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.vc-back-btn:hover {
    background: rgba(255,138,0,0.06);
    border-color: #ff8a00;
    transform: translateX(-3px);
}

/* ── Empty State ── */
.vc-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #94a3b8;
}
.vc-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    margin-bottom: 1.5rem;
}
.vc-empty-icon svg {
    opacity: 0.35;
    color: #ff8a00;
}
.vc-empty h2 {
    color: #475569;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}
.vc-empty p {
    font-size: 0.92rem;
    margin: 0;
}

/* ── Footer ── */
.vc-footer {
    text-align: center;
    padding: 3rem 0 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}
.vc-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.vc-footer-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s;
}
.vc-footer-brand a:hover {
    color: #ff8a00;
}
.vc-footer-brand svg {
    color: #ff8a00;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .vc-hero {
        padding: 3.5rem 1.5rem 5rem;
    }
    .vc-hero h1 {
        font-size: 2.2rem;
    }
    .vc-hero-sub {
        font-size: 0.98rem;
    }
    .vc-hero-eyebrow {
        font-size: 0.7rem;
    }
    .vc-hero-stats {
        gap: 1.25rem;
        padding: 0.85rem 1.5rem;
    }
    .vc-stat-num {
        font-size: 1.3rem;
    }
    .vc-shell {
        padding: 0 1rem 3rem;
    }
    .vc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .vc-search {
        max-width: none;
    }
    .vc-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .vc-filters::-webkit-scrollbar { display: none; }
    .vc-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .vc-grid {
        grid-template-columns: 1fr;
    }
    .vc-card-bottom {
        flex-wrap: wrap;
    }
    .vc-position-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .vc-apply-panel {
        position: static;
        border-radius: 16px;
    }
    .vc-highlights {
        flex-direction: column;
    }
    .vc-pos-hero h1 {
        font-size: 1.5rem;
    }
    .vc-pos-meta {
        gap: 0.4rem;
    }
    .vc-pos-chip {
        font-size: 0.76rem;
        padding: 0.3rem 0.7rem;
    }
    .vc-success {
        padding: 3rem 1rem 2rem;
    }
    .vc-success h1 {
        font-size: 1.6rem;
    }
    .vc-success-card {
        padding: 1.25rem 1.5rem;
        margin-top: 1.5rem;
    }
    .vc-detail-bar-inner {
        padding: 0 1rem;
    }
    .vc-breadcrumb {
        font-size: 0.78rem;
    }
}
@media (max-width: 480px) {
    .vc-hero {
        padding: 2.5rem 1rem 4rem;
    }
    .vc-hero h1 {
        font-size: 1.7rem;
    }
    .vc-hero h1 br {
        display: none;
    }
    .vc-logo-wrap {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    .vc-logo-row {
        margin-bottom: 1.25rem;
    }
    .vc-logo {
        width: 42px;
        height: 42px;
    }
    .vc-hero-glow {
        width: 500px;
        height: 300px;
    }
    .vc-apply-head {
        padding: 1.25rem 1.25rem 0.85rem;
    }
    .vc-apply-form {
        padding: 0 1.25rem 1.25rem;
    }
    .vc-card-inner {
        padding: 1rem 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════
   Portal: Campaigns / Projects  (.cp-*)
   ═══════════════════════════════════════════════════ */

.cp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}
.cp-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.cp-header .muted {
    margin: 0;
    font-size: 0.9rem;
}

/* Create Panel */
.cp-create-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.cp-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: end;
}
.cp-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cp-field input,
.cp-field select,
.cp-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-navy);
    background: #fff;
    transition: border-color 0.15s ease;
    font-family: inherit;
}
.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.cp-field-wide {
    grid-column: 1 / -1;
}
.cp-field-action {
    display: flex;
    align-items: flex-end;
}

/* Toolbar */
.cp-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cp-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Grid */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

/* Card */
.cp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cp-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}
.cp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.cp-card-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}
.cp-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Status pills */
.cp-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cp-status-active   { background: #ecfdf5; color: #059669; }
.cp-status-paused   { background: #fef3c7; color: #d97706; }
.cp-status-completed { background: #ede9fe; color: #7c3aed; }
.cp-status-archived { background: #f1f5f9; color: #64748b; }

/* Stats row in card */
.cp-stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.cp-stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-navy);
    display: block;
}
.cp-stat-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Card footer */
.cp-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-light);
    padding-top: 0.75rem;
    margin-top: auto;
}
.cp-card-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}
.cp-card-arrow {
    color: var(--color-text-muted);
    transition: color 0.15s ease, transform 0.15s ease;
}
.cp-card:hover .cp-card-arrow {
    color: var(--color-primary);
    transform: translateX(2px);
}

/* Empty state */
.cp-empty {
    text-align: center;
    padding: 4rem 2rem;
}
.cp-empty-icon {
    color: var(--color-text-muted);
    opacity: 0.4;
    margin-bottom: 1rem;
}
.cp-empty h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}
.cp-empty p {
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Detail Page ── */

.cp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.cp-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.cp-breadcrumb a:hover {
    text-decoration: underline;
}
.cp-breadcrumb span {
    color: var(--color-text-muted);
}

.cp-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cp-detail-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.cp-detail-title-row h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
}
.cp-detail-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 0.25rem;
    line-height: 1.5;
}
.cp-detail-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Edit panel */
.cp-edit-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Stats bar */
.cp-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.cp-stat-card {
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: center;
}
.cp-stat-card-val {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
}
.cp-stat-card-lbl {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sections */
.cp-section {
    margin-bottom: 2rem;
}
.cp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.cp-section-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

/* Positions table */
.cp-pos-table-wrap {
    overflow-x: auto;
}
.cp-pos-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    overflow: hidden;
}
.cp-pos-table thead th {
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-border-medium);
    background: var(--color-bg-subtle);
}
.cp-pos-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-navy);
}
.cp-pos-table tbody tr:last-child td {
    border-bottom: none;
}
.cp-pos-link {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 600;
}
.cp-pos-link:hover {
    color: var(--color-primary);
}
.cp-pos-dept {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
}
.cp-remove-btn {
    opacity: 0.4;
    transition: opacity 0.15s ease;
}
.cp-remove-btn:hover {
    opacity: 1;
    color: #ef4444;
}

/* Assign form */
.cp-assign-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cp-assign-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--color-navy);
    min-width: 250px;
}

/* Empty mini */
.cp-empty-mini {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
}
.cp-empty-mini p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cp-header {
        flex-direction: column;
    }
    .cp-form-grid {
        grid-template-columns: 1fr;
    }
    .cp-grid {
        grid-template-columns: 1fr;
    }
    .cp-stats-bar {
        grid-template-columns: 1fr;
    }
    .cp-detail-header {
        flex-direction: column;
    }
    .cp-assign-form {
        flex-direction: column;
        align-items: stretch;
    }
    .cp-assign-select {
        min-width: 0;
    }
}


/* ═══════════════════════════════════════════════════
   Portal: Applications  (.ap-*)
   ═══════════════════════════════════════════════════ */

.ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.ap-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

/* Filters */
.ap-filters {
    margin-bottom: 1.25rem;
}
.ap-filter-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.ap-filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border, #e0dcd4);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
    min-width: 180px;
}

/* Table */
.ap-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border, #e0dcd4);
    border-radius: 12px;
    background: #fff;
}
.ap-table {
    width: 100%;
    border-collapse: collapse;
}
.ap-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    border-bottom: 1px solid var(--color-border, #e0dcd4);
}
.ap-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f5f3ef;
    font-size: 0.9rem;
}
.ap-row:hover {
    background: #fafaf8;
}
.ap-name {
    font-weight: 600;
    display: block;
}
.ap-email {
    font-size: 0.8rem;
    color: #888;
}
.ap-cell-muted {
    color: #999;
    font-size: 0.85rem;
}
.ap-cell-action {
    text-align: right;
}
.ap-view-link {
    color: var(--color-orange, #ff8a00);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}
.ap-view-link:hover { text-decoration: underline; }

/* Status pills */
.ap-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ap-status-pending {
    background: #fef3c7;
    color: #92400e;
}
.ap-status-reviewed {
    background: #dbeafe;
    color: #1e40af;
}
.ap-status-assessment_sent {
    background: #e0e7ff;
    color: #3730a3;
}
.ap-status-session_created {
    background: #e0e7ff;
    color: #3730a3;
}
.ap-status-hired {
    background: #d1fae5;
    color: #065f46;
}
.ap-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* AI Score badge */
.ap-ai-score {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ap-ai-score-pass {
    background: #d1fae5;
    color: #065f46;
}
.ap-ai-score-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Breadcrumb (shared) */
.ap-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.25rem;
}
.ap-breadcrumb a {
    color: var(--color-orange, #ff8a00);
    text-decoration: none;
    font-weight: 500;
}
.ap-breadcrumb a:hover { text-decoration: underline; }

/* Empty state */
.ap-empty {
    text-align: center;
    padding: 4rem 1rem;
}
.ap-empty h3 {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

/* Responsive (list) */
@media (max-width: 768px) {
    .ap-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .ap-filter-select {
        min-width: unset;
    }
}


/* ========================================================================
   APPLICATION DETAIL PAGE  —  apd-* prefix
   ======================================================================== */

/* Header with avatar */
.apd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-light, #f0ede8);
}
.apd-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.apd-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a00, #ff6a00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
}
.apd-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-navy, #0e1428);
    margin: 0 0 0.15rem;
}
.apd-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}
.apd-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
}
.apd-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Two-column grid */
.apd-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.25rem;
    align-items: start;
}
.apd-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.apd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Card base */
.apd-card {
    background: #fff;
    border: 1px solid var(--color-border-medium, #e0dcd4);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.apd-card h2 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-navy, #0e1428);
    margin: 0 0 1rem;
}
.apd-card-desc {
    font-size: 0.85rem;
    color: #888;
    margin: -0.5rem 0 1rem;
    line-height: 1.4;
}

/* Details grid (2-col key/value) */
.apd-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.apd-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f5f3ef;
}
.apd-details-grid .apd-detail:nth-last-child(-n+2) {
    border-bottom: none;
}
.apd-detail:nth-child(odd) {
    padding-right: 1rem;
}
.apd-detail:nth-child(even) {
    padding-left: 1rem;
    border-left: 1px solid #f5f3ef;
}
.apd-detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
}
.apd-detail-value {
    font-size: 0.9rem;
    color: var(--color-navy, #0e1428);
    font-weight: 500;
}
.apd-detail-link {
    font-size: 0.9rem;
    color: var(--color-orange, #ff8a00);
    text-decoration: none;
    font-weight: 600;
}
.apd-detail-link:hover { text-decoration: underline; }

/* Resume box */
.apd-resume-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fafaf8;
    border: 1px solid #f0ede8;
    border-radius: 10px;
}
.apd-resume-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e0dcd4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange, #ff8a00);
    flex-shrink: 0;
}
.apd-resume-info {
    flex: 1;
    min-width: 0;
}
.apd-resume-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy, #0e1428);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apd-resume-meta {
    display: block;
    font-size: 0.75rem;
    color: #999;
}

/* Assessment form */
.apd-assess-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.apd-assess-select select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border-medium, #e0dcd4);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-navy, #0e1428);
}
.apd-assess-select select:focus {
    border-color: var(--color-primary, #6366f1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.apd-assess-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Decision buttons */
.apd-decision-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.apd-btn-hire,
.apd-btn-reject {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid;
}
.apd-btn-hire {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.apd-btn-hire:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}
.apd-btn-reject {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.apd-btn-reject:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Timeline */
.apd-timeline {
    position: relative;
}
.apd-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    position: relative;
}
.apd-timeline-item:last-child {
    padding-bottom: 0;
}
/* Connecting line */
.apd-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: 0;
    width: 2px;
    background: #e8e5e0;
}
.apd-timeline-item.apd-timeline-done:not(:last-child)::before {
    background: var(--color-orange, #ff8a00);
    opacity: 0.3;
}
.apd-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}
.apd-timeline-done .apd-timeline-dot {
    border-color: var(--color-orange, #ff8a00);
    background: var(--color-orange, #ff8a00);
}
.apd-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.apd-timeline-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy, #0e1428);
}
.apd-timeline-date {
    font-size: 0.78rem;
    color: #888;
}
.apd-timeline-pending {
    color: #bbb;
    font-style: italic;
}

/* AI Screening Results */
.apd-ai-score-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.apd-ai-score {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}
.apd-ai-score--pass { background: rgba(16, 185, 129, 0.08); }
.apd-ai-score--fail { background: rgba(220, 38, 38, 0.08); }
.apd-ai-score-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}
.apd-ai-score--pass .apd-ai-score-num { color: #059669; }
.apd-ai-score--fail .apd-ai-score-num { color: #dc2626; }
.apd-ai-score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
}
.apd-ai-summary {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #444;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    background: #faf9f7;
    border-radius: 8px;
    border-left: 3px solid var(--color-orange, #ff8a00);
}
.apd-ai-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.apd-ai-skills-col {}
.apd-ai-skills-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}
.apd-ai-skills--matched { color: #059669; }
.apd-ai-skills--missing { color: #dc2626; }
.apd-ai-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.apd-ai-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}
.apd-ai-pill--matched {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}
.apd-ai-pill--missing {
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
}
.apd-ai-pipeline-link {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0ede8;
}
.apd-ai-pipeline-link a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-orange, #ff8a00);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.apd-ai-pipeline-link a:hover {
    text-decoration: underline;
}

/* Assessment Results */
.apd-assess-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.apd-assess-result-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: #faf9f7;
    border-radius: 8px;
}
.apd-assess-type {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy, #0e1428);
    text-transform: capitalize;
    flex: 1;
}
.apd-assess-score {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}
.apd-assess-score--pass { color: #059669; }
.apd-assess-score--fail { color: #dc2626; }

/* Human Review */
.apd-review-current {
    margin-bottom: 0.5rem;
}
.apd-review-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
}
.apd-review-notes {
    font-size: 0.88rem;
    color: #555;
    margin: 0.25rem 0 0.5rem;
}
.apd-review-change summary {
    font-size: 0.82rem;
    color: var(--color-orange, #ff8a00);
    cursor: pointer;
    margin-top: 0.25rem;
}
.apd-review-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.apd-review-radios {
    display: flex;
    gap: 1rem;
}
.apd-review-radios label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    cursor: pointer;
}
.apd-review-notes-field label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
    margin-bottom: 0.25rem;
    display: block;
}
.apd-review-notes-field textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    resize: vertical;
}

/* AI Processing Log */
.apd-log-table-wrap {
    overflow-x: auto;
}
.apd-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.apd-log-table th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #eee;
}
.apd-log-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #f5f5f5;
}
.apd-log-status {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.apd-log-status--success {
    background: #d1fae5;
    color: #065f46;
}
.apd-log-status--error {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 900px) {
    .apd-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .apd-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .apd-header-right {
        align-self: stretch;
        justify-content: flex-start;
    }
    .apd-details-grid {
        grid-template-columns: 1fr;
    }
    .apd-detail:nth-child(even) {
        padding-left: 0;
        border-left: none;
    }
    .apd-detail:nth-child(odd) {
        padding-right: 0;
    }
    .apd-detail {
        border-bottom: 1px solid #f5f3ef;
    }
    .apd-detail:last-child {
        border-bottom: none;
    }
    .apd-decision-actions {
        grid-template-columns: 1fr;
    }
}
