:root {
  --paper: #f5f1e9;
  --white: #fffdf8;
  --ink: #292a23;
  --muted: #77756b;
  --red: #bd3d28;
  --orange: #e86c32;
  --line: #dedbcf;
  --green: #3e6045;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation
}

button,
a {
  -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 var(--orange);
  outline-offset: 3px
}

button:disabled {
  cursor: not-allowed;
  opacity: .45
}

.skip {
  position: absolute;
  left: -999px
}

.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 99;
  background: white;
  padding: 10px
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
h3 {
  font-weight: 500
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.04
}

h1 {
  font-size: clamp(48px, 7vw, 94px);
  letter-spacing: -3px
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.5px
}

h3 {
  font-size: 22px
}

button {
  border: 0
}

header {
  height: 100px;
  max-width: 1320px;
  margin: auto;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line)
}

.brand {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: bold;
  letter-spacing: -2px;
  color: var(--red);
  line-height: .8
}

.brand small {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  margin-top: 12px;
  text-transform: uppercase
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 13px
}

.nav a:hover {
  color: var(--red)
}

.nav .staff {
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 4px
}

.demo {
  background: #e9e5d9;
  color: #656252;
  text-align: center;
  font-size: 11px;
  letter-spacing: .3px;
  padding: 7px 12px
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 66px
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 650;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block
}

.hero h1 em {
  color: var(--red);
  font-weight: normal
}

.hero p {
  max-width: 370px;
  color: var(--muted);
  font-size: 16px;
  margin: 24px 0 27px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 5px;
  background: var(--red);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s
}

.btn:hover {
  background: #a3301d
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line)
}

.btn.secondary:hover {
  background: #eae6dc
}

.btn.small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12px
}

.btn.dark {
  background: var(--ink)
}

.btn.full {
  width: 100%
}

.arrow {
  margin-left: auto;
  font-size: 20px;
  font-weight: normal
}

.art {
  height: 390px;
  position: relative;
  background: var(--red);
  color: #f5dcc1;
  border-radius: 180px 180px 8px 8px;
  overflow: hidden;
  display: grid;
  place-items: center
}

.art:before,
.art:after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid #f6cba866;
  border-radius: 50%;
  transform: rotate(25deg)
}

.art:after {
  width: 270px;
  height: 270px;
  border: 18px double #f6cba866
}

.art .art-center {
  font-family: var(--serif);
  font-style: italic;
  font-size: 62px;
  line-height: .95;
  text-align: center;
  z-index: 1;
  transform: rotate(-9deg)
}

.art-center small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 3px;
  font-size: 10px;
  margin-top: 20px
}

.art .caption {
  position: absolute;
  bottom: 17px;
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase
}

.art .spark {
  position: absolute;
  top: 35px;
  right: 45px;
  font-size: 44px
}

.promise {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #676658
}

.promise span {
  display: flex;
  gap: 12px;
  align-items: center
}

.promise b {
  color: var(--red);
  font-size: 17px;
  font-weight: normal
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 54px 0 26px;
  gap: 20px
}

.section-head p {
  font-size: 13px;
  color: var(--muted);
  max-width: 240px
}

.section-head .eyebrow {
  margin-bottom: 13px
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.unit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}

.photo {
  height: 210px;
  background: #e8e2d5;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden
}

.photo .placeholder {
  font-family: var(--serif);
  font-size: 56px;
  color: #baae97;
  font-style: italic;
  transform: rotate(-8deg)
}

.photo .placeholder small {
  font: 10px var(--sans);
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 5px
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.photo .number {
  position: absolute;
  top: 15px;
  left: 17px;
  font-size: 11px;
  color: #7d715b
}

.photo .photo-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 10px;
  color: #76694f;
  text-align: center
}

.unit-body {
  padding: 22px
}

.badge {
  display: inline-block;
  background: #eaf0e5;
  color: var(--green);
  padding: 4px 9px;
  font-size: 10px;
  border-radius: 30px;
  font-weight: 600
}

.badge.paused {
  background: #efe7d7;
  color: #8c6732
}

.badge.grey {
  background: #eeeae3;
  color: #6c6a60
}

.unit-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 12px 0
}

.unit-body .address {
  color: var(--muted);
  font-size: 12px;
  min-height: 42px
}

