@layer reset, layout, components, responsive;
@layer reset {
  * {
    box-sizing: border-box;
  }
  :root {
      font-family:
          "Times New Romans",
          Times,
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          sans-serif,
          serif;
color: #25302d;
background: #f7f8fa;
            font-synthesis: none;
            --green: #255f48;
            --muted: #86908e;
            --border: #edf0ee;
  }
  body {
margin: 0;
        font-size: 1rem;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
  }
  button,
      input,
      select,
      textarea {
font: inherit;
      }
  button,
      a,
      input,
      select,
      textarea {
          -webkit-tap-highlight-color: transparent;
      }
  button {
cursor: pointer;
  }
  a {
color: inherit;
       text-decoration: none;
  }
button:focus-visible,
           a:focus-visible,
           input:focus-visible,
           select:focus-visible,
           textarea:focus-visible {
outline: 3px solid #79ad94;
         outline-offset: 3px;
           }
       [hidden] {
display: none !important;
       }
       h1,
           h2,
           h3,
           p {
margin: 0;
           }
}
@layer layout {
    .sidebar {
width: 248px;
background: white;
            border-right: 1px solid #e9eeeb;
position: fixed;
inset: 0 auto 0 0;
display: flex;
         flex-direction: column;
padding: 34px 21px 0;
    }
    .app-shell {
        margin-left: 248px;
        min-height: 100dvh;
display: flex;
         flex-direction: column;
    }
    .topbar {
height: 83px;
        border-bottom: 1px solid #e9eeeb;
display: flex;
         align-items: center;
         justify-content: space-between;
padding: 0 42px;
background: #ffffffb3;
    }
    main {
padding: 41px 42px 24px;
         max-width: 1640px;
width: 100%;
margin: 0 auto;
    }
    .page-heading {
display: flex;
         justify-content: space-between;
         align-items: center;
         margin-bottom: 32px;
    }
    .stats {
display: grid;
         grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 19px;
     margin-bottom: 30px;
    }
    .reservation-panel {
background: white;
border: 1px solid #e6ebe8;
        border-radius: 13px;
        box-shadow: 0 3px 8px #20352902;
overflow: hidden;
    }
    .page-footer {
        margin-top: auto;
padding: 22px 42px;
color: #9aa29f;
       font-size: 0.875rem;
display: flex;
         justify-content: space-between;
    }
}
@layer components {
    .floor-room-controls {
display: grid;
gap: 10px;
     margin-bottom: 20px;
    }
    .override-tag {
display: block;
         margin-top: 6px;
         font-size: 0.875rem;
color: #91652b;
    }
    .floor-room-controls .button {
width: 100%;
       font-size: 0.875rem;
       min-height: 40px;
    }
    .floor-policy {
        border-top: 1px solid #e6ebe2;
        padding-top: 20px;
        margin-top: 22px;
    }
    .floor-policy h2 {
        margin-bottom: 18px;
        font-size: 0.9375rem;
    }
    .floor-policy label {
        margin-top: 16px;
        line-height: 1.6;
    }
#floor-table-room {
    margin-top: 2px;
}
label[for="floor-table-room"] {
    margin-top: 16px;
}
.booking-availability {
background: #f5f8f0;
padding: 14px;
border: 1px solid #e0e7d9;
        border-radius: 8px;
color: #4d6548;
}
.booking-availability > p {
    font-size: 0.875rem;
    line-height: 1.7;
}
.booking-availability > label {
display: grid;
gap: 8px;
     margin-block: 10px;
}
.booking-table-map {
    aspect-ratio: 1000 / 640;
position: relative;
border: 1px solid #d6dfd3;
        border-radius: 6px;
        background-color: #fafbf6;
        background-image: radial-gradient(#cdd8c9 0.8px, transparent 0.8px);
        background-size: 16px 16px;
        margin-top: 15px;
}
.booking-table-map .floor-table {
cursor: pointer;
}
.booking-table-map .floor-table:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.booking-table-map .floor-table:disabled .floor-furniture {
background: #e7ded8;
            border-color: #bda798;
}
.booking-table-map .floor-table-name {
    font-size: 0.625rem;
}
.booking-table-map .floor-table-capacity {
    font-size: 0.5rem;
}
  #manager-override-field {
    padding: 14px;
    border: 1px solid #d9bb81;
    background: #fff9eb;
    border-radius: 7px;
  }
  #dining-room-dialog .form-grid {
    margin-top: 25px;
  }
  .brand {
    display: flex;
    align-items: center;
    font-size: 1.8125rem;
    font-weight: 750;
    letter-spacing: -1.2px;
    padding: 0 12px;
  }
  .brand-light {
    font-weight: 400;
  }
  .brand i {
    background: #e7ad78;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 15px 0 0 3px;
  }
  .brand-icon {
    font-family: Georgia, serif;
    font-size: 1.875rem;
    color: #fff;
    background: var(--green);
    width: 35px;
    height: 36px;
    border-radius: 11px 11px 11px 2px;
    margin-right: 10px;
    line-height: 31px;
    text-align: center;
    letter-spacing: -5px;
    padding-right: 6px;
  }
  .brand-icon span {
    color: #bcd1bd;
  }
  .workspace {
    margin: 42px 0 32px;
    padding: 12px 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .restaurant-icon {
    background: #f5eee4;
    color: #8b7356;
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 1.4375rem;
    width: 36px;
    height: 38px;
    display: grid;
    place-items: center;
  }
  .workspace strong {
    font-size: 0.875rem;
    font-weight: 650;
  }
  .workspace span:not(.workspace-check) {
    display: block;
    font-size: 0.875rem;
    margin-top: 5px;
    color: var(--muted);
  }
  .workspace-check {
    margin-left: auto;
    color: #7d9e8a;
    font-size: 0.875rem;
  }
  .nav-label {
    font-size: 0.875rem;
    color: #9aa5a0;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0 13px;
    margin-bottom: 13px;
  }
  .nav-item {
    display: flex;
    align-items: center;
    padding: 13px;
    border-radius: 7px;
    gap: 11px;
    font-size: 0.875rem;
    font-weight: 600;
  }
  .nav-item.active {
    background: #edf5ef;
    color: var(--green);
  }
  .nav-icon {
    font-size: 1.1875rem;
  }
  .nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4e8369;
    margin-left: auto;
  }
  .sidebar-note {
    margin: auto 8px 28px;
    padding: 24px 16px 18px;
    background: #f8f9f5;
    border: 1px solid #eef0e7;
    border-radius: 10px;
  }
  .note-icon {
    display: block;
    font-size: 1.6875rem;
    color: #879d78;
    margin-bottom: 12px;
  }
  .sidebar-note strong {
    font-size: 0.875rem;
    font-weight: 600;
  }
  .sidebar-note p {
    font-size: 0.875rem;
    color: #8c958d;
    line-height: 1.9;
    margin-top: 8px;
  }
  .sidebar-bottom {
    border-top: 1px solid var(--border);
    padding: 21px 0 24px;
    display: flex;
    gap: 11px;
    align-items: center;
  }
  .sidebar-bottom strong {
    display: block;
    font-size: 0.875rem;
  }
  .sidebar-bottom div > span {
    font-size: 0.875rem;
    color: #929b96;
    display: block;
    margin-top: 5px;
  }
  .avatar {
    background: #eaf0e7;
    border: 3px solid #fff;
    outline: 1px solid #e5ebe4;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    color: #56704b;
    font-weight: 650;
  }
  .avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  .breadcrumb {
    display: flex;
    gap: 14px;
    color: #9ba39f;
    font-size: 0.875rem;
  }
  .breadcrumb strong {
    font-weight: 500;
    color: #58645d;
  }
  .breadcrumb > span {
    color: #c2c8c4;
  }
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 23px;
  }
  .demo-pill {
    border: 1px solid #e8eae4;
    background: #f7f8f3;
    border-radius: 5px;
    font-size: 0.875rem;
    padding: 6px 9px;
    color: #7d866f;
  }
  .eyebrow {
    font-size: 0.875rem;
    letter-spacing: 1.9px;
    font-weight: 600;
    color: #8b968d;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 2.0625rem;
    letter-spacing: -1.2px;
    font-weight: 650;
  }
  h1 > span {
    color: #d49f6c;
  }
  .page-heading p {
    color: #919993;
    font-size: 0.875rem;
    margin-top: 10px;
  }
  .button {
    border: 1px solid transparent;
    padding: 12px 17px;
    font-size: 0.875rem;
    font-weight: 550;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
  }
  .primary {
    background: var(--green);
    color: white;
    box-shadow: 0 3px 4px #2149320a;
  }
  .primary:hover {
    background: #194c37;
  }
  .primary > span {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
  }
  .secondary {
    color: #59645e;
    background: #fff;
    border-color: #dce3dd;
  }
  .button:disabled {
    opacity: 0.6;
    cursor: wait;
  }
  .stat-card {
    background: white;
    border: 1px solid #e6ebe8;
    border-radius: 11px;
    padding: 19px 20px 18px;
  }
  .stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    color: #7c8680;
    font-size: 0.875rem;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 1rem;
    display: grid;
    place-items: center;
  }
  .lavender {
    background: #f0eef8;
    color: #9187b9;
  }
  .peach {
    background: #fbf0e8;
    color: #c28b69;
  }
  .mint {
    background: #edf5ef;
    color: #649375;
  }
  .sand {
    background: #fbf5e7;
    color: #bea15b;
  }
  .stat-number {
    font-size: 2rem;
    font-weight: 600;
    margin: 7px 0 11px;
    letter-spacing: -0.9px;
  }
  .stat-foot {
    color: #9ba39e;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .tiny-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .green {
    background: #7aa187;
  }
  .orange {
    background: #d6b16c;
  }
  .panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 23px;
    gap: 14px;
  }
  h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.2px;
  }
  .count-badge {
    font-size: 0.875rem;
    color: #7c8f7d;
    background: #f0f4ef;
    border-radius: 5px;
    padding: 3px 6px;
    margin-left: 7px;
    font-weight: 500;
  }
  .panel-heading p {
    font-size: 0.875rem;
    color: #9aa29c;
    margin-top: 8px;
  }
  .date-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .icon-button {
    border: 1px solid #e6eae6;
    background: white;
    width: 29px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    font-size: 1.3125rem;
    color: #879489;
  }
  .icon-button:hover {
    background: #f1f5f0;
  }
  .date-label {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 0 8px;
    color: #89948b;
  }
  .date-label input {
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: #536258;
    width: 118px;
  }
  .today-button {
    background: white;
    border: 1px solid #e6eae6;
    border-radius: 5px;
    color: #78857a;
    padding: 7px 10px;
    margin-left: 6px;
    font-size: 0.875rem;
  }
  .toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px 17px;
    border-bottom: 1px solid var(--border);
  }
  .tabs {
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .tab {
    border: 0;
    background: transparent;
    padding: 9px 11px;
    border-radius: 6px;
    color: #939d96;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .tab.selected {
    color: #3b6a4f;
    background: #eef4ee;
    font-weight: 600;
  }
  .tab:hover {
    background: #f3f6f2;
  }
  .search {
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid #e9ede8;
    border-radius: 6px;
    padding: 6px 10px;
    color: #adb4af;
  }
  .search > span {
    font-size: 1.375rem;
    line-height: 1;
  }
  .search input {
    border: 0;
    width: 142px;
    outline-offset: 5px;
    font-size: 1rem;
    background: transparent;
    color: #536258;
  }
  .search input::placeholder {
    color: #a4aca6;
  }
  .table-scroll {
    overflow: auto;
    position: relative;
  }
  table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    white-space: nowrap;
  }
  thead {
    background: #fcfdfb;
  }
  th {
    color: #a0a8a1;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    padding: 15px 15px;
    border-bottom: 1px solid var(--border);
  }
  th:first-child,
  td:first-child {
    padding-left: 24px;
  }
  td {
    padding: 19px 15px;
    font-size: 0.875rem;
    border-bottom: 1px solid #f0f2ef;
    color: #6e7a70;
  }
  tbody tr:last-child td {
    border-bottom: 0;
  }
  tbody tr:hover {
    background: #fdfefb;
  }
  .guest {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .guest-avatar {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    color: #8a8273;
    background: #f1ede6;
    flex-shrink: 0;
  }
  .guest-avatar.tone-1 {
    background: #eaf0e8;
    color: #7c8e72;
  }
  .guest-avatar.tone-2 {
    background: #eeebf4;
    color: #9a8ea8;
  }
  .guest-avatar.tone-3 {
    background: #e9f0f3;
    color: #7f96a2;
  }
  .guest-name {
    font-weight: 550;
    color: #465549;
    font-size: 0.875rem;
  }
  .guest-email {
    display: block;
    font-size: 0.875rem;
    color: #a7ada7;
    margin-top: 5px;
  }
  .time {
    font-variant-numeric: tabular-nums;
    color: #657565;
  }
  .party {
    color: #a3afa4;
    margin-right: 6px;
  }
  .table-tag {
    border: 1px solid #e9ede7;
    border-radius: 4px;
    padding: 4px 8px;
    color: #8d988d;
    font-size: 0.875rem;
  }
  .status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
    padding: 5px 7px;
    background: #edf5ee;
    color: #6a9473;
    font-size: 0.875rem;
  }
  .status::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }
  .status.booked,
  .status.pending {
    background: #fbf5e8;
    color: #c3a05a;
  }
  .status.seated {
    background: #edf0fa;
    color: #7a8fbc;
  }
  .status.completed {
    background: #f1f2f0;
    color: #8b9489;
  }
  .status.cancelled,
  .status.no_show {
    background: #fbefec;
    color: #b77b6f;
  }
  .notes {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #a1a99e;
    font-size: 0.875rem;
  }
  .edit-button {
    border: 0;
    background: transparent;
    color: #7c907b;
    font-size: 0.875rem;
    padding: 6px 9px;
    border-radius: 5px;
  }
  .edit-button:hover {
    background: #eaf2e9;
    color: #406744;
  }
  .panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding: 17px 24px;
    font-size: 0.875rem;
    color: #9da79c;
  }
  .footer-tip {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .bottom-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #9da69c;
  }
  .bottom-note > span:first-child {
    font-size: 1.0625rem;
    color: #a5b29a;
  }
  .product-signature {
    margin-left: auto;
    font-size: 0.875rem;
  }
  .product-signature strong {
    margin-left: 6px;
    font-size: 0.875rem;
    letter-spacing: -0.5px;
    font-weight: 600;
    color: #7a8b77;
  }
  .demo-description {
    color: #a6ada7;
    font-size: 0.875rem;
    margin-top: 15px;
  }
  .empty-state {
    text-align: center;
    padding: 55px 20px;
    color: #85917e;
  }
  .empty-state > span {
    font-size: 2.1875rem;
  }
  .empty-state h3 {
    font-size: 0.9375rem;
    margin: 13px 0 9px;
    font-weight: 500;
  }
  .empty-state p {
    font-size: 0.875rem;
    color: #9ba495;
  }
  .error-banner,
  .form-error {
    color: #a04436;
    background: #fff0eb;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.875rem;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  dialog {
    border: 1px solid #e1e9df;
    border-radius: 15px;
    padding: 28px;
    max-width: 490px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 40px);
    color: #354738;
    box-shadow: 0 25px 100px #203a3029;
  }
  dialog::backdrop {
    background: #182d2766;
    backdrop-filter: blur(3px);
  }
  .dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .dialog-heading h2 {
    font-size: 1.4375rem;
    letter-spacing: -0.6px;
  }
  .dialog-description {
    margin: 12px 0 24px;
    color: #96a08f;
    font-size: 0.875rem;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .form-grid label {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 550;
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
  .optional {
    color: #9aa493;
    font-weight: 400;
  }
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    width: 100%;
    border: 1px solid #e0e6dc;
    border-radius: 6px;
    padding: 10px;
    color: #52634a;
    background: #fff;
    font-size: 1rem;
  }
  .form-grid textarea {
    resize: vertical;
  }
  .form-grid input::placeholder,
  .form-grid textarea::placeholder {
    color: #a6ada0;
  }
  .dialog-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }
  .toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #254f39;
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px;
    box-shadow: 0 8px 30px #1a332833;
    font-size: 0.875rem;
    z-index: 10;
  }
}
@layer responsive {
  @media (max-width: 900px) {
    .floor-policy {
      margin: 0;
      grid-column: 1 / -1;
    }
    .floor-room-controls {
      grid-column: 1 / -1;
      margin: 0;
    }
    .floor-inspector #floor-room-form {
      grid-column: 1 / -1;
    }
  }
  @media (min-width: 1500px) {
    main {
      padding-top: 55px;
    }
    td {
      padding-top: 23px;
      padding-bottom: 23px;
    }
  }
  @media (max-width: 1200px) {
    .sidebar {
      width: 210px;
      padding-inline: 15px;
    }
    .app-shell {
      margin-left: 210px;
    }
    main {
      padding: 30px 25px 20px;
    }
    .topbar {
      padding-inline: 25px;
    }
    .stats {
      gap: 12px;
    }
    .stat-card {
      padding: 15px;
    }
    .stat-foot {
      font-size: 0.875rem;
    }
    .toolbar {
      flex-wrap: wrap;
    }
    .notes {
      max-width: 115px;
    }
  }
  @media (max-width: 900px) {
    .sidebar {
      width: 78px;
      padding: 27px 12px;
    }
    .brand {
      font-size: 0;
      padding: 0 8px;
    }
    .brand-icon {
      flex-shrink: 0;
      margin-right: 0;
    }
    .brand-light,
    .brand i,
    .workspace,
    .nav-label,
    .sidebar-note,
    .sidebar-bottom,
    .nav-dot {
      display: none;
    }
    .nav-item {
      font-size: 0;
      justify-content: center;
      padding: 10px;
      margin-top: 45px;
    }
    .nav-icon {
      font-size: 1.5625rem;
    }
    .app-shell {
      margin-left: 78px;
    }
    .stats {
      grid-template-columns: repeat(2, 1fr);
    }
    .panel-heading {
      flex-wrap: wrap;
    }
    .stat-foot {
      font-size: 0.875rem;
    }
    .page-footer {
      padding-inline: 25px;
    }
  }
  @media (max-width: 600px) {
    .sidebar {
      display: none;
    }
    .app-shell {
      margin-left: 0;
    }
    .topbar {
      height: 62px;
      padding-inline: 18px;
    }
    .topbar-right {
      gap: 12px;
    }
    main {
      padding: 27px 16px 20px;
    }
    .page-heading {
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 24px;
    }
    .eyebrow {
      font-size: 0.875rem;
      letter-spacing: 1.3px;
    }
    h1 {
      font-size: 1.75rem;
    }
    .page-heading p {
      font-size: 0.875rem;
    }
    .page-heading .button {
      font-size: 0;
      padding: 10px;
      min-width: 40px;
    }
    .page-heading .button > span {
      font-size: 1.4375rem;
    }
    .stats {
      gap: 10px;
      margin-bottom: 20px;
    }
    .stat-card {
      padding: 13px;
    }
    .stat-top {
      font-size: 0.875rem;
    }
    .stat-number {
      font-size: 1.75rem;
    }
    .stat-foot {
      font-size: 0.875rem;
    }
    .panel-heading {
      padding: 20px 15px;
      gap: 20px;
    }
    .date-navigation {
      width: 100%;
      justify-content: space-between;
    }
    .date-label {
      flex: 1;
      justify-content: center;
    }
    .toolbar {
      padding-inline: 12px;
      gap: 12px;
    }
    .tabs {
      width: 100%;
      justify-content: space-between;
      gap: 0;
    }
    .tab {
      font-size: 0.875rem;
      padding: 8px;
    }
    .search {
      width: 100%;
    }
    .search input {
      width: 100%;
    }
    .panel-footer {
      padding: 15px;
    }
    .footer-tip,
    .product-signature {
      display: none;
    }
    .bottom-note {
      font-size: 0.875rem;
    }
    .demo-description {
      line-height: 1.6;
    }
    .page-footer {
      padding-inline: 17px;
      font-size: 0.875rem;
    }
    dialog {
      padding: 22px;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    button {
      transition:
        background-color 0.15s,
        color 0.15s;
    }
    dialog[open] {
      animation: appear 0.15s ease-out;
    }
    @keyframes appear {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}

@layer components {
  .nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #65756b;
    text-align: left;
    margin-bottom: 5px;
  }
  .nav-item:hover {
    background: #f3f7f3;
  }
  .nav-item.active {
    background: #edf5ef;
    color: var(--green);
  }
  .mobile-navigation {
    display: none;
  }
  .floor-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -12px 0 20px;
    font-size: 0.875rem;
    color: #65756b;
  }
  #floor-plan-status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #6e947a;
    border-radius: 50%;
    margin-right: 8px;
  }
  #floor-plan-status.unsaved::before {
    background: #bd8b3e;
  }
  .floor-text-button {
    color: var(--green);
    background: transparent;
    border: 0;
    padding: 10px 0;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .floor-text-button:disabled {
    color: #89968d;
    cursor: wait;
  }
  .floor-error {
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #923b2f;
    background: #fff0eb;
    border: 1px solid #eed5cd;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .floor-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
    gap: 20px;
  }
  .floor-board,
  .floor-inspector {
    background: white;
    border: 1px solid #dfe6df;
    border-radius: 12px;
    overflow: hidden;
  }
  .floor-board-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px;
  }
  .floor-board-heading h2 {
    font-size: 1.0625rem;
    overflow-wrap: anywhere;
  }
  .floor-board-heading p {
    font-size: 0.875rem;
    color: #6f7d73;
    margin-top: 7px;
  }
  .floor-board-heading p > span[aria-hidden] {
    margin: 0 7px;
    color: #a1ada3;
  }
  .floor-scale {
    color: #677c6e;
    background: #f1f5ee;
    border: 1px solid #e2e9df;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .floor-canvas {
    position: relative;
    aspect-ratio: 1000 / 640;
    margin: 0 18px;
    border: 1px solid #d6dfd3;
    border-radius: 8px;
    background-color: #f8f9f4;
    background-image: radial-gradient(#cdd8c9 0.8px, transparent 0.8px);
    background-size: 18px 18px;
    isolation: isolate;
  }
  .floor-canvas::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px solid #d9e0d3;
    border-radius: 3px;
    pointer-events: none;
    z-index: -1;
  }
  .floor-empty {
    position: absolute;
    inset: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    pointer-events: none;
    color: #6a7e65;
  }
  .floor-empty > span {
    font-size: 2.75rem;
    color: #7a9670;
    margin-bottom: 14px;
  }
  .floor-empty h3 {
    color: #3f5944;
    font-size: 1.25rem;
    font-weight: 550;
    margin-bottom: 10px;
  }
  .floor-empty p {
    max-width: 220px;
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .floor-table {
    width: 14%;
    height: 22%;
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #385741;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0;
    gap: 3px;
    touch-action: none;
    user-select: none;
    cursor: grab;
  }
  .floor-table:active {
    cursor: grabbing;
  }
  .floor-table.selected {
    background: #255f480a;
    border: 1px dashed #4e8161;
    z-index: 1;
  }
  .floor-table:focus-visible {
    outline-offset: 2px;
  }
  .floor-resize-handle {
    display: none;
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 6px;
    background: var(--green);
    box-shadow: 0 1px 4px #25472b33;
    cursor: nwse-resize;
    touch-action: none;
    z-index: 2;
  }
  .floor-resize-handle::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
  }
  .floor-table.selected .floor-resize-handle {
    display: block;
  }
  .floor-inspector label[for="floor-table-size"] {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
  }
  #floor-table-size {
    padding: 0;
    min-height: 36px;
    border: 0;
    accent-color: var(--green);
    background: transparent;
  }
  #floor-table-size-value {
    color: var(--green);
    font-variant-numeric: tabular-nums;
  }
  .floor-furniture {
    position: absolute;
    width: 72%;
    height: 72%;
    border: 1px solid #a8b99e;
    background: #e5ecd9;
    border-radius: 5px;
    z-index: -1;
    box-shadow: 0 3px 0 #b4c2a44a;
  }
  .floor-furniture::before,
  .floor-furniture::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    height: 5px;
    background: #bbcaaa;
    border-radius: 3px;
  }
  .floor-furniture::before {
    top: -9px;
  }
  .floor-furniture::after {
    bottom: -9px;
  }
  .floor-table.round .floor-furniture {
    border-radius: 50%;
  }
  .floor-table.rectangle .floor-furniture {
    width: 90%;
    height: 53%;
  }
  .floor-table.selected .floor-furniture {
    border-color: #427251;
    background: #d8e6c9;
  }
  .floor-table-name {
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.5625rem, calc(1.1vw * var(--a11y-text-factor, 1)), 0.875rem);
    font-weight: 650;
    line-height: 1.3;
  }
  .floor-table-capacity {
    font-size: clamp(0.5rem, calc(0.9vw * var(--a11y-text-factor, 1)), 0.6875rem);
    color: #617756;
  }
  .floor-canvas-help {
    font-size: 0.875rem;
    color: #72806d;
    line-height: 1.7;
    padding: 18px 22px;
  }
  .floor-inspector {
    padding: 22px;
  }
  .floor-inspector label {
    display: block;
    font-size: 0.875rem;
    font-weight: 550;
    color: #435c48;
    margin-bottom: 8px;
  }
  .floor-inspector input,
  .floor-inspector select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8e1d3;
    border-radius: 6px;
    padding: 11px 10px;
    font-size: 1rem;
    background: white;
    color: #3f5642;
  }
  .floor-inspector input:disabled,
  .floor-inspector select:disabled {
    background: #f6f8f3;
    color: #687964;
    opacity: 1;
  }
  .floor-add-section {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e6ebe2;
  }
  .floor-add-section h2,
  .floor-selection h2 {
    font-size: 0.875rem;
  }
  .floor-add-section > p {
    color: #72816b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 8px;
  }
  .floor-shapes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 16px 0 10px;
  }
  .floor-shapes button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 78px;
    padding: 12px 2px;
    border: 1px solid #dce5d6;
    border-radius: 7px;
    background: #fcfdf9;
    font-size: 0.875rem;
    color: #526c4c;
  }
  .floor-shapes button:hover {
    background: #eef4e8;
    border-color: #7e9a6e;
  }
  .floor-shapes button:disabled {
    opacity: 0.45;
    cursor: default;
  }
  .shape-preview {
    width: 24px;
    height: 24px;
    background: #e2ebd6;
    border: 1px solid #94ae80;
    border-radius: 3px;
  }
  .shape-preview.round {
    border-radius: 50%;
  }
  .shape-preview.rectangle {
    width: 32px;
    height: 20px;
    margin-block: 2px;
  }
  .floor-selection {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6ebe2;
  }
  .floor-selection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
  }
  .floor-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
    margin-top: 16px;
  }
  .floor-table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .floor-table-actions .button {
    min-height: 40px;
    font-size: 0.875rem;
  }
  .floor-remove {
    color: #9e4a3b;
    background: #fff;
    border-color: #ecd9d2;
  }
  .floor-remove:hover {
    background: #fff2eb;
  }
  .floor-selection-help,
  .floor-inspector-note {
    font-size: 0.875rem;
    color: #74816d;
    line-height: 1.8;
    margin-top: 16px;
  }
  .floor-inspector-note {
    border-top: 1px solid #e6ebe2;
    padding-top: 18px;
    margin-top: 22px;
  }
  #floor-plan-view .page-heading .button {
    font-size: 0.875rem;
    min-width: 145px;
  }
  #floor-plan-title:focus {
    outline: none;
  }
  .auth-shell {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: #f3f5ef;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow: auto;
  }
  .auth-loading-message {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.8;
  }
  .auth-loading-message .brand-icon {
    margin: 0;
  }
  .login-card {
    width: min(100%, 420px);
    background: white;
    border: 1px solid #e0e7dc;
    border-radius: 16px;
    padding: 38px;
    box-shadow: 0 20px 80px #25472b09;
  }
  .login-card .brand {
    margin-bottom: 45px;
    padding: 0;
  }
  .login-card > p {
    margin: 12px 0 26px;
    color: #7a8977;
    line-height: 1.6;
    font-size: 0.875rem;
  }
  .login-card label {
    display: grid;
    gap: 8px;
    font-size: 0.875rem;
    margin-top: 19px;
  }
  .login-card input {
    padding: 12px;
    border: 1px solid #dbe3d6;
    border-radius: 6px;
    width: 100%;
    color: #334b37;
  }
  .login-card form > .button {
    width: 100%;
    margin-top: 24px;
    font-size: 0.875rem;
  }
  .login-card .login-note {
    font-size: 0.875rem;
    margin: 25px 0 0;
    color: #929d8c;
  }
  .employee-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    max-height: 220px;
    overflow: auto;
  }
  .employee-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #edf0e9;
    padding: 12px 0;
    font-size: 0.875rem;
  }
  .employee-list li > span {
    color: #8b9983;
    font-size: 0.875rem;
  }
  .employee-list .button {
    margin-left: auto;
    padding: 6px 9px;
    font-size: 0.875rem;
    min-height: 30px;
  }
  .employee-subtitle {
    font-size: 0.875rem;
    font-weight: 550;
    margin-bottom: 20px;
  }
  .employee-help {
    font-size: 0.875rem;
    color: #8d9984;
    line-height: 1.6;
    margin-top: 15px;
  }
}
@layer responsive {
  @media (max-width: 1100px) {
    .floor-workspace {
      grid-template-columns: minmax(0, 1fr) 230px;
      gap: 14px;
    }
    .floor-inspector {
      padding: 18px;
    }
  }
  @media (max-width: 900px) {
    .nav-text {
      display: none;
    }
    .nav-item + .nav-item {
      margin-top: 10px;
    }
    .floor-workspace {
      grid-template-columns: minmax(0, 1fr);
    }
    .floor-inspector {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .floor-add-section {
      margin: 0;
      padding: 0;
      border: 0;
    }
    .floor-selection {
      grid-column: 1 / -1;
      margin: 0;
    }
    .floor-table-actions {
      grid-template-columns: 1fr 1fr;
    }
    .floor-inspector-note {
      grid-column: 1 / -1;
      margin: 0;
    }
    .floor-shapes {
      margin-top: 10px;
    }
  }
  @media (max-width: 600px) {
    .mobile-navigation {
      display: flex;
      gap: 6px;
      padding: 10px 16px;
      border-bottom: 1px solid #e0e8dc;
      background: #fff;
    }
    .mobile-navigation button {
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: #697a65;
      min-height: 44px;
      padding: 10px 16px;
      font-size: 0.875rem;
    }
    .mobile-navigation .active {
      background: #edf5ef;
      color: var(--green);
      font-weight: 600;
    }
    .floor-status-bar {
      font-size: 0.875rem;
      gap: 8px;
      margin-top: -8px;
    }
    .floor-text-button {
      font-size: 0.875rem;
      min-height: 44px;
    }
    .floor-workspace {
      gap: 16px;
    }
    .floor-board-heading {
      padding: 18px 14px;
    }
    .floor-board-heading h2 {
      font-size: 0.9375rem;
    }
    .floor-board-heading p {
      font-size: 0.875rem;
    }
    .floor-scale {
      font-size: 0.875rem;
    }
    .floor-canvas {
      margin-inline: 10px;
    }
    .floor-canvas::after {
      inset: 5px;
    }
    .floor-canvas-help {
      padding: 14px;
      font-size: 0.875rem;
    }
    .floor-furniture::before {
      top: -6px;
    }
    .floor-furniture::after {
      bottom: -6px;
    }
    .floor-furniture::before,
    .floor-furniture::after {
      height: 3px;
    }
    .floor-table {
      gap: 1px;
      min-width: 24px;
      min-height: 24px;
    }
    .floor-table-name {
      font-size: 0.625rem;
    }
    .floor-table-capacity {
      font-size: 0.5rem;
    }
    .floor-empty > span {
      font-size: 1.75rem;
      margin-bottom: 8px;
    }
    .floor-empty h3 {
      font-size: 1.0625rem;
      margin-bottom: 5px;
    }
    .floor-empty p {
      font-size: 0.875rem;
    }
    .floor-inspector {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .floor-add-section {
      padding-top: 18px;
      border-top: 1px solid #e6ebe2;
    }
    .floor-shapes button {
      font-size: 0.875rem;
      min-height: 86px;
    }
    .floor-table-actions .button {
      min-height: 44px;
    }
    #floor-plan-view .page-heading {
      flex-wrap: wrap;
    }
    #floor-plan-view .page-heading .button {
      min-height: 44px;
      width: 100%;
      font-size: 0.875rem;
    }
    .floor-table-name {
      max-width: 96%;
    }
  }
  @media (max-width: 600px) {
    .login-card {
      padding: 28px;
    }
    .login-card .brand {
      font-size: 1.8125rem;
    }
    .login-card .brand-light,
    .login-card .brand i {
      display: inline;
    }
    .topbar-right {
      gap: 7px;
    }
    .topbar-right .button {
      padding: 6px 8px;
      font-size: 0.875rem;
      min-height: 30px;
    }
    .topbar:has(#sign-out:not([hidden])) .breadcrumb,
    .topbar:has(#sign-out:not([hidden])) .demo-pill {
      display: none;
    }
    .topbar-right:has(#sign-out:not([hidden])) {
      margin-left: auto;
    }
  }
}

/* Guest profile selection and service details. */
.guest-profile-picker {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8faf6;
}
.guest-profile-picker > label {
  display: block;
  margin-bottom: 8px;
}
.guest-search-results {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
}
.guest-result {
  text-align: left;
  padding: 10px;
  border: 1px solid #dfe6dc;
  border-radius: 6px;
  background: white;
  color: #354738;
}
.guest-result:hover,
.guest-result:focus-visible {
  background: #edf5ee;
  border-color: #7da089;
}
.guest-result small {
  display: block;
  color: #73816f;
  margin-top: 4px;
}
.selected-guest-profile {
  border-top: 1px solid #dfe6dc;
  margin-top: 10px;
  padding-top: 8px;
}
#guest-profile-summary {
  line-height: 1.65;
  font-size: 0.875rem;
  white-space: pre-line;
}
.guest-profile-heading {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 5px;
}
.guest-profile-heading h3 {
  margin: 0 0 5px;
  font-size: 0.9375rem;
}
.guest-profile-heading p {
  margin: 0;
  font-size: 0.875rem;
  color: #73816f;
}
.guest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.guest-badge {
  font-size: 0.875rem;
  padding: 3px 6px;
  border-radius: 4px;
  color: #49614e;
  background: #edf2e8;
}
.guest-badge.allergy {
  color: #934f2f;
  background: #fff0e4;
}
.guest-badge.vip {
  color: #86651d;
  background: #faf0d8;
}

