/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

main {
    display: flex;
    flex-direction: column;
}

#loading-section:not(.hidden),
#suggestions-section:not(.hidden),
#results-section:not(.hidden) {
    order: -1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Sections */
.section {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section.hidden {
    display: none;
}

/* Input Section */
.input-wrapper {
    width: 100%;
}

/* Rich text toolbar */
.rich-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #f8fafc;
}
.rich-toolbar button {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-primary);
}
.rich-toolbar button:hover,
.rich-toolbar button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.rich-toolbar button strong,
.rich-toolbar button em {
    font-size: inherit;
}

#input-text {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-y: auto;
    box-sizing: border-box;
}

#input-text:focus {
    border-color: var(--primary-color);
}

#input-text:empty::before {
    content: attr(data-placeholder);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Heading & list styles in rich input, interactive text, and result */
#input-text h1, #interactive-text h1, #final-text-display h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.75rem 0 0.25rem;
    line-height: 1.3;
}
#input-text h2, #interactive-text h2, #final-text-display h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    line-height: 1.3;
}
#input-text ul, #interactive-text ul, #final-text-display ul {
    padding-left: 1.5rem;
    margin: 0.25rem 0;
}
#input-text li, #interactive-text li, #final-text-display li {
    margin: 0.2rem 0;
}
/* Heading styling in lint preview */
#lint-preview h1 { font-size: 1.35rem; font-weight: 700; margin: 0.75rem 0 0.25rem; }
#lint-preview h2 { font-size: 1.1rem; font-weight: 700; margin: 0.5rem 0 0.2rem; }

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.char-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.char-counter.warning {
    color: var(--warning-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--secondary-hover);
}

.btn.success {
    background-color: var(--success-color);
}

/* Error Message */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.error-message.hidden {
    display: none;
}

/* Loading Section */
#loading-section {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Suggestions Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.suggestion-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: #fafafa;
    transition: all 0.2s;
}

.suggestion-card:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.suggestion-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
}

.suggestion-card label {
    flex: 1;
    cursor: pointer;
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-words {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.original-word {
    font-weight: 600;
    color: var(--error-color);
    background-color: #fee2e2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.arrow {
    color: var(--text-secondary);
}

.replacement-word {
    font-weight: 600;
    color: var(--success-color);
    background-color: #d1fae5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.suggestion-reason {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.no-suggestions {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.apply-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* New Suggestions Dropdown */
.new-suggestions-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
}

.dropdown-item + .dropdown-item {
    border-top: 1px solid var(--border-color);
}

.dropdown-item strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Dictionary Section */
.section-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.dictionary-upload-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-color);
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.dictionary-status {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.dictionary-status.info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.dictionary-status.success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.dictionary-status.error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.dictionary-status.hidden {
    display: none;
}

.active-dictionaries {
    margin-top: 2rem;
}

.active-dictionaries h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.active-dictionaries.hidden {
    display: none;
}

.dictionaries-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dictionary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: #fafafa;
    transition: all 0.2s;
}

.dictionary-card:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.dictionary-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.dictionary-card label {
    flex: 1;
    cursor: pointer;
}

.dictionary-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dictionary-name {
    font-weight: 600;
    color: var(--text-primary);
}

.dictionary-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-delete {
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-delete:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

/* Source badge for suggestions */
.source-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #dbeafe;
    color: #1e40af;
    white-space: nowrap;
}

.suggestion-card.source-dictionary {
    border-left: 4px solid #2563eb;
}

/* Results Section */
.result-text-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.text-display {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-height: 150px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-display.editable {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 0 0 0.5rem 0.5rem;
    cursor: text;
}

.text-display.editable:focus {
    outline: none;
    border-color: var(--primary-color);
}

.result-text-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.next-steps-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .next-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .next-steps {
        grid-template-columns: 1fr;
    }
}

.next-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.next-step-card:hover:not(:disabled) {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.next-step-card-primary {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.next-step-card-primary .next-step-label {
    color: var(--primary-color);
}

.next-step-card-primary:hover:not(:disabled) {
    background: #dbeafe;
}

.next-step-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-step-icon {
    font-size: 1.5rem;
}

.next-step-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.next-step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Structure Check Results */
.structure-results {
    margin-top: 1.5rem;
}

.structure-results h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.structure-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.structure-card {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.structure-card.structure-ok {
    background-color: #f0fdf4;
    border-left-color: #10b981;
}

.structure-card.structure-warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
}

.structure-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.structure-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.structure-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.structure-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.structure-kernzin {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.25rem;
    font-style: italic;
}

.structure-kernzin strong {
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.structure-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.structure-tips li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 1.2rem;
    position: relative;
}

.structure-tips li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* Advanced Settings */
.advanced-settings {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0;
}

.advanced-settings summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.advanced-settings summary:hover {
    color: var(--text-primary);
}

.advanced-content {
    padding: 0 1rem 1rem;
}

.advanced-warning {
    font-size: 0.8rem;
    color: #f59e0b;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.35rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.custom-instructions-input {
    width: 100%;
    min-height: 60px;
    max-height: 120px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    color: var(--text-primary);
    box-sizing: border-box;
}

.custom-instructions-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.advanced-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-align: right;
}

.advanced-submit-note {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #f1f5f9;
    border-radius: 0.3rem;
}

/* Info toggle button (in header) */
.btn-info-toggle {
    position: absolute;
    top: 1rem;
    right: 0;
    background: var(--primary-color);
    border: none;
    border-radius: 1.5rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}

.btn-info-toggle:hover {
    background: var(--primary-hover);
}

/* Info drawer backdrop */
.info-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
}

.info-backdrop.open {
    display: block;
}

/* Info drawer */
.info-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 320px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.25rem 1.5rem;
    transition: right 0.28s ease;
}

