/*
 * The dog kit and the training camp (web/js/dog-*.js): Unleash, the hound menu and its two rites, Backtest, Ask, manual picks, ratings, the locker room, your
 * dogs in training, drills. Built on the model pages' own dark slate (hounds.css custom properties), the same
 * panels, the same type. Phone first: one column, 16px gutters, every tap target at least 44px, nothing makes the
 * page scroll sideways. Colour never carries meaning alone: a chip, a result or a check always says it in words.
 */
@import url("evolve.css");   /* Send to training as an evolution (web/js/dog-evolve.js) */
@import url("diagnose.css");   /* the coach's diagnosis before it (web/js/dog-diagnose.js) */
@import url("gematria-stream.css");   /* the Gematria hound's analysis while it works (web/js/dog-gematria-stream.js) */
@import url("fetch-game.css");   /* the wait screen of a fine-tune or rebuild: a game of fetch or a loading screen (web/js/fetch-game.js) */

/* ---- layout ------------------------------------------------------------------------------------------------ */
.dk-top { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin: 0 0 18px; }
.dk-top > .hd-panel, .dk-bottom > .hd-panel { margin-bottom: 0; }
.dk-bottom { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .dk-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.dk-panel h2 { font-size: 17px; }
.dk-block { margin: 14px 0 0; }
.dk-block .hd-h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--hd-mute); font-weight: 600; }
.dk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.dk-status { margin: 0; min-height: 1.2em; }
.dk-ok { color: var(--hd-good); font-weight: 600; margin: 4px 0; }
.dk-panel .btn { min-height: 44px; }

/* ---- chips ------------------------------------------------------------------------------------------------- */
.dk-chip {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--hd-line); border-radius: 4px; font-size: 12px;
  font-weight: 600; letter-spacing: .03em; color: var(--hd-text-2); background: var(--hd-card-2);
}
.dk-chip--warn { color: var(--hd-warn); border-color: rgba(242, 184, 75, .5); background: rgba(242, 184, 75, .08); }
.dk-chip--good { color: var(--hd-good); border-color: rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .08); }
.dk-chip--bad { color: var(--hd-bad); border-color: rgba(255, 107, 122, .5); background: rgba(255, 107, 122, .08); }
.dk-chip--hind { color: var(--hd-warn); border-color: var(--hd-warn); background: rgba(242, 184, 75, .1); font-size: 13px; padding: 3px 10px; }

/* ---- unleash (was fire now) ---------------------------------------------------------------------------------------------- */
.dk-headline { font-size: 17px; font-weight: 650; margin: 12px 0 2px; }
/* the day as counts, the games folded away (owner, 2026-10-22: the printout "looked sloppy") */
.dk-counts { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--hd-text); overflow-wrap: anywhere; }
.dk-day { margin-top: 6px; }
.dk-games { margin-top: 6px; font-size: 14px; color: var(--hd-text-2); }
.dk-games > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--hd-accent); }
.dk-games__group { margin: 8px 0 0; }
.dk-games__head { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hd-mute); font-weight: 600; }
.dk-games__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 240px; overflow-y: auto; }
.dk-games__item { overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.dk-games__more { color: var(--hd-mute); }
.dk-livelink { margin: 8px 0 0; }
.dk-livelink__a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.dk-picks, .dk-misses, .dk-tickets { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dk-pick, .dk-miss, .dk-ticket {
  padding: 10px 12px; background: var(--hd-card-2); border: 1px solid var(--hd-line); border-radius: 4px;
}
.dk-pick { border-left: 3px solid var(--hd-accent); }
.dk-pick p, .dk-miss p, .dk-ticket p { margin: 2px 0; }
.dk-pick__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dk-pick__sel { font-size: 17px; color: #fff; }
.dk-pick__game { color: var(--hd-text-2); font-size: 14px; }
.dk-pick__price { font-size: 14px; color: var(--hd-text); }
.dk-pick__reason { color: var(--hd-text-2); font-size: 14px; }
.dk-pick__stake { color: var(--hd-text); font-size: 14px; }
.dk-checked { margin-top: 6px; font-size: 13px; color: var(--hd-text-2); }
.dk-checked > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--hd-mute); }
.dk-checked p { margin: 4px 0 0; overflow-wrap: anywhere; }
.dk-pick__actions { margin-top: 8px; }
.dk-checks { margin-top: 6px; font-size: 13px; color: var(--hd-text-2); }
.dk-checks > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--hd-mute); }
.dk-checks ul { margin: 4px 0 0 18px; padding: 0; display: grid; gap: 3px; }
.dk-miss { border-left: 3px solid var(--hd-flat); }

