/* Layout: a phone app shell. Pine header band, one scrolling screen (Home, Dates, or a single date), fixed bottom tab bar with an Add button. Desktop shows the same column centered. */
/* Theme: Chosen Road's desert-morning look. Pale sky and sand, saddle-brown lettering, sunset orange and salmon, sage and truck mint. */
:root {
  
  
  --bg: #f5ecdb;
  --surface: #fffaf1;
  --sunk: #f2e6d1;
  --ink: #3b2316;
  --muted: #7f6553;
  --line: #e7d7bd;
  --pine: #85461a;
  --pine-ink: #fff8ec;
  --pine-soft: #f4e3cc;
  --holly: #c2563b;
  --holly-soft: #f9ddd2;
  --done: #5c8758;
  --sage-soft: #e3edda;
  --amber: #9a5b16;
  --amber-soft: #f8e6bf;
  --orange: #e39a45;
  --salmon: #e48c74;
  --sky1: #dce5cb;
  --sky2: #f3e2c2;
  --shadow: 0 1px 2px rgba(80,45,20,.06), 0 8px 22px rgba(80,45,20,.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --tabh: 64px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1b1410; --surface: #261c16; --sunk: #201813; --ink: #f3e6d4; --muted: #b59c86; --line: #3a2c22;
  --pine: #e9a35a; --pine-ink: #2a1a10; --pine-soft: #3a2a1d; --holly: #ee8f78; --holly-soft: #3d231c;
  --done: #9cc89a; --sage-soft: #24301f; --amber: #f0c27a; --amber-soft: #3a2d18; --orange: #e9a35a; --salmon: #ee8f78;
  --sky1: #2b2a24; --sky2: #2a1f17; --shadow: none; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #1b1410; --surface: #261c16; --sunk: #201813; --ink: #f3e6d4; --muted: #b59c86; --line: #3a2c22;
  --pine: #e9a35a; --pine-ink: #2a1a10; --pine-soft: #3a2a1d; --holly: #ee8f78; --holly-soft: #3d231c;
  --done: #9cc89a; --sage-soft: #24301f; --amber: #f0c27a; --amber-soft: #3a2d18; --orange: #e9a35a; --salmon: #ee8f78;
  --sky1: #2b2a24; --sky2: #2a1f17; --shadow: none; color-scheme: dark }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.45; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--sky1); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom, 0px) + 24px); }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header band */
.band { background: linear-gradient(180deg, var(--sky1), var(--sky2)); color: var(--ink); padding-block: 18px 20px; }
.band.hero { padding-block: 20px 0; }
.scene { display: block; width: calc(100% + 32px); max-width: none; margin: 14px -16px 0; aspect-ratio: 860 / 383; background: var(--scene) center / cover no-repeat; }
.brand { display: block; width: min(300px, 78%); aspect-ratio: 655 / 205; background: var(--pine); -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; margin: 0; }
.brand.sm { width: 128px; margin-bottom: 4px; }
.subhead { font-family: var(--font-display); font-weight: 700; font-variation-settings: 'SOFT' 100, 'opsz' 48; color: var(--done); font-size: 20px; margin-top: 8px; }
.band .eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--pine); }
.band h1 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; color: var(--pine); font-size: 34px; line-height: 1.05; margin: 4px 0 0; }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: -26px; position: relative; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; box-shadow: var(--shadow); font-size: 12px; color: var(--muted); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 26px; line-height: 1.1; color: var(--pine); font-variant-numeric: tabular-nums; }
.stat:nth-child(2) b { color: var(--salmon); }
.stat:nth-child(3) b { color: var(--done); }
.band .stats { margin-top: 8px; font-size: 14px; color: var(--muted); }
.bar-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--sky1); color: var(--pine); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; min-height: 52px; }
.bar-top .t { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.iconbtn:hover { background: rgba(133,70,26,.1); }
.textbtn { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.textbtn:hover { background: rgba(133,70,26,.1); }
.textbtn.on { background: var(--pine); color: var(--pine-ink); }
svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.screen { display: flex; flex-direction: column; gap: 22px; padding-block: 18px; }
h2.sec { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
h2.sec button { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--pine); font-weight: 600; }

/* Cards */
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.next { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.next .when { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--salmon); }
.next h3 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--pine); font-size: 28px; line-height: 1.15; margin: 2px 0 0; text-wrap: balance; }
.next .city { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--sunk); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.fact .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fact .v { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 600; }
.btn.primary { background: var(--pine); color: var(--pine-ink); }
.btn.ghost { background: var(--sunk); color: var(--ink); }
.btn.danger { background: var(--holly); color: #fff; }
.btn.block { width: 100%; }
.row2 { display: flex; gap: 8px; }
.row2 > * { flex: 1; }

.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--done); border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) { .track i { transition: width .3s ease; } }

