/*
 * Reader Account features in the f3 look (2026-09-30): Continue listening, the reading lists
 * (4-04 "Your reading lists" and one list opened), the "Add to list" menu, the verify notice
 * on My shelf and the verify screen's extra states (4-10). Every colour is an --account-*
 * token, so light, dark and device appearance keep working. Values follow the design's
 * inline styles in "9-2 Source - English site" where the design draws the part.
 */

/* Continue listening: the violet play button and bar (design #4B3CC9 on #ECE9FF). */
.account-body .account-progress-card--listen .account-progress-card__go { background: var(--account-violet); color: var(--account-surface); }
.account-body .account-progress-card--listen .account-progress-card__go:hover { background: var(--account-ink); color: var(--account-surface); }
.account-body .account-progress-card--listen progress.account-progress-card__track { background: var(--account-violet-bg); color: var(--account-violet); }
.account-body .account-progress-card--listen progress.account-progress-card__track::-webkit-progress-bar { background: var(--account-violet-bg); }
.account-body .account-progress-card--listen progress.account-progress-card__track::-webkit-progress-value { background: var(--account-violet); }
.account-body .account-progress-card--listen progress.account-progress-card__track::-moz-progress-bar { background: var(--account-violet); }

/* The "please verify" notice on My shelf: the verify screen's mail note, one line with its action. */
.account-verify-notice {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin: 14px 0 0; padding: 12px 16px;
  border: 1.5px solid var(--account-line); border-radius: 16px; background: var(--account-soft);
  font-size: 15px; line-height: 1.5; color: var(--account-body);
}
.account-verify-notice svg { flex: 0 0 auto; color: var(--account-accent); }
.account-verify-notice span { flex: 1 1 240px; min-width: 0; }
.account-verify-notice .account-btn { flex: 0 0 auto; }

/* A small menu that opens under its button (New list, Rename, Add to list). A <details>, so it
   works without script; it never covers the page on a phone (the panel stays in the viewport). */
.account-pop { position: relative; }
.account-pop > summary { list-style: none; }
.account-pop > summary::-webkit-details-marker { display: none; }
.account-pop__panel {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 32px)); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px;
  background: var(--account-surface); box-shadow: 0 20px 50px rgba(80, 40, 25, .16), 0 0 0 1px var(--account-line);
}
.account-pop--end .account-pop__panel { left: auto; right: 0; }
.account-pop__panel .account-field { margin: 0; }
.account-pop__panel .account-field input { box-sizing: border-box; width: 100%; }

/* "Your reading lists": the design's list cards (22 px radius, 14 px padding, three covers
   fanned at 44 x 66). Our lists carry no cover picture yet, so the fan is three plain tints. */