/* Theme controls are available before and after signing in. */
:root {
  color-scheme: light;
}
.login-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 45px;
}
.login-heading .brand {
  margin-bottom: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #dce3dd;
  border-radius: 7px;
  background: #fff;
  color: #435c48;
  font-size: 0.875rem;
  white-space: nowrap;
}
.theme-toggle:hover {
  background: #edf5ef;
}
[data-theme-icon] {
  font-size: 1.1875rem;
  line-height: 1;
}
@media (max-width: 600px) {
  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }
  [data-theme-label] {
    display: none;
  }
}

/* Evergreen surfaces, clear status colors and native dark form controls. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --green: #8bd0ac;
  --muted: #a9b9af;
  --border: #34463b;
  color: #e4eee8;
  background: #101a16;
}
[data-theme="dark"]
  :is(
    .sidebar,
    .reservation-panel,
    .stat-card,
    .floor-board,
    .floor-inspector,
    .login-card,
    dialog,
    .mobile-navigation
  ) {
  background: #19271f;
  color: #e4eee8;
  border-color: var(--border);
}
[data-theme="dark"] .auth-shell {
  background: #101a16;
}
[data-theme="dark"] .topbar {
  background: #16231ded;
  border-color: var(--border);
}
[data-theme="dark"]
  :is(.secondary, .icon-button, .today-button, .theme-toggle, .guest-result, .floor-shapes button) {
  background: #22342a;
  color: #d4e3d9;
  border-color: #42584a;
}
[data-theme="dark"]
  :is(
    .secondary,
    .icon-button,
    .today-button,
    .theme-toggle,
    .guest-result,
    .floor-shapes button
  ):hover {
  background: #304a39;
  border-color: #7aa68a;
}
[data-theme="dark"] :is(input, select, textarea),
[data-theme="dark"] :is(.form-grid, .floor-inspector, .login-card) :is(input, select, textarea) {
  color: #e4eee8;
  background: #111f17;
  border-color: #4c6353;
}
[data-theme="dark"] :is(input, textarea)::placeholder {
  color: #a3b3a9;
}
[data-theme="dark"] :is(.date-label input, .search input) {
  background: transparent;
}
[data-theme="dark"] :is(.floor-inspector input:disabled, .floor-inspector select:disabled) {
  background: #26362c;
  color: #b3c1b7;
}
[data-theme="dark"] .primary {
  color: #fff;
  background: #326f50;
}
[data-theme="dark"] .primary:hover {
  background: #3e845f;
}
[data-theme="dark"] .brand-icon {
  color: #fff;
  background: #326f50;
}
[data-theme="dark"]
  :is(.sidebar-note, .guest-profile-picker, .booking-availability, .demo-pill, .floor-scale) {
  background: #213429;
  color: #c0d1c4;
  border-color: #3c5242;
}
[data-theme="dark"] :is(.nav-item, .mobile-navigation button, .tab, .edit-button) {
  color: #c1d0c5;
}
[data-theme="dark"] :is(.nav-item:hover, .tab:hover, .edit-button:hover) {
  background: #263c2e;
  color: #d5eddc;
}
[data-theme="dark"] :is(.nav-item.active, .mobile-navigation .active, .tab.selected, .count-badge) {
  background: #2a4433;
  color: #a8dfba;
}
[data-theme="dark"]
  :is(
    .breadcrumb,
    .page-footer,
    .nav-label,
    .sidebar-note p,
    .sidebar-bottom div > span,
    .eyebrow,
    .page-heading p,
    .stat-top,
    .stat-foot,
    .panel-heading p,
    .date-label,
    .panel-footer,
    .bottom-note,
    .product-signature,
    .product-signature strong,
    .demo-description,
    .empty-state,
    .empty-state p,
    .dialog-description,
    .optional,
    .employee-help,
    .employee-list li > span,
    .floor-status-bar,
    .floor-board-heading p,
    .floor-empty,
    .floor-empty > span,
    .floor-canvas-help,
    .floor-add-section > p,
    .floor-selection-help,
    .floor-inspector-note,
    .login-card > p,
    .login-card .login-note,
    .guest-result small,
    .guest-profile-heading p
  ) {
  color: #afc0b4;
}
[data-theme="dark"] :is(.breadcrumb strong, .guest-name, .floor-empty h3, .floor-inspector label) {
  color: #e0ece3;
}
[data-theme="dark"] :is(.guest-email, .notes, .time, .party, .table-tag, th) {
  color: #b7c9bd;
}
[data-theme="dark"]
  :is(
    .workspace,
    .toolbar,
    .search,
    .panel-footer,
    .sidebar-bottom,
    .floor-policy,
    .floor-add-section,
    .floor-selection,
    .floor-inspector-note,
    .employee-list li,
    .selected-guest-profile,
    .guest-profile-heading,
    .table-tag
  ) {
  border-color: var(--border);
}
[data-theme="dark"] thead {
  background: #203328;
}
[data-theme="dark"] :is(th, td) {
  border-color: #304438;
}
[data-theme="dark"] td {
  color: #c3d2c8;
}
[data-theme="dark"] tbody tr:hover {
  background: #243b2c;
}
[data-theme="dark"] :is(.guest-avatar, .avatar, .restaurant-icon) {
  background: #344335;
  color: #d7e2cc;
  border-color: #283d2f;
  outline-color: #435b48;
}
[data-theme="dark"] .guest-avatar.tone-1 {
  background: #2c4835;
  color: #c3dfc8;
}
[data-theme="dark"] .guest-avatar.tone-2 {
  background: #3c3550;
  color: #d8cbed;
}
[data-theme="dark"] .guest-avatar.tone-3 {
  background: #2d4250;
  color: #c7dce9;
}
[data-theme="dark"] :is(.status, .mint, .guest-badge) {
  background: #2a4433;
  color: #b7e0c3;
}
[data-theme="dark"] :is(.status.booked, .status.pending, .sand, .guest-badge.vip) {
  background: #443b24;
  color: #f0d394;
}
[data-theme="dark"] .lavender {
  background: #343b55;
  color: #c8cefa;
}
[data-theme="dark"] .peach {
  background: #453328;
  color: #f0c3a5;
}
[data-theme="dark"] .status.completed {
  background: #344037;
  color: #c8d3cb;
}
[data-theme="dark"] .status.cancelled,
[data-theme="dark"] .status.no_show {
  background: #4a302c;
  color: #ffc1b5;
}
[data-theme="dark"] .guest-badge.allergy {
  background: #493425;
  color: #ffcca7;
}
[data-theme="dark"] .override-tag {
  color: #edce8c;
}
[data-theme="dark"] :is(.error-banner, .form-error, .floor-error) {
  color: #ffc1b5;
  background: #452b28;
  border-color: #87574b;
}
[data-theme="dark"] #manager-override-field {
  background: #3c3320;
  border-color: #a38649;
}
[data-theme="dark"] .floor-remove {
  color: #ffc1b5;
  background: #452b28;
  border-color: #87574b;
}
[data-theme="dark"] .floor-remove:hover {
  background: #56342f;
}
[data-theme="dark"] :is(.floor-canvas, .booking-table-map) {
  background-color: #132219;
  background-image: radial-gradient(#3e5745 0.8px, transparent 0.8px);
  border-color: #4b6552;
}
[data-theme="dark"] .floor-canvas::after {
  border-color: #344f3c;
}
[data-theme="dark"] .floor-table {
  color: #edf7e9;
}
[data-theme="dark"] .floor-table.selected {
  background: #8bd0ac12;
  border-color: #9bd6ac;
}
[data-theme="dark"] :is(.floor-furniture, .shape-preview) {
  background: #3b563c;
  border-color: #8daa83;
  box-shadow: 0 3px 0 #07120a66;
}
[data-theme="dark"] :is(.floor-furniture::before, .floor-furniture::after) {
  background: #739369;
}
[data-theme="dark"] .floor-table.selected .floor-furniture {
  background: #4d704b;
  border-color: #a4dfa3;
}
[data-theme="dark"] .floor-table-capacity {
  color: #d3e3c9;
}
[data-theme="dark"] .booking-table-map .floor-table:disabled .floor-furniture {
  background: #50392d;
  border-color: #bd947b;
}
[data-theme="dark"] .floor-resize-handle {
  background: #83c79a;
  border-color: #19271f;
}
[data-theme="dark"] .floor-resize-handle::after {
  border-color: #172b1c;
}
[data-theme="dark"] .toast {
  background: #b5ddc1;
  color: #14251b;
}
[data-theme="dark"] dialog {
  box-shadow: 0 25px 100px #0008;
}
[data-theme="dark"] dialog::backdrop {
  background: #030a07b3;
}

.booking-messages {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 8px;
}
.booking-messages h3 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.booking-messages .button {
  width: 100%;
  margin-top: 10px;
}
.booking-messages .consent,
.form-grid .consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 12px;
}
.booking-messages input[type="checkbox"],
.form-grid .consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
}
.message-status-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.message-status-list li {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px;
}
.confirmation-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.confirmation-shell .login-card {
  width: min(100%, 460px);
}
.confirmation-shell dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  font-size: 0.875rem;
  margin: 25px 0;
}
.confirmation-shell dt {
  color: var(--muted);
}
.confirmation-shell dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.confirmation-shell .button {
  width: 100%;
}

/* Safari can retain focus zoom after the small login fields are hidden. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  #login-form input {
    font-size: 1rem;
  }
}

/* Staff service controls are independent of manager layout editing. */
.service-control {
  display: block;
  max-width: 180px;
  min-height: 36px;
  margin-bottom: 4px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #fff);
}
.service-control:disabled {
  opacity: 0.55;
  cursor: wait;
}
.service-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
#service-feedback {
  margin: 0;
  font-size: 0.875rem;
  color: var(--green);
}
.table-service {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.table-service-booking {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.table-service-booking strong {
  font-size: 0.875rem;
}
.table-service-booking p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 6px 0;
}
.table-service-booking .service-control {
  width: 100%;
  max-width: none;
}
.floor-service-stage {
  position: absolute;
  top: 92%;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: clamp(0.5rem, calc(0.8vw * var(--a11y-text-factor, 1)), 0.6875rem);
  white-space: nowrap;
  background: #edf0fa;
  color: #455d91;
  pointer-events: none;
}
[data-theme="dark"] :is(.service-control, .table-service-booking) {
  background: #1b2c23;
  color: #d1e8dc;
  border-color: #4b6552;
}
@media (max-width: 600px) {
  .service-control {
    min-height: 44px;
    font-size: 1rem;
  }
  .service-feedback-bar {
    align-items: flex-start;
  }
  .service-feedback-bar .button {
    flex-shrink: 0;
  }
  .floor-service-stage {
    font-size: 0.875rem;
  }
  .table-service {
    margin: 0;
  }
}

.floor-layout-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#floor-layout-mode {
  font-size: 0.875rem;
  color: var(--muted);
}
#toggle-floor-edit[aria-pressed="true"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
#floor-canvas[data-editing="false"] .floor-table {
  cursor: pointer;
  touch-action: pan-y;
}
@media (max-width: 600px) {
  .floor-layout-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #floor-layout-mode {
    grid-column: 1 / -1;
  }
}

