/* App shell + screens */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--paper); border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px var(--display); letter-spacing: -.02em; padding: 4px 8px 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 38px; border-radius: 7px; background: var(--act); position: relative; flex: none; }
.brand-mark::before { content: ''; position: absolute; top: 5px; left: 50%; width: 12px; height: 4px; margin-left: -6px; border-radius: 9px; background: var(--paper); }
.brand-mark::after { content: ''; position: absolute; bottom: 7px; left: 6px; right: 6px; height: 5px; border-radius: 2px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.brand small { font: 600 12px var(--text); color: var(--ink-3); display: block; letter-spacing: 0; }
.ctx { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--rule); background: var(--paper); cursor: pointer; width: 100%; text-align: left; font: inherit; color: inherit; margin-bottom: 8px; }
.ctx:hover { border-color: var(--ink-3); }
.ctx .t { font-weight: 700; line-height: 1.2; }
.ctx .s { font-size: 12.5px; color: var(--ink-3); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a.on { background: var(--act-soft); color: var(--act); }
.nav .ic { width: 20px; height: 20px; flex: none; }
.nav .count { margin-left: auto; background: var(--act); color: var(--act-ink); font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.side .foot { margin-top: auto; display: grid; gap: 4px; }
.main { min-width: 0; padding: 28px 32px 80px; max-width: 1180px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { border: 1.5px solid var(--rule); background: var(--paper); padding: 7px 14px; border-radius: 999px; font: 600 14px var(--text); color: var(--ink-2); cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 16px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.callout { border-radius: var(--r-l); padding: 16px 18px; background: var(--act-soft); color: var(--ink); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.callout.warn { background: var(--warn-soft); }
.callout.good { background: var(--good-soft); }
.callout .grow { flex: 1; min-width: 200px; }
.callout .row > * { flex: 0 0 auto; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 14px 16px; }
.stat b { display: block; font: 800 26px var(--display); }
.stat span { color: var(--ink-3); font-size: 14px; }
.setup li { gap: 10px; }
.setup .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font-size: 13px; flex: none; }
.setup .done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.setup .done .grow { color: var(--ink-3); text-decoration: line-through; }

/* tabbar (phones) */
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; gap: 10px; background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: calc(10px + var(--safe-top)) 14px 10px; }
  .topbar .ctx { margin: 0; padding: 6px 10px; border: 0; flex: 1; min-width: 0; }
  .topbar .ctx .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--mist); display: grid; place-items: center; position: relative; color: var(--ink); text-decoration: none; flex: none; }
  .iconbtn .count { position: absolute; top: -2px; right: -2px; background: var(--bad); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
  .main { padding: 18px 16px calc(96px + var(--safe-bottom)); }
  :root { --tabbar: 64px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--paper);
    border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + var(--safe-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; padding: 4px 0; position: relative; }
  .tabbar a.on { color: var(--act); }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar .count { position: absolute; top: 0; left: 55%; background: var(--bad); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
  .cols { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > :first-child { grid-column: 1 / -1; }
  .page-head h1 { font-size: 28px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lam .name { font-size: 16px; }
}
@media (min-width: 861px) { .only-phone { display: none !important; } }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.cal .d { min-height: 58px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); padding: 5px 6px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; position: relative; text-align: left; font-family: var(--text); color: var(--ink); }
button.d { cursor: pointer; }
button.d:hover { border-color: var(--ink-3); }
.cal .d .n { font-weight: 700; font-size: 13px; }
.cal .d.pad { visibility: hidden; }
.cal .d.past { opacity: .4; }
.cal .d.local { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.cal .d.travel { background: var(--act-soft); border-color: color-mix(in srgb, var(--act) 35%, transparent); }
.cal .d.event { background: #3A3112; border-color: #8C6E14; }
:root[data-theme="light"] .cal .d.event { background: #FFF4D6; border-color: #F0C24C; }
.cal .d.busy { background: repeating-linear-gradient(135deg, var(--mist-2), var(--mist-2) 4px, var(--paper) 4px, var(--paper) 8px); color: var(--ink-3); }
.cal .d .lbl { font-size: 11px; line-height: 1.15; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal .d.sel { outline: 3px solid var(--act); outline-offset: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--rule); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* tour planner */
.tour-date { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.tour-date:first-child { border-top: 0; }
.tour-date .when { text-align: center; background: var(--mist); border-radius: 14px; padding: 10px 6px; align-self: start; }
.tour-date .when b { display: block; font: 800 30px/1 var(--display); }
.tour-date .when span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.who-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: thin; }
.who-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); flex: none; font-size: 13.5px; text-decoration: none; color: inherit; }
.who-chip .avatar { width: 30px; height: 30px; border-width: 0; font-size: 12px; }
.who-chip.at_event { border-color: #F0C24C; } .who-chip.local { border-color: var(--good); } .who-chip.travel { border-color: var(--act); }
.date-rows .dr { display: grid; grid-template-columns: 150px 1fr 1fr 40px; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule); }
.date-rows .dr:first-child { border-top: 0; }
.date-rows .dr .roles { grid-column: 1 / -1; }
@media (max-width: 700px) { .date-rows .dr { grid-template-columns: 1fr 1fr; } .date-rows .dr > :nth-child(3) { grid-column: 1; } .tour-date { grid-template-columns: 64px 1fr; gap: 10px; } .tour-date .when b { font-size: 22px; } }

/* booking */
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 12.5px; font-weight: 600; color: var(--ink-3); border-top: 4px solid var(--mist-2); padding-top: 6px; }
.steps li::before { content: counter(s) '. '; }
.steps li.done { border-color: var(--good); color: var(--ink-2); }
.steps li.now { border-color: var(--act); color: var(--act); }
.money-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.money-table td { padding: 7px 0; border-top: 1px solid var(--rule); }
.money-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.money-table tr.total td { font-weight: 800; font-size: 17px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.file { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--mist); text-decoration: none; color: var(--ink); font-size: 13px; display: flex; flex-direction: column; }
.file .thumb { aspect-ratio: 4/3; background: var(--mist-2) center/cover; display: grid; place-items: center; font-size: 26px; position: relative; }
.file .thumb.lock::after { content: 'Preview'; position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.file span { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tipper button { border: 1.5px solid var(--rule); background: var(--paper); border-radius: 12px; padding: 10px 4px; font: 700 15px var(--text); cursor: pointer; color: var(--ink); }
.tipper button small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.tipper button.on { border-color: var(--act); background: var(--act-soft); color: var(--act); }
.terms { font-size: 14.5px; line-height: 1.55; }
.terms h4 { font-size: 15px; margin: 14px 0 4px; }
.agree-box { border: 1.5px solid var(--rule); border-radius: 14px; padding: 14px; background: var(--mist); }

/* messages */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; height: calc(100vh - 150px); min-height: 420px; }
.inbox .threads { border-right: 1px solid var(--rule); overflow-y: auto; }
.inbox .threads a { display: flex; gap: 10px; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--rule); }
.inbox .threads a.on { background: var(--act-soft); }
.inbox .threads .unread { width: 10px; height: 10px; border-radius: 50%; background: var(--act); flex: none; align-self: center; }
.chat { display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 10px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; background: var(--mist); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--act); color: var(--act-ink); border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--ink-3); font-size: 13px; text-align: center; max-width: 90%; padding: 2px 8px; }
.msg .t { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); }
.chat-form textarea { min-height: 44px; height: 44px; flex: 1; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: var(--r-l); }
  .inbox.has-thread .threads { display: none; }
  .inbox:not(.has-thread) .chat { display: none; }
  .inbox .chat { height: calc(100vh - 210px - var(--safe-bottom)); }
}

