/* 🎨 IMPORT DESIGN SYSTEM - MUST BE FIRST! */
@import url('design-tokens.css');

/* 🔧 PREVENT HORIZONTAL SCROLL - CRITICAL FIX */
html {
    overflow-x: hidden;
    max-width: 100vw;
    
    /* Apply Inter font everywhere */
    font-family: var(--font-sans);
    
    /* Smooth font rendering (makes text look cleaner) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
    /* REMOVE max-width from here - it causes issues */
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-warm-800);
    overflow-x: hidden;
    background: var(--color-warm-100);
}

@media (max-width: 768px) {
    /* Prevent any element from causing horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .main-content {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
        margin-bottom: 80px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .panel {
        padding: 12px 10px;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
}

/* Modern header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-8);
    width: 100%;
    box-sizing: border-box;
    min-height: 70px;

    background: var(--color-warm-50);
    
    /* Subtle border */
    border-bottom: 1px solid var(--color-gray-200);
    
    /* Softer shadow */
    box-shadow: var(--shadow-sm);
    
    /* Stick to top */
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

/* LEFT SIDE - Brand */
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* RIGHT SIDE - User Profile */
.user-profile {
    display: flex;
    flex-direction: column; /* Stack email under icon */
    align-items: center;
    gap: 4px; 
    flex-shrink: 0;
    max-width: 140px; /* Prevent overflow */
}

.user-email {
    font-size: 10px;
    color: var(--color-warm-600);
    font-weight: 500;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    order: 2;
}

.user-icon {
    width: 52px;
    height: 52px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
    order: 1; 
}

/* DESKTOP - Scale everything up */
@media (min-width: 769px) {
    .header {
        padding: 20px 50px !important;
        min-height: 100px;
    }
    
    .brand-icon img {
        height: 85px !important;
        
    }
    
    .user-profile {
        gap: 6px;
        flex-direction: column; /* Stack email under icon */
        max-width: none;
    }
    
    .user-email {
        font-size: 12px;
        max-width: 150px;
        text-align: center; 
        order: 2; 
    }
    
    .user-icon {
        width: 68px;
        height: 68px;
        order: 1; /* Icon on right on desktop */    
    }
}

.main-content {
    display: flex;
    gap: 20px;
    padding: 20px; 
}

.panel {
    flex: 1;
    background: var(--glass-warm-strong);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-warm-200);
    min-height: 400px;
}

.feedback-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 15px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--color-warm-100);
    border-radius: 12px;
    border: 1px solid var(--color-warm-300);
}

.feedback-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
}

.feedback-message {
    grid-column: 2;
    grid-row: 1;
    font-weight: 500;
    color: var(--color-warm-700);
}

.feedback-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.feedback-date {
    grid-column: 3;
}

.feedback-sender {
    grid-column: 4; 
}

.send-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.add-feedback-btn {
    width: 120px; 
    height: 120px; 
    background-color: #f8f9fa; 
    border: 2px dashed #dee2e6; 
    border-radius: 16px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 40px; 
    transition: all 0.2s ease; 
}

.plus-icon {
    font-size: 36px; 
    color: #6c757d; 
    font-weight: 300; 
}

h2.received-title {
    color: var(--color-warm-800);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

h2 {
    color: var(--color-warm-800);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    font-size: var(--text-lg);
}

.add-feedback-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
        margin-bottom: 80px;
        width: 100vw;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .panel {
        padding: 12px 10px;
        min-height: auto;
        width: calc(100vw - 16px);
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    
    .floating-add-btn {
        bottom: 16px;
        right: 12px;
        width: 56px;
        height: 56px;
    }
    
    .floating-add-btn .plus-icon {
        font-size: 24px;
    }
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
    display: block;
}

.brand-icon img:hover {
    transform: scale(1.1);
}

.floating-add-btn {
    position: fixed;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
    z-index: 1000;
    transition: all 0.2s ease;
}

.floating-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.floating-add-btn .plus-icon {
    font-size: 28px;
    color: white;
    font-weight: 400;
}

/* CSS FOR FEEDBACK WIZARD */   /* CSS FOR FEEDBACK WIZARD */  /* CSS FOR FEEDBACK WIZARD */

.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('/assets/login-background1-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Lighter overlay than before */
    background-color: rgba(0, 0, 0, 0.15);
    background-blend-mode: darken;
    
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wizard-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 184, 166, 0.15);
    z-index: 0;
    pointer-events: none;
}

.wizard-content {
    /* Glass effect like login box */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 16px;
    padding: 0;
    max-width: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;

    /* Softer shadow like login */
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 3px solid var(--color-primary);
}

.wizard-content::before {
    content: '';
    display: block;
    width: 96px;
    height: 96px;
    margin: 20px auto 0;
    background: url('/assets/Logo-v2.svg') no-repeat center;
    background-size: contain;
    opacity: 0.9;
}

.wizard-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    background: rgba(95, 99, 104, 0.08);
    color: #5f6368;
    z-index: 10;
}

.wizard-close:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.wizard-progress {
    background: #f8f9fa;
    padding: 16px 24px 12px 24px;
    border-bottom: 1px solid #e8eaed;
    position: relative;
}

.wizard-progress .progress-text {
    font-size: 13px;
    color: var(--color-warm-600);
    font-weight: 500;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.wizard-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        var(--color-primary) var(--progress-width, 25%),
        var(--color-gray-200) var(--progress-width, 25%),
        var(--color-gray-200) 100%);
}

.wizard-step {
    display: none;
    padding: 24px;
}

.wizard-step.active {
    display: block;
}

/* Topic sub-step — focused single-question screen */
.topic-substep-inner {
    text-align: center;
    padding: 32px 0 16px;
}

.topic-substep-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.topic-substep h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 10px;
}

.topic-substep-hint {
    font-size: 14px;
    color: var(--color-warm-600);
    margin-bottom: 28px;
    line-height: 1.5;
}

.topic-substep-input {
    max-width: 420px;
    margin: 0 auto;
    display: block;
    font-size: 18px !important;
    padding: 16px 20px !important;
    text-align: center;
}

.wizard-step h3 {
    margin: 0 0 24px 0;
    color: var(--color-warm-800);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
}

.wizard-step input,
.wizard-step textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-warm-300);
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 16px;
    color: #202124;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wizard-step input:focus,
.wizard-step textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.wizard-step input::placeholder,
.wizard-step textarea::placeholder {
    color: #9aa0a6; 
}


.wizard-step label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-warm-700);
}


.wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Default style = ghost (back button) */
.wizard-buttons button {
    background: transparent;
    color: var(--color-warm-600);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-height: 40px;
    transition: color var(--transition-fast);
}

.wizard-buttons button:hover {
    color: var(--color-warm-800);
}

/* Primary style = forward / submit buttons */
.wizard-buttons button:last-child,
#step1-next-btn,
#step2-next-btn,
#step3-next-btn,
#step4-next-btn,
#step5-next-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

.wizard-buttons button:last-child:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
    transform: translateY(-1px);
}

/* Disabled state */
.wizard-buttons button:disabled,
.wizard-buttons button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* Workflow Button Styles */
.workflow-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.workflow-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-warm-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Icon Container */
.workflow-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text Content */
.workflow-text {
    flex: 1;
}

.workflow-text h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #202124;
}

.workflow-text p {
    margin: 0;
    font-size: 13px;
    color: #5f6368;
}

/* Specific Button Colors */
.ask-feedback-btn:hover {
    border-color: #2196F3;
}

.give-feedback-btn:hover {
    border-color: #4CAF50;
}

.feedback-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feedback-type-btn {
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s ease;
    color: #3c4043;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-type-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-warm-50);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-type-btn.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary-50);
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.15);
    color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .wizard-modal {
        padding: 16px;
        background-position: right center;
    }
    
    .wizard-content {
        max-width: 100%;
        border-radius: 16px; 
    }
    
    .wizard-progress {
        padding: 16px 20px 12px 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .wizard-step {
        padding: 20px;
    }
    
    .wizard-buttons {
        padding: 20px 0 8px;
        max-width: 100%;
    }
}

/* Request cards — clean, flat, minimal */
.request-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    margin: var(--space-4) auto;
    max-width: 700px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-warm-200);
    position: relative;
    cursor: pointer;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    overflow: hidden;
    margin-left: 4px;
    margin-right: 4px;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-date {
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
}

/* Main card content area */
/* 🆕 NEW - Better spacing */
.card-content {
    padding: var(--space-6) var(--space-6);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 16px;                 /* More breathing room */
    line-height: 1.2;                    /* Tighter leading */
    font-family: var(--font-sans);
    letter-spacing: -0.5px;              /* Slightly tighter (modern) */
}

/* Status badge styling */
/* 🆕 NEW - Modern badge styling */
.card-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--color-warm-50);
    border-bottom: 1px solid var(--color-gray-200);
}

.card-header-left {
    display: flex;
    align-items: center;
}

.card-type-badge {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.card-type-badge .icon-mask {
    width: 24px;
    height: 24px;
    background-image: none;
    transition: none;
}

/* 🆕 ENHANCED - Premium glass button */
.card-action-btn {
    padding: var(--space-2) var(--space-4);
    
    /* 🆕 Glass button with teal tint */
    background: rgba(20, 184, 166, 0.15);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-full);
    
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    font-family: var(--font-sans);
    
    cursor: pointer;
    transition: all var(--transition-fast);
    
    /* 🆕 Subtle shadow */
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.15);
}

.card-action-btn:hover {
    /* 🆕 More opaque on hover */
    background: rgba(20, 184, 166, 0.25);
    
    /* 🆕 Lift slightly */
    transform: translateY(-2px);
    
    /* 🆕 Bigger shadow */
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
    
    border-color: var(--color-primary);
}

.card-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(20, 184, 166, 0.2);
}

.card-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.title-and-status {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}


/* 🆕 ENHANCED - Active status with gentle pulse */
.status-active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-light);
    
    /* 🆕 Add gentle pulsing animation */
    animation: pulse-gentle 2s ease-in-out infinite;
    
    /* 🆕 Add a subtle glow effect */
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.3);
    
    /* Smooth transitions */
    transition: all var(--transition-base);
}

/* 🆕 On hover, pause the animation */
.status-active:hover {
    animation-play-state: paused;
    background: rgba(20, 184, 166, 0.15);
}

/* Keep other status styles unchanged */
.status-completed {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

.status-overdue {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Progress bar for multiple recipients */
.card-progress {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

.progress-percentage {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}

.progress-bar-container {
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Recipients info section */
.recipients-info {
    margin-bottom: 16px;
}

/* 🆕 Recipients visual display with person icons */
.recipients-visual {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.person-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.person-icons svg {
    transition: all 0.3s ease;
}

/* 🆕 Hover effect - icons grow slightly */
.recipients-info:hover .person-icons svg {
    transform: scale(1.1);
}

.recipients-count {
    font-size: 14px;
    color: var(--color-warm-600);
    font-weight: 500;
    margin-left: 4px;
}

.recipients-summary {
    font-size: 13px;
    color: #3c4043;
    margin-bottom: 8px;
}

.recipient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recipient-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f1f3f4;
    border-radius: 12px;
    font-size: 11px;
    color: #5f6368;
}

.recipient-tag.completed {
    background: var(--color-primary-50);
    color: var(--color-primary-dark);
}

.recipient-status-icon {
    font-size: 10px;
}

/* Deadline info with urgency colors */
.deadline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
}

.deadline-text {
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
}

.days-remaining {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
}

.days-remaining.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.days-remaining.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.days-remaining.safe {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-primary-dark);
}

.card-content > div:last-child {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    text-align: center;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-5);
    min-height: 100vh;
    
    background: transparent;
    
    /* 🆕 Prevent clipping cards on mobile */
    overflow-x: visible;  /* Allow shadows to show */
}

/* 🆕 Add padding on mobile to prevent clipping */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px 8px;
    }
}

/* 🆕 Optional: Subtle noise texture overlay (adds warmth) */
.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 🆕 Make sure content stays above the overlay */
.dashboard-container > * {
    position: relative;
    z-index: 1;
}


/* Minimal Stats Cards */
.stat-card {
    background: transparent;
    border: none;
    padding: var(--space-2) var(--space-3);
    text-align: center;
}

.stat-label {
    font-size: 11px;
    font-weight: var(--font-medium);
    color: var(--color-warm-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.stat-number {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-warm-700);
    line-height: 1;
    white-space: nowrap;
}

/* 🆕 Gradient border effect using pseudo-element */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

/* Desktop: No hover effects for minimal look */
@media (min-width: 769px) {
    .stat-card:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    
    .stat-card:hover::before {
        opacity: 0;
    }
}

/* Mobile: Keep hover effects */
@media (max-width: 768px) {
    .stat-card:hover {
        background: var(--glass-white-strong);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

/* 🆕 When stat updates, animate it */
.stat-number.updating {
    animation: count-up 0.5s var(--ease-bounce);
}


/* Two Column Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.requests-section::before {
    display: none;
}

.requests-section h2 {
    color: var(--color-gray-900);
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-8);
    line-height: 1.2;
}

/* Remove bar */
.requests-section h2::after {
    display: none;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 4px;  /* 🆕 ADDED - prevents clipping */
}

/* 🆕 ADDED - more padding on mobile */
@media (max-width: 768px) {
    .sidebar-section {
        padding: 0 8px;
    }
}

.activity-feed,
.todo-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eaed;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .stat-card {
        padding: 12px 8px;
    }

    .stat-label {
        font-size: 11px;
        margin-bottom: var(--space-1);
    }

    .stat-number {
        font-size: var(--text-xl);    /* Smaller number */
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        padding: 16px 8px;
    }
}

/* Activity Feed Styles - Add to your style.css */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.4;
    margin-bottom: 2px;
}

.activity-text strong {
    color: #202124;
    font-weight: 500;
}

.activity-date {
    font-size: 11px;
    color: #5f6368;
    font-weight: 400;
}

/* To-Do List Styles - Add to your style.css */
.todo-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item.urgent {
    background: #fef7e0;
    margin: 0 -20px;
    padding: 16px 20px;
    border-radius: 8px;
    border-bottom: none;
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-text {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.4;
    margin-bottom: 4px;
}

.todo-text strong {
    color: #202124;
    font-weight: 500;
}

.todo-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.todo-requester {
    font-size: 11px;
    color: #5f6368;
}

.todo-due {
    font-size: 11px;
    color: var(--color-primary-dark);
    font-weight: 500;
}

.todo-item.urgent .todo-due {
    color: #ea4335;
}

.todo-action {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.todo-action:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.todo-action.urgent {
    background: #ea4335;
}

.todo-action.urgent:hover {
    background: #d33b2c;
}

/* Action Buttons Styles - Zen & Minimalist */
.action-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    justify-content: center; /* Centered on page */
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    background: white;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    outline: 2px solid rgba(20, 184, 166, 0.3);
    outline-offset: -2px;
}

.primary-action {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

/* 🆕 NEW - Premium primary CTA with TEAL */
.primary-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6) var(--space-10);
    
    /* YOUR TEAL BRAND COLOR! */
    background: var(--color-primary);
    color: white;
    
    /* Remove that opacity - it was making it dull */
    opacity: 1;
    
    /* Subtle white border for definition */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    
    cursor: pointer;
    
    /* Typography */
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    font-family: var(--font-sans);
    
    /* Premium shadow */
    box-shadow: var(--shadow-xl);
    
    /* Smooth transitions */
    transition: all var(--transition-base);
    
    /* Prevent text selection */
    user-select: none;
}

.primary-action-btn:hover {
    /* Lighter teal on hover */
    background: var(--color-primary-light);
    
    /* Lift up */
    transform: translateY(-3px);
    
    /* Bigger shadow with TEAL glow */
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.35);
    
    /* Border gets more visible */
    border-color: rgba(255, 255, 255, 0.3);
}

.primary-action-btn:active {
    /* Press down */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.primary-action-btn .action-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.primary-action-btn .action-icon img {
    filter: brightness(0) invert(1);
}



.action-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
}

.action-icon img {
    width: 100%;
    height: 100%;
    /* Keep original icon colors */
}

.action-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-warm-700);
    text-align: center;
    line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .action-buttons {
        gap: 16px;
    }
    
    .action-btn {
        min-width: 120px;
        padding: 20px 16px;
    }
}

/* GIVE FEEDBACK PAGE GIVE FEEDBACK PAGE GIVE FEEDBACK PAGE GIVE FEEDBACK PAGE GIVE FEEDBACK PAGE GIVE FEEDBACK PAGE */

.feedback-body {
    background-color: var(--color-warm-100);
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Progress Bar */
.feedback-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 20px 8px 20px; /* Reduced padding */
    border-bottom: 1px solid rgba(232, 234, 237, 0.3);
    z-index: 100;
}   

.progress-bar {
    height: 4px;
    background: rgba(232, 234, 237, 0.4);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 11px;
    color: var(--color-warm-600);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Main Container */
.feedback-container {
    padding-top: 56px;
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-screen {
    display: none;
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    text-align: center;
}

.feedback-screen.active {
    display: block;
    animation: screenFadeIn 0.28s var(--ease-smooth) both;
}

.screen-content {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-warm-200);
}

/* Typography */
.feedback-screen h1 {
    font-size: 28px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 16px;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 8px;
}

.time-estimate {
    font-size: 14px;
    color: #9aa0a6;
    margin-bottom: 32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .screen-content {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .feedback-screen h1 {
        font-size: 24px;
    }
}

/* Give Feedback Page - Screen 1 Styling */
.helper-text {
    font-size: 14px;
    color: #9aa0a6;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 32px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    margin-bottom: 8px;
    text-align: left;
}

.feedback-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--color-warm-300);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-warm-800);
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.feedback-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.feedback-input::placeholder {
    color: #9aa0a6;
}

select.feedback-input {
    font-family: inherit !important;
    font-size: 16px !important;
    color: #202124;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0a6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-btn {
    background: white;
    color: var(--color-warm-700);
    border: 1px solid var(--color-warm-300);
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.secondary-btn:hover {
    background: var(--color-warm-100);
    border-color: var(--color-warm-400);
    color: var(--color-warm-800);
}

/* Continue Button */
.continue-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    min-width: 140px;
}

.continue-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.continue-btn:disabled,
.continue-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* Screen 2: Feedback Form Styling */
.feedback-form {
    text-align: left;
    margin-bottom: 32px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-description {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
}

.feedback-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    color: #202124;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.feedback-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.feedback-textarea::placeholder {
    color: #9aa0a6;
    line-height: 1.4;
}

/* Screen 3: Thank You Page Styling */
.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
}

.thank-you-message {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.next-steps .continue-btn {
    background: var(--color-primary);
}

.next-steps .continue-btn:hover {
    background: var(--color-primary-dark);
}

/* Success animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes screenFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Thank-you screen staggered entrance */
.thank-you-content .thank-you-logo-top   { animation: fadeInScale 0.5s ease-out 0s both; }
.thank-you-content h1                    { animation: screenFadeIn 0.4s ease-out 0.15s both; }
.thank-you-content .confirmation-message { animation: screenFadeIn 0.4s ease-out 0.3s both; }
.thank-you-content .next-steps           { animation: screenFadeIn 0.4s ease-out 0.45s both; }

/* Mobile adjustments for thank you page */
@media (max-width: 768px) {
    .next-steps {
        width: 100%;
    }
    
    .next-steps button {
        width: 100%;
    }
}

/* Screen 3: Review Screen Styling */
.review-container {
    text-align: left;
    margin-bottom: 32px;
}

.review-section {
    background: var(--color-warm-100);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-warm-200);
}

.review-section h3 {
    color: var(--color-warm-800);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-warm-200);
    padding-bottom: 8px;
}

.review-section-header {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-item {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}
.review-item--block {
    flex-direction: column;
    align-items: flex-start;
}
.review-item--block .review-value--instructions {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
}

.review-label {
    font-weight: 600;
    color: var(--color-warm-600);
    min-width: 60px;
    font-size: 14px;
}

.review-value {
    color: #202124;
    font-size: 14px;
    margin-left: 12px;
}

.review-feedback-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.review-feedback-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-feedback-item h4 {
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-feedback-text {
    color: #3c4043;
    font-size: 14px;
    line-height: 1.5;
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e8eaed;
    font-style: italic;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.review-feedback-text:empty::before {
    content: "Not provided";
    color: #9aa0a6;
    font-style: italic;
}

.review-feedback-skipped {
    font-size: 13px;
    color: #9aa0a6;
    font-style: italic;
    margin: 0;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #202124;
}

.tertiary-btn {
    background: transparent;
    color: #ea4335;
    border: 1px solid #ea4335;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.tertiary-btn:hover {
    background: #fce8e6;
    color: #d33b2c;
}

.continue-btn.primary {
    background: var(--color-primary);
    min-width: 140px;
}

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

/* Mobile adjustments for review screen */
@media (max-width: 768px) {
    .review-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .review-actions button {
        width: 100%;
        max-width: 280px;
    }
}

.add-giver-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-primary-50);
    border: 2px dashed var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark);
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.add-giver-btn:hover:not(:disabled) {
    background: var(--color-primary-50);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.add-giver-btn:disabled {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #b0b4b9;
    cursor: not-allowed;
    font-weight: 400;
}

.plus-icon {
    font-size: 18px;
    font-weight: bold;
}

.feedback-giver-form {
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    transition: padding 0.2s ease;
}

.feedback-giver-form.giver-collapsed {
    padding: 12px 16px;
    background: white;
    border-color: #E5E7EB;
}

/* Equal spacing between all fields inside an expanded giver card */
.feedback-giver-form .feedback-input,
.feedback-giver-form .feedback-textarea {
    margin-bottom: 16px;
}

/* Role wrapper div provides the outer gap; select inside gets no extra margin */
.feedback-giver-form .giver-field-row {
    margin-bottom: 16px;
}
.feedback-giver-form .giver-field-row .feedback-input {
    margin-bottom: 0;
}

/* Last textarea in the form needs no trailing gap */
.feedback-giver-form .feedback-textarea:last-of-type {
    margin-bottom: 0;
}

/* Collapsed pill row */
.giver-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.giver-summary-row:hover {
    background: rgba(35, 88, 122, 0.04);
}

.giver-avatar-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(35, 88, 122, 0.10);
    color: #23587a;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.giver-summary-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.giver-summary-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giver-summary-email {
    font-size: 12px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giver-summary-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 2px;
    width: fit-content;
}

.giver-edit-hint {
    font-size: 12px;
    color: #14B8A6;
    font-weight: 500;
}

/* "Done ✓" button inside expanded form */
.giver-done-btn {
    background: none;
    border: 1px solid #14B8A6;
    color: #14B8A6;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.giver-done-btn:hover {
    background: #14B8A6;
    color: white;
}

.giver-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.giver-form-header h4 {
    margin: 0;
    color: #202124;
    font-size: 16px;
    font-weight: 500;
}

.remove-giver-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-giver-btn:hover {
    background: #f1f3f4;
    color: #d93025;
}

.deadline-section {
    margin-bottom: 24px;
}

.reminders-section {
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.reminders-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9CA3AF;
    margin: 0 0 12px;
}

.reminder-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.reminder-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.reminder-toggle label {
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.recommended-badge {
    background: var(--color-primary-50);
    color: var(--color-primary-dark);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reminder-settings {
    transition: opacity 0.2s ease;
}

.reminder-settings.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.reminder-settings label {
    display: block;
    margin-bottom: 4px;
    margin-top: 16px;
    font-weight: 500;
    color: #3c4043;
}

.reminder-settings label:first-child {
    margin-top: 0;
}

.add-reminder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px dashed #dadce0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #5f6368;
    width: 100%;
    margin-top: 12px;
}

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

.reminder-form {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reminder-header h5 {
    margin: 0;
    color: #202124;
    font-size: 14px;
    font-weight: 600;
}

.reminder-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.helper-text {
    color: #5f6368;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}   

.requester-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.enhanced-giver {
    background: #f8f9fa;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.enhanced-giver h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.review-instructions {
    text-align: center;
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 24px;
    font-weight: 400;
}

#modal-title {
    text-align: center;
    margin-bottom: 24px;
}

.modal-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-status.completed {
    background: #e3f2fd;
    color: #1565c0;
}

.modal-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 🚪 Logout Button */
.logout-btn {
    margin-top: 8px;
    padding: 6px 16px;
    background: #ea4335;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #d33b2c;
    transform: translateY(-1px);
}

/* 🆕 Dashboard Loading State */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.dashboard-loading.hidden {
    display: none;
}

.loading-ring {
    width: 44px;
    height: 44px;
    border: 3px solid var(--color-warm-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto var(--space-4);
}

.loading-ring--sm {
    width: 28px;
    height: 28px;
    border-width: 2px;
    margin: var(--space-10) auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-loading p {
    color: #5f6368;
    font-size: 16px;
    margin: 0;
}

/* Hide dashboard content while loading */
.dashboard-stats.loading,
.primary-action.loading,
.dashboard-grid.loading {
    opacity: 0.3;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-8);
    text-align: center;
    background: var(--glass-white-weak);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px dashed var(--color-warm-300);
    border-radius: var(--radius-2xl);
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-full);
    background: var(--color-primary-50);
    color: var(--color-primary);
    /* For legacy emoji icons that still use this class elsewhere */
    font-size: 32px;
    line-height: 1;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-2);
}

.empty-state-text {
    font-size: var(--text-sm);
    color: var(--color-warm-600);
    line-height: var(--leading-relaxed);
    max-width: 420px;
    margin: 0 auto var(--space-6);
}

.empty-state-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 60%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.28);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.empty-state-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.34);
}

