/* Strategic District Plan Builder - Toolkit Extension */
/* Extends existing builder.css with Strategic Planning Toolkit features */

/* ============================================================================
   1. SUB-STEP SYSTEM
   ============================================================================ */

.substep-container {
    margin: 16px 0;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

.substep-container:hover {
    border-color: #d4ccc0;
    box-shadow: 0 2px 8px rgba(34, 51, 59, 0.08);
}

.substep-header {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    background-color: #fafaf8;
    border-bottom: 1px solid transparent;
}

.substep-container.expanded .substep-header {
    background-color: #f7f5f2;
    border-bottom-color: #e0d5c7;
}

.substep-header:hover {
    background-color: #f5f3f0;
}

.substep-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    background-color: #e0d5c7;
}

.substep-status-dot.not-started {
    background-color: #ccc0b5;
}

.substep-status-dot.in-progress {
    background-color: var(--pop-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.2);
}

.substep-status-dot.complete {
    background-color: var(--pop-green);
    box-shadow: 0 0 0 3px rgba(110, 207, 110, 0.2);
}

.substep-header-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.substep-type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: var(--navy);
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.substep-type-badge.core-work {
    background-color: rgba(0, 180, 204, 0.15);
    color: #00917a;
    border: 1px solid rgba(0, 180, 204, 0.3);
}

.substep-type-badge.ai-assistance {
    background-color: rgba(107, 76, 154, 0.15);
    color: #5a3f8a;
    border: 1px solid rgba(107, 76, 154, 0.3);
}

.substep-type-badge.resources {
    background-color: rgba(212, 165, 55, 0.15);
    color: #a68a2f;
    border: 1px solid rgba(212, 165, 55, 0.3);
}

.substep-type-badge.validation {
    background-color: rgba(110, 207, 110, 0.15);
    color: #4a9a4a;
    border: 1px solid rgba(110, 207, 110, 0.3);
}

.substep-title {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

.substep-chevron {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.substep-container.expanded .substep-chevron {
    transform: rotate(180deg);
}

.substep-left-border {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--pop-teal);
}

.substep-container.core-work .substep-left-border {
    background-color: var(--pop-teal);
}

.substep-container.ai-assistance .substep-left-border {
    background-color: var(--pop-purple);
}

.substep-container.resources .substep-left-border {
    background-color: var(--pop-gold);
}

.substep-container.validation .substep-left-border {
    background-color: var(--pop-green);
}

.substep-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.substep-container.expanded .substep-content {
    max-height: 2000px;
    opacity: 1;
}

.substep-content-inner {
    padding: 20px 18px;
    border-top: 1px solid #e0d5c7;
    background-color: #ffffff;
}

.substep-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 14px;
}

.substep-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.substep-action-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #d0c7bb;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.substep-action-btn:hover {
    background-color: #f5f3f0;
    border-color: #c6ac8f;
}

.substep-action-btn.primary {
    background-color: var(--pop-teal);
    color: #ffffff;
    border-color: var(--pop-teal);
}

.substep-action-btn.primary:hover {
    background-color: #0099aa;
    border-color: #0099aa;
}

/* ============================================================================
   2. TOOLKIT BADGE CARDS
   ============================================================================ */

.toolkit-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0d5c7;
}

.toolkit-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    padding: 0 20px 12px;
    margin: 0;
}

.toolkit-badges-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
    max-height: 300px;
    overflow-y: auto;
}

.toolkit-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: #f5f3f0;
    border: 1px solid #e0d5c7;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.toolkit-badge:hover {
    background-color: #ede9e4;
    border-color: #d4ccc0;
    box-shadow: 0 2px 8px rgba(34, 51, 59, 0.08);
}

.toolkit-badge.muted {
    opacity: 0.55;
    cursor: not-allowed;
}

.toolkit-badge.muted:hover {
    background-color: #f5f3f0;
    border-color: #e0d5c7;
    box-shadow: none;
}

.toolkit-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(0, 180, 204, 0.2);
    color: var(--pop-teal);
    font-size: 0.9rem;
    flex-shrink: 0;
    font-weight: 700;
}

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

.toolkit-badge-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    display: block;
    margin-bottom: 2px;
}

.toolkit-badge-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
}

.toolkit-badge-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e0d5c7;
    flex-shrink: 0;
}

.toolkit-badge-status.ready {
    background-color: var(--pop-green);
}

