/* Kagn Plants: the Scan tab, only what app.css does not already cover (forked from cats/scan.css).
   Colours are the app's (forest, sand, green, gold). No corner brackets are drawn. */

.stack { display: flex; flex-direction: column; gap: 10px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; padding: 20px; border-radius: 20px; background: #f5f0e8; border: 1px solid var(--line); text-align: center; }
.drop-title { font-size: 18px; font-weight: 600; }

/* a visible-label file button: the real input is there for the keyboard and the screen reader */
.pick { position: relative; overflow: hidden; }
.pick-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.pick:focus-within, .shot-add:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

.promo { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--forest); text-decoration: none; }
.promo-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.promo-title { font: 600 20px/1.2 var(--serif); color: var(--cream); }
.promo-sub { font-size: 15px; color: #d7e6dc; }
/* the card to Kagn under "Try another photo" (views-scan.js backCard, 2026-11-22) */
.promo-back { margin-top: 18px; }

.scan-photo { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: 20px; background: var(--line); }
.scan-photo-wide { height: 250px; border-radius: 0; }
.shots { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.shot { position: relative; display: block; width: 64px; height: 64px; }
.shot img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid var(--green); }
.shot-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 14px; background: var(--forest); color: #fff; font: 700 18px/1 var(--sans); cursor: pointer; }
.shot-add { display: flex; align-items: center; justify-content: center; border: 1.5px dashed #7a8a7f; border-radius: 12px; color: var(--green); font-size: 28px; cursor: pointer; overflow: hidden; }
.shots-note { flex: 1; min-width: 140px; line-height: 1.3; }
.btn-gap { width: 10px; }
.link-btn { align-self: center; min-height: 44px; padding: 10px 14px; border: 0; background: transparent; color: var(--green); font: 700 17px var(--sans); text-decoration: underline; cursor: pointer; }

/* the result: the best name in a card, then up to two "could also be" */
.results { display: flex; flex-direction: column; gap: 14px; }
.result { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--ink); text-decoration: none; }
.result-img { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--line); }
.result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 19px; font-weight: 700; }
.result-name { overflow-wrap: anywhere; }
.meter { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 8px; border-radius: 4px; background: var(--green); }
.btn-gold { border-color: var(--gold-text); color: var(--gold-text); }
.gold-text { color: var(--gold-text); }

/* a paying user: the line about the plant, the notice before a closer look, a reason under a name, the free row */
.note-field { display: flex; flex-direction: column; gap: 6px; }
.note-label { font-weight: 700; }
.note-box { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 16px/1.4 var(--sans); resize: vertical; }
.plus-notice { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.plus-notice p { margin: 0; line-height: 1.4; }
.result-why { font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.plus-row { margin: 0; line-height: 1.4; }
.plus-row a { color: var(--green); font-weight: 700; text-underline-offset: 2px; }

/* the plant result */
.result-best { display: flex; flex-direction: column; gap: 6px; }
.best-common { font: 600 26px/1.15 var(--serif); overflow-wrap: anywhere; }
.best-sci { font-style: italic; color: var(--muted); font-size: 17px; overflow-wrap: anywhere; }
.step-pill { align-self: flex-start; margin-top: 4px; padding: 5px 12px; border-radius: 16px; background: var(--green-pale); color: var(--forest); font-size: 15px; font-weight: 700; }
.also { gap: 8px; }
.also-title { font: 600 19px/1.2 var(--serif); }
.also-list { gap: 8px; }
.also-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.also-name { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
a.also-name .also-common { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.also-common { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.also-sci { font-style: italic; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }

/* Kagn Premium teaser (2026-11-26): the closer look's marks, notes and reasons blurred for a free user behind one lock box. */
.teaser-blur { filter: blur(5px); user-select: none; pointer-events: none; }
.teaser-lock { margin: 12px 0; padding: 14px 16px; background: #fff; border: 1px solid var(--gold-line); border-radius: 14px; text-align: center; }
.teaser-lock p { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--forest); }
.teaser-lock p:last-child { margin-bottom: 0; }
.closer-look .closer-first, .closer-look .closer-notes { margin: 8px 0; }
.closer-look ul { margin: 8px 0; padding-left: 18px; }
/* Every field mark sits where the first one does (final review 2026-11-26: a payer's marks 2+ were indented). */
.closer-look ul.closer-marks { padding-left: 0; }
/* Above the blurred notes, outside the blur: what is there, and that it is Kagn Premium (as Kagn has it). */
.teaser-notes-label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; font-size: 14px; font-weight: 700; color: var(--forest); text-decoration: none; }
.teaser-notes-label svg { flex: none; }
/* The closer look's headings (2026-11-29, Kagn's result screen's words): the app's own h3 (app.css .section h3), spaced here;
   a free user's notes heading is the padlocked "Notes · Kagn Premium" label, at the heading's size. */
.closer-look .closer-h { margin: 14px 0 4px; }
.closer-look .closer-h .teaser-notes-label { margin: 0; font-size: inherit; }
/* One "Could also be" (2026-11-29): Kagn's line under the heading, each look-alike's tell-apart lines under its name. */
.also .also-hint { margin: 4px 0 8px; }
.also-item ul.also-reasons { margin: 4px 0 0; padding-left: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.also-item .teaser-lock { margin: 8px 0 0; }
/* A blurred block opens the plans (2026-11-29); its content stays inert. */
.teaser-open { display: block; color: inherit; text-decoration: none; }
.also .also-lock-label { margin: 0 0 8px; }
.pill-lock { display: inline-flex; align-items: center; margin-left: 8px; color: var(--green); }
