/* v8 (2026-10-30): Today to the approved board (design-proto/dashboard-v6.html), drawn by next-v8-today.js. Every rule is scoped to
   #view .v8t (the composition) or #view .page.v8t-on (the page it sits in). The earlier home's blocks stay in the page, hidden; Lately
   and the setup lines stay visible below the composition. */

/* the page: the earlier head, the action row and the panel grids give way to the composition */
#view .page.v8t-on { max-width: 1360px; }
#view .page.v8t-on > header.v6-hello,
#view .page.v8t-on > .v6-quick,
#view .page.v8t-on > .v6-grid,
#view .page.v8t-on > section.v7-sec[aria-label="Readiness"] { display: none !important; }

#view .v8t { font-family: var(--v8-sans); color: var(--v8-t1); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
#view .v8t a { color: inherit; text-decoration: none; }
#view .v8t h1, #view .v8t h2, #view .v8t p { margin: 0; }
#view .v8ti { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#view .v8ti.neg { color: var(--v8-neg); } #view .v8ti.warn { color: var(--v8-warn); } #view .v8ti.pos { color: var(--v8-pos); } #view .v8ti.mute { color: var(--v8-t3); }

/* the head: the title and the day, the day's actions, the range */
#view .v8t-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
#view .v8t-title { min-width: 0; }
#view .v8t-title h1 { display: inline; font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: -.025em; color: var(--v8-t1); }
#view .v8t-title h1 span { color: var(--v8-t3); }
#view .v8t-title [data-xpl-btn] { margin-left: 12px; vertical-align: 6px; }
#view .v8t-hello { margin-top: 8px !important; font-size: 13px; color: var(--v8-t3); }
#view .v8t-link { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--v8-t2); cursor: pointer; }
#view .v8t-link:hover { color: var(--v8-t1); text-decoration: underline; text-underline-offset: 3px; }
#view .v8t-hello .v8t-link { color: var(--v8-accent); }
#view .v8t-tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#view .v8t-act, #view .v8t-range { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--v8-r-ctl); background: var(--v8-card); box-shadow: 0 0 0 1px var(--v8-hair); font: 400 13px/1 var(--v8-sans); color: var(--v8-t1) !important; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .15s var(--v8-ease); }
#view .v8t-act:hover { background: var(--v8-raised); }
#view .v8t-act svg, #view .v8t-range svg { width: 16px; height: 16px; color: var(--v8-t2); flex: none; }
#view .v8t-range { cursor: default; }

/* the four figures */
#view .v8t-stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; margin-top: 28px; }
#view .v8t-stat { position: relative; display: block; height: 150px; border-radius: var(--v8-r-panel); background: var(--v8-card); box-shadow: 0 0 0 1px var(--v8-hair); padding: 22px 24px; overflow: hidden; transition: background-color .15s var(--v8-ease); }
#view .v8t-stat:hover { background: color-mix(in srgb, var(--v8-raised) 55%, var(--v8-card)); }
#view .v8t-l { display: block; color: var(--v8-t2); font-size: 15px; }
#view .v8t-v { display: block; font-size: 38px; font-weight: 500; letter-spacing: -.02em; margin-top: 10px; line-height: 1; color: var(--v8-t1); }
#view .v8t-stat .v8t-d { position: absolute; left: 24px; bottom: 20px; right: 24px; font: 400 12px/1.2 var(--v8-mono); color: var(--v8-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view .v8t-d b { font-weight: 500; color: var(--v8-pos); }
#view .v8t-d b.neg { color: var(--v8-neg); }
#view .v8t-segs { position: absolute; right: 22px; bottom: 22px; display: grid; grid-template-columns: repeat(var(--n), 10px); gap: 5px; }
#view .v8t-segs i { height: 10px; border-radius: 3px; background: var(--v8-raised); }
#view .v8t-segs i.on { background: var(--v8-s3); }
#view .v8t-stat:has(.v8t-segs) .v8t-d { right: 110px; }