.toolkit-badge-status.in-progress {
    background-color: var(--pop-gold);
}

.toolkit-badge:hover .toolkit-badge-download-hint {
    opacity: 1;
}

.toolkit-badge-download-hint {
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #888;
    margin-left: 6px;
    flex-shrink: 0;
}

/* ============================================================================
   3. AI PROMPT INTERFACE
   ============================================================================ */

.ai-prompt-section {
    margin: 20px 0;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    background-color: #fafaf8;
    overflow: hidden;
}

.ai-prompt-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0d5c7;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(107, 76, 154, 0.08);
}

.ai-prompt-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--pop-purple), #9370db);
    border-radius: 50%;
    font-size: 0.7rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ai-prompt-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pop-purple);
}

.ai-prompt-container {
    padding: 16px;
}

.prompt-input-wrapper {
    margin-bottom: 12px;
}

.prompt-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.prompt-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0c7bb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--navy);
    background-color: #ffffff;
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--pop-purple);
    box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.1);
}

.prompt-input::placeholder {
    color: #aaa;
}

.prompt-button-group {
    display: flex;
    gap: 8px;
}

.prompt-generate-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pop-purple), #9370db);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 76, 154, 0.25);
}

.prompt-generate-btn:active {
    transform: translateY(0);
}

.prompt-generate-btn.loading {
    opacity: 0.85;
    cursor: not-allowed;
}

.prompt-response-container {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e0d5c7;
    border-radius: 8px;
    background-color: #ffffff;
    max-height: 300px;
    overflow-y: auto;
}

.prompt-response-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pop-purple);
    margin-bottom: 10px;
}

.prompt-response-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.prompt-response-text.typing {
    animation: blinkingCursor 1.2s infinite;
}

@keyframes blinkingCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}

.prompt-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* AI and Download Button Styles */
.btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pop-purple, #6B4C9A), #9370db);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 76, 154, 0.3);
}

.btn-ai:active {
    transform: translateY(0);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--pop-teal, #00B4CC);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    background: #ffffff;
    color: var(--pop-teal, #00B4CC);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: var(--pop-teal, #00B4CC);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 180, 204, 0.25);
}

.btn-download:active {
    transform: translateY(0);
}

/* AI Response Areas */
.ai-response-area {
    margin-top: 12px;
    min-height: 20px;
}

.ai-response-area:empty {
    display: none;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(107, 76, 154, 0.06);
    border: 1px solid rgba(107, 76, 154, 0.15);
    border-radius: 8px;
    color: var(--pop-purple, #6B4C9A);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.ai-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(107, 76, 154, 0.2);
    border-top: 2px solid var(--pop-purple, #6B4C9A);
    border-radius: 50%;
    animation: aiSpin 0.8s linear infinite;
}

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

.ai-result-text {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e0d5c7;
    border-left: 3px solid var(--pop-purple, #6B4C9A);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.ai-result-text strong {
    color: var(--navy, #22333B);
}

.ai-result-text p {
    margin-bottom: 0.75rem;
}

.ai-error {
    padding: 12px;
    background: rgba(224, 122, 95, 0.08);
    border: 1px solid rgba(224, 122, 95, 0.2);
    border-left: 3px solid var(--pop-coral, #E07A5F);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #8b4a3a;
}

/* Toolkit Output Areas */
.toolkit-output-area {
    margin-top: 12px;
    min-height: 20px;
}

.toolkit-output-area:empty {
    display: none;
}

.survey-output-box {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e0d5c7;
    border-radius: 8px;
    margin-top: 12px;
}

.survey-output-box .survey-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.survey-output-box .survey-header h4 {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    color: var(--navy, #22333B);
}

.survey-output-box pre.survey-content {
    padding: 12px;
    background: #f7f5f2;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.btn-copy, .btn-download-survey {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #d0c7bb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover, .btn-download-survey:hover {
    background: var(--pop-teal, #00B4CC);
    color: #fff;
    border-color: var(--pop-teal, #00B4CC);
}

/* Highlight flash for scrollToToolkit */
.highlight-flash {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 204, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 180, 204, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 204, 0); }
}

.prompt-action-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d0c7bb;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.prompt-action-btn:hover {
    border-color: var(--pop-purple);
    color: var(--pop-purple);
}

.prompt-action-btn.primary {
    background-color: var(--pop-purple);
    color: #ffffff;
    border-color: var(--pop-purple);
}

.prompt-action-btn.primary:hover {
    background-color: #5a3f8a;
    border-color: #5a3f8a;
}

/* ============================================================================
   4. DOCUMENT DOWNLOAD CARDS
   ============================================================================ */

.document-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.document-card {
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    padding: 14px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    border-color: #d4ccc0;
    box-shadow: 0 4px 12px rgba(34, 51, 59, 0.1);
    transform: translateY(-2px);
}

.document-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.document-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(0, 180, 204, 0.15);
    color: var(--pop-teal);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.document-type-badge.pdf {
    background-color: rgba(224, 122, 95, 0.15);
    color: var(--pop-coral);
}

.document-type-badge.pptx {
    background-color: rgba(212, 165, 55, 0.15);
    color: var(--pop-gold);
}

.document-type-badge.docx {
    background-color: rgba(0, 180, 204, 0.15);
    color: var(--pop-teal);
}

.document-meta {
    flex: 1;
}

.document-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 3px;
}

.document-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.document-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.document-action-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d0c7bb;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-decoration: none;
}

.document-action-btn:hover {
    border-color: var(--navy);
    background-color: #f5f3f0;
}

.document-action-btn.download {
    background-color: var(--pop-teal);
    color: #ffffff;
    border-color: var(--pop-teal);
}

.document-action-btn.download:hover {
    background-color: #0099aa;
    border-color: #0099aa;
}

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

/* ============================================================================
   5. VALIDATION CHECKLIST
   ============================================================================ */

.validation-checklist {
    margin: 20px 0;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    padding: 16px;
    background-color: #ffffff;
}

.validation-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 14px;
}

.validation-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0d5c7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.validation-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--pop-green), var(--pop-teal));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.validation-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background-color: #fafaf8;
    transition: all 0.2s ease;
}

.validation-item.complete {
    background-color: rgba(110, 207, 110, 0.08);
}

.validation-item.warning {
    background-color: rgba(212, 165, 55, 0.08);
}

.validation-item.error {
    background-color: rgba(224, 122, 95, 0.08);
}

.validation-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0d5c7;
    flex-shrink: 0;
}

