.legends-alert {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface);
  border: 1px solid var(--bg-raised-5);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 40px var(--overlay-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease,
transform .25s ease;
  z-index: 10000;
}

.legends-alert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.legends-alert.success {
  border-color: var(--accent-mid);
}

.legends-alert.error {
  border-color: var(--error);
}

#root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  height: 100%;
}

.center {
  background: var(--bg-main);
}

.left {
  background: var(--bg-deep);
}

.right {
  background: var(--bg-deep);
}

#cameraFeed {
  touch-action: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-main);
  transition: transform .2s ease;
}

#quickFields {
  display: none;
  opacity: .6;
}

#quickFields.active {
  display: block;
  opacity: 1;
}

.footer {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .5;
  font-size: 12px;
  z-index: 30;
}

#bottomFade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10vh;
  pointer-events: auto;
  z-index: 10;
  background: linear-gradient(
    to top,
    var(--overlay-black-90) 0%,
    var(--overlay-black-65) 40%,
    var(--overlay-black-25) 70%,
    var(--overlay-black-0) 100%
  );
}

#track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 300vw;
  height: 100%;
  transform: translate3d(-100vw, 0, 0);
  will-change: transform;
}

.zone {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.zone.left {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  gap: 12px;
}

.ai-pill {
  position: sticky;
  top: 0;
  z-index: 7;
  width: fit-content;
  padding: 12px 8px;
  border-radius: 999px;
  background: var(--bg-main);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  transition: transform 420ms ease, opacity 420ms ease;
}

.card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
}

.profile-pic-wrap img {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 18px;
}

.profile-fields label {
  font-size: 14px;
  opacity: .6;
  margin-top: 12px;
  display: block;
}

.profile-fields input,
.profile-fields textarea,
.directory-search {
  width: 100%;
  height: 64px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: none;
  padding: 0 20px;
  color: var(--text-main);
  font-size: 18px;
}

.profile-fields textarea {
  height: auto;
  padding: 16px 20px;
}

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.portfolio-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.portfolio-carousel img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tab {
  flex: 1;
  height: 56px;
  border-radius: 18px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 18px;
}

.tab.active {
  background: var(--accent);
  color: var(--bg-main);
  font-weight: 700;
}

.directory-header {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  font-size: 14px;
  opacity: .5;
  padding: 12px 6px;
}

.directory-row {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 17px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-group {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 16px;
}

.identity-group .profile-pic-wrap img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 14px;
}

.identity-group .profile-fields label {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 10px;
  display: block;
}

.identity-group .profile-fields input {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: none;
  padding: 0 16px;
  color: var(--text-main);
  font-size: 17px;
}

.bio-group label {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 6px;
  display: block;
}

.bio-group textarea {
  width: 100%;
  min-height: 72px;
  resize: none;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: none;
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.4;
}

.engagement-group {
  display: flex;
  gap: 12px;
}

.engagement-group button {
  flex: 1;
  height: 52px;
  border-radius: 18px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  background: var(--bg-elevated);
  color: var(--accent);
}

.relationships {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 45vh;
}

.relationship-search {
  height: 60px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: none;
  padding: 0 16px;
  font-size: 17px;
  color: var(--text-main);
}

.relationships .tabs {
  margin-bottom: 6px;
}

.profile-capsule {
  background: var(--bg-surface);
  border-radius: 26px;
  padding: 16px;
  margin-bottom: 14px;
}

.profile-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 14px;
}

.p-tab {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: none;
  background: var(--bg-elevated);
  font-size: 22px;
  color: var(--text-secondary);
}

.p-tab.active {
  background: var(--accent);
  color: var(--bg-main);
}

.profile-panels {
  position: relative;
}

.p-panel {
  display: none;
}

.p-panel.active {
  display: block;
}

.profile-capsule label {
  font-size: 13px;
  opacity: .6;
  margin-top: 10px;
  display: block;
}

.profile-capsule input,
.profile-capsule textarea {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: none;
  padding: 0 16px;
  color: var(--text-main);
  font-size: 17px;
}

.profile-capsule textarea {
  height: auto;
  padding: 14px 16px;
}

.engage-btn {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: none;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ct-icon.shop-open {
  border: 2px solid var(--success);
  box-shadow: 0 0 0 2px var(--success-glow);
}

.shop-hours-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: var(--bg-surface);
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 16px;
  z-index: 3;
  transition: bottom .35s cubic-bezier(.2, .8, .2, 1);
}