/* Email chip */
.mail { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px; white-space: nowrap; }
.mail .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mail.no { color: var(--holly); background: var(--holly-soft); }
.mail.yes { color: var(--done); background: var(--sage-soft); }
.hold { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; color: var(--amber); background: var(--amber-soft); border: 1px dashed var(--amber); letter-spacing: .04em; text-transform: uppercase; }
.wait { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; color: #8a5a12; background: var(--amber-soft); border: 1.5px solid var(--amber); cursor: default; }
button.wait { cursor: pointer; }
.wait .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.wait.off { color: var(--muted); background: transparent; border: 1.5px dashed var(--line); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wait:not(.off) { color: var(--amber); } }
:root[data-theme="dark"] .wait:not(.off) { color: var(--amber); }
.need { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; color: var(--holly); background: transparent; border: 1.5px solid var(--holly); }
.filterline { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.drow.held { border-left-color: var(--amber); border-left-style: dashed; background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--sunk) 12px 24px); }
.holdnote { background: var(--amber-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 1px dashed var(--amber); }

/* Alert tile */
.alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; width: 100%; }
.alert .num { font-family: var(--font-display); font-size: 32px; font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--holly); min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.alert .num.ok { color: var(--done); }
.alert .txt { flex: 1; min-width: 0; }
.alert .txt b { display: block; }
.alert .txt span { font-size: 13px; color: var(--muted); }

