.seating-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.seating-page .wrap {
    width: min(100%, 700px);
    overflow: visible;
}

.seating-page .card {
    max-height: none;
    overflow: hidden;
    text-align: left;
}

.seating-page .content {
    overflow: visible;
}

.seating-form #name-hint {
    text-align: center;
}

.seating-controls {
    display: flex;
    gap: 10px;
}

.seating-controls .searchRow {
    flex: 1;
    min-width: 0;
}

.seating-controls .searchRow:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.seating-button {
    flex-shrink: 0;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid #a8baff;
    border-radius: 16px;
    background: linear-gradient(120deg, #c3cfff, #e1bcf8);
    color: #151731;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.seating-button:hover:not(:disabled) {
    background: linear-gradient(120deg, #d8e1ff, #edcef9);
}

.seating-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.seating-button:disabled {
    opacity: .7;
    cursor: default;
}

#lookup-feedback {
    color: var(--muted);
}

#lookup-feedback .row {
    margin: 0;
    color: var(--text);
}

#lookup-feedback .name {
    min-width: 0;
    overflow-wrap: anywhere;
}

#lookup-feedback .tableText {
    font-size: 21px;
}

#lookup-feedback .roster-hint {
    margin: 12px 0 0;
    font-size: 14px;
    text-align: center;
}

.floor-plan {
    margin-top: 16px;
}

.floor-plan__heading {
    margin: 0 0 10px;
    font-size: 17px;
    text-align: center;
}

.floor-plan__viewport {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #121212;
    overflow: hidden;
}

.floor-plan__canvas {
    position: relative;
    width: 100%;
    container-type: inline-size;
}

.floor-plan__canvas img {
    display: block;
    width: 100%;
    height: auto;
}

.floor-plan__marker {
    position: absolute;
    top: var(--table-y);
    left: var(--table-x);
    display: grid;
    place-items: center;
    width: 7%;
    height: 11.6%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccd1e1;
    border-radius: 50%;
    background: #151722;
    color: #f5f3fb;
    font-size: clamp(11px, 2.2vw, 17px);
    font-size: clamp(11px, 2.4cqw, 20px);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    pointer-events: none;
}

.floor-plan__marker.is-assigned {
    border-color: #fff1c5;
    background: #ffd686;
    box-shadow: 0 0 0 1px #211b2c, 0 0 12px rgba(255, 214, 134, .75);
    color: #1f1728;
}

.floor-plan__marker[hidden] {
    display: none;
}

.floor-plan .floor-plan__note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

#table-roster {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, .18);
}

#table-roster h2 {
    margin: 0 0 10px;
    font-size: 17px;
}

#table-roster ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

#table-roster li {
    padding: 4px 0;
    overflow-wrap: anywhere;
}

.seating-page .tiny {
    margin-top: 0;
}

#lookup-feedback:not(:empty) ~ .tiny {
    margin-top: 14px;
}

@media (max-width: 480px) {
    .seating-page {
        --headerH: 96px;
    }

    .seating-controls {
        flex-direction: column;
    }

    #lookup-feedback .row {
        flex-direction: column;
    }

    #lookup-feedback .nameBlock {
        min-height: 0;
    }

    #table-roster ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .seating-page {
        --headerH: 112px;
    }
}
