/* Point Sampling Plans (asked 2026-10-04; made simpler 2026-10-05): New
   plan's kind choice, the plan's cards, a round and its visits. Kept apart
   from planner.css. */

/* New plan: which kind of plan. */
.plan-kind-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .6rem;
  margin: .25rem 0 1rem;
}
.plan-kind {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.plan-kind input { flex: none; margin-top: .2rem; }
.plan-kind-text { display: flex; flex-direction: column; gap: .15rem; }
.plan-kind-text span { color: var(--muted); font-size: .88rem; }
.plan-kind.is-chosen { border-color: #0e6670; box-shadow: inset 0 0 0 1px #0e6670; background: #f4fdfd; }

/* New plan and the plan page: what it samples for, and its rounds. */
.new-plan-points { margin: .5rem 0 1rem; }
.new-plan-points .field-hint { display: block; }
.point-setup .field-hint { display: block; }

/* The Locations and samples card: a row per location, its photo, what it
   is, and a chip for each sample it needs every round. */
.point-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.point-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .75rem;
  padding: .6rem .7rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.point-thumb-button { padding: 0; border: 0; background: none; min-height: 0; }
.point-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 4.5rem; height: 4.5rem; overflow: hidden;
  border-radius: 8px; background: #f1f5f9; color: #94a3b8;
}
.point-thumb img { width: 100%; height: 100%; object-fit: cover; }
.point-thumb .icon { width: 1.6rem; height: 1.6rem; }
.point-main { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.point-name {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: .45rem;
  align-self: flex-start; width: auto;
  padding: 0; border: 0; background: none; min-height: 0;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.point-name strong { color: #05245a; font-family: var(--mono); font-size: 1.02rem; }
.point-description { margin: 0; color: var(--label); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.point-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0; font-size: .85rem; }
.point-meta .icon { width: 1rem; height: 1rem; vertical-align: -.15rem; margin-right: .15rem; }
.point-last { font-size: .85rem; color: #0e6670; font-weight: 600; }
.point-last.is-never { color: var(--muted); font-weight: 400; }
.point-methods { margin-top: 1rem; }
.point-methods .button-row { margin-top: .5rem; }
.point-method-item .icon { width: 1rem; height: 1rem; vertical-align: -.15rem; margin-right: .3rem; }
.group-icon.tone-methods { background: #e0f2fe; color: #0163c2; }
@media (max-width: 560px) {
  .point-thumb { width: 3.5rem; height: 3.5rem; }
}
.point-samples { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.point-sample-chip, .point-sample-add {
  display: inline-flex; align-items: center; gap: .35rem;
  width: auto; min-height: 2.25rem; padding: .3rem .7rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer;
}
.point-sample-add { border: 1px dashed #94a3b8; background: #fff; color: var(--label); }
.point-sample-chip.has-problem { border-color: var(--warning-border); }
.media-icon { width: 1.1rem; height: 1.1rem; flex: none; }
/* A colour for each way a sample is taken; the words say it too. */
.media-bottle { background: #e0f2fe; color: #075985; }
.media-wipe { background: #ede9fe; color: #5b21b6; }
.media-bag { background: #fef3c7; color: #92400e; }
.media-chips { background: #ffe4e6; color: #9f1239; }
.media-device { background: #ccfbf1; color: #115e59; }
.media-other { background: #f1f5f9; color: #334155; }

/* Adding a sample (features/point-plan/spec-dialog.js). */
.spec-dialog .app-dialog-card { max-width: 46rem; }
.spec-media { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.spec-media-choice {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  min-height: 5.5rem; padding: .6rem .3rem; width: auto;
  border: 2px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
  font: inherit; cursor: pointer;
}
.spec-media-choice .media-icon { width: 1.7rem; height: 1.7rem; }
.spec-media-choice span { font-size: .78rem; color: var(--muted); }
.spec-media-choice.is-chosen { border-color: var(--accent); background: var(--accent); color: #fff; }
.spec-media-choice.is-chosen span { color: #cbd5e1; }
@media (max-width: 560px) { .spec-media { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-other { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; margin-top: .75rem; }
.spec-mode { display: flex; gap: .4rem; }
.spec-mode-choice { width: auto; padding: .5rem .8rem; border: 2px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-weight: 700; }
.spec-mode-choice.is-chosen { border-color: var(--accent); background: var(--accent); color: #fff; }
.spec-lab, .spec-reading { margin-top: .9rem; display: grid; gap: .5rem; }
.spec-lab-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.spec-lab-head .muted { font-size: .85rem; }
.spec-picked { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.75rem; padding: .5rem; border: 1px solid var(--border); border-radius: 10px; }
.spec-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .25rem .25rem .7rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem; }
.spec-chip-remove { width: 1.7rem; height: 1.7rem; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: #334155; color: #fff; font-size: 1rem; line-height: 1; }
.spec-matches { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.spec-matches-label { font-size: .85rem; }
.spec-suggest { width: auto; min-height: 2.25rem; padding: .3rem .75rem; border: 1px dashed #94a3b8; border-radius: 999px; background: #fff; color: #334155; font: inherit; font-size: .9rem; font-weight: 600; }
.spec-suggest.is-typed { border-style: solid; }
.spec-note-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; margin-top: .9rem; }
.spec-count { display: flex; align-items: center; gap: .5rem; }
.spec-step { width: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 1.2rem; }
.spec-count-value { min-width: 1.5rem; text-align: center; font-size: 1.1rem; font-weight: 700; }

/* A visit to a location (features/point-plan/visit-dialog.js). */
.visit-scanned { margin-left: .5rem; gap: .25rem; border-color: #7dd3fc; background: #e0f2fe; color: #075985; font-weight: 700; vertical-align: .1rem; }
.visit-scanned .icon { width: .9rem; height: .9rem; }
.visit-earlier { margin: 0 0 .5rem; }
.visit-slots { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.visit-slot {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center;
  padding: .6rem .75rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
}
.visit-slot-main { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.visit-slot-what { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.visit-slot-what .media-icon { color: #05245a; }
.visit-slot-label { font-size: .9rem; color: var(--label); }
.visit-slot-label strong { font-family: var(--mono); color: var(--text); }
.visit-reading { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .9rem; }
.visit-reading .input-with-unit input { width: 6rem; flex: none; font-size: 1.1rem; }
.visit-flag { font-weight: 700; color: var(--warning-text); }
.visit-flag:empty { display: none; }
.visit-reason { margin: 0; }
.visit-choices { display: flex; gap: .35rem; }
.visit-choice {
  display: inline-flex; align-items: center; gap: .3rem; width: auto;
  min-height: 3rem; padding: 0 .9rem; border: 2px solid var(--border); border-radius: 12px;
  background: #fff; color: #334155; font: inherit; font-weight: 700;
}
.visit-choice .icon { width: 1.1rem; height: 1.1rem; }
.visit-choice.choice-taken.is-chosen { border-color: #166534; background: #166534; color: #fff; }
.visit-choice.choice-notTaken.is-chosen { border-color: #92400e; background: #fffbeb; color: #92400e; }
@media (max-width: 560px) {
  .visit-slot { grid-template-columns: 1fr; }
}

/* The Rounds card. */
.rounds-actions { margin: .25rem 0 .75rem; }
.rounds-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rounds-table th, .rounds-table td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.rounds-table thead th { background: var(--header); }
.rounds-table tr.is-current th, .rounds-table tr.is-current td { background: #f8fafc; }
.rounds-table .round-open { text-align: right; white-space: nowrap; }
.round-pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.round-pill.is-done { background: #dcfce7; color: #166534; }
.round-pill.is-short { background: #f1f5f9; color: #475569; }
.round-pill.is-under-way { background: #fef3c7; color: #92400e; }
.round-pill.is-not-started { background: #f1f5f9; color: #64748b; }

/* A round, on a tablet (pages/point-round.js). */
.round-card { max-width: 52rem; margin: 0 auto; }
.round-kicker { margin: .25rem 0 0; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.round-heading h2 { margin: .1rem 0 .25rem; font-size: 1.7rem; }
.round-progress { display: grid; gap: .35rem; margin: .5rem 0 1rem; }
.round-progress-text { display: flex; justify-content: space-between; gap: 1rem; }
.round-bar { height: .75rem; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.round-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.round-pending { margin: 0; }
.round-scan {
  display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%;
  min-height: 4.25rem; border: 0; border-radius: 16px; background: var(--accent); color: #fff;
  font: inherit; font-size: 1.2rem; font-weight: 800;
}
.round-scan .icon { width: 1.8rem; height: 1.8rem; }
.round-or { text-align: center; margin: .4rem 0 .75rem; }
.round-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.round-point {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; width: 100%;
  min-height: 4.25rem; padding: .7rem .9rem; border: 1px solid #e2e8f0; border-radius: 16px;
  background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.round-point-mark { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 3px solid #cbd5e1; border-radius: 999px; box-sizing: border-box; }
.round-point.is-done { border-color: #bbf7d0; }
.round-point.is-done .round-point-mark { border: 0; background: #166534; color: #fff; }
.round-point.is-part .round-point-mark { border-color: #f59e0b; }
.round-point.is-next { border: 2px solid var(--accent); }
.round-point.is-next .round-point-mark { border-color: #94a3b8; }
.round-point-mark .icon { width: 1.4rem; height: 1.4rem; }
.round-point-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.round-point-name { font-size: 1.05rem; }
.round-point-name strong { color: #05245a; font-size: 1.15rem; }
.round-point-line { font-size: .9rem; color: var(--label); }
.round-point.is-done .round-point-line { color: #166534; font-weight: 600; }
.round-next { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.round-foot { display: grid; gap: .5rem; margin-top: 1rem; }
.round-foot .small-note { text-align: center; margin: 0; }
.round-coc { text-align: center; }

/* A round's chain of custody (pages/point-coc.js): no colour, as the plan's. */
.point-coc-table .coc-mark-head, .point-coc-table .coc-mark-cell { text-align: center; }
.point-coc-table .coc-mark-cell { font-weight: 800; }
.point-coc-table .coc-id { font-family: var(--mono); white-space: nowrap; }
.coc-sent { font-size: .9rem; }
.coc-note { margin: .4rem 0 0; }

/* A point's dialog. */
.point-method-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.point-method-row select { flex: 1 1 14rem; }

/* A location in a visit: its photo, code and name, and method. */
.log-point { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .6rem; }
.log-point-photo-frame { flex: none; width: 6rem; height: 6rem; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.log-point-photo { width: 100%; height: 100%; object-fit: cover; }
.log-point-text { min-width: 0; }
.log-point-text p { margin: 0 0 .25rem; }
.log-point-name strong { color: #05245a; font-family: var(--mono); }
.log-point-method .icon { width: 1rem; height: 1rem; margin-right: .25rem; vertical-align: -.15rem; }
.log-point-photo-btn { flex: none; padding: 0; min-height: 0; background: none; border-radius: 8px; }
/* Its photos and GPS pin (2026-10-28): green with a position, grey without. */
.point-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.point-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-width: 44px; min-height: 40px; padding: .3rem .6rem; border-radius: .65rem;
  border: 1px solid var(--border); background: #f8fafc; color: #05245a; font-weight: 700; text-decoration: none;
}
.point-tool .icon { width: 1.35rem; height: 1.35rem; fill: currentColor; }
button.point-tool:disabled, .point-tool.is-empty { color: #94a3b8; opacity: 1; }
.point-gps { color: #94a3b8; }
.point-gps.has-gps { border-color: #86efac; background: #f0fdf4; color: #16a34a; }
.point-photos-list { display: grid; gap: .9rem; margin-bottom: .6rem; }
.point-photos-item { margin: 0; }
.point-photos-item figcaption { margin-top: .3rem; font-size: .85rem; color: var(--muted); }
.point-photos-item figcaption strong { color: var(--text); }
.point-photos-dialog h3 { margin: .4rem 0 .5rem; }
.log-who { margin: .25rem 0 0; }
.log-who .field-hint { display: block; }
.input-with-unit { display: flex; align-items: center; gap: .5rem; }
.input-with-unit input { flex: 1; }
.input-unit { color: var(--label); font-weight: 600; }

/* The Plans page: a point plan's last sample, in teal (not the amber of a
   hygiene plan under way). */
.register-progress.progress-sampled { border-color: #7dd3dc; background: #ecfbfc; color: #0e6670; }

/* QR labels: the equipment label tiles, in XPSR's navy and teal. */
.point-label-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem 1rem; }
.point-label-ticks { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .5rem 0; max-height: 9rem; overflow: auto; }
.point-label-ticks .toggle-setting { margin: 0; }
.point-label-text { border-left-color: #00b8c8; }
.point-label-id { color: #05245a; }
.point-label-name { font-weight: 700; }
.point-label-plan { color: #334155; }
.point-label-hint { margin-top: .6mm; color: #0163c2; font-size: .85em; }
