/* Shared presentation only; native hidden states, layouts and permissions remain authoritative. */
.bp-portal-shell,
.bp-portal-surface,
.bp-portal-native-nav {
  --bp-paper: #fffdf7;
  --bp-ink: #203b35;
  --bp-primary: #14685a;
  --bp-soft: #eef3e9;
  --bp-accent: #e5bb71;
  --bp-line: #bed0c5;
  --bp-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bp-portal-shell {
  box-sizing: border-box;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--bp-ink);
  border-radius: 1.1rem;
  box-shadow: 4px 4px 0 #d6e2d4;
  background: var(--bp-paper);
  color: var(--bp-ink);
  font: 1rem/1.55 var(--bp-font);
  text-align: left;
}
.bp-portal-shell * { box-sizing: border-box; }
.bp-shell-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.bp-shell-identity { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.bp-shell-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border: 2px solid var(--bp-ink); border-radius: .8rem; background: var(--bp-accent); font-weight: 850; letter-spacing: -.04em; }
.bp-portal-shell .bp-shell-brand { margin: 0; color: var(--bp-ink); font: 750 .9rem/1.35 var(--bp-font); }
.bp-portal-shell .bp-shell-workspace { margin: .12rem 0 0; color: var(--bp-ink); font: 550 .85rem/1.4 var(--bp-font); }
.bp-portal-shell .bp-shell-position { display: grid; gap: .1rem; flex: 1 1 12rem; margin: 0; border-left: 1px solid var(--bp-line); padding-left: 1.2rem; }
.bp-portal-shell .bp-shell-purpose { max-width:72ch; margin:1rem 0 0; font-size:1rem; line-height:1.6; color:var(--bp-ink); }
.bp-shell-position > span { font-size: .78rem; color: #456257; }
.bp-shell-position > strong { font-size: 1.05rem; font-weight: 750; overflow-wrap: anywhere; }
.bp-portal-shell .bp-shell-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.75rem;
  max-width: 100%;
  margin: 0;
  padding: .6rem .85rem;
  border: 1.5px solid var(--bp-primary);
  border-radius: .7rem;
  background: var(--bp-paper);
  color: var(--bp-primary);
  font: 700 .9rem/1.35 var(--bp-font);
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
}
.bp-portal-shell .bp-shell-button:hover { background: var(--bp-soft); }
.bp-portal-shell .bp-shell-button:disabled { opacity: .65; cursor: not-allowed; }
.bp-shell-help { margin-top: 1rem; border-top: 1px solid var(--bp-line); }
.bp-shell-help > summary { min-height: 2.75rem; padding: .75rem 0 .15rem; color: var(--bp-primary); font: 750 .95rem/1.4 var(--bp-font); cursor: pointer; }
.bp-shell-help-body { padding: .65rem 0 .1rem; max-width: 70ch; }
.bp-portal-shell .bp-shell-kicker { margin: 0 0 .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.bp-portal-shell .bp-shell-disclosure { margin: 0 0 .9rem; font-size: .9rem; color: #456257; }
.bp-portal-shell .bp-shell-guidance { margin: 0 0 1rem; padding: 1rem 1.15rem; border: 0; border-left: 4px solid var(--bp-primary); border-radius: 0 .7rem .7rem 0; background: var(--bp-soft); color: var(--bp-ink); }
.bp-shell-guidance > strong { display: block; font-size: 1.08rem; line-height: 1.5; }
.bp-shell-guidance > p { margin: .35rem 0 0; color: inherit; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.bp-shell-actions, .bp-shell-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.bp-portal-shell .bp-shell-recovery { margin: 1rem 0 0; color: #456257; font-size: .85rem; line-height: 1.6; }
.bp-shell-no-guidance { margin: 0 0 1rem; }
.bp-shell-workspaces { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--bp-line); }
.bp-shell-workspaces a { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--bp-line); border-radius: .65rem; color: var(--bp-ink); background: var(--bp-paper); font: 650 .88rem/1.4 var(--bp-font); text-decoration: none; }
.bp-shell-workspaces a:hover { background: var(--bp-soft); }
.bp-shell-workspaces a[aria-current="page"] { color: var(--bp-paper); background: var(--bp-primary); border-color: var(--bp-primary); }
.bp-workspace-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding: 0; margin: 1rem 0; list-style: none; }
.bp-workspace-path > li { padding: .85rem; border: 1px solid var(--bp-line, #bed0c5); border-radius: .8rem; background: var(--bp-soft, #eef3e9); min-width: 0; }
.bp-workspace-path strong { display: block; color: var(--bp-ink, #203b35); }
.bp-workspace-path p { margin: .35rem 0 0; font-size: .9rem; line-height: 1.6; }
.bp-workspace-path a { color: var(--bp-primary, #14685a); text-underline-offset: .2em; }
.bp-workspace-details > summary { cursor: pointer; min-height: 44px; padding: .55rem 0; color: var(--bp-ink, #203b35); font-weight: 750; }
.bp-workspace-details > summary h2 { display: inline; font-size: 1.1rem; }
.bp-workspace-details > .bp-workspace-detail-body { padding-top: .7rem; }
.bp-workspace-note { max-width: 75ch; color: #456257; font-size: .9rem; line-height: 1.6; }
@media (max-width: 700px) { .bp-workspace-path { grid-template-columns: 1fr; } .bp-shell-workspaces a { flex: 1 1 10rem; } }
.bp-portal-shell [hidden] { display: none !important; }
.bp-portal-shell :is(button, summary, a):focus-visible,
.bp-portal-native-nav :is(button, a, summary):focus-visible,
.bp-portal-surface :is(input, select, textarea, button, a, summary):focus-visible {
  outline: 3px solid #aa641b;
  outline-offset: 4px;
}
.bp-portal-surface { font-family: var(--bp-font); color: var(--bp-ink); }
.bp-portal-surface :is(input, select, textarea, button, label, summary) { font-family: var(--bp-font); }
.bp-portal-surface :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, button) { min-height: 2.75rem; }
.bp-portal-surface :is(input, select, textarea) { max-width: 100%; }
.bp-portal-surface :is(textarea, .detail, .notice, [role="status"], [role="alert"]) { overflow-wrap: anywhere; }
.bp-portal-surface :is(.card, .panel, .desk-panel) { border-radius: 1rem; }
.bp-portal-surface :is(.card, .desk-panel) { background-color: var(--bp-paper); }
.bp-portal-native-nav { gap: .5rem; font-family: var(--bp-font); }
.bp-portal-native-nav :is(a, button) { min-height: 2.75rem; white-space: normal; font-family: var(--bp-font); line-height: 1.4; }
.bp-portal-native-nav > :is(a, button) { border-radius: .7rem; color: var(--bp-ink); background-color: var(--bp-paper); }
.bp-portal-native-nav > :is(a, button):hover { background-color: var(--bp-soft); }
.bp-portal-native-nav :is([aria-current="page"], .active, .is-active, .is-current) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.bp-portal-native-nav > :is([aria-current="page"], .active, .is-active, .is-current) { background-color: var(--bp-primary); color: var(--bp-paper); }
.bp-portal-surface :is(.support-next, .cm-next-action) { border-color: var(--bp-primary); }
@media (max-width: 640px) {
  .bp-portal-shell { padding: 1rem; margin-bottom: 1.25rem; box-shadow: 3px 3px 0 #d6e2d4; }
  .bp-shell-heading { gap: .85rem; }
  .bp-portal-shell .bp-shell-position { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--bp-line); padding: .7rem 0 0; }
  .bp-shell-heading > .bp-shell-button { margin-left: auto; }
  .bp-shell-help-body { max-width: none; }
  .bp-shell-actions, .bp-shell-help-actions { align-items: stretch; width: 100%; }
  .bp-shell-actions > .bp-shell-button, .bp-shell-help-actions > .bp-shell-button { flex: 1 1 12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-portal-shell, .bp-portal-shell *, .bp-portal-native-nav, .bp-portal-native-nav *,
  .bp-portal-surface .cm-next-action, .bp-portal-surface .support-next {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .bp-portal-shell, .bp-shell-guidance, .bp-shell-mark, .bp-portal-shell .bp-shell-button { border: 2px solid CanvasText; box-shadow: none; }
}
