/* Customer account area - rides tokens.css + main.css.
   2026-07-19 console restyle: the account now speaks the APPLICATION's
   design language - flat white panels on the steel-tinted ground, 1px
   hairlines, 8-14px radii, quiet shadows - rather than the marketing
   site's clay. Selectors kept from earlier versions so every account page
   continues to work. */

/* The console bar's own height. main.css re-tokens --header-h to 0 on
   phones for the marketing chrome; the account bar keeps its size on every
   screen, so it carries its own variable. */
:root { --abar-h: 64px; }

.account-body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: #f5f7f9;
  padding-top: calc(var(--abar-h) + 26px);
  position: relative; isolation: isolate;
}
/* the auth-zone registration pattern stays, quieter, top-right */
.account-body::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -140px; right: -160px; width: min(42vw, 480px); aspect-ratio: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cpath%20d='M60%2054v12M54%2060h12'%20stroke='%23225479'%20stroke-opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(rgba(34, 84, 121, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 84, 121, .05) 1px, transparent 1px);
  background-size: 120px 120px, 20px 20px, 20px 20px;
  background-position: 0 0, .5px .5px, .5px .5px;
  -webkit-mask-image: radial-gradient(closest-side, #000 16%, transparent 97%);
          mask-image: radial-gradient(closest-side, #000 16%, transparent 97%);
}

/* ---------- the bar: a console top bar, flat and exact ---------- */
.account-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(22, 33, 43, .04);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .account-bar { background: #ffffff; }
}
.account-bar-in { max-width: 1010px; margin: 0 auto; padding: 0 20px;
  height: var(--abar-h); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; }
.account-brand { display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; flex: none; }
.account-brand:hover { text-decoration: none; }
/* the area tag: a proper bordered chip on the brand row, not floating type */
.account-mark-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 3.5px 8px; background: #fff; line-height: 1;
}
.account-nav { display: flex; align-items: center; gap: 17px; font-size: 13.5px;
  min-width: 0; overflow-x: auto; scrollbar-width: none; }
.account-nav::-webkit-scrollbar { display: none; }
.account-nav a { color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: .4em 0; border-bottom: 2px solid transparent; }
.account-nav a:hover { color: var(--ink); }
.account-nav a.is-here { color: var(--ink); border-bottom-color: var(--brand); }
.account-ext { font-size: .82em; margin-left: .28em; color: var(--faint); }
/* the way home: an arrowed, slightly set-apart door back to the site */
.account-site-link { display: inline-flex; align-items: center; gap: .38em;
  color: var(--brand) !important; border-left: 1px solid var(--line);
  padding-left: 16px !important; }
.account-site-link span { color: var(--copper); }
.account-site-link:hover { color: var(--brand-deep, var(--brand)) !important; }
.account-signout button { border: 0; background: none; font: inherit;
  color: var(--muted); cursor: pointer; padding: 0; white-space: nowrap; }
.account-signout button:hover { color: var(--ink); }