.hours {
  font-size: 12px;
  margin: 12px 0 20px
}

.card-actions {
  display: flex;
  gap: 8px
}

.card-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 12px
}

.location {
  font-size: 12px;
  color: var(--muted);
  display: block;
  text-align: center;
  margin-top: 15px;
  text-decoration: underline;
  text-underline-offset: 4px
}

.story-strip {
  margin: 54px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px
}

.story-strip p {
  font-family: var(--serif);
  font-size: 27px
}

.story-strip span {
  font-size: 12px;
  color: var(--muted)
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  gap: 20px
}

.footer-brand {
  font: 24px var(--serif);
  color: var(--red);
  font-weight: bold
}

.booking {
  max-width: 970px;
  margin: 40px auto 70px;
  padding: 0 24px
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
  background: none;
  padding: 8px 0
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 38px
}

.booking h1 {
  font-size: 44px;
  letter-spacing: -1.5px;
  margin-bottom: 15px
}

.subtle {
  color: var(--muted);
  font-size: 13px
}

.steps {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 30px;
  font-size: 11px;
  color: var(--muted)
}

.steps .current {
  color: var(--red);
  font-weight: 700
}

.steps span b {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-right: 5px
}

.steps .current b {
  background: var(--red);
  color: white;
  border-color: var(--red)
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px
}

.booking aside .panel {
  position: sticky;
  top: 25px
}

.panel h3 {
  font-family: var(--serif);
  margin-bottom: 10px
}

.panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 12px 0;
  font-size: 13px
}

.summary-row span {
  color: var(--muted)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px
}

.field input,
.field select,
.field textarea,
input.filter,
select.filter {
  width: 100%;
  background: var(--white);
  border: 1px solid #cecabe;
  border-radius: 5px;
  padding: 12px;
  color: var(--ink);
  min-height: 47px;
  font-size: 15px;
  font-weight: 400
}

.field small {
  font-weight: 400;
  color: var(--muted)
}

textarea {
  min-height: 82px;
  resize: vertical
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 17px 0 25px
}

.slot {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 4px;
  font-size: 14px
}

.slot.selected {
  background: var(--red);
  border-color: var(--red);
  color: white
}

.slot:disabled {
  text-decoration: line-through
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px
}

.notice {
  font-size: 12px;
  padding: 13px 16px;
  background: #eee9de;
  border-radius: 5px;
  margin: 15px 0;
  color: #726950
}

.error {
  font-size: 13px;
  color: #a82f22;
  background: #ffebe4;
  padding: 12px 16px;
  border-radius: 5px;
  margin: 15px 0
}

.empty {
  padding: 45px 20px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center
}

.success-mark {
  width: 60px;
  height: 60px;
  background: #e4eddf;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: 50%;
  margin: 0 auto 20px
}

.confirmation {
  max-width: 620px;
  margin: 45px auto;
  padding: 0 24px;
  text-align: center
}

.confirmation h1 {
  font-size: 43px;
  letter-spacing: -1.5px
}

.confirmation .panel {
  text-align: left;
  margin: 25px 0
}

.code {
  font-family: monospace;
  font-size: 22px;
  letter-spacing: 2px
}

.check {
  display: flex;
  gap: 10px;
  font-size: 12px;
  align-items: flex-start;
  margin: 20px 0
}

.check input {
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--red)
}

.hidden {
  display: none !important
}

.login {
  max-width: 420px;
  margin: 65px auto;
  padding: 0 24px
}

.login h1 {
  font-size: 42px;
  letter-spacing: -1px;
  margin-bottom: 16px
}

.login .panel {
  margin-top: 24px
}

.admin-layout {
  display: grid;
  grid-template-columns: 215px 1fr;
  min-height: 100vh
}

.sidebar {
  background: #24271f;
  color: #dcded3;
  padding: 34px 23px;
  display: flex;
  flex-direction: column
}

.sidebar .brand {
  color: #f1e4d0;
  font-size: 35px;
  margin: 3px 12px 40px
}

.side-nav {
  display: grid;
  gap: 6px
}

.side-nav a {
  font-size: 13px;
  padding: 11px 13px;
  border-radius: 5px;
  display: flex;
  gap: 12px
}

.side-nav a:hover,
.side-nav a.active {
  background: #3d4236;
  color: #fff
}

