/* ============================================================================
   recLite visuals
   ---------------------------------------------------------------------------
   Built from the same tokens as everything else. No new palette, no new radius
   scale — a product mockup that introduces its own colors stops looking like
   a picture of this company's product.
   ========================================================================= */

/* Every mockup contains at least one unbreakable string (a currency figure, a
   script tag, a household name). `min-width: auto` is the default for grid and
   flex children, so without this a single such string sizes its track and takes
   the page with it at narrow viewports. Same note as bot.css, same reason. */
.hhv, .hhv__frame, .hhv__person, .hhv__acts li,
.ldg, .ldg__line, .mch__row,
.dlv, .dlv__row, .cal, .cal__lane,
.brd, .brd__row, .emb, .emb__head, .emb__note, .emb__site { min-width: 0; }

/* --- The household record ---------------------------------------------------- */

.hhv { position: relative; }

.hhv__frame {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--e-3);
  overflow: hidden;
}

.hhv__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--blue-900);
}
.hhv__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.hhv__id { display: grid; gap: 0.05rem; min-width: 0; }
.hhv__id b { font-size: 0.8125rem; font-weight: 700; color: #fff; }
.hhv__id i { font-style: normal; font-size: 0.625rem; color: var(--text-on-ink-3); }
.hhv__chip {
  margin-left: auto;
  flex: none;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--yellow-300);
  color: var(--ink-900);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hhv__body { display: grid; gap: 0.85rem; padding: 1rem; background: var(--bg-sunken); }

.hhv__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.hhv__person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
}
.hhv__av {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-style: normal;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* The payer at another address is the awkward case the section is about, so it
   is marked rather than left to blend in. */
.hhv__person:nth-child(2) .hhv__av { background: var(--yellow-200); color: var(--yellow-700); }
.hhv__pn { display: grid; gap: 0.05rem; min-width: 0; }
.hhv__pn b { font-size: 0.6875rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hhv__pn i { font-style: normal; font-size: 0.5625rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hhv__acts { display: grid; gap: 0.3rem; }
.hhv__acts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-xs);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
}
.hhv__acts-i { display: grid; place-items: center; flex: none; color: var(--blue-500); }
.hhv__acts-k {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hhv__acts-v {
  flex: none;
  padding: 0.14rem 0.42rem;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.5625rem;
  font-weight: 700;
}

.hhv__bal {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.hhv__bal-k { font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hhv__bal-v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--blue-700);
}
.hhv__bal-d { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); }

.hhv__flag {
  position: absolute;
  left: clamp(-1.75rem, -2vw, -0.5rem);
  bottom: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--e-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.hhv__flag-tick {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow-300);
  color: var(--ink-900);
}

/* --- The ledger ---------------------------------------------------------------- */

.ldg {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--e-3);
}
.ldg__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.ldg__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--blue-500);
  color: #fff;
}
.ldg__id { display: grid; gap: 0.05rem; min-width: 0; }
.ldg__id b { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.ldg__id i { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }

.ldg__lines { display: grid; gap: 0.1rem; margin-top: 0.85rem; }
.ldg__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.ldg__line b { flex: none; font-weight: 700; color: var(--text); }
/* The credit came from a canceled program and is being spent against a
   rental. That is the shared ledger, in one line. */
.ldg__line.is-credit span,
.ldg__line.is-credit b { color: var(--success); }

.ldg__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink-900);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.ldg__total b {
  flex: none;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wdth' 100;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue-700);
}
.ldg__note {
  margin-top: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-block;
}

/* --- The money path -------------------------------------------------------------- */

.mch { margin-top: 1.35rem; }
.mch__rows { display: grid; gap: 0.5rem; }
.mch__row {
  display: grid;
  grid-template-columns: minmax(6rem, auto) 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border-ink);
}
.mch__who { font-size: 0.8125rem; font-weight: 700; color: var(--yellow-300); }
.mch__arrow { color: var(--text-on-ink-3); }
.mch__what { font-size: 0.8125rem; line-height: 1.45; color: var(--text-on-ink-2); }

.mch__sink {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(245, 245, 114, .14);
  border: 1px solid rgba(245, 245, 114, .35);
}
.mch__sink b { font-size: 0.9375rem; font-weight: 800; color: var(--yellow-300); }
.mch__sink i { font-style: normal; font-size: 0.75rem; color: var(--text-on-ink-2); }

/* --- Delivery report ---------------------------------------------------------------- */

.dlv {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--e-3);
}
.dlv__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dlv__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--blue-500);
  color: #fff;
}
.dlv__id { display: grid; gap: 0.05rem; min-width: 0; }
.dlv__id b { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.dlv__id i { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }

.dlv__rows { display: grid; gap: 0.7rem; margin-top: 1.15rem; }
.dlv__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.7fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 0.85rem;
}
.dlv__k { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.dlv__track { height: 7px; border-radius: 4px; background: var(--ink-100); overflow: hidden; }
.dlv__track i { display: block; height: 100%; border-radius: 4px; background: var(--blue-500); transform-origin: left center; }
.dlv__row--warn .dlv__track i { background: var(--yellow-500); }
.dlv__n {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wdth' 100;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Everything above the rule is a delivery report anyone can produce. The thing
   below it is the one nobody else does, so it gets the yellow. */
.dlv__call {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-xl);
  background: var(--yellow-200);
  border: 1px solid var(--yellow-400);
}
.dlv__call-n {
  flex: none;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--yellow-700);
}
.dlv__call-t { display: grid; gap: 0.1rem; min-width: 0; }
.dlv__call-t b { font-size: 0.875rem; font-weight: 800; color: var(--ink-900); }
.dlv__call-t i { font-style: normal; font-size: 0.6875rem; color: var(--yellow-700); }