.account-lists { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.account-list-card {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 22px;
  background: var(--account-surface); box-shadow: var(--app-card-shadow); text-decoration: none;
}
.account-body .account-list-card { color: var(--account-ink); }
.account-body .account-list-card:hover { color: var(--account-ink); background: var(--account-soft); }
.account-body .account-list-card:focus-visible { border-radius: 22px; }
.account-list-card__stack { display: flex; flex: 0 0 auto; }
.account-list-card__stack span { width: 44px; height: 66px; border-radius: 8px; margin-right: -14px; box-shadow: 0 6px 14px -6px var(--account-shadow); background: var(--f2-night, #2A2350); }
.account-list-card__stack span:nth-child(2) { background: var(--account-accent); }
.account-list-card__stack span:nth-child(3) { background: var(--account-violet); margin-right: 0; }
.account-list-card__text { flex: 1; min-width: 0; padding-left: 14px; display: flex; flex-direction: column; gap: 2px; }
.account-list-card__text b { font-size: 16px; overflow-wrap: anywhere; }
.account-list-card__text span { font-size: 13.5px; color: var(--account-muted); }
.account-list-limit { margin: 12px 0 0; font-size: 14px; color: var(--account-muted); }

/* One list opened: its name and count, Rename and Delete, then its books as the shelf grid. */
.account-list__head { flex-wrap: wrap; align-items: flex-start; }
.account-list__title { flex: 1 1 220px; min-width: 0; }
.account-list__title h2 { overflow-wrap: anywhere; }
.account-list__title p { margin: 4px 0 0; font-size: 15px; color: var(--account-muted); }
.account-list__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.account-list__acts form { margin: 0; }
.account-list__acts .account-pop__panel { left: auto; right: 0; }
.account-body .account-btn--danger-quiet { border-color: var(--account-danger-line); color: var(--account-danger); }
.account-body .account-btn--danger-quiet:hover { border-color: var(--account-danger); color: var(--account-danger); background: var(--account-danger-bg); }
.account-list__books .account-covers > li { position: relative; }
.account-body .account-list__remove {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: 700 13.5px/1.2 var(--f2-ui); color: var(--account-accent); cursor: pointer;
}
.account-body .account-list__remove:hover { color: var(--account-accent-hover); text-decoration: underline; }
.account-list__books form { margin: 0; }

/* "Add to list" on a book's shelf page: each list as a row with its state and a toggle. */
.account-addlist { display: flex; flex-direction: column; gap: 12px; }
.account-addlist h2 { margin: 0; }
.account-addlist ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.account-addlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 4px 4px 4px 14px; border: 1.5px solid var(--account-line); border-radius: 14px; }
.account-addlist li b { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.account-addlist li .account-btn[aria-pressed='true'] { background: var(--account-success-bg); border-color: var(--account-success-bg); color: var(--account-success); }
.account-addlist__new { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.account-addlist__new .account-field { flex: 1 1 200px; margin: 0; }
.account-addlist__status { margin: 0; font-size: 14px; color: var(--account-muted); }

/* The verify screen (4-10): days left, the paused state, the email change and "Your data". */
.account-auth__grace { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--account-label); }
.account-auth__paused {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 16px;
  background: var(--account-warn-bg); color: var(--account-warn); font-size: 15px; line-height: 1.55; font-weight: 600;
}
.account-auth__paused svg { flex: 0 0 auto; margin-top: 2px; }
.account-verify-change > summary { list-style: none; }
.account-verify-change > summary::-webkit-details-marker { display: none; }
.account-verify-change[open] > summary { margin-bottom: 12px; }
.account-verify-change form { display: flex; flex-direction: column; gap: 14px; }
.account-verify-change .account-field { margin: 0; }
.account-verify-change .account-field > p { margin-top: 2px; }
.account-verify-more { border-top: 1px solid var(--account-line); padding-top: 4px; }
.account-verify-more > summary {
  display: flex; align-items: center; justify-content: center; min-height: 44px; list-style: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--account-label);
}
.account-verify-more > summary::-webkit-details-marker { display: none; }
.account-verify-more__body { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.account-verify-more__body form { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.account-verify-more__body h3 { margin: 0; font-size: 15.5px; }
.account-verify-more__body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--account-muted); }

/* Google and Facebook (when the owner turns them on): an "or" rule and one wide button each. */
.account-social { display: flex; flex-direction: column; gap: 10px; }
.account-social__or { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 13.5px; color: var(--account-muted); }
.account-social__or::before, .account-social__or::after { content: ''; flex: 1; height: 1px; background: var(--account-line); }
.account-social form { margin: 0; }

/* A list book without a cover picture: the house cover's night block with the title. */
.account-list__house {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; box-sizing: border-box;
  background: var(--f2-night, #2A2350); color: var(--f2-night-text, #C4BEE6);
}
.account-list__house b { font-family: var(--f2-serif); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.account-social-finish { margin-bottom: 18px; padding: 16px; border: 1.5px solid var(--account-line); border-radius: 16px; background: var(--account-soft); }
.account-social-finish h2 { margin: 0 0 6px; font-size: 17px; }
.account-social-finish p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--account-body); overflow-wrap: anywhere; }