.shop-hours-sheet.open {
  bottom: 0;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-opaque);
  margin: 0 auto 12px;
}

.sheet-header h3 {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.calendar-wrap {
  user-select: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  animation-duration: .22s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

.calendar-day {
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .15s, transform .1s;
  user-select: none;
}

.calendar-day.selected {
  background: var(--success);
  color: var(--bg-main);
  font-weight: 700;
}

.hours-controls {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.hours-controls label {
  flex: 1;
  font-size: 13px;
  opacity: .7;
}

.hours-controls input {
  width: 100%;
  height: 60px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 0 16px;
  font-size: 16px;
}

.repeat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 14px;
  margin-top: 14px;
  padding: 10px 4px;
  border-radius: 16px;
  background: var(--border-faint);
}

.sheet-save {
  width: 100%;
  height: 60px;
  border-radius: 22px;
  border: none;
  background: var(--accent);
  color: var(--bg-main);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 30px var(--accent-glow-mid);
  top: 10px;
}

.settings-section {
  margin-bottom: 22px;
}

.settings-section h3 {
  font-size: 14px;
  opacity: .6;
  margin: 10px 6px;
}

.settings-row {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-main);
  font-size: 16px;
  text-align: left;
  padding: 0 18px;
  margin-bottom: 10px;
}

.settings-row.link {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.analytics-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-chart {
  flex: 1;
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    var(--accent-35),
    var(--overlay-black-40)
  );
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 10px;
  margin-bottom: 10px;
}

.cal-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: .3px;
}

.cal-nav {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
  font-weight: 700;
}

.calendar-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
  font-size: 12px;
  text-align: center;
  opacity: .55;
  font-weight: 700;
  padding: 6px 0;
}

.calendar-day:hover {
  transform: scale(1.03);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  opacity: .6;
  margin-bottom: 6px;
  text-align: center;
}

.repeat-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.calendar-empty {
  pointer-events: none;
}

.calendar-grid.slide-left {
  animation-name: slideLeft;
}

.calendar-grid.slide-right {
  animation-name: slideRight;
}

@keyframes slideLeft{





	from {
		transform: translateX(12%);
		opacity: .6;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}





}

@keyframes slideRight{





	from {
		transform: translateX(-12%);
		opacity: .6;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}





}

.cal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--overlay-half);
  border: 1px solid var(--border-strong-2);
  color: var(--text-main);
  font-size: 20px;
}

#shopCalendar {
  margin-bottom: 18px;
}

.left-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.profile-header {
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.profile-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 10px auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.avatar-edit-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--bg-main);
  font-size: 16px;
  font-weight: 700;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-card {
  background: var(--bg-surface);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  transition: max-height .3s ease, opacity .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--accent);
}

.profile-card-header button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 18px;
}

.profile-card.collapsed .profile-card-body {
  display: none;
}

.left-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.left-tab {
  flex: 1;
  height: 60px;
  border-radius: 22px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 700;
}

.left-tab.active {
  background: var(--accent);
  color: var(--bg-main);
  font-weight: 800;
}

.left-panels {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.left-panel {
  display: none;
  height: 100%;
  flex-direction: column;
  gap: 14px;
}

.left-panel.active {
  display: flex;
}

.profile-avatar-wrap img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
}

.avatar-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  padding: 6px;
  cursor: pointer;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-row h2 {
  margin: 4px 0 2px;
  font-size: 22px;
  font-weight: 800;
}

.name-edit {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--accent);
  padding: 6px;
  position: absolute;
  right: -28px;
  cursor: pointer;
}

.profile-card.collapsed {
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  opacity: 0;
}

.profile-card label {
  font-size: 13px;
  opacity: .6;
}

.profile-card input {
  height: 54px;
  border-radius: 16px;
  border: none;
  background: var(--bg-elevated);
  padding: 0 14px;
  font-size: 16px;
  color: var(--text-main);
}

.left-main-tabs {
  display: flex;
  gap: 12px;
}

.directory-row button {
  background: var(--bg-elevated);
  border: none;
  height: 40px;
  border-radius: 12px;
  color: var(--text-main);
}

