/* MagicMitten studio — calm app shell tinted in the brand (from booking/design/css/studio.css + the customer.css
   pieces the studio uses), plus the real app's states: loading, errors, dialogs, uploads, editors. */

.c-tools { display: flex; gap: 8px; align-items: center; }
.lid { width: 100%; max-width: 380px; height: auto; color: var(--emb-mid); overflow: visible; }
.lid-drop { fill: rgba(60, 25, 20, .16); filter: blur(10px); }
[data-theme="dark"] .lid-drop { fill: rgba(0, 0, 0, .55); }
.lid-s0 { stop-color: var(--lid-s0); } .lid-s1 { stop-color: var(--lid-s1); }
.lid-r0 { stop-color: var(--lid-r0); } .lid-r1 { stop-color: var(--lid-r1); }
.lid-bevel { stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.lid-ring-hi { stroke: var(--emb-hi); stroke-width: 1.2; }
.lid-ring-lo { stroke: var(--emb-lo); stroke-width: 1.2; }
.lid-text { fill: var(--lid-text); font-weight: 640; font-family: inherit; }
.lid-sheen { transform-box: view-box; transform-origin: 160px 160px; animation: sheen 14s linear infinite; opacity: .55; }
[data-theme="dark"] .lid-sheen { opacity: .16; }
@keyframes sheen { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.c-credit { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; color: var(--ink-3); padding-top: 18px; border-top: 1px solid var(--line); }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12px; font-weight: 640; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 520; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 15px; box-shadow: inset 0 1px 2px rgba(60, 30, 20, .05); transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.obol-line { width: 100%; height: auto; color: var(--ink-2); }
.box-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.box-status .st { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; }
.box-status .st-pending, .rq-hold .st-pending { background: color-mix(in srgb, var(--butter) 70%, transparent); color: var(--on-shade); }
[data-theme="dark"] .box-status .st-pending, [data-theme="dark"] .rq .st-pending { background: color-mix(in srgb, var(--butter) 18%, transparent); color: var(--ink); border: 1px dashed var(--butter-2); }
.box-status .st-declined { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line-2); }
.box-dl { display: grid; border-top: 1px solid var(--line); }
.box-dl > div { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.box-dl dt { font-size: 10.5px; font-weight: 640; letter-spacing: .045em; text-transform: uppercase; color: var(--ink-2); }
.card { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); padding: 22px 24px; display: grid; gap: 14px; align-content: start; }

.s-app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.s-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px;
  padding: 22px 16px 18px;
  background: color-mix(in srgb, var(--page-2) 80%, transparent); border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.s-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; }
.s-wm { height: 19px; width: auto; }
.s-brand-l { font-size: 10.5px; font-weight: 680; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; }
.s-nav { display: grid; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 540; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav-i:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink); }
.nav-i[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.nav-i .tag { margin-left: auto; }
.count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 680; font-style: normal; background: var(--btn); color: var(--btn-ink); }
.s-side-sec { display: grid; gap: 4px; }
.s-side-sec .eyebrow { padding: 0 10px 6px; }
.filt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 520; cursor: pointer; }
.filt input { width: 15px; height: 15px; accent-color: var(--ink); margin: 0; }
.filt .tag { margin-left: auto; height: 18px; font-size: 9.5px; padding: 0 5px; }
.s-side-foot { margin-top: auto; display: grid; gap: 14px; }
.me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.me b { display: block; font-size: 13.5px; font-weight: 620; }
.me span { display: block; font-size: 12px; color: var(--ink-2); }

.s-main { min-width: 0; display: flex; flex-direction: column; }
.s-view { padding: 0 32px 48px; }
.s-mtop, .s-tabs, .s-phone { display: none; }
.s-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 0 18px; }
.s-h1 { font-size: 28px; font-weight: 500; letter-spacing: -.032em; line-height: 1.1; margin-top: 6px; }
.s-bar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.s-bar-tools { display: flex; gap: 8px; padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 580; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.pager { display: inline-flex; gap: 6px; align-items: center; }
.pager .icon-btn { width: 40px; height: 40px; }

/* Status: always icon + text, never colour alone */
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 660; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.st .ic { width: 13px; height: 13px; stroke-width: 2; }
.who { display: inline-flex; align-items: center; gap: 7px; font-weight: 560; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 22px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-conf { background: var(--blush); }
.lg-pend { background: repeating-linear-gradient(135deg, var(--blush-2) 0 1.5px, transparent 1.5px 5px), var(--surface); border: 1.5px dashed var(--blush-2); }
.lg-buf { background: repeating-linear-gradient(90deg, var(--hatch) 0 1px, transparent 1px 4px); border: 1px solid var(--line-2); }
.lg-done { background: var(--blush); opacity: .45; }
.lg-decl { border: 1.5px dashed var(--line-2); }
.lg-off { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line-2) 4px 5px); border: 1px solid var(--line); }

/* Week calendar */
.cal { --hr: 52px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.cal-head, .cal-body { display: grid; grid-template-columns: 62px repeat(var(--days, 7), minmax(0, 1fr)); }
.cal-head { border-bottom: 1px solid var(--line); }
.cal-day { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 6px; padding: 12px 12px 10px; border-left: 1px solid var(--line); }
.cal-dn { font-size: 11px; font-weight: 640; letter-spacing: .045em; text-transform: uppercase; color: var(--ink-2); }
.cal-dd { font-size: 22px; font-weight: 460; letter-spacing: -.03em; }
.cal-day .today-pill { justify-self: end; }
.cal-who { grid-column: 1 / -1; display: flex; gap: 4px; min-height: 12px; }
.today-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 10.5px; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; }
.cal-day.is-today .cal-dd { font-weight: 640; }
.cal-body { position: relative; height: calc(var(--rows) * var(--hr) + 16px); padding-top: 8px; }
.cal-gut { position: relative; }
.cal-h { position: absolute; right: 10px; transform: translateY(-50%); margin-top: 8px; font-size: 11px; font-weight: 560; color: var(--ink-3); }
.cal-body .cal-gut { margin-top: -8px; }
.cal-col {
  position: relative; border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hr));
}
.cal-col.is-today { background-color: color-mix(in srgb, var(--blush) 14%, transparent); }
.off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }

.ev {
  position: absolute; left: 6px; right: 6px; z-index: 2; display: flex; flex-direction: column; gap: 3px;
  padding: 8px 10px; border-radius: 11px; overflow: hidden; font-size: 12px; line-height: 1.3;
  background: var(--sh); color: var(--on-shade); box-shadow: 0 1px 1px rgba(60, 30, 20, .06);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
a.ev:hover { transform: translateY(-2px); box-shadow: var(--sh-2); z-index: 3; }
.ev-t { font-weight: 640; font-size: 11.5px; }
.ev-notes { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 640; }
.ev-notes .ic { width: 13px; height: 13px; }
.ev-s { opacity: .85; }
.ev-who { font-size: 11px; font-weight: 600; opacity: .8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-short { padding: 6px 9px; gap: 2px; justify-content: center; }
.ev-short .ev-t { font-size: 11.5px; margin-right: 2px; }
.ev.has-buf { border-radius: 4px; }
.ev-pending {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sh2) 55%, transparent) 0 1.5px, transparent 1.5px 7px), var(--surface);
  color: var(--ink); border: 1.5px dashed var(--sh2); box-shadow: none;
}
.ev-done { opacity: .5; }
.ev-declined { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-2); box-shadow: none; }
.ev-declined .ev-n, .ev-declined .ev-s { text-decoration: line-through; text-decoration-thickness: 1px; }
.buf {
  position: absolute; left: 12px; right: 12px; z-index: 1; display: flex; align-items: center; padding: 0 8px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sh2) 60%, transparent) 0 1px, transparent 1px 5px);
  border: 1px solid color-mix(in srgb, var(--sh2) 70%, transparent); color: var(--ink-2);
  font-size: 10.5px; font-weight: 640; letter-spacing: .02em;
}
.buf span { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.buf .ic { width: 12px; height: 12px; }
.buf-pre { border-radius: 9px 9px 0 0; border-bottom: 0; }
.buf-post { border-radius: 0 0 9px 9px; border-top: 0; }
.now { position: absolute; left: -1px; right: 0; z-index: 4; border-top: 1.5px solid var(--copper); }
.now::before { content: ''; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.now span { position: absolute; right: 6px; top: -10px; font-size: 10.5px; font-weight: 700; color: var(--copper); background: var(--surface); padding: 0 4px; border-radius: 4px; }

/* Month (Google Calendar-style): timed bookings as dot + time + title; tap one for its details. */
.mc { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.mc-head, .mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc-head { border-bottom: 1px solid var(--line); }
.mc-head span { padding: 10px 0 8px; text-align: center; font-size: 11px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mc-grid { grid-auto-rows: minmax(122px, auto); }
.mc-cell { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px 6px 8px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.mc-cell:nth-child(7n + 1) { border-left: 0; }
.mc-cell:nth-child(-n + 7) { border-top: 0; }
.mc-cell:nth-last-child(7) { border-bottom-left-radius: 18px; }
.mc-cell:last-child { border-bottom-right-radius: 18px; }
.mc-cell.is-out { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.mc-num { align-self: center; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.mc-cell.is-out .mc-num { color: var(--ink-3); }
.mc-cell.is-today .mc-num { background: var(--btn); color: var(--btn-ink); }
.mc-evs { display: grid; gap: 2px; min-width: 0; }
.mc-ev { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; text-align: left; transition: background-color .25s; }
.mc-ev:hover, .mc-ev.is-open { background: color-mix(in srgb, var(--sh) 50%, transparent); }
.mc-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sh2); }
.mc-t { flex: none; font-size: 11.5px; font-weight: 640; color: var(--ink-2); }
.mc-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.mc-car { flex: none; width: 13px; height: 13px; margin-left: auto; color: var(--ink-3); }
.mc-ev.ev-pending { border: 1px dashed var(--sh2); }
.mc-ev.ev-pending .mc-dot, .mc-key.ev-pending .mc-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--sh2); }
.mc-ev.ev-done, .mc-key.ev-done { opacity: .55; }
.mc-ev.ev-declined .mc-n { text-decoration: line-through; color: var(--ink-3); }
.mc-ev.ev-declined .mc-dot, .mc-key.ev-declined .mc-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.mc-more { padding: 2px 6px; font-size: 11.5px; font-weight: 640; text-align: left; color: var(--ink-2); }
.mc-key { --sh2: var(--blush-2); display: inline-flex; justify-content: center; width: 14px; }
.legend li > .mc-car { margin: 0; }
.mc-pop {
  position: absolute; z-index: 30; top: 36px; width: 320px; display: grid; gap: 6px; padding: 10px 16px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2);
}
.mc-pop.pop-r { left: 8px; }
.mc-pop.pop-l { right: 8px; }
.mc-pop.pop-up { top: auto; bottom: 30px; }
.mc-pop-top { display: flex; justify-content: space-between; align-items: center; }
.mc-pop-sw { width: 16px; height: 16px; border-radius: 5px; background: var(--sh); border: 1.5px solid var(--sh2); }
.mc-pop-sw.ev-pending { background: transparent; border-style: dashed; }
.mc-pop-h { font-size: 23px; line-height: 1.15; }
.mc-pop-s { font-size: 13.5px; color: var(--ink-2); }
.mc-pop-dl { display: grid; gap: 2px; padding-top: 4px; }
.mc-pop-dl div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.mc-pop-dl dt { display: grid; place-items: center; }
.mc-pop-dl .ic { width: 16px; height: 16px; color: var(--ink-2); }
.mc-pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .s-app { display: block; }
  .s-side, .s-desk { display: none; }
  .s-mtop { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 64px; }
  .s-mtop .s-brand { padding: 0; }
  .s-phone { display: block; }
  .s-view { padding: 0 16px 28px; }
  .s-ph-head { padding: 6px 0 16px; }
  .s-h1 { font-size: 27px; }
  .s-tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0 16px 16px; padding: 3px;
    background: var(--sunk); border: 1px solid var(--line); border-radius: 14px;
  }
  .s-tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
  .s-tabs a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: var(--sh-1); }
  .s-tabs .ic { width: 16px; height: 16px; }
  .s-tabs a:not([aria-current]) .ic { display: none; }
  .s-tabs .count { margin: 0; min-width: 18px; height: 17px; font-size: 10.5px; }
  .mp { padding: 8px 4px 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
  .mp-head, .mp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .mp-head span { padding-bottom: 6px; text-align: center; font-size: 10.5px; font-weight: 660; color: var(--ink-3); }
  .mp-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 66px; padding: 3px 2px 5px; border-top: 1px solid var(--line); text-align: left; }
  .mp-cell[aria-pressed="true"] { background: color-mix(in srgb, var(--blush) 34%, transparent); border-radius: 10px; }
  .mp-num { align-self: center; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px; font-weight: 600; }
  .mp-cell.is-out .mp-num { color: var(--ink-3); }
  .mp-cell.is-today .mp-num { background: var(--btn); color: var(--btn-ink); }
  .mp-bar { display: block; padding: 0 3px; border: 1px solid transparent; border-radius: 4px; background: var(--sh); color: var(--on-shade); font-size: 9.5px; font-weight: 640; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mp-bar.ev-pending { background: transparent; border: 1px dashed var(--sh2); color: var(--ink); }
  .mp-bar.ev-done { opacity: .5; }
  .mp-bar.ev-declined { background: transparent; color: var(--ink-3); text-decoration: line-through; }
  .mp-more { font-size: 9.5px; font-weight: 640; color: var(--ink-2); padding-left: 3px; }
  .ph-req { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; margin-bottom: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
  .ph-req > span { display: grid; flex: 1; font-size: 12.5px; }
  .ph-req b { font-size: 14.5px; font-weight: 620; }
  .s-phone .legend { gap: 6px 14px; font-size: 11.5px; margin-bottom: 8px; }
}

/* Night vanity: quieter hatch so text on pending holds stays legible */
[data-theme="dark"] .ev-pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sh2) 26%, transparent) 0 1.5px, transparent 1.5px 9px), var(--surface); }
[data-theme="dark"] .buf { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sh2) 30%, transparent) 0 1px, transparent 1px 6px); }
[data-theme="dark"] .cal-col.is-today { background-color: color-mix(in srgb, var(--blush) 6%, transparent); }
[data-theme="dark"] .ev-done { opacity: .42; }