/* profile page */
.profile-hero { border-radius: var(--r-l); overflow: hidden; background: var(--paper); border: 1px solid var(--rule); }
.profile-hero .cover { height: 190px; background: var(--c, var(--act)) center/cover; }
.profile-hero .info { padding: 0 22px 20px; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: -44px; }
.profile-hero .info .grow { flex: 1; min-width: 220px; padding-top: 50px; }
.profile-hero h1 { margin: 0 0 4px; }
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.portfolio > a, .portfolio > div:not(.edit-tile) { aspect-ratio: 1; border-radius: 12px; background: var(--mist-2) center/cover; display: block; position: relative; overflow: hidden; }
.portfolio .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.portfolio .vid::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 30px; text-shadow: 0 2px 10px #0008; }
.review { border-top: 1px solid var(--rule); padding: 12px 0; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.notif.unread .t { font-weight: 700; }
.notif .dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--act); margin-top: 7px; flex: none; }
.notif.read .dotc { background: transparent; }
.onboard { max-width: 620px; margin: 6vh auto; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { border: 1.5px solid var(--rule); border-radius: 16px; padding: 14px; cursor: pointer; background: var(--paper); }
.choice label:has(input:checked) { border-color: var(--act); background: var(--act-soft); }
.choice input { accent-color: var(--act); }
@media print {
  .side, .topbar, .tabbar, .no-print { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; } body { background: #fff; }
}

/* your year */
.year-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.year-hero > div { background: var(--night-2); color: #fff; border: 1px solid var(--rule); border-radius: var(--r-l); padding: 22px 24px; }
.year-hero > div:nth-child(2) { background: var(--act); color: var(--act-ink); }
.year-hero b { display: block; font: 800 clamp(44px, 7vw, 72px)/1 var(--display); letter-spacing: -.03em; }
.year-hero span { opacity: .85; font-weight: 600; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 200px; padding-top: 20px; }
.bar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-col .bar { width: 100%; min-height: 3px; background: var(--act); border-radius: 6px 6px 2px 2px; }
.bar-col .bl { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.bar-col .bv { order: -1; font-size: 11px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; min-height: 14px; }
@media (max-width: 600px) { .year-hero { grid-template-columns: 1fr; } }

/* ---------- phone polish (audit pass 1) ---------- */
@media (max-width: 860px) {
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 13px; }
  .files { grid-template-columns: repeat(3, 1fr); }
  .steps { gap: 4px; }
  .steps li { font-size: 10.5px; line-height: 1.25; }
  .steps li::before { content: ''; }
  .page-head { margin-bottom: 14px; }
  .page-head .actions .btn { min-height: 40px; }
  .panel { padding: 16px; }
}
@media (max-width: 700px) {
  .tour-date { grid-template-columns: 1fr; gap: 8px; }
  .tour-date .when { display: flex; gap: 8px; align-items: baseline; justify-self: start; padding: 6px 12px; }
  .tour-date .when b { font-size: 20px; }
}
a.role-chip { text-decoration: none; color: inherit; }

/* Thumbtack-style "what do you need" search on the artist home */
.need { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: 22px; margin-bottom: 16px; }
.need h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.need-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.need-tiles a { --c: var(--act); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 700; background: var(--paper); }
.need-tiles a::before { content: ''; height: 6px; width: 34px; border-radius: 9px; background: var(--c); }
.need-tiles a:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--paper)); }
.need-tiles a small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.need form { display: flex; gap: 8px; margin-top: 14px; }
.need form input { flex: 1; }
@media (max-width: 860px) { .need-tiles { grid-template-columns: repeat(2, 1fr); } .need { padding: 16px; } }

