:root {
  --paper: #f6f6ef;
  --surface: #fff;
  --ink: #152e24;
  --muted: #53675d;
  --green: #173b2e;
  --line: #dce3da;
  --soft: #e8f1e8;
  --accent: #b76032;
  --radius: 14px;
  --shadow: 0 12px 40px #102b1810;
  color-scheme: light;
  font:
    16px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.07rem;
}
p,
small {
  color: var(--muted);
}
main {
  min-width: 0;
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
  border: 1px solid #bac8bd;
  border-radius: 8px;
  color: var(--ink);
  background: white;
}
input[type="checkbox"] {
  width: 20px;
  min-height: auto;
  height: 20px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
}
legend {
  font-weight: 700;
  padding: 0 0.4rem;
}
form {
  display: grid;
  gap: 0.9rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid #98702f;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.brand-link {
  text-decoration: none;
  display: inline-flex;
}
.mark {
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.mark > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--green);
  color: #ffeacf;
  border-radius: 10px;
  font-family: Georgia, serif;
}
.mark.mini {
  font-size: 1.07rem;
}
.mark.mini > span {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
  color: #426452;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.66rem 1rem;
  min-height: 44px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  white-space: normal;
}
.button:hover {
  filter: brightness(1.12);
}
.button.outline {
  color: var(--green);
  border-color: #aebfb1;
  background: transparent;
}
.button.ghost,
.button.link {
  color: var(--green);
  background: var(--soft);
}
.button.link {
  background: none;
  text-decoration: underline;
}
.wide {
  width: 100%;
}
.inline {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.inline label {
  flex: 1;
  min-width: 100px;
}
.inline .button {
  width: auto;
}
.loading,
.empty {
  padding: 2.6rem 1rem;
  text-align: center;
  color: var(--muted);
}
.empty h1,
.loading h1 {
  margin-bottom: 1rem;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: min(500px, 92vw);
  width: max-content;
  font-size: 0.9rem;
}
.toast.error {
  background: #8b392e;
}
.chip,
.badge {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  border-radius: 999px;
  background: #e8eee4;
  color: #395447;
  font-size: 0.73rem;
  font-weight: 750;
  padding: 0.28rem 0.56rem;
}
.badge[data-kind="submitted"],
.badge[data-kind="preparing"] {
  background: #fcebd6;
  color: #774015;
}
.badge[data-kind="ready"],
.badge[data-kind="served"] {
  background: #d9efde;
  color: #215535;
}
.badge[data-kind="rejected"],
.badge[data-kind="voided"] {
  background: #f8e1dd;
  color: #8c392f;
}
.badge[data-kind="locked"] {
  background: #e9e5f4;
  color: #50466a;
}
.home-header,
.home-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1360px;
  margin: auto;
  padding: 18px 5%;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  max-width: 1360px;
  margin: auto;
  background: #e6ecdf;
}
.home-copy {
  padding: clamp(2rem, 8vw, 7.5rem) 11%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.4rem;
}
.home-copy h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
}
.home-copy em {
  font-weight: 400;
  color: #407258;
}
.home-copy p:not(.eyebrow) {
  max-width: 29ch;
}
.home-photo {
  background: #b99c72 url(/assets/hero.webp) center/cover no-repeat;
  min-height: 300px;
}
.home-features {
  max-width: 1360px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 5%;
}
.home-features p {
  margin-top: 0.5rem;
}
.home-foot {
  border-top: 1px solid var(--line);
}
.access {
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.access-card {
  margin-top: 1.6rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 5vw, 2rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.google {
  color: #1c63c4;
  font-weight: 850;
}
.staff-top,
.guest-head {
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 4%;
  border-bottom: 1px solid var(--line);
}
.staff-context {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  max-width: 45vw;
}
.staff-context select {
  min-width: 0;
  text-overflow: ellipsis;
  font-weight: 650;
}
.staff-layout {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  max-width: 1560px;
  margin: auto;
}
.staff-layout > aside {
  min-height: calc(100vh - 66px);
  background: #edf1e9;
  border-right: 1px solid var(--line);
  padding: 1.4rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.staff-layout > aside p {
  font-size: 0.85rem;
  padding: 0.4rem;
}
.staff-layout nav {
  display: grid;
  gap: 0.4rem;
}
.staff-layout nav button,
.staff-layout nav a,
.guest-tabs button,
.pills button {
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  padding: 0.72rem 0.7rem;
  border-radius: 7px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.staff-layout nav [aria-current],
.pills [aria-pressed="true"],
.guest-tabs [aria-current] {
  background: var(--green);
  color: white;
}
.workspace {
  padding: clamp(1rem, 3vw, 2.6rem);
  width: 100%;
  max-width: 1365px;
  margin: auto;
}
.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.workspace-head h1 {
  margin: 0.25rem 0 0.45rem;
}
.head-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}
.stats > div,
.table-card,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 0;
}
.stats small {
  display: block;
}
.stats b {
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  letter-spacing: -0.04em;
}
.work-section {
  margin: 1.4rem 0;
}
.work-section h2 {
  margin-bottom: 0.65rem;
}
.tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0.7rem;
}
.table-title,
.table-actions,
.table-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.table-actions,
.table-metrics {
  margin-top: 0.85rem;
}
.attention {
  display: grid;
  gap: 0.5rem;
}
.attention-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  text-align: left;
  min-height: 44px;
  color: inherit;
  font-size: 0.9rem;
}
.attention-row span {
  color: var(--muted);
}
.kitchen-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.kitchen-board > section {
  background: #edf1e9;
  border-radius: var(--radius);
  padding: 0.75rem;
  min-height: 180px;
}
.kitchen-board h2 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.ticket {
  margin-bottom: 0.65rem;
}
.ticket h3,
.ticket-note {
  margin: 0.55rem 0;
}
.ticket .wide {
  margin-top: 0.7rem;
}
.ticket-note {
  background: #fcf0de;
  padding: 0.5rem;
  border-radius: 6px;
}
.settings-tabs {
  margin-bottom: 1rem;
}
.config-card {
  margin-bottom: 1rem;
}
.config-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  min-height: 43px;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child {
  border-bottom: 0;
}
.line small {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}
.ticket-line {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.ticket-line .line {
  border: 0;
}
.bill-panel {
  padding-top: 1rem;
}
.bill-panel h3,
.bill-panel > .button {
  margin-bottom: 0.65rem;
}
.card.pos-row {
  margin: 0.5rem 0;
  display: grid;
  gap: 0.5rem;
  background: #f8fbf6;
}
.recipe-row {
  margin: 0.6rem 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.table-code {
  display: block;
  text-align: center;
  background: #ebf3e7;
  font-size: 2.6rem;
  letter-spacing: 0.16em;
  border-radius: 8px;
  padding: 0.8rem;
  margin: 1rem 0;
}
.qr-print {
  text-align: center;
}
.qr-print img {
  display: block;
  width: min(260px, 100%);
  margin: 0.8rem auto;
}
.guest-shell {
  padding-bottom: 155px;
}
.guest-head {
  height: 62px;
}
.guest-main {
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
}
.guest-intro {
  padding: 1.7rem 0 1.2rem;
}
.guest-intro h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0.25rem 0;
}
.guest-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.pills {
  display: flex;
  gap: 0.4rem;
  overflow: auto;
  padding: 0.3rem 0.2rem 0.55rem;
  scrollbar-width: thin;
}
.pills button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.dish {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.dish img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  object-fit: cover;
  display: block;
  background: #e9ebdb;
}
.dish-copy {
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
  min-height: 160px;
  align-content: start;
}
.dish h2 {
  font-size: 1.13rem;
}
.dish p {
  font-size: 0.84rem;
}
.dish small {
  font-size: 0.72rem;
  font-weight: 750;
}
.dish-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
  gap: 0.35rem;
}
.add,
.stepper button,
.icon-button {
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green);
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 800;
}
.add {
  background: var(--green);
  color: white;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.guest-bottom {
  position: fixed;
  z-index: 6;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem max(1rem, calc((100vw - 968px) / 2))
    max(0.75rem, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px #173b2e10;
}
.guest-bottom .wide {
  justify-content: space-between;
}
.guest-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.guest-actions .button {
  flex: 1;
}
.session-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted);
}
.round {
  margin: 0.75rem 0;
}
.round header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: #fbefdd;
  padding: 0.8rem;
  border-radius: 9px;
  margin: 0.6rem 0;
}
.notice.success {
  background: #e1f0df;
}
dialog {
  max-width: min(570px, calc(100% - 1.4rem));
  width: 100%;
  max-height: calc(100% - 1.5rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 16px 70px #122d2550;
}
dialog::backdrop {
  background: #102a22a0;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.modal-head h2 {
  font-size: 1.35rem;
}
.modal-head ~ p,
dialog form p {
  margin-bottom: 0.65rem;
}
dialog .line {
  margin-bottom: 0.35rem;
}
@media (max-width: 880px) {
  .staff-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .staff-layout > aside {
    min-height: 0;
    padding: 0.4rem 0.65rem;
    border: 0;
    overflow: auto;
  }
  .staff-layout nav {
    display: flex;
  }
  .staff-layout > aside p {
    display: none;
  }
  .staff-top {
    padding: 0.5rem 0.65rem;
  }
  .workspace-head {
    align-items: start;
    flex-direction: column;
  }
  .kitchen-board {
    grid-template-columns: 1fr;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 530px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .home-copy {
    padding: 2.5rem 6%;
  }
  .home-photo {
    min-height: 250px;
  }
  .home-features {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .staff-top {
    flex-wrap: wrap;
  }
  .staff-context {
    order: 3;
    max-width: none;
    width: 100%;
  }
  .staff-context select {
    flex: 1;
  }
  .workspace {
    padding: 1rem 0.7rem;
  }
  .stats > div,
  .card,
  .table-card {
    padding: 0.7rem;
  }
  .stats {
    gap: 0.35rem;
  }
  .stats small {
    font-size: 0.7rem;
  }
  .tables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .table-actions .button {
    padding: 0.5rem;
    min-height: 44px;
  }
  .card h2 {
    font-size: 1.1rem;
  }
  .guest-main {
    padding: 0 0.75rem;
  }
  .dish-copy {
    padding: 0.65rem;
    min-height: 162px;
  }
  .dish h2 {
    font-size: 1rem;
  }
  .dish p {
    font-size: 0.8rem;
  }
  .dish-foot {
    flex-wrap: wrap;
  }
  .guest-actions .button {
    font-size: 0.8rem;
  }
  .notice .button {
    width: 100%;
  }
  .menu-grid {
    gap: 0.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
@media print {
  body > #app,
  body > .skip,
  body > .toast,
  .modal-head,
  dialog .button {
    display: none !important;
  }
  dialog[open] {
    position: static;
    max-height: none;
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    margin: auto;
  }
  dialog::backdrop {
    background: none;
  }
  .qr-print img {
    width: 230px;
  }
}
.customize {
  min-height: 44px;
  padding: 0.3rem 0.4rem;
  background: transparent;
  color: var(--green);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.78rem;
}
.photo-preview {
  width: 170px;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: 9px;
}

/* Service actions and the tenant website workspace */
.toast {
  top: max(0.65rem, env(safe-area-inset-top));
  bottom: auto;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.toast.dialog-toast {
  position: sticky;
  top: 0.25rem;
  transform: none;
  margin: 0.3rem auto;
  max-width: 100%;
}
.button.seat-action {
  background: #245442;
  color: white;
}
.button.clean-action {
  background: #264d6a;
  color: white;
}
.button.service-action {
  background: #403b73;
  color: white;
}
.button.danger-action {
  background: #8b392e;
  color: white;
}
.service-tag,
.kitchen-tag {
  display: inline-block;
  border-radius: 0.4rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0.1rem;
}
.service-tag {
  color: #3f3068;
  background: #ebe5fa;
}
.kitchen-tag {
  color: #164d38;
  background: #dcefe4;
}
.guest-marker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.35rem;
}
.guest-marker strong {
  font-family: monospace;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}
.guest-wait {
  font-size: 0.85rem;
  margin: 0.25rem 0.35rem;
}
#guest-connection {
  background: #f8e7bc;
  padding: 0.55rem 0.75rem;
  margin: 0.45rem 0;
  border-radius: 0.45rem;
}
.bill-summary {
  margin-bottom: 0.6rem;
}
.device-list {
  padding: 0.6rem 0;
}
.device-list h3 {
  margin: 0;
}
.cms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1rem;
}
.cms-editor .pills {
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}
.cms-editor,
.cms-preview {
  min-width: 0;
}
.cms-preview .preview-frame {
  background: #eceee9;
  margin: 0.6rem auto;
  width: 100%;
  border-radius: 0.7rem;
  overflow: hidden;
}
.preview-frame.phone {
  max-width: 390px;
}
.cms-preview iframe {
  width: 100%;
  display: block;
  border: 1px solid #d8ded6;
  height: 560px;
  background: white;
}
.cms-preview h2,
.cms-editor h3 {
  margin: 0.45rem 0;
}
.cms-colours,
.cms-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
}
.cms-hours {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.cms-hours > b {
  grid-column: 1/-1;
}
.cms-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
}
.cms-section-row label {
  margin: 0;
}
.cms-section-row > div {
  display: flex;
  gap: 0.15rem;
}
.cms-section-row button,
.cms-gallery-edit .inline button {
  min-width: 44px;
  min-height: 44px;
}
.cms-head .head-actions {
  align-items: center;
  flex-wrap: wrap;
}
.cms-thumb {
  max-width: 100%;
  max-height: 6rem;
  border-radius: 0.5rem;
  object-fit: contain;
}
.cms-gallery-edit,
.cms-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 134px), 1fr));
  gap: 0.5rem;
}
.cms-gallery-edit img,
.cms-library img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 0.4rem;
}
.cms-image-edit,
.cms-library figure {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0.45rem;
  border-radius: 0.45rem;
}
.cms-library figure {
  margin: 0;
}
.billing-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-workspace {
  max-width: 1210px;
  margin: auto;
}
.admin-workspace h1,
.admin-workspace section,
.admin-workspace .card {
  margin-bottom: 0.8rem;
}
.admin-restaurant {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}
dialog,
.card,
.line,
.table-card,
.table-actions {
  min-width: 0;
}
.attention-row span,
.line small,
.staff-context select,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 1060px) {
  .cms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 550px) {
  .billing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cms-head .head-actions .button {
    flex: 1 1 auto;
  }
  .cms-preview iframe {
    height: 440px;
  }
}
@media (max-width: 370px) {
  .guest-main {
    padding-bottom: 1rem;
  }
  .guest-actions .button {
    white-space: normal;
  }
  .table-actions {
    gap: 0.3rem;
    flex-wrap: wrap;
  }
}
