:root {
  color-scheme: dark;
  --bg: #151515;
  --panel: #20201f;
  --surface: #242423;
  --ink: #f7f2eb;
  --muted: #c2bcb4;
  --copper: #e8aa7b;
  --line: #3c3935;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.wrap { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.top { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px var(--serif); letter-spacing: .08em; }
.brand img { object-fit: contain; }
.brand small { display: block; margin-top: 2px; font: 750 8px system-ui; letter-spacing: .28em; }
.top nav { display: flex; gap: 34px; font-size: .91rem; color: var(--muted); }
.top nav a:hover, .footer-team:hover { color: var(--copper); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  background: var(--copper); color: #21150d; border: 1px solid var(--copper);
  padding: 14px 19px; font-weight: 750; border-radius: 7px; min-height: 46px;
}
.button:hover { background: #f5c49e; }
.small { padding: 9px 15px; }
.hero { position: relative; min-height: 620px; display: grid; align-items: center; isolation: isolate; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 44%; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #151515 0%, transparent 32%), linear-gradient(0deg, #111a, transparent 45%); }
.hero-copy { max-width: 740px; padding-block: 72px; }
.hero-caption { position: absolute; z-index: 1; right: 7%; bottom: 30px; color: var(--ink); font-size: .66rem; letter-spacing: .18em; }
.eyebrow, .workspace-label { font-size: .69rem; font-weight: 800; letter-spacing: .18em; color: var(--copper); }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 1px; margin-right: 9px; background: currentColor; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
h1 { font-size: clamp(4rem, 7.25vw, 7.3rem); line-height: .96; margin: .2em 0 .29em; }
h1 em { color: var(--copper); font-weight: 400; }
h2 { font-size: clamp(2.65rem, 5vw, 4.65rem); line-height: 1; margin-bottom: 22px; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: 0; }
.hero-copy > p:not(.eyebrow), .muted, .studio p:not(.eyebrow), .footer p { color: var(--muted); line-height: 1.6; }
.hero-copy > p:not(.eyebrow) { max-width: 36ch; margin-bottom: 26px; }
.text-link { display: inline-block; color: var(--ink); margin: 12px 0 0 18px; text-decoration: underline; text-underline-offset: 6px; }
.text-link:hover, .footer-team { color: var(--copper); }
.strip { border-block: 1px solid var(--line); background: #1c1c1b; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 19px; font-size: .86rem; color: var(--muted); }
.strip b { color: var(--ink); margin-right: 7px; }
.strip a { color: var(--copper); font-weight: 700; }
.section { padding-block: 83px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.gallery, .charts, .fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.gallery article, form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; height: clamp(230px, 29vw, 385px); object-fit: cover; object-position: center 44%; }
.gallery article div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 19px; }
.gallery a { color: var(--copper); font-size: .87rem; font-weight: 700; padding-block: 8px; }
.home-services-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-services-controls { display: flex; gap: 8px; flex-shrink: 0; }
.home-services-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--copper);
  font-size: 1.15rem;
}
.home-services-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
.home-services-controls button[aria-disabled="false"]:hover { border-color: var(--copper); }
#featured-service-gallery {
  --service-card-width: calc((100% - 32px) / 3);
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: var(--service-card-width);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-block: 4px 10px;
}
#featured-service-gallery article { scroll-snap-align: start; display: flex; flex-direction: column; }
#featured-service-gallery article img { height: clamp(145px,20vw,240px); }
#featured-service-gallery article div { flex: 1; align-content: center; }
@media (max-width: 880px) {
  #featured-service-gallery { --service-card-width: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  #featured-service-gallery { --service-card-width: 84%; }
}
@media (prefers-reduced-motion: reduce) {
  #featured-service-gallery { scroll-behavior: auto; }
}
.booking, .studio { display: grid; grid-template-columns: 1fr 1.22fr; gap: clamp(28px, 6vw, 84px); align-items: center; }
.studio { grid-template-columns: 1fr 1fr; }
.studio img { width: 100%; height: 340px; object-fit: cover; object-position: center 56%; border-radius: 14px; }
.studio .text-link { margin-left: 0; }
form { padding: clamp(19px, 3vw, 32px); }
.form-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge { color: var(--copper); font-size: .72rem; font-weight: 750; padding: 5px 9px; border: 1px solid #65503e; border-radius: 100px; }
.fields { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 20px; }
label { display: grid; gap: 7px; font-size: .82rem; font-weight: 650; }
input, select { min-width: 0; width: 100%; min-height: 44px; padding: 9px 10px; background: #181818; color: var(--ink); border: 1px solid #57514b; border-radius: 7px; }
select:disabled { opacity: .68; }
#booking-result:not(:empty) { margin: 14px 0 0; padding: 12px; border-left: 2px solid var(--copper); background: #2c2520; }
#booking-result:empty { margin: 0; }
#cancel { margin-top: 10px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--copper); padding: 9px 11px; }
.workspace { display: grid; grid-template-columns: 214px minmax(0,1fr); background: #191919; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 26px; }
.workspace-nav { background: #20201f; border-right: 1px solid var(--line); padding: 23px 13px; }
.workspace-nav .workspace-label { padding-inline: 10px; }
.views { display: grid; gap: 6px; }
.views button { text-align: left; min-height: 44px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 10px; border-radius: 7px; font-size: .86rem; }
.views button:hover { background: #2b2926; color: var(--ink); }
.views button[aria-pressed="true"] { background: #352a23; color: var(--copper); border-color: #674b37; font-weight: 750; }
.dashboard { padding: clamp(16px, 2.6vw, 28px); min-width: 0; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; }
.dashboard-head .workspace-label { margin-bottom: 7px; }
.dashboard-head h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.controls, .controls #range:not([hidden]) { display: flex; flex-wrap: wrap; gap: 9px; }
#metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0 12px; }
.metric, .chart { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 15px; min-width: 0; }
.metric { color: var(--muted); font-size: .81rem; }
.metric strong { display: block; margin-bottom: 4px; font-size: clamp(1.17rem, 2vw, 1.65rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.charts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.chart h3 { font-size: 1rem; margin-bottom: 12px; }
.bar { margin-top: 10px; }
.bar div { display: flex; justify-content: space-between; gap: 6px; font-size: .77rem; color: var(--muted); }
.bar div span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar meter { display: block; width: 100%; height: 12px; accent-color: var(--copper); }
.bar meter::-webkit-meter-bar { background: #383532; border: 0; }
.bar meter::-webkit-meter-optimum-value { background: var(--copper); }
.bar meter::-moz-meter-bar { background: var(--copper); }
.bar meter.negative::-webkit-meter-optimum-value { background: #f18787; }
.bar meter.negative::-moz-meter-bar { background: #f18787; }
.footer p { margin: 0; font-size: .82rem; }
.footer-team { font-size: .87rem; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 540px; }
  .hero-photo { inset-inline-start: 34%; }
  .hero-photo::after { background: linear-gradient(90deg,#151515,#15151518 85%), linear-gradient(0deg,#111b,transparent 60%); }
  .section { padding-block: 62px; }
  .workspace { grid-template-columns: 170px minmax(0,1fr); }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .top { padding-block: 12px; }
  .top nav { display: none; }
  .brand img { width: 45px; height: 45px; }
  .hero { min-height: 560px; align-items: end; }
  .hero-photo { inset: 0; }
  .hero-photo img { object-position: center 36%; }
  .hero-photo::after { background: linear-gradient(0deg,#151515 3%,#151515d9 32%,#15151528 86%), linear-gradient(90deg,#1515156b,transparent); }
  .hero-caption { display: none; }
  .hero-copy { padding-block: 48px; }
  h1 { font-size: clamp(3.05rem, 10vw, 4.6rem); }
  .section { padding-block: 50px; }
  .gallery, .booking, .studio, .workspace, .charts { grid-template-columns: 1fr; }
  .gallery img { height: 230px; }
  .studio img { height: 265px; }
  .workspace-nav { border: 0; border-bottom: 1px solid var(--line); padding: 13px 10px; }
  .workspace-nav .workspace-label { margin-bottom: 8px; }
  .views { display: flex; flex-wrap: wrap; }
  .views button { font-size: .8rem; }
  #metrics { grid-template-columns: 1fr; gap: 8px; }
  .metric { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 9px; }
  .metric strong { margin: 0; text-align: right; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; }
}
@media (max-width: 360px) {
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.studio address { color: var(--ink); font-style: normal; font-weight: 650; margin-bottom: 9px; }
.studio .text-link { margin-right: 16px; }
.footer p a:hover { color: var(--copper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #151515f5;
  border-bottom: 1px solid var(--line);
}
.top { border-bottom: 0; padding-block: 12px; }
.section { scroll-margin-top: 92px; }
.button {
  gap: 18px;
  justify-content: space-between;
  min-height: 52px;
  padding: 7px 8px 7px 18px;
  border-radius: 100px;
  border-color: #f2bf97;
  background: linear-gradient(110deg, #f0ba8e, #dda174);
  box-shadow: inset 0 1px #fff5, 0 8px 24px #0004;
}
.button:hover { background: #f5c49e; }
.button.small { min-height: 45px; padding-left: 14px; gap: 10px; }
.action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button .action-icon { background: #2b1c16; color: #ffe0c4; }
.button.small .action-icon { width: 29px; height: 29px; }
.button:hover .action-icon, .gallery a:hover .action-icon, .studio .text-link:hover .action-icon { transform: translate(2px,-2px); }
.button:active, .gallery a:active, .views button:active { transform: translateY(1px); }
.hero .text-link, .studio .text-link, .gallery a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 13px;
  min-height: 44px;
  border: 1px solid #716052;
  border-radius: 100px;
  background: #201c19;
  color: var(--ink);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.hero .text-link .action-icon, .studio .text-link .action-icon, .gallery a .action-icon {
  width: 30px;
  height: 30px;
  background: #382c25;
  color: var(--copper);
}
.hero .text-link:hover, .studio .text-link:hover, .gallery a:hover {
  border-color: var(--copper);
  background: #2b231e;
}
.hero .text-link:hover .action-icon { transform: translateY(2px); }
.gallery article { transition: border-color 160ms ease; }
.gallery article:focus-within, .gallery article:hover { border-color: #967458; }
form .button { width: 100%; }
.views button { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.views button::after { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.views button[aria-pressed="true"] { box-shadow: inset 2px 0 var(--copper); }
@media (max-width: 670px) {
  .top { padding-block: 8px; }
  .section { scroll-margin-top: 74px; }
  .hero .text-link { margin-left: 8px; }
}
@media (max-width: 390px) {
  .hero .text-link { margin-left: 0; }
  .hero-copy > .button { margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .action-icon, .hero .text-link, .studio .text-link, .gallery a, .gallery article { transition: none; }
}
.ledger { margin-top: 32px; display: grid; gap: 18px; scroll-margin-top: 95px; }
.ledger h3 { margin-bottom: 8px; }
.ledger form { max-width: 720px; }
#ledger-status:empty { margin: 0; }
#ledger-status:not(:empty) { margin: 12px 0 0; color: var(--copper); }
.ledger-history ul { list-style: none; padding: 0; }
.ledger-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger-history li span { color: var(--muted); }
.ledger-jump { color: var(--copper); text-decoration: underline; text-underline-offset: 4px; }
.booking-choice { min-width: 0; border: 0; padding: 0; margin: 0 0 20px; }
.booking-choice legend { font-weight: 750; padding: 0; margin-bottom: 9px; }
.barber-options, .slot-options { display: grid; gap: 8px; }
.barber-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.barber-card { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #57514b; border-radius: 9px; cursor: pointer; }
.barber-card small { display: block; color: var(--muted); font-size: .69rem; font-weight: 450; margin-top: 3px; }
.barber-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #3b2b23; color: var(--copper); font-size: 1rem; }
.slot-options { grid-template-columns: repeat(auto-fit,minmax(68px,1fr)); }
.booking-choice input[type="radio"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.barber-card:has(input:checked) { border-color: var(--copper); background: #352a23; color: var(--copper); }
.barber-card:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
#slot-status { margin-bottom: 10px; font-size: .81rem; }
#booking-submit:disabled { opacity: .56; cursor: default; }
@media(max-width:430px) { .barber-options { grid-template-columns: 1fr; } }

#booking-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(510px,100%); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--ink); }
#booking-dialog::backdrop { background: #101010ab; }
body:has(#booking-dialog[open]) { overflow: hidden; }
#booking { display: flex; flex-direction: column; min-height: 100%; overflow: visible; border: 0; border-radius: 0; }
.wizard-head, .wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-head { margin-bottom: 20px; }
.wizard-head h2 { font-size: clamp(2rem,6vw,3rem); margin: 12px 0 0; }
#booking-close { background: transparent; color: var(--ink); border: 1px solid #716052; border-radius: 100px; min-width: 44px; min-height: 44px; padding: 8px 14px; }
#booking-close { font-size: 1.35rem; }
.wizard-heading { display: flex; align-items: center; gap: 10px; }
#booking-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #716052;
  border-radius: 50%;
  background: transparent;
  color: var(--copper);
}
#booking-back:hover { background: #352a23; border-color: var(--copper); }
.wizard-head:has(#booking-back:not([hidden])) h2 { margin: 0; font-size: clamp(1.5rem,4vw,2rem); }
#booking-choices { display: grid; gap: 12px; }
.booking-field-toggle {
  width: 100%;
  min-height: 64px;
  display: grid;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
}
.booking-field-toggle > span { color: var(--muted); font-size: .78rem; }
.booking-field-toggle > strong { overflow-wrap: anywhere; }
.booking-field-toggle:not(:disabled):hover { border-color: var(--copper); }
.booking-field-toggle:disabled { opacity: .55; cursor: default; }
#booking-choices + [data-step]:not([hidden]) { margin-top: 18px; }
#booking [data-step] h3 { margin-bottom: 16px; }
#booking .barber-options { grid-template-columns: 1fr; }
#booking input[type="radio"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
#booking .barber-card { min-height: 58px; }
#booking .barber-card:hover { border-color: var(--copper); }
#booking .booking-service-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) 5ch;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: var(--ink);
}
#booking .booking-service-card[aria-pressed="true"] {
  border-color: var(--copper);
  box-shadow: inset 0 0 0 1px var(--copper);
  background: #352a23;
  color: var(--copper);
}
#booking .booking-service-duration { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; margin: 0; }
#booking .booking-service-card:disabled { cursor: default; border-color: var(--line); }
#booking .booking-service-card [data-service-reason] { color: var(--copper); }
#service-total { margin: 12px 0 0; font-weight: 700; }
#booking .booking-calendar {
  padding: 12px clamp(0px, 2vw, 14px);
  border-block: 1px solid var(--line);
}
.booking-month {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
#booking .booking-month h3 { margin: 0; min-width: 15ch; text-align: center; font-size: .95rem; }
.booking-weekdays, .booking-days {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  align-items: center;
  text-align: center;
}
.booking-weekdays { color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .04em; }
#booking .booking-month button, #booking .booking-days button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}
#booking .booking-month button { width: 44px; color: var(--copper); font-size: 1.45rem; }
#booking .booking-days button { width: min(100%, 44px); justify-self: center; font-variant-numeric: tabular-nums; }
#booking .booking-days button[aria-current="date"]:not(:disabled) { color: var(--copper); }
#booking .booking-days button[aria-pressed="true"],
#booking .booking-days button:not(:disabled):hover,
#booking .booking-month button:not(:disabled):hover { border-color: var(--copper); color: var(--copper); }
#booking .booking-days button[aria-pressed="true"] { background: #352a23; }
#booking .booking-days button:disabled, #booking .booking-month button:disabled { opacity: .35; cursor: default; }
.booking-times { margin-top: 20px; }
#booking .booking-times h3 { margin: 0; font-size: 1rem; }
#slot-status { margin: 4px 0 12px; font-size: .8rem; }
.booking-periods:not([hidden]) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 8px; margin-bottom: 12px; }
#booking .booking-periods button[hidden] { display: none; }
#booking .booking-periods button, #booking .booking-time {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #282522;
  color: var(--ink);
}
#booking .booking-time { font-variant-numeric: tabular-nums; padding: 4px; }
#booking .booking-periods button[aria-pressed="true"],
#booking .booking-time[aria-pressed="true"] { border-color: var(--copper); background: #352a23; color: var(--copper); }
#booking .booking-periods button:disabled { opacity: .42; cursor: default; }
#booking .booking-periods button:not(:disabled):hover,
#booking .booking-time:hover { border-color: var(--copper); }
#booking .slot-options { grid-template-columns: repeat(auto-fill,minmax(64px,1fr)); }
.wizard-actions { padding-top: 18px; }
.wizard-actions .button { width: 100%; justify-content: center; }
#booking-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
#booking-summary dt, #booking-summary dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
#booking-summary dt { color: var(--muted); }
#booking-summary dd { margin: 0; text-align: right; }
#booking-summary ul { list-style: none; margin: 0; padding: 0; }
@media(max-width:600px) { #booking-dialog { width: 100%; border: 0; } }
.page-intro { padding-block: 65px 24px; }
.page-intro h1 { font-size: clamp(3rem,7vw,5.25rem); }
.page-intro .muted { max-width: 62ch; }
.page-detail { padding-top: 34px; }
.home-team { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.home-team h2 { margin-bottom: 12px; }
.page-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-links a { color: var(--copper); text-decoration: underline; text-underline-offset: 5px; }

.cash { padding-block: 32px 72px; }
.cash .page-links { margin-bottom: 34px; }
.cash .page-links [aria-current] { color: var(--ink); }
.cash-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cash-header h1 { font-size: clamp(2.8rem,6vw,5.35rem); margin: 0 0 13px; }
.cash-caption { color: var(--muted); font-size: .8rem; margin: 16px 0 9px; }
.cash-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 26px; }
.cash-totals div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.cash-totals span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.cash-totals strong { font-size: clamp(1rem,2.4vw,1.55rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cash-totals div:last-child { border-color: #77533d; background: #30251e; }
.cash-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; scroll-margin-top: 90px; }
.cash-entry, .cash-history { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.cash-entry form { border: 0; background: transparent; }
.cash-entry h2, .cash-history h2 { font: 700 1.25rem system-ui,sans-serif; letter-spacing: -.025em; margin-bottom: 10px; }
.cash-entry .muted { font-size: .86rem; }
.cash-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.cash-actions button, .cash-row-meta button { border: 1px solid var(--line); border-radius: 8px; background: #1a1918; color: var(--ink); padding: 8px 11px; min-height: 40px; font-weight: 700; font-size: .82rem; }
.cash-actions button[aria-pressed="true"], .cash-row-meta button:hover { background: #3d2c22; color: var(--copper); border-color: #846044; }
#cash-save { justify-content: center; }
#cash-save:disabled { opacity: .5; cursor: default; }
#cash-payment-value { padding: 10px; color: var(--copper); background: #30251e; border-radius: 6px; }
.cash-history { padding: clamp(15px,2.4vw,24px); }
.cash-filters { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 10px; margin: 16px 0; }
.cash-history ul { margin: 0; padding: 0; list-style: none; }
.cash-history li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cash-history li small { display: block; margin-top: 4px; color: var(--muted); }
.cash-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-variant-numeric: tabular-nums; }
.cash-status { font-size: .72rem; padding: 4px 7px; border-radius: 20px; background: #292827; }
.cash-status[data-status="pending"] { background: #3d2c22; color: var(--copper); }
.cash-status[data-status="payment"], .cash-status[data-status="attendance"] { background: #25392d; color: #b6e6c4; }
.cash-status[data-status="expense"] { background: #402727; color: #f6bbbb; }
@media (max-width: 850px) { .cash-workspace { grid-template-columns: 1fr; } }
@media (max-width: 570px) { .cash-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 390px) { .cash-filters, .cash-entry .fields { grid-template-columns: 1fr; } }
.team-agenda-filters { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 18px; }
.team-agenda-filters label { flex: 1 1 200px; max-width: 310px; }
#team-agenda-list h3 { margin: 18px 0 6px; color: var(--copper); }
#team-agenda-list { margin-bottom: 18px; }
#team-agenda-list li span { color: var(--muted); }
#booking-feedback:empty { display: none; }

.calendar-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.calendar-toolbar p { margin:0; }
.calendar-nav { display:flex; gap:6px; }
.calendar-nav button { min-width:42px; min-height:42px; border:1px solid var(--line); border-radius:8px; padding:4px 11px; background:#191817; color:var(--ink); }
.calendar-nav button:hover { color:var(--copper); border-color:var(--copper); }
.calendar-scroll { overflow-x:auto; padding-bottom:10px; margin-bottom:16px; }
#team-calendar { --hour-height:104px; --day-header:45px; display:grid; grid-template-columns:54px repeat(7,minmax(115px,1fr)); min-width:859px; }
#team-calendar[data-view="day"] { grid-template-columns:54px minmax(0,1fr); min-width:0; }
.calendar-day h3 { display:flex; align-items:center; justify-content:center; height:var(--day-header); margin:0; border:1px solid var(--line); border-right:0; font-size:.85rem; }
.calendar-day:last-child h3, .calendar-day:last-child .calendar-timeline { border-right:1px solid var(--line); }
.calendar-day h3[aria-current="date"] { color:var(--copper); background:#392a22; }
.calendar-timeline { height:calc(var(--calendar-hours,10) * var(--hour-height)); position:relative; border:1px solid var(--line); border-top:0; border-right:0; background:repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour-height) - 1px), var(--line) calc(var(--hour-height) - 1px) var(--hour-height)), #191918; }
.calendar-closed { background-color:#262523; }
.calendar-closed > span { display:block; text-align:center; padding-top:10px; color:var(--muted); font-size:.74rem; }
.calendar-break { position:absolute; top:calc(var(--event-top) * var(--hour-height)); height:calc(var(--event-length) * var(--hour-height)); overflow:hidden; inset-inline:0; display:grid; place-items:center; background:#ffffff08; color:var(--muted); font-size:.72rem; }
.calendar-hours { padding-top:calc(var(--day-header) - 7px); }
.calendar-hours span { display:block; height:var(--hour-height); font-size:.72rem; color:var(--muted); }
.calendar-hours span:last-child { height:14px; }
.calendar-event { position:absolute; top:calc(var(--event-top) * var(--hour-height) + 1px); height:calc(var(--event-length) * var(--hour-height) - 2px); left:calc(100% / var(--event-lanes) * var(--event-lane) + 2px); width:calc(100% / var(--event-lanes) - 4px); overflow:auto; padding:3px 5px; border-left:2px solid var(--copper); border-radius:5px; background:#453125; color:var(--ink); font-size:.69rem; line-height:1.15; overflow-wrap:anywhere; }
.calendar-event[data-barber="Profissional B"] { background:#243b35; border-color:#87cdb5; }
.calendar-event strong, .calendar-event small { display:block; }
.calendar-event small { font-size:.66rem; }
.agenda-admin { margin-top:24px; scroll-margin-top:90px; }
.agenda-admin form { max-width:680px; }
.team-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; }
#gerenciar-equipe { margin:0 0 24px; }
#block-list { margin-top:16px; }
.calendar-event { text-align:left; border-top:0; border-right:0; border-bottom:0; z-index:1; }
.calendar-event:hover { filter:brightness(1.25); }
.calendar-extra { position:absolute; inset-inline:0; top:calc(var(--event-top) * var(--hour-height)); height:calc(var(--event-length) * var(--hour-height)); overflow:hidden; border:1px dashed var(--copper); background:#c08a5f14; color:var(--copper); padding:3px 5px; font-size:.68rem; pointer-events:none; }
.calendar-unavailable { position:absolute; inset-inline:0; top:calc(var(--event-top) * var(--hour-height)); height:calc(var(--event-length) * var(--hour-height)); overflow:hidden; background:repeating-linear-gradient(135deg,#3a302a,#3a302a 5px,#302822 5px,#302822 10px); color:var(--muted); padding:3px 5px; font-size:.68rem; }
#calendar-details { width:min(480px,calc(100% - 28px)); max-height:85dvh; padding:0; border:1px solid var(--line); border-radius:14px; background:var(--panel); color:var(--ink); }
#calendar-details::backdrop { background:#101010b5; }
#calendar-details h2 { font:700 1.3rem system-ui,sans-serif; margin:0 0 12px; }
#calendar-detail-data { display:grid; grid-template-columns:auto 1fr; gap:8px 16px; margin-bottom:20px; }
#calendar-detail-data dd { margin:0; }
#calendar-detail-data dt { color:var(--muted); }
.calendar-detail-close { background:var(--bg); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:7px 10px; }
#calendar-details .calendar-detail-close { float:right; }

/* Keep the native calendar icon visible while extending its click target. */
[data-date-picker] {
  position: relative;
  cursor: pointer;
}
[data-date-picker]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
#customer-access { max-width:620px; }
#customer-access form { margin-top:12px; }
#customer-access form .button { margin-top:12px; justify-content:center; }
#account-feedback { margin:0; }
#account-feedback:not(:empty) {
  margin-top:12px;
  padding:10px 12px;
  border-left:2px solid var(--copper);
  border-radius:4px;
  background:#2b231e;
  color:var(--ink);
  font-size:.9rem;
}
#customer-edit { width:min(500px,calc(100% - 28px)); padding:0; border:1px solid var(--line); border-radius:14px; background:var(--panel); color:var(--ink); }
#customer-edit::backdrop { background:#101010b5; }
#customer-edit h2 { font:700 1.3rem system-ui,sans-serif; }
#customer-edit-fields label + label { margin-top:12px; }
#customer-edit .button { width:auto; justify-content:center; }
#customer-edit .button:disabled { opacity:.5; }
#customer-edit-feedback:empty { margin:0; }
#customer-edit .calendar-toolbar { margin-top:16px; }
#account-password-field, #account-confirmation-field { margin-top:12px; }
#account-profile { display:grid; gap:12px; margin-bottom:12px; }
.account-password-control { position:relative; }
.account-password-control input { min-height:48px; padding-right:52px; }
.account-password-control input::-ms-reveal { display:none; }
.account-password-control button {
  position:absolute;
  inset:2px 2px 2px auto;
  width:44px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.account-password-control button:hover,
.account-password-control button:focus-visible { color:var(--copper); }
.account-password-control button:focus-visible { outline:2px solid var(--copper); outline-offset:-3px; }
.account-password-control input[type="password"] + button .password-eye-slash { display:none; }
.account-options { margin:12px 0 0; }
.account-options button { border:0; background:none; color:var(--copper); text-decoration:underline; padding:6px 0; }
img.barber-avatar { width:36px; object-fit:cover; }
#public-roster { margin:16px 0; }
#roster-list { margin-top:16px; }
#roster-list li span { flex:1 0 100%; }
#roster-form { margin-block:16px; padding:16px; border:1px solid var(--line); border-radius:10px; }
#roster-form-title { margin:0 0 8px; scroll-margin-top:100px; }
.roster-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; }
.roster-form-actions .button { width:auto; }
.service-management-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; }
.service-management-actions .button { width:auto; }
#service-list .cash-row-meta { display:flex; flex-wrap:wrap; gap:8px; }
.barber-service-controls { flex:1 0 100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; }
.barber-service-controls summary { cursor:pointer; font-weight:650; }
.barber-service-controls label { display:flex; align-items:center; gap:8px; margin-top:8px; }
.barber-service-controls input { width:18px; min-height:18px; accent-color:var(--copper); }

.mobile-nav, .mobile-contact { display:none; }
.wizard-content, .hero-photo picture { display:contents; }

@media (max-width:670px) {
  .client-page { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  .client-page .wrap { width:calc(100% - 36px); }
  .client-page .site-header { padding-top:env(safe-area-inset-top); }
  .client-page .top { min-height:62px; gap:12px; }
  .client-page .brand { flex-shrink:0; }

  .mobile-nav {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed;
    inset:auto 0 0;
    z-index:4;
    padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    border-top:1px solid var(--line);
    background:#1b1a19;
    box-shadow:0 -12px 32px #0004;
  }
  .mobile-nav a {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:4px;
    min-height:54px;
    border-radius:10px;
    color:var(--muted);
    font-size:.64rem;
    font-weight:700;
    line-height:1.15;
    text-align:center;
  }
  .mobile-nav svg { width:20px; height:20px; }
  .mobile-nav .mobile-booking-link {
    background:var(--copper);
    color:#21150d;
    margin-inline:3px;
  }
  .mobile-nav a[aria-current="page"]:not(.mobile-booking-link) {
    background:#31261f;
    color:var(--copper);
  }

  .client-page .hero {
    min-height:0;
    align-items:start;
  }
  .client-page .hero-photo {
    position:relative;
    inset:auto;
    height:clamp(235px,36svh,355px);
  }
  .client-page .hero-photo img { object-position:center 63%; }
  .client-page .hero-photo::after {
    background:linear-gradient(0deg,#151515,transparent 23%);
  }
  .client-page .hero-copy { padding-block:12px 28px; }
  .client-page .hero h1 {
    font-size:clamp(2.34rem,11vw,4.6rem);
    line-height:.99;
  }
  .client-page .hero-copy > p:not(.eyebrow) { margin-bottom:18px; max-width:34ch; }
  .client-page .hero-copy > .button { min-height:48px; margin-right:7px; gap:10px; }
  .client-page .hero .text-link { margin:8px 0 0; padding-inline:12px; }
  .client-page .hero .text-link .action-icon { display:none; }
  .client-page .section { padding-block:36px; }
  .client-page .page-intro { padding-block:34px 10px; }
  .client-page .page-intro h1,
  .client-page .cash-header h1,
  .client-page .booking h1 { font-size:clamp(2.55rem,10vw,4rem); }
  .client-page h2 { font-size:clamp(1.95rem,8vw,3.1rem); }

  .client-page .strip .wrap {
    display:grid;
    grid-template-columns:1fr 1.15fr;
    padding-block:13px;
    gap:10px;
  }
  .client-page .strip b { display:block; margin-bottom:3px; }
  .client-page .strip a { display:none; }
  .client-page .gallery { gap:10px; }
  .client-page .gallery article:has(> img) {
    display:grid;
    grid-template-columns:clamp(92px,28vw,160px) minmax(0,1fr);
  }
  .client-page .gallery img { height:100%; min-height:100px; }
  #featured-service-gallery article > img {
    height:auto;
    aspect-ratio:3 / 4;
  }
  #service-gallery article > img {
    height:auto;
    min-height:0;
    align-self:center;
  }
  .client-page .gallery article div { padding:12px; justify-content:flex-start; }
  .client-page .gallery h3 { width:100%; margin:0; }
  .client-page .gallery a { min-height:44px; }
  .client-page .studio { gap:19px; }
  .client-page .studio img { height:230px; }
  .client-page .home-team { gap:14px; }
  .client-page .footer { gap:12px 18px; }
  .client-page .footer-team { display:inline-flex; align-items:center; min-height:44px; }
  .client-page #customer-access input,
  .client-page #customer-edit input,
  .client-page #customer-edit select,
  .client-page #booking input:not([type="radio"]) { font-size:16px; }
  .client-page #booking .fields { grid-template-columns:1fr; }
  .client-page .account-options button { min-height:44px; }

  #booking-dialog { width:calc(100% - 16px); border:0; overflow:hidden; }
  #booking {
    height:100%;
    min-height:0;
    overflow:hidden;
    padding:0;
  }
  #booking .wizard-head {
    flex-shrink:0;
    margin:0;
    padding:calc(12px + env(safe-area-inset-top)) 18px 12px;
    border-bottom:1px solid var(--line);
  }
  #booking .wizard-head h2 { margin:0; font-size:1.8rem; }
  #booking .wizard-content {
    display:block;
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:18px;
  }
  #booking .wizard-actions {
    flex-shrink:0;
    padding:10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line);
    background:#1b1a19;
  }
  #booking .wizard-actions:has(> :not([hidden])) { display:flex; }
  #booking .wizard-actions:not(:has(> :not([hidden]))) { display:none; }
  #booking .barber-card { min-height:62px; padding:12px 14px; }
  #booking-whatsapp { width:auto; gap:12px; }
}

.roster-commission-toggle { display:flex; align-items:center; gap:10px; margin-block:14px; }
.roster-commission-toggle input { width:20px; height:20px; margin:0; accent-color:var(--copper); }
#roster-commission-field { max-width:220px; margin-bottom:14px; }

.cash .cash-totals { grid-template-columns:repeat(auto-fit,minmax(min(135px,100%),1fr)); }
.dashboard-finance { margin-top:28px; }
.dashboard-finance h2 { font-size:clamp(1.5rem,4vw,2.2rem); }

@media (max-width:670px) {
  .client-page #barbeiros.home-team,
  .client-page #barbeiros + #espaco.studio,
  .client-page #agenda.home-team {
    margin-block-start:32px;
    padding:24px 20px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--panel);
  }

  .client-page #barbeiros.home-team,
  .client-page #agenda.home-team {
    display:grid;
    justify-content:stretch;
    justify-items:start;
    gap:18px;
  }

  .client-page #barbeiros.home-team p:last-child,
  .client-page #agenda.home-team p:last-child { margin-bottom:0; }

  .client-page #barbeiros + #espaco.studio {
    gap:24px;
    border-bottom:0;
    border-radius:16px 16px 0 0;
    padding-bottom:16px;
  }

  .client-page #barbeiros + #espaco.studio img { height:clamp(160px,49vw,230px); }
  .client-page #barbeiros + #espaco.studio h2 { margin-bottom:14px; }

  .client-page #barbeiros + #espaco.studio .text-link {
    min-height:44px;
    margin:0 8px 8px 0;
  }

  .client-page #espaco + .page-links {
    margin-bottom:0;
    padding:0 20px 18px;
    border:1px solid var(--line);
    border-top:0;
    border-radius:0 0 16px 16px;
    background:var(--panel);
  }

  .client-page #espaco + .page-links a {
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }

  .client-page #agenda.home-team { margin-bottom:32px; }
}

.service-photo-field { display:grid; gap:12px; margin-top:16px; }
#service-current-photo { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
#service-photo-preview { border-radius:8px; object-fit:cover; }
#service-current-photo label { display:flex; align-items:center; gap:8px; }
#service-current-photo input { width:18px; min-height:18px; accent-color:var(--copper); }

.calendar-event[data-status="completed"] { background:#243b35; border-color:#87cdb5; }
.calendar-booking-buttons { display:grid; gap:8px; }
#calendar-details .calendar-booking-buttons button { float:none; min-height:44px; text-align:left; }
#calendar-outcome-note:empty, #calendar-outcome-feedback:empty { display:none; }
#calendar-released { margin-block:16px; }
#calendar-released summary { cursor:pointer; color:var(--copper); }
#calendar-released-list { padding-left:0; list-style:none; }
#calendar-released-list button { min-height:44px; margin-bottom:6px; text-align:left; color:var(--ink); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.opening-days { display:grid; gap:10px; margin-bottom:18px; }
.opening-day { margin:0; padding:10px 12px 12px; border:1px solid var(--line); border-radius:10px; min-width:0; }
.opening-day legend { padding:0 4px; }
.opening-day legend label { display:flex; align-items:center; gap:8px; font-size:.9rem; }
.opening-day legend input { width:auto; min-height:0; }
.opening-shifts:not([hidden]) { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:6px; }
@media (max-width: 670px) { .opening-shifts:not([hidden]) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
#booking-rules-title { margin-top:28px; }
.cash-drawer { margin-bottom:18px; }
.cash-drawer form { padding:0; border:0; background:none; margin-top:14px; }
.cash-drawer h3 { margin:20px 0 8px; font:700 1rem system-ui,sans-serif; }
.cash-drawer h4 { margin:0 0 4px; font-size:.82rem; color:var(--muted); }
.cash-drawer-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
@media (max-width: 670px) { .cash-drawer-summary { grid-template-columns:1fr; } }
#cash-drawer-history { margin-top:14px; }
.review-box { flex-basis:100%; }
.review-box > button { background:none; border:1px solid var(--line); border-radius:6px; color:var(--copper); padding:8px 11px; }
.review-form { padding:12px 0 0; border:0; background:none; display:grid; gap:10px; }
.review-form fieldset { border:0; margin:0; padding:0; }
.review-form legend { font-size:.86rem; margin-bottom:6px; }
.review-stars { display:flex; flex-wrap:wrap; gap:6px; }
.review-stars label { display:flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:6px; padding:6px 9px; }
.review-stars input { width:auto; min-height:0; }
.review-form textarea { width:100%; padding:9px 10px; background:#181818; color:var(--ink); border:1px solid #57514b; border-radius:7px; font:inherit; }
.review-summary { color:var(--copper); flex-basis:100%; }
.review-list { list-style:none; margin:14px 0 0; padding:0; }
.review-list li { border-bottom:1px solid var(--line); padding:10px 0; }
.review-list strong { color:var(--copper); }
.review-list small { margin-left:8px; color:var(--muted); }
.review-list p { margin:6px 0 0; }
#dashboard-reviews { margin-top:18px; }
.activity-list li small { display:block; margin-top:4px; color:var(--muted); }
#activity-more { margin-top:14px; }
.cash-auto-note { margin:-4px 0 14px; font-size:.82rem; }
/* Clube Rocha */
.club-tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:20px; overflow-x:auto; }
.club-tabs [role="tab"] { background:none; border:0; border-bottom:2px solid transparent; color:var(--muted); font-weight:700; padding:12px 14px; min-height:44px; white-space:nowrap; }
.club-tabs [role="tab"][aria-selected="true"] { color:var(--copper); border-bottom-color:var(--copper); }
.club-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.club-card { border:1px solid var(--line); border-radius:14px; background:var(--panel); padding:20px; display:grid; gap:8px; align-content:start; }
.club-card h3 { margin:0; font-size:1.4rem; }
.club-card .eyebrow { margin:0; }
.club-price { margin:0; color:var(--muted); }
.club-price strong { color:var(--ink); font-size:1.6rem; }
.club-days { margin:0; color:var(--muted); font-size:.88rem; }
.club-items { margin:4px 0 8px; padding-left:18px; }
.club-items strong { color:var(--copper); font-weight:700; }
.club-card .button { justify-self:start; }
.club-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.club-mine { display:grid; gap:14px; max-width:640px; }
.club-mine-head p { margin:6px 0 0; }
.club-status { display:inline-block; border:1px solid var(--line); border-radius:100px; padding:4px 10px; font-size:.78rem; font-weight:700; color:var(--muted); }
.club-status[data-status="active"] { color:#87cdb5; border-color:#2f5a4c; }
.club-status[data-status="past_due"] { color:#f0a0a0; border-color:#6a3434; }
.club-status[data-status="pending"] { color:var(--copper); border-color:#65503e; }
.club-empty { border:1px solid var(--line); border-radius:14px; padding:24px; display:grid; gap:12px; justify-items:start; max-width:520px; }
.club-empty p { margin:0; }
.club-payments { list-style:none; margin:0; padding:0; max-width:640px; }
.club-payments li { display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid var(--line); padding:12px 0; }
.club-payments small { display:block; color:var(--muted); margin-top:3px; }
.club-notice { border-left:2px solid var(--copper); background:#2c2520; padding:12px; margin:0 0 16px; }
.club-howto { margin:0 0 16px; }
.club-badge { display:inline-block; margin-right:4px; padding:0 5px; border-radius:4px; background:var(--copper); color:#21150d; font-size:.6rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; vertical-align:1px; }
@media (max-width: 670px) {
  .club-tabs { gap:0; }
  .club-tabs [role="tab"] { flex:1 1 auto; padding:12px 6px; font-size:.86rem; }
}

/* ===================================================================
   App shell (customer pages, body.app) — mobile first
   =================================================================== */
.app { --tabbar-h: 68px; --radius-card: 16px; background: var(--bg); }
.app .site-header, .app .mobile-nav, .app .mobile-contact { display: none; }
.app-top { position: sticky; top: 0; z-index: 20; background: #151515f2; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.app-top-inner { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-left)); max-width: 1080px; margin: 0 auto; }
.app-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; }
.app-brand img { width: 34px; height: 34px; border-radius: 50%; }
.app-brand span { font: 700 1rem var(--serif); letter-spacing: .06em; line-height: 1; }
.app-brand small { display: block; font: 700 .52rem system-ui, sans-serif; letter-spacing: .28em; color: var(--muted); margin-top: 3px; }
.app-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; color: var(--ink); }
.app-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--copper); }
.app-icon-link svg, .app-back svg { width: 22px; height: 22px; }
.app-nav-desktop, .app-book-desktop { display: none; }

.app-tabbar { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: #1b1a19; border-top: 1px solid var(--line); }
.app-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: var(--muted); font-size: .68rem; font-weight: 700; text-decoration: none; }
.app-tabbar svg { width: 22px; height: 22px; }
.app-tabbar a[aria-current="page"] { color: var(--copper); }
.app-tabbar .app-tab-book { margin: -18px 4px 0; min-height: 62px; background: var(--copper); color: #21150d; border-radius: 18px; border: 4px solid #1b1a19; }
.app-tabbar .app-tab-book svg { width: 24px; height: 24px; }
.app main { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.app .footer { display: none; }

.app-screen { max-width: 640px; margin: 0 auto; padding: 18px 16px 0; }
.app-screen > * + * { margin-top: 22px; }
.app-kicker { margin: 0; color: var(--muted); font-size: .82rem; }
.app-title { margin: 4px 0 0; font: 400 clamp(1.7rem, 7vw, 2.3rem)/1.08 var(--serif); }
.app-title em { color: var(--copper); }
.app-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.app-section-head h2 { margin: 0; font: 700 1.05rem system-ui, sans-serif; letter-spacing: -.01em; }
.app-section-head a { color: var(--copper); font-size: .86rem; font-weight: 700; text-decoration: none; }
.app-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; }
.app-card p { margin: 0; }
.app-hero { position: relative; overflow: hidden; border-radius: 20px; min-height: 210px; display: flex; align-items: flex-end; background: #2a2622; }
.app-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #15151500 30%, #151515e6 100%); }
.app-hero div { position: relative; z-index: 1; padding: 16px; }
.app-hero .app-title { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
.app-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: #65503e; text-decoration: none; color: var(--ink); }
.app-next strong { display: block; font-size: 1.15rem; margin-top: 2px; }
.app-next span:last-child { color: var(--copper); font-weight: 700; white-space: nowrap; }
.app-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-tile { display: grid; gap: 2px; align-content: start; min-height: 96px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.app-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.app-tile strong { font-size: .96rem; }
.app-tile small { color: var(--muted); font-size: .8rem; }
.app-tile:active, .app-person:active, .app-next:active { transform: scale(.98); }
.app-people { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.app-person { flex: 0 0 auto; width: 74px; display: grid; justify-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: .8rem; text-align: center; }
.app-person img, .app-person span.app-avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--copper); font-weight: 700; font-size: 1.2rem; }
.app-club { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--copper); color: #21150d; border-radius: var(--radius-card); padding: 16px; text-decoration: none; }
.app-club strong { display: block; font-size: 1.05rem; }
.app-club small { font-size: .84rem; }
.app-info { display: grid; gap: 12px; }
.app-info-row { display: flex; gap: 12px; align-items: flex-start; }
.app-info-row svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--copper); margin-top: 2px; }
.app-info-row a { color: var(--copper); font-weight: 700; }
.app-actions { display: grid; gap: 10px; }
.app-actions .button { justify-content: center; min-height: 50px; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.app .page-intro { padding-top: 18px; }

@media (min-width: 900px) {
  .app-tabbar { display: none; }
  .app main { padding-bottom: 40px; }
  .app .footer { display: flex; }
  .app-nav-desktop { display: flex; gap: 4px; }
  .app-nav-desktop a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; }
  .app-nav-desktop a[aria-current="page"] { color: var(--copper); background: #2a2420; }
  .app-book-desktop { display: inline-flex; }
  .app-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-screen { padding-top: 28px; }
}
@media (max-width: 899px) {
  .app #booking-dialog { width: 100%; height: 100dvh; }
  body:has(#booking-dialog[open]) .app-tabbar { display: none; }
  .app #booking .wizard-footer, .app #booking-submit { min-height: 52px; }
}
/* Reservas, Clube and inner pages inside the app shell */
.app main.wrap { max-width: 640px; padding-left: 16px; padding-right: 16px; }
.app-page-head { padding: 18px 0 6px; }
.app .cash-history { border-radius: var(--radius-card); }
.app #customer-list { display: grid; gap: 10px; }
.app #customer-list li { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.app #customer-list li strong { font-size: 1rem; }
.app #customer-list .cash-row-meta { display: flex; gap: 8px; }
.app #customer-list .cash-row-meta button { flex: 1; min-height: 44px; border-radius: 10px; }
.app-book-inline { width: 100%; justify-content: center; min-height: 50px; margin: 4px 0 14px; }
.app .club, .app .page-intro { padding-left: 0; padding-right: 0; }
.app .club { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.app .page-intro { max-width: 640px; margin: 0 auto; padding: 18px 16px 4px; }
.app .page-intro h1 { font: 400 clamp(1.7rem, 7vw, 2.3rem)/1.08 var(--serif); margin: 4px 0 6px; }
.app .page-intro .eyebrow { color: var(--muted); letter-spacing: 0; font-size: .82rem; text-transform: none; }
.app-links li a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font-weight: 700; text-decoration: none; }
.app-links li a span { color: var(--copper); font-size: 1.3rem; }
.app-account { display: grid; gap: 12px; }
.app-account dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .92rem; }
.app-account dt { color: var(--muted); }
.app-account dd { margin: 0; overflow-wrap: anywhere; }
.install-card { display: grid; gap: 8px; }
.install-card p { margin: 0; }
.install-steps { line-height: 1.6; }
#booking-install { margin: 14px 0; }
.app-club svg { flex: 0 0 24px; width: 24px; height: 24px; }
.app #customer-access form, .app #customer-bookings form { border: 0; background: none; padding: 0; }
.app .cash-history { padding: 18px 16px; }
.app .cash-history h2 { font: 700 1.2rem system-ui, sans-serif; letter-spacing: -.01em; }
.app main.wrap { width: 100%; }
.app .section { max-width: 640px; width: auto; margin: 0 auto; padding: 8px 16px 0; }
.app .section > .eyebrow { display: none; }
.app #service-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app #service-gallery article { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.app #service-gallery article img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.app #service-gallery article > div { display: grid; gap: 4px; align-content: start; padding: 10px 12px 12px; }
.app #service-gallery h3 { margin: 0; font: 700 .96rem system-ui, sans-serif; }
.app #service-gallery p { margin: 0; color: var(--muted); font-size: .8rem; }
.app #service-gallery a { justify-self: start; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--copper); font-size: .86rem; font-weight: 700; min-height: 32px; }
.app #service-gallery a .action-icon { display: none; }
@media (min-width: 900px) { .app #service-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Team area inside the app shell */
.team main.wrap { max-width: 720px; }
.team nav.page-links[aria-label="Gestão"] { display: none; }
.team .cash-header { padding-top: 14px; }
.team .cash-header h1 { font: 400 clamp(1.7rem, 7vw, 2.3rem)/1.08 var(--serif); }
.team .cash-header .eyebrow { color: var(--muted); letter-spacing: 0; font-size: .82rem; text-transform: none; }
.team .team-actions .button { min-height: 46px; }
.team input, .team select, .team textarea { min-height: 46px; font-size: 16px; }
.team .fields { gap: 12px; }
@media (max-width: 670px) { .team .fields { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .team main.wrap { max-width: 1080px; } .team .team-screen { max-width: 720px; } }
.today-totals { margin-bottom: 14px; }
.today-filter:not([hidden]) { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.today-filter button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--line); background: none; color: var(--muted); font-weight: 700; }
.today-filter button[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #21150d; }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.today-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.today-card.today-next { border-color: var(--copper); }
.today-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.today-head small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.today-time { font-size: 1.3rem; color: var(--copper); font-variant-numeric: tabular-nums; }
.today-services, .today-due { margin: 0; }
.today-services .club-badge { margin-left: 4px; }
.today-due { font-weight: 700; }
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.today-actions .button, .today-actions .calendar-detail-close { flex: 1 1 120px; min-height: 48px; justify-content: center; border-radius: 12px; }
.today-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--copper); font-weight: 700; text-decoration: none; }
.today-receive { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.today-receive p { margin: 0; }
.today-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.today-methods button { min-height: 48px; border-radius: 12px; border: 1px solid #65503e; background: #2a2420; color: var(--ink); font-weight: 700; }
.today-paid { margin: 0; color: #87cdb5; font-weight: 700; }
.today-empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.manage-links a > span:first-child { display: grid; gap: 2px; padding: 10px 0; }
.manage-links small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.manage-signout { margin-top: 18px; width: 100%; min-height: 48px; }
.today-totals.cash-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.today-totals.cash-totals > div { padding: 8px 10px; min-height: 0; }
.today-totals.cash-totals span { font-size: .72rem; }
.today-totals.cash-totals strong { font-size: 1.05rem; margin-top: 2px; }
.today-totals.cash-totals strong { white-space: nowrap; font-size: .98rem; }
@media (min-width: 900px) { .team main.wrap.team-screen { max-width: 720px; } }
/* Início: one column on phones (original order), two columns on computers */
.home-screen { display: flex; flex-direction: column; gap: 22px; }
.home-screen > * + * { margin-top: 0; }
.home-aside, .home-main { display: contents; }
.home-o1 { order: 1; } .home-o2 { order: 2; } .home-o3 { order: 3; } .home-o4 { order: 4; } .home-o5 { order: 5; } .home-o6 { order: 6; }
@media (min-width: 900px) {
  .app-screen { max-width: 760px; }
  .app:not(.team) main.wrap, .app .club, .app .page-intro, .app .section { max-width: 760px; }
}
/* Início on phones and tablets: the cover photo is portrait, so give it a taller frame
   and keep the face and beard above the title instead of a thin band through the nose. */
@media (max-width: 899px) {
  .home-screen .app-hero { aspect-ratio: 10 / 9; max-height: 70vh; }
  .home-screen .app-hero img { object-position: center 88%; }
}
/* Início on computers: full-width cover, then stacked sections */
.home-hero-text, .home-hero-actions, .home-visit-photo { display: none; }
@media (min-width: 900px) {
  .app-screen.home-screen { display: flex; flex-direction: column; gap: 56px; max-width: 1120px; padding-top: 0; }
  .app main { overflow-x: clip; }
  .home-screen #home-next { display: none; }
  .home-screen .app-hero { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; min-height: min(78vh, 720px); align-items: center; }
  .home-screen .app-hero::after { background: linear-gradient(90deg, #151515f2 0%, #151515b3 38%, #15151500 70%); }
  .home-screen .app-hero > div { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 0; }
  .home-screen .app-hero .app-title { font-size: clamp(3rem, 5.6vw, 5rem); max-width: 12ch; }
  .home-screen .app-hero .app-kicker { font-size: 1rem; }
  .home-hero-text { display: block; max-width: 440px; margin: 18px 0 0; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
  .home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
  .home-hero-actions .button { min-height: 52px; padding-inline: 22px; }
  .home-hero-next:not([hidden]) { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border: 1px solid var(--copper); border-radius: 100px; color: var(--copper); font-weight: 700; text-decoration: none; background: #15151599; }
  .home-screen .app-section-head h2 { font: 400 2rem/1.1 var(--serif); }
  .home-screen .app-section-head { margin-bottom: 18px; }
  .home-screen .app-tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .home-screen .app-tile { padding: 0; overflow: hidden; border-radius: 16px; }
  .home-screen .app-tile img { border-radius: 0; margin: 0; aspect-ratio: 4 / 3; }
  .home-screen .app-tile strong { padding: 12px 14px 0; font-size: 1.05rem; }
  .home-screen .app-tile small { padding: 2px 14px 14px; font-size: .9rem; }
  .home-screen .app-people { gap: 22px; overflow: visible; }
  .home-screen .app-person { width: 150px; font-size: .95rem; font-weight: 700; }
  .home-screen .app-person img, .home-screen .app-person span.app-avatar { width: 150px; height: 180px; border-radius: 16px; }
  .home-screen .app-club { padding: 28px 32px; border-radius: 20px; }
  .home-screen .app-club strong { font: 400 2rem/1.1 var(--serif); }
  .home-screen .app-club small { font-size: 1rem; }
  .home-screen .home-o6 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "photo head" "photo info"; grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; padding-bottom: 24px; }
  .home-screen .home-o6 .app-section-head { grid-area: head; }
  .home-screen .home-o6 .app-info { grid-area: info; font-size: 1.05rem; }
  .home-visit-photo { display: block; grid-area: photo; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
  .app .footer.wrap { width: min(1120px, calc(100% - 64px)); }
}
@media (min-width: 900px) {
  .home-screen .app-hero { background: #151515; }
  .home-screen .app-hero img { left: auto; right: 0; width: 52%; object-position: center 30%; }
  .home-screen .app-hero::after { left: auto; right: 0; width: 52%; background: linear-gradient(90deg, #151515 0%, #15151566 30%, #15151500 60%); }
}
/* Início services: swipeable carousel on phones */
@media (max-width: 899px) {
  .home-screen .app-tiles { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .home-screen .app-tiles::-webkit-scrollbar { display: none; }
  .home-screen .app-tile { flex: 0 0 68%; max-width: 260px; scroll-snap-align: start; }
}
/* Cover photo framing on computers: keep the face and beard in view */
@media (min-width: 900px) {
  .home-screen .app-hero img { width: 46%; object-position: center 78%; }
  .home-screen .app-hero::after { width: 46%; }
}
/* Payment form (single tap or split) */
.pay-form { display: grid; gap: 8px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.pay-method { min-height: 48px; border-radius: 12px; border: 1px solid #65503e; background: #2a2420; color: var(--ink); font-weight: 700; }
.pay-split { border-style: dashed; color: var(--copper); background: none; }
.pay-panel { display: grid; gap: 10px; }
.pay-rows { display: grid; gap: 8px; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 44px; gap: 8px; }
.pay-row select, .pay-row input, .pay-panel input { min-height: 46px; font-size: 16px; }
.pay-remove { border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--muted); font-size: 1.3rem; }
.pay-link { justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; color: var(--copper); font-weight: 700; }
.pay-remaining { margin: 0; font-weight: 700; color: var(--muted); }
.pay-remaining[data-state="ok"] { color: #87cdb5; }
.pay-change { margin: 0; color: var(--copper); font-weight: 700; }
.pay-change:empty { display: none; }
.pay-row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pay-row-actions .button { min-height: 48px; }
.pay-status:empty { display: none; }
.pay-status { margin: 0; color: #f0a0a0; }
#cash-payment-form { margin: 4px 0 12px; }
