:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --line: #e8e5de;
  --shadow: 0 1px 2px rgba(23, 23, 26, .04), 0 6px 20px rgba(23, 23, 26, .05);
  --text: #17171a;
  --muted: #6e6a62;
  --gold: #a9781f;
  --gold-soft: #fbf4e4;
  --gold-line: #e7d4a8;
  --gold-ink: #ffffff;
  --green: #1f9d57;
  --red: #d6453a;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --glow: rgba(169, 120, 31, .26);
  --bar-bg: rgba(255, 255, 255, .88);
  --feature: #f6e7c4;
}

/* Each shop picks its look in the admin settings; the default above is the light gold one. */
:root[data-theme="mono"] {
  --gold: #111113;
  --gold-soft: #f4f4f2;
  --gold-line: #dcdcd8;
  --gold-ink: #ffffff;
  --muted: #6b6b70;
  --line: #e6e6e3;
  --surface-2: #f2f2f0;
  --glow: rgba(17, 17, 19, .22);
  --feature: #ececea;
}
:root[data-theme="dark"] {
  --bg: #0d0d0f;
  --surface: #17171a;
  --surface-2: #222226;
  --line: #2c2c31;
  --text: #f5f2ea;
  --muted: #a09c93;
  --gold: #d9ad5b;
  --gold-soft: #1f1b12;
  --gold-line: #4b3d1f;
  --gold-ink: #1a1408;
  --green: #5fc48a;
  --red: #ec6a5e;
  --shadow: none;
  --glow: rgba(217, 173, 91, .22);
  --bar-bg: rgba(13, 13, 15, .88);
  --feature: #2a2213;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  overscroll-behavior-y: none;
}
body.sheet-open { overflow: hidden; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px calc(112px + var(--safe-b));
}
.wrap.wide { max-width: 720px; }

h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; }
a { color: var(--gold); }
button, a { -webkit-tap-highlight-color: transparent; }
button { user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small { font-size: .875rem; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ic { flex: none; vertical-align: -0.18em; }

/* ---- hero ---- */
.hero {
  padding: 34px 0 24px;
  text-align: center;
  background: radial-gradient(70% 62% at 50% 34%, var(--gold-soft), transparent 72%);
  margin: 0 -16px 8px;
}
.logo {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--gold);
  border: 1.5px solid var(--gold); background: var(--gold-soft);
}
.hero h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; padding: 0 16px; }
.hero .tagline { color: var(--muted); margin-top: 2px; padding: 0 16px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.status.open { color: var(--text); }
.status.open i { background: var(--green); box-shadow: 0 0 0 4px rgba(95, 196, 138, .18); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .875rem; background: var(--surface);
}

/* ---- page chrome ---- */
.page-head { padding: 26px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; font-weight: 800; }
.page-head .status { margin-top: 0; }
.bar { display: flex; align-items: center; gap: 6px; padding: 14px 0 14px; margin-inline-start: -8px; }
.bar h1 { font-size: 1.25rem; font-weight: 700; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: transparent; border: 0; border-radius: 50%;
}
.icon-btn:active { background: var(--surface-2); }

.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  flex: 1; max-width: 150px; min-height: 52px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; font-size: .72rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 0;
}
.tabbar button.on { color: var(--gold); }
.tabbar .glyph { position: relative; display: grid; }
.tabbar b {
  position: absolute; top: -5px; inset-inline-end: -11px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--gold-ink); font-size: .68rem; font-weight: 700;
}

.cta-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cta-bar .btn { max-width: 528px; margin: 0 auto; display: flex; }
.cta-bar .btn:disabled { opacity: 1; background: var(--surface-2); border-color: var(--surface-2); color: var(--muted); }

