:root {
  --auth-forest: #142019;
  --auth-olive: #344235;
  --auth-rust: #d4712a;
  --auth-cream: #f7f1e5;
  --auth-paper: #fffdf8;
  --auth-ink: #202620;
  --auth-muted: #687168;
  --auth-border: #d8d6cb;
}

html.auth-pending body[data-auth-required="true"] {
  opacity: 1;
}

html.auth-ready body[data-auth-required="true"] {
  opacity: 1;
}

.auth-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.45rem;
  font-family: Inter, Arial, sans-serif;
}

.auth-controls a,
.auth-controls button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 700 0.76rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-controls .auth-register {
  border-color: var(--auth-rust);
  background: var(--auth-rust);
  color: white;
}

.auth-controls .auth-user {
  max-width: 180px;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.auth-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: var(--auth-forest);
  color: white;
  box-shadow: 0 14px 36px rgba(20, 32, 25, 0.24);
}

.jj-tool-nav__links .auth-controls {
  margin-left: 0;
}

.jj-tool-nav__links .auth-controls a,
.jj-tool-nav__links .auth-controls button {
  min-height: 36px;
  padding: 0.5rem 0.7rem;
  font-size: 0.68rem;
}

@media (max-width: 850px) {
  .jj-tool-nav__links .auth-controls {
    display: flex;
    justify-content: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .jj-tool-nav__links .auth-controls a,
  .jj-tool-nav__links .auth-controls button {
    flex: 1;
  }
}

.auth-notice {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 90;
  max-width: min(390px, calc(100vw - 36px));
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--auth-rust);
  border-radius: 4px;
  background: var(--auth-paper);
  color: var(--auth-ink);
  box-shadow: 0 16px 42px rgba(20, 32, 25, 0.25);
  font: 600 0.9rem/1.5 Inter, Arial, sans-serif;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(212, 113, 42, 0.17), transparent 28rem),
    var(--auth-cream);
  color: var(--auth-ink);
  font-family: Inter, Arial, sans-serif;
}

.auth-page * {
  box-sizing: border-box;
}

.auth-page [hidden] {
  display: none !important;
}

.auth-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 1.3rem clamp(1.25rem, 4vw, 4rem);
  background: var(--auth-forest);
}

.auth-page-header > a {
  color: white;
  font: 700 1.7rem/1 Antonio, Impact, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
}

.auth-page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.auth-page-nav a {
  color: rgba(255, 255, 255, 0.72);
  font: 600 0.78rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}

.auth-page-nav a:hover {
  color: white;
}

.auth-page-footer {
  padding: 1.1rem clamp(1.25rem, 4vw, 4rem);
  background: var(--auth-forest);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.64);
}

.auth-page-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 1100px;
  margin: 0 auto;
  font: 400 0.75rem/1.4 Inter, Arial, sans-serif;
}

.auth-page-footer-inner strong {
  color: white;
}

.auth-page-footer-inner a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.auth-page-footer-inner a:hover {
  color: white;
}

