.place-choice-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 10, 20, 0.72);
}

.place-choice-modal {
    width: min(1040px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.96);
    color: #111827;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.place-choice-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #111827;
}

.place-choice-description {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.5;
}

.place-choice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}

.place-choice-stacks {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
    min-width: 0;
}

.place-choice-stack {
    min-width: 120px;
    padding: 10px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.04);
}

.place-stack-choice-button {
    min-width: 120px;
    padding: 10px;
    border: 3px solid transparent;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.04);
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.place-stack-choice-button:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.55);
}

.place-stack-choice-button.is-disabled,
.place-stack-choice-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    filter: grayscale(0.5);
}

.place-stack-choice-button.is-disabled:hover,
.place-stack-choice-button:disabled:hover {
    transform: none;
    border-color: transparent;
}

.place-stack-choice-button.selected {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.place-choice-stack-header {
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #4b5563;
}

.place-choice-stack-cards {
    position: relative;
    width: var(--place-choice-stack-width, 92px);
    min-height: 140px;
}

.place-stack-choice-cards {
    position: relative;
    width: var(--place-stack-choice-width, 72px);
    min-height: 108px;
}

.place-stack-choice-card {
    position: absolute;
    top: 0;
    left: var(--place-stack-choice-card-offset-x, 0);
    z-index: var(--place-stack-choice-card-z, 1);
}

.place-choice-card {
    position: absolute;
    top: 0;
    left: var(--place-choice-card-offset-x, 0);
    z-index: var(--place-choice-card-z, 1);
    width: 94px;
    min-height: 138px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.place-choice-card > .card {
    pointer-events: none;
}

.place-choice-card:hover {
    z-index: 50;
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.55);
}

.place-choice-card.selected {
    z-index: 60;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.place-choice-detail {
    min-height: 180px;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.place-choice-detail h3,
.place-choice-detail h4,
.place-choice-detail p {
    margin: 0;
}

.place-choice-detail h3 {
    font-size: 1.05rem;
    color: #111827;
}

.place-choice-detail-position {
    margin-top: 6px;
    font-size: 0.86rem;
    color: #6b7280;
}

.place-choice-detail h4 {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #374151;
}

.place-choice-detail p:last-child {
    margin-top: 6px;
    color: #1f2937;
    line-height: 1.5;
}

.place-choice-detail-empty {
    color: #6b7280;
    line-height: 1.5;
}

.place-choice-actions,
.place-choice-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.place-choice-primary,
.place-choice-secondary {
    min-width: 140px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.place-choice-primary {
    background: #2563eb;
    color: #fff;
}

.place-choice-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.place-choice-secondary {
    background: #e5e7eb;
    color: #111827;
}

.place-choice-confirm {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
}

.place-choice-confirm.hidden {
    display: none;
}

.place-choice-confirm-message {
    margin: 0;
    color: #111827;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .place-choice-layout {
        grid-template-columns: 1fr;
    }
}