.side-bottom {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  display: grid;
  gap: 18px
}

.admin-main {
  min-width: 0;
  padding: 30px 36px
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 30px
}

.admin-top h1 {
  font-size: 34px;
  letter-spacing: -1px
}

.admin-top p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #e1e1d5;
  border-radius: 50%;
  font-size: 11px
}

.top-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0
}

.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 21px
}

.metric span {
  font-size: 11px;
  color: var(--muted)
}

.metric strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
  margin: 10px 0 3px
}

.metric small {
  font-size: 10px;
  color: var(--muted)
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 22px
}

.toolbar .field {
  margin: 0;
  flex: 1;
  min-width: 145px
}

.toolbar .btn {
  height: 47px
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white)
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap
}

th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  font-weight: 600;
  background: #efede5
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line)
}

td {
  font-size: 12px
}

tr:last-child td {
  border-bottom: 0
}

.cell-name {
  font-size: 13px;
  font-weight: 600
}

.cell-sub {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px
}

.status-select {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px;
  font-size: 11px;
  max-width: 145px
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 28px 0 15px
}

.section-title h2 {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px
}

.capacity-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 5px;
  font-size: 12px
}

.capacity-item small {
  display: block;
  color: var(--muted);
  margin: 7px 0
}

.capacity-item progress {
  width: 100%;
  height: 5px;
  accent-color: var(--red)
}

.admin-unit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px
}

.admin-unit-list .panel h3 {
  margin-top: 14px
}

.edit-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px
}

.edit-head h2 {
  font-family: var(--sans);
  font-size: 23px;
  letter-spacing: 0
}

.form-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 25px;
  margin-bottom: 20px
}

.form-section h3 {
  font-size: 17px;
  margin-bottom: 20px
}

.form-section .form-grid {
  grid-template-columns: repeat(3, 1fr)
}

.week-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0
}

.week-row input[type=time] {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white
}

.week-row label {
  font-size: 12px
}

.exception-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  font-size: 12px
}

.audit {
  font-size: 11px;
  white-space: pre-wrap;
  max-width: 700px;
  word-break: break-word
}

.stats-unit {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.hp {
  position: absolute;
  left: -9999px
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #24271f;
  color: white;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 8px 30px #0002;
  z-index: 99;
  max-width: 90%;
  display: none
}

#toast.show {
  display: block
}

.loading {
  text-align: center;
  margin: 100px 20px;
  color: var(--muted)
}

.privacy {
  max-width: 750px;
  margin: 50px auto;
  padding: 0 24px
}

.privacy h1 {
  font-size: 42px;
  letter-spacing: -1px
}

.privacy p {
  margin: 20px 0
}

.small-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px
}

.detail-dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 28px;
  max-width: 500px;
  width: calc(100% - 32px);
  color: var(--ink)
}

.detail-dialog::backdrop {
  background: #20221899
}

.detail-dialog h2 {
  font-size: 32px;
  margin: 15px 0
}

.detail-dialog p {
  margin: 15px 0
}

.detail-dialog .btn {
  margin-top: 15px
}

.detail-dialog .close-dialog {
  float: right;
  font-size: 20px;
  background: transparent
}

.photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px
}

.button-link {
  background: transparent;
  color: var(--red);
  text-decoration: underline;
  padding: 5px;
  font-size: 12px
}

@media(min-width:1300px) {
  .hero {
    padding-top: 78px;
    padding-bottom: 78px
  }

  .art {
    height: 415px
  }
}

