.ls-debug {
  display: block;
}

* {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"],
input,
textarea,
select {
  outline: none;
  -webkit-focus-ring-color: transparent;
}

::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-main);
}

#schedulerRoot {
  position: relative;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.legends-scheduler {
  position: relative;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(0,0,0,0.65) 0px,
      rgba(0,0,0,0.65) var(--time-rail-width),
      transparent var(--time-rail-width)
    );
  color: var(--text-main);
  font-family: Inter,system-ui,sans-serif;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ls-time-rail {
  position: sticky;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--time-rail-width);
  font-size: 12px;
  pointer-events: none;
  height: 100%;
  z-index: 40;
  background: linear-gradient(
      180deg,
      rgba(var(--bg-deep-rgb), 0.98),
      rgba(0,0,0,0.96)
    );
  backdrop-filter: blur(18px);
  touch-action: pan-y;
  overscroll-behavior: contain;
  opacity: 1;
  min-width: var(--time-rail-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(var(--accent-rgb), 0.15);
  box-shadow: 12px 0 28px rgba(0,0,0,0.8),
    inset -1px 0 0 rgba(var(--accent-rgb), 0.08);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.ls-time-tick {
  position: absolute;
  left: 12px;
  transform: translateY(-50%);
  color: rgba(var(--accent-rgb), 0.85);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-left: 16px;
}

.ls-column {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.ls-column-header {
  position: sticky;
  top: 0;
  height: 42px;
  background: linear-gradient(
      180deg,
      rgba(var(--bg-deep-rgb), 0.98),
      rgba(var(--bg-deep-rgb), 0.95)
    );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent-60);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  letter-spacing: .4px;
  z-index: 9;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  line-height: 42px;
  text-align: center;
  touch-action: pan-x;
  overscroll-behavior: contain;
  cursor: grab;
  gap: 8px;
  padding: 10px 14px;
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,.6),
    inset 0 -1px 0 rgba(var(--accent-rgb), .2);
  overflow: visible !important;
}

.ls-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(var(--accent-rgb), .9),
      transparent
    );
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .9);
  pointer-events: none;
}

.ls-resize {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(var(--accent-rgb), .65);
}

.ls-ghost {
  position: absolute;
  border-radius: 20px;
  background: linear-gradient(
      180deg,
      rgba(var(--accent-rgb), .35),
      rgba(var(--accent-rgb), .15)
    );
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.ls-dragguide {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
  border-top: 1px dashed rgba(255,255,255,0.7);
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,.9) 0,
    rgba(255,255,255,.9) 6px,
    transparent 6px,
    transparent 12px
  );
  display: none;
  transition: opacity .15s ease,
    box-shadow .15s ease;
  border-top-style: dashed;
}

.ls-dragguide.on-hour {
  background-image: repeating-linear-gradient(
    to right,
    rgba(var(--accent-rgb), .95) 0,
    rgba(var(--accent-rgb), .95) 6px,
    transparent 6px,
    transparent 12px
  );
  box-shadow: 0 0 14px rgba(255,255,255,.85);
  background: var(--success);
  height: 2px;
  border-top-color: var(--text-main);
}

.ls-dragtime {
  position: absolute;
  left: 12px;
  top: -12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--accent-100);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0,0,0,.55),
    0 0 0 1px rgba(var(--accent-rgb), .25);
  white-space: nowrap;
  width: calc(var(--time-rail-width) - 12px);
  pointer-events: none;
  transition: opacity .15s ease,
    transform .15s ease,
    background .2s ease;
  text-align: left;
  padding-left: 6px;
  padding-right: 6px;
  text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.35);
}

.ls-dragguide.on-hour .ls-dragtime {
  color: var(--bg-main);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), .75);
  background: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  padding: 6px 14px;
}

.ls-dragguide::before {
  content: "";
  position: absolute;
  left: 64px;
  right: 0;
  top: 0;
  border-top: 1px dashed rgba(255,255,255,.6);
  transform: translateY(-50%);
}

.ls-dragguide.on-hour::before {
  border-top-color: var(--accent-60);
}

.ls-drag.on-hour::before {
  border-top-color: var(--accent-60);
}

.ls-drag.on-hour .ls-dragtime {
  background: var(--accent-60);
  color: var(--bg-main);
}

.ls-drag {
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .15s ease;
}

.ls-drag.show {
  opacity: 1;
}

.ls-drag::before {
  content: "";
  position: absolute;
  left: 64px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 2px dashed rgba(255,255,255,.7);
}

.ls-undo {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  cursor: pointer;
}

.ls-dragguide.dragging {
  display: block;
}

.ls-dragguide.placed {
  border-top-color: var(--text-main);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.ls-dragguide.end {
  opacity: .85;
  border-top-color: rgba(180,180,180,0.7);
}

.ls-appt {
  position: absolute;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-deep-rgb), 0.70),
    rgba(var(--bg-deep-rgb), 0.90) 28%,
    var(--bg-deep) 65%,
    var(--bg-main) 100%
  );
  color: var(--bg-main);
  font-weight: 700;
  padding: 10px 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.35);
  touch-action: pan-x;
  transition: top .18s ease,
    height .18s ease,
    box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: grab;
  user-select: none;
  overflow: visible;
  pointer-events: auto !important;
  z-index: 1;
}

