/* ============================================================================
   HireJuno — css/account.css
   The AUTH + ACCOUNT surface: login, signup, forgot/reset password, the OAuth
   callback, and the signed-in account area (/dashboard, /account).

   Loaded AFTER /css/brand.css, which owns the tokens and the shared primitives
   (.btn, .card, .input, .badge, .navbar, .footer). Nothing here redefines a
   brand primitive; it adds the surface-level layout, the header account
   control, and the motion these pages need.

   Three things this file is deliberately responsible for:

     1. THE WAY IN. `.hj-acct` is the header account control — a "Sign in"
        button when signed out, an avatar menu when signed in. It lives as a
        direct child of `.navbar__inner`, NOT inside `#navLinks`, so it stays
        visible on mobile where the nav list collapses behind the hamburger. A
        sign-in affordance that disappears at 375px is not an affordance.

     2. CONTAINER DISCIPLINE. Account content is capped at `--hja-measure`
        (1120px) and the reading columns inside it are capped again, because a
        1440px-wide paragraph is the single loudest "this is an internal admin
        tool" signal a consumer account can send.

     3. DARK MODE. brand.css is light-only. These are the pages a customer
        opens at 11pm on a phone, so the token palette is re-declared under
        `prefers-color-scheme: dark` and the handful of brand.css rules that
        hard-code a light value are corrected. Everything else inherits,
        because brand.css is token-driven throughout.

   Motion budget: 150–300ms, transform/opacity only, and every animation is
   disabled under `prefers-reduced-motion`.
   ========================================================================== */

:root {
  --hja-measure: 1120px;   /* account content cap */
  --hja-read:    62ch;     /* prose cap inside a card */
  --hja-side:    244px;    /* account sidebar width */
  --hja-ease:    cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------------
   1. Dark scheme

   css/tokens.css owns the platform's dark palette and loads AFTER this file,
   so on any page that includes it (all of them, per the load order above) its


/* Sign-in: a real button, not a nav link buried among eight others. */
.hj-acct__signin {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink); text-decoration: none !important;
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--paper);
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s var(--hja-ease), color .18s var(--hja-ease),
              transform .18s var(--hja-ease), box-shadow .18s var(--hja-ease);
}
.hj-acct__signin svg { width: 17px; height: 17px; flex: none; }
.hj-acct__signin:hover {
  border-color: var(--juno-green); color: var(--juno-green-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.hj-acct__signin:active { transform: translateY(0); }

/* Signed in: avatar + first name + caret. */
.hj-acct__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink); cursor: pointer; max-width: 210px;
  transition: border-color .18s var(--hja-ease), box-shadow .18s var(--hja-ease),
              transform .18s var(--hja-ease);
}
.hj-acct__btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.hj-acct__btn:active { transform: translateY(0); }
.hj-acct__btn[aria-expanded="true"] { border-color: var(--juno-green); }
.hj-acct__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hj-acct__caret { width: 15px; height: 15px; flex: none; color: var(--ink-faint); transition: transform .2s var(--hja-ease); }
.hj-acct__btn[aria-expanded="true"] .hj-acct__caret { transform: rotate(180deg); }

.hj-acct__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--juno-green); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .02em;
}
.hj-acct__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hj-acct__avatar--lg { width: 42px; height: 42px; font-size: .95rem; }