/* ---- ask ---------------------------------------------------------------------------------------------------- */
.dk-thread { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; margin: 4px 0 8px; padding-right: 2px; }
.dk-msg { padding: 8px 12px; border-radius: 6px; max-width: 94%; font-size: 15px; line-height: 1.45; }
.dk-msg p { margin: 0 0 6px; }
.dk-msg p:last-of-type { margin-bottom: 2px; }
.dk-msg--you { justify-self: end; background: rgba(47, 208, 122, .13); border: 1px solid rgba(47, 208, 122, .4); color: #fff; }
.dk-msg--dog { justify-self: start; background: var(--hd-card-2); border: 1px solid var(--hd-line); color: var(--hd-text); }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.dk-chipbtn {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--hd-line); border-radius: 18px; background: transparent;
  color: var(--hd-text-2); font-size: 13.5px; cursor: pointer;
}
.dk-chipbtn:hover { border-color: var(--hd-accent); color: #fff; }
.dk-askrow { display: flex; gap: 8px; }
.dk-askrow input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 10px; background: #0B0C0E; color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px; font-size: 16px;
}

/* ---- ratings ------------------------------------------------------------------------------------------------ */
.dk-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.dk-vote__btn {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--hd-line); border-radius: 4px; background: transparent;
  color: var(--hd-text-2); font-size: 13px; font-weight: 600; cursor: pointer;
}
.dk-vote__btn[data-verdict="good"][aria-pressed="true"] { border-color: var(--hd-good); color: var(--hd-good); background: rgba(61, 220, 132, .08); }
.dk-vote__btn[data-verdict="bad"][aria-pressed="true"] { border-color: var(--hd-bad); color: var(--hd-bad); background: rgba(255, 107, 122, .08); }
.dk-note { display: flex; gap: 6px; flex: 1 1 260px; }
.dk-note[hidden] { display: none; }
.dk-note { flex-wrap: wrap; }
.dk-note .dk-chips { flex: 1 1 100%; margin: 0; }
.dk-chipbtn[aria-pressed="true"] { border-color: var(--hd-accent); color: #fff; }
.dk-note input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 6px 8px; background: #0B0C0E; color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px; font-size: 14px;
}
.dk-tickets .dk-ticket { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.dk-tickets .dk-ticket .dk-vote { margin-top: 0; }
.dk-ticket__text { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }

/* ---- suggest ------------------------------------------------------------------------------------------------ */
.dk-suggest { display: grid; gap: 8px; max-width: 520px; }
.dk-suggest__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dk-suggest select, .dk-suggest input, .dk-field input, .dk-field select, .dk-select {
  min-height: 44px; padding: 8px 10px; background: #0B0C0E; color: #fff; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px; font-size: 16px; width: 100%;
}
.dk-field { display: grid; gap: 4px; margin-top: 8px; max-width: 220px; }
.dk-field[hidden] { display: none; }

/* ---- the badge and the locker room -------------------------------------------------------------------------- */
.dk-badge { flex: none; display: block; border-radius: 14px; }
.hd-modelhead .dk-badge { width: 84px; height: 84px; }
@media (max-width: 560px) { .hd-modelhead .dk-badge { width: 68px; height: 68px; } }
.dk-locker { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin: 8px 0; }
@media (min-width: 760px) { .dk-locker { grid-template-columns: 170px minmax(0, 1fr); align-items: start; } }
.dk-preview { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--hd-card-2); border: 1px solid var(--hd-line); border-radius: 6px; }
.dk-locker__controls { display: grid; gap: 8px; }
.dk-fieldset { padding: 6px 12px 10px; }
.dk-fieldset legend { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--hd-mute); font-weight: 600; padding: 0 4px; }
.dk-optrow { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--hd-line); background: var(--swatch, #888); cursor: pointer; padding: 0;
}
.dk-swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--hd-accent); }
.dk-opt {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--hd-line); border-radius: 4px; background: transparent;
  color: var(--hd-text-2); font-size: 14px; cursor: pointer;
}
.dk-opt[aria-pressed="true"] { border-color: var(--hd-accent); background: rgba(47, 208, 122, .13); color: #fff; }

/* ---- the training camp -------------------------------------------------------------------------------------- */
.dk-camp-dogs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.dk-camp-dog { padding: 14px; background: var(--hd-card-2); border: 1px solid var(--hd-line); border-radius: 6px; display: grid; gap: 10px; }
.dk-camp-dog[data-status="retired"] { opacity: .75; }
.dk-camp-dog__head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dk-camp-dog__name { font-size: 18px; font-weight: 650; color: #fff; }
.dk-camp-dog__facts { display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.dk-camp-dog__facts div { display: grid; gap: 1px; }
.dk-camp-dog__facts dt { color: var(--hd-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.dk-camp-dog__facts dd { margin: 0; font-size: 16px; color: var(--hd-text); font-variant-numeric: tabular-nums; }
.dk-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.dk-mini th, .dk-mini td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--hd-line); }
.dk-mini th { color: var(--hd-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dk-mini td.hd-num, .dk-mini th.hd-num { text-align: right; }
.dk-tablewrap { overflow-x: auto; max-width: 100%; }
.dk-camp-dog__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-inline { border-top: 1px dashed var(--hd-line); padding-top: 10px; }
.dk-inline[hidden] { display: none; }
.dk-drill-controls { display: grid; gap: 10px; max-width: 560px; margin: 8px 0; }
.dk-hindsight {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 10px 0;
  border: 1px solid var(--hd-warn); border-left-width: 4px; background: rgba(242, 184, 75, .07); border-radius: 4px;
}
.dk-hindsight strong { color: var(--hd-warn); }
.dk-event { padding: 10px 12px; background: var(--hd-card-2); border: 1px solid var(--hd-line); border-radius: 4px; border-left: 4px solid var(--hd-flat); }
.dk-event[data-outcome="promoted"] { border-left-color: var(--hd-good); }
.dk-event[data-outcome="retired"] { border-left-color: var(--hd-bad); }
.dk-events { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.dk-events p { margin: 0 0 3px; }

@media (max-width: 520px) {
  .dk-suggest__row { grid-template-columns: 1fr; }
  .dk-msg { max-width: 100%; }
  .dk-camp-dog__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .dk-chipbtn, .dk-swatch, .dk-opt, .dk-vote__btn { transition: border-color .12s ease, background-color .12s ease; }
}

/* ---- kennel name prompt and profile (web/js/kennel.js) ---------------------------------------------------- */
.kn-name, .kn-profile { margin: 12px 0; }
.kn-nameform__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.kn-nameform__row input { flex: 1 1 220px; min-width: 0; max-width: 360px; }
.dk-hindsight-title { margin: 0 0 8px; }

/* ---- the owner's hound menu and its two rites (web/js/dog-rites.js) ------------------------------------------------ */
.dk-menu { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 4px 0 8px; }
.dk-menu .btn { flex: 1 1 150px; }
/* Take them out back is the one action that cannot be undone: outlined in the bad colour, filled only when it is the final step. */
.hounds-page .btn--danger { color: var(--hd-bad); background: transparent; border: 1px solid var(--hd-bad); }
.hounds-page .btn--danger:hover { background: rgba(255, 107, 122, .14); color: #fff; }
.hounds-page .rt-sheet .btn--danger[data-hook="outback-bury"] { background: #C93447; border-color: #C93447; color: #fff; }
.hounds-page .rt-sheet .btn--danger[data-hook="outback-bury"]:hover { background: #DD4558; border-color: #DD4558; }
.dk-chip--trained { color: var(--hd-accent); border-color: rgba(47, 208, 122, .5); background: rgba(47, 208, 122, .08); }

/* the confirm sheet, the training evolution (css/evolve.css) and the two reveals: a bottom sheet on a phone, a centred card from 640px */
/* z-index above the phone tab bar (70): the sheet is the only thing the person should reach while it is open */
.rt-layer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.rt-scrim { position: absolute; inset: 0; background: rgba(5, 7, 10, .78); }
.rt-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-sizing: border-box;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: #14181E;      /* opaque on purpose: --hd-card is transparent on the dog pages */
  border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0; border-radius: 14px 14px 0 0; color: var(--hd-text);
}
@media (min-width: 640px) { .rt-layer { align-items: center; } .rt-sheet { border-bottom: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding-bottom: 20px; } }
.rt-sheet__title { margin: 0 0 10px; font-size: 20px; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.rt-sheet__body > * { margin-top: 0; }
.rt-warn { margin: 0 0 8px; font-size: 17px; line-height: 1.45; color: #fff; padding-left: 12px; border-left: 3px solid var(--hd-bad); }
.rt-note { margin: 0 0 8px; font-size: 16px; line-height: 1.45; color: var(--hd-text-2); }
/* the top of the training review: "Why it lost", a few short lines from the server (dog-review.js lossesBlock) */
.rt-lost { margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; text-align: left; }
.rt-lost__lines { margin: 4px 0 0; padding-left: 18px; }
.rt-lost__lines li { margin: 0 0 4px; overflow-wrap: anywhere; }
.rt-refused { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--hd-bad); border-left-width: 4px; border-radius: 4px; background: rgba(255, 107, 122, .07); color: #fff; }
.rt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.rt-actions .btn { flex: 1 1 140px; white-space: normal; text-align: center; }
/* the training screen's two choices (Fine-tune, Full rebuild) and the plan card with its rehearsal (dog-plans.js) */
/* the Versions list and "Go back to this version" (web/js/dog-versions.js) */
.vs-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.vs-row { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line, rgba(127,127,127,.35)); border-radius: 10px; }
.vs-row[data-status="current"] { border-color: var(--accent, currentColor); }
.vs-row__head { margin: 0; }
.vs-row__record { margin: 0; font-weight: 600; }
.vs-rules summary { cursor: pointer; }
.vs-go, .vs-undo { margin-top: 6px; }
.vs-fold > summary { cursor: pointer; }
.rt-options { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 12px 0; }
@media (min-width: 560px) { .rt-options { grid-template-columns: 1fr 1fr; } }
.rt-option { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line, rgba(127,127,127,.35)); border-radius: 10px; }
.rt-option .btn { margin-top: auto; }
.rt-rehearsal { margin: 12px 0; }
.rt-plan .plan-line { margin: 0 0 6px; }
.rt-plan__others label { display: block; margin: 4px 0; }
.rt-status { min-height: 1.2em; margin: 8px 0 0; }

.rt-card { display: grid; gap: 10px; }
.rt-card__kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-card__headline { margin: 0; font-size: 18px; font-weight: 650; color: #fff; }
.rt-card .hd-h3 { margin: 6px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--hd-mute); font-weight: 600; }
.rt-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rt-change { padding: 10px 12px; background: var(--hd-card-2); border: 1px solid var(--hd-line); border-left: 3px solid var(--hd-accent); border-radius: 4px; }
.rt-change p { margin: 2px 0; overflow-wrap: anywhere; }
.rt-change__from { color: var(--hd-mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.rt-change__to { color: #fff; font-weight: 600; }

/* the review of a proposal (web/js/dog-review.js): a tick on each change, the owner's own line quoted, Apply / Veto / Tweak */
.rt-review { display: grid; gap: 10px; }
.rt-review .hd-h3 { margin: 6px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--hd-mute); font-weight: 600; }
.rt-change--pick .rt-change__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; cursor: pointer; }
.rt-change--pick input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; align-self: center; accent-color: var(--hd-accent); }
.rt-change__cite { font-style: italic; }
.rt-tweak { display: grid; gap: 8px; }
.rt-tweak[hidden] { display: none; }
.rt-tweak label { display: grid; gap: 6px; }
.rt-tweak__input { width: 100%; box-sizing: border-box; min-height: 72px; padding: 8px 10px; border: 1px solid var(--hd-line); border-radius: 4px; background: var(--hd-card-2); color: inherit; font: inherit; }
.rt-review [data-hook="review-error"][hidden] { display: none; }
.dk-retune { margin-top: 10px; display: grid; gap: 6px; justify-items: start; }
.rt-guidance { margin: 0; font-size: 15px; line-height: 1.5; color: var(--hd-text-2); }
.rt-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rt-records dt { color: var(--hd-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.rt-records dd { margin: 2px 0 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }

.rt-reveal { display: grid; gap: 12px; }
.rt-reveal__line { margin: 0; font-size: 17px; color: var(--hd-text-2); }
.rt-reveal__stone { min-width: 0; }

/* the headstone: the burial reveal, the dog page, the graveyard and the kennel page share it */
.hs-list { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .hs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--hd-card-2); border: 1px solid var(--hd-line); border-top: 4px solid var(--hd-mute); border-radius: 10px 10px 4px 4px; }
.hs__badge { line-height: 0; filter: grayscale(.85) brightness(.9); opacity: .9; }
.hs__body { min-width: 0; }
.hs__name { margin: 0; font-size: 20px; line-height: 1.2; }
.hs__name a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.hs__name a:hover { text-decoration: underline; }
.hs__dates { margin: 2px 0 8px; color: var(--hd-mute); font-size: 13px; letter-spacing: .03em; }
.hs__epitaph { margin: 0 0 8px; font-size: 17px; line-height: 1.4; color: var(--hd-text); padding-left: 10px; border-left: 2px solid var(--hd-line); }
.hs__chips { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.hs__facts { margin: 8px 0 0; display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.hs__fact dt { color: var(--hd-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.hs__fact dd { margin: 1px 0 0; font-size: 15px; color: var(--hd-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kn-graveyard { margin: 18px 0; }
@media (max-width: 420px) { .hs { grid-template-columns: minmax(0, 1fr); } .hs__badge { justify-self: start; } }

/* motion: every animation below is for people who have not asked for less (the page works the same without it) */
@media (prefers-reduced-motion: no-preference) {
  .rt-scrim { animation: rt-fade .18s ease both; }
  .rt-sheet { animation: rt-rise .24s cubic-bezier(.2, .8, .2, 1) both; }
  .rt-reveal--burial .rt-reveal__line:first-child { animation: rt-fade .9s ease both; }
  .rt-reveal--burial .rt-reveal__stone { animation: rt-lower 1.1s cubic-bezier(.2, .8, .2, 1) .5s both; }
  .rt-reveal--burial .rt-reveal__line:last-child { animation: rt-fade .9s ease 1.4s both; }
  .rt-card { animation: rt-fade .4s ease both; }
  .rt-change { animation: rt-rise .3s ease both; animation-delay: calc(var(--i, 0) * 120ms); }
  @keyframes rt-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes rt-lower { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
}

/* ---- Unleash today (web/js/dog-fire.js, owner request 2026-10-21) ------------------------------------------------------
   The hound sniffs a board while the request runs; the answer ticks the steps off and the cards rise in. The loop lasts as long as the
   request does and the reveal is under a second (7 stagger steps x 70ms + .32s); reduced motion gets the same list and no movement. */
.ul-stage { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--hd-line); border-radius: 8px; background: var(--hd-card-2); }
.ul-stage__art { display: flex; align-items: center; gap: 12px; min-height: 96px; overflow: hidden; }
.ul-dog { flex: 0 0 auto; line-height: 0; transform-origin: 50% 90%; }
.ul-board { flex: 1 1 0; min-width: 0; display: grid; gap: 7px; }
.ul-board__row { display: block; height: 9px; border-radius: 5px; background-color: rgba(255, 255, 255, .08); width: calc(100% - var(--r, 0) * 11%); }
.ul-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ul-steps--done { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--hd-line); border-radius: 8px; background: var(--hd-card-2); }
.ul-step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--hd-mute); }
.ul-step::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--hd-line); }
.ul-step[data-state="active"] { color: #fff; }
.ul-step[data-state="active"]::before { border-color: var(--hd-accent); }
.ul-step[data-state="done"] { color: var(--hd-text); }
.ul-step[data-state="done"]::before { background: var(--hd-accent); border-color: var(--hd-accent); }
.ul-card--before { border-left: 3px solid var(--hd-warn); }
.ul-card .dk-chip, .ul-card--before .dk-chip { vertical-align: middle; margin-left: 6px; }
.ul-before .dk-chip--hind { margin-left: 0; white-space: normal; }
@media (prefers-reduced-motion: no-preference) {
  .ul-dog { animation: ul-sniff 1.1s ease-in-out infinite; }
  .ul-board__row { background-image: linear-gradient(90deg, transparent, rgba(47, 208, 122, .6), transparent); background-size: 40% 100%; background-repeat: no-repeat;
    animation: ul-scan 1.3s linear infinite; animation-delay: calc(var(--r, 0) * 150ms); }
  .ul-step[data-state="active"]::before { animation: ul-pulse 1s ease-in-out infinite; }
  .ul-in { animation: ul-rise .32s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes ul-sniff { 0%, 100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(5px) rotate(-4deg); } 40% { transform: translateX(1px) rotate(0deg); } 60% { transform: translateX(6px) rotate(-5deg); } 80% { transform: translateX(2px) rotate(0deg); } }
@keyframes ul-scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@keyframes ul-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ul-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- talk to your hound (web/js/dog-chat.js, owner request 2026-10-28) -------------------------------------------------
   The member's lines on the right, the hound's on the left with its face; a proposed change is a card inside the hound's bubble. */
.dc-thread { display: grid; gap: 10px; max-height: min(60vh, 520px); overflow-y: auto; margin: 4px 0 8px; padding: 2px 2px 2px 0; overscroll-behavior: contain; }
.dc-row { display: flex; align-items: flex-end; gap: 8px; }
.dc-row--you { justify-content: flex-end; }
.dc-face { flex: 0 0 auto; line-height: 0; }
.dc-bubble { padding: 8px 12px; border-radius: 14px; max-width: min(86%, 560px); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.dc-bubble p { margin: 0 0 6px; }
.dc-bubble p:last-child { margin-bottom: 0; }
.dc-bubble--you { background: rgba(47, 208, 122, .16); color: #fff; border-bottom-right-radius: 4px; }
.dc-bubble--hound { background: var(--hd-card-2); border: 1px solid var(--hd-line); color: var(--hd-text); border-bottom-left-radius: 4px; }
.dc-notice { margin: 0; text-align: center; font-size: 13px; color: var(--hd-mute); }
.dc-card { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--hd-line); border-left: 3px solid var(--hd-warn); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.dc-card[data-status="applied"] { border-left-color: var(--hd-good); }
.dc-card[data-status="cancelled"], .dc-card[data-status="replaced"], .dc-card[data-status="stale"], .dc-card[data-status="failed"] { border-left-color: var(--hd-flat); opacity: .85; }
.dc-card__title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-mute); }
.dc-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dc-change p { margin: 3px 0 0; font-size: 14px; }
.dc-tag { display: inline-block; min-width: 52px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hd-mute); }
.dc-tag--after { color: var(--hd-good); }
.dc-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-card__actions .btn { flex: 1 1 120px; min-height: 44px; }
.dc-card__result { margin: 0; }
.dc-askrow { margin-top: 4px; }
.dc-unavailable { margin: 4px 0 8px; padding: 8px 12px; border: 1px solid var(--hd-warn); border-radius: 8px; font-size: 14px; background: rgba(242, 184, 75, .07); }
.dc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 6px; }
.dc-foot .dc-allowance { margin: 0; }
.dc-sure { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.dc-sure[hidden] { display: none; }
.dc-clear { min-height: 44px; }
.dc-row--typing .dc-bubble { letter-spacing: .2em; }
@media (prefers-reduced-motion: no-preference) {
  .dc-row--typing .dc-bubble { animation: ul-pulse 1s ease-in-out infinite; }
}
@media (max-width: 520px) {
  .dc-bubble { max-width: 92%; }
}
