:root { --sage: #3f6f5c; --sage-wash: #e2eee7; --warning: #915f19; --warning-wash: #f8edda; --rose: #8e3d3b; --surface: #fffdf8; }

/* Public menu and reservation flow */
.menu-group--interactive { padding-top: 0; border-top: 0; }
.menu-dish { margin-bottom: 17px; }
.menu-dish-trigger { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: start; gap: 3px 15px; border: 0; background: transparent; padding: 0; color: var(--ink); text-align: left; cursor: pointer; }
.menu-dish-trigger strong { grid-column: 1; color: var(--ink); font-size: 1rem; }
.menu-dish-trigger small { grid-column: 1 / -1; max-width: 48ch; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.menu-dish-trigger b { grid-column: 2; grid-row: 1; color: var(--navy); font-size: .9rem; white-space: nowrap; }
.menu-dish-trigger i { color: var(--blue); font-size: 1.25rem; font-style: normal; line-height: .85; text-align: right; }
.menu-dish-trigger:hover strong { color: var(--blue); }
.menu-dish-detail { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; margin-top: 12px; border-top: 1px solid var(--line); padding: 15px 0 4px; animation: revealDish .22s var(--ease); }
.menu-dish-detail[hidden] { display: none !important; }
.menu-dish-detail img { width: 118px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.menu-dish-detail p { margin: 3px 0 13px; max-width:46ch; color: var(--muted); font-size: .9rem; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dish-tags span { color: var(--muted); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.dish-tags b { border: 1px solid #aebfaf; border-radius: 99px; padding: 3px 7px; color: var(--sage); font-size: .7rem; font-weight: 600; }
@keyframes revealDish { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.booking-experience { grid-column: 1 / -1; margin-top: 5px; border-top: 1px solid rgba(220, 236, 255, .3); padding: 27px 0 6px; }
.booking-step-head { display: flex; align-items: start; justify-content: space-between; gap: 22px; }
.booking-step-head .eyebrow { margin-bottom: 5px; color: #b6cff1; }
.booking-step-head h3 { margin: 0; color: #fff; font: 700 clamp(1.45rem, 2.5vw, 2.15rem)/1.1 var(--display); letter-spacing: -.025em; }
.booking-back { min-height: 42px; border: 1px solid rgba(220, 236, 255, .45); background: transparent; color: #eaf4ff; padding: 8px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.booking-guidance, .table-selection { max-width: 68ch; margin: 13px 0 18px; color: #d3e2f1; font-size: .89rem; }
.guest-floor-plan { position: relative; min-height: 350px; overflow: hidden; border: 1px solid rgba(220, 236, 255, .34); background: linear-gradient(135deg, #16415f, #0d314e); }
.guest-floor-plan::before { position: absolute; inset: 0 0 auto; height: 30px; content: 'OCEAN SIDE'; color: rgba(221, 241, 255, .82); background: rgba(113, 184, 226, .24); padding: 7px 14px; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-align: center; }
.guest-table, .layout-table, .ops-table { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); }
.guest-table { width: 82px; height: 82px; min-height: 82px; border: 1px solid #b9d9f0; border-radius: 9px; background: var(--surface); color: var(--navy); padding: 9px 5px; cursor: pointer; box-shadow: 0 8px 20px rgba(4, 24, 43, .22); transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease); }
.guest-table.capacity-md { width: 112px; height: 78px; min-height: 78px; }
.guest-table.capacity-lg { width: 138px; height: 86px; min-height: 86px; }
.guest-table.capacity-xl { width: 164px; height: 94px; min-height: 94px; }
.guest-table.capacity-md.is-vertical { width: 78px; height: 112px; min-height: 112px; }
.guest-table.capacity-lg.is-vertical { width: 86px; height: 138px; min-height: 138px; }
.guest-table.capacity-xl.is-vertical { width: 94px; height: 164px; min-height: 164px; }
.guest-table:hover:not(:disabled), .guest-table.is-selected { background: #d9edfb; transform: translate(-50%, -54%); box-shadow: 0 13px 27px rgba(4, 24, 43, .3); }
.guest-table.is-selected { border: 3px solid var(--blue); }
.guest-table:disabled { border-color: #6e8494; background: #e0e6e4; color: #71808a; cursor: not-allowed; opacity: .8; }
.guest-table-name, .guest-table small { display: block; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.guest-table-name { font-size: .67rem; font-weight: 700; }
.guest-table b { display: block; font: 1.6rem/1 var(--display); }
.guest-table small { margin-top: 3px; font-size: .57rem; }
.guest-table i { position: absolute; top: -9px; right: 1px; width: 23px; height: 23px; border: 1px solid #9ed1ef; border-radius: 50%; background: #e5f5ff; color: #175b8f; font-size: 1.12rem; font-style: normal; line-height: 18px; }
.booking-experience > .button { margin-top: 3px; }
.guest-details { display: grid; gap: 16px; max-width: 720px; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.guest-details label, .deposit-choice { color: #e7f0f8; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.guest-details input { display: block; width: 100%; min-height: 48px; margin-top: 6px; border: 0; background: var(--surface); padding: 0 11px; color: var(--ink); font-size: 1rem; letter-spacing: normal; text-transform: none; }
.deposit-choice { margin: 0; border: 1px solid rgba(220, 236, 255, .35); padding: 16px; }
.deposit-choice legend { padding: 0 6px; color: #b6cff1; }
.deposit-choice p { margin: 0 0 13px; color: #d3e2f1; font-size: .85rem; font-weight: 400; letter-spacing: normal; line-height: 1.45; text-transform: none; }
.deposit-choice label { display: flex; align-items: start; gap: 9px; margin-top: 10px; font-size: .76rem; letter-spacing: normal; text-transform: none; }
.deposit-choice input { width: auto; min-height: 0; margin: 4px 0 0; accent-color: var(--blue); }
.booking-success { max-width: 630px; padding: 12px 0 8px; }
.booking-success .eyebrow { color: #b6cff1; }
.booking-success h3 { margin: 0; color: #fff; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--display); }
.booking-success p:not(.eyebrow) { color: #d3e2f1; }
.booking-success .text-link { border: 0; background: none; color: #fff; cursor: pointer; }

/* Dashboard upgrade */
.dashboard-nav nav { overflow-y: auto; }
.tables--live { position: relative; display: block; min-height: 290px; padding: 0; overflow: hidden; background: #f5f3ed; }
.tables--live::before { position: absolute; inset: 0 0 auto; height: 26px; content: ''; background: #d7ecf6; }
.ops-table { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #9caeba; border-radius: 7px; background: var(--surface); color: var(--navy); text-align: center; }
.ops-table.capacity-md { width: 61px; height: 48px; }
.ops-table.capacity-lg { width: 73px; height: 52px; }
.ops-table.capacity-xl { width: 84px; height: 56px; }
.ops-table.capacity-md.is-vertical { width: 48px; height: 61px; }
.ops-table.capacity-lg.is-vertical { width: 52px; height: 73px; }
.ops-table.capacity-xl.is-vertical { width: 56px; height: 84px; }
.ops-table b { font-size: .68rem; }
.ops-table small { font-size: .58rem; }
.ops-table.is-held { border-color: var(--navy); background: var(--navy); color: #fff; }
.ops-table.is-oceanfront { box-shadow: 0 0 0 3px #b9dcff; }
.reservation-list { grid-template-columns: 1fr; }
.reservation-row { grid-template-columns: auto 1fr auto auto !important; align-items: center; }
.reservation-status { border-radius: 99px; padding: 4px 8px; font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-verified { background: var(--sage-wash); color: var(--sage); }
.status-pending { background: var(--warning-wash); color: var(--warning); }
.verify-deposit, .mini-action { min-height: 34px; border: 1px solid #8ab5dc; background: transparent; color: var(--blue); padding: 7px 9px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.verify-deposit:hover, .mini-action:hover { border-color: var(--blue); background: #e2f0fb; }
.deposit-settings { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; max-width: 620px; margin-top: 14px; border: 1px solid #dfe3df; background: var(--paper); padding: 18px 20px; }
.deposit-settings .dash-label { grid-column: 1 / -1; margin: 0; }
.deposit-settings label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.deposit-settings input, .dish-editor input, .dish-editor select, .dish-editor textarea, .table-editor input, .table-editor select { display: block; width: 100%; min-height: 42px; margin-top: 5px; border: 1px solid #c9d1cd; background: #fffefa; padding: 8px 9px; color: var(--ink); font: inherit; }
.save-note { min-height: 1.2em; margin: 0; color: var(--sage); font-size: .78rem; }
.menu-manager-layout, .layout-editor-layout { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: 15px; max-width: 1190px; }
.menu-library, .dish-editor, .layout-workspace, .table-editor { border: 1px solid #dfe3df; background: var(--paper); padding: 20px; }
.dash-category-picker { display: grid; gap: 6px; margin: 4px 0 13px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.dash-category-picker select { width: 100%; min-height: 42px; border: 1px solid #aabdc7; background: #fffefa; padding: 8px 9px; color: var(--navy); font: 700 .88rem var(--ui); letter-spacing: normal; text-transform: none; }
.dash-menu-list { max-height: 560px; overflow: auto; }
.dash-menu-item { display: grid; width: 100%; grid-template-columns: 44px 1fr; gap: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 10px 0; color: var(--ink); text-align: left; cursor: pointer; }
.dash-menu-item:hover, .dash-menu-item.is-active { color: var(--blue); }
.dash-menu-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dash-menu-item b, .dash-menu-item small { display: block; }
.dash-menu-item b { font-size: .84rem; }
.dash-menu-item small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.dish-editor { display: grid; gap: 12px; align-content: start; }
.dish-editor > label, .table-editor > label { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.dish-editor textarea { min-height: 76px; resize: vertical; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.editor-grid label { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.dish-preview { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 11px; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dish-preview img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.text-danger { width: max-content; border: 0; background: transparent; color: var(--rose); padding: 0; font-size: .69rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.layout-editor-layout { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr); }
.layout-workspace { min-width: 0; }
.layout-toolbar { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.layout-toolbar span { flex: 1; color: var(--muted); font-size: .76rem; }
.layout-toolbar .text-link { margin: 0; border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.layout-canvas { position: relative; min-height: 520px; overflow: hidden; border: 1px solid #aabac0; background: #f5f3ed; touch-action: none; }
.layout-canvas::before { position: absolute; inset: 0 0 auto; height: 45px; content: ''; background: #d8edf8; }
.water-edge { position: absolute; z-index: 1; top: 13px; left: 0; right: 0; color: #286488; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-align: center; }
.layout-table { z-index: 2; width: 84px; height: 84px; min-height: 84px; border: 1px solid #7f99a7; border-radius: 8px; background: var(--surface); color: var(--navy); padding: 8px; cursor: grab; box-shadow: 0 5px 11px rgba(9, 43, 74, .09); user-select: none; }
.layout-table.capacity-md { width: 124px; height: 82px; min-height: 82px; }
.layout-table.capacity-lg { width: 154px; height: 90px; min-height: 90px; }
.layout-table.capacity-xl { width: 180px; height: 98px; min-height: 98px; }
.layout-table.capacity-md.is-vertical { width: 82px; height: 124px; min-height: 124px; }
.layout-table.capacity-lg.is-vertical { width: 90px; height: 154px; min-height: 154px; }
.layout-table.capacity-xl.is-vertical { width: 98px; height: 180px; min-height: 180px; }
.layout-table:active, .layout-table.is-dragging { cursor: grabbing; }
.layout-table.is-selected { border: 3px solid var(--blue); box-shadow: 0 0 0 3px #d7eaf8; }
.layout-table.is-oceanfront::after { position: absolute; top: -10px; right: -8px; width: 21px; height: 21px; border: 1px solid #9ed1ef; border-radius: 50%; background: #e5f5ff; color: #175b8f; content: '≈'; font-size: 1rem; line-height: 17px; }
.layout-table b, .layout-table small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout-table b { font-size: .73rem; }
.layout-table small { margin-top: 3px; color: var(--muted); font-size: .63rem; }
.table-editor { display: grid; align-content: start; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { display: inline-block; width: auto; min-height: auto; margin: 0; accent-color: var(--blue); }
.layout-mobile-note { display: none; color: var(--muted); font-size: .78rem; }
.empty-message { color: var(--muted); }

@media (max-width: 900px) {
  .menu-manager-layout, .layout-editor-layout { grid-template-columns: 1fr; }
  .dash-menu-list { max-height: 300px; }
  .layout-canvas { min-height: 450px; }
}

@media (max-width: 640px) {
  .reservation-bar { grid-template-columns: 1fr !important; }
  .reservation-bar .form-note { grid-column: 1; }
  .booking-experience { padding-top: 22px; }
  .booking-step-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .booking-step-head > .eyebrow { grid-column: 1 / -1; }
  .booking-step-head > h3 { grid-column: 1; }
  .booking-step-head > .booking-back { grid-column: 2; grid-row: 2; }
  .booking-step-head > div { min-width: 0; }
  .booking-step-head h3 { font-size: 1.45rem; }
  .booking-back { min-height: 38px; padding: 7px; font-size: .62rem; }
  .guest-floor-plan { min-height: 405px; }
  .guest-table { width: 67px; height: 67px; min-height: 67px; padding: 7px 3px; }
  .guest-table.capacity-md { width: 82px; height: 61px; min-height: 61px; }
  .guest-table.capacity-lg { width: 96px; height: 68px; min-height: 68px; }
  .guest-table.capacity-xl { width: 106px; height: 74px; min-height: 74px; }
  .guest-table.capacity-md.is-vertical { width: 61px; height: 82px; min-height: 82px; }
  .guest-table.capacity-lg.is-vertical { width: 68px; height: 96px; min-height: 96px; }
  .guest-table.capacity-xl.is-vertical { width: 74px; height: 106px; min-height: 106px; }
  .guest-table-name { font-size: .55rem; }
  .guest-table b { font-size: 1.15rem; }
  .guest-table small { font-size: .49rem; }
  .guest-table i { top: -8px; right: -4px; width: 19px; height: 19px; font-size: .95rem; line-height: 14px; }
  .guest-fields, .editor-grid { grid-template-columns: 1fr; }
  .reservation-row { grid-template-columns: auto 1fr auto !important; }
  .reservation-row .verify-deposit { grid-column: 2 / -1; justify-self: start; margin-top: 4px; }
  .reservation-status { font-size: .57rem; }
  .deposit-settings { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 15px; }
  .deposit-settings .dash-label { grid-column: 1 / -1; }
  .menu-library, .dish-editor, .layout-workspace, .table-editor { padding: 15px; }
  .layout-toolbar { flex-wrap: wrap; }
  .layout-toolbar span { order: 3; flex-basis: 100%; }
  .layout-canvas { display: none; }
  .layout-mobile-note { display: block; margin: 0; }
  .layout-editor-layout { grid-template-columns: 1fr; }
  .table-editor { opacity: .55; pointer-events: none; }
  .dashboard-nav nav { gap: 0; }
  .dash-tab { font-size: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-dish-detail { animation: none; }
  .guest-table { transition: none; }
}