/* ---- home: actions under the name, section headings, loading ---- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding: 0 16px; }
.hero-actions .btn { flex: 0 0 100%; min-height: 52px; font-size: 1.05rem; border-radius: 999px; box-shadow: 0 6px 18px var(--glow); }
.round-btn {
  width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.round-btn:active { transform: scale(.94); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.sec-head a { text-decoration: none; direction: ltr; }
.svc-ic {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold);
}
a.line.plain { color: inherit; text-decoration: none; }
.list .line > .ic { color: var(--gold); }
.splash { min-height: 70vh; display: grid; place-items: center; }
.splash i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- sections & cards ---- */
.section { margin-bottom: 24px; }
.title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
button.card { width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.stack { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.link { display: block; margin: 10px auto 0; padding: 6px 10px; cursor: pointer; background: none; border: 0; font: inherit; font-size: .875rem; color: var(--gold); }

.ticket .big { font-size: 1.2rem; font-weight: 700; }
.ticket .actions { margin-top: 12px; }
.ticket.featured { border-color: var(--gold); background: linear-gradient(160deg, var(--feature), var(--gold-soft) 60%); }
.eyebrow { font-size: .75rem; font-weight: 600; color: var(--gold); letter-spacing: .02em; margin-bottom: 2px; }
.past { opacity: .85; }

.again {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  text-align: start; font: inherit; color: var(--text);
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius);
}
.again > .ic:first-child { color: var(--gold); }

/* ---- service picker ---- */
.service {
  width: 100%; text-align: start; cursor: pointer; color: inherit; font: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .1s;
}
.service:active, .again:active, .quick:active, button.card:active { transform: scale(.985); border-color: var(--gold); }
.service .name { font-weight: 600; font-size: 1.02rem; }
.service .price { font-weight: 700; color: var(--gold); font-size: 1.05rem; }
.service > .ic:last-child, .again > .ic:last-child, .customer > .ic:last-child { color: var(--muted); }

/* ---- date & time picking ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; }
.pill.gold { border-color: var(--gold-line); }

.quick {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; cursor: pointer;
  font: inherit; color: var(--text); text-align: start;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px;
}
.quick .ic { color: var(--gold); }

.month { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; min-height: 1.2em; }
.dates {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 12px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: none; width: 60px; padding: 9px 0 7px; cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  scroll-snap-align: center;
}
.date .dow { font-size: .75rem; color: var(--muted); }
.date .dom { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.date .tag { height: 14px; font-size: .625rem; color: var(--muted); display: grid; place-items: center; }
.date .tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.date.full .dom { color: var(--muted); }
.date.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.date.on .dow, .date.on .tag, .date.on .dom { color: var(--gold-ink); }
.date.on .tag i { background: var(--gold-ink); }
.date:disabled { opacity: .3; cursor: not-allowed; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time {
  min-height: 46px; cursor: pointer; color: inherit; font: inherit; font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.time.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.part { font-size: .8125rem; color: var(--muted); margin: 16px 0 8px; }
.part:first-child { margin-top: 0; }

.skeleton {
  height: 54px; margin-bottom: 10px; border-radius: 12px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- cover photo, logo & photo strip ---- */
/* The shop's own photo sits behind the top of the home screen only and fades into the page. */
.hero.covered { padding-top: 0; background: none; }
.cover { height: 230px; margin-bottom: -58px; background: var(--surface) center / cover no-repeat; position: relative; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--bg)); }
.hero.covered .logo-img, .hero.covered .logo { position: relative; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); border: 3px solid var(--bg); }

.logo-img { background: #fff; width: 104px; height: 104px; margin: 0 auto 14px; display: block; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); background: var(--surface); }
.logo-img.sm { width: 44px; height: 44px; margin: 0; }
.reel {
  display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.shot {
  flex: none; width: 62%; max-width: 300px; aspect-ratio: 4 / 5; padding: 0; cursor: pointer; box-shadow: var(--shadow);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface);
  scroll-snap-align: center;
}
.shot:only-child { width: 100%; max-width: none; }
.shot img, .look img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.dots i.on { width: 18px; border-radius: 3px; background: var(--gold); }
.look { margin: 0 auto 14px; max-width: 360px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--bg); }

/* ---- advisor ---- */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 44px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.bubble.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-start-start-radius: 6px; }
.bubble.user { align-self: flex-end; background: var(--gold); color: var(--gold-ink); border-end-end-radius: 6px; }
.typing { display: flex; gap: 5px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.starters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.starters .chip { cursor: pointer; font: inherit; font-size: .875rem; text-align: start; min-height: 40px; height: auto; padding: 8px 14px; }
.chat-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  max-width: 560px; margin: 0 auto; padding: 10px 16px calc(8px + var(--safe-b));
  background: var(--bg); border-top: 1px solid var(--line);
}
.chat-bar .btn { width: 48px; padding: 0; }
.chat-bar p { grid-column: 1 / -1; font-size: .6875rem; text-align: center; }