/* the certificate as an object: two sheets, one line marked when its read failed a check (flat paper, no gradient) */
#view .v8d { position: absolute; right: 2px; top: 30px; width: 150px; height: 136px; pointer-events: none; transform: scale(.86); transform-origin: top right; }
#view .v8t-stat:has(.v8d) .v8t-l, #view .v8t-stat:has(.v8d) .v8t-v { position: relative; z-index: 1; }
#view .v8d-sh { position: absolute; width: 104px; height: 128px; border-radius: 7px; display: block; }
#view .v8d-sh.back { right: 6px; top: 4px; transform: rotate(8deg); background: #cfc8bb; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 24px rgba(0,0,0,.35); }
#view .v8d-sh.front { right: 30px; top: 10px; padding: 11px 10px 0; transform: rotate(-7deg); background: var(--v8-paper); box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,.2), 0 18px 32px rgba(0,0,0,.4); }
:root:not([data-theme="dark"]) #view .v8d-sh.back { box-shadow: 0 8px 18px rgba(16,24,40,.14); }
:root:not([data-theme="dark"]) #view .v8d-sh.front { box-shadow: 0 0 0 1px rgba(16,24,40,.06), 0 12px 24px rgba(16,24,40,.14); }
#view .v8d-b { display: block; height: 3px; border-radius: 2px; background: #d4cdc0; }
#view .v8d-b.k { background: #4a453e; } #view .v8d-b.v { background: #a39b8e; }
#view .v8d-hd { display: flex; align-items: center; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid #3d3933; }
#view .v8d-hd i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #3d3933; flex: none; }
#view .v8d-tt { width: 46%; height: 2.5px; margin: 7px auto 6px; }
#view .v8d-rw { display: grid; grid-template-columns: 20px 1fr; gap: 6px; align-items: center; height: 11px; border-bottom: 1px solid rgba(61,57,51,.08); }
#view .v8d-rw .v8d-b:first-child { width: 20px; }
#view .v8d-rw.hit { margin: 1px -4px; padding: 0 4px; border-radius: 2px; border: 0; background: rgba(229,72,77,.12); box-shadow: 0 0 0 1px #e5484d; }
#view .v8d-rw.hit .v8d-b { background: #e5484d; opacity: .55; } #view .v8d-rw.hit .v8d-b.v { opacity: .85; }
#view .v8d-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font: 500 7px/1 var(--v8-mono); color: #6f685c; letter-spacing: .02em; }
#view .v8d-ft svg { width: 30px; height: 10px; }
#view .v8d-lot::before { content: attr(data-lot); }   /* a picture's label, drawn, not page text */
#view .v8t-stat:has(.v8d) .v8t-l { white-space: nowrap; }
#view .v8t-stat:has(.v8d) .v8t-d { max-width: calc(100% - 118px); }

/* panels */
#view .v8t-panel { border-radius: var(--v8-r-panel); background: var(--v8-card); box-shadow: 0 0 0 1px var(--v8-hair); min-width: 0; }
#view .v8t .v8t-panel.v6-panel { padding: 0; margin: 0; border: 0; grid-column: auto; }
#view .v8t-g2 { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
#view .v8t-g2 > .v8t-chart, #view .v8t-g2 > .v8t-needs { align-self: stretch; }
#view .v8t-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
#view .v8t-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
#view .v8t-g2b > .v8t-coming { align-self: stretch; }
#view .v8t-h { display: flex; align-items: center; gap: 8px; min-height: 22px; white-space: nowrap; }
#view .v8t-h .v8t-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#view .v8t .v8t-h h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--v8-t1); margin: 0; }
#view .v8t-c { font: 400 12px/1 var(--v8-mono); color: var(--v8-t3); }
#view .v8t-hr { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
#view .v8t-empty { padding: 14px 0 4px; font-size: 13px; color: var(--v8-t3); }

/* the chart */
#view .v8t-chart { padding: 24px 24px 18px; }
#view .v8t-chart .v8t-l:hover { color: var(--v8-t1); }
#view .v8t-chart .v8t-v { font-size: 40px; margin-top: 8px; }
#view .v8t-chart .v8t-d { margin-top: 10px; font: 400 12px/1.3 var(--v8-mono); color: var(--v8-t3); }
#view .v8t-svg { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
#view .v8t-grid path { stroke: var(--v8-grid); fill: none; }
#view .v8t-ax text { font: 400 12px var(--v8-mono); fill: var(--v8-t3); }
#view .v8t-lines path { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
#view .v8t-mir path { fill: none; stroke: color-mix(in srgb, var(--v8-t1) 28%, transparent); stroke-width: 1.5; stroke-linejoin: round; }
#view .v8t-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: var(--v8-t2); }
#view .v8t-legend span { display: inline-flex; align-items: center; gap: 7px; }
#view .v8t-legend i { width: 8px; height: 8px; border-radius: 50%; }
#view .v8t-legend i.mir { background: color-mix(in srgb, var(--v8-t1) 28%, transparent); }
#view .v8t-legend-r { margin-left: auto; }
#view .v8t-figs { margin-top: 18px; border-bottom: 0; }
#view .v8t-figs small { display: block; margin-top: 6px; font: 400 12px/1.35 var(--v8-mono); color: var(--v8-t3); white-space: normal; }
#view .v8t-figs b { font-size: 19px; }