.lsvc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lsvc-row {
  background: var(--border-faint);
  padding: 14px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lsvc-name {
  font-weight: 600;
}

.lsvc-meta {
  font-size: 13px;
  opacity: .6;
}

.lsvc-actions button {
  background: transparent;
  border: 1px solid var(--border-strong-2);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lsvc-modal {
  position: fixed;
  inset: 0;
  background: var(--overlay-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.lsvc-modal-inner {
  background: var(--bg-surface);
  padding: 28px;
  border-radius: 18px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-services-section input {
  height: 64px;
  font-size: 18px;
  border-radius: 20px;
  padding: 0 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
}

.shop-services-section input:focus {
  outline: none;
  border: 2px solid var(--accent);
}

.avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
}

.name-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-row h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.avatar-edit:hover,
.name-edit:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

#leftAiTopDock {
  position: relative;
  min-height: 40px;
}

#leftAiBottomDock {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  min-height: 48px;
}

.ai-pill.instruction-mode {
  width: 100%;
  border-radius: 16px;
  background: var(--overlay-near);
  backdrop-filter: blur(10px);
}



.left-ai-dock {
  width: 100%;
  display: flex;
  justify-content: center;
}

.left-ai-dock.top {
  margin-top: 10px;
}

.left-ai-dock.bottom {
  margin-top: 14px;
  padding-bottom: 20px;
}

#centerAiDock {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  z-index: 99999;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              opacity .3s ease;
}



#leftAiTopDock,
#centerAiDock,
#rightAiDock {
  position: relative;
  min-height: 56px;
}

.addeyus-pill.expanded+#schedulerRoot {
  margin-top: 0px;
}

#centerTopBar {
  border: 0px;
  transition: opacity 420ms ease,
    transform 650ms cubic-bezier(.16,1,.3,1),
    filter 420ms ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
  flex-shrink: 0 !important;
  z-index: 30 !important;
  width: 100%;
  position: relative !important;
}

#magicScrim {
  position: fixed;
  inset: 0;
  background: var(--overlay-mid);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 4;
  display: none;
}

#magicScrim.show {
  opacity: 1;
  pointer-events: auto;
  display: block;
}

#magicLink {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 92%;
  max-width: 460px;
  background: radial-gradient(
      120% 120% at 50% -20%,
      var(--accent-soft),
      var(--accent-glow-none) 60%
    ),
    linear-gradient(
      180deg,
      var(--bg-surface-top) 0%,
      var(--bg-surface-mid) 60%,
      var(--bg-surface-bottom) 100%
    );
  border: 1px solid var(--accent-glow-mid);
  border-radius: 22px;
  padding: 18px;
  z-index: 6;
  transition: width .35s cubic-bezier(.2,.8,.2,1),
    height .35s cubic-bezier(.2,.8,.2,1),
    border-radius .35s ease,
    padding .35s ease,
    transform .35s cubic-bezier(.2,.8,.2,1);
  transform-origin: center;
  box-shadow: 0 18px 40px var(--overlay-dark),
    0 0 24px var(--accent-glow-soft);
}

@keyframes magicPulse{


  0% {
    box-shadow: 0 0 0 var(--accent-glow-none);
  }

  40% {
    box-shadow:
      0 0 28px var(--accent-glow-strong),
      0 0 60px var(--accent-glow-mid);
  }

  100% {
    box-shadow: 0 0 0 var(--accent-glow-none);
  }

}

#magicLink:not(.collapsed) {
  animation: magicPulse .6s ease-out;
  z-index: 50;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  max-height: 80vh;
  border-radius: 20px;
}

#magicHeader {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

#magicClose {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
}

.magic-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.magic-form input,
.magic-form select {
  width: 100%;
  padding: 0 20px;
  font-size: 18px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  background: var(--bg-deep-2);
  color: var(--text-main);
  height: 64px;
}

#magicBtn {
  margin-top: 6px;
  padding: 18px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(145deg,var(--accent-strong),var(--accent-deep));
  color: var(--bg-main);
  font-weight: 800;
  font-size: 18px;
  height: 64px;
}

#magicLink.collapsed {
  left: auto;
  right: 0px;
  bottom: calc(var(--below-offset) + 20px + env(safe-area-inset-bottom));
  transform: none;
  width: auto;
  height: 68px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  transition: transform .32s cubic-bezier(.22,.8,.32,1),
    opacity .32s ease,
    bottom .45s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}

#magicLink.collapsed #magicHeader,
#magicLink.collapsed .magic-form {
  display: none;
}

.magic-collapsed-ui {
  display: none;
  align-items: center;
  gap: 14px;
  transition: transform .35s ease, opacity .35s ease;
}

#magicLink.collapsed .magic-collapsed-ui {
  display: flex;
}

.magic-label {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  opacity: .9;
  padding: 6px 14px;
  border-radius: 18px;
  text-shadow: 0 3px 14px var(--overlay-deeper),
    0 0 18px var(--accent-35);
  letter-spacing: .2px;
  transition: transform .42s cubic-bezier(.22,.8,.32,1),
    opacity .42s ease;
  will-change: transform, opacity;
}