.auth-layout {
  display: grid;
  width: min(1100px, calc(100% - 2rem));
  min-height: calc(100vh - 75px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 3rem 0;
}

.auth-intro {
  position: sticky;
  top: 110px;
  padding-top: 1.4rem;
}

.auth-intro .auth-kicker {
  color: var(--auth-rust);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 620px;
  margin: 0.7rem 0 1.2rem;
  color: var(--auth-forest);
  font: 700 6.6rem/0.88 Antonio, Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-intro p {
  max-width: 530px;
  color: var(--auth-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-benefits {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.auth-benefits li::before {
  margin-right: 0.65rem;
  color: var(--auth-rust);
  content: "✓";
  font-weight: 900;
}

.auth-card {
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid var(--auth-border);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 18px 18px 0 rgba(52, 66, 53, 0.09);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--auth-border);
}

.auth-tab {
  padding: 0.9rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--auth-muted);
  font: 800 0.82rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] {
  border-bottom-color: var(--auth-rust);
  color: var(--auth-forest);
}

.auth-panel[hidden] {
  display: none;
}

.auth-panel h2 {
  margin: 0 0 0.5rem;
  color: var(--auth-forest);
  font: 700 2.2rem/1 Antonio, Impact, sans-serif;
  text-transform: uppercase;
}

.auth-panel > p {
  margin: 0 0 1.4rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field label {
  color: var(--auth-olive);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: white;
  color: var(--auth-ink);
  font: inherit;
}

.auth-field input:focus {
  border-color: var(--auth-rust);
  outline: 3px solid rgba(212, 113, 42, 0.18);
}

.auth-submit {
  min-height: 50px;
  margin-top: 0.35rem;
  border: 1px solid var(--auth-rust);
  border-radius: 4px;
  background: var(--auth-rust);
  color: white;
  font: 800 0.86rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-google {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  background: white;
  color: var(--auth-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-google:hover {
  border-color: var(--auth-forest);
  transform: translateY(-1px);
}

.auth-google[hidden] + .auth-divider {
  display: none;
}

.auth-google span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--auth-forest);
  color: white;
  font-family: Antonio, "Arial Narrow", sans-serif;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--auth-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--auth-border);
}

.auth-link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-olive);
  font: 700 0.84rem/1.4 Inter, Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.auth-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-message[data-state="error"] {
  color: #a43e27;
}

.auth-message[data-state="success"] {
  color: #2f6d48;
}

.auth-account-summary {
  display: grid;
  gap: 1rem;
}

.auth-account-email {
  padding: 1rem;
  border-left: 4px solid var(--auth-rust);
  background: var(--auth-cream);
  font-weight: 700;
}

.auth-page.account-signed-in .auth-layout,
.auth-page:has([data-signed-in]:not([hidden])) .auth-layout {
  display: block;
  width: min(1180px, calc(100% - 32px));
  min-height: auto;
  padding-block: 34px 78px;
}

.auth-page.account-signed-in .auth-intro,
.auth-page:has([data-signed-in]:not([hidden])) .auth-intro {
  display: none;
}

.auth-page.account-signed-in .auth-card,
.auth-page:has([data-signed-in]:not([hidden])) .auth-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.member-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.78fr);
  grid-template-areas:
    "head head"
    "stats stats"
    "next next"
    "saved profile"
    "saved files"
    "new new";
  gap: 18px;
}

.member-dashboard__head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(20, 32, 25, 0.08);
  border-radius: 8px;
  background: var(--auth-forest);
  color: white;
  box-shadow: 0 18px 48px rgba(20, 32, 25, 0.16);
}

.member-dashboard__head h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: white;
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 5.2rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.member-dashboard__head p {
  max-width: 680px;
  margin: 0;
  color: #dfe7dc;
  font-size: 1.05rem;
  line-height: 1.65;
}

.member-dashboard__head .auth-kicker {
  color: #edb17a;
}

.member-dashboard__account {
  display: flex;
  min-width: min(330px, 32vw);
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.member-dashboard__account span,
.member-dashboard__account strong {
  display: block;
}

.member-dashboard__account span {
  color: #cbd6ca;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.member-dashboard__account strong {
  margin: 6px 0 10px;
  color: white;
  overflow-wrap: anywhere;
}

.member-dashboard__account .auth-link-button {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  color: white;
  text-decoration: none;
}

.member-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.member-stats div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: var(--auth-paper);
  box-shadow: 0 10px 28px rgba(20, 32, 25, 0.07);
}

.member-stats strong {
  color: var(--auth-rust);
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 2.4rem;
}

