/* Panels: framed product previews with example data */
.panel { border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.panel-head b { font: 450 1.2rem / 1.2 var(--font-display); }
.panel-head span { font-size: 0.82rem; color: var(--muted); }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.panel-foot small { margin-left: auto; font-size: inherit; }
.panel-detail { display: flex; align-items: center; gap: 0.6rem; min-height: 3.4rem; padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; }
.legend { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend::before { content: ''; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--c); }
.is-free { --c: var(--tint-strong); }
.is-reserved { --c: var(--warn); }
.is-occupied { --c: var(--deep); }

/* Restaurant floor plan (SVG is rendered by floorplan.js) */
.plan-canvas { position: relative; padding: 0.75rem; background: color-mix(in srgb, var(--tint) 45%, var(--surface)); }
.plan-canvas svg { width: 100%; height: auto; }
.plan-canvas text { font-family: var(--font-sans); fill: var(--muted); pointer-events: none; }
.fp-wall { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 6; }
.fp-zone { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.fp-zone-label { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; }
.fp-table rect, .fp-seat { transition: fill 0.8s var(--ease), stroke 0.8s var(--ease); }
.fp-table { cursor: pointer; }
.fp-table rect { fill: var(--tint-strong); stroke: transparent; stroke-width: 3; }
.fp-seat { fill: color-mix(in srgb, var(--tint-strong) 65%, var(--surface)); }
.fp-table text { font-size: 19px; font-weight: 600; fill: var(--ink); }
.fp-group[data-status='reserved'] .fp-table rect { fill: var(--warn); }
.fp-group[data-status='reserved'] .fp-seat { fill: color-mix(in srgb, var(--warn) 55%, var(--surface)); }
.fp-group[data-status='occupied'] .fp-table rect { fill: var(--deep); }
.fp-group[data-status='occupied'] .fp-table text { fill: var(--on-deep); }
.fp-group[data-status='occupied'] .fp-seat { fill: color-mix(in srgb, var(--deep) 65%, var(--surface)); }
.fp-group.is-active .fp-table rect { stroke: var(--accent); }
.fp-group { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.is-in .fp-group { opacity: 1; transform: none; }
.fp-group.is-changed .fp-table rect { animation: fp-flash 1.2s var(--ease); }
@keyframes fp-flash { 30% { stroke: var(--accent); stroke-width: 6; } }
.plan-status::before, .panel-detail::before { content: ''; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }

/* Event hall plan */
.hall-floor { display: grid; gap: 1.25rem; padding: 1.4rem; background: color-mix(in srgb, var(--tint) 60%, var(--surface)); }
.hall-stage, .hall-entry { padding: 0.7rem; border-radius: var(--radius-s); text-align: center; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hall-stage { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); }
.hall-entry { border: 1px dashed var(--line); }
.hall-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 2vw, 1.5rem); padding-block: 0.5rem; }
.hall-table {
  position: relative; aspect-ratio: 1; display: grid; place-content: center; gap: 0.1rem; border-radius: 50%;
  border: 0; background: var(--tint-strong); color: var(--ink);
  font-weight: 600; font-size: 1.05rem; line-height: 1.1; text-align: center;
  outline: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent); outline-offset: 5px;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, outline-color 0.3s;
}
.hall-table small { font-size: 0.68rem; font-weight: 500; opacity: 0.75; }
.hall-table:hover { transform: scale(1.05); }
.hall-table[data-status='reserviert'] { background: color-mix(in srgb, var(--accent) 45%, var(--tint-strong)); }
.hall-table[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); outline-color: var(--accent); outline-style: solid; }
.hall-table:focus-visible { outline: 2px solid var(--ink); }