.magic-label::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: var(--overlay-mid);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--accent-glow-soft);
}

.magic-circle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-100),
    var(--accent-60),
    var(--accent-50),
    var(--accent-35)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px var(--overlay-medium),
    0 0 30px var(--accent-50),
    inset 0 2px 5px var(--ui-light-35),
    inset 0 -4px 8px var(--accent-35);
  transition: transform .28s cubic-bezier(.22,.8,.32,1),
    opacity .28s ease,
    box-shadow .28s ease;
  will-change: transform;
}

.magic-circle-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-main);
  opacity: 0.5;
  stroke-width: 2.6;
  filter: drop-shadow(0 2px 6px var(--overlay-dark));
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

#magicLink.collapsed.scrolling {
  transform: translateX(120px);
  opacity: 0;
}

#magicLink.collapsed.idle-return {
  transform: translateX(0);
  opacity: 1;
}

#magicLink.collapsed.scrolling .magic-circle-icon {
  transform: scale(.92);
}

@keyframes circleReturnPop{



  0% { transform: scale(.88); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }



}

#magicLink.collapsed.idle-return .magic-circle-icon {
  animation: circleReturnPop .28s ease forwards;
}

#magicLink.collapsed.scrolling .magic-circle-icon svg {
  transform: scale(.8) rotate(-4deg);
  opacity: 0;
}

#magicLink.collapsed.idle-return .magic-circle-icon svg {
  animation: svgReturn .34s ease forwards;
}

@keyframes svgReturn{



  0%   { transform: scale(.75) rotate(-6deg); opacity: 0; }
  60%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }



}

#magicLink.collapsed.scrolling .magic-label {
  transform: translateX(45px);
  opacity: 0;
}

#magicLink.collapsed.idle-return .magic-label {
  transform: translateX(0);
  opacity: 0.3;
}

#magicLink.expanding {
  animation: magicExpandPop .32s cubic-bezier(.2,.8,.2,1);
}

@keyframes magicExpandPop{



  0%   { transform: scale(.92); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }



}

#magicLink.collapsing {
  animation: magicCollapsePop .28s cubic-bezier(.4,0,.2,1);
}

@keyframes magicCollapsePop{



  0%   { transform: scale(1); }
  60%  { transform: scale(.94); }
  100% { transform: scale(1); }



}

#magicLink.expanding .magic-circle-icon svg {
  transform: scale(1.15);
}

#magicLink.collapsing .magic-circle-icon svg {
  transform: scale(.85);
}

.magic-morph-clone {
  position: fixed;
  z-index: 6;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
  transition: left .35s cubic-bezier(.2,.8,.2,1),
    top .35s cubic-bezier(.2,.8,.2,1),
    width .35s cubic-bezier(.2,.8,.2,1),
    height .35s cubic-bezier(.2,.8,.2,1),
    border-radius .35s ease,
    opacity .18s ease;
}

.magic-morph-target {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transform: none;
}

#magicLink .magic-content-fade {
  transition: opacity 0.18s ease;
}

#magicLink.magic-fading-out .magic-content-fade {
  opacity: 0;
}

#magicLink.magic-fading-in .magic-content-fade {
  opacity: 1;
}

.magic-morph-clone.magic-fade-out {
  opacity: 0;
}

.camera-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  overflow: hidden;
}

.ps-capture-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ps-hold-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 26px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 18px;
  background: var(--overlay-faint);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  white-space: nowrap;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.ps-hold-pill.hidden {
  opacity: 0;
  transform: scale(.85);
}

.ps-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 6;
  transition: width .08s linear;
}

.zone.right #centerAiDock {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
  transition: transform .3s ease, opacity .3s ease;
}

.ps-capturing #centerAiDock {
  transform: translateY(-30px);
  opacity: 0;
}

.ps-preview {
  position: fixed;
  inset: 0;
  background: var(--overlay-heavy);
  z-index: 5;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ps-preview-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--overlay-faint);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ps-preview-media img,
.ps-preview-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ps-preview-actions {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-main);
}

.ps-preview-actions button {
  flex: 1;
  height: 58px;
  border-radius: 22px;
  border: none;
  font-weight: 700;
  font-size: 17px;
  background: var(--bg-elevated);
  color: var(--text-main);
}

.ps-preview-actions button.save {
  background: var(--accent);
  color: var(--bg-main);
}