.move-table-button {
  display: inline-block;
  min-height: 36px;
}
@media (max-width: 600px) {
  .move-table-button {
    min-height: 44px;
  }
  #move-table-dialog .dialog-footer {
    flex-wrap: wrap;
  }
  #move-table-destination {
    font-size: 1rem;
    min-height: 44px;
  }
}

/* One palette for actual service stages on tables, status badges and legend. */
#floor-canvas .floor-table {
  transition: none;
}
:is([data-service-stage="seated"], .status.seated) {
  --service-bg: #dbeafe;
  --service-ink: #1e3a8a;
  --service-edge: #2563eb;
}
:is([data-service-stage="first_course"], .status.first_course) {
  --service-bg: #ccfbf1;
  --service-ink: #134e4a;
  --service-edge: #0f766e;
}
:is([data-service-stage="second_course"], .status.second_course) {
  --service-bg: #fef3c7;
  --service-ink: #78350f;
  --service-edge: #b7791f;
}
:is([data-service-stage="entree"], .status.entree) {
  --service-bg: #ffedd5;
  --service-ink: #7c2d12;
  --service-edge: #c2410c;
}
:is([data-service-stage="dessert"], .status.dessert) {
  --service-bg: #f3e8ff;
  --service-ink: #581c87;
  --service-edge: #9333ea;
}
[data-theme="dark"] :is([data-service-stage="seated"], .status.seated) {
  --service-bg: #172e50;
  --service-ink: #bfdbfe;
  --service-edge: #60a5fa;
}
[data-theme="dark"] :is([data-service-stage="first_course"], .status.first_course) {
  --service-bg: #123f3b;
  --service-ink: #99f6e4;
  --service-edge: #2dd4bf;
}
[data-theme="dark"] :is([data-service-stage="second_course"], .status.second_course) {
  --service-bg: #44351a;
  --service-ink: #fde68a;
  --service-edge: #fbbf24;
}
[data-theme="dark"] :is([data-service-stage="entree"], .status.entree) {
  --service-bg: #482a1c;
  --service-ink: #fed7aa;
  --service-edge: #fb923c;
}
[data-theme="dark"] :is([data-service-stage="dessert"], .status.dessert) {
  --service-bg: #382447;
  --service-ink: #e9d5ff;
  --service-edge: #c084fc;
}
.status:is(.seated, .first_course, .second_course, .entree, .dessert) {
  background: var(--service-bg);
  color: var(--service-ink);
}
#floor-canvas .floor-table[data-service-stage] {
  color: var(--service-ink);
}
#floor-canvas .floor-table[data-service-stage] .floor-furniture {
  background: var(--service-bg);
  border-color: var(--service-edge);
}
#floor-canvas .floor-table[data-service-stage] .floor-furniture::before,
#floor-canvas .floor-table[data-service-stage] .floor-furniture::after {
  background: var(--service-edge);
}
#floor-canvas .floor-table[data-service-stage] .floor-table-capacity {
  color: var(--service-ink);
}
#floor-canvas .floor-table[data-service-stage] .floor-service-stage {
  background: var(--service-bg);
  color: var(--service-ink);
  border: 1px solid var(--service-edge);
}
.floor-service-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  padding: 0 18px;
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: #526358;
}
.floor-service-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-swatch {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--service-bg, #e4ecd9);
  border: 2px solid var(--service-edge, #8ba17a);
}
[data-theme="dark"] .floor-service-legend {
  color: #bdcbbf;
}
[data-theme="dark"] .floor-service-legend li:not([data-service-stage]) .service-swatch {
  background: #3b563c;
  border-color: #8daa83;
}
@media (max-width: 600px) {
  .floor-service-legend {
    gap: 8px 12px;
    padding-inline: 14px;
    font-size: 0.875rem;
  }
}

/* Guest directory uses the existing workspace; private fields stay behind auth. */
.guest-directory-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: start;
}
.guest-directory-search,
.guest-profile-card {
  min-width: 0;
  padding: 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.guest-directory-search h2,
.guest-directory-profile-heading h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.guest-directory-search > label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
#guest-directory-query {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}
.guest-directory-results {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 8px;
  max-height: 65dvh;
  overflow-y: auto;
}
.guest-directory-results button {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 52px;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  overflow-wrap: anywhere;
}
.guest-directory-results button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--selected-bg, #edf5ef);
}
.guest-directory-results strong {
  font-size: 0.875rem;
}
.guest-directory-results span {
  font-size: 0.875rem;
  line-height: 1.6;
}
.guest-directory-profile-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.guest-directory-statistics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.guest-directory-statistics > div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
}
.guest-directory-statistics dt {
  font-size: 0.875rem;
  line-height: 1.5;
}
.guest-directory-statistics dd {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
#guest-profile-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.guest-profile-legend {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
#guest-profile-form :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}
#guest-profile-form textarea {
  resize: vertical;
  line-height: 1.6;
}
#guest-profile-form label {
  font-size: 0.875rem;
}
.guest-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.guest-recent-bookings {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.guest-recent-bookings h3 {
  font-size: 1rem;
}
.guest-recent-bookings ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: grid;
  gap: 12px;
}
.guest-recent-bookings li {
  display: grid;
  gap: 5px;
  font-size: 0.875rem;
  line-height: 1.6;
}
[data-theme="dark"] .guest-directory-results button[aria-pressed="true"] {
  background: #223a2d;
}
@media (max-width: 1100px) {
  .guest-directory-layout {
    grid-template-columns: 1fr;
  }
  .guest-directory-results {
    max-height: 32dvh;
  }
}
@media (max-width: 600px) {
  .guest-directory-search,
  .guest-profile-card {
    padding: 18px;
  }
  .guest-directory-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guest-profile-actions .button {
    width: 100%;
  }
}

