/* Native <dialog>: a bottom sheet on phones, a centred panel on desktop. */

.sheet {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    padding: 0;
    border: var(--border-thin) solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
}

.sheet::backdrop {
    background: var(--overlay);
}

.sheet-handle {
    width: 96px;
    height: 6px;
    margin: var(--space-3) auto 0;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
}

.sheet-body {
    padding: var(--space-6) var(--space-5) var(--space-8);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.sheet-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
}

@media (min-width: 900px) {
    .sheet {
        width: 560px;
        margin: auto;
        border-bottom: var(--border-thin) solid var(--line);
        border-radius: var(--radius-card);
    }

    .sheet-handle {
        display: none;
    }
}

/* Confirm card, Docker Desktop style: a centred card on every screen, the actions on the right. */
.confirm-card {
    width: min(500px, calc(100% - 2 * var(--space-4)));
    margin: auto;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.confirm-card::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.confirm-card .sheet-handle {
    display: none;
}

.confirm-card .sheet-body {
    padding: var(--space-6);
}

.confirm-card .sheet-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
}

.confirm-card [data-confirm-message] {
    color: var(--ink-muted);
}

.confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
}