.empty-state-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.22);
}

.empty-state-cta:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .empty-state {
        padding: var(--space-12) var(--space-5);
    }

    .empty-state-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-4);
    }
}

/* Screen loading (give-feedback welcome) */
.screen-loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🆕 Feedback Journey Card Styles */

.feedback-journey-card {
    /* Warm glass effect */
    background: var(--glass-warm) !important;
    backdrop-filter: blur(var(--blur-md)) !important;
    -webkit-backdrop-filter: blur(var(--blur-md)) !important;
    
    /* Smooth transitions */
    transition: all var(--transition-base);
}

/* 🆕 Updated journey recipient hover effects */
.journey-recipient {
    cursor: default; /* Not clickable, just informational */
}

/* Footer styling */
.journey-footer {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .feedback-journey-card {
        padding: 16px !important;
    }
    
    .journey-recipient {
        padding: 10px 12px !important;
    }
    
    .journey-footer {
        padding: 12px !important;
    }
}

/* 🆕 Mark Complete Button */
.mark-complete-btn {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid #10B981 !important;
    font-weight: 600 !important;
}

.mark-complete-btn:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

/* Update card actions to flex properly */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 🆕 ELEGANT DASHBOARD HEADER */

.dashboard-header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding: var(--space-6) 0;
}

.header-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
    opacity: 0.8;
}

.header-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    color: var(--color-gray-900);
    letter-spacing: -0.5px;
    margin: 0;
    position: relative;
    display: inline-block;
}

/* Subtle underline accent */
.header-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-primary), 
        transparent);
    opacity: 0.6;
}

/* Remove old "before" pseudo-element from requests-section */
.requests-section::before {
    display: none;
}

/* Update the old h2 just in case it still exists */
.requests-section h2 {
    display: none;
}

/* ===================================
   NEW: Compact Info Bar
   =================================== */

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-bar-left,
.info-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.info-segment {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 16px;
}

.info-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.info-text {
    color: #6B7280;
    font-size: 14px;
}

.info-count {
    font-weight: 600;
    color: #14B8A6;
    font-size: 14px;
}

.info-link {
    background: none;
    border: none;
    color: #14B8A6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.info-link:hover {
    color: #0F9B8E;
}

/* Compact Request Feedback button */
.primary-action-btn-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #14B8A6 0%, #10B981 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-action-btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* ===================================
   UPDATED: Full Width Requests Section
   =================================== */

.requests-section-full {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.requests-section-full h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .info-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .info-bar-left,
    .info-bar-right {
        flex-direction: column;
        gap: 12px;
    }
    
    .requests-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Thank You Page */
.thank-you-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
}

/* Custom message box */
.custom-message-box {
    background: rgba(20, 184, 166, 0.06);
    border: 1.5px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px auto;
    max-width: 480px;
    animation: slideIn 0.5s ease-out;
}

.custom-thank-you {
    font-size: 19px;
    color: #202124;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

.custom-thank-you strong {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-style: normal;
}

/* Confirmation message */
.confirmation-message {
    font-size: 16px;
    color: #5f6368;
    margin: 24px 0 32px 0;
}

.confirmation-message span {
    color: #202124;
    font-weight: 600;
}

.gf-anon-notice {
    background: #f0faf8;
    border: 1px solid #b2dfdb;
    border-radius: 8px;
    padding: 14px 18px;
    margin: -16px 0 28px 0;
    font-size: 14px;
    color: #3d6b66;
    line-height: 1.6;
    animation: screenFadeIn 0.4s ease-out 0.35s both;
}

/* Branded button with logo */
.branded-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
}

.btn-logo {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.branded-btn:hover .btn-logo {
    transform: rotate(360deg);
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lotus flower at top */
.thank-you-logo-top {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: fadeInScale 0.6s ease forwards;
}

/* Full logo at bottom */
.thank-you-logo-bottom {
    width: 120px;
    margin-top: 32px;
    opacity: 0.6;
}

/* Thank you page button */
.thank-you-content .continue-btn {
    background: var(--color-primary);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   🆕 WISE-INSPIRED LAYOUT - Sidebar + Main Area
   ============================================ */

/* Main wrapper for sidebar + dashboard */
.app-layout {
    display: block;
    min-height: 100vh;
    background: var(--color-warm-100);
}

.app-sidebar {
    width: 220px;
    background: var(--color-warm-100);
    backdrop-filter: none;
    border-right: none;  
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    position: fixed;              
    top: 0;
    left: 0;                      
    height: 100vh;
    overflow-y: auto;             
    z-index: 100;                 
}

/* Logo section at top */
.sidebar-logo {
    margin-bottom: var(--space-8);
    padding-top: var(--space-3);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-logo img {
    width: 100px;
    height: auto;
}

/* Navigation Items Container */
.sidebar-nav {
    flex: 1;                    /* Takes up available space (pushes footer to bottom) */
    display: flex;
    flex-direction: column;
    gap: var(--space-2);        /* Spacing between nav items */
}

/* Individual Navigation Buttons */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);        /* Space between icon and text */
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--color-warm-700);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-fast);  /* Smooth hover effect */
    cursor: pointer;
    border: none;               /* Remove default button border */
    background: transparent;
    width: 100%;
}

/* Hover effect - subtle highlight */
.nav-item:hover {
    background: var(--color-warm-200);
    color: var(--color-primary);
}

/* Active state - shows which page you're on */
.nav-item.active {
    background: white;
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.nav-item-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.45;
    transition: opacity 0.15s;
    display: block;
}

.nav-item:hover .nav-item-icon {
    opacity: 0.75;
}

.nav-item.active .nav-item-icon {
    opacity: 1;
}

/* User Profile in Sidebar Footer */
.sidebar-footer {
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;           /* Pushes to bottom of sidebar */
}

/* Subtle brand signature below user profile */
.sidebar-brand {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--glass-border);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-warm-500);
    text-align: center;
}

.user-profile-sidebar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.user-profile-sidebar:hover {
    background: var(--color-warm-100);
}

/* Sidebar user menu (logout dropdown) */
.sidebar-footer {
    position: relative;
}

.sidebar-user-menu {
    position: absolute;
    bottom: calc(100% + 4px);
    left: var(--space-3);
    right: var(--space-3);
    background: white;
    border: 1px solid var(--color-warm-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    display: none;
    z-index: 200;
}

.sidebar-user-menu.open {
    display: block;
}

.sidebar-logout-btn {
    width: 100%;
    padding: 10px var(--space-3);
    background: none;
    border: none;
    text-align: left;
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sidebar-logout-btn:hover {
    background: var(--color-warm-50);
    color: var(--color-warm-900);
}

/* User Avatar Circle */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);  /* Makes it circular (9999px radius) */
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.user-info {
    flex: 1;
    min-width: 0;              /* Allows text-overflow to work */
}

.user-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-800);
    white-space: nowrap;        /* Prevents text wrapping */
    overflow: hidden;           /* Hides overflow text */
    text-overflow: ellipsis;    /* Adds "..." if text is too long */
}

.user-email-sidebar {
    font-size: var(--text-xs);
    color: var(--color-warm-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Dashboard Area (right side) */
.dashboard-main {
    margin-left: 220px;           /* Pushes content to the right of sidebar */
    padding: var(--space-8);
    overflow-y: auto;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

/* ── Zen backdrop: warm wash + teal blooms + ensō watermarks + rice-paper noise ── */
.dashboard-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-color: #FAF9F7;
    background-image:
        /* Top-right ensō (brush circle) — large, partially off-canvas */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><path d='M150 38 A112 112 0 1 1 62 208' fill='none' stroke='%230D9488' stroke-width='16' stroke-linecap='round' opacity='0.32'/></svg>"),
        /* Bottom-left ensō — smaller, partially off-canvas */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><path d='M150 38 A112 112 0 1 1 62 208' fill='none' stroke='%236366F1' stroke-width='14' stroke-linecap='round' opacity='0.22'/></svg>"),
        /* Teal bloom, upper-right */
        radial-gradient(circle at 78% 18%, rgba(20, 184, 166, 0.08) 0%, transparent 55%),
        /* Indigo bloom, lower-left */
        radial-gradient(circle at 18% 88%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
        /* Rice-paper noise */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.55'/></svg>");
    background-position:
        calc(100% + 140px) -90px,
        -100px calc(100% + 130px),
        center,
        center,
        0 0;
    background-size:
        620px 620px,
        480px 480px,
        100% 100%,
        100% 100%,
        240px 240px;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
}

.dashboard-main > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    /* Sidebar hidden off-screen by default */
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 72px;
        height: auto;               /* wraps nav content only */
        overflow-y: visible;
        z-index: 1000;
        width: 220px;
        transition: left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: var(--shadow-2xl);
        padding: var(--space-4);
        padding-bottom: var(--space-5);
        background: white;
        border-radius: 0 0 var(--radius-xl) 0;  /* float the bottom-right corner */
    }

    /* Hide user profile — only nav items on mobile */
    .app-sidebar .sidebar-footer {
        display: none;
    }

    .sidebar-logo {
        margin-bottom: var(--space-4);
        padding-bottom: var(--space-3);
    }

    .sidebar-logo img {
        width: 110px;
    }

    .sidebar-nav {
        gap: var(--space-1);
    }

    .app-sidebar.mobile-open {
        left: 0;
        background: white;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
    }
    .app-sidebar.mobile-open .nav-item {
        background: white;
        color: var(--color-warm-700);
    }

    .app-sidebar.mobile-open .nav-item.active {
        background: transparent;
        color: #111827;
        border: 2px solid #111827;
        padding: calc(var(--space-3) - 2px) calc(var(--space-4) - 2px);
    }

    .app-sidebar.mobile-open .nav-item:hover:not(.active) {
        background: var(--color-warm-100);
        color: var(--color-primary);
    }
    
    /* CRITICAL: Remove left margin on mobile! */
    .dashboard-main {
        margin-left: 0;             /* No margin - full width on mobile */
        padding: 0;
        padding-top: 100px;          /* Space for hamburger button */
    }

    .dashboard-main::before {
        left: 0;
    }
    
    /* Stats — single row on mobile */
    .dashboard-stats {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 0;
        padding: 8px 0;
        margin-bottom: 24px;
    }

    .stat-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2px 2px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.3px;
        text-align: center;
        line-height: 1.2;
    }

    .stat-number {
        font-size: 13px;
        text-align: center;
    }
    
    .btn-request-feedback {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 24px;
        box-shadow: 0 3px 10px rgba(20, 184, 166, 0.25);
        margin-bottom: 10px;
    }

    .btn-request-feedback img {
        width: 20px;  /* Smaller icon */
        height: 20px;
    }
}

/* ============================================
   🆕 DASHBOARD CONTENT REDESIGN (WISE-STYLE)
   ============================================ */

/* Page Header (the "Home" title at top) */
.page-header {
    margin-bottom: var(--space-8);
}

.ap-page-header--with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .ap-page-header--with-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Development Planner header — button below subtitle, left-aligned desktop */
.ap-page-header--centered {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
}

/* Keep the button compact — override the mobile full-width rule */
.ap-page-header--centered .ap-btn-gradient,
.ap-page-header--centered .ap-btn-gradient--sm,
.ap-page-header--centered .pg-btn-add-primary {
    width: auto !important;
    padding: 10px 22px;
}

@media (max-width: 768px) {
    .ap-page-header--centered {
        align-items: center;
        text-align: center;
    }
}

.page-title {
    font-size: var(--text-3xl);      /* Big and bold! */
    font-weight: var(--font-semibold);
    font-family: var(--font-display);
    color: var(--color-warm-800);
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 16px;
        margin-bottom: 24px;
        text-align: center;
    }

    .page-title {
        font-size: 28px;
        font-weight: 600;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Hero Action Section - The Star of the Show! */
.hero-actions {
    margin-bottom: var(--space-8);
    display: flex;
    gap: var(--space-4);
}

.btn-request-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 14px 28px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: filter var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.btn-request-feedback:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.btn-request-feedback:active {
    filter: none;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.25);
}

/* Icon styling */
.btn-request-feedback img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);  /* Makes the SVG white */
}

.btn-icon {
    font-size: 22px;
}

.btn-text {
    font-size: var(--text-base);
}

/* Stats Cards - Cleaner, Minimal Design */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-3) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0.75;
}

/* ── Hero stat layout (results.html) ───────────────────
   Overrides the 4-col grid above with a hero card + supporting list.
   Add modifier .dashboard-stats--hero to opt in. */
.dashboard-stats--hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-4) 0 var(--space-6);
    margin-bottom: var(--space-6);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 1;
}

.stat-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2) var(--space-6) var(--space-2) 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-hero-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-warm-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-2);
}

.stat-hero-number {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem);
    font-weight: var(--font-semibold);
    line-height: 1;
    color: var(--color-warm-800);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.stat-hero-sub {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-primary-50);
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.stat-hero-sub-num {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}

.stat-hero-sub-text {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-warm-700);
}

/* Right-side supporting list — flat rows, no card chrome */
.stat-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: var(--space-2) 0 var(--space-2) var(--space-2);
}

.stat-list-item {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-list-item:last-child {
    border-bottom: none;
}

.stat-list-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-warm-600);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-list-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Loading state — fades placeholders gently */
.dashboard-stats--hero.loading {
    opacity: 0.55;
}

/* Animate hero number when it updates (reuses existing count-up keyframe) */
.stat-hero-number.updating {
    animation: count-up 0.5s var(--ease-bounce);
}

/* Mobile: stack hero on top, supporting items below in a row */
@media (max-width: 768px) {
    .dashboard-stats--hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
        padding: var(--space-2) 0 var(--space-5);
    }

    .stat-hero {
        padding: 0 0 var(--space-4) 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .stat-hero-number {
        font-size: clamp(2.25rem, 1.5rem + 4vw, 3rem);
        margin-bottom: var(--space-3);
    }

    .stat-list {
        flex-direction: row;
        gap: var(--space-6);
        padding: 0;
    }

    .stat-list-item {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
        padding: 0;
        border-bottom: none;
    }

    .stat-list-label {
        font-size: 10px;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    .stat-list-number {
        font-size: var(--text-xl);
    }
}


/* Latest Activity Section */
.latest-activity {
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    margin-bottom: var(--space-4);
}

.activity-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.activity-icon {
    font-size: 24px;
    flex-shrink: 0;                             /* Icon won't shrink if text is long */
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.activity-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
}

/* Requests Section */
.requests-section {
    margin-bottom: var(--space-12);
}

.section-header {
    display: flex;
    justify-content: space-between;            /* Title on left, count on right */
    align-items: center;
    margin-bottom: var(--space-5);
}

.section-count {
    font-size: var(--text-sm);
    color: var(--color-warm-600);
    font-weight: var(--font-medium);
}

/* Requests List - Vertical Stack (not grid anymore) */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);                       /* Space between cards */
}

.request-card-compact {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.request-card-compact:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(20, 184, 166, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-sm);
}

/* Card Header - Title and Status on one line */
.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.card-anon-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #1E40AF;
    background: #DBEAFE;
    border: 1px solid #BFDBFE;
    border-radius: 99px;
    padding: 2px 7px;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
}

/* Mobile-only anon badge (sibling of h3, mirrors status badge position) */
.card-anon-badge--mobile {
    display: none;
}

.request-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    flex: 1;                                    /* Takes up available space */
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Status Badge Base */
.status-badge {
    display: inline-block;
    min-width: 90px;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-family: var(--font-sans);
    text-align: center;
}


/* ✅ COMPLETED - Green */
.status-badge.completed {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

/* ◎ ACTIVE - Sky blue (matches button gradient) */
.status-badge.active {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

/* ⏰ DUE SOON - Amber */
.status-badge.due-soon {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* ⚠ OVERDUE - Rose */
.status-badge.overdue {
    background: #FFE4E6;
    color: #9F1239;
    border: 1px solid #FECDD3;
}

/* 🚫 CANCELLED/EXPIRED - Muted gray */
.status-badge.cancelled,
.status-badge.expired,
.status-badge.pending {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

/* Expandable Details Section (hidden by default) */
.request-details {
    max-height: 0;                              /* Collapsed state */
    overflow: hidden;                           /* Hides content when collapsed */
    transition: max-height 0.3s ease-out;       /* Smooth expand/collapse animation */
    margin-top: 0;
}

.request-details.expanded {
    max-height: none;                           /* No artificial cap — grows to content height */
    overflow-y: auto;
    margin-top: var(--space-4);
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

.meta-item {
    font-size: var(--text-sm);
    color: var(--color-warm-600);
}

.meta-label {
    font-weight: var(--font-medium);
    color: var(--color-warm-700);
}

/* Expand/Collapse Arrow Icon */
.expand-icon {
    font-size: 18px;
    color: var(--color-warm-600);
    transition: transform var(--transition-fast);
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
}

.expand-icon:hover {
    background: var(--color-warm-200);
}

.request-card-compact.expanded .expand-icon {
    transform: rotate(180deg);                  /* Flips arrow when expanded */
}


/* ============================================
   🆕 MOBILE MENU BUTTON - BEAUTIFUL VERSION
   ============================================ */

.mobile-menu-btn {
    display: none;              /* Hidden on desktop */
    position: relative;
    width: 52px;
    height: 52px;
    background: white;
    border: 2px solid var(--color-warm-200);
    border-radius: var(--radius-xl);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    color: var(--color-warm-700);
    flex-shrink: 0;
    font-size: 0;               /* hide any text content */
}

/* CSS-drawn hamburger bars */
.mobile-menu-btn::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -6px);
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
    transition: box-shadow 0.15s, transform 0.15s, opacity 0.15s;
}

.mobile-menu-btn:hover {
    border-color: var(--color-primary);  /* CHANGED: Border changes on hover */
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.25);
    transform: translateY(-2px);  /* CHANGED: Lift effect instead of scale */
}

.mobile-menu-btn:active {
    transform: translateY(0);   /* CHANGED: Push down when clicked */
}

/* When sidebar is open, button turns teal */
.mobile-menu-btn.open {
    background: var(--color-primary);  /* NEW: Teal background when open */
    border-color: var(--color-primary);
    color: white;               /* NEW: White icon when open */
}

/* REMOVED all the span styles - we're using text icons now! */

/* Mobile overlay backdrop - KEEP THIS AS IS */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    opacity: 1;
    pointer-events: none;
}

.mobile-sidebar-overlay.visible {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .mobile-sidebar-overlay {
        display: block;
    }
}   

/* Enhanced Feedback Journey */
.feedback-journey {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.journey-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    letter-spacing: 0;
    margin-bottom: var(--space-3);
}

.view-feedback-btn {
    display: inline-block;
    margin-top: var(--space-4);
    padding: 8px 16px;
    background: linear-gradient(135deg, #14B8A6 0%, #10B981 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2);
}

.view-feedback-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(20, 184, 166, 0.3);
}

.no-feedback-yet {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-warm-400);
    font-style: italic;
}

.recipient-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.recipient-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

/* Status indicator dot */
.recipient-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.recipient-status-dot.completed {
    background: #34a853;
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.2);
}

.recipient-status-dot.pending {
    background: #fbbc04;
    box-shadow: 0 0 0 3px rgba(251, 188, 4, 0.2);
}

.recipient-info {
    flex: 1;
    min-width: 0;
}

.recipient-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-800);
}

.recipient-status-text {
    font-size: var(--text-xs);
    color: var(--color-warm-600);
    margin-top: 2px;
}

/* =============================================
   CARD INNER WRAPPER — CSS Grid layout
   Desktop: badge | title ... status
            badge | progress bar
            badge | bottom row
   Mobile:  badge  status-badge
            title (full width)
            progress bar (full width)
            bottom row (full width)
   ============================================= */

.card-inner-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 6px;
    align-items: center;
}

/* Desktop grid assignments:
   Col 1: type badge (row 1) — aligns with title
   Col 2: title (row 1), progress (row 2), bottom row (row 3)
   Status badge: absolute top-right corner of the card */
.card-type-badge       { grid-column: 1; grid-row: 1; align-self: center; }
.card-status-badge     { position: absolute; top: 13px; right: 14px; }
.request-title         { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; font-weight: var(--font-semibold); color: var(--color-warm-800); line-height: 1.35; padding-right: 70px; }
.card-progress-bar-wrap { grid-column: 1 / 3; grid-row: 2; position: relative; }
.card-bottom-row       { grid-column: 1 / 3; grid-row: 3; display: flex; justify-content: space-between; align-items: center; }

