/* ============================================================================
   v2 ACCOUNT — sand skin AND new layout over the exact DOM account.js v11
   renders (2026-08-14 owner request: fewer stacked cards). The collection is
   a cover-led grid of tiles, courses collapse into one list container, and
   purchases / help / privacy fold away inside <details>. Loaded after
   sand.css, which owns the nav pill, buttons, footer and the :root palette.
   Go-live mapping: replaces account.css.
   ========================================================================== */

.ac-body { background: var(--white); }

/* the account nav has no burger: keep Home/Shop and Sign out visible on
   every width instead of collapsing to the wordmark */
@media (max-width: 820px) {
  .ac-body .nav-links { display: flex; }
  .ac-body .nav-shop { display: inline-flex; }
}

.ac-shell {
  max-width: 960px; margin: 0 auto;
  padding: 140px 20px 90px;
}

.ac-head { margin-bottom: 42px; }
.ac-head .eyebrow { margin-bottom: 10px; }
.ac-head h1 {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -.015em;
  color: var(--ink);
}
.ac-email { font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.ac-section { margin: 0 0 44px; }
.ac-h2 {
  font-family: var(--f-disp); font-weight: 700; font-size: 21px;
  color: var(--ink); margin-bottom: 16px;
}
.ac-h3 { font-family: var(--f-body); font-weight: 700; font-size: 16px; color: var(--ink); }

/* ---- cards ---------------------------------------------------------------- */
.ac-shell .card {
  background: var(--white);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 18px 22px;
  margin-bottom: 14px;
}

/* ---- .ac-list: one sticker container, account.js cards become quiet rows --
   account.js keeps rendering stacked .card elements; inside an .ac-list host
   they flatten into dash-divided rows so the page reads as one panel, not a
   pile of stickers. */
.ac-list {
  background: var(--white);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 4px 22px;
}
.ac-list:empty { display: none; }
.ac-list .card,
.ac-list > .empty {
  border: 0; border-radius: 0; box-shadow: none;
  background: transparent;
  margin: 0; padding: 18px 0;
  border-bottom: 2px dashed rgba(43, 21, 0, .22);
}
.ac-list .card:last-child,
.ac-list > .empty:last-child { border-bottom: 0; }
.ac-list .empty { color: var(--ink); font-size: 14.5px; }
.course-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.course-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.course-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.course-state { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.btn-go {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-body); font-weight: 700; font-size: 14px;
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--green);
  border: var(--line); border-radius: var(--r-pill);
  padding: 9px 20px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn-go:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

/* ---- the shelf: a grid of cover-led tiles, not a stack of wide cards ------ */
.ac-shelf {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  align-items: start;
}
.ac-vol {
  display: flex; flex-direction: column; gap: 0;
  background: var(--white);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 18px 18px;
}
.ac-vol-cover {
  width: 118px; align-self: center; border-radius: 10px;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: block; margin-bottom: 14px;
  transform: rotate(-1.2deg);
}
.ac-vol:nth-child(even) .ac-vol-cover { transform: rotate(1.2deg); }
.ac-vol-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ac-vol-name { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); }
.ac-vol-sub { font-family: var(--f-mono); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.ac-vol-bar {
  height: 12px; margin-top: 12px; border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--teal-tint);
  overflow: hidden;
}
.ac-vol-bar > i { display: block; height: 100%; background: var(--gold); border-radius: 999px 0 0 999px; }
.ac-vol-pct { font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--ink-soft); margin-top: 6px; display: inline-block; }