@media(max-width:1000px) {
  .hero {
    gap: 28px
  }

  .art {
    height: 340px
  }

  .unit-grid {
    gap: 14px
  }

  .unit-body {
    padding: 17px
  }

  .card-actions {
    flex-direction: column
  }

  .admin-layout {
    grid-template-columns: 180px 1fr
  }

  .admin-main {
    padding: 25px 22px
  }

  .sidebar {
    padding: 28px 15px
  }

  .metrics {
    gap: 10px
  }

  .metric {
    padding: 15px
  }

  .form-section .form-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  header {
    height: 83px;
    padding: 0 22px
  }

  .brand {
    font-size: 32px
  }

  .brand small {
    font-size: 8px
  }

  .nav {
    gap: 14px;
    font-size: 11px
  }

  .nav .staff {
    padding: 7px 10px
  }

  .nav .units-link {
    display: none
  }

  .demo {
    font-size: 10px
  }

  .container {
    padding: 0 22px
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 37px;
    padding-bottom: 30px
  }

  .hero h1 {
    font-size: 59px;
    letter-spacing: -2px
  }

  .hero p {
    font-size: 14px;
    margin: 20px 0
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 20px
  }

  .art {
    height: 230px;
    border-radius: 120px 120px 6px 6px
  }

  .art:before {
    width: 240px;
    height: 240px
  }

  .art:after {
    width: 200px;
    height: 200px;
    border-width: 12px
  }

  .art .art-center {
    font-size: 45px
  }

  .art-center small {
    font-size: 8px;
    margin-top: 10px
  }

  .art .caption {
    font-size: 8px;
    bottom: 10px
  }

  .promise {
    gap: 13px;
    font-size: 10px;
    align-items: center
  }

  .promise span {
    gap: 6px
  }

  .promise span:last-child {
    display: none
  }

  .section-head {
    margin-top: 32px;
    display: block
  }

  .section-head h2 {
    font-size: 35px
  }

  .section-head p {
    margin-top: 13px;
    max-width: none
  }

  .unit-grid {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .photo {
    height: 220px
  }

  .unit-body {
    padding: 22px
  }

  .unit-body .address {
    min-height: 0
  }

  .card-actions {
    flex-direction: row
  }

  .card-actions .btn {
    min-height: 47px
  }

  .story-strip {
    display: block;
    margin: 30px 0
  }

  .story-strip p {
    font-size: 25px;
    margin-bottom: 10px
  }

  footer {
    padding: 24px 22px;
    flex-wrap: wrap;
    font-size: 10px
  }

  .booking {
    margin-top: 20px;
    padding: 0 20px
  }

  .booking-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .booking aside {
    order: -1
  }

  .booking aside .panel {
    padding: 15px
  }

  .booking aside .panel h3 {
    font-size: 21px
  }

  .booking aside hr,
  .booking aside .summary-row,
  .booking aside .notice {
    display: none
  }

  .booking h1 {
    font-size: 36px
  }

  .steps {
    gap: 12px;
    font-size: 10px;
    margin-bottom: 23px
  }

  .slot-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .slot {
    padding: 14px
  }

  .form-grid {
    gap: 12px
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px
  }

  .form-actions .btn {
    flex: 1;
    padding: 12px
  }

  .confirmation {
    margin-top: 28px
  }

  .confirmation h1 {
    font-size: 36px
  }

  .admin-layout {
    display: block
  }

  .sidebar {
    padding: 20px 18px;
    display: block
  }

  .sidebar .brand {
    margin: 3px 0 20px;
    font-size: 30px;
    display: inline-block
  }

  .sidebar .brand small {
    font-size: 7px
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 2px
  }

  .side-nav a {
    flex-shrink: 0;
    font-size: 11px;
    padding: 9px 10px
  }

  .side-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    font-size: 10px
  }

  .admin-main {
    padding: 24px 18px
  }

  .admin-top {
    margin-bottom: 20px;
    align-items: start
  }

  .admin-top h1 {
    font-size: 30px
  }

  .top-user span {
    display: none
  }

  .metrics {
    grid-template-columns: 1fr 1fr
  }

  .metric strong {
    font-size: 28px
  }

  .toolbar {
    gap: 9px
  }

  .toolbar .field {
    min-width: 130px
  }

  .toolbar .btn {
    flex: 1;
    padding: 10px
  }

  .form-section {
    padding: 18px
  }

  .form-section .form-grid {
    grid-template-columns: 1fr 1fr
  }

  .week-row {
    grid-template-columns: 85px 1fr 1fr;
    gap: 8px
  }

  .week-row input[type=time] {
    min-width: 0;
    font-size: 13px
  }

  .panel {
    padding: 20px
  }

  .exception-row {
    flex-wrap: wrap
  }

  .login {
    margin-top: 40px
  }

  .form-section .field.wide {
    grid-column: 1/-1
  }

  .table-wrap {
    max-width: 100%
  }

  .section-title {
    flex-wrap: wrap
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    transition: none !important
  }
}

.window-row {
  grid-template-columns: 100px repeat(4, 1fr)
}

