#wrap {
    padding: 1rem 0;
    font-family: var(--font-sans)
}

#toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    border: 0.5px solid var(--color-border-tertiary)
}

#toolbar label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-right: 2px
}

.fgroup {
    display: flex;
    align-items: center;
    gap: 6px
}

.ftag {
    padding: 4px 11px;
    border-radius: 20px;
    border: 0.5px solid var(--color-border-secondary);
    background: var(--color-background-primary);
    font-size: 12px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all .12s;
    white-space: nowrap
}

.ftag.on {
    background: #E6F1FB;
    color: #0C447C;
    border-color: #185FA5;
    font-weight: 500
}

.fsep {
    width: 1px;
    height: 22px;
    background: var(--color-border-tertiary);
    margin: 0 4px
}

#search {
    padding: 5px 10px;
    border-radius: var(--border-radius-md);
    border: 0.5px solid var(--color-border-secondary);
    background: var(--color-background-primary);
    font-size: 12px;
    color: var(--color-text-primary);
    width: 130px
}

#search::placeholder {
    color: var(--color-text-tertiary)
}

#result-count {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-left: auto
}

#stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px
}

.stat {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    padding: 10px 12px
}

.stat-l {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-bottom: 2px
}

.stat-v {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-primary)
}

#floor-scroll {
    overflow-x: auto;
    padding-bottom: 8px
}

#floor {
    position: relative;
    width: 1210px;
    height: 690px;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg)
}

.hall-lbl {
    position: absolute;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-primary);
    pointer-events: none
}

.zone {
    position: absolute;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 500;
    pointer-events: none;
    text-align: center;
    padding: 3px;
    line-height: 1.3
}

.booth {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, .12);
    transition: transform .1s, opacity .15s;
    user-select: none
}

.booth:hover:not(.booked):not(.dimmed) {
    transform: scale(1.13);
    z-index: 10;
    border-color: rgba(0, 0, 0, .35)
}

.booth.selected {
    outline: 2.5px solid #185FA5;
    outline-offset: 2px;
    z-index: 20
}

.booth.booked {
    opacity: .38;
    cursor: not-allowed
}

.booth.dimmed {
    opacity: .15;
    pointer-events: none
}

.b-priority {
    background: #FAC775;
    color: #633806
}

.b-standard {
    background: #D3D1C7;
    color: #2C2C2A
}

#detail {
    position: absolute;
    top: 0;
    right: 0;
    width: 230px;
    height: 100%;
    background: var(--color-background-primary);
    border-left: 0.5px solid var(--color-border-tertiary);
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 30
}

#detail.open {
    display: flex
}

#det-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1
}

#det-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary)
}

.det-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500
}

.bp {
    background: #FAEEDA;
    color: #633806
}

.bs {
    background: #F1EFE8;
    color: #444441
}

.det-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 0.5px solid var(--color-border-tertiary)
}

.det-row:last-of-type {
    border: none
}

.det-lbl {
    color: var(--color-text-secondary)
}

.det-val {
    font-weight: 500;
    color: var(--color-text-primary)
}

#add-btn {
    margin-top: auto;
    padding: 9px;
    border-radius: var(--border-radius-md);
    background: #185FA5;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s
}

#add-btn:hover {
    background: #0C447C
}

#add-btn:disabled {
    background: var(--color-background-secondary);
    color: var(--color-text-secondary);
    cursor: not-allowed
}

#legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px
}

.leg {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--color-text-secondary)
}

.ldot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0
}

.popBox .floorplan,
.popBox>div:first-of-type.floorplan {
    width: 100% !important;
    height: 100vh !important;
    display: flex;
    background: var(--primary-bg);
    max-width: none;
    max-height: none;
}