/* Nourish to Flourish palette, sampled from her Showit site */
:root {
  --cream: #f2efe9;
  --sand: #ebe6cf;
  --sage: #5e6d58;
  --olive: #3d3f31;
  --plum: #5d3c49;
  --ink: #111;
  --white: #fff;
  --line: #ddd7c8;
  --muted: #6f7166;
  --ok: #4f6b45;
  --warn: #8a5a1f;
  --bad: #8a2f3b;
  --serif: "Fraunces", "Swear Display", Georgia, serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--olive); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h1 em, h2 em { color: var(--sage); }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin: 0 0 6px; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Shell */
.top { background: #000; color: var(--cream); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; height: 62px; }
.wordmark { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; color: var(--cream); text-decoration: none; white-space: nowrap; }
.wordmark em { font-size: 15px; letter-spacing: 0; margin: 0 2px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #cfcabd; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--cream); }
.nav a.on { background: var(--sand); color: #000; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--plum); color: #fff; font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0; }
main { max-width: 1180px; margin: 0 auto; padding: 32px 16px 80px; }

/* Cards & layout */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.card.sand { background: var(--sand); border-color: #dcd5b8; }
.card.dark { background: #000; color: var(--cream); border-color: #000; }
.card.dark h2, .card.dark h3 { color: var(--cream); }
.stat { font-family: var(--serif); font-size: 44px; color: var(--ink); line-height: 1; margin: 6px 0 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.section { margin-top: 36px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* Buttons & inputs */
.btn { appearance: none; border: 1px solid #000; background: #000; color: var(--cream); font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: var(--olive); }
.btn.light { background: var(--sand); color: #000; border-color: var(--sand); }
.btn.light:hover { background: #e0d9bb; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--olive); }
.btn.sage { background: var(--sage); border-color: var(--sage); }
.btn.danger { background: transparent; color: var(--bad); border-color: #e3c9cd; }
.btn.sm { padding: 8px 12px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--olive); margin-bottom: 5px; }
input, textarea, select { width: 100%; font: 15px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 360px; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sage); outline-offset: 0; border-color: var(--sage); }
.field + .field { margin-top: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Lists */
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; }
.item:hover { border-color: var(--olive); }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-family: var(--serif); font-size: 18px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--olive); border: 1px solid var(--line); white-space: nowrap; }
.pill.pending, .pill.generating { background: #f6ecd9; color: var(--warn); border-color: #ecd9b5; }
.pill.approved, .pill.scheduled { background: #e4ebe0; color: var(--ok); border-color: #cddbc6; }
.pill.done, .pill.sent { background: var(--cream); }
.pill.failed { background: #f5e3e5; color: var(--bad); border-color: #e9c8cc; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 13px var(--sans); cursor: pointer; color: var(--olive); }
.tabs button.on { background: #000; color: var(--cream); border-color: #000; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid #eee9de; vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* Content previews */
.prose { font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: 24px; margin-top: 1.2em; }
.prose h3 { font-size: 19px; }
.slides { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.slide { flex: 0 0 180px; aspect-ratio: 4/5; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.slide:first-child { background: var(--sage); color: var(--cream); }
.pre { white-space: pre-wrap; font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eee9de; }
.check:last-child { border-bottom: 0; }
.dot { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--sage); display: grid; place-items: center; font-size: 12px; color: #fff; margin-top: 2px; }
.dot.on { background: var(--sage); }
.timeline { border-left: 2px solid var(--sand); padding-left: 18px; }
.timeline > div { position: relative; padding-bottom: 18px; }
.timeline > div::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); }
code, .code { font: 12.5px/1.5 ui-monospace, Menlo, monospace; background: #f7f5ef; border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: block; white-space: pre-wrap; word-break: break-all; color: var(--olive); }
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: #000; color: var(--cream); }
.bubble.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000; color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
.toast.err { background: var(--bad); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.banner { background: var(--sand); border-radius: var(--r); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
iframe.email { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
@media (max-width: 640px) {
  .top-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; gap: 6px; }
  .nav { flex-basis: 100%; }
  main { padding-top: 22px; }
  .card { padding: 16px; }
  .bubble { max-width: 92%; }
}
.badge[hidden] { display: none; }

/* ---- v2: friendlier controls ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; cursor: pointer; font: 14px var(--sans); color: var(--olive); }
.chip:hover { border-color: var(--olive); }
.chip.on { background: #000; color: var(--cream); border-color: #000; }
.btn.big { padding: 15px 24px; font-size: 13px; }
.decide { margin-top: 22px; border: 2px solid #000; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; font: 500 15px var(--sans); color: var(--ink); min-height: 96px; }
.tile:hover { border-color: #000; }
.tile span { font-size: 22px; color: var(--sage); }
.icon { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--sage); font-size: 16px; }
.check .dot + div a { color: inherit; }

/* Instagram images */
.igrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; min-height: 60px; align-items: center; }
.igimg { flex: 0 0 auto; height: 300px; aspect-ratio: 4/5; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.15); background: var(--cream); }
.igimg.reel { aspect-ratio: 9/16; }
.swatches { gap: 6px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px #000; }
details summary { cursor: pointer; color: var(--olive); }

/* On/off switch */
.switch { position: relative; flex: 0 0 44px; height: 26px; display: inline-block; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d8d3c6; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: .6; cursor: default; }

/* Phone bottom tab bar */
.bnav { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top-in { justify-content: center; height: 54px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  main { padding-bottom: 110px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #000; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #a9a597; text-decoration: none; font-size: 11px; letter-spacing: .04em; padding: 4px 0; }
  .bnav a span { font-size: 20px; line-height: 1.2; position: relative; }
  .bnav a.on { color: var(--cream); }
  .bnav .badge { position: absolute; top: -4px; right: -14px; font-style: normal; font-size: 10px; }
  .igimg { height: 240px; }
  .decide .btn.big { flex: 1 1 100%; justify-content: center; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .grid[style*="minmax(260px"] { grid-template-columns: 1fr !important; }
}

/* Booking settings */
.svcCard.paused { opacity: .7; }
.dayRow { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #eee9de; }
.dayRow:last-child { border-bottom: 0; }
.dayRow .switch { margin-right: 6px; }
.pvGrid { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 10px; overflow-x: auto; }
.pvGrid > div { display: flex; flex-direction: column; gap: 4px; }
.pvSlot { font-size: 13px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; text-align: center; }
.saveBar { position: sticky; bottom: 16px; z-index: 15; margin-top: 20px; background: #000; color: var(--cream); border-radius: 999px; padding: 10px 12px 10px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.saveBar[hidden] { display: none; }
.saveBar .btn.ghost { color: var(--cream); border-color: #555; }
@media (max-width: 760px) { .saveBar { bottom: 76px; border-radius: 14px; } .pvGrid { grid-template-columns: repeat(7, 110px); } }

/* ---- v3: sidebar shell, security, practice ---- */
.linkBtn { background: none; border: 0; padding: 0; color: var(--plum); text-decoration: underline; cursor: pointer; font: inherit; }
body.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: #000; color: #cfcabd; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 14px; }
.side .wordmark { font-size: 17px; text-align: center; margin: 0 0 22px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.navHead { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #8b877b; margin: 16px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #d9d4c6; text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 8px; position: relative; }
.side nav a span { width: 18px; text-align: center; opacity: .8; }
.side nav a:hover { background: #1b1b1b; color: var(--cream); }
.side nav a.on { background: var(--sand); color: #000; }
.side .badge { font-style: normal; margin-left: auto; }
.me { border-top: 1px solid #262626; padding: 12px 10px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.me .linkBtn { color: var(--sand); }
body.shell main { max-width: 1180px; width: 100%; padding: 32px 28px 80px; margin: 0; }
.tabs a.tabBtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 13px var(--sans); color: var(--olive); text-decoration: none; }
.tabs a.tabBtn.on { background: #000; color: var(--cream); border-color: #000; }
.idle { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.idle[hidden] { display: none; }
.noteBody .pre { background: #faf8f3; border-radius: 8px; padding: 10px 12px; }
.aiPanel { position: sticky; top: 20px; background: var(--sand); border-color: #dcd5b8; }
@media (max-width: 760px) {
  body.shell { display: block; }
  .side { display: none; }
  body.shell main { padding: 22px 16px 110px; }
  .aiPanel { position: static; }
  .grid[style*="minmax(260px"] { grid-template-columns: 1fr !important; }
}
@media print {
  .side, .bnav, .tabs, .btn, .eyebrow, .aiPanel, .idle { display: none !important; }
  body.shell { display: block; background: #fff; }
  .card { border: 0; padding: 0; }
}
details.group { margin-top: 22px; }
details.group > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 10px; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary h2 { margin: 0; font-size: 22px; }
details.group > summary::after { content: "⌄"; color: var(--muted); margin-left: auto; transition: transform .2s; }
details.group:not([open]) > summary::after { transform: rotate(-90deg); }
