/* API Token Router — small behavioural layer on top of the frozen upstream CSS */
.atr-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fffefb;
  overflow: auto;
  padding: 0 20px 32px;
}
.atr-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.atr-sheet-head .top-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary, #14110f);
  font-weight: 700;
}
.atr-sheet-head img {
  height: 26px;
  width: auto;
}
.atr-sheet-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-primary, #14110f);
}
.atr-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}
.atr-sheet-body a {
  padding: 12px 8px;
  color: var(--text-primary, #14110f);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(20, 17, 15, 0.08);
}
.atr-sheet-auth {
  margin-top: 12px;
  font-weight: 600;
}
.atr-sheet-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.atr-sheet-langs button {
  border: 1px solid rgba(20, 17, 15, 0.16);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}
/* the frozen rule caps the wordmark at 6.6em and clips "Router"; the brand
   only collapses while the nav is in its scrolled/floating state */
.brand .brand-name,
.nav-pill .brand .brand-name {
  max-width: none !important;
}
.nav-pill.floating .brand .brand-name {
  max-width: 0 !important;
}
.nav-pill .brand {
  flex: none;
  white-space: nowrap;
}
/* the "one-click setup" tag is a hover hint upstream; the frozen markup
   leaves it pinned over the button at all times */
.nav-download-btn .nav-tag {
  opacity: 0 !important;
  transform: translateY(2px);
  transition: opacity .16s ease, transform .16s ease;
}
.nav-download-btn:hover .nav-tag,
.nav-download-btn:focus-visible .nav-tag {
  opacity: 1 !important;
  transform: none;
}
/* a signed-out visitor gets the black "get started" button; the bell must
   stay visible next to it (the frozen rule hides the bell in that case) */
.home-baseten-root .actions:has(.login-btn) .lang-btn[data-announcement-bell] {
  display: inline-flex !important;
}
.atr-login-btn {
  display: inline-flex;
  height: 36px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border-radius: var(--corner, 8px);
  background: var(--nav-ink, #14110f);
  color: var(--stage-bg, #fffefb);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .14s ease;
}
.atr-login-btn:hover { opacity: .9; }
.atr-login-btn[hidden] { display: none; }
/* content pages: the auth slot becomes the same solid button */
.top-nav-auth-skeleton:not([hidden]) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #14110f;
  color: #fffefb;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
/* public upstream status link in the footer */
.fc-endrow .atr-up-link {
  margin-right: 18px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  opacity: .72;
}
.fc-endrow .atr-up-link:hover { opacity: 1; text-decoration: underline; }
/* mark used inside the routing hub and footer */
img.atr-mark-inline {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.route-node.hub .hub-core img.atr-mark-inline { width: 52px; height: 52px; }
.fc-brand .b img.atr-mark-inline { width: 21px; height: 22px; flex: none; }
/* upstream injects a referral sticker into the footer at runtime; it carries
   the upstream brand, so the mirror never shows it */
.fc-float { display: none !important; }
/* pricing cards get the upstream "quick access" action */
.pf-card .pf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: #14110f;
  color: #fffefb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s ease;
}
.pf-card .pf-cta:hover { opacity: .88; }
.price-featured .pf-card { display: flex; flex-direction: column; }
.price-featured .pf-card .pf-prices { flex: 1; }
/* solid "all prices" button instead of the dashed fold control */
.pricing .price-toggle-row .price-toggle,
#priceToggle {
  background: #14110f;
  color: #fffefb;
  border: 1px solid #14110f;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
}
/* live discounts */
.lm-pill .cur { font-variant-numeric: tabular-nums; }
.lm-pill.is-on { outline: 2px solid var(--ink, #14110f); outline-offset: -2px; }
.lc2-px svg .lc-area { opacity: .16; }
.lc2-px svg .lc-line { fill: none; stroke: #2f6df6; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.lc2-px svg .lc-avg { fill: none; stroke: #9a9a9a; stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.lc2-px svg .lc-dot { fill: #2f6df6; }
.lc2-axis { display: flex; align-items: center; justify-content: space-between; }
.lc2-axis span { position: static !important; transform: none !important; font-variant-numeric: tabular-nums; }
/* leaderboard bars */
.lb-plot .lb-col { position: relative; }
.lb-plot .lb-seg { min-height: 1px; }
.lb-plot .lb-col:hover .lb-seg { filter: brightness(1.05); }
.lb-uhd-n b { font-variant-numeric: tabular-nums; }
/* model metrics */
.pmc-sla-bucket.is-ok { background: #2f9e62; }
.pmc-sla-bucket.is-warn { background: #d9a128; }
.pmc-sla-bucket.is-bad { background: #cf4b3f; }
.pmc-sla-bucket.is-empty { background: rgba(20, 17, 15, .1); }
/* announcement center dialog + support card */
.atr-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 10, 8, .42);
  backdrop-filter: blur(3px);
}
.atr-modal[hidden] { display: none; }
.atr-modal-card {
  width: min(560px, 100%);
  max-height: min(76vh, 640px);
  overflow: auto;
  background: #fffefb;
  color: #14110f;
  border-radius: 16px;
  box-shadow: 0 28px 80px -20px rgba(20, 17, 15, .45);
  padding: 22px 22px 18px;
}
.atr-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.atr-modal-head h2 { margin: 0; font-size: 18px; }
.atr-modal-close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #14110f; }
.atr-ann-list { list-style: none; margin: 14px 0 0; padding: 0; }
.atr-ann-list li { padding: 12px 0; border-top: 1px solid rgba(20, 17, 15, .1); }
.atr-ann-list b { display: block; font-size: 15px; margin-bottom: 4px; }
.atr-ann-list p { margin: 0; font-size: 14px; color: #4d4842; line-height: 1.6; }
.atr-ann-list time { display: block; margin-top: 6px; font-size: 12px; color: #8a837a; }
.atr-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 140px;
  border-radius: 14px;
  background: #fffefb;
  box-shadow: 0 18px 48px -16px rgba(20, 17, 15, .35), inset 0 0 0 1px rgba(20, 17, 15, .08);
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #4d4842;
}
.atr-support img { display: block; width: 100%; height: auto; border-radius: 6px; }
.atr-support p { margin: 8px 0 0; line-height: 1.5; }
.atr-support button {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: transparent;
  color: #8a837a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.atr-support[hidden] { display: none; }
@media (max-width: 720px) {
  .atr-support { display: none; }
}
/* old-site info pages (pricing / leaderboard / status) clear the fixed header */
main.ip-main {
  padding-top: 124px;
}
@media (max-width: 640px) {
  main.ip-main {
    padding-top: 100px;
  }
}
html.atr-sheet-open,
html.atr-sheet-open body {
  overflow: hidden;
}
/* ---- /models plaza runtime popovers ---------------------------------- */
.atr-mpop {
  position: fixed;
  z-index: 90;
  background: #fffefb;
  border: 1px solid rgba(20, 17, 15, 0.12);
  box-shadow: 0 12px 30px rgba(20, 17, 15, 0.14);
  overflow-y: auto;
  padding: 6px;
}
.atr-mpop[hidden] { display: none; }
.atr-mpop [role="option"] {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #14110f;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.atr-mpop [role="option"]:hover { background: rgba(20, 17, 15, 0.04); }
.atr-mcount {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  background: #222222;
  color: #fff;
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.atr-mcount[hidden] { display: none; }

/* ---- docs vendor picker ---------------------------------------------- */
.atr-docmenu {
  position: fixed;
  z-index: 80;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 14px;
  background: #fffefb;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.05), 0 16px 40px -12px rgba(18, 18, 18, 0.18);
}
.atr-docmenu-opt {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #14110f;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.atr-docmenu-opt:hover { background: rgba(246, 246, 246, 0.7); }
.atr-docmenu-opt.is-on { background: #fff7f3; box-shadow: inset 0 0 0 1px rgba(208, 36, 15, 0.08); }
