/* QoL polish — intro modal, copy positions, submit overlay */

body.intro-locked {
    overflow: hidden;
}

.intro-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
}

.intro-modal--closed {
    display: none !important;
}

.intro-modal-card {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 1.75rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.intro-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.intro-modal-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.intro-modal-body ul {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.intro-modal-body strong {
    color: #f1f5f9;
}

.intro-latch-demo {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 2px;
    background: #78350f;
    color: #fde68a;
    border: 1px solid #f59e0b;
    vertical-align: middle;
}

.intro-acknowledge {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    background: #f59e0b;
    color: #111827;
    border: none;
    cursor: pointer;
}

.intro-acknowledge:hover {
    background: #d97706;
}

.expansion-grid {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 1px;
}

.copy-positions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-position-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-position-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    flex: 1;
}

@media (max-width: 768px) {
    .copy-position-fields {
        grid-template-columns: 1fr 1fr;
    }
}

.copy-field {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.875rem;
    color: #f3f4f6;
}

.copy-position-remove {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    background: #374151;
    color: #9ca3af;
    border: 1px solid #4b5563;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.copy-position-remove:hover {
    background: #450a0a;
    color: #fca5a5;
}

.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 1rem;
}

.submit-overlay.hidden {
    display: none;
}

.submit-overlay-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.submit-overlay-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid #374151;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: submit-spin 0.8s linear infinite;
}

.submit-overlay-spinner.hidden {
    display: none;
}

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

.submit-overlay-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

.submit-overlay-detail {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.5;
}

.submit-overlay-actions {
    margin-top: 1.25rem;
}

.submit-overlay-actions.hidden {
    display: none;
}