.ps-ratio-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

.ps-ratio-btn {
  padding: 6px 14px;
  border-radius: 14px;
  background: var(--bg-elevated);
  color: var(--text-main);
  border: none;
  font-size: 14px;
}

.ps-ratio-btn.active {
  background: var(--accent);
  color: var(--bg-main);
}

.ps-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 18px;
  width: 100%;
  background: var(--bg-surface);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ps-item img,
.ps-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--overlay-dark);
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-main);
}

.ps-preview-crop {
  position: relative;
  background: var(--overlay-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width .28s cubic-bezier(.2,.8,.2,1),
    height .28s cubic-bezier(.2,.8,.2,1);
  margin: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px var(--overlay-heavy);
}

.ps-preview-crop img,
.ps-preview-crop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-tag-locked {
  background: linear-gradient(145deg,var(--accent-strong),var(--accent-deep));
  color: var(--bg-main);
  font-weight: 700;
  cursor: default;
}

.ps-tag-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ps-tag {
  padding: 6px 10px;
  background: var(--accent);
  color: var(--bg-main);
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
}

.ps-input {
  flex: 1;
  min-width: 120px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-main);
  padding: 0 12px;
}

.ps-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-main);
}

.ps-suggestion {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  transition: background .15s ease;
}

.ps-suggestion:hover {
  background: var(--bg-raised-5);
}

.ps-chip-locked {
  background: linear-gradient(145deg,var(--accent-strong),var(--accent-deep));
  color: var(--bg-main);
  font-weight: 700;
}

.ps-keyword-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-faint-3);
}

.ps-token-input {
  flex: 1 1 120px;
  min-width: 60px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 16px;
}

.ps-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 18px;
  background: var(--bg-raised-5);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.ps-chip span {
  font-weight: 800;
  cursor: pointer;
  opacity: .7;
}

.ps-chip span:hover {
  opacity: 1;
}

.ps-suggestions.hidden {
  display: none;
}

.ps-preview-actions .retry {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.ps-preview-actions .save {
  background: linear-gradient(145deg,var(--accent-strong),var(--accent-deep));
  color: var(--bg-main);
}

.ps-chip-helper {
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  flex: 0 0 auto;
  white-space: nowrap;
  opacity: .85;
}

.ps-aspect-selector {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 20;
}

.ps-aspect-selector button {
  background: var(--overlay-dark);
  color: var(--text-main);
  border: 1px solid var(--border-strong-2);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.ps-aspect-selector button.active {
  background: var(--accent-deep-2);
  color: var(--bg-main);
}

.ps-hold-pill.ai-top {
  top: 80px;
  bottom: auto;
}

.ps-hold-pill.ai-bottom {
  bottom: 80px;
  top: auto;
  box-shadow: 0 12px 30px var(--overlay-mid);
}

.ps-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: aspect-ratio 280ms cubic-bezier(.2,.8,.2,1);
  background: transparent;
}

.ps-shutter-swipe {
  position: fixed;
  inset: 0;
  background: var(--text-main);
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}

#cameraFeed.shutter-dip {
  transform: scale(0.98);
}

#cameraFeed.ready {
  opacity: 1;
  transform: scale(1);
}

.ps-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    var(--overlay-black-0) 45%,
    var(--overlay-black-55) 100%
  );
  opacity: .85;
  transition: opacity 200ms ease;
  z-index: 40;
}

.ps-vignette.active {
  opacity: 1;
}

#cameraFeed.capture-scale {
  transform: scale(1.02);
  transition: transform 120ms cubic-bezier(.2,.8,.2,1);
}

.ps-hold-pill:not(.hidden):not(.holding) {
  animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes subtleFloat{



  0%,100% { transform: translate(-50%, -50%) translateY(0); }
  50%     { transform: translate(-50%, -50%) translateY(-4px); }



}

.magic-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-100) 0%,
    var(--accent-60) 60%,
    var(--accent-35) 100%
  );
  box-shadow: 0 12px 30px var(--overlay-dark),
    0 0 24px var(--accent-40),
    inset 0 2px 4px var(--ui-light-25);
  overflow: hidden;
  flex-shrink: 0;
}

.magic-icon {
  width: 140%;
  height: 140%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px var(--overlay-low));
}

.ps-hold-pill.holding {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.92);
}

.zone.right #magicLink,
.zone.left #magicLink {
  display: none;
}

.zone.right {
  position: relative;
}

#rightAiDock {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

#rightAiDock .addeyus-pill {
  pointer-events: auto;
  position: relative;
}