.member-stats span {
  color: var(--auth-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.member-section {
  margin-top: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: var(--auth-paper);
  box-shadow: 0 14px 34px rgba(20, 32, 25, 0.08);
}

.member-section--saved {
  grid-area: saved;
  min-height: 430px;
}

.member-section--next {
  grid-area: next;
}

.member-section--profile {
  grid-area: profile;
}

.member-section--files {
  grid-area: files;
}

.member-section--new {
  grid-area: new;
}

.member-section--dark {
  border-color: var(--auth-forest);
  background: var(--auth-forest);
  color: white;
}

.member-section--dark .member-section__heading h3,
.member-section--dark .member-eyebrow {
  color: white;
}

.member-section--dark .member-loading {
  color: #d7ddcf;
}

.member-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.member-section__heading h3 {
  margin: 4px 0 0;
  color: inherit;
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  text-transform: uppercase;
}

.member-section__heading a,
.member-result__actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(212, 113, 42, 0.3);
  border-radius: 4px;
  background: rgba(212, 113, 42, 0.08);
  color: var(--auth-rust);
  font-weight: 800;
  text-decoration: none;
}

.member-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-next-card {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(20, 32, 25, 0.1);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--auth-ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.member-next-card:hover {
  border-color: rgba(212, 113, 42, 0.45);
  background: white;
  transform: translateY(-2px);
}

.member-next-card span {
  color: var(--auth-rust);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.member-next-card strong {
  color: var(--auth-forest);
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 1.7rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.member-next-card p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.member-next-card--strong {
  background: var(--auth-forest);
  color: white;
}

.member-next-card--strong strong {
  color: white;
}

.member-next-card--strong p {
  color: #d7ddcf;
}

.member-eyebrow {
  color: var(--auth-rust);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.member-loading {
  padding: 30px 0;
  color: var(--auth-muted);
}

.member-result-list {
  display: grid;
  gap: 12px;
}

.member-result {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: #fffaf1;
}

.member-result__status {
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  color: var(--auth-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.member-result__status--completed {
  border-color: #88aa91;
  background: #edf5ef;
  color: #2f6d48;
}

.member-result h4,
.member-content h4 {
  margin: 0;
  color: inherit;
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.member-result p {
  margin: 5px 0;
  color: var(--auth-muted);
}

.member-result__body span,
.member-content small {
  color: var(--auth-muted);
  font-size: 0.78rem;
}

.member-result__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-result__actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: var(--auth-paper);
  color: var(--auth-muted);
  font: 800 0.78rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.auth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-optional {
  color: var(--auth-muted);
  font-weight: 400;
  text-transform: none;
}

.auth-hint {
  margin: 6px 0 0;
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.member-profile-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.member-profile-form .auth-submit {
  margin-top: 0;
  white-space: nowrap;
}

.auth-field select {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--auth-muted) 50%) right 1.2rem center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--auth-muted) 50%, transparent 50%) right 0.85rem center / 7px 7px no-repeat,
    var(--auth-paper);
  color: var(--auth-ink);
  font: 500 1rem/1.2 Inter, Arial, sans-serif;
}

.member-files-note {
  color: var(--auth-muted);
  margin: 0 0 16px;
}

.member-upload-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.member-upload-form input[type="file"],
.member-upload-form input[type="text"] {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  background: var(--auth-paper);
  color: var(--auth-ink);
  font: inherit;
}

.member-upload-form input[type="file"] {
  padding: 0;
}

.member-upload-form input[type="file"]::file-selector-button {
  min-height: 48px;
  margin: 0 12px 0 0;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--auth-border);
  background: var(--auth-cream);
  color: var(--auth-forest);
  font: 800 0.78rem/1 Inter, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.member-upload-form .auth-submit {
  margin-top: 0;
  white-space: nowrap;
}

.member-file-list {
  display: grid;
  gap: 12px;
}

.member-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: #fffaf1;
}

.member-file h4 {
  margin: 0;
  color: inherit;
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.member-file p {
  margin: 5px 0;
  color: var(--auth-muted);
}

.member-file__body span {
  color: var(--auth-muted);
  font-size: 0.78rem;
}

.member-file button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: var(--auth-paper);
  color: var(--auth-muted);
  font: 800 0.78rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.member-content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-content {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.member-content:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.member-content > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.member-content > div span,
.member-content > div b {
  color: #d7ddcf;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.member-content > div b {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--auth-rust);
  color: white;
}

.member-content p {
  color: #d7ddcf;
  line-height: 1.5;
}

.member-empty {
  display: grid;
  min-height: 270px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 34px;
  border: 1px dashed var(--auth-border);
  border-radius: 8px;
  background: #fffaf1;
  text-align: center;
}

.member-empty strong {
  display: block;
  color: var(--auth-forest);
  font-family: Antonio, "Arial Narrow", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.member-empty .auth-submit {
  width: auto;
  display: inline-flex;
  margin-top: 12px;
  padding-inline: 22px;
  text-decoration: none;
}

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .auth-intro h1 {
    font-size: 5rem;
  }

  .auth-intro {
    position: static;
    padding-top: 0;
  }

  .auth-controls {
    margin: 0.4rem 0 0;
  }

  .auth-page.account-signed-in .auth-layout,
  .auth-page:has([data-signed-in]:not([hidden])) .auth-layout {
    width: min(100% - 24px, 720px);
    padding-block: 28px 56px;
  }

  .member-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "stats"
      "next"
      "saved"
      "new"
      "files"
      "profile";
  }

  .member-dashboard__head,
  .member-result {
    grid-template-columns: 1fr;
  }

  .member-dashboard__head h2 {
    font-size: 4.2rem;
  }

  .member-section__heading h3 {
    font-size: 2.4rem;
  }

  .member-dashboard__account {
    min-width: 0;
  }

  .member-section {
    padding: 24px 18px;
  }

  .member-section__heading,
  .member-result__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-content-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .member-dashboard {
    gap: 14px;
  }

  .member-dashboard__head {
    padding: 22px;
  }

  .member-dashboard__head h2 {
    font-size: 3.25rem;
  }

  .member-section__heading h3 {
    font-size: 2.1rem;
  }

  .member-stats,
  .member-content-list {
    grid-template-columns: 1fr;
  }

  .member-file {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-next-card {
    min-height: 0;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.auth-ready body[data-auth-required="true"] {
    transition: none;
  }
}