.info-panel.open {
    right: 0;
}

.info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
}

.info-panel-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.info-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 0.2rem;
}

.info-close:hover {
    color: var(--text-primary);
}

.info-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
}

.info-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.info-card p {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.info-steps,
.info-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.info-steps li,
.info-list li {
    margin-bottom: 0.1rem;
}

.info-card-privacy {
    border-left: 3px solid var(--success-color);
}

.info-card-model {
    border-left: 3px solid var(--primary-color);
}

.model-name {
    font-weight: 600;
    font-size: 0.9rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 0.2rem !important;
}

.model-detail {
    font-size: 0.78rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .info-panel {
        width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

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

    .suggestion-actions,
    .apply-actions {
        width: 100%;
        flex-direction: column;
    }

    .next-steps {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Interactive Text Editor ===== */

.editor-with-indicator {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
}

.editor-container {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: #ffffff;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
}

.interactive-text {
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Highlighted suggestion */
.highlight {
    background-color: #fef3c7;
    border-bottom: 2px solid var(--warning-color);
    cursor: pointer;
    padding: 0 2px;
    border-radius: 2px;
    position: relative;
    transition: all 0.2s;
}

.highlight:hover {
    background-color: #fde68a;
    border-bottom-color: #f59e0b;
}

.highlight.accepted {
    background-color: #d1fae5;
    border-bottom: 2px solid #86efac;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
}

.highlight.rejected {
    background-color: #e2e8f0;
    border-bottom: 2px solid #94a3b8;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    opacity: 1;
}

.highlight.locked {
    background-color: #d1fae5;
    border-bottom: 2px solid #86efac;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    cursor: default;
    opacity: 0.85;
}

.highlight.dictionary {
    background-color: #ddd6fe;
    border-bottom-color: #8b5cf6;
}

.highlight.unsafe {
    background-color: #fed7aa;
    border-bottom-color: #f59e0b;
    border-bottom-width: 3px;
}

.highlight.unsafe::after {
    content: " ⚠";
    color: #f59e0b;
    font-size: 0.75em;
    vertical-align: super;
}

/* Suggestion Popup */
.suggestion-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    min-width: 400px;
    max-width: 500px;
    animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.popup-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.popup-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.popup-content {
    padding: 1.5rem;
}

.popup-change {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.popup-original {
    color: var(--text-primary);
    font-weight: 500;
}

.popup-arrow {
    color: var(--text-secondary);
}

.popup-replacement {
    color: var(--text-primary);
    font-weight: 600;
}

.popup-reason {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 0.375rem;
}

.popup-source {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-color);
    border-radius: 1rem;
}

.popup-warning {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    color: #78350f;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Alternative Suggestions */
.popup-alternatives {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
}

.alternatives-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alternative-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.alternative-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.alternative-option.current-suggestion {
    border-color: #10b981;
    background: #f0fdf4;
}

.alternative-option.current-suggestion:hover {
    border-color: #059669;
}

.alt-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.alt-replacement {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.alt-source {
    font-size: 0.75rem;
    color: #64748b;
}

.alt-reason {
    font-size: 0.8rem;
    color: #475569;
    font-style: italic;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.use-alt-btn,
.use-current-btn {
    flex-shrink: 0;
    margin-left: 0.75rem;
}

/* Undo button in alternatives view */
.alternative-undo {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.alternative-undo .undo-btn {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.popup-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.popup-actions .btn {
    flex: 1;
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Suggestions Summary */
.suggestions-summary {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.summary-item {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Overlay for popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: fadeIn 0.2s;
}

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

/* Mobile responsiveness for popup */
@media (max-width: 640px) {
    .suggestion-popup {
        min-width: 90%;
        max-width: 90%;
    }

    .popup-change {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .popup-actions {
        flex-direction: column;
    }

    .suggestions-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Global hidden class - CRITICAL for popup/backdrop */
.hidden {
    display: none !important;
    pointer-events: none !important;
}

/* When popup/backdrop are visible, allow interaction */
.suggestion-popup:not(.hidden) {
    pointer-events: auto;
}

.popup-overlay:not(.hidden) {
    pointer-events: auto;
}

/* ===== Readability Score Panel ===== */

.readability-panel {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

.readability-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.readability-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .readability-scores {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.score-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.score-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    width: 100%;
    max-width: 200px;
    position: relative;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.score-level {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.score-loading {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
    color: var(--primary-color);
}

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

.score-improvement {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Readability level colors */
.level-1 {
    color: #10b981;
}

.level-2 {
    color: #3b82f6;
}

.level-3 {
    color: #f59e0b;
}

.level-4 {
    color: #ef4444;
}

/* ===== Readability Gauge ===== */

.readability-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 1rem;
    flex-shrink: 0;
}

.gauge-wrapper {
    position: relative;
}

.gauge-bar {
    display: flex;
    flex-direction: column;
    width: 28px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.gauge-segment {
    flex: 1;
    transition: background-color 0.5s ease, opacity 0.5s ease;
    background-color: var(--gauge-color, #94a3b8);
    opacity: 0.15;
}

/* Active segments get full opacity, all share the level color */
.gauge-segment.active {
    opacity: 1;
}

/* Active segments get full opacity */
.gauge-segment.active {
    opacity: 1;
}

.indicator-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    max-width: 70px;
    transition: color 0.3s ease;
}

.population-text {
    margin-top: 0.3rem;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    max-width: 70px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Level dots in info panel */
.info-levels {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-levels li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.level-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.3em;
}

.level-dot.level-1 { background: #10b981; }
.level-dot.level-2 { background: #3b82f6; }
.level-dot.level-3 { background: #f59e0b; }
.level-dot.level-4 { background: #ef4444; }

/* Per-change delta arrow */
.indicator-delta {
    position: absolute;
    top: -10px;
    right: -16px;
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
}

.indicator-delta.show {
    animation: deltaPopIn 2s ease-out forwards;
}

.indicator-delta.improved { color: #10b981; }
.indicator-delta.worsened { color: #ef4444; }

@keyframes deltaPopIn {
    0% {
        opacity: 0;
        transform: translateY(4px) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateY(-2px) scale(1.1);
    }
    30% { transform: translateY(0) scale(1); }
    80% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* Level change pulse on the whole bar */
.gauge-bar.pulse {
    animation: levelPulse 0.5s ease-out;
}

@keyframes levelPulse {
    0% { transform: scale(1); }
    50% { transform: scaleY(1.08) scaleX(1.12); }
    100% { transform: scale(1); }
}

/* Dev scores collapsible */
.readability-dev-scores {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.readability-dev-scores summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    user-select: none;
}

.readability-dev-scores summary:hover {
    color: var(--text-primary);
}

/* REMOVED: Dictionary Actions - no longer needed with alternatives approach */

/* Badge for dictionary suggestions */
.badge-dictionary {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 4px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease-out;
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Readability Progression Bar */
.progression-bar {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
}

.progression-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stage-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stage-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
}

.stage-delta {
    font-size: 0.875rem;
    font-weight: 600;
}

.progression-arrow {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: bold;
}

/* REMOVED: Express Mode - no longer needed with alternatives approach */

/* ============================================================
   LINT REVIEW PANEL (Phase 2)
   ============================================================ */

.lint-metric-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}


.btn-lint {
    padding: 0.45rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 2rem;
    background: #ffffff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1.4;
}

.btn-lint:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.btn-lint.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-lint.active.stale {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

/* Read-only highlighted preview */
.lint-preview {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.5rem;
    width: 100%;
    min-height: 100px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: #ffffff;
    color: #1e293b;
    margin-bottom: 0.75rem;
    cursor: default;
}

/* Color-coded mark variants */
mark.lint-mark-orange,
mark.lint-mark-red,
mark.lint-mark-green {
    cursor: pointer;
}

mark.lint-mark-orange {
    background-color: #fef3c7;
    color: #1e293b;
    border-radius: 2px;
    border-bottom: 2px solid #f59e0b;
    padding: 0 1px;
}

mark.lint-mark-red {
    background-color: #fee2e2;
    color: #1e293b;
    border-radius: 2px;
    border-bottom: 2px solid #ef4444;
    padding: 0 1px;
}

mark.lint-mark-green {
    background-color: #d1fae5;
    color: #1e293b;
    border-radius: 2px;
    border-bottom: 2px solid #10b981;
    padding: 0 1px;
}

/* Legend badges above preview */
.lint-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.lint-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    background: none;
    border: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.lint-legend-item:hover {
    background: #f1f5f9;
}

.lint-legend-popover {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    white-space: normal;
    width: 220px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lint-legend-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 1rem;
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

.lint-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.lint-legend-swatch-orange {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.lint-legend-swatch-red {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.lint-legend-swatch-green {
    background-color: #d1fae5;
    border-color: #10b981;
}

/* Lint section header row */
.lint-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.lint-section-header h2 {
    margin-bottom: 0;
}

/* Compact readability indicator in lint header */
.lint-readability-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lint-readability-prefix {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.lint-gauge-bar {
    display: flex;
    flex-direction: row;
    gap: 3px;
    padding: 3px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
}

.lint-gauge-seg {
    width: 14px;
    height: 18px;
    border-radius: 3px;
    background-color: var(--lint-gauge-color, #94a3b8);
    opacity: 0.15;
    transition: background-color 0.4s ease, opacity 0.4s ease;
}

.lint-gauge-seg.active {
    opacity: 1;
}

.lint-indicator-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lint-gauge-label-color, #64748b);
    white-space: nowrap;
}

.result-readability-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.result-delta {
    font-size: 1rem;
    font-weight: 700;
    transition: opacity 0.3s;
}

.result-delta.hidden {
    display: none;
}

.result-delta-up {
    color: #10b981;
}

.result-delta-down {
    color: #ef4444;
}

.result-population-text {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    border-left: 1px solid #e2e8f0;
    padding-left: 0.6rem;
    margin-left: 0.1rem;
}

/* Hidden state textarea */
.lint-text-hidden {
    display: none;
}

/* Modal */
.lint-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lint-modal-backdrop.hidden {
    display: none;
}

.lint-modal-dialog {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.lint-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.lint-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.lint-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0.25rem;
}

.lint-modal-close:hover {
    color: #1e293b;
}

.lint-modal-body {
    padding: 1rem 1.25rem;
    flex: 1;
    overflow: auto;
}

.rich-toolbar-modal,
.rich-toolbar-result {
    border-radius: 0.5rem 0.5rem 0 0;
}

.lint-modal-textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.75rem;
    border: 2px solid #cbd5e1;
    border-radius: 0 0 0.5rem 0.5rem;
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    outline: none;
    color: #1e293b;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-y: auto;
}

.lint-modal-textarea:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.lint-modal-textarea:focus {
    border-color: #3b82f6;
}

.lint-modal-textarea:focus {
    border-color: #3b82f6;
}

.lint-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Info modal specific */
.lint-info-dialog {
    max-width: 560px;
}

.lint-info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
}

.lint-info-list dt {
    font-weight: 600;
    color: #1e293b;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.lint-info-list dt:first-child {
    border-top: none;
    padding-top: 0;
}

.lint-info-list dd {
    color: #475569;
    line-height: 1.5;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.lint-info-list dd:first-of-type {
    border-top: none;
    padding-top: 0;
}

.lint-info-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.8rem;
}

.lint-info-link:hover {
    text-decoration: underline;
}

.lint-info-badge {
    display: inline-block;
    padding: 0 0.3rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lint-info-badge-orange {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.lint-info-badge-red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.lint-info-badge-green {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.lint-loading {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.25rem 0 0.5rem;
    font-style: italic;
}

.lint-status {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.75rem;
}

.lint-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* ------------------------------------------------------------------
   Mark popover (clicking highlighted spans in lint preview)
   ------------------------------------------------------------------ */

.lint-mark-popover {
    position: fixed;
    z-index: 200;
    background: #1e293b;
    color: #f8fafc;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    max-width: 280px;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-size: 0.82rem;
    line-height: 1.4;
    pointer-events: auto;
}

.lint-mark-popover-close {
    float: right;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 0.4rem;
    margin-left: 0.4rem;
}

.lint-mark-popover-close:hover {
    color: #f8fafc;
}

.lint-mark-popover-detail {
    margin: 0 0 0.4rem;
    font-weight: 500;
}

.lint-mark-popover-alts-label {
    margin: 0.4rem 0 0.2rem;
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lint-mark-popover-alts {
    margin: 0;
    padding-left: 1rem;
}

.lint-mark-popover-alts li {
    margin-bottom: 0.2rem;
}

.lint-mark-popover-reason {
    color: #94a3b8;
    font-size: 0.78rem;
}