.ls-appt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
}

.ls-appt:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(0,0,0,.85),
    0 0 0 1px rgba(var(--accent-rgb), .45);
}

.ls-appt.dragging {
  transform: none;
  box-shadow: 0 28px 80px rgba(0,0,0,.9),
    0 0 0 2px rgba(var(--accent-rgb), .6);
  z-index: 999;
  cursor: grabbing;
}

.ls-appt .appt-client {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  text-align: center;
  padding: 0 14px;
}

.ls-appt .appt-service {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.75);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12),
    0 6px 14px rgba(0,0,0,0.35);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  display: inline-flex;
  align-items: center;
  text-overflow: clip;
  cursor: pointer;
  bottom: 20px;
  margin-bottom: 40px;
}

.ls-appt .appt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(0,0,0,.75);
}

.ls-appt .appt-status {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  display: none;
}

.ls-appt[data-state="confirmed"] .appt-status {
  color: var(--bg-main);
  background: linear-gradient(180deg,var(--success),var(--success));
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.4);
}

.ls-appt[data-state="pending"] .appt-status {
  color: var(--bg-main);
  background: var(--accent-60);
}

.ls-appt[data-state="cancelled"] {
  opacity: .45;
}

.iiiiiiiidont {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-main);
  color: var(--accent-100);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35),
    0 4px 10px rgba(0,0,0,.45);
  align-items: center;
  white-space: nowrap;
  width: max-content;
  max-width: max-content;
  transition: background .15s ease,
    color .15s ease,
    opacity .15s ease,
    transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.appt-time:active {
  transform: scale(.96);
}

.appt-time:focus {
  outline: none;
  background: rgba(0,0,0,.15);
}

.ls-appt .appt-meta > span:first-child {
  display: inline-block;
  padding: 6px 6px;
  border-radius: 12px;
  background: var(--text-main);
  color: var(--bg-main);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15),
    0 4px 10px rgba(0,0,0,.35);
}

.ls-appt .appt-meta > span:first-child:active {
  transform: scale(.96);
}

.ls-appt.is-dragging .appt-time {
  background: var(--text-main);
  color: var(--bg-main);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2),
    0 4px 10px rgba(0,0,0,.35);
}

.ls-appt.fade-time .appt-time {
  opacity: 0.35;
}

.ls-dragguide.fade {
  opacity: .35;
}

.ls-dragguide.end .ls-dragtime {
  opacity: .85;
  color: rgba(180,180,180,0.95);
}

.ls-dragguide,
.ls-dragtime {
  user-select: none;
}

.ls-appt.dragging .appt-time {
  background: var(--text-main);
  color: var(--bg-main);
  transform: translate(-50%, 14px);
  opacity: 0;
}

.appt-meta span:first-child {
  background: var(--bg-main);
  color: var(--accent-100);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.ls-appt.dragging .appt-meta span:first-child {
  background: var(--text-main);
  color: var(--bg-main);
}

.ls-duration-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ls-duration-sheet {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg,var(--bg-deep),var(--bg-main));
  border-radius: 22px 22px 0 0;
  padding: 18px 16px 22px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.8);
  animation: slideUp .25s ease;
}

@keyframes slideUp{



  from { transform: translateY(100%); }
  to   { transform: translateY(0); }



}

.ls-duration-title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-60);
  margin-bottom: 14px;
}

.ls-duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ls-duration-btn {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.15);
}

.ls-duration-btn.active {
  background: var(--accent-60);
  color: var(--bg-main);
  border-color: transparent;
}

.ls-duration-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.ls-duration-actions button {
  flex: 1;
  padding: 12px 0;
  border-radius: 14px;
  font-weight: 800;
}

.ls-duration-actions .cancel {
  background: var(--bg-surface);
  color: var(--text-main);
}

.ls-duration-actions .confirm {
  background: var(--accent-60);
  color: var(--bg-main);
}

.appt-service {
  cursor: pointer;
}

.ls-appt.is-dragging .appt-time,
.ls-appt.is-dragging .appt-back {
  transform: translateY(-8px);
  opacity: 0.6;
  z-index: 1;
}

.ls-appt.is-dragging .appt-main {
  z-index: 3;
}

.ls-appt.is-pending {
  pointer-events: none;
}

.ls-appt.is-pending .approval-overlay {
  pointer-events: auto;
}

.approval-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.approval-overlay button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
}

.ls-appt.accepted {
  animation: appt-accept-flash 420ms ease-out;
  filter: none;
  opacity: 1;
  cursor: grab;
}

@keyframes appt-accept-flash{



  0%   { box-shadow: 0 0 0 var(--success); }
  50%  { box-shadow: 0 0 0 3px var(--success); }
  100% { box-shadow: 0 0 0 var(--success); }



}

.appt-countdown {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 42px;
  font-weight: 700;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  margin: 0 !important;
  align-self: auto !important;
  justify-self: auto !important;
}

.appt-undo {
  position: absolute;
  top: -10px;
  right: -14px;
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 6;
  pointer-events: auto;
}

