/* The overview (design standard v1.3, 27 Nov 2026). Loaded after glass.css.
   One glass panel per section and nothing boxed inside it. Brass has three jobs
   on this page: the words that need you, the one primary button, and today's bar.
   Type steps: 12 · 15 · 19 · 38 · headline 34–50. */

.ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Content sits above the light that follows the pointer, so it never washes the words. */
.ov > .gl > *, .ov-pair > .gl > * { position: relative; z-index: 1; }

/* ---- Hero ------------------------------------------------------------------------------- */

.ov-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; padding: 36px 40px 32px; }
.ov-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.ov-live { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.ov-live--on { background: var(--ok); animation: ov-beat 2.4s var(--ease-out) infinite; }
@keyframes ov-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.ov-hero h1 {
  margin-top: 18px; max-width: 18ch; font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance;
}
.ov-hero h1 span { color: var(--amber-hi); }
.ov-calm { margin-top: 12px; font-size: 15px; color: var(--text-2); }

/* The yards that need you: hairline rows, the whole row is the link. */
.ov-needs { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ov-need {
  display: grid; grid-template-columns: 28px minmax(140px, 13rem) minmax(0, 1fr) auto 16px; gap: 14px; align-items: center;
  min-height: 52px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: background-color .15s var(--ease-out);
}
.ov-needs li:last-child .ov-need { border-bottom-color: transparent; }
.ov-need:hover { background: var(--panel); }
.ov-need:active { background: var(--panel-2); }
.ov-need:focus-visible { outline-offset: -2px; }
.ov-need__crest .crest { display: block; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; }
.ov-need__name { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-need__what { font-size: 15px; color: var(--text-2); min-width: 0; }
.ov-need__what em { font-style: normal; color: var(--muted); }
.ov-need__when { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ov-need__go { color: var(--faint); display: grid; transition: transform .15s var(--ease-out), color .15s var(--ease-out); }
.ov-need__go svg { width: 16px; height: 16px; }
.ov-need:hover .ov-need__go { color: var(--text); transform: translateX(2px); }

.ov-actions { display: flex; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.ov-link { font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; border-radius: 4px; transition: color .15s var(--ease-out); }
.ov-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.ov .btn--primary:active { transform: scale(.97); }

/* Every yard in one ring, one segment each, coloured by state. */
.ov-ring { margin: 0; display: grid; justify-items: center; gap: 16px; }
.ov-ring__dial { position: relative; width: 196px; aspect-ratio: 1; }
.ov-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ov-ring circle { fill: none; stroke-width: 9; }
.ov-ring__track { stroke: var(--line); }
.ov-ring__seg { stroke-linecap: round; animation: ov-seg .4s var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 60ms); }
.ov-ring__seg--critical { stroke: var(--bad); }
.ov-ring__seg--attention { stroke: var(--warn); }
.ov-ring__seg--healthy { stroke: var(--ok); }
.ov-ring__seg--onboarding { stroke: var(--onb); }
.ov-ring__seg--paused { stroke: var(--faint); }
@keyframes ov-seg { from { opacity: 0; } to { opacity: 1; } }
.ov-ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ov-ring__mid b { font-family: var(--display); font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: -.045em; }
.ov-ring__mid span { margin-top: 6px; font-size: 12px; color: var(--muted); }
.ov-legend { display: grid; grid-template-columns: auto auto; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.ov-legend span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ---- Four numbers: one strip, hairlines between ------------------------------------------ */

.ov-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.ov-num { display: grid; gap: 10px; align-content: start; padding: 22px 26px 24px; border-left: 1px solid var(--line); }
.ov-num:first-child { border-left: 0; }
.ov-num__k { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.ov-num b { font-family: var(--display); font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: -.045em; }
.ov-num__n { font-size: 12px; color: var(--faint); }

/* ---- Sections ------------------------------------------------------------------------- */

.ov-sec { padding: 22px 26px 24px; }
.ov-sec__h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ov-sec__h h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ov-sec__h p { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* ---- Your yards: a dense table, each row a link ----------------------------------------- */

.ov-yards__head, .ov-yard {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(200px, 2fr) 134px 100px minmax(136px, 1fr) 84px 96px 96px 84px;
}
.ov-yards { container-type: inline-size; }
.ov-yards__head { padding: 0 12px 10px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--faint); }
.ov-yards__head .r, .ov-yard__n { text-align: right; justify-self: end; }
.ov-yards__list { list-style: none; margin: 0; padding: 0; }
.ov-yard {
  min-height: 60px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 15px;
  transition: background-color .15s var(--ease-out);
}
.ov-yards__list li:last-child .ov-yard { border-bottom: 0; }
.ov-yard:hover { background: var(--panel); }
.ov-yard:active { background: var(--panel-2); }
.ov-yard:focus-visible { outline-offset: -2px; }
.ov-yard__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ov-yard__id .crest { width: 32px; height: 32px; flex: none; border-radius: 8px; overflow: hidden; }
.ov-yard__id > span { display: grid; min-width: 0; }
.ov-yard__id b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-yard__id small, .ov-yard small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-yard__phone { display: none; }
.ov-yard__state .state { font-size: 15px; }
.ov-yard__ver, .ov-yard__n { display: grid; white-space: nowrap; }
.ov-yard__ver small { color: var(--info); }
.ov-yard__apps { color: var(--text-2); }
.ov-yard__n { font-variant-numeric: tabular-nums; }
.ov-yard__when { font-size: 12px; color: var(--muted); }
.ov-bad { color: var(--bad) !important; }
.ov-store { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-store__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ov-store__bar i { display: block; height: 100%; border-radius: inherit; background: var(--sky); }
.ov-store.warn { color: var(--warn); }
.ov-store.warn i { background: var(--warn); }
.ov-store.bad { color: var(--bad); }
.ov-store.bad i { background: var(--bad); }

/* ---- Activity and money side by side ------------------------------------------------- */

.ov-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

/* Pill bars: hatched glass, today lit in brass with its number above. */
.ov-activity { display: flex; flex-direction: column; }
.pbars { flex: 1; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 10px; min-height: 200px; padding-top: 34px; }
.pbar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.pbar i {
  display: block; width: 100%; max-width: 36px; height: calc((100% - 22px) * var(--hn, .1)); border-radius: 999px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 7px), linear-gradient(180deg, rgba(142, 164, 223, .24), rgba(142, 164, 223, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: filter .15s var(--ease-out);
}
.pbar:hover i { filter: brightness(1.35); }
.pbar--none i { background: none; box-shadow: inset 0 0 0 1px var(--line-2); opacity: .55; }
.pbar--hot i { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.pbar small { font-size: 12px; color: var(--faint); white-space: nowrap; }
.pbar--hot small { color: var(--amber-hi); font-weight: 600; }
.pbar__v {
  position: absolute; left: 50%; bottom: calc(30px + (100% - 22px) * var(--hn, .1)); transform: translate(-50%, 4px); opacity: 0; z-index: 2;
  white-space: nowrap; font-size: 12px; padding: 4px 9px; border-radius: 8px; pointer-events: none;
  background: var(--glass); border: 1px solid var(--glass-edge); color: var(--text); transition: opacity .15s var(--ease-out), transform .25s var(--ease-out);
}
.pbar:hover .pbar__v, .pbar--hot .pbar__v { opacity: 1; transform: translate(-50%, 0); }
.pbars:hover .pbar--hot:not(:hover) .pbar__v { opacity: .25; }
.pbar--hot .pbar__v { background: var(--amber); border-color: transparent; color: var(--amber-ink); font-weight: 600; }
.pbar:last-child .pbar__v { left: auto; right: -4px; transform: translateY(4px); }
.pbar:last-child:hover .pbar__v, .pbar--hot:last-child .pbar__v { transform: none; }

.ov-money { display: flex; flex-direction: column; }
.ov-money__big b { display: block; font-family: var(--display); font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: -.045em; }
.ov-money__big span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ov-rows { margin: 20px 0 0; display: grid; }
.ov-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ov-rows dt { color: var(--muted); }
.ov-rows dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.ov-money__note { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 84px; margin-top: 14px; }
.mini span { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mini i { display: block; width: 100%; max-width: 22px; height: calc((100% - 18px) * var(--hn, .06)); border-radius: 999px; background: color-mix(in srgb, var(--sky) 55%, transparent); }
.mini span:last-child i { background: var(--amber); }
.mini small { font-size: 12px; color: var(--faint); }

/* ---- Latest changes ---------------------------------------------------------------- */

.ov-trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.ov-trail li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ov-trail b { font-weight: 500; font-size: 15px; }
.ov-trail p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.ov-trail__when { color: var(--faint); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Light version --------------------------------------------------------------------- */

:root[data-theme="light"] .pbar i { background: repeating-linear-gradient(-45deg, rgba(11, 19, 43, .09) 0 2px, transparent 2px 7px), linear-gradient(180deg, rgba(42, 60, 110, .18), rgba(42, 60, 110, .04)); box-shadow: inset 0 0 0 1px rgba(11, 19, 43, .1); }
:root[data-theme="light"] .pbar--none i { background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
:root[data-theme="light"] .pbar--hot i { background: linear-gradient(180deg, #C9A24E, #8A6524); }
:root[data-theme="light"] .pbar__v { background: rgba(255, 255, 255, .96); }
:root[data-theme="light"] .pbar--hot .pbar__v { background: var(--amber); color: #fff; }

/* The yards table answers to its own width, not the window's. */
@container (max-width: 1039px) {
  .ov-yards__head, .ov-yard { grid-template-columns: minmax(200px, 1fr) 134px 100px 84px 96px 84px; }
  .ov-yards__head span:nth-child(4), .ov-yard__apps, .ov-yards__head span:nth-child(7), .ov-yard__store { display: none; }
}
@container (max-width: 779px) {
  .ov-yards__head { display: none; }
  .ov-yard { grid-template-columns: minmax(0, 1fr) auto; }
  .ov-yard > :not(.ov-yard__id):not(.ov-yard__state) { display: none; }
  .ov-yard__phone { display: block; }
  .ov-yard__id small { white-space: normal; }
}

/* ---- Smaller screens ------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .ov-pair { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ov-hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .ov-ring { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 20px; }
  .ov-ring__dial { width: 108px; }
  .ov-ring__mid b { font-size: 24px; }
  .ov-ring__mid span { margin-top: 2px; }
  .ov-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-num:nth-child(3) { border-left: 0; }
  .ov-num:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ov-trail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ov { gap: 12px; }
  .ov-hero { padding: 22px 18px 24px; }
  .ov-hero h1 { font-size: 30px; margin-top: 14px; }
  .ov-needs { margin-top: 20px; }
  .ov-need { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding: 10px 8px; margin: 0 -8px; }
  .ov-need__crest { grid-row: 1 / 3; }
  .ov-need__name { grid-column: 2; }
  .ov-need__what { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--muted); }
  .ov-need__when { grid-column: 3; grid-row: 1; }
  .ov-need__go { display: none; }
  .ov-actions { gap: 18px; margin-top: 20px; }
  .ov-actions .btn { min-height: 44px; }
  .ov-num { padding: 16px 16px 18px; gap: 8px; }
  .ov-num b { font-size: 28px; }
  .ov-sec { padding: 18px 16px 20px; }
  .ov-yard { padding: 10px 4px; min-height: 64px; }
  .ov-yard__state .state { font-size: 14px; }
  .pbars { gap: 4px; min-height: 190px; }
  .pbar:nth-child(odd):not(:last-child) small { visibility: hidden; }
  .chips button { min-height: 36px; }
}
