.shared-shell {
  --shared-ink: var(--ink, #263238);
  --shared-muted: var(--muted, #5c6b73);
  --shared-accent: var(--teal, var(--signal, #873d59));
  --shared-border: var(--line, #d8e0e3);
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--shared-border);
  background: rgba(255, 255, 255, .96);
  color: var(--shared-ink);
  font-family: inherit;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
}
.shared-shell, .shared-shell * { box-sizing: border-box; }
.shared-shell__inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
}
.shared-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--shared-ink);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.shared-shell__brand strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.shared-shell__brand small { display: block; margin-top: 4px; color: var(--shared-muted); font-size: 11px; line-height: 1.2; }
.shared-shell__logo { display: block; width: 34px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.shared-shell__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px 17px;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
}
.shared-shell__nav a {
  flex: 0 0 auto;
  color: var(--shared-muted);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.shared-shell__nav a:hover,
.shared-shell__nav a[aria-current="page"] { color: var(--shared-accent); }
.shared-shell__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.shared-shell__actions { display: flex; align-items: center; gap: 8px; }
.shared-shell__menu { position: relative; margin: 0; padding: 0; border: 0; }
.shared-shell__menu summary {
  padding: 7px 9px;
  border: 1px solid var(--shared-border);
  border-radius: 4px;
  background: #fff;
  color: var(--shared-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.shared-shell__menu summary::-webkit-details-marker { display: none; }
.shared-shell__menu summary::after { content: " +"; color: var(--shared-accent); }
.shared-shell__menu[open] summary::after { content: " -"; }
.shared-shell__menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  width: max-content;
  max-width: min(300px, calc(100vw - 28px));
  padding: 7px;
  border: 1px solid var(--shared-border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 38, 45, .14);
}
.shared-shell__menu-list a {
  padding: 8px 10px;
  color: var(--shared-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}
.shared-shell__menu-list a:hover { background: rgba(135, 61, 89, .08); color: var(--shared-accent); }
.shared-shell__menu-list a[aria-current="page"] { color: var(--shared-accent); font-weight: 700; }
.shared-shell__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-height: 0;
  justify-content: flex-start;
  border: 1px solid var(--shared-accent);
  border-radius: 4px;
  background: var(--shared-accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.shared-shell__cta:hover { filter: brightness(.92); color: #fff; }
.shared-shell--public-refined { --shared-accent: var(--blue, #1e3a8a); }
.shared-shell--public-astra { --shared-accent: var(--teal, #087d72); }
.shared-shell :focus-visible { outline: 3px solid #bd8b1c; outline-offset: 3px; }

@media (max-width: 960px) {
  .shared-shell__inner {
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "navigation" "actions";
    justify-items: start;
    gap: 9px;
    padding: 9px 0;
  }
  .shared-shell__brand { grid-area: brand; }
  .shared-shell__nav {
    grid-area: navigation;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: 8px 16px;
  }
  .shared-shell__actions { grid-area: actions; flex-wrap: wrap; }
  .shared-shell__menu-list { right: auto; left: 0; }
}

@media (max-width: 520px) {
  .shared-shell__inner { width: calc(100% - 24px); }
  .shared-shell__nav { gap: 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .shared-shell { scroll-behavior: auto; }
}

@media print {
  .shared-shell { position: static; background: #fff; backdrop-filter: none; }
  .shared-shell__nav, .shared-shell__actions { display: none; }
}