#rightAiBottomDock {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 7;
  pointer-events: none;
}

#rightAiBottomDock .addeyus-pill {
  pointer-events: auto;
}

#portfolioSection {
  padding: 24px 18px 80px;
}

#portfolioSection h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

#portfolioSearch {
  width: 100%;
  padding: 0;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 22px;
  outline: none;
  backdrop-filter: blur(6px);
  flex: 1;
  min-width: 160px;
  line-height: 32px;
  align-self: center;
  height: 32px;
  margin: 0;
  display: block;
  transform: translateY(0);
}

#portfolioSearch::placeholder {
  color: var(--border-opaque-2);
}

#portfolioGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
  gap: 14px;
}

.ps-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--overlay-faint);
}

#portfolioSearchContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-faint-3);
  margin-bottom: 20px;
  align-items: center;
  min-height: 44px;
  margin: 0 18px 14px;
  box-shadow: 0 14px 30px var(--overlay-mid);
}

.ps-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-raised-2);
  font-size: 12px;
  color: var(--text-main);
  white-space: nowrap;
  justify-content: center;
  height: 32px;
  line-height: 32px;
  transform: translateY(0);
}

.ps-search-chip span {
  cursor: pointer;
  opacity: .6;
}

.ps-search-chip.locked {
  background: var(--accent);
  color: var(--bg-main);
  font-weight: 700;
}

.portfolio-suggestions {
  position: relative;
  margin: 0 18px 10px;
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--bg-raised-4);
}

.portfolio-suggestion {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-faint);
  cursor: pointer;
}

.portfolio-suggestion:hover {
  background: var(--bg-raised-3);
}

.hidden {
  display: none;
}

.portfolio-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--border-subtle);
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .3s ease;
}

.portfolio-toggle:active {
  transform: scale(.92);
}

.ps-no-results {
  text-align: center;
  padding: 40px 0;
  opacity: .6;
  font-size: 14px;
}

.ps-hold-hint {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--overlay-heavy);
  border: 1px solid var(--border-soft);
  color: var(--text-near-full);
  font: 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity 420ms ease, transform 420ms ease;
}

.ps-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 0%;
  z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-pale));
  box-shadow: 0 0 18px var(--accent-glow-strong-2);
  transition: width 60ms linear, opacity 180ms ease;
  opacity: 0;
}

.ps-flash {
  position: fixed;
  inset: 0;
  background: var(--text-main);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 140ms ease;
}

.ai-pill.hide {
  transform: translateY(-40px);
  opacity: 0;
}

.portfolio-empty {
  text-align: center;
  padding: 40px 0;
  opacity: .6;
  font-size: 14px;
}

#rightAiDock,
#rightAiBottomDock {
  transition: transform 400ms ease, opacity 400ms ease;
}

.provider-header-row {
  position: relative;
  z-index: 1;
}

#centerAiDock.ai-bottom {
  position: fixed;
  bottom: 20px;
  top: auto;
  transform: translateY(0);
}

.addeyus-float-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 6;
}

#blurLayer {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--overlay-faint);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 35;
}

#blurLayer.active {
  opacity: 1;
  pointer-events: auto;
}

.shop-toggle,
.live-toggle {
  z-index: 65;
}

.zone.center,
.zone.right {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#universalBelow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--bg-deep-3);
  border-top: 1px solid var(--bg-raised-2);
  display: flex;
  z-index: 50;
}

.u-nav {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  gap: 4px;
  transition: color .2s ease;
  z-index: 200px;
}

.u-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.u-nav.active {
  color: var(--text-main);
  font-weight: 600;
}

#centerSplit,
#rightSplit {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#appointmentFeed,
#cameraPanel {
  overflow: auto;
  min-height: 0px;
  background: var(--text-main);
  color: var(--bg-surface);
}

.split-handle {
  flex: 0 0 24px !important;
  height: 24px !important;
  background: var(--bg-main);
  border-top: 1px solid var(--bg-raised-2);
  border-bottom: 1px solid var(--bg-raised-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: row-resize;
  position: relative;
  z-index: 10;
  box-shadow: 0 -8px 16px var(--overlay-black-35),
    0 8px 16px var(--overlay-black-35);
  touch-action: none;
}

.split-handle.snap-glow {
  box-shadow: 0 0 0 2px var(--ui-light-08),
  0 0 18px var(--ui-light-18);
}

#appointmentFeed,
#schedulerRoot,
#cameraPanel,
#portfolioRoot {
  will-change: height;
}