/* ---- summary & lists ---- */
.summary { border-color: var(--gold-line); background: var(--gold-soft); margin-bottom: 16px; padding: 6px 16px; }
.line { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.summary .line { border-color: var(--gold-line); }
.summary .line .ic { color: var(--gold); }
.summary .line strong { margin-inline-start: auto; text-align: end; }
.list { padding-block: 4px; }
.line.today { color: var(--gold); font-weight: 600; }
.about { color: var(--muted); white-space: pre-line; }

/* ---- forms ---- */
label { display: block; font-size: .875rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px;
}
input, select, textarea { box-shadow: inset 0 1px 2px rgba(23, 23, 26, .03); }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--gold); }
input[type="time"], input[type="date"], input[type="tel"], input[type="number"] { direction: ltr; text-align: right; }
input:disabled { opacity: .55; }
textarea { min-height: 76px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.field { margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; cursor: pointer; white-space: nowrap;
  font: inherit; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.solid-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: .875rem; font-weight: 500; border-radius: 10px; }
.btn.danger { color: var(--red); }
.btn.good { color: var(--green); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
form + p.center, .btn + p.center { margin-top: 14px; }

/* ---- success ---- */
.done { text-align: center; padding: 44px 0 22px; }
.check {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--gold-ink);
  box-shadow: 0 0 0 10px var(--gold-soft);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.done h1 { font-size: 1.7rem; font-weight: 800; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---- sheets ---- */
.sheet-root { position: fixed; inset: 0; z-index: 60; }
.sheet-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; bottom: 0; inset-inline: 0; max-width: 560px; margin: 0 auto;
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(22px + var(--safe-b));
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .12);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
.sheet-root.in .sheet-shade { opacity: 1; }
.sheet-root.in .sheet { transform: none; }
.sheet-root.out .sheet-shade { opacity: 0; }
.sheet-root.out .sheet { transform: translateY(100%); }

/* ---- toast ---- */
.toast {
  position: fixed; inset-inline: 16px; bottom: calc(88px + var(--safe-b));
  max-width: 420px; margin: 0 auto; padding: 12px 16px; z-index: 80;
  background: var(--text); color: var(--bg); border-radius: 14px;
  text-align: center; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  animation: drop .25s ease both;
}
.toast.error { background: var(--red); color: #fff; }
@keyframes drop { from { transform: translateY(16px); opacity: 0; } }

.foot { text-align: center; padding: 8px 0 0; }
.foot a { color: var(--muted); font-size: .8rem; text-decoration: none; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--green); }
.badge.bad { color: var(--red); }
.badge.gold { color: var(--gold); }

.empty { text-align: center; color: var(--muted); padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.again.offer { border-color: var(--gold); box-shadow: 0 6px 18px var(--glow); }
.back { border-color: var(--gold-line); background: var(--gold-soft); }
.back .big { font-size: 1.9rem; font-weight: 800; margin-bottom: 4px; }
.back .line { border-color: var(--gold-line); }
.event > strong { font-weight: 600; }

/* ---- admin ---- */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .65); color: #fff;
}
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; box-shadow: var(--shadow); }
.sheet .stat { background: var(--surface-2); box-shadow: none; }
.stat .label { font-size: .75rem; color: var(--muted); }
.stat .value { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.stat .value small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.stat .sub { font-size: .8rem; color: var(--gold); }

.weeknav { display: flex; align-items: center; gap: 2px; margin: 0 -8px 14px; }
.week { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wday {
  padding: 7px 0 5px; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
}
.wday .dow { font-size: .7rem; color: var(--muted); }
.wday .dom { font-weight: 700; }
.wday .cnt { height: 15px; font-size: .68rem; color: var(--gold); }
.wday.today { border-color: var(--line); }
.wday.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.wday.on .dow, .wday.on .cnt { color: var(--gold-ink); }
.day-title { margin-bottom: 12px; }
.day-title input[type="date"] { width: 46px; min-height: 38px; padding: 0 8px; border-radius: 10px; color: transparent; }

.appt { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.appt .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.appt .when span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.appt .who { font-weight: 600; overflow-wrap: anywhere; }
.appt .note { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.appt .note.pinned { color: var(--gold); }
.appt .actions { margin-top: 10px; }
.appt.done { opacity: .6; }
.appt.noshow { opacity: .6; border-color: var(--red); }
.appt.blocked { border-style: dashed; color: var(--muted); }
.gap {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer;
  font: inherit; font-size: .875rem; color: var(--muted); text-align: start;
  background: transparent; border: 1px dashed var(--line); border-radius: 12px;
}
button.gap:active { border-color: var(--gold); color: var(--gold); }
.gap.rest { cursor: default; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0, 0, 0, .035) 8px 16px); }

.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font-weight: 700;
}
.event { display: grid; gap: 6px; }
.event.fresh { border-color: var(--gold); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar-fill { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--surface-2); }
.bar-col.on .bar-fill { background: var(--gold); }
.bar-val { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-label { font-size: .7rem; color: var(--muted); }
.hbar { margin-bottom: 12px; }
.hbar:last-child { margin-bottom: 0; }
.track { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.track span { display: block; height: 100%; border-radius: 3px; background: var(--gold); }

details > summary { cursor: pointer; font-weight: 600; list-style: none; padding: 10px 0; color: var(--gold); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+ "; }
details[open] > summary::before { content: "− "; }

.hours-row { display: grid; grid-template-columns: 22px 58px 1fr 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.hours-row input[type="time"] { min-height: 40px; padding: 6px 8px; }
.svc-row { display: grid; grid-template-columns: 1fr 72px 72px; gap: 8px; margin-bottom: 8px; }
.svc-row + .actions { margin-bottom: 18px; }

.login { max-width: 340px; margin: 16vh auto 0; text-align: center; }
.login h1 { font-size: 1.4rem; margin-bottom: 6px; }
.login input { text-align: center; font-size: 1.3rem; letter-spacing: .3em; margin: 18px 0 12px; }

@media (max-width: 380px) {
  .hero h1 { font-size: 1.6rem; }
  .stat .value { font-size: 1.1rem; }
  .btn.sm { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
