/* Account and Help pages. Tokens and the card, notice and button styles come from /styles.css. */
.acct-list { margin: 0; display: grid; gap: 12px; }
.acct-list > div { display: grid; gap: 2px; }
.acct-list dt { font-size: 13px; color: var(--muted); }
.acct-list dd { margin: 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.card h2 { font-size: clamp(24px, 4vw, 30px); }

.acct-status { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.acct-status h2 { font-size: clamp(22px, 4vw, 27px); line-height: 1.15; }
.acct-status p { color: var(--body); margin-top: 4px; }
.acct-dot { width: 12px; height: 12px; border-radius: 50%; background: #c9c3b6; flex: none; margin-top: 9px; }
.acct-status.good .acct-dot { background: #3fae6a; }
.acct-status.warn { background: #fff6df; border-color: var(--mustard); }
.acct-status.warn .acct-dot { background: var(--mustard); }
.acct-status.bad { background: var(--bad-bg); border-color: #e3b19c; }
.acct-status.bad .acct-dot { background: var(--bad-ink); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.acct-actions form { margin: 0; }

.acct-code { display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.acct-code-row { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-code-row input { flex: 1 1 200px; width: auto; text-transform: uppercase; }
.acct-code-row .btn { width: auto; }

.acct-more { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 4px 16px; }
.acct-more > summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--ink); }
.acct-more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.acct-more > :last-child { margin-bottom: 16px; }
.acct-form { display: grid; gap: 10px; }
.acct-form textarea, .card textarea { font: 16.5px/1.4 var(--text); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical; }
.card textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px #1d4f4c33; }
.acct-form input[readonly] { background: var(--paper-2); color: var(--body); }
.acct-reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.acct-reasons legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 4px; }
.acct-radio { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.acct-radio:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.acct-radio input { width: 20px; height: 20px; flex: none; accent-color: var(--tomato); }
.danger-zone { background: #fff; }
.comp-ended { border-color: var(--mustard); background: #fff6df; }
.help-col { max-width: 780px; width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .acct-actions .btn, .acct-code-row .btn { width: 100%; }
}
.help-h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 14px; }

/* narrow phones (320): the plan card's status, button and code field wrap instead of pushing the page sideways */
.acct-status, .acct-status > *, .acct-code, .acct-code-row > * { min-width: 0; }
.acct-status { flex-wrap: wrap; }
.acct-status h2, .acct-status p { overflow-wrap: anywhere; }
.acct-code-row input { flex: 1 1 160px; min-width: 0; width: auto; }
.acct-code-row .btn, .acct-status .btn { max-width: 100%; white-space: normal; }
.acct-code { grid-template-columns: minmax(0, 1fr); }
.acct-code > * { min-width: 0; max-width: 100%; }
.acct-code-row input, .acct-code-row .btn { max-width: 100%; box-sizing: border-box; }

/* ---- a laptop: Account is two columns of cards, Help's questions are two columns (a phone is as it was) ---- */
@media (min-width: 1024px) {
  .page.narrow:has(> #profile) { max-width: 1000px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; align-items: start; }
  .page.narrow:has(> #profile) > .back-to-mix, .page.narrow:has(> #profile) > .app-head, .page.narrow:has(> #profile) > .notice { grid-column: 1 / -1; }
  .help-col#faq { max-width: 1060px; }
  .help-col#faq .faq { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; align-items: start; }
}
/* "Let the A Reel a Day team manage my reels for me" (src/manage.ts): quiet, at the very bottom */
.acct-manage { display: grid; gap: 6px; margin: 8px 0 0; padding: 0 4px; justify-items: start; }
.acct-manage-l { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); cursor: pointer; }
.acct-manage-l input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal); flex: none; }
.acct-manage .fine { margin: 0; }