.appt-undo.visible {
  opacity: 1;
  transform: scale(1);
}

.ls-appt.confirmed,
.ls-appt[data-state="confirmed"] {
  box-shadow: none !important;
}

.ls-appt-overlay,
.ls-appt-check,
.ls-appt-countdown {
  pointer-events: none;
}

.ls-appt.tucking .appt-time,
.ls-appt.tucking .appt-back {
  transform: translateY(-8px) scale(0.96);
  opacity: 0.85;
  transition: transform 160ms ease,
    opacity 160ms ease;
  z-index: 1;
  background: var(--accent-60);
}

.ls-appt .appt-main {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
}

.ls-appt.appt-pending .appt-main {
  background: linear-gradient(
    180deg,
    var(--bg-raised-5) 0%,
    var(--bg-raised-4) 100%
  );
  pointer-events: none;
}

.ls-appt.appt-pending {
  pointer-events: none;
}

.appt-approval-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.appt-approval-overlay .approval-actions {
  display: flex;
  gap: 12px;
}

.appt-approval-overlay button {
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.appt-approval-overlay .approve {
  background: var(--success);
  color: #04140b;
}

.appt-approval-overlay .reject {
  background: var(--error);
  color: var(--text-main);
}

.ls-appt.conflict::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--error);
  z-index: 4;
  pointer-events: none;
}

.ls-appt.appt-success {
  animation: apptSuccessFlash 420ms ease-out;
}

@keyframes apptSuccessFlash{



  0%   { box-shadow: 0 0 0 rgba(0,0,0,0); }
  40%  { box-shadow: 0 0 0 4px var(--success); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0); }



}