/* Date rows */
.list { display: flex; flex-direction: column; gap: 10px; }
.drow { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; width: 100%; text-align: left; border-left: 5px solid var(--holly); }
.drow.sent { border-left-color: var(--done); }
.drow .tile { text-align: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.drow .tile .m { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.drow .tile .d { font-family: var(--font-display); font-size: 28px; font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--pine); }
.drow .tile .w { font-size: 11px; color: var(--muted); }
.drow .mid { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.drow .v { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.drow .c { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.drow .chev { color: var(--muted); }
.drow.past { opacity: .6; }
.month { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; color: var(--pine); font-size: 24px; margin: 6px 0 4px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { padding: 9px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Detail */
.dhead { background: linear-gradient(180deg, var(--sky1), var(--sky2)); color: var(--ink); padding-block: 4px 20px; display: flex; flex-direction: column; gap: 8px; }
.dhead .when { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--salmon); }
.dhead h2 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; color: var(--pine); font-size: 32px; line-height: 1.12; margin: 0; text-wrap: balance; }
.dhead .city { color: var(--muted); }
.dhead .track { background: rgba(133,70,26,.15); }
.dhead .mailbtn { align-self: flex-start; }


.group { overflow: hidden; }
.group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary .cnt { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.group > summary .cnt.all { color: var(--done); }
.group > summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.group[open] > summary svg { transform: rotate(90deg); }
.group.special > summary { color: var(--salmon); }
.tasks { border-top: 1px solid var(--line); }
.task { display: flex; align-items: flex-start; gap: 4px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.tmain { flex: 1; min-width: 0; display: flex; gap: 12px; padding: 12px 6px 12px 16px; text-align: left; align-items: flex-start; }
.box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: -1px; }
.box svg { width: 16px; height: 16px; stroke-width: 3; opacity: 0; }
.task.on .box { background: var(--done); border-color: var(--done); color: var(--surface); }
.task.on .box svg { opacity: 1; }
.task.on .lbl { color: var(--muted); }
.lbl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.note { font-size: 14px; background: var(--amber-soft); color: var(--ink); border-radius: 8px; padding: 6px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task.on .note { color: var(--ink); }
.tact { display: flex; padding: 6px 6px 0 0; }
.tact .iconbtn { color: var(--muted); width: 40px; height: 40px; }
.tact .iconbtn:hover { background: var(--sunk); }
.tact .iconbtn.has { color: var(--amber); }
.tact .iconbtn.rm:hover { color: var(--holly); }
.tact svg { width: 19px; height: 19px; }
.noteedit { padding: 0 16px 14px 54px; display: flex; flex-direction: column; gap: 8px; }
.noteedit textarea { width: 100%; min-height: 70px; border: 1px solid var(--line); background: var(--sunk); border-radius: 10px; padding: 10px; resize: vertical; }
.noteedit .row2 .btn { min-height: 40px; }
.addtask { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.addtask input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--sunk); border-radius: 10px; padding: 10px 12px; }
.addtask .btn { min-height: 44px; }
.linkbtn { color: var(--pine); font-weight: 600; font-size: 14px; padding: 4px 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.field textarea { min-height: 180px; resize: vertical; }
.infocard { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.contactline { display: flex; gap: 8px; flex-wrap: wrap; }
.saved { font-size: 13px; color: var(--muted); min-height: 18px; }

.empty { text-align: center; color: var(--muted); padding: 32px 16px; border: 1px dashed var(--line); border-radius: 16px; }

/* Tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.tabs .in { max-width: 560px; margin: 0 auto; height: var(--tabh); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.tabs button[aria-current="page"] { color: var(--pine); }
.tabs .add span.plus { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--pine-ink); display: grid; place-items: center; margin-top: -4px; }

/* Sheet */
.scrim { position: fixed; inset: 0; background: rgba(10,20,15,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; }
.sheet h2 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--pine); font-size: 26px; margin: 0; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.msg { color: var(--holly); font-size: 14px; min-height: 20px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabh) + env(safe-area-inset-bottom, 0px) + 14px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
.confirm { background: var(--holly-soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* Band view + TM lock */
.band.hero { position: relative; }
.lockbtn { position: absolute; top: 14px; right: max(16px, env(safe-area-inset-right, 0px)); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,250,241,.75); color: var(--pine); font-size: 13px; font-weight: 700; border: 1px solid var(--line); }
.lockbtn svg { width: 16px; height: 16px; }
.gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.gate .bh-hero { flex: none; }
.gate-card { width: min(440px, calc(100% - 32px)); margin: -28px auto 24px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 30px rgba(60,30,10,.12); }
.gate-card h2 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--pine); font-size: 26px; margin: 0; }
.gate-card p { margin: 0; color: var(--muted); font-size: 14px; }
.gate-card .note { color: var(--holly); font-weight: 600; }
.gate-tm { align-self: center; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; padding: 6px; cursor: pointer; }
.tm-signout { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.tabs.two .in { grid-template-columns: 1fr 1fr; }
.drow.bandrow { grid-template-columns: 54px 1fr auto; border-left-color: var(--orange); }
.drow.bandrow.held { border-left-color: var(--amber); }
.bfacts { display: flex; flex-direction: column; }
.bfact { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bfact:last-child { border-bottom: 0; }
.bfact .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.bfact .v { overflow-wrap: anywhere; white-space: pre-wrap; }
.bnotes { padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.updated { text-align: center; font-size: 13px; color: var(--muted); }
.bandsync { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bandsync.stale { border-color: var(--orange); }
.bandsync .row { display: flex; gap: 10px; align-items: center; }
.bandsync .dot2 { width: 10px; height: 10px; border-radius: 50%; background: var(--done); flex: none; }
.bandsync.stale .dot2 { background: var(--orange); }
.pwform { display: flex; flex-direction: column; gap: 14px; }
.pwform input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; font-size: 18px; }
.modebar { display: flex; gap: 8px; justify-content: flex-end; }
.tmtag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--pine); color: var(--pine-ink); font-size: 13px; font-weight: 700; }
.tmtag svg { width: 16px; height: 16px; }
.soon { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; color: var(--muted); background: var(--sunk); border: 1px solid var(--line); }

/* Band detail: professional day sheet */
.ds-hero { position: relative; min-height: 220px; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(20,10,4,0) 25%, rgba(20,10,4,.78) 100%), var(--scene) center 68% / cover no-repeat; color: #fff8ec; }
.ds-hero-in { width: 100%; padding-block: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ds-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ds-pill { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #fff8ec; color: #3b2316; }
.ds-pill.ghost { background: rgba(255,248,236,.18); color: #fff8ec; border: 1px solid rgba(255,248,236,.45); }
.ds-pill.hold { background: #f8e6bf; color: #7a4a0f; }
.ds-hero h2 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; font-size: 32px; line-height: 1.05; margin: 4px 0 0; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.ds-city { font-size: 15px; opacity: .9; }
.ds-wrap { display: flex; flex-direction: column; gap: 22px; }
.ds-h { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ds-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.ds-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ds-row:last-child { border-bottom: 0; }
.ds-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine); }
.ds-ico svg { width: 20px; height: 20px; stroke-width: 1.8; }
.ds-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.ds-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ds-v { font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.ds-copy { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--pine); border: 1px solid var(--line); }
.ds-copy svg { width: 17px; height: 17px; }
.ds-notes { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pine); border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.ds-pend { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.ds-pend b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.ds-pend span { color: var(--muted); font-size: 14px; }
.ds-pico { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); }
.ds-pico svg { width: 20px; height: 20px; }

/* Band home + dates list */
.bh-hero { position: relative; min-height: 340px; display: flex; background: linear-gradient(180deg, rgba(20,10,4,0) 72%, rgba(20,10,4,.78) 100%), var(--scene) center bottom / 100% auto no-repeat, linear-gradient(180deg, #d9e4d0 0%, #ece3c8 45%, #f1dfc0 100%); color: #fff8ec; }
@media (min-width: 480px) { .bh-hero { min-height: 400px; } }
.bh-in { width: 100%; padding-block: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.bh-top { display: flex; flex-direction: column; gap: 6px; }
.bh-bottom { margin-top: auto; }
.bh-logo { width: min(250px, 66%); aspect-ratio: 655 / 205; background: #85461a; -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; }
.bh-sub { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #5c8758; }
.bh-stats { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.bh-stats b { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.bh-stats .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,248,236,.6); }
.lockbtn.glass { background: rgba(20,10,4,.35); color: #fff8ec; border-color: rgba(255,248,236,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nx { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.nx-top { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; align-items: center; }
.nx-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: var(--pine); color: var(--pine-ink); padding: 8px 0 10px; line-height: 1.1; }
.nx-date .lr-w, .nx-date .lr-m { color: inherit; opacity: .85; }
.nx-d { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 96; font-size: 36px; line-height: 1; margin: 2px 0; }
.nx-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nx-when { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--salmon); }
.nx-v { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 24px; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
.nx-facts { border-top: 1px solid var(--line); padding: 6px 18px; display: flex; flex-direction: column; }
.nx-f { display: grid; grid-template-columns: 22px 92px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.nx-f:last-child { border-bottom: 0; }
.nx-fi { color: var(--pine); align-self: center; display: grid; }
.nx-fi svg { width: 18px; height: 18px; stroke-width: 1.8; }
.nx-fk { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nx-fv { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-soon { border-top: 1px solid var(--line); padding: 14px 18px; color: var(--muted); font-size: 14px; }
.nx-cta { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; background: var(--pine); color: var(--pine-ink); font-weight: 700; font-size: 15px; }
.nx-cta svg { width: 18px; height: 18px; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.lr { width: 100%; display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; padding: 13px 14px 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.lr:last-child { border-bottom: 0; }
.lr:hover { background: var(--sunk); }
.lr.past { opacity: .55; }
.lr-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lr-w, .lr-m { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lr-m { color: var(--salmon); }
.lr-d { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 26px; color: var(--pine); line-height: 1.05; }
.lr-mid { min-width: 0; }
.lr-v { font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.lr-c { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.lr-end { display: flex; align-items: center; gap: 4px; }
.lr-end .chev svg { width: 18px; height: 18px; }
.st { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.st-ready { background: var(--sage-soft); color: var(--done); }
.st-soon { background: var(--sunk); color: var(--muted); }
.st-hold { background: var(--amber-soft); color: var(--amber); }
.bd-head { background: linear-gradient(180deg, var(--sky1), var(--sky2)); padding-block: 22px 20px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); }
.bd-logo { width: 120px; aspect-ratio: 655 / 205; background: var(--pine); -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; margin-bottom: 6px; }
.bd-head h1 { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; color: var(--ink); font-size: 34px; line-height: 1.05; margin: 0; }
.bd-sub { color: var(--muted); font-size: 14px; }
.mo { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 48; color: var(--pine); font-size: 20px; margin: 0 0 8px; }
.mo-n { font-size: 12px; color: var(--muted); font-weight: 600; }
.pastbox > summary { cursor: pointer; color: var(--pine); font-weight: 600; font-size: 14px; }
@media (max-width: 370px) { .st { display: none; } }

.evtag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--pine); background: var(--pine-soft); }
.evtag svg { width: 14px; height: 14px; }
.drow.evrow { border-left-color: var(--pine); }
.st-ev { background: var(--pine-soft); color: var(--pine); }


/* Band day sheet: basic info up top */
.qa-addr { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.qa-pin { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pine); color: var(--pine-ink); }
.qa-pin svg { width: 22px; height: 22px; }
.qa-at { min-width: 0; }
.qa-av { font-weight: 700; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.qa-ac { font-size: 14px; color: var(--muted); }
.qa-map { font-weight: 700; font-size: 14px; color: var(--pine); text-decoration: none; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--pine); white-space: nowrap; }
.qa-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-t { background: var(--pine); color: var(--pine-ink); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--shadow); }
.qa-t:only-child { grid-column: 1 / -1; }
.qa-tk { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.qa-tk svg { width: 15px; height: 15px; }
.qa-tv { font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; white-space: pre-wrap; }
.qa-tv.long { font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.4; }
@media (max-width: 380px) { .qa-times { grid-template-columns: 1fr; } }

/* ---------- Desktop layout ---------- */
@media (min-width: 1000px) {
  body.is-desk .app { max-width: none; min-height: 0; padding-bottom: 0; }
  .desk { display: grid; grid-template-columns: 400px 1fr; height: 100vh; height: 100dvh; }
  .side { overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); padding-bottom: 24px; }
  .mainpane { overflow-y: auto; background: var(--bg); padding-bottom: 32px; }
  .side .band, .side .bd-head { position: sticky; top: 0; z-index: 5; }
  .side .screen { padding-block: 14px; gap: 16px; }
  .side .drow, .side .lr { cursor: pointer; }
  .drow.sel { outline: 2px solid var(--pine); outline-offset: -2px; }
  .lr.sel { background: var(--pine-soft); box-shadow: inset 4px 0 0 var(--pine); }
  .mainpane > .screen, .mainpane .statrow { max-width: 900px; margin-inline: auto; width: 100%; }
  .mainpane .bar-top { padding-inline: 24px; }
  .mainpane .dhead, .mainpane .ds-hero-in, .mainpane .bh-in { padding-inline: max(24px, calc((100% - 900px) / 2)); }
  .mainpane .gut { padding-left: 24px; padding-right: 24px; }
  .mainpane .bh-hero { min-height: 420px; }
  .mainpane .ds-hero { min-height: 300px; }
  .mainpane .ds-card { display: grid; grid-template-columns: 1fr 1fr; }
  .mainpane .ds-card .ds-row { border-right: 1px solid var(--line); }
  .mainpane .ds-card .ds-row:nth-child(2n) { border-right: 0; }
  .mainpane .ds-card .ds-row:last-child { border-bottom: 1px solid var(--line); }
  .mainpane .facts { grid-template-columns: repeat(4, 1fr); }
  .mainpane .list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  /* Tabs dock under the sidebar */
  body.is-desk .tabs { right: auto; width: 400px; border-right: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  body.is-desk .tabs .in { max-width: none; height: 60px; }
  body.is-desk .tabs #tabDates { display: none; }
  body.is-desk .tabs .in { grid-template-columns: 1fr 1fr; }
  body.is-desk .tabs.two .in { grid-template-columns: 1fr; }
  body.is-desk .side { padding-bottom: 80px; }
  body.is-desk .desk { height: calc(100vh - 0px); }
  /* Desktop heroes: logo on sky at left, truck scene on the right */
  .mainpane .bh-hero { min-height: 340px; background: linear-gradient(90deg, #dfe6cf 0%, #e8e4cb 30%, rgba(232,228,203,0) 55%), var(--scene) right bottom / auto 100% no-repeat, linear-gradient(180deg, #d9e4d0, #f1dfc0); }
  .mainpane .bh-stats { color: #3b2316; text-shadow: none; }
  .mainpane .bh-stats .sep { background: rgba(59,35,22,.4); }
  .mainpane .band.hero { display: grid; grid-template-columns: 1fr; position: relative; min-height: 300px; background: linear-gradient(90deg, var(--sky1) 0%, var(--sky1) 30%, rgba(0,0,0,0) 55%), var(--scene) right bottom / auto 100% no-repeat, linear-gradient(180deg, var(--sky1), var(--sky2)); padding-bottom: 60px; }
  .mainpane .band.hero .scene { display: none; }
  .mainpane .statrow { margin-top: -40px; }
}
/* Day sheet typography: clean sans for info, numbers aligned */
.ds-wrap, .qa-addr, .qa-times { font-family: var(--font-body); font-feature-settings: "tnum" 1, "lnum" 1; }
.qa-tv { font-family: var(--font-body); font-variation-settings: normal; font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.qa-tv.long { font-weight: 600; font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.qa-tk { font-size: 10.5px; letter-spacing: .14em; }
.qa-av { font-weight: 700; font-size: 16px; letter-spacing: -.005em; }
.ds-k { font-size: 10.5px; letter-spacing: .14em; font-weight: 700; }
.ds-v { font-size: 15.5px; font-weight: 500; line-height: 1.5; letter-spacing: -.003em; }
.ds-h { font-size: 11px; letter-spacing: .18em; }
.ds-notes { font-size: 15.5px; line-height: 1.6; }
.ds-hero h2 { letter-spacing: -.01em; }
.ds-pill { font-size: 10.5px; }
