/* Approved site-first Today layout. Existing brand, navigation and workflows stay in place. */
#today { max-width: 1060px; }
#today .appbar-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; }
#today .hello { padding: 18px 18px 4px; }
#today .hello .g { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
#today #netbar { margin: 8px 16px 12px; box-shadow: none; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
#today #netbar.offline { background: var(--st-stuck-soft); color: var(--st-stuck); border-color: var(--st-stuck); }
#today #syncNow { background: var(--surface); color: var(--gold-ink); border-color: var(--line); }
.today-layout { display: grid; gap: 14px; padding: 0 16px; }
.today-main, .today-secondary { min-width: 0; }
#today #nextStep { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 0; min-height: 0; background: none; border: none; box-shadow: none; color: var(--text); cursor: default; }
#today #nextStep:active { transform: none; }
.today-site, .today-next-work { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.today-site { border-top: 3px solid var(--brand-700); }
.today-eyebrow { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.today-site h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.035em; margin-top: 6px; overflow-wrap: anywhere; }
.today-address { margin-top: 7px; font-size: 17px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.today-booking { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 5px; }
.today-site-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.today-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.3; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; }
.today-button.primary { background: var(--gold-grad); border-color: var(--brand-700); color: var(--surface); }
.today-button.dark { background: var(--brand-600); border-color: var(--brand-600); color: var(--surface); width: 100%; }
.today-no-address { align-self: center; font-size: 14px; color: var(--muted); }
.today-site-details { display: grid; gap: 4px; margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.today-site-details p:first-child { font-weight: 750; color: var(--text); }
.today-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.today-time > div { min-width: 0; }
.today-time b { display: block; font-size: 13px; line-height: 1.4; font-weight: 800; }
.today-time span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.today-time.running b { color: var(--ok); }
.today-time .today-button { flex-shrink: 0; max-width: 45%; }
.today-next-work h3 { font-size: 21px; line-height: 1.25; margin-top: 6px; font-weight: 800; overflow-wrap: anywhere; }
.today-next-work > p:not(.today-eyebrow) { font-size: 14px; line-height: 1.4; margin-top: 6px; color: var(--muted); }
.today-next-work .today-button { margin-top: 12px; }
.today-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.today-shortcuts a, .today-shortcuts button { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 9px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
#today .summary, #today .list, #today .dels { padding: 0; margin: 0 0 14px; }
#today .summary:empty, #today .dels:empty { display: none; }
#today .list .job { margin-top: 10px; }
#today .summary .yd { margin: 0; }
#today .has-site ~ .today-secondary .yd-mates,
#today .has-site ~ .today-secondary .yd-scope { display: none; }
#today .today-other { padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 16px; }
#today .today-other > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 750; font-size: 14px; list-style: none; }
#today .today-other > summary::-webkit-details-marker { display: none; }
#today .today-other > summary::after { content: "+"; font-size: 22px; }
#today .today-other[open] > summary::after { content: "−"; }
#todayUtilities .ux-tools { padding: 0 0 14px; }
#today #instrBanner .instr { margin: 0 0 12px; }
#today #instrBanner .loadwarn { margin-bottom: 10px; }
.today-time-warning { margin-bottom: 12px; padding: 12px; background: var(--st-stuck-soft); color: var(--st-stuck); border: 1px solid var(--st-stuck); border-radius: 8px; font-size: 14px; }
.today-complete { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); padding: 16px; border-radius: 12px; }
@media (min-width: 700px) { .today-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 18px; } }

/* Field loop R1 (OST-02): a list saved on an earlier day is greyed and labelled, never passed off as today's. */
#jobs.stale-list .job, #nextStep.stale-list { opacity: .62; }
#jobs .stale-note { margin: 0 0 10px; }