/* The menu. Hidden with the `hidden` attribute so it is inert for AT too. */
.hj-acct__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 220;
  width: 268px; padding: var(--s-2);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: hjaMenuIn .16s var(--hja-ease) both;
}
.hj-acct__menu[hidden] { display: none; }
@keyframes hjaMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.hj-acct__head {
  display: flex; align-items: center; gap: 11px;
  padding: var(--s-3); margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.hj-acct__head > div { min-width: 0; }
.hj-acct__who {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hj-acct__mail {
  display: block; font-size: .8rem; color: var(--ink-faint); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hj-acct__menu a,
.hj-acct__menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px var(--s-3); border: none; border-radius: var(--r-sm);
  background: transparent; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: .93rem;
  color: var(--ink); text-decoration: none !important; cursor: pointer;
  transition: background .15s var(--hja-ease), color .15s var(--hja-ease);
}
.hj-acct__menu a svg,
.hj-acct__menu button svg { width: 18px; height: 18px; flex: none; color: var(--ink-faint); }
.hj-acct__menu a:hover,
.hj-acct__menu button:hover { background: var(--sand); color: var(--juno-green-dark); }
.hj-acct__menu a:hover svg,
.hj-acct__menu button:hover svg { color: var(--juno-green); }
.hj-acct__sep { height: 1px; margin: var(--s-2) var(--s-3); background: var(--line); border: 0; }
.hj-acct__menu .hj-acct__out { color: var(--danger); }
.hj-acct__menu .hj-acct__out svg { color: var(--danger); }
.hj-acct__menu .hj-acct__out:hover { background: rgba(214, 69, 69, .10); color: var(--danger); }

/* Below the nav breakpoint the nav list collapses; the account control must
   not go with it, so it keeps its place in the bar next to the hamburger. */
@media (max-width: 880px) {
  .hj-acct { margin-left: auto; margin-right: var(--s-2); }
  .hj-acct__name { display: none; }
  .hj-acct__btn { padding: 5px; gap: 4px; }
  .hj-acct__signin { padding: 8px 14px; font-size: .88rem; }
  .hj-acct__menu { width: min(280px, calc(100vw - 32px)); }
}
@media (max-width: 380px) {
  .hj-acct__signin span { display: none; }
  .hj-acct__signin { padding: 9px 11px; }
  .hj-acct__signin svg { width: 19px; height: 19px; }
}

/* The auth pages use a stripped header with only a "back to site" link, so
   `.hj-acct` there sits beside it. */
.hja-navlinks { display: flex; align-items: center; gap: var(--s-4); }
.hja-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink-soft); text-decoration: none !important;
  transition: color .15s var(--hja-ease);
}
.hja-back:hover { color: var(--juno-green-dark); }
.hja-back svg { width: 17px; height: 17px; }
@media (max-width: 480px) { .hja-back span { display: none; } }

/* ---------------------------------------------------------------------------
   3. Auth surface

   Two columns from 1000px: the form card and a plain-language reason to make
   an account. DOM order is CARD FIRST (so the H1 leads the document and a
   phone shows the form without scrolling), with the pitch reordered to the
   left visually.
   ------------------------------------------------------------------------- */
.hja-auth {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  padding: var(--s-6) var(--s-4) var(--s-8);
  background:
    radial-gradient(110% 55% at 50% -10%, var(--juno-green-tint) 0%, rgba(233, 245, 236, 0) 62%),
    var(--cream);
}
.hja-auth__inner {
  width: 100%; max-width: 1000px; margin: 0 auto;
  display: grid; gap: var(--s-6); align-items: center;
}
@media (min-width: 1000px) {
  .hja-auth { padding-block: var(--s-8); }
  .hja-auth__inner { grid-template-columns: 1fr 440px; gap: var(--s-8); }
  .hja-auth__card { order: 2; }
  .hja-auth__pitch { order: 1; }
}

/* — the card — */
.hja-auth__card {
  width: 100%; max-width: 460px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: var(--s-5);
}
@media (min-width: 480px) { .hja-auth__card { padding: var(--s-6) var(--s-7) var(--s-7); } }

.hja-auth__head { text-align: center; margin-bottom: var(--s-5); }
.hja-auth__mark {
  width: 52px; height: 52px; margin: 0 auto var(--s-4);
  border-radius: var(--r-lg); display: grid; place-items: center;
  background: var(--juno-green-tint); color: var(--juno-green);
}
.hja-auth__mark svg { width: 26px; height: 26px; }
.hja-auth__mark--danger { background: rgba(214, 69, 69, .12); color: var(--danger); }
.hja-auth__head h1,
.hja-auth__head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 1.7rem); line-height: 1.2;
  letter-spacing: -.015em; margin: 0 0 7px; color: var(--ink);
}
.hja-auth__head p { color: var(--ink-soft); margin: 0; font-size: .96rem; line-height: 1.5; }

