.booth-map-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}
.booth-map-shell.hidden {
    display: none !important;
}
.booth-map-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
    align-items: start;
}
.booth-map-editor-layout.hidden {
    display: none !important;
}
.booth-map-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 22px 44px -34px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}
.booth-map-panel-head {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, rgba(248,250,252,0.95) 0%, rgba(255,255,255,0.95) 100%);
}
.booth-map-panel-body {
    padding: 1rem 1.1rem;
}
.booth-map-list-item {
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}
.booth-map-list-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 28px -28px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.booth-map-list-item[data-active="true"] {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 16px 32px -30px rgba(37, 99, 235, 0.45);
}
.booth-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.booth-map-main-layout {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
}
.booth-map-palette {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.booth-map-preset-card {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.85rem 0.72rem;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: grab;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.booth-map-preset-card:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -30px rgba(37, 99, 235, 0.32);
}
.booth-map-preset-card .hint {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
}
.booth-map-collapsible {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}
.booth-map-collapsible-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
}
.booth-map-collapsible-body {
    padding: 0 1rem 1rem;
}
.booth-map-save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 9999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
}
.booth-map-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid #dbeafe;
    background: #fff;
    color: #1e40af;
    font-size: 0.8rem;
    font-weight: 800;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.booth-map-toolbar-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
.booth-map-toolbar-btn[data-active="true"] {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 16px 32px -30px rgba(29, 78, 216, 0.8);
}
.booth-map-stage-shell {
    position: relative;
    min-height: 720px;
    border: 1px solid #dbeafe;
    border-radius: 1.5rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        radial-gradient(circle at top, rgba(191, 219, 254, 0.42), rgba(255,255,255,0.98) 58%);
    background-size: 28px 28px, 28px 28px, 100% 100%;
}
.booth-map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.8;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(2px);
    z-index: 2;
}
.booth-map-empty.hidden {
    display: none !important;
}
.booth-map-stage {
    width: 100%;
    height: 720px;
    overflow: hidden;
    position: relative;
}
#order-booth-map-modal .booth-map-stage-shell {
    min-height: clamp(360px, 56vh, 620px);
}
#order-booth-map-modal .booth-map-stage {
    height: clamp(360px, 56vh, 620px);
}
.booth-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    user-select: none;
}
.booth-map-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.68rem;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.73rem;
    font-weight: 700;
    color: #334155;
}
.booth-map-legend-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 9999px;
    flex-shrink: 0;
}
.booth-map-filter-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.73rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    user-select: none;
}
.booth-map-filter-radio input { display: none; }
.booth-map-filter-radio:has(input:checked) {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.booth-map-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.58rem;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.73rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s;
}
.booth-map-filter-chip input { display: none; }
.booth-map-filter-chip:has(input:not(:checked)) {
    opacity: 0.42;
    background: #f1f5f9;
}
.booth-map-tooltip {
    position: absolute;
    z-index: 50;
    pointer-events: none;
    background: #0f172a;
    color: #f1f5f9;
    border-radius: 1rem;
    padding: 0.85rem 1.05rem;
    font-size: 0.9rem;
    line-height: 1.65;
    min-width: 260px;
    max-width: 420px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.35);
    white-space: normal;
}
.booth-map-tooltip-title {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
}
.booth-map-tooltip-meta {
    margin-top: 0.12rem;
    color: #cbd5e1;
    font-weight: 700;
}
.booth-map-tooltip-order {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid #334155;
}
.booth-map-tooltip-company {
    color: #ffffff;
    font-weight: 900;
}
.booth-map-tooltip-line {
    color: #cbd5e1;
    font-weight: 700;
}
.booth-map-tooltip-empty {
    margin-top: 0.45rem;
    color: #94a3b8;
    font-weight: 700;
}
.booth-map-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
}
.booth-map-mini-stat {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
@media (max-width: 1340px) {
    .booth-map-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .booth-map-editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .booth-map-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .booth-map-palette {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .booth-map-stage,
    .booth-map-stage-shell {
        min-height: 620px;
        height: 620px;
    }
    #order-booth-map-modal .booth-map-stage,
    #order-booth-map-modal .booth-map-stage-shell {
        min-height: clamp(320px, 50vh, 520px);
        height: clamp(320px, 50vh, 520px);
    }
}
