.paw-seating {
	background: var(--wp--preset--color--cream, #faf4e8);
	border: 1px solid var(--wp--preset--color--line, #e4d8c3);
	border-radius: var(--wp--custom--radius--large, 1rem);
	box-shadow: 0 1rem 2.75rem rgba(34, 48, 30, 0.08);
	color: var(--wp--preset--color--ink, #22301e);
	margin-block: var(--wp--preset--spacing--xl, 4rem);
	overflow: hidden;
	/* `clip` clips identically but does not create a scroll container, which would stop the
	   sticky inspector rail from tracking the page. Browsers without it keep `hidden` and a
	   non-sticky rail. */
	overflow: clip;
}

/* A floor-planning tool needs a wider working surface than editorial copy. The cap carries the
   left workflow rail, the default 70 ft board at 100% zoom and the inspector rail side by side. */
.paw-page-seating-planner .entry-content {
	max-width: min(100%, 104rem);
}

.paw-page-seating-planner .entry-content > .paw-seating {
	max-width: none;
	margin-inline: 0;
}

.paw-seating__intro {
	background: var(--wp--preset--color--ink-deep, #1a2618);
	color: var(--wp--preset--color--on-dark, #f4ecdc);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.paw-seating__intro .paw-eyebrow { color: var(--wp--preset--color--champagne, #e3c79a); }
.paw-seating__intro h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-block: 0.5rem 1rem; }
.paw-seating__intro p:last-child { margin-bottom: 0; max-width: 42rem; }

.paw-seating__app { padding: clamp(1rem, 3vw, 2rem); }
.paw-seating__boundary { color: var(--wp--preset--color--body, #4a5748); font-size: 0.9rem; margin: 0; padding: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem); }
.paw-seating__noscript { margin: 1.5rem; padding: 1.25rem; background: var(--wp--preset--color--cream-tint, #efe4d0); border: 1px solid var(--wp--preset--color--line, #e4d8c3); border-radius: .75rem; }

.paw-seating__starter { max-width: none; }
.paw-seating__starter > h3, .paw-seating__panel > h3, .paw-seating__canvas-panel > h3, .paw-seating__session > h3 { font-size: 1.5rem; margin-top: 0; }
.paw-seating__starter-cards { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.25rem 0; }
.paw-seating__starter-card { background: #fffdf8; border: 1px solid var(--wp--preset--color--line, #e4d8c3); border-radius: .75rem; display: flex; flex-direction: column; padding: 1.1rem; }
.paw-seating__starter-card h4 { font-size: 1.2rem; margin: 0 0 .5rem; }
/* A to-scale schematic of the floor the card applies, drawn from the same template data. */
.paw-seating__starter-preview { aspect-ratio: 7 / 5; background-color: #fbf7ed; background-image: linear-gradient(rgba(34, 48, 30, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 48, 30, .07) 1px, transparent 1px); background-size: 12px 12px; border: 1px solid var(--wp--preset--color--line, #e4d8c3); border-radius: .4rem; margin: 0 auto .85rem; position: relative; width: min(100%, 12rem); }
.paw-seating__preview-object { background: #dbe3d1; border: 1px solid #55664d; box-sizing: border-box; position: absolute; }
.paw-seating__starter-card p { margin-top: 0; }
.paw-seating__starter-card .wp-element-button { align-self: flex-start; margin-top: auto; min-height: 2.75rem; }

.paw-seating__confirm, .paw-seating__warning { background: #f5e5d9; border-left: 4px solid var(--wp--preset--color--rose, #a65a4f); border-radius: .4rem; margin-bottom: 1rem; padding: 1rem; }
.paw-seating__confirm p, .paw-seating__warning { margin-top: 0; }
.paw-seating__confirm .paw-seating__secondary { margin-left: .5rem; }

.paw-seating__started { align-items: center; background: #fffdf8; border: 1px solid var(--wp--preset--color--line, #e4d8c3); border-radius: .75rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-bottom: 1rem; padding: .6rem 1rem; }
.paw-seating__started p { font-weight: 700; margin: 0; }

/* Guests and the palette sit left and the floor takes the remaining width. The inspector
   follows the floor in the same column until there is room for a third rail beside it. */
.paw-seating__workspace { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr); }
.paw-seating__sidebar { display: grid; gap: 1rem; }
.paw-seating__inspector { grid-column: 2; }
.paw-seating__panel, .paw-seating__canvas-panel, .paw-seating__session { background: #fffdf8; border: 1px solid var(--wp--preset--color--line, #e4d8c3); border-radius: .75rem; padding: 1rem; }
.paw-seating__canvas-panel { min-width: 0; }

.paw-seating__field { margin: 0 0 .85rem; }
.paw-seating__field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.paw-seating__field input, .paw-seating__field select, .paw-seating__seat-row select { background: #fffdf8; border: 1px solid var(--wp--preset--color--sage, #7c8c6b); border-radius: .4rem; box-sizing: border-box; color: inherit; font: inherit; min-height: 2.75rem; padding: .5rem .6rem; width: 100%; }
.paw-seating button { cursor: pointer; font: inherit; }
.paw-seating button:focus-visible, .paw-seating input:focus-visible, .paw-seating select:focus-visible { outline: 3px solid var(--wp--preset--color--sage, #7c8c6b); outline-offset: 3px; }
.paw-seating__button, .paw-seating__add, .paw-seating__secondary, .paw-seating__danger, .paw-seating__text-button { border-radius: .45rem; font-weight: 700; min-height: 2.75rem; padding: .55rem .75rem; }
.paw-seating__add, .paw-seating__secondary { background: transparent; border: 1px solid var(--wp--preset--color--ink, #22301e); color: var(--wp--preset--color--ink, #22301e); }
.paw-seating__add:hover, .paw-seating__secondary:hover { background: var(--wp--preset--color--ink, #22301e); color: var(--wp--preset--color--on-dark, #f4ecdc); }
.paw-seating__danger { background: transparent; border: 1px solid #8b4138; color: #712f28; }
.paw-seating__text-button { background: none; border: 0; color: #712f28; padding-inline: .35rem; text-decoration: underline; }
.paw-seating__help, .paw-seating__room-note, .paw-seating__seat-status { color: var(--wp--preset--color--body, #4a5748); font-size: .9rem; }

.paw-seating__guest-list { list-style: none; margin: 1rem 0; padding: 0; }
.paw-seating__guest-list li { align-items: center; border-bottom: 1px solid var(--wp--preset--color--line, #e4d8c3); display: flex; gap: .5rem; justify-content: space-between; min-height: 2.75rem; }
.paw-seating__palette h4 { color: var(--wp--preset--color--body, #4a5748); font-size: .78rem; letter-spacing: .07em; margin: 1.1rem 0 .5rem; text-transform: uppercase; }
.paw-seating__palette-list { display: grid; gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paw-seating__add { text-align: left; }
.paw-seating__palette .paw-seating__add { align-items: center; display: flex; font-size: .85rem; line-height: 1.25; padding: .45rem .5rem; }

.paw-seating__room-controls { align-items: end; display: grid; gap: .65rem; grid-template-columns: repeat(3, minmax(5rem, 1fr)) auto auto auto auto; }
.paw-seating__room-controls .paw-seating__field { margin: 0; }
.paw-seating__room-controls .paw-seating__check { align-items: center; display: flex; font-size: .9rem; min-height: 2.75rem; white-space: nowrap; }
.paw-seating__room-controls .paw-seating__check input { accent-color: var(--wp--preset--color--rose, #a65a4f); margin-right: .4rem; }
.paw-seating__canvas-viewport { background: #eee6d7; border: 1px solid var(--wp--preset--color--line, #e4d8c3); margin-top: 1rem; max-width: 100%; overflow: auto; }
.paw-seating__canvas { background-color: #fbf7ed; background-image: linear-gradient(rgba(34, 48, 30, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 48, 30, .08) 1px, transparent 1px); background-size: 24px 24px; min-height: 23rem; position: relative; transform-origin: top left; }
.paw-seating__object { align-items: center; background: #dbe3d1; border: 2px solid #55664d; box-sizing: border-box; color: #22301e; display: flex; justify-content: center; min-height: 11px; min-width: 11px; padding: 2px; position: absolute; transform-origin: center; }
.paw-seating__object.is-selected { box-shadow: 0 0 0 3px #a65a4f; z-index: 2; }
.paw-seating__object--round { border-radius: 50%; }
.paw-seating__object--dance { background: #e3c79a; border-style: dashed; }
.paw-seating__object--entrance, .paw-seating__object--wall { background: #79817a; border-color: #485048; color: #fffdf8; }
.paw-seating__object--stage, .paw-seating__object--dj { background: #b7c2aa; }
.paw-seating__object-label { font-size: clamp(.55rem, 1vw, .8rem); font-weight: 700; line-height: 1.1; max-width: 100%; overflow: hidden; padding: .1rem; text-overflow: ellipsis; white-space: nowrap; }
.paw-seating__chair { align-items: center; background: #fffdf8; border: 1px solid #55664d; border-radius: .25rem; color: #22301e; display: flex; font-size: .48rem; height: 16px; justify-content: center; max-width: 48px; overflow: hidden; padding: 1px; position: absolute; text-overflow: ellipsis; transform: translate(-50%, -50%); white-space: nowrap; width: 28px; }
.paw-seating__chair.is-assigned { background: #f2d9d4; border-color: #a65a4f; }

/* Resize and rotate handles on the selected object. The visible mark stays small so it does not
   swamp a small object, while a transparent hit area carries the real target size. Both sit on
   outside corners rather than edge midpoints, because chairs occupy the edges. */
.paw-seating__handle { background: #fffdf8; border: 2px solid var(--wp--preset--color--rose, #a65a4f); box-sizing: border-box; height: 18px; position: absolute; touch-action: none; width: 18px; z-index: 4; }
.paw-seating__handle::before { content: ""; height: 32px; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 32px; }
.paw-seating__handle--resize { border-radius: 2px; bottom: -11px; cursor: nwse-resize; right: -11px; }
.paw-seating__handle--rotate { border-radius: 50%; cursor: grab; left: -11px; top: -11px; }
/* A chair always wins the pointer where the two overlap: seating a guest is the more common
   action, and the inspector carries a complete equivalent for resize and rotate. */
.paw-seating__chair { z-index: 5; }

/* Dragging a guest: the list chips and occupied chairs are drag sources, chairs are targets.
   `touch-action: none` is what lets the same gesture work with a finger. */
.paw-seating__guest-list li[data-guest] { cursor: grab; touch-action: none; user-select: none; }
.paw-seating__guest-list li[data-guest] .paw-seating__text-button { cursor: pointer; }
.paw-seating__chair { touch-action: none; user-select: none; }
.paw-seating__chair.is-assigned { cursor: grab; }
.paw-seating__chair.is-drop-target { box-shadow: 0 0 0 3px var(--wp--preset--color--rose, #a65a4f); z-index: 3; }
.paw-seating__ghost { background: #f2d9d4; border: 1px solid var(--wp--preset--color--rose, #a65a4f); border-radius: .3rem; color: var(--wp--preset--color--ink, #22301e); font-size: .85rem; font-weight: 700; padding: .2rem .45rem; pointer-events: none; position: fixed; transform: translate(-50%, -140%); white-space: nowrap; z-index: 999; }

.paw-seating__inspector-fields { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.paw-seating__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.paw-seating__seat-editor { display: grid; gap: .55rem; margin-top: .75rem; }
.paw-seating__seat-row { align-items: center; display: grid; gap: .4rem; grid-template-columns: 3.8rem minmax(0, 1fr) auto; }
.paw-seating__seat-row label { font-size: .9rem; font-weight: 700; }
.paw-seating__session { margin-top: 1rem; }
.paw-seating__session p { margin-bottom: 0; }

/* Three columns only once the floor still fits at 100% zoom beside both rails; below this the
   inspector stays under the floor rather than squeezing the drawing surface. */
@media (min-width: 1600px) {
	.paw-seating__workspace { grid-template-columns: minmax(15rem, 16rem) minmax(0, 1fr) minmax(16rem, 18rem); }
	.paw-seating__inspector { grid-column: 3; grid-row: 1; max-height: calc(100vh - 2rem); overflow-y: auto; position: sticky; top: 1rem; }
}

@media (max-width: 1050px) {
	.paw-seating__starter-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.paw-seating__room-controls { grid-template-columns: repeat(3, minmax(5rem, 1fr)); }
}

@media (max-width: 781px) {
	.paw-seating__app { padding: 1rem; }
	.paw-seating__starter-cards, .paw-seating__workspace { grid-template-columns: 1fr; }
	.paw-seating__workspace { align-items: stretch; display: flex; flex-direction: column; }
	.paw-seating__canvas-panel, .paw-seating__canvas-viewport { box-sizing: border-box; max-width: 100%; width: 100%; }
	.paw-seating__room-controls { grid-template-columns: 1fr 1fr; }
	.paw-seating__canvas { min-height: 20rem; }
	.paw-seating__chair { font-size: .42rem; height: 14px; width: 25px; }
}

@media (prefers-reduced-motion: reduce) { .paw-seating *, .paw-seating *::before, .paw-seating *::after { scroll-behavior: auto !important; transition: none !important; } }