.zone.center {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#centerSplit {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: visible;
  position: relative;
}

#appointmentFeed {
  flex: 0 0 auto !important;
  min-height: 0px;
  max-height: 70%;
  overflow-y: auto;
  position: relative !important;
  z-index: 1;
}

.handle-pill {
  padding: 5px 16px;
  border-radius: 18px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 80px;
  min-width: 100px;
  height: 36px;
  min-height: 36px;
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08),
    0 8px 20px rgba(0,0,0,.5);
  transition: top .25s ease, transform .2s ease;
  z-index: 2;
  pointer-events: none;
}

.handle-line {
  width: 44px;
  height: 1px;
  border-radius: 999px;
  background: var(--border-strong-2);
  position: absolute;
  left: 0;
  right: 0;
  transition: top .25s ease;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

html,
body {
  height: 100%;
}

#schedulerRoot {
  min-height: 0 !important;
  position: relative;
  height: 100%;
}

#schedulerRoot,
#appointmentFeed {
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}

.handle-pill svg {
  width: 18px;
  height: 18px;
}

.split-handle:active .handle-pill {
  transform: scale(.94);
}

.split-handle:active {
  background: var(--border-faint);
}

.center-ai-dock {
  position: absolute;
  z-index: 50;
}

.panel-ai-dock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
}

#centerHandle {
  cursor: row-resize !important;
  background: radial-gradient(
      ellipse at center,

      rgba(var(--accent-rgb), 0.16) 0%,
      rgba(var(--accent-rgb), 0.12) 20%,
      rgba(var(--accent-rgb), 0.08) 40%,
      rgba(var(--accent-rgb), 0.04) 60%,
      rgba(var(--accent-rgb), 0.02) 75%,

      transparent 90%
    ),

    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,0.25) 100%
    );
}

.handle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

#globalBottomSheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 90;
  align-items: flex-end;
  height: 100%;
}

.gbs-panel {
  width: 100%;
  max-width: 900px;
  height: 80vh;
  max-height: 100%;
  background: var(--bg-subtle);
  border-radius: 22px 22px 0 0;
  transform: translateY(120%);
  transition: transform .26s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  position: relative;
  box-shadow: 0 -18px 40px var(--overlay-dark);
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

#globalBottomSheet.open .gbs-panel {
  transform: translateY(0);
}

.gbs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-faint-3);
  background: linear-gradient(
  180deg,
  var(--bg-nav),
  var(--bg-main)
);
  flex-shrink: 0;
}

#globalBottomSheetContent {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

#globalBottomSheet .gbs-panel {
  transform: translateY(100%);
}

#schedulerWrapper {
  position: relative;
}

#globalBottomSheet.open {
  pointer-events: auto;
}

.gbs-panel::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
  to bottom,
  var(--bg-deep-0),
  var(--bg-deep-85)
);
  pointer-events: none;
}

.gbs-content {
  --fade-height: 120px;
  mask-image: linear-gradient(
    to bottom,
    var(--overlay-black-100) 0%,
    var(--overlay-black-100) calc(100% - var(--fade-height)),
    var(--overlay-black-0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    var(--overlay-black-100) 0%,
    var(--overlay-black-100) calc(100% - var(--fade-height)),
    var(--overlay-black-0) 100%
  );
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 20px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  padding-bottom: 90px;
}

.gbs-handle {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-solid);
  margin: 10px auto 12px;
  flex: 0 0 auto;
}

#gbsClose {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  opacity: .7;
}

.gbs-divider {
  height: 1px;
  background: var(--border-faint-3);
}

#gbsTitle {
  font-size: 18px;
  font-weight: 700;
}

.global-bottom-sheet-panel {
  max-height: calc(100vh - 110px);
}

.split-dragging #appointmentFeed .feed-actions {
  opacity: .35;
  transition: opacity .18s ease;
}

#feedActionDock {
  transition: opacity .15s ease;
}

#liveBroadcastPanel {
  position: fixed;
  right: 20px;
  bottom: 120px;
  width: 260px;
  background: var(--bg-deep-4);
  border-radius: 16px;
  box-shadow: 0 20px 40px var(--overlay-dark);
  z-index: 200;
  overflow: hidden;
}

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-raised);
  font-size: 12px;
}

.live-title {
  color: var(--error-bright);
  font-weight: 600;
}

#liveBroadcastPanel video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-main);
}

.live-buffer {
  padding: 8px 10px;
  border-top: 1px solid var(--border-faint-2);
  font-size: 12px;
}

