:root {
  --bg: #fbf6f3; --card: #ffffff; --ink: #3d2b2b; --muted: #8a6f6f; --line: #efe1db;
  --rose: #c98b8b; --rose-dk: #a86a6a; --blush: #f6e6e2; --gold: #c9a96e; --ok: #4f8a5b; --bad: #b8433f;
  --radius: 14px; --shadow: 0 6px 24px rgba(90, 59, 59, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: 2.6rem; line-height: 1.1; } h2 { font-size: 1.8rem; } h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--rose-dk); }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); overflow-x: auto; }
.card + .card { margin-top: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 12px; }
.right { margin-left: auto; }
.hidden { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rose); background: var(--rose); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: .15s; text-decoration: none; }
.btn:hover { background: var(--rose-dk); border-color: var(--rose-dk); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--rose-dk); }
.btn.ghost:hover { background: var(--blush); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger.ghost { background: transparent; color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; justify-content: center; }

/* forms */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blush); border-color: var(--rose); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 12px; }
.fields-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { width: auto; margin-top: 4px; }
.err { color: var(--bad); font-size: .9rem; margin-top: 8px; min-height: 1.2em; }
.ok { color: var(--ok); }
.notice { background: var(--blush); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.notice.warn { background: #fff4e0; }

/* chips / pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--blush); color: var(--rose-dk); }
.pill.ok { background: #e6f2e8; color: var(--ok); } .pill.bad { background: #fbe4e3; color: var(--bad); } .pill.gold { background: #f7efdc; color: #8a6d2e; }

/* service cards */
.svc { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; background: #fff; transition: .15s; }
.svc:hover { border-color: var(--rose); } .svc.sel { border-color: var(--rose); background: var(--blush); }
.svc .price { font-weight: 700; color: var(--rose-dk); }

/* calendar */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; }
.cal { max-width: 460px; }
.cal-grid .dow { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.day { height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid transparent; font-size: .95rem; color: #b9a5a5; position: relative; }
.day.open { color: var(--ink); background: #fff; border-color: var(--line); cursor: pointer; }
.day.open:hover { border-color: var(--rose); }
.day.sel { background: var(--rose); color: #fff; border-color: var(--rose); }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.day .cnt { font-size: .65rem; color: var(--rose-dk); }
.day.sel .cnt { color: #fff; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.slot:hover { border-color: var(--rose); } .slot.sel { background: var(--rose); color: #fff; border-color: var(--rose); }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 18px; font-size: .8rem; color: var(--muted); }
.steps span { flex: 1; text-align: center; padding: 6px 4px; border-bottom: 3px solid var(--line); }
.steps span.on { color: var(--rose-dk); border-color: var(--rose); font-weight: 600; }
.steps span.done { border-color: var(--gold); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.cancelled td { color: #b9a5a5; text-decoration: line-through; }
tr.cancelled td .pill { text-decoration: none; }

/* header / footer */
header.site { padding: 36px 0 20px; text-align: center; }
header.site h1 { margin-bottom: 4px; }
footer.site { text-align: center; padding: 30px 0; color: var(--muted); font-size: .85rem; }

/* feedback fab + modal */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; box-shadow: var(--shadow); }
.modal-bg { position: fixed; inset: 0; background: rgba(61, 43, 43, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; }
.stars { display: flex; gap: 4px; } .stars button { font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: #ddd; padding: 0; } .stars button.on { color: var(--gold); }

/* admin layout */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.side h2 { font-size: 1.4rem; padding: 0 8px; }
.nav a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--blush); } .nav a.on { background: var(--rose); color: #fff; }
.main { padding: 26px; max-width: 1100px; }
.stat { text-align: center; } .stat .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--rose-dk); } .stat .l { font-size: .8rem; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 200; font-size: .9rem; opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; }
pre.log { background: #2b1f1f; color: #f3e6e1; padding: 12px; border-radius: 10px; font-size: .8rem; overflow: auto; max-height: 260px; }

@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  .fields-2 { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; } .nav a { padding: 7px 10px; font-size: .9rem; }
  .main { padding: 16px; }
  .day { font-size: .85rem; }
}

/* ---- mark-anywhere feedback ---- */
body.annotating, body.annotating * { cursor: crosshair !important; }
#annoLayer .anno-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: var(--ink); color: #fff; padding: 8px 16px; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#annoLayer .anno-bar .muted { color: #d8c9c9; }
#annoLayer .anno-bar .btn.ghost { color: #fff; border-color: #fff; }
#annoLayer .anno-hl { position: absolute; z-index: 290; pointer-events: none; border: 2px solid var(--gold); background: rgba(201,169,110,.15); border-radius: 6px; display: none; }
#annoPop { position: absolute; z-index: 310; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
#annoPop code { background: var(--blush); padding: 1px 5px; border-radius: 4px; }
.anno-pin { position: absolute; z-index: 280; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: auto; cursor: help; }
#fabMenu { position: fixed; right: 18px; bottom: 66px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
#fabMenu button { text-align: left; justify-content: flex-start; border: 0; background: none; color: var(--ink); font-weight: 500; }
#fabMenu button:hover { background: var(--blush); }