/* Progress bar — desktop: thin with label below */
.card-progress-bar {
    height: 4px;
    background: #F3F4F6;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rate label inside bar — mobile only */
.card-rate-inline {
    display: none;
}

.card-rate-inline strong {
    color: white;
    font-weight: 700;
}

/* Person icons row */
.person-icons-grid {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.person-icons-grid svg {
    display: block;
    flex-shrink: 0;
}

.card-icons-overflow {
    font-size: 10px;
    color: #6B7280;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 2px;
}

/* Rate text below bar — desktop only */
.card-rate-text {
    font-size: 9px;
    color: #9CA3AF;
    letter-spacing: 0.5px;
}

.card-rate-text strong {
    color: #000;
    font-weight: 600;
}

/* ---- Mobile overrides ---- */
@media (max-width: 768px) {
    /* 3-row grid: [emoji + title] / [progress] / [icons]
       Status badge stays absolute top-right of the card */
    .card-inner-wrapper {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 8px;
        row-gap: 4px;
    }

    /* Row 1 col 1: type badge — sits beside the title */
    .card-type-badge {
        grid-column: 1;
        grid-row: 1;
        width: 26px;
        height: 26px;
        font-size: 13px;
        border-radius: 7px;
        align-self: center;
    }
    .card-type-badge .icon-mask {
        width: 14px;
        height: 14px;
    }

    /* Status badge: absolute top-right corner, same as desktop */
    .card-status-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 7px !important;
        padding: 2px 7px !important;
        min-width: unset !important;
    }

    /* Anon badge: hide inline version, show absolute top-left version */
    .card-anon-badge {
        display: none;
    }

    .card-anon-badge--mobile {
        display: inline-flex;
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 7px !important;
        padding: 2px 7px !important;
        margin-left: 0;
    }

    /* Row 1 col 2: title — no right padding needed, badge is above this row */
    .request-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 12px !important;
        line-height: 1.35 !important;
        padding-right: 0;
    }

    /* Row 2: progress bar full width */
    .card-progress-bar-wrap {
        grid-column: 1 / 3;
        grid-row: 2;
        margin-top: 5px;
    }


    /* Row 3: bottom row full width */
    .card-bottom-row {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    /* Mobile: taller bar with label inside */
    .card-progress-bar {
        height: 13px;
        border-radius: 4px;
    }

    .card-rate-inline {
        display: block;
        position: absolute;
        left: 7px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 6.5px;
        color: rgba(255, 255, 255, 0.75);
        letter-spacing: 0.3px;
        pointer-events: none;
        white-space: nowrap;
    }

    .card-rate-text {
        display: none;
    }

    .request-card-compact {
        padding: 38px 12px 10px;
        margin-bottom: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

/* Better expand icon */
.expand-icon {
    font-size: 20px;
    color: var(--color-gray-400);
    transition: transform 0.3s ease;
}

.request-card-compact.expanded .expand-icon {
    transform: rotate(90deg);
}

/* Progress bar shimmer effect */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

* Reminder info styling */
.recipient-reminder-info {
    font-size: 11px;
    color: #6B7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* Mobile responsive meta items */
@media (max-width: 768px) {
    .request-meta {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .meta-item {
        width: 100%;
    }
}

/* Timeline responsive display */
.timeline-desktop {
    display: block;
}

.timeline-mobile {
    display: none;
}

/* Switch to vertical timeline on mobile */
@media (max-width: 600px) {
    .timeline-desktop {
        display: none;
    }

    .timeline-mobile {
        display: block;
    }
}

/* Optional: Add smooth transitions to timeline circles */
.feedback-journey [style*="border-radius: 50%"] {
    transition: all 0.3s ease;
}

/* Feedback journey section styling (keep existing, just ensure these are present) */
.feedback-journey {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

.journey-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    letter-spacing: 0;
    margin-bottom: var(--space-3);
}

/* Close button inside sidebar (mobile only) */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;  /* Reduced from 36px */
    height: 32px;  /* Reduced from 36px */
    border: none;
    background: transparent;  /* Transparent background */
    border-radius: 50%;
    color: var(--color-gray-500);  /* Lighter gray */
    font-size: 24px;  /* Icon size */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;  /* Remove any padding */
}

.sidebar-close-btn:hover {
    background: var(--color-gray-100);  /* Subtle hover background */
    color: var(--color-gray-700);  /* Darker on hover */
    transform: rotate(90deg);  /* Subtle rotation animation */
}

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
    }
    
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Button inside mobile header should not have conflicting positioning */
.mobile-header .mobile-menu-btn {
    position: relative;
    top: auto;
    left: auto;
    order: 2;
    margin-left: auto;
}

.mobile-logo {
    height: 60px;
    width: auto;
    order: 1;
}

@media (max-width: 768px) {
    /* Mobile header - fixed at top */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1001;
        padding: 12px 16px;
        background: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Menu button inside header */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide sidebar logo on mobile */
    .app-sidebar .sidebar-logo img {
        display: none;
    }


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

@media (max-width: 768px) {
    /* Bulletin board header */
    .requests-section > div:first-child {
        padding: 0 8px;  /* Add horizontal padding */
        margin-bottom: 16px;  /* Reduce space before cards */
    }
    
    /* Bulletin board SVG icon */
    .requests-section svg {
        width: 40px;  /* Slightly smaller icon */
        height: 40px;
        flex-shrink: 0;
    }
    
    /* "My Feedback Board" title */
    .requests-section h2,
    div[style*="font-size: 28px"] {
        font-size: 24px !important;  /* Smaller title */
    }
    
    /* Request count text */
    #requests-count {
        font-size: 12px !important;
        opacity: 0.7;
    }
}


@media (max-width: 768px) {
    /* Smooth entrance animation for cards */
    .request-card-compact {
        animation: slideInUp 0.3s ease-out backwards;
    }
    
    .request-card-compact:nth-child(1) { animation-delay: 0.1s; }
    .request-card-compact:nth-child(2) { animation-delay: 0.2s; }
    .request-card-compact:nth-child(3) { animation-delay: 0.3s; }
    
    /* Stats cards micro-animation */
    .stat-number {
        transition: transform 0.2s ease;
    }
    
    .stat-card:active .stat-number {
        transform: scale(1.1);
    }
    
    /* Button press feedback */
    .btn-request-feedback:active {
        transform: scale(0.98);
        box-shadow: 0 2px 6px rgba(66, 133, 244, 0.2);
    }
}

/* Question filter buttons */
.filter-btn {
    padding: 6px 12px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

.filter-btn.active {
    background: #14B8A6;
    color: white;
    border-color: #14B8A6;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (min-width: 1800px) {
    .wizard-content {
        max-width: 550px !important;
    }
}

/* ============================================
   WIZARD STEP SUBTITLE
   ============================================ */
.wizard-step-subtitle {
    color: var(--color-warm-600);
    font-size: 14px;
    margin: -12px 0 20px;
    line-height: 1.5;
}

/* ============================================
   STEP 1 — FOCUS AREA SECTION
   ============================================ */
.focus-area-section {
    background: #F9F7F4;
    border-radius: 18px;
    padding: 20px 16px 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.06);
}


.focus-area-section .step1-section-label {
    margin-bottom: 4px;
    font-size: 20px;
    text-align: center;
}

.focus-area-hint {
    font-size: 11px;
    color: var(--color-warm-400);
    text-align: center;
    margin: 0 0 14px;
    font-style: italic;
}

/* ── Grid ── */
.feedback-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    transition: opacity 0.25s ease;
}

.feedback-type-cards.grid-dimmed { opacity: 0.28; pointer-events: none; }

/* ── Cards ── */
.feedback-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 6px;
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.feedback-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 8px 22px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.14);
}

.feedback-type-card:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition-duration: 0.07s;
}

.feedback-type-card.previewing {
    border-color: rgba(13, 148, 136, 0.5);
    background: rgba(13, 148, 136, 0.03);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1), 0 3px 10px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.feedback-type-card.selected {
    border-color: #0D9488;
    background: rgba(13, 148, 136, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1.5px #0D9488, 0 4px 14px rgba(13,148,136,0.15);
}

/* ── Card icon (SVG) ── */
.type-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ── Icon mask — SVG as CSS mask, gradient fill ── */
.icon-mask {
    display: block;
    width: 28px;
    height: 28px;
    background-image: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    transition: transform 0.18s ease, filter 0.18s ease;
}

/* ── Hover: scale + darken ── */
.feedback-type-card:hover .icon-mask { transform: scale(1.1); filter: brightness(0.82); }

/* ── Focus area icons — swap paths here as SVGs are created ── */
.icon-general    { mask-image: url('/assets/general-icon.svg'); -webkit-mask-image: url('/assets/general-icon.svg'); }
.icon-career     { mask-image: url('/assets/career-icon.svg'); -webkit-mask-image: url('/assets/career-icon.svg'); }
.icon-new-role   { mask-image: url('/assets/new-role-icon.svg'); -webkit-mask-image: url('/assets/new-role-icon.svg'); }
.icon-project    { mask-image: url('/assets/project-icon.svg'); -webkit-mask-image: url('/assets/project-icon.svg'); }
.icon-event      { mask-image: url('/assets/event-icon.svg'); -webkit-mask-image: url('/assets/event-icon.svg'); }
.icon-leadership { mask-image: url('/assets/leadership-icon.svg'); -webkit-mask-image: url('/assets/leadership-icon.svg'); }
.icon-people     { mask-image: url('/assets/people-management-icon.svg'); -webkit-mask-image: url('/assets/people-management-icon.svg'); }
.icon-collab     { mask-image: url('/assets/collaboration-icon.svg'); -webkit-mask-image: url('/assets/collaboration-icon.svg'); }
.icon-one-on-one { mask-image: url('/assets/one-on-one-icon.svg'); -webkit-mask-image: url('/assets/one-on-one-icon.svg'); }
.icon-client     { mask-image: url('/assets/client-icon.svg'); -webkit-mask-image: url('/assets/client-icon.svg'); }
.icon-skill      { mask-image: url('/assets/skill-behavior-icon.svg'); -webkit-mask-image: url('/assets/skill-behavior-icon.svg'); }
.icon-custom     { mask-image: url('/assets/custom-icon.svg'); -webkit-mask-image: url('/assets/custom-icon.svg'); }

/* ── Card label ── */
.type-card-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #1C1917;
    line-height: 1.25;
    text-align: center;
    width: 100%;
}

.feedback-type-card.selected .type-card-label,
.feedback-type-card.previewing .type-card-label {
    color: #0D9488;
}

.feedback-type-card.selected .icon-mask,
.feedback-type-card.previewing .icon-mask {
    transform: scale(1.1);
    filter: brightness(0.82);
}

/* ── Backdrop ── */
.fa-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
}
.fa-backdrop-t     { transition: opacity 0.22s ease; }
.fa-backdrop-hidden  { opacity: 0; }
.fa-backdrop-visible { opacity: 1; }

/* ── Expanded panel — visual shell only, no overflow ── */
.fa-expanded {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 201;
    background: #FFFFFF;
    border-radius: 24px;
    width: min(92vw, 480px);
    max-height: 88vh;
    overflow: hidden;          /* shell clips content, no scrollbar here */
    box-shadow: 0 8px 48px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* ── Inner scroll body — scrollbar lives here, well inside the shell ── */
.fae-scroll-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    padding: 10px 28px 28px 22px; /* top-bar already gives top space; extra right keeps text clear of scrollbar */
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.fae-scroll-body::-webkit-scrollbar {
    width: 5px;
}
.fae-scroll-body::-webkit-scrollbar-track {
    background: transparent;
    margin-bottom: 20px;
}
.fae-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.14);
    border-radius: 10px;
}
.fae-scroll-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

.fa-exp-t      { transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s ease; }
.fa-exp-hidden { transform: translate(-50%, -50%) scale(0.94); opacity: 0; }
.fa-exp-visible{ transform: translate(-50%, -50%) scale(1);    opacity: 1; }

/* No drag handle needed (not a bottom sheet) */
.fa-expanded::before { display: none; }

/* ── Non-scrolling top bar — scrollbar starts below this ── */
.fae-top-bar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 14px 16px 0;
}

/* ── Close button ── */
.fae-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #F5F4F2;
    border: none;
    font-size: 12px;
    color: #78716C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.fae-close:hover { background: #EAE8E4; color: #1C1917; }

/* ── Hero row ── */
.fae-hero {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 40px;
    align-items: center;
    gap: 14px;
}

.fae-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488;
}

.fae-emoji .icon-mask {
    width: 40px;
    height: 40px;
}

.fae-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: #1C1917;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.fae-confirmed {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #0D9488;
    letter-spacing: 0.03em;
}

/* ── Divider ── */
.fae-rule {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 18px 0 16px;
    border: none;
    display: block;
}

/* ── Description ── */
.fae-desc {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 13.5px;
    color: #3D3835;
    line-height: 1.75;
    margin: 0 0 18px;
}

/* ── Question preview ── */
.fae-questions {
    background: #F9F7F4;
    border-radius: 14px;
    padding: 15px 17px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(0,0,0,0.05);
}

.fae-questions-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #A8A29E;
    margin: 0 0 11px;
}

.fae-question-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.fae-question-list li {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 12.5px;
    color: #44403C;
    line-height: 1.55;
    padding-left: 13px;
    position: relative;
}

.fae-question-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #C8C4BF;
}

.fae-library-note {
    font-size: 11px;
    color: #A8A29E;
    font-style: italic;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 10px;
    line-height: 1.5;
}

/* ── Actions ── */
.fae-actions {
    display: flex;
    gap: 10px;
}

.fae-btn-ghost {
    flex: 1;
    padding: 13px 14px;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #44403C;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: border-color 0.15s, background 0.15s;
}
.fae-btn-ghost:hover { border-color: rgba(0,0,0,0.28); background: #F9F7F4; }

.fae-btn-primary {
    flex: 2;
    padding: 13px 14px;
    background: #1C1917;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    letter-spacing: 0.015em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.fae-btn-primary:hover {
    background: #292524;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
    transform: translateY(-1px);
}
.fae-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

/* ── Desktop overrides ── */
@media (min-width: 700px) {
    .focus-area-section { padding: 24px 22px 22px; }

    .feedback-type-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .type-card-icon { width: 32px; height: 32px; }
    .icon-mask      { width: 32px; height: 32px; }
    .type-card-label { font-size: 12px; }

    .fae-title { font-size: 42px; }
    .fae-desc  { font-size: 14px; }
}

/* ============================================
   STEP 3 — QUESTION BUILDER
   ============================================ */
.q-list {
    margin-bottom: 4px;
}

.q-preloaded-hint {
    font-size: 12px;
    color: var(--color-warm-500);
    font-style: italic;
    margin-bottom: 8px;
}

.q-template-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 10px;
    margin-bottom: 10px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 999px;
    font-size: 12px;
    color: #0F766E;
    max-width: 100%;
}

.q-template-pill-icon {
    display: inline-flex;
    color: #0F766E;
    flex-shrink: 0;
}

.q-template-pill-label {
    font-weight: 500;
    color: var(--color-warm-600);
    white-space: nowrap;
}

.q-template-pill-name {
    font-weight: 700;
    color: #0F766E;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.q-card {
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.q-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.q-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 12px 11px 8px;
}

/* Up/Down arrows */
.q-card-arrows {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    padding-top: 2px;
}

.q-arrow-btn {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
    line-height: 1;
}

.q-arrow-btn:hover:not(:disabled) {
    background: rgba(20, 184, 166, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.q-arrow-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

/* Question text + badge */
.q-card-content {
    flex: 1;
    min-width: 0;
}

.q-card-text {
    display: block;
    font-size: 13px;
    color: var(--color-warm-800);
    line-height: 1.45;
    margin-bottom: 6px;
    word-break: break-word;
}

/* Type badge */
.q-type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.q-type-textarea {
    background: #EFF6FF;
    color: #1D4ED8;
}

.q-type-rating {
    background: #FFF7ED;
    color: #C2410C;
}

.q-type-multiple_choice {
    background: #F5F3FF;
    color: #7C3AED;
}

.q-type-sbi {
    background: #FFF3E0;
    color: #E65100;
}

/* Left-border accent by question type */
.q-card--sbi              { border-left: 3px solid #FFD699; }

/* Edit / Delete buttons */
.q-card-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    align-items: flex-start;
    padding-top: 1px;
}

.q-edit-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px 5px;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-edit-btn:hover {
    background: rgba(20, 184, 166, 0.08);
    color: var(--color-primary-dark);
}

.q-delete-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px 5px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-delete-btn:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

/* Inline edit panel */
.q-edit-panel {
    border-top: 2px solid var(--color-primary);
    padding: 14px 14px 16px;
    background: #f8fffe;
}

.q-edit-panel label,
.q-custom-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-warm-600);
    margin-bottom: 5px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.q-edit-panel label:first-child,
.q-custom-form label:first-of-type {
    margin-top: 0;
}

.q-edit-textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #202124;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.q-edit-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}

.q-edit-select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #202124;
    background: white;
    box-sizing: border-box;
    cursor: pointer;
}

.q-edit-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.q-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ─── Anchor picker (custom + edit forms) ────────────────────── */
.q-anchor-picker {
    margin-top: 14px;
}

.q-anchor-picker > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-700);
    margin-bottom: 8px;
}

.q-anchor-optional {
    font-weight: 400;
    color: var(--color-warm-400);
}

.q-anchor-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.q-anchor-opt {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-warm-600);
    background: var(--color-warm-100);
    border: 1.5px solid var(--color-warm-300);
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 20px;
}

.q-anchor-opt:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    background: var(--color-primary-50);
}

.q-anchor-opt--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

.q-anchor-opt--active:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
}

/* Live preview strip */
.q-anchor-preview {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 10px;
}

.q-anchor-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
    min-width: 0;
}

.q-anchor-preview-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--color-warm-300);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-600);
    flex-shrink: 0;
}

.q-anchor-preview-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--color-warm-500);
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    padding: 0 1px;
}

/* N/A toggle in wizard forms */
.q-allow-na-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 10px;
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-warm-700);
    user-select: none;
}

.q-allow-na-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.q-allow-na-row:hover {
    border-color: var(--color-warm-300);
    background: var(--color-warm-200);
}

.q-edit-cancel-btn {
    background: white;
    border: 1px solid var(--color-warm-300);
    color: var(--color-warm-700);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.q-edit-cancel-btn:hover {
    background: var(--color-warm-100);
}

.q-edit-save-btn {
    background: var(--color-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.22);
}

.q-edit-save-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.q-edit-save-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* Multiple-choice choice builder */
.q-choice-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.q-choice-row .feedback-input {
    flex: 1;
    margin-bottom: 0;
}

.q-choice-remove-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid #d93025;
    color: #d93025;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.q-choice-remove-btn:hover {
    background: #fce8e6;
}

.q-choice-add-btn {
    background: none;
    border: 1px dashed #5f6368;
    color: #5f6368;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 2px;
    margin-bottom: 10px;
}

.q-choice-add-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

/* Action row: Write Own + Library */
.q-action-row {
    display: flex;
    gap: 8px;
    margin: 4px 0 8px;
}

.q-action-row .add-giver-btn {
    flex: 1;
    margin-bottom: 0;
}

.q-library-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: rgba(20, 184, 166, 0.06);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-primary-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.q-library-btn:hover {
    background: rgba(20, 184, 166, 0.12);
}

/* Custom question form */
.q-custom-form {
    background: white;
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.1);
}

.q-custom-form h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin: 0 0 14px;
}

/* Library panel */
.q-library {
    background: white;
    border: 1px solid var(--color-warm-200);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
}

.q-library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.q-library-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
}

.q-library-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9aa0a6;
    padding: 0 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.15s;
}

.q-library-close:hover {
    background: #f1f3f4;
    color: #5f6368;
}

.q-library-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.q-library-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.q-library-item {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    font-size: 13px;
    gap: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .q-action-row--cards {
        grid-template-columns: 1fr;
    }

    .q-library-list {
        max-height: 180px;
    }

    .feedback-type-card {
        padding: 12px 6px 10px;
        min-height: 82px;
    }
}

/* ── Psychology-informed improvements ─────────────────────────────── */

/* Context box shown to feedback givers on Screen 2 */
.request-context-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.context-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #065F46;
    margin: 0 0 6px;
}
.context-text {
    font-size: 13px;
    color: #1F2937;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .request-context-box {
        padding: 10px 12px;
        margin-bottom: 14px;
    }
    .context-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .context-text {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* Coaching tip banner on Screen 2 */
.coaching-tip-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 24px;
}
.coaching-tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.coaching-tip-text {
    font-size: 13px;
    color: #78350F;
    line-height: 1.55;
    margin: 0;
}

/* Thank-you sub-headline */
.thank-you-subtext {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin: 8px auto 24px;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

/* Pre-reflection interstitial in results modal */
.pre-reflection-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px 24px;
}
.pre-reflection-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.pre-reflection-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}
.pre-reflection-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.65;
    max-width: 400px;
    margin: 0 0 20px;
}
.pre-reflection-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 380px;
    width: 100%;
}
.pre-reflection-list li {
    font-size: 14px;
    color: #4B5563;
    padding: 10px 14px;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 3px solid #14B8A6;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════
   STEP 3 ENHANCEMENTS — Builder header, library, preview
   ══════════════════════════════════════════════════════════════════ */

/* Builder header: title + preview button side by side */
.q-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 8px;
    margin-bottom: 16px;
}
.q-builder-header h3 { margin-bottom: 4px; }

/* Override the global negative-margin rule inside the builder header */
.q-builder-header .wizard-step-subtitle {
    margin: 0;
}

/* "Preview Form" trigger button */
.q-preview-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: white;
    border: 1.5px solid var(--color-primary);
    border-radius: 20px;
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}
.q-preview-btn:hover {
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

.q-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.q-save-template-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    border: 1.5px solid var(--color-warm-300, #d6d3cf);
    border-radius: 20px;
    color: var(--color-warm-700, #52524c);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-top: 2px;
}
.q-save-template-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.q-save-template-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    background: rgba(20, 184, 166, 0.05);
}
.q-save-template-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Saved-template picker on Step 1 ──────────────────────── */
.tpl-picker {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--color-warm-300, #d6d3cf);
}
.tpl-picker-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.tpl-picker-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-700, #52524c);
}
.tpl-picker-count {
    font-size: 11px;
    color: var(--color-warm-500, #94928b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tpl-picker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tpl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--color-warm-300, #d6d3cf);
    border-radius: 999px;
    color: var(--color-warm-800);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tpl-chip:hover {
    border-color: var(--color-primary);
    background: rgba(20, 184, 166, 0.06);
}
.tpl-chip-count {
    font-size: 11px;
    color: var(--color-warm-500, #94928b);
    background: var(--color-warm-100, #f5f3f0);
    border-radius: 999px;
    padding: 1px 7px;
}

/* ── Focus-area header (title centered, loader below) ─────── */
.focus-area-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.focus-area-header > div:first-child {
    text-align: center;
    width: 100%;
}

/* ── Collapsible template loader ───────────── */
.tpl-loader {
    position: relative;
    flex-shrink: 0;
}
.tpl-loader-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 999px;
    color: var(--color-warm-800, #2E2C2A);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}
.tpl-loader-toggle:hover {
    background: rgba(20, 184, 166, 0.11);
    border-color: rgba(20, 184, 166, 0.45);
}
.tpl-loader-toggle--open {
    background: rgba(20, 184, 166, 0.11);
    border-color: rgba(20, 184, 166, 0.5);
}
.tpl-loader-icon {
    width: 13px;
    height: 13px;
    color: #0F766E;
    flex-shrink: 0;
}
.tpl-loader-label {
    line-height: 1;
}
.tpl-loader-count {
    font-size: 10.5px;
    font-weight: 700;
    color: #0F766E;
    background: rgba(20, 184, 166, 0.18);
    border-radius: 999px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
}
.tpl-loader-chev {
    width: 11px;
    height: 11px;
    color: var(--color-warm-600, #6b6a64);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.tpl-loader-toggle--open .tpl-loader-chev {
    transform: rotate(180deg);
}
.tpl-loader-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    min-width: 240px;
    max-width: min(380px, 92vw);
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(17, 24, 39, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* ── Save-as-Template modal ───────────── */
.tpl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tpl-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(46, 44, 42, 0.06),
        0 24px 60px -16px rgba(17, 24, 39, 0.28);
    width: 100%;
    max-width: 440px;
    padding: 22px 22px 20px;
    font-family: var(--font-sans);
}

.tpl-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tpl-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(20, 184, 166, 0.12);
    color: #0F766E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-modal-title {
    margin: 0 0 2px 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-warm-800);
    line-height: 1.25;
}

.tpl-modal-sub {
    margin: 0;
    font-size: 12.5px;
    color: var(--color-warm-600);
    line-height: 1.45;
}

.tpl-modal-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-warm-600);
    margin-bottom: 6px;
}

.tpl-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-warm-800);
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tpl-modal-input:focus {
    outline: none;
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.tpl-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.tpl-modal-cancel,
.tpl-modal-save,
.tpl-modal-save-new {
    padding: 8px 16px;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.tpl-modal-cancel {
    background: #ffffff;
    color: var(--color-warm-700);
    border-color: rgba(17, 24, 39, 0.12);
}

.tpl-modal-cancel:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: rgba(17, 24, 39, 0.2);
}

.tpl-modal-save {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px -3px rgba(15, 118, 110, 0.35);
}

.tpl-modal-save:hover:not(:disabled) {
    filter: brightness(1.05);
}

.tpl-modal-save-new {
    background: #ffffff;
    color: var(--color-warm-700);
    border-color: rgba(20, 184, 166, 0.45);
}

.tpl-modal-save-new:hover:not(:disabled) {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.7);
}

.tpl-modal-cancel:disabled,
.tpl-modal-save:disabled,
.tpl-modal-save-new:disabled,
.tpl-modal-delete:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Destructive variant — used by the draft "Delete this draft?" modal */
.tpl-modal-icon--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
}

