/* The workspace has one heading above the current page and its own profile controls. */
body #workspace-bar {
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  gap: 0;
  padding: calc(7px + env(safe-area-inset-top, 0px)) var(--space-page) 5px;
  background: var(--bg);
}
.workspace-header-copy { flex: 1 1 auto; min-width: 0; }
.workspace-header-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.workspace-header-title h1 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1.5rem, 7.5vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-header-title.is-subpage h1 { font-size: clamp(1.2rem, 6vw, 1.5rem); }
.workspace-header-profile { display: flex; align-items: center; gap: 6px; min-width: 0; }
.workspace-header-copy .tonmio-preview-chip { flex: none; }
body #workspace-bar .tonmio-screen-back {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 0 0 -11px;
  border: 0;
  background: transparent;
}
.workspace-header-title .tonmio-screen-back span { display: none; }
body #workspace-bar :is(#workspace-profile-picker,.workspace-profile-picker) { flex: 0 1 auto; max-width: 100%; }
body #workspace-bar :is(#workspace-switch,.workspace-profile-switch) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  font: 600 var(--type-meta)/1.25 var(--font-ui);
}
body #workspace-bar :is(#workspace-switch,.workspace-profile-switch) > svg { order: 0; width: 12px; height: 12px; flex: none; }
body #workspace-bar .workspace-profile-options { inset-inline: 0 auto; }
body #workspace-bar :is(.workspace-profile-shortcut,.backstage-settings) {
  display: grid;
  place-items: center;
  position: relative;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  box-shadow: none;
}
body #workspace-bar .backstage-settings svg { width: 20px; height: 20px; }
body #workspace-bar .workspace-profile-shortcut .avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: var(--type-meta);
  font-weight: 700;
}
body #workspace-bar .workspace-profile-shortcut .avatar > .tonmio-photo-frame {
  position: absolute;
  inset: 0;
}
body #workspace-bar .workspace-profile-shortcut .avatar :is(img,.tonmio-photo-frame) {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.workspace-activity-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--gold);
}
.workspace-activity-dot[hidden] { display: none; }
@media (max-width: 760px) {
  body #workspace-bar {
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  }
  body #workspace-bar .workspace-header-copy .tonmio-preview-chip { padding-inline: 5px; font-size: 9px; }
}

/* Featured appointment. */
body #main .workspace-overview > .overview-agenda {
  display: block;
  padding: 0;
  border: 0;
}
body #main .calendar-title-row { justify-content: flex-end; }
body #main .overview-next-date {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 72px;
  padding: var(--space-3);
  background: var(--ink);
  color: var(--surface);
  text-align: start;
}
.overview-next-copy { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.overview-next-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #main .overview-next-copy strong,
body #main .overview-next-copy small { color: var(--surface); }
body #main .overview-next-copy small:first-child { color: var(--gold); font-weight: 700; }
.overview-next-date > svg { width: 20px; height: 20px; flex: none; color: var(--surface); }
body #main .overview-next-date .tonmio-date-stub { background: var(--gold); color: var(--ink); }
[data-overview-favorites]:empty { display: none; }
body #main .overview-nearby-card.has-no-image {
  border-color: var(--hair);
  background: var(--gold-soft);
  color: var(--ink);
}
body #main .overview-nearby-card.has-no-image > .compact-card-placeholder {
  justify-content: center;
  bottom: auto;
  height: 64%;
  background: none;
  color: var(--gold-dark);
  text-align: center;
}
.overview-nearby-card.has-no-image > .compact-card-placeholder > span:not(.tonmio-date-stub) { display: none; }
body #main .overview-nearby-card.has-no-image .overview-nearby-price { color: var(--gold-dark); }
body #main .overview-nearby-card.has-no-image .overview-nearby-copy small:not(.overview-nearby-price) { color: var(--text-secondary); }
body #main .overview-nearby-card.has-no-image .stage-chip { border-color: var(--gold); color: var(--ink); }
.overview-nearby-copy .overview-inquiry-chip {
  border-radius: var(--r-pill);
  padding: 1px 5px;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

/* Backstage Pass, with the visibility control inside the same card. */
body #main .backstage-cover-pass {
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-card);
}
.backstage-pass-cover {
  position: relative;
  height: 170px;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold-soft);
}
body #main .backstage-pass-cover > .tonmio-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}
.backstage-cover-pass > .backstage-stripe { margin: 0; }
.backstage-draft-chip {
  position: absolute;
  z-index: 1;
  inset: var(--space-2) var(--space-2) auto auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--gold-dark);
  font-weight: 650;
  font-size: var(--type-meta);
}
.backstage-pass-cover.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(23 20 17 / 88%), transparent 85%);
  pointer-events: none;
}
body #main .backstage-pass-cover .backstage-cover-add {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: start center;
  justify-items: center;
  gap: 4px;
  min-height: 0;
  padding-top: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold-dark);
}
.backstage-pass-identity {
  display: flex;
  align-items: end;
  gap: var(--space-3);
  position: absolute;
  z-index: 1;
  inset: auto var(--space-4) var(--space-3);
  color: var(--ink);
  pointer-events: none;
}
.has-photo .backstage-pass-identity { color: var(--white,var(--surface)); }
.backstage-pass-identity > span:last-child { display: grid; gap: 2px; min-width: 0; }
.backstage-pass-identity strong,
.backstage-pass-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backstage-pass-identity strong { font-size: 1.3rem; line-height: 1.15; }
.backstage-pass-identity small { color: inherit; }
body #main .backstage-pass-avatar {
  position: relative;
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
}
body #main .backstage-pass-avatar :is(img,.tonmio-photo-frame) { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.backstage-pass-avatar:is(button) { pointer-events: auto; }
.backstage-pass-avatar > span:last-child:not(.tonmio-photo-frame) {
  position: absolute;
  inset: auto -4px -4px auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
body #main .backstage-cover-pass .backstage-visibility { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.backstage-pass-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-2); }
body #main .backstage-pass-actions > .secondary {
  padding-inline: var(--space-2);
  font-size: var(--type-label);
  white-space: nowrap;
}

@keyframes favorite-heart-pop {
  0%,100% { transform: scale(1); }
  55% { transform: scale(1.2); }
}
@media (prefers-reduced-motion: no-preference) {
  .discover-bookmark.favorite-pop > svg { animation: favorite-heart-pop 250ms ease-in-out; }
}

[data-band-message-notice]:empty { display: none; }
body #main [data-band-message-notice] { margin: 0 auto var(--space-3); max-width: 1040px; }
body #main .band-inbox-notice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  text-align: start;
}
.band-inbox-notice > span { flex: 1 1 auto; display: grid; }
.band-inbox-notice small { color: var(--text-secondary); }
.band-inbox-notice svg { flex: 0 0 24px; color: var(--gold-dark); }

body #main .backstage-public-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--gold-soft);
}
body #main .backstage-public-notice p {
  grid-column: 1;
  margin: 0;
  font-size: .875rem;
}
body #main .backstage-public-notice [data-ws="disable-public-profile"] { justify-self: start; }
body #main .backstage-public-notice [data-ws="dismiss-public-notice"] {
  grid-column: 2;
  grid-row: 1 / span 2;
}
