:root {
  color-scheme: light;
  font-family: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", "PT Serif", Georgia, "Noto Serif Display", serif;
  --page: #fbf7f8;
  --paper: #ffffff;
  --ink: #382332;
  --muted: #64525e;
  --berry: #902b54;
  --berry-hover: #70203e;
  --line: #e8dce2;
  --control: #9d8794;
  --blue: #405781;
  --focus: #384f87;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, select, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(100%, 1220px); margin-inline: auto; padding-inline: clamp(16px, 5vw, 70px); }
.top { background: #fffdfd; border-bottom: 1px solid var(--line); }
.topin { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #57273f; font: 600 1.65rem/1.1 var(--display); letter-spacing: -.035em; }
.brand img { display: block; width: 39px; height: 39px; }
.langs { display: inline-flex; border: 1px solid #deced7; padding: 2px; border-radius: 11px; background: #faf3f5; }
.langs button { color: var(--muted); border: 0; background: transparent; min-height: 44px; padding: 1px 13px; font-size: .9rem; font-weight: 570; border-radius: 8px; }
.langs button[aria-pressed=true] { background: #fff; color: var(--berry-hover); box-shadow: 0 0 0 1px #c8a6b6, 0 1px 2px #4a233210; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 4; background: var(--paper); color: var(--ink); padding: 13px; }
.skip:focus { top: 8px; }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
h1:focus-visible, h2:focus-visible, .visit:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
h1,h2,p { margin: 0; }
h1 { font: 500 clamp(2.12rem, 4.2vw, 3.55rem)/1.12 var(--display); letter-spacing: -.045em; }
h2 { font-size: clamp(1.27rem, 2.05vw, 1.55rem); font-weight: 670; letter-spacing: -.032em; line-height: 1.25; }
.pagehead {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 25%);
  align-items: center; gap: 12px; padding: clamp(20px,3vw,34px) clamp(18px,3vw,36px); margin: 29px 0 22px;
  border: 1px solid #ebd7e0; border-radius: 18px; background: linear-gradient(105deg,#fff9f8 0%,#faebef 66%,#f8edf2 100%); overflow: hidden;
}
.headcopy { z-index: 1; }
.metarow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { color: #75435a; font-size: .875rem; font-weight: 650; letter-spacing: .025em; }
.demotag { color: #714459; background: #fffafc; border: 1px solid #dcbfcc; display: inline-grid; place-items: center; border-radius: 5px; padding: 2px 7px; font-size: .8rem; font-weight: 600; line-height: 1.35; }
.pagehead h1 { margin: 8px 0 9px; color: #4e233a; }
.dateline, .help { color: var(--muted); font-size: 1rem; line-height: 1.52; }
.dateline span { color: #805a6d; padding-inline: 2px; }
.weave { height: 96px; min-width: 0; background: url("./embroidery.png") repeat-x center / 154px auto; mask-image: linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
.deskgrid { display: grid; grid-template-columns: minmax(270px,.80fr) minmax(0,1.40fr); gap: clamp(15px,2vw,24px); align-items: start; grid-template-areas: "aside list"; }
.deskgrid aside { grid-area: aside; min-width: 0; }
.listcard { grid-area: list; overflow: hidden; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 16px #53263d05; }
.cardin,.clientin { padding: clamp(20px,2.4vw,29px); }
.help { margin-top: 8px; }
.settings label, legend { display: block; font-size: .93rem; font-weight: 640; margin: 20px 0 7px; }
select {
  width: 100%; min-height: 46px; color: var(--ink); appearance: none; font-size: 1rem;
  background-color: #fff; border: 1px solid var(--control); border-radius: 9px; padding: 10px 31px 10px 12px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg,transparent 50%,#755769 50%),linear-gradient(135deg,#755769 50%,transparent 50%);
  background-position: calc(100% - 16px) 50%,calc(100% - 11px) 50%; background-repeat: no-repeat; background-size: 5px 5px;
}
select[aria-invalid=true] { border-color: #a23c32; }
.timegrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.timegrid select,.at,.bigtime,.slots,.confirmed strong,.selection,.quantity,.stat strong { font-variant-numeric: tabular-nums; }
.btn,.rowbtn,.day { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; min-height: 46px; padding: 10px 15px; font-size: 1rem; font-weight: 630; line-height: 1.35; }
.primary { color: #fff; background: var(--berry); }
.primary:hover:enabled { background: var(--berry-hover); }
.primary:disabled { background: #eddee5; color: #67535f; }
.full { width: 100%; }
.settings .btn { margin-top: 22px; }
.error { color: #93382d; margin-top: 10px; font-size: .94rem; }
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px clamp(18px,2.4vw,30px); }
.quantity { display: grid; place-items: center; min-width: 33px; height: 32px; border-radius: 8px; color: #73344f; background: #f6e5ec; font-weight: 680; }
.visits { margin: 0; padding: 0; list-style: none; }
.visit { display: grid; grid-template-columns: 59px minmax(0,1fr); gap: clamp(11px,1.6vw,20px); align-items: center; border-top: 1px solid var(--line); padding: 17px clamp(16px,2.4vw,30px); }
.visit.managed { grid-template-columns: 59px minmax(0,1fr) minmax(90px,auto); }
.at { align-self: start; padding-top: 1px; }
.at strong { display: block; font-weight: 700; color: #613049; font-size: 1rem; }
.at span,.who > span:not(.pill),.who small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.42; }
.at span,.who > span:not(.pill) { margin-top: 3px; }
.who strong { font-weight: 680; font-size: 1.02rem; }
.who small { color: #3b5477; margin-top: 4px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 5px; margin-top: 6px; padding: 3px 7px; line-height: 1.3; font-size: .875rem; font-weight: 550; }
.pill.pending { color: #765120; background: #fbf0db; }
.pill.call { color: #813351; background: #f9e7ee; }
.pill.booked { color: #3a517e; background: #eaf0fa; }
.pill.attended { color: #345e4e; background: #e7f2eb; }
.dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.dot.pending { background: #936826; } .dot.call { background: #9d4466; } .dot.booked { background: #5771a1; } .dot.attended { background: #547c65; }
.rowactions { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; max-width: 165px; }
.rowbtn,.secondary,.day { background: #fff; border-color: #b88a9f; color: #7c2e50; }
.rowbtn { font-size: .9rem; padding: 8px 12px; min-height: 44px; }
.rowbtn:hover,.secondary:hover,.day:hover { background: #fcf1f5; }
.textbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 5px; background: transparent; color: #792849; padding: 7px 4px; font: inherit; font-size: .9rem; font-weight: 620; text-decoration: underline; text-decoration-color: #ac718e; text-underline-offset: 3px; line-height: 1.4; }
.textbtn:hover { color: #571733; text-decoration-color: currentColor; }
.listfoot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px clamp(16px,2.4vw,30px); background: #fbf6f8; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.listfoot strong { color: var(--ink); }
.empty { margin: 0; padding: 15px 20px; color: var(--muted); line-height: 1.55; }
.summary { background: #fcf1f4; border-color: #e8cfdb; }
.summary h2 { margin-top: 8px; color: #54263e; }
.bigtime { font-size: clamp(1.45rem,2.7vw,2rem); color: #64364d; letter-spacing: -.045em; margin-top: 8px; }
.stats { margin-top: 18px; border-top: 1px solid #e9cedb; }
.stat { display: flex; gap: 10px; align-items: center; font-size: .92rem; padding: 9px 0; border-bottom: 1px solid #ead8e1; }
.stat strong { margin-left: auto; color: #543146; }
.reset { margin-top: 8px; }
.reset-confirm { padding-top: 6px; font-size: .95rem; color: var(--ink); }
.reset-confirm div { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 10px; }
.clientwrap { width: min(100%,570px); margin: 24px auto 0; }
.back { margin: 0 0 6px; }
.clientcard { overflow: hidden; }
.clienttop { display: flex; align-items: center; gap: 8px; padding: 13px clamp(18px,3vw,27px); background: #faeaf0; border-bottom: 1px solid #eacfdc; color: #612c46; }
.clienttop img { width: 28px; height: 28px; }
.clienttop strong { font: 600 1.27rem var(--display); }
.clienttop > span { margin-left: auto; color: #70465a; font-size: .875rem; }
.clientcard h1 { font-size: clamp(1.9rem,4vw,2.52rem); color: #51273d; overflow-wrap: break-word; }
.clientcard .details { margin: 19px 0 20px; }
.details { padding: 9px 14px; border: 1px solid #eadce3; border-radius: 9px; background: #fcf8fa; font-size: .93rem; }
.details div { display: grid; grid-template-columns: minmax(70px,.65fr) minmax(0,1.35fr); gap: 9px; align-items: baseline; padding: 4px 0; }
.details dt { color: var(--muted); } .details dd { margin: 0; text-align: right; font-weight: 580; overflow-wrap: anywhere; }
.confirmed { margin-top: 16px; padding: 14px 16px; background: #eef1f9; color: #354b71; border-radius: 9px; display: grid; gap: 3px; }
.confirmed span,.confirmed small { font-size: .875rem; }
.confirmed strong { font-size: 1.15rem; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 15px 0; }
legend { padding: 0; margin: 0 0 8px; }
legend small { font-size: .875rem; font-weight: 450; color: var(--muted); }
.daygrid { display: flex; gap: 7px; flex-wrap: wrap; }
.day { flex: 1 0 auto; font-size: .94rem; padding: 8px 9px; min-height: 44px; border-color: var(--control); color: var(--ink); }
.day[aria-pressed=true] { color: var(--berry-hover); background: #f9e6ee; border: 2px solid var(--berry); padding: 7px 8px; font-weight: 720; }
.slots { display: grid; grid-template-columns: repeat(auto-fit,minmax(66px,1fr)); gap: 7px; }
.slot { display: grid; position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; top: 0; left: 0; }
.slot span { display: grid; place-items: center; min-height: 44px; padding: 7px 5px; background: #fff; border: 1px solid var(--control); border-radius: 8px; color: var(--ink); }
.slot input:checked + span { border: 2px solid var(--berry); padding: 6px 4px; background: #f9e6ee; color: var(--berry-hover); font-weight: 720; }
.slot input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.slot:hover span { border-color: var(--berry); }
.selection { color: var(--blue); font-size: .95rem; font-weight: 620; }
.selection:not(:empty) { margin: 10px 0; }
.callback { width: 100%; margin-top: 5px; }
footer.wrap { color: var(--muted); font-size: .875rem; line-height: 1.5; padding-block: 22px 30px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 830px) {
  .deskgrid { grid-template-columns: minmax(0,1fr); grid-template-areas: "aside" "list"; }
  .deskgrid.active { grid-template-areas: "list" "aside"; }
  .pagehead { margin-top: 18px; }
}
@media (max-width: 600px) {
  .topin { min-height: 63px; gap: 8px; }
  .brand { font-size: 1.36rem; gap: 6px; }
  .brand img { width: 31px; height: 31px; }
  .langs button { padding-inline: 8px; min-height: 44px; }
  .pagehead { grid-template-columns: minmax(0,1fr); gap: 0; padding: 18px 16px 16px; margin: 14px 0; }
  .pagehead h1 { font-size: clamp(1.9rem,6.9vw,2.5rem); margin: 10px 0 6px; }
  .metarow { padding-right: 57px; }
  .weave { position: absolute; right: 13px; top: 12px; width: 46px; height: 38px; background-size: 77px auto; background-position: -15px center; mask-image: linear-gradient(90deg,#000 80%,transparent); }
  .dateline { font-size: .9rem; }
  .deskgrid { gap: 13px; }
  .cardin,.clientin { padding: 18px; }
  .settings label { margin-top: 14px; }
  .settings .btn { margin-top: 17px; }
  .listhead { padding: 15px 16px; }
  .visit,.visit.managed { grid-template-columns: 53px minmax(0,1fr); gap: 4px 11px; padding: 13px 16px; }
  .at { align-self: start; }
  .rowactions { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 3px 10px; justify-content: flex-start; max-width: none; margin-top: 3px; }
  .clientwrap { margin-top: 10px; }
}
@media (max-width: 400px) {
  .topin { flex-wrap: wrap; padding: 5px 12px; gap: 4px 6px; }
  .brand { font-size: 1.21rem; gap: 5px; }
  .brand img { width: 27px; height: 27px; }
  .langs button { padding-inline: 6px; font-size: .855rem; }
}
@media (max-width: 355px) {
  .wrap { padding-inline: 10px; }
  .topin { padding-inline: 8px; }
  .day { font-size: .875rem; }
}
@media (forced-colors: active) {
  .slot input:checked + span,.day[aria-pressed=true],.langs button[aria-pressed=true] { outline: 2px solid Highlight; }
}
