:root {
  --auth-forest: #142019;
  --auth-olive: #344235;
  --auth-rust: #d4712a;
  --auth-rust-dark: #bd6222;
  --auth-cream: #f7f1e5;
  --auth-paper: #fffdf8;
  --auth-ink: #202620;
  --auth-muted: #687168;
  --auth-border: #d8d6cb;
  --auth-line: rgba(20, 32, 25, 0.08);
  --auth-radius: 8px;
  --auth-radius-sm: 5px;
  --auth-shadow: 0 1px 2px rgba(20, 32, 25, 0.05), 0 22px 44px -28px rgba(20, 32, 25, 0.3);
  --auth-shadow-soft: 0 1px 2px rgba(20, 32, 25, 0.05);
}

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.05em;
  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);
}

.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;
}

/* ---------------------------------------------------------------
   Account page shell
   --------------------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(940px 480px at 88% -6%, rgba(212, 113, 42, 0.14), transparent 72%),
    radial-gradient(760px 460px at -4% 104%, rgba(52, 66, 53, 0.09), transparent 70%),
    var(--auth-cream);
  color: var(--auth-ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.auth-page :focus-visible {
  outline: 2px solid var(--auth-rust);
  outline-offset: 2px;
}

.auth-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1.1rem, 4vw, 2.75rem);
  background: var(--auth-forest);
}

.auth-page-header__brand {
  color: white;
  font: 700 clamp(1.15rem, 1.8vw, 1.4rem)/1 Antonio, Impact, sans-serif;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.auth-page-header__back {
  color: rgba(247, 241, 229, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-page-header__back:hover {
  color: white;
}

.auth-layout {
  display: grid;
  width: min(1060px, calc(100% - 2.25rem));
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

/* ---------------------------------------------------------------
   Signed-out: intro + access card
   --------------------------------------------------------------- */

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--auth-rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-kicker::before {
  width: 22px;
  height: 2px;
  background: var(--auth-rust);
  content: "";
}

.auth-intro h1 {
  max-width: 15ch;
  margin: 0.75rem 0 1rem;
  color: var(--auth-forest);
  font: 700 clamp(2.7rem, 5.4vw, 4.3rem)/0.9 Antonio, Impact, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.auth-intro p {
  max-width: 46ch;
  margin: 0 0 1.35rem;
  color: var(--auth-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--auth-olive);
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.auth-benefits li::before {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(212, 113, 42, 0.14);
  color: var(--auth-rust);
  content: "✓";
  font-size: 0.62rem;
  font-weight: 900;
  place-items: center;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--auth-shadow);
}

.auth-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--auth-rust), rgba(212, 113, 42, 0.15));
  content: "";
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 1.35rem;
  padding: 4px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  background: rgba(52, 66, 53, 0.05);
}

.auth-tab {
  min-height: 36px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--auth-muted);
  font: 800 0.74rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.auth-tab[aria-selected="true"] {
  background: var(--auth-paper);
  color: var(--auth-forest);
  box-shadow: var(--auth-shadow-soft);
}

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

