/* ============================================================
   SHARED HERO / SENIOR SHELL PRIMITIVES
   Plane-specific geometry and controls stay in hero.css/senior.css.
   ============================================================ */

[hidden] {
  display: none !important;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  height: var(--headerH);
  display: grid;
  align-items: center;
  column-gap: 12px;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--header-grad);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  justify-self: start;
}

.brand-logo-img {
  max-width: 168px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, .48), transparent 42%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--surface-solid), transparent 64%),
      color-mix(in srgb, var(--brand), transparent 88%) 58%,
      color-mix(in srgb, var(--brand2), transparent 90%));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand), transparent 76%) inset,
    0 8px 18px rgba(var(--brand2-rgb), .12);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.brand-mark::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: url("/assets/img/brand/gutmask-logo-icon-64.165351f145086268.png") center / contain no-repeat;
  filter: drop-shadow(0 3px 7px rgba(12, 16, 28, .18));
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headerCenter {
  justify-self: center;
  min-width: 0;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: end;
}

.localeSwitcherControl {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.localeSwitcherFrame {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.localeSwitcher {
  width: auto;
  min-width: 64px;
  max-width: 112px;
  min-height: 38px;
  margin: 0;
  padding: 0 26px 0 11px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.localeSwitcher:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--brand), transparent 58%);
}

.localeSwitcher:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--brand), transparent 48%);
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .18);
}

.localeSwitcher:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.localeSwitcherChevron {
  position: absolute;
  inset-inline-end: 10px;
  pointer-events: none;
  color: var(--muted);
  font-size: 11px;
}

.localeSwitcherStatus {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 70;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.localeSwitcherStatus:empty {
  display: none;
}

.publicLocaleSwitcher {
  position: fixed;
  inset-block-start: 16px;
  left: 16px;
  z-index: 80;
}

.publicLocaleSwitcher .localeSwitcherStatus {
  left: 0;
  right: auto;
}

.cookieConsentBanner[hidden] {
  display: none;
}

.cookieConsentBanner {
  position: fixed;
  inset: auto 20px 20px 20px;
  z-index: 90;
  display: flex;
  justify-content: center;
}

.cookieConsentCard {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line, rgba(255, 255, 255, .14));
  border-radius: 18px;
  background: var(--panel, rgba(19, 23, 34, .96));
  color: #eef2ff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.cookieConsentText {
  min-width: 0;
}

.cookieConsentDetails {
  min-width: 0;
}

.cookieConsentSummary {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-inline-end: 26px;
  cursor: pointer;
  list-style: none;
}

.cookieConsentSummary::-webkit-details-marker {
  display: none;
}

.cookieConsentSummary::after {
  content: "";
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 5px;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid #dbe4ff;
  border-block-end: 2px solid #dbe4ff;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.cookieConsentDetails[open] .cookieConsentSummary::after {
  transform: rotate(225deg);
}

.cookieConsentSummaryTitle {
  display: block;
  min-width: 0;
}

.cookieConsentDetails:not([open]) .cookieConsentSummaryTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookieConsentSummaryText {
  display: block;
  color: #c8d1e6;
  line-height: 1.35;
}

.cookieConsentDetails:not([open]) .cookieConsentSummaryText {
  display: -webkit-box;
  max-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cookieConsentDetails[open] .cookieConsentSummaryText {
  max-height: none;
  overflow: visible;
}

.cookieConsentText strong {
  color: #ffffff;
}

.cookieConsentMeta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #aeb7cc;
}

.cookieConsentText a,
.cookieConsentMeta a {
  color: #dbe4ff;
}

.cookieConsentSummary:focus-visible {
  outline: 2px solid var(--accent, #ff7a59);
  outline-offset: 4px;
  border-radius: 4px;
}

.cookieConsentActions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookieConsentBtn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.cookieConsentBtn.primary {
  background: var(--accent, #ff7a59);
  color: #fff;
}

.cookieConsentBtn.secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.cookieConsentError {
  margin: 8px 0 0;
  color: #ffb4b4;
}

@media (max-width: 820px) {
  .cookieConsentBanner {
    inset: auto 8px 8px;
  }

  .cookieConsentCard {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .cookieConsentActions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .cookieConsentText {
    font-size: 13px;
    line-height: 1.35;
  }

  .cookieConsentMeta {
    margin-top: 4px;
  }

  .cookieConsentBtn {
    min-height: 44px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.2;
  }
}
/* Gutmask image icons share one same-origin resource/fallback geometry. */
.gutmaskIconFrame {
  position: relative;
  overflow: hidden;
}

.gutmaskIconFallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
}

.gutmaskIconImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  padding: 4px;
  border-radius: inherit;
}

.gutmaskIconImage[hidden] {
  display: none;
}