/* ---------- Sign in ---------- */
.s-login { min-height: 100vh; }
.lg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.lg-plate { display: grid; place-items: center; align-content: center; gap: 28px; background: color-mix(in srgb, var(--page-2) 45%, transparent); border-right: 1px solid var(--line); padding: 48px; }
.lid-login { max-width: 360px; }
.lg-form { display: grid; grid-template-rows: auto 1fr auto; padding: 22px 48px 28px; }
.lg-top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.lg-top .c-tools { margin-left: auto; }
.lg-body { align-self: center; width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 12px; }
.lg-body .form { margin-top: 14px; }
.lg-fine { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.lg-fine .ic { width: 15px; height: 15px; margin-top: 1px; }
.lg-credit { border-top: 0; padding-top: 0; }

/* ---------- Requests ---------- */
.s-ph-only { display: none; }
.rq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.rq-list { display: grid; gap: 14px; }
.rq {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 190px; gap: 22px; align-items: center; padding: 20px 22px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: box-shadow .45s, transform .45s;
}
.rq:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.rq.is-decided { opacity: .82; }
.rq-hold { display: grid; justify-items: center; align-content: center; gap: 8px; padding-right: 20px; border-right: 1px solid var(--line); align-self: stretch; text-align: center; }
.rq-hold > div { display: grid; font-size: 11.5px; line-height: 1.3; }
.rq-hold b { font-size: 15px; font-weight: 640; white-space: nowrap; }
.ring { width: 56px; height: 56px; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--butter-2); stroke-width: 6; stroke-linecap: round; }
.rq-body { display: grid; gap: 6px; min-width: 0; }
.rq-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.rq-ref { font-weight: 640; font-size: 12px; letter-spacing: .02em; }
.rq-ends { margin-left: auto; white-space: nowrap; }
.rq-name { font-size: 22px; font-weight: 500; letter-spacing: -.025em; display: flex; align-items: center; gap: 8px; }
.rq-svc { font-size: 14px; color: var(--ink-2); }
.rq-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin-top: 6px; font-size: 13px; }
.rq-dl > div { display: flex; gap: 8px; align-items: center; min-width: 0; }
.rq-dl dt { color: var(--ink-2); display: grid; place-items: center; width: 18px; }
.rq-dl .ic { width: 16px; height: 16px; }
.rq-act { display: grid; gap: 8px; }
.rq-act .btn { width: 100%; }
.btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.btn-link .ic { width: 16px; height: 16px; }
.rq-done { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; font-size: 13px; }
.rq-done .ic { width: 16px; height: 16px; margin-top: 2px; }
.empty { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 18px 22px; border-radius: 20px; border: 1.5px dashed var(--line-2); }
.empty b { font-size: 15.5px; font-weight: 600; }
.empty p { font-size: 13px; margin-top: 3px; }
.rq-side { display: grid; gap: 14px; position: sticky; top: 24px; }
.rq-mini { display: grid; gap: 4px; justify-items: start; font-size: 13px; }
.rq-mini b { font-size: 15px; font-weight: 600; }
.rq-side .fine b { color: var(--ink); }