.tpl-modal-delete {
    padding: 8px 16px;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px -3px rgba(185, 28, 28, 0.4);
    transition: filter 0.15s ease;
}

.tpl-modal-delete:hover:not(:disabled) {
    filter: brightness(1.05);
}

@media (max-width: 600px) {
    .tpl-modal {
        padding: 18px 16px 16px;
        border-radius: 14px;
    }
    .tpl-modal-title { font-size: 16px; }
    .tpl-modal-sub { font-size: 12px; }
    .tpl-modal-input { font-size: 13.5px; }
}

@media (max-width: 768px) {
    .q-builder-header {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
        gap: 10px;
    }
    .q-builder-header .q-preview-btn {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* "Write Your Own" button (replaces dashed add-giver-btn for step 3) */
/* Add-question cards (Write Your Own + SBI) */
.q-add-section {
    border: 1.5px dashed var(--color-warm-300);
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0 4px;
    background: var(--color-warm-50);
}

.q-add-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-warm-400);
    margin-bottom: 10px;
}

.q-action-row--cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.q-action-row--cards .q-add-card {
    flex: 0 1 220px;
    min-width: 160px;
}

.q-add-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--color-warm-200);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
}
.q-add-card:hover {
    background: #fff;
    border-color: var(--color-warm-400);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.q-add-card-icon {
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-warm-700);
}
.q-add-card--library .q-add-card-icon {
    color: var(--color-primary-dark);
}
.q-add-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.q-add-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-800);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.q-add-card-badge {
    font-size: 10px;
    font-weight: 600;
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFB74D;
    border-radius: 10px;
    padding: 1px 7px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.q-add-card-desc {
    font-size: 12px;
    color: var(--color-warm-600);
    line-height: 1.4;
}

.q-add-card--sbi {
    background: #FFFAF5;
    border-color: #FFD699;
}
.q-add-card--sbi:hover {
    background: #FFF3E0;
    border-color: #FFB74D;
}
.q-add-card--sbi .q-add-card-title {
    color: #7f4800;
}
.q-add-card--sbi .q-add-card-desc {
    color: #8a5a00;
}

/* Mobile: stack cards equal width, show long descriptions */
@media (max-width: 768px) {
    .q-action-row--cards {
        flex-direction: column;
    }
    .q-action-row--cards .q-add-card {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }
    .q-add-card-desc--desktop { display: none; }
    .q-add-card-desc--mobile  { display: inline; }
}

/* Desktop: side-by-side cards, show short descriptions */
@media (min-width: 769px) {
    .q-add-card-desc--mobile  { display: none; }
    .q-add-card-desc--desktop { display: inline; }
}

/* Library card: teal-tinted to signal it opens a richer panel */
.q-add-card--library {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.35);
}
.q-add-card--library:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--color-primary);
}
.q-add-card--library .q-add-card-title {
    color: var(--color-primary-dark);
}
.q-add-card--library .q-add-card-desc {
    color: var(--color-primary);
}

/* SBI card display in builder */
.q-sbi-skill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.q-sbi-skill-text {
    font-size: 13px;
    font-weight: 600;
    color: #3c4043;
}
.q-sbi-parts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}
.q-sbi-part {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: #5f6368;
    line-height: 1.4;
}
.q-sbi-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin-top: 1px;
}
.q-sbi-s-label { background: #FFD699; color: #7f4800; }
.q-sbi-b-label { background: #FFD699; color: #7f4800; }
.q-sbi-i-label { background: #FFD699; color: #7f4800; }

/* Library — remove old padding so header/filters/list can control their own */
.q-library {
    padding: 0 !important;
    overflow: hidden;
}
.q-library-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-warm-200);
    background: var(--color-warm-50);
}

/* Search bar */
.q-library-search {
    position: relative;
    padding: 10px 14px 6px;
    border-bottom: 1px solid #eee;
}
.q-search-input {
    font-size: 14px !important;
    padding: 8px 36px 8px 12px !important;
    height: auto !important;
    border-radius: 8px !important;
}
.q-search-clear {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #9aa0a6;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    margin-top: 2px;
}
.q-search-clear:hover { color: #5f6368; }

/* Filter rows */
.q-library-filters {
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.q-library-filters--secondary {
    background: #f4f5f7;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 2px solid #e0e4ea;
    border-bottom: 1px solid var(--color-warm-200);
}

/* Filter section label (e.g. "Topic" / "Format") */
.q-filter-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-right: 2px;
    flex-shrink: 0;
}

/* Smaller pills for the format row */
.filter-btn--sm {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 10px;
}


/* Library list: add top padding now that header/filters control spacing */
.q-library-list {
    padding: 8px 10px 10px;
}

/* Library item — clean card style */
.q-library-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    background: white !important;
    border: 1px solid #e8eaed !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.18s ease !important;
    font-size: 13px !important;
}
.q-library-item:hover:not(:disabled) {
    border-color: var(--color-primary) !important;
    background: rgba(20, 184, 166, 0.04) !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.12) !important;
}
.q-library-item--added {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    cursor: default !important;
    opacity: 0.8 !important;
}
.q-library-item:disabled {
    pointer-events: none !important;
}

/* "+" circle icon on unselected items */
.q-library-add-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.1);
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.18s;
}
.q-library-item:hover:not(:disabled) .q-library-add-icon {
    background: var(--color-primary);
    color: white;
}

/* "✓ Added" green pill on selected items */
.q-library-added-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 12px;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Topic tag badge on library items */
.q-topic-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    background: #f1f3f4;
    color: #5f6368;
    white-space: nowrap;
}

/* ── "Back to Question Builder" bottom button ── */
.q-back-builder-btn {
    width: 100%;
    padding: 10px 24px;
    background: white;
    border: 1.5px solid var(--color-primary);
    border-radius: 20px;
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.q-back-builder-btn:hover {
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

/* ── Form Preview panel ── */
.q-preview-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eaed;
}
.q-preview-header h3 { margin: 0 0 6px; font-size: 18px; }
.q-preview-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Context box inside preview */
.q-preview-context {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-left: 4px solid #10B981;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.q-preview-context-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #065F46;
    margin: 0 0 5px;
}
.q-preview-context-text {
    font-size: 13px;
    color: #1F2937;
    line-height: 1.55;
    margin: 0;
}

/* Coaching tip inside preview */
.q-preview-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #78350F;
    line-height: 1.5;
}
.q-preview-tip span { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.q-preview-tip p { margin: 0; }

/* Override form-section label inside preview */
.q-preview-questions .form-section label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-primary-dark) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Rating row in preview */
.q-preview-rating {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}
.q-preview-rating-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
}
.q-preview-rating-opt span {
    font-size: 12px;
    color: #6B7280;
}

/* ── Insights page ─────────────────────────────────────────────────────────── */

.insights-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.insights-section-header {
    margin-bottom: 20px;
}

.insights-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.insights-section-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.insights-empty {
    font-size: 14px;
    color: #9CA3AF;
    font-style: italic;
    padding: 8px 0;
    margin: 0;
}

/* Shared bar components */
.insight-bar-track {
    height: 8px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
    flex: 1;
    min-width: 60px;
}

.insight-bar-track--wide {
    min-width: 120px;
}

.insight-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Response rate rows */
.insight-rate-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #F3F4F6;
}

.insight-rate-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.insight-rate-meta {
    flex: 1;
    min-width: 0;
}

.insight-rate-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-rate-sub {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
}

.insight-rate-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 220px;
}

.insight-rate-pct {
    font-size: 13px;
    font-weight: 700;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

/* Rating average rows */
.insight-rating-row {
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.insight-rating-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.insight-rating-question {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 10px;
}

.insight-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-rating-score {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 42px;
}

.insight-rating-denom {
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
}

.insight-rating-count {
    font-size: 12px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.insight-rating-anchor-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    flex-shrink: 0;
    white-space: nowrap;
}

.insight-rating-bars-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 5px;
    line-height: 1.4;
}

.insight-rating-na {
    font-size: 11px;
    font-weight: 500;
    color: #9CA3AF;
    background: rgba(156, 163, 175, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
}

/* Open-ended feedback cards */
.insight-feedback-card {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border-left: 3px solid #14B8A6;
    margin-bottom: 12px;
}

.insight-feedback-card:last-child {
    margin-bottom: 0;
}

.insight-feedback-question {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
    margin: 0 0 8px;
}

.insight-feedback-answer {
    font-size: 14px;
    color: #111827;
    line-height: 1.65;
    margin: 0 0 10px;
}

.insight-feedback-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9CA3AF;
}

.insight-meta-dot {
    color: #D1D5DB;
}

/* Strengths & Growth Areas */
.insights-sg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insights-sg-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E5E7EB;
    border-top-width: 3px;
}

.insights-sg-card--strengths {
    border-top-color: #10B981;
}

.insights-sg-card--growth {
    border-top-color: #0EA5E9;
}

.insights-sg-card-heading {
    margin-bottom: 16px;
}

.insights-sg-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}

.insights-sg-badge--strengths {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.insights-sg-badge--growth {
    background: rgba(14, 165, 233, 0.12);
    color: #0284C7;
}

.insights-sg-item {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.insights-sg-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.insights-sg-item-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 8px;
}

.insights-sg-item-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.insights-sg-bar {
    min-width: 60px;
    flex: 1;
}

.insights-sg-score {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.insights-sg-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    flex-shrink: 0;
    white-space: nowrap;
}

.insights-sg-count {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Written Feedback by Question */
.insight-feedback-group {
    margin-bottom: 28px;
}

.insight-feedback-group:last-child {
    margin-bottom: 0;
}

.insight-feedback-group-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.insight-feedback-group-q {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    flex: 1;
}

.insight-feedback-group-count {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    background: #F3F4F6;
    border-radius: 999px;
    padding: 2px 9px;
    flex-shrink: 0;
    white-space: nowrap;
}

.insight-feedback-group-answers {
    padding-left: 0;
}

.insight-feedback-more {
    font-size: 12px;
    color: #9CA3AF;
    font-style: italic;
    margin: 8px 0 0;
    padding: 0;
}

/* Multiple Choice distributions */
.insight-mc-group {
    margin-bottom: 28px;
}
.insight-mc-group:last-child {
    margin-bottom: 0;
}
.insight-mc-rows {
    margin-top: 10px;
}
.insight-mc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid #F9FAFB;
}
.insight-mc-row:last-child {
    border-bottom: none;
}
.insight-mc-label {
    font-size: 13px;
    color: #374151;
    width: 210px;
    flex-shrink: 0;
}
.insight-mc-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.insight-mc-track {
    flex: 1;
    min-width: 60px;
}
.insight-mc-fill {
    background: #0D9488;
    min-width: 2px;
}
.insight-mc-pct {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}
.insight-mc-count {
    font-size: 12px;
    color: #9CA3AF;
    width: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .insight-rate-right {
        width: 140px;
    }

    .insight-rating-bar-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .insight-bar-track--wide {
        min-width: 80px;
    }

    .insights-sg-grid {
        grid-template-columns: 1fr;
    }

    .insight-mc-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .insight-mc-label {
        width: 100%;
    }

    .insight-mc-bar-wrap {
        width: 100%;
    }
}

/* ── Toast Notifications ────────────────────────────────────────────────── */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-width: 340px;
    min-width: 220px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    pointer-events: all;
    animation: toast-in 0.25s ease;
}

.toast-success {
    background: #ECFDF5;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.toast-error {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.toast-info {
    background: #F0FDFA;
    border-left: 4px solid #14B8A6;
    color: #134E4A;
}

.toast-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.45;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    margin-top: -1px;
}

.toast-close:hover {
    opacity: 1;
}

.toast-fade-out {
    animation: toast-out 0.28s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(16px); }
}

/* ── Report Download ─────────────────────────────────────────────────────── */

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.detail-title-row h1 {
    margin: 0;
}

.download-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-primary);
    background: white;
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.download-report-btn:hover {
    background: var(--color-primary);
    color: white;
}

.download-report-icon {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .detail-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Multiple choice preview — visual list (avoids <template> inside <select> parsing quirk) */
.q-preview-choices-list {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    font-size: 14px;
}

.q-preview-choice-item {
    padding: 9px 12px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.q-preview-choice-item:last-child {
    border-bottom: none;
}

/* ============================================
   NEW WIZARD — FOCUS AREA + METHODOLOGY
   ============================================ */

/* Subject input reveal block */

/* Disabled / unavailable type card */
.feedback-type-card.type-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.type-card-unavailable {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
    font-style: italic;
}

/* ============================================
   STEP 3 — GIVER INSTRUCTIONS
   ============================================ */
.giver-instructions-section {
    margin-bottom: 0;
}

.giver-instructions-meta {
    margin-bottom: 6px;
}

.giver-instructions-meta label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-700);
    margin: 0;
}

.instructions-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    margin-bottom: 8px;
}

.instructions-hint {
    grid-column: 1;
    grid-row: 2;
    font-weight: 400;
    color: #9aa0a6;
    font-size: 12px;
    margin: 0;
}

@media (max-width: 768px) {
    .instructions-hint-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .instructions-hint {
        font-size: 9px;
    }

    .auto-generate-btn {
        font-size: 9px !important;
        padding: 3px 8px !important;
        gap: 3px;
    }
}

.auto-generate-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(20, 184, 166, 0.08);
    border: 1.5px solid rgba(20, 184, 166, 0.35);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.auto-generate-btn:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--color-primary);
}

.section-divider {
    height: 1px;
    background: var(--color-warm-200);
    margin: 16px 0;
}

/* ============================================
   STEP 3 — INFO BOXES (anonymous / grouping)
   ============================================ */
.wizard-info-box {
    margin: -8px 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.wizard-info-box p {
    margin: 0 0 6px;
}

.wizard-info-box p:last-child {
    margin-bottom: 0;
}

.wizard-info-box--anon {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.wizard-info-box--group {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.wizard-info-box-warning {
    color: #92400E;
    font-size: 13px;
}

.giver-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1F2937;
    color: #F9FAFB;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    z-index: 9999;
    max-width: 320px;
    line-height: 1.5;
}

/* ============================================
   STEP 4 — ROLE GROUPING TOGGLE
   ============================================ */
.role-grouping-toggle {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 10px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
}

.toggle-track {
    position: relative;
    width: 42px;
    height: 24px;
    background: #D1D5DB;
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.toggle-track--on {
    background: var(--color-primary);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.toggle-thumb--on {
    transform: translateX(18px);
}

.toggle-text-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.toggle-label-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-800);
}

.toggle-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.toggle-hint-text {
    font-size: 11px;
    color: #9CA3AF;
}

/* ============================================
   STEP 6 — REVIEW: INSTRUCTIONS VALUE
   ============================================ */
.review-value--instructions {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #374151;
    background: var(--color-warm-100);
    border-radius: 6px;
    padding: 8px 10px;
    line-height: 1.5;
    border: 1px solid var(--color-warm-200);
    white-space: pre-wrap;
}

/* ============================================
   STEP 5 REVIEW — REDESIGNED (rv-* classes)
   ============================================ */

/* Header */
.rv-header {
    text-align: center;
    margin-bottom: 24px;
}
.rv-header-icon {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.rv-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-warm-800);
    margin: 0 0 6px;
}
.rv-header-sub {
    font-size: 14px;
    color: var(--color-warm-500);
    margin: 0;
}

/* Stats row */
.rv-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: white;
    border: 1px solid var(--color-warm-200);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.rv-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 3px;
}
.rv-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1;
}
.rv-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-warm-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rv-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--color-warm-200);
    margin: 0 8px;
    flex-shrink: 0;
}

/* Cards container */
.rv-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

/* Individual card */
.rv-card {
    background: white;
    border: 1px solid var(--color-warm-200);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
}

/* Card header row */
.rv-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-warm-200);
}
.rv-card-icon {
    font-size: 15px;
    line-height: 1;
}
.rv-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-warm-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}
.rv-card-count {
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    padding: 1px 8px;
    line-height: 18px;
}

/* Field rows inside a card */
.rv-field {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--color-warm-100);
}
.rv-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rv-field--block {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.rv-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-warm-500);
    min-width: 90px;
    flex-shrink: 0;
}
.rv-field-value {
    font-size: 14px;
    color: var(--color-warm-800);
    font-weight: 500;
}

/* Focus area badge */
.rv-focus-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-primary-50);
    color: var(--color-primary-dark);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 99px;
    padding: 2px 10px;
    line-height: 20px;
}

/* Instructions box */
.rv-instructions-box {
    width: 100%;
    font-size: 13px;
    color: var(--color-warm-700);
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Givers list */
.rv-givers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rv-giver {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-warm-100);
}
.rv-giver:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rv-giver-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rv-giver-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.rv-giver-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rv-giver-email {
    font-size: 12px;
    color: var(--color-warm-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rv-giver-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-warm-500);
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-300);
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.giver-summary-role-missing {
    font-size: 11px;
    font-weight: 600;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
}

.giver-summary-dup {
    font-size: 11px;
    font-weight: 600;
    color: #B91C1C;
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
}

.rv-group-section {
    margin-bottom: 12px;
}

.rv-group-section:last-child {
    margin-bottom: 0;
}

.rv-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9CA3AF;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #F3F4F6;
}

/* Reminder rows */
.rv-reminder {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-warm-700);
    padding: 5px 0;
}
.rv-reminder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

/* Send button */
.rv-send-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border-color: transparent !important;
    padding: 10px 28px !important;
}
.rv-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 60%, #4f46e5 100%) !important;
    border-color: transparent !important;
}
.rv-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .rv-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
        gap: 0;
    }
    .rv-stat-divider {
        display: none;
    }
    .rv-stat {
        padding: 14px 12px;
    }
    /* Vertical divider between the two columns */
    .rv-stats .rv-stat:nth-child(1),
    .rv-stats .rv-stat:nth-child(5) {
        border-right: 1px solid var(--color-warm-200);
    }
    /* Horizontal divider between the two rows */
    .rv-stats .rv-stat:nth-child(1),
    .rv-stats .rv-stat:nth-child(3) {
        border-bottom: 1px solid var(--color-warm-200);
    }
    .rv-stat-num {
        font-size: 16px;
    }
    .rv-card {
        padding: 14px 16px;
    }
}

/* ============================================
   TEAL HIGHLIGHT SPANS — {{subjectPerson}} / {{subjectTopic}} / {{future_period}}
   ============================================ */
.wiz-hl-person,
.wiz-hl-topic {
    color: #0d9488;
    font-weight: 600;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 3px;
    padding: 0 3px;
}

/* future_period uses a distinct indigo tint to differentiate from subject/topic */
.wiz-hl-future {
    color: #4f46e5;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 3px;
    padding: 0 3px;
}

/* Prominent Preview Form button (pulsing outline when Overall+Feedforward active) */
.q-preview-btn--prominent {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
    animation: preview-pulse 2.2s ease-in-out infinite;
}

@keyframes preview-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18); }
    50%       { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.08); }
}

/* ============================================
   STEP 1 — REQUEST TITLE
   ============================================ */
.step1-label-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.step1-label-row label {
    margin-bottom: 2px !important;
}

.step1-section-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 10px;
}

.subject-hint {
    font-size: 11px;
    color: var(--color-warm-400);
    font-style: italic;
    line-height: 1.4;
}

@media (min-width: 769px) {
    .step1-label-row {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .step1-label-row label {
        margin-bottom: 0;
        white-space: nowrap;
    }
}

/* Step 1 consistent section spacing */
.fp-step-body .step1-reveal {
    margin-bottom: 28px;
}

.step1-reveal > label,
.step1-reveal label:first-child {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 8px;
}

.request-title-section {
    margin-bottom: 4px;
}

.request-title-section label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 8px;
}

/* ============================================
   STEP 1 — "WHO IS THIS FOR?" TOGGLE
   ============================================ */
.feedback-for-section {
    margin: 0 0 28px;
}

.feedback-for-section label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 8px;
}

.feedback-for-toggle {
    display: flex;
    border: 1.5px solid var(--color-warm-200);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.feedback-for-toggle button {
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-warm-600);
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
    outline: none;
}

.feedback-for-toggle button:first-child {
    border-right: 1.5px solid var(--color-warm-200);
}

.feedback-for-toggle button.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* ============================================
   STEP 1 — SUBJECT PERSON DETAILS
   ============================================ */
.subject-person-form {
    margin-top: 0;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subject-person-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 6px;
}

.subject-person-notify {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 4px;
}

.subject-person-notify input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.subject-person-notify label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-warm-700);
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.4;
}

.subject-person-notify .notify-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
    font-weight: 400;
}

/* ============================================
   STEP 3 — ZEN TIP (Performance Development)
   ============================================ */
.wizard-zen-tip {
    display: flex;
    gap: 12px;
    background: linear-gradient(135deg, rgba(13,148,136,0.07) 0%, rgba(16,185,129,0.05) 100%);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.wizard-zen-tip-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1.2;
}

.wizard-zen-tip-body {
    flex: 1;
    min-width: 0;
}

.wizard-zen-tip-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 4px;
}

.wizard-zen-tip-text {
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   FULL-PAGE WIZARD  (new-request.html)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page shell ─────────────────────────────────────────────── */
.fp-page {
    background: var(--color-warm-100);
    min-height: 100vh;
}

.fp-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Main content area ──────────────────────────────────────── */
.fp-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 0 0;
}

/* ─── The card ───────────────────────────────────────────────── */
.fp-card {
    background: #ffffff;
    border-top: 1px solid var(--color-warm-200);
    border-bottom: 1px solid var(--color-warm-200);
    width: 100%;
    overflow: hidden;
}

/* ─── Process banner ────────────────────────────────────────── */
.fp-process-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.fp-process-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.fp-process-cancel-btn {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fp-process-cancel-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

.fp-process-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fp-process-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.fp-btn-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.fp-process-save-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.35);
}
.fp-process-save-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.draft-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    background: var(--color-warm-800, #333);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-weight: 500;
    font-size: 14px;
}

@media (min-width: 769px) {
    .fp-main {
        padding-top: 0;
    }
}

