/* Kagn Plants: the plant doctor (the pitch with its example, the start, the check, a reading, the card).
   The one screen that should look worth paying for is the reading: a forest band with the urgency and the headline,
   then clear blocks (likely causes, do today, the plan as a real checklist, avoid) and the honest foot line.
   Only what app.css, scan.css and plus.css do not already give; the colours are the app's own tokens.
   No corner brackets, no drawn icons. */

/* -- a reading ------------------------------------------------------- */
.d-result { display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.d-head { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; background: var(--forest); }
.d-headline { font: 600 26px/1.15 var(--serif); color: var(--cream); overflow-wrap: anywhere; }
.d-urgency { align-self: flex-start; padding: 4px 12px; border-radius: 14px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.d-urgency-now { background: #f6d4c2; color: var(--alert); }
.d-urgency-soon { background: var(--gold-light); color: var(--ink); }
.d-urgency-watch, .d-urgency-good { background: var(--green-pale); color: var(--forest); }
.d-result-good .d-head { background: var(--green); }
.d-block { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); }
.d-head + .d-block { border-top: 0; }
.d-block h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.d-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.d-today .d-list li::marker { color: var(--green); }

/* the causes, most likely first and larger */
.d-causes { gap: 12px; }
.d-cause { display: flex; flex-direction: column; gap: 4px; }
.d-cause + .d-cause { padding-top: 12px; border-top: 1px dashed var(--line); }
.d-cause-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.d-cause-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.d-cause-first .d-cause-name { font: 600 21px/1.2 var(--serif); }
.d-likely { flex: none; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.d-likely-high { background: var(--forest); color: var(--cream); }
.d-likely-medium { background: var(--green-pale); color: var(--forest); }
.d-likely-low { background: var(--sand); color: var(--muted); border: 1px solid var(--line); }
.d-cause-kind { font-size: 14px; color: var(--muted); }
.d-cause-why { line-height: 1.45; }

/* the plan: a real checklist */
/* An <ol class="plain">: app.css's .plain is for ul only, so the browser drew "1. 2. 3." beside the tick boxes (browser test
   2026-11-21). "Day N" on each step is the numbering. */
.d-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-step { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: 16px/1.4 var(--sans); text-align: left; }
button.d-step { cursor: pointer; }
.d-box { position: relative; flex: none; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--green); border-radius: 8px; background: #fff; }
.d-step-done { border-color: #cfe5d6; background: var(--green-pale); }
.d-step-done .d-box { background: var(--green); }
.d-step-done .d-box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 13px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.d-step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-step-day { font-size: 13px; font-weight: 700; color: var(--green); }
.d-step-do { overflow-wrap: anywhere; }
.d-step-done .d-step-do { color: var(--muted); }
.d-avoid { background: var(--alert-pale); }
.d-avoid h3 { color: var(--alert); }
.d-avoid .d-list li::marker { color: var(--alert); }
.d-note { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); line-height: 1.45; }
.d-foot { font-size: 14px; color: var(--muted); line-height: 1.45; }
.d-case { gap: 16px; }
.d-hero { height: 240px; }
.d-look { display: flex; flex-direction: column; gap: 10px; }
.d-again { gap: 10px; }

/* -- the pitch and its worked example -------------------------------- */
.d-pitch { gap: 18px; }
.d-ticks li { font-size: 17px; }
.d-example { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 2px dashed var(--gold-line); border-radius: 22px; background: var(--gold-pale); }
.d-example-tag { align-self: flex-start; padding: 3px 12px; border-radius: 12px; background: var(--gold-text); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.d-example-for { font-size: 15px; color: var(--gold-text); }
.d-example .d-headline { font-size: 22px; }

/* -- past readings ---------------------------------------------------- */
.d-past-list { gap: 10px; }
.d-past-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.d-past-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-past-head { font-weight: 700; overflow-wrap: anywhere; }
.d-past-meta { font-size: 14px; color: var(--muted); }

/* -- the start and the check ----------------------------------------- */
.d-start, .d-check { gap: 18px; }
.d-job { line-height: 1.45; background: var(--green-pale); border-color: #cfe5d6; }
.d-job-ready { display: block; color: var(--forest); font-weight: 600; text-decoration: none; }
.d-left { align-self: flex-start; padding-left: 0; }
.d-for { color: var(--muted); }
.d-q { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.d-q-title { padding: 0; font: 600 19px/1.25 var(--serif); }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chip { min-height: 52px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 26px; background: var(--card); color: var(--ink); font: 600 17px/1.2 var(--sans); cursor: pointer; }
.d-chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.d-notice { margin: 0; }

/* -- checking: three dots, nothing that spins fast --------------------- */
.d-checking { gap: 16px; text-align: center; align-items: center; }
.d-checking .scan-photo { width: 100%; }
.d-dots { display: flex; gap: 10px; justify-content: center; }
.d-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); animation: d-dot 1.4s ease-in-out infinite; }
.d-dots i:nth-child(2) { animation-delay: .2s; }
.d-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes d-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .d-dots i { animation: none; opacity: .7; } }

/* -- the card under a scan result and a guide's problems --------------- */
.d-card { gap: 8px; }
.d-card-title { font: 600 20px/1.25 var(--serif); color: var(--ink); }
.d-card .btn { margin-top: 4px; }