[data-theme="dark"] :is(.guest-directory-search, .guest-profile-card) {
  background: #19271f;
  color: #e4eee8;
}
@media (max-width: 600px) {
  .mobile-navigation {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  #guest-profile-form .form-grid {
    grid-template-columns: 1fr;
  }
}

#guest-imports-view {
  min-width: 0;
}
.import-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.import-card {
  min-width: 0;
  padding: 26px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white, #fff);
}
.import-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.import-card-heading h2 {
  font-size: 1.125rem;
  font-weight: 600;
}
.import-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf4ee;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 650;
}
.import-description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 75ch;
}
[data-theme="dark"] .import-card {
  background: #19271f;
  color: #e4eee8;
}
[data-theme="dark"] .import-step {
  background: #294536;
  color: #b5d3bf;
}
@media (max-width: 600px) {
  .import-card {
    padding: 18px;
  }
  .import-tabs .button {
    flex: 1;
  }
  #guest-imports-view .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
}
.guest-import-setup,
.guest-import-mapping {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
#guest-imports-view label {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}
#guest-imports-view :is(input[type="file"], select) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: transparent;
  color: inherit;
}
#guest-import-progress,
#guest-import-summary {
  margin: 18px 0;
  line-height: 1.7;
}
#guest-imports-view .guest-import-select {
  display: flex;
  align-items: center;
  margin: 16px 0;
  min-height: 44px;
}
#guest-imports-view input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.guest-import-table {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.guest-import-table table {
  min-width: 650px;
  width: 100%;
  table-layout: fixed;
}
.guest-import-table th:first-child {
  width: 65px;
}
.guest-import-table th:nth-child(2) {
  width: 75px;
}
.guest-import-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.6;
}
.guest-import-table :is(td strong, td span) {
  display: block;
}
.guest-import-table td p {
  margin-top: 7px;
  white-space: pre-wrap;
}
.guest-import-table summary {
  cursor: pointer;
  text-decoration: underline;
  margin-top: 10px;
}
.guest-import-actions,
.guest-import-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .guest-import-setup,
  .guest-import-mapping {
    grid-template-columns: 1fr;
  }
  #guest-imports-view :is(input, select) {
    font-size: 1rem;
  }
  .guest-import-actions .button {
    width: 100%;
  }
  #guests-view .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.import-history {
  margin: 0 0 24px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