.ls-scroller {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.ls-grid,
.ls-scroller {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.ls-appt.dragging .appt-back {
  transform: translateY(-10px);
  opacity: 0.55;
  filter: blur(0.5px);
  transition: transform 160ms ease,
    opacity 160ms ease,
    filter 160ms ease;
}

.ls-appt.dragging .appt-time-pill {
  transform: translateY(-14px);
  opacity: 0.65;
  transition: transform 160ms ease,
    opacity 160ms ease;
}

.ls-appt.dragging .appt-main {
  transform: none !important;
  transition: transform 160ms ease;
  scale: 1 !important;
  flex: 0 0 auto;
}

.ls-appt.reassigning .appt-back {
  height: auto;
  padding: 10px;
  transform: translateY(6px);
}

.reassign-title {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.35;
}

.reassign-list button {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 6px 10px;
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.reassign-list button:hover {
  background: rgba(255,255,255,0.2);
}

.reassign-overlay {
  margin-top: 6px;
}

.appt-undo svg.undo-ring {
  width: 48px;
  height: 48px;
  display: block;
}

.appt-undo .undo-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.appt-undo .undo-arrow,
.appt-undo .undo-check {
  width: 22px;
  height: 22px;
  display: block;
}

.appt-undo .undo-count {
  position: absolute;
  bottom: -14px;
  right: 0px;
  transform: translateX(-50%);
  font-size: 12px;
  pointer-events: none;
}

.appt-undo,
.appt-undo * {
  flex-shrink: 0;
}

.appt-undo .undo-arrow {
  color: var(--text-main);
}

.ls-appt .appt-back {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-deep-rgb), 0.35),
    rgba(var(--bg-deep-rgb), 0.45) 30%,
    var(--bg-deep) 70%,
    var(--bg-main) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
    0 10px 25px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 28px;
}

.ls-appt .appt-approval-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ls-appt.show-approval .appt-approval-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.appt-approval-actions {
  display: flex;
  gap: 12px;
  z-index: 30;
  filter: none !important;
  isolation: isolate;
}

.appt-accept {
  background: linear-gradient(var(--accent-100), var(--accent-60));
  color: var(--bg-surface);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.appt-reassign {
  background: var(--text-main);
  color: var(--bg-surface);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.ls-appt .appt-time {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--text-main);
  color: var(--bg-main);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 160ms ease, opacity 160ms ease;
  pointer-events: none;
  align-self: flex-end;
  margin-bottom: -10px;
  letter-spacing: .3px;
  cursor: pointer;
}

.ls-appt.show-approval .appt-time {
  transform: translate(-50%, 50%);
  z-index: 30;
  opacity: 1;
}

.ls-appt.show-approval .appt-service-pill {
  transform: translate(-50%, -80%);
  font-size: 14px;
  font-weight: 500;
  z-index: 30;
  opacity: 1;
}

.ls-appt .appt-reassign-menu {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  transform: none;
  z-index: 40;
  box-sizing: border-box;
  background: rgba(var(--bg-deep-rgb), 0.96);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appt-reassign-menu button {
  background: var(--bg-raised-5);
  width: 100%;
  box-sizing: border-box;
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 500;
}

.appt-reassign-menu button:hover {
  background: var(--bg-raised-6);
}

.appt-approval-actions * {
  filter: none !important;
}

.appt-accept,
.appt-reassign {
  transform: translateZ(0);
  will-change: transform;
}

@keyframes accept-glow{


  0% {
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }
  35% {
    box-shadow:
      0 0 26px rgba(var(--accent-rgb), 0.9),
      inset 0 1px 0 rgba(255,255,255,0.6);
  }
  100% {
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }


}

.ls-appt.accepted-glow {
  animation: accept-glow 520ms ease-out;
}

.ls-appt.reassign-open .appt-back,
.ls-appt.reassign-open .appt-time,
.ls-appt.reassign-open .appt-approval-layer {
  opacity: 1;
  pointer-events: auto !important;
}

.ls-appt.reassign-open {
  pointer-events: auto;
  visibility: visible;
}

.appt-reassign-menu .reassign-title {
  color: var(--accent-60);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.ls-appt.reassign-open .appt-reassign-menu {
  visibility: visible;
  pointer-events: auto;
}

@keyframes reassignGlow{


  0%   { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  40%  { filter: drop-shadow(0 0 14px rgba(255,255,255,0.9)); }
  100% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }


}

.ls-appt.reassigned-glow {
  animation: reassignGlow 420ms ease-out;
}

@keyframes approval-accept-glow{


  0% {
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      inset 0 0 0 rgba(var(--accent-rgb), 0);
  }

  35% {
    box-shadow:
      0 0 36px rgba(var(--accent-rgb), 0.95),
      inset 0 0 0 rgba(var(--accent-rgb), 0);
  }

  100% {
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      inset 0 0 0 rgba(var(--accent-rgb), 0);
  }


}

.ls-appt.accepted-glow .appt-approval-layer {
  animation: approval-accept-glow 520ms ease-out;
}

.ls-appt.accepted .appt-back {
  background: linear-gradient(
    180deg,
    var(--accent-60) 0%,
    var(--accent-35) 100%
  );
}

.reassign-line {
  font-size: 13px;
  color: var(--accent-60);
}

.reassign-strong,
.reassign-service {
  color: var(--text-main);
  font-weight: 700;
}

.reassign-service {
  letter-spacing: 0.2px;
}

.reassign-time {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

.ls-appt.inactive {
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.45),
    rgba(var(--accent-rgb), 0.55) 28%,
    var(--bg-deep) 65%,
    var(--bg-main) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
    0 10px 25px rgba(0,0,0,0.45);
}

.ls-appt.inactive.admin-inactive {
  pointer-events: auto;
}

.ls-appt.inactive:not(.admin-inactive) .appt-approval-layer {
  pointer-events: auto;
}

.ls-appt.tap-confirmed {
  outline: 2px solid lime;
}

.ls-timeline-marker {
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.ls-timeline-marker::before,
.ls-timeline-marker::after {
  content: "";
  flex: 1;
  border-top: 1px dashed rgba(var(--accent-rgb), .45);
  margin: 0 12px;
}

.ls-timeline-marker span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  color: rgba(var(--accent-rgb), .85);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.ls-timeline-marker > span {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(var(--accent-rgb), 0.75);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.ls-timeline-marker-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(var(--accent-rgb), 0.75);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.ls-dragguide.hold {
  border-top: 2px dashed var(--text-main);
  opacity: 0.85;
}

.ls-dragguide.hold .ls-dragtime {
  background: var(--text-main);
  color: var(--bg-main);
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.ls-appt .appt-countdown {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: rgba(0,0,0,0.78);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 10px rgba(0,0,0,0.45);
  opacity: 0.95;
  pointer-events: none;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  transition: font-size 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.appt-countdown.warning {
  color: var(--accent-60);
  background: rgba(var(--accent-rgb), 0.85);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6),
    0 2px 10px rgba(0,0,0,0.8);
}

.appt-countdown.pulse {
  animation: countdownPulse 1.2s ease-in-out infinite;
}

@keyframes countdownPulse{


  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }


}

@keyframes countdown-pulse{


  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }


}

.ls-provider-name {
  font-weight: 600;
  color: var(--accent-80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.ls-provider-menu-btn {
  background: transparent;
  border: none;
  color: rgba(var(--accent-rgb), .8);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.ls-provider-menu-btn:active {
  color: var(--text-main);
}

.ls-provider-menu {
  position: absolute;
  top: 100%;
  right: 8px;
  margin-top: 6px;
  min-width: 160px;
  background: rgba(var(--bg-deep-rgb), 0.95);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
  display: none;
  z-index: 9999;
  padding: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease,
              transform .15s ease;
}

.ls-provider-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ls-provider-menu button {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
}

.ls-provider-menu button:hover {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-60);
}

.appt-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@keyframes countdownPulse{


  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }


}

.appt-time.countdown-mode {
  font-weight: 800;
}

.appt-time.range-mode {
  background: var(--text-main);
  color: var(--bg-main);
}

.appt-time.pulse {
  animation: pulseGlow 1.2s ease-in-out infinite;
}

.appt-time.urgent {
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.9);
}

.appt-time.in-chair {
  background: var(--bg-main);
  color: var(--accent-60);
  z-index: 1;
}

.appt-time.in-chair::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: chairDots 2.4s steps(4, end) infinite;
  color: rgba(var(--accent-rgb), 0.65);
  margin-left: 1px;
}

@keyframes chairDots{


  0%   { content: " "; }
  25%  { content: " ."; }
  50%  { content: " .."; }
  75%  { content: " ..."; }
  100% { content: " "; }


}

.ls-appt.inactive .appt-back {
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.35),
    rgba(var(--accent-rgb), 0.45) 30%,
    var(--bg-deep) 70%,
    var(--bg-main) 100%
  );
}

.ls-appt.inactive .appt-service {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.82),
    rgba(0,0,0,0.9)
  );
  color: var(--accent-60);
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12),
    0 6px 14px rgba(0,0,0,0.35);
}

