/* Shared brand header + color tokens (root-level). */
:root {
  --brand-red: #c5252f;
  --brand-red-dark: #a91f27;
  --brand-surface: #ffffff;
  --brand-text: #0a0a0a;
}

.proposal-brand-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--brand-red);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.proposal-brand-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.proposal-brand-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.proposal-brand-header__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.proposal-brand-header__mark svg {
  display: block;
  width: 22px;
  height: 22px;
}

.proposal-brand-header__title {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proposal-brand-header__subtitle {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 0.78rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(68ch, 100%);
}

.proposal-brand-header__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proposal-brand-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.proposal-brand-header__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.proposal-brand-header__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.proposal-brand-header__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .proposal-brand-header__subtitle {
    display: none;
  }

  .proposal-brand-header__inner {
    padding: 0.8rem 0.9rem;
  }
}

