/* --- Executable warning (file page) --- */

.exe-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);
}
.exe-notice > svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--warning);
}
.exe-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.exe-notice p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.exe-notice-more {
    margin-top: 8px;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warning);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.exe-notice-more[hidden] { display: none; }
.exe-notice-more:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 2px;
    border-radius: 2px;
}

html.exe-modal-open { overflow: hidden; }

.exe-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 7, 18, 0.84);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.exe-modal[hidden] { display: none; }

.exe-modal-panel {
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 28px 28px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    font-family: var(--font-family);
}

.exe-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--warning);
}
.exe-modal-icon svg { width: 26px; height: 26px; }

.exe-modal-panel h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text-primary);
}
.exe-modal-panel h2:focus { outline: none; }

.exe-modal-file {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.exe-modal-file code {
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: var(--bg-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.exe-modal-body p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.exe-modal-scan {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.32);
}
.exe-modal-scan p { margin: 0; }
.exe-modal-scan strong {
    display: block;
    margin-bottom: 2px;
    color: #fca5a5;
}
.exe-modal-body ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.exe-modal-body li + li { margin-top: 4px; }

.exe-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.exe-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.exe-btn:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 2px;
}
.exe-btn-leave {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.exe-btn-leave:hover { border-color: var(--text-muted); }

.exe-btn-ack {
    min-width: 210px;
    background: var(--warning);
    border: 1px solid var(--warning);
    color: #111827;
}
.exe-btn-ack:hover:not(:disabled) { background: #fbbf24; border-color: #fbbf24; }
.exe-btn-ack:disabled {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--text-secondary);
    cursor: not-allowed;
}
/* Fills up while the wait runs */
.exe-btn-fill {
    position: absolute;
    inset: 0;
    background: rgba(245, 158, 11, 0.26);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}
.exe-btn-ack:not(:disabled) .exe-btn-fill { display: none; }
.exe-btn-label,
.exe-btn-count { position: relative; }
.exe-btn-count {
    font-variant-numeric: tabular-nums;
}
.exe-btn-count:empty { display: none; }

@media (max-width: 520px) {
    .exe-modal { align-items: flex-end; padding: 12px; }
    .exe-modal-panel { padding: 22px 18px 18px; }
    .exe-modal-panel h2 { font-size: 1.15rem; }
    .exe-modal-actions { flex-direction: column-reverse; }
    .exe-btn { width: 100%; }
}
