/* Health Touch NC brand: Health Touch Green #73B17E (accents), deeper green #3E7A4A
   (text and buttons, for readable contrast), Deep Teal Navy #1C4E72, Healing Sage #A2C5B0,
   Muted Lotus Pink #EAAFAF, Soft Gray #F5F5F5. */
:root {
  --green: #73b17e; --green-dk: #3e7a4a; --navy: #1c4e72; --sage: #a2c5b0; --pink: #eaafaf;
  --gray: #f5f5f5; --ink: #2d2d2d; --muted: #5e5e5e; --rule: #e3ede6; --tint: #e8f2ea;
  --warn-bg: #fbeaea; --warn: #7a3b3b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--gray); color: var(--ink); font: 16px/1.5 'Nunito Sans', Arial, Helvetica, sans-serif; padding-bottom: 84px; }
body.is-admin { padding-bottom: 24px; }
main { max-width: 560px; margin: 0 auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
body.is-wide main { max-width: 1080px; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: var(--green-dk); margin: 0; line-height: 1.15; }
h1 { font-size: 30px; } h2 { font-size: 23px; } h3 { font-size: 19px; margin-top: 12px; }
a { color: var(--navy); } a:hover { color: var(--green-dk); }
p { margin: 0; }
.hint { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }

.brand { background: #fff; display: flex; justify-content: center; padding: 16px 16px 12px; border-bottom: 4px solid var(--green); }
.brand img { display: block; height: auto; }
.bar { background: #fff; display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 6px; border-bottom: 4px solid var(--green); }
.bar h1 { font-size: 26px; }
.bar.admin { justify-content: space-between; padding: 10px 18px; }
.bar.admin span { font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); text-decoration: none; font-size: 28px; border-radius: 22px; }
.testbanner { background: #fff3c4; color: #5a4300; text-align: center; font-size: 13px; padding: 6px 10px; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--sage); display: flex; justify-content: center; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
.tabs a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--green-dk); }
.adminnav { background: #fff; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 12px; border-bottom: 1px solid var(--rule); }
.adminnav a { padding: 10px 12px; text-decoration: none; font-weight: 700; color: var(--navy); border-radius: 8px; min-height: 44px; }
.adminnav a:hover { background: var(--tint); }

.card { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.intro { display: flex; flex-direction: column; gap: 4px; }
.flash { border-radius: 10px; padding: 10px 14px; background: var(--tint); color: var(--navy); font-weight: 600; }
.flash.warn { background: #fff3c4; color: #5a4300; }
.flash.error { background: var(--warn-bg); color: var(--warn); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 700 16px 'Nunito Sans', Arial, sans-serif; text-decoration: none; cursor: pointer; gap: 6px; }
.btn.primary { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
.btn.primary:hover { background: #33673e; color: #fff; }
.btn.pink { background: var(--pink); border-color: var(--pink); color: var(--navy); }
.btn.outline { background: #fff; }
.btn.danger { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.small { min-height: 44px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form { display: flex; flex-direction: column; gap: 14px; }
form.inline { display: inline-flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 14px; color: var(--navy); padding: 0; }
.field > legend { margin-bottom: 8px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea {
  min-height: 48px; border: 1.5px solid var(--sage); border-radius: 10px; background: #fff; padding: 8px 12px; font: 16px 'Nunito Sans', Arial, sans-serif; color: var(--ink); width: 100%; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radio, .check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green-dk); margin: 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1.5px solid var(--sage); border-radius: 12px; padding: 4px; }
.seg a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; text-decoration: none; color: var(--navy); font-weight: 600; text-align: center; }
.seg a.on { background: var(--green-dk); color: #fff; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; min-width: 74px; min-height: 52px; border: 1.5px solid var(--sage); border-radius: 12px; background: #fff; color: var(--navy); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; }
.chip strong { font-size: 15px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal { background: #fff; border-radius: 14px; padding: 10px; }
.calhead { display: flex; align-items: center; justify-content: space-between; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; color: var(--navy); }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.dow { font-size: 12px; font-weight: 700; color: var(--muted); margin: 4px 0; }
.day { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 22px; text-decoration: none; color: var(--navy); font-weight: 600; }
.day:hover { background: var(--tint); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--green); }
.day.sel { background: var(--navy); color: #fff; }
.day.full { background: #e6e6e6; color: #8a8a8a; font-weight: 400; cursor: not-allowed; }
.day.full:hover { background: #e6e6e6; }
.day.off { color: #9a9a9a; text-decoration: line-through; font-weight: 400; }
.picked { font-weight: 700; color: var(--navy); font-size: 24px; line-height: 1.25; margin: 14px 0 4px; }
#times > legend, #end > legend { font-size: 20px; margin-bottom: 10px; }
details > summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink); min-height: 32px; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.time { min-height: 44px; border: 1.5px solid var(--sage); border-radius: 10px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; position: relative; }
.time.on, .time:has(input:checked) { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
label.time input { position: absolute; opacity: 0; pointer-events: none; }
label.time:focus-within { outline: 3px solid var(--green); outline-offset: 2px; }
.repeat, .group, .promo { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.promo { background: var(--tint); padding: 12px; }
.wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd label { position: relative; }
.wd input { position: absolute; opacity: 0; }
.wd span { display: flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 22px; border: 1.5px solid var(--sage); background: #fff; color: var(--navy); font-weight: 700; font-size: 13px; }
.wd input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.wd input:focus-visible + span { outline: 3px solid var(--green); }
.sticky { position: sticky; bottom: 76px; background: linear-gradient(transparent, var(--gray) 30%); padding-top: 12px; }
.sticky .btn { width: 100%; }
.rates { gap: 8px; }
.rates div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.rates div:last-child { border: 0; }
.rates strong { color: var(--navy); }

.welcome { font-size: 32px; }
.eyebrow-date { color: var(--muted); font-size: 14px; }
.bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bigbtn { background: #fff; border: 1.5px solid var(--sage); border-radius: 14px; padding: 14px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; color: var(--navy); text-decoration: none; font-weight: 700; }
.bigbtn.primary { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
.booking { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.booking.live { border: 1.5px solid var(--green); }
.booking.cancelled { opacity: .6; }
.booking > div:first-child, .bhead > div { display: flex; flex-direction: column; gap: 2px; }
.booking strong { color: var(--navy); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dk); }
.note { background: var(--gray); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1; }
.monthcard { flex-direction: row; justify-content: space-between; align-items: center; }
.monthcard strong { display: block; font-size: 20px; color: var(--navy); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 12px; }
.check { width: 72px; height: 72px; border-radius: 36px; background: var(--tint); color: var(--green-dk); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.notes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; } .kv dd { margin: 0; font-weight: 600; color: var(--navy); }
.datelist { margin: 0; padding-left: 20px; }
.datelist li.skip { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gray); color: var(--muted); }
.tag.ok { background: var(--tint); color: var(--green-dk); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.invoice { display: flex; flex-direction: column; gap: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 700; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; color: var(--navy); border: 0; }
.attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.attn li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
pre { white-space: pre-wrap; font-size: 12px; }
@media (max-width: 380px) { .times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
