/* Sign-in, account and admin pages. Uses the site's colours from aperture.css. */
[hidden] { display: none !important; }
.account-wrap { padding-block: 56px 88px; min-height: 60vh; }
.admin-wrap { padding-block: 40px 88px; }
.auth-card {
  max-width: 420px; margin: 0 auto; padding: 32px 28px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.auth-card h1 { font: 400 40px/1.1 var(--serif); margin: 0 0 8px; }
.auth-lead { color: var(--muted); margin: 0 0 22px; }
.social { display: grid; gap: 10px; }
.social-btn {
  width: 100%; min-height: 44px; border: 1px solid var(--line); background: #0f1011; color: var(--ink);
  border-radius: 8px; font-weight: 600; cursor: pointer;
}
.social-btn:hover { border-color: #5a5650; background: #1d1e20; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .give-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.auth-form input, .give-form input[type="email"], .give-form input[type="text"], .admin-tools input, .admin-tools select,
.admin-table select {
  font: inherit; color: var(--ink); background: #0d0e0f; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; min-height: 42px;
}
.auth-form input:focus, .give-form input:focus, .admin-tools input:focus { outline: 2px solid var(--warm); outline-offset: 1px; }
.auth-form .btn { width: 100%; min-height: 44px; border: 0; cursor: pointer; }
.auth-form .btn:disabled, .give-form .btn:disabled { opacity: .6; cursor: progress; }
.auth-message { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #1d1e20; font-size: 14px; }
.auth-message[data-tone="error"] { background: #3a1a17; color: #ffd8d2; }
.auth-message[data-tone="ok"] { background: #16301f; color: #d4f5df; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin: 18px 0 0; }
.auth-links a, .acct-foot a, .fine a { color: var(--ink); }
.auth-fine, .fine { color: var(--muted); font-size: 13px; }
.acct-email { color: var(--muted); font-size: .6em; }
#account h1 { font: 400 44px/1.1 var(--serif); margin: 6px 0 18px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.acct-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 24px; }
.acct-card h2 { margin: 0 0 10px; font-size: 20px; }
.acct-card .license-box { margin: 14px 0 0; }
.acct-card .license-box p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.acct-card .license-box .btn { margin-top: 10px; }
.acct-foot { display: flex; gap: 20px; align-items: center; margin-top: 28px; font-size: 14px; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
a[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn.ghost.small { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 6px; cursor: pointer; }
.btn.danger { color: #ffb4a8; border-color: #6b302a; }
.admin-top { display: flex; justify-content: space-between; align-items: center; }
.admin-wrap h1 { font: 400 44px/1.1 var(--serif); margin: 0; }
.admin-wrap h2 { margin: 36px 0 12px; font-size: 20px; }
.admin-wrap h2 small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--card); }
.stat b { display: block; font-size: 26px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 13px; }
.give-form { display: grid; grid-template-columns: 1.2fr 1.5fr auto auto; gap: 12px; align-items: end; }
.give-form .check { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.give-form .btn { border: 0; min-height: 42px; cursor: pointer; }
.give-result code { display: block; font: 400 12px/1.5 var(--mono); word-break: break-all; margin: 8px 0; }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-tools input { flex: 1; min-width: 220px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding: 8px; }
.admin-table td { border-bottom: 1px solid #242526; padding: 10px 8px; vertical-align: top; }
.admin-table td small { display: block; color: var(--muted); }
.admin-table .num { text-align: right; }
.admin-table .actions { white-space: nowrap; text-align: right; }
.admin-table .actions .btn + .btn { margin-left: 6px; }
.badge { display: inline-block; margin: 4px 4px 0 0; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  background: #2b2520; color: var(--warm); }
.badge.test { background: #20262e; color: #9cc3ff; }
.badge.muted { background: #222; color: var(--muted); }
@media (max-width: 760px) {
  .give-form { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px; }
}

.dl-help { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }

/* Reviews page and the admin's review queue. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reviews-wrap { padding-block: 8px 88px; }
.review-summary { font-size: 18px; font-weight: 600; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 36px; }
.review-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 20px; overflow-wrap: anywhere; }
.review-card p { margin: 0 0 10px; }
.review-card p .badge { margin: 0 0 0 8px; }
.review-text { white-space: pre-line; }
.review-by { color: var(--muted); font-size: 14px; }
.review-by a, .review-by b { color: var(--ink); }
.review-stars { color: var(--warm); letter-spacing: 2px; }
.review-stars i { font-style: normal; opacity: .25; }
.review-actions { display: flex; gap: 8px; margin: 12px 0 0 !important; }
.review-write { max-width: 640px; margin: 0 auto; scroll-margin-top: 24px; }
.auth-form textarea { font: inherit; color: var(--ink); background: #0d0e0f; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.auth-form textarea:focus { outline: 2px solid var(--warm); outline-offset: 1px; }
.auth-form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.auth-form label.check input { min-height: 0; margin-top: 3px; }
.stars { border: 0; padding: 0; margin: 0; }
.stars legend { color: var(--muted); font-size: 14px; padding: 0; }
.stars div { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-form .stars label { display: block; font-size: 34px; line-height: 1.2; padding: 0 3px; color: #55514a; cursor: pointer; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--warm); }
.stars input:focus-visible + label { outline: 2px solid var(--warm); border-radius: 4px; }
