/* VenueBrief Service Hub global shell.
   Keeps the current readiness flow inside Today while global destinations mature independently. */

.vbAppShell {
  min-height: 100dvh;
  background: var(--vb-sc-color-canvas, #f3f1ec);
  color: var(--vb-sc-color-ink, #18232d);
  font-family: var(--vb-sc-font-sans, "IBM Plex Sans", Inter, ui-sans-serif, system-ui, sans-serif);
}

.vbAppRail { display: none; }
.vbAppStage,
.vbAppViewHost { min-width: 0; }

.vbAppTopbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--vb-sc-color-line, #d7dce1);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.vbAppTopbarBrand,
.vbAppRailBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vb-sc-color-ink, #18232d);
}

.vbAppTopbarBrand { font-size: 20px; }

.vbAppMark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--vb-sc-color-brand, #70293b);
  color: #fff;
  font-weight: 750;
  letter-spacing: -.02em;
}

.vbAppCurrentVenue {
  overflow: hidden;
  max-width: 42vw;
  padding: 7px 10px;
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: var(--vb-sc-radius-control, 8px);
  color: var(--vb-sc-color-text, #344054);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vbGlobalNav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: 66px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--vb-sc-color-line, #d7dce1);
  background: rgb(255 255 255 / 98%);
}

.vbGlobalNavItem {
  display: inline-flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vb-sc-color-muted, #667085);
  font: 650 12px/1.1 var(--vb-sc-font-sans, "IBM Plex Sans", sans-serif);
}

.vbGlobalNav .vbGlobalNavItem { flex-direction: column; }
.vbGlobalNavItem svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.vbGlobalNavItem[data-active="true"] { background: #f5e9ed; color: var(--vb-sc-color-brand, #70293b); }
.vbGlobalNavItem:focus-visible { outline: 3px solid rgb(40 95 122 / 34%); outline-offset: 1px; }

.vbShellDestination {
  width: min(var(--vb-sc-content-max, 1080px), 100%);
  margin-inline: auto;
  padding: 24px 18px calc(92px + env(safe-area-inset-bottom));
}

.vbShellDestination[hidden] { display: none; }

.vbShellDestinationHeader {
  margin-bottom: 18px;
  padding: 4px 2px;
}

.vbShellEyebrow,
.vbShellPanelLabel {
  color: var(--vb-sc-color-brand, #70293b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.vbShellDestinationHeader h1 {
  margin: 5px 0 4px;
  color: var(--vb-sc-color-ink, #18232d);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.vbShellDestinationHeader p,
.vbShellPanel p,
.vbShellHonestyNote {
  margin: 4px 0 0;
  color: var(--vb-sc-color-muted, #667085);
}

.vbShellPanelGrid { display: grid; gap: 14px; }

.vbShellPanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: var(--vb-sc-radius-panel, 12px);
  background: var(--vb-sc-color-surface, #fff);
}

.vbShellPanel h2 {
  margin: 5px 0 3px;
  color: var(--vb-sc-color-ink, #18232d);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.vbShellButton {
  display: inline-flex;
  min-height: var(--vb-sc-touch-min, 44px);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: var(--vb-sc-radius-control, 8px);
  background: #fff;
  color: var(--vb-sc-color-ink, #18232d);
  font-weight: 650;
}

.vbShellButtonPrimary {
  border-color: var(--vb-sc-color-brand, #70293b);
  background: var(--vb-sc-color-brand, #70293b);
  color: #fff;
}

.vbShellButton:focus-visible { outline: 3px solid rgb(40 95 122 / 34%); outline-offset: 2px; }
.vbShellHonestyNote { padding: 12px 2px 0; font-size: 13px; }
.vbAppShell:not([data-destination="today"]) .bottomNav { display: none !important; }

body.vbServiceHubShellEnabled .bottomNav {
  bottom: calc(66px + env(safe-area-inset-bottom));
}

body.vbServiceHubShellEnabled .wrap {
  padding-bottom: calc(176px + env(safe-area-inset-bottom));
}

body.vbServiceHubShellEnabled[data-readiness-step="4"] .wrap {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

@media (max-width: 620px) {
  .vbShellDestination { padding: 18px 12px calc(88px + env(safe-area-inset-bottom)); }
  .vbShellPanel { display: grid; gap: 16px; padding: 16px; }
  .vbShellButton { width: 100%; }
  .vbAppTopbar { min-height: 54px; padding: 7px 12px; }
  .vbAppMark { width: 34px; height: 34px; border-radius: 8px; font-size: 14px; }
  .vbAppTopbarBrand { font-size: 18px; }
}

@media (min-width: 960px) {
  .vbAppShell {
    display: grid;
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .vbAppRail {
    position: sticky;
    top: 0;
    display: flex;
    height: 100dvh;
    flex-direction: column;
    padding: 20px 14px;
    border-right: 1px solid var(--vb-sc-color-line, #d7dce1);
    background: var(--vb-sc-color-surface, #fff);
  }

  .vbAppRailBrand {
    padding: 0 6px 20px;
    font-size: 19px;
    font-weight: 700;
  }

  .vbAppRailNav { display: grid; gap: 5px; }

  .vbAppRail .vbGlobalNavItem {
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 14px;
  }

  .vbAppRailNote {
    margin: auto 8px 0;
    color: var(--vb-sc-color-muted, #667085);
    font-size: 12px;
    line-height: 1.45;
  }

  .vbAppTopbar,
  .vbGlobalNav { display: none; }

  .vbShellPanelGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  body.vbServiceHubShellEnabled .bottomNav {
    left: calc(50% + 102px);
    width: min(1080px, calc(100% - 228px));
  }

  body.vbServiceHubShellEnabled .wrap { padding-bottom: 112px; }
  body.vbServiceHubShellEnabled[data-readiness-step="4"] .wrap { padding-bottom: 28px; }
}

@media print {
  .vbAppRail,
  .vbAppTopbar,
  .vbGlobalNav,
  .vbShellDestination { display: none !important; }
  .vbAppShell,
  .vbAppStage,
  .vbAppViewHost { display: block; min-height: 0; background: #fff; }
}