/* audit pass 2: icons everywhere, list rows wrap on phones */
.ic { width: 20px; height: 20px; flex: none; }
.list .rowlink > .ic { width: 22px; height: 22px; color: var(--ink-3); }
@media (max-width: 600px) {
  .list > li { flex-wrap: wrap; row-gap: 8px; }
  .list > li > .rowlink { flex: 1 1 220px; }
  .list > li > .rowlink .grow { min-width: 0; }
  .list > li > span[style*="text-align:right"] { flex: 1 1 100%; text-align: left !important; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .list > li > span[style*="text-align:right"] br { display: none; }
}
@media (max-width: 600px) {
  .list > li > .grow { flex: 1 1 150px; }
  .list .rowlink { flex-wrap: wrap; row-gap: 6px; }
  .list .rowlink > .grow { flex: 1 1 150px; }
  .list .rowlink > span[style*="text-align:right"] { flex: 1 1 100%; text-align: left !important; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 0; }
  .list .rowlink > span[style*="text-align:right"] br { display: none; }
}

/* shared profile pieces: chips, work tiles (photos, clips, video links), resume */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--text); color: var(--ink-2); cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.chip .ic { width: 18px; height: 18px; }
.chip.on { border-color: var(--act); background: var(--act-soft); color: var(--act); }