/* ─── Progress section ───────────────────────────────────────── */
.fp-progress-section {
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    border-bottom: none;
    padding: 14px 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

/* Mobile: title + buttons on row 1, step dots on row 2 */
@media (max-width: 768px) {
    .fp-progress-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 12px;
        align-items: center;
        padding: 12px 14px 14px;
    }

    .fp-process-banner-title {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        align-self: center;
        font-size: 12px;
        line-height: 1;
        padding-left: 8px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fp-process-actions {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .fp-process-save-btn,
    .fp-process-cancel-btn {
        display: inline-flex;
        align-items: center;
        font-size: 12px;
        line-height: 1;
        padding: 6px 10px;
        height: 26px;
    }

    .fp-step-dots {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }
}


.fp-progress-track {
    height: 4px;
    background: var(--color-warm-200);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.fp-progress-fill {
    height: 100%;
    width: var(--fp-progress, 17%);
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ─── Step dot indicators ────────────────────────────────────── */
.fp-step-dots {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
}

.fp-dot-segment {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 160px;
}

.fp-dot-segment:last-child {
    flex: 0;
}

.fp-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fp-dot-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.2px;
}

.fp-dot-label--active {
    color: #ffffff;
    font-weight: 700;
}

.fp-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #9aa0a6;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.fp-dot--active {
    border-color: #ffffff;
    background: #ffffff;
    color: #0D9488;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 4px 14px rgba(0,0,0,0.2);
    transform: scale(1.15);
}

.fp-dot--done {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.25);
    color: white;
    opacity: 1;
}

.fp-dot-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.25);
    transition: background 0.25s ease;
}

.fp-dot-line--done {
    background: rgba(255,255,255,0.6);
    opacity: 1;
}

/* ─── Error banner ───────────────────────────────────────────── */
.fp-error-banner {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #b91c1c;
    font-size: 13px;
    padding: 10px 24px;
    margin: 0;
}

/* ─── Step body (steps 1, 2, 4, 5, 6) ───────────────────────── */
.fp-step-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 40px;
}

/* ─── Step 3: two-column layout ─────────────────────────────── */
.fp-step3-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

.fp-library-col {
    display: none !important;
}

.fp-builder-col {
    grid-column: 1;
    grid-row: 1;
    padding: 24px 28px;
}


/* ─── Step 2 builder: desktop refinements ────────────────────── */
@media (min-width: 769px) {
    /* No outer padding — nav bar spans card edge-to-edge */
    .wizard-step--builder {
        padding: 0;
    }

    /* Constrain content width and center it */
    .fp-builder-col {
        max-width: 720px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 12px;
    }

    .fp-builder-col .giver-instructions-section .feedback-textarea {
        min-height: 60px;
    }

    /* Your Questions: visual separator + title/button on same row */
    .fp-builder-col .q-builder-header {
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--color-warm-200);
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    .fp-builder-col .q-builder-header .q-preview-btn {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }
}

/* Library column internals */
.fp-library-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 20px 16px 8px;
    flex-shrink: 0;
}

.fp-library-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-warm-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.fp-library-hint {
    font-size: 11px;
    color: #9aa0a6;
}

/* Desktop library — topic filter row */
.fp-library-col .q-library-filters {
    padding: 5px 10px;
    gap: 4px;
    flex-shrink: 0;
}

/* Desktop library — format filter row */
.fp-library-col .q-library-filters--secondary {
    padding: 5px 10px;
    background: #eef0f4;
    border-top: 2px solid #d6dae2;
}

/* Desktop library — topic filter buttons: compact */
.fp-library-col .filter-btn {
    font-size: 10px;
    padding: 4px 8px;
}

/* Desktop library — format filter buttons: pill shape + indigo accent */
.fp-library-col .filter-btn--sm {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
}
.fp-library-col .filter-btn--sm.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}
.fp-library-col .filter-btn--sm:hover:not(.active) {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.fp-library-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px 12px;
}

/* ─── Library hide/show toggle buttons ──────────────────────── */
.fp-library-hide-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-warm-500);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    white-space: nowrap;
}

.fp-library-hide-btn:hover {
    background: var(--color-warm-200);
    color: var(--color-warm-700);
}

.fp-show-lib-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.15s;
    white-space: nowrap;
}

.fp-show-lib-btn:hover {
    background: rgba(20, 184, 166, 0.15);
}

/* Library-hidden layout: collapse left column */
.fp-step3-layout--lib-hidden {
    grid-template-columns: 1fr;
}

/* ─── Reorder arrow buttons ──────────────────────────────────── */
.q-reorder-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    margin-right: 6px;
}

/* ─── Builder empty state ────────────────────────────────────── */
.fp-builder-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 16px;
    color: #9aa0a6;
    text-align: center;
}

.fp-builder-empty-icon {
    font-size: 24px;
    color: var(--color-primary);
    opacity: 0.4;
}

.fp-builder-empty p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 200px;
    margin: 0;
}

/* ─── Success screen ─────────────────────────────────────────── */
.fp-success {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.fp-success-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.fp-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.fp-success-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-warm-800);
    margin: 0 0 8px;
}

.fp-success-subtitle {
    font-size: 15px;
    color: var(--color-warm-600);
    margin: 0 0 28px;
}

.fp-success-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--color-warm-100);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.fp-success-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fp-success-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.fp-success-stat-label {
    font-size: 11px;
    color: var(--color-warm-500);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fp-success-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--color-warm-300);
}

.fp-success-redirect-hint {
    font-size: 12px;
    color: #9aa0a6;
    margin: 0 0 20px;
}

.fp-success-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.fp-success-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fp-main {
        padding: 0;
    }


    .fp-step-body {
        padding: 24px 20px;
    }

    .fp-builder-col {
        padding: 20px;
    }

    .fp-dot-segment {
        max-width: none;
    }

    .fp-dot {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }


    .fp-success-card {
        padding: 36px 24px;
    }
}

/* ─── Desktop/mobile visibility helpers ─────────────────────── */
.fp-mobile-only { display: none !important; }
.fp-desktop-only { display: block; }

@media (max-width: 768px) {
    .fp-mobile-only { display: block !important; }
    .fp-desktop-only { display: none !important; }
}

@media (min-width: 769px) {
    .fp-show-lib-btn {
        display: inline-flex;
    }
}

/* ─── Reorder arrow button styles ────────────────────────────── */
.q-reorder-arrows .q-arrow-btn {
    width: 26px;
    height: 20px;
    font-size: 12px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
    line-height: 1;
}

.q-reorder-arrows .q-arrow-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.q-reorder-arrows .q-arrow-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ─── Browse Library button (mobile action row) ──────────────── */
.fp-browse-lib-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(20, 184, 166, 0.06);
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    border-radius: 10px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fp-browse-lib-btn:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--color-primary);
}

/* ─── Preview overlay (one-question-at-a-time) ───────────────── */
.fp-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background-image: url('/assets/login-background1-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-y: auto;
}

.fp-preview-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(20, 184, 166, 0.15);
    z-index: 0;
    pointer-events: none;
}

.fp-preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
}

.fp-preview-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-warm-600);
}

.fp-preview-exit {
    background: none;
    border: 1.5px solid var(--color-warm-300);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm-600);
    cursor: pointer;
    transition: all 0.15s;
}

.fp-preview-exit:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.fp-preview-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 1;
}

.fp-preview-card {
    width: 100%;
    max-width: 740px;
}

@media (max-width: 768px) {
    .fp-preview-overlay {
        background-attachment: scroll;
        background-position: right center;
    }

    .fp-preview-banner {
        padding: 10px 16px;
    }

    .fp-preview-body {
        padding: 0 0 48px;
    }

    .fp-preview-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
}

/* ─── Mobile library full-screen overlay ────────────────────── */
.fp-mobile-lib {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fp-mobile-lib-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-warm-200);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fp-mobile-lib-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-warm-800);
    flex: 1;
}

.fp-mobile-lib-done {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-width: 60px;
    transition: background 0.15s;
}

.fp-mobile-lib-done:hover {
    background: var(--color-primary-dark);
}

.fp-mobile-lib-filters {
    padding: 8px 12px 4px;
    flex-shrink: 0;
}

.fp-mobile-lib-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 24px;
    -webkit-overflow-scrolling: touch;
}

/* Slightly larger tap targets in mobile library */
.fp-mobile-lib-item {
    padding: 14px 12px !important;
    margin-bottom: 6px;
}

/* "Added" state in mobile — indicates tap again to remove */
.q-library-added-check--tap {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Desktop: library becomes a left-side slide-in drawer */
@media (min-width: 769px) {
    .fp-mobile-lib {
        inset: 0 auto 0 0;
        width: 480px;
        background: #fafafa;
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
    }

    /* Drawer header: panel style on desktop */
    .fp-mobile-lib-header {
        padding: 18px 20px;
        border-bottom: 2px solid var(--color-warm-200);
        background: #ffffff;
    }

    .fp-mobile-lib-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--color-warm-600);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Done button: smaller, link-style on desktop */
    .fp-mobile-lib-done {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 16px;
    }

    /* Tighter list items on desktop (less tap-target needed) */
    .fp-mobile-lib-item {
        padding: 10px 12px !important;
        margin-bottom: 4px;
    }

    /* Filters: compact on desktop */
    .fp-mobile-lib-filters {
        padding: 6px 12px 3px;
    }

    /* Slide-in/out transitions (desktop only) */
    .fp-lib-slide         { transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
    .fp-lib-slide-start   { transform: translateX(-100%); }
    .fp-lib-slide-end     { transform: translateX(0); }
    .fp-lib-slide-out     { transition: transform 0.25s ease-in; }
    .fp-lib-slide-out-start { transform: translateX(0); }
    .fp-lib-slide-out-end { transform: translateX(-100%); }

    /* Backdrop fade (desktop only) */
    .fp-backdrop-enter       { transition: opacity 0.3s ease; }
    .fp-backdrop-enter-start { opacity: 0; }
    .fp-backdrop-enter-end   { opacity: 1; }
    .fp-backdrop-leave       { transition: opacity 0.25s ease; }
    .fp-backdrop-leave-start { opacity: 1; }
    .fp-backdrop-leave-end   { opacity: 0; }
}

/* ─── Library drawer backdrop (desktop only) ─────────────────── */
.fp-lib-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 299;
}

@media (max-width: 768px) {
    .fp-lib-backdrop { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   GIVE FEEDBACK — full-page redesign  (give-feedback.html)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page shell ─────────────────────────────────────────────── */
.gf-page {
    background-image: url('/assets/login-background1-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

.gf-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Teal overlay — same as login page */
.gf-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(20, 184, 166, 0.15);
    z-index: 0;
    pointer-events: none;
}

/* Stack above the overlay */
.gf-progress-section,
.gf-container {
    position: relative;
    z-index: 1;
}

/* ─── Footer ────────────────────────────────────────────────── */
.gf-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    flex-shrink: 0;
}

.gf-footer-logo {
    height: 60px;
    width: auto;
}

.gf-footer-brand-name {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-700);
    letter-spacing: -0.01em;
}

.gf-footer-copy {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* ─── Give-feedback button gradient overrides ───────────────── */
.gf-layout .continue-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.gf-layout .continue-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 60%, #4f46e5 100%);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.45);
    transform: translateY(-2px);
}

/* ─── Progress section ───────────────────────────────────────── */
.gf-progress-section {
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: none;
    padding: 16px 32px 14px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ─── Step dots ──────────────────────────────────────────────── */
.gf-step-dots {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.gf-dot-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gf-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.gf-dot--active {
    border-color: white;
    background: white;
    color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.gf-dot--done {
    border-color: white;
    background: white;
    color: #4f46e5;
    opacity: 0.75;
}

.gf-dot-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.gf-dot-label--active {
    color: white;
    font-weight: 600;
}

.gf-dot-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    margin-top: 13px; /* align with dot vertical center */
    margin-bottom: 28px;
    transition: background 0.25s ease;
    min-width: 32px;
    max-width: 80px;
}

.gf-dot-line--done {
    background: white;
    opacity: 0.75;
}

/* ─── Screen container ───────────────────────────────────────── */
.gf-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px 60px;
}

.gf-screen {
    display: none;
    width: 100%;
    max-width: 740px;
}

.gf-screen.active {
    display: block;
    animation: screenFadeIn 0.28s var(--ease-smooth) both;
}

/* ─── The card (glassmorphism) ───────────────────────────────── */
.gf-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 48px 56px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* ─── Rating group — large tap-friendly tiles ────────────────── */
.gf-rating-wrap {
    margin-top: 12px;
}

.gf-rating-group {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.gf-rating-opt {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.gf-rating-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gf-rating-num {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.gf-rating-opt:hover .gf-rating-num {
    border-color: var(--color-primary);
    background: rgba(20, 184, 166, 0.06);
    color: var(--color-primary-dark);
}

.gf-rating-opt--selected .gf-rating-num {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.gf-rating-label {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--color-warm-500);
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    padding: 0 1px;
    max-width: 100%;
    transition: color 0.15s ease;
}

.gf-rating-opt:hover .gf-rating-label {
    color: var(--color-primary-dark);
}

.gf-rating-opt--selected .gf-rating-label {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* 6-point scale: prevent long labels like "Occasionally" from widowing */
.gf-rating-group--6pt .gf-rating-label {
    word-break: break-all;
    hyphens: auto;
}

@media (max-width: 480px) {
    .gf-rating-group--6pt .gf-rating-label {
        font-size: 8px;
    }
}

/* ─── BARS vertical layout ───────────────────────────────────── */
.gf-bars-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.gf-bars-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 52px;
}

.gf-bars-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gf-bars-num {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.gf-bars-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.gf-bars-opt:hover {
    border-color: var(--color-primary);
    background: rgba(20, 184, 166, 0.04);
}

.gf-bars-opt:hover .gf-bars-num {
    background: rgba(20, 184, 166, 0.15);
    color: var(--color-primary-dark);
}

.gf-bars-opt:hover .gf-bars-label {
    color: var(--color-primary-dark);
}

.gf-bars-opt--selected {
    border-color: var(--color-primary);
    background: rgba(20, 184, 166, 0.06);
}

.gf-bars-opt--selected .gf-bars-num {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.35);
}

.gf-bars-opt--selected .gf-bars-label {
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* Dim BARS options when N/A selected */
.gf-bars-group--na .gf-bars-num,
.gf-bars-group--na .gf-bars-label {
    opacity: 0.35;
}

/* Dim the scale when N/A is selected */
.gf-rating-group--na .gf-rating-num {
    opacity: 0.35;
}
.gf-rating-group--na .gf-rating-label {
    opacity: 0.35;
}

/* N/A option row */
.gf-rating-na {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    cursor: pointer;
    width: fit-content;
}

.gf-rating-na input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gf-rating-na-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--color-warm-300);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.gf-rating-na:hover .gf-rating-na-box {
    border-color: var(--color-warm-500);
}

.gf-rating-na-box--checked {
    background: var(--color-warm-600);
    border-color: var(--color-warm-600);
}

.gf-rating-na-check {
    font-size: 11px;
    color: white;
    line-height: 1;
    font-weight: 700;
}

.gf-rating-na-text {
    font-size: 12px;
    color: var(--color-warm-500);
    font-weight: 500;
    user-select: none;
}

.gf-rating-na:hover .gf-rating-na-text {
    color: var(--color-warm-700);
}

/* Preview mode — non-interactive */
.gf-rating-na--preview {
    cursor: default;
    opacity: 0.6;
}
.gf-rating-na--preview:hover .gf-rating-na-text {
    color: var(--color-warm-500);
}

/* ─── Request detail: rating + multiple choice display ──────── */
.rd-rating-num {
    font-size: 2em;
    font-weight: 700;
    color: #0F766E;
    line-height: 1;
    margin-right: 8px;
    vertical-align: middle;
}

.rd-rating-of {
    font-size: 0.9em;
    color: #6B7280;
    vertical-align: middle;
}

.rd-rating-anchor-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: var(--color-primary-50);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 99px;
    padding: 1px 9px;
    vertical-align: middle;
}

.rd-rating-na {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-warm-500);
    margin-right: 6px;
    vertical-align: middle;
}

.rd-mc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.rd-mc-opt {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    background: #F9FAFB;
}

.rd-mc-opt--chosen {
    border-color: #0F766E;
    background: #CCFBF1;
    color: #0F766E;
    font-weight: 600;
}

/* ─── Welcome screen pledge + video ─────────────────────────── */
.gf-pledge-section {
    margin: 24px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gf-pledge-reminder {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.gf-pledge-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.gf-pledge-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.gf-video-tip-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.gf-video-tip-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.gf-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 8px;
    flex-shrink: 0;
    padding-left: 2px;
}

/* ─── Video modal ────────────────────────────────────────────── */
.gf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gf-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.gf-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-modal-video {
    aspect-ratio: 16 / 9;
    background: #000;
}

.gf-modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.gf-modal-no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9CA3AF;
    font-size: 14px;
}

/* ─── Button group spacing in gf cards ──────────────────────── */
.gf-card .button-group,
.gf-card .review-actions {
    margin-top: 32px;
    justify-content: space-between;
}

/* ─── Per-question progress (Screen 2) ──────────────────────── */
.gf-time-estimate {
    font-size: 13px;
    color: var(--color-warm-400);
    text-align: center;
    margin: 0 0 16px;
}

.gf-time-estimate--prominent {
    font-size: 15px;
    font-weight: 600;
    color: #92400E;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 99px;
    display: inline-block;
    padding: 6px 16px;
    margin: 10px auto 20px;
}

.gf-question-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.gf-question-counter {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gf-time-remaining {
    font-size: 12px;
    color: var(--color-warm-400);
    margin-top: -4px;
}

.gf-question-progress-track {
    height: 4px;
    background: rgba(20, 184, 166, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.gf-question-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.35s ease;
}

.gf-single-question {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gf-question-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.4;
}

/* ─── Mobile responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* background-attachment: fixed breaks on iOS Safari — use scroll */
    .gf-page {
        background-attachment: scroll;
        background-position: right center;
    }

    .gf-progress-section {
        padding: 12px 16px 10px;
    }

    .gf-container {
        padding: 0 0 48px;
    }

    /* Edge-to-edge card on mobile — glass effect preserved */
    .gf-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 28px 20px 36px;
        box-shadow: 0 4px 16px rgba(20, 184, 166, 0.08);
    }

    .gf-dot {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .gf-dot-label {
        font-size: 9px;
    }

    .gf-dot-line {
        min-width: 16px;
        margin-top: 10px;
    }

    .gf-rating-num {
        height: 44px;
        font-size: 16px;
    }

    .gf-rating-label {
        font-size: 9px;
        margin-top: 4px;
    }

    .gf-card .continue-btn,
    .gf-card .secondary-btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .gf-card .feedback-textarea {
        overflow: hidden;
        resize: none;
    }
}

/* ─── Request title on welcome screen ───────────────────────── */
.gf-request-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 6px;
    margin-bottom: 2px;
}

/* ─── Textarea wrapper + character count ────────────────────── */
.gf-textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── Typeform-style open-ended textarea ─────────────────────── */
.gf-tf-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-warm-300);
    border-radius: 0;
    outline: none;
    resize: none;
    overflow: hidden;

    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-warm-800);

    padding: 10px 0 14px;
    min-height: 80px;

    transition: border-color 150ms ease;
}

.gf-tf-textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.gf-tf-textarea::placeholder {
    color: var(--color-warm-700);
    opacity: 0.35;
}

/* Keyboard hint — fades in on focus */
.gf-tf-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-warm-500);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
    user-select: none;
}

.gf-textarea-wrap:focus-within .gf-tf-hint {
    opacity: 1;
}


@media (max-width: 768px) {
    .gf-tf-textarea {
        font-size: 18px;
    }
}

.gf-char-count {
    font-size: 12px;
    color: var(--color-primary-dark);
    opacity: 0.65;
    text-align: right;
}

/* ─── SBI bundle (give-feedback + preview) ───────────────────── */
.gf-sbi-bundle {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.gf-sbi-skill-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #7f4800;
}
.gf-sbi-part {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gf-sbi-part-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.gf-sbi-part-header .gf-question-label {
    margin: 0;
    flex: 1;
}
.gf-sbi-part-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #7f4800;
    flex-shrink: 0;
    margin-top: 1px;
}
.gf-sbi-s { background: #FFD699; }
.gf-sbi-b { background: #FFD699; }
.gf-sbi-i { background: #FFD699; }
.gf-sbi-part-word {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    align-self: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.gf-sbi-behavior-hint {
    background: #F1F8E9;
    border-left: 3px solid #8BC34A;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: #33691E;
}

/* SBI intro for givers (collapsible) */
.gf-sbi-intro {
    border: 1px solid #FFD699;
    border-radius: 8px;
    overflow: hidden;
}
.gf-sbi-intro-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #FFF8F0;
    cursor: pointer;
    user-select: none;
}
.gf-sbi-intro-badge {
    background: #E65100;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.gf-sbi-intro-label {
    font-size: 13px;
    font-weight: 600;
    color: #5f4020;
    flex: 1;
}
.gf-sbi-intro-chevron {
    font-size: 10px;
    color: #9aa0a6;
    transition: transform 0.2s;
}
.gf-sbi-intro-header--open .gf-sbi-intro-chevron {
    transform: rotate(180deg);
}
.gf-sbi-intro-body {
    padding: 12px 14px;
    background: white;
    border-top: 1px solid #FFD699;
    font-size: 13px;
    color: #3c4043;
    line-height: 1.6;
}
.gf-sbi-intro-body p { margin: 0 0 8px; }
.gf-sbi-intro-body ul { margin: 0 0 8px; padding-left: 18px; }
.gf-sbi-intro-body li { margin-bottom: 4px; }

/* ─── Already-submitted screen icon ─────────────────────────── */
.gf-already-submitted-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.page-title {
    font-weight: 500;
}

.person-icons-grid {
    flex-shrink: 1;
    min-width: 0;
    max-width: 180px;
}

@media (max-width: 768px) {
    .person-icons-grid svg {
        width: 13px !important;
        height: 13px !important;
    }
}


/* ═══════════════════════════════════════════════════════
   ACTION PLANNER  (.ap- prefix)
   ═══════════════════════════════════════════════════════ */

.ap-page-subtitle {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-warm-600);
}

/* ── Intro banner ──────────────────────────────────────── */
.ap-intro-banner {
    max-width: 680px;
    margin: var(--space-6) 0 var(--space-8);
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
}

.ap-intro-banner-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--color-warm-400);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
    line-height: 1;
}

.ap-intro-banner-close:hover {
    color: var(--color-warm-700);
    background: rgba(0,0,0,0.05);
}

.ap-intro-banner-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-right: var(--space-6);
}

.ap-intro-banner-eyebrow {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    margin: 0;
}

.ap-intro-banner-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.ap-intro-banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-1);
}

.ap-intro-banner-link {
    font-size: var(--text-xs);
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(20, 184, 166, 0.4);
    transition: text-decoration-color var(--transition-fast);
}

.ap-intro-banner-link:hover {
    text-decoration-color: var(--color-primary);
}

.ap-intro-banner-dismiss {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    font-size: var(--text-xs);
    color: var(--color-warm-400);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.ap-intro-banner-footer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.ap-intro-banner-skip {
    background: white;
    border: 1px solid var(--color-warm-300);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-warm-500);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
}

.ap-intro-banner-skip:hover {
    border-color: var(--color-warm-400);
    color: var(--color-warm-700);
}

.ap-intro-banner-dismiss:hover {
    color: var(--color-warm-600);
}

/* ── Typing cursor ─────────────────────────────────────── */
.ap-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.8em;
    background: rgba(80, 60, 40, 0.28);
    border-radius: 2px;
    margin-left: 2px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(80, 60, 40, 0.12);
    animation: ap-cursor-blink 0.6s ease-in-out infinite;
}

@keyframes ap-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.1; }
}

/* ── Loading ───────────────────────────────────────────── */
.ap-loading {
    display: flex;
    justify-content: flex-start;
    padding: var(--space-8) 0;
}