.ls-appt.inactive .appt-client {
  color: var(--text-main);
}

.ls-appt.other-provider {
  background: linear-gradient(
  180deg,
  rgba(var(--bg-deep-rgb), 0.35) 0%,   
  rgba(var(--bg-deep-rgb), 0.45) 28%,     
  var(--bg-deep) 65%,                 
  var(--bg-main) 100%
);
  box-shadow: 0 18px 45px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.35);
  opacity: 0.4;
  transition: opacity 220ms ease;
}

.ls-appt.other-provider .appt-back {
  background: linear-gradient(
    180deg,
    rgba(var(--bg-deep-rgb), 0.35) 0%,
    rgba(var(--bg-deep-rgb), 0.45) 30%,
    var(--bg-deep) 70%,
    var(--bg-main) 100%
  );
}

.ls-appt.other-provider .appt-service {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.75);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12),
    0 6px 14px rgba(0,0,0,0.35);
  bottom: 20px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  display: inline-flex;
  align-items: center;
  text-overflow: clip;
  cursor: pointer;
  margin-bottom: 40px;
}

.ls-appt.other-provider .appt-client {
  color: var(--text-main);
}

.ls-appt.other-provider.is-visible {
  opacity: 1;
}

.appt-complete {
  background: var(--success);
  color: var(--text-main);
}

.appt-delete {
  background: var(--error);
  color: var(--text-main);
}

.appt-deleting {
  position: absolute;
  inset: 0;
  background: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: opacity 160ms ease;
}

.appt-deleting.visible {
  opacity: 1;
}

.deleting-pill {
  background: var(--bg-main);
  color: var(--error);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.ls-day-scroll-pill {
  position: fixed;
  margin-top: 40px;
  right: 16px;
  transform: translateY(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.85);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.ls-shop-closed {
  position: absolute;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
      -45deg,
      rgba(var(--accent-rgb), 0.04),
      rgba(var(--accent-rgb), 0.04) 6px,
      rgba(0, 0, 0, 0.25) 6px,
      rgba(0, 0, 0, 0.25) 12px
    );
  box-shadow: inset 0 6px 10px rgba(0,0,0,0.7),
    inset 0 -6px 10px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 0;
}

.ls-shop-closed.overnight {
  background: repeating-linear-gradient(
      -45deg,
      rgba(var(--accent-rgb), 0.06),
      rgba(var(--accent-rgb), 0.06) 6px,
      rgba(0, 0, 0, 0.35) 6px,
      rgba(0, 0, 0, 0.35) 12px
    );
}

.ls-grid {
  z-index: 1;
}

.ls-collapsed-past-container {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.65)
  );
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.6);
  max-height: 180px;
  top: 42px !important;
  z-index: 6 !important;
}

.ls-collapsed-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.85);
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85) !important;
}

.ls-collapsed-stack .ls-appt {
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-deep-rgb), 0.9),
    rgba(var(--bg-deep-rgb), 0.9)
  );
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  position: relative;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  width: auto !important;
  max-width: 360px !important;
  margin-left: calc(var(--time-rail-width, 96px) + 12px) !important;
  margin-right: 12px !important;
}

.ls-collapsed-stack .appt-time {
  opacity: 0.6;
  font-size: 12px;
}

.ls-collapsed-past-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--time-rail-width, 96px);
  background: rgba(var(--bg-deep-rgb), 0.95);
  z-index: 1;
}

.ls-collapsed-stack .appt-back {
  position: relative;
}

.ls-collapsed-stack {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 12px;
  align-items: flex-start !important;
}

.ls-collapsed-stack .ls-appt + .ls-appt {
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  padding-top: 10px;
}

.ls-collapsed-stack .appt-client {
  font-size: 14px;
  font-weight: 600;
}

.ls-collapsed-stack .appt-service {
  font-size: 12px;
  opacity: 0.8;
}

.ls-history-sheet {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ls-history-panel {
  max-height: 78vh;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
}

.ls-history-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-deep-rgb), 0.98),
    rgba(var(--bg-deep-rgb), 0.92)
  );
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
}

.ls-history-close {
  opacity: 0.75;
}

.ls-history-close:hover {
  opacity: 1;
}

.ls-history-list {
  padding: 8px 10px 16px;
}

.ls-history-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  margin: 8px 0;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(0,0,0,0.35)
  );
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.ls-history-item.interactive {
  cursor: pointer;
}

.ls-history-item.interactive:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.ls-history-item.interactive:active {
  transform: scale(0.985);
}

.ls-history-item .history-client {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.ls-history-item .history-meta {
  font-size: 12px;
  opacity: .85;
}

.ls-history-item .history-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: .75;
}

