@font-face { font-family: "DM Sans"; src: local("DM Sans"); }
:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #261b26;
  background: #f9f4ee;
  --ink: #2e2032;
  --accent: #6e3556;
  --border: #e0d4db;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
.header {
  max-width: 72rem;
  margin: auto;
  padding: 1.4rem clamp(1rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.55rem; font-weight: 850; letter-spacing: -.07em; text-decoration: none; }
.brand .brand-word { color: var(--ink); }
.brand .brand-symbol { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.welcome .intro { margin: 0; }
.welcome h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.welcome-image { width: 100%; height: auto; border-radius: 1.2rem; display: block; }
@media (max-width: 700px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-image { max-height: 15rem; object-fit: cover; object-position: right center; }
}
.brand span { color: var(--accent); }
nav { display: flex; gap: .25rem; }
button, input, select { font: inherit; }
button {
  min-height: 44px;
  border: 1px solid transparent;
  padding: .65rem 1.1rem;
  border-radius: .65rem;
  color: white;
  background: var(--accent);
  font-weight: 650;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button.language, button.secondary { color: var(--ink); background: transparent; border-color: var(--border); }
button.language[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
:focus-visible { outline: 3px solid #b15788; outline-offset: 3px; }
main { width: min(100% - 2rem, 64rem); margin: 0 auto; padding: clamp(1.75rem, 7vw, 5.5rem) 0 3rem; }
.workspace { max-width: 52rem; }
.intro { margin: 0 0 2rem; }
.home .intro { max-width: 45rem; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 8vw, 5.35rem); letter-spacing: -.065em; line-height: .98; font-weight: 500; }
.workspace h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2, p { overflow-wrap: anywhere; }
.intro p { max-width: 34rem; font-size: clamp(1rem, 2.8vw, 1.25rem); line-height: 1.5; color: #604d5c; }
.roles, .fields { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e2ccd7;
  background: #f0dfe7;
  border-radius: 1.1rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  text-decoration: none;
}
a.role:hover .action, .role-actions a:hover { text-decoration: underline; }
.role h2 { font-size: clamp(1.3rem, 4vw, 2rem); margin: 0; letter-spacing: -.045em; }
.role p { margin: .7rem 0 1.65rem; }
.role .action { font-weight: 700; margin-top: auto; }
.role.dark { color: #fff6fc; background: var(--ink); border-color: var(--ink); }
.role-actions { display: grid; justify-items: start; gap: .55rem; margin-top: auto; }
.role-actions a { text-decoration: none; }
.panel, .booking {
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: #fffdfb;
  padding: clamp(1rem, 3vw, 1.6rem);
}
label { font-weight: 640; min-width: 0; }
.localized-date { position: relative; display: block; }
.localized-date .native-date { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.localized-date:focus-within { outline: 3px solid #b15788; outline-offset: 3px; border-radius: .45rem; }
input, select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .6rem;
  border: 1px solid #beabba;
  border-radius: .45rem;
  margin-top: .4rem;
  background: white;
  color: var(--ink);
}
.fields button { grid-column: 1 / -1; justify-self: start; }
.status { display: none; }
.toast {
  position: fixed;
  z-index: 1000;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(36rem, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .75rem .75rem 1.1rem;
  border-radius: .8rem;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 .5rem 1.8rem #2e203233;
  font-weight: 600;
  line-height: 1.5;
}
.toast::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - .4rem);
  border: .4rem solid transparent;
  border-top-color: var(--ink);
}
.toast span { overflow-wrap: anywhere; }
.toast-close { background: transparent; color: white; padding: .25rem .65rem; font-size: 1.4rem; flex-shrink: 0; }
.confirmation { max-width: min(30rem, calc(100vw - 2rem)); border: 1px solid var(--border); border-radius: .9rem; padding: 1.5rem; background: #fffdfb; color: var(--ink); box-shadow: 0 .5rem 2rem #2e203233; }
.confirmation::backdrop { background: #2e203266; }
.qr-card { display: grid; justify-items: center; gap: 1rem; }
.qr-card canvas { max-width: 100%; height: auto; image-rendering: pixelated; }
.qr-card a { overflow-wrap: anywhere; max-width: 100%; }
.qr-card form { width: 100%; display: grid; gap: .75rem; }
#install-client { margin-bottom: 1rem; }
.booking-datetime { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.controls, .booking { display: flex; align-items: center; justify-content: space-between; gap: .9rem; flex-wrap: wrap; }
.bookings { list-style: none; padding: 0; display: grid; gap: .65rem; }
.booking strong, .booking span { display: block; overflow-wrap: anywhere; }
.booking p { margin: .25rem 0; }
.booking.cancelled {
  border-color: #cc6670;
  background: repeating-linear-gradient(135deg, transparent 0 13px, #c5364524 13px 16px), #fff8f7;
}
.booking.cancelled > span { color: #9c2330; font-weight: 700; }
#reference { display: block; overflow-wrap: anywhere; margin-bottom: 1.4rem; }
.workspace.signed-in { max-width: 72rem; width: min(100% - 2rem, 72rem); }
.salon-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.salon-menu { background: #fffdfb; border: 1px solid var(--border); border-radius: .9rem; padding: 1rem; }
.salon-menu nav { display: grid; gap: .75rem; }
.salon-menu button { width: 100%; text-align: left; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
#menu-toggle { display: none; }
#salon-name { overflow-wrap: anywhere; }
.salon-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 1rem; row-gap: .5rem; }
.agenda-updated { color: #6b5966; font-size: .78rem; font-weight: 400; line-height: 1.5; }
@media (max-width: 760px) {
  .salon-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  #menu-toggle { display: block; justify-self: start; }
  .salon-menu { display: none; }
  .menu-open .salon-menu { display: block; }
}
@media (max-width: 560px) {
  .roles, .fields { grid-template-columns: 1fr; }
  .role { min-height: 11rem; }
}