/* ── Empty state ───────────────────────────────────────── */
.ap-empty-state {
    max-width: 560px;
    margin: var(--space-12) 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.ap-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.ap-empty-heading {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    margin: 0;
}

.ap-empty-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-warm-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ── Gradient CTA button ───────────────────────────────── */
.ap-btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 16px 32px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    color: white;
    font-size: 16px;
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(20, 184, 166, 0.35);
    transition: box-shadow 0.25s ease, transform 0.2s ease, filter 0.2s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
    width: fit-content;
}

.ap-btn-gradient:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 24px rgba(20, 184, 166, 0.45);
    transform: translateY(-1px);
}

.ap-btn-gradient:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(20, 184, 166, 0.3);
}

/* ── Content area (plans list view) ────────────────────── */
.ap-content {
    max-width: 680px;
}

/* ── Wizard summary box ────────────────────────────────── */
.ap-wizard-summary {
    max-width: 680px;
    margin: var(--space-4) 0 0;
    background: var(--color-primary-50, #f0fdfa);
    border: 1px solid var(--color-primary-light, #99e6da);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    overflow: hidden;
}

.ap-wizard-summary--inset {
    margin: 0 0 var(--space-5);
}

.ap-wizard-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary-dark);
    margin: 0 0 var(--space-3);
    opacity: 0.7;
}

.ap-wizard-summary-entries {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-wizard-summary-row {
    display: flex;
    gap: var(--space-3);
    font-size: 0.875rem;
    line-height: 1.4;
}

.ap-wizard-summary-key {
    flex-shrink: 0;
    min-width: 90px;
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    padding-top: 1px;
}

.ap-wizard-summary-val {
    color: var(--color-warm-800);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── Wizard card ───────────────────────────────────────── */
.ap-wizard-wrap {
    max-width: 680px;
    margin: var(--space-6) 0 0;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-8) var(--space-12);
}

/* ── Wizard header row (progress + cancel) ─────────────── */
.ap-wizard-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.ap-wizard-header .ap-progress-bar-wrap {
    flex: 1;
    margin-bottom: 0;
}

.ap-wizard-cancel {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--color-warm-400);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.ap-wizard-cancel:hover {
    color: var(--color-warm-700);
    background: var(--color-warm-100);
}

/* ── New Recipe button (plans header) ──────────────────── */
.ap-btn-new {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.ap-btn-new:hover {
    background: var(--color-primary-dark);
}

/* ── Skill banner (steps 2–5) ──────────────────────────── */
.ap-skill-banner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(20, 184, 166, 0.08);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.ap-skill-banner-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.ap-skill-banner-value {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Don't show again (step 2) ─────────────────────────── */
.ap-dont-show-again {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-warm-500);
    cursor: pointer;
    user-select: none;
    margin-right: auto;
}

.ap-dont-show-again input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

/* ── Progress ──────────────────────────────────────────── */
.ap-progress-bar-wrap {
    margin-bottom: var(--space-8);
}

.ap-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-2);
}

.ap-step-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

.ap-step-counter {
    font-size: var(--text-xs);
    color: var(--color-warm-500);
}

.ap-progress-track {
    height: 3px;
    background: var(--color-warm-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ap-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 400ms var(--ease-smooth);
}

/* ── Step layout ───────────────────────────────────────── */
.ap-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ap-step-icon {
    font-size: 2rem;
    line-height: 1;
}

.ap-step-heading {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    line-height: var(--leading-tight);
    margin: 0;
}

.ap-step-subtitle {
    font-size: var(--text-sm);
    color: var(--color-warm-600);
    line-height: var(--leading-relaxed);
    margin: calc(var(--space-2) * -1) 0 0;
}

.ap-step-subtitle strong {
    color: var(--color-warm-900);
    font-weight: var(--font-semibold);
}

.ap-step-optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-warm-400);
}

.ap-step-bridge {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    line-height: var(--leading-relaxed);
    margin: var(--space-1) 0 var(--space-4);
}

.ap-error-msg {
    color: var(--color-error);
    font-size: var(--text-sm);
    margin: 0 0 var(--space-2);
}

/* ── Visualization prompt ──────────────────────────────── */
.ap-visualization-prompt {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    font-style: italic;
    line-height: var(--leading-relaxed);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-warm-200);
    border-bottom: 1px solid var(--color-warm-200);
    margin: 0;
}

/* ── Specificity nudge ─────────────────────────────────── */
.ap-specificity-nudge {
    font-size: var(--text-xs);
    color: var(--color-warm-500);
    font-style: italic;
    line-height: var(--leading-relaxed);
    margin: var(--space-1) 0 0;
}

/* ── Example chips ─────────────────────────────────────── */
.ap-examples-wrap {
    margin-top: var(--space-2);
}

.ap-examples-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: var(--text-xs);
    color: var(--color-warm-400);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.ap-examples-toggle:hover {
    color: var(--color-primary);
}

.ap-example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.ap-example-chip {
    padding: var(--space-1) var(--space-3);
    background: var(--color-warm-100);
    border: 1px solid var(--color-warm-200);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-warm-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

.ap-example-chip:hover {
    background: rgba(20, 184, 166, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

/* ── Check-and-rewrite review section ─────────────────── */
.ap-review-section {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-warm-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ap-review-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-warm-400);
}

.ap-review-recipe {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    padding: var(--space-3) var(--space-4);
    background: var(--color-warm-100);
    border-radius: var(--radius-lg);
}

.ap-review-connector {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-right: 4px;
}

.ap-self-check {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ap-self-check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.ap-self-check-item span {
    font-size: var(--text-sm);
    color: var(--color-warm-600);
    line-height: var(--leading-relaxed);
}

.ap-self-check-input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* ── Refine recipe button ──────────────────────────────── */
.ap-btn-refine {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    color: var(--color-warm-500);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1px solid var(--color-warm-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ap-btn-refine:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    background: rgba(20, 184, 166, 0.04);
}

/* ── Fields ────────────────────────────────────────────── */
.ap-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-700);
}

.ap-label-connector {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}

/* ── Recipe intro callout (step 1) ────────────────────── */
.ap-recipe-intro {
    background: var(--color-warm-100);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-5);
}

.ap-recipe-intro p {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-2);
}

.ap-recipe-intro p:last-child {
    margin-bottom: 0;
}

.ap-recipe-intro strong {
    color: var(--color-warm-900);
    font-weight: var(--font-semibold);
}

/* ── Recipe example pair ───────────────────────────────── */
.ap-recipe-example {
    margin-bottom: var(--space-5);
}

.ap-recipe-example-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-warm-400);
    margin: 0 0 var(--space-2);
}

.ap-recipe-example-pair {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

@media (max-width: 480px) {
    .ap-recipe-example-pair {
        flex-direction: column;
    }
    .ap-recipe-example-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
}

.ap-recipe-example-card {
    flex: 1;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ap-recipe-example-card--if {
    background: var(--color-warm-50);
    border: 1.5px solid var(--color-warm-200);
}

.ap-recipe-example-card--will {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
}

.ap-recipe-example-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.ap-recipe-example-card--if .ap-recipe-example-label {
    color: var(--color-primary);
}

.ap-recipe-example-card--will .ap-recipe-example-label {
    color: rgba(255,255,255,0.85);
}

.ap-recipe-example-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-600);
    margin: 0;
    font-style: italic;
}

.ap-recipe-example-card--will .ap-recipe-example-text {
    color: rgba(255,255,255,0.85);
}

.ap-recipe-example-arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 24px;
    font-size: 0;
    color: transparent;
}
.ap-recipe-example-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px 0 0 2px;
}
.ap-recipe-example-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--color-primary);
}

/* ── Recipe input cards ─────────────────────────────────── */
.ap-recipe-input-card {
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-recipe-input-card--if {
    background: var(--color-warm-50);
    border: 1.5px solid var(--color-warm-200);
}

.ap-recipe-input-card--will {
    background: white;
    border: 2px solid var(--color-primary);
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.ap-recipe-input-card--readonly {
    opacity: 0.75;
    margin-bottom: var(--space-1);
}

.ap-recipe-input-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.65;
}

.ap-recipe-input-card--if .ap-recipe-input-label {
    color: var(--color-primary);
}

.ap-recipe-input-card--will .ap-recipe-input-label {
    color: rgba(255,255,255,0.85);
}

.ap-recipe-input-field {
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-800);
    padding: 0;
    width: 100%;
}

.ap-recipe-input-field::placeholder {
    color: var(--color-warm-400);
}

.ap-recipe-input-field--will {
    color: white;
}

.ap-recipe-input-field--will::placeholder {
    color: rgba(255,255,255,0.45);
}

.ap-recipe-input-field--readonly {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-600);
    margin: 0;
}

.ap-card-connector-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 20px;
    font-size: 0;
    color: transparent;
}
.ap-card-connector-arrow::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
}
.ap-card-connector-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid var(--color-primary);
}

.ap-recipe-input-readonly-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-700);
    margin: 0;
}

.ap-specificity-nudge--card {
    color: var(--color-warm-400);
    margin-top: 0;
}

.ap-btn-back-of-card {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: opacity 0.15s;
}

.ap-btn-back-of-card:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ap-btn-back-of-card:not(:disabled):hover {
    opacity: 0.88;
}

/* ── Card context recap (steps 2 & 3) ─────────────────── */
.ap-card-context {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    background: var(--color-warm-100);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}

.ap-card-context + .ap-card-context {
    margin-top: calc(var(--space-4) * -1 + var(--space-2));
}

.ap-card-context-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

.ap-card-context-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    font-style: italic;
}

.ap-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--color-warm-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    color: var(--color-warm-800);
    background: var(--color-warm-50);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-sizing: border-box;
}

.ap-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
    background: white;
}

.ap-input--sm {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
}

/* ── Interstitial (Step 2) ──────────────────────────────── */
.ap-step--interstitial {
    gap: var(--space-6);
}

.ap-interstitial-icon {
    font-size: 2.5rem;
}

.ap-interstitial-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--color-warm-100);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.ap-interstitial-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.ap-interstitial-text--muted {
    color: var(--color-warm-500);
}

.ap-stat-highlight {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-weight: var(--font-semibold);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8em;
}

.ap-interstitial-quote {
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--color-primary);
    background: white;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
}

/* ── Mad Libs (Step 3) ──────────────────────────────────── */
.ap-madlibs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ap-madlibs-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-madlibs-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--color-warm-500);
    font-size: var(--text-sm);
    font-style: italic;
}

.ap-madlibs-divider::before,
.ap-madlibs-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-warm-200);
}

/* ── Recipe preview (Step 3) ────────────────────────────── */
.ap-recipe-preview {
    padding: var(--space-4) var(--space-5);
    background: rgba(20, 184, 166, 0.06);
    border: 1.5px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--radius-xl);
}

.ap-recipe-preview-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.ap-recipe-preview-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.ap-recipe-preview-text em {
    font-style: normal;
    color: var(--color-primary-dark);
    font-weight: var(--font-medium);
}

/* ── Page-level Growth Resources section ────────────────── */
.ap-user-resources-section {
    max-width: 680px;
    margin: var(--space-12) 0 var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-warm-200);
}

.ap-user-resources-header {
    margin-bottom: var(--space-5);
}

.ap-user-resources-subtitle {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    margin: var(--space-1) 0 0;
}

.ap-user-resources-add {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-5);
}

.ap-btn-add-resource {
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.ap-btn-add-resource:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.ap-btn-add-resource:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ap-user-resources-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ap-user-resource-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.ap-user-resource-row:hover {
    background: var(--color-warm-100);
}

.ap-user-resource-title {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-user-resource-link {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ap-user-resource-delete {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--color-warm-400);
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
    margin-left: var(--space-3);
}

.ap-user-resource-delete:hover {
    color: var(--color-error);
    background: #fef2f2;
}

.ap-user-resources-empty {
    font-size: var(--text-sm);
    color: var(--color-warm-400);
    font-style: italic;
    padding: var(--space-2) 0;
}

@media (max-width: 640px) {
    .ap-user-resources-add {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .ap-user-resources-add input:last-of-type {
        grid-column: 1;
    }
}

/* ── Nav buttons ────────────────────────────────────────── */
.ap-nav-btns {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-2);
    flex-wrap: wrap;
}

.ap-nav-btns--right {
    justify-content: flex-end;
}

.ap-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
    margin-left: auto;
}

.ap-btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.ap-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ap-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    color: var(--color-warm-600);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ap-btn-ghost:hover {
    background: var(--color-warm-100);
    color: var(--color-warm-800);
}

.ap-btn-arrow {
    font-size: 1rem;
}

/* ── Summary (post-save) ────────────────────────────────── */
.ap-summary-wrap {
    max-width: 680px;
    margin: var(--space-6) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ap-summary-success {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-success);
}

.ap-summary-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.ap-summary-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ap-summary-skill {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-warm-200);
}

.ap-summary-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-warm-500);
}

.ap-summary-value {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
}

.ap-summary-recipe {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ap-summary-connector {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
    display: block;
}

.ap-summary-recipe-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    display: block;
    margin-bottom: var(--space-2);
}

.ap-summary-shield {
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-warm-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ap-summary-resources {
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-warm-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-summary-resource-item {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
}

.ap-summary-resource-item a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ap-summary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

/* ── Existing plans list ────────────────────────────────── */
.ap-plans-section {
    max-width: 580px;
    margin: var(--space-6) 0 0;
}

.ap-plans-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-warm-200);
}

.ap-plans-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    margin: 0;
}

.ap-plans-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-bottom: var(--space-10);
}

/* ── Card animations ────────────────────────────────────── */
@keyframes ap-card-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ap-arrow-flow {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50%       { opacity: 1;    transform: translateX(5px); }
}

/* ── Skill group card ────────────────────────────────────── */
.ap-skill-group {
    background: white;
    border: 1px solid var(--color-warm-200);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: ap-card-in 0.4s ease both;
    transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.ap-skill-group:hover {
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.12);
    border-left-color: #0d9488;
}

/* ── Group header (clickable toggle) ────────────────────── */
.ap-skill-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.ap-skill-group-header:hover {
    background: var(--color-warm-50);
}

.ap-skill-group--expanded .ap-skill-group-header {
    border-bottom: 1px solid var(--color-warm-100);
}

.ap-skill-group-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.ap-skill-group-counts {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ap-group-count {
    font-size: var(--text-xs);
    color: var(--color-warm-400);
}

.ap-group-count-sep {
    font-size: var(--text-xs);
    color: var(--color-warm-300);
}

.ap-skill-group-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.ap-skill-group-chevron {
    font-size: 18px;
    color: var(--color-warm-400);
    line-height: 1;
    transition: transform 0.2s ease, color 0.15s ease;
    display: inline-block;
}

.ap-skill-group-chevron--open {
    transform: rotate(90deg);
    color: var(--color-primary);
}

/* ── Expanded body ───────────────────────────────────────── */
.ap-skill-group-body {
    display: flex;
    flex-direction: column;
}

/* ── Card footer (add recipe) ────────────────────────────── */
.ap-card-footer {
    padding: var(--space-3) var(--space-6) var(--space-4);
    border-top: 1px solid var(--color-warm-100);
}

/* ── Per-card resources ──────────────────────────────────── */
.ap-card-resources {
    border-top: 1px solid var(--color-warm-100);
    padding: var(--space-4) var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--color-warm-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.ap-card-resources-header {
    display: flex;
    align-items: center;
}

.ap-card-resources-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-warm-400);
}

.ap-card-resources-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ap-card-resources-add {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-2);
    align-items: center;
}

@media (max-width: 640px) {
    .ap-card-resources-add {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .ap-card-resources-add input:nth-child(2) {
        grid-column: 1;
    }
}

/* ── Obstacle plan: click-to-reveal ──────────────────────── */
.ap-shield-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-shield-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: var(--text-xs);
    color: var(--color-warm-400);
    transition: color var(--transition-fast);
}

.ap-shield-toggle:hover {
    color: var(--color-warm-600);
}

.ap-shield-toggle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-warm-300);
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.ap-shield-toggle:hover .ap-shield-toggle-dot {
    background: var(--color-warm-500);
}

.ap-shield-toggle-chevron {
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.ap-shield-toggle-chevron.open {
    transform: rotate(90deg);
}

.ap-shield-reveal {
    font-size: var(--text-xs);
    color: var(--color-warm-500);
    line-height: var(--leading-relaxed);
    padding: var(--space-2) var(--space-3);
    background: var(--color-warm-100);
    border-radius: var(--radius-md);
}

.ap-skill-group-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.ap-btn-add-ifthen {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.ap-btn-add-ifthen:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--color-primary);
}

/* ── If-then item ────────────────────────────────────────── */
.ap-ifthen-item {
    padding: var(--space-4) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ap-ifthen-item--divider {
    border-top: 1px solid var(--color-warm-100);
}


.ap-ifthen-top {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.ap-ifthen-top .ap-plan-recipe {
    flex: 1;
}

/* ── Group-level confirm delete ──────────────────────────── */
.ap-plan-confirm-delete--group {
    padding: var(--space-3) var(--space-6);
    background: #fef2f2;
    border-top: 1px solid #fecaca;
}

.ap-plan-skill-block {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-2);
}

@media (max-width: 640px) {
    .ap-plan-skill-block {
        flex-direction: column;
        gap: 2px;
    }
}

.ap-plan-skill-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
}

.ap-plan-skill {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    background: var(--color-warm-100);
    padding: 2px 10px 2px 8px;
    border-radius: var(--radius-md);
    line-height: 1.5;
}

.ap-plan-delete-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--color-warm-400);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.ap-plan-delete-btn:hover {
    color: var(--color-error);
    background: #fef2f2;
}

/* ── Recipe hero block — timeline layout ─────────────────── */
.ap-plan-recipe {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each row (IF / I WILL) */
.ap-recipe-step {
    display: flex;
    align-items: stretch;
    gap: var(--space-3);
}

/* Left rail column */
.ap-recipe-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
    padding-top: 5px; /* align dot with badge cap-height */
}

/* IF dot — solid filled */
.ap-recipe-rail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
    position: relative;
    z-index: 1;
}

/* I WILL dot — hollow ring, signals arrival */
.ap-recipe-rail-dot--will {
    background: white;
    border: 2.5px solid var(--color-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
    width: 11px;
    height: 11px;
}

/* Connector line between IF and I WILL */
.ap-recipe-rail-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(20, 184, 166, 0.55) 0%,
        rgba(20, 184, 166, 0.15) 100%
    );
    border-radius: 1px;
    margin-top: 4px;
    min-height: 18px;
    position: relative;
    overflow: hidden;
}

/* Travelling dot animation on hover */
@keyframes ap-flow-dot {
    0%   { top: -8px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.ap-ifthen-item:hover .ap-recipe-rail-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: ap-flow-dot 1.1s ease-in-out infinite;
}

/* Right content column */
.ap-recipe-step-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding-bottom: var(--space-4);
    min-width: 0;
}

.ap-recipe-step--will .ap-recipe-step-content {
    padding-bottom: 0;
}

/* Badges */
.ap-recipe-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary-dark);
    background: rgba(20, 184, 166, 0.09);
    padding: 2px 8px;
    border-radius: 20px;
    line-height: 1.7;
}

/* I WILL badge — solid, signals the committed action */
.ap-recipe-badge--will {
    background: var(--color-primary);
    color: white;
}

.ap-recipe-text {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-warm-800);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    padding-top: 2px; /* align with badge baseline */
}

/* ── Shield block ────────────────────────────────────────── */
.ap-plan-shield {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ap-shield-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    margin: 0 0 var(--space-1);
}

.ap-shield-body {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.ap-shield-connector {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d97706;
    margin-right: 2px;
}

.ap-shield-sep {
    color: #d97706;
    margin: 0 4px;
}

/* ── Confirm delete ──────────────────────────────────────── */
.ap-plan-confirm-delete {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-warm-600);
}

.ap-plan-confirm-yes {
    padding: 2px 10px;
    border: none;
    background: var(--color-error);
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    cursor: pointer;
}

.ap-plan-confirm-no {
    padding: 2px 10px;
    border: 1px solid var(--color-warm-300);
    background: transparent;
    color: var(--color-warm-600);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    cursor: pointer;
}

/* ── Calendar row & form ─────────────────────────────────── */
.ap-calendar-row {
    display: flex;
    align-items: center;
}

.ap-btn-calendar {
    font-size: var(--text-xs);
    color: var(--color-warm-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.ap-btn-calendar:hover {
    color: var(--color-primary);
}

.ap-calendar-form {
    background: var(--color-warm-50, #faf8f6);
    border: 1px solid var(--color-warm-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ap-calendar-fields {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.ap-calendar-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.ap-input--sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    height: 34px;
}

.ap-btn-primary.ap-btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    align-self: flex-start;
}

@media (max-width: 640px) {
    .ap-wizard-wrap {
        padding: var(--space-5) var(--space-5);
        border-radius: var(--radius-xl);
    }

    .ap-resource-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
}

/* ══════════════════════════════════════════════════════════════
   DEVELOPMENT COMMITMENTS — Card structure
   ══════════════════════════════════════════════════════════════ */

.ap-commitment-card {
    background: white;
    border: 1px solid var(--color-warm-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    animation: ap-card-in 0.3s both;
}

@keyframes ap-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ap-commitment-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-color: var(--color-warm-300);
}

.ap-commitment-card--expanded {
    border-color: var(--color-primary-200, #99e6e0);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Card header ─────────────────────────────────────────── */
.ap-commitment-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.ap-commitment-header:hover {
    background: var(--color-warm-50, #faf8f6);
}

.ap-commitment-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ap-commitment-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.ap-commitment-eyebrow {
    font-size: 10px;
    font-weight: var(--font-semibold);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.7;
}

.ap-commitment-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-warm-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-commitment-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    color: var(--color-warm-500);
    margin-top: 1px;
}

.ap-meta-sep {
    opacity: 0.5;
}

/* ── Card body ───────────────────────────────────────────── */
.ap-commitment-body {
    padding: 0 var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ap-commitment-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ap-section-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-warm-500);
}

/* ── Development Intention ───────────────────────────────── */
.ap-intention-text {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    border-left: 3px solid var(--color-primary);
    background: var(--color-warm-50, #faf8f6);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-700);
    font-style: italic;
}

/* ── Skills chips ────────────────────────────────────────── */
.ap-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ap-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-primary-100, #ccf5f2);
    color: var(--color-primary-700, #0e7f79);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 1.4;
    max-width: 220px;
    word-break: break-word;
    white-space: normal;
}

.ap-skill-chips--editable .ap-skill-chip {
    background: var(--color-primary-100, #ccf5f2);
    padding-right: 6px;
}

.ap-skill-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary-600, #1a9e97);
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.ap-skill-chip-remove:hover {
    opacity: 1;
}

.ap-skill-input-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.ap-btn-add-skill {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.ap-btn-add-skill:hover {
    background: var(--color-primary);
    color: white;
}

/* ══════════════════════════════════════════════════════════════
   FLASH CARDS — 3D flip
   ══════════════════════════════════════════════════════════════ */

.ap-flashcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
}

.ap-flashcard-outer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* The element that does the 3D flip */
.ap-flashcard-wrap {
    height: 200px;
    perspective: 800px;
    cursor: pointer;
}

.ap-flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-xl);
}

.ap-flashcard-wrap.is-flipped .ap-flashcard-inner {
    transform: rotateY(180deg);
}

/* Front & back share the same absolute position */
.ap-flashcard-front,
.ap-flashcard-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
    overflow: hidden;
}

/* Front: light warm background */
.ap-flashcard-front {
    background: var(--color-warm-50, #faf8f6);
    border: 1.5px solid var(--color-warm-200);
}

/* Back: teal gradient */
.ap-flashcard-back {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    border: 1.5px solid transparent;
    transform: rotateY(180deg);
    color: white;
}

.ap-flashcard-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.ap-flashcard-front .ap-flashcard-label {
    color: var(--color-primary);
}

.ap-flashcard-back .ap-flashcard-label {
    color: rgba(255,255,255,0.85);
}

.ap-flashcard-text {
    flex: 1;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-800);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ap-flashcard-back .ap-flashcard-text {
    color: white;
}

/* Dynamic text sizing — class applied by cardFontSize() based on char count */
.ap-flashcard-text--xl {
    font-size: var(--text-lg);
    -webkit-line-clamp: 3;
}

.ap-flashcard-text--lg {
    font-size: var(--text-base);
    -webkit-line-clamp: 4;
}

/* default (110 chars): inherits --text-sm + line-clamp: 5 from base rule */

.ap-flashcard-text--xs {
    font-size: var(--text-xs);
    -webkit-line-clamp: 6;
}

/* Bottom row: skill tags (left) + flip hint (right) */
.ap-flashcard-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: auto;
}

.ap-flashcard-hint {
    font-size: var(--text-xs);
    color: var(--color-warm-400);
    white-space: nowrap;
    flex-shrink: 0;
}

.ap-flashcard-obstacle {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.75);
    margin-top: auto;
    padding-top: var(--space-1);
    border-top: 1px solid rgba(255,255,255,0.2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ap-flashcard-obstacle-label {
    font-weight: var(--font-semibold);
    margin-right: 3px;
}

/* Action buttons row (edit + delete) sit below the card */
.ap-flashcard-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-1);
    opacity: 0;
    transition: opacity 0.15s;
}

.ap-flashcard-outer:hover .ap-flashcard-actions {
    opacity: 1;
}

.ap-flashcard-edit-btn,
.ap-flashcard-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-warm-400);
    padding: 2px var(--space-1);
    line-height: 1;
    transition: color 0.15s;
}

.ap-flashcard-edit-btn:hover {
    color: var(--color-primary);
}

.ap-flashcard-delete:hover {
    color: var(--color-error);
}

/* Inline edit form */
.ap-flashcard-edit-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-warm-50);
    border: 1.5px solid var(--color-warm-200);
    border-radius: var(--radius-lg);
    margin-top: var(--space-1);
}

