.workspace-shell {
  --row-detail-size: .87rem;
  --row-action-size: .88rem;
  --row-action-weight: 650;
}
.workspace-shell .wrap {
  width: min(100% - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right)), 60rem);
  margin-inline: auto;
  padding-inline: 0;
}
.workspace-shell .masthead {
  padding-block-start: env(safe-area-inset-top);
  background: var(--forest);
  border: 0;
  box-shadow: none;
}
.workspace-shell .masthead .top,
.workspace-shell .masthead .top.sc-shared-ready {
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 2vw, .65rem);
  min-height: 3.75rem;
  padding-block: 0;
}
.workspace-shell .masthead .brand { display: flex; align-items: center; min-height: 44px; }
.workspace-shell .masthead .brand img { display: block; width: 128px; height: auto; }
.workspace-shell .masthead .sc-workspace-label { font-size: .875rem; }
.masthead .sc-shared-trigger { padding-inline: .4em; }
.masthead .sc-shared-trigger svg { flex: 0 0 auto; width: 1rem; height: 1rem; }
.masthead :focus-visible { outline-color: #edcd85; }
body[data-sc-surface] .sc-public-header .sc-shared-panel { padding: .65rem .85rem; }
.workspace-shell .sc-shared-section + .sc-shared-section { margin-block-start: .55rem; }
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-segments { padding: 1px; }
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-segments button { min-height: max(26px, 1.625rem); }
body[data-sc-surface] .sc-public-header .sc-shared-panel [data-sc-mode] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
}
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-link {
  min-height: max(34px, 2.125rem);
  justify-content: flex-start;
  gap: .5rem;
}
body[data-sc-surface] .sc-public-header .sc-shared-panel :is(.sc-shared-link, [data-sc-mode])::before {
  content: '';
  flex: 0 0 1.0625rem;
  height: 1.0625rem;
  background: currentColor;
  mask: var(--workspace-menu-icon) center / contain no-repeat;
}
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-link::before { color: #e7cc91; }
body[data-sc-surface] .sc-public-header .sc-shared-panel a[href^="https://preview.southcompass.ke/"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cellipse cx=%2212%22 cy=%2212%22 rx=%224%22 ry=%229%22/%3E%3Cpath d=%22M3 12h18%22/%3E%3C/svg%3E');
}
body[data-sc-surface] .sc-public-header .sc-shared-panel a[href^="https://southcompass-trips-demo.pages.dev/"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%227%22 width=%2216%22 height=%2213%22 rx=%222%22/%3E%3Cpath d=%22M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M9 7v13m6-13v13%22/%3E%3C/svg%3E');
}
body[data-sc-surface] .sc-public-header .sc-shared-panel a[href^="https://southcompass-workspace-pilot.southcompass-travel.workers.dev/it-overzicht/"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2213%22 rx=%222%22/%3E%3Cpath d=%22M8 21h8m-4-4v4%22/%3E%3C/svg%3E');
}
body[data-sc-surface] .sc-public-header .sc-shared-panel [data-workspace-icon="folder"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 8V6a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8z%22/%3E%3C/svg%3E');
}
body[data-sc-surface] .sc-public-header .sc-shared-panel [data-workspace-icon="help"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M9.5 9.5a2.5 2.5 0 1 1 4.1 1.9c-1 .8-1.6 1.1-1.6 2.6m0 2.7h.01%22/%3E%3C/svg%3E');
}
body[data-sc-surface] .sc-public-header .sc-shared-panel [data-sc-mode="light"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5%22/%3E%3C/svg%3E');
}
body[data-sc-surface] .sc-public-header .sc-shared-panel [data-sc-mode="dark"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20.5 14.5A8.8 8.8 0 0 1 9.5 3.6a8.8 8.8 0 1 0 11 10.9z%22/%3E%3C/svg%3E');
}

body[data-sc-surface] .sc-public-header .sc-shared-panel button.sc-shared-link {
  width: 100%;
  border: 0;
  border-block-start: 1px solid #ffffff36;
  background: transparent;
  text-align: start;
}

/* Authenticated role examples supply their own destinations after Menu is mounted. */
.workspace-shell .top > [data-workspace-menu-item] { display: none; }
body[data-sc-surface] .sc-public-header .sc-shared-panel a[data-workspace-icon="workspace"] {
  --workspace-menu-icon: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M3 9h18m-12 0v11%22/%3E%3C/svg%3E');
}

.workspace-shell .workspace-title {
  font: 500 clamp(2.15rem, 8vw, 3.4rem)/1.07 Georgia, serif;
  overflow-wrap: anywhere;
}

.workspace-rail {
  background: #193a30;
  border-block-start: 1px solid #f5dc9e36;
}
.workspace-rail-links { display: flex; gap: .9rem; }
.workspace-rail :is(a, button) {
  display: grid;
  place-items: center;
  min-height: 40px;
  min-width: 44px;
  padding: .2rem .35rem;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  color: #e3e9e4;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.workspace-rail :is(a, button):hover { color: #fff4d8; }
.workspace-rail :is(a, button):is([aria-current], [aria-pressed="true"]) { color: #f2d89e; border-block-end-color: #d5b875; }
.workspace-rail :is(a, button):focus-visible { outline-offset: -.2rem; }

@media (max-width: 770px) {
  .workspace-shell .masthead .brand img { width: 104px; }
}
@media (max-width: 510px) {
  .workspace-shell .masthead .brand img { width: 81px; }
}
@media (max-width: 480px) {
  .workspace-shell .masthead .top.sc-shared-ready {
    width: calc(100% - max(.5rem, env(safe-area-inset-left)) - max(.5rem, env(safe-area-inset-right)));
    gap: .2rem;
  }
  .workspace-shell .masthead .sc-workspace-lockup { gap: .28rem; }
  .workspace-shell .masthead .sc-workspace-label { padding-inline-start: .28rem; }
  .workspace-shell .masthead .sc-shared-trigger { gap: .25rem; padding-inline: .3rem; font-size: .78rem; }
  .workspace-rail-links { gap: .35rem; }
  .workspace-rail :is(a, button) { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 370px) {
  .workspace-shell .masthead .top.sc-shared-ready {
    width: calc(100% - max(.4rem, env(safe-area-inset-left)) - max(.4rem, env(safe-area-inset-right)));
    gap: .13rem;
    flex-wrap: wrap;
  }
  .workspace-shell .masthead .sc-workspace-label { padding-inline-start: .2rem; }
  .workspace-shell .masthead .sc-shared-trigger { gap: .2rem; padding-inline: .2rem; }
  .masthead .sc-shared-trigger svg { width: .9rem; }
}

/* Public adapter for the Workspace shell. Routing remains owned by each page. */
body[data-sc-surface] .sc-public-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: #102e27;
  border: 0;
  box-shadow: none;
  padding-block-start: env(safe-area-inset-top);
  font-family: system-ui, sans-serif;
}
body[data-sc-surface] .sc-public-header .wrap {
  width: min(100% - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right)), 60rem);
  margin-inline: auto;
  padding-inline: 0;
}
body[data-sc-surface] .sc-public-header .top.sc-shared-ready {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(.3rem, 2vw, .65rem);
  min-height: 3.75rem;
  padding-block: 0;
}
body[data-sc-surface] .sc-public-header .brand { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; margin: 0; }
body[data-sc-surface] .sc-public-header .brand img { display: block; width: 128px; height: auto; max-width: none; }
body[data-sc-surface] .sc-public-header :is(.sc-entry, #siteBack) { margin-inline-start: auto; }
body[data-sc-surface] .sc-public-header #scSharedMenu { margin-inline-start: 0; }
body[data-sc-surface] .sc-public-header .top .trip-access {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .45rem;
  color: #f5dc9e; font: 650 .84rem/1.2 system-ui,sans-serif;
  text-decoration: none; border: 0; box-shadow: none; background: transparent; white-space: nowrap;
}
body[data-sc-surface] .sc-public-header .top .trip-access:hover { text-decoration: underline; }
body[data-sc-surface] .sc-public-header .sc-shared-trigger { min-height: 44px; padding-inline: .4em; }
body[data-sc-surface] .sc-public-header .sc-shared-panel { padding: .65rem .85rem; }
body[data-sc-surface] .sc-public-header .sc-shared-section + .sc-shared-section { margin-block-start: .55rem; }
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-segments { padding: 1px; }
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-segments button { min-height: max(26px,1.625rem); }
body[data-sc-surface] .sc-public-header .sc-shared-panel .sc-shared-link { min-height: max(34px,2.125rem); }
body[data-sc-surface] .sc-public-header .workspace-rail { background:#193a30; border:0; border-block-start:1px solid #f5dc9e36; padding:0; }
body[data-sc-surface] .sc-public-header .workspace-rail > .wrap { display: flex; justify-content: flex-start; }
body[data-sc-surface] .sc-public-header .workspace-rail .workspace-rail-links { display:flex; width:100%; gap:.9rem; padding:0; margin:0; justify-content:flex-start; }
body[data-sc-surface] .sc-public-header .workspace-rail .workspace-rail-links > :is(a,button) {
  display:grid; place-items:center; min-height:40px; min-width:44px; margin:0; padding:.2rem .35rem;
  color:#e3e9e4; border:0; border-block-end:2px solid transparent; border-radius:0;
  background:transparent; font:650 .86rem/1.2 system-ui,sans-serif; text-decoration:none; white-space:nowrap;
}
body[data-sc-surface] .sc-public-header .workspace-rail .workspace-rail-links > :is(a,button):is(.active,[aria-current]:not([aria-current=false]),[aria-selected=true]) {
  color:#f2d89e; border-block-end-color:#d5b875;
}
body[data-sc-surface] .sc-public-header .workspace-rail .workspace-rail-links > :is(a,button)::after { content:none; }
@media(max-width:770px) { body[data-sc-surface] .sc-public-header .brand img{width:104px} }
@media(max-width:510px) { body[data-sc-surface] .sc-public-header .brand img{width:81px} }
@media(max-width:480px) {
  body[data-sc-surface] .sc-public-header .top.sc-shared-ready {
    width: calc(100% - max(.5rem, env(safe-area-inset-left)) - max(.5rem, env(safe-area-inset-right)));
    gap:.2rem;
  }
  body[data-sc-surface] .sc-public-header .sc-shared-trigger { gap:.25rem; padding-inline:.3rem; font-size:.78rem; }
  body[data-sc-surface] .sc-public-header .workspace-rail .workspace-rail-links { gap:.35rem; }
  body[data-sc-surface] .sc-public-header .workspace-rail .workspace-rail-links > :is(a,button) { flex:1 1 auto; min-width:0; }
}