#guest-import-history-list,
#guest-import-undo-guests {
  list-style: none;
  padding: 0;
}
#guest-import-history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
#guest-import-history-list span {
  overflow-wrap: anywhere;
  min-width: 0;
}
#guest-import-history-list .button {
  flex-shrink: 0;
}
#guest-import-undo-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
#guest-import-undo-guests li {
  font-size: 0.875rem;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .import-history {
    padding: 12px;
  }
  #guest-import-history-list li {
    align-items: stretch;
    flex-direction: column;
  }
}

#guest-import-history-list {
  max-height: 300px;
  overflow: auto;
}

.guest-nav-group > .nav-item,
.guest-submenu > .nav-item {
  width: 100%;
}
.guest-nav-chevron {
  margin-left: auto;
  font-size: 0.875rem;
}
.guest-submenu {
  margin: 4px 0 8px 22px;
  padding-left: 9px;
  border-left: 1px solid var(--border);
}
.guest-submenu .nav-item {
  min-height: 44px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px;
  gap: 9px;
}
.nav-item.branch-active {
  color: var(--green);
}
@media (max-width: 900px) {
  .guest-nav-chevron {
    display: none;
  }
  .guest-submenu {
    margin-left: 8px;
    padding-left: 4px;
  }
  .guest-submenu .nav-item {
    padding: 10px 7px;
  }
}
@media (max-width: 600px) {
  .mobile-guest-group {
    display: contents;
  }
  .mobile-guest-submenu {
    flex-basis: 100%;
    margin-left: 16px;
    padding-left: 8px;
    border-left: 2px solid var(--border);
  }
  .mobile-navigation .branch-active {
    color: var(--green);
    font-weight: 600;
  }
}