.ls-history-item + .ls-history-item {
  margin-top: 10px;
}

.ls-appt .appt-time,
.ls-appt .appt-time-pill {
  bottom: 6px;
}

.ls-appt .appt-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.ls-appt .appt-service-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent-80);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.ls-appt.show-approval .appt-time,
.ls-appt.show-approval .appt-service-pill {
  opacity: 0.75;
}

.appt-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: visible;
}

.appt-service-pill {
  position: absolute;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 14px;
  top: 0;
  transform: translate(50%, -50%);
  background: linear-gradient(
      180deg,
      var(--bg-deep),
      var(--bg-elevated)
    );
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08),
    0 4px 10px rgba(0,0,0,.5);
}

.appt-center {
  position: absolute;
  top: 36px;
  bottom: 44px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  inset: 0;
  text-align: center;
  flex-direction: column;
  gap: 6px;
}

.appt-client {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-appt[style*="height:"] .appt-center {
  min-height: 0;
}

.ls-appt.dragging .appt-service-pill {
  transform: translate(50%, -14px);
  opacity: 0;
}

.ls-appt.appt-pending,
.ls-appt[data-state="pending"] {
  pointer-events: none;
  opacity: 0.85;
}

.ls-appt.accepted,
.ls-appt[data-state="confirmed"] {
  box-shadow: none !important;
}

.ls-appt.appt-complete {
  background: var(--success);
  color: var(--text-main);
}

.ls-appt .appt-time.range-mode {
  background: var(--text-main);
  color: var(--bg-main);
}

.ls-appt .appt-time.countdown-mode {
  font-weight: 800;
}

.ls-appt .appt-time.urgent {
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.9);
}

.ls-appt .appt-time.in-chair {
  background: var(--bg-main);
  color: var(--accent-60);
}

.ls-appt .appt-time.pulse {
  animation: pulseGlow 1.2s ease-in-out infinite;
}

.ls-appt .appt-countdown.warning {
  color: var(--accent-60);
  background: rgba(var(--accent-rgb), 0.85);
}

.ls-appt .appt-countdown.pulse {
  animation: countdownPulse 1.2s ease-in-out infinite;
}

.ls-appt.appt-deleting .appt-deleting {
  opacity: 1;
}

.ls-collapsed-past-trigger {
  position: fixed;
  top: var(--grid-top-inset, 40px) !important;
  left: 0;
  right: 0;
  width: 100vw;
  height: 32px;
  z-index: 2 !important;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), .22),
    rgba(0,0,0,.35)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(var(--accent-rgb), .35);
  color: var(--accent-80);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ls-collapsed-past-trigger svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.ls-time-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.65),
    rgba(var(--accent-rgb), 0.08)
  );
  opacity: 0.6;
  pointer-events: none;
  animation: railGlow 4s ease-in-out infinite alternate;
}

.ls-time-tick.minor {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
}

@keyframes railGlow{


  from { opacity: .4; }
  to   { opacity: .85; }


}

.ls-time-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0,0,0,.75) 0%,
      transparent 8%,
      transparent 92%,
      rgba(0,0,0,.75) 100%
    );
  pointer-events: none;
}

.ls-provider-menu-btn:hover {
  color: var(--accent-100);
}

.ls-dragguide.start .ls-dragtime {
  color: var(--text-main);
  background: rgba(0,0,0,0.65);
}

.appt-services {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.appt-service-line {
  font-size: 15px;
  line-height: 1.2;
  word-break: break-word;
  color: var(--accent-80);
  font-weight: 500;
}

.appt-total-duration {
  margin-top: 6px;
  font-size: 18px;
  opacity: .75;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: .02em;
}

.appt-name-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-subtle));
  color: var(--accent-80);
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  white-space: nowrap;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scm-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  transition: .25s;
}

.scm-overlay.open {
  opacity: 1;
}

.scm-modal {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 6px 18px;
  box-sizing: border-box;
  background: transparent;
  height: auto;
  max-height: none;
  overflow: visible;
}

.scm-overlay.open .scm-modal {
  transform: scale(1);
}

.scm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 26px;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 14px;
  padding: 4px 4px 14px;
}

.scm-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.scm-label {
  font-size: 12px;
  letter-spacing: .14em;
  margin-bottom: 10px;
  opacity: .7;
  text-transform: uppercase;
}

.scm-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overflow-y: hidden;
  padding: 8px 2px;
}

.scm-card {
  min-width: 90px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  flex: 0 0 auto;
  border: 1px solid var(--bg-raised-5);
  scroll-snap-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scm-card.active {
  background: linear-gradient(180deg,var(--accent-80),var(--accent-60));
  color: var(--bg-main);
  border-color: var(--accent-60);
  box-shadow: 0 0 0 2px rgba(202,165,92,.25);
}

.scm-card.input input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
}

.scm-meta {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
}

.scm-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.scm-footer button {
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.scm-confirm {
  background: var(--accent-80);
}

.ls-hold-guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-top: 2px dashed rgba(var(--accent-rgb), 0.9);
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.5);
  background: var(--accent-100);
}

.ls-scheduler-surface {
  position: relative;
}