.validation-item.complete .validation-status-dot {
    background-color: var(--pop-green);
    box-shadow: 0 0 0 3px rgba(110, 207, 110, 0.2);
}

.validation-item.warning .validation-status-dot {
    background-color: var(--pop-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.2);
}

.validation-item.error .validation-status-dot {
    background-color: var(--pop-coral);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2);
}

.validation-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--navy);
    flex: 1;
}

.validation-item.warning .validation-text {
    color: #a68a2f;
}

.validation-item.error .validation-text {
    color: #c65d3b;
}

.validation-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--pop-green);
    cursor: pointer;
    flex-shrink: 0;
}

.validation-issues {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e0d5c7;
}

.validation-issues-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pop-coral);
    margin-bottom: 8px;
    cursor: pointer;
}

.validation-issues-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.validation-issues-content.expanded {
    max-height: 400px;
}

.validation-issue-item {
    padding: 8px;
    background-color: rgba(224, 122, 95, 0.08);
    border-left: 3px solid var(--pop-coral);
    margin-bottom: 6px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
}

/* ============================================================================
   6. SURVEY/ENGAGEMENT TOOLS
   ============================================================================ */

.survey-section {
    margin: 20px 0;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
}

.survey-header {
    padding: 14px 16px;
    background-color: #f5f3f0;
    border-bottom: 1px solid #e0d5c7;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.survey-content {
    padding: 16px;
}

.survey-question {
    margin-bottom: 18px;
}

.survey-question:last-child {
    margin-bottom: 0;
}

.survey-question-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.survey-question-required {
    color: var(--pop-coral);
    margin-left: 4px;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0d5c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.survey-option:hover {
    background-color: #fafaf8;
    border-color: var(--pop-teal);
}

.survey-option input[type="radio"],
.survey-option input[type="checkbox"] {
    accent-color: var(--pop-teal);
    cursor: pointer;
    flex-shrink: 0;
}

.survey-option-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--navy);
    cursor: pointer;
    flex: 1;
}

.response-chart {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #e0d5c7;
    border-radius: 8px;
    background-color: #fafaf8;
}

.response-chart-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 12px;
}

.response-bar {
    margin-bottom: 10px;
}

