/* nimiq.kids parent — the approval card (public/parent/views-approvals.js).
   Split out of parent.css at the 800-line CI guard, for the same reason and on the same terms
   as board.css and share.css: it is one screen's chrome, it uses parent.css's tokens, and it
   loads AFTER it so it wins at equal specificity. It loads BEFORE share.css, which reaches into
   these rules (`.ap-card .sh-wrap ~ .ap-actions`) and has to keep winning. */
.ap-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ap-head { display: flex; align-items: center; gap: 12px; }
.ap-head .identicon { width: 44px; height: 44px; flex-shrink: 0; }
.ap-who { flex: 1; min-width: 0; }
.ap-kid { font-weight: 700; }
.ap-when { font-size: 12px; font-weight: 600; color: var(--ink-50); }
/* The head's right column: what the kid did, then what it pays (#416). Capped so a long
   chore title truncates instead of squeezing the kid's name, and `min-width: 0` because a
   flex child will not shrink below its content without it, which is how an ellipsis that is
   set but never applied happens. */
.ap-right { margin-left: auto; min-width: 0; max-width: 62%; text-align: right; }
.ap-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-reward { text-align: right; }
.ap-reward .amount { font-weight: 700; color: var(--paint-grass); white-space: nowrap; }
.ap-reward .fiat-amount { display: block; font-size: 12px; font-weight: 600; color: var(--ink-50); }
.ap-what { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.ap-what svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--navy); }
.ap-msg { font-size: 13.5px; color: var(--ink-50); font-weight: 600; margin-top: -6px; }
.ap-tasks { display: flex; flex-direction: column; gap: 6px; }
.ap-task { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.ap-task .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-task .el { color: var(--ink-40); font-size: 12px; }
.ap-task svg { width: 13px; height: 13px; flex-shrink: 0; }
.ap-task .ok { color: var(--paint-grass); display: inline-flex; }
.ap-task .skip { color: var(--ink-40); display: inline-flex; font-size: 11px; font-weight: 700; }
/* A side quest the kid left alone (#341). Neutral, not a failure mark: the plus says what it
   was (extra on top) and the muted ink says it did not happen. */
.ap-task .passed {
  color: var(--ink-40); display: inline-flex; align-items: center; justify-content: center;
  width: 13px; font-size: 14px; font-weight: 700; line-height: 1;
}
.ap-photo { border: none; background: none; padding: 0; border-radius: 8px; overflow: hidden; line-height: 0; }
.ap-photo img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.ap-actions { display: flex; gap: 10px; }
.ap-actions .pill-btn { flex: 1; }
.pill-btn.green { color: #fff; background-color: var(--paint-grass); background-image: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.hl { outline: 2px solid var(--paint-blurple); outline-offset: 3px; }