.ap-flashcard-edit-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ap-flashcard-edit-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.8;
}

.ap-flashcard-edit-textarea {
    font-size: var(--text-sm);
    resize: none;
    min-height: 56px;
}

.ap-card-skill-tag-section--edit {
    padding: var(--space-2) var(--space-3);
    margin: 0;
}

.ap-flashcard-edit-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.ap-btn-primary--sm {
    padding: 6px 16px;
    font-size: var(--text-sm);
    margin-left: 0;
}

.ap-btn-ghost--sm {
    padding: 6px 14px;
    font-size: var(--text-sm);
}

/* Empty state for action recipes */
.ap-flashcards-empty {
    font-size: var(--text-sm);
    color: var(--color-warm-400);
    font-style: italic;
    padding: var(--space-2) 0;
}

/* ── Add action recipe button ────────────────────────────── */
.ap-btn-add-ifthen {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: var(--space-2) var(--space-4);
    border: 1.5px dashed var(--color-primary);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-top: var(--space-1);
}

.ap-btn-add-ifthen:hover {
    background: var(--color-primary);
    color: white;
    border-style: solid;
}

/* ══════════════════════════════════════════════════════════════
   WIZARD ADDITIONS — textarea, sm gradient button
   ══════════════════════════════════════════════════════════════ */

.ap-textarea {
    resize: vertical;
    min-height: 100px;
    height: auto;
    line-height: var(--leading-relaxed);
}

.ap-btn-gradient--sm {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 999px;
    font-weight: var(--font-semibold);
    white-space: nowrap;
    width: fit-content;
}

/* ── Action recipe review preview ───────────────────────── */
.ap-flashcard-preview-wrap {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Skill-to-card tagging (Step 4 wizard) ───────────────── */
.ap-card-skill-tag-section {
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--color-warm-50);
    border: 1.5px solid var(--color-warm-200);
    border-radius: var(--radius-lg);
}

.ap-card-skill-tag-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-700);
    margin: 0 0 var(--space-2);
}

.ap-card-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.ap-card-skill-chip {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-warm-300);
    background: white;
    color: var(--color-warm-700);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ap-card-skill-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ap-card-skill-chip--selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.ap-card-skill-chip--custom {
    opacity: 0.85;
}

.ap-card-skill-input-row {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.ap-card-skill-input {
    flex: 1;
    padding: 6px 12px;
    border: 1.5px solid var(--color-warm-300);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-warm-800);
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

.ap-card-skill-input:focus {
    border-color: var(--color-primary);
}

.ap-card-skill-input::placeholder {
    color: var(--color-warm-400);
}

.ap-card-skill-add-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.ap-card-skill-add-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.ap-card-skill-add-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── Skill tags inside action recipe front face ─────────── */
.ap-flashcard-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.ap-flashcard-skill-tag {
    font-size: 0.65rem;
    font-weight: var(--font-semibold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--color-primary) 12%, white);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, white);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .ap-flashcards-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }

    .ap-flashcard-wrap {
        height: 180px;
    }

    .ap-commitment-header {
        padding: var(--space-3) var(--space-4);
    }

    .ap-commitment-body {
        padding: 0 var(--space-4) var(--space-4);
    }

    .ap-skill-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ap-btn-add-skill {
        width: 100%;
    }

    .ap-plans-header {
        justify-content: center;
    }

    .ap-btn-gradient,
    .ap-btn-gradient--sm {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 14px 16px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .ap-empty-state {
        align-items: stretch;
    }
}

@media (max-width: 400px) {
    .ap-flashcards-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════
   FEEDBACK REPORT  (request-detail.html)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Report wrapper ─────────────────────────────────────────── */
.rd-report {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── Report header ──────────────────────────────────────────── */
.rd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #0f766e 0%, #0369a1 60%, #4338ca 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    color: white;
}

.rd-header-for-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.75;
    margin-bottom: 4px;
}

.rd-header-name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.rd-header-topic {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.rd-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.rd-header-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    flex-shrink: 0;
}