.response-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.response-bar-percentage {
    font-size: 0.8rem;
    color: #888;
}

.response-bar-track {
    width: 100%;
    height: 6px;
    background-color: #e0d5c7;
    border-radius: 3px;
    overflow: hidden;
}

.response-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--pop-teal), var(--pop-green));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.focus-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.focus-group-card {
    padding: 12px;
    border: 1px solid #e0d5c7;
    border-radius: 8px;
    background-color: #fafaf8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    color: var(--navy);
}

.focus-group-card:hover {
    border-color: var(--pop-purple);
    background-color: rgba(107, 76, 154, 0.08);
}

.focus-group-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.focus-group-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
}

/* ============================================================================
   7. FEASIBILITY SCORE DASHBOARD
   ============================================================================ */

.feasibility-dashboard {
    margin: 20px 0;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 76, 154, 0.06), rgba(0, 180, 204, 0.06));
}

.feasibility-score-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.feasibility-gauge {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.feasibility-gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.feasibility-gauge-background {
    fill: none;
    stroke: #e0d5c7;
    stroke-width: 8;
}

.feasibility-gauge-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
    animation: gaugeReveal 0.8s ease;
}

@keyframes gaugeReveal {
    from {
        stroke-dashoffset: 339;
    }
    to {
        stroke-dashoffset: var(--dashoffset, 0);
    }
}

.feasibility-score-grade {
    text-align: center;
}

.feasibility-grade-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

.feasibility-grade-value {
    font-family: 'Source Serif Pro', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.feasibility-grade-pct {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #888;
}

.feasibility-breakdown {
    margin-top: 18px;
}

.feasibility-breakdown-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 12px;
}

.feasibility-category {
    margin-bottom: 12px;
}

.feasibility-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.feasibility-category-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

.feasibility-category-score {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
}

.feasibility-category-bar {
    width: 100%;
    height: 8px;
    background-color: #e0d5c7;
    border-radius: 4px;
    overflow: hidden;
}

.feasibility-category-bar.strong {
    background-color: rgba(110, 207, 110, 0.3);
}

.feasibility-category-bar.warning {
    background-color: rgba(212, 165, 55, 0.3);
}

.feasibility-category-bar.critical {
    background-color: rgba(224, 122, 95, 0.3);
}

.feasibility-category-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    animation: scoreReveal 0.6s ease backwards;
}

@keyframes scoreReveal {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: var(--score-width, 100%);
        opacity: 1;
    }
}

.feasibility-category-fill.strong {
    background-color: var(--pop-green);
}

.feasibility-category-fill.warning {
    background-color: var(--pop-gold);
}

.feasibility-category-fill.critical {
    background-color: var(--pop-coral);
}

/* ============================================================================
   8. TIMELINE/CALENDAR COMPONENTS
   ============================================================================ */

.timeline-wrapper {
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    background-color: #ffffff;
}

.timeline {
    display: flex;
    gap: 0;
    padding: 20px;
    min-width: min-content;
}

.timeline-year-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 30px;
}

.timeline-year-header {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0d5c7;
}

.timeline-phase {
    position: relative;
    padding: 12px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 180, 204, 0.1), rgba(107, 76, 154, 0.1));
    border: 1px solid #e0d5c7;
    min-width: 140px;
    cursor: grab;
    transition: all 0.2s ease;
}

.timeline-phase:hover {
    border-color: var(--pop-teal);
    box-shadow: 0 4px 12px rgba(0, 180, 204, 0.15);
}

.timeline-phase-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.timeline-phase-duration {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
}

.timeline-milestone {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.timeline-milestone-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--pop-green);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--pop-green);
    position: absolute;
    left: -7px;
}

.timeline-milestone-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--navy);
    margin-left: 12px;
}

