:root {
  --bg: #F3F0EB;
  --card: #FBF9F6;
  --card-2: #F8F3F1;
  --inset: #F4ECEB;
  --ink: #2F2A2C;
  --ink-2: #5F5659;
  --muted: #9A8F92;
  --line: #D8CDCB;
  --line-2: #E8DFDC;
  --frame: #8E8487;
  --pink: #E3A3BF;
  --pink-2: #D48AAB;
  --pink-3: #B4628A;
  --rose: #F7E4EC;
  --rose-2: #F2D5E1;
  --peach: #F2C2A8;
  --green: #5FA57F;
  --green-bg: #E5F2EA;
  --red: #CF6476;
  --red-bg: #FAE6E9;
  --gold: #B88746;
  --gold-bg: #F6EBD9;
  --blue: #7C8FC9;
  --blue-bg: #E8ECF8;
  --grad: linear-gradient(100deg, #D9789F 0%, #E3919F 55%, #EAA889 100%);
  --shadow: 0 1px 2px rgba(80, 40, 55, .05), 0 10px 30px -14px rgba(150, 80, 110, .22);
  --shadow-pink: 0 12px 28px -12px rgba(212, 120, 160, .55);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 90% -8%, #F5DAE5 0, rgba(245, 218, 229, 0) 62%),
    radial-gradient(900px 520px at -12% 18%, #F3E4D8 0, rgba(243, 228, 216, 0) 58%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--pink-3); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: 72px; padding: 0 24px;
  background: rgba(243, 240, 235, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--pink-2); font-family: var(--serif); font-size: 24px; line-height: 1;
  box-shadow: var(--shadow);
}
.logo-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.nav {
  margin: 0 auto;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap;
  text-decoration: none;
}
.nav a:hover { background: var(--card-2); }
.nav a.active { background: var(--rose); color: var(--pink-3); }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav a.master { color: var(--gold); }
.nav a.master.active { background: var(--gold-bg); color: var(--gold); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2);
  box-shadow: var(--shadow);
}
.icon-btn:hover { color: var(--pink-3); }
.dot-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--pink-2); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

/* ---------- bottom tabbar (mobile) ---------- */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: none; justify-content: space-around;
  padding: 6px; border-radius: 22px;
  background: rgba(251, 249, 246, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 10px 30px -10px rgba(120, 60, 90, .3);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 2px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 600;
  text-decoration: none;
}
.tabbar a svg.i { width: 22px; height: 22px; }
.tabbar a.active { color: var(--pink-3); background: var(--rose); }
.tabbar a.master.active { color: var(--gold); background: var(--gold-bg); }