/* --- Facility calendar ------------------------------------------------------------------ */

.cal {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--e-3);
}
.cal__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cal__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--blue-500);
  color: #fff;
}
.cal__id { display: grid; gap: 0.05rem; min-width: 0; }
.cal__id b { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.cal__id i { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }

.cal__ruler {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 0.5rem;
  padding-left: clamp(5rem, 26%, 8rem);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.cal__lanes { display: grid; gap: 0.4rem; }
.cal__lane { display: grid; grid-template-columns: clamp(5rem, 26%, 8rem) minmax(0, 1fr); align-items: center; gap: 0; }
.cal__lane-k {
  padding-right: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal__track {
  position: relative;
  display: block;
  height: 30px;
  border-radius: var(--r-xs);
  background: var(--bg-sunken);
  /* The hour grid, drawn rather than marked up — six columns, one hairline
     each, and no six extra elements per lane. */
  background-image: repeating-linear-gradient(
    to right,
    var(--border) 0 1px,
    transparent 1px calc(100% / 6)
  );
}
.cal__slot {
  position: absolute;
  top: 3px;
  bottom: 3px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  border-radius: 5px;
  font-style: normal;
  font-size: 0.5625rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left center;
}
.cal__slot--a { background: var(--blue-500); color: #fff; }
.cal__slot--b { background: var(--yellow-300); color: var(--ink-900); }
.cal__slot--int { background: var(--ink-300); color: var(--ink-900); }
/* The blocked lane is the argument: booking the full gym closed this one.
   Hatched rather than solid, because nothing is actually booked here. */
.cal__slot--block {
  color: var(--blue-700);
  background: repeating-linear-gradient(
    -45deg,
    var(--blue-200) 0 5px,
    var(--blue-100) 5px 10px
  );
  box-shadow: inset 0 0 0 1px var(--blue-300);
}

.cal__foot {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* --- Camp day board ------------------------------------------------------------------------ */

.brd {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--e-3);
}
.brd__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.brd__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--blue-500);
  color: #fff;
}
.brd__id { display: grid; gap: 0.05rem; min-width: 0; }
.brd__id b { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.brd__id i { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }

.brd__ratio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--r-md);
  background: var(--bg-sunken);
}
.brd__ratio span { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: 0.75rem; color: var(--text-secondary); }
.brd__ratio b {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wdth' 100;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brd__ratio-ok {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-700) !important;
  font-size: 0.625rem !important;
  font-weight: 800;
}

.brd__rows { display: grid; gap: 0.4rem; margin-top: 0.85rem; }
.brd__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.25rem 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
}
.brd__n { font-size: 0.8125rem; font-weight: 650; color: var(--text); }
.brd__s {
  padding: 0.14rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brd__row--out .brd__s { background: var(--ink-100); color: var(--ink-600); }
.brd__row--flag .brd__s { background: var(--yellow-300); color: var(--ink-900); }
.brd__t { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); }
.brd__by {
  grid-column: 1 / -1;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
}
/* An exception taken *and recorded*. The row is marked so the audit trail is
   visible on the screen, not only in a log nobody reads. */
.brd__row--flag { box-shadow: inset 0 0 0 1px var(--yellow-400); background: var(--yellow-100); }
.brd__row--flag .brd__by { color: var(--yellow-700); font-weight: 700; }

/* --- Storefront embed ------------------------------------------------------------------------- */

.emb {
  padding: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-ink);
}
.emb__head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.emb__label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-on-ink-2);
}
.emb__tag {
  flex: none;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(245, 245, 114, .18);
  color: var(--yellow-300);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* A miniature district website with the storefront inside it. Nothing here
   can overflow: every bar is a percentage of its row. */
.emb__site {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6);
}
.emb__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink-100);
}
.emb__dots { display: flex; gap: 5px; flex: none; }
.emb__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.emb__url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--ink-600);
}
.emb__rows { display: grid; gap: 0.5rem; margin: 0; padding: 0.8rem; list-style: none; }
.emb__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem;
  border-radius: var(--r-sm);
  background: var(--blue-50);
}
.emb__thumb { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-300), var(--blue-500)); }
.emb__row:nth-child(2) .emb__thumb { background: linear-gradient(135deg, var(--yellow-300), var(--yellow-500)); }
.emb__lines { display: grid; gap: 6px; min-width: 0; }
.emb__lines b { display: block; height: 7px; border-radius: 4px; background: var(--ink-300); }
.emb__lines b + b { background: var(--ink-200); }
.emb__btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--blue-500);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.emb__note {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md);
  background: rgba(35, 105, 210, .26);
}
.emb__note-k { flex: none; font-size: 0.8125rem; font-weight: 800; color: var(--yellow-300); white-space: nowrap; }
.emb__note p { font-size: 0.8125rem; line-height: 1.55; color: var(--text-on-ink); }

/* --- Narrow viewports ---------------------------------------------------------------------------- */

@media (max-width: 599px) {
  .hhv__people { grid-template-columns: minmax(0, 1fr); }
  .hhv__flag { position: static; display: inline-flex; margin-top: 1rem; }
  .mch__row { grid-template-columns: minmax(0, 1fr); }
  .mch__arrow { display: none; }
  .dlv__row { grid-template-columns: minmax(0, 1fr) auto; }
  .dlv__track { grid-column: 1 / -1; grid-row: 2; }
  .cal__ruler { padding-left: 0; }
  .cal__lane { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .cal__lane-k { padding-right: 0; }
  .emb__note { flex-direction: column; gap: 0.3rem; }
}