/* Hotel occupancy board */
.board-grid { display: grid; grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr)); gap: 6px; padding: 1.1rem 1.4rem 1.4rem; font-size: 0.82rem; }
.board-day { padding-bottom: 0.4rem; text-align: center; color: var(--muted); line-height: 1.25; }
.board-day b { display: block; color: var(--ink); font-size: 0.95rem; }
.board-room { display: grid; align-items: center; font-weight: 600; font-size: 0.9rem; }
.stay, .gap { min-height: 2.9rem; border-radius: var(--radius-s); display: grid; align-items: center; padding: 0 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay { border: 0; text-align: left; font-weight: 600; font-size: 0.84rem; background: var(--c, var(--tint-strong)); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.stay:hover { transform: translateY(-2px); }
.stay[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.stay.is-clay { --c: color-mix(in srgb, var(--accent) 38%, var(--surface)); }
.stay.is-cocoa { --c: var(--deep); color: var(--on-deep); }
.stay.is-oat { --c: var(--tint-strong); }
.gap { border: 1.5px dashed color-mix(in srgb, var(--ok) 70%, transparent); color: var(--ok); font-weight: 600; font-size: 0.78rem; justify-content: center; background: color-mix(in srgb, var(--ok) 8%, transparent); }
.panel-detail.is-stacked { display: grid; gap: 0.1rem; }
.panel-detail.is-stacked::before { display: none; }
.panel-detail.is-stacked span { font-weight: 400; color: var(--muted); font-size: 0.88rem; }

/* White-label preview */
.brandkit { display: grid; gap: 1.1rem; justify-items: center; width: 100%; }
.browser { --brand: #22344f; --brand-ink: #fdf9ef; width: min(100%, 25rem); border-radius: var(--radius-m); background: #fdfaf3; color: #1f1f1c; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.5); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.7rem 0.9rem; background: #ece8dd; }
.browser-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #c9c4b6; }
.browser-bar span { flex: 1; margin-left: 0.5rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: #fdfaf3; font-size: 0.74rem; color: #5a5a52; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { display: grid; gap: 0.35rem; padding: 1.5rem 1.4rem 1.4rem; }
.brand-name { font: 500 1.9rem / 1 var(--font-display); letter-spacing: 0.02em; color: var(--brand); transition: color 0.5s; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: #6a6a60; }
.browser .chips { margin-top: 1.1rem; }
.browser .chip { border-color: #d9d4c6; color: #1f1f1c; }
.browser .chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); animation: none; transition: background-color 0.5s, border-color 0.5s; }
.brand-btn { margin-top: 1rem; padding: 0.85rem; border-radius: 10px; background: var(--brand); color: var(--brand-ink); text-align: center; font-weight: 600; font-size: 0.9rem; transition: background-color 0.5s; }
.swatches { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.swatches button { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--bg); background: var(--c); box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink); }

/* Reservation demo (dialog with phone frame) */
.demo-dialog { width: min(26rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: 2.6rem; background: none; color: #1e2622; overflow: visible; }
.demo-dialog::backdrop { background: rgb(10 14 12 / 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-dialog[open] { animation: dialog-in 0.5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.phone { position: relative; padding: 0.7rem; border-radius: 2.6rem; background: #17191a; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7), inset 0 0 0 2px #3a3d3e; }
.phone-screen { position: relative; display: grid; grid-template-rows: auto 1fr; height: min(43rem, calc(100dvh - 3rem)); border-radius: 2rem; background: #fbf8f0; overflow: hidden; }
.phone-top { position: relative; padding: 2.7rem 1.1rem 0; text-align: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: #6b6f68; }
.phone-top::before { content: ''; position: absolute; top: 0.6rem; left: 50%; width: 5.4rem; height: 1.45rem; border-radius: 999px; background: #17191a; transform: translateX(-50%); }
.phone-close { position: absolute; top: 0.6rem; right: 0.8rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: #ebe6d9; color: #1e2622; font-size: 0.9rem; }
.rapp { --rapp: #22344f; overflow-y: auto; padding: 0.9rem 1.3rem 1.5rem; display: grid; align-content: start; gap: 1rem; font-size: 0.92rem; overscroll-behavior: contain; }
.rapp-brand { text-align: center; padding-bottom: 0.9rem; border-bottom: 1px solid #e2dccd; }
.rapp-brand b { display: block; font: 500 1.7rem / 1 var(--font-display); letter-spacing: 0.04em; color: var(--rapp); }
.rapp-brand span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: #6b6f68; }
.rapp-steps { display: flex; gap: 4px; }
.rapp-steps i { flex: 1; height: 3px; border-radius: 3px; background: #e2dccd; transition: background-color 0.4s; }
.rapp-steps i.is-done { background: var(--rapp); }
.rapp h3 { font-size: 1.5rem; color: #1e2622; }
.rapp-view { display: grid; gap: 1rem; animation: fade-up 0.45s var(--ease); }
.rapp-view > p { color: #5c615a; }
.rapp-field { display: grid; gap: 0.4rem; }
.rapp-field > label, .rapp-field > span { font-size: 0.8rem; font-weight: 600; color: #4b5049; }
.rapp input[type='text'], .rapp input[type='email'] { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid #d5cfbf; border-radius: 10px; background: #fff; color: #1e2622; }
.rapp input:focus-visible { outline: 2px solid var(--rapp); outline-offset: 1px; }
.rapp-stepper { display: flex; align-items: center; justify-content: space-between; padding: 0.35rem; border: 1px solid #d5cfbf; border-radius: 12px; background: #fff; }
.rapp-stepper b { font-size: 1rem; }
.rapp-stepper button { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 9px; background: #efeadd; color: #1e2622; font-size: 1.2rem; }
.rapp-stepper button:disabled { opacity: 0.35; cursor: default; }
.rapp-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.rapp-options.is-days { grid-template-columns: repeat(4, 1fr); }
.rapp-option { padding: 0.65rem 0.2rem; border: 1px solid #d5cfbf; border-radius: 10px; background: #fff; color: #1e2622; font-size: 0.88rem; font-feature-settings: 'tnum'; line-height: 1.2; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.rapp-option small { display: block; font-size: 0.68rem; color: #6b6f68; }
.rapp-option[aria-pressed='true'] { background: var(--rapp); border-color: var(--rapp); color: #fdf9ef; }
.rapp-option[aria-pressed='true'] small { color: inherit; opacity: 0.8; }
.rapp-option:disabled { color: #a9a698; text-decoration: line-through; background: #f2eee3; cursor: not-allowed; }
.rapp-check { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px solid #d5cfbf; border-radius: 10px; background: #fff; cursor: pointer; }
.rapp-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--rapp); }
.rapp-check span { flex: 1; }
.rapp-check small { color: #6b6f68; font-size: 0.8rem; }
.rapp-primary, .rapp-secondary { width: 100%; padding: 0.95rem; border-radius: 12px; font-weight: 600; }
.rapp-primary { border: 0; background: var(--rapp); color: #fdf9ef; }
.rapp-secondary { border: 1px solid #d5cfbf; background: none; color: #1e2622; }
.rapp-summary { border-top: 1px solid #e2dccd; }
.rapp-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid #e2dccd; }
.rapp-summary dt { color: #5c615a; }
.rapp-summary dd { font-weight: 600; text-align: right; }
.rapp-badge { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: color-mix(in srgb, var(--rapp) 12%, transparent); color: var(--rapp); animation: pop 0.6s var(--ease) both; }
.rapp-badge svg { width: 1.5rem; height: 1.5rem; }
.rapp-error { color: #a3341c; font-size: 0.84rem; min-height: 1.2em; }
.rapp-small { font-size: 0.76rem; color: #6b6f68; text-align: center; }

@media (max-width: 640px) {
  .board-grid { padding-inline: 0.9rem; grid-template-columns: 2.6rem repeat(7, minmax(0, 1fr)); gap: 4px; }
  .stay, .gap { padding: 0 0.4rem; font-size: 0.72rem; }
  .hall-table { font-size: 0.9rem; outline-offset: 3px; }
  .hall-table small { font-size: 0.58rem; }
}
