body {
    background: #f5f6f8;
}

.room-plan {
    min-height: 620px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    position: relative;
    overflow: auto;
    padding: 32px;
}

.guest-item {
    cursor: default;
}

.guest-name {
    font-weight: 600;
}

.guest-meta {
    font-size: 12px;
    color: #6c757d;
}

.table-card-visual {
    display: inline-block;
    position: relative;
    margin: 24px;
    vertical-align: top;
}

.visual-title {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.table-shape {
    position: relative;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #343a40;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.table-round {
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

.table-rect {
    width: 260px;
    height: 120px;
    border-radius: 18px;
}

.table-grid {
    background: transparent;
    border: none;
    box-shadow: none;
}

.seat {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9ecef;
    border: 1px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #495057;
}

.seat-floating {
    position: absolute;
}

.grid-seats {
    display: grid;
    gap: 10px;
    justify-content: center;
}

.grid-seats .seat {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.empty-state {
    color: #6c757d;
}

.seat {
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.seat:hover {
    transform: scale(1.08);
    background: #dbeafe;
    border-color: #0d6efd;
}

.seat.assigned {
    background: #d1e7dd;
    border-color: #198754;
    color: #0f5132;
}

.seat-name {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seat-number {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.seat-with-name {
    width: 54px;
    height: 42px;
    border-radius: 14px;
    flex-direction: column;
    gap: 2px;
}

.grid-seats .seat-with-name {
    width: 64px;
    height: 48px;
}

.visual-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.visual-title {
    margin-bottom: 0;
}

.table-edit-btn {
    border: 0;
    background: #ffffff;
    color: #6c757d;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.table-edit-btn:hover {
    color: #0d6efd;
}

.guest-actions {
    display: flex;
    gap: 6px;
}

.guest-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guest-main {
    min-width: 0;
}

.guest-item {
    cursor: grab;
    user-select: none;
}

.guest-item:active {
    cursor: grabbing;
}

.guest-item.dragging {
    opacity: .45;
}

.seat.drop-ready {
    outline: 3px dashed #0d6efd;
    outline-offset: 4px;
    background: #dbeafe;
}

.seat.drop-denied {
    outline: 3px dashed #dc3545;
    outline-offset: 4px;
}

.drag-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.seat.assigned {
    cursor: grab;
}

.seat.assigned:active {
    cursor: grabbing;
}

.seat.dragging-seat {
    opacity: .45;
}