.confirmation-request-button {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#confirmation-request-dialog {
  max-width: 560px;
}
#confirmation-request-summary,
#confirmation-request-recipient {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .confirmation-request-button {
    min-height: 44px;
  }
  #confirmation-request-dialog .dialog-footer {
    flex-wrap: wrap;
  }
  #confirmation-request-dialog .dialog-footer .button {
    flex: 1 1 100%;
    min-height: 44px;
  }
}

.reservation-confirmations {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reservation-confirmations-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.reservation-confirmations h3 {
  margin: 0;
  font-size: 0.875rem;
}
.reservation-confirmations .employee-help {
  margin: 8px 0;
}
@media (max-width: 600px) {
  .reservation-confirmations {
    padding: 16px;
  }
  .reservation-confirmations-heading {
    flex-wrap: wrap;
  }
  #request-booked-confirmations {
    width: 100%;
    min-height: 44px;
  }
}

.toast {
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  #feedback-dialog :is(input, select, textarea) {
    font-size: 1rem;
  }
  #feedback-dialog .button,
  #feedback-close {
    min-height: 44px;
  }
}

.reservation-heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#reservation-import-view td {
  vertical-align: top;
  white-space: normal;
  min-width: 70px;
  max-width: 380px;
  overflow-wrap: anywhere;
}
#reservation-import-view td p {
  white-space: pre-wrap;
  margin: 8px 0;
}
#reservation-import-view td select {
  display: block;
  max-width: 320px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .reservation-heading-actions {
    width: 100%;
  }
  .reservation-heading-actions .button {
    width: 100%;
    min-height: 44px;
  }
  #reservation-import-view :is(input, select) {
    font-size: 1rem;
  }
}
#reservation-import-view label {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}
#reservation-import-view :is(input[type="file"], input[type="date"], select) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: transparent;
  color: inherit;
}
#reservation-import-view h2 {
  margin-bottom: 14px;
  font-size: 1.125rem;
}
#reservation-import-view .table-scroll {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
#reservation-import-view table {
  min-width: 650px;
  table-layout: fixed;
}
#reservation-import-view th:first-child {
  width: 75px;
}
#reservation-import-view td {
  font-size: 0.875rem;
  line-height: 1.6;
}
#reservation-import-view summary {
  cursor: pointer;
  text-decoration: underline;
  line-height: 1.6;
}
@media (max-width: 600px) {
  #reservation-import-view .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  #reservation-import-back {
    width: 100%;
    min-height: 44px;
  }
  #reservation-import-view :is(input, select) {
    font-size: 1rem;
  }
}

/* On-plan table details stay separate from the draggable table buttons. */
.floor-quick-edit {
  position: absolute;
  transform: translate(-50%, -150%);
  z-index: 3;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  background: var(--white, #fff);
  cursor: pointer;
}
.floor-inline-editor {
  position: absolute;
  z-index: 5;
  width: min(280px, 100%);
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #8aa592;
  border-radius: 12px;
  background: #fff;
  color: #27352d;
  box-shadow: 0 8px 30px #0003;
}
.floor-inline-editor label {
  display: block;
  margin: 8px 0 4px;
  font-size: 0.875rem;
}
.floor-inline-editor :is(input, select) {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #bac9ba;
  border-radius: 5px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: inherit;
}
.floor-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.floor-inline-actions .button {
  flex: 1;
  min-height: 44px;
}
[data-theme="dark"] :is(.floor-inline-editor, .floor-quick-edit) {
  background: #1c3024;
  color: #e1eee5;
  border-color: #8dbd9e;
}
[data-theme="dark"] .floor-inline-editor :is(input, select) {
  background: #132219;
  border-color: #58765f;
}

.floor-group-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0 18px 14px;
  font-size: 0.875rem;
}
.floor-group-tools .button {
  min-height: 44px;
}
.floor-group-seats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0 18px 14px;
  font-size: 0.875rem;
}
.floor-group-seats input {
  width: 6rem;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}