/* — the pitch column — */
.hja-pitch { max-width: 460px; }
@media (min-width: 1000px) { .hja-pitch { max-width: 470px; } }
.hja-pitch__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--juno-green-dark); margin: 0 0 var(--s-3);
}
.hja-pitch__eyebrow svg { width: 15px; height: 15px; }
.hja-pitch h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 var(--s-4);
}
.hja-pitch > p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 var(--s-5); max-width: 46ch; }

.hja-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.hja-benefits li { display: flex; align-items: flex-start; gap: var(--s-3); }
.hja-benefits__ico {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--juno-green); box-shadow: var(--shadow-sm);
}
.hja-benefits__ico svg { width: 18px; height: 18px; }
.hja-benefits b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .97rem; color: var(--ink); margin-bottom: 2px;
}
/* Scoped to the TEXT wrapper, not to every descendant span. A bare
   `.hja-benefits span` (0,1,1) outranks `.hja-benefits__ico` (0,1,0) and would
   force display:block onto the icon, collapsing its grid centering — so the
   markup would have had to work around the stylesheet. */
.hja-benefits li > div > span { display: block; font-size: .89rem; color: var(--ink-soft); line-height: 1.5; }

.hja-pitch__trust {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line);
}
.hja-pitch__trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 500; color: var(--ink-faint);
}
.hja-pitch__trust svg { width: 15px; height: 15px; color: var(--juno-green); }
@media (max-width: 999px) {
  .hja-pitch { margin: 0 auto; }
  .hja-pitch h2 { font-size: 1.35rem; }
  .hja-pitch__trust { justify-content: center; }
  .hja-pitch > p { margin-inline: auto; }
  .hja-pitch__eyebrow, .hja-pitch h2 { text-align: center; width: 100%; justify-content: center; }
  .hja-pitch h2, .hja-pitch > p { text-align: center; }
}

.hja-auth__fine {
  text-align: center; margin: var(--s-5) auto 0; max-width: 380px;
  font-size: .8rem; line-height: 1.55; color: var(--ink-faint);
}
.hja-auth__foot {
  text-align: center; margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 1px solid var(--line); font-size: .94rem; color: var(--ink-soft);
}
.hja-auth__foot a { font-weight: 600; }

/* — providers — */
.hja-oauth { display: grid; gap: var(--s-3); }
.hja-oauth__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: .97rem;
  color: var(--ink); cursor: pointer;
  transition: border-color .18s var(--hja-ease), box-shadow .18s var(--hja-ease),
              transform .18s var(--hja-ease);
}
.hja-oauth__btn:hover { border-color: var(--ink-faint); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.hja-oauth__btn:active { transform: translateY(0); }
.hja-oauth__btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.hja-oauth__btn svg { width: 19px; height: 19px; flex: none; }
/* .hja-oauth__btn sets display:inline-flex, which beats the UA sheet's
   [hidden]{display:none}. Without this the `hidden` attribute on the Apple
   button — the provider is disabled server-side — would do nothing. */
.hja-oauth__btn[hidden] { display: none; }

.hja-sep {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--ink-faint); font-size: .82rem; margin: var(--s-5) 0;
}
.hja-sep::before, .hja-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* — fields — */
.hja-field { margin-bottom: var(--s-4); }
.hja-field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .87rem; color: var(--ink); margin-bottom: 6px;
}
.hja-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.hja-field__row a { font-size: .83rem; font-weight: 600; }
.hja-field .input { width: 100%; }
.hja-field__hint { font-size: .81rem; color: var(--ink-faint); margin-top: 5px; }
.hja-field__error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .82rem; color: var(--danger); margin-top: 6px; font-weight: 500;
}
.hja-field__error svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.hja-field__error[hidden] { display: none; }

.hja-pw { position: relative; }
.hja-pw .input { padding-right: 48px; }
.hja-pw__toggle {
  position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: none; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-faint);
  transition: color .15s var(--hja-ease), background .15s var(--hja-ease);
}
.hja-pw__toggle:hover { color: var(--ink); background: var(--sand); }
.hja-pw__toggle svg { width: 19px; height: 19px; }

.hja-otp { letter-spacing: .48em; text-align: center; font-size: 1.25rem; font-family: var(--font-display); }