/* ---------- layout ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 36px 24px 120px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.05; letter-spacing: -.005em; }
.page-head .back {
  width: 48px; height: 48px; border-radius: 15px; flex: none;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--shadow);
}
.greeting h1 { margin: 0; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.05; }
.greeting .sub { display: flex; align-items: center; gap: 10px; margin: 8px 0 26px; color: var(--ink-2); font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.section { margin-top: 56px; }
.section-title {
  text-align: center; margin: 0 0 30px;
  font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pink);
}

/* ---------- cards ---------- */
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 26px;
  padding: 28px; box-shadow: var(--shadow);
}
.card.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 100% 0%, rgba(240, 180, 205, .38), rgba(240, 180, 205, 0) 70%);
}
.card > * { position: relative; }
.card-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 20px; font-weight: 700; }
.icon-box {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--rose); color: var(--pink-3); border: 1px solid var(--rose-2);
}
.icon-box svg.i { width: 22px; height: 22px; }
.icon-box.sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-box.sm svg.i { width: 18px; height: 18px; }
.icon-box.green { background: var(--green-bg); color: var(--green); border-color: #D2E9DC; }
.icon-box.gold { background: var(--gold-bg); color: var(--gold); border-color: #EEDDBF; }
.icon-box.blue { background: var(--blue-bg); color: var(--blue); border-color: #D9E0F3; }
.icon-box.red { background: var(--red-bg); color: var(--red); border-color: #F3D2D8; }
.inset {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px;
  background: var(--inset); border: 1px solid var(--line-2);
}
.kv { display: flex; align-items: baseline; gap: 10px; }
.kv .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv .v { font-size: 18px; font-weight: 600; }
.label-up { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile {
  display: block; color: inherit; text-decoration: none !important;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px 20px;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--rose-2); }
.tile .top { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 10px; }
.tile .val { display: flex; align-items: center; gap: 14px; }
.tile .num { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--pink-3); line-height: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { border-color: var(--pink-2); color: var(--pink-3); }
.btn.grad {
  background: var(--grad); border: 0; color: #fff; box-shadow: var(--shadow-pink);
  text-shadow: 0 1px 1px rgba(150, 60, 100, .25);
}
.btn.grad:hover { filter: brightness(1.03) saturate(1.05); color: #fff; }
.btn.big { height: 58px; font-size: 16px; border-radius: 17px; width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.btn.tg { background: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--rose); color: var(--pink-3); border: 1px solid var(--rose-2);
}
.badge.green { background: var(--green-bg); color: var(--green); border-color: #CFE6D8; }
.badge.red { background: var(--red-bg); color: var(--red); border-color: #F1CDD3; }
.badge.gold { background: var(--gold-bg); color: var(--gold); border-color: #EBD7B5; }
.badge.gray { background: var(--card-2); color: var(--ink-2); border-color: var(--line-2); }
.badge.blue { background: var(--blue-bg); color: var(--blue); border-color: #D5DCF1; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: stretch; }
.hero-text { padding: 26px 6px; }
.hero-kicker { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--pink-2); }
.hero h1 { margin: 14px 0 10px; font-family: var(--serif); font-size: 76px; font-weight: 500; line-height: .95; letter-spacing: -.01em; }
.hero .tagline { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--ink-2); margin: 0 0 18px; }
.hero .about { color: var(--ink-2); max-width: 520px; margin: 0 0 28px; font-size: 16px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .actions .btn { height: 54px; padding: 0 26px; font-size: 15px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.facts span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(251, 249, 246, .7); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.facts svg.i { width: 15px; height: 15px; color: var(--pink-2); }
.slots-card h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.slot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 16px; background: var(--inset); border: 1px solid var(--line-2);
  color: inherit; text-decoration: none !important; transition: border-color .15s;
}
.slot-row:hover { border-color: var(--pink); }
.slot-row .when { font-weight: 700; }
.slot-row .time { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--pink-3); }

/* price list — как на прайсе мастера */
.price-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 40px; }
fieldset.frame {
  margin: 0; padding: 18px 26px 14px; border: 1px solid var(--frame); border-radius: 2px;
  background: transparent;
}
fieldset.frame > legend {
  padding: 0 12px; margin-left: -4px;
  font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.price-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 11px 0; border-bottom: 1px dashed transparent; cursor: pointer;
}
.price-item:hover .p-title { color: var(--pink-3); }
.p-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; transition: color .15s; }
.p-sub { font-family: var(--serif); font-size: 18px; color: var(--ink-2); line-height: 1.2; }
.p-meta { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.p-price { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.steps .num { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--pink); font-weight: 500; }
.steps h3 { margin: 10px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-2); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.contact-line .icon-box { width: 40px; height: 40px; border-radius: 12px; }
.hours-table { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 10px; }
.footer .logo-name { font-size: 22px; color: var(--ink-2); }

/* ---------- booking wizard ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper .st {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 13px;
}
.stepper .st b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); font-size: 12px; }
.stepper .st.on { color: var(--pink-3); border-color: var(--rose-2); background: var(--rose); }
.stepper .st.on b { background: var(--grad); color: #fff; border: 0; }
.stepper .st.done { color: var(--ink-2); }
.stepper .st.done b { background: var(--green-bg); color: var(--green); border-color: #CFE6D8; }
.cat-title { margin: 6px 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.opt {
  position: relative; text-align: left;
  padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); transition: border-color .15s, background .15s, transform .15s;
}
.opt:hover { border-color: var(--pink); transform: translateY(-1px); }
.opt.sel { border-color: var(--pink-2); background: var(--rose); }
.opt .t { font-weight: 700; padding-right: 26px; }
.opt .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt .m { display: flex; gap: 12px; margin-top: 10px; align-items: baseline; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.opt .m .pr { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-left: auto; }
.opt .chk { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: #fff; }
.opt.sel .chk { background: var(--grad); border: 0; }
.opt .chk svg.i { width: 14px; height: 14px; stroke-width: 2.5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px;
}
.chip .pr { color: var(--muted); }
.chip.sel { background: var(--rose); border-color: var(--pink-2); color: var(--pink-3); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day-pill {
  flex: none; width: 68px; padding: 10px 0 9px; border-radius: 18px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line-2); text-align: center; box-shadow: var(--shadow);
}
.day-pill .wd { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day-pill .d { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.day-pill .mo { font-size: 11px; color: var(--muted); }
.day-pill .fr { display: block; width: 6px; height: 6px; margin: 4px auto 0; border-radius: 50%; background: var(--green); }
.day-pill:disabled { opacity: .38; box-shadow: none; cursor: default; }
.day-pill:disabled .fr { background: transparent; }
.day-pill.sel { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-pink); }
.day-pill.sel .wd, .day-pill.sel .mo { color: rgba(255, 255, 255, .9); }
.day-pill.sel .fr { background: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.time-btn {
  height: 46px; border-radius: 13px; background: var(--card); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
}
.time-btn:hover { border-color: var(--pink-2); color: var(--pink-3); }
.time-btn.sel { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-pink); }
.summary-bar {
  position: sticky; bottom: 16px; z-index: 5; margin-top: 26px;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 14px 14px 22px; border-radius: 22px;
  background: rgba(251, 249, 246, .94); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); box-shadow: 0 14px 36px -14px rgba(120, 60, 90, .35);
}
.summary-bar .info { flex: 1; min-width: 0; }
.summary-bar .info .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-bar .info .m { font-size: 13px; color: var(--muted); }
.summary-bar .price { font-family: var(--serif); font-size: 28px; font-weight: 600; white-space: nowrap; }
.summary-bar .btn { height: 50px; padding: 0 26px; }
.success { text-align: center; padding: 46px 28px; }
.success .big-icon {
  width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 28px;
  display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-pink);
}
.success .big-icon svg.i { width: 40px; height: 40px; stroke-width: 2; }
.success h2 { font-family: var(--serif); font-size: 42px; margin: 0 0 8px; font-weight: 600; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); outline: none;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--pink-2); box-shadow: 0 0 0 4px var(--rose); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.switch input:checked + span { background: var(--pink-2); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- bookings list ---------- */
.bk {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.bk .when { text-align: center; padding-right: 18px; border-right: 1px solid var(--line-2); }
.bk .when .t { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.bk .when .d { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.bk .what .t { font-weight: 700; }
.bk .what .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.bk .what .meta span { display: inline-flex; gap: 5px; align-items: center; }
.bk .what .meta svg.i { width: 14px; height: 14px; color: var(--muted); }
.bk .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bk.past { opacity: .7; box-shadow: none; }
.bk.block { background: repeating-linear-gradient(135deg, var(--card-2) 0 10px, var(--card) 10px 20px); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon-box { margin: 0 auto 14px; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); }
.notif.unread { border-color: var(--rose-2); background: linear-gradient(90deg, var(--rose) 0, var(--card) 60%); }
.notif .body { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.notif .time { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- master ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 30px; }
.stat {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: inherit; text-decoration: none !important;
}
.stat .v { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.panel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-title h1 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 600; }
.panel-title .online { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; font-size: 13px; }
.sec-card { padding: 0; }
.sec-card .head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.sec-card .head h3 { margin: 0; font-size: 17px; }
.num-badge { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; background: var(--grad); }
.num-badge.gold { background: linear-gradient(135deg, #E5C08A, #C99A5B); }
.num-badge.green { background: linear-gradient(135deg, #9BD3B3, #5FA57F); }
.num-badge.blue { background: linear-gradient(135deg, #AEBCE8, #7C8FC9); }
.sec-card .items { padding: 8px 10px 12px; }
.sec-card .items a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.sec-card .items a:hover { background: var(--card-2); }
.sec-card .items a .icon-box { width: 32px; height: 32px; border-radius: 10px; }
.sec-card .items a .icon-box svg.i { width: 15px; height: 15px; }
.sec-card .items a .hint { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 18px; }
.week button {
  padding: 10px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); text-align: center;
}
.week button .wd { font-size: 12px; font-weight: 700; color: var(--muted); }
.week button .d { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.week button .c { font-size: 11px; font-weight: 700; color: var(--pink-3); min-height: 16px; }
.week button.off { background: var(--card-2); }
.week button.off .d { color: var(--muted); }
.week button.sel { border-color: var(--pink-2); background: var(--rose); }
.svc-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); cursor: pointer; }
.svc-row:hover { border-color: var(--rose-2); }
.svc-row .t { font-weight: 700; }
.svc-row .s { color: var(--muted); font-size: 13px; }
.svc-row .pr { margin-left: auto; font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.svc-row.off { opacity: .55; }
.svc-edit { padding: 20px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--rose-2); }
.wh-row { display: grid; grid-template-columns: 120px 52px 1fr 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.wh-row:last-child { border-bottom: 0; }
.client { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 16px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); }
.client .n { font-weight: 700; }

/* ---------- modal / toast ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(60, 40, 50, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.modal h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--rose); border-top-color: var(--pink-2); animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%);
  padding: 13px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); max-width: calc(100vw - 32px);
  animation: toast-in .25s ease;
}
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.loading { display: grid; place-items: center; padding: 80px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a span { display: none; }
  .nav a { padding: 9px 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .tabbar { display: flex; }
  .header { padding: 0 16px; height: 64px; }
  .main { padding: 24px 16px 120px; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 54px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 48px; }
  .page-head h1, .greeting h1 { font-size: 34px; }
  .header .logout-btn { display: none; }
  .summary-bar { bottom: 92px; }
  .toast { bottom: 100px; }
}
@media (max-width: 600px) {
  .grid-2, .opts, .form-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 22px; }
  fieldset.frame { padding: 12px 16px 8px; }
  .p-title { font-size: 19px; }
  .p-sub { font-size: 16px; }
  .bk { grid-template-columns: 74px 1fr; }
  .bk .when { padding-right: 12px; }
  .bk .when .t { font-size: 24px; }
  .bk .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .summary-bar { flex-wrap: wrap; padding: 14px; }
  .summary-bar .btn { width: 100%; }
  .wh-row { grid-template-columns: 1fr 52px; }
  .wh-row .input { grid-column: span 1; }
  .logo-name { font-size: 20px; }
  .week { gap: 4px; }
  .week button .d { font-size: 20px; }
}
