/* Daily Life Doc, round 13 (zone F1; round 49, zone B: the four cards): the place To review (js/review/review-page.js)
   and the block Notify me (js/settings/notify.js), drawn as the page "Expert Plans" draws "Clients and To review": cards
   on the card colour as every list row, the kind as a coloured tag (Decide pink, Reply yellow, Info green, Urgent red),
   the client's name, the time, the client's words in curly quotes, a tinted box with the drafted reply or the AI's
   change, the buttons as pills, one short grey line under them; the "? · question" chip outlined. Notify me: rows with a
   label and a grey line, the choices as a segmented row. */

.rv-page { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.rv-list { display: flex; flex-direction: column; gap: 10px; }
.rv-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card);
  animation: cm-in var(--m-add) var(--ease-out); transition: opacity var(--m-remove) ease, transform var(--m-remove) ease; }
.rv-card.leaving { opacity: 0; transform: translateX(16px); }
.rv-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-kind { padding: 2px 9px; border-radius: 6px; font-size: var(--t-xs); font-weight: 600; }
.rv-kind.q { background: var(--try-bg); color: var(--try-d); }
.rv-kind.a { background: var(--care); color: var(--care-d); }
.rv-kind.l { background: var(--soft); color: var(--ink2); }
.rv-kind.c { background: var(--care); color: var(--care-d); } /* Complaint (round 14a, M6) */
.rv-kind.f { background: color-mix(in srgb, var(--sage) 22%, var(--field)); color: var(--sage-d); } /* Finished, Answer (FX3-A) */
.rv-name { font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.rv-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-at { font-size: var(--t-xs); color: var(--ink3); }
/* Round 39 (zone R): "For Dr. Lee", the person a card is routed to, small beside the time. */
.rv-for { font-size: var(--t-xs); font-weight: 600; color: var(--ink2); }
.rv-quote { margin: 0; font-size: var(--t-s); white-space: pre-line; } /* FX-F: an Urgent card holds each crisis message on its own line */
.rv-box { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--field); font-size: var(--t-s); line-height: 1.45; }
.rv-box small { font-size: var(--t-xs); font-weight: 600; color: var(--ink3); }
.rv-card.editing .rv-box { box-shadow: inset 0 0 0 1.5px var(--sage); }
.rv-edit { width: 100%; min-height: 64px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-s); line-height: 1.45; resize: vertical; outline: none; }
.rv-q { align-self: flex-start; padding: 2px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--ink3); font-size: var(--t-xs); font-weight: 600; color: var(--ink2); }
.rv-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-acts .pill[hidden] { display: none; } /* round 53 (B2): Send waits for the expert's words */
/* Nothing waiting: All clear stands in the middle of the column, as No clients yet does. */
.rv-page.clear { margin-inline: auto; }
.rv-list > .emp .pill { background: var(--card); }

/* ---------- Notify me ---------- */
.nt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 52px; padding: 8px 0; }
.nt-row + .nt-row, .nt-tg .nt-row, .nt-tg + .nt-row { border-top: 1px solid var(--cardline); }
.nt-t { display: flex; align-items: center; line-height: 1.3; }
.nt-t b { font-size: var(--t-sm); font-weight: 600; }
.nt-ok { padding: 3px 10px; border-radius: 999px; background: var(--good-bg); color: var(--good-d); font-size: var(--t-xs); font-weight: 600; }
.nt-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--t-xs); }
.nt-link a { color: var(--note-d); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.nt-note { margin: 0 0 6px; font-size: var(--t-xs); color: var(--ink3); }
.nt .ac-seg button { min-height: 30px; padding: 0 12px; font-size: var(--t-xs); }
.nt .ac-seg { flex-wrap: wrap; }
/* Round 32 (zone D): the expert's phone for Text, tinted like every field; a refusal in red under it. */
.nt-in { width: 170px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--field); color: var(--ink);
  font: inherit; font-size: var(--t-xs); outline: none; }
.nt-in:focus { box-shadow: inset 0 0 0 1.5px var(--sage); }
.nt-err { flex-basis: 100%; margin: -4px 0 0; text-align: right; }

@media (max-width: 880px) {
  .rv-card { padding: 12px 14px; }
}

/* Round 23 (zone A): a client's request as a ready action (Approve, Edit, Skip): the tag in the indigo of Plan change. */
.rv-kind.r { background: var(--note); color: var(--note-d); }

/* Round 26 (zone A, A8): Always allow, outlined in the accent so it reads as more than Approve. */
.rv-allow { background: none; box-shadow: inset 0 0 0 1.5px var(--sage); color: var(--sage-d); }

/* Round 26 (fixer FX2): a client who is not okay: "Urgent" in red, the card tinted red; a conflict's two texts side by
   side (stacked on a narrow phone). */
.rv-kind.u { background: var(--bad); color: var(--on-mine); }
.rv-card.rv-urgent { background: color-mix(in srgb, var(--bad-bg) 55%, var(--card)); }
.rv-both { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-both .rv-box { background: color-mix(in srgb, var(--note) 45%, var(--field)); }
@media (max-width: 380px) {
  .rv-both { grid-template-columns: 1fr; }
}

/* Round 46 (zone A): "Approve · Plan change · Kim": the kind word after the tag, a dot before the kind and the name;
   Now and New of an action (removed words struck in grey, added words tinted in the accent, as the knowledge base marks
   Ask AI's changes), one Why line, and one short grey line of what the button does. */
.rv-type { font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.rv-type + .rv-name::before, .rv-kind + .rv-type::before { content: '·'; margin-right: 10px; color: var(--ink3); font-weight: 400; }
.rv-diff del { color: var(--ink3); text-decoration: line-through; }
.rv-diff ins { text-decoration: none; border-radius: 4px; padding: 0 2px; background: color-mix(in srgb, var(--sage) 34%, transparent); }
.rv-none { color: var(--ink3); }
.rv-why { margin: 0; font-size: var(--t-s); line-height: 1.45; color: var(--ink2); }
.rv-why b { margin-right: 4px; font-weight: 600; color: var(--ink); }
.rv-does { margin: 0; font-size: var(--t-xs); line-height: 1.4; color: var(--ink3); }
/* Round 49 (zone B): the line of what happens sits right under the buttons; an Info card is one quiet row. */
.rv-acts + .rv-does { margin-top: -4px; }
.rv-info { gap: 8px; }
.rv-info .rv-event + .rv-event { padding-top: 6px; border-top: 1px solid var(--cardline); }
.rv-box textarea.rv-edit { min-height: 72px; }
/* Round 49 (zone B): an option named by what it does can be long ("Ask Nora about an 11:30 lunch reminder"): on a
   narrow phone it wraps inside its pill instead of running past the card. */
.rv-acts .pill[data-option] { max-width: 100%; white-space: normal; text-align: left; border-radius: 18px; }
/* Fixer FX1 (round 52, walk W1 fault 7): no button of a card is ever wider than the card; a long label wraps. */
.rv-acts .pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* Fixer F3 (walk W1, fault 1): a Research card's page, a link that opens the client's page in a new tab. */
.rv-link { color: var(--sage-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rv-link:hover { text-decoration-thickness: 2px; }
