@font-face {
  font-family: Instrument;
  src: url(/serif.ttf) format('truetype');
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  font-style: italic;
  src: url(/serif-italic.ttf) format('truetype');
  font-display: swap;
}
:root {
  --ink: #26221f;
  --sub: #605a54;
  --mut: #716a62;
  --paper: #f7f5f0;
  --white: #fffefb;
  --line: #ded8ce;
  --soft: #eee9e0;
  --dark: #23211f;
  --orange: #f38426;
  --copper: #924311;
  --peach: #fae5ce;
  --sage: #e6eee6;
  --green: #305d48;
  --serif: Instrument, Georgia, serif;
  --sans: Inter, 'Segoe UI', Arial, sans-serif;
  font: 15px/1.45 var(--sans);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.detail-amount,
.next-time {
  font-family: var(--serif);
  font-weight: 400;
}
h1,
h2 {
  line-height: 1.04;
}
h1 {
  font-size: clamp(42px, 4vw, 61px);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.016em;
}
h3 {
  font-size: 16px;
}
em {
  font-weight: 400;
}
p {
  color: var(--sub);
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a55418;
  outline-offset: 3px;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #ccc4b9;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 11px;
}
input[type='date'],
input[type='month'],
select {
  min-height: 39px;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
input[type='checkbox'] {
  accent-color: var(--copper);
}
svg {
  flex-shrink: 0;
}
small,
.muted {
  color: var(--mut);
}
.muted {
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.25;
}
.btn:hover {
  filter: brightness(0.97);
}
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #291c10;
}
.btn.dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn.ghost {
  background: #39332d;
  color: #fffaf2;
  border-color: #645445;
}
.actions,
.dialog-actions,
.form-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--copper);
  padding: 4px 0;
  font-weight: 650;
}
.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar,
.mobile-menu {
  color: #efe7dc;
  background: var(--dark);
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: auto;
  padding: 18px 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
a.brand:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand img {
  width: 52px;
  height: 46px;
  object-fit: contain;
}
.brand span {
  display: grid;
  gap: 1px;
}
.brand b {
  font-size: 19px;
  letter-spacing: -0.7px;
  color: #fffaf3;
}
.brand small {
  color: #cfc5b8;
  font-size: 11px;
}
.sidebar > .brand,
.mobile-menu > .brand {
  padding: 0 5px 19px;
  border-bottom: 1px solid #443d36;
}
.nav-groups {
  padding: 4px 0 12px;
}
.nav-groups section {
  margin: 20px 0 0;
}
.nav-groups h3,
.eyebrow {
  text-transform: uppercase;
  font: 700 10px/1.4 var(--sans);
  letter-spacing: 0.135em;
}
.nav-groups h3 {
  margin: 0 9px 7px;
  color: #bbafa2;
}
.nav-groups a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: #e7ded3;
  font-size: 13px;
}
.nav-groups a:hover {
  background: #342e28;
}
.nav-groups a.active {
  background: #4b3423;
  color: #ffb26f;
  box-shadow: inset 3px 0 var(--orange);
  font-weight: 650;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #453d36;
  margin-top: auto;
  padding: 15px 4px 0;
}
.profile div {
  display: grid;
  min-width: 0;
  flex: 1;
}
.profile b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  font-size: 11px;
  color: #c8bcac;
}
.profile button,
.mobile-head button {
  border: 0;
  background: transparent;
  color: #e8dfd3;
}
.avatar {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9e4cc;
  color: #555e3d;
  font-size: 12px;
  font-weight: 750;
}
.profile .avatar {
  background: #523c2a;
  color: #ffbb83;
}
.workspace {
  width: 100%;
  max-width: 1610px;
  margin: auto;
  padding: 0 clamp(22px, 2.6vw, 48px) 42px;
  align-self: start;
  min-width: 0;
}
.top {
  height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--sub);
}
.top div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.top a,
.access-booking-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 30px;
  background: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.top a svg {
  color: var(--copper);
}
.mobile-head,
.bottom,
.mobile-menu {
  display: none;
}
.agenda-hero,
.booking-cover,
.access-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #231d19;
  color: #fffaf4;
  border-radius: 16px;
}
.agenda-hero {
  min-height: 212px;
  display: flex;
  align-items: center;
}
.agenda-hero:before,
.access-photo:before,
.booking-cover:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, #221c18 0%, #221c18 30%, #211b1799 55%, transparent 78%), url(/capa.webp);
  background-size:
    cover,
    69% auto;
  background-position:
    center,
    right 52%;
  background-repeat: no-repeat;
}
.hero-copy {
  padding: 24px 29px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--copper);
}
.hero-copy .eyebrow,
.access-photo .eyebrow,
.booking-cover .eyebrow {
  color: #ffc18b;
}
.eyebrow i {
  width: 23px;
  height: 2px;
  background: var(--orange);
}
.hero-copy h1 {
  font-size: clamp(48px, 5vw, 73px);
  margin: 14px 0 19px;
}
.hero-copy h1 em,
.booking-cover h1 em,
.access-photo h1 em {
  color: #ffc18b;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 17px 0;
}
.kpis.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi,
.card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.kpi {
  padding: 16px;
  min-height: 91px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.kpi strong {
  display: block;
  font-size: clamp(20px, 1.85vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}
.kpi small,
.kpi p {
  font-size: 12px;
}
.kpi p {
  margin-top: 5px;
}
.kpi-click {
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
}
.iconbox {
  background: #efebe4;
  color: var(--sub);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.green {
  background: var(--sage);
  color: var(--green);
}
.peach {
  background: var(--peach);
  color: var(--copper);
}
.card {
  padding: 19px 20px;
  margin-bottom: 16px;
  min-width: 0;
}
.card-title,
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  margin-bottom: 13px;
}
.card-title input,
.card-title select {
  font-size: 12px;
}
.card-title h2::first-letter {
  text-transform: uppercase;
}
.card-foot {
  padding-top: 12px;
  margin-top: 9px;
  border-top: 1px solid var(--soft);
}
.agenda-grid,
.columns,
.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(238px, 1fr);
  gap: 17px;
  align-items: start;
}
.agenda-aside > *,
.workspace > .card,
.finance-grid > .card {
  margin-bottom: 16px;
}
.next-card,
.dark-summary {
  padding: 20px;
  border-radius: 16px;
}
.next-card,
.tinted {
  background: #f5e5d1;
  border: 1px solid #e5caae;
}
.next-card .eyebrow {
  justify-content: space-between;
}
.next-time,
.detail-amount {
  font-size: 36px;
  line-height: 1.1;
  margin: 12px 0 17px;
}
.next-person {
  display: grid;
  border-top: 1px solid #d8c0a7;
  padding-top: 14px;
  gap: 3px;
  margin-bottom: 15px;
}
.next-card .btn {
  width: 100%;
}
.week,
.week-nav {
  display: flex;
  justify-content: space-between;
  gap: 3px;
}
.week button {
  flex: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 9px 0;
  border-radius: 8px;
}
.week button.selected,
.times button.selected {
  background: var(--dark);
  color: #fff;
}
.week .selected small {
  color: #e5d4c2;
}
.week-nav {
  margin-top: 9px;
  align-items: center;
}
.week-nav .btn {
  min-height: 30px;
  padding: 5px 8px;
}
.appointment,
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  background: transparent;
  border-top: 1px solid var(--soft);
  text-align: left;
}
.appointment {
  min-height: 65px;
}
.appointment.upcoming {
  background: #fcf1e3;
  box-shadow: inset 3px 0 var(--orange);
  padding-left: 8px;
  padding-right: 8px;
}
.appointment .time {
  padding-right: 12px;
  border-right: 1px solid var(--line);
  font-size: 14px;
}
.appointment:hover,
.row:is(button):hover {
  background: #f9f4ec;
}
.row-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.row-text b,
.amount {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.row-text small {
  font-size: 12px;
}
.row-end {
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  background: #efece6;
  color: var(--sub);
}
.badge.green {
  background: var(--sage);
  color: var(--green);
}
.badge.peach {
  background: var(--peach);
  color: var(--copper);
}
.empty {
  padding: 16px 0;
  color: var(--mut);
  font-size: 14px;
}
.page-title {
  padding: 11px 0 25px;
  align-items: center;
}
.page-title p {
  margin-top: 10px;
  font-size: 14px;
}
.page-title .actions {
  justify-content: flex-end;
}
.facts p,
.total-line,
.dark-summary p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.facts b,
.total-line b {
  text-align: right;
  color: var(--ink);
}
.total-line {
  margin: 10px 0;
  font-size: 16px;
}
.total-line b {
  font-size: 23px;
}
.full {
  width: 100%;
  margin-bottom: 12px;
}
.tinted .actions,
.dialog-actions {
  margin-top: 16px;
}
.dark-summary {
  background: var(--dark);
  color: var(--white);
  min-height: 217px;
}
.dark-summary .eyebrow {
  color: #f3c5a0;
}
.dark-summary > strong {
  display: block;
  font: 44px var(--serif);
  margin: 12px 0;
}
.dark-summary p {
  color: #e3d7c8;
  border-color: #54483e;
}
.dark-summary .btn {
  width: 100%;
}
.dark-summary .text-btn {
  color: #ffc18b;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--sub);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.legend span + span i {
  background: #637765;
}
.chart {
  display: flex;
  gap: 4px;
  justify-content: space-around;
  margin-top: 13px;
}
.chart button {
  border: 0;
  background: none;
  min-width: 0;
  padding: 0;
  flex: 1;
}
.chart button span {
  height: 87px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}
.chart i {
  display: block;
  background: var(--orange);
  width: 9px;
  border-radius: 3px 3px 0 0;
}
.chart i + i {
  background: #637765;
}
.chart small {
  font-size: 10px;
}
.year,
.inline-note,
.check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.report-head,
.report-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1.12fr repeat(4, 1fr);
  gap: 10px;
  padding: 11px 10px;
  text-align: right;
}
.report-head {
  background: #f2eee7;
  font-size: 12px;
  color: var(--sub);
}
.report-row {
  border: 0;
  border-bottom: 1px solid var(--soft);
  background: transparent;
  font-size: 13px;
}
.report-row:hover {
  background: #f7eddf;
}
.report-head :first-child,
.report-row strong {
  text-align: left;
}
.report-row small {
  display: none;
}
.income {
  color: var(--green);
  font-weight: 650;
}
.file-row,
.upload {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.file-row small {
  margin-left: auto;
}
.upload {
  flex-wrap: wrap;
  font-size: 13px;
  background: #f8f2e9;
}
.upload input {
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
}
.download-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
}
progress {
  width: 100%;
  accent-color: var(--copper);
}
dialog {
  width: min(460px, calc(100vw - 26px));
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
  background: var(--white);
  color: var(--ink);
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: 0 24px 90px #20180f40;
}
dialog::backdrop {
  background: #201b176e;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.dialog-title button,
.mobile-head button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 9px;
}
.dialog-title h2 {
  overflow-wrap: anywhere;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--sub);
  font-weight: 650;
  margin: 12px 0;
}
.field > input,
.field > select,
.field > textarea {
  width: 100%;
  min-height: 42px;
  font-weight: 400;
}
.field small {
  font-size: 11px;
  font-weight: 400;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 19px;
}
.error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7e7df;
  color: #883d30;
  margin: 10px 0;
  font-size: 14px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  border-radius: 9px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 12;
  font-size: 13px;
  box-shadow: 0 5px 25px #33241725;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.loading {
  max-width: 480px;
  background: var(--white);
  margin: 12vh auto;
  padding: 32px;
  border-radius: 16px;
}
.loading .brand b {
  color: var(--ink);
}
.access > header,
.public-shell > header {
  background: var(--dark);
  color: #efe4d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 80px);
  font-size: 13px;
}
.access-booking-link {
  color: var(--ink);
}
.access main,
.booking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  gap: 28px;
  max-width: 1160px;
  margin: 32px auto;
  padding: 0 20px;
  align-items: start;
}
.access-photo,
.booking-cover {
  min-height: 545px;
  padding: 36px;
}
.access-photo:before,
.booking-cover:before {
  background-image: linear-gradient(125deg, #221a14bc, transparent 75%), url(/capa.webp);
  background-size: cover;
  background-position: 67% center;
}
.access-photo h1,
.booking-cover h1 {
  font-size: clamp(59px, 6vw, 88px);
  margin-top: 23px;
}
.access .access-pending,
.access form,
.booking-panel {
  padding: 26px clamp(20px, 3vw, 48px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}
.access form h2,
.booking-panel h2 {
  font-size: 43px;
  margin: 13px 0;
}
.access form > p {
  margin-bottom: 17px;
}
.access-registration {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 0;
  color: var(--copper);
  font-weight: 650;
  text-decoration: underline;
}
.access.authenticator main {
  display: block;
  max-width: 700px;
  margin: clamp(20px, 6vh, 60px) auto;
  padding: 0 16px;
}
.authenticator-card {
  padding: clamp(20px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.authenticator-card h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 47px);
  line-height: 1.05;
}
.authenticator .authenticator-card form {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
}
.authenticator .authenticator-card form > p,
.authenticator .authenticator-card form > .btn { margin: 0; }
.authenticator-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.authenticator-pair svg { max-width: 100%; height: auto; background: white; }
.authenticator-pair > div { min-width: 0; flex: 1 1 200px; }
.authenticator-pair summary { padding: 12px 0; color: var(--copper); cursor: pointer; }
.authenticator-pair input { font-family: monospace; }
.access-help {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.access-help summary {
  padding: 9px 0;
  color: var(--copper);
  cursor: pointer;
  font-weight: 650;
}
.access-help p {
  margin-bottom: 6px;
  font-size: 14px;
}
.privacy-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: underline;
}
.privacy-public {
  max-width: 1100px;
  margin: clamp(24px, 5vw, 60px) auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.privacy-intro h1 { font: 52px/1.1 var(--serif); margin: 0 0 18px; }
.privacy-public p, .privacy-ticket p, .client-privacy p { line-height: 1.55; margin: 10px 0 14px; overflow-wrap: anywhere; }
.privacy-public details, .client-privacy, .privacy-ticket { border-top: 1px solid var(--line); padding: 14px 0; }
.privacy-public summary, .client-privacy summary, .privacy-ticket summary { cursor: pointer; font-weight: 650; }
.privacy-ticket h3 { margin: 0; font-size: 17px; }
.privacy-protocol { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
label.privacy-check { display: flex; align-items: start; gap: 9px; margin: 16px 0; line-height: 1.5; }
.privacy-check input[type=checkbox] { flex: none; width: 16px; height: 16px; min-height: 0; margin-top: 3px; }
@media (max-width: 760px) {
  .privacy-public { grid-template-columns: minmax(0, 1fr); }
  .privacy-intro h1 { font-size: 40px; }
}
.access form > .btn,
.booking-panel > .btn {
  width: 100%;
  margin-top: 10px;
}
.booking-panel h3 {
  font: 30px var(--serif);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 14px 0;
}
.times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.times button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--white);
  min-height: 38px;
}
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
}
@media (max-width: 1150px) {
  .app-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 8px;
  }
  .workspace {
    padding-inline: 20px;
  }
  .agenda-grid,
  .columns,
  .finance-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(210px, 1fr);
  }
  .kpi {
    padding: 13px;
    gap: 8px;
  }
  .appointment {
    gap: 9px;
  }
  .appointment .amount {
    display: none;
  }
  .card {
    padding: 16px;
  }
  .kpis.four .iconbox {
    display: none;
  }
}
@media (max-width: 820px) {
  .app-layout {
    display: block;
  }
  .sidebar,
  .top {
    display: none;
  }
  .mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--dark);
    color: white;
  }
  .mobile-head .brand img,
  .public-shell .brand img,
  .access .brand img {
    width: 44px;
    height: 39px;
  }
  .mobile-head .brand small {
    display: none;
  }
  [data-ambiente='piloto'] .mobile-head .brand small {
    display: block;
  }
  .mobile-head button {
    background: #39342e;
    border-color: #39342e;
    color: #fff;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 55px 0 60px;
    z-index: 8;
    overflow: auto;
    padding: 12px 20px;
  }
  .mobile-menu > .brand {
    display: none;
  }
  .mobile-menu .nav-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mobile-menu .profile {
    padding: 12px 0;
  }
  .workspace {
    padding: 18px 17px 80px;
  }
  .bottom {
    position: fixed;
    z-index: 9;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    border-top: 1px solid var(--line);
    background: var(--white);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom button {
    background: none;
    border: 0;
    min-height: 56px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    font-size: 10px;
    color: var(--sub);
    min-width: 62px;
  }
  .bottom .active {
    color: var(--copper);
    font-weight: 700;
    box-shadow: inset 0 3px var(--orange);
  }
  .toast {
    bottom: 72px;
  }
  .agenda-grid,
  .finance-grid,
  .columns {
    grid-template-columns: 1fr 1fr;
  }
  .page-title {
    padding: 3px 0 20px;
  }
  .page-title h1 {
    font-size: 43px;
  }
  .kpi {
    min-height: 72px;
  }
  .access main,
  .booking-layout {
    margin: 18px auto;
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .workspace {
    padding: 15px 14px 82px;
  }
  .agenda-hero {
    min-height: 170px;
  }
  .hero-copy {
    padding: 17px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    max-width: 95%;
    letter-spacing: 0.085em;
  }
  .hero-copy .eyebrow i {
    display: none;
  }
  .hero-copy h1 {
    font-size: 45px;
    line-height: 0.94;
    width: 185px;
    margin: 10px 0 14px;
  }
  .hero-copy h1 em {
    display: block;
  }
  .agenda-hero:before {
    background-size:
      cover,
      90% auto;
    background-position:
      center,
      right center;
    background-image:
      linear-gradient(90deg, #201914 0%, #201914f2 21%, #20191480 49%, transparent 72%),
      url(/capa.webp);
  }
  .hero-copy .btn {
    min-height: 39px;
  }
  .agenda-grid,
  .columns,
  .finance-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .agenda-grid > *,
  .columns > *,
  .finance-grid > * {
    width: 100%;
  }
  .agenda-aside {
    display: contents;
  }
  .agenda-aside .next-card {
    order: -1;
    width: 100%;
  }
  .agenda-aside .card {
    order: 2;
    width: 100%;
  }
  .next-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 15px;
    padding: 15px 17px;
  }
  .next-card .eyebrow {
    grid-column: 1/-1;
  }
  .next-time {
    font-size: 33px;
    margin: 0;
  }
  .next-person {
    border: 0;
    padding: 1px 0 0;
    margin: 0;
  }
  .next-card .btn {
    grid-column: 1/-1;
  }
  .kpis {
    gap: 7px;
    margin: 12px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpis.four {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    padding: 10px;
    display: block;
    border-radius: 11px;
    min-height: 63px;
  }
  .kpi > .iconbox {
    display: none;
  }
  .kpi small {
    font-size: 10px;
  }
  .kpi strong {
    font-size: clamp(17px, 4.8vw, 24px);
  }
  .kpi p {
    display: none;
  }
  .card {
    border-radius: 13px;
    padding: 14px;
    margin-bottom: 12px;
  }
  .card h2 {
    font-size: 26px;
  }
  .card-title {
    flex-wrap: wrap;
    gap: 6px;
  }
  .card-title input {
    max-width: 160px;
  }
  .appointment {
    gap: 9px;
    min-height: 60px;
  }
  .appointment .avatar {
    display: none;
  }
  .appointment .time {
    font-size: 12px;
    padding-right: 8px;
  }
  .row-text b {
    font-size: 13px;
  }
  .row-text small {
    font-size: 11px;
  }
  .badge {
    font-size: 9px;
    padding: 3px 7px;
  }
  .page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .page-title .actions {
    justify-content: flex-start;
  }
  .dark-summary {
    min-height: 0;
    width: 100%;
    margin-bottom: 12px;
  }
  .report-head {
    display: none;
  }
  .report-row {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 7px 12px;
    padding: 13px 1px;
  }
  .report-row strong {
    grid-column: 1/-1;
  }
  .report-row span {
    font-size: 12px;
  }
  .report-row small {
    display: block;
    font-weight: 400;
  }
  .chart {
    gap: 1px;
  }
  .chart small {
    font-size: 9px;
  }
  .access main,
  .booking-layout {
    display: block;
    margin: 14px auto;
    padding: 0 14px;
  }
  .access-photo,
  .booking-cover {
    min-height: 150px;
    margin-bottom: 12px;
    padding: 17px;
  }
  .access-photo:before,
  .booking-cover:before {
    background-position:
      center,
      right 48%;
    background-size:
      cover,
      83% auto;
    background-color: #211914;
    background-repeat: no-repeat;
  }
  .access-photo h1,
  .booking-cover h1 {
    font-size: 38px;
    margin-top: 8px;
  }
  .access form,
  .booking-panel {
    padding: 19px;
  }
  .access form h2,
  .booking-panel h2 {
    font-size: 35px;
  }
  .access-booking-link {
    font-size: 11px;
    padding: 7px 9px;
  }
  .public-shell header > span {
    font-size: 11px;
  }
  .year select {
    width: 90px;
  }
  .goal-grid {
    display: block;
  }
  .profile .avatar {
    display: inline-grid;
  }
  .detail-amount {
    font-size: 30px;
  }
  .row {
    gap: 8px;
  }
  .report-card {
    padding: 13px;
  }
  .toast {
    max-width: 92vw;
    min-width: 190px;
  }
  .dialog-actions .btn {
    min-height: 42px;
  }
}

.workspace {
  margin: 0 auto;
}
.sidebar {
  background: linear-gradient(170deg, #26231f, #1c1a18);
}
.schedule {
  --calendar-line: #e5dfd6;
}
.schedule-heading,
.board-top,
.calendar-controls,
.board-footer,
.week-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.schedule-heading {
  padding: 5px 0 12px;
  flex-wrap: wrap;
}
.schedule-heading h1 {
  font-size: clamp(44px, 4.5vw, 69px);
  letter-spacing: -0.035em;
}
.schedule-heading h1 em {
  color: var(--copper);
}
.schedule-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--sub);
}
.schedule-date:first-letter,
.calendar-days small,
.week-heading {
  text-transform: capitalize;
}
.schedule-heading .actions .btn,
.calendar-controls .btn,
.board-footer .btn {
  min-height: 42px;
}
.booking-verification {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0;
  line-height: 1.5;
}
.booking-verification input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.schedule-metrics {
  margin: 12px 0 20px;
}
.schedule-metrics .kpi {
  min-height: 98px;
  box-shadow: 0 3px 12px #34241006;
}
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(218px, 1fr);
  gap: 18px;
  align-items: start;
}
.schedule-board,
.schedule-team,
.module-tile,
.feature-directory {
  background: var(--white);
  border: 1px solid var(--calendar-line, var(--line));
  border-radius: 18px;
  min-width: 0;
}
.schedule-board {
  overflow: hidden;
}
.board-top,
.calendar-controls,
.schedule-filters,
.board-footer {
  padding: 16px 20px;
}
.board-top {
  padding-bottom: 8px;
}
.board-top h2,
.schedule-side h2 {
  font-size: clamp(24px, 2.2vw, 33px);
}
.view-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f1ede6;
  border: 1px solid var(--calendar-line);
  border-radius: 10px;
}
.view-switch button,
.calendar-days button,
.schedule-entry,
.week-heading,
.week-booking,
.schedule-team button,
.schedule-block {
  border: 0;
  background: transparent;
}
.view-switch button {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  min-height: 34px;
}
.view-switch button[aria-pressed='true'] {
  background: var(--white);
  box-shadow: 0 1px 4px #29221c24;
}
.calendar-controls {
  padding-top: 7px;
  padding-bottom: 12px;
  gap: 8px;
}
.calendar-nav {
  display: flex;
  gap: 5px;
  align-items: center;
}
.calendar-controls .btn {
  min-height: 36px;
  padding: 6px 9px;
}
.calendar-controls input {
  width: 150px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 0 20px 14px;
}
.calendar-days button {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 10px;
  background: #f7f4ef;
}
.calendar-days small {
  color: var(--sub);
  font-size: 11px;
}
.calendar-days strong {
  font-size: 18px;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
}
.calendar-days i {
  width: 5px;
  height: 5px;
  border-radius: 100%;
}
.calendar-days .occupied {
  background: #b46b31;
}
.calendar-days .chosen {
  background: #382d25;
  color: white;
}
.calendar-days .chosen small {
  color: #f5d8bb;
}
.calendar-days .chosen .occupied {
  background: #ffad64;
}
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-block: 1px solid var(--calendar-line);
  background: #fbf9f5;
  padding-block: 11px;
}
.schedule-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  flex: 1;
  padding-left: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--sub);
}
.schedule-search input {
  border: 0;
  background: none;
  width: 100%;
  padding: 7px 4px;
}
.mobile-filter-toggle {
  display: none;
}
.schedule-filters select {
  flex: 0 1 auto;
  max-width: 44%;
  min-height: 34px;
  padding: 5px 7px;
  font-size: 12px;
}
.schedule-entry {
  display: grid;
  grid-template-columns: 47px 32px minmax(0, 1.45fr) minmax(48px, 0.85fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 73px;
  text-align: left;
  padding: 11px 20px;
  border-bottom: 1px solid #eee9e1;
}
.schedule-entry:hover,
.schedule-team button:hover,
.week-booking:hover,
.calendar-days button:not(.chosen):hover {
  background: #f9f0e4;
}
.slot-time,
.slot-client {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.slot-time b {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.slot-time small,
.slot-client small,
.slot-staff {
  color: var(--sub);
  font-size: 12px;
}
.slot-client b,
.slot-client small,
.slot-staff,
.week-booking,
.schedule-team button > span {
  overflow-wrap: anywhere;
}
.booking-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}
.tint-0 {
  background: #eee5db;
  color: #704a2f;
}
.tint-1 {
  background: #e5eee7;
  color: #356449;
}
.tint-2 {
  background: #e8e7f2;
  color: #594b76;
}
.tint-3 {
  background: #f5e4d3;
  color: #7e4d22;
}
.schedule-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 20px;
  background: #eeebe7;
  color: #5d5954;
  white-space: nowrap;
}
.schedule-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.schedule-status.booked {
  background: #f9e9d6;
  color: #864618;
}
.schedule-status.completed {
  background: #e4efe6;
  color: #386048;
}
.schedule-status.cancelled {
  background: #f4e5e3;
  color: #874b44;
}
.board-footer {
  color: var(--sub);
  font-size: 12px;
  flex-wrap: wrap;
}
.board-footer .btn {
  font-size: 12px;
}
.schedule-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 16px;
  color: var(--sub);
}
.schedule-block {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px dashed var(--line);
}
.schedule-block span {
  margin-left: auto;
  color: var(--copper);
}
.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.week-column {
  min-width: 0;
  padding: 8px 4px;
  border-right: 1px solid var(--calendar-line);
}
.week-column:last-child {
  border: 0;
}
.week-heading {
  justify-content: center;
  width: 100%;
  padding: 8px 1px;
  font-size: 12px;
  font-weight: 650;
}
.week-booking {
  width: 100%;
  border-left: 3px solid #ce7941;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 6px;
  text-align: left;
  background: #f8eee1;
  margin: 4px 0;
  font-size: 11px;
}
.week-booking.completed {
  border-color: #598568;
  background: #edf3ec;
}
.week-booking.cancelled {
  border-color: #a78380;
}
.week-booking .schedule-status {
  white-space: normal;
  padding: 1px;
  font-size: 9px;
  background: transparent;
}
.week-free {
  display: block;
  text-align: center;
  font-size: 10px;
  padding: 4px 0;
}
.schedule-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.schedule-next {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  background: #28231e;
  color: #fff7ec;
  padding: 21px;
  display: grid;
  justify-items: start;
  gap: 7px;
}
.schedule-next::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, #241f1bf7 8%, #241f1bc9 52%, #241f1b70),
    url(/capa.webp) center/cover;
}
.schedule-next h2 {
  font: 650 13px/1.5 var(--sans);
  color: #ffcd9c;
}
.schedule-next .feature-time,
.schedule-next .next-empty {
  font: 400 48px/1 var(--serif);
  margin-top: 5px;
}
.schedule-next .next-empty {
  font-size: 34px;
}
.schedule-next p,
.schedule-next small {
  color: #eee3d7;
  font-size: 12px;
}
.schedule-next .btn {
  margin-top: 8px;
}
.schedule-team {
  padding: 16px;
}
.schedule-team h2 {
  margin-bottom: 12px;
  font-size: 24px;
}
.schedule-team button {
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 43px;
  padding: 5px;
  border-radius: 7px;
  font-size: 12px;
}
.schedule-team button b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.schedule-team button[aria-pressed='true'] {
  background: #f5e7d8;
}
.bill-item-line {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bill-item-line > .row {
  flex: 1;
  min-width: 0;
}
.bill-item-line > .btn {
  font-size: 11px;
  padding: 5px;
  min-height: 36px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}
.module-tile,
.module-report {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}
.module-tile:hover,
.module-tile:focus-visible {
  border-color: var(--copper);
  background: #fbf5ec;
}
.module-grid strong,
.module-report strong {
  display: block;
  font-size: 16px;
}
.module-grid small,
.module-report small {
  display: block;
  color: var(--sub);
  line-height: 1.4;
  margin-top: 4px;
}
.module-tile > svg,
.module-report > svg:last-child {
  margin-left: auto;
  flex-shrink: 0;
}
.module-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.module-report {
  margin-top: 18px;
  background: #302a24;
  border-radius: 16px;
  color: #fff5e9;
}
.module-report small {
  color: #ecdbcc;
}
.module-report > svg:first-child {
  color: #ffc28b;
}
.single-panel {
  display: grid;
  gap: 16px;
}
@media (max-width: 360px) {
  .bottom button {
    min-width: 0;
    flex: 1;
  }
}
@media (max-width: 1150px) {
  .schedule-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 12px;
  }
  .schedule-entry {
    gap: 7px;
    padding-inline: 13px;
  }
  .schedule-filters,
  .board-top,
  .calendar-controls,
  .board-footer {
    padding-inline: 13px;
  }
  .calendar-days {
    margin-inline: 13px;
  }
}
@media (max-width: 980px) {
  .schedule-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .schedule-side {
    grid-template-columns: 1fr 1fr;
  }
  .schedule-next {
    padding: 17px;
  }
}
@media (max-width: 640px) {
  .schedule-heading {
    padding: 0 0 6px;
    gap: 13px;
  }
  .schedule-heading .actions {
    width: 100%;
  }
  .schedule-heading .actions .btn {
    flex: 1;
    padding-inline: 7px;
    font-size: 12px;
  }
  .schedule-heading .actions .booking-requests-button {
    order: 1;
    flex-basis: 100%;
  }
  .schedule-metrics.kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 12px;
  }
  .schedule-metrics .kpi {
    min-height: 55px;
    padding: 6px 10px;
  }
  .schedule-metrics .kpi p {
    font-size: 11px;
  }
  .schedule-entry {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 12px;
  }
  .schedule-entry .booking-avatar {
    display: none;
  }
  .slot-time {
    grid-column: 1;
    grid-row: 1/3;
  }
  .slot-client {
    grid-column: 2;
    grid-row: 1;
  }
  .slot-staff {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  .schedule-entry .schedule-status {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 10px;
  }
  .schedule-filters select {
    flex: 1 1 42%;
    max-width: none;
    min-height: 40px;
  }
  .schedule-filters:not(.expanded) select {
    display: none;
  }
  .mobile-filter-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .mobile-filter-toggle[aria-expanded='true'] {
    color: var(--copper);
    border-color: var(--copper);
  }
  .schedule-search {
    flex: 1 1 calc(100% - 104px);
    min-height: 40px;
  }
  .week-board {
    grid-template-columns: 1fr;
  }
  .week-column {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 3px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 5px 12px;
  }
  .week-heading {
    grid-column: 1;
    grid-row: 1/3;
    align-self: start;
    min-height: 40px;
  }
  .week-booking,
  .week-free {
    grid-column: 2;
  }
  .week-free {
    text-align: left;
    align-self: center;
  }
  .week-booking {
    grid-template-columns: 42px 1fr;
    padding: 8px;
  }
  .week-booking small,
  .week-booking .schedule-status {
    grid-column: 2;
  }
  .schedule-side {
    grid-template-columns: 1fr;
  }
  .view-switch button {
    min-height: 38px;
  }
  .calendar-days button {
    min-height: 54px;
  }
}
.edition-details {
  margin: 1rem 0;
}
.edition-details code {
  overflow-wrap: anywhere;
}
.security-notice { background: #fff2d9; color: #623608; padding: .8rem 1rem; border-radius: .6rem; }
.security-notice a { color: inherit; font-weight: 600; }