.portfolio .pw { display: contents; }
.portfolio .pw[hidden] { display: none; }
.ptile { aspect-ratio: 1; border-radius: 12px; background: var(--mist-2) center/cover; display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.ptile video { width: 100%; height: 100%; object-fit: cover; }
.ptile.vid::after, .ptile.link::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 30px; text-shadow: 0 2px 10px #0008; pointer-events: none; }
.ptile.link { background-color: #12152A; }
.ptile .badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); font: 700 11.5px var(--text); padding: 3px 8px; border-radius: 99px; z-index: 1; }
.ptile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font: 600 13px/1.25 var(--text); background: linear-gradient(transparent, rgba(0,0,0,.7)); z-index: 1; }
.ptile .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; z-index: 2; }
.credits { list-style: none; padding: 0; margin: 12px 0 0; }
.credits li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.credits li:first-child { border-top: 0; }
.credits .yr { width: 40px; flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 14px; }
.credits .grow { flex: 1; min-width: 0; }
.resume h4 { margin: 16px 0 8px; font-size: 15px; }
.edit-tile { display: grid; gap: 6px; }
.edit-tile select, .edit-tile input { min-height: 36px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.cred-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr 80px 36px; gap: 6px; margin-bottom: 6px; }
.cred-row input { min-height: 40px; padding: 8px 10px; font-size: 14.5px; }
@media (max-width: 700px) { .cred-row { grid-template-columns: 1fr 1fr; } .cred-row > :nth-child(3) { grid-column: 1 / -1; } }
@media print {
  .nav-top, .cta-bar, footer, .chips, .btn, [data-noprint] { display: none !important; }
  body, .site { background: #fff !important; }
  .panel { border: 0; padding: 0 0 12px; break-inside: avoid; }
  .portfolio { grid-template-columns: repeat(4, 1fr); }
}
.list.dates li { align-items: flex-start; }
.when-s { width: 48px; flex: none; text-align: center; background: var(--mist); border-radius: 10px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.15; }
.when-s b { display: block; font: 800 20px/1 var(--display); color: var(--ink); }
.profile-hero .cover.stage { background: radial-gradient(40% 90% at 20% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%),
  radial-gradient(35% 80% at 75% 0%, color-mix(in srgb, var(--r-dj) 55%, transparent), transparent 70%), #0E1020; }
.side-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; border: 1.5px solid var(--act); background: var(--act-soft); color: var(--act); font: 700 14.5px var(--text); cursor: pointer; text-align: left; }
.side-switch .ic { width: 20px; height: 20px; }
button.rowlink.linkrow { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; text-align: left; }
/* in-app payment window */
dialog.modal.pay { width: min(520px, 96vw); }
.pay-embed { min-height: 420px; border-radius: 14px; overflow: hidden; }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; height: 420px; color: var(--ink-3); font-weight: 600; }
.pay-wait .spin { width: 18px; height: 18px; border: 2px solid var(--rule); border-top-color: var(--act); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-frame { display: block; width: 100%; height: 520px; border: 0; border-radius: 14px; background: #f6f5f2; }
.pay-note { margin: 12px 0 0; text-align: center; }
@media (max-width: 560px) { dialog.modal.pay { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; } dialog.modal.pay .m-body { max-height: calc(100dvh - 70px); } }
/* travel distance slider */
.travel-f .range-row { display: flex; align-items: center; gap: 14px; }
.travel-f input[type=range] { flex: 1; accent-color: var(--act); height: 28px; }
.travel-f .range-row b { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.choice.stack-choice { grid-template-columns: 1fr; gap: 8px; }
.stack-choice label { display: block; }

/* ===== Backstage app look (Flighty / TM Buddy feel) ===== */
.stat { position: relative; padding: 16px 18px 14px; }
.stat b { font: 800 34px/1 var(--display); font-variation-settings: 'wdth' 80; font-stretch: 80%; letter-spacing: -.01em; margin-bottom: 6px; }
.stat span { font: 700 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
a.stat:hover { border-color: var(--act); }
.kv dt { font: 700 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.page-head h1, .head h1 { letter-spacing: -.015em; }
.side .nav a.on, .side a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--act); }

/* next-up pass */
.nu-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin: 4px 0 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nu-row:has(.nu-pass:only-child) { grid-auto-columns: 100%; }
.nu-row:has(.nu-pass + .nu-pass) { grid-auto-columns: minmax(0, 1.4fr); }
.nu-pass { scroll-snap-align: start; position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 16px; padding: 18px 20px 16px; border-radius: 22px; color: #F2F3F5; text-decoration: none;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent) 0%, transparent 55%), linear-gradient(180deg, #1A1D25, #121419);
  border: 1px solid #2A2E38; box-shadow: 0 18px 40px rgba(0,0,0,.35); min-width: 290px; }
.nu-pass:hover { border-color: color-mix(in srgb, var(--c) 60%, #2A2E38); }
.nu-pass.later { min-width: 260px; }
.nu-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nu-kick { font: 700 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--act); }
.nu-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, .8fr) minmax(0, 1fr); align-items: end; gap: 12px; }
.nu-route.solo { grid-template-columns: 1fr; }
.nu-pt b { display: block; font: 800 clamp(40px, 5vw, 56px)/.9 var(--display); font-variation-settings: 'wdth' 75; font-stretch: 75%; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-pt small { display: block; margin-top: 6px; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #9AA1AE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-pt.to { text-align: right; } .nu-route.solo .nu-pt.to { text-align: left; }
.nu-line { position: relative; height: 34px; align-self: center; }
.nu-line::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; border-top: 2px dashed #3A3F4B; }
.nu-line::after { content: '✈︎'; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); font-size: 18px; color: var(--act); background: #171A21; padding: 0 6px; }
.nu-line span { position: absolute; left: 0; right: 0; top: 26px; text-align: center; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9AA1AE; white-space: nowrap; }
.nu-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 12px 0 0; border-top: 1px solid #2A2E38; }
.nu-meta dt { font: 700 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #848B9A; }
.nu-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; }
.nu-track li { position: relative; display: grid; justify-items: center; gap: 6px; }
.nu-track li::before { content: ''; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: #2E333E; z-index: -1; }
.nu-track li:first-child::before { display: none; }
.nu-track li.done::before, .nu-track li.now::before { background: var(--act); }
.nu-track span { width: 12px; height: 12px; border-radius: 50%; background: #2E333E; border: 2px solid #171A21; }
.nu-track li.done span { background: var(--act); }
.nu-track li.now span { background: #171A21; border-color: var(--act); box-shadow: 0 0 0 4px color-mix(in srgb, var(--act) 25%, transparent); }
.nu-track em { font: 700 9.5px/1.2 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #848B9A; text-align: center; }
.nu-track li.done em, .nu-track li.now em { color: #E5E7EB; }
.nu-empty { display: grid; gap: 6px; justify-items: start; margin: 4px 0 18px; padding: 20px; border-radius: 22px; border: 1px dashed var(--rule); background: var(--paper); }
.nu-empty b { font: 800 26px/1 var(--display); font-variation-settings: 'wdth' 80; font-stretch: 80%; text-transform: uppercase; }
.nu-empty span.small { color: var(--ink-3); max-width: 520px; margin-bottom: 6px; }
.nu-pass .role-chip { flex: none; }
@media (max-width: 700px) {
  .nu-row, .nu-row:has(.nu-pass + .nu-pass) { grid-auto-columns: 88%; margin-right: -16px; padding-right: 16px; }
  .nu-row:has(.nu-pass:only-child) { grid-auto-columns: 100%; margin-right: 0; padding-right: 0; }
  .nu-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nu-pass { padding: 16px; border-radius: 18px; }
  .nu-track em { font-size: 8px; letter-spacing: .04em; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 9.5px; letter-spacing: .06em; }
}

/* ---------- invoices (creator's own clients) ---------- */
.seg { display: inline-flex; background: var(--mist); border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: 600 14px var(--text); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--act); color: var(--act-ink); }
.btn.big { padding: 15px 20px; font-size: 17px; }
.inv { padding: 26px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px dashed var(--rule); }
.inv-from { display: flex; gap: 12px; align-items: center; }
.inv-no { display: grid; justify-items: end; gap: 4px; text-align: right; }
.inv-k { font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--act); }
.inv-no b { font: 800 28px/1 var(--mono); letter-spacing: -.02em; }
.inv-title { margin: 18px 0 8px; }
.inv-h { margin: 24px 0 8px; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.inv-msg { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--act); background: var(--mist); border-radius: 0 var(--r-m, 10px) var(--r-m, 10px) 0; color: var(--ink-2); }
.inv-terms { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink-2); background: var(--mist); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; max-height: 360px; overflow: auto; }
.inv-sigs .sig { display: block; font: italic 600 22px/1.2 Georgia, 'Times New Roman', serif; color: var(--ink); }
.inv-sign { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1.5px solid var(--act); border-radius: 14px; }
.inv-pay { margin-top: 18px; display: grid; gap: 8px; justify-items: center; }
.inv-pay .btn.block { width: 100%; }
.inv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.inv-row .num { font: 700 13px var(--mono); color: var(--ink-3); }
.inv-lines-edit { display: grid; gap: 8px; }
.inv-lines-edit .line { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; }
.inv-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.inv-pick a { display: block; padding: 16px; border: 1.5px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--paper); }
.inv-pick a.on { border-color: var(--act); box-shadow: 0 0 0 1px var(--act) inset; }
.inv-pick b { display: block; font-size: 16px; margin-bottom: 4px; }
.inv-pick span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) { .inv { padding: 18px; } .inv-no { justify-items: start; text-align: left; } .inv-lines-edit .line { grid-template-columns: minmax(0, 1fr) 100px auto; } .inv-pick { grid-template-columns: 1fr; } }
@media print { .inv-terms { max-height: none; overflow: visible; } body.inv-page { background: #fff; } .inv { border: 0; box-shadow: none; } }
.inv-terms-sum { margin: 4px 0 14px; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; background: var(--mist); }
.inv-terms-sum summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.inv-terms-sum ul { margin: 8px 0 2px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.inv-steps { margin: 0; padding-left: 18px; line-height: 1.6; }
.inv-auth { font-size: 13px; color: var(--ink-2); }
.side-out { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--ink-3); font: 600 15px var(--text); cursor: pointer; border-radius: 10px; text-align: left; }
.side-out:hover { background: var(--mist); color: var(--ink); }
.side-out .ic { width: 20px; height: 20px; }

/* weekly hours */
.wk-rows { display: grid; gap: 6px; }
.wk-row { display: grid; grid-template-columns: 74px 1fr auto 1fr; gap: 8px; align-items: center; }
.wk-row input[type=time] { min-width: 0; padding: 6px 8px; }
.wk-row:has(input[type=checkbox]:not(:checked)) input[type=time] { opacity: .45; }
