/**
 * Gap Analyzer CSS
 * Minimal additions to institutional-article.css
 */

/* ==========================================================================
   COLLAPSIBLE SECTIONS
   ========================================================================== */

.inst-collapsible {
    margin-bottom: 16px;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    background: var(--inst-white, #fff);
}

.inst-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
    list-style: none;
}

.inst-collapsible-header::-webkit-details-marker {
    display: none;
}

.inst-collapsible-title {
    font-size: 14px;
}

.inst-collapsible-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.inst-collapsible[open] .inst-collapsible-icon {
    transform: rotate(180deg);
}

.inst-collapsible-body {
    padding: 0 16px 16px;
}

/* ==========================================================================
   TEXTAREA STYLING
   ========================================================================== */

.inst-gap-textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    font-family: var(--inst-font-mono, 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace);
    font-size: 13px;
    line-height: 1.6;
    color: var(--inst-navy-900, #0f172a);
    background: var(--inst-cream-50, #fefdfb);
    border: 1px solid var(--inst-border, rgba(15, 23, 42, 0.1));
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inst-gap-textarea:focus {
    outline: none;
    border-color: var(--inst-navy-600, #475569);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.inst-gap-textarea::placeholder {
    color: var(--inst-navy-400, #94a3b8);
}

/* Smaller textareas in collapsibles */
.inst-collapsible .inst-gap-textarea {
    min-height: 200px;
    background: #fff;
}

/* ==========================================================================
   ANALYZE BUTTON
   ========================================================================== */

.inst-analyze-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--inst-navy-900, #0f172a) 0%, var(--inst-navy-700, #334155) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inst-analyze-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

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

.inst-analyze-btn svg {
    width: 18px;
    height: 18px;
}

.inst-analyze-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ==========================================================================
   PLACEHOLDER TEXT
   ========================================================================== */

.inst-placeholder-text {
    color: var(--inst-gray-400, #9ca3af);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}


/* ==========================================================================
   HIGHLIGHT ANNOTATIONS (Grammarly-style)
   ========================================================================== */

/* Matched - Green highlight */
.inst-highlight-matched {
    background: linear-gradient(120deg, rgba(22, 163, 74, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-bottom: 2px solid #16a34a;
    padding: 1px 2px;
    border-radius: 2px;
    cursor: help;
    transition: background 0.2s ease;
}

.inst-highlight-matched:hover {
    background: linear-gradient(120deg, rgba(22, 163, 74, 0.25) 0%, rgba(22, 163, 74, 0.2) 100%);
}

/* Missing - Red highlight */
.inst-highlight-missing {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-bottom: 2px solid #dc2626;
    padding: 1px 2px;
    border-radius: 2px;
    cursor: help;
    transition: background 0.2s ease;
}

.inst-highlight-missing:hover {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
}

/* Tooltip for highlights */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--inst-navy-900, #0f172a);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   REQUIREMENT LIST ITEMS
   ========================================================================== */

.inst-gap-item {
    padding: 12px;
    background: var(--inst-cream-50, #fefdfb);
    border: 1px solid var(--inst-border, rgba(15, 23, 42, 0.08));
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.inst-gap-item:last-child {
    margin-bottom: 0;
}

.inst-gap-item--missing {
    border-left: 3px solid #dc2626;
    background: rgba(220, 38, 38, 0.03);
}

.inst-gap-item--matched {
    border-left: 3px solid #16a34a;
    background: rgba(22, 163, 74, 0.03);
}

.inst-gap-item__title {
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
    margin-bottom: 4px;
}

.inst-gap-item__text {
    color: var(--inst-navy-600, #475569);
    font-size: 12px;
}

.inst-gap-item__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.inst-gap-item__term {
    display: inline-block;
    padding: 2px 8px;
    background: var(--inst-navy-100, #f1f5f9);
    color: var(--inst-navy-700, #334155);
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.inst-gap-item--missing .inst-gap-item__term {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.inst-gap-item--matched .inst-gap-item__term {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}


/* ==========================================================================
   RECOMMENDATION ITEMS
   ========================================================================== */

.inst-recommendation {
    padding: 12px;
    background: var(--inst-cream-50, #fefdfb);
    border: 1px solid var(--inst-border, rgba(15, 23, 42, 0.08));
    border-radius: 6px;
    margin-bottom: 8px;
}

.inst-recommendation:last-child {
    margin-bottom: 0;
}

.inst-recommendation--critical {
    border-left: 3px solid #dc2626;
    background: rgba(220, 38, 38, 0.03);
}

.inst-recommendation--warning {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.inst-recommendation--success {
    border-left: 3px solid #16a34a;
    background: rgba(22, 163, 74, 0.03);
}

.inst-recommendation--info {
    border-left: 3px solid #2563eb;
    background: rgba(37, 99, 235, 0.03);
}

.inst-recommendation--improvement {
    border-left: 3px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.03);
}

.inst-recommendation__title {
    font-weight: 600;
    font-size: 13px;
    color: var(--inst-navy-900, #0f172a);
    margin-bottom: 4px;
}

.inst-recommendation__desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--inst-navy-600, #475569);
}


/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.inst-chatbox.is-loading .inst-chatbox-send svg {
    animation: inst-spin 1s linear infinite;
}

@keyframes inst-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   ANNOTATED CONTENT STYLING
   ========================================================================== */

[data-content="jd-annotated"],
[data-content="cv-annotated"] {
    font-size: 14px;
    line-height: 1.7;
    color: var(--inst-navy-800, #1e293b);
}

[data-content="jd-annotated"] p,
[data-content="cv-annotated"] p {
    margin-bottom: 12px;
}

[data-content="jd-annotated"] p:last-child,
[data-content="cv-annotated"] p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.inst-gap-empty {
    text-align: center;
    padding: 24px;
    color: var(--inst-navy-400, #94a3b8);
    font-size: 13px;
}

.inst-gap-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}


/* ==========================================================================
   ENHANCED METRICS - Gap Analyzer Specific
   ========================================================================== */

.inst-metrics--gap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.inst-metric--gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inst-metric--gap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.inst-metric--gap .inst-metric-value {
    font-family: var(--inst-font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: var(--inst-navy-900, #0f172a);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.inst-metric--gap .inst-metric-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--inst-gray-500, #64748b);
    margin-bottom: 12px;
}

/* Progress Bar */
.inst-metric-bar {
    width: 100%;
    height: 6px;
    background: var(--inst-gray-200, #e5e7eb);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.inst-metric-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* Color States - Default grey */
.inst-metric-bar-fill {
    background: var(--inst-gray-300, #d1d5db);
}

/* Good - Green (70%+) */
.inst-metric--gap.is-good .inst-metric-value {
    color: #059669;
}

.inst-metric--gap.is-good .inst-metric-bar-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.inst-metric--gap.is-good .inst-metric-status {
    color: #059669;
}

/* Advisory - Orange (50-69%) */
.inst-metric--gap.is-advisory .inst-metric-value {
    color: #d97706;
}

.inst-metric--gap.is-advisory .inst-metric-bar-fill {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
}

.inst-metric--gap.is-advisory .inst-metric-status {
    color: #d97706;
}

/* Needs Improvement - Red (<50%) */
.inst-metric--gap.is-critical .inst-metric-value {
    color: #dc2626;
}

.inst-metric--gap.is-critical .inst-metric-bar-fill {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.inst-metric--gap.is-critical .inst-metric-status {
    color: #dc2626;
}

/* Tips - Blue (for informational metrics) */
.inst-metric--gap.is-info .inst-metric-value {
    color: #2563eb;
}

.inst-metric--gap.is-info .inst-metric-bar-fill {
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.inst-metric--gap.is-info .inst-metric-status {
    color: #2563eb;
}

/* Status Text */
.inst-metric-status {
    font-size: 10px;
    font-weight: 500;
    color: var(--inst-gray-400, #94a3b8);
    text-align: center;
    min-height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .inst-metrics--gap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .inst-metric--gap .inst-metric-value {
        font-size: 28px;
    }

    .inst-metric--gap .inst-metric-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .inst-metrics--gap {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .inst-metric--gap {
        padding: 12px 8px;
    }

    .inst-metric--gap .inst-metric-value {
        font-size: 24px;
    }
}


/* ==========================================================================
   ANALYSIS LOADER - Percentage Progress Indicator
   ========================================================================== */

.inst-analysis-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 250; /* Above chatbox (z-index: 200) */
    border-radius: 12px;
}

.inst-loader-content {
    text-align: center;
    max-width: 320px;
    padding: 32px;
}

/* Spinning Icon */
.inst-loader-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--inst-navy-900, #0f172a);
}

.inst-loader-icon svg {
    width: 100%;
    height: 100%;
}

.inst-loader-spinner {
    transform-origin: center;
    animation: inst-loader-spin 1s linear infinite;
}

@keyframes inst-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Percentage Display */
.inst-loader-percentage {
    font-size: 48px;
    font-weight: 700;
    color: var(--inst-navy-900, #0f172a);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

/* Status Text */
.inst-loader-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-navy-600, #475569);
    margin-bottom: 20px;
    min-height: 20px;
}

/* Progress Bar */
.inst-loader-bar {
    width: 100%;
    height: 8px;
    background: var(--inst-gray-200, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.inst-loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0f172a 0%, #334155 50%, #0f172a 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: inst-loader-shimmer 1.5s ease-in-out infinite;
}

@keyframes inst-loader-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Step List */
.inst-loader-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.inst-loader-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--inst-gray-400, #9ca3af);
    transition: color 0.3s ease;
}

.inst-loader-step-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--inst-gray-200, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.inst-loader-step-icon::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--inst-gray-400, #9ca3af);
    transition: background 0.3s ease;
}

.inst-loader-step-text {
    flex: 1;
}

/* Step States */
.inst-loader-step.is-active {
    color: var(--inst-navy-900, #0f172a);
    font-weight: 500;
}

.inst-loader-step.is-active .inst-loader-step-icon {
    background: var(--inst-navy-900, #0f172a);
    transform: scale(1.1);
    animation: inst-step-pulse 1s ease-in-out infinite;
}

.inst-loader-step.is-active .inst-loader-step-icon::before {
    background: #fff;
}

@keyframes inst-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(15, 23, 42, 0); }
}

.inst-loader-step.is-complete {
    color: #059669;
}

.inst-loader-step.is-complete .inst-loader-step-icon {
    background: #059669;
}

.inst-loader-step.is-complete .inst-loader-step-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    background: transparent;
    border-radius: 0;
    /* Checkmark using borders */
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* Responsive */
@media (max-width: 480px) {
    .inst-loader-content {
        padding: 24px 20px;
    }

    .inst-loader-icon {
        width: 48px;
        height: 48px;
    }

    .inst-loader-percentage {
        font-size: 36px;
    }

    .inst-loader-status {
        font-size: 13px;
    }

    .inst-loader-step {
        font-size: 12px;
    }
}


/* ==========================================================================
   TOOLKIT VIEW
   ========================================================================== */

.inst-toolkit-view {
    padding: 0;
}

/* Toolkit Header */
.inst-toolkit-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.inst-toolkit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.inst-toolkit-badge svg {
    width: 12px;
    height: 12px;
}

.inst-toolkit-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--inst-navy-900, #0f172a);
    margin: 0 0 4px 0;
}

.inst-toolkit-subtitle {
    font-size: 13px;
    color: var(--inst-gray-500, #64748b);
    margin: 0;
}

/* Toolkit Tabs */
.inst-toolkit-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 24px;
    background: var(--inst-gray-50, #f9fafb);
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
    overflow-x: auto;
}

.inst-toolkit-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--inst-gray-500, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.inst-toolkit-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.inst-toolkit-tab:hover {
    background: #fff;
    color: var(--inst-navy-700, #334155);
}

.inst-toolkit-tab.is-active {
    background: #fff;
    border-color: var(--inst-gray-200, #e5e7eb);
    color: var(--inst-navy-900, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Toolkit Panels */
.inst-toolkit-panel {
    display: none;
    padding: 24px;
}

.inst-toolkit-panel.is-active {
    display: block;
}

.inst-toolkit-section {
    margin-bottom: 24px;
}

.inst-toolkit-section:last-child {
    margin-bottom: 0;
}

.inst-toolkit-section-header {
    margin-bottom: 16px;
}

.inst-toolkit-section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
    margin: 0 0 4px 0;
}

.inst-toolkit-section-header p {
    font-size: 12px;
    color: var(--inst-gray-500, #64748b);
    margin: 0;
}

.inst-toolkit-subsection {
    margin-top: 20px;
}

.inst-toolkit-subsection h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-navy-800, #1e293b);
    margin: 0 0 12px 0;
}

/* Toolkit Empty State */
.inst-toolkit-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    color: var(--inst-gray-400, #9ca3af);
}

.inst-toolkit-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.inst-toolkit-empty p {
    font-size: 13px;
    margin: 0;
}

/* Toolkit Section Header Row */
.inst-toolkit-section-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.inst-toolkit-btn--secondary {
    background: #fff;
    border: 1px solid var(--inst-gray-300, #d1d5db);
    color: var(--inst-navy-700, #334155);
}

.inst-toolkit-btn--secondary:hover {
    background: var(--inst-gray-50, #f9fafb);
    border-color: var(--inst-navy-400, #94a3b8);
}

/* CV Score Summary Bar */
.inst-cv-score-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    margin-bottom: 20px;
}

.inst-cv-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.inst-cv-score-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--inst-gray-500, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.inst-cv-score-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.inst-cv-score-value--before {
    color: #dc2626;
}

.inst-cv-score-value--after {
    color: #059669;
}

.inst-cv-score-arrow {
    color: var(--inst-gray-400, #9ca3af);
}

.inst-cv-score-arrow svg {
    width: 24px;
    height: 24px;
}

/* Full CV Preview Document */
.inst-cv-full-preview {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.inst-cv-document {
    padding: 24px;
}

/* CV Section */
.inst-cv-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--inst-gray-100, #f1f5f9);
}

.inst-cv-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

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

.inst-cv-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--inst-navy-900, #0f172a);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.inst-cv-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--inst-navy-600, #475569);
}

.inst-cv-section-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--inst-gray-100, #f1f5f9);
    color: var(--inst-gray-600, #475569);
}

.inst-cv-section-badge--new {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.inst-cv-section-badge--add {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Summary Block */
.inst-cv-summary-block {
    background: var(--inst-cream-50, #fefdfb);
    border-radius: 8px;
    padding: 16px;
}

.inst-cv-summary-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--inst-navy-800, #1e293b);
    margin: 0 0 12px 0;
}

.inst-cv-highlight {
    padding: 2px 6px;
    border-radius: 4px;
}

.inst-cv-highlight--add {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
    font-weight: 600;
}

.inst-cv-summary-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 6px;
    font-size: 12px;
    color: #059669;
}

.inst-cv-summary-tip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Experience Item */
.inst-cv-experience-item {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-cv-experience-item:last-child {
    margin-bottom: 0;
}

.inst-cv-experience-header {
    margin-bottom: 12px;
}

.inst-cv-experience-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
    margin: 0;
}

.inst-cv-experience-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inst-cv-bullet {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--inst-navy-700, #334155);
}

.inst-cv-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--inst-gray-400, #9ca3af);
}

.inst-cv-bullet--improved {
    background: rgba(5, 150, 105, 0.05);
    border-left: 2px solid #059669;
    padding: 8px 12px 8px 16px;
    border-radius: 0 6px 6px 0;
    margin-left: -16px;
    padding-left: 28px;
}

.inst-cv-bullet--improved::before {
    left: 12px;
    color: #059669;
}

.inst-cv-bullet-text {
    display: block;
}

.inst-cv-bullet-add {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
}

.inst-cv-bullet-add svg {
    width: 12px;
    height: 12px;
}

.inst-cv-bullet--suggestion {
    background: rgba(37, 99, 235, 0.05);
    border-left: 2px solid #2563eb;
    padding: 10px 12px 10px 16px;
    border-radius: 0 6px 6px 0;
    margin-left: -16px;
    padding-left: 28px;
    font-style: italic;
}

.inst-cv-bullet--suggestion::before {
    content: '✦';
    left: 12px;
    color: #2563eb;
}

.inst-cv-suggestion-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2563eb;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-right: 8px;
    font-style: normal;
}

/* Skills Grid */
.inst-cv-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inst-cv-skills-group {
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-cv-skills-group--add {
    background: rgba(220, 38, 38, 0.03);
}

.inst-cv-skills-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--inst-navy-800, #1e293b);
    margin: 0 0 12px 0;
}

.inst-cv-skills-group-title svg {
    width: 16px;
    height: 16px;
}

.inst-cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inst-cv-skill {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.inst-cv-skill--matched {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.inst-cv-skill--add {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Education List */
.inst-cv-education-list {
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-cv-education-item {
    font-size: 13px;
    color: var(--inst-navy-700, #334155);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-cv-education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.inst-cv-education-item--placeholder {
    color: var(--inst-gray-400, #9ca3af);
}

.inst-cv-education-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--inst-navy-800, #1e293b);
    margin: 16px 0 8px 0;
    padding-top: 12px;
    border-top: 1px solid var(--inst-gray-200, #e5e7eb);
}

/* Achievements List */
.inst-cv-achievements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inst-cv-achievement {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
    margin-bottom: 8px;
}

.inst-cv-achievement:last-child {
    margin-bottom: 0;
}

.inst-cv-achievement-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
}

.inst-cv-achievement-desc {
    font-size: 12px;
    color: var(--inst-gray-600, #475569);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .inst-toolkit-section-header-row {
        flex-direction: column;
        gap: 12px;
    }

    .inst-cv-score-summary {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .inst-cv-score-arrow {
        transform: rotate(90deg);
    }

    .inst-cv-skills-grid {
        grid-template-columns: 1fr;
    }
}

/* CV Comparison */
.inst-cv-comparison {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 20px;
}

.inst-cv-card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
}

.inst-cv-card--before {
    border-color: rgba(220, 38, 38, 0.2);
}

.inst-cv-card--after {
    border-color: rgba(5, 150, 105, 0.2);
}

.inst-cv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--inst-gray-100, #f1f5f9);
}

.inst-cv-card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.inst-cv-card-badge--before {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.inst-cv-card-badge--after {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.inst-cv-card-score {
    font-size: 12px;
    font-weight: 600;
    color: var(--inst-gray-600, #475569);
}

.inst-cv-card-preview {
    padding: 16px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    color: var(--inst-gray-700, #374151);
}

.inst-cv-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--inst-gray-400, #9ca3af);
    text-align: center;
}

.inst-cv-placeholder svg {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.inst-cv-placeholder span {
    font-size: 12px;
}

.inst-cv-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    color: var(--inst-gray-400, #9ca3af);
}

.inst-cv-arrow svg {
    width: 24px;
    height: 24px;
}

/* CV Preview Content */
.inst-cv-preview-content {
    font-family: var(--inst-font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
}

.inst-cv-preview-content .cv-section {
    margin-bottom: 14px;
}

.inst-cv-preview-content .cv-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--inst-navy-800, #1e293b);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-cv-preview-content .cv-item {
    margin-bottom: 8px;
}

.inst-cv-preview-content .cv-highlight {
    background: rgba(5, 150, 105, 0.1);
    border-left: 2px solid #059669;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
}

.inst-cv-preview-content .cv-added {
    color: #059669;
    font-weight: 500;
}

/* Toolkit Improvements List */
.inst-toolkit-improvements {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-improvement-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.inst-improvement-item:hover {
    border-color: var(--inst-gray-300, #d1d5db);
}

.inst-improvement-item.is-applied {
    background: rgba(5, 150, 105, 0.03);
    border-color: rgba(5, 150, 105, 0.2);
}

.inst-improvement-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-improvement-icon--section {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.inst-improvement-icon--add {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.inst-improvement-icon--change {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.inst-improvement-icon svg {
    width: 16px;
    height: 16px;
}

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

.inst-improvement-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
    margin-bottom: 4px;
}

.inst-improvement-desc {
    font-size: 12px;
    color: var(--inst-gray-600, #475569);
    line-height: 1.5;
}

.inst-improvement-suggestion {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 6px;
    font-size: 12px;
    color: var(--inst-gray-700, #374151);
}

.inst-improvement-suggestion strong {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--inst-gray-500, #64748b);
    margin-bottom: 4px;
}

.inst-improvement-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.inst-improvement-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--inst-gray-300, #d1d5db);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--inst-gray-600, #475569);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-improvement-btn:hover {
    background: var(--inst-gray-50, #f9fafb);
    border-color: var(--inst-gray-400, #9ca3af);
}

.inst-improvement-btn svg {
    width: 12px;
    height: 12px;
}

/* Cover Letter Card */
.inst-cover-letter-card {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
}

.inst-cover-letter-preview {
    padding: 20px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--inst-gray-700, #374151);
    white-space: pre-wrap;
}

.inst-cover-letter-actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: var(--inst-gray-50, #f9fafb);
    border-top: 1px solid var(--inst-gray-200, #e5e7eb);
}

/* Toolkit Buttons */
.inst-toolkit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--inst-gray-300, #d1d5db);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--inst-gray-700, #374151);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-toolkit-btn:hover {
    background: var(--inst-gray-50, #f9fafb);
}

.inst-toolkit-btn svg {
    width: 16px;
    height: 16px;
}

.inst-toolkit-btn--primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: transparent;
    color: #fff;
}

.inst-toolkit-btn--primary:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Cover Points */
.inst-cover-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inst-cover-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-cover-point-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inst-navy-900, #0f172a);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-cover-point-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--inst-gray-700, #374151);
}

/* Keyword Stats */
.inst-keyword-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.inst-keyword-stat {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 10px;
}

.inst-keyword-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--inst-navy-900, #0f172a);
    line-height: 1;
    margin-bottom: 4px;
}

.inst-keyword-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--inst-gray-500, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Keyword List */
.inst-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-keyword-tag:hover {
    border-color: var(--inst-gray-400, #9ca3af);
}

.inst-keyword-tag--missing {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.inst-keyword-tag--missing:hover {
    background: rgba(220, 38, 38, 0.1);
}

.inst-keyword-tag--matched {
    background: rgba(5, 150, 105, 0.05);
    border-color: rgba(5, 150, 105, 0.2);
    color: #059669;
}

.inst-keyword-tag--matched:hover {
    background: rgba(5, 150, 105, 0.1);
}

.inst-keyword-tag-copy {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.inst-keyword-tag:hover .inst-keyword-tag-copy {
    opacity: 0.7;
}

/* Interview Questions */
.inst-interview-questions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-interview-item {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
}

.inst-interview-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.inst-interview-question:hover {
    background: var(--inst-gray-50, #f9fafb);
}

.inst-interview-q-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.inst-interview-q-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--inst-navy-900, #0f172a);
    line-height: 1.4;
}

.inst-interview-toggle {
    width: 20px;
    height: 20px;
    color: var(--inst-gray-400, #9ca3af);
    transition: transform 0.2s ease;
}

.inst-interview-item.is-open .inst-interview-toggle {
    transform: rotate(180deg);
}

.inst-interview-answer {
    display: none;
    padding: 0 16px 16px;
    padding-left: 52px;
}

.inst-interview-item.is-open .inst-interview-answer {
    display: block;
}

.inst-interview-answer-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    margin-bottom: 6px;
}

.inst-interview-answer-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--inst-gray-600, #475569);
}

/* Responsive */
@media (max-width: 768px) {
    .inst-toolkit-tabs {
        padding: 10px 16px;
    }

    .inst-toolkit-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .inst-toolkit-tab span {
        display: none;
    }

    .inst-toolkit-panel {
        padding: 16px;
    }

    .inst-cv-comparison {
        flex-direction: column;
    }

    .inst-cv-arrow {
        transform: rotate(90deg);
        width: 100%;
        height: 30px;
    }

    .inst-keyword-stats {
        flex-direction: column;
        gap: 8px;
    }

    .inst-keyword-stat {
        padding: 12px;
    }

    .inst-keyword-stat-value {
        font-size: 22px;
    }
}


/* ==========================================================================
   GAP ANALYZER - SIDEBAR BUTTON LABELS & TOOLTIPS
   ========================================================================== */

/* Ensure sidebar tooltips are visible and styled */
[data-component="gap-analyzer"] .inst-sidebar-btn {
    position: relative;
}

[data-component="gap-analyzer"] .inst-sidebar-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background: var(--inst-navy-900, #0f172a);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 300;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Arrow for tooltip */
[data-component="gap-analyzer"] .inst-sidebar-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--inst-navy-900, #0f172a);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 300;
}

[data-component="gap-analyzer"] .inst-sidebar-btn:hover[data-tooltip]::after,
[data-component="gap-analyzer"] .inst-sidebar-btn:hover[data-tooltip]::before {
    opacity: 1;
    visibility: visible;
}

/* Add visible labels below icons for clarity */
[data-component="gap-analyzer"] .inst-sidebar-actions {
    gap: 16px;
}

[data-component="gap-analyzer"] .inst-sidebar-btn {
    flex-direction: column;
    height: auto;
    padding: 8px 4px;
    gap: 4px;
}

[data-component="gap-analyzer"] .inst-sidebar-btn::after {
    content: attr(data-tooltip);
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: inherit;
    opacity: 0.7;
    position: static !important;
    transform: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    visibility: visible !important;
    border: none !important;
}

[data-component="gap-analyzer"] .inst-sidebar-btn:hover::after {
    opacity: 1;
}

/* Hide the tooltip arrow since we're using inline labels */
[data-component="gap-analyzer"] .inst-sidebar-btn::before {
    display: none !important;
}


/* ==========================================================================
   GAP ANALYZER - CHARTS PANEL & REPORT VIEW WIDTH
   ========================================================================== */

/* Make the charts panel take full available width */
[data-component="gap-analyzer"] .inst-charts-panel {
    flex: 1 1 45%;
    min-width: 400px;
    max-width: none; /* Remove max-width constraint */
}

/* Remove inner max-width constraint for report content */
[data-component="gap-analyzer"] .inst-charts-inner {
    max-width: none;
    width: 100%;
}

/* Report view fills available space */
[data-component="gap-analyzer"] .inst-panel-view.inst-report-view,
[data-component="gap-analyzer"] .inst-panel-view.inst-toolkit-view {
    width: 100%;
}

/* Metrics grid adjusts to available width */
[data-component="gap-analyzer"] .inst-metrics--gap {
    max-width: 100%;
}

/* Chart cards take full width */
[data-component="gap-analyzer"] .inst-chart-card {
    width: 100%;
}

/* Responsive: smaller screens */
@media (max-width: 1200px) {
    [data-component="gap-analyzer"] .inst-charts-panel {
        min-width: 360px;
    }
}

@media (max-width: 992px) {
    [data-component="gap-analyzer"] .inst-charts-panel {
        min-width: 320px;
        flex: 1 1 100%;
    }
}


/* ==========================================================================
   ENHANCED EXPERIENCE SECTION
   ========================================================================== */

/* Experience Summary */
.inst-exp-summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.inst-exp-summary-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
}

.inst-exp-summary-icon svg {
    width: 18px;
    height: 18px;
}

.inst-exp-summary p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--inst-navy-800, #1e293b);
}

/* Analyzed Experience Item */
.inst-cv-experience-item--analyzed {
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.inst-cv-experience-item--analyzed .inst-cv-experience-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
    margin-bottom: 0;
}

.inst-cv-experience-header-left {
    flex: 1;
}

.inst-cv-experience-company {
    display: block;
    font-size: 12px;
    color: var(--inst-gray-500, #64748b);
    margin-top: 4px;
}

.inst-cv-experience-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--inst-gray-100, #f1f5f9);
}

.inst-cv-experience-score-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.inst-cv-experience-score-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--inst-gray-500, #64748b);
    margin-top: 2px;
}

.inst-cv-experience-score--high {
    background: rgba(5, 150, 105, 0.1);
}
.inst-cv-experience-score--high .inst-cv-experience-score-value {
    color: #059669;
}

.inst-cv-experience-score--medium {
    background: rgba(217, 119, 6, 0.1);
}
.inst-cv-experience-score--medium .inst-cv-experience-score-value {
    color: #d97706;
}

.inst-cv-experience-score--low {
    background: rgba(220, 38, 38, 0.1);
}
.inst-cv-experience-score--low .inst-cv-experience-score-value {
    color: #dc2626;
}

/* Bullet Improvements */
.inst-exp-bullet-improvements {
    padding: 16px;
}

.inst-exp-bullet-comparison {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.inst-exp-bullet-before,
.inst-exp-bullet-after {
    padding: 12px 14px;
}

.inst-exp-bullet-before {
    background: rgba(220, 38, 38, 0.03);
    border-bottom: 1px dashed var(--inst-gray-200, #e5e7eb);
}

.inst-exp-bullet-after {
    background: rgba(5, 150, 105, 0.03);
}

.inst-exp-bullet-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.inst-exp-bullet-before .inst-exp-bullet-label {
    color: #dc2626;
}

.inst-exp-bullet-after .inst-exp-bullet-label {
    color: #059669;
}

.inst-exp-bullet-label svg {
    width: 12px;
    height: 12px;
}

.inst-exp-bullet-before p,
.inst-exp-bullet-after p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--inst-navy-800, #1e293b);
}

.inst-exp-keywords-added {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
}

.inst-exp-keywords-added > span {
    font-size: 10px;
    color: var(--inst-gray-500, #64748b);
}

.inst-exp-keyword-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.inst-exp-bullet-reason {
    padding: 10px 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-top: 1px solid var(--inst-gray-200, #e5e7eb);
    font-size: 12px;
    color: var(--inst-gray-600, #475569);
}

/* Missing Achievements & Quantify */
.inst-exp-missing-achievements,
.inst-exp-quantify {
    padding: 14px 16px;
    margin: 0 16px 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-exp-missing-achievements h5,
.inst-exp-quantify h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--inst-navy-800, #1e293b);
    margin: 0 0 10px 0;
}

.inst-exp-missing-achievements h5 svg,
.inst-exp-quantify h5 svg {
    width: 14px;
    height: 14px;
    color: #059669;
}

.inst-exp-missing-achievements ul,
.inst-exp-quantify ul {
    margin: 0;
    padding-left: 20px;
}

.inst-exp-missing-achievements li,
.inst-exp-quantify li {
    font-size: 12px;
    color: var(--inst-gray-700, #334155);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Experience Section Headers */
.inst-exp-section {
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 12px;
}

.inst-exp-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--inst-navy-900, #0f172a);
    margin: 0 0 16px 0;
}

.inst-exp-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--inst-navy-600, #475569);
}

/* Action Verb Upgrades */
.inst-exp-verb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-exp-verb-item {
    padding: 12px 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-exp-verb-change {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.inst-exp-verb-weak {
    padding: 4px 10px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: line-through;
}

.inst-exp-verb-change svg {
    width: 16px;
    height: 16px;
    color: var(--inst-gray-400, #9ca3af);
}

.inst-exp-verb-strong {
    padding: 4px 10px;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.inst-exp-verb-example {
    margin: 0;
    font-size: 12px;
    color: var(--inst-gray-600, #475569);
    font-style: italic;
    line-height: 1.5;
}

/* Achievement Reframes */
.inst-exp-reframe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-exp-reframe-item {
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.inst-exp-reframe-before,
.inst-exp-reframe-after {
    padding: 12px 14px;
}

.inst-exp-reframe-before {
    background: rgba(220, 38, 38, 0.03);
    border-bottom: 1px dashed var(--inst-gray-200, #e5e7eb);
}

.inst-exp-reframe-after {
    background: rgba(5, 150, 105, 0.03);
}

.inst-exp-reframe-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.inst-exp-reframe-before .inst-exp-reframe-label {
    color: #dc2626;
}

.inst-exp-reframe-after .inst-exp-reframe-label {
    color: #059669;
}

.inst-exp-reframe-before p,
.inst-exp-reframe-after p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--inst-navy-800, #1e293b);
}

/* Keyword Integration */
.inst-exp-keyword-integration {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-exp-keyword-item {
    padding: 12px 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-exp-keyword-name {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 6px;
}

.inst-exp-keyword-where {
    display: block;
    font-size: 11px;
    color: var(--inst-gray-500, #64748b);
    margin-bottom: 6px;
}

.inst-exp-keyword-example {
    margin: 0;
    font-size: 12px;
    color: var(--inst-gray-700, #334155);
    font-style: italic;
    line-height: 1.5;
    padding: 8px 10px;
    background: rgba(5, 150, 105, 0.05);
    border-left: 2px solid #059669;
    border-radius: 0 4px 4px 0;
}

/* Priority Fixes */
.inst-exp-priority-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-exp-priority-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
    border-left: 3px solid var(--inst-gray-300, #d1d5db);
}

.inst-exp-priority-item--high {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.03);
}

.inst-exp-priority-item--medium {
    border-left-color: #d97706;
    background: rgba(217, 119, 6, 0.03);
}

.inst-exp-priority-item--low {
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.03);
}

.inst-exp-priority-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inst-navy-900, #0f172a);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-exp-priority-content {
    flex: 1;
}

.inst-exp-priority-content strong {
    display: block;
    font-size: 13px;
    color: var(--inst-navy-900, #0f172a);
    margin-bottom: 8px;
}

.inst-exp-priority-current,
.inst-exp-priority-improved {
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0;
}

.inst-exp-priority-current {
    color: var(--inst-gray-600, #475569);
}

.inst-exp-priority-improved {
    color: #059669;
}

.inst-exp-priority-align {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 10px;
    font-weight: 500;
    border-radius: 4px;
}

/* Empty State */
.inst-exp-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--inst-gray-400, #9ca3af);
}

.inst-exp-empty p {
    margin: 0;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .inst-exp-summary {
        flex-direction: column;
        text-align: center;
    }

    .inst-cv-experience-item--analyzed .inst-cv-experience-header {
        flex-direction: column;
        gap: 12px;
    }

    .inst-cv-experience-score {
        align-self: flex-start;
    }

    .inst-exp-verb-change {
        flex-wrap: wrap;
    }
}


/* ==========================================================================
   ENHANCED INTERVIEW PREP SECTION
   ========================================================================== */

/* Interview Item with number */
.inst-interview-item {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.inst-interview-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.inst-interview-item.is-open {
    border-color: var(--inst-navy-300, #94a3b8);
}

.inst-interview-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.inst-interview-question:hover {
    background: var(--inst-gray-50, #f9fafb);
}

.inst-interview-q-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inst-navy-900, #0f172a);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-interview-q-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inst-interview-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    width: fit-content;
}

.inst-interview-q-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-navy-900, #0f172a);
    line-height: 1.5;
}

.inst-interview-why {
    font-size: 11px;
    color: var(--inst-gray-500, #64748b);
    font-style: italic;
}

.inst-interview-toggle {
    width: 20px;
    height: 20px;
    color: var(--inst-gray-400, #9ca3af);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.inst-interview-item.is-open .inst-interview-toggle {
    transform: rotate(180deg);
}

/* Interview Answer */
.inst-interview-answer {
    display: none;
    padding: 0 16px 16px 56px; /* Align with question text */
    border-top: 1px solid var(--inst-gray-100, #f1f5f9);
}

.inst-interview-item.is-open .inst-interview-answer {
    display: block;
}

.inst-interview-section {
    margin-top: 16px;
    padding: 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
}

.inst-interview-section:first-child {
    margin-top: 16px;
}

.inst-interview-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--inst-navy-700, #334155);
    margin-bottom: 10px;
}

.inst-interview-section-header svg {
    width: 14px;
    height: 14px;
}

.inst-interview-section-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--inst-navy-800, #1e293b);
}

/* Example Answer Section */
.inst-interview-section--example {
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.15);
    position: relative;
}

.inst-interview-section--example .inst-interview-section-header {
    color: #059669;
}

.inst-interview-example-text {
    font-style: italic;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #059669;
}

.inst-interview-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.inst-interview-copy-btn:hover {
    background: #047857;
}

.inst-interview-copy-btn svg {
    width: 14px;
    height: 14px;
}

/* Pitfalls Section */
.inst-interview-section--pitfalls {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.inst-interview-section--pitfalls .inst-interview-section-header {
    color: #dc2626;
}

.inst-interview-pitfalls-text {
    color: #991b1b;
}

/* Follow-ups Section */
.inst-interview-section--followups {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.inst-interview-section--followups .inst-interview-section-header {
    color: #2563eb;
}

.inst-interview-followups-list {
    margin: 0;
    padding-left: 18px;
}

.inst-interview-followups-list li {
    font-size: 12px;
    color: var(--inst-navy-700, #334155);
    margin-bottom: 6px;
    line-height: 1.5;
}

.inst-interview-followups-list li:last-child {
    margin-bottom: 0;
}

/* Responsive Interview */
@media (max-width: 768px) {
    .inst-interview-answer {
        padding-left: 16px;
    }

    .inst-interview-q-num {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}


/* ==========================================================================
   VISUAL STATUS INDICATOR
   ========================================================================== */

.inst-analysis-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--inst-gray-100, #f1f5f9);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--inst-navy-700, #334155);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.inst-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.inst-status-icon svg {
    width: 18px;
    height: 18px;
}

.inst-status-label {
    line-height: 1.3;
}

.inst-status-label strong {
    font-weight: 600;
}

.inst-status-details {
    font-size: 12px;
    color: var(--inst-gray-500, #64748b);
    margin-left: 4px;
}

/* Waiting State - Gray/Neutral */
.inst-analysis-status[data-status="waiting"] {
    background: var(--inst-gray-100, #f1f5f9);
    color: var(--inst-gray-600, #475569);
}

.inst-analysis-status[data-status="waiting"] .inst-status-icon {
    color: var(--inst-gray-400, #9ca3af);
}

/* Analyzing State - Blue with spinning animation */
.inst-analysis-status[data-status="analyzing"] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.inst-analysis-status[data-status="analyzing"] .inst-status-icon {
    color: #2563eb;
}

.inst-status-spin {
    animation: inst-status-spin 1s linear infinite;
}

@keyframes inst-status-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success State - Green */
.inst-analysis-status[data-status="success"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.inst-analysis-status[data-status="success"] .inst-status-icon {
    color: #059669;
}

/* Error State - Red */
.inst-analysis-status[data-status="error"] {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.inst-analysis-status[data-status="error"] .inst-status-icon {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .inst-analysis-status {
        font-size: 12px;
        padding: 6px 12px;
        gap: 8px;
    }

    .inst-status-icon {
        width: 16px;
        height: 16px;
    }

    .inst-status-icon svg {
        width: 14px;
        height: 14px;
    }

    .inst-status-details {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}


/* ==========================================================================
   ENHANCED COVER LETTER WITH HIGHLIGHTS
   ========================================================================== */

/* Cover Letter Content */
.inst-cover-letter-content {
    font-family: var(--inst-font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 14px;
    line-height: 1.7;
    color: var(--inst-navy-800, #1e293b);
}

.inst-cl-date {
    color: var(--inst-gray-500, #64748b);
    margin-bottom: 20px;
}

.inst-cl-salutation {
    margin-bottom: 16px;
    font-weight: 500;
}

.inst-cl-paragraph {
    margin: 14px 0;
}

.inst-cl-list {
    margin: 12px 0 12px 20px;
    padding: 0;
}

.inst-cl-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.inst-cl-closing {
    margin-top: 24px;
}

.inst-cl-placeholder {
    color: #dc2626;
    font-style: italic;
    font-weight: 500;
}

/* Cover Letter Highlights */
.inst-cl-highlight {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.inst-cl-highlight--role {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

.inst-cl-highlight--company {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9d174d;
}

.inst-cl-highlight--strength {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.inst-cl-highlight--keyword {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.inst-cl-highlight--add {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 600;
}

/* Cover Letter Legend */
.inst-cl-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 20px;
    background: var(--inst-gray-50, #f9fafb);
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    font-size: 12px;
}

.inst-cl-legend-title {
    font-weight: 600;
    color: var(--inst-navy-700, #334155);
}

.inst-cl-legend-item {
    display: inline-flex;
    align-items: center;
}

.inst-cl-legend .inst-cl-highlight {
    font-size: 11px;
    padding: 2px 8px;
}

/* Enhanced Cover Points */
.inst-cover-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inst-cover-point:hover {
    border-color: var(--inst-gray-300, #d1d5db);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inst-cover-point:last-child {
    margin-bottom: 0;
}

.inst-cover-point-num {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inst-navy-900, #0f172a);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-cover-point-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inst-cover-point-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    width: fit-content;
}

.inst-cover-point-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--inst-navy-800, #1e293b);
}

.inst-cover-point-detail {
    font-size: 12px;
    color: var(--inst-gray-600, #475569);
    line-height: 1.5;
}

/* Cover Point Types */
.inst-cover-point--strength .inst-cover-point-num {
    background: #2563eb;
}

.inst-cover-point--strength .inst-cover-point-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.inst-cover-point--talking .inst-cover-point-num {
    background: #059669;
}

.inst-cover-point--talking .inst-cover-point-tag {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.inst-cover-point--keywords .inst-cover-point-num {
    background: #d97706;
    font-size: 14px;
}

.inst-cover-point--keywords .inst-cover-point-tag {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.inst-cover-point-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.inst-cover-point-keyword {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Cover Letter Preview Enhancements */
.inst-cover-letter-preview {
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .inst-cl-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .inst-cover-point {
        padding: 12px;
    }

    .inst-cover-point-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}