.scm-carousel::-webkit-scrollbar {
  display: none;
}

.scm-add-card {
  min-width: 110px;
  border: 2px dashed var(--bg-raised-5);
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.scm-add-card:hover {
  border-color: var(--accent-60);
  color: var(--accent-60);
}

.create-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 14px;
  border: 1px solid var(--bg-raised-5);
  background: linear-gradient(
    180deg,
    var(--bg-subtle),
    var(--bg-deep)
  );
  color: var(--text-main);
  outline: none;
  transition: border .2s,
  box-shadow .2s;
  height: 50px;
  box-sizing: border-box;
}

.create-input::placeholder {
  color: var(--text-tertiary);
}

.create-input:focus {
  border-color: var(--accent-60);
  box-shadow: 0 0 0 2px rgba(202,165,92,.25);
}

.scm-close {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.scm-service-name {
  font-size: 16px;
  font-weight: 500;
}

.scm-service-duration {
  font-size: 13px;
  opacity: .6;
  margin-top: 2px;
}

.scm-close:active {
  transform: scale(.9);
}

.provider-more {
  max-height: 0;
  overflow: hidden;
  transition: .25s;
}

.provider-more.open {
  max-height: 400px;
}

.client-suggestions {
  margin-top: 6px;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bg-raised-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-suggestion {
  padding: 6px 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--bg-elevated);
  cursor: pointer;
  border-radius: 10px;
}

.client-suggestion:last-child {
  border-bottom: none;
}

.client-suggestion:hover {
  background: var(--bg-elevated);
}

.client-name {
  font-weight: 500;
}

.client-phone {
  font-size: 13px;
  opacity: .6;
}

.match {
  color: var(--accent-60);
  font-weight: 600;
}

.datetime-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.datetime-box {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--bg-raised-5);
  background: linear-gradient(
    180deg,
    var(--bg-subtle),
    var(--bg-deep)
  );
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: .2s;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.datetime-box:hover {
  border-color: var(--accent-60);
}

.book-btn {
  width: 100%;
  padding: 20px;
  font-size: 16px;
  border-radius: 14px;
  border: none;
  background: var(--accent-60);
  color: var(--bg-main);
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 12px 28px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.35);
  transition: .15s;
  margin-top: 8px;
  height: 48px;
}

.book-btn:active {
  transform: scale(.97);
}

#schedulerBlur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 64px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 80;
  inset: 0;
}

#schedulerBlur.open {
  opacity: 1;
  pointer-events: auto;
}



:root {
  --legends-footer-safe: 78px;
}

#schedulerWrapper {
  position: relative;
  overflow: hidden;
}

.scm-book {
  width: 100%;
  margin-top: 10px;
}


.scm-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}

.client-suggestion .match {
  color: var(--accent-80);
  font-weight: 600;
}