/* strength meter */
.hja-strength { margin-top: 9px; display: none; }
.hja-strength.is-on { display: block; }
.hja-strength__bar { height: 5px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.hja-strength__fill { height: 100%; width: 0; border-radius: var(--r-pill); transition: width .25s var(--hja-ease), background .25s var(--hja-ease); }
.hja-strength__label { font-size: .79rem; margin-top: 5px; color: var(--ink-faint); font-weight: 500; }
.hja-s-weak   { background: var(--danger); }
.hja-s-fair   { background: var(--warning); }
.hja-s-good   { background: var(--info); }
.hja-s-strong { background: var(--success); }

/* checkboxes */
.hja-check {
  display: flex; gap: 11px; align-items: flex-start; margin-bottom: var(--s-4);
  font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.hja-check input[type="checkbox"] {
  width: 19px; height: 19px; flex: none; margin-top: 1px;
  accent-color: var(--juno-green); cursor: pointer;
}
.hja-check label { cursor: pointer; }
.hja-check a { font-weight: 600; }
.hja-check.has-err label { color: var(--danger); }

/* alerts */
.hja-alert {
  display: none; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: .9rem; margin-bottom: var(--s-4); font-weight: 500; line-height: 1.5;
  animation: hjaAlertIn .2s var(--hja-ease) both;
}
.hja-alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.hja-alert.is-error   { display: flex; background: #FBE4E4; color: #A32F2F; }
.hja-alert.is-success { display: flex; background: var(--juno-green-tint); color: var(--juno-green-deep); }
.hja-alert.is-info    { display: flex; background: #E3EEFB; color: #1D5A9E; }
@keyframes hjaAlertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }


/* button loading state */
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: hjaSpin .7s linear infinite;
}
.btn--outline.is-loading::after,
.btn--ghost.is-loading::after { border-color: rgba(46, 139, 68, .3); border-top-color: var(--juno-green); }
@keyframes hjaSpin { to { transform: rotate(360deg); } }

.hja-spinner {
  width: 32px; height: 32px; margin: var(--s-4) auto 0;
  border: 3px solid var(--line); border-top-color: var(--juno-green);
  border-radius: 50%; animation: hjaSpin .7s linear infinite;
}

.hja-linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--juno-green-dark); font-family: var(--font-body);
  font-weight: 600; font-size: inherit;
}
.hja-linkbtn:hover { text-decoration: underline; }
.hja-linkbtn:disabled { color: var(--ink-faint); cursor: not-allowed; text-decoration: none; }

/* collapsible sub-panel (email code) */
.hja-panel { display: none; }
.hja-panel.is-open { display: block; animation: hjaPanelIn .22s var(--hja-ease) both; }
@keyframes hjaPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* multi-view auth pages (reset-password, signup success) */
.hja-view { display: none; }
.hja-view.is-on { display: block; }

/* ---------------------------------------------------------------------------
   4. Account shell

   A real account area: a persistent nav rail on desktop, a horizontally
   scrolling tab strip on mobile, and one capped content column. This is the
   structural answer to "it looks like an internal admin tool" — the tool had
   full-bleed stacked panels and no sense of place.
   ------------------------------------------------------------------------- */
.hja-page { background: var(--cream); padding-bottom: var(--s-8); }

.hja-wrap { width: 100%; max-width: var(--hja-measure); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 720px) { .hja-wrap { padding: 0 var(--s-5); } }

/* — page header — */
.hja-top { padding: var(--s-6) 0 var(--s-5); }
.hja-top__inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap;
}
.hja-top__head { min-width: 0; }
.hja-eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--juno-green-dark); margin: 0 0 var(--s-2);
}
.hja-top h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.15;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 6px;
}
.hja-top__sub { color: var(--ink-soft); margin: 0; font-size: .97rem; max-width: 56ch; line-height: 1.55; }
.hja-top__actions { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; min-width: 0; }

.hja-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  color: var(--ink-soft); max-width: 100%; min-width: 0;
}
.hja-pill svg { width: 15px; height: 15px; flex: none; }
.hja-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hja-pill--live { background: var(--juno-green-tint); border-color: rgba(46, 139, 68, .28); color: var(--juno-green-dark); }
.hja-pill--muted { background: var(--sand); border-color: var(--line-strong); }

