:root {
  --paper: #e3dacb;
  --ink: #1d1b14;
  --line: #1d1b1433;
  --soft: #f0e9dd;
  --muted: #625d52;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border-radius: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 38px;
  line-height: 1.12;
}
h3 {
  font-size: 28px;
}
em {
  font-weight: 400;
}
.masthead,
main,
footer {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.wordmark {
  font: 32px/1 var(--serif);
  text-decoration: none;
}
.wordmark span {
  font: 10px var(--sans);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-top: 8px;
}
.masthead > div {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.environment {
  color: var(--muted);
}
main {
  min-height: 75vh;
  padding: 60px 0 80px;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.login {
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 0 50px;
}
.login > p {
  margin-top: 24px;
}
.login form {
  margin-top: 36px;
}
.login h1 {
  font-size: 70px;
}
.login .primary {
  margin-top: 24px;
  width: 100%;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
input,
textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  background: transparent;
  border: 1px solid #1d1b1466;
  border-radius: 0;
  margin-top: 7px;
  min-height: 47px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.help,
.quiet {
  font-size: 12px;
  color: var(--muted);
}
.help {
  display: block;
  margin-top: 7px;
}
.quiet {
  max-width: 650px;
  margin-top: 18px;
}
.primary,
.secondary,
.text-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background: transparent;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary span {
  margin-left: 22px;
}
.secondary:hover,
.small-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.text-button {
  border-color: transparent;
  border-bottom: 1px solid var(--ink);
  padding-inline: 0;
}
.small-button {
  padding: 6px 12px;
  min-height: 40px;
  font-size: 12px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}
.sections {
  display: flex;
  gap: 38px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 46px;
  overflow: auto;
}
.sections button {
  flex-shrink: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  background: transparent;
}
.sections button[aria-pressed='true'] {
  border-color: var(--ink);
}
.sections button span {
  margin-left: 6px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}
.section-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
}
.general-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.category {
  padding-top: 32px;
}
.category-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 25px;
  margin-bottom: 20px;
}
.category-head input {
  font: 30px var(--serif);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}
.check input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ink);
}
.item {
  border-top: 1px solid var(--line);
}
.item[open] {
  background: #f0e9dd66;
}
.item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 20px 12px;
  list-style: none;
  min-height: 64px;
}
.item summary::-webkit-details-marker {
  display: none;
}
.item summary:after {
  content: '+';
  font-size: 24px;
}
.item[open] summary:after {
  content: '−';
}
.item-title {
  font: 25px/1.15 var(--serif);
  flex: 1;
}
.item-price {
  font-size: 14px;
  white-space: nowrap;
}
.item.archived {
  opacity: 0.6;
}
.badge {
  font: 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-left: 8px;
}
.item-body {
  padding: 10px 20px 24px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.item-body .actions {
  margin-top: 20px;
  gap: 18px;
}
.photo-field {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.photo-field img {
  width: 90px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.photo-field input {
  padding: 6px;
  max-width: 100%;
  font-size: 12px;
  min-height: 40px;
}
.category-foot {
  padding: 18px 0 30px;
}
.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  margin-top: 30px;
  z-index: 3;
}
.save-bar strong {
  font-size: 13px;
  font-weight: 500;
}
.status {
  margin-top: 24px;
  max-width: 800px;
  overflow-wrap: anywhere;
}
.status.error {
  border-left: 2px solid #8a392a;
  padding-left: 14px;
}
.notice {
  font-size: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.empty {
  padding: 50px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.request {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.request-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.request-top h3 {
  font-size: 30px;
}
.request .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.request .reason {
  margin-top: 16px;
  max-width: 600px;
}
.request .actions {
  margin-top: 18px;
}
.state {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.service-grid article {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.service-grid p,
.service-grid a {
  font-size: 14px;
}
.service-grid p {
  margin: 16px 0;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 10px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .masthead {
    padding-block: 20px;
  }
  .masthead > div {
    font-size: 12px;
  }
  .environment {
    display: none;
  }
  main {
    padding-top: 36px;
  }
  .login h1 {
    font-size: 60px;
  }
  .page-heading {
    align-items: center;
  }
  .page-heading h1 {
    font-size: 46px;
  }
  .sections {
    gap: 26px;
    margin-bottom: 32px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  h2 {
    font-size: 32px;
  }
  .general-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .general-grid label:first-child {
    max-width: 160px;
  }
  .category-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .category-head input {
    font-size: 30px;
  }
  .category-head .actions {
    gap: 6px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .item-body {
    padding: 8px 12px 24px;
  }
  .item summary {
    padding-inline: 0;
    gap: 10px;
  }
  .item-title {
    font-size: 24px;
  }
  .item-price {
    font-size: 13px;
  }
  .badge {
    display: block;
    margin: 4px 0 0;
  }
  .photo-field {
    align-items: flex-start;
    flex-direction: column;
  }
  .save-bar .primary {
    padding-inline: 14px;
    font-size: 13px;
  }
  .save-bar .primary span {
    display: none;
  }
  .save-bar strong {
    font-size: 12px;
  }
  .request-top {
    align-items: flex-start;
  }
  .request-top h3 {
    font-size: 27px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid article {
    padding-top: 20px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

select {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid #1d1b1466;
  min-height: 47px;
  margin-top: 7px;
  border-radius: 0;
}
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.category.archived {
  opacity: 0.65;
}

/* Preserve the editorial staff layout while making recovery actions legible on a phone. */
.conflict {
  border-color: #8a392a;
  background: var(--soft);
  margin-top: 24px;
}
.conflict h3 {
  font-size: 28px;
  line-height: 1.2;
}
.conflict p {
  margin: 12px 0 18px;
}
.conflict .actions {
  gap: 12px;
}
.history-tools {
  margin: 20px 0;
}
.history-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--soft);
  margin-top: 20px;
}
.history-panel .section-heading {
  margin-bottom: 14px;
}
.history-panel p {
  font-size: 13px;
  color: var(--muted);
}
.history-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.history-panel li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.history-panel .secondary {
  font-size: 12px;
  flex-shrink: 0;
}
.item,
.category {
  scroll-margin-top: 24px;
}
.item-body input:focus,
.item-body textarea:focus,
.item-body select:focus {
  scroll-margin-block: 90px;
}
.save-bar {
  box-shadow: 0 -8px 16px var(--paper);
}
@media (max-width: 700px) {
  .history-panel {
    padding: 18px;
  }
  .history-panel li {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .conflict .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .item-body .actions .small-button {
    min-width: 44px;
    min-height: 44px;
  }
  .history-panel .section-heading {
    flex-direction: row;
    align-items: center;
  }
  .history-panel h3 {
    font-size: 26px;
  }
}

.translation-editor {
  margin-top: 20px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.translation-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.translation-language {
  min-width: 0;
}
.translation-language h4 {
  font: 24px var(--serif);
  margin: 0 0 16px;
}
.translation-language label + label {
  margin-top: 16px;
}
.translation-fields textarea {
  min-height: 140px;
}
.allergen-editor {
  border: 1px solid var(--line);
  margin: 24px 0;
  padding: 18px;
}
.allergen-editor legend {
  font-size: 13px;
  padding-inline: 8px;
}
.allergen-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-block: 20px;
}
.allergen-options .check {
  align-items: flex-start;
  font-size: 12px;
  gap: 9px;
}
.allergen-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  font-size: 11px;
}
.allergen-editor > a {
  font-size: 12px;
}
.allergen-options input {
  margin-top: 3px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .translation-fields,
  .allergen-options {
    grid-template-columns: 1fr;
  }
  .translation-editor > .secondary {
    width: 100%;
    font-size: 12px;
    padding-inline: 9px;
  }
  .allergen-editor {
    padding: 14px;
  }
  .translation-fields textarea {
    min-height: 95px;
  }
}

/* v0.5 — service agenda. The menu editor keeps its fields and recovery controls. */
:root {
  --serif: Georgia, 'Times New Roman', serif;
  --good: #31574c;
  --good-bg: #e4ebe3;
  --wait: #805421;
  --wait-bg: #eee3cc;
  --alert: #8a392a;
  --alert-bg: #f0dfd7;
}
button,
input,
textarea,
select {
  touch-action: manipulation;
}
.wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
}
.masthead {
  padding-block: 20px;
}
main {
  padding-top: 36px;
}
.page-heading {
  margin-bottom: 25px;
  gap: 20px;
}
.page-heading h1 {
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-intro {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.sections {
  margin-bottom: 32px;
  gap: 32px;
}
.sections button {
  padding: 13px 0;
  font-size: 14px;
}
.nav-count:empty {
  display: none;
}
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.section-heading h2 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}
.section-heading {
  margin-bottom: 24px;
}
.booking-section-heading .actions {
  flex-shrink: 0;
}
.booking-section-heading .primary,
.booking-section-heading .secondary {
  font-size: 13px;
}
.booking-section-heading p {
  font-size: 14px;
}
.demo-strip {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  padding: 12px 15px;
  background: #f0e9dd88;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.demo-strip > span:last-child {
  color: var(--muted);
}
.demo-dot {
  width: 6px;
  height: 6px;
  background: var(--wait);
  border-radius: 50%;
  flex-shrink: 0;
}
.booking-date-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.date-navigation {
  display: grid;
  grid-template-columns: 44px minmax(140px, 190px) 44px auto;
  align-items: end;
  gap: 9px;
}
.icon-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}
.icon-control:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.date-control {
  min-width: 0;
}
.date-control > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.date-control input {
  height: 46px;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  font-size: 15px;
  background: var(--soft);
  border-color: var(--line);
}
.date-navigation > .secondary {
  height: 46px;
  font-size: 12px;
  border-color: var(--line);
}
.date-title {
  font: 22px/1.4 var(--serif);
  text-transform: capitalize;
}
.booking-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f0e9dd66;
  margin-bottom: 28px;
}
.booking-summary article {
  padding: 20px 23px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.booking-summary article:last-child {
  border: 0;
}
.booking-summary article > span {
  font-size: 12px;
  display: block;
}
.booking-summary strong {
  display: block;
  font: 42px/1.25 var(--serif);
  margin-block: 9px 5px;
  font-variant-numeric: tabular-nums;
}
.booking-summary small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  line-height: 1.6;
}
.booking-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
.booking-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(145px, 1fr) minmax(155px, 1fr);
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.booking-filters label {
  font-size: 11px;
  min-width: 0;
  color: var(--muted);
  font-weight: 400;
}
.booking-filters input,
.booking-filters select {
  font-size: 13px;
  min-height: 45px;
  padding: 10px 11px;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  margin-top: 6px;
  min-width: 0;
}
.booking-filters input::placeholder {
  color: #787064;
}
.view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
}
.view-switch button {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 37px;
  border: 0;
  background: transparent;
}
.view-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 17px;
  min-height: 23px;
}
.results-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.booking-results[aria-busy='true'] {
  opacity: 0.65;
}
.loading-bookings {
  font-size: 13px;
  padding: 45px 20px;
  color: var(--muted);
  background: #f0e9dd55;
  text-align: center;
  border-block: 1px solid var(--line);
}
.agenda-group {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  padding-top: 19px;
  margin-top: 19px;
  border-top: 1px solid var(--line);
}
.agenda-group:first-child {
  margin-top: 0;
}
.agenda-time {
  padding-top: 14px;
}
.agenda-time strong {
  font: 24px/1.3 var(--serif);
  display: block;
}
.agenda-time small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
}
.agenda-rows {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.reservation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 150px 20px;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: #f0e9dd66;
  border: 1px solid var(--line);
  min-width: 0;
}
.reservation-row:hover {
  background: var(--soft);
  border-color: #1d1b1480;
}
.reservation-row:focus-visible {
  outline-offset: 2px;
}
.reservation-row > span {
  min-width: 0;
}
.row-time {
  display: none;
}
.row-name {
  font: 20px/1.35 var(--serif);
  display: block;
  overflow-wrap: anywhere;
}
.row-meta {
  display: block;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 5px;
}
.row-guests {
  font-size: 11px;
  display: flex;
  gap: 5px;
  align-items: baseline;
  white-space: nowrap;
}
.row-guests strong {
  font: 24px/1.25 var(--serif);
}
.row-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 11px;
  line-height: 1.5;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #e3dacb66;
  color: var(--muted);
}
.state-pill[data-state='pending'] {
  background: var(--wait-bg);
  border-color: #80542144;
  color: var(--wait);
}
.state-pill[data-state='confirmed'] {
  background: var(--good-bg);
  border-color: #31574c44;
  color: var(--good);
}
.state-pill[data-state='rejected'],
.state-pill[data-state='cancelled'] {
  background: #e6dfd5;
}
.presence-tag {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.row-arrow {
  font-size: 20px;
  text-align: right;
}
.list-view {
  display: grid;
  gap: 8px;
}
.list-view .reservation-row {
  grid-template-columns: 70px minmax(0, 1fr) 74px 150px 20px;
}
.list-view .row-time {
  display: block;
  font: 20px/1.3 var(--serif);
}
.empty-board {
  border: 1px solid var(--line);
  background: #f0e9dd66;
  padding: 48px 30px;
  text-align: center;
}
.empty-board .empty-mark {
  font: 40px/1 var(--serif);
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}
.empty-board h3 {
  font-size: 24px;
  line-height: 1.35;
}
.empty-board p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 470px;
  margin: 12px auto 20px;
}
.empty-board .secondary {
  font-size: 12px;
}
.booking-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  font-size: 12px;
}
.booking-pagination .secondary {
  font-size: 12px;
}
.inline-alert {
  border-left: 2px solid var(--alert);
  background: var(--alert-bg);
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.75;
  margin-block: 16px;
  overflow-wrap: anywhere;
}
.inline-alert .text-button {
  min-height: 37px;
  padding-block: 6px;
  font-size: 12px;
  margin-top: 5px;
}
.inline-alert p {
  margin: 0;
}
.inline-alert p + p {
  margin-top: 8px;
}
dialog#reservation-dialog {
  width: min(760px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 18px 70px #1d1b1433;
}
#reservation-dialog::backdrop {
  background: #1d1b1480;
  backdrop-filter: blur(3px);
}
.reservation-dialog-shell {
  padding: 22px 32px 30px;
}
.reservation-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 22px;
}
.reservation-dialog-header .eyebrow {
  margin: 0;
  font-size: 10px;
}
.reservation-dialog-header .icon-control {
  border: 0;
  font-size: 28px;
}
.reservation-dialog-shell > h2 {
  font-size: 33px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.dialog-subtitle {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-block: 9px 21px;
}
.detail-badges {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-service {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
  gap: 20px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
  margin: 0 0 23px;
}
.detail-service dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-service dd {
  font: 23px/1.35 var(--serif);
  margin: 0;
}
.detail-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-block: 22px;
}
.detail-contacts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-contacts dd {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-note {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.8;
  margin-block: 18px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
}
.detail-actions button {
  font-size: 12px;
  gap: 10px;
}
.attendance-actions {
  margin-top: 23px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.attendance-actions h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.attendance-actions .actions {
  gap: 9px;
}
.attendance-actions button {
  font-size: 12px;
}
.attendance-actions p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}
.action-reason-form {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.action-reason-form label {
  font-size: 12px;
}
.action-reason-form .actions {
  margin-top: 14px;
  gap: 12px;
}
.action-reason-form button {
  font-size: 12px;
}
.detail-secondary {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.detail-secondary summary {
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
  line-height: 1.7;
}
.detail-secondary h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.history-list > li {
  padding: 10px 0 10px 15px;
  border-left: 1px solid var(--line);
  position: relative;
}
.history-list > li:before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  left: -3px;
  top: 18px;
  border-radius: 50%;
  background: var(--muted);
}
.history-list strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.history-list time,
.history-list small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  line-height: 1.65;
}
.history-list p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 5px;
}
.notification-row {
  font-size: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.notification-row .help {
  font-size: 11px;
}
.notification-row button {
  font-size: 11px;
  flex-shrink: 0;
}
.dialog-feedback {
  background: var(--good-bg);
  border-left: 2px solid var(--good);
  font-size: 12px;
  line-height: 1.75;
  padding: 12px 14px;
  margin-block: 14px;
}
.required-help {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.reservation-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 22px;
}
.reservation-form-grid label {
  font-size: 12px;
}
.reservation-form-grid .wide {
  grid-column: 1/-1;
}
.reservation-form-grid input,
.reservation-form-grid select {
  font-size: 16px;
  background: transparent;
  min-width: 0;
}
.reservation-form-grid input[aria-invalid='true'] {
  border-color: var(--alert);
}
.dialog-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.dialog-form-actions button {
  font-size: 12px;
}
.availability-hint {
  font-size: 12px;
  line-height: 1.8;
  padding: 12px 14px;
  border: 1px solid var(--line);
  margin-top: 18px;
}
.availability-hint strong {
  font-weight: 500;
}
.availability-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.availability-options button {
  font-size: 12px;
  min-height: 39px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
}
.availability-options button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.settings-form {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px 50px;
  align-items: start;
}
.settings-intro {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.settings-intro .eyebrow {
  font-size: 10px;
  margin-bottom: 14px;
}
.settings-intro h3 {
  font-size: 24px;
  line-height: 1.35;
}
.settings-intro p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 13px;
}
.settings-fields {
  padding-top: 23px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.settings-fields label {
  font-size: 12px;
}
.settings-fields textarea {
  max-width: 500px;
  font-size: 15px;
  line-height: 1.7;
}
.settings-fields .help {
  font-size: 11px;
}
.weekday-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.weekday-fieldset legend {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}
.weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 19px;
}
.weekday-options .check {
  font-size: 12px;
}
.settings-save {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.settings-save .primary {
  font-size: 13px;
}
#settings-conflict {
  grid-column: 1/-1;
}
.service-secondary {
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}
.service-secondary h3 {
  font-size: 23px;
  line-height: 1.4;
}
.service-secondary p {
  font-size: 13px;
  line-height: 1.8;
}
.status:empty {
  display: none;
}
.status:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  margin: 0;
  width: min(620px, calc(100% - 36px));
  padding: 13px 17px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 25px #1d1b1420;
  font-size: 13px;
  line-height: 1.7;
  pointer-events: none;
}
.status.error {
  border-left: 3px solid var(--alert);
  background: var(--soft);
  color: var(--ink);
}
@media (max-width: 1050px) {
  .booking-toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .booking-filters {
    width: 100%;
    flex-basis: 100%;
  }
  .view-switch {
    margin-left: auto;
  }
  .booking-section-heading {
    align-items: flex-start;
  }
  .booking-summary article {
    padding: 18px;
  }
  .settings-form {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 27px 35px;
  }
  .reservation-row {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 60px 130px 18px;
  }
  .list-view .reservation-row {
    grid-template-columns: 65px minmax(0, 1fr) 60px 130px 18px;
  }
}
@media (max-width: 700px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .masthead {
    padding-block: 18px;
  }
  .wordmark {
    font-size: 29px;
  }
  main {
    padding-top: 28px;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 34px;
    line-height: 1.2;
  }
  .page-intro {
    font-size: 12px;
    max-width: 235px;
    line-height: 1.75;
  }
  .page-heading .eyebrow {
    font-size: 10px;
  }
  .page-heading #logout {
    font-size: 12px;
    min-height: 40px;
  }
  .sections {
    gap: 26px;
    margin-bottom: 27px;
  }
  .sections button {
    font-size: 12px;
    min-height: 48px;
    white-space: nowrap;
  }
  .nav-count {
    min-width: 21px;
    height: 21px;
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 26px;
    line-height: 1.35;
  }
  .booking-section-heading {
    gap: 20px;
  }
  .booking-section-heading .actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }
  .booking-section-heading button {
    font-size: 12px;
    padding-inline: 12px;
    gap: 8px;
  }
  .booking-section-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .demo-strip {
    font-size: 11px;
    margin-bottom: 23px;
    padding: 11px 12px;
    gap: 6px 9px;
  }
  .demo-strip > span:last-child {
    flex-basis: 100%;
    padding-left: 15px;
    line-height: 1.75;
  }
  .booking-date-bar {
    gap: 16px;
    margin-bottom: 21px;
  }
  .date-navigation {
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 38px auto;
    gap: 7px;
  }
  .date-navigation .icon-control {
    width: 38px;
    min-width: 38px;
    height: 45px;
  }
  .date-navigation .secondary {
    height: 45px;
    font-size: 11px;
    padding-inline: 12px;
  }
  .date-control input {
    font-size: 14px;
    height: 45px;
  }
  .date-control > span {
    font-size: 10px;
  }
  .date-title {
    font-size: 20px;
    line-height: 1.5;
  }
  .booking-summary {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 23px;
  }
  .booking-summary article {
    padding: 15px 16px;
  }
  .booking-summary article:nth-child(2) {
    border-right: 0;
  }
  .booking-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .booking-summary article > span {
    font-size: 11px;
  }
  .booking-summary strong {
    font-size: 34px;
    margin-block: 6px 4px;
  }
  .booking-summary small {
    font-size: 10px;
  }
  .booking-filters {
    grid-template-columns: 1fr 1fr;
    gap: 15px 12px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .booking-filters label {
    font-size: 10px;
  }
  .booking-filters input,
  .booking-filters select {
    font-size: 12px;
    min-height: 44px;
    padding-inline: 9px;
  }
  .booking-toolbar {
    gap: 15px;
    margin-bottom: 18px;
  }
  .view-switch {
    margin-left: 0;
  }
  .view-switch button {
    min-height: 36px;
    font-size: 11px;
    padding-inline: 14px;
  }
  .results-heading {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
  }
  .results-heading > span {
    font-size: 10px;
  }
  .agenda-group {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 17px;
    margin-top: 20px;
  }
  .agenda-time {
    padding-top: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .agenda-time strong {
    font-size: 22px;
  }
  .agenda-time small {
    font-size: 10px;
    margin: 0;
  }
  .agenda-rows {
    gap: 9px;
  }
  .reservation-row {
    grid-template-columns: minmax(0, 1fr) auto 17px;
    gap: 9px 12px;
    padding: 15px 13px;
  }
  .row-name {
    font-size: 18px;
    line-height: 1.4;
  }
  .row-meta {
    font-size: 10px;
    margin-top: 4px;
  }
  .row-guests {
    font-size: 10px;
    justify-self: end;
    white-space: nowrap;
  }
  .row-guests strong {
    font-size: 22px;
  }
  .row-arrow {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 18px;
  }
  .row-state {
    grid-column: 1/3;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .state-pill {
    font-size: 10px;
    padding: 3px 7px;
  }
  .presence-tag {
    font-size: 10px;
  }
  .list-view .reservation-row {
    grid-template-columns: 47px minmax(0, 1fr) auto 15px;
    gap: 8px 10px;
  }
  .list-view .row-time {
    font-size: 17px;
  }
  .list-view .row-state {
    grid-column: 2/4;
  }
  .list-view .row-arrow {
    grid-column: 4;
  }
  .empty-board {
    padding: 35px 18px;
  }
  .empty-board h3 {
    font-size: 22px;
  }
  .empty-board p {
    font-size: 12px;
  }
  .booking-pagination {
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .booking-pagination .secondary {
    padding-inline: 12px;
    font-size: 11px;
  }
  .inline-alert {
    font-size: 12px;
    padding: 12px 13px;
  }
  dialog#reservation-dialog {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .reservation-dialog-shell {
    padding: 14px 20px 23px;
  }
  .reservation-dialog-header {
    padding-bottom: 11px;
    margin-bottom: 19px;
  }
  .reservation-dialog-shell > h2 {
    font-size: 27px;
    line-height: 1.35;
  }
  .dialog-subtitle {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 18px;
  }
  .detail-service {
    grid-template-columns: 1.2fr 0.8fr 0.6fr;
    gap: 13px;
    padding-block: 17px;
  }
  .detail-service dt {
    font-size: 10px;
  }
  .detail-service dd {
    font-size: 19px;
  }
  .detail-contacts {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-block: 18px;
  }
  .detail-contacts dt {
    font-size: 10px;
  }
  .detail-contacts dd {
    font-size: 14px;
  }
  .detail-actions {
    gap: 9px;
    padding-top: 17px;
    margin-top: 20px;
  }
  .detail-actions button {
    font-size: 11px;
    padding-inline: 12px;
    gap: 8px;
  }
  .attendance-actions {
    padding: 15px;
  }
  .attendance-actions h3 {
    font-size: 17px;
  }
  .attendance-actions button {
    font-size: 11px;
    padding-inline: 11px;
  }
  .attendance-actions p {
    font-size: 10px;
  }
  .reservation-form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .reservation-form-grid .wide {
    grid-column: auto;
  }
  .reservation-form-grid label {
    font-size: 12px;
  }
  .required-help {
    font-size: 10px;
  }
  .dialog-form-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .dialog-form-actions .primary {
    width: 100%;
  }
  .dialog-form-actions .text-button {
    align-self: flex-start;
  }
  .notification-row {
    align-items: flex-start;
  }
  .notification-row button {
    font-size: 10px;
    min-height: 40px;
  }
  .settings-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-intro {
    padding-top: 21px;
  }
  .settings-intro h3 {
    font-size: 23px;
  }
  .settings-intro p {
    font-size: 12px;
  }
  .settings-fields {
    border: 0;
    padding-top: 0;
    gap: 18px;
  }
  .settings-fields textarea {
    max-width: none;
  }
  .settings-save {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .settings-save .primary {
    width: 100%;
  }
  .service-secondary {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .service-secondary h3 {
    font-size: 22px;
  }
  .status:not(:empty) {
    font-size: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }
  .login h1 {
    font-size: 46px;
    line-height: 1.2;
  }
  .login .primary {
    font-size: 13px;
  }
  .primary span {
    margin-left: 8px;
  }
}
@media (max-width: 360px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-intro {
    font-size: 11px;
  }
  .sections {
    gap: 20px;
  }
  .sections button {
    font-size: 11px;
  }
  .booking-section-heading .actions {
    grid-template-columns: 1fr;
  }
  .booking-section-heading .actions .secondary {
    justify-self: start;
  }
  .booking-summary article {
    padding-inline: 13px;
  }
  .booking-summary small {
    font-size: 9px;
  }
  .date-navigation {
    grid-template-columns: 34px minmax(0, 1fr) 34px auto;
    gap: 5px;
  }
  .date-navigation .icon-control {
    width: 34px;
    min-width: 34px;
  }
  .date-navigation .secondary {
    padding-inline: 9px;
  }
  .date-control input {
    padding-inline: 7px;
    font-size: 13px;
  }
  .booking-filters {
    gap: 13px 9px;
  }
  .booking-filters select {
    font-size: 11px;
    padding-inline: 6px;
  }
  .reservation-dialog-shell {
    padding-inline: 16px;
  }
  .reservation-dialog-shell > h2 {
    font-size: 24px;
  }
  .detail-service dd {
    font-size: 17px;
  }
  .detail-service {
    gap: 10px;
  }
  .list-view .reservation-row {
    grid-template-columns: 42px minmax(0, 1fr) auto 12px;
    gap: 8px;
  }
  .row-name {
    font-size: 17px;
  }
}
body.dialog-open {
  overflow: hidden;
}
.turns-overview {
  margin-block: 0 28px;
}
.turns-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.turns-heading h3 {
  font-size: 21px;
  line-height: 1.4;
}
.turns-heading p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}
.service-occupancy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.turn-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--soft);
  min-width: 0;
}
.turn-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
}
.turn-card h4 {
  font: 22px/1.35 var(--serif);
  margin: 0;
}
.turn-card-heading > span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.turn-figures {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 12px;
}
.turn-figures strong {
  font: 29px/1.3 var(--serif);
}
.turn-figures strong > span {
  font: 13px var(--sans);
  color: var(--muted);
}
.turn-remaining {
  font-size: 12px;
  color: var(--good);
}
.turn-full .turn-remaining {
  color: var(--alert);
}
.turn-meter {
  height: 4px;
  background: #1d1b1418;
  margin-block: 14px 10px;
  overflow: hidden;
}
.turn-meter span {
  display: block;
  height: 100%;
  background: var(--good);
}
.turn-full .turn-meter span {
  background: var(--wait);
}
.turn-card small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.service-turn-editor {
  border: 1px solid var(--line);
  background: #f0e9dd66;
  padding: 18px;
  margin-bottom: 17px;
}
.service-turn-editor h4 {
  font: 20px/1.4 var(--serif);
  margin: 0;
}
.service-turn-editor .turn-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.service-turn-editor .text-button {
  font-size: 11px;
  min-height: 36px;
}
.turn-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.turn-editor-grid > label:first-child,
.turn-editor-grid > .turn-slots {
  grid-column: 1/-1;
}
.turn-editor-grid input,
.turn-editor-grid textarea {
  min-width: 0;
  font-size: 14px;
}
.turn-editor-grid .help {
  font-size: 10px;
}
.availability-service-name {
  font-weight: 500;
  margin-bottom: 5px;
}
.availability-hint p + p {
  margin-top: 8px;
}
.availability-service-remaining {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.availability-options button:disabled {
  cursor: default;
  opacity: 0.4;
}
@media (max-width: 700px) {
  .turns-heading {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 13px;
  }
  .turns-heading h3 {
    font-size: 20px;
  }
  .turns-heading p {
    font-size: 10px;
  }
  .service-occupancy {
    gap: 12px;
  }
  .turn-card {
    padding: 14px;
  }
  .turn-card-heading {
    flex-direction: column;
    gap: 4px;
  }
  .turn-card h4 {
    font-size: 19px;
  }
  .turn-card-heading > span {
    font-size: 10px;
  }
  .turn-figures {
    flex-direction: column;
    gap: 3px;
    margin-top: 11px;
  }
  .turn-figures strong {
    font-size: 26px;
  }
  .turn-figures strong > span {
    font-size: 11px;
  }
  .turn-remaining {
    font-size: 11px;
  }
  .turn-card small {
    font-size: 9px;
  }
  .turn-meter {
    margin-block: 12px 8px;
  }
  .turns-overview {
    margin-bottom: 24px;
  }
  .service-turn-editor {
    padding: 15px;
  }
  .turn-editor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .turn-editor-grid > label:nth-child(4) {
    grid-column: 1/-1;
    max-width: 160px;
  }
  .turn-editor-grid input {
    font-size: 16px;
  }
  .service-turn-editor h4 {
    font-size: 19px;
  }
  .service-turn-editor .turn-editor-heading {
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .service-occupancy {
    grid-template-columns: 1fr;
  }
  .turn-card-heading {
    flex-direction: row;
  }
  .turn-figures {
    flex-direction: row;
    align-items: baseline;
  }
  .turn-card small {
    font-size: 10px;
  }
}
/* Keep the daily work above decorative introductions and feedback in its own space. */
main {
  padding-top: 24px;
}
.page-heading h1 {
  font-size: 36px;
}
.page-heading {
  margin-bottom: 18px;
}
.page-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
.page-intro {
  font-size: 12px;
  margin-top: 6px;
}
.masthead {
  padding-block: 16px;
}
.sections {
  margin-bottom: 23px;
}
.sections button {
  padding-block: 11px;
}
.section-heading h2 {
  font-size: 27px;
}
.booking-section-heading {
  margin-bottom: 18px;
}
.booking-section-heading p {
  font-size: 13px;
}
.demo-strip {
  padding: 9px 13px;
  font-size: 11px;
  margin-bottom: 19px;
}
.booking-date-bar {
  margin-bottom: 18px;
}
.booking-summary article {
  padding: 13px 19px;
}
.booking-summary article > span {
  font-size: 11px;
}
.booking-summary strong {
  font-size: 34px;
  line-height: 1.2;
  margin-block: 6px 4px;
}
.booking-summary small {
  font-size: 10px;
}
.booking-summary {
  margin-bottom: 23px;
}
.turns-heading h3 {
  font-size: 19px;
}
.turns-heading {
  margin-bottom: 12px;
}
.turn-card {
  padding: 13px 18px;
}
.turn-card h4 {
  font-size: 21px;
}
.turn-figures {
  margin-top: 8px;
}
.turn-figures strong {
  font-size: 27px;
}
.turn-meter {
  margin-block: 10px 7px;
}
.turns-overview {
  margin-bottom: 23px;
}
.status:not(:empty) {
  position: static;
  transform: none;
  width: 100%;
  margin: 0 0 20px;
  pointer-events: auto;
  box-shadow: none;
}
.status.error {
  background: var(--alert-bg);
}
@media (max-width: 700px) {
  main {
    padding-top: 24px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading {
    margin-bottom: 17px;
  }
  .page-intro {
    font-size: 11px;
  }
  .sections {
    margin-bottom: 23px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .booking-section-heading {
    gap: 15px;
  }
  .booking-summary article {
    padding: 13px 14px;
  }
  .booking-summary strong {
    font-size: 31px;
  }
  .turn-card {
    padding: 13px;
  }
  .turn-card h4 {
    font-size: 19px;
  }
  .turn-figures strong {
    font-size: 25px;
  }
  .turns-heading h3 {
    font-size: 19px;
  }
  .turns-heading p {
    font-size: 10px;
  }
  .status:not(:empty) {
    font-size: 12px;
  }
  .demo-strip {
    margin-bottom: 20px;
  }
  .date-title {
    font-size: 19px;
  }
}
.service-active {
  margin-bottom: 16px;
  min-height: 35px;
}
.closure-reason-fields {
  margin-top: 20px;
}
.closure-reason-fields label + label {
  margin-top: 18px;
}
.closure-reason-fields input {
  font-size: 14px;
}
.turn-disabled {
  border-style: dashed;
}
.turn-disabled .turn-remaining {
  color: var(--muted);
}

/* v0.5.1 — weekly service days and explicit dated exceptions. */
.turn-weekdays {
  padding: 14px 0 17px;
  margin: 0 0 18px;
  border: 0;
  border-block: 1px solid var(--line);
  min-width: 0;
}
.turn-weekdays legend {
  font-size: 12px;
  font-weight: 500;
  padding-right: 10px;
}
.turn-weekdays .weekday-options {
  gap: 7px 18px;
  margin-top: 7px;
}
.turn-weekdays .check {
  min-height: 32px;
}
.turn-weekdays .help {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 10px;
}
.exception-priority-help {
  font-size: 12px;
  line-height: 1.8;
  border-left: 1px solid var(--ink);
  padding-left: 14px;
  margin-bottom: 20px;
}
.exception-empty {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  padding: 17px 0;
  margin-bottom: 15px;
  border-block: 1px solid var(--line);
}
.service-exception-editor {
  padding: 18px;
  border: 1px solid var(--line);
  background: #f0e9dd66;
  margin-bottom: 17px;
  min-width: 0;
}
.service-exception-editor .turn-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.service-exception-editor h4 {
  font: 20px/1.4 var(--serif);
  margin: 0;
}
.service-exception-editor .text-button {
  font-size: 11px;
  min-height: 36px;
}
.exception-fields {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 18px 16px;
}
.exception-fields label {
  font-size: 12px;
  min-width: 0;
}
.exception-fields input,
.exception-fields select {
  min-width: 0;
  font-size: 14px;
}
.exception-reason {
  grid-column: 1/-1;
}
.exception-fields .help {
  font-size: 10px;
  line-height: 1.7;
}
.exception-warning {
  font-size: 11px;
  line-height: 1.8;
  border-left: 2px solid var(--wait);
  background: var(--wait-bg);
  padding: 11px 13px;
  margin-top: 16px;
}
.turn-calendar-note {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 10px;
  color: var(--muted);
}
.turn-calendar-reason {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .turn-weekdays {
    padding-block: 12px 15px;
  }
  .turn-weekdays .weekday-options {
    gap: 6px 16px;
  }
  .turn-weekdays .help {
    font-size: 10px;
  }
  .turn-weekdays legend {
    font-size: 11px;
  }
  .exception-priority-help {
    font-size: 11px;
  }
  .service-exception-editor {
    padding: 15px;
  }
  .service-exception-editor h4 {
    font-size: 19px;
  }
  .exception-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .exception-fields input,
  .exception-fields select {
    font-size: 16px;
  }
  .exception-reason {
    grid-column: auto;
  }
  .exception-warning {
    font-size: 10px;
    padding: 10px 12px;
  }
  .turn-calendar-note,
  .turn-calendar-reason {
    font-size: 10px;
  }
}

/* Device alerts and weekday hours remain independent of the public ornament. */
.staff-notifications {
  margin: 36px 0;
  padding: 28px;
  border: 1px solid #ad9568;
  background: #f8f3e6;
  border-radius: 4px;
}
.staff-notifications h3 {
  font-size: clamp(25px, 3vw, 34px);
  margin: 10px 0;
}
.staff-notifications p {
  max-width: 74ch;
  line-height: 1.6;
}
.staff-notifications small {
  display: block;
  max-width: 80ch;
  margin-top: 18px;
  line-height: 1.6;
  color: #675c48;
}
.staff-notifications [data-push-state] {
  font-weight: 600;
}
.staff-notifications .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.staff-notifications button {
  white-space: normal;
  line-height: 1.5;
  max-width: 100%;
}
.booking-update-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  margin: 24px 0;
  background: #f8f3e6;
  border: 1px solid #ad9568;
}
.booking-update-banner[hidden] {
  display: none;
}
.booking-update-banner a {
  font-weight: 600;
  color: inherit;
}
.booking-update-banner > span {
  flex: 1;
  min-width: 180px;
}
.booking-update-banner button {
  margin-left: auto;
}
.weekday-hours-editor {
  border-top: 1px solid #c4b89f;
  margin-top: 24px;
  padding-top: 20px;
}
.weekday-hours-editor summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.weekday-hours-editor fieldset {
  border: 1px solid #c4b89f;
  margin: 18px 0;
  padding: 16px;
  min-width: 0;
}
.weekday-hours-editor legend {
  font-weight: 600;
  padding: 0 6px;
}
.weekday-hours-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 14px;
  margin-top: 16px;
}
.weekday-hours-fields[hidden] {
  display: none;
}
.weekday-hours-fields label {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.weekday-hours-fields input,
.weekday-hours-fields textarea {
  width: 100%;
  min-width: 0;
}
.weekday-hours-editor input[type='checkbox'] {
  min-height: 20px;
  min-width: 20px;
  width: auto;
}
.weekday-hours-editor .check {
  min-height: 44px;
}
@media (max-width: 600px) {
  .staff-notifications {
    padding: 20px;
  }
  .weekday-hours-fields {
    grid-template-columns: 1fr 1fr;
  }
  .weekday-hours-fields label:last-child {
    grid-column: 1/-1;
  }
  .staff-notifications .primary {
    width: 100%;
  }
}
