/* Panora Life — the weekly review (js/review.js).
 * Each part of the app keeps its tile colour (css/home.css) as a stripe down
 * its card, so the review reads as the same grid, unrolled.
 */
.dom-wins .rv-open{
  width:100%; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:2px 0 14px; padding:13px 16px; text-align:left; cursor:pointer;
  border:1px solid var(--edge); border-radius:16px; background:var(--surface);
  box-shadow:var(--shadow-card); color:var(--ink); font:inherit;
  -webkit-tap-highlight-color:transparent;
}
.dom-wins .rv-open:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.dom-wins .rv-open-t{ font-weight:700; font-size:16px; }
.dom-wins .rv-open-s{ font-size:13px; flex:1; }
.dom-wins .rv-open-c{ font-size:22px; color:var(--accent-text, var(--accent)); }

.dom-review .rv-nav{ display:flex; align-items:center; gap:10px; margin:0 0 14px; }
.dom-review .rv-range{ flex:1; text-align:center; }
.dom-review .rv-title{ font-weight:700; font-size:17px; }
.dom-review .rv-dates{ font-size:14px; }
.dom-review .rv-step{
  width:40px; height:40px; border-radius:12px; border:1px solid var(--edge);
  background:var(--surface); color:var(--ink); font-size:22px; cursor:pointer;
}
.dom-review .rv-step:disabled{ opacity:.35; cursor:default; }