/* — layout — */
.hja-shell { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1000px) {
  .hja-shell { grid-template-columns: var(--hja-side) minmax(0, 1fr); gap: var(--s-6); }
}
.hja-main { min-width: 0; display: grid; gap: var(--s-5); }

/* — nav rail / tab strip — */
.hja-nav { min-width: 0; }
.hja-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--s-2);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.hja-nav__list::-webkit-scrollbar { display: none; }
.hja-nav__list a {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 10px 15px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--ink-soft); text-decoration: none !important;
  border: 1px solid var(--line); background: var(--paper);
  transition: color .18s var(--hja-ease), background .18s var(--hja-ease),
              border-color .18s var(--hja-ease), transform .18s var(--hja-ease);
}
.hja-nav__list a svg { width: 17px; height: 17px; flex: none; color: var(--ink-faint); transition: color .18s var(--hja-ease); }
.hja-nav__list a:hover { color: var(--juno-green-dark); border-color: var(--line-strong); transform: translateY(-1px); }
.hja-nav__list a:hover svg { color: var(--juno-green); }
.hja-nav__list a[aria-current] {
  background: var(--juno-green); border-color: var(--juno-green); color: #fff;
  box-shadow: var(--shadow-sm);
}
.hja-nav__list a[aria-current] svg { color: #fff; }
.hja-nav__count {
  margin-left: 2px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--sand); color: var(--ink-faint);
  font-size: .72rem; font-weight: 700;
}
.hja-nav__list a[aria-current] .hja-nav__count { background: rgba(255, 255, 255, .22); color: #fff; }

@media (min-width: 1000px) {
  .hja-nav { position: sticky; top: 88px; }
  .hja-nav__list { flex-direction: column; gap: 3px; overflow: visible; }
  .hja-nav__list a {
    width: 100%; border-radius: var(--r-md);
    border-color: transparent; background: transparent;
  }
  .hja-nav__list a:hover { background: var(--paper); border-color: var(--line); transform: none; }
  .hja-nav__list a[aria-current] { background: var(--juno-green-tint); border-color: transparent; color: var(--juno-green-dark); box-shadow: none; }
  .hja-nav__list a[aria-current] svg { color: var(--juno-green); }
  .hja-nav__list a[aria-current] .hja-nav__count { background: rgba(46, 139, 68, .16); color: var(--juno-green-dark); }
  .hja-nav__foot {
    margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line);
  }
}
.hja-nav__foot { display: none; }
@media (min-width: 1000px) { .hja-nav__foot { display: block; } }

/* ---------------------------------------------------------------------------
   5. Cards, tiles, rows, empty states
   ------------------------------------------------------------------------- */
.hja-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: var(--s-5); scroll-margin-top: 96px;
}
@media (min-width: 720px) { .hja-card { padding: var(--s-5) var(--s-6); } }

.hja-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4);
}
.hja-card__head h2,
.hja-card__head h3 {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: -.01em; color: var(--ink);
}
.hja-card__head h2 svg,
.hja-card__head h3 svg { width: 19px; height: 19px; color: var(--juno-green); flex: none; }
.hja-card__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hja-card p { max-width: var(--hja-read); }