/* Needs you */
#view .v8t-needs > .v8t-h { padding: 20px 20px 12px; }
#view .v8t-needs .v8t-hr .v7-ib, #view .v8t-needs .v8t-hr .v6-tabs { transform: scale(.9); }
#view .v8t-task { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 14px 20px; border: 0; border-top: 1px solid var(--v8-hair-2); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color .15s var(--v8-ease); }
#view .v8t-task:hover { background: color-mix(in srgb, var(--v8-raised) 55%, transparent); }
#view .v8t-task .v8ti { margin-top: 1px; }
#view .v8t-tt { min-width: 0; }
#view .v8t-t { display: block; font-size: 14px; line-height: 1.35; color: var(--v8-t1); }
#view .v8t-m { display: block; margin-top: 3px; font: 400 12px/1.35 var(--v8-mono); color: var(--v8-t3); overflow-wrap: anywhere; }
#view .v8t-w { font-size: 12px; font-weight: 500; white-space: nowrap; margin-top: 1px; }
#view .v8t-w.neg { color: var(--v8-neg); } #view .v8t-w.warn { color: var(--v8-warn); }
#view .v8t-more .v8t-t { color: var(--v8-t2); }
#view .v8t-acts { display: inline-flex; gap: 6px; align-items: center; }
#view .v8t-acts .btn { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; background: var(--v8-raised); color: var(--v8-t1); box-shadow: 0 0 0 1px var(--v8-hair); border: 0; }
#view .v8t-note { padding: 10px 20px 14px; border-top: 1px solid var(--v8-hair-2); font-size: 12px; color: var(--v8-t3); }
#view .v8t-note .link, #view .v8t-note button { color: var(--v8-t2); }

/* the three panels */
#view .v8t-pn { padding: 20px 20px 16px; }
#view .v8t-tri { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 14px; border-top: 1px solid var(--v8-hair-2); border-bottom: 1px solid var(--v8-hair-2); }
#view .v8t-tri > * { display: block; padding: 12px 0; min-width: 0; }
#view .v8t-tri > * + * { padding-left: 14px; border-left: 1px solid var(--v8-hair-2); }
#view .v8t-tri span { font-size: 12px; color: var(--v8-t2); white-space: nowrap; }
#view .v8t-tri b { display: block; margin-top: 5px; font-size: 19px; font-weight: 500; line-height: 1; color: var(--v8-t1); }
#view .v8t-tri b small { font-size: 13px; color: var(--v8-t3); font-weight: 400; }
#view .v8t-tri b.neg { color: var(--v8-neg); } #view .v8t-tri b.warn { color: var(--v8-warn); }
#view .v8t-tri a:hover span { color: var(--v8-t1); }
#view .v8t-li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--v8-hair-2); font-size: 14px; line-height: 1.4; color: var(--v8-t1); }
#view .v8t-tri + .v8t-li { border-top: 0; margin-top: 4px; }
#view .v8t-li .v8ti { width: 16px; height: 16px; margin-top: 1px; }
#view .v8t-li small { display: block; margin-top: 3px; font: 400 12px/1.4 var(--v8-mono); color: var(--v8-t3); }
#view .v8t-lw { font: 400 12px var(--v8-mono); color: var(--v8-t2); white-space: nowrap; }
#view a.v8t-li:hover > span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--v8-hair); }

/* readiness */
#view .v8t-meter { display: block; margin-top: 14px; }
#view .v8t-mh { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--v8-t2); }
#view .v8t-mh b { color: var(--v8-t1); font-weight: 500; }
#view .v8t-mh2 { margin-top: 16px; }
#view .v8t-track { display: flex; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--v8-raised); overflow: hidden; gap: 2px; }
#view .v8t-track i { display: block; height: 100%; }
#view .v8t-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--v8-t3); }
#view .v8t-key span { display: inline-flex; align-items: center; gap: 6px; }
#view .v8t-key i { width: 7px; height: 7px; border-radius: 50%; }
#view .v8t-key b { font-weight: 500; color: var(--v8-t2); }
#view .v8t-obs { display: block; margin-top: 10px; font-size: 12px; color: var(--v8-t2); }
#view .v8t-obs b { font-weight: 500; color: var(--v8-t1); }
#view .v8t-obs em { font-style: normal; color: var(--v8-neg); }
#view .v8t-obs:hover { color: var(--v8-t1); }
#view .v8t-fun { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; align-items: end; height: 96px; }
#view .v8t-fun a { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
#view .v8t-fun i { display: block; border-radius: 4px 4px 2px 2px; background: var(--c); }
#view .v8t-fun a.soft i { opacity: .8; }
#view .v8t-fun b { font: 500 13px var(--v8-sans); color: var(--v8-t1); text-align: center; margin-bottom: 4px; }
#view .v8t-fun span { margin-top: 6px; font: 400 12px var(--v8-mono); color: var(--v8-t3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view .v8t-fun a:hover span { color: var(--v8-t1); }

