/* The calm redesign (Oct 16, 2026): Tree tags (tags/tags.js). Loaded after styles.css, so a rule here wins over the same rule there.
   Docs/Hub design standard.md has the rules (Motion; Calm and focus). Colours only from the tokens in styles.css. */

/* ---------- the screen: the hero (Print with how many tags), the trees right under it, Latest prints quieter below ---------- */
.tg-screen { gap: 16px; }
.tg-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* The office PC: a small dot beside the title. Plain when it is on; a red dot with a few words when it is not. */
.tg-pc { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: 600 .8125rem/1 var(--rt-body); cursor: pointer; }
.tg-pc:hover { background: var(--rt-hover); }
.tg-pc.on::before, .tg-pc.off::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--rt-dot); }
.tg-pc.off::before { background: var(--alert); }

/* The hero: how many tags, and Print. A slim bar that stays under the header (in a wrapper that hides the list behind it) while the list scrolls. */

/* The trees: a row each, one soft line between. − / + at the right; at 0 the − hides (its place stays) and the 0 goes quiet. */
.stp { gap: 6px; }
.stp-b { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); }
.stp-b .ic { width: 18px; height: 18px; }
.stp-n { min-width: 30px; text-align: center; font: 800 1.5rem/1 var(--rt-cond); }
.stp.zero .stp-n { opacity: .55; font-weight: 600; }
.stp.zero .stp-b[data-step="-1"] { visibility: hidden; }
body.big-text .stp-b { width: 52px; height: 52px; }
body.big-text .stp-b .ic { width: 22px; height: 22px; }
/* Larger text on a phone: the − / + sit under the name, so the name keeps its room. */
@media (max-width: 520px) {
  body.big-text .tg-row { gap: 8px; }
  body.big-text .stp { gap: 2px; }
}

/* Latest prints: smaller and quieter than the trees. One soft card; the newest three (and any that need you) show, the rest open. */

/* ---------- Check the tags: the cards, and Print with two quiet choices under it ---------- */
.tg-wait { gap: 12px; padding: 4px 0 16px; }
.tag-sheet .tg-sub { display: inline-flex; align-items: center; color: var(--text-2); }
.tg-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.tg-foot .btn.tg-go { min-height: 54px; border-radius: var(--r-pill); }
.tg-foot-2 { display: flex; gap: 8px; }
.tg-foot-2 .btn.full { width: auto; flex: 1; min-height: 44px; border-radius: var(--r-pill); }
.tg-foot .btn.tg-keep { background: none; color: var(--ink-strong); border: 1px solid var(--btn-line); }
.tg-foot .btn.tg-not { color: var(--text-2); }
@media (min-width: 720px) { .tg-foot { padding-bottom: 16px; } }
.tg-card .stp-b { width: 44px; height: 44px; }
.tg-card .tg-price-line:empty, .tg-card [hidden] { display: none; }


/* Print is dimmed until a tree has a count; a tap still explains. */

/* ---------- Until the trees come (Oct 21, 2026: no pop-in; tags/tags.js placeholder() and cardsWait()) ----------
   The screen's own shape in styles.css's grey bars: a grey dot where the office PC's dot comes, the hero (the count and
   Print), tree rows of a 4rem tag, two lines and − / +, and Latest prints. Same gaps and heights as the real parts
   above, so the trees swap in without anything moving. */
.tg-pc.tg-pc-sk::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.skel.tg-sk { gap: 16px; padding-block: 0; }
.tg-sk-hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; }
.sk.tg-sk-v { width: 7rem; height: 2.75rem; border-radius: 12px; }
.sk.tg-sk-print { flex: none; width: 7.25rem; height: 52px; }
.tg-sk-rows { display: flex; flex-direction: column; }
.tg-sk-row { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.tg-sk-row + .tg-sk-row { border-top: 1px solid var(--border); }
.sk.tg-sk-tile { flex: none; width: 4rem; height: 4rem; border-radius: 10px; }
.tg-sk-w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sk.tg-sk-l1 { height: 1rem; }
.sk.tg-sk-l2 { height: .8rem; }
.tg-sk-stp { flex: none; display: flex; align-items: center; gap: 6px; }
.sk.tg-sk-b { width: 44px; height: 44px; }
.sk.tg-sk-n { width: 22px; height: 1.5rem; border-radius: 6px; }
.tg-sk-jobs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tg-sk-jobs .sk.tg-sk-h { width: 8rem; height: 1.1rem; }
.tg-sk-jobs .sk.tg-sk-job { height: 2.25rem; border-radius: 10px; }
@media (max-width: 379px) { .tg-sk-row { gap: 10px; } }
/* Check the tags, while the words come: a card's shape per tree (the tag drawing, the fields, How many tags). */
.tg-wait .tg-sk-card { gap: 12px; }
.sk.tg-sk-tag { height: 7.5rem; border-radius: 6px; }
.tg-sk-f { display: flex; flex-direction: column; gap: 8px; }
.sk.tg-sk-lab { width: 7rem; height: .95rem; }
.sk.tg-sk-in { height: 56px; border-radius: var(--r-box); }
.tg-sk-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tg-sk-how { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (min-width: 720px) { .tg-sk-pair { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---------- the navy redesign, step 4: operations (Oct 23, 2026; docs/navy-redesign.md) ----------
   The design's Tree tags: Print a pill in the design's button type (Inter 700, not the old big condensed word), the
   counts in Inter, − and + round buttons with a thin edge, and Latest prints titled like the design's card heads. */
.stp-b { border: 1px solid var(--border); }
.stp-b:hover { border-color: var(--btn-line); }
.stp-n { font: 700 1.375rem/1 var(--rt-cond); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- the exact rebuild (Oct 23, 2026): the design's TagsPage (styles.css has .ds-tag-summary, .ds-tag-row, .ds-stepper) ---------- */
.tg-screen { gap: 16px; }
.tg-screen > .ds-card { margin: 0; }
.tg-sum .tg-sum-n { font-variant-numeric: tabular-nums; }
.tg-sum-l { flex-wrap: wrap; }
.tg-sum .tg-sum-u { font-size: 1rem; font-weight: 400; }
.tg-jobs .tg-job-t { font-weight: 700; }
.tg-sum-l .tg-alert { display: flex; flex-basis: 100%; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--text); font-size: .875rem; font-weight: 600; }
.tg-sum-l .tg-alert-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--alert); }
.tg-print .ic { width: 18px; height: 18px; }
.tg-print[aria-disabled="true"] { opacity: .6; }
.tg-rows, .tg-job-list { margin: 0; padding: 0; list-style: none; }
.tg-row .tg-row-t { font-weight: 700; }
.tg-row .ds-stepper button { color: var(--text); font: 600 1rem/1 var(--rt-body); }
.tg-row .tg-n { font-variant-numeric: tabular-nums; }
.tg-find { margin-bottom: 8px; }
.tg-jobs .ds-section-heading { margin-bottom: 0; }
.tg-check .ic { width: 17px; height: 17px; }
.tg-job .ds-feature-icon .ic { width: 20px; height: 20px; }
.tg-job { flex-wrap: wrap; padding-block: 8px; }
.tg-job .ds-status { flex: none; }
.tg-job-acts { display: flex; flex: none; align-items: center; gap: 6px; }
.tg-job[data-status="failed"] .tg-job-acts, .tg-job[data-status="unknown"] .tg-job-acts { flex-basis: 100%; justify-content: flex-end; }
.tg-jobs .more { margin-top: 4px; }
.skel.tg-sk > .ds-card { margin: 0; }
.tg-sk-rows.ds-card, .tg-sk-jobs.ds-card { padding-block: 8px; }