/* ---------- Booking detail + notes ---------- */
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.bk-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tl { position: relative; display: grid; gap: 14px; }
.tl::before { content: ''; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 1px; background: var(--line-2); }
.tl-i { position: relative; display: grid; gap: 12px; padding: 0 0 0 46px; }
.nt-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-left: -46px; }
.nt-h .pan-sm, .nt-cust { position: relative; z-index: 1; width: 31px; height: 31px; flex: none; }
.nt-cust { display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.nt-cust .ic { width: 15px; height: 15px; }
.nt-h b { font-size: 14px; font-weight: 620; }
.nt-h .tag { margin-left: auto; }
.nt-text, .nt-file, .nt-photos, .nt-video, .chk { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.nt-text { padding: 14px 16px; font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.nt-file { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 12px 12px 14px; max-width: 520px; }
.nt-file > div { display: grid; font-size: 12.5px; min-width: 0; }
.nt-file b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pdf { display: grid; place-items: center; width: 46px; height: 54px; border-radius: 8px 14px 8px 8px; background: var(--blush); color: var(--on-shade); font-size: 11px; font-weight: 760; letter-spacing: .06em; }
.nt-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.nt-photos figure { display: grid; gap: 6px; }
.ph { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.ph svg { width: 100%; height: 100%; }
figcaption { font-size: 12px; color: var(--ink-2); padding: 0 2px; overflow-wrap: anywhere; }
.nt-video { padding: 10px; display: grid; gap: 8px; max-width: 560px; }
.vid { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.vid svg { width: 100%; height: 100%; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(251, 244, 238, .92); color: #45291D; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.play .ic { width: 22px; height: 22px; margin-left: 3px; }
.dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(30, 15, 20, .72); color: #fff; font-size: 12px; font-weight: 640; }
.chk { padding: 6px 14px; display: grid; max-width: 420px; }
.chk li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.chk li:last-child { border-bottom: 0; }
.chk input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.chk input:checked + label { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-2); }
.tl-i > .fine { margin-top: -4px; }
.composer { margin-top: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); overflow: hidden; }
.composer textarea { width: 100%; border: 0; background: transparent; padding: 16px 18px 8px; font-size: 14.5px; resize: vertical; min-height: 80px; }
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: var(--ink-3); }
.cmp-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cmp-vis { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; }
.cmp-vis .ic { width: 14px; height: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bk-side { display: grid; gap: 14px; position: sticky; top: 24px; }
.bk-side .box-status .st-confirmed { height: 28px; padding: 0 11px; border-radius: 999px; background: color-mix(in srgb, var(--mint) 70%, transparent); color: var(--on-shade); }
[data-theme="dark"] .bk-side .box-status .st-confirmed { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--ink); border: 1px solid var(--mint-2); }
.cnote { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- Team ---------- */
.tm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tm-list { display: grid; gap: 14px; }
.tm { gap: 16px; }
.tm-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pan-md { width: 46px; height: 46px; }
.tm-name { font-size: 20px; font-weight: 540; letter-spacing: -.02em; }
.tm-full { font-size: 14px; font-weight: 460; letter-spacing: 0; }
.tm-top > div { min-width: 0; }
.tm-top p { font-size: 13px; }
.role { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 660; letter-spacing: .04em; text-transform: uppercase; }
.role .ic { width: 13px; height: 13px; }
.role.is-owner { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.tm-row { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 460px; }
.wk span { display: grid; gap: 4px; justify-items: center; font-size: 11px; font-weight: 640; color: var(--ink-3); }
.wk i { display: block; width: 100%; height: 26px; border-radius: 8px; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px); border: 1px solid var(--line); }
.wk span.on { color: var(--ink); }
.wk span.on i { background: var(--sh); border-color: transparent; }
.tm-hrs { font-size: 14px; font-weight: 560; }
.tm-off { grid-template-columns: 1fr auto; align-items: center; }
.tm-off p:not(.eyebrow) { font-size: 13.5px; margin-top: 2px; }
.see { position: sticky; top: 24px; }
.see-lede { font-size: 18px; font-weight: 520; letter-spacing: -.02em; }
.see-l { display: grid; gap: 2px; }
.see-l li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.see-l .ic { width: 16px; height: 16px; margin-top: 2px; }
.see-l .n { color: var(--ink-2); }
.see-l .n .ic { color: #A3485F; }
[data-theme="dark"] .see-l .n .ic { color: #F2A7B8; }

@media (max-width: 1200px) and (min-width: 901px) {
  .rq { grid-template-columns: 140px minmax(0, 1fr); }
  .rq-act { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; }
  .rq-layout, .tm-layout, .bk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .s-bar { display: none; }
  .s-ph-only { display: block; }
  .ph-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .lg-wrap { grid-template-columns: minmax(0, 1fr); }
  .lg-plate { order: 2; padding: 26px; border-right: 0; border-top: 1px solid var(--line); gap: 16px; }
  .lid-login { max-width: 150px; }
  .lg-form { padding: 14px 18px 22px; gap: 24px; }
  .lg-body { align-self: start; }
  .rq-layout, .tm-layout, .bk { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rq { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .rq-hold { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; grid-template-columns: 44px 1fr; justify-items: start; text-align: left; align-items: center; }
  .ring { width: 44px; height: 44px; }
  .rq-ends { margin-left: 0; width: 100%; }
  .rq-name { font-size: 20px; }
  .rq-dl { grid-template-columns: minmax(0, 1fr); }
  .rq-act { grid-template-columns: 1fr 1fr; }
  .rq-act .btn-link, .rq-act .rq-done { grid-column: 1 / -1; }
  .empty { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .rq-side, .bk-side, .see { position: static; }
  .tl-i { padding-left: 40px; }
  .nt-h { margin-left: -40px; }
  .tl::before { left: 15px; }
  .nt-photos { gap: 6px; padding: 6px; }
  .cmp-vis { width: 100%; order: -1; margin: 0 0 4px; }
  .cmp-bar .btn-primary { margin-left: auto; }
  .tm-off { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .role { margin-left: 0; }
}
.rq-mini-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* ===== Real-app additions (beyond the mockup) ===== */
.boot { padding: 40px; text-align: center; color: var(--ink-2); }
.v-root { min-width: 0; }
.s-bar-l { min-width: 0; }
.crumb { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-err, .dlg-err, .cmp-err { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 560; color: #8A2F47; background: color-mix(in srgb, #F2A7B8 30%, transparent); border: 1px solid color-mix(in srgb, #C9607F 40%, transparent); }
[data-theme="dark"] :is(.form-err, .dlg-err, .cmp-err) { color: #FFD3DD; background: rgba(201, 96, 127, .18); }
.form-err::before, .dlg-err::before, .cmp-err::before { content: '!'; font-weight: 800; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-danger { background: #8A2F47; color: #FFF4F6; border: 1px solid #8A2F47; }
[data-theme="dark"] .btn-danger { background: #E79AAE; color: #2A161C; border-color: #E79AAE; }
.btn-danger:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.switch em { font-style: normal; }

/* Loading, error, toast */
.loading { display: flex; align-items: center; gap: 12px; padding: 48px 4px; color: var(--ink-2); font-size: 14px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.err-box b { font-weight: 620; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--page); font-size: 14px; font-weight: 560; box-shadow: var(--sh-2); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: #8A2F47; color: #FFF4F6; }
.toast .ic { width: 16px; height: 16px; }

/* Dialogs + lightbox */
.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); }
.dlg::backdrop, .lightbox::backdrop { background: rgba(30, 15, 20, .45); }
.dlg-f { display: grid; gap: 14px; padding: 18px 22px 20px; }
.dlg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-h { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; }
.dlg-b { display: grid; gap: 14px; }
.dlg-lede { font-size: 14.5px; }
.dlg-warn { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--butter) 45%, transparent); font-size: 13.5px; color: var(--ink); }
[data-theme="dark"] .dlg-warn { background: color-mix(in srgb, var(--butter) 14%, transparent); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.tmp-pw { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--sunk); }
.tmp-pw code { font-size: 18px; font-weight: 640; letter-spacing: .04em; overflow-wrap: anywhere; flex: 1; user-select: all; }
.shade-set { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.shade-set legend { font-size: 12px; font-weight: 640; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px; }
.shade-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13.5px; text-transform: capitalize; cursor: pointer; }
.shade-opt input { position: absolute; opacity: 0; }
.shade-opt:has(input:checked) { background: var(--btn); color: var(--btn-ink); border-color: var(--btn-edge); }
.shade-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.lightbox { width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 12px; border: 0; border-radius: 18px; background: #1E1215; color: #F5E5DD; }
.lightbox figure { display: grid; gap: 8px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: #D1B5AC; text-align: center; }
.lb-bar { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.lb-bar .icon-btn { background: #2F1E24; color: #F5E5DD; border-color: rgba(246, 226, 218, .18); }

/* Sidebar extras */
.s-nav .ic { width: 18px; height: 18px; }
[data-count] { display: contents; }
.me .icon-btn { margin-left: auto; width: 40px; height: 40px; }
.me > div { min-width: 0; }
.me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Calendar extras */
.mc-pop-day { font-size: 13px; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.mc-pop .mc-evs { gap: 4px; padding-bottom: 4px; }
.mc-pop:focus { outline: none; }
.mc-ev.ev-cancelled .mc-n, .mc-ev.ev-expired .mc-n { text-decoration: line-through; color: var(--ink-3); }
.mc-ev.ev-cancelled .mc-dot, .mc-ev.ev-expired .mc-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.mc-ev.ev-expired .mc-dot { box-shadow: none; border: 1.5px dotted var(--ink-3); }
.ev-cancelled, .ev-expired { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-2); box-shadow: none; }
.ev-cancelled .ev-n, .ev-expired .ev-n { text-decoration: line-through; text-decoration-thickness: 1px; }
.ev, .buf { left: calc(6px + (100% - 12px) * var(--l, 0) / var(--n, 1)); right: auto; width: calc((100% - 12px) / var(--n, 1) - 2px); }
.buf { left: calc(10px + (100% - 20px) * var(--l, 0) / var(--n, 1)); width: calc((100% - 20px) / var(--n, 1) - 2px); }
.ev .st { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.cal-empty { margin-top: 16px; }
.mp-bar.ev-cancelled, .mp-bar.ev-expired { background: transparent; color: var(--ink-3); text-decoration: line-through; }
.ag-card.ev-declined, .ag-card.ev-cancelled, .ag-card.ev-expired { background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; }
.ag-card.ev-declined b, .ag-card.ev-cancelled b, .ag-card.ev-expired b { text-decoration: line-through; }

/* Requests extras */
.rq-name a:hover, .rq-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
.ring-fg.is-low { stroke: var(--copper); }
.rq-minis { display: grid; gap: 14px; }
.rq-minis li + li { padding-top: 14px; border-top: 1px solid var(--line); }

/* Booking extras */
.bk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-acts .bk-cancel { grid-column: 1 / -1; justify-self: start; }
.cust-name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.cust-l { display: grid; gap: 4px; }
.cust-l li { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; }
.cust-l a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.cust-l .ic { width: 16px; height: 16px; color: var(--ink-2); }
.bk { grid-template-rows: auto 1fr; grid-template-areas: "main a" "main b"; }
.bk-main { grid-area: main; min-width: 0; }
.bk-a { grid-area: a; }
.bk-b { grid-area: b; align-self: start; }
.bk .bk-side { position: static; }
.field input, .field select { min-width: 0; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; }
.bk-edit .btn { justify-self: start; }
.tl-none { padding: 6px 0 4px; font-size: 14px; }
.nt-del { margin-left: auto; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.nt-del:hover { color: var(--ink); background: var(--surface-2); }
.nt-h .tag + .nt-del { margin-left: 8px; }
.nt-h .tag:has(+ .nt-del) { margin-left: auto; }
.nt-photos { max-width: 620px; }
.nt-photos .ph { display: block; width: 100%; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sunk); }
.nt-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nt-photos .ph:hover img { transform: scale(1.03); }
.nt-video video { width: 100%; max-height: 420px; border-radius: 10px; background: #1E1215; }
.nt-files { display: grid; gap: 8px; }
.nt-file { color: inherit; }
.nt-file:hover { box-shadow: var(--sh-2); }
.nt-file .pdf { font-size: 10px; }
.composer .cmp-chk, .composer .cmp-files, .composer .cmp-err { margin: 0 14px 10px; }
.cmp-items { display: grid; gap: 6px; margin: 6px 0 8px; }
.cmp-items li { display: flex; gap: 6px; align-items: center; }
.cmp-items input { flex: 1; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.cmp-items .icon-btn { width: 40px; height: 40px; }
.cmp-files { display: grid; gap: 8px; }
.cmp-file { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface-2); }
.cmp-file img, .cmp-file video, .cmp-file .pdf { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; }
.cmp-file .pdf { display: grid; place-items: center; }
.cmp-fi { display: grid; gap: 3px; min-width: 0; font-size: 12.5px; }
.cmp-fi b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-fi progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.cmp-fi progress::-webkit-progress-bar { background: var(--sunk); }
.cmp-fi progress::-webkit-progress-value { background: var(--blush-2); transition: width .2s; }
.cmp-fi progress::-moz-progress-bar { background: var(--blush-2); }
.cmp-pick { position: relative; cursor: pointer; }
.cmp-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: 0; }
.cmp-pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Team extras */
.tm.is-inactive { opacity: .7; }
.tm-edit { display: grid; gap: 10px; }
.tm-edit > summary { list-style: none; justify-self: start; width: fit-content; }
.tm-edit > summary::-webkit-details-marker { display: none; }
.tm-edit[open] > summary { background: var(--surface-2); }
.hr-form, .off-form { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.hr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.hr-day { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 560; cursor: pointer; }
.hr-day input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.hr-row select { min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-variant-numeric: tabular-nums; }
.hr-row:has(.hr-day input:not(:checked)) select { opacity: .4; }
.hr-form .btn, .off-form .btn { justify-self: start; }
.off-l, .login-l { display: grid; gap: 4px; }
.off-l li, .login-l li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--line); }
.off-l .icon-btn { margin-left: auto; width: 40px; height: 40px; }
.login-l .ic { width: 16px; height: 16px; color: var(--ink-2); }
.tm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.role.is-none { border-style: dashed; color: var(--ink-2); }

/* Services */
.sv-sw { width: 18px; height: 18px; border-radius: 6px; background: var(--sh); border: 1.5px solid var(--sh2); }

/* Account, outbox, menu */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; max-width: 980px; align-items: start; }
.acct .btn { justify-self: start; }
.note-bar { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-size: 13.5px; }
.note-bar .ic { margin-top: 1px; }
.ob-l { gap: 0; padding: 6px 20px; }
.ob-i { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ob-i:last-child { border-bottom: 0; }
.ob-b { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.ob-b b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ob-err { color: #8A2F47; font-size: 12.5px; }
[data-theme="dark"] .ob-err { color: #F2A7B8; }
.ob-t { display: grid; justify-items: end; gap: 2px; font-size: 12.5px; }
.ob-t a { text-decoration: underline; text-underline-offset: 3px; }
.ob-failed { color: #8A2F47; }
[data-theme="dark"] .ob-failed { color: #F2A7B8; }
.ob-skipped { color: var(--ink-3); }
.menu-l { gap: 0; padding: 6px 8px; }
.menu-l a, .menu-l button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 10px; font-size: 15px; font-weight: 560; text-align: left; border-bottom: 1px solid var(--line); }
.menu-l li:last-child button { border-bottom: 0; }
.menu-l a .ic:last-child { margin-left: auto; color: var(--ink-3); }
.empty-obol { max-width: 150px; }

@media (max-width: 1200px) and (min-width: 901px) {
  .bk { grid-template-areas: "a" "main" "b"; grid-template-rows: auto; }
  .acct { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .s-bar { display: grid; gap: 12px; padding: 4px 0 16px; }
  .s-bar-r { justify-content: flex-start; gap: 8px; }
  .s-bar-r .btn-soft { flex: 1 1 auto; }
  .pager { margin-left: 0; }
  .pager .icon-btn { width: 44px; height: 44px; }
  .pager .btn-sm { min-height: 44px; }
  .s-tabs { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: color-mix(in srgb, var(--sunk) 88%, transparent); }
  .seg button { min-height: 44px; }
  .mc-ev, .mp-cell { min-height: 44px; }
  .mp-cell { min-height: 64px; }
  .ph-req { color: inherit; }
  .bk-acts { grid-template-columns: 1fr 1fr; }
  .bk { grid-template-areas: "a" "main" "b"; grid-template-rows: auto; }
  .bk-acts .btn-sm { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .nt-del { min-height: 44px; }
  .hr-row { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; }
  .hr-row select { padding: 0 6px; }
  .acct { grid-template-columns: minmax(0, 1fr); }
  .ob-l { padding: 4px 14px; }
  .ob-i { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ob-t { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; }
  .err-box { grid-template-columns: auto 1fr; }
  .err-box .btn { grid-column: 1 / -1; justify-self: start; }
  .cmp-bar .btn { min-height: 44px; }
  .toast { bottom: 14px; }
  .lg-top .c-tools { margin-left: auto; }
  .lid { max-width: 196px; }
  .card { padding: 18px; }
  .form-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dlg-f { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; border-top-color: var(--line-2); }
  .nt-photos .ph:hover img { transform: none; }
}

/* ===== UX audit fixes (booking/UX-AUDIT.md, studio side) ===== */
/* Day agenda: on a phone under the month, on a laptop in the right column (F12) */
.agenda li.ag-none { display: block; padding: 6px 0; }
.ag-day { padding-top: 18px; }
.ag-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 660; letter-spacing: .045em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
ul.agenda { display: grid; gap: 8px; }
.agenda li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: start; }
.ag-t { display: grid; font-size: 13px; font-weight: 640; padding-top: 12px; }
.ag-t small { font-size: 11.5px; font-weight: 520; color: var(--ink-3); }
.ag-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.ag-card.ev-confirmed, .ag-card.ev-done { background: color-mix(in srgb, var(--sh) 55%, var(--surface)); }
[data-theme="dark"] .ag-card.ev-confirmed { background: color-mix(in srgb, var(--sh) 16%, var(--surface)); border-color: color-mix(in srgb, var(--sh) 40%, transparent); }
.ag-card.ev-pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sh2) 40%, transparent) 0 1.5px, transparent 1.5px 8px), var(--surface); border: 1.5px dashed var(--sh2); box-shadow: none; }
.ag-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ag-top b { font-size: 15px; font-weight: 620; }
.ag-top i { font-style: normal; font-size: 9.5px; font-weight: 640; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.ag-s { font-size: 13.5px; color: var(--ink-2); }
.ag-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; align-items: center; }
.ag-m .muted { display: inline-flex; align-items: center; gap: 4px; }
.ag-m .ic { width: 14px; height: 14px; }
li.ag-buf > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12px; font-weight: 560; color: var(--ink-2); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sh2) 45%, transparent) 0 1px, transparent 1px 5px); border: 1px dashed color-mix(in srgb, var(--sh2) 80%, transparent); }
li.ag-buf .ag-t { padding-top: 7px; color: var(--ink-3); font-weight: 560; }
li.ag-buf .ic { width: 14px; height: 14px; }
.ag-day { scroll-margin-top: 76px; }
.ag-day:focus { outline: none; }

/* F18: the H1 takes focus after every route change */
.s-h1:focus { outline: none; }
.s-h1:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

/* F12: Up next (today + tomorrow) above the month; the picked day's agenda beside it */
.up { margin-bottom: 18px; padding: 16px 20px; gap: 10px; }
.up-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.up-h { font-size: 12.5px; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.up-h .muted { text-transform: none; letter-spacing: 0; font-weight: 520; }
.up-l { display: grid; gap: 6px; margin-top: 8px; }
.up-i { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--sh) 32%, var(--surface)); transition: box-shadow .3s; }
.up-i:hover { box-shadow: var(--sh-1); }
.up-i.ev-pending { background: var(--surface); border: 1.5px dashed var(--sh2); }
[data-theme="dark"] .up-i { background: color-mix(in srgb, var(--sh) 12%, var(--surface)); }
[data-theme="dark"] .up-i.ev-pending { background: var(--surface); }
.up-t { display: grid; align-content: start; font-size: 13px; font-weight: 640; }
.up-t small { font-size: 11.5px; font-weight: 520; color: var(--ink-3); }
.up-b { display: grid; gap: 3px; min-width: 0; }
.up-n { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.up-n b { font-size: 14.5px; font-weight: 620; overflow-wrap: anywhere; }
.up-m { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; }
.up-m .muted { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.up-m .ic { flex: none; width: 14px; height: 14px; }
.up-none { font-size: 13px; margin-top: 6px; }
.cal-month { display: grid; gap: 20px; align-items: start; }
.cal-month .ag-day { padding-top: 4px; }
@media (min-width: 1280px) {
  .cal-month { grid-template-columns: minmax(0, 1fr) 300px; }
  .cal-month .ag-day { position: sticky; top: 24px; padding-top: 46px; }
}
@media (max-width: 600px) { .up-days { grid-template-columns: minmax(0, 1fr); gap: 12px; } .up { padding: 14px 16px; } }
button.mc-num { cursor: pointer; transition: background-color .25s; }
button.mc-num:hover { background: var(--surface-2); }
.mc-cell.is-sel { background: color-mix(in srgb, var(--blush) 18%, transparent); }
[data-theme="dark"] .mc-cell.is-sel { background: color-mix(in srgb, var(--blush) 8%, transparent); }

/* F11: a chip never spills: dot + time + car icon on line 1, the name on its own full-width line 2 (ellipsis) */
.mc-ev { flex-wrap: wrap; align-content: center; row-gap: 0; overflow: hidden; padding: 3px 6px; line-height: 1.3; }
.mc-n { flex: 1 0 100%; order: 5; min-width: 0; }
.mc-car { margin-left: auto; }

/* F13: "Show cancelled" toggle in the legend / above the phone month */
.lg-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; color: var(--ink); cursor: pointer; }
.lg-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.legend li:has(.lg-toggle) { margin-left: auto; }
.mp-tools { display: flex; justify-content: flex-end; margin: 0 0 6px; font-size: 13px; }
.mp-tools .lg-toggle { min-height: 44px; }

/* F14: week card — time + status on the first line, the name clamped to two lines */
.ev { padding-left: 7px; padding-right: 7px; }
.ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 5px; min-width: 0; }
.ev-top .st { gap: 3px; font-size: 10px; letter-spacing: .01em; }
.ev-top .st .ic { width: 12px; height: 12px; }
.ev-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-weight: 620; font-size: 13px; }
.ev-short .ev-n { -webkit-line-clamp: 1; }
.ev-s { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-s .ev-notes { margin-left: 4px; vertical-align: -2px; }

/* F11: 901-1200 px — the sidebar becomes an icon rail so the month gets the width */
@media (max-width: 1200px) and (min-width: 901px) {
  .s-app { grid-template-columns: 76px minmax(0, 1fr); }
  .s-side { padding: 18px 8px 14px; gap: 18px; align-items: center; }
  .s-side .s-brand { padding: 0; justify-content: center; }
  .s-side .s-brand-l { display: none; }
  .s-side .s-wm { width: 58px; height: auto; }
  .s-nav { justify-items: center; }
  .nav-i { position: relative; justify-content: center; width: 52px; min-height: 46px; padding: 0; }
  .nav-l, .filt-l, .me-l, .s-side-sec .eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-i .count { position: absolute; top: 1px; right: -2px; margin: 0; min-width: 18px; height: 17px; padding: 0 4px; font-size: 10.5px; }
  .s-side-sec { justify-items: center; }
  .filt { justify-content: center; padding: 0 4px; gap: 6px; }
  .me { flex-direction: column; padding: 8px 4px; }
  .me .icon-btn { margin: 0; }
  .s-view { padding: 0 24px 40px; }
}

/* F29 + phone/tablet (<= 900 px): readable chips, a 3-day grid, a full-width toast (F15) */
@media (max-width: 900px) {
  .mp-bar, .mp-more { font-size: 11px; line-height: 16px; }
  .cal { --hr: 56px; }
  .cal-head, .cal-body { grid-template-columns: 44px repeat(var(--days, 7), minmax(0, 1fr)); }
  .cal-day { padding: 10px 6px 8px; gap: 4px; grid-template-columns: auto 1fr; }
  .cal-day .today-pill { display: none; }
  .cal-h { right: 6px; font-size: 10.5px; }
  .ev { padding: 6px 7px; }
  .ev-top .st { text-transform: none; letter-spacing: 0; font-size: 10.5px; }
  .buf span { padding: 1px 3px; }
  .toast { left: 16px; right: 16px; max-width: none; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateY(20px); }
  .toast.is-on { transform: none; }
}

/* F30: cancelling is the last, quiet action on a booking */
.bk-cancel-row { display: flex; padding: 2px 4px; }
.btn-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.btn-quiet:hover { color: #8A2F47; }
[data-theme="dark"] .btn-quiet:hover { color: #F2A7B8; }
.btn-quiet .ic { width: 15px; height: 15px; }

/* F22: long email addresses wrap instead of widening the page */
.ob-b > span, .cust-l li, .cust-l a { min-width: 0; overflow-wrap: anywhere; }

/* F23: services as compact cards with Edit and up/down */
.sv-list { display: grid; gap: 10px; max-width: 820px; }
.sv { grid-template-columns: 18px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 18px; }
.sv-sw { width: 18px; height: 18px; border-radius: 6px; background: var(--sh); border: 1.5px solid var(--sh2); }
.sv-main { display: grid; gap: 2px; min-width: 0; }
.sv-name { font-size: 17px; font-weight: 560; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sv-main p { font-size: 13px; }
.sv-acts { display: flex; gap: 6px; align-items: center; }
.sv-acts .icon-btn { width: 40px; height: 40px; }
.sv-up .ic { transform: rotate(180deg); }
.sv-mv:disabled { opacity: .35; cursor: default; box-shadow: none; }
@media (max-width: 900px) {
  .sv { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px 12px; }
  .sv-acts { grid-column: 2 / -1; }
  .sv-acts .icon-btn { width: 44px; height: 44px; }
}

/* F25: the chosen date written out next to the native date field */
.field > .date-echo { font-size: 12.5px; font-weight: 560; letter-spacing: 0; text-transform: none; color: var(--ink-2); min-height: 16px; }

/* F03 / F17: warnings on Team cards and the temporary-password state */
.tag-warn { background: color-mix(in srgb, var(--butter) 60%, transparent); color: var(--on-shade); border-color: transparent; white-space: normal; height: auto; min-height: 20px; padding: 2px 7px; }
[data-theme="dark"] .tag-warn { background: color-mix(in srgb, var(--butter) 14%, transparent); color: var(--ink); border: 1px dashed var(--butter-2); }
.must-change { border-color: var(--butter-2); background: color-mix(in srgb, var(--butter) 30%, var(--surface)); }
[data-theme="dark"] .must-change { background: color-mix(in srgb, var(--butter) 10%, var(--surface)); }
.lg-notice { margin: 4px 0 0; }