.window-row input {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white
}

.window-row label {
  font-size: 10px
}

.booking form {
  margin-top: 25px
}

.confirmation #copy-link {
  margin-top: 18px
}

.capacity-grid {
  margin: 12px 0 24px
}

@media(max-width:800px) {
  .window-row {
    grid-template-columns: 1fr 1fr
  }

  .window-row>button {
    grid-column: 1/-1;
    text-align: left
  }

  .window-row input {
    font-size: 16px
  }
}

/* Official identity supplied by Passata: source PDF, May 2026. */
:root { --red: #bd2b19; --orange: #ffa713; --brand-red: #f3321d; }
header, footer { background: #fff; }
header { max-width: none; }
.brand { display: inline-flex; align-items: center; flex-direction: column; }
.brand img { display: block; width: 168px; height: auto; }
.footer-brand img { display: block; width: 112px; height: auto; }
.sidebar { background: #050706; }
.sidebar .brand { margin: 0 0 36px; }
.sidebar .brand img { width: 150px; }
.sidebar .brand small { margin-top: 14px; color: #f6a512; }
.official-art { height: auto; aspect-ratio: 1; border-radius: 24px; background: #f3321d; }
.official-art:before, .official-art:after { display: none; }
.official-art > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo .placeholder { transform: none; width: 64%; padding: 14px; background: white; border-radius: 8px; }
.photo .placeholder img { width: 100%; height: auto; object-fit: contain; }
@media(max-width:700px) {
  .brand img { width: 132px; }
  .official-art { height: auto; max-width: 380px; width: 100%; margin: 0 auto; border-radius: 18px; }
  .sidebar .brand { margin: 0 0 20px; }
  .sidebar .brand img { width: 128px; }
  .sidebar .brand small { margin-top: 10px; }
}

/* Optional comparison theme: the original light theme remains unchanged. */
.layout-preview {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 12px 20px; background: #ece8df; color: #555448;
  font-size: 12px; border-bottom: 1px solid #d8d3c8;
}
.layout-options { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #cec9bd; border-radius: 30px; }
.layout-options button { min-height: 36px; border-radius: 24px; padding: 7px 17px; background: transparent; color: inherit; font-size: 12px; }
.layout-options button[aria-pressed="true"] { background: #fff; color: #292a23; box-shadow: 0 2px 6px #0001; }
:root[data-layout="dark"] {
  color-scheme: dark;
  --paper: #151716; --white: #1d201e; --ink: #f4efe6; --muted: #b0b2a9;
  --line: #363b36; --red: #ff982b; --orange: #ffad42; --brand-red: #ff982b; --green: #a7c5a5;
}
[data-layout="dark"] .layout-preview { background: #101210; color: #bfc0b6; border-color: #30362f; }
[data-layout="dark"] .layout-options { border-color: #393e35; }
[data-layout="dark"] .layout-options button[aria-pressed="true"] { background: #ff982b; color: #21170c; box-shadow: none; }
[data-layout="dark"] header, [data-layout="dark"] footer { background: #050706; }
[data-layout="dark"] .demo { background: #20241e; color: #b9bdad; }
[data-layout="dark"] .hero { position: relative; }
[data-layout="dark"] .hero h1 em { color: #ff982b; }
[data-layout="dark"] .eyebrow { color: #d8c5a8; }
[data-layout="dark"] .official-art { background: #050706; border: 1px solid #343a30; border-radius: 24px; box-shadow: 0 25px 70px #0003; }
[data-layout="dark"] .btn { background: #ff982b; color: #21170c; }
[data-layout="dark"] .btn:hover { background: #ffad4b; }
[data-layout="dark"] .btn.secondary { background: transparent; color: #f1e6d8; border-color: #505449; }
[data-layout="dark"] .btn.secondary:hover { background: #30342d; }
[data-layout="dark"] .btn.dark { background: #e7e4d7; color: #22251e; }
[data-layout="dark"] .promise { color: #c2c3b7; }
[data-layout="dark"] .photo { background: #101310; }
[data-layout="dark"] .photo .placeholder { background: #050706; padding: 18px; }
[data-layout="dark"] .photo .number, [data-layout="dark"] .photo .photo-label { color: #a1a791; }
[data-layout="dark"] .badge { background: #2e3c2d; color: #bfd9b2; }
[data-layout="dark"] .badge.paused { background: #42331c; color: #f1c384; }
[data-layout="dark"] .badge.grey { background: #353a32; color: #cad0bf; }
[data-layout="dark"] .field input, [data-layout="dark"] .field select,
[data-layout="dark"] .field textarea, [data-layout="dark"] input.filter,
[data-layout="dark"] select.filter { border-color: #51564c; }
[data-layout="dark"] .slot.selected { background: #ff982b; color: #21170c; }
[data-layout="dark"] .steps .current b { color: #21170c; }
[data-layout="dark"] .notice { background: #302c20; color: #d6c9a9; }
[data-layout="dark"] .error { color: #ffc3ab; background: #44281e; }
[data-layout="dark"] .success-mark { color: #bfe1b6; background: #2b3a2a; }
[data-layout="dark"] .avatar { background: #363e31; color: #e2e4d5; }
[data-layout="dark"] th { background: #252b23; }
[data-layout="dark"] .week-row input, [data-layout="dark"] .window-row input { background: #1d201e; color: #f4efe6; }
[data-layout="dark"] #toast { background: #f1eadb; color: #22251e; }
[data-layout="dark"] .skip:focus { background: #252b23; }
@media(max-width:700px) {
  .layout-preview { flex-direction: column; gap: 7px; padding: 10px 12px; }
  .layout-preview > span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
  .layout-options button { padding: 7px 15px; min-height: 38px; }
}

/* Customer-facing themes: vivid Passata orange, with native transparent artwork. */
:root, :root[data-layout="dark"] { --red: #ff7900; --orange: #ff7900; --brand-red: #ff7900; }
[data-layout="light"] { color-scheme: light; }
.btn, [data-layout="dark"] .btn { background: #ff7900; color: #24150a; }
.btn:hover, [data-layout="dark"] .btn:hover { background: #ff9224; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: #eae6dc; }
.btn.dark { background: var(--ink); color: var(--paper); }
[data-layout="dark"] .btn.secondary { background: transparent; color: #f1e6d8; }
[data-layout="dark"] .btn.secondary:hover { background: #30342d; }
[data-layout="dark"] .btn.dark { background: #e7e4d7; color: #22251e; }
.layout-options button[aria-pressed="true"], [data-layout="dark"] .layout-options button[aria-pressed="true"] { background: #ff7900; color: #24150a; }
.hero h1 em, [data-layout="dark"] .hero h1 em { color: #ff7900; }
.slot.selected, [data-layout="dark"] .slot.selected { background: #ff7900; color: #24150a; }
.steps .current b, [data-layout="dark"] .steps .current b { color: #24150a; }
.official-art, [data-layout="dark"] .official-art {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
.official-art > img { object-fit: contain; }
.unit-mascot { height: 100%; width: 100%; padding: 12px 20px 0; display: flex; align-items: center; justify-content: center; }
.photo .unit-mascot img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.photo { background: #eee7db; }
[data-layout="dark"] .photo { background: #171c18; }
[data-layout="light"] .button-link, [data-layout="light"] .nav a:hover { color: #a74700; }
/* Keep the full mascot visible at every card width. */
.photo .unit-mascot { position: absolute; inset: 0; width: auto; height: auto; padding: 10px 20px; }
.photo .unit-mascot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

.email-suggestions:not([hidden]) { display:flex; flex-wrap:wrap; gap:8px; margin:-8px 0 20px; }
.email-suggestions button { overflow-wrap:anywhere; white-space:normal; text-align:left; max-width:100%; }

.coming-soon-banner { padding:10px 20px; background:#ff7900; color:#24150a; font-size:14px; font-weight:800; text-align:center; text-transform:uppercase; letter-spacing:2px; }

.period-shortcuts { display:flex; flex-wrap:wrap; gap:8px; flex-basis:100%; }

/* Mantém o cartão horizontal e a foto oficial inteira. */
.photo > .photo-backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(14px) brightness(.65); transform: scale(1.12);
}
.photo > .photo-official {
  display: block; position: relative; z-index: 1;
  width: 100%; height: 100%; min-height: 0; object-fit: contain;
}
.photo:has(.photo-official) .number { z-index: 2; color: #fff; text-shadow: 0 1px 4px #000; }
