/* Velum Studio account pages (apply-to-test, admin dashboard). Rides on
   launch.css for the tokens, header, footer and buttons; this adds the forms,
   panels, tabs and rows. Gold-on-dark throughout (--gold #d4af37). */

.wrap.narrow { width: min(100% - 32px, 720px); }

/* The sign-in card (auth.css gives it max-width:420px) is re-homed from its
   old .auth-shell into the launch chrome's .wrap.narrow, which is wider — so
   center the card within it instead of letting it sit left-aligned. */
.account-band .auth-card { margin-inline: auto; }

/* ---- panels (gate / already / pending / dashboard states) -------------- */
.panel {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  margin: 0 auto 22px;
  max-width: 720px;
}
.panel h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; color: var(--cream); margin: 4px 0 10px; font-weight: 700; }
.panel p { color: var(--muted); margin: 0 0 8px; }
.panel .ctas { margin-top: 18px; }
.panel .eyebrow { margin-bottom: 10px; }

/* ---- the apply form ---------------------------------------------------- */
.account-form {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
}
.account-form .intro { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.account-form .intro strong { color: var(--cream); }

.field { margin: 0 0 22px; }
.field label { display: block; font-weight: 650; color: var(--cream); margin: 0 0 4px; font-size: 15px; }
.field .help { color: var(--faint); font-size: 13.5px; margin: 0 0 10px; }

.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(7, 5, 6, .55);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%), linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
  background: rgba(7, 5, 6, .75);
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(242, 199, 207, .14); }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }
.form-note.ok { color: var(--gold-soft); }
.form-note.bad { color: var(--rose); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---- admin dashboard --------------------------------------------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 20px; }
.tab {
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--muted); background: transparent;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.tab:hover { color: var(--cream); border-color: rgba(244, 233, 216, .4); }
.tab[aria-selected="true"] { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold-soft)); border-color: transparent; }
.tab .count { display: none; margin-left: 6px; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(7, 5, 6, .35); }
.tab .count.show { display: inline-block; }

/* Secondary tabs inside the Applications panel: Pending / Approved / Declined.
   Smaller and quieter than the section tabs so the hierarchy reads clearly. */
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.subtab {
  font: inherit; font-weight: 600; font-size: 13px;
  color: var(--muted); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 5px 13px; cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.subtab:hover { color: var(--cream); border-color: rgba(244, 233, 216, .35); }
.subtab[aria-selected="true"] { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold-soft)); border-color: transparent; }
.subtab .count { display: none; margin-left: 5px; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: rgba(7, 5, 6, .3); }
.subtab .count.show { display: inline-block; }

.rows { display: flex; flex-direction: column; gap: 14px; }
.empty { color: var(--faint); text-align: center; padding: 40px 0; }