.floor-group-seats .button {
  min-height: 44px;
}
#floor-group-seats-help {
  color: var(--muted);
}
[data-theme="dark"] .floor-group-seats input {
  background: #111f17;
  border-color: #4c6353;
}
#floor-multiselect[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.floor-marquee {
  position: absolute;
  pointer-events: none;
  border: 1px solid #438c68;
  background: #438c6825;
  z-index: 4;
}
#floor-canvas[data-editing="true"] {
  touch-action: none;
}
/* Larger text can wrap without squeezing date and navigation controls. */
.date-label input {
  width: 10rem;
  min-width: 0;
}
.tabs {
  flex-wrap: wrap;
}
.page-heading {
  flex-wrap: wrap;
}
.topbar {
  min-height: 83px;
  height: auto;
  padding-block: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .topbar {
    min-height: 62px;
    padding-block: 10px;
  }
  .date-navigation {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .date-label {
    flex: 1;
  }
  .tabs {
    justify-content: flex-start;
    gap: 4px;
  }
  .bottom-note {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .page-heading .button {
    font-size: 0.875rem;
  }
}
.booking-pos {
  border-block: 1px solid var(--border);
  padding-block: 20px;
}
.pos-check {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.pos-check h4 {
  margin: 0;
  font-size: 1rem;
}
.pos-check > p,
#guest-pos-spending p {
  margin: 10px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.pos-check-items {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pos-check-items li,
.pos-check-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.pos-check-items li > span:last-child,
.pos-check-totals dd {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.pos-check-totals {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.pos-check-totals dd {
  margin: 0;
}
.pos-check-totals > div:last-child {
  font-weight: 650;
}
#pos-link-area {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#pos-link-area select {
  font-size: 1rem;
}
#guest-pos-spending {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
#guest-pos-spending h3 {
  margin: 0;
  font-size: 1rem;
}
.booking-pos {
  min-width: 0;
}
#pos-link-area select {
  min-width: 0;
  max-width: 100%;
}

.customer-booking-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.customer-booking-panel h2 {
  font-size: 1rem;
}
.customer-booking-panel p {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.customer-booking-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.customer-booking-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.875rem;
}
.customer-booking-link input {
  min-width: 0;
  flex: 1 1 240px;
  border: 1px solid var(--border);
  padding: 11px;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}
.customer-booking-panel details {
  font-size: 0.875rem;
}
.customer-booking-panel summary {
  cursor: pointer;
}
[data-theme="dark"] .customer-booking-panel {
  background: #1c2a21;
}
@media (max-width: 600px) {
  .customer-booking-link input,
  .customer-booking-link button {
    width: 100%;
    flex-basis: 100%;
  }
}
/* Manager restaurant profile */
.restaurant-info-card {
  padding: 26px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.restaurant-info-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.restaurant-info-card .form-grid {
  margin-top: 22px;
}
#restaurant-info-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.restaurant-hours-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 100px 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.restaurant-hours-row label {
  min-width: 0;
  margin: 0;
}
.restaurant-hours-row input[type="time"] {
  width: 100%;
  min-width: 0;
}
.restaurant-publish {
  margin-top: 24px;
}
.restaurant-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}
.restaurant-photo-slot {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}
.restaurant-photo-slot h3 {
  font-size: 1rem;
}
.restaurant-photo-slot :is(img, canvas) {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #f0f4ef;
}
.restaurant-photo-slot input {
  max-width: 100%;
}
.restaurant-photo-slot label {
  min-width: 0;
}
.restaurant-info-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
}
#restaurant-info-form {
  max-width: 1000px;
}
[data-theme="dark"] .restaurant-info-card {
  background: #19271f;
}
[data-theme="dark"] .restaurant-photo-slot :is(img, canvas) {
  background: #263c2e;
}
@media (max-width: 600px) {
  .restaurant-info-card {
    padding: 18px;
  }
  .restaurant-hours-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .restaurant-photo-grid {
    grid-template-columns: 1fr;
  }
  .restaurant-info-actions .button {
    flex: 1 1 auto;
  }
}
:is(#restaurant-info-form, #booking-page-form) label {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 550;
}
:is(#restaurant-info-form, #booking-page-form) :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #e0e6dc;
  border-radius: 6px;
  background: #fff;
  color: #52634a;
  font-size: 1rem;
}
#restaurant-info-form .consent {
  display: flex;
  align-items: center;
  gap: 8px;
}
#restaurant-info-form .consent input {
  width: auto;
}
:is(#restaurant-info-form, #booking-page-form) textarea {
  resize: vertical;
}
[data-theme="dark"] :is(#restaurant-info-form, #booking-page-form) :is(input:not([type="checkbox"]), select, textarea) {
  background: #122018;
  color: #dce8df;
  border-color: #3d5546;
}
.restaurant-day {
  border: 0;
  padding: 8px 0;
  margin-top: 16px;
  min-width: 0;
}
.restaurant-day legend {
  font-size: 1rem;
  font-weight: 650;
}
.restaurant-day .restaurant-hours-row strong {
  font-size: 0.875rem;
  font-weight: 550;
}
.reservation-services {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.service-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-choices .selected {
  background: #e5f1e8;
  border-color: #91b29c;
  color: #255f48;
}
[data-theme="dark"] .reservation-services {
  background: #19271f;
}
[data-theme="dark"] .service-choices .selected {
  background: #2d4c3a;
  color: #d6efdd;
  border-color: #75a486;
}
@media (max-width: 600px) {
  .reservation-services {
    padding: 16px;
  }
  .service-choices {
    width: 100%;
  }
  .service-choices button {
    flex: 1 1 auto;
  }
}

.restaurant-hours-template {
  min-width: 0;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.restaurant-hours-template > legend,
.restaurant-hours-days legend {
  font-weight: 650;
}
.restaurant-hours-days {
  min-width: 0;
  margin: 18px 0;
  padding: 0;
  border: 0;
}
.restaurant-hours-days > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}
#restaurant-info-form .restaurant-hours-days .consent {
  min-height: 44px;
}
.restaurant-hours-shortcuts {
  align-items: center;
}
.restaurant-weekly-title {
  margin-top: 28px;
  font-size: 1rem;
}

#booking-controls-status:not(.sr-only) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}
.service-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.service-booking-error {
  flex-basis: 100%;
}
.floor-room-bookings {
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .service-actions {
    width: 100%;
  }
  .service-actions .service-choices {
    width: auto;
    flex: 1 1 auto;
  }
}

#table-blocks-dialog {
  max-width: 600px;
}
#table-blocks-fields {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.table-blocks-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  max-height: 280px;
  overflow: auto;
}
.table-blocks-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
#block-selected-table {
  width: 100%;
  margin-bottom: 8px;
}
#table-blocks-form .form-grid label {
  min-width: 0;
}
#table-block-table {
  min-width: 0;
}
.table-blocks-list li span {
  overflow-wrap: anywhere;
}

#floor-canvas[data-multi-select="true"] {
  touch-action: none;
}
.table-block-choices {
  max-height: 180px;
  overflow: auto;
  margin-top: 12px;
}
.table-block-choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.table-block-choices input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
}
#table-block-selection summary {
  cursor: pointer;
  padding-block: 8px;
}

/* Full workspace reservation editor. */
.reservation-editor {
  max-width: 1200px;
  margin-inline: auto;
}
.reservation-editor h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}
.reservation-editor-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.reservation-editor-card {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.reservation-editor-card > h2 {
  margin: 0 0 24px;
  font-size: 1.2rem;
}
.reservation-editor-extras {
  margin-top: 24px;
}
.reservation-editor .dialog-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.reservation-editor .dialog-heading {
  gap: 20px;
}
@media (max-width: 900px) {
  .reservation-editor-columns {
    grid-template-columns: 1fr;
  }
  .reservation-editor-card {
    padding: 18px;
  }
  .reservation-editor .dialog-heading {
    align-items: start;
    flex-direction: column;
  }
}

[data-theme="dark"] .reservation-editor :is(.reservation-editor-card, .dialog-footer) {
  background: #19271f;
}

.table-block-weekdays {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.table-block-weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.table-block-weekday-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-block-weekday-options input {
  width: auto;
  flex-shrink: 0;
}

/* Keep generated employee IDs inside the fixed sidebar. */
.sidebar-bottom > div {
  min-width: 0;
  flex: 1;
}
.sidebar-bottom strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom > .avatar {
  flex-shrink: 0;
}
.employee-list li > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace-options {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.workspace-options .button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.timeline-switch {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
}
.timeline-switch [aria-pressed="true"] {
  background: var(--accent, #326e50);
  color: #fff;
}
#reservation-timeline {
  overflow: auto;
  max-height: 70vh;
  border-block: 1px solid var(--border, #496052);
}
.timeline-grid {
  position: relative;
  min-width: 100%;
}
.timeline-row {
  display: flex;
  border-bottom: 1px solid var(--border, #496052);
}
.timeline-label {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: 0 0 150px;
  padding: 1rem;
  box-sizing: border-box;
  background: #f5f8f4;
  color: #25302d;
}
.timeline-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f5f8f4;
}
.timeline-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 48px;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 59px,
    #82958a33 59px,
    #82958a33 60px
  );
}
.timeline-hour {
  position: absolute;
  padding: 0.7rem 0.4rem;
  white-space: nowrap;
}
.timeline-room {
  position: sticky;
  left: 0;
  width: fit-content;
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}
.timeline-booking,
.timeline-block {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.timeline-booking {
  height: 36px;
  min-width: 0;
  border: 1px solid #668c74;
  border-radius: 5px;
  background: #cddbd0;
  color: #17281e;
  padding: 0.3rem 0.6rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  z-index: 2;
}
.timeline-booking.stage-seated {
  background: #b6d5f8;
}
.timeline-booking.stage-first_course {
  background: #9ee5d6;
}
.timeline-booking.stage-second_course {
  background: #f2dc95;
}
.timeline-booking.stage-entree {
  background: #f5c099;
}
.timeline-booking.stage-dessert {
  background: #dcc0f5;
}
.timeline-booking.stage-completed {
  opacity: 0.65;
}
.timeline-booking:focus-visible {
  outline: 3px solid #d99b60;
  outline-offset: 2px;
}
.timeline-block {
  inset-block: 0;
  background: repeating-linear-gradient(
    135deg,
    #bc864333 0,
    #bc864333 8px,
    #bc864355 8px,
    #bc864355 16px
  );
  color: inherit;
  font-size: 0.75rem;
  padding: 0.2rem;
}
.timeline-now {
  position: absolute;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: #3fce7c;
  pointer-events: none;
  z-index: 4;
}

[data-theme="dark"] :is(.timeline-label, .timeline-header) {
  background: #19271f;
  color: #e4eee8;
}

.reservation-attention {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid #c18b43;
  border-radius: 10px;
  background: #fff8e9;
  color: #654713;
}
.reservation-attention > summary {
  cursor: pointer;
  font-weight: 650;
  line-height: 1.6;
}
#reservation-attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow: auto;
}
#reservation-attention-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 14px 0;
  border-top: 1px solid #c18b4355;
}
#reservation-attention-list li > :not(button) {
  grid-column: 1;
  overflow-wrap: anywhere;
}
#reservation-attention-list button {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
}
.attention-reason {
  font-size: 0.875rem;
}
.attention-actions,
#attention-pagination {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
[data-theme="dark"] .reservation-attention {
  background: #302b1d;
  color: #efcc8e;
}
@media (max-width: 600px) {
  #reservation-attention-list li {
    grid-template-columns: minmax(0, 1fr);
  }
  #reservation-attention-list button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

