@font-face {
  font-family: Barlow Condensed;
  src: url('./assets/barlow-condensed.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('./assets/dm-sans.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('./assets/dm-sans-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #111214;
  --panel: #1c1e21;
  --raised: #282a2e;
  --input: #131416;
  --line: #3d4045;
  --line-strong: #5c6066;
  --ink: #f4f4f4;
  --muted: #bec0c3;
  --accent: #c4c7cb;
  --accent-light: #e5e6e8;
  --sans: 'DM Sans', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
svg { width: 20px; height: 20px; vertical-align: middle; flex: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: .98; }
h2 { font-size: clamp(33px, 4vw, 48px); }
small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.masthead { position: sticky; top: 0; z-index: 5; background: #131313; border-bottom: 1px solid #2b2b2b; }
.top {
  width: min(1200px, calc(100% - 56px));
  min-height: 80px;
  margin: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 27px;
}
.brand { display: block; padding: 0; border: 0; background: transparent; }
.brand img { display: block; width: 188px; height: auto; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav svg { width: 17px; height: 17px; }
.nav:hover, .nav.active { color: var(--accent-light); background: #232323; }
.nav.active { border-color: #383838; }
.actions { grid-column: 3; display: flex; align-items: center; justify-content: end; gap: 8px; }
.button, .ghost, .icon-btn, .chip, .google-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.button, .accent { background: var(--accent); color: #171717; }
.button:hover, .accent:hover { background: var(--accent-light); }
.ghost, .icon-btn, .chip { color: var(--ink); background: var(--raised); border-color: var(--line); }
.ghost:hover, .icon-btn:hover, .chip:hover { border-color: var(--accent); }
.icon-btn { position: relative; min-width: 44px; padding: 8px; }
.account-link { background: transparent; color: var(--accent-light); border-color: #585858; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.body { width: min(1200px, calc(100% - 56px)); margin: auto; padding: 28px 0 52px; }
.stack { display: grid; gap: 9px; }
.team-card, .row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 15px;
  padding: 9px 17px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}
.team-card:hover { border-color: #757575; background: var(--raised); }
.team-card strong, .row strong { font-size: 17px; display: block; }
.grow { flex: 1; min-width: 0; }
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 6px;
  background: #2f2f2f;
  color: var(--accent-light);
  font-weight: 700;
}
.avatar.joanita { object-position: 50% 39%; }
.avatar.vittas { object-position: 50% 21%; }
.status { font-size: 13px; font-weight: 700; white-space: nowrap; }
.status { color: #e1e2e4; background: #303237; border-radius: 100px; padding: 5px 10px; }
.status.wait { color: #e8e8e8; background: #2f2f2f; }
.arrow { color: var(--accent); }
.panel, .form-card, .empty { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.panel + .panel { margin-top: 12px; }
.intro { margin: 12px 0 23px; }
.intro h1 { font-size: clamp(44px, 6vw, 69px); }
.back { border: 0; background: transparent; color: var(--accent-light); padding: 3px 0; margin-bottom: 13px; font-weight: 700; }
.dates, .slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 18px; }
.chip.selected { color: #171717; background: var(--accent); border-color: var(--accent); }
.chip .day { display: block; font-size: 19px; }
.chip.date { display: block; min-width: 63px; }
.chip.date small { display: block; color: inherit; }
.service-price { font-size: 14px; font-weight: 700; max-width: 13ch; text-align: right; color: var(--accent-light); }
.row button { flex: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.details { display: grid; gap: 9px; margin: 17px 0 19px; }
.details div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; font-weight: 700; }
.summary { font-weight: 700; margin-bottom: 12px; }
.empty, .panel > p { color: var(--muted); }
.panel h3 { margin-bottom: 7px; }
.panel > p { margin-bottom: 14px; }
.form-card { max-width: 540px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.form input:not([type=checkbox]), .form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--input);
}
.form label.inline { display: flex; align-items: start; gap: 9px; }
.form [type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.error { color: #f0f0f0; font-weight: 700; font-size: 13px; }
.error:empty { display: none; }
.edit-grid { display: grid; grid-template-columns: 1fr minmax(85px,125px) minmax(75px,100px) auto; align-items: end; gap: 10px; }
.hour-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.subtle { border: 0; background: transparent; color: var(--accent-light); font-size: 14px; font-weight: 700; text-decoration: underline; padding: 0; }
.mobile-nav { display: none; }
dialog {
  width: min(470px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid #464646;
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 90px #000b;
}
dialog::backdrop { background: #0a0a0ac4; }
dialog h2 { font-size: 44px; margin-bottom: 7px; }
dialog .close { position: absolute; top: 11px; right: 11px; }
.auth-image {
  height: 98px;
  display: grid;
  align-items: center;
  padding-left: 25px;
  background: linear-gradient(90deg,#131313e8,#13131338),
    url('./assets/booking-tools.webp') 70% 49% / cover;
  background-color: var(--canvas);
  background-blend-mode: normal, luminosity;
  border-bottom: 1px solid var(--line);
}
.auth-image img { width: 51px; height: 51px; border-radius: 8px; }
.auth-content { padding: 22px 25px 25px; }
.google-area { margin-top: 18px; }
.google-button { width: 100%; color: #292929; background: #fff; border-color: #dcdcdc; }
.google-button:hover { background: #ededed; }
.google-button img { flex: none; }
.auth-note, .google-error { margin-top: 7px; font-size: 13px; }
.auth-note { color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 9px; margin: 17px 0 12px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-links { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 15px; }
.notice-card { justify-content: space-between; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#toast {
  position: fixed; z-index: 10;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 90%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px; background: #212121; color: var(--ink);
  box-shadow: 0 4px 18px #0006;
}
#toast:empty { display: none; }
@media (max-width: 900px) {
  .top { width: calc(100% - 36px); gap: 12px; }
  .brand img { width: 160px; }
  .nav { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .top { min-height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .brand img { width: 148px; }
  .top, .body { width: calc(100% - 32px); }
  .body { padding: 14px 0 calc(82px + env(safe-area-inset-bottom)); }
  .desktop-nav { display: none; }
  .mobile-nav {
    display: flex; align-items: stretch; justify-content: space-around; overflow-x: auto;
    position: fixed; z-index: 5; inset: auto 0 0;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #131313;
  }
  .mobile-nav .nav {
    display: grid; flex: 1; justify-items: center; align-content: center;
    gap: 3px; min-width: 61px; padding: 5px; font-size: 11px;
  }
  #toast { bottom: calc(65px + env(safe-area-inset-bottom)); }
  .row { flex-wrap: wrap; padding: 10px; }
  .row .grow { min-width: 131px; }
  .row-actions { width: 100%; }
  .team-card { gap: 10px; padding: 8px 10px; }
  .team-card .avatar { width: 47px; height: 47px; }
  .team-card .status { font-size: 11px; padding: 4px 7px; }
  .team-card .arrow { width: 16px; }
  .edit-grid { grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .edit-grid strong { grid-column: 1/-1; }
  .panel, .form-card { padding: 15px; }
  .hour-row { grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 5px; }
  .hour-row .icon-btn { min-width: 32px; padding: 4px; }
  .hour-row input[type=time] { padding-inline: 4px; font-size: 12px; }
}
@media (max-width: 360px) {
  .team-card strong, .service-price { font-size: 13px; }
  .team-card .avatar { width: 40px; height: 40px; }
}
.brand-outline {
  width: 74px;
  height: auto;
  margin: 0 0 15px;
  opacity: .86;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.login-layout { width: min(100%, 500px); margin-inline: auto; background: #101113; }
.login-screen {
  min-height: max(100svh, 470px);
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  padding: 44vh 10.5% max(4.6svh, env(safe-area-inset-bottom));
}
.login-photo {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 72%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) brightness(.71);
  z-index: -2;
}
.login-brand { position: absolute; top: max(8svh, 34px); left: 50%; transform: translateX(-50%); width: min(72%, 300px); height: auto; }
.login-screen::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(0deg, #101113 19%, #101113 26%, transparent 41%);
}
.login-form { width: 100%; gap: clamp(9px, 1.5svh, 15px); }
.login-form.form input:not([type=checkbox]), .login-form .button {
  min-height: clamp(46px, 6.8svh, 60px);
  border-radius: 10px;
}
.login-form.form input:not([type=checkbox]) {
  padding: 10px 18px;
  border-color: #adadad;
  background: #0d0d0dbb;
  color: #fbfbfb;
  font-size: clamp(17px, 4.9vw, 24px);
}
.login-form input::placeholder { color: #f0f0f0; opacity: 1; }
.login-form .button {
  margin-top: 4px;
  border: 0;
  background: linear-gradient(#e4e5e6, #b1b4b8);
  color: #121212;
  font: 700 clamp(27px, 6vw, 34px)/1 var(--display);
}
.login-form .button:hover { background: #f3f3f3; }
.login-options {
  display: grid;
  gap: 14px;
  padding: 24px 10.5% calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid #2a2a2a;
}
.login-options .google-area { margin-top: 0; }

.booking-layout { width: min(100% - 32px, 540px); }
.photo-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: min(72svh, 740px);
  color: var(--ink);
  background-color: #131313;
  background-size: cover;
  background-blend-mode: luminosity;
  background-repeat: no-repeat;
  background-position: center 43%;
  border: 1px solid #494949;
  border-radius: 15px;
  overflow: hidden;
}
.photo-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(0deg, #080808 1%, #080808bd 32%, transparent 73%);
}
.photo-cut { background-image: url('./assets/booking-cut.webp'); }
.photo-therapy { background-image: url('./assets/booking-therapy.webp'); }
.photo-content { padding: 28px clamp(20px, 6vw, 34px); }
.photo-content h1 { font-size: clamp(49px, 11vw, 73px); margin-bottom: 13px; }
.photo-content p { color: #dfdfdf; margin-bottom: 14px; }
.photo-content .brand-outline { width: 65px; }
.photo-content .button, .stage-button { width: 100%; }
.photo-content .button, .stage-button, .new-service summary {
  background: linear-gradient(#dcdee0, #afb2b6);
  border-color: #c3c5c8;
  color: #131313;
  font-size: 16px;
}
.photo-content .button:hover, .stage-button:hover, .new-service summary:hover { background: #f3f3f3; }
.feature-link { margin-top: 12px; }
.feature-link .ghost { width: 100%; }
.web-service { cursor: pointer; }
.web-service input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: #dcdee0; }
.web-service:has(input:checked) { border-color: #dcdee0; }
.web-order-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 12px; }
.web-order-total small { display: block; color: var(--muted); }
.service-note { display: block; color: var(--muted); line-height: 1.4; margin-top: 5px; }
.web-service .service-price { white-space: normal; text-align: right; max-width: 11ch; }
.service-price { font-variant-numeric: tabular-nums; }
.edit-grid .inline { justify-self: start; }
@media (min-width: 760px) {
  .booking-layout:has(.public-catalog) { width: min(100% - 56px, 860px); }
  .public-catalog #web-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.booking-stage {
  justify-content: start;
  gap: 14px;
  padding: clamp(17px, 4vw, 32px);
  background-position: center;
}
.booking-stage::before { background: linear-gradient(#090909ed, #0c0c0cd9 45%, #0c0c0cd9 70%, #090909ef); }
.photo-team { background-image: url('./assets/barbershop.webp'); }
.photo-day { background-image: url('./assets/booking-cut.webp'); background-position: center 30%; }
.photo-services { background-image: url('./assets/booking-tools.webp'); }
.booking-stage .intro { margin: 0 0 2px; }
.booking-stage .intro h1 { font-size: clamp(38px, 8.5vw, 54px); line-height: 1.04; }
.booking-stage .intro p { color: #dbdbdb; }
.booking-stage .team-card, .booking-stage .panel, .booking-stage .empty {
  border-color: #696969;
  background: #141414e8;
}
.booking-stage .avatar { border: 1px solid #9f9f9f; border-radius: 50%; }
.photo-team .specialty, .photo-team .next-slot { display: block; overflow-wrap: anywhere; }
.photo-team .next-slot { color: #cacaca; }
.booking-stage .team-card:disabled { opacity: .67; }
.booking-stage .dates { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); margin: 0; }
.booking-stage .chip { background: #141414e8; border-color: #696969; }
.booking-stage .chip.selected { color: #141414; background: #d3d5d8; border-color: #e5e6e8; }
.booking-stage .chip.date { min-width: 0; padding: 6px 0; }
.booking-stage .slots { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(65px, 1fr)); gap: 8px; }
.booking-stage .slots .chip { padding-inline: 6px; }
.photo-day .slots { max-height: 230px; overflow-y: auto; padding: 5px; scrollbar-color: #7f7f7f #181818; }
.section-title { font: 700 16px/1.3 var(--sans); }
.custom-date summary { color: var(--accent-light); cursor: pointer; width: fit-content; }
.custom-date .form { margin-top: 8px; }
.photo-note { color: #d8d8d8; font-size: 13px; text-align: center; }
.new-service { margin-bottom: 16px; padding: 0; overflow: hidden; }
.new-service summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}
.new-service .form { padding: 16px; max-width: 560px; }
.service-fields { display: grid; gap: 13px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.new-service fieldset { margin: 0; border: 1px solid var(--line-strong); border-radius: 7px; }
.new-service legend { font-size: 13px; color: var(--muted); }
.edit-grid .error { grid-column: 1/-1; }
.therapy-benefits { margin-top: 12px; }
.therapy-benefits h2 { font-size: 30px; margin-bottom: 10px; }
.therapy-benefits > p { margin-bottom: 0; }
.agenda-controls { max-width: 720px; margin-bottom: 16px; }
.agenda-controls h2 { font-size: 31px; }
.agenda-controls .form { margin-top: 14px; }
.agenda-controls .form > .button, .weekly-hours > .button { justify-self: start; }
.agenda-control-row, .agenda-periods li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.agenda-control-row { margin: 14px 0; }
.agenda-dates { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 145px), 1fr)); gap: 10px; }
.agenda-controls h3 { margin-top: 18px; }
.agenda-periods { display: grid; gap: 7px; margin: 0; padding: 0; }
.agenda-periods li { padding: 8px 0; border-top: 1px solid var(--line); }
.weekly-hours { max-width: 720px; }
.weekly-day { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 10px 15px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.weekly-day legend { font-weight: 700; padding: 0 7px; }
.weekly-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

@media (max-width: 760px) {
  .booking-layout { width: min(100% - 24px, 540px); }
  .photo-page { min-height: max(424px, calc(100svh - 170px)); }
  .booking-stage .dates { gap: 4px; }
  .booking-stage .date small { font-size: 11px; }
  .booking-stage .date .day { font-size: 16px; }
}

.public-catalog { margin-top: 14px; }
.public-catalog h2 { margin-bottom: 14px; }
.public-catalog .team-card { padding-inline: 13px; }
.reward-choice { display: flex; gap: 9px; align-items: center; margin: 0 0 15px; font-weight: 700; }
.reward-choice input { accent-color: var(--accent); width: 19px; height: 19px; }
.loyalty-card { max-width: 580px; margin-bottom: 16px; }
.loyalty-card h2 { margin-bottom: 12px; }
.loyalty-card progress { display: block; width: 100%; height: 15px; accent-color: var(--accent); }
.loyalty-count { margin-top: 8px; }
.loyalty-count strong { color: var(--ink); }
.loyalty-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 12px; margin-bottom: 16px; }
.loyalty-summary strong { display: block; color: var(--accent-light); font-size: 32px; }
.loyalty-summary .panel { margin: 0; }
.booking-source { display: block; color: var(--accent-light); }
.web-link-form { margin-top: 14px; }
