/* Plan 2 pages: sites, site, team. Flat styles only; colours come from the app.css variables. */
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.sites .panel { margin: 0; }
.sites .panel h2 { font-size: 18px; font-weight: 500; }
.sites .panel h2 a { text-decoration: none; }
.sites .panel h2 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.sites .off { opacity: 0.6; }
.panel h3 { font-size: 15px; margin: 0 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
h1.page + .facts { margin-top: -8px; margin-bottom: 18px; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.counts:empty { display: none; }

/* a stage: what the photos prove against what was said, drawn as two lines on the same scale */
.stage { padding: 14px 0; border-top: 1px solid var(--hair); }
.stage:first-of-type { border-top: 0; padding-top: 0; }
.stage h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bars { display: grid; gap: 6px; margin-bottom: 10px; max-width: 620px; }
.bar { display: grid; grid-template-columns: 96px 1fr 52px auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.bar strong { color: var(--navy); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar progress, .site-now progress { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 0; background: var(--hair); color: var(--navy); }
.bar progress::-webkit-progress-bar, .site-now progress::-webkit-progress-bar { background: var(--hair); }
.bar progress::-webkit-progress-value, .site-now progress::-webkit-progress-value { background: var(--navy); }
.bar progress::-moz-progress-bar, .site-now progress::-moz-progress-bar { background: var(--navy); }
.bar.claim progress { height: 6px; color: var(--brass); }
.bar.claim progress::-webkit-progress-value { background: var(--brass); }
.bar.claim progress::-moz-progress-bar { background: var(--brass); }
.bar.claim strong { color: var(--brass-ink); }
.site-now { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.site-now progress { grid-column: 1 / -1; }
.site-now strong { color: var(--navy); font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }
.stage-form input[type="number"] { width: 76px; }
.stage-form { margin-top: 8px; }

.details-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.details-form label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.details-form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.details-form .wide { grid-column: 1 / -1; }
details > summary { cursor: pointer; color: var(--navy); font-size: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-form input[type="text"] { width: 160px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gallery figure { margin: 0; font-size: 12px; color: var(--muted); }
.gallery img, .gallery video { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; display: block; background: var(--hair); }
.gallery .dupe img { opacity: 0.45; }
.gallery figcaption { padding-top: 4px; }
.msgid { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; }
.day-h { font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); margin-inline-start: 6px; }
.tree li { padding: 4px 0; }
.thumb { display: block; max-width: 100%; max-height: 260px; border-radius: 6px; margin: 4px 0; }
/* a sign-off: what it is at the start of the row, its controls at the end, so the buttons line up down the list */
.signoffs li { align-items: center; }
.signoffs li > span:first-child { flex: 1 1 200px; }