.rd-header-date-row {
    font-size: 13px;
    opacity: 0.85;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.rd-header-date-label {
    opacity: 0.65;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.rd-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rd-badge--active  { background: rgba(255,255,255,0.2); color: white; }
.rd-badge--closed  { background: rgba(0,0,0,0.15);      color: rgba(255,255,255,0.8); }
.rd-badge--anon    { background: rgba(99,102,241,0.35);  color: white; }
.rd-badge--groups  { background: rgba(14,165,233,0.35);  color: white; }
.rd-badge--count   { background: rgba(255,255,255,0.15); color: white; }

/* ─── Tabs ───────────────────────────────────────────────────── */
.rd-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.rd-tabs::-webkit-scrollbar { display: none; }

.rd-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.rd-tab-btn:hover { color: #111827; }

.rd-tab-btn--active {
    color: #0f766e;
    font-weight: 600;
    border-bottom-color: #0f766e;
}

.rd-tab-panel { display: none; }
.rd-tab-panel--active { display: flex; flex-direction: column; gap: 20px; }

/* ─── Section wrapper ────────────────────────────────────────── */
.rd-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.rd-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #374151;
    margin-bottom: 4px;
}

.rd-section-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.rd-empty {
    padding: 40px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    background: white;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

/* ─── Participation tiles ────────────────────────────────────── */
.rd-stat-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.rd-stat-tile {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
}

.rd-stat-tile--accent {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.rd-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.rd-stat-tile--accent .rd-stat-value { color: #0f766e; }

.rd-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

/* ─── Group participation bars ───────────────────────────────── */
.rd-group-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.rd-group-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-group-bar-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    min-width: 140px;
}

.rd-group-bar-track {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.rd-group-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.rd-group-bar-stat {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    min-width: 40px;
    text-align: right;
}

/* ─── Highlights ─────────────────────────────────────────────── */
.rd-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 4px;
}

.rd-highlights-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-highlights-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 4px;
}

.rd-highlights-heading--top { color: #0f766e; border-color: #99f6e4; }
.rd-highlights-heading--dev { color: #d97706; border-color: #fde68a; }

.rd-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-highlight-q {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.rd-highlight-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-highlight-bar-track {
    flex: 1;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.rd-highlight-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.rd-highlight-bar--top { background: linear-gradient(90deg, #14b8a6, #10b981); }
.rd-highlight-bar--dev { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.rd-highlight-score {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.rd-highlight-anchor {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

/* ─── Alignment ──────────────────────────────────────────────── */
.rd-align-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
}

.rd-align-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rd-align-row:last-child { border-bottom: none; }

.rd-align-q {
    font-size: 13px;
    color: #374151;
    flex: 1;
    line-height: 1.4;
}

.rd-align-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rd-align-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.rd-align-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* color dots by value */
.rd-align-dot[data-val="1"] { background: #fee2e2; color: #b91c1c; }
.rd-align-dot[data-val="2"] { background: #fef3c7; color: #b45309; }
.rd-align-dot[data-val="3"] { background: #e0f2fe; color: #0369a1; }
.rd-align-dot[data-val="4"] { background: #d1fae5; color: #065f46; }
.rd-align-dot[data-val="5"] { background: #ccfbf1; color: #0f766e; }

.rd-align-legend {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
}

/* ─── Tags ───────────────────────────────────────────────────── */
.rd-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.rd-tag--agree { background: #d1fae5; color: #065f46; }
.rd-tag--mixed { background: #fef3c7; color: #92400e; }
.rd-tag--split { background: #fee2e2; color: #991b1b; }

/* ─── Scores by question ─────────────────────────────────────── */
.rd-score-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
}

.rd-score-row {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rd-score-row:last-child { border-bottom: none; }

.rd-score-q {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.rd-score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-score-bar-track {
    flex: 1;
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.rd-score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.rd-score-right {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
}

.rd-score-num {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.rd-score-of {
    font-size: 13px;
    color: #9ca3af;
}

.rd-score-anchor {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.rd-score-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.rd-score-empty {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

/* ─── Group comparison table ─────────────────────────────────── */
.rd-gtable-wrap {
    overflow-x: auto;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.rd-gtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rd-gtable-th {
    padding: 10px 14px;
    background: #f9fafb;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.rd-gtable-th--question { text-align: left; min-width: 200px; }
.rd-gtable-th--overall  { background: #f0fdfa; color: #0f766e; }
.rd-gtable-th--locked   { color: #d1d5db; }

.rd-gtable-row:nth-child(even) td { background: #fafafa; }

.rd-gtable-q {
    padding: 12px 14px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    border-right: 1px solid #f3f4f6;
}

.rd-gtable-td {
    padding: 10px 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.rd-gtable-td--overall { background: #f0fdfa !important; }
.rd-gtable-td--locked  { color: #d1d5db; }
.rd-gtable-td--empty   { color: #d1d5db; font-size: 16px; }

.rd-gtable-score {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.rd-gtable-bar-track {
    height: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 80px;
}

.rd-gtable-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    border-radius: 3px;
}

.rd-gtable-lock { font-size: 14px; }

/* ─── Gap badges ─────────────────────────────────────────────── */
.rd-gap-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.rd-gap-badge--high { background: #fee2e2; color: #b91c1c; }
.rd-gap-badge--med  { background: #fef3c7; color: #92400e; }

.rd-gap-legend {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

/* ─── Multiple choice ────────────────────────────────────────── */
.rd-mc-block {
    margin-bottom: 20px;
}

.rd-mc-block:last-child { margin-bottom: 0; }

.rd-mc-q {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
}

.rd-mc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.rd-mc-choice {
    font-size: 13px;
    color: #374151;
    min-width: 130px;
    flex-shrink: 0;
}

.rd-mc-bar-track {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.rd-mc-bar-fill {
    height: 100%;
    background: #e5e7eb;
    border-radius: 4px;
}

.rd-mc-bar-fill--active {
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
}

.rd-mc-stat {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    min-width: 50px;
    text-align: right;
    white-space: nowrap;
}

.rd-mc-pct {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

/* ─── Written feedback ───────────────────────────────────────── */
.rd-written-block {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.rd-written-q {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.rd-quote-card {
    position: relative;
    padding: 16px 20px 16px 44px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid #e5e7eb;
}

.rd-quote-mark {
    position: absolute;
    left: 14px;
    top: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #d1d5db;
    line-height: 1;
    font-family: Georgia, serif;
}

.rd-quote-text {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.7;
    margin-bottom: 10px;
    font-style: italic;
}

.rd-quote-meta {
    font-size: 12px;
    color: #9ca3af;
    font-style: normal;
}

.rd-quote-role {
    font-weight: 600;
    color: #6b7280;
}

/* ─── SBI cards ──────────────────────────────────────────────── */
.rd-sbi-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-sbi-card {
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.rd-sbi-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.rd-sbi-badge {
    background: #e65100;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.rd-sbi-badge--inline { flex-shrink: 0; }

.rd-sbi-part {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.rd-sbi-part:last-child { border-bottom: none; }

.rd-sbi-part-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.rd-sbi-part-text {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

/* ─── Response cards ─────────────────────────────────────────── */
.rd-response-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.rd-response-card:last-child { margin-bottom: 0; }

.rd-response-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.rd-response-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    color: white;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px white, 0 2px 8px rgba(20,184,166,0.2);
}

.rd-response-info { flex: 1; }

.rd-response-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.rd-response-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-response-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1fae5;
    color: #065f46;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rd-role-badge {
    background: #ede9fe;
    color: #5b21b6;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
}

.rd-card-answers {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.rd-card-answer {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.rd-card-answer:last-child { border-bottom: none; }

.rd-card-answer-q {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.rd-card-answer-v { }

.rd-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-card-rating-bar-track {
    height: 6px;
    width: 100px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.rd-card-rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    border-radius: 3px;
}

.rd-card-rating-num {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.rd-card-rating-of {
    font-size: 12px;
    color: #9ca3af;
}

.rd-card-rating-label {
    font-size: 12px;
    color: #6b7280;
}

.rd-card-na {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

.rd-card-text {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
    font-style: italic;
}

.rd-card-mc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rd-card-mc-opt {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    background: #f9fafb;
}

.rd-card-mc-opt--chosen {
    border-color: #0f766e;
    background: #ccfbf1;
    color: #0f766e;
    font-weight: 600;
}

.rd-card-sbi {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-card-sbi-part {
    display: flex;
    gap: 10px;
}

.rd-card-sbi-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    min-width: 64px;
    padding-top: 2px;
    flex-shrink: 0;
}

.rd-card-sbi-text {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

/* ─── Pending cards ──────────────────────────────────────────── */
.rd-pending-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 8px;
}

.rd-pending-card:last-child { margin-bottom: 0; }

.rd-pending-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.rd-pending-email {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.rd-pending-badge {
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.rd-pending-summary {
    font-size: 12px;
    color: #9ca3af;
    padding: 10px 4px 14px;
    font-style: italic;
}

/* ─── Group headers (Responses tab) ──────────────────────────── */
.rd-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0 8px;
    margin-top: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 12px;
}

.rd-group-header:first-child { margin-top: 0; }

.rd-group-header-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.rd-group-header-count {
    font-size: 12px;
    color: #9ca3af;
}

/* ─── Lock card ──────────────────────────────────────────────── */
.rd-lock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    text-align: center;
}

.rd-lock-icon { font-size: 40px; margin-bottom: 12px; }

.rd-lock-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 6px;
}

.rd-lock-sub {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 380px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rd-header {
        flex-direction: column;
        padding: 20px;
    }

    .rd-header-right { text-align: left; }
    .rd-header-date-row { justify-content: flex-start; }

    .rd-stat-tiles { grid-template-columns: repeat(2, 1fr); }

    .rd-highlights-grid { grid-template-columns: 1fr; }

    .rd-align-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rd-align-right { width: 100%; justify-content: space-between; }

    .rd-score-right { flex-direction: column; align-items: flex-end; gap: 2px; }

    .rd-group-bar-label { min-width: 100px; font-size: 12px; }

    .rd-tab-btn { padding: 10px 14px; font-size: 13px; }

    .rd-gtable-th, .rd-gtable-q, .rd-gtable-td { padding: 8px 10px; }
}

/* ══════════════════════════════════════════════════════════════
   DEVELOPMENT PLANNER — Phase 3 Modal Wizard
   ══════════════════════════════════════════════════════════════ */

/* ── Overlay transition helpers ─────────────────────────────── */
.ap-overlay-enter {
    transition: opacity 0.2s ease;
}
.ap-panel-enter {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ── Full-page overlay (no blur — solid background) ────────── */
.ap-wizard-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-warm-100);
    display: flex;
    flex-direction: column;
}

/* ── Page-level banner (mirrors fp-process-banner) ──────────── */
.ap-wizard-page-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.ap-wizard-page-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.ap-wizard-page-cancel {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ap-wizard-page-cancel:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}

@media (max-width: 640px) {
    .ap-wizard-page-banner {
        padding: 10px 16px;
    }
}

/* ── Scrollable content area below the banner ───────────────── */
.ap-wizard-page-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem 4rem;
}

/* ── Centered wizard panel ──────────────────────────────────── */
.ap-wizard-panel {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 16px;
    padding: 2rem 2.5rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}

@media (max-width: 640px) {
    .ap-wizard-page-body {
        padding: 1rem 0.75rem 3rem;
    }
    .ap-wizard-panel {
        padding: 1.5rem 1.25rem 2rem;
        border-radius: 12px;
    }
}

/* ── Summary box inside panel ───────────────────────────────── */
.ap-wizard-summary--modal {
    max-width: none;
    margin: 0 0 var(--space-5);
}

/* ── Step examples (outside textboxes) ─────────────────────── */
.ap-step-examples {
    margin-top: var(--space-4);
    margin-bottom: var(--space-1);
}

.ap-step-examples-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-warm-400);
    margin-bottom: var(--space-2);
}

/* ── Large input (Step 1 title) ─────────────────────────────── */
.ap-input--lg {
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--space-3) var(--space-4);
    min-height: 52px;
}

/* ── Trigger input wrapper ──────────────────────────────────── */
.ap-trigger-input-wrap {
    margin-bottom: var(--space-4);
}

.ap-then-input-wrap {
    margin-bottom: var(--space-4);
}

/* ── "Step 1 of 2" heading above input ─────────────────────── */
.ap-trigger-input-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

/* ── Hint text below heading ────────────────────────────────── */
.ap-trigger-input-hint {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    line-height: 1.55;
    margin-bottom: var(--space-3);
}

/* ── Active (editable) border state on input card ───────────── */
.ap-recipe-input-card--active {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* ── "I will…" card redesign: teal header + white input zone ── */
/* Base .ap-recipe-input-card--will already overridden above    */

.ap-recipe-will-header {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    padding: var(--space-3) var(--space-5);
}

.ap-recipe-will-header .ap-recipe-input-label {
    color: white;
    opacity: 0.9;
}

.ap-recipe-will-textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-5);
    background: white;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-800);
}

.ap-recipe-will-textarea::placeholder {
    color: var(--color-warm-400);
}

/* ── Responsive: stack example-pair vertically on mobile ────── */
@media (max-width: 480px) {
    .ap-recipe-example-pair {
        flex-direction: column;
        align-items: center;
    }
    .ap-recipe-example-arrow {
        transform: rotate(90deg);
        width: 24px;
        height: 48px;
    }
}

/* ── Hide sidebar + mobile header while wizard is open ───────
   (mirrors new-request.html which has no sidebar at all)       */
body.ap-wizard-open .app-sidebar,
body.ap-wizard-open .mobile-header,
body.ap-wizard-open .mobile-sidebar-overlay {
    display: none !important;
}

/* Without the sidebar margin-left, the overlay already covers
   full viewport via position:fixed — no layout adjustment needed */

/* ══════════════════════════════════════════════════════════════
   PHASE 3 — Resources Enhancement
   ══════════════════════════════════════════════════════════════ */

/* ── Resources search suggestions ─────────────────────────── */
.ap-res-search-block {
    background: var(--color-primary-50, #f0fdfa);
    border: 1px solid var(--color-primary-light, #99e6da);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}

.ap-res-search-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2);
    opacity: 0.7;
}

.ap-res-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ap-res-search-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: white;
    border: 1px solid var(--color-primary-light, #99e6da);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.ap-res-search-chip:hover {
    background: var(--color-primary-50, #f0fdfa);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

/* ── Resources prompt text ─────────────────────────────────── */
.ap-resources-prompt {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    margin-bottom: var(--space-3);
    font-style: italic;
    line-height: 1.5;
}

/* ── Wizard resources list ─────────────────────────────────── */
.ap-wiz-resources-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.ap-wiz-resource-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-warm-50);
    border: 1px solid var(--color-warm-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

.ap-wiz-resource-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-warm-800);
}

.ap-wiz-resource-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary-light);
}

.ap-wiz-resource-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: var(--color-warm-400);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.ap-wiz-resource-remove:hover {
    background: var(--color-warm-200);
    color: var(--color-warm-700);
}

/* ── Wizard resource add inputs ────────────────────────────── */
.ap-wiz-resource-add {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════
   PHASE 4 — Practice Tracking & Reflection
   ══════════════════════════════════════════════════════════════ */

/* ── Streak badge ──────────────────────────────────────────── */
.ap-streak-badge {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

/* ── Practice row below each action recipe ────────────────── */
.ap-flashcard-practice-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-1);
    flex-wrap: wrap;
}

.ap-btn-practiced {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 5px 12px;
    background: var(--color-primary-50, #f0fdfa);
    border: 1px solid var(--color-primary-light, #99e6da);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.ap-btn-practiced:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.ap-practiced-status {
    font-size: var(--text-xs);
    color: var(--color-warm-500);
}

.ap-practiced-count {
    font-size: var(--text-xs);
    color: var(--color-warm-400);
    font-weight: 600;
}

/* ── Reflection section ────────────────────────────────────── */
.ap-reflection-section {
    border-top: 1px solid var(--color-warm-200);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
}

.ap-reflection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: var(--space-1);
    user-select: none;
}

.ap-reflection-header:hover .ap-reflection-title {
    color: var(--color-primary);
}

.ap-reflection-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-warm-500);
    transition: color 0.15s;
}

.ap-reflection-caret {
    font-size: 1rem;
    color: var(--color-warm-400);
    transition: transform 0.2s;
    line-height: 1;
}

.ap-reflection-caret.open {
    transform: rotate(90deg);
}

.ap-reflection-body {
    padding-top: var(--space-2);
}

.ap-reflection-prompt {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-warm-700);
    margin-bottom: var(--space-2);
}

.ap-reflection-saved-text {
    font-size: var(--text-sm);
    color: var(--color-warm-700);
    font-style: italic;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-warm-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary-light, #99e6da);
}

.ap-reflection-textarea {
    margin-bottom: var(--space-2) !important;
    font-size: var(--text-sm);
    width: 100%;
}

/* ── Share for Feedback section ────────────────────────────── */
.ap-share-section {
    border-top: 1px solid var(--color-warm-200);
    padding-top: var(--space-5);
}

.ap-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.ap-btn-share-toggle {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid var(--color-primary-light, #99e6da);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.ap-btn-share-toggle:hover {
    background: var(--color-primary-50, #f0fdfa);
}

.ap-share-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ap-share-hint {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    line-height: 1.55;
}

.ap-share-textarea {
    width: 100%;
    resize: none;
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--color-warm-700);
    background: var(--color-warm-50);
    cursor: text;
    white-space: pre-wrap;
}

.ap-share-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.ap-btn-copy-message {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.ap-btn-copy-message:hover {
    opacity: 0.88;
}

.ap-btn-email-share {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary-light, #99e6da);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.ap-btn-email-share:hover {
    background: var(--color-primary-50, #f0fdfa);
}

/* ── Saved perspective givers in new-request wizard ──────── */
.pg-saved-contacts {
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-warm-50, #faf8f6);
    border: 1.5px solid var(--color-warm-200);
    border-radius: var(--radius-lg);
}

.pg-saved-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-warm-500);
    margin: 0 0 var(--space-2);
}

.pg-saved-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.pg-saved-chips--collapsed {
    max-height: 84px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.pg-saved-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-2);
    padding: 4px 0;
    background: none;
    border: none;
    color: var(--color-primary-dark, #0f766e);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}
.pg-saved-toggle:hover {
    color: var(--color-primary, #14b8a6);
    text-decoration: underline;
}
.pg-saved-toggle-chevron {
    transition: transform 0.2s ease;
}
.pg-saved-toggle-chevron--up {
    transform: rotate(180deg);
}

.pg-saved-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 8px;
    background: white;
    border: 1.5px solid var(--color-warm-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.pg-saved-chip:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: var(--color-primary-50, #f0fdfa);
}

.pg-saved-chip--added {
    border-color: var(--color-primary);
    background: var(--color-primary-50, #f0fdfa);
    opacity: 0.7;
    cursor: default;
}

.pg-saved-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.pg-saved-chip-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-800);
}

.pg-saved-chip-check {
    font-size: var(--text-xs);
    color: var(--color-primary);
    font-weight: var(--font-bold);
}

/* ============================================================
   MY PERSPECTIVE GIVERS PAGE
   ============================================================ */

.pg-page-header {
    padding-bottom: var(--space-2);
}

.pg-page-subtitle {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    margin-top: 4px;
    max-width: 520px;
    line-height: 1.5;
}

.pg-btn-add-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s, box-shadow 0.15s, transform 0.15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.pg-btn-add-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
    transform: translateY(-1px);
}

.pg-btn-add-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

/* ── Add / Edit form ────────────────────────────────────── */
.pg-form-card {
    background: white;
    border: 1.5px solid var(--color-primary-200, #99e6e0);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.pg-form-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-warm-900);
    margin: 0 0 var(--space-4);
}

.pg-form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pg-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.pg-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pg-field-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-700);
}

.pg-required { color: var(--color-primary); }
.pg-optional { font-weight: 400; color: var(--color-warm-400); font-size: var(--text-xs); }

.pg-input {
    padding: 9px 13px;
    border: 1.5px solid var(--color-warm-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-warm-900);
    background: white;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.pg-input:focus {
    border-color: var(--color-primary);
}

.pg-input::placeholder {
    color: var(--color-warm-400);
}

.pg-form-error {
    font-size: var(--text-sm);
    color: #e53e3e;
    margin: var(--space-2) 0 0;
}

.pg-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.pg-btn-cancel {
    padding: 9px 18px;
    background: transparent;
    border: 1.5px solid var(--color-warm-300);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-warm-600);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.pg-btn-cancel:hover { border-color: var(--color-warm-500); color: var(--color-warm-800); }

.pg-btn-save {
    padding: 9px 22px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: background 0.15s;
}

.pg-btn-save:hover:not(:disabled) { background: var(--color-primary-dark); }
.pg-btn-save:disabled { opacity: 0.55; cursor: default; }

/* ── Loading ────────────────────────────────────────────── */
.pg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-8) 0;
    color: var(--color-warm-500);
    font-size: var(--text-sm);
}

/* ── Empty state ────────────────────────────────────────── */
.pg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
    gap: var(--space-3);
}

.pg-empty-icon { font-size: 2.5rem; line-height: 1; }

.pg-empty-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    margin: 0;
}

.pg-empty-body {
    font-size: var(--text-sm);
    color: var(--color-warm-500);
    max-width: 400px;
    line-height: 1.6;
    margin: 0;
}

/* ── Role grouping ──────────────────────────────────────── */
.pg-group {
    margin-bottom: var(--space-6);
}

.pg-group-label {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-warm-800);
    letter-spacing: 0.01em;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-warm-300);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pg-group-label::before {
    content: '';
    width: 4px;
    height: 1.1em;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ── Contacts grid ──────────────────────────────────────── */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-3);
    align-items: start;
}

/* ── Contact card ───────────────────────────────────────── */
.pg-card {
    background: white;
    border: 1px solid var(--color-warm-200);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    user-select: none;
}

.pg-card:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    border-color: var(--color-warm-300);
}

.pg-card--expanded {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--color-warm-300);
}

/* Card header: always visible */
.pg-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
}

.pg-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
    color: white;
    font-size: 13px;
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.pg-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pg-card-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-warm-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-card-email {
    font-size: var(--text-xs);
    color: var(--color-warm-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-card-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-warm-400);
    transition: transform 0.22s ease;
}

.pg-card--expanded .pg-card-chevron {
    transform: rotate(180deg);
}

/* Expanded detail area */
.pg-card-details {
    padding: var(--space-3) var(--space-4) var(--space-4);
    border-top: 1px solid var(--color-warm-100);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pg-card-role-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 3px 10px;
    background: rgba(20, 184, 166, 0.1);
    color: #0d9488;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.pg-card-notes-text {
    font-size: var(--text-xs);
    color: var(--color-warm-500);
    font-style: italic;
    line-height: 1.5;
}

.pg-card-expanded-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-1);
}

/* Edit button — outlined */
.pg-card-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border: 1.5px solid var(--color-warm-200);
    border-radius: var(--radius-full);
    background: white;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-warm-600);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.pg-card-btn-edit:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Remove button — ghost danger */
.pg-card-btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    background: transparent;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-warm-400);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.pg-card-btn-remove:hover {
    border-color: #fca5a5;
    color: #e53e3e;
    background: #fff5f5;
}

.pg-delete-confirm {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    color: var(--color-warm-700);
    white-space: nowrap;
}

.pg-confirm-yes, .pg-confirm-no {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    border: 1.5px solid;
    transition: background 0.15s, color 0.15s;
}

.pg-confirm-yes { border-color: #e53e3e; color: #e53e3e; background: white; }
.pg-confirm-yes:hover { background: #e53e3e; color: white; }
.pg-confirm-no  { border-color: var(--color-warm-300); color: var(--color-warm-600); background: white; }
.pg-confirm-no:hover  { border-color: var(--color-warm-500); }

/* ── FAB: Add Giver ─────────────────────────────────────── */
.pg-fab {
    position: fixed;
    bottom: 32px;
    right: 36px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 55%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(20, 184, 166, 0.45);
    transition: filter 0.15s, box-shadow 0.15s, transform 0.15s;
    white-space: nowrap;
}

.pg-fab:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 28px rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

.pg-fab:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(20, 184, 166, 0.3);
}

/* Hide the dashboard FAB when the empty-state CTA is showing,
   so we don't render two "Ask for Perspectives" buttons at once. */
body.dashboard-empty .pg-fab {
    display: none;
}

/* ── Contact picker (browser API) ───────────────────────── */
.pg-contact-picker-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-1);
}

.pg-contact-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid var(--color-warm-200);
    border-radius: var(--radius-full);
    background: white;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-warm-600);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.pg-contact-picker-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .pg-field-row   { grid-template-columns: 1fr; }
    .pg-grid        { grid-template-columns: 1fr; }
    .pg-fab         { bottom: 24px; right: 20px; padding: 11px 18px; font-size: 13px; }
}

/* ============================================
   ✦ ELEGANT REQUEST CARDS — results.html
   ============================================ */

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Glass Retreat cards ─────────────────── */
.rq-card {
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: 22px 24px 20px 24px;
    box-shadow:
        0 1px 2px rgba(46, 44, 42, 0.04),
        0 12px 36px -14px rgba(20, 184, 166, 0.14);
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease,
                border-color 0.28s ease, background-color 0.28s ease, opacity 0.24s ease;
}

@media (hover: hover) {
    .rq-card:hover {
        transform: translateY(-2px);
        background-color: rgba(255, 255, 255, 0.86);
        border-color: rgba(20, 184, 166, 0.28);
        box-shadow:
            0 0 0 3px rgba(20, 184, 166, 0.08),
            0 1px 2px rgba(46, 44, 42, 0.04),
            0 20px 48px -16px rgba(20, 184, 166, 0.26);
    }
}

.rq-card--expanded {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow:
        0 0 0 3px rgba(20, 184, 166, 0.1),
        0 1px 2px rgba(46, 44, 42, 0.04),
        0 24px 56px -18px rgba(20, 184, 166, 0.28);
}

.rq-card--removing {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
}

/* Rail + glow removed in Paper & Ink */
.rq-rail,
.rq-glow {
    display: none;
}

.rq-surface {
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Header ─────────────────────────────── */
.rq-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.rq-icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(240, 253, 250, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rq-icon-tile .icon-mask {
    width: 28px;
    height: 28px;
    background-image: none;
    background-color: #0D9488;
    transition: none;
}

.rq-heading {
    min-width: 0;
}

.rq-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-warm-800);
    line-height: 1.3;
    margin: 0 0 6px 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    letter-spacing: -0.005em;
}

.rq-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    line-height: 1;
}

.rq-sub-sep {
    color: var(--color-warm-400);
    font-size: 11px;
    user-select: none;
}

.rq-deadline-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-warm-600);
    white-space: nowrap;
}

/* Scoped with parent class to beat the broad `.requests-section svg { width: 40px }` mobile rule */
.rq-deadline-text .rq-deadline-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    color: var(--color-warm-500);
}

.rq-anon-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.12);
    color: #854D0E;
    border: 1px solid rgba(234, 179, 8, 0.3);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rq-anon-flag svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Top-right: status badge + kebab menu */
.rq-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-shrink: 0;
}

.rq-status {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #4B5563;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
}

.rq-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.rq-status--completed { color: #10B981; }
.rq-status--active    { color: #0D9488; }
.rq-status--due-soon  { color: #D97706; }
.rq-status--overdue   { color: #DC2626; }
.rq-status--draft     { color: #6B7280; }
.rq-status--cancelled,
.rq-status--expired,
.rq-status--pending   { color: var(--color-warm-500); }

/* ── Draft card variant ─────────────────────────────────── */
.rq-card--draft {
    background: #FAFAF7;
    border: 1px dashed var(--color-warm-300, #d6d3cf);
}
.rq-card--draft:hover {
    border-color: var(--color-warm-400, #b8b5ae);
}
.rq-card--draft .rq-title {
    color: var(--color-warm-700, #52524c);
}
.rq-icon-tile--draft {
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rq-draft-surface {
    padding-bottom: 16px;
}
.rq-draft-summary {
    margin: 6px 0 0 0;
    padding: 0 20px;
    color: var(--color-warm-600, #70716c);
    font-size: 13px;
    font-style: italic;
}
.rq-draft-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 0;
}
.rq-draft-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary, #14B8A6);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.rq-draft-continue:hover {
    background: var(--color-primary-dark, #0D9488);
}

.rq-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--color-warm-500);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.rq-menu-btn:hover {
    background: rgba(46, 44, 42, 0.06);
    color: var(--color-warm-800);
}

.rq-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(46, 44, 42, 0.08);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 32px -8px rgba(20, 184, 166, 0.18);
    z-index: 10;
}

.rq-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-warm-800);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.rq-menu-item:hover {
    background: rgba(17, 24, 39, 0.05);
}

.rq-menu-item--danger {
    color: #B91C1C;
}

.rq-menu-item--danger:hover {
    background: #FEF2F2;
    color: #991B1B;
}

.rq-menu-item--success {
    color: #0F766E;
}

.rq-menu-item--success:hover {
    background: rgba(20, 184, 166, 0.08);
    color: #115E59;
}

/* ── Progress ───────────────────────────── */
.rq-progress-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rq-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-sans);
}

.rq-progress-count {
    font-size: 13px;
    color: var(--color-warm-600);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.rq-progress-count strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    line-height: 1;
}

.rq-progress-total {
    font-size: 13px;
    color: var(--color-warm-500);
    font-weight: 500;
    margin-right: 6px;
}

.rq-progress-label {
    font-size: 12px;
    color: var(--color-warm-600);
}

.rq-progress-pct {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-primary-dark);
    letter-spacing: 0;
}

.rq-bar {
    height: 4px;
    background: rgba(46, 44, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.rq-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2DD4BF 0%, #0D9488 100%);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rq-bar-fill::after {
    content: none;
}

/* ── Footer: avatars + deadline + chevron ─ */
.rq-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rq-avatars {
    display: flex;
    align-items: center;
}

.rq-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    font-family: var(--font-sans);
    flex-shrink: 0;
    overflow: hidden;
}

.rq-avatar + .rq-avatar {
    margin-left: -8px;
}

.rq-avatar svg {
    width: 16px;
    height: 16px;
    display: block;
}

.rq-avatar--done {
    background: #CCFBF1;
    color: #0F766E;
}

.rq-avatar--pending {
    background: #F3F4F6;
    color: #B4B8BE;
}

.rq-avatar--overflow {
    background: #FFFFFF;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    font-size: 10px;
    font-weight: 600;
}

.rq-deadline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-warm-600);
    font-weight: 500;
}

.rq-deadline svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.rq-expand-chevron {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--color-warm-500);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease;
}

@media (hover: hover) {
    .rq-card:hover .rq-expand-chevron {
        background: rgba(17, 24, 39, 0.04);
    }
}

.rq-expand-chevron--open {
    transform: rotate(180deg);
}

/* ── Expand wrapper (grid-rows auto-height animation) ─ */
.rq-expand-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.rq-card--expanded .rq-expand-wrap {
    grid-template-rows: 1fr;
}

.rq-expand-inner {
    overflow: hidden;
    min-height: 0;
}

.rq-expand-body {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(46, 44, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rq-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rq-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rq-meta-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-warm-500);
}

.rq-meta-value {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-warm-800);
}

.rq-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 55%, #6366f1 100%);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.28);
    transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.rq-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(20, 184, 166, 0.38);
}

.rq-cta:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.28);
}

.rq-empty-note {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-warm-500);
    font-style: italic;
    margin: 0;
}

/* Journey section */
.rq-journey-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-warm-500);
    margin-bottom: 12px;
}

.rq-journey-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rq-journey-group-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-warm-600);
    margin-bottom: 8px;
}

.rq-journey-group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rq-giver-card {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(46, 44, 42, 0.07);
    border-radius: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rq-giver-card--done {
    background: rgba(240, 253, 250, 0.65);
    border-color: rgba(45, 212, 191, 0.25);
}

.rq-giver-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rq-giver-name {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-warm-800);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.rq-giver-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Delete confirm overlay ─────────────── */
.rq-delete-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: inherit;
}

.rq-delete-panel {
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.rq-delete-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-warm-800);
    margin-bottom: 4px;
    line-height: 1.3;
}

.rq-delete-sub {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-warm-600);
    line-height: 1.45;
    margin-bottom: 12px;
    word-break: break-word;
}

.rq-delete-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rq-delete-cancel,
.rq-delete-confirm-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rq-delete-cancel {
    background: #FFFFFF;
    color: var(--color-warm-700);
    border-color: rgba(17, 24, 39, 0.12);
}

.rq-delete-cancel:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: rgba(17, 24, 39, 0.2);
}

.rq-delete-confirm-btn {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px -3px rgba(185, 28, 28, 0.4);
}

.rq-delete-confirm-btn:hover:not(:disabled) {
    filter: brightness(1.05);
}

.rq-delete-cancel:disabled,
.rq-delete-confirm-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Card entrance animation */
@keyframes rq-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rq-card {
    animation: rq-card-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.rq-card:nth-child(1) { animation-delay: 0.05s; }
.rq-card:nth-child(2) { animation-delay: 0.1s; }
.rq-card:nth-child(3) { animation-delay: 0.15s; }
.rq-card:nth-child(4) { animation-delay: 0.2s; }
.rq-card:nth-child(n+5) { animation-delay: 0.25s; }

/* ── Mobile ─────────────────────────────── */
@media (max-width: 640px) {
    .requests-list {
        gap: 14px;
    }

    .rq-card {
        padding: 18px 18px 16px 18px;
        border-radius: 12px;
    }

    .rq-surface {
        gap: 14px;
    }

    .rq-header {
        column-gap: 10px;
        align-items: start;
    }

    .rq-icon-tile {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .rq-icon-tile .icon-mask {
        width: 24px;
        height: 24px;
    }

    .rq-heading {
        min-width: 0;
    }

    .rq-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .rq-sub {
        gap: 6px;
    }

    .rq-deadline-text,
    .rq-anon-flag,
    .rq-status {
        font-size: 10px;
    }

    .rq-menu-btn {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .rq-menu-btn svg {
        width: 14px;
        height: 14px;
    }

    .rq-progress-count strong {
        font-size: 14px;
    }

    .rq-progress-pct {
        font-size: 12px;
    }

    .rq-avatar {
        width: 24px;
        height: 24px;
    }

    .rq-avatar svg {
        width: 14px;
        height: 14px;
    }

    .rq-footer {
        gap: 10px;
    }

    .rq-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rq-cta {
        align-self: stretch;
        justify-content: center;
    }

    .rq-menu {
        right: 0;
        min-width: 160px;
    }

    .rq-menu-item {
        font-size: 12px;
        padding: 7px 10px;
        gap: 7px;
    }

    .rq-menu-item svg {
        width: 12px;
        height: 12px;
    }

    .rq-delete-panel {
        max-width: 100%;
    }

    .rq-delete-title {
        font-size: 14px;
    }

    .rq-delete-sub {
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rq-card,
    .rq-icon-tile,
    .rq-expand-chevron,
    .rq-bar-fill,
    .rq-expand-wrap {
        animation: none !important;
        transition: none !important;
    }
    .rq-bar-fill::after { animation: none !important; }
}

/* ============================================================
   STEP 3 — PRIVACY & STRUCTURE CARD (grouped toggles)
   ============================================================ */
/* Compact collapsible settings bar (replaces .privacy-card) */
.wiz-settings-bar {
    margin-bottom: 16px;
    background: var(--color-warm-50, #faf8f6);
    border: 1px solid var(--color-warm-200);
    border-radius: 10px;
    overflow: hidden;
}

.wiz-settings-summary {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background-color 0.15s;
}
.wiz-settings-summary:hover { background: rgba(0, 0, 0, 0.025); }

.wiz-settings-bar--open .wiz-settings-summary {
    border-bottom: 1px solid var(--color-warm-200);
}

.wiz-settings-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--color-warm-600);
    font-weight: 500;
    line-height: 1;
}
.wiz-settings-pill strong { font-weight: 600; color: var(--color-warm-700); }
.wiz-settings-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-warm-300);
    flex-shrink: 0;
}
.wiz-settings-pill--on { color: var(--color-primary-dark, #0f766e); }
.wiz-settings-pill--on strong { color: var(--color-primary-dark, #0f766e); }
.wiz-settings-pill--on .wiz-settings-pill-dot { background: var(--color-primary, #14b8a6); }

.wiz-settings-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-warm-600);
}
.wiz-settings-chevron {
    transition: transform 0.2s ease;
}
.wiz-settings-chevron--up {
    transform: rotate(180deg);
}

.wiz-settings-body {
    padding: 14px 18px 16px;
}

.privacy-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.privacy-card-divider {
    height: 1px;
    background: var(--color-warm-200);
    margin: 14px 0;
}

.wiz-group-hint {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.5;
    margin-top: 10px;
    padding: 8px 12px;
    background: #F0FDF4;
    border-left: 3px solid #86EFAC;
    border-radius: 6px;
}
.wiz-group-warn {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #B45309;
}

/* ── Live anonymity status ─────────────────────────────────── */
.wiz-anon-status-wrap {
    margin-top: 12px;
}

.wiz-anon-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.3;
}

.wiz-anon-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wiz-anon-status--need {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}
.wiz-anon-status--need .wiz-anon-status-dot { background: #DC2626; }

.wiz-anon-status--ok {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}
.wiz-anon-status--ok .wiz-anon-status-dot { background: #F59E0B; }

.wiz-anon-status--great {
    background: #F0FDF4;
    color: #166534;
    border-color: #BBF7D0;
}
.wiz-anon-status--great .wiz-anon-status-dot { background: #16A34A; }

.wiz-anon-status-hint {
    font-size: 12px;
    color: #6B7280;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ── Saved contacts header + search ────────────────────────── */
.pg-saved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pg-saved-header .pg-saved-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.pg-saved-icon {
    color: var(--color-primary, #14b8a6);
    flex-shrink: 0;
}

.pg-saved-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    background: var(--color-warm-200);
    color: var(--color-warm-700, #44403c);
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0;
}

.pg-contact-search {
    flex: 0 1 200px;
    max-width: 200px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 26px;
    border: 1px solid var(--color-warm-300);
    border-radius: 6px;
    background: white;
    outline: none;
    transition: border-color 0.15s;
}
.pg-contact-search::placeholder { font-size: 12px; }
.pg-contact-search:focus {
    border-color: var(--color-primary, #14b8a6);
}

.pg-saved-empty {
    width: 100%;
    font-size: 13px;
    color: var(--color-warm-500);
    font-style: italic;
    padding: 4px 2px;
}

/* Differentiate saved-contact chips from giver pills */
.pg-saved-chip {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.pg-saved-chip-plus {
    font-size: 14px;
    color: var(--color-primary, #14b8a6);
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
}

/* ── Inline email validation ──────────────────────────────── */
.giver-email-wrap {
    position: relative;
    margin-bottom: 16px;
}
.giver-email-wrap .feedback-input {
    margin-bottom: 0 !important;
    padding-right: 36px;
}

.feedback-input--valid {
    border-color: #86EFAC !important;
    background-color: #F0FDF4 !important;
}
.feedback-input--invalid {
    border-color: #FCA5A5 !important;
    background-color: #FEF2F2 !important;
}

.giver-email-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}
.giver-email-icon--valid {
    background: #16A34A;
    color: white;
}
.giver-email-icon--invalid {
    background: #DC2626;
    color: white;
}

.giver-error-msg {
    font-size: 13px;
    color: #B91C1C;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ── Giver summary row: meta cluster on the right ────────── */
.giver-summary-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Flash/pulse when a giver is added via saved contact ── */
@keyframes giver-flash {
    0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.0); background-color: #F0FDFA; }
    40%  { box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.25); background-color: #CCFBF1; }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.0); background-color: transparent; }
}
.feedback-giver-form.giver-flash {
    animation: giver-flash 1.4s ease-out;
}

/* ── +Add Another Person row with disabled-hint ──────────── */
.add-giver-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.add-giver-hint {
    font-size: 12.5px;
    color: var(--color-warm-500);
    font-style: italic;
}

/* ── Next button cluster with anonymity badge ─────────────── */
.wizard-next-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wiz-next-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.wiz-next-badge--need {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.wiz-next-badge--ok {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}
.wiz-next-badge--great {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

@media (prefers-reduced-motion: reduce) {
    .feedback-giver-form.giver-flash { animation: none; }
}

.givers-empty-state {
    margin: 12px 0 20px;
    padding: 14px 18px;
    border: 1.5px dashed var(--color-warm-300);
    border-radius: 10px;
    background: var(--color-warm-50, #faf8f6);
    text-align: center;
}
.givers-empty-state p {
    margin: 0;
    font-size: 13.5px;
    color: var(--color-warm-600, #57534e);
    line-height: 1.5;
}

.giver-save-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-warm-200);
}
.giver-save-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4B5563;
    cursor: pointer;
    user-select: none;
}
.giver-save-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary, #14b8a6);
    cursor: pointer;
}
.giver-save-already {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    color: var(--color-warm-500);
    font-style: italic;
}