.ac-vol-acts { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ac-vol-acts > a, .ac-vol-read {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  text-decoration: none; cursor: pointer;
  background: var(--green);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 8px 18px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ac-vol-acts > a:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.ac-vol-acts > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 8px 18px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ac-vol-acts > button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.ac-vol-dl[disabled] { opacity: .55; cursor: wait; transform: none; }

.ac-vol-suite { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.ac-vol-suite--when { font-family: var(--f-mono); font-size: 11px; }

/* closed by default: account.js toggles .is-open from the Results button.
   (The hide was missing from the v1 sand file; live account.css has it.) */
.ac-results { display: none; margin-top: 12px; }
.ac-results.is-open { display: block; }
.ac-results-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-results-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-results-ch {
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--sunshine);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
  transition: transform .12s ease;
}
.ac-results-ch:hover { transform: translateY(-1px); }

/* ---- courses -------------------------------------------------------------- */
.ac-course { display: flex; flex-direction: column; gap: 10px; }
.ac-course-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ac-course-eyebrow { font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ac-course-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.ac-course-stat { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }
.ac-course-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-shell .card.ac-course--hero { background: var(--teal-tint); }
.ac-course--hero .ac-course-eyebrow { color: var(--ink); }
.ac-course--hero .ac-course-name { font-family: var(--f-disp); font-size: 20px; }

.ac-shell .card.ac-tracks { padding-bottom: 14px; }
.ac-track-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ac-track-chip {
  font-weight: 700; font-size: 12.5px; color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 14px;
  transition: transform .12s ease, background .12s ease;
}
.ac-track-chip:hover { background: var(--sunshine); transform: translateY(-1px); }
.ac-track-chips .course-state { align-self: center; }

.ac-refs-wrap { margin-top: 14px; }
.ac-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ac-ref {
  display: block; text-decoration: none;
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 14px 16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ac-ref:hover { transform: translateY(-2px); box-shadow: 3px 5px 0 var(--ink); }
.ac-ref-name { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.ac-ref-sub { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---- purchases ------------------------------------------------------------ */
.order-right { display: flex; align-items: center; gap: 12px; }
.order-amount { font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--ink); }
.badge {
  font-family: var(--f-mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 10px;
}
.badge.paid { background: var(--green); color: var(--ink); }
.badge.pending { background: var(--sunshine); color: var(--ink); }
.badge.refunded { background: var(--teal-tint); color: var(--ink); }

.receipt-card .order { border: 0; padding: 0; }
.receipt-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.receipt-adjustments { margin-top: 8px; }
.receipt-adjustment { font-size: 12.5px; color: var(--ink-soft); }
.receipt-adjustment strong { color: var(--ink); }
.receipt-ask { margin-top: 10px; font-size: 13px; }
.receipt-ask-link { color: var(--ink); font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; text-decoration: underline; }
.receipt-ask-link:hover { color: var(--teal); }

.empty {
  background: var(--teal-tint);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px; font-size: 14.5px; color: var(--ink);
}
.empty a { color: inherit; font-weight: 700; }
.empty-lead { display: block; font-weight: 700; margin-bottom: 4px; }

/* ---- notes / destructive -------------------------------------------------- */
.ac-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; min-height: 1em; }
.ac-note.is-ok { color: var(--green-deep); font-weight: 600; }
.ac-note.is-err { color: var(--red); font-weight: 600; }

.ac-vol-dl {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 8px 18px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
#ac-delete { background: var(--white); color: var(--red); }
#ac-delete:hover { background: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }

/* ---- folds: the admin sections tuck away until opened --------------------- */
.ac-admin { display: grid; gap: 14px; }
.ac-fold {
  background: var(--white);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}
.ac-fold > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-weight: 700; font-size: 16px; color: var(--ink);
  user-select: none;
}
.ac-fold > summary::-webkit-details-marker { display: none; }
.ac-fold > summary:hover { background: var(--sunshine); }
.ac-fold > summary i {
  flex: 0 0 auto; font-style: normal; font-weight: 700; font-size: 20px;
  width: 30px; height: 30px; line-height: 25px; text-align: center;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--gold);
  transition: transform .16s ease;
}
.ac-fold[open] > summary i { transform: rotate(45deg); }
.ac-fold[open] > summary { border-bottom: 2px dashed rgba(43, 21, 0, .22); }
/* inside a fold the sticker chrome comes off the list: the fold IS the sticker */
.ac-fold .ac-list {
  border: 0; border-radius: 0; box-shadow: none;
  padding: 4px 22px;
}
.ac-fold .ac-list:empty { display: block; }
.ac-fold .ac-note { padding: 0 22px 16px; margin-top: 0; }

/* ---- exits: one quiet line, not more cards -------------------------------- */
.ac-exits { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 2px dashed rgba(43, 21, 0, .22); }
.ac-exit { text-decoration: none; }
.ac-exit b { font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ac-exit:hover b { color: var(--teal); }
.ac-exit span { display: none; }

/* ---- delete confirm ------------------------------------------------------- */
.ac-confirm-scrim { position: fixed; inset: 0; background: rgba(43, 21, 0, .5); z-index: 80; }
.ac-confirm {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 81; width: min(440px, calc(100vw - 40px));
  background: var(--white);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 28px;
}
.ac-confirm-title { font-family: var(--f-disp); font-weight: 700; font-size: 20px; color: var(--ink); }
.ac-confirm-body { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin: 12px 0 20px; }
.ac-confirm-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
#ac-confirm-cancel { background: var(--green); color: var(--ink); }
#ac-confirm-cancel:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.ac-confirm-go {
  font-weight: 700; font-size: 13.5px; color: var(--white);
  cursor: pointer;
  background: var(--red);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 8px 18px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ac-confirm-go:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }

/* ---- support thread (rendered by account.js when /support opens here) ------ */
.sp-back { font-weight: 700; color: var(--ink); cursor: pointer; background: none; border: 0; padding: 0; text-decoration: underline; }
.sp-list { display: grid; gap: 10px; }
.sp-ticket {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink); padding: 14px 16px; cursor: pointer;
  transition: transform .12s ease;
}
.sp-ticket:hover { transform: translateY(-2px); }
.sp-t-subj { font-weight: 700; color: var(--ink); }
.sp-t-main { font-size: 13px; color: var(--ink-soft); }
.sp-t-meta { font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); }
.sp-thread { display: grid; gap: 10px; }
.sp-thread-head { display: flex; align-items: center; gap: 12px; }
.sp-bubble {
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 12px 14px; font-size: 14px; color: var(--ink);
  max-width: 85%;
}
.sp-bubble.is-user { background: var(--teal-tint); margin-left: auto; }
.sp-bubble.is-support { background: var(--white); margin-right: auto; }
.sp-b-who { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.sp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.sp-field { margin-top: 12px; }
.sp-label { font-weight: 700; font-size: 13px; color: var(--ink); display: block; margin-bottom: 6px; }
.sp-input, .sp-textarea {
  width: 100%; font: 500 14.5px var(--f-body); color: var(--ink);
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 11px 14px;
}
@media (pointer: coarse) { .sp-input, .sp-textarea { font-size: 16px; } }
.sp-input:focus, .sp-textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.sp-submit {
  margin-top: 12px;
  font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer;
  background: var(--green);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 10px 22px;
  box-shadow: 0 3px 0 var(--ink);
}
.sp-submit[disabled] { opacity: .55; cursor: wait; }

/* ---- misc chips ------------------------------------------------------------ */
.ac-chip { display: inline-flex; gap: 6px; align-items: baseline; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--white); }
.ac-chip__k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ac-chip__v { font-weight: 700; font-size: 13px; color: var(--ink); }

/* a .card rendered straight into the shelf grid (the no-books empty state)
   spans the full row instead of squeezing into one tile column */
.ac-shelf > .card, .ac-shelf > .empty { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .ac-shell { padding-top: 118px; }
  .ac-shelf { grid-template-columns: 1fr; gap: 16px; }
  .ac-vol { flex-direction: row; gap: 16px; align-items: flex-start; padding: 16px; }
  .ac-vol-cover { width: 76px; margin-bottom: 0; align-self: flex-start; }
  .ac-list { padding: 2px 16px; }
  .ac-fold > summary { padding: 16px 16px; }
  .ac-fold .ac-list { padding: 2px 16px; }
  .ac-fold .ac-note { padding: 0 16px 14px; }
  .course-row { align-items: flex-start; }
}