.live-viewers {
  padding: 8px;
}

.viewer-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.viewer-pill {
  background: var(--bg-raised-2);
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.viewer-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.viewer-actions button {
  background: var(--bg-raised-4);
  border: none;
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-main);
  font-size: 10px;
}

#liveBroadcastPanel.min video,
#liveBroadcastPanel.min .live-buffer,
#liveBroadcastPanel.min .live-viewers {
  display: none;
}

#psLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-near);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity .45s ease;
}

#psLoader.hidden {
  opacity: 0;
  pointer-events: none;
}

.ps-loader-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--bg-glass-4);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 40px var(--overlay-dark),
    0 0 0 1px var(--border-faint) inset;
}

.ps-loader-logo {
  width: 72px;
  max-width: 60vw;
  height: auto;
  object-fit: contain;
  opacity: .95;
}

.ps-loader-bar {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
  90deg,
  var(--accent-0),
  var(--accent-60),
  var(--text-main),
  var(--accent-60),
  var(--accent-0)
);
  animation: psLoad 1.2s linear infinite;
}

@keyframes psLoad{

  0%{ transform:scaleX(.3); opacity:.4; }
  50%{ transform:scaleX(1); opacity:1; }
  100%{ transform:scaleX(.3); opacity:.4; }

}

@keyframes psLogoFade{

  from{
    opacity:0;
    transform:translateY(6px);
  }
  to{
    opacity:.95;
    transform:translateY(0);
  }

}

#psLoader .ps-loader-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  width: auto !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: 20px;
  background: var(--bg-glass-3);
}

#psLoader .ps-loader-logo {
  display: block;
  width: 72px;
  height: auto;
  max-height: none !important;
  object-fit: contain;
}

#psLoader .ps-loader-bar {
  width: 80px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--accent),var(--text-main),var(--accent));
  animation: psLoad 1.2s linear infinite;
}

@keyframes psLoad{

  0%{transform:scaleX(.3);opacity:.4;}
  50%{transform:scaleX(1);opacity:1;}
  100%{transform:scaleX(.3);opacity:.4;}

}

.handle-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.handle-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.handle-grip {
  width: 14px;
  height: 14px;
  opacity: .45;
  flex-shrink: 0;
}

.handle-icon {
  width: 18px;
  height: 18px;
  opacity: .9;
  margin: 0 10px;
  flex-shrink: 0;
}

@media (orientation: landscape) and (max-height: 600px) {
  body {
    font-size: 14px;
  }
  
  input,
        select,
        button {
    height: 44px;
    font-size: 14px;
  }
  
  #magicLink:not(.collapsed) {
    width: 80%;
    max-width: 420px;
    padding: 12px;
  }
  
  #magicHeader {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .magic-form {
    gap: 10px;
  }
  
  #magicBtn {
    height: 44px;
  }
  
  #magicLink.collapsed {
    width: 58px;
    height: 58px;
  }
  
  .magic-circle-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .magic-label {
    font-size: 14px;
    padding: 4px 10px;
  }
  
  .zone.left,
        .zone.right {
    padding: 8px;
  }
  
  .profile-header h2 {
    font-size: 16px;
  }
  
  .directory-row {
    font-size: 13px;
  }
  
  .below-content {
    padding: 12px;
  }
}

@media (orientation: landscape) {
  #magicLink.collapsed {
    position: absolute;
    top: 50%;
    left: auto;
    right: 120px;
    transform: translateY(-50%);
    transition: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-glass-2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px var(--accent-focus-soft),
          0 4px 18px var(--overlay-dark);
    width: auto;
    max-width: 180px;
    z-index: 60;
  }
}

@media (orientation: portrait) {
  #centerTopBar {
    transition: none;
    transform: none;
    opacity: 1;
    filter: none;
  }
}

@media (orientation: landscape) {
  #magicLink.collapsed {
    display: none;
  }
  
  #ctMagicIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 12px;
    border-radius: 50%;
    background: var(--bg-glass-2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px var(--accent-focus-soft),
          0 4px 16px var(--overlay-dark);
    color: var(--accent-highlight);
    cursor: pointer;
  }
  
  #ctMagicIcon svg {
    pointer-events: none;
  }
}

@media (orientation: portrait) {
  #ctMagicIcon {
    display: none;
  }
}

@media (orientation: landscape) {
  #centerTopBar,
    #universalBelow {
    display: none !important;
  }
  
  .zone.center {
    height: 100vh;
  }
  
  #centerSplit {
    height: 100vh;
  }
}
