/* TOF dashboard cards (beta). Tokens come from beta.css. */
.card-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px 0 4px; flex-wrap: wrap; }
.ch-main { min-width: 0; flex: 1 1 520px; }
.card-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 2px; line-height: 1.12; overflow-wrap: anywhere; }
.badge.big { font-size: 11px; padding: 5px 9px 5px 8px; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.facts span { font-size: 12px; padding: 3px 9px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }
.descr { font-size: 13px; color: var(--muted); max-width: 90ch; margin: 10px 0 0; }
.ch-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ids { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; font: 12px var(--mono); color: var(--muted); }
.ids b { color: var(--ink); font-weight: 500; }
.btn-watch { font: 600 12.5px var(--sans); border: 1px solid var(--ink); background: var(--panel); color: var(--ink); padding: 7px 14px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.btn-watch.on { background: var(--red); border-color: var(--red); color: #fff; }
.cap-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 6px; padding: 7px 12px; }
.clickable { cursor: pointer; }
.tile.clickable:hover { border-color: #c9c9c5; }
.tile .v.small { font-size: 20px; padding-top: 6px; }
.tile svg.spark { width: 100%; height: 34px; display: block; margin-top: 10px; }
.tile svg.stagebar { width: 100%; height: 14px; display: block; margin-top: 10px; }
.stage-sub { display: flex; gap: 4px 10px; flex-wrap: wrap; }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.red { color: var(--red); }
.wbody { position: relative; }
.wbody svg { display: block; }
svg text { font-family: var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.note { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 4px; z-index: 60; max-width: 320px; }
.tip .faint { color: #bdbdb8; }
.feed { position: relative; margin: 0; padding: 0 0 0 16px; list-style: none; }
.feed::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.feed li { position: relative; padding: 0 0 11px; font-size: 12.5px; }
.feed li::before { content: ""; position: absolute; left: -16px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--panel); }
.feed .when { font: 11.5px var(--mono); color: var(--faint); }
.feed .what b { font-weight: 600; }
.feed .fsub { font-size: 12px; color: var(--muted); }
.webw { position: relative; }
.webcard { position: absolute; width: 236px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; box-shadow: 0 10px 28px rgba(0,0,0,.12); pointer-events: none; z-index: 5; }
.webcard .wc-role { display: flex; align-items: center; gap: 6px; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.webcard .wc-role i { width: 9px; height: 9px; border-radius: 50%; }
.webcard .wc-name { font-size: 15px; font-weight: 600; margin-top: 4px; line-height: 1.25; }
.webcard .wc-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.webcard .wc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.webcard .wc-stats b { display: block; font: 500 13.5px var(--mono); }
.webcard .wc-stats span { font-size: 11px; color: var(--faint); }
.webcard .wc-go { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--red); }
.risk { margin-top: 10px; border-top: 1px solid var(--line2); }
.rr { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--ink); }
.rr:hover { background: var(--rowhi); }
.rr i { width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: translateY(1px); }
.rr .d { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.rr .k { display: block; color: var(--muted); font-size: 11.5px; }
.speed-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.speed-head div { min-width: 0; }
.speed-head b { display: block; font: 500 22px/1.1 var(--mono); letter-spacing: -.02em; }
.speed-head span { font-size: 11.5px; color: var(--muted); }
.nowrow { display: block; padding: 9px 0; border-bottom: 1px solid var(--line2); color: var(--ink); }
.nowrow:hover { background: var(--rowhi); }
.nowrow .nm { font-weight: 600; font-size: 13.5px; }
.nowrow .nm .muted, .nowrow .nm .faint { font-weight: 400; font-size: 12px; }
.nowrow .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; align-items: center; }
.wts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.wts span { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--line); color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.person { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; color: var(--ink); display: block; }
a.person:hover { border-color: var(--ink); }
.person .role { font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.person .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.person .pn { font-weight: 600; font-size: 14.5px; margin-top: 4px; overflow-wrap: anywhere; }
.person .psub { font-size: 12px; color: var(--muted); }
.person .pgo { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 6px; }
#tableW .wh { align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.filters select, .filters input { font: 13px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; height: 31px; }
.filters input[type="search"] { width: 220px; }
.filters input[type="date"] { width: 136px; }
.filters .set { border-color: var(--ink); background: var(--canvas); }
.filters .count { margin-left: auto; font: 12px var(--mono); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: 12.5px; padding: 4px 6px 4px 10px; border-radius: 14px; }
.chip button { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 18px; padding: 0; }
.tw { max-height: 620px; overflow: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th { position: sticky; top: 0; background: var(--panel); text-align: left; font: 600 11px var(--sans); color: var(--muted); padding: 8px 10px 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
thead th .ar { color: var(--red); }
tbody td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
tbody tr:hover td { background: var(--rowhi); }
td.r, th.r { text-align: right; }
td.mono { font-family: var(--mono); font-size: 12px; }
.empty-row { padding: 24px 0 !important; color: var(--muted); }
.lk.mono { font-size: 12px; }
.tool-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.tool-form input[type="search"], .tool-form select { font: 14px var(--sans); height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: var(--panel); color: var(--ink); }
.tool-form input[type="search"] { width: min(460px, 100%); }
.tool-form button { font: 600 13px var(--sans); height: 38px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.bar-in { display: inline-block; height: 8px; border-radius: 2px; vertical-align: middle; }
@media (max-width: 860px) { .ch-side { align-items: flex-start; } .ids { justify-content: flex-start; } .speed-head { grid-template-columns: 1fr 1fr; } }

/* Today page */
.todaybar { display: flex; justify-content: flex-end; padding-top: 14px; }
.pillset { display: flex; gap: 4px; flex-wrap: wrap; }
.pill { font-size: 12.5px; padding: 4px 11px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.todayhead { padding: 6px 0 4px; }
.todayhead .eyebrow { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
h1.headline { font-size: 30px; line-height: 1.22; font-weight: 500; letter-spacing: -.02em; margin: 8px 0 14px; max-width: 30em; text-wrap: balance; }
h1.headline b { font-weight: 700; }
h1.headline .lk { font-weight: 700; }
.briefs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; max-width: 1050px; }
.briefs li { font-size: 14px; line-height: 1.5; color: var(--muted); padding-left: 14px; position: relative; }
.briefs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.briefs b { color: var(--ink); }
.briefs .lk { color: var(--ink); font-weight: 600; }
.redt, .redt b { color: var(--red); }
.up { color: var(--green); }
.down { color: var(--red); }
.tile svg.spark { height: 36px; }
@media (max-width: 860px) { .briefs { grid-template-columns: 1fr; } h1.headline { font-size: 24px; } .todaybar { justify-content: flex-start; } }
