:root {
  color-scheme: light;
  --background: #F2F3EF;
  --paper: #FFFFFF;
  --ink: #1B1F1C;
  --muted: #5B635D;
  --line: #d2ddd4;
  --border-strong: #CFCCC4;
  --subtle: #F7F6F2;
  --accent: #36705A;
  --accent-text: #36705A;
  --on-accent: #fff;
  --soft-accent: #E3EDE7;
  --soft-text: #244C3D;
  --soft-border: #C1E1D5;
  --nav-muted: #DEEDE7;
  --warning: #FFF4E0;
  --warn-text: #6B4100;
  --alert: #A33A2B;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.45;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.55rem, 5vw, 2.5rem); line-height: 1.12; }
h2 { font-size: 1.2rem; }
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button, input, select, textarea {
  min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: .65rem;
  background: var(--paper); color: var(--ink); padding: .68rem .8rem;
}
button, .button { border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center; }
button:disabled { cursor: wait; opacity: .58; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 650; }
.quiet { border-color: transparent; background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-text); outline-offset: 2px;
}
label, .stack { display: grid; gap: .6rem; }
label > :is(input, select, textarea) { width: 100%; }
.stack { gap: .95rem; }
.shell { max-width: 48rem; margin: 0 auto; padding: 1rem 1rem 6rem; }
.shell.wide { max-width: 80rem; }
.auth { width: min(100%, 29rem); margin: min(12vh, 7rem) auto; }
.auth h1 { margin: .4rem 0 1.25rem; }
.brand { color: var(--muted); font-size: .9rem; font-weight: 650; margin-bottom: .3rem; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; margin: .45rem 0 1.1rem; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 1rem;
  padding: clamp(.8rem, 3vw, 1.25rem); min-width: 0;
}
.panel + .panel { margin-top: .8rem; }
.section-title { margin: .2rem 0 .65rem; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.split > * { min-width: 0; }
.actions, .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.actions > * { min-height: 3.1rem; }
.full { width: 100%; }
.muted { color: var(--muted); }
.tabs, .bottom { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.bottom {
  position: fixed; inset: auto 0 0; justify-content: center; flex-wrap: nowrap; padding: .55rem;
  margin: 0; background: var(--paper); border-top: 1px solid var(--line);
}
.bottom > * { flex: 0 1 13rem; }
.bottom a { border: 1px solid var(--line); border-radius: .65rem; padding: .68rem .75rem; text-align: center; text-decoration: none; }
[aria-current="page"] { border-color: var(--accent); color: var(--accent-text); font-weight: 650; }
.status { position: sticky; bottom: 4rem; padding: .6rem .75rem; margin-top: .65rem; background: var(--paper); border-radius: .55rem; }
.status.error, .attention { color: var(--alert); }
.rows { display: grid; gap: .6rem; }
.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; align-items: start; }
.row h3, .row .row-actions { grid-column: span 2; }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.salon-choice { width: 100%; margin-bottom: .75rem; }
dialog { width: min(calc(100% - 1.4rem), 33rem); max-height: 90dvh; border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); background: var(--paper); padding: 1rem; }
dialog::backdrop { background: #17231d66; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
@media (max-width: 42rem) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom > * { flex-basis: 33.333%; }
}
@media (max-width: 25rem) {
  .shell { padding-inline: .68rem; }
  .bottom { gap: .25rem; }
  .bottom > * { padding-inline: .35rem; }
}