.timeline-connector {
    position: relative;
    height: 2px;
    background-color: #e0d5c7;
    margin: 12px 0;
    min-width: 20px;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #e0d5c7;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* ============================================================================
   9. SIDEBAR TOOLKIT SECTION (Already covered in sections 2 & 9)
   ============================================================================ */

.sidebar-divider {
    height: 1px;
    background-color: #e0d5c7;
    margin: 16px 20px;
}

/* ============================================================================
   10. RESPONSIVE CONSIDERATIONS
   ============================================================================ */

@media (max-width: 1024px) {
    .document-cards-grid {
        grid-template-columns: 1fr;
    }

    .feasibility-score-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-phase {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: absolute;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 100;
        height: 100%;
        border-right: 1px solid #e0d5c7;
    }

    .sidebar.open {
        left: 0;
    }

    .toolkit-badges-container {
        max-height: 200px;
    }

    .substep-container {
        margin: 12px 0;
    }

    .substep-type-badge {
        min-width: 70px;
        font-size: 0.6rem;
    }

    .document-cards-grid {
        grid-template-columns: 1fr;
    }

    .document-meta {
        flex: 1;
    }

    .document-card-actions {
        flex-direction: column;
    }

    .focus-group-cards {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .timeline {
        padding: 14px;
    }

    .timeline-year-block {
        margin-right: 20px;
    }

    .timeline-phase {
        min-width: 100px;
        padding: 10px 12px;
    }

    .feasibility-gauge {
        width: 100px;
        height: 100px;
    }

    .feasibility-grade-value {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .prompt-button-group {
        flex-direction: column;
    }

    .prompt-action-buttons {
        flex-direction: column;
    }

    .prompt-action-btn {
        width: 100%;
    }

    .substep-title {
        font-size: 0.85rem;
    }

    .document-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolkit-badge {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .timeline-phase {
        min-width: 90px;
        font-size: 0.8rem;
    }

    .survey-section {
        border-radius: 8px;
    }
}

/* ============================================================================
   TOOLKIT SUBSTEP SYSTEM (HTML class names)
   Maps the .toolkit-substep-* classes used in HTML to proper styles
   ============================================================================ */

.toolkit-substep {
    margin: 16px 0;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

.toolkit-substep:hover {
    border-color: #d4ccc0;
    box-shadow: 0 2px 8px rgba(34, 51, 59, 0.08);
}

.toolkit-substep[data-type="engagement"] {
    border-left: 3px solid var(--pop-teal, #00B4CC);
}

.toolkit-substep[data-type="ai"] {
    border-left: 3px solid var(--pop-purple, #6B4C9A);
}

.toolkit-substep[data-type="validation"] {
    border-left: 3px solid var(--pop-green, #6ECF6E);
}

.toolkit-substep[data-type="resources"] {
    border-left: 3px solid var(--pop-gold, #D4A537);
}

.toolkit-substep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background-color: #fafaf8;
    transition: background-color 0.2s ease;
}

.toolkit-substep-header:hover {
    background-color: #f5f3f0;
}

.toolkit-substep-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toolkit-substep-left h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy, #22333B);
}

.toolkit-substep-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.toolkit-substep-type-badge.engagement {
    background: rgba(0, 180, 204, 0.12);
    color: var(--pop-teal, #00B4CC);
}

.toolkit-substep-type-badge.ai {
    background: rgba(107, 76, 154, 0.12);
    color: var(--pop-purple, #6B4C9A);
}

.toolkit-substep-type-badge.validation {
    background: rgba(110, 207, 110, 0.12);
    color: #3a8a3a;
}

.toolkit-substep-type-badge.resources {
    background: rgba(212, 165, 55, 0.12);
    color: #9a7a1e;
}

.toolkit-chevron {
    transition: transform 0.3s ease;
    color: #999;
    flex-shrink: 0;
}

.toolkit-substep.expanded .toolkit-chevron {
    transform: rotate(180deg);
}

.toolkit-substep-content {
    padding: 18px;
    border-top: 1px solid #eee;
}

.toolkit-substep-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Toolkit Checkbox Group */
.toolkit-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.toolkit-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--navy, #22333B);
    cursor: pointer;
}

/* Toolkit Timeline Note */
.toolkit-timeline-note {
    margin-top: 1rem;
    padding: 10px 14px;
    background: rgba(212, 165, 55, 0.08);
    border-left: 3px solid var(--pop-gold, #D4A537);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

/* Toolkit Survey Builder */
.toolkit-survey-builder,
.toolkit-focus-group {
    padding: 14px;
    background: #fafaf8;
    border-radius: 8px;
    border: 1px solid #eee;
}

.toolkit-survey-builder h4,
.toolkit-focus-group h4 {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: var(--navy, #22333B);
}

.toolkit-survey-builder p,
.toolkit-focus-group p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

/* Document Download Grid */
.doc-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.doc-download-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e0d5c7;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.doc-download-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(34, 51, 59, 0.08);
    transform: translateY(-2px);
}

.doc-download-card h4 {
    margin: 8px 0 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy, #22333B);
}

.doc-download-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 12px;
}

.doc-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-type-badge.pdf {
    background: rgba(224, 122, 95, 0.15);
    color: #c0503a;
}

.doc-type-badge.pptx {
    background: rgba(212, 165, 55, 0.15);
    color: #9a7a1e;
}

.doc-type-badge.docx {
    background: rgba(0, 180, 204, 0.15);
    color: #007a8a;
}

/* Validation Meter (used in toolkit validation sections) */
.validation-checklist {
    margin: 12px 0;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

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

.validation-item.passed {
    color: var(--navy, #22333B);
}

.validation-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
}

.validation-item.passed .validation-dot {
    background: var(--pop-green, #6ECF6E);
}

.validation-meter {
    height: 8px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.validation-meter-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--pop-teal, #00B4CC);
    transition: width 0.8s ease;
}

.validation-meter-fill.status-complete {
    background: var(--pop-green, #6ECF6E);
}

.validation-meter-fill.status-in-progress {
    background: var(--pop-gold, #D4A537);
}

.validation-meter-fill.status-not-started {
    background: var(--pop-coral, #E07A5F);
}

.validation-summary {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* AI Prompt Container */
.ai-prompt-container {
    padding: 14px;
    background: #fafaf8;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ai-prompt-container h4 {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: var(--navy, #22333B);
}

.ai-prompt-container p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.ai-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(107, 76, 154, 0.12);
    color: var(--pop-purple, #6B4C9A);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-model-label {
    font-size: 0.7rem;
    color: #aaa;
    margin-left: 8px;
}

/* Sidebar Toolkit Divider */
.sidebar-toolkit-divider {
    padding: 12px 20px;
    margin-top: 16px;
    border-top: 1px solid rgba(94, 80, 63, 0.15);
}

.sidebar-toolkit-divider span {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brown, #5E503F);
}

/* Responsive adjustments for toolkit */
@media (max-width: 768px) {
    .doc-download-grid {
        grid-template-columns: 1fr;
    }

    .toolkit-substep-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .toolkit-checkbox-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .toolkit-substep-header {
        padding: 12px 14px;
    }

    .toolkit-substep-content {
        padding: 14px;
    }

    .toolkit-substep-left h3 {
        font-size: 0.8rem;
    }
}

/* Stakeholder Engagement Callout Banner */
.engagement-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 1.5rem 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f8f7, #f0faf9);
    border: 2px solid var(--pop-teal, #00B4CC);
    border-radius: 10px;
    border-left-width: 5px;
}

.engagement-callout-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pop-teal, #00B4CC);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
}

.engagement-callout-content {
    flex: 1;
}

.engagement-callout-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy, #22333B);
    margin: 0 0 4px 0;
}

.engagement-callout-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--brown, #5E503F);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================================
   ENGAGEMENT PANEL (top of section)
   ============================================================================ */

.engagement-panel {
    margin: 0 0 2rem 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #e8f8f7 0%, #f0faf9 100%);
    border: 2px solid var(--pop-teal, #00B4CC);
    border-radius: 12px;
    border-left-width: 5px;
}

.engagement-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.engagement-panel-header .engagement-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pop-teal, #00B4CC);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.engagement-panel-header h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy, #22333B);
    margin: 0;
}

.engagement-panel p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--brown, #5E503F);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.engagement-panel .engagement-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.engagement-panel .engagement-checklist label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--navy, #22333B);
    background: rgba(255,255,255,0.7);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,180,204,0.3);
    cursor: pointer;
    transition: all 0.15s ease;
}

.engagement-panel .engagement-checklist label:hover {
    background: rgba(255,255,255,0.95);
    border-color: var(--pop-teal, #00B4CC);
}

.engagement-panel .engagement-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ============================================================================
   INLINE AI ASSIST
   ============================================================================ */

.ai-inline-assist {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 8px 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f3f0ff 0%, #eef0ff 100%);
    border: 1px solid rgba(108,92,231,0.2);
    border-radius: 10px;
}

.ai-inline-assist .ai-sparkle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C5CE7, #8B7CF7);
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.ai-inline-assist span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--brown, #5E503F);
    flex: 1;
}

.ai-inline-assist .btn-ai-inline {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #6C5CE7, #8B7CF7);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ai-inline-assist .btn-ai-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}

/* ============================================================================
   SECTION GRADER (A-F letter grade)
   ============================================================================ */

.section-grader {
    margin: 2rem 0 1.5rem 0;
    padding: 24px;
    background: #FAFAF8;
    border: 2px solid #E8E2D8;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.section-grader.grade-a { border-color: #6ECF6E; background: linear-gradient(135deg, #f0faf0, #f7fdf7); }
.section-grader.grade-b { border-color: #00B4CC; background: linear-gradient(135deg, #f0fafb, #f5fcfd); }
.section-grader.grade-c { border-color: #D4A537; background: linear-gradient(135deg, #fdf8ee, #fefaf3); }
.section-grader.grade-d { border-color: #E07A5F; background: linear-gradient(135deg, #fdf3f0, #fef6f3); }
.section-grader.grade-f { border-color: #cc3333; background: linear-gradient(135deg, #fdf0f0, #fef3f3); }

.section-grader-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.section-grade-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #E8E2D8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy, #22333B);
    flex-shrink: 0;
    transition: all 0.5s ease;
    background: white;
}

.section-grade-circle.grade-a { border-color: #6ECF6E; color: #2d8a2d; }
.section-grade-circle.grade-b { border-color: #00B4CC; color: #008fa3; }
.section-grade-circle.grade-c { border-color: #D4A537; color: #9a7620; }
.section-grade-circle.grade-d { border-color: #E07A5F; color: #b85640; }
.section-grade-circle.grade-f { border-color: #cc3333; color: #cc3333; }

.section-grader-info {
    flex: 1;
}

.section-grader-info h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy, #22333B);
    margin: 0 0 4px 0;
}

.section-grader-info p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--brown, #5E503F);
    margin: 0;
    line-height: 1.4;
}

.section-grader-criteria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.grader-criterion {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--brown, #5E503F);
    padding: 6px 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
}

.grader-criterion .criterion-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ddd;
    transition: background 0.3s ease;
}

.grader-criterion .criterion-dot.pass { background: #6ECF6E; }
.grader-criterion .criterion-dot.fail { background: #E07A5F; }

.grader-btn {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--navy, #22333B);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grader-btn:hover {
    background: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,51,59,0.2);
}

.grader-tips {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border-left: 3px solid var(--pop-gold, #D4A537);
    display: none;
}

.grader-tips h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy, #22333B);
    margin: 0 0 6px 0;
}

.grader-tips ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.grader-tips ul li {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--brown, #5E503F);
    margin-bottom: 4px;
    line-height: 1.4;
}

/* ============================================================================
   STANDALONE SECTION REPORT
   ============================================================================ */

.section-report-download {
    margin: 1.5rem 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, #22333B 0%, #2c4350 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-report-download .report-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.section-report-download .report-icon svg {
    color: #EAE0D5;
}

.section-report-download .report-info {
    flex: 1;
}

.section-report-download .report-info h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #EAE0D5;
    margin: 0 0 2px 0;
}

.section-report-download .report-info p {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #C6AC8F;
    margin: 0;
}

.section-report-download .btn-report {
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--pop-teal, #00B4CC);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.section-report-download .btn-report:hover {
    background: #009db3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,180,204,0.3);
}

/* ============================================================================
   DATA UPLOAD SECTION
   ============================================================================ */

.data-upload-section {
    margin: 1rem 0 1.5rem;
}

.data-upload-zone {
    padding: 2.5rem 2rem;
    border: 2px dashed #ccc;
    border-radius: 12px;
    text-align: center;
    background: #fafaf8;
    transition: all 0.2s ease;
    cursor: pointer;
}

.data-upload-zone:hover {
    border-color: var(--pop-teal, #00B4CC);
    background: #f5fafa;
}

.data-upload-zone .upload-icon {
    margin-bottom: 0.75rem;
    color: #C6AC8F;
}

.data-upload-zone p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--brown, #5E503F);
    margin: 0.25rem 0;
}

/* Graded state animation */
.section-grader.graded .section-grade-circle {
    animation: gradePopIn 0.4s ease;
}

@keyframes gradePopIn {
    0% { transform: scale(0.7); opacity: 0.5; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* AI loading state */
.ai-loading {
    padding: 1rem;
    text-align: center;
    color: var(--pop-teal, #00B4CC);
    font-style: italic;
    font-size: 0.9rem;
}
