/* Marketing chrome + AA contrast for account, signup, reset, and invite pages.
   Linked after style.css so nav/footer/announce pick up Graphite layout, and
   so login-card text stays ink/secondary on light surfaces. */

html,
html[data-theme="system"],
html[data-theme="light"] {
  --fg: #1D1D1F;
  --fg-bright: #1D1D1F;
  --fg-dim: #6E6E73;
  --fg-muted: #6E6E73;
  --ink: #1D1D1F;
  --ink2: #6E6E73;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --fg: #1D1D1F;
    --fg-bright: #1D1D1F;
    --fg-dim: #6E6E73;
    --fg-muted: #6E6E73;
  }
}

body.account-app .auth-card h2,
body.account-app .auth-card .ah .nm,
body.account-app .checkout-card h2,
body.account-app .checkout-card .ah .nm,
body.account-app .auth-card .nm {
  color: #1D1D1F;
}
body.account-app .auth-card p.lead,
body.account-app .auth-row label,
body.account-app .auth-card a.forgot,
body.account-app .auth-tabs button,
body.account-app .checkout-card p.lead,
body.account-app .field label {
  color: #6E6E73;
}
body.account-app .auth-tabs button.active {
  color: #FFFFFF;
  background: #1D1D1F;
}

/* Inline account CSS used an unscoped .brand for the logged-in sidebar.
   Keep that off the marketing nav and footer. */
body.account-app > .nav-wrap .brand,
body.account-app > footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin: -6px;
  border-bottom: 0;
  text-decoration: none;
  color: #1D1D1F;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
/* Phone nav puts the hamburger on the right with .nav .brand { margin-right: auto }.
   The margin reset above is more specific and was packing Sign in, Get started,
   and the menu button against the wordmark, so a tap on the right (where the
   button sits on every other page) missed it. */
@media (max-width: 860px) {
  body.account-app > .nav-wrap .nav .brand { margin-right: auto; }
}
body.account-app > .nav-wrap .brand img,
body.account-app > footer .brand img {
  width: 24px;
  height: 24px;
  border-radius: 0;
}
/* Header/footer octopus matches the marketing site: coral mark-dark on light chrome.
   The old unscoped .mark-dark { display:none } left both marks hidden in the nav,
   because style.css already hides .mark-light there. */
body.account-app > .nav-wrap .brand .mark-light,
body.account-app > footer .brand .mark-light { display: none; }
body.account-app > .nav-wrap .brand .mark-dark,
body.account-app > footer .brand .mark-dark { display: block; }
body.account-app .blk .brand .mark-light { display: none; }
body.account-app .blk .brand .mark-dark { display: block; }

/* Logged-in sidebar brand stays the dashboard treatment. */
body.account-app #app .side .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  margin: 0;
  border-bottom: 1px solid var(--border, #D2D2D7);
  font-size: 17px;
}
body.account-app #app .side .brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

/* Do not paint a black tile behind the octopus on auth pages. */
body.account-app .logo,
body.account-app .brand .mark,
body.account-app img.mark {
  background: none !important;
  box-shadow: none !important;
  color: inherit;
}
body.account-app .logo {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
body.account-app .logo img,
body.account-app .ah img {
  width: 40px;
  height: 40px;
  background: none !important;
}

/* Auth body typography should not inherit cramped marketing h1 tracking. */
body.account-app main h1,
body.account-app main h2,
body.account-app .auth-card h2,
body.account-app .card h2,
body.account-app .welcome-card h1 {
  color: #1D1D1F;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
body.account-app main .sub,
body.account-app main .hint,
body.account-app main .lead,
body.account-app .card p,
body.account-app .auth-card p.lead {
  color: #6E6E73;
}
body.account-app .msg.err,
body.account-app .auth-msg.err {
  color: #9B2C1E;
}
body.account-app main > .wrap,
body.account-app main .wrap.auth,
body.account-app main .page {
  max-width: 520px;
}

/* Leftover in-page tagline, if any remains, stays hidden. */
body.account-app > .foot.ui { display: none !important; }
