/* Bookings page frame (frame.js): a left menu like the RYTE client portal, a bar along the bottom on phones, and
   light/dark colours. Loads after admin.css. */
:root[data-theme="dark"] {
  --bg: #0c0c10; --surface: #16161c; --ink: #f1f1f4; --muted: #8b8b97; --line: #2a2a33;
  --accent: #f1f1f4; --accent-ink: #0c0c10;
  --pick: #56a8ff; --pick-ink: #0c0c10; --pick-soft: rgba(86, 168, 255, .14); --pick-text: #8cc4ff;
  --soft: #1f1f27; --warn-bg: rgba(242, 181, 82, .14); --warn-ink: #f2c97a;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 14px 36px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="dark"] .btn-solid:hover { background: #d6d6dc; }
:root[data-theme="dark"] .cal-note { background: rgba(242, 181, 82, .12); color: #f2c97a; }
html, body { transition: background-color .3s, color .3s; }

body.framed { padding: 0; }
.wrap.framed { display: grid; grid-template-columns: 244px minmax(0, 1fr); max-width: none; min-height: 100dvh; margin: 0; transition: grid-template-columns .3s cubic-bezier(.32, .72, 0, 1); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 24px; padding: 26px 14px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.logo { padding: 0 12px; font: 800 30px/1 var(--body); letter-spacing: -.06em; }
.logo-mini { display: none; }
.side-toggle { margin-top: -4px; }
.side-toggle:hover { background: var(--soft); color: var(--ink); }
/* slim menu: icons only, for more room on smaller screens (the toggle at the top; remembered on this device) */
@media (min-width: 861px) {
  .wrap.framed.slim { grid-template-columns: 76px minmax(0, 1fr); }
  .slim .side { padding: 22px 10px 16px; align-items: center; }
  .slim .side-head { flex-direction: column; align-items: center; gap: 14px; }
  .slim .logo { padding: 0; }
  .slim .logo-full { display: none; }
  .slim .logo-mini { display: block; }
  .slim .side-toggle .ico { transform: scaleX(-1); }
  .slim .nav { width: 100%; }
  .slim .nav-btn { justify-content: center; padding: 0; }
  .slim .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .slim .nav-btn .count:not(:empty) { position: absolute; top: 3px; right: 6px; margin: 0; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; }
  .slim .side-bottom { width: 100%; }
  .slim .help, .slim .me-text { display: none; }
  .slim .me { flex-direction: column; gap: 8px; padding: 0; }
  .slim .me-tools { flex-direction: column; margin: 0; }
}
.logo small { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.nav { display: grid; gap: 4px; margin: 0; overflow: visible; }
.nav-btn { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: none; color: color-mix(in srgb, var(--ink) 72%, var(--muted)); font: 500 14.5px/1 var(--body); text-align: left; cursor: pointer; transition: background .25s, color .25s; }
.nav-btn:hover { background: var(--soft); }
.nav-btn[aria-pressed="true"] { background: var(--pick-soft); color: var(--pick-text); font-weight: 700; }
.nav-btn .count:not(:empty) { margin-left: auto; }
.side-bottom { display: grid; gap: 14px; margin-top: auto; }
.nav-setup { padding-top: 12px; border-top: 1px solid var(--line); }
.help { padding: 14px; border-radius: 18px; background: var(--soft); }
/* a group's heading and tabs (Bookings: Upcoming · Waitlist · Past; Settings: Your page · Services · Team) */
.subnav { margin: 4px 0 18px; }
.subnav[hidden] { display: none; }
.sub-head { margin-bottom: 12px; }
.group-title { margin: 0; font: 800 clamp(26px, 3vw, 32px)/1.1 var(--body); letter-spacing: -.035em; color: var(--ink); }
.sub-head .hint { margin: 4px 0 0; }
.sub-tabs { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: none; }
.sub-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 99px; background: none; font: 600 13.5px/1 var(--body); color: var(--muted); white-space: nowrap; cursor: pointer; }
.sub-tab:hover { color: var(--ink); }
.sub-tab[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.sub-tab .n { padding: 2px 7px; border-radius: 99px; background: var(--pick-soft); color: var(--pick-text); font-size: 11px; font-weight: 700; }
.sub-tab[aria-pressed="true"] .n { background: color-mix(in srgb, var(--surface) 20%, transparent); color: var(--surface); }
/* in Bookings the group heading names it, so the section's own title is for screen readers only */
/* Page titles (Home's greeting, Calendar, Bookings, Customers, Settings) are .group-title; a section inside a group
   (Waitlist, Past bookings, Your page…) has a 24px title under it. */
.help b { display: block; font-size: 14px; } .help p { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.help .help-legal { margin: 10px 0 0; font-size: 12px; } .help-legal a { color: inherit; }
.me { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.me-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; font-size: 13px; flex: none; }
.me-text { min-width: 0; } .me-text b { display: block; font-size: 14px; line-height: 1.2; } .me-text span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-tools { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.frame-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.frame-icon:hover { background: var(--soft); color: var(--ink); }
.frame-icon .ico { width: 18px; height: 18px; transition: rotate .5s var(--ease); } .frame-icon:hover .ico { rotate: -20deg; }

.main-col { min-width: 0; padding: 26px clamp(16px, 4vw, 44px) 80px; }
.inner { max-width: 760px; margin: 0 auto; }
.wrap.framed.wide .inner { max-width: none; } /* every section uses the whole width of the screen */
.mtop { display: none; }
/* "Show more" (Home's Today list, Bookings' Past): one look, inside a card or on the page. */
.btn-more { display: block; width: 100%; height: 40px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 700 13px/1 var(--body); color: var(--ink); cursor: pointer; transition: background .15s; }
.btn-more:hover { background: var(--soft); }
/* Date boxes in the app's own look (date-field.js): a button like the other fields, and a month to pick from. */
.df { position: relative; display: block; }
.df-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 170px; text-align: left; cursor: pointer; }
.df-btn .ico { width: 17px; height: 17px; color: var(--muted); } .df-text.empty { color: var(--muted); }
.df-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: 300px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0, 0, 0, .35); }
.df-mh { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .df-mh b { margin-right: auto; font-size: 15px; font-weight: 800; }
.df-arr { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); cursor: pointer; }
.df-arr:hover { color: var(--ink); } .df-arr .ico { width: 15px; height: 15px; }
.df-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; } .df-grid > span { padding-bottom: 4px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.df-d { height: 36px; border: 0; border-radius: 10px; background: none; font: 700 13px/1 var(--body); color: var(--ink); cursor: pointer; }
.df-d:hover { background: var(--soft); } .df-d.out { color: color-mix(in srgb, var(--muted) 50%, transparent); }
.df-d.today { box-shadow: inset 0 0 0 1.5px var(--pick); color: var(--pick-text); }
.df-d[aria-pressed="true"] { background: var(--ink); color: var(--surface); box-shadow: none; } .df-d:disabled { opacity: .3; cursor: default; background: none; }
.df-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.df-link { padding: 6px 4px; border: 0; background: none; font: 700 13px/1 var(--body); color: var(--pick-text); cursor: pointer; } .df-link:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) { .df-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; } }
/* The Booking page button: the same blue pill everywhere (top bar, Home, Your page). */
.btn-page { display: inline-flex; align-items: center; flex: none; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--pick); color: var(--pick-ink); font: 700 13px/1 var(--body); text-decoration: none; white-space: nowrap; transition: filter .2s; }
.btn-page:hover { filter: brightness(1.08); }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
/* the free trial's line, under the business name (frame.js trialHtml) */
.trial-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 18px; padding: 10px 12px 10px 16px;
  border-radius: 14px; background: color-mix(in srgb, #0276df 9%, var(--surface)); font-size: 14px; }
.trial-bar.ended { background: color-mix(in srgb, #b3261e 8%, var(--surface)); }
.trial-bar .btn[disabled] { opacity: .7; cursor: not-allowed; }
.trial-bar .soon { margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--soft, #f1f2f4); color: var(--muted, #60646c); }
.biz { display: flex; align-items: center; gap: 12px; min-width: 0; }
.biz i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--surface); font-style: normal; font-size: 13px; font-weight: 800; }
.biz b { display: block; font-size: 18px; letter-spacing: -.02em; }
.demo-note { display: block; color: var(--muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .page-top { flex-wrap: wrap; } .page-top > :first-child { flex: 1 1 100%; } /* the Booking page button: its own row, as on Home */
  .wrap.framed { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: auto 0 0 0; z-index: 20; height: auto; flex-direction: row; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .side .logo, .side .help, .side .me, .side-toggle { display: none; }
  .side-head { display: none; }
  .side-bottom { display: contents; }
  .nav { grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-setup { width: auto; flex: none; padding-top: 0; border-top: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 0 2px; border-radius: 12px; font-size: 10.5px; }
  .nav-btn[aria-pressed="true"] { background: none; }
  .nav-btn .count:not(:empty) { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; }
  .main-col { padding: 12px 16px 100px; }
  .mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .mtop .logo { padding: 0; font-size: 26px; }
  .page-top .biz b { font-size: 16px; }
  .toast { bottom: 80px; }
}

/* Team photos (photos.js): round, in the person's colour ring; initials when there's no photo */
.pic { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; color: #0d0d12; font-size: 13px; font-weight: 800;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pc); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.xs { width: 18px; height: 18px; font-size: 8px; box-shadow: none; } .pic.sm { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--pc); }
.pic.md { width: 40px; height: 40px; } .pic.lg { width: 48px; height: 48px; font-size: 16px; } .pic.xl { width: 72px; height: 72px; font-size: 22px; }
.home-who .pic.xs + i { display: none; } /* a photo replaces the colour square */
.team-row { align-items: center; } .team-row .svc-text { flex: 1; min-width: 0; }
.team-pic { position: relative; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; margin-right: 6px; }
.team-pic-edit { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.team-pic:hover .pic { filter: brightness(.92); }
.team-pic-remove { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.me-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; } .me-photo b { display: block; font-size: 16px; } .me-photo span { color: var(--muted); font-size: 13px; }

/* Team: "Takes bookings" switch and badge on each row, the price for the owner, and the Add person form (photo spot,
   two choice cards, login access, price line) */
.team-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px; background: var(--pick-soft); color: var(--pick-text); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.team-badge.free, .team-opt-tag.free { background: rgba(26, 138, 74, .12); color: #1a7a43; }
:root[data-theme="dark"] .team-badge.free, :root[data-theme="dark"] .team-opt-tag.free { color: #52c787; }
.team-row .svc-actions { align-items: center; }
.team-book { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.team-price { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; padding: 16px 20px; }
.team-price-sum { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.team-price-sum small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.team-price-what { flex: 1; min-width: 220px; margin: 0; color: var(--muted); font-size: 13.5px; } .team-price-what b { color: var(--ink); }

.team-form-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.team-form-top.with-pic { grid-template-columns: 76px 1fr 1fr; }
.team-new-pic { position: relative; width: 72px; height: 72px; padding: 0; border-radius: 50%; border: 1.5px dashed var(--line); background: var(--soft); color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; overflow: hidden; display: grid; place-items: center; line-height: 1.2; }
.team-new-pic:hover { border-color: var(--pick); color: var(--pick-text); }
.team-new-pic i { display: block; font-style: normal; font-size: 20px; font-weight: 500; }
.team-new-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-new-pic.has-pic { border-style: solid; } .team-new-pic.has-pic span { display: none; }
.team-book-q { margin: 20px 0 0; padding: 0; border: 0; }
.team-q { margin-bottom: 10px; padding: 0; font-weight: 800; font-size: 14.5px; }
.team-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-opt { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .25s cubic-bezier(.32,.72,0,1), background .25s; }
.team-opt:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 45%, transparent); }
.team-opt input { position: absolute; opacity: 0; pointer-events: none; }
.team-opt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--muted); transition: background .25s, color .25s; }
.team-opt-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-opt-text b { display: block; font-size: 14.5px; padding-right: 84px; } .team-opt-text span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; padding-right: 22px; }
.team-opt-tag { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; }
.team-opt-tick { position: absolute; bottom: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 50%, transparent); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.team-opt-tick svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.team-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--pick); background: var(--pick-soft); }
.team-opt:has(input:checked) .team-opt-ic { background: var(--pick); color: #fff; }
.team-opt:has(input:checked) .team-opt-tick { background: var(--pick); box-shadow: none; } .team-opt:has(input:checked) .team-opt-tick svg { opacity: 1; }
.team-opt:has(input:focus-visible) { outline: 2px solid var(--pick); outline-offset: 2px; }
.team-book-fields { margin-top: 16px; }
.team-login { margin-top: 16px; padding: 16px; border: 0; border-radius: 16px; background: var(--soft); }
.team-login legend { float: left; width: 100%; margin-bottom: 10px; font-weight: 700; }
.team-login .hint { clear: both; margin: 8px 0 0; }
.team-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.team-change { color: var(--muted); font-size: 13px; } .team-change b { color: var(--ink); }
.team-form-foot .actions { margin: 0; }
@media (max-width: 720px) {
  .team-choice { grid-template-columns: 1fr; }
  .team-form-top, .team-form-top.with-pic { grid-template-columns: 72px 1fr; } .team-form-top:not(.with-pic) { grid-template-columns: 1fr; }
  .team-form-top.with-pic > .field:last-child { grid-column: 1 / -1; }
  .team-book span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .team-opt, .team-opt-ic, .team-opt-tick, .team-opt-tick svg { transition: none; } }

/* Team: Add person and Roles folded into one bar each; tap to open */
.team-fold { margin-top: 14px; padding: 0; overflow: hidden; }
.team-fold > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; transition: background .2s; }
.team-fold > summary::-webkit-details-marker { display: none; }
.team-fold > summary:hover { background: var(--soft); }
.team-fold > summary:focus-visible { outline: 2px solid var(--pick); outline-offset: -2px; border-radius: inherit; }
.fold-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--pick-soft); color: var(--pick-text); flex: none; }
.fold-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fold-title { flex: 1; min-width: 0; } .fold-title b { display: block; font-size: 15.5px; }
.fold-title span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.team-fold[open] .fold-chev { transform: rotate(180deg); }
.team-fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold-body { padding: 4px 20px 18px; }
.team-fold .team-form { margin: 0; padding: 14px 0 0; box-shadow: none; background: none; }
.team-fold .team-form > h3 { display: none; } /* the fold already says Add person */
.team-fold + .team-price { margin-top: 14px; }
.team-cards + .team-price { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .fold-chev { transition: none; } }
