:root {
    --bg: #0b0c0e;
    --panel: rgba(20,20,25,.65);
    --border: rgba(255,255,255,.08);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #0a84ff;
    --gap: 14px;
    --radius: 14px;
}

/* Background */
.signout {
    background: #000;
    color: var(--text);
}

/* Layout grid */
.signout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    padding: var(--gap);
    box-sizing: border-box;
    height: 0;
    min-height: 0;
    overflow: auto;
    justify-items: center; /* center constrained blocks */
    flex-grow: 1;
}

.signout-layout section {
    width: 100%;
}

/* Vehicle photo block */
.vehicle-photo {
    position: relative;
    width: 100%;
    max-width: 420px; /* 🚩 keep capped */
    aspect-ratio: 4 / 3;
    background: #13151a;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.vehicle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius) - 2px);
}
.vehicle-photo svg { opacity: .65; }
.vehicle-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

/* Actions bar */
.vehicle-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px; /* 🚩 match photo cap */
}
.pm-btn {
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .12s cubic-bezier(.34,1.56,.64,1), background .15s ease;
    cursor: pointer;
    padding: 0 12px;
    user-select: none;
}
.pm-btn:active { transform: scale(.985); background: rgba(255,255,255,.08); }
.pm-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Form card */
.form-card {
    margin-inline: auto;
    width: min(100%, 520px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: calc(var(--gap) * 1.25);
    box-sizing: border-box;
}

.ios-section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--muted);
    margin: 12px 2px 6px;
}

.mb-2 { margin-bottom: 10px; }
.mt-2 { margin-top: 10px; }
.w-100 { width: 100%; }

/* Tablet/desktop split */
@media (min-width: 900px) and (orientation: landscape) {
    .signout-layout {
        grid-template-columns: auto 1fr; /* left stays capped */
        align-items: start;
        gap: calc(var(--gap) * 1.25);
        padding: 18px 20px;
        justify-items: start;
    }
    .vehicle-photo {
        aspect-ratio: 3 / 2; /* nicer ratio on tablets */
    }
    .vehicle-actions {
        grid-template-columns: repeat(2, minmax(0, 200px));
        background: transparent;
        border: none;
        padding: 0;
    }
}

/* Large screens */
@media (min-width: 1200px) and (orientation: landscape) {
    .signout-layout {
        grid-template-columns: auto 1fr;
        gap: 22px;
        padding: 22px 28px;
    }
    .vehicle-photo {
        aspect-ratio: 16 / 10;
    }
}