.waitlist-party {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.waitlist-party .button {
  margin: 0.25rem 0.5rem 0.25rem 0;
}
.waitlist-party p {
  white-space: pre-wrap;
}
#regulars-form label,
#regulars-consent-form label {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
#regulars-consent-form label.consent {
  display: flex;
}
#regulars-form input,
#regulars-form textarea,
#regulars-consent-form input:not([type="checkbox"]),
#regulars-consent-form textarea {
  width: 100%;
}
:where(#waitlist-view, #regulars-view) input:not([type="checkbox"]),
:where(#waitlist-view, #regulars-view) textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #e0e6dc;
  border-radius: 6px;
  background: #fff;
  color: #52634a;
  font-size: 1rem;
}
[data-theme="dark"]
  :where(#waitlist-view, #regulars-view)
  :is(input:not([type="checkbox"]), textarea) {
  background: #122018;
  color: #dce8df;
  border-color: #3d5546;
}
:where(#waitlist-view, #regulars-view) .consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
  margin: 1rem 0;
}
:where(#waitlist-view, #regulars-view) .consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--green);
}
@media (max-width: 600px) {
  #waitlist-form .form-grid {
    grid-template-columns: 1fr;
  }
  #waitlist-view .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  #waitlist-view .page-heading .button {
    width: 100%;
  }
}

/* Compact restaurant settings; native summaries support touch and keyboard browsing. */
.restaurant-info-section > summary {
  cursor: pointer;
  display: list-item;
  padding: 4px 0;
}
.restaurant-info-section > summary h2 {
  display: inline;
  margin: 0;
  font-size: 1.15rem;
}
.restaurant-info-section > summary::marker {
  color: var(--green);
}
.restaurant-info-section > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
  border-radius: 4px;
}
.restaurant-info-section-content {
  padding-top: 18px;
}
.restaurant-info-section:not([open]) {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .restaurant-info-section > summary {
    padding: 10px 0;
  }
}

.restaurant-info-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-weight: 600;
}
.restaurant-info-jump select {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
  background: var(--surface, transparent);
  border: 1px solid currentColor;
  border-radius: 6px;
}

.review-filters,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}
.review-filters label {
  flex: 1 1 160px;
}
#restaurant-reviews :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}
#restaurant-reviews option {
  color: #25302d;
  background: #fff;
}
.review-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.review-item label {
  display: block;
  margin-top: 16px;
}
.review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.review-item h3 {
  overflow-wrap: anywhere;
}

.diner-review-card {
  width: min(100%, 640px);
}
.diner-review-card fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
  min-width: 0;
}
.diner-review-rating {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.diner-review-rating legend {
  margin-bottom: 12px;
}
.diner-review-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.diner-review-card :is(input[type="radio"], input[type="checkbox"]) {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.diner-review-star {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  flex: 0 1 44px;
  min-width: 36px;
  cursor: pointer;
}
.diner-review-card .diner-review-star input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.diner-review-star svg {
  width: 36px;
  height: 36px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  pointer-events: none;
}
.diner-review-star[data-filled="true"] svg {
  fill: #f5bd42;
  stroke: #9b6a05;
}
.diner-review-star input:focus-visible + svg {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}
.diner-review-star input:disabled {
  cursor: default;
}
@media (forced-colors: active) {
  .diner-review-star[data-filled="true"] svg { fill: Highlight; stroke: CanvasText; }
}
.diner-review-card textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 8px 0;
}
.diner-review-consent {
  margin: 18px 0;
}

#restaurant-account h3 {
  margin-top: 24px;
}
#restaurant-account p {
  margin: 12px 0;
}
#restaurant-account label {
  display: block;
  margin: 16px 0;
}
#account-confirmation {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}
#restaurant-account .account-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#account-understand {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--green);
}

/* Native HH:mm values remain form data; these visible controls always use AM/PM. */
.time-input-value {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}
.time-input-controls {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  gap: 6px;
  min-width: 0;
}
#restaurant-info-form .time-input-controls select,
.time-input-controls select {
  width: 0;
  min-width: 0;
  flex: 1;
  padding-inline: 4px;
}
.time-input-controls select {
  appearance: none;
  text-align: center;
}
.time-input-controls select:last-child {
  flex: 1.3;
}

.time-input-colon {
  align-self: center;
  flex: none;
}

@media (max-width: 600px) {
  #reservation-form label:has(> input[type="time"]) {
    grid-column: 1 / -1;
  }
}

#reservation-taker {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

#reservation-form .time-input-controls {
  display: none;
}

#reservation-arrival-slot option[data-limited="true"],
#reservation-arrival-slot.arrival-limit-reached,
.arrival-limit-legend {
  color: #b42318;
  font-weight: 600;
}
[data-theme="dark"] #reservation-arrival-slot option[data-limited="true"],
[data-theme="dark"] #reservation-arrival-slot.arrival-limit-reached,
[data-theme="dark"] .arrival-limit-legend {
  color: #ffaaa2;
}

.booking-table-map .floor-table.suggested {
  outline: 2px dashed var(--green);
  outline-offset: 4px;
  background: #255f481a;
}

#guest-manual-tags {
  margin-block: 1.5rem;
}
#guest-manual-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
#guest-manual-tag-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}
#guest-manual-tag-list span,
#guest-manual-tag-status {
  overflow-wrap: anywhere;
}

.booking-hold {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: rgba(125, 170, 145, 0.15);
  border: 1px solid var(--border, #b2c9bd);
  margin-block: 1rem;
}
.booking-information {
  margin-block: 1.5rem;
}
.booking-information p,
.booking-information-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.booking-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1rem;
}
.booking-card > .experience-public {
  padding: 0;
  width: 100%;
}

#booking-page-fields {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 0;
  margin: 20px 0 0;
  border: 0;
}
#booking-page-fields .button {
  max-width: 100%;
  white-space: normal;
}
/* Long payment-mode labels must not widen an open mobile settings section. */
#deposit-policy-fields {
  min-width: 0;
}
#deposit-policy-fields > label {
  display: grid;
  min-width: 0;
}
#deposit-mode {
  width: 100%;
  min-width: 0;
}

/* Shared plate-and-glass mark; independent of page-specific header colors. */
.brand-icon { background: transparent url("/assets/brand-mark.svg") center / contain no-repeat !important; padding: 0 !important; border-radius: 22%; letter-spacing: normal; flex-shrink: 0; }

/* Contact gating is independent of table availability and in-flight saves. */
#reservation-contact-gate { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Native easyres Diner: blue, independent of restaurant/staff branding. */
:root[data-easyres-app="diner"] {
  color-scheme: light;
  --page: #f3f7fd;
  --panel: #ffffff;
  --ink: #182d4b;
  --muted: #526783;
  --line: #ccd9ec;
  --accent: #1c4fab;
  --green: #1c4fab;
  --background: #f3f7fd;
  --surface: #ffffff;
  --text: #182d4b;
  --border: #ccd9ec;
  --diner-button: #1c4fab;
  --diner-soft: #e1ecfc;
}
:root[data-easyres-app="diner"][data-theme="dark"] {
    color-scheme: dark;
    --page: #0d192b;
    --panel: #152740;
    --ink: #eaf2ff;
    --muted: #b1c5df;
    --line: #354e70;
    --accent: #8fc4ff;
    --green: #8fc4ff;
    --background: #0d192b;
    --surface: #152740;
    --text: #eaf2ff;
    --border: #354e70;
    --diner-button: #245bb5;
    --diner-soft: #203b60;
}
@media (prefers-color-scheme: dark) {
  :root[data-easyres-app="diner"]:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d192b;
    --panel: #152740;
    --ink: #eaf2ff;
    --muted: #b1c5df;
    --line: #354e70;
    --accent: #8fc4ff;
    --green: #8fc4ff;
    --background: #0d192b;
    --surface: #152740;
    --text: #eaf2ff;
    --border: #354e70;
    --diner-button: #245bb5;
    --diner-soft: #203b60;
  }
}

html[data-easyres-app="diner"] {
  color: var(--ink);
  background: var(--page);
  accent-color: var(--accent);
}
html[data-easyres-app="diner"] .secondary {
  color: var(--accent); background: var(--panel); border-color: var(--line);
}
