/* ATHRTY X-BRAND-16100 — single first-party logo contract.
   Identity source: /athrty-mark-ivory.png and /athrty-mark-ink.png.
   Do NOT apply to tenant/customer logos, user avatars, product-specific icons or previews. */
:root {
  --athrty-identity-symbol: url('/athrty-mark-ivory.png');
  --athrty-identity-symbol-inverse: url('/athrty-mark-ink.png');
  --athrty-identity-ground: #101923;
  --athrty-identity-edge: rgba(188,211,229,.39);
  --athrty-identity-radius: 11px;
}
/* First-party, explicitly owned logo containers only. Their original layout size remains the component's responsibility. */
body :is(.x1140-profile-mark, .x1124-boot-mark, .x1124-route-monogram),
body header :is(.xm-brandmark, .mp-brand-icon, .identity-mark),
body header :is(a.brand, a.identity, .wordmark, .brand) > :is(.logo, .monogram, .mark, .brand-mark),
body header .brand > .mark,
body header .wordmark > .monogram {
  box-sizing: border-box;
  flex-shrink: 0;
  background-color: var(--athrty-identity-ground) !important;
  background-image: var(--athrty-identity-symbol) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 72% 72% !important;
  border: 1px solid var(--athrty-identity-edge) !important;
  border-radius: var(--athrty-identity-radius) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 4px 18px rgba(0,0,0,.12);
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  overflow: hidden;
}
/* Header marks are compact by contract; never force the header wider on phones. */
body header :is(.xm-brandmark, .mp-brand-icon, .identity-mark),
body header :is(a.brand, a.identity, .wordmark, .brand) > :is(.logo, .monogram, .mark, .brand-mark) {
  width: clamp(32px, 3vw, 42px);
  height: clamp(32px, 3vw, 42px);
  min-width: 32px;
  min-height: 32px;
}
body .x1140-profile-mark { width: 44px; height: 44px; }
body .x1124-boot-mark { width: 30px; height: 30px; }
body.xgenesis-shell .x1124-route-monogram { width: 28px; height: 28px; border-radius: 9px !important; }
/* Replace decorative mega-typographic A in ATHRTY's own market artwork with the authentic symbol. */
body .xm-art-letter {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: var(--athrty-identity-symbol) center / contain no-repeat !important;
  opacity: .11;
  transform: none !important;
  max-width: 58%;
  max-height: 74%;
  margin: auto;
  pointer-events: none;
}
/* Existing theme preview and main shell footer are ATHRTY-owned brand touchpoints. */
body .x1140-theme-preview > span {
  display: inline-block;
  color: transparent !important;
  font-size: 0 !important;
  background: var(--athrty-identity-symbol) center / 72% 72% no-repeat var(--athrty-identity-ground) !important;
  border: 1px solid var(--athrty-identity-edge);
  border-radius: 10px;
}
body .app-footer > span:first-child::before {
  content: "";
  display: inline-block;
  inline-size: 18px;
  block-size: 18px;
  margin-inline-end: 9px;
  vertical-align: -4px;
  background: var(--athrty-identity-symbol) center / contain no-repeat;
}
/* First-party product cards retain their distinct capability icons; only their frames use ATHRTY geometry. */
body .x5-home .x4100-product-icon,
body .x4100-studio-product-icon {
  border-radius: 10px;
  border-color: var(--athrty-identity-edge);
  background-color: rgba(15,27,37,.56);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
@media (max-width: 480px) {
  body header :is(.xm-brandmark, .mp-brand-icon, .identity-mark),
  body header :is(a.brand, a.identity, .wordmark, .brand) > :is(.logo, .monogram, .mark, .brand-mark) {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  body .xm-art-letter { max-width: 68%; max-height: 66%; }
}
@media (forced-colors: active) {
  body :is(.x1140-profile-mark, .x1124-boot-mark, .x1124-route-monogram),
  body header :is(.xm-brandmark, .mp-brand-icon, .identity-mark),
  body header :is(a.brand, a.identity, .wordmark, .brand) > :is(.logo, .monogram, .mark, .brand-mark) {
    forced-color-adjust: none;
    border-color: CanvasText !important;
  }
}