/* ---------- naming a fresh deployment: payment first, address after ------ */
.account-naming { margin: .2rem 0 1.1rem; padding: 14px 16px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 10px; background: #f8fafc; }
.account-naming label { display: block; font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.account-naming .subdomain-row { max-width: 30rem; margin-bottom: 10px; }
.account-naming__hint { margin: 9px 0 0; font-size: 12.5px;
  color: var(--faint); line-height: 1.5; }
@media (max-width: 700px) {
  .account-naming .subdomain-row { flex-wrap: wrap; }
  .account-naming .subdomain-suffix { border-left: 1px solid var(--line-strong);
    border-top: 0; border-radius: 0 0 8px 8px; width: 100%; }
  .account-naming .subdomain-row input { border-radius: 8px 8px 0 0; width: 100%; }
}
@media (max-width: 700px) {
  .account-mark-tag { display: none; }
  .account-nav { gap: 13px; font-size: 13px; }
  .account-site-link { padding-left: 12px !important; }
}

.account-main { flex: 1; width: 100%; max-width: 1010px; margin: 0 auto;
  padding: 30px 20px 70px; }
.account-wrap h1 { font-size: clamp(1.55rem, 3.1vw, 1.9rem); font-weight: 640;
  letter-spacing: -.022em; margin: 0 0 1rem; }
.account-wrap .head-rule { margin-bottom: .9rem; }
.account-wrap--narrow { max-width: 680px; }
.account-back { margin: 0 0 1rem; font-size: 13.5px; }
.account-back a { color: var(--muted); }
.account-back a:hover { color: var(--brand); }
.account-sub { color: var(--muted); margin: -0.35rem 0 1.5rem; max-width: 44rem;
  line-height: 1.65; }
.account-sub a { color: var(--brand); }

/* ---------- panels: the application's flat card ---------- */
.account-card {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 33, 43, .04), 0 8px 22px -18px rgba(22, 33, 43, .18);
  padding: 20px 22px; margin-bottom: 16px;
}
.account-card--narrow { max-width: 440px; margin: 7vh auto; padding: 26px 28px; }
.account-card h1 { font-size: 1.35rem; font-weight: 640; letter-spacing: -.018em;
  margin: 0 0 .5rem; }
.account-card h2 { font-size: .98rem; margin: 0 0 .85rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  letter-spacing: -.008em; font-weight: 640; }
.account-card h3 { font-size: .92rem; font-weight: 640; letter-spacing: -.005em;
  margin: 1.5rem 0 .5rem; }
.account-card h3:first-of-type { margin-top: 0; }
/* settings forms: the action row is a full-width row of its own - a bare
   button cell used to land in column 2, BESIDE an input or the newsletter
   checkbox (founder: "buttons in the wrong place", 2026-07-20) */
.account-card .form-grid .check-row,
.account-card .form-grid .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-card-head { display: flex; align-items: baseline;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-price { color: var(--muted); font-size: 13.5px; }

.account-chip { font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2.5px 9px; border-radius: 999px; background: #edf1f4;
  color: var(--muted); }
.account-chip--active { background: #e6f1ea; color: #1f6b4b; }
.account-chip--open, .account-chip--in_progress { background: var(--brand-wash-2);
  color: var(--brand); }
.account-chip--suspended, .account-chip--past_due, .account-chip--unpaid,
.account-chip--canceled, .account-chip--revoked { background: #f8f0dc; color: #8f5f0e; }

.account-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px; margin: 0 0 1rem; }
.account-facts div { min-width: 0; }
.account-facts dt { font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 2px; }
.account-facts dd { margin: 0; font-size: 14px; overflow: hidden;
  text-overflow: ellipsis; }
.account-facts dd a { color: var(--brand); }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-note { color: var(--muted); font-size: 13.5px; max-width: 46rem;
  line-height: 1.6; }
.account-note a { color: var(--brand); }
.account-aside { margin-top: 1.1rem; font-size: 13.5px; color: var(--muted); }
.account-aside a { color: var(--brand); }
.account-welcome { margin-bottom: 1.4rem; }

.btn--sm { font-size: .86rem; padding: .5em .95em; }

.account-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-table th { text-align: left; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); padding: 6px 10px;
  border-bottom: 1px solid var(--line); }
.account-table td { padding: 10px; border-bottom: 1px solid var(--line-soft, var(--line)); }
.account-table td a { color: var(--brand); }
.account-table tr:last-child td { border-bottom: 0; }
.account-table tbody tr:hover td { background: #f8fafb; }

/* ---------- overview: the stat strip + the doors ---------- */
.account-stats { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 0 0 18px; }
.account-stat { border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 12px 14px 11px;
  box-shadow: 0 1px 2px rgba(22, 33, 43, .03); min-width: 0; }
.account-stat b { display: block; font-size: 1.25rem; font-weight: 650;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.account-stat b a { color: inherit; text-decoration: none; }
.account-stat b a:hover { color: var(--brand); }
.account-stat span { display: block; font-family: var(--font-mono);
  font-size: 9.8px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-stat--warn b { color: #8f5f0e; }
.account-stat--over b { color: var(--danger, #b03a33); }

/* the doors when nothing runs yet: four clear next steps */
.account-doors { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin: 0 0 18px; }
.account-door { display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 16px 17px 15px; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 33, 43, .04);
  transition: border-color .15s ease, box-shadow .15s ease; }
.account-door:hover { text-decoration: none; border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(22, 33, 43, .04), 0 0 0 1px var(--brand); }
.account-door b { font-size: .95rem; font-weight: 640; letter-spacing: -.008em;
  display: flex; align-items: center; gap: .5em; }
.account-door b i { font-style: normal; color: var(--copper); }
.account-door span { font-size: 12.8px; color: var(--muted); line-height: 1.5; }
.account-door--lead { border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 1px 2px rgba(22, 33, 43, .04); }

/* ---------- the auth screens: the application's sign-in card ---------- */
.auth-stage { flex: 1; display: grid; place-items: center; padding: 4vh 0 6vh; }
.auth-card { width: min(400px, 100%); background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(22, 33, 43, .05), 0 18px 44px -24px rgba(22, 33, 43, .25);
  padding: 28px 28px 24px; display: grid; gap: 14px; }
.auth-card .auth-mark { width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-soft, var(--line)); background: #fff;
  box-shadow: 0 1px 3px rgba(22, 33, 43, .07);
  display: grid; place-items: center; }
.auth-card .auth-mark img { width: 28px; height: 28px; }
.auth-card h1 { font-size: 1.3rem; font-weight: 660; letter-spacing: -.02em;
  margin: 2px 0 0; }
.auth-card .auth-sub { color: var(--muted); font-size: 13.5px; line-height: 1.55;
  margin: -8px 0 0; }
.auth-card .form-grid { display: grid; gap: 13px; margin: 0;
  grid-template-columns: minmax(0, 1fr); }
.auth-card .form-grid .field { grid-column: 1 / -1; }
.auth-card .field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-reveal { display: grid; gap: 13px; }
.auth-reveal.is-hidden { display: none; }
.auth-pass-row { display: flex; align-items: baseline;
  justify-content: space-between; gap: 10px; }
.auth-pass-row a { font-size: 12px; color: var(--brand); }
/* "or" between Google and email */
.auth-or { display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px;
  background: var(--line); }
.btn--google { display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  background: #fff; color: var(--ink); border: 1px solid var(--line-strong);
  font-weight: 600; }
.btn--google:hover { border-color: var(--brand); background: #f8fafc;
  color: var(--ink); }
/* the second door: creating an account is a real button, not a footnote */
.auth-alt { border-top: 1px solid var(--line); padding-top: 16px;
  display: grid; gap: 9px; }
.auth-alt p { margin: 0; font-size: 12.8px; color: var(--muted); text-align: center; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--muted);
  margin: 2px 0 0; }
.auth-foot a { color: var(--brand); }
.auth-legal { font-size: 12px; color: var(--faint); line-height: 1.55; margin: 0; }
.auth-legal a { color: var(--brand); }
/* the human check keeps out of the card: parked bottom-right, still inside
   the form so its token posts with it */
.turnstile-corner { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
@media (max-width: 480px) {
  .turnstile-corner { position: static; margin-top: 4px; }
}

/* ---------- the document desk (flattened; folded corner kept) ---------- */
.doc-desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-bottom: 18px; }
.doc-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .45rem;
  border-radius: 4px 14px 12px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 33, 43, .04), 0 10px 24px -20px rgba(22, 33, 43, .2);
  padding: 18px 20px 16px;
}
.doc-tile::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 22px; height: 22px;
  background: linear-gradient(225deg, transparent 48%, #dde6ed 50%, #eef3f7 100%);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 8px;
}
.doc-tile.is-hot { border-color: rgba(208, 133, 66, .55);
  box-shadow: 0 0 0 3px var(--copper-wash-2), 0 1px 2px rgba(22, 33, 43, .04); }
.doc-tile__meta { display: flex; align-items: center; gap: .7rem; }
.doc-tile__kind { font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.doc-tile h2 { font-size: 1rem; font-weight: 620; letter-spacing: -.01em;
  margin: 0; }
.doc-tile > p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.doc-tile__read { font-size: .82rem; }
.doc-tile__read a { color: var(--brand); }
.doc-tile__foot { margin-top: auto; padding-top: .85rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.doc-tile__form { display: grid; gap: .7rem; width: 100%; }
.doc-tile__form .field textarea { min-height: 3.6rem; }
.doc-tile__form .btn { justify-self: start; }
.doc-tile__opt { text-transform: none; letter-spacing: 0; color: var(--faint); }
.doc-tile__thread { font-family: var(--font-mono); font-size: .72rem;
  color: var(--brand); white-space: nowrap; }
.doc-other { margin-top: 4px; }
@media (max-width: 760px) { .doc-desk { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ticket threads: the product's chat idiom, flattened ---------- */
.ticket-msg {
  position: relative; max-width: 86%;
  margin: 0 0 12px; padding: 11px 15px;
  margin-left: auto;
  border-radius: 12px 12px 4px 12px;
  background: #e8f0f7;
  border: 1px solid rgba(34, 84, 121, .1);
}
.ticket-msg--naxis {
  margin-left: 0; margin-right: auto;
  border-radius: 12px 12px 12px 4px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.ticket-who { font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.ticket-msg--naxis .ticket-who { color: var(--brand); }
.ticket-body { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- team (workspace) ---------- */
.team-row { display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft, var(--line)); }
.team-row:last-child { border-bottom: 0; }
.team-row b { font-size: 14px; font-weight: 600; }
.team-row .mono { font-size: 12px; color: var(--muted); }
.team-row form { margin-left: auto; }
.team-badge { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
  border: 1px solid var(--brand-wash-2); background: var(--brand-wash);
  border-radius: 6px; padding: 2.5px 7px; }
.team-badge--pending { color: var(--copper); border-color: var(--copper-wash-2);
  background: #fdf7f1; }
.btn-link { border: 0; background: none; font: inherit; font-size: 13px;
  color: var(--brand); cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-link--danger { color: var(--danger, #b03a33); }

.account-foot { max-width: 1010px; margin: 0 auto; width: 100%;
  padding: 18px 20px 26px; display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--faint); border-top: 1px solid var(--line); }
.account-foot a { color: var(--faint); }
.account-foot a:hover { color: var(--brand); }

/* plan switcher (billing page) */
.plan-switch { display: grid; gap: 10px; }
.plan-switch-opt { display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  cursor: pointer; background: #fff; }
.plan-switch-opt.current { border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand); }
.plan-switch-opt input { margin-top: 3px; accent-color: var(--brand); }
.plan-switch-body small { display: block; color: var(--muted); margin-top: 2px; }
.plan-switch-foot { display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-top: 4px; }
.hint-line { font-size: 12.5px; color: var(--muted); max-width: 34rem; }
