/* Launch Part 2d (D77): the parts of the look "Warmes Papier" that are new on the page:
   the mark, the start page's trainer cards, the trainer's title row with the one fold-out
   line, and the review's closed rows. Colours and sizes come from the tokens in app.css. */

/* The fox mark beside the title. */
.mark { width: 40px; height: 40px; flex: none; }
.mark-fur { fill: var(--fox); }
.mark-cheek { fill: var(--fox-cheek); }
.mark-dark { fill: var(--ink); }
.mark-title { display: flex; align-items: center; gap: 10px; }

/* Start page: one card per trainer; only the main one has a button. */
.apps { display: flex; flex-direction: column; gap: 12px; }
a.app { display: flex; flex-direction: column; gap: 14px; border: 0; border-radius: var(--r-card); padding: var(--pad-card); box-shadow: var(--shadow); transition: none; }
a.app:hover { transform: none; }
.app-row { display: flex; align-items: center; gap: 14px; }
.app-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app .icon { width: 48px; height: 48px; flex: none; border-radius: var(--r-btn); }
.app .subject { font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--muted); }
.app h2 { font-size: 1.15rem; line-height: 1.25; }
.app p { font-size: 1rem; }
.app .miss { margin-top: 0; font-size: 1rem; }
.app .go { display: flex; align-items: center; justify-content: center; color: var(--on-accent); }
.app-arrow { font-size: 1.5rem; color: var(--muted); }
.ev { border: 0; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px var(--pad-card); gap: 16px; }
.ev .days, .countdown .days { font-size: 2.2rem; font-weight: 900; color: var(--accent); }
.label { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 1rem; }

/* Trainer: the title row and the one line that unfolds tabs, chips and the test date. */
.title-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.title-row h1 { font-size: var(--fs-h2); min-width: 0; overflow-wrap: anywhere; }
.icon-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 2px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.setup { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; text-align: left; border: 0; border-radius: var(--r-btn); background: var(--accent-soft); color: var(--ink); padding: 8px 14px; }
.setup-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.setup-text b { font-weight: 800; overflow-wrap: anywhere; }
.setup-text small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.setup .badge { min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--bad); color: var(--on-bad); font-size: 1rem; font-weight: 800; text-align: center; }
.setup-arrow { color: var(--muted); }
.setup[aria-expanded="true"] .setup-arrow { transform: rotate(180deg); }
.setup-panel { display: flex; flex-direction: column; gap: 14px; }
.setup-panel .sub { margin: 0; color: var(--muted); }
#trainer { gap: 12px; }

/* Review: every item is a closed row; a tap opens its fields in place. */
.review-item { padding: 0; gap: 0; }
.row-top { display: flex; align-items: stretch; }
.row-head { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; padding: 10px var(--pad-card); border-radius: var(--r-card); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-text b { overflow-wrap: anywhere; }
.row-text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-mark { flex: none; font-size: 1.4rem; color: var(--muted); }
.row-mark.done { color: var(--good); font-weight: 900; font-size: 1.2rem; }
.row-body { display: flex; flex-direction: column; gap: 10px; padding: 4px var(--pad-card) var(--pad-card); }
.row-body[hidden] { display: none; }
.row-done { align-self: flex-end; }
.row-top .group-pick { align-self: center; margin-left: 8px; }
.review-checked { margin: 0; font-weight: 800; }
.review-last { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 8px; }
.review-end { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-bar { flex-wrap: nowrap; }
.review-bar > .btn, .review-approve { flex: 1 1 0; }
.review-approve .btn { width: 100%; }
.review-bar .unsaved, .review-msg { flex: 0 0 100%; }
.review-bar:has(.unsaved:not(:empty)), .review-bar:has(.review-msg:not(:empty)) { flex-wrap: wrap; }

/* Shared parts in the look: a plain button is white with a line; tags are quiet; the text
   of a card stands left, easier to read than centred lines. */
.btn { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.good { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.btn.bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
/* An action that cannot be undone (D88): red in both themes; its text still says what it does. */
.btn.btn-danger { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.row > .btn.good, .row > .btn.bad { padding-left: 8px; padding-right: 8px; }
.tag { background: var(--accent-soft); color: var(--ink); }
.flash { align-items: stretch; text-align: left; gap: 10px; }
.flash > .btn.listen, .flash .test-given { align-self: center; }
.flash .term, .flash .answer span, .flash .back .lbl, .flash .forms span, .group th { font-weight: 800; color: var(--muted); }
.flash .answer, .flash .back, .flash .plain, .flash .forms div, .why, .model, .tip, .review-check-all { border-radius: var(--r-btn); }
.tabs { background: none; padding: 0; gap: 8px; }
.tab { border: 2px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
.tab .badge { background: var(--bad); color: var(--on-bad); }
.back { border-color: transparent; background: none; padding-left: 0; }
.progress { background: var(--line); }
.group { border: 0; box-shadow: var(--shadow); border-radius: var(--r-card); }
.countdown { border: 0; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px var(--pad-card); }
.child-row { padding: 16px var(--pad-card); }

/* D83: the screen of an unverified account. The delete control stands apart, at the end. */
.verify-delete { margin-top: 2rem; }
/* "Konto löschen" on the family page: the last section, apart from everything above it. */
.account-delete-section { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.account-delete .btn, .verify-delete .btn { margin: .5rem .5rem 0 0; }
.form-ok:empty { display: none; }
.form-hint { margin: 0; color: var(--muted); }
.form-hint:empty { display: none; }
