@font-face { font-family: Rubik; src: url("rubik-regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Rubik; src: url("rubik-bold.woff") format("woff"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("notoserif-regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("notoserif-italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #2b2423;
  --muted: #675b57;
  --paper: #faf5f1;
  --white: #fffcfa;
  --stone: #f3ebe5;
  --line: #e8dad2;
  --accent: #8a4739;
  --accent-hover: #703a2f;
  --accent-soft: #f3e3db;
  --good: #355f4a;
  --good-soft: #edf4ed;
  --danger: #8d3937;
  --radius: 22px;
  --shadow: 0 8px 28px rgb(65 40 30 / 4%);
  font-family: Rubik, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; line-height: 1.5; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #a76c58; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { letter-spacing: -.045em; line-height: 1.06; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.28; }
small { font-size: .825rem; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { padding: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.icon { flex: none; width: 19px; height: 19px; vertical-align: middle; }
.muted { color: var(--muted); }
.text-link { font-weight: 600; }
.danger-text { color: var(--danger) !important; }
.sr-only, .trap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .91rem;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.22;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { background: var(--accent); color: #fffaf6; }
.button-primary:hover { background: var(--accent-hover); color: #fffaf6; }
.button-primary:disabled { color: #665852; background: #eaded7; }
.button-outline { color: var(--ink); background: var(--white); border-color: var(--line); }
.button-outline:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: #e4c5b8; }
.button-small { padding: 8px 12px; min-height: 38px; font-size: .85rem; }
.icon-button { width: 46px; padding: 0; }
.notice { margin: 0 0 16px; padding: 12px 15px; border-radius: 11px; border: 1px solid; }
.notice-error { color: var(--danger); border-color: #e8c6be; background: #fff1ed; }
.notice-success { color: var(--good); border-color: #cfdfd1; background: var(--good-soft); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.stack { display: grid; gap: 15px; margin-top: 17px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink); font-weight: 550; font-size: .91rem; }
.field input, .field select, .copy-field input {
  width: 100%; min-width: 0; min-height: 47px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); background: #fffdfa; font-size: max(16px, 1rem); font-weight: 400;
}
.field input::placeholder { color: #7b6e68; }
.field input:focus, .field select:focus { border-color: #b68270; }
.field input[type=date], .field input[type=time] { min-inline-size: 0; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; }
.checkbox input { accent-color: var(--accent); margin: 3px 0 0; width: 17px; height: 17px; flex: none; }
.field-note { font-size: .82rem; margin: 9px 0 0 27px; }

.public-wrap { width: min(1088px, calc(100% - 48px)); margin: 0 auto; }
.public-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.header-inner nav { display: flex; align-items: center; gap: 22px; }
.header-contact { text-decoration: none; color: var(--muted); font-size: .87rem; font-weight: 550; }
.wordmark { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 650; font-size: 1.07rem; text-decoration: none; letter-spacing: -.025em; }
.wordmark span:last-child { overflow-wrap: anywhere; }
.monogram { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; background: var(--accent); color: #fff6ed; font-size: 21px; }
.booking-hero { margin: 34px 0 23px; display: grid; grid-template-columns: 1.13fr 1fr; min-height: 313px; overflow: hidden; border: 1px solid #e8d2c5; border-radius: 27px; background: #f0ded1; }
.hero-content { padding: 37px 54px; align-self: center; }
.hero-content h1, .receipt h1, .prose h1 { font-family: "Noto Serif", Georgia, serif; font-weight: 400; }
.hero-content h1 { font-size: clamp(50px, 6.1vw, 88px); }
.hero-content h1 em { font-weight: 400; color: var(--accent); }
.hero-content > p:last-child { margin-top: 16px; color: #514641; max-width: 330px; font-size: 1.03rem; }
.hero-address { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; font-size: .85rem; color: #65483f; }
.hero-address .icon { width: 16px; height: 16px; }
.hero-photo { min-width: 0; background: #e7c9b7 url("manicure.webp") 53% 51% / cover no-repeat; }
.booking-form { display: grid; gap: 15px; }
.booking-section { padding: 24px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.section-title p { margin-top: 3px; color: var(--muted); font-size: .89rem; }
.section-icon, .empty-icon { flex: none; display: inline-grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.service-option, .time-option { position: relative; display: flex; cursor: pointer; min-width: 0; }
.service-option input, .time-option input { position: absolute; left: 12px; top: 12px; opacity: 0; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 15px; width: 100%; min-height: 107px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; transition: background-color 130ms; }
.service-option:hover .service-card, .time-option:hover span { border-color: #c79887; }
.service-option input:checked + .service-card, .time-option input:checked + span { background: #faebe3; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.service-option input:focus-visible + .service-card, .time-option input:focus-visible + span { outline: 3px solid #a76c58; outline-offset: 2px; }
.service-title { font-weight: 650; font-size: .97rem; overflow-wrap: anywhere; }
.service-description { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.service-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding-top: 11px; margin-top: auto; color: var(--muted); font-size: .85rem; }
.service-meta strong { color: var(--accent); white-space: nowrap; }
.service-meta .icon { width: 14px; height: 14px; margin-right: 1px; }
.time-field { margin-top: 17px; }
.time-field legend { font-weight: 600; font-size: .9rem; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(69px, 1fr)); gap: 7px; }
.time-grid:not(:empty) { margin-top: 9px; }
.time-option span { width: 100%; min-height: 37px; text-align: center; display: grid; place-items: center; padding: 6px; font-size: .9rem; font-weight: 550; border: 1px solid var(--line); border-radius: 9px; background: #fffdfa; }
.time-status { margin-top: 7px; font-size: .88rem; }
.time-status:empty { margin: 0; }
.booking-section > .checkbox { margin-top: 14px; }
.form-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 19px; padding: 2px 2px 12px; }
.public-footer { display: flex; justify-content: space-between; gap: 10px; padding: 21px 0; margin-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.empty { text-align: center; display: grid; justify-items: center; gap: 7px; padding: 44px 18px; }
.empty-icon { width: 53px; height: 53px; border-radius: 16px; margin-bottom: 4px; }
.empty p { color: var(--muted); }
.empty .button { margin-top: 8px; }
.narrow { max-width: 590px; padding-top: 44px; }
.receipt, .prose { padding: 35px; }
.receipt h1, .prose h1 { font-size: clamp(38px, 7vw, 60px); margin: 9px 0 14px; }
.receipt-icon { width: 52px; height: 52px; border-radius: 15px; }
.receipt-service { color: var(--muted); font-size: 1.15rem; }
.receipt-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 19px 0 12px; }
.receipt-data dt { font-size: .80rem; color: var(--muted); margin-bottom: 2px; }
.receipt-data dd { margin: 0; font-weight: 600; }
.receipt-address { color: var(--muted); }
.receipt-actions { margin-top: 21px; }
.login-card form .button { justify-self: start; }
.prose p { margin-bottom: 13px; color: var(--muted); }

.panel-layout { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { padding: 25px 14px 16px; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; gap: 25px; }
.sidebar-brand { padding: 2px 8px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-external { color: var(--muted); text-decoration: none; padding: 11px 10px; display: flex; gap: 10px; align-items: center; font-size: .89rem; font-weight: 550; border-radius: 9px; }
.side-nav a:hover, .side-external:hover { background: var(--paper); color: var(--accent-hover); }
.side-nav .is-current { background: var(--accent-soft); color: var(--accent-hover); }
.sidebar-bottom { margin-top: auto; }
.current-user { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; border-top: 1px solid var(--line); padding: 13px 4px 1px; }
.current-user strong, .current-user small { display: block; overflow-wrap: anywhere; }
.current-user strong { font-size: .88rem; }
.current-user small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--stone); color: var(--accent-hover); font-weight: 650; }
.quiet-icon { display: grid; place-items: center; background: transparent; border: 0; padding: 5px; color: var(--muted); border-radius: 6px; }
.quiet-icon:hover { background: var(--stone); color: var(--accent); }
.panel-main { width: min(1180px, 100%); margin: 0 auto; padding: 31px 32px 42px; min-width: 0; }
.panel-title { margin-bottom: 20px; }
.panel-title h1 { font-size: clamp(33px, 4vw, 48px); font-weight: 620; }
.panel-title p { color: var(--muted); margin-top: 6px; }
.agenda-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agenda-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.stat { display: flex; padding: 14px; gap: 11px; align-items: center; border-radius: 15px; }
.stat div span, .stat div strong { display: block; }
.stat div span { color: var(--muted); font-size: .84rem; }
.stat div strong { font-size: 1.5rem; line-height: 1.15; margin-top: 2px; }
.agenda-card { border-radius: 17px; }
.agenda-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); }
.filter-form, .day-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.filter-form .text-link, .agenda-controls > .text-link { font-size: .86rem; padding: 11px 3px; }
.agenda-empty { min-height: 247px; align-content: center; }
.agenda-list { display: grid; }
.agenda-row { display: grid; grid-template-columns: 74px minmax(0,1fr) 120px 79px; align-items: center; gap: 12px; min-height: 87px; padding: 13px 16px; }
.agenda-row + .agenda-row { border-top: 1px solid var(--line); }
.row-time strong, .row-time small, .row-value strong { display: block; }
.row-time small, .row-detail p { color: var(--muted); }
.row-time strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.row-value strong { font-size: .87rem; margin-bottom: 4px; white-space: nowrap; }
.row-detail { min-width: 0; overflow-wrap: anywhere; }
.appointment-meta { display: flex; flex-wrap: wrap; gap: 2px 9px; margin-top: 3px; color: var(--muted); font-size: .80rem; }
.pill { padding: 3px 7px; border-radius: 7px; display: inline-block; justify-self: start; background: var(--stone); color: var(--muted); font-size: .75rem; white-space: nowrap; }
.pill-confirmed, .pill-done { background: var(--good-soft); color: var(--good); }
.pill-cancelled, .pill-no_show { background: var(--accent-soft); color: var(--danger); }
.block-row { background: #fcf7f2; }
.block-row:last-child { border-radius: 0 0 17px 17px; }
.action-menu { position: relative; justify-self: end; }
.action-menu summary { list-style: none; cursor: pointer; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-dropdown { position: absolute; top: calc(100% + 6px); right: 0; display: grid; z-index: 2; min-width: 160px; border: 1px solid var(--line); padding: 5px; border-radius: 11px; background: var(--white); box-shadow: 0 6px 22px rgb(65 40 30 / 15%); }
.action-dropdown form { display: grid; }
.action-dropdown a, .action-dropdown button { text-align: left; color: var(--ink); background: transparent; border: 0; padding: 7px 9px; border-radius: 6px; text-decoration: none; font-size: .88rem; }
.action-dropdown a:hover, .action-dropdown button:hover { background: var(--stone); }
.details-card { margin-top: 16px; padding: 15px 17px; border-radius: 15px; }
.details-card summary { cursor: pointer; color: var(--accent-hover); font-weight: 600; }
.details-card summary .icon { margin: 0 3px 0 2px; }
.compact-card { padding: 19px; border-radius: 16px; margin-bottom: 14px; }
.compact-card h2 + p, .compact-card strong + p { margin-top: 5px; }
.panel-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; align-items: start; }
.record-list { margin-top: 13px; }
.record-row { display: flex; gap: 10px; padding: 9px 0; align-items: center; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); font-size: .9rem; }
.record-row div { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.record-row small { color: var(--muted); display: block; margin-top: 2px; }
.tabs { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.tabs a { padding: 7px 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.day-picker, .simple-options { display: flex; flex-wrap: wrap; gap: 8px; }
.day-picker legend, .simple-options legend { font-weight: 550; font-size: .9rem; margin-bottom: 5px; }
.day-option { align-items: center; gap: 5px; padding: 5px 7px; background: var(--stone); border-radius: 7px; }
.day-option input { margin: 0; width: 15px; height: 15px; }
.simple-options { gap: 8px 12px; }
.copy-field { display: flex; gap: 7px; align-items: center; margin-top: 12px; }
.table-wrap { margin-top: 8px; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .88rem; }
th, td { padding: 8px 9px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 550; }
.profile-card { max-width: 510px; }

@media (max-width: 960px) {
  .panel-layout { grid-template-columns: 190px minmax(0,1fr); }
  .panel-main { padding: 24px 20px 32px; }
  .sidebar { padding-inline: 10px; }
  .hero-content { padding: 34px; }
  .panel-columns { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 710px) {
  .public-wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 65px; }
  .header-inner nav { gap: 8px; }
  .header-contact { display: none; }
  .booking-hero { margin: 19px 0 15px; min-height: 245px; grid-template-columns: 1.2fr .85fr; border-radius: 18px; }
  .hero-content { padding: 21px; }
  .hero-content h1 { font-size: clamp(37px, 8.2vw, 58px); }
  .hero-content > p:last-child { font-size: .88rem; margin-top: 11px; }
  .hero-address { font-size: .72rem; gap: 4px; margin-bottom: 9px; }
  .hero-address .icon { width: 13px; height: 13px; }
  .booking-section { padding: 15px; border-radius: 16px; }
  .section-title { margin-bottom: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { padding: 10px; }
  .panel-layout { display: block; }
  .sidebar { padding: 12px 12px 4px; border-right: 0; border-bottom: 1px solid var(--line); gap: 9px; }
  .sidebar-brand { padding-left: 2px; }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; }
  .side-nav a { flex: none; padding: 7px; font-size: .80rem; gap: 5px; }
  .side-nav .icon, .side-external .icon { width: 15px; height: 15px; }
  .sidebar-bottom { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
  .side-external { font-size: .76rem; padding: 7px 3px; gap: 4px; }
  .current-user { border: 0; margin: 0; padding: 0; gap: 5px; }
  .current-user .avatar, .current-user small { display: none; }
  .current-user strong { font-size: .78rem; }
  .panel-main { padding: 17px 12px 30px; }
  .agenda-controls { padding: 10px; align-items: start; gap: 4px; }
  .agenda-row { padding: 9px; grid-template-columns: 54px minmax(0,1fr) 80px; gap: 6px; }
  .agenda-row .row-actions { grid-column: 2 / -1; justify-self: start; }
  .action-dropdown { right: auto; left: 0; }
}
@media (max-width: 445px) {
  .header-inner { gap: 6px; }
  .wordmark { font-size: .96rem; gap: 6px; }
  .monogram { width: 34px; height: 34px; }
  .booking-hero { min-height: 198px; }
  .hero-content { padding: 14px; }
  .field-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-bar { flex-direction: column; align-items: stretch; padding: 0 0 10px; }
  .form-bar p { font-size: .86rem; }
  .receipt, .prose { padding: 20px; }
  .narrow { padding-top: 20px; }
  .filter-form > .field { min-width: 145px; flex: 1; }
  .agenda-title .button { padding: 8px; font-size: .79rem; gap: 3px; }
  .agenda-title .button .icon { width: 14px; }
  .stat { padding: 8px; gap: 5px; }
  .stat .section-icon { display: none; }
  .agenda-stats { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