/* — hero card: the next booking — */
.hja-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--shadow-md);
  padding: var(--s-5);
}
@media (min-width: 720px) { .hja-hero { padding: var(--s-6); } }
.hja-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--juno-green) 0%, var(--juno-green-bright) 100%);
}
.hja-hero__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4);
}
.hja-hero__label {
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint);
  margin: 0 0 var(--s-2);
}
.hja-hero__svc {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.2;
  letter-spacing: -.015em; color: var(--ink); margin: 0;
}
.hja-hero__when { display: flex; align-items: center; gap: 8px; margin: var(--s-3) 0 0; color: var(--ink-soft); font-size: .95rem; }
.hja-hero__when svg { width: 17px; height: 17px; color: var(--juno-green); flex: none; }
.hja-hero__right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.hja-hero__amt { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.hja-hero__pro {
  display: flex; align-items: center; gap: 12px;
  padding: var(--s-4) 0; margin: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
}
.hja-hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hja-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
}
.hja-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hja-who { min-width: 0; }
.hja-who b { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); }
.hja-who span { display: block; font-size: .84rem; color: var(--ink-faint); margin-top: 2px; }
.hja-star { color: #E4A11B; display: inline-flex; }
.hja-star svg { width: 13px; height: 13px; }

/* — stat tiles — */
.hja-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 720px) { .hja-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
.hja-tile {
  display: block; text-decoration: none !important; color: inherit;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: var(--s-4); min-width: 0;
  transition: transform .2s var(--hja-ease), box-shadow .2s var(--hja-ease), border-color .2s var(--hja-ease);
}
@media (min-width: 720px) { .hja-tile { padding: var(--s-5); } }
a.hja-tile { cursor: pointer; }
a.hja-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
a.hja-tile:active { transform: translateY(0); }
.hja-tile__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.hja-tile__label {
  font-family: var(--font-display); font-weight: 600; font-size: .71rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hja-tile__ico {
  width: 30px; height: 30px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center;
  background: var(--juno-green-tint); color: var(--juno-green-dark);
}
.hja-tile__ico svg { width: 16px; height: 16px; }
.hja-tile__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 1.65rem); line-height: 1.1;
  color: var(--ink); letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hja-tile__sub { font-size: .8rem; color: var(--ink-faint); margin: 6px 0 0; line-height: 1.4; }

/* — key/value grid — */
.hja-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 560px) { .hja-kv { grid-template-columns: 1fr; gap: var(--s-3); } }
.hja-kv__k {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: .71rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 3px;
}
.hja-kv__v { color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }

/* — list rows — */
.hja-rows { display: grid; }
.hja-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: 14px 0; border-top: 1px solid var(--line); min-width: 0;
}
.hja-row:first-child { border-top: none; }
.hja-row__main { min-width: 0; display: flex; align-items: flex-start; gap: 11px; }
.hja-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--juno-green); flex: none; margin-top: 7px; }
.hja-row__dot--read { background: var(--line-strong); }
.hja-row__title { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .95rem; }
a.hja-row__title { text-decoration: none !important; transition: color .15s var(--hja-ease); }
a.hja-row__title:hover { color: var(--juno-green-dark); text-decoration: underline !important; }
.hja-row__sub { display: block; font-size: .83rem; color: var(--ink-faint); margin-top: 3px; overflow-wrap: anywhere; }
.hja-row__side { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.hja-row__amt { font-family: var(--font-display); font-weight: 800; color: var(--ink); white-space: nowrap; font-size: .95rem; }
a.hja-rowlink { display: block; text-decoration: none !important; color: inherit; }
a.hja-rowlink:hover .hja-row__title { color: var(--juno-green-dark); }
@media (max-width: 520px) {
  .hja-row { flex-wrap: wrap; gap: var(--s-2); }
  .hja-row__side { width: 100%; justify-content: flex-start; }
}

.hja-badge-muted { background: var(--sand); color: var(--ink-faint); }

/* — booking cards — */
.hja-jobs { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .hja-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hja-job {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4);
  transition: transform .2s var(--hja-ease), box-shadow .2s var(--hja-ease);
}
.hja-job:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hja-job__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.hja-job__top > div:first-child { min-width: 0; }
.hja-job__svc { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.hja-job__meta { font-size: .86rem; color: var(--ink-soft); margin: 5px 0 0; overflow-wrap: anywhere; }
.hja-job__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.hja-job__amt { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink); white-space: nowrap; }
.hja-job__pro { display: flex; align-items: center; gap: 11px; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.hja-job__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: auto; }

/* — empty states —
   Honest and actionable: what is missing, why, and the one thing to do next. */
.hja-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--paper); padding: var(--s-6) var(--s-5); text-align: center;
}
.hja-empty__ico {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto var(--s-3);
  display: grid; place-items: center;
  background: var(--juno-green-tint); color: var(--juno-green-dark);
}
.hja-empty__ico svg { width: 22px; height: 22px; }
.hja-empty__title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink); margin: 0 0 6px; }
.hja-empty p { color: var(--ink-soft); margin: 0 auto var(--s-4); font-size: .93rem; max-width: 44ch; line-height: 1.55; }
.hja-empty p:last-child { margin-bottom: 0; }
.hja-empty--inline { border: none; padding: var(--s-3) 0; text-align: left; }
.hja-empty--inline p { margin-inline: 0; }

