:root {
  color-scheme: light;
  --page: #f7f5ef;
  --card: #fffefa;
  --ink: #232e25;
  --muted: #585f55;
  --line: #e4e6dc;
  --green: #2a503a;
  --soft: #e6eee2;
  --serif: Georgia, "Times New Roman", serif;
  font: 15px/1.45 system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #437652;
  outline-offset: 3px;
}
h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.masthead {
  min-height: 62px;
  padding: 10px max(24px, calc((100% - 1344px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 24px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--green); font: 21px system-ui, sans-serif; }
.primary { border: 1px solid transparent; border-radius: 9px; padding: 9px 15px; background: var(--green); color: white; font-weight: 650; }
.primary:hover { background: #20412e; }
.workspace { max-width: 1392px; margin: auto; padding: 17px 24px 28px; }
.intro { margin-bottom: 12px; }
.intro h1 { font: 400 clamp(30px, 4vw, 46px)/1.08 var(--serif); letter-spacing: -.045em; }
.layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 19px; align-items: start; }
.sidebar { display: grid; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 15px; }
.mini-calendar, .summary { padding: 16px; }
.mini-heading { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 11px; }
.mini-heading h2, .summary h2 { font-size: 14px; font-weight: 700; }
.mini-heading h2::first-letter { text-transform: uppercase; }
.arrows, .navigation { display: flex; align-items: center; gap: 4px; }
.icon, .today-button { display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: transparent; padding: 0; height: 34px; min-width: 34px; }
.icon { font-size: 22px; line-height: 1; }
.today-button { padding-inline: 9px; font-size: 13px; font-weight: 650; }
.icon:hover, .today-button:hover, .mini-date:hover { background: var(--soft); }
#agenda-date { width: 137px; min-width: 0; height: 34px; padding: 3px 6px; border: 1px solid #bec5b9; border-radius: 7px; color: var(--ink); background: white; font-size: 15px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mini-weekday, .mini-date { text-align: center; font-size: 12px; }
.mini-weekday { color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.mini-date { position: relative; border: 0; border-radius: 7px; min-height: 30px; background: transparent; padding: 0; }
.mini-date.outside { color: #686e64; }
.mini-date[aria-current="date"] { font-weight: 750; box-shadow: inset 0 0 0 1px var(--green); }
.mini-date[aria-pressed="true"] { background: var(--green); color: white; }
.mini-date.has-appointments::after { content: ""; position: absolute; bottom: 3px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.summary dl { margin-top: 8px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; font-size: 13px; }
.summary-row dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.summary-row dd { font-weight: 700; }
.status-dot { border-radius: 50%; width: 8px; height: 8px; background: var(--status-ink); }
.reserved { --status-background: #e6eee2; --status-ink: #31523a; }
.done { --status-background: #e5ecf3; --status-ink: #354d6b; }
.cancelled { --status-background: #f3e8e2; --status-ink: #774937; }
.toolbar { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 13px; }
.period { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; }
.period h2 { font: 400 clamp(21px, 3vw, 29px)/1.1 var(--serif); }
.period h2::first-letter { text-transform: uppercase; }
.segmented { display: flex; gap: 3px; border-radius: 8px; padding: 3px; background: #f1f2eb; }
.segmented button { border: 0; border-radius: 6px; padding: 6px 10px; background: transparent; font-size: 13px; font-weight: 650; }
.segmented button[aria-pressed="true"] { color: var(--green); background: white; box-shadow: 0 1px 3px #253b251d; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); min-height: 394px; }
.day-column { min-width: 0; border-inline-start: 1px solid var(--line); }
.day-column:first-child { border-inline-start: 0; }
.day-column.selected { background: #f4f7f0; }
.day-column.selected:first-child { border-bottom-left-radius: 15px; }
.day-column.selected:last-child { border-bottom-right-radius: 15px; }
.day-header { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.day-header button { display: grid; justify-items: center; gap: 3px; margin: auto; min-width: 44px; border: 0; background: transparent; border-radius: 8px; font-size: 12px; color: var(--muted); }
.day-header button:hover { color: var(--green); }
.day-number { display: grid; place-items: center; width: 32px; height: 32px; font-size: 17px; font-weight: 650; color: var(--ink); }
[aria-current="date"] .day-number { background: var(--green); color: white; border-radius: 50%; }
.day-body { display: grid; gap: 6px; padding: 8px; }
.appointment { display: grid; gap: 2px; width: 100%; padding: 7px; text-align: left; border: 0; border-inline-start: 3px solid var(--status-ink); border-radius: 7px; background: var(--status-background); color: var(--status-ink); font-size: 12px; overflow-wrap: anywhere; }
.appointment:hover { box-shadow: inset 0 0 0 1px var(--status-ink); }
.appointment-time, .appointment-status { font-variant-numeric: tabular-nums; font-size: 11px; }
.appointment-client { font-weight: 750; }
.add-slot { display: inline-grid; place-items: center; min-height: 35px; border: 1px dashed #b9c5b7; border-radius: 7px; color: var(--green); background: transparent; font-size: 16px; }
.add-slot:hover { background: var(--soft); }
.schedule-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; padding: 0 13px 7px; }
.schedule-tools label { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.schedule-tools select { border: 1px solid #bec5b9; border-radius: 7px; background: white; color: var(--ink); padding: 5px 8px; font-size: 16px; }
.schedule-tools > [hidden] { display: none; }
.service-legend, .event-services { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.service-legend { list-style: none; padding: 0; margin: 0; }
.service-label { display: inline-block; max-width: 100%; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-weight: 650; color: white; background: #585f55; }
.service-label.corte { background: #161616; }
.service-label.mechas { background: #26734d; }
.service-label.baby-light { background: #afe6cb; color: #174b37; --marker-radius: 0; --marker-turn: 45deg; --marker-outline: #397952; }
.service-label.balayage { background: #526b25; --marker-radius: 1px; }
.technique-symbol { margin-inline-end: .36em; font-size: .8em; }
.service-label.tinte { background: #205ea5; }
.service-label.red-label { background: #ae2130; }
.service-label.yellow-label { background: #f5d252; color: #3a2c00; }
.appointment.yellow-appointment { border-inline-start-color: #b38008; background: #fff3c2; color: #493606; }
.appointment.red-appointment { border-inline-start-color: #ae2130; background: #fae9e9; color: #752331; }
.appointment-professional { font-size: 11px; font-weight: 650; }
.day-agenda {
  --slot-height: clamp(20px, calc((100vh - 270px) / 16), 39px);
  --slot-height: clamp(20px, calc((100svh - 270px) / 16), 39px);
  border-top: 1px solid var(--line);
}
.appointment-grid { --marker-size: 7px; --marker-height: var(--marker-size); width: 100%; table-layout: fixed; border-spacing: 0; }
.appointment-grid .hour-column { width: 60px; }
.appointment-grid th, .appointment-grid td { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.appointment-grid th:last-child, .appointment-grid td:last-child { border-inline-end: 0; }
.appointment-grid thead th { background: #eaf0e6; text-align: center; padding: 5px 1px; font-size: 12px; }
.grid-short-name { display: none; }
.appointment-grid tbody .grid-hour { height: var(--slot-height); text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; }
.appointment-grid tbody tr:nth-child(even) > * { border-bottom-color: #b7c3b4; }
.appointment-grid td { padding: 1px; vertical-align: top; }
.appointment-grid .appointment { display: flex; align-items: center; gap: 5px; height: calc(var(--slot-height) * var(--slots, 1) - 4px); padding: 1px 5px; overflow: hidden; border-radius: 4px; font-size: 11px; }
.appointment-grid .appointment-time, .appointment-grid .appointment-status { display: none; }
.appointment-grid .appointment-client { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.appointment-grid .event-services { flex: 0 0 auto; flex-wrap: nowrap; max-width: 100%; gap: 2px; }
.appointment-grid .service-label { padding: 1px 3px; white-space: nowrap; font-size: 10px; }
.appointment-grid.whole-team .multiple-labels .service-label { width: var(--marker-size); height: var(--marker-height); padding: 0; border-radius: var(--marker-radius, 50%); overflow: hidden; font-size: 0; transform: rotate(var(--marker-turn, 0deg)); outline: 1px solid var(--marker-outline, transparent); outline-offset: -1px; }
.appointment-grid .add-slot { display: grid; width: 100%; height: calc(var(--slot-height) - 4px); min-height: 0; border: 0; color: var(--muted); line-height: 1; }
.appointment-grid .add-slot:not(:focus-visible):not(:hover) { color: #788273; }
.appointment-grid .appointment:focus-visible, .appointment-grid .add-slot:focus-visible { outline-offset: -2px; }
.off-grid { padding: 12px 15px; border-top: 1px solid var(--line); }
.off-grid h3 { margin-bottom: 8px; font-size: 14px; }
.off-grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 7px; }
.notice { margin-top: 10px; font-size: 14px; color: var(--green); }
.notice.error, .form-error { color: #8c2826; }
.connection-tools { padding: 11px 15px; margin-top: 12px; font-size: 13px; }
.connection-tools p { color: var(--muted); }
.connection-row, .connection-actions, .connect-fields { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.connection-row { justify-content: space-between; }
.connection-tools label { display: block; font-weight: 650; margin-bottom: 4px; }
.connection-tools input:not([type="file"]) { min-width: 0; width: min(100%, 400px); padding: 6px 8px; border: 1px solid #bec5b9; border-radius: 7px; color: var(--ink); background: white; font-size: 16px; }
.connect-fields input { flex: 1 1 160px; max-width: 260px; }
.connect-fields + p, .connection-tools .form-error { margin-top: 6px; }
.connection-tools .form-error { color: #8c2826; }
#shared-controls details { margin-top: 6px; }
#shared-controls summary { width: fit-content; color: var(--green); cursor: pointer; font-weight: 650; }
#shared-controls details p { margin-block: 7px; }
#shared-controls details input + label { margin-top: 7px; }
.primary:disabled { opacity: .6; cursor: default; }
dialog { width: min(460px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 15px; padding: 20px; color: var(--ink); background: var(--card); }
dialog::backdrop { background: #202b2588; }
.dialog-heading, .dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-heading h2 { font: 400 28px var(--serif); }
.fields { display: grid; gap: 10px; margin-block: 15px; }
.fields label { display: block; min-width: 0; font-size: 13px; font-weight: 650; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fields input, .fields select, .fields textarea { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 8px; border: 1px solid #bec5b9; border-radius: 7px; background: white; color: var(--ink); font-weight: 400; font-size: 16px; }
.service-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.service-fieldset legend { font-size: 13px; font-weight: 650; padding: 0; }
.service-options { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.service-options label, .fields .checkbox-label { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; cursor: pointer; width: fit-content; }
.service-options input, .checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.service-options .service-label, .checkbox-label .service-label { font-size: 13px; padding: 2px 6px; }
.technique-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
.technique-options label { position: relative; cursor: pointer; }
.fields .technique-options input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; clip-path: inset(50%); }
.technique-choice { display: grid; place-items: center; gap: 4px; padding: 5px 2px; min-height: 64px; text-align: center; border: 1px solid #bec5b9; border-radius: 8px; background: white; }
.technique-choice .service-label { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 6px; font-size: 18px; line-height: 1; }
.technique-options input:checked + .technique-choice { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #eaf2e7; }
.technique-options input:focus-visible + .technique-choice { outline: 2px solid #437652; outline-offset: 2px; }
#previous-service { font-size: 12px; margin-top: 3px; }
.optional { font-weight: 400; color: var(--muted); }
.form-error { margin-bottom: 12px; font-size: 13px; }
.dialog-actions .primary { margin-inline-start: auto; }
.danger { border: 0; background: transparent; color: #8c2826; padding: 8px 0; text-decoration: underline; }
@media (max-width: 1020px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
  .mini-calendar, .summary { padding: 12px; }
  .day-body { padding: 5px; }
}
@media (max-width: 1250px) {
  .appointment-grid.whole-team .service-label { width: var(--marker-size); height: var(--marker-height); padding: 0; border-radius: var(--marker-radius, 50%); overflow: hidden; font-size: 0; transform: rotate(var(--marker-turn, 0deg)); outline: 1px solid var(--marker-outline, transparent); outline-offset: -1px; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); }
  .schedule { grid-row: 1; }
}
@media (max-width: 560px) {
  .masthead { min-height: 48px; padding: 6px 9px; }
  .masthead .primary { padding: 6px 9px; font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; font-size: 17px; }
  .brand { font-size: 21px; gap: 6px; }
  .workspace { padding: 9px 5px 18px; }
  .intro { margin: 0 4px 7px; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 6px; padding: 5px 6px; }
  .period { display: contents; }
  .period h2 { grid-column: 1 / -1; font-size: 19px; }
  .toolbar .icon, .toolbar .today-button { min-width: 26px; height: 27px; padding-inline: 5px; }
  #agenda-date { width: 125px; height: 27px; padding: 1px 3px; font-size: 16px; }
  .segmented button { padding: 4px 6px; font-size: 12px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .mini-date { min-height: 36px; }
  .week { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .day-column, .day-column:first-child { display: grid; grid-template-columns: 61px minmax(0, 1fr); border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .day-column:last-child { border-bottom: 0; }
  .day-header { border: 0; padding: 6px 4px; }
  .day-column.selected:first-child { border-bottom-left-radius: 0; }
  .day-column.selected:last-child { border-bottom-left-radius: 15px; }
  .day-body { align-content: center; padding: 7px; }
  .schedule-tools { padding: 0 6px 5px; }
  .schedule-tools label { gap: 5px; font-size: 12px; }
  .schedule-tools select { padding: 2px 4px; }
  .service-legend { gap: 2px; }
  .service-legend .service-label { font-size: 10px; padding: 1px 3px; }
  .day-agenda {
    --slot-height: clamp(20px, calc((100vh - 286px) / 16), 39px);
    --slot-height: clamp(20px, calc((100svh - 286px) / 16), 39px);
  }
  .appointment-grid { --marker-size: 5px; }
  .appointment-grid .hour-column { width: 34px; }
  .appointment-grid thead th, .appointment-grid tbody .grid-hour { font-size: 10px; }
  .appointment-grid.whole-team th .grid-full-name { display: none; }
  .appointment-grid.whole-team th .grid-short-name { display: inline; }
  .appointment-grid.whole-team .appointment { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 0 2px; border-inline-start-width: 2px; font-size: 10px; }
  .appointment-grid.whole-team .appointment-client { max-width: 100%; line-height: 1.12; }
  .appointment-grid.whole-team .event-services { gap: 1px; }
}
@media (max-width: 380px) {
  .toolbar .navigation, .toolbar .arrows { gap: 2px; }
  .toolbar .icon, .toolbar .today-button { min-width: 22px; padding-inline: 3px; }
  #agenda-date { width: 115px; }
}
@media (max-width: 560px) and (max-height: 690px) {
  .intro { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .appointment-grid { --marker-height: 4px; }
}
