/* b157 Calendar-first (Calendar tab, New gig, job status, sync, checks, conflicts, invoice nudge). Gaffalo™ */
html body #mobile-nav:has(>button:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;column-gap:4px!important}
html body #mobile-nav:has(>button:nth-child(5))>button{width:auto!important;max-width:none!important;min-width:0;padding:5px 2px;font-size:11px;letter-spacing:-.01em}
html body #mobile-nav:has(>button:nth-child(5))>button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media (max-width:360px){html body #mobile-nav:has(>button:nth-child(5))>button{font-size:10px!important}}
.cf-view{--g:#8fd16a;padding-bottom:24px;box-sizing:border-box;max-width:100%;min-width:0;overflow-x:clip}
.cf-kicker{font:700 11px/1 ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--g,#8fd16a);margin:4px 0 6px}
.cf-titlebar{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap;max-width:100%;min-width:0}
.cf-titlebar>div:first-child{min-width:0;flex:1 1 9rem}.cf-titlebar h1{margin:0;font-size:30px;line-height:1.05}.cf-sub{margin:4px 0 0;opacity:.7;font-size:14px}
.cf-tools{display:flex;gap:8px;align-items:center;flex:0 1 auto;min-width:0}.cf-tools .button{display:inline-flex;gap:6px;align-items:center;min-height:44px;padding:0 12px;white-space:nowrap}
.cf-gear{width:40px;height:40px;display:grid;place-items:center}
.cf-card{border-radius:20px;background:rgba(0,0,0,.32);border:1px solid rgba(255,255,255,.08);padding:12px 10px 14px;margin-bottom:12px}
.cf-month{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px;font:700 13px/1 ui-monospace,monospace;letter-spacing:.12em}
.cf-nav{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.35);color:inherit;display:grid;place-items:center}
.cf-week,.cf-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;width:100%;max-width:100%;min-width:0}
.cf-week span{text-align:center;font:600 10px/1 ui-monospace,monospace;opacity:.55;padding-bottom:6px}
.cf-day{position:relative;min-width:0;max-width:100%;min-height:62px;border-radius:10px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.07);padding:4px 2px 3px;display:flex;flex-direction:column;align-items:stretch;gap:2px;color:inherit;text-align:left;overflow:hidden;font:inherit;box-sizing:border-box}
.cf-day.is-out{opacity:.32}.cf-day.is-out.is-today{opacity:.85}.cf-day.is-today{border-color:transparent;outline:2px solid var(--gt-accent-glow,#96dc80);outline-offset:-2px;box-shadow:0 0 0 1px #96dc802b,inset 0 0 22px #96dc800b}.cf-day.is-today .cf-num{color:var(--gt-accent-glow,#96dc80);font-weight:800}
.cf-num{font-size:12px;font-weight:700;margin-left:2px;line-height:1.1}
.cf-chip{--cf-c:#2f7de1;display:block;box-sizing:border-box;max-width:100%;min-width:0;border-radius:5px;font-size:9px;font-weight:800;line-height:1.15;padding:2px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.cf-chip.is-confirmed{background:var(--cf-c);color:var(--cf-ink,#fff)}
.cf-chip.is-hold{background:color-mix(in srgb,var(--cf-c) 20%,transparent);border:1.5px dashed var(--cf-c);opacity:.85}
.cf-chip.is-travel{background:repeating-linear-gradient(135deg,var(--cf-c) 0 4px,color-mix(in srgb,var(--cf-c) 35%,#111) 4px 8px);text-shadow:0 1px 2px #000}
/* t2846: a stored second brand color (white) is part of the client mark. Status shape stays solid / dashed / striped. */
.cf-chip.has-brand2.is-confirmed{background:linear-gradient(90deg,var(--cf-c) 0 62%,var(--cf-c2) 62% 82%,var(--cf-c3,var(--cf-c)) 82% 100%);color:var(--cf-ink,#fff);padding-right:22%;border:1px solid rgba(0,0,0,.55)}
.cf-chip.has-brand2.is-hold{background:linear-gradient(90deg,color-mix(in srgb,var(--cf-c) 18%,transparent) 0 68%,var(--cf-c2) 68% 100%);border:1.5px dashed var(--cf-c);color:#fff;text-shadow:0 1px 1px #000}
.cf-chip.has-brand2.is-travel{background:repeating-linear-gradient(135deg,var(--cf-c) 0 4px,var(--cf-c2) 4px 8px);color:#141414;text-shadow:0 0 2px #fff,0 1px 0 #fff}
.cf-more{font-size:9px;opacity:.7;margin-left:2px}.cf-plus{margin:auto;opacity:.6}
.cf-clash{position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:#e6aa28}
.cf-legend{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:12px;font-size:12px;opacity:.8}
.cf-legend i{display:inline-block;width:16px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px;background:#2f7de1}
.cf-legend i.is-hold{background:transparent;border:1.5px dashed #8fd16a}.cf-legend i.is-today{background:transparent;border:2px solid var(--gt-accent-glow,#96dc80);box-shadow:0 0 0 1px #96dc802b;width:14px;height:14px;border-radius:3px;box-sizing:border-box;vertical-align:-3px}.cf-legend i.is-travel{background:repeating-linear-gradient(135deg,#8fd16a 0 3px,#253 3px 6px)}.cf-legend i.is-clash{width:8px;height:8px;border-radius:50%;background:#e6aa28}
.cf-list h2{font-size:15px;margin:2px 4px 6px}.cf-empty{opacity:.7;margin:6px 4px}
.cf-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 8px;border:0;border-top:1px solid rgba(255,255,255,.07);background:transparent;color:inherit;text-align:left;font:inherit}
.cf-row-copy{display:flex;flex-direction:column;min-width:0;flex:1}.cf-row-copy small{opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-dot{--cf-c:#2f7de1;width:6px;align-self:stretch;min-height:28px;border-radius:3px;background:var(--cf-c)}.cf-dot.is-hold{background:transparent;border:1.5px dashed var(--cf-c)}
.cf-dot.has-brand2{width:8px;background:linear-gradient(180deg,var(--cf-c) 0 34%,var(--cf-c2) 34% 66%,var(--cf-c3,var(--cf-c)) 66% 100%);border:1px solid rgba(0,0,0,.55)}
.cf-dot.has-brand2.is-hold{background:transparent;border:1.5px dashed var(--cf-c);box-shadow:3px 0 0 0 var(--cf-c2)}
.cf-stage{font:700 10px/1 ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;padding:6px 8px;border-radius:999px;border:1px solid currentColor;white-space:nowrap}
.cf-stage.is-hold{color:#c9c9c9}.cf-stage.is-confirmed{color:#7fb6ff}.cf-stage.is-working{color:#8fd16a}.cf-stage.is-wrapped{color:#e6aa28}.cf-stage.is-invoiced{color:#b9a6ff}
.cf-fine{font-size:13px;opacity:.75;margin:8px 4px}.cf-link{background:none;border:0;color:var(--g,#8fd16a);text-decoration:underline;padding:0;font:inherit}
.cf-wide{width:100%;margin-top:10px;display:flex;justify-content:center;gap:6px;align-items:center}
.cf-gig .cf-f{display:flex;flex-direction:column;gap:4px;margin-bottom:9px}.cf-gig .cf-f>span{font:700 10px/1 ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;opacity:.7}
.cf-gig input,.cf-gig select{min-height:42px;border-radius:12px;font-size:16px;width:100%;box-sizing:border-box}
.cf-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cf-seg{display:flex;gap:6px;margin-bottom:12px}.cf-seg label{flex:1;text-align:center;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.15);font-weight:700}
.cf-seg label.is-on,.cf-seg label:has(input:checked){background:rgba(143,209,106,.18);border-color:#8fd16a;color:#b9ec9b}.cf-seg input{position:absolute;opacity:0;pointer-events:none}
.cf-sheet-sub{opacity:.7;margin:0 0 12px}.cf-check{display:flex;gap:8px;align-items:center;margin:2px 0 8px}.cf-check input{width:auto;min-height:0}
.cf-perday{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.cf-pd-row{display:grid;grid-template-columns:52px 1fr 1fr 1fr;gap:5px;align-items:center;font-size:13px}.cf-pd-row input,.cf-pd-row select{min-height:36px;font-size:14px;padding:0 4px}
.cf-note{display:flex;gap:8px;align-items:center;font-size:13px;padding:10px 12px;border-radius:12px;background:rgba(143,209,106,.08);border:1px solid rgba(143,209,106,.3)}
.cf-warn{display:flex;gap:12px;padding:11px 13px;border-radius:14px;background:rgba(230,170,40,.13);border:1.5px solid #e6aa28;margin-bottom:14px}
.cf-warn-ico,.cf-nudge-ico{width:32px;height:32px;border-radius:50%;background:#e6aa28;color:#1b1406;display:grid;place-items:center;flex:none}
.cf-warn small,.cf-nudge small{display:block;opacity:.85;margin-top:3px}.cf-warn-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.cf-pipe{border-radius:18px;background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.08);padding:14px 10px 12px;margin:10px 0 14px}
.cf-steps{display:flex;align-items:flex-start}.cf-step{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;color:inherit;padding:0;width:56px;font:inherit}
.cf-step small{font-size:11px;opacity:.75}.cf-step-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1.5px solid rgba(255,255,255,.3);font-weight:700;font-size:13px}
.cf-step.is-done .cf-step-dot{background:#3f8f3a;border-color:#8fd16a;color:#fff}.cf-step.is-now .cf-step-dot{background:#8fd16a;color:#10200c;box-shadow:0 0 0 4px rgba(143,209,106,.25)}.cf-step.is-now small{opacity:1;font-weight:800}
.cf-step-bar{flex:1;height:2px;margin-top:15px;background:rgba(255,255,255,.18)}
.cf-pipe-note{display:block;text-align:center;margin-top:8px;opacity:.75}
.cf-invoice{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:13px 14px;border-radius:16px;border:1px solid #8fd16a;background:linear-gradient(180deg,#3d7f33,#2a5d24);color:#fff;text-align:left;font:inherit}
.cf-invoice span:nth-child(2){flex:1;display:flex;flex-direction:column}.cf-invoice small{font:700 10px/1.2 ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;opacity:.85}.cf-invoice strong{font-size:20px}
.cf-inv-ico{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center}
.cf-dir{display:flex;gap:12px;padding:13px;border-radius:16px;border:1px solid rgba(255,255,255,.14);margin-bottom:10px;background:rgba(0,0,0,.25)}
.cf-dir.is-on{border-color:#8fd16a;background:rgba(143,209,106,.1)}.cf-dir input{width:20px;height:20px;accent-color:#8fd16a;flex:none;margin-top:2px}
.cf-dir-copy{display:flex;flex-direction:column;gap:3px}.cf-dir-copy small{opacity:.8}.cf-dir-copy em{font:700 10px/1 ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;font-style:normal;color:#b9ec9b;margin-top:4px}
.cf-row2{display:flex;gap:8px;flex-wrap:wrap}.cf-settings-card{margin-bottom:14px}.cf-settings-card h3{margin:0 0 6px}
.cf-checks ul{list-style:none;padding:0;margin:0}.cf-checks li{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08)}.cf-checks li small{display:block;opacity:.75;margin-top:2px}
.cf-ck{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff}.is-ok .cf-ck{background:#3f9a3a}.is-bad .cf-ck{background:#d9443b}
.cf-fix{margin-top:8px}.cf-tofix{margin-top:12px;padding:12px;border-radius:14px;background:rgba(217,68,59,.1);border:1px solid rgba(217,68,59,.4)}.cf-tofix.is-ok{background:rgba(143,209,106,.1);border-color:rgba(143,209,106,.4)}.cf-tofix small{display:block;opacity:.8}
.cf-nudge{display:flex;gap:12px;padding:12px 13px;border-radius:16px;background:rgba(230,170,40,.12);border:1.5px solid #e6aa28;margin:0 0 10px}.cf-nudge-copy{flex:1;min-width:0}
.cf-daylist .cf-row:first-child{border-top:0}
.cf-copy{align-items:flex-start;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.14);margin:8px 0}.cf-copy span{display:flex;flex-direction:column;gap:3px}.cf-copy small{opacity:.8}.cf-copyask .cf-row input{width:20px;height:20px;accent-color:#8fd16a;flex:none}

/* b159 tappable copy banner */
.cf-note-btn{width:100%;text-align:left;color:inherit;font:inherit;font-size:13px;cursor:pointer}.cf-note-btn u{color:var(--money,#7bd35a);text-decoration:none;font-weight:600;white-space:nowrap}
#cf-view .cf-grid{touch-action:pan-y;will-change:transform}
/* b159 t2100u: Hold looks like a calendar hold (dashed, faded client/accent); Confirmed stays solid green */
.cf-seg label.cf-seg-hold.is-on,.cf-seg label.cf-seg-hold:has(input:checked){background:color-mix(in srgb,var(--cf-c,#8fd16a) 16%,transparent);border:1.5px dashed var(--cf-c,#8fd16a);color:color-mix(in srgb,var(--cf-c,#8fd16a) 70%,#fff);opacity:.85}
.cf-seg label.cf-seg-ok.is-on,.cf-seg label.cf-seg-ok:has(input:checked){background:#3f9a2c;border:1.5px solid #8fd16a;color:#fff}
/* b159 t2100u: stable New gig sheet (see gigViewport) */
@media (max-width:820px){html body dialog#dialog[open]:has(#cf-gig){position:fixed!important;inset:auto 0 auto 0!important;top:calc(var(--cf-vv-top,0px) + max(10px,env(safe-area-inset-top,0px)))!important;bottom:auto!important;height:calc(var(--cf-vv-h,100dvh) - max(10px,env(safe-area-inset-top,0px)))!important;max-height:none!important;transform:none!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-behavior:auto!important;transition:none!important;border-radius:22px 22px 0 0!important}
html body dialog#dialog[open]:has(#cf-gig) .modal-header{position:sticky;top:0;z-index:3;background:var(--gt-surface,#171717)}}
/* b160j: Import past jobs, one tap from the Calendar tab */
.bi-forward{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:100%;max-width:100%;min-width:0;margin:0 0 12px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.28);color:inherit;text-align:left}
.bi-forward-copy{flex:1 1 12rem;min-width:0;max-width:100%;display:grid;gap:2px}.bi-forward-copy strong{font-size:15px}.bi-forward-copy small{display:block;max-width:100%;font-size:12px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bi-forward .button{box-sizing:border-box;flex:0 0 auto;min-height:44px;min-width:44px;padding:0 16px;white-space:nowrap;overflow:visible}
@media (max-width:390px){
  .bi-forward-copy{flex-basis:100%}
  .bi-forward .button{flex:1 1 auto;min-height:44px}
}
.cf-import-past{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;max-width:100%;min-width:0;margin:0 0 12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(111,207,115,.35);background:rgba(111,207,115,.08);color:var(--gt-ink,#e9ece9);text-align:left;font:inherit;min-height:44px}
.cf-import-past>span:first-child{flex:1;min-width:0;display:grid;gap:2px}.cf-import-past strong{font-size:15px}.cf-import-past small{display:block;font-size:12px;color:var(--muted,#a9b1a6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cf-import-past>span:last-child{flex:none;font-size:22px;color:#8fe093}

/* t3396/t3397 (George): compact one-time Hold / Confirmed tip under the status row. Does not block the screen. */
.cf-hold-tip{display:flex;align-items:flex-start;gap:8px;margin:8px 4px 0;padding:8px 10px;border-radius:12px;background:rgba(143,209,106,.12);border:1px solid rgba(143,209,106,.35)}
.cf-hold-tip p{margin:0;flex:1;min-width:0;font-size:12px;line-height:1.35;opacity:.92}
.cf-hold-tip-got{flex:none;margin:0;padding:4px 8px;border-radius:999px;border:1px solid rgba(143,209,106,.55);background:rgba(143,209,106,.2);color:inherit;font:inherit;font-size:11px;font-weight:700;line-height:1.2}
.cf-hold-tip-x{flex:none;margin:0;padding:0 2px;border:0;background:none;color:inherit;font:inherit;font-size:18px;line-height:1;opacity:.7}