.hja-note {
  margin: var(--s-4) 0 0; padding: 11px 14px; border-radius: var(--r-sm);
  background: #FDF3DC; color: #8A6200; font-size: .86rem; font-weight: 500; line-height: 1.5;
}

/* — banners — */
.hja-banner {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.hja-banner__ico {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; background: var(--sand); color: var(--ink-soft);
}
.hja-banner__ico svg { width: 19px; height: 19px; }
.hja-banner__body { min-width: 0; }
.hja-banner__body p { margin: 0; font-size: .93rem; line-height: 1.55; max-width: var(--hja-read); }
.hja-banner__body p + p { margin-top: 5px; }
.hja-banner__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.hja-banner__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); }
.hja-banner--info   { background: var(--sand); border-color: var(--line-strong); }
.hja-banner--live   { background: var(--juno-green-tint); border-color: rgba(46, 139, 68, .22); }
.hja-banner--live .hja-banner__ico { background: rgba(46, 139, 68, .16); color: var(--juno-green-dark); }
.hja-banner--danger { background: #FBE4E4; border-color: #F0C9C9; }
.hja-banner--danger .hja-banner__ico { background: #F7D2D2; color: #A32F2F; }


/* — sign-in prompt: the signed-out account view — */
.hja-gate {
  display: grid; gap: var(--s-5); align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  padding: var(--s-6) var(--s-5);
}
@media (min-width: 860px) {
  /* The second track is capped rather than `auto`: an `auto` track sizes to its
     longest checklist line and starved the copy column down to ~280px, which
     re-wrapped the paragraph every three words. */
  .hja-gate { grid-template-columns: minmax(22rem, 1.15fr) minmax(0, 1fr); gap: var(--s-7); padding: var(--s-7); }
}
.hja-gate h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 var(--s-3);
}
.hja-gate p { color: var(--ink-soft); margin: 0 0 var(--s-4); font-size: .97rem; line-height: 1.6; max-width: 52ch; }
.hja-gate__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hja-gate__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: 11px; }
.hja-gate__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--ink-soft); }
.hja-gate__list svg { width: 17px; height: 17px; color: var(--juno-green); flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   6. Skeletons + motion
   ------------------------------------------------------------------------- */
.hja-skel {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--paper) 0%, var(--sand) 50%, var(--paper) 100%);
  background-size: 300% 100%; animation: hjaShimmer 1.4s ease-in-out infinite;
}
.hja-skel--tile { height: 108px; }
.hja-skel--hero { height: 200px; }
.hja-skel--row  { height: 88px; }
.hja-skel--card { height: 150px; }
.hja-skel + .hja-skel { margin-top: var(--s-4); }
@keyframes hjaShimmer { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* Scroll/enter reveal. `.hja-reveal` starts hidden ONLY when JS is present to
   turn it on — the `.hja-js` class the hydrator sets on <html> — so a page
   with a script error is still fully readable rather than blank. */
.hja-js .hja-reveal { opacity: 0; transform: translateY(14px); }
.hja-js .hja-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .34s var(--hja-ease), transform .34s var(--hja-ease);
}

/* Focus visibility — brand.css does not set one for these controls. */
.hj-acct__btn:focus-visible,
.hj-acct__signin:focus-visible,
.hj-acct__menu a:focus-visible,
.hj-acct__menu button:focus-visible,
.hja-tile:focus-visible,
.hja-nav__list a:focus-visible,
.hja-oauth__btn:focus-visible,
.hja-pw__toggle:focus-visible,
.hja-linkbtn:focus-visible,
.hja-rowlink:focus-visible {
  outline: 3px solid var(--juno-green); outline-offset: 2px; border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  .hja-skel { animation: none; }
  .btn.is-loading::after, .hja-spinner { animation-duration: 2.4s; }
  .hj-acct__menu, .hja-alert, .hja-panel.is-open { animation: none; }
  .hja-js .hja-reveal { opacity: 1; transform: none; }
  .hja-job:hover, a.hja-tile:hover, .hj-acct__btn:hover,
  .hj-acct__signin:hover, .hja-oauth__btn:hover, .hja-nav__list a:hover { transform: none; }
  .hja-strength__fill { transition: none; }
}
