/* Version v1.0.0001
   CHANGELOG: Keep preview notices visible and highlight changed times. Add desktop schedule editing, printable references, flag art and a two-column mobile schedule. */
.staff-workspace { width:min(100% - 2rem, 96rem); }
.schedule-desk { display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.15fr); align-items:start; gap:1.25rem; }
.schedule-desk > * { min-width:0; }
.schedule-preview { position:sticky; top:5.1rem; max-height:calc(100vh - 6.4rem); overflow:auto; max-width:100%; }
[data-preview-loading] { position:sticky; top:0; z-index:2; padding:1rem; margin:0; background:#151922; border:1px solid var(--border); }
[data-preview-loading]:not([hidden])::before { content:""; display:inline-block; width:.9rem; height:.9rem; border:2px solid var(--muted); border-top-color:var(--accent); border-radius:50%; margin-right:.5rem; animation:schedule-spin 1s linear infinite; }
@keyframes schedule-spin { to { transform:rotate(360deg); } }
.full-handout { background:white; color:#141414; border:1px solid currentColor; font: .79rem Arial, Helvetica, sans-serif; margin:0; }
.full-handout h2 { text-align:center; font:normal clamp(1.2rem, 3vw, 2.05rem) Arial, Helvetica, sans-serif; margin:.55rem .3rem .15rem; }
.handout-version { text-align:center; margin:0 0 .55rem; font-weight:700; }
.handout-hold { background:#ffe0a1; text-align:center; padding:.5rem; margin:0; }
.handout-columns { display:grid; grid-template-columns: 52% 48%; border-top:1px solid; }
.lightspeed-paper .handout-columns { background:#fff url('/assets/lightspeed/watermark-print.png') center center / 76% auto no-repeat; }
.handout-timeline { width:100%; border-collapse:collapse; align-self:start; min-width:0; }
.handout-timeline td { border-bottom:1px solid #383838; padding:.22rem .27rem; }
.handout-timeline td:first-child { font-variant-numeric:tabular-nums; border-right:1px solid #333; white-space:nowrap; }
.handout-timeline td:nth-child(2) { font-weight:700; text-align:center; overflow-wrap:anywhere; }
.lightspeed-paper .handout-note td:nth-child(2), .lightspeed-paper .handout-fixed td:nth-child(2), .handout-hold td:nth-child(2) { background:#ffc329; }
.handout-details { border-left:1px solid; min-width:0; }
.handout-details section { border-bottom:1px solid; }
.handout-details h3 { text-align:center; font:700 1em Arial, Helvetica, sans-serif; margin:0; padding:.3rem; border-bottom:1px solid; }
.handout-details p, .handout-footer p { white-space:pre-wrap; padding:.35rem .45rem; margin:0; overflow-wrap:anywhere; }
.handout-details dl { margin:0; }
.handout-details dl div { display:grid; grid-template-columns:1fr 1.07fr; border-bottom:1px solid #777; }
.handout-details dt,.handout-details dd { margin:0; padding:.22rem .25rem; overflow-wrap:anywhere; }
.handout-details dt { border-right:1px solid #777; font-weight:700; }
.racing-flags { display:grid; gap:.35rem; padding:.42rem; margin:0; list-style:none; }
.racing-flags li { display:grid; grid-template-columns:25px 1fr; align-items:start; gap:.38rem; font-size:.95em; }
.flag-paint { display:block; width:24px; height:16px; border:1px solid #444; }
.flag-surface { background: repeating-linear-gradient(90deg,#e21c17 0 3px,#ffcc00 3px 6px); }
.flag-passing { background:linear-gradient(145deg,#0458a4 0 42%,#ffcc00 42% 58%,#0458a4 58% 100%); }
.flag-mechanical { background:radial-gradient(ellipse at center,#ff8b00 0 28%,#171717 31%); }
.flag-slow { background:#fff; }
.flag-green { background:#33a645; }
.flag-yellow { background:#ffd500; }
.flag-red { background:#d91d23; }
.flag-red-black { background:linear-gradient(90deg,#d91d23 0 46%,white 46% 54%,#171717 54%); }
.flag-black { background:#171717; }
.flag-checkered { background:conic-gradient(#151515 0 25%,white 25% 50%,#151515 50% 75%,white 75% 100%) 0/8px 8px; }
.handout-footer { border-top:1px solid; padding:.4rem; }
.handout-footer img { display:block; width:100%; height:auto; }
.mobile-schedule { width:min(100%,38rem); margin:auto; overflow-wrap:anywhere; }
.mobile-schedule h1 { font-size:clamp(1.25rem,6vw,2.3rem); }
.mobile-schedule .handout-version { text-align:left; color:#ffd877; }
.mobile-schedule table { width:100%; text-align:left; border-collapse:collapse; }
.mobile-schedule td,.mobile-schedule th { padding:.48rem .65rem; border-bottom:1px solid var(--border); }
.mobile-schedule td:first-child { white-space:nowrap; font-variant-numeric:tabular-nums; }
.mobile-schedule td+td { border-left:.24rem solid var(--group-color); }
.schedule-qr { width:128px; margin:.4rem 0; }
.schedule-qr img,.schedule-qr svg { width:100%; height:auto; display:block; }
.event-list .actions + .actions { margin-top:.55rem; }
.chat-history { display:grid; gap:.55rem; margin:.7rem 0; }
.chat-history article { border:1px solid var(--border); border-radius:.45rem; padding:.6rem .8rem; white-space:pre-wrap; overflow-wrap:anywhere; }
.model-bar [aria-pressed="true"] { border-color:var(--accent); color:#ffd877; }
.review-list td { max-width:25rem; overflow-wrap:anywhere; white-space:pre-wrap; }
@media (max-width:59rem) { .schedule-desk { grid-template-columns:1fr; } .schedule-preview { position:relative; top:auto; max-height:none; } }
@media (prefers-reduced-motion:reduce) { [data-preview-loading]::before { animation:none; } }

.section-art { max-width:100%; max-height:14rem; object-fit:contain; display:block; margin:.45rem auto; }


.builder-options { border-top:1px solid var(--border); margin-top:1rem; padding:.65rem 0; }
.builder-options > summary, .group-context > summary { cursor:pointer; color:var(--muted); }
.group-context { grid-column:1/-1; }
.preview-message { position:sticky; top:0; z-index:1; margin:0; padding:.65rem .85rem; background:var(--bg2); border:1px solid var(--border); }
.preview-changed td:first-child { background:#fff1bb; box-shadow:inset .22rem 0 #b67c00; }

.workbook-templates { border-bottom:1px solid var(--border); }
.workbook-template { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.8rem; border-top:1px solid var(--border); padding:.65rem 0; align-items:start; }
.workbook-template summary { padding:.45rem 0; cursor:pointer; }
.workbook-template .ledger { max-width:100%; }
.advanced-group { color:#ff7b7f; }
