.confirm-bar {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.confirm-bar[hidden] {
    display: none;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.confirm-panel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 520px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb, 234, 179, 8), .16), rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .95));
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    font-size: .85rem;
    color: var(--text-heading-accent, #fef3c7);
}

.confirm-message {
    flex: 1 1 240px;
}

.confirm-actions {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    gap: 8px;
}

.confirm-btn {
    padding: 6px 16px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.confirm-btn--ok {
    color: #1c1917;
    background: var(--brand-primary, #eab308);
    border: none;
}

.confirm-btn--ok:hover {
    background: #facc15;
    transform: translateY(-1px);
}

.confirm-btn--cancel {
    color: var(--text-body, #d6d3d1);
    background: transparent;
    border: 1px solid rgba(var(--overlay-rgb, 255, 255, 255), .2);
}

.confirm-btn--cancel:hover {
    color: var(--text-heading-accent, #fef3c7);
    border-color: rgba(var(--overlay-rgb, 255, 255, 255), .4);
}

.deploy-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto 4px;
}

.deploy-progress {
    position: relative;
    flex: 1;
    height: 6px;
    overflow: hidden;
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .12);
    border-radius: 999px;
}

.deploy-progress-stop-form {
    display: inline-flex;
    flex-shrink: 0;
}

.deploy-progress-stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    color: var(--text-faint, #78716c);
    background: none;
    border: none;
    font-size: .95rem;
    cursor: pointer;
    transition: color .18s ease;
}

.deploy-progress-stop:hover {
    color: #d39a9a;
}

.deploy-progress-stop:focus-visible {
    outline: 2px solid var(--text-heading-accent, #fef3c7);
    outline-offset: 2px;
}

.deploy-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d6961a, var(--brand-primary, #eab308));
}

.deploy-progress-bar--indeterminate {
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--brand-primary, #eab308), transparent);
    animation: deploy-progress-slide 1.4s ease-in-out infinite;
}

.deploy-progress-bar--determinate {
    width: 0%;
    transition: width .5s ease;
}

.deploy-progress-label-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto 8px;
}

.deploy-progress-label {
    color: var(--text-meta-accent, #d6b75d);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: right;
}

.deploy-progress-label-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.deploy-progress-log {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    color: var(--text-faint, #78716c);
    background: none;
    border: none;
    font-size: .95rem;
    cursor: pointer;
    transition: color .18s ease;
}

.deploy-progress-log:hover {
    color: var(--brand-primary, #eab308);
}

.deploy-progress-log:focus-visible {
    outline: 2px solid var(--text-heading-accent, #fef3c7);
    outline-offset: 2px;
}

@keyframes deploy-progress-slide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

/* Just a grouping wrapper — spacing between rows comes from each child's own
   margin-bottom (.deploy-status, .deploy-progress-row, etc.), not from here. */
.deploy-status-stack {
    display: block;
    width: 100%;
}

.deploy-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .85rem;
}

.deploy-status-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.notification-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-family: inherit;
    cursor: pointer;
    opacity: .75;
    transition: opacity .18s ease, background-color .18s ease;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(var(--overlay-rgb, 255, 255, 255), .1);
}

.notification-close:focus-visible {
    outline: 3px solid var(--text-heading-accent, #fef3c7);
    outline-offset: 2px;
}

.log-view-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: inherit;
    background: rgba(var(--overlay-rgb, 255, 255, 255), .08);
    border: 1px solid currentColor;
    border-radius: 6px;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease;
}

.log-view-btn:hover {
    background: rgba(var(--overlay-rgb, 255, 255, 255), .18);
}

.log-view-btn:focus-visible {
    outline: 3px solid var(--text-heading-accent, #fef3c7);
    outline-offset: 2px;
}

.log-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.log-modal[hidden] {
    display: none;
}

.log-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.log-modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(860px, 100%);
    max-height: 80vh;
    background: var(--bg-surface-alt, #171717);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .3);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.log-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(var(--overlay-rgb, 255, 255, 255), .08);
}

.log-modal-title {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text-heading-accent, #fef3c7);
}

.log-modal-body {
    margin: 0;
    padding: 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .76rem;
    line-height: 1.5;
    color: var(--text-body, #d6d3d1);
}

.deploy-status--success {
    color: #93b69c;
    background: rgba(111, 167, 125, .12);
    border: 1px solid rgba(111, 167, 125, .35);
}

.deploy-status--error {
    color: #d39a9a;
    background: rgba(190, 100, 100, .12);
    border: 1px solid rgba(190, 100, 100, .35);
}