.row {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 14px;
  padding: 18px 20px;
}
.row header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row h3 { margin: 0; font-size: 17px; color: var(--cream); font-weight: 650; }
.row .sub { color: var(--faint); font-size: 13px; margin: 2px 0 0; }
.row .when { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

.answers { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.answers dt { color: var(--gold-soft); font-size: 13px; font-weight: 600; }
.answers dd { margin: 0; color: var(--text); font-size: 14px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--muted); }
.pill.applied { color: var(--gold-hi); border-color: rgba(212, 175, 55, .4); }
.pill.approved { color: #9fe0b0; border-color: rgba(159, 224, 176, .35); }
.pill.declined { color: var(--rose); border-color: rgba(242, 199, 207, .3); }

.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.danger { color: var(--rose); border-color: rgba(242, 199, 207, .3); background: rgba(242, 199, 207, .05); }
.btn.danger:hover { color: var(--rose); border-color: rgba(242, 199, 207, .55); background: rgba(242, 199, 207, .1); }

.row .notes-in { font: inherit; color: var(--text); background: rgba(7, 5, 6, .55); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 8px 12px; flex: 1 1 220px; min-width: 160px; }
.row .notes-in:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }

.role-select { font: inherit; color: var(--text); background: rgba(7, 5, 6, .55); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.role-select:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }

.row .msg { font-size: 13px; margin: 10px 0 0; }
.row .msg.ok { color: var(--gold-soft); }
.row .msg.bad { color: var(--rose); }


/* ---- gallery review (admin Gallery tab) -------------------------------- */
.gallery-note { border: 1px solid rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .07); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.gallery-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.gallery-note strong { color: var(--gold-hi); }
.list-title { font-size: 15px; font-weight: 650; color: var(--cream); margin: 6px 0 12px; }
.list-title + .rows, .list-title + .rows + .empty { margin-bottom: 26px; }
.sub.loading { padding: 14px 0; }
.form-note .retry { margin-left: 6px; }

.pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pill.in_review, .pill.pending { color: var(--gold-hi); border-color: rgba(212, 175, 55, .4); }
.pill.changes_requested { color: #f3d58a; border-color: rgba(243, 213, 138, .35); }
.pill.listed, .pill.applied { color: #9fe0b0; border-color: rgba(159, 224, 176, .35); }
.pill.rejected, .pill.withdrawn { color: var(--rose); border-color: rgba(242, 199, 207, .3); }

.gallery-row .creator { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: rgba(7, 5, 6, .35); }
.creator-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.creator-head strong { color: var(--cream); font-weight: 650; }
.creator-head .sub { margin: 0; }
.creator-head a { font-size: 13px; }
.creator .about { margin: 8px 0 0; color: var(--text); font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.creator .about.none { color: var(--faint); font-style: italic; }

.gallery-row h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--gold-soft); font-weight: 650; margin: 0 0 8px; }
.inside, .reports { margin-top: 18px; }
.reports { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.report .sub { margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check { display: grid; grid-template-columns: 96px 1fr; gap: 2px 10px; font-size: 13.5px; }
.check .mark { font-weight: 650; font-size: 12px; padding-top: 1px; }
.check.pass .mark { color: #9fe0b0; }
.check.warn .mark { color: #f3d58a; }
.check.fail .mark { color: var(--rose); }
.check.pending .mark { color: var(--faint); }
.check .title { color: var(--text); }
.check .details { grid-column: 2; color: var(--faint); font-size: 12.5px; overflow-wrap: anywhere; }

.shots { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 10px; }
.shot { margin: 0; max-width: min(100%, 640px); }
.shot a { display: inline-block; vertical-align: top; max-width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule-strong); background: repeating-conic-gradient(rgba(244, 233, 216, .06) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.shot img { display: block; max-width: 100%; height: auto; }
.shot figcaption { color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.inside .desc { color: var(--text); font-size: 14px; margin: 4px 0 8px; }
.files summary { cursor: pointer; color: var(--gold-soft); font-size: 13.5px; font-weight: 600; }
.files ul { margin: 8px 0 0; padding-left: 18px; columns: 2 260px; font-size: 13px; }
.files code { color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; }

.decide { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 14px; }
.decide label { display: block; font-weight: 650; color: var(--cream); font-size: 14px; margin: 0 0 6px; }
.decide .notes-area { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: rgba(7, 5, 6, .55); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.decide .notes-area:focus, .decide .notes-in:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.decide .notes-in { width: 100%; font: inherit; color: var(--text); background: rgba(7, 5, 6, .55); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 8px 12px; }
.decide .row-actions { margin-top: 10px; }
.btn:disabled { opacity: .55; cursor: default; }
.dl { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg.inline { margin: 0; font-size: 13px; }
.msg.inline.ok { color: var(--gold-soft); }
.msg.inline.bad { color: var(--rose); }

.art-layout { display: grid; grid-template-columns: minmax(0, auto) minmax(220px, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.art-layout .creator { margin: 0; }
.art-frame { max-width: 100%; overflow: auto; border: 1px solid var(--rule-strong); border-radius: 10px; background: repeating-conic-gradient(rgba(244, 233, 216, .06) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.art-frame:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.art-frame img { display: block; max-width: none; }
.art-frame.banner { grid-column: 1 / -1; }
.art-frame .sub, .art-frame .msg { padding: 14px; margin: 0; }

@media (max-width: 760px) {
  .reports, .art-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .answers { grid-template-columns: 1fr; gap: 2px 0; }
  .answers dt { margin-top: 8px; }
}

/* The Velum Tester Terms (2026-11-08): the agree box on the apply form and
   the terms page itself. */
.terms-agree { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 14px 16px; }
.terms-agree.invalid { border-color: rgba(230, 120, 110, .7); }
.check-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.check-label input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: #D4AF37; }
.terms-doc h2 { font-size: 19px; margin: 26px 0 8px; }
.terms-doc h2:first-child { margin-top: 0; }
.terms-doc p { line-height: 1.65; }
.terms-doc ul { margin: 0 0 1em; padding-left: 1.2em; line-height: 1.65; color: var(--muted); }
.terms-doc li strong { color: var(--cream); }
.terms-doc li { margin: 0 0 .5em; color: var(--muted); }
/* House style: the date sits small and gray at the bottom. */
.terms-doc .terms-updated { margin: 32px 0 0; font-size: 12.5px; color: var(--faint); }
