/* The day sheet (public/js/daysheet.js) — three looks on one data model: A Clean · B Run sheet · C Cards.
   Used on screen (inside .paper, which stays light in dark mode) and on paper (print.css loads this too).
   The font is the app's own (SF on Apple): system-ui is there for the phone PDF, whose canvas skips -apple-system (v1.80.1).
   Gold is the only colour; .ds3-bw turns it into grey rules so a black & white print reads the same. */
.ds3 { --ink: #1b1b1b; --mut: #777; --rule: #e6e2da; --rule2: #f0ede6; --gold: #9a7a2c; --gold2: #b8974a; --chip: #f3ecdb; --chipt: #7d6220; --soft: #faf6ea; --card: #fff;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); font-size: 12.5px; line-height: 1.4; position: relative; text-align: left; }
.ds3-bw { --gold: #444; --gold2: #666; --chip: #eee; --chipt: #333; --soft: #f3f3f3; --rule: #ddd; --rule2: #e8e8e8; }
.ds3 *, .ds3 *::before, .ds3 *::after { box-sizing: border-box; }
.ds3 h1, .ds3 h2, .ds3 h3, .ds3 p { margin: 0; }
.ds3 p { margin: 2px 0; }
.ds3 .muted { color: var(--mut); }
.ds3 .pre { white-space: pre-wrap; }
.ds3 .small { font-size: 11px; }
.ds3 small { font-size: 11px; }
.ds3 .ds-hr { border: 0; border-top: 1px solid var(--rule2); margin: 8px 0; }
.ds3 .ds-grp { display: inline-block; font-size: 9.5px; font-weight: 700; color: var(--chipt); background: var(--chip); border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px; letter-spacing: .02em; }
.ds3 .ds-note { display: block; color: var(--mut); font-size: 11px; font-weight: 400; }
.ds3 .ds-note b, .ds3 .ds-note span { font-weight: 400; }
.ds3 .ds-pl { margin: 2px 0; }
.ds3 .ds-pin { font-weight: 600; }
.ds3 .ds-tmrw { margin-top: 8px; }
.ds3 .ds-tel { color: inherit; text-decoration: none; }
.ds3 .ds-tel:hover { text-decoration: underline; }
.ds3 .ds-ph { color: var(--mut); }
.ds3 .ds-empty { padding: 6px 0; }
/* grab-and-go: Copy · Maps · Share — screen only (print renders without them) */
.ds3 .ds-act { font: 600 10.5px/1 inherit; font-family: inherit; color: var(--gold); background: none; border: 0; padding: 2px 4px; margin-left: 6px; cursor: pointer; border-radius: 4px; text-decoration: none; vertical-align: 1px; white-space: nowrap; }
.ds3 .ds-act:hover { background: var(--chip); }
.ds3 h3 .ds-act { float: right; margin-left: auto; text-transform: none; letter-spacing: 0; }
/* changed since the last print: a gold rule and a whisper of background */
.ds3 .ds-chg { box-shadow: inset 3px 0 0 var(--gold2); background: var(--soft); border-radius: 4px; }
.ds3 .ds-row.ds-chg, .ds3 .ds-it.ds-chg, .ds3 .ds-evr.ds-chg { margin-left: -8px; padding-left: 8px; }
.ds3 p.ds-chg, .ds3 .ds-pl.ds-chg { padding-left: 6px; margin-left: -6px; }
/* the week and the footer, shared by all three */
.ds3 .ds-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
.ds3 .ds-week > div { border-top: 3px solid var(--rule); padding-top: 5px; font-size: 10.5px; color: #666; min-width: 0; overflow-wrap: anywhere; }
.ds3 .ds-week > div.on { border-color: var(--gold2); color: var(--ink); }
.ds3 .ds-week > div > b { display: block; font-size: 11px; color: var(--ink); }
.ds3 .ds-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 12px; font-size: 10.5px; color: #888; }
.ds3 .ds-qr { display: flex; align-items: center; gap: 10px; flex: none; }
.ds3 .ds-qr svg { width: 54px; height: 54px; border: 1px solid #ddd; }
/* key times strip (A) */
.ds3 .ds-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); margin: 18px 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.ds3 .ds-keys > div { padding: 10px 12px; border-right: 1px solid var(--rule); min-width: 0; }
.ds3 .ds-keys > div:last-child { border-right: 0; }
.ds3 .ds-keys span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #888; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds3 .ds-keys b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds3 .ds-keys .hl { background: var(--soft); }
/* cards (A and C) */
.ds3 .ds-card { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--card); break-inside: avoid; page-break-inside: avoid; }
.ds3 .ds-card h3, .ds3 .ds-sched h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 8px; font-weight: 700; border: 0; padding: 0; text-align: left; }
.ds3 .ds-card h3 i { font-style: normal; color: var(--gold); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 8px; }
.ds3 .ds-adv-wrap { margin-top: 6px; } .ds3 .ds-adv-wrap h4 { display: none; } .ds3 .ds-adv-wrap ul { margin: 0; padding-left: 16px; }
.ds3 .ds-card-nearby .ds-nb { margin: 4px 0 8px; } .ds3 .ds-card-nearby .ds-nbh { display: block; margin-bottom: 2px; font-size: 11px; } .ds3 .ds-card-nearby .ds-nbl { margin: 0 0 3px; font-size: 11.5px; } .ds3 .ds-card-nearby section { display: contents; }
.ds3 .ds-event { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ds3 .ds-event h3 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ================================================================ A · Clean */
.ds3-A .ds-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.ds3-A .ds-date { font-size: 13px; font-weight: 600; color: #666; letter-spacing: .02em; text-transform: uppercase; }
.ds3-A h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; line-height: 1.1; }
.ds3-A .ds-meta { font-size: 12px; color: #666; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds3-A .ds-pill { display: inline-block; background: var(--chip); color: var(--chipt); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; }
.ds3-A .ds-brand { text-align: right; font-size: 11px; color: #888; flex: none; line-height: 1.5; }
.ds3-A .ds-brand b { display: block; font-size: 14px; color: var(--ink); }
.ds3-A .ds-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.ds3-A .ds-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule2); }
.ds3-A .ds-row > div:first-child { min-width: 0; }
.ds3-A .ds-row .t { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds3-A .ds-row .t small { color: var(--mut); font-weight: 400; }
.ds3-A .ds-row.show { background: var(--soft); margin: 0 -8px; padding: 6px 8px; border-radius: 6px; border: 0; }

/* ================================================================ B · Run sheet */
.ds3-B .ds-band { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; }
.ds3-B h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ds3-B .ds-sub { font-size: 13px; color: #666; margin-top: 6px; }
.ds3-B .ds-day { text-align: right; flex: none; }
.ds3-B .ds-day b { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ds3-B .ds-day span { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: block; }
.ds3-B .ds-strip { display: flex; border-top: 2px solid var(--ink); border-bottom: 1px solid #ddd; font-size: 11.5px; }
.ds3-B .ds-strip > div { flex: 1; padding: 8px 10px; border-right: 1px solid #eee; min-width: 0; overflow-wrap: anywhere; }
.ds3-B .ds-strip > div:last-child { border-right: 0; }
.ds3-B .ds-strip span { display: block; color: #888; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.ds3-B .ds-body { display: grid; grid-template-columns: 1fr 230px; gap: 30px; padding-top: 22px; align-items: start; }
.ds3-B .ds-sched h3:empty { display: none; }
.ds3-B .ds-evr { display: grid; grid-template-columns: 96px 1fr; padding: 7px 0; border-bottom: 1px dotted #ccc; }
.ds3-B .ds-evr .t { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.ds3-B .ds-evr .t small { display: block; font-weight: 500; color: #999; font-size: 10.5px; }
.ds3-B .ds-evr b { font-weight: 600; }
.ds3-B .ds-evr .ds-note { color: #888; }
.ds3-B .ds-evr.big { border-bottom: 2px solid var(--ink); }
.ds3-B .ds-evr.big > div > b { font-size: 15px; }
.ds3-B .ds-grp { background: none; border: 1px solid #bbb; color: #555; border-radius: 3px; }
.ds3-B .ds-aside h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin: 16px 0 6px; }
.ds3-B .ds-aside .ds-card { border: 0; padding: 0; margin: 0; border-radius: 0; background: none; }
.ds3-B .ds-aside .ds-card:first-child h3 { margin-top: 0; }
.ds3-B .ds-aside p { margin: 2px 0; font-size: 11.5px; }
.ds3-B .ds-aside h3 i { color: #888; }
.ds3-B .ds-week > div.on { border-color: var(--ink); }
.ds3-B .ds-keys { display: none; }

/* ================================================================ C · Cards */
.ds3-C { background: #faf9f7; }
.ds3-C .ds-hd { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.ds3-C .ds-dbox { width: 78px; height: 84px; flex: none; border-radius: 14px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ds3-C .ds-dbox span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #d8c08a; font-weight: 700; }
.ds3-C.ds3-bw .ds-dbox span { color: #ccc; }
.ds3-C .ds-dbox b { font-size: 34px; line-height: 1; font-weight: 800; }
.ds3-C h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ds3-C .ds-chips { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ds3-C .ds-chip { font-size: 11px; background: #fff; border: 1px solid #e3dfd6; border-radius: 20px; padding: 3px 9px; color: #555; white-space: nowrap; }
.ds3-C .ds-chip.g { background: var(--gold2); color: #fff; border-color: var(--gold2); font-weight: 700; }
.ds3-C .ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ds3-C .ds-card { border: 1px solid #ebe7df; border-radius: 14px; padding: 14px 16px; margin: 0; }
.ds3-C .ds-card h3 { color: #999; letter-spacing: .07em; font-size: 11px; display: flex; align-items: center; }
.ds3-C .ds-card h3 i { margin-left: auto; }
.ds3-C .ds-card h3 .ds-act { float: none; }
.ds3-C .span { grid-column: 1 / -1; }
.ds3-C .ds-tl { position: relative; padding-left: 16px; }
.ds3-C .ds-card-sched .ds-tl { columns: 2; column-gap: 36px; }
.ds3-C .ds-tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: #ece7dc; }
.ds3-C .ds-it { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; break-inside: avoid; }
.ds3-C .ds-it > div:first-child { min-width: 0; }
.ds3-C .ds-it::before { content: ""; position: absolute; left: -15px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #d8cfb9; }
.ds3-C .ds-it.now::before { background: var(--gold2); box-shadow: 0 0 0 4px var(--chip); }
.ds3-C .ds-it.now > div > b, .ds3-C .ds-it.show > div > b { color: var(--chipt); }
.ds3-C .ds-it .t { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ds3-C .ds-it .ds-note { color: #999; }
.ds3-C .ds-event { break-inside: avoid; }
.ds3-C .ds-foot { border-top: 0; }
.ds3-C .ds-week { margin-top: 14px; }

/* ================================================================ phones: one column, nothing side by side */
@media (max-width: 720px) {
  .ds3 { font-size: 13px; }
  .ds3-A .ds-top { flex-direction: column; } .ds3-A .ds-brand { text-align: left; }
  .ds3-A h1 { font-size: 24px; }
  .ds3 .ds-keys { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } .ds3 .ds-keys > div { border-bottom: 1px solid var(--rule); } .ds3 .ds-keys > div:nth-child(n) { border-right: 1px solid var(--rule); }
  .ds3-A .ds-cols, .ds3-B .ds-body, .ds3-C .ds-grid { grid-template-columns: 1fr; }
  .ds3-B h1 { font-size: 26px; } .ds3-B .ds-day b { font-size: 36px; } .ds3-B .ds-band { align-items: flex-start; }
  .ds3-B .ds-strip { flex-wrap: wrap; } .ds3-B .ds-strip > div { flex: 1 1 45%; border-bottom: 1px solid #eee; }
  .ds3-B .ds-evr { grid-template-columns: 76px 1fr; }
  .ds3-C .ds-card-sched .ds-tl { columns: 1; }
  .ds3-C .ds-hd { align-items: flex-start; } .ds3-C .ds-dbox { width: 64px; height: 70px; } .ds3-C .ds-dbox b { font-size: 28px; }
  .ds3 .ds-week { grid-template-columns: 1fr; gap: 2px; } .ds3 .ds-week > div { border-top: 0; border-left: 3px solid var(--rule); padding: 2px 8px; display: flex; gap: 8px; } .ds3 .ds-week > div > b { min-width: 56px; } .ds3 .ds-week > div.none { display: none; }
  .ds3 .ds-foot { flex-direction: column; align-items: flex-start; }
}
/* ================================================================ paper */
.ds3-print .ds-act { display: none !important; }
@media print {
  .ds3 .ds-act { display: none !important; }
  .ds3-C { background: transparent; }
  .ds3 .ds-card, .ds3 .ds-row, .ds3 .ds-evr, .ds3 .ds-it, .ds3 .ds-keys, .ds3 .ds-week, .ds3 .ds-foot { break-inside: avoid; page-break-inside: avoid; }
  .ds3 .ds-sched h3 { break-after: avoid; }
}
/* passengers on a travel line (v1.57.2) */
.ds3 .ds-pax { display: block; margin-top: 1px; color: var(--ink, inherit); font-size: 11px; line-height: 1.35; }
.ds3 .ds-pax span[data-bit="pax"] { font-weight: 500; }
.ds3 .ds-paxl { text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 600; color: var(--mut); margin-right: 3px; }
.ds3 .ds-evr .ds-pax, .ds3 .ds-it .ds-pax { color: var(--ink); }
.ds3 p.ds-pax { margin-bottom: 8px; }

/* ================================================================ the schedule in sections, like the Day screen (v1.80)
   Each part of the day is a block with a heading and a colour edge (teal build · indigo soundcheck · gold show · grey after ·
   orange no time); key moments stand out; travel lines read title · who · from → to. B&W keeps the edges as greys. */
.ds3 { --ph-build: #2a9fb4; --ph-sound: #5856d6; --ph-show: var(--gold2); --ph-after: #9a9a9a; --ph-tbc: #e08a00; }
.ds3-bw { --ph-build: #555; --ph-sound: #888; --ph-show: #222; --ph-after: #bbb; --ph-tbc: #999; }
.ds3 .ph-build, .ds3 .ph-am { --ph: var(--ph-build); } .ds3 .ph-sound, .ds3 .ph-pm { --ph: var(--ph-sound); } .ds3 .ph-show, .ds3 .ph-eve { --ph: var(--ph-show); }
.ds3 .ph-after, .ds3 .ph-late { --ph: var(--ph-after); } .ds3 .ph-tbc { --ph: var(--ph-tbc); }
.ds3 .ds-sec { break-inside: avoid; page-break-inside: avoid; }
.ds3 .ds-sec + .ds-sec { margin-top: 10px; }
.ds3 .ds-phh { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin: 0 0 3px; }
.ds3 .ds-phh::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--ph); }
.ds3 .ds-phb { border-left: 3px solid var(--ph, var(--rule)); padding-left: 10px; }
.ds3 .ds-phs.one .ds-phb { border-left-color: var(--rule); }
/* A · Clean: time on the left like the Day screen */
.ds3-A .ds-phb .ds-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; justify-content: stretch; }
.ds3-A .ds-phb .ds-row > .t { order: -1; }
.ds3-A .ds-phb .ds-row.show { margin: 0 0 0 -10px; padding: 6px 8px 6px 10px; border-radius: 0 6px 6px 0; }
.ds3-A .ds-phb .ds-row:last-child { border-bottom: 0; }
.ds3 .ds-row.km .t, .ds3 .ds-row.show .t { color: var(--chipt); } .ds3 .ds-row.km > div:first-child { font-weight: 700; }
.ds3-C .ds-card-sched .ds-phs { columns: 2; column-gap: 36px; } .ds3-C .ds-card-sched .ds-phs .ds-tl { columns: 1; }
.ds3-C .ds-phb { padding-left: 4px; } .ds3-C .ds-phb .ds-tl::before { display: none; }
@media (max-width: 720px) { .ds3-C .ds-card-sched .ds-phs { columns: 1; } }
/* travel lines */
.ds3 .ds-lt { font-weight: 700; }
.ds3 .ds-route { display: block; font-size: 11.5px; color: var(--ink); opacity: .85; }
.ds3 .ds-row.leg, .ds3 .ds-evr.leg { background: #f6f6f8; }
.ds3-A .ds-phb .ds-row.leg { margin-left: -10px; padding-left: 10px; }
.ds3-bw .ds-row.leg, .ds3-bw .ds-evr.leg { background: #f4f4f4; }
/* who it's for: B · C · AP · TEAM · names — group colours to match the Day screen (greys in B&W) */
.ds3 .ds-grp.ds-g-band { background: rgba(88,86,214,.14); color: #4744b8; } .ds3 .ds-grp.ds-g-crew { background: rgba(52,199,89,.15); color: #1f8a3c; }
.ds3 .ds-grp.ds-g-artist { background: var(--chip); color: var(--chipt); } .ds3 .ds-grp.ds-g-team { background: rgba(255,59,48,.12); color: #c0261c; }
.ds3 .ds-grp.ds-g-other { background: rgba(48,176,199,.15); color: #1d7f91; }
.ds3 .ds-grp.ds-g-p { background: #eee; color: #333; font-weight: 600; }
.ds3 .ds-grp + .ds-grp { margin-left: 3px; }
.ds3-bw .ds-grp[class*="ds-g-"] { background: #eee; color: #222; }
/* the travel card in the Day screen's look */
.ds3 .ds-tvs { border-left: 3px solid var(--ph-sound); padding-left: 10px; }
.ds3-bw .ds-tvs { border-left-color: #888; }
.ds3 .ds-tv { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule2); break-inside: avoid; }
.ds3 .ds-tv:last-child { border-bottom: 0; }
.ds3 .ds-tv .t { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; } .ds3 .ds-tv .t small { display: block; font-weight: 500; color: var(--mut); }
.ds3 .ds-tv .ds-note { display: block; }

/* v1.82.3: start – end on one line in every look; the time column fits the longest time on the sheet (--tw, set per schedule) */
.ds3-A .ds-phb .ds-row, .ds3 .ds-tv { grid-template-columns: calc(var(--tw, 5ch) * 1.06 + 6px) minmax(0, 1fr); }
.ds3-B .ds-phb .ds-evr { grid-template-columns: calc(var(--tw, 5ch) * 1.1 + 12px) minmax(0, 1fr); gap: 8px; }
.ds3-A .ds-phb .ds-row > .t, .ds3-B .ds-evr .t, .ds3 .ds-tv .t { white-space: nowrap; }
.ds3-B .ds-evr .t small, .ds3-A .ds-row .t small, .ds3 .ds-tv .t small { display: inline; font-size: inherit; color: inherit; font-weight: inherit; }
