/* GreenMaps trait photos: capture sheet, measuring editor, quick traits. Uses the page's colour variables. */
.gmt { position: fixed; inset: 0; z-index: 1900; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; }
.gmt[hidden] { display: none; }
body.gmt-open { overflow: hidden; }
.gmt-box { background: var(--panel); color: var(--ink); width: min(600px, 100%); height: min(860px, calc(100dvh - 32px)); border-radius: 16px; display: flex; flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); overflow: hidden;
  --ic-ink: var(--ink); --ic-leaf: #cfe6d4; --ic-petal: #f7d774; --ic-fruit: #d9a066; --ic-wood: #c8a27a; --ic-clear: #dceefa; }
@media (max-width: 640px) { .gmt-box { width: 100%; height: 100dvh; border-radius: 0; } }
.gmt-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 6px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.gmt-tt { flex: 1; min-width: 0; text-align: center; }
.gmt-tt b { display: block; font-size: 16px; outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmt-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.gmt-steps li { padding: 1px 6px; border-radius: 999px; }
.gmt-steps li.on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.gmt-steps li.ok { color: var(--brand); }
.gmt-steps li.ok::before { content: "✓"; margin-right: 2px; }
.gmt-ib { width: 44px; height: 44px; flex: none; border: 0; background: none; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.gmt-ib:hover, .gmt-ib:focus-visible { background: var(--soft); }
.gmt-body { flex: 1; overflow-y: auto; padding: 12px 14px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.gmt-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.gmt-need { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.gmt-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gmt-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.gmt-fine { font-size: 12px; color: var(--muted); margin: 6px 0; }
.gmt-note { font-size: 13.5px; background: var(--soft); border-radius: 10px; padding: 9px 11px; }
.gmt-h { margin: 16px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.gmt-warnc { color: var(--rare); }

.gmt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; position: relative; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.gmt-btn:hover { border-color: var(--brand); color: var(--brand); }
.gmt-btn.pri { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.gmt-btn.pri:hover { filter: brightness(1.08); color: var(--brand-ink); }
.gmt-btn:disabled { opacity: .45; cursor: default; filter: none; }
.gmt-btn.sm { min-height: 38px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.gmt-btn.ghost { border-color: transparent; color: var(--muted); }
.gmt-btn:focus-visible, .gmt-chip:focus-visible, .gmt-sw:focus-visible, .gmt-cand:focus-visible, .gmt-seg button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.gmt-link { border: 0; background: none; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.gmt-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.gmt-btn:has(.gmt-file:focus-visible) { outline: 3px solid var(--focus); }

/* photo slots */
.gmt-slots { display: grid; gap: 8px; }
.gmt-slot { display: flex; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.gmt-slot.has { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand-soft) 35%, var(--panel)); }
.gmt-pic { position: relative; flex: none; width: 76px; height: 76px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink); }
.gmt-pic img { width: 100%; height: 100%; object-fit: cover; }
.gmt-slot { position: relative; }
.gmt-rm { position: absolute; left: 66px; top: 2px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); background: rgba(28,31,29,.78); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.gmt-rm::after { content: ""; position: absolute; inset: -8px; }   /* bigger touch target */
.gmt-rm:focus-visible { outline: 3px solid var(--focus); }
.gmt-ill { width: 56px; height: 56px; }
.gmt-ill .lf { fill: var(--ic-leaf); } .gmt-ill .pt { fill: var(--ic-petal); } .gmt-ill .fr { fill: var(--ic-fruit); } .gmt-ill .wd { fill: var(--ic-wood); } .gmt-ill .wh { fill: #fff; }
.gmt-txt { flex: 1; min-width: 0; }
.gmt-st { font-weight: 650; font-size: 14.5px; }
.gmt-req, .gmt-opt { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.gmt-req { color: var(--brand); background: var(--brand-soft); } .gmt-req.off { text-decoration: line-through; opacity: .6; }
.gmt-opt { color: var(--muted); border: 1px solid var(--line); }
.gmt-tip { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.gmt-msum { font-size: 12.5px; margin-top: 4px; line-height: 1.35; }
.gmt-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.gmt-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; margin: 12px 2px 4px; line-height: 1.4; cursor: pointer; }
.gmt-check input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--brand); }
.gmt-quick { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.gmt-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: gmtspin .8s linear infinite; }
@keyframes gmtspin { to { transform: rotate(360deg); } }
.gmt-dots::after { content: "…"; animation: gmtdots 1.2s steps(3) infinite; }
@keyframes gmtdots { 0% { content: "."; } 50% { content: ".."; } 100% { content: "…"; } }

/* identify */
.gmt-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.gmt-thumbs img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; background: var(--soft); }
.gmt-cands { display: grid; gap: 6px; }
.gmt-cand { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px 10px 38px; background: var(--panel); cursor: pointer; position: relative; font: inherit; color: inherit; min-height: 48px; }
.gmt-cand::before { content: ""; position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.gmt-cand[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.gmt-cand[aria-checked="true"]::before { border: 5px solid var(--brand); }
.gmt-cn { display: block; font-size: 14.5px; } .gmt-cn small { color: var(--muted); font-size: 12.5px; }
.gmt-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gmt-badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.gmt-badge.ok { color: var(--present); border-color: currentColor; } .gmt-badge.mid { color: var(--rare); border-color: currentColor; } .gmt-badge.no { color: var(--muted); }
.gmt-unk { margin-top: 14px; }
.gmt-search input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.gmt-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.gmt-hits { list-style: none; margin: 4px 0 0; padding: 0; }
.gmt-hits button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.gmt-hits button:hover, .gmt-hits button:focus { background: var(--soft); }
.gmt-hits button span { color: var(--muted); font-size: 12.5px; }
.gmt-chosen { margin-top: 8px; font-size: 14px; }

/* measure list */
.gmt-tipbox { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.gmt-tipbox ul { margin: 4px 0 0; padding-left: 18px; } .gmt-tipbox li { margin: 2px 0; }
.gmt-mrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.gmt-mrow img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; flex: none; }
.gmt-mrow > div { flex: 1; min-width: 0; font-size: 14px; }

/* quick traits */
.gmt-qt { margin-bottom: 10px; }
.gmt-ql { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; } .gmt-ql small { font-weight: 400; color: var(--muted); }
.gmt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gmt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; font: inherit; font-size: 13.5px; color: inherit; -webkit-tap-highlight-color: transparent; }
.gmt-chip.ic { padding-left: 4px; border-radius: 12px; }
.gmt-chip svg.ic { width: 32px; height: 32px; flex: none; color: var(--ic-ink); }
.gmt-chip svg.ic .lf { fill: var(--ic-leaf); } .gmt-chip svg.ic .pt { fill: var(--ic-petal); } .gmt-chip svg.ic .pt.pale { fill: #fbeec0; } .gmt-chip svg.ic .lf.pale { fill: #e6f1e8; }
.gmt-chip svg.ic .fr { fill: var(--ic-fruit); } .gmt-chip svg.ic .wd { fill: var(--ic-wood); } .gmt-chip svg.ic .wh { fill: #fff; } .gmt-chip svg.ic .cl { fill: var(--ic-clear); }
.gmt-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.gmt-chips.pal { gap: 4px 2px; }
.gmt-sw { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11.5px; color: var(--muted); padding: 2px 0; border-radius: 10px; }
.gmt-sw i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-sizing: border-box; }
.gmt-sw[aria-pressed="true"] { color: var(--brand); font-weight: 650; }
.gmt-sw[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--brand); }

/* save */
.gmt-sum { display: flex; flex-direction: column; gap: 8px; }
.gmt-sumtx { font-size: 15px; } .gmt-sumtx small { color: var(--muted); }
.gmt-seg { display: flex; gap: 6px; }
.gmt-seg button { flex: 1; min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-weight: 600; cursor: pointer; color: inherit; }
.gmt-seg button[data-st="present"][aria-checked="true"] { border-color: var(--present); background: color-mix(in srgb, var(--present) 14%, var(--panel)); color: var(--present); }
.gmt-seg button[data-st="rare"][aria-checked="true"] { border-color: var(--rare); background: color-mix(in srgb, var(--rare) 14%, var(--panel)); color: var(--rare); }
.gmt-loc { font-size: 14px; margin-bottom: 6px; } .gmt-loc small { color: var(--muted); }
.gmt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gmt-2 { margin-top: 10px; }
.gmt-2 label, .gmt-lbl { font-size: 13px; color: var(--muted); display: block; }
.gmt-2 input, .gmt-body textarea { display: block; margin-top: 3px; font-size: 16px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.gmt-body textarea { width: 100%; box-sizing: border-box; font-family: inherit; }
.gmt-lbl { margin-top: 12px; }
.gmt-lic { display: grid; gap: 6px; }
.gmt-licopt { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 13px; cursor: pointer; line-height: 1.35; }
.gmt-licopt input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.gmt-licopt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.gmt-done { text-align: center; padding: 30px 10px; }
.gmt-big { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 40px; line-height: 74px; font-weight: 700; }
.gmt-done h3 { margin: 6px 0; font-size: 19px; font-weight: 600; }
.gmt-st1 { color: var(--brand); font-weight: 600; margin: 6px 0; }
.gmt-st2 { color: var(--muted); margin: 4px 0 16px; } .gmt-st2.ok { color: var(--brand); font-weight: 600; } .gmt-st2.bad { color: var(--absent); }
.gmt-done .gmt-btn { margin: 4px; }
.gmt-foot .gmt-btn:last-child { min-width: 104px; }
.gmt-foot.done { gap: 6px; } .gmt-foot.done .gmt-btn { flex: 1 1 auto; min-width: 0; padding: 0 10px; font-size: 14px; }
.gmt-dsum { text-align: left; max-width: 420px; margin: 18px auto 0; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; }
.gmt-dsum .gmt-thumbs { justify-content: center; margin-bottom: 8px; }
.gmt-dsum ul { list-style: none; margin: 0; padding: 0; } .gmt-dsum li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.gmt-dsum li span { color: var(--muted); }
#gmtOutbox .gmt-ob img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; }
#gmtOutbox .gmt-ob > span:nth-child(2) { flex: 1; min-width: 0; }

/* measuring editor */
.gmt-ed { position: fixed; inset: 0; z-index: 1950; display: flex; flex-direction: column; background: #1c1f1d; color: var(--ink); }
@media (min-width: 900px) {   /* photo on the left, controls on the right */
  .gmt-ed { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); }
  .gmt-ed .ed-top { grid-column: 1 / -1; } .gmt-ed .ed-stage { grid-column: 1; grid-row: 2; min-height: 0; }
  .gmt-ed .ed-panel { grid-column: 2; grid-row: 2; max-height: none; border-top: 0; border-left: 1px solid var(--line); } }
.ed-top { display: flex; align-items: center; gap: 6px; padding: 6px 10px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--panel); border-bottom: 1px solid var(--line); }
.ed-top b { font-size: 15.5px; } .ed-top .sp { flex: 1; }
.ed-stage { position: relative; flex: 1; min-height: 200px; overflow: hidden; touch-action: none; }
.ed-cv { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; outline: none; }
.ed-cv:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.ed-hint { position: absolute; left: 8px; right: 60px; top: 8px; background: rgba(255,255,255,.94); color: #1c1f1d; font-size: 13px; line-height: 1.35; padding: 6px 10px; border-radius: 9px; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ed-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ed-zoom button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: #1c1f1d; font-size: 22px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ed-loupe { position: absolute; pointer-events: none; border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,.45); }
.ed-panel { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); max-height: 44dvh; overflow-y: auto; overscroll-behavior: contain; }
.ed-sec + .ed-sec { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.ed-h { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.ed-h span { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.ed-sel { width: 100%; min-height: 42px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; color: var(--ink); }
.ed-mm { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.ed-mm[hidden] { display: none; }
.ed-mm label { flex: 1; display: flex; align-items: center; gap: 6px; }
.ed-mm input { width: 80px; min-height: 38px; font-size: 16px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.ed-unit { min-height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; color: var(--ink); }
.ed-tgts { display: grid; gap: 4px; margin-top: 6px; }
.ed-t { display: flex; align-items: center; gap: 4px; }
.ed-tb { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-size: 14px; color: inherit; cursor: pointer; text-align: left; }
.ed-tb i { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.ed-tb span { flex: 1; } .ed-tb span small { color: var(--muted); }
.ed-tb b { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.ed-t.ok .ed-tb b { color: var(--brand); }
.ed-t.on .ed-tb { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.ed-redo { min-height: 42px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.ed-warn div { font-size: 12.5px; color: var(--rare); margin-top: 4px; }
.ed-tip { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.35; }

/* dropped-pin card entry point */
.pincard .pc-photo { display: block; width: 100%; margin-top: 8px; min-height: 40px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pincard .pc-photo:hover { filter: brightness(.97); }

.gmt-auto small { color: var(--muted); font-size: 12.5px; }
.gmt-agree { margin: 10px 0 4px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; background: var(--soft); border: 1px solid var(--line); }
.gmt-agree.ok { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.gmt-agree.warn { border-color: #d9a441; background: color-mix(in srgb, #d9a441 14%, var(--panel)); }

/* fix a record */
.gmt-fix { z-index: 1960; }
.gmt-fix .gmt-box { height: auto; max-height: min(860px, calc(100dvh - 32px)); }
@media (max-width: 640px) { .gmt-fix .gmt-box { max-height: 100dvh; height: 100dvh; } }
.gmt-seg button[data-st="absent"][aria-checked="true"] { border-color: var(--muted); background: var(--soft); }
.gmt-ob .gmt-link, .saved-item .gmt-link { font-size: 12.5px; padding: 4px 2px; }
.gmt-keybox { margin-top: 12px; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.gmt-keybox .gmt-chip { min-height: 34px; font-size: 13px; }
.gmt-hint { font-size: 13px; margin: 8px 0 2px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
/* GreenMaps scale card and measuring on the screen */
.gmt-card-link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--brand); }
.ed-ok { color: var(--present); font-size: 13px; margin: 4px 0; }
.gmt-scrbox { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; }
.gmt-scrrows { display: grid; gap: 6px; margin-top: 8px; }
.gmt-scrrow { display: flex; align-items: center; gap: 8px; } .gmt-scrrow > span { flex: 1; min-width: 0; font-size: 13px; }
.gmt-scr { position: fixed; inset: 0; z-index: 1950; display: flex; flex-direction: column; background: #fff; color: var(--ink); }
.scr-stage { position: relative; flex: 1; min-height: 200px; overflow: hidden; touch-action: none; background: #fff; }
.scr-cv { display: block; width: 100%; height: 100%; touch-action: none; }
.scr-panel { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); max-height: 42dvh; overflow-y: auto; overscroll-behavior: contain; }
.scr-tgts { display: grid; gap: 4px; }
.scr-t { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.scr-t[aria-checked="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.scr-t i { width: 12px; height: 12px; border-radius: 50%; flex: none; } .scr-t span { flex: 1; } .scr-t small { color: var(--muted); }
.scr-p { font-size: 13px; margin: 8px 0 4px; } .scr-fine { font-size: 12px; color: var(--muted); margin: 4px 0; }
.scr-warn { font-size: 13px; color: var(--rare); margin: 4px 0; }
.scr-cal { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.scr-cal .scr-range { flex: 1; min-height: 44px; }
.scr-step { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 24px; cursor: pointer; flex: none; }
.scr-tog { display: block; margin: -4px 0 2px auto; padding: 4px 8px; font: inherit; font-size: 12px; color: var(--brand); background: none; border: 0; cursor: pointer; min-height: 28px; }
.gmt-arbox { border-style: solid; }
/* leaf outline (area and shape) in the photo editor */
.ed-out-msg, .ed-out-q { font-size: 12.5px; color: var(--muted); margin: 4px 0; }
.ed-out-res { font-size: 14px; margin: 2px 0 4px; }
.ed-out-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ed-out-btns .gmt-btn[aria-pressed="true"] { background: #ffd600; border-color: #c9a800; color: #222; }
.gmt-ohint { color: var(--brand); font-weight: 400; }

/* quick record */
.gmt-q { padding: 4px 0; }
.gmt-qsnap { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (min-width: 641px) {   /* desktop: size the Identify dialog to its content instead of a tall, mostly empty box */
  .gmt-box:has(.gmt-qsnap) { height: auto; max-height: min(860px, calc(100dvh - 32px)); }
  .gmt-box:has(.gmt-qsnap) .gmt-body { flex: 0 1 auto; }
  .gmt-qsnap { min-height: 0; justify-content: flex-start; } }
.gm-ic { width: 1em; height: 1em; vertical-align: -.14em; flex: none; display: inline-block; }
.gmt-qhero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 20px; border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel)); border: 1px solid var(--line); }
.gmt-qtitle { margin: 0; font-size: 25px; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.gmt-qsub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.gmt-qshut { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 18px 0 14px; border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.gmt-qshut input { display: none; }
.gmt-qhero .gmt-qring { display: none; }   /* one flat button, no double ring */
.gmt-qring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.gmt-qring::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--brand); opacity: 0; animation: gmtpulse 2.4s ease-out infinite; }
.gmt-qcore { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: var(--brand-ink);
  background: var(--brand); transition: transform .15s ease; }
.gmt-qcore svg { width: 38px; height: 38px; }
.gmt-qshut:hover .gmt-qcore { transform: scale(1.04); } .gmt-qshut:active .gmt-qcore { transform: scale(.95); }
.gmt-qshut:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.gmt-qshut.busy { cursor: default; border: 3px solid var(--line); }
.gmt-qhero .gmt-qshut.busy + .gmt-qsub { margin-bottom: 8px; }
@keyframes gmtpulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.22); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gmt-qring::after { animation: none; } }
.gmt-qlib { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--brand); background: var(--panel); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.gmt-qlib:hover { border-color: var(--brand); } .gmt-qlib input { display: none; } .gmt-qlib:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.gmt-qsteps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); }
.gmt-qsteps li { display: flex; align-items: center; gap: 6px; }
.gmt-qsteps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11.5px; background: var(--brand-soft); color: var(--brand); }
.gmt-qfine { margin: 0 auto; max-width: 340px; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.gmt-qfull { font-size: 13.5px; margin: 0 auto; }

.gmt-qphoto { position: relative; margin: 0 0 14px; border-radius: 20px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; max-height: 36vh; width: 100%;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,.35); }
.gmt-qphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmt-qphoto figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.55); color: #FFFFFF; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gmt-qskel { display: grid; gap: 8px; }
.gmt-qskel span { height: 62px; border-radius: 14px; background: linear-gradient(90deg, var(--soft) 0%, color-mix(in srgb, var(--soft) 40%, var(--panel)) 50%, var(--soft) 100%);
  background-size: 200% 100%; animation: gmtshim 1.3s linear infinite; }
.gmt-qskel span:nth-child(2) { opacity: .7; } .gmt-qskel span:nth-child(3) { opacity: .45; }
@keyframes gmtshim { from { background-position: 200% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .gmt-qskel span { animation: none; } }
.gmt-qname .gmt-cands { display: grid; gap: 8px; }
.gmt-qc { border-radius: 14px; padding: 12px 14px 12px 44px; transition: border-color .15s, background .15s, box-shadow .15s; }
.gmt-qc::before { left: 15px; top: 15px; width: 18px; height: 18px; }
.gmt-qc[aria-checked="true"] { box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.gmt-qbest { position: absolute; top: -8px; right: 12px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--brand); color: var(--brand-ink); }
.gmt-qn { display: block; font-size: 16px; line-height: 1.25; } .gmt-qn i { font-weight: 600; }
.gmt-qn small { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.gmt-qmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 7px; }
.gmt-qbar { width: 64px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gmt-qbar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.gmt-qpc { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 2px; }
.gmt-qname .gmt-unk { margin-top: 8px; }
.gmt-qname .gmt-unk .gmt-qn { font-size: 14.5px; }
.gmt-qalt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin: 14px 0 6px; font-size: 13.5px; color: var(--muted); }
.gmt-qname .gmt-qfine { margin-top: 4px; }
.gmt-qloc { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; }
.gmt-qsave { min-width: 128px; border-radius: 999px; }

.gmt-qdone { padding: 26px 8px 10px; }
.gmt-qavatar { position: relative; width: 132px; height: 132px; margin: 4px auto 14px; }
.gmt-qavatar img, .gmt-qavph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 54px; background: var(--brand-soft);
  box-shadow: 0 0 0 5px var(--panel), 0 0 0 7px color-mix(in srgb, var(--brand) 30%, transparent), 0 14px 28px -14px rgba(0,0,0,.45); animation: gmtpop .45s cubic-bezier(.2,1.4,.4,1); }
.gmt-qtick { position: absolute; right: 2px; bottom: 4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 0 0 4px var(--panel); animation: gmtpop .45s .15s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes gmtpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gmt-qavatar img, .gmt-qavph, .gmt-qtick { animation: none; } }
.gmt-qdone h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; } .gmt-qdone h3 i { font-weight: 700; }
.gmt-qcm { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.gmt-qmeta2 { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.gmt-qsaved { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); }
.gmt-qsaved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gmt-qnew { display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: 380px; margin: 16px auto 0; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4;
  background: color-mix(in srgb, #f2cb2f 20%, var(--panel)); border: 1px solid color-mix(in srgb, #d9a400 45%, transparent); }
.gmt-qnew > span:first-child { font-size: 20px; line-height: 1; color: #c99200; }
.gmt-qnew:empty { display: none; }
.gmt-qdone .gmt-qshare { display: flex; width: 100%; max-width: 380px; margin: 18px auto 0; min-height: 50px; border-radius: 999px; font-size: 16px; gap: 8px; }
.gmt-qdone .gmt-st2 { margin: 12px auto 0; max-width: 380px; font-size: 13px; }
.gmt-qdone .gmt-qalt { margin-top: 8px; }
/* home camera card: plant photo, viewfinder corners, title and a round camera button */
.quickrec { position: relative; display: block; width: 100%; height: 186px; margin: 4px 0 12px; padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer;
  color: #fff; font: inherit; text-align: left; background: #0f3a22; box-shadow: 0 12px 26px -14px rgba(0,40,18,.7); transition: transform .15s ease, box-shadow .15s ease; }
.quickrec:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(0,40,18,.8); } .quickrec:active { transform: scale(.985); }
.quickrec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quickrec::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,40,18,.86) 100%); }
.quickrec .qr-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.quickrec .qr-frame path { vector-effect: non-scaling-stroke; stroke-width: 3.5px; }
.quickrec .qr-txt { position: absolute; left: 18px; right: 80px; bottom: 16px; z-index: 1; }
.quickrec .qr-txt b { display: block; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.quickrec small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: #e3f3e8; }
.quickrec .qr-ic { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: #00612c; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
/* quick record: live viewfinder, place line, plants around you */
.gmt-qcam { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 3 / 4; max-height: 58vh; width: 100%; margin: 0 auto; background: #0e1410;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
.gmt-qcam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.gmt-qcam.on video { opacity: 1; }
.gmt-qcam::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 26%, transparent 64%, rgba(0,0,0,.55) 100%); }
.gmt-qcam.flash::before { content: ""; position: absolute; inset: 0; z-index: 3; background: #FFFFFF; animation: gmtflash .35s ease-out forwards; }
@keyframes gmtflash { from { opacity: .9; } to { opacity: 0; } }
.gmt-qfocus { position: absolute; z-index: 1; left: 50%; top: 47%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 999px rgba(0,0,0,.12); }
.gmt-qfocus::before, .gmt-qfocus::after { content: ""; position: absolute; left: 50%; width: 2px; height: 14px; margin-left: -1px; background: rgba(255,255,255,.85); border-radius: 2px; }
.gmt-qfocus::before { top: -8px; } .gmt-qfocus::after { bottom: -8px; }
.gmt-qcamtop { position: absolute; z-index: 2; top: 16px; left: 0; right: 0; text-align: center; color: #FFFFFF; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.gmt-qcamtop b { display: block; font-size: 21px; letter-spacing: -.01em; } .gmt-qcamtop span { font-size: 13.5px; opacity: .9; }
.gmt-qcambar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: space-evenly; }
.gmt-qcambar .gmt-qshut { margin: 0; width: 92px; height: 92px; border: 0; padding: 0; background: none; }
.gmt-qcambar .gmt-qring { border-color: rgba(255,255,255,.9); border-width: 4px; }
.gmt-qcambar .gmt-qcore { width: 72px; height: 72px; }
.gmt-qround { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #FFFFFF; cursor: pointer;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.gmt-qround svg { width: 22px; height: 22px; } .gmt-qround input { display: none; } .gmt-qround.ghost { visibility: hidden; }
.gmt-qsnap:has(.gmt-qcam) { justify-content: flex-start; gap: 12px; }
.gmt-qplace { display: flex; justify-content: center; min-height: 34px; }
.gmt-qplace:empty { display: none; }
.gmt-qpill { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13.5px;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--panel); color: var(--brand); cursor: pointer; }
.gmt-qpill small { color: var(--muted); font-size: 12px; }
.gmt-qpill.on { border-style: solid; border-color: transparent; background: var(--brand-soft); color: var(--ink); cursor: default; }
.gmt-qpill.on b { color: var(--brand); }
.gmt-qnear .gmt-h { margin: 2px 2px 8px; }
.gmt-qnear:empty { display: none; }
.gmt-qstrip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.gmt-qstrip::-webkit-scrollbar { display: none; }
.gmt-qsp { flex: none; width: 92px; scroll-snap-align: start; border: 0; padding: 0; background: none; font: inherit; color: inherit; text-align: center; cursor: pointer; }
.gmt-qspi { display: block; width: 92px; height: 92px; border-radius: 18px; overflow: hidden; background: var(--soft); }
.gmt-qspi img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; } .gmt-qspi.ok img { opacity: 1; }
.gmt-qsp i { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmt-qsp small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
.gmt-qcare { margin: 0 auto; max-width: 360px; padding: 9px 12px; border-radius: 12px; background: var(--soft); font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.gmt-qtally { margin: 10px 0 0; font-size: 13px; color: var(--muted); } .gmt-qtally b { color: var(--ink); } .gmt-qtally:empty { display: none; }
.gmt-badge.gmt-qwarn { color: var(--absent); border-color: currentColor; font-weight: 600; }
.gmt-qspi { position: relative; }
.gmt-qspw { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 14px; color: var(--absent); background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.gmt-qwarnbox { margin: 10px auto 0; color: var(--absent); background: color-mix(in srgb, var(--absent) 10%, var(--panel)); }