.filter-modal {
  display: flex;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto;
  gap: 16px;
  padding: 18px;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  min-height: 300px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 11px;
  letter-spacing: .12em;
  opacity: .7;
  text-transform: uppercase;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.filter-chip.active {
  background: var(--accent-80);
  color: var(--bg-main);
}

.filter-date {
  height: 38px;
  border-radius: 8px;
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main);
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.filter-actions button {
  flex: 1;
  height: 42px;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.filter-reset {
  background: var(--bg-raised-4);
  color: var(--text-main);
}

.filter-apply {
  background: var(--accent-80);
  color: var(--bg-main);
}

.scm-section,
.scm-carousel,
.datetime-row,
.filter-row {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


.scm-section-group {
  margin: 0;
  padding: 10px 0;
}

.client-input-row {
  display: flex;
  gap: 10px;
}

.scm-client-input {
  flex: 2;
}

.scm-client-phone {
  flex: 1;
}

.scm-client-carousel {
  position: relative;
  z-index: 5;
  padding-top: 8px;
  padding-bottom: 8px;
}

.client-pill {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all .18s ease;
  scroll-snap-align: center;
}

.client-pill:hover {
  background: var(--bg-elevated);
}

.client-pill.active {
  background: linear-gradient(
    180deg,
    var(--accent-80),
    var(--accent-60)
  );
  color: var(--bg-main);
  border: none;
}

.client-pill.recent {
  border: 1px solid rgba(var(--accent-rgb), .4);
}

.client-pill-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.client-pill-phone {
  font-size: 12px;
  opacity: .65;
  letter-spacing: .4px;
}

@media (max-width: 480px) {
  .ls-history-panel {
    max-height: 84vh;
  }
  
  .ls-history-item {
    padding: 16px;
  }
}

@media (orientation:landscape) {
  .scm-modal {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  
  .scm-section:nth-child(1) {
    grid-column: 1;
  }
  
  .scm-section:nth-child(2) {
    grid-column: 1;
  }
  
  .scm-section:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  
  .scm-section:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  
  .book-btn {
    grid-column: 1 / span 2;
  }
}

@media (orientation:landscape) {
  .filter-modal {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  
  .filter-section:nth-child(1) {
    grid-column: 1;
  }
  
  .filter-section:nth-child(2) {
    grid-column: 1;
  }
  
  .filter-section:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  
  .filter-section:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  
  .filter-actions {
    grid-column: 1 / span 2;
  }
}
.client-input-row{
display:flex;
gap:12px;
}

.scm-client-input{
flex:1;
min-width:0;
}

.scm-client-phone{
width:150px;
flex-shrink:0;
}

/* section scroll hint fade */

.section-one{
position:relative;
--sectionFade:1;
}

.section-one::after{

content:"";
position:absolute;

left:0;
right:0;

bottom:-70px;
height:140px;

background:linear-gradient(
to bottom,
rgba(0,0,0,0),
rgba(0,0,0,0.9)
);

pointer-events:none;

opacity:var(--sectionFade);

transition:opacity .25s ease;

z-index:2;
}
.scheduler-date-header{

display:flex;
align-items:center;
justify-content:space-between;

padding:12px 16px;

color:var(--accent-80);
font-size:20px;
font-weight:600;

background:linear-gradient(
180deg,
rgba(255,255,255,.04),
rgba(0,0,0,.35)
);

backdrop-filter:blur(10px);

border-bottom:1px solid rgba(var(--accent-rgb), .15);

}

.date-display{

flex:1;
text-align:center;

}

.filter-btn{

width:40px;
height:40px;

border-radius:10px;

background:rgba(var(--accent-rgb), .12);

display:flex;
align-items:center;
justify-content:center;

color:var(--accent-60);

}

.date-selector-panel{

max-height:0;
overflow:hidden;

transition:max-height .3s ease;

background:var(--bg-subtle);

}

.date-selector-panel.open{

max-height:220px;

}

.month-bar{

display:flex;
align-items:center;
justify-content:space-between;

padding:14px 18px;

color:var(--accent-80);

}

.week-strip{

display:flex;
gap:12px;

overflow-x:auto;

padding:10px 16px;

}

.day-pill{

min-width:56px;

border-radius:14px;

padding:10px;

text-align:center;

background:var(--bg-elevated);

color:var(--text-secondary);

}

.day-pill.active{

background:linear-gradient(
180deg,
var(--accent-80),
var(--accent-35)
);

color:var(--bg-main);

box-shadow:0 0 14px rgba(var(--accent-rgb), .35);

}
.scm-section-group{

position:relative;

display:flex;
flex-direction:column;

gap:18px;

width:100%;

}
.scm-modal{
position:relative;
}
.scm-modal::after{

content:"";

position:absolute;

left:0;
right:0;
bottom:0;

height:120px;

background:linear-gradient(
to bottom,
rgba(0,0,0,0),
rgba(0,0,0,.92)
);

pointer-events:none;

}
.scm-modal{
position:relative;
}

.scm-modal::after{
z-index:1;
}

.scm-section-group{
position:relative;
z-index:2;
}
.scm-modal::after{
height:90px;
}

/* =====================================================
   CREATE MODAL LAYOUT
===================================================== */

.scm-modal{

position:relative;

width:100%;

display:flex;
flex-direction:column;

}


/* =====================================================
   MODAL CONTENT SECTIONS
===================================================== */

.scm-section-group{

position:relative;

display:flex;
flex-direction:column;

gap:18px;

width:100%;

z-index:2;

}


/* =====================================================
   FADE MASK
===================================================== */

.scm-modal::after{

content:"";

position:absolute;

left:0;
right:0;
bottom:0;

height:80px;

background:linear-gradient(
to bottom,
rgba(0,0,0,0),
rgba(0,0,0,.9)
);

pointer-events:none;

z-index:1;

}


/* =====================================================
   ENSURE CONTENT ABOVE FADE
===================================================== */

.scm-section,
.scm-services-row,
.scm-suggestion-row,
.scm-book-row{

position:relative;

z-index:2;

}


/* =====================================================
   BOOK BUTTON
===================================================== */

.scm-book-row{

padding-bottom:24px;

}
.scm-book{
white-space:pre-line;
text-align:center;
}
/* ===============================
   INVITE BUTTON
=============================== */

.invite-btn{
width:100%;
height:52px;

border-radius:14px;

background:var(--accent-80);
color:var(--bg-main);

font-weight:700;
font-size:16px;

border:none;
cursor:pointer;

display:flex;
align-items:center;
justify-content:center;

box-shadow:
0 4px 12px rgba(0,0,0,.35);

transition:transform .12s ease,
box-shadow .12s ease;
}

.invite-btn:active{
transform:scale(.97);
box-shadow:
0 2px 6px rgba(0,0,0,.35);
}


/* ===============================
   ADD / CANCEL SERVICE BUTTON
=============================== */

.service-toggle-btn{

padding:6px 12px;

border-radius:10px;

font-size:13px;
font-weight:600;

background:rgba(var(--accent-rgb), .08);
color:var(--accent-80);

border:1px solid rgba(var(--accent-rgb), .35);

cursor:pointer;

transition:all .15s ease;
}

.service-toggle-btn:hover{

background:rgba(var(--accent-rgb), .18);

}

.service-toggle-btn:active{

transform:scale(.95);

}
#schedulerRoot {
  height: 100%;
  min-height: 0;
}
.scheduler-grid,
.scheduler-scroll {
  height: 100%;
  min-height: 0;
}