/* coming up */
#view .v8t-cals { margin-top: 6px; }
#view .v8t-cal { display: grid; grid-template-columns: 62px 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--v8-hair-2); background: none; font: inherit; font-size: 14px; text-align: left; color: var(--v8-t1); cursor: pointer; }
#view .v8t-cal:first-child { border-top: 0; }
#view .v8t-cd { font: 400 12px var(--v8-mono); color: var(--v8-t3); white-space: nowrap; }
#view .v8t-cal > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); justify-self: center; }
#view .v8t-calmore > i { background: none; }
#view .v8t-ct { min-width: 0; }
#view .v8t-ct small { font: 400 12px var(--v8-mono); color: var(--v8-t3); }
#view .v8t-cw { font: 400 12px var(--v8-mono); color: var(--v8-t3); white-space: nowrap; }
#view .v8t-cw.neg { color: var(--v8-neg); }
#view .v8t-calmore .v8t-ct { color: var(--v8-t2); }
#view a.v8t-cal:hover .v8t-ct { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--v8-hair); }

/* agents and today so far */
#view .v8t-ag { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--v8-hair-2); }
#view .v8t-h + .v8t-ag { border-top: 0; margin-top: 4px; }
#view .v8t-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--v8-raised); box-shadow: var(--v8-hi), 0 0 0 1px var(--v8-hair); font: 600 12px var(--v8-sans); }
#view .v8t-av.vera { color: var(--v8-s2); } #view .v8t-av.cato { color: var(--v8-s3); }
#view .v8t-ag b { display: block; font-weight: 500; font-size: 14px; }
#view .v8t-ag span > span { display: block; margin-top: 2px; font-size: 12px; color: var(--v8-t2); }
#view .v8t-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--v8-raised); box-shadow: var(--v8-hi), 0 0 0 1px var(--v8-hair); font: 400 12px/1 var(--v8-sans); color: var(--v8-t1) !important; white-space: nowrap; cursor: pointer; }
#view .v8t-btn:hover { background: color-mix(in srgb, var(--v8-raised) 70%, var(--v8-t1) 6%); }
#view .v8t-btn.on { background: var(--v8-t1); color: var(--v8-page) !important; font-weight: 500; box-shadow: none; }
#view .v8t-close { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--v8-raised); box-shadow: var(--v8-hi), 0 0 0 1px var(--v8-hair); font-size: 13px; line-height: 1.45; color: var(--v8-t2); }
#view .v8t-close b { color: var(--v8-t1); font-weight: 500; }
#view .v8t-close .v8t-btn { margin-left: auto; flex: none; }
#view .v8t-pn .v8t-tri + .v8t-empty { padding-top: 12px; }

/* Lately, kept below in the composition's tones */
#view .page.v8t-on > .v6-lately { margin-top: 28px; }
#view .page.v8t-on > .v6-lately .v7-sec-h h2 { font-size: 15px; font-weight: 500; color: var(--v8-t1); }

/* tablets and phones */
@media (max-width: 1180px) {
  #view .v8t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view .v8t-g2, #view .v8t-g3 { grid-template-columns: minmax(0, 1fr); }
  #view .v8t-tools { margin-left: 0; justify-content: flex-start; }
}
@media (max-width: 699px) {
  #view .v8t-title h1 { font-size: 28px; }
  #view .v8t-head { gap: 12px; }
  #view .v8t-tools { gap: 8px; }
  #view .v8t-act, #view .v8t-range { height: 36px; font-size: 12px; padding: 0 10px; }
  #view .v8t-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  #view .v8t-stat { height: 128px; padding: 18px 20px; }
  #view .v8t-stat .v8t-d { left: 20px; bottom: 16px; }
  #view .v8t-v { font-size: 28px; }
  #view .v8d { transform: scale(.82); transform-origin: top right; right: 8px; top: 8px; }
  #view .v8t-chart { padding: 18px 16px 14px; }
  #view .v8t-legend-r { margin-left: 0; }
  #view .v8t-pn { padding: 18px 16px 14px; }
  #view .v8t-needs > .v8t-h { padding: 18px 16px 10px; }
  #view .v8t-task { padding: 12px 16px; }
  #view .v8t-tri b { font-size: 19px; }
  #view .v8t-figs { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  #view .v8t-figs > *:nth-child(3) { padding-left: 0; border-left: 0; }
  #view .v8t-figs > *:nth-child(n+3) { border-top: 1px solid var(--v8-hair-2); }
  #view .v8t-cal { grid-template-columns: 52px 12px minmax(0, 1fr) auto; gap: 8px; }
  #view .v8t-close { flex-wrap: wrap; }
  #view .v8t-close .v8t-btn { margin-left: 0; }
}