.dom-review .rv-card{ position:relative; padding:12px 16px 8px 20px; margin-bottom:12px; overflow:hidden; }
.dom-review .rv-card::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background:var(--c, var(--accent));
}
.dom-review .rv-card[data-domain="food"]{ --c:#b08a3c; }
.dom-review .rv-card[data-domain="exercise"]{ --c:#a8654a; }
.dom-review .rv-card[data-domain="sleep"]{ --c:#62739a; }
.dom-review .rv-card[data-domain="still"]{ --c:#6f9a66; }
.dom-review .rv-card[data-domain="focus"]{ --c:#86708e; }
.dom-review .rv-head{ font-weight:700; font-size:15px; margin-bottom:4px; }
.dom-review .rv-row{
  display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding:7px 0; border-top:1px solid var(--edge);
}
.dom-review .rv-head + .rv-row, .dom-review .rv-wins .rv-row:first-child{ border-top:0; }
.dom-review .rv-label{ font-size:14.5px; color:var(--ink-muted); }
.dom-review .rv-val{ text-align:right; display:flex; flex-direction:column; align-items:flex-end; }
.dom-review .rv-val b{ font-size:16px; font-variant-numeric:tabular-nums; }
.dom-review .rv-delta{ font-size:12px; color:var(--ink-muted); font-variant-numeric:tabular-nums; }
.dom-review .rv-quiet{ font-size:14px; margin:4px 2px 10px; }
.dom-review .rv-note{ margin-top:6px; }
@media (min-width: 720px){
  .screen.dom-review{ max-width:720px; margin-left:auto; margin-right:auto; }
}

/* ---------- the written summary (part 2) ---------- */
.dom-review .rv-card[data-domain="ai"]{ --c:var(--accent); }
.dom-review .rv-ai-text{ font-size:16px; line-height:1.5; margin:4px 0 8px; }
.dom-review .rv-ai-btn{ width:auto; margin:6px 0 8px; }
.dom-review .rv-ai-err{ color:var(--danger); font-size:14px; margin:4px 0 8px; }
.rv-link{ background:none; border:0; padding:0; color:var(--accent-text, var(--accent)); font:inherit; cursor:pointer; text-decoration:underline; }
.rv-link:disabled{ opacity:.5; cursor:default; }
.rv-link.danger{ color:var(--danger); }
/* The "before this leaves your phone" sheet. Above the Home strip (z 45). */
.rv-sheet{
  position:fixed; inset:0; z-index:95; background:rgba(0,0,0,.4);
  display:flex; align-items:flex-end; justify-content:center;
}
.rv-sheet-card{
  width:100%; max-width:520px; background:var(--surface); color:var(--ink);
  border-radius:20px 20px 0 0; padding:20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -6px 24px rgba(0,0,0,.25);
}
.rv-sheet-card h2{ font-size:20px; margin:0 0 10px; }
.rv-sheet-card p{ margin:0 0 10px; font-size:15px; line-height:1.45; }
/* The one AI agreement's four points (js/ai.js, decision 0087). */
.rv-sheet-card .rv-points{ margin:0 0 12px; padding-left:18px; font-size:14px; line-height:1.45; }
.rv-sheet-card .rv-points li{ margin:0 0 6px; }
.rv-field{ display:flex; flex-direction:column; gap:6px; margin:12px 0; font-weight:600; font-size:14px; }
.rv-field input{ font:inherit; font-weight:400; padding:10px 12px; border-radius:10px; border:1px solid var(--edge-strong); background:var(--canvas); color:var(--ink); }
.rv-check{ display:flex; gap:8px; align-items:flex-start; font-size:14px; margin:0 0 14px; }
.rv-sheet-btns{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
@media (min-width: 720px){ .rv-sheet{ align-items:center; } .rv-sheet-card{ border-radius:20px; } }

/* Send feedback (js/feedback.js), in the same sheet. */
.fb-kinds{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 12px; }
.fb-kind{ font:inherit; font-size:14px; font-weight:600; padding:8px 14px; border-radius:999px; cursor:pointer;
  border:1.5px solid var(--edge-strong); background:transparent; color:var(--ink); }
.fb-kind[aria-checked="true"]{ border-color:var(--accent); background:color-mix(in srgb, var(--accent) 16%, transparent); color:var(--accent-text, var(--ink)); }
#fb-text{ display:block; width:100%; box-sizing:border-box; min-height:120px; resize:vertical; font:inherit; font-size:16px; line-height:1.4;
  padding:12px; border-radius:12px; border:1px solid var(--edge-strong); background:var(--canvas); color:var(--ink); margin:0 0 12px; }
.fb-det{ opacity:.75; }
#fb-sheet input[type="checkbox"]{ accent-color:var(--accent); width:18px; height:18px; flex:none; }
.fb-where{ font-size:13px !important; color:var(--ink-muted); }
.fb-msg{ min-height:1.2em; font-size:14px !important; margin:0 0 8px !important; }
.fb-msg.rv-warn{ color:var(--danger); }
.fb-thanks{ text-align:center; padding:8px 0 4px; }
.fb-thanks svg{ color:var(--accent-text, var(--accent)); margin:6px auto 8px; display:block; }
.fb-thanks .btn{ margin-top:8px; }

/* A better week, celebrated (2026-10-10): rises where more is better turn green. */
.dom-review .rv-delta.good{ color:#2f9e62; font-weight:600; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .dom-review .rv-delta.good{ color:#6fd29b; } }
:root[data-theme="dark"] .dom-review .rv-delta.good{ color:#6fd29b; }

/* Personal patterns (js/patterns.js): plain sentences, the day counts beside them. */
.dom-review .rv-pattern{ margin:6px 0 10px; line-height:1.45; }
.dom-review .rv-pattern + .tiny{ margin-top:4px; }

/* ---------- Ask your data (js/ask.js) ---------- */
.dom-wins .rv-ask-open{ margin-top:-6px; }
.dom-review .ask-form{ display:flex; gap:8px; margin:6px 0 10px; }
.dom-review .ask-form input{ flex:1; min-width:0; font:inherit; font-size:16px; padding:10px 12px; border-radius:10px;
  border:1px solid var(--edge-strong); background:var(--canvas); color:var(--ink); }
/* With a microphone (decision 0149) the box takes the whole first row, so its hint is never
   cut off in Spanish or Portuguese; the microphone and Ask share the row below. */
.dom-review .ask-form:has(.ask-mic){ flex-wrap:wrap; }
.dom-review .ask-form:has(.ask-mic) input{ flex:1 1 100%; }
.dom-review .ask-form:has(.ask-mic) .ask-go{ flex:1; }
.dom-review .ask-form .ask-mic{ flex:none; align-self:center; }
.dom-review .ask-form .ask-go{ flex:none; width:auto; min-width:72px; padding:10px 16px; }
.dom-review .ask-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.dom-review .ask-chip{ border:1px solid var(--edge-strong); background:transparent; color:var(--ink); border-radius:999px;
  padding:7px 12px; font:inherit; font-size:13px; cursor:pointer; text-align:left; }
.dom-review .ask-qa{ padding:10px 0; border-top:1px solid var(--edge); }
.dom-review .ask-q{ margin:0 0 4px; font-weight:700; }
.dom-review .ask-a{ margin:0; font-size:15px; line-height:1.5; }
/* The crisis answer (decision 0094): set apart, warm, the line in full weight. */
.dom-review .ask-care{ margin-top:6px; padding:12px 14px 4px; border-radius:12px 12px 0 0; background:var(--accent-soft, rgba(138,61,143,.10)); }
/* The kind answer as a sheet, before a box sorts, logs or sends (js/care.js, decision 0098). */
.care-also{ display:block; margin-top:8px; }
.care-sheet .care-line{ padding:10px 12px; border-radius:12px; background:var(--accent-soft, rgba(138,61,143,.10)); }
.care-sheet .rv-sheet-btns{ flex-wrap:wrap; }
.dom-review .ask-care-line{ padding:0 14px 12px; border-radius:0 0 12px 12px; background:var(--accent-soft, rgba(138,61,143,.10)); }
.dom-review .ask-qa.older{ opacity:.75; }

/* Audit A23/A24/A26: the agreement buttons side by side, Agree as the primary. */
.rv-sheet-pair{ display:flex; gap:10px; }
.rv-sheet-pair .btn{ min-width:104px; }
.rv-code-help{ font-size:13px !important; margin-top:-4px !important; }
.rv-code-help.rv-warn{ color:#b3261e; font-weight:700; }

/* With Panora’s AI: the written summary folded until a code is set up (js/review.js, Phase 2.5). */
.rv-ai-fold > summary.rv-head{ min-height:44px; display:flex; align-items:center; cursor:pointer; margin:0; }

/* The monthly letter (decision 0026). */
.rv-letter-p{ margin:0 0 10px; font-size:16px; line-height:1.5; }
.rv-letter-try{ margin:4px 0 8px; }

/* Bring your history (js/imports.js, decision 0035). */
.imp-how{ margin:0 0 12px; padding-left:18px; display:grid; gap:4px; }
.imp-found{ min-height:1.4em; }
.imp-found p{ margin:0 0 6px; }
/* Three buttons are too wide for one phone row: the pair wraps under Close, right-aligned. */
#imp-sheet .rv-sheet-btns{ flex-wrap:wrap; justify-content:flex-end; }
#imp-sheet .rv-sheet-btns > #imp-cancel{ margin-right:auto; }