.auth-panel h2 {
  margin: 0 0 0.3rem;
  color: var(--auth-forest);
  font: 700 1.75rem/1 Antonio, Impact, sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

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

.auth-form--split {
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 0.9rem;
}

.auth-field--full,
.auth-form--split > .auth-submit,
.auth-form--split > .auth-hint {
  grid-column: 1 / -1;
}

.auth-field {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.auth-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--auth-olive);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  background: white;
  color: var(--auth-ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-field select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5 6 6.5l5-5' stroke='%23687168' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  appearance: none;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--auth-rust);
  box-shadow: 0 0 0 3px rgba(212, 113, 42, 0.15);
  outline: none;
}

.auth-optional {
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: rgba(52, 66, 53, 0.07);
  color: var(--auth-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.auth-hint {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-submit {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--auth-rust);
  border-radius: var(--auth-radius-sm);
  background: var(--auth-rust);
  color: white;
  font: 800 0.82rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.auth-submit:hover {
  border-color: var(--auth-rust-dark);
  background: var(--auth-rust-dark);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.auth-google {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  background: white;
  color: var(--auth-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}

/* The button carries the hidden attribute until auth.js confirms Google is enabled,
   so the divider that introduces the email form only makes sense alongside it. */
.auth-google[hidden],
.auth-google[hidden] + .auth-divider {
  display: none;
}

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

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.9rem 0;
  color: var(--auth-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.auth-link-button {
  justify-self: start;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-olive);
  font: 600 0.82rem/1.4 Inter, Arial, sans-serif;
  text-decoration: underline;
  text-decoration-color: rgba(52, 66, 53, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link-button:hover {
  color: var(--auth-rust);
}

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

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

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

/* ---------------------------------------------------------------
   Signed-in dashboard
   --------------------------------------------------------------- */

.auth-page.account-signed-in .auth-layout {
  display: block;
  width: min(1140px, calc(100% - 2.25rem));
  min-height: 0;
  padding-block: clamp(1.4rem, 3vw, 2.2rem) 3.5rem;
}

.auth-page.account-signed-in .auth-intro {
  display: none;
}

.auth-page.account-signed-in .auth-card {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-page.account-signed-in .auth-card::before {
  display: none;
}

.member-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--auth-border);
}

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

.member-topbar h2 {
  margin: 0.3rem 0 0.25rem;
  color: var(--auth-forest);
  font: 700 clamp(1.85rem, 3.4vw, 2.5rem)/1 Antonio, "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.member-topbar p {
  max-width: 52ch;
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.member-account {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem 0.45rem 0.6rem;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: var(--auth-paper);
  box-shadow: var(--auth-shadow-soft);
}

.member-account__avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--auth-forest);
  color: white;
  font: 700 0.9rem/1 Antonio, "Arial Narrow", sans-serif;
  place-items: center;
}

.member-account__detail {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.member-account__label {
  color: var(--auth-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-account__detail strong {
  max-width: 22ch;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-signout {
  min-height: 30px;
  padding: 0 0.7rem;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: transparent;
  color: var(--auth-olive);
  font: 700 0.72rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.member-signout:hover {
  border-color: var(--auth-rust);
  color: var(--auth-rust);
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: 1.15rem 0 1.25rem;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: var(--auth-paper);
  box-shadow: var(--auth-shadow-soft);
}

.member-stats div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.8rem 1.05rem;
  border-right: 1px solid var(--auth-line);
}

.member-stats div:last-child {
  border-right: 0;
}

.member-stats strong {
  color: var(--auth-rust);
  font: 700 1.6rem/1 Antonio, "Arial Narrow", sans-serif;
}

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

.member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 1.15rem;
  align-items: start;
}

.member-col {
  display: grid;
  gap: 1.15rem;
}

.member-section {
  padding: 1.05rem 1.15rem 1.15rem;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: var(--auth-paper);
  box-shadow: var(--auth-shadow-soft);
}

.member-section--dark {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1b2b21, var(--auth-forest));
  color: #f2eee3;
}

.member-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--auth-line);
}

.member-section--dark .member-section__heading {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.member-section__heading h3 {
  margin: 0;
  color: inherit;
  font: 700 1.3rem/1 Antonio, "Arial Narrow", sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.member-section__heading a {
  color: var(--auth-rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 113, 42, 0.35);
}

.member-section__heading a:hover {
  border-bottom-color: var(--auth-rust);
}

.member-note {
  margin: 0.7rem 0 0.85rem;
  color: var(--auth-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.member-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0;
  color: var(--auth-muted);
  font-size: 0.85rem;
}

.member-loading[hidden] {
  display: none;
}

.member-loading::before {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid rgba(212, 113, 42, 0.25);
  border-radius: 50%;
  border-top-color: var(--auth-rust);
  animation: member-spin 720ms linear infinite;
  content: "";
}

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

.member-loading[data-state="error"]::before {
  border-color: rgba(164, 62, 39, 0.5);
  background: rgba(164, 62, 39, 0.12);
  animation: none;
}

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

@keyframes member-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Saved results + files rows */

.member-result,
.member-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.9rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--auth-line);
}

.member-result:last-child,
.member-file:last-child {
  padding-bottom: 0.15rem;
  border-bottom: 0;
}

.member-result h4,
.member-file h4 {
  margin: 0;
  color: var(--auth-forest);
  font: 700 1.08rem/1.15 Antonio, "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.member-result p,
.member-file p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.2rem 0 0.3rem;
  color: var(--auth-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--auth-muted);
  font-size: 0.73rem;
}

.member-tag {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--auth-border);
  border-radius: 3px;
  background: rgba(52, 66, 53, 0.04);
  color: var(--auth-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.member-tag--completed {
  border-color: #a8c3ae;
  background: #edf5ef;
  color: #2f6d48;
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.member-actions a,
.member-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: white;
  color: var(--auth-forest);
  font: 700 0.76rem/1 Inter, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.member-actions a:hover {
  border-color: var(--auth-rust);
  color: var(--auth-rust);
}

.member-actions button {
  border-color: transparent;
  background: transparent;
  color: var(--auth-muted);
  font-weight: 600;
}

.member-actions button:hover {
  color: #a43e27;
}

/* Upload form */

.member-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.member-upload-form input[type="file"] {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  border: 1px dashed var(--auth-border);
  border-radius: var(--auth-radius-sm);
  background: rgba(52, 66, 53, 0.03);
  color: var(--auth-muted);
  font: inherit;
  font-size: 0.82rem;
}

.member-upload-form input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 0.6rem;
  padding: 0 0.7rem;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: white;
  color: var(--auth-forest);
  font: 800 0.7rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.member-upload-form input[type="text"] {
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  background: white;
  color: var(--auth-ink);
  font: inherit;
  font-size: 0.9rem;
}

.member-upload-form input[type="text"]:focus {
  border-color: var(--auth-rust);
  box-shadow: 0 0 0 3px rgba(212, 113, 42, 0.15);
  outline: none;
}

/* Profile form in the side rail */

.member-profile-form {
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.member-profile-form .auth-submit {
  justify-self: start;
}

/* New on the site */

.member-content-list {
  display: grid;
}

.member-content {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease;
}

.member-content:last-child {
  padding-bottom: 0.15rem;
  border-bottom: 0;
}

.member-content:hover {
  transform: translateX(3px);
}

.member-content:hover h4 {
  color: var(--auth-rust);
}

.member-content__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b7c3ac;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.member-content__top b {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--auth-rust);
  color: white;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.member-content h4 {
  margin: 0.1rem 0 0;
  color: white;
  font: 700 1.05rem/1.2 Antonio, "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.member-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #cbd4c2;
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-content small {
  color: #98a78f;
  font-size: 0.68rem;
}

/* Empty states */

.member-empty {
  padding: 1.35rem 1.1rem;
  border: 1px dashed var(--auth-border);
  border-radius: 6px;
  margin-top: 0.85rem;
  background: rgba(52, 66, 53, 0.03);
  text-align: center;
}

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

.member-empty p {
  max-width: 42ch;
  margin: 0.35rem auto 0;
  color: var(--auth-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.member-empty .auth-submit {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1000px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}

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

  .auth-intro h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

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

  .auth-page.account-signed-in .auth-layout {
    width: min(100% - 1.5rem, 720px);
  }
}

@media (max-width: 600px) {
  .auth-form--split {
    grid-template-columns: 1fr;
  }

  .member-account {
    width: 100%;
    border-radius: var(--auth-radius);
  }

  .member-account__detail strong {
    max-width: none;
  }

  .member-account__detail {
    flex: 1;
  }

  .member-stats div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.7rem 0.65rem;
  }

  .member-stats span {
    font-size: 0.61rem;
  }

  .member-result,
  .member-file {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.55rem;
  }

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

  .member-actions a,
  .member-actions button {
    min-height: 40px;
  }
}

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

  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
