/* Joe mode, stage D part 2: the tabs filled in (3.6.0, Plona Agent, Oct 24, 2026; JOE-MODE-V1-SPEC item 10; app/pro-tabs.js). Chandon,
   Oct 24: "looks good for now, can we start the joe mode build". Joe is 76: text from 16px (most of it 17 to 22px), taps 48px or taller,
   one thing per screen, phone first and larger on a computer. The calendar's colors are the spec's (booked blue, requests dashed orange,
   days off gray) as tokens, with their dark mode; everything else is the app's own tokens (app.css :root), so light and dark both read. */
:root{--jm-bk:#2D5F9A;--jm-bk-ink:#fff;--jm-bk-soft:#DCE7F3;--jm-off:#E3DBD0;--jm-off-ink:#4B4038}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--jm-bk:#3A6EAD;--jm-bk-ink:#fff;--jm-bk-soft:#1d2c3e;--jm-off:#3a3530;--jm-off-ink:#d9d1c7}}
:root[data-theme=dark]{--jm-bk:#3A6EAD;--jm-bk-ink:#fff;--jm-bk-soft:#1d2c3e;--jm-off:#3a3530;--jm-off-ink:#d9d1c7}

/* ---------- the legend (part 1's swatches, in the tokens; and the open day) ---------- */
.jm-sw.bk{background:var(--jm-bk)}
.jm-sw.off{background:repeating-linear-gradient(135deg,var(--jm-off-ink) 0 2px,var(--jm-off) 2px 5px);border:1px solid var(--line)}   /* striped, as the year's days off */
.jm-sw.op{background:var(--card);border:1.5px solid var(--field)}
.jm-leg{font-size:16px}
.jm-dot{flex:none;display:inline-block;width:14px;height:14px;border-radius:50%;background:var(--field)}
.jm-dot.bk{background:var(--jm-bk)}
.jm-dot.rq{background:var(--tint);box-shadow:inset 0 0 0 2px var(--ob)}
.jm-dot.off{background:var(--jm-off);box-shadow:inset 0 0 0 1px var(--line)}

/* ---------- the shared pieces: sections, rows, cards ---------- */
.jm-sec h2 .jm-n{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;margin-left:6px;border-radius:14px;background:var(--ob);color:#fff;font:700 16px/1 'Instrument Sans',sans-serif;vertical-align:3px}
.jm-rows{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card);overflow:hidden}
.jm-rows>li+li{border-top:1px solid var(--line)}
.jm-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;color:var(--ink);text-decoration:none}
.jm-row:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.jm-row>svg{flex:none;width:20px;height:20px;color:var(--sub)}
.jm-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.jm-rt b{font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.jm-rt span{font-size:16px;line-height:1.35;color:var(--sub)}
.jm-ric{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--wait);color:var(--ink)}
.jm-ric svg{width:20px;height:20px}
.jm-more{margin:10px 0 0;font-size:17px}
.jm-more a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.jm-mline{margin:0;font-size:19px;line-height:1.45;font-weight:600}
.jm-note{margin:10px 0 0;font-size:15px;line-height:1.45;color:var(--sub)}
.jm-lead{color:var(--ink)}
/* a request or trip */
.jm-it{margin:0 0 12px;padding:16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.jm-it.rq{border:2px dashed var(--ob)}
.jm-it.bk{border-left:6px solid var(--jm-bk)}
.jm-it-k{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:16px;font-weight:600;color:var(--sub)}
.jm-it h3{margin:0 0 4px;font:600 22px/1.25 'Clash Grotesk','Instrument Sans',sans-serif;overflow-wrap:anywhere}
.jm-it h3 a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none}
.jm-it h3 a:hover{text-decoration:underline}
.jm-it-m{margin:0 0 8px;font-size:17px;line-height:1.4;color:var(--sub)}
.jm-it-get{margin:6px 0 4px;font-size:18px}
.jm-it-get b{font:600 24px/1.2 'Clash Grotesk','Instrument Sans',sans-serif}
.jm-it-due{display:flex;align-items:center;gap:8px;margin:4px 0 0;font-size:16px;font-weight:600;color:var(--ot)}
.jm-it-due svg{flex:none;width:20px;height:20px}
.jm-it-due.big{font-size:18px;margin:8px 0 18px}
.jm-chk{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;margin:6px 0 8px;padding:0;font-size:17px}
.jm-chk.sm{font-size:16px}
.jm-chk li{display:flex;align-items:center;gap:6px}
.jm-chk svg{flex:none;width:20px;height:20px;color:var(--good-d);stroke-width:2.6}
.jm-ab{display:flex;gap:10px;margin-top:14px}
.jm-ab .btn{flex:1;min-height:52px;font-size:18px}
.jm-ab.one .btn{flex:0 1 auto;min-width:200px}
.jm-ab .confirm{flex-basis:100%}
.jm-ab{flex-wrap:wrap}
.jm-icsrow{margin:-4px 0 14px}
.jm-ics{display:inline-flex;align-items:center;gap:8px;min-height:48px;font-size:17px}
.jm-ics svg,.jc-acts .btn svg,.jm-acts2 .btn svg,.jm-dact .btn svg{flex:none;width:20px;height:20px}
.jm-lk .pr-link{margin-bottom:0}

/* ---------- the Overview ---------- */
.jm-over .jm-need .jm-rows{margin-top:4px}

/* ---------- the Calendar ---------- */
.jm.jm-cal{max-width:1100px}
.jc-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.jc-top h1{margin:8px 0 0}
.jc-full{display:inline-flex;align-items:center;gap:8px;min-height:48px;font-size:17px}
.jc-full svg{width:20px;height:20px}
.jc-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;border:1.5px solid var(--field);background:var(--card);color:var(--ink);cursor:pointer}
.jc-x svg{width:26px;height:26px;stroke-width:2.2}
.jc-views{display:flex;gap:4px;margin:0 0 12px;padding:4px;border-radius:14px;background:var(--wait)}
.jc-views a{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:10px;color:var(--ink);text-decoration:none;font-size:16px;font-weight:600}
.jc-views a.on{background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.18)}
.jc-views a:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.jc-nav{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.jc-nav .pr-mb{text-decoration:none}
.jc-t{flex:1;margin:0;text-align:center;font:600 22px/1.2 'Clash Grotesk','Instrument Sans',sans-serif}
.jc-today{min-height:48px;padding:0 14px;font-size:16px}
/* the month: seven days a row; each day a button with its number, "Off", and the bars of what holds it */
.jc-m{margin:0 0 14px}
.jc-wk,.jc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.jc-wk span{text-align:center;font-size:14px;font-weight:600;color:var(--sub);padding:2px 0 4px}
.jc-c{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:3px;min-height:58px;padding:4px 3px 5px;border:1.5px solid transparent;border-radius:10px;background:none;color:var(--sub);font:inherit;cursor:pointer;text-align:center;min-width:0}
.jc-c .jc-n{font-size:17px;font-weight:600;line-height:22px;font-variant-numeric:tabular-nums}
.jc-c.open{background:var(--card);border-color:var(--line);color:var(--ink)}
.jc-c.off{background:var(--jm-off);color:var(--jm-off-ink)}
.jc-c.past{opacity:.55}
.jc-c.out{opacity:.4}
.jc-c.today .jc-n{align-self:center;min-width:28px;border-radius:14px;background:var(--ink);color:var(--bg)}
.jc-c.sel{border-color:var(--ob);box-shadow:inset 0 0 0 1.5px var(--ob)}
.jc-c:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.jc-off{font-size:13px;font-weight:700;line-height:1}
.jc-bars{display:flex;flex-direction:column;gap:2px}
.jc-b{display:block;height:7px;border-radius:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:0;color:transparent}
.jc-b.s{border-top-left-radius:4px;border-bottom-left-radius:4px}
.jc-b.e{border-top-right-radius:4px;border-bottom-right-radius:4px}
.jc-b.bk{background:var(--jm-bk)}
.jc-b.rq{background:var(--tint);border:1.5px dashed var(--ob)}
.jc-more{font-size:13px;font-weight:700;line-height:1;color:var(--ink)}
@media (max-width:420px){.jc-t{font-size:20px}}
@media (min-width:900px){
  .jc-c{min-height:100px;padding:6px 6px 8px;text-align:left}
  .jc-c.today .jc-n{align-self:flex-start}
  .jc-b{height:24px;padding:0 6px;font-size:13px;line-height:21px;font-weight:600;text-align:left}
  .jc-b.bk{color:var(--jm-bk-ink)}
  .jc-b.rq{color:var(--ot);line-height:20px}
  .jc-off{font-size:14px}
}
.jc-sel{margin:0 0 16px;padding-top:4px}
.jc-sh{margin:6px 0 10px;font:600 22px/1.25 'Clash Grotesk','Instrument Sans',sans-serif}
.jm-offc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:14px 16px;border-radius:var(--r-lg);background:var(--jm-off);color:var(--jm-off-ink)}
.jm-offc p{margin:0;display:flex;flex-direction:column;font-size:18px}
.jm-offc p span{font-size:16px}
.jm-offc .btn{min-height:48px;font-size:16px;background:var(--card);color:var(--ink)}
.jm-dact{margin:4px 0 0}
.jm-dact .btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;font-size:17px}
/* the week: one row a day on a phone, seven columns on a computer */
.jc-week{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:6px}
.jc-wd{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:var(--r-md);border:1.5px solid transparent}
.jc-wd.open{background:var(--card);border-color:var(--line)}
.jc-wd.off{background:var(--jm-off);color:var(--jm-off-ink)}
.jc-wd.today .jc-wh span{background:var(--ink);color:var(--bg)}
.jc-wh{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;min-height:56px;border-radius:10px;color:inherit;text-decoration:none}
.jc-wh b{font-size:15px}
.jc-wh span{min-width:30px;border-radius:15px;font-size:20px;font-weight:700;line-height:28px;text-align:center}
.jc-wi{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding-top:4px}
.jc-chip{display:flex;align-items:center;min-height:44px;padding:6px 12px;border-radius:10px;font-size:16px;font-weight:600;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
.jc-chip.bk{background:var(--jm-bk);color:var(--jm-bk-ink)}
.jc-chip.rq{background:var(--tint);color:var(--ot);border:2px dashed var(--ob)}
.jc-chip.off{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.jc-none{display:flex;align-items:center;min-height:44px;font-size:16px;color:var(--sub)}
@media (min-width:900px){
  .jc-week{grid-template-columns:repeat(7,minmax(0,1fr))}
  .jc-wd{flex-direction:column;min-height:240px}
  .jc-wh{width:100%;flex-direction:row;gap:8px;justify-content:flex-start;min-height:44px}
}
/* the year: twelve small months, each a link to its month */
.jc-year{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:600px){.jc-year{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:900px){.jc-year{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jc-ym{display:block;padding:10px;border-radius:var(--r-md);border:1px solid var(--line);background:var(--card);color:var(--ink);text-decoration:none}
.jc-ym.now{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.jc-ym b{display:block;margin:0 0 6px;font-size:17px}
.jc-yg{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
/* review fix, Oct 25: a day that is not open is only a faint outline, and a day off is striped (its colors well apart from its neighbours'),
   so the days off stand out from the days he does not work */
.jc-yg i{display:block;aspect-ratio:1;border-radius:3px;background:none;box-shadow:inset 0 0 0 1px var(--line)}
.jc-yg i.pad{background:none;box-shadow:none}
.jc-yg i.op{background:var(--bg);box-shadow:inset 0 0 0 1px var(--field)}
.jc-yg i.off{background:repeating-linear-gradient(135deg,var(--jm-off-ink) 0 2px,var(--jm-off) 2px 4px);box-shadow:none}
.jc-yg i.bk{background:var(--jm-bk)}
.jc-yg i.rq{background:var(--tint);box-shadow:inset 0 0 0 1.5px var(--ob)}
.jc-yg i.today{outline:2px solid var(--ink);outline-offset:0}
/* the list */
.jc-lm{margin:16px 0 8px;font:600 20px/1.25 'Clash Grotesk','Instrument Sans',sans-serif}
.jc-lm:first-child{margin-top:0}
.jm-row.off{background:var(--jm-off);color:var(--jm-off-ink)}
.jm-row.off .jm-rt span{color:var(--jm-off-ink)}
.jc-dayv{margin:0 0 16px}
.jc-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:16px 0 0}
.jc-acts .btn{display:inline-flex;align-items:center;gap:8px;min-height:52px;font-size:17px}
.jc-acts .linkbtn{min-height:44px;font-size:17px}
/* full screen: over the whole page (the header and tabs under it); the X closes it */
html.jc-lock,html.jc-lock body{overflow:hidden}
.jm.jm-cal.jc-fs{position:fixed;inset:0;z-index:300;max-width:none;margin:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--bg);
  padding:max(12px,env(safe-area-inset-top)) max(16px,calc(50% - 560px)) max(32px,env(safe-area-inset-bottom))}
@media (min-width:900px){.jc-fs .jc-c{min-height:120px}}

/* ---------- a request's page ---------- */
.jm.jm-rq,.jm.jm-form,.jm.jm-rcpt{max-width:640px}
.jm-kick{display:flex;align-items:center;gap:8px;margin:-4px 0 6px;font-size:17px;font-weight:600;color:var(--sub)}
.jm-pw{margin:-8px 0 12px;font-size:17px;color:var(--sub)}
.jm-qa{margin:0;display:grid;gap:12px}
.jm-qa dt{font-size:16px;font-weight:600;color:var(--sub)}
.jm-qa dd{margin:2px 0 0;font-size:18px}
.jm-na{color:var(--sub);font-style:italic}
.jm-pay{margin:0;display:grid;gap:2px;padding:12px 16px;border-radius:var(--r-lg);background:var(--card);border:1px solid var(--line)}
.jm-pay>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:34px;font-size:18px}
.jm-pay dt{color:var(--sub)}
.jm-pay dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.jm-pay>div.you{border-top:1px solid var(--line);margin-top:4px;padding-top:6px}
.jm-pay>div.you dt{color:var(--ink);font-weight:700}
.jm-pay>div.you dd{font:600 24px/1.2 'Clash Grotesk','Instrument Sans',sans-serif}
.jm-pay>div.off dd{color:var(--sub);font-weight:400}
.jm-pay>div.fee dd{color:var(--sub);font-weight:400}   /* Stripe's card fee, between Owner pays and Plona pays you */
.jm-pay.sm{margin:0 14px 12px;padding:8px 12px}
.jm-pay.sm>div{font-size:16px;min-height:28px}
.jm-pay.sm>div.you dd{font-size:19px}
.jm-half{margin:10px 0 0;font-size:17px;line-height:1.45}
.jm-acts2{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}
.jm-acts2 .btn{display:inline-flex;align-items:center;gap:8px;min-height:52px;font-size:17px}

/* ---------- Business summary ---------- */
.jm.jm-bz{max-width:900px}
.jm-tp{margin-top:4px}
/* the inner tabs and the periods as one row each (a segmented bar, as the calendar's views), never wrapping on a phone */
.jm-bz .jm-itabs{flex-wrap:nowrap;gap:4px;padding:4px;border-radius:14px;background:var(--wait)}
.jm-bz .jm-itab{flex:1 1 auto;justify-content:center;min-width:0;padding:0 8px;border:0;border-radius:10px;font-size:16px;white-space:nowrap;text-align:center}
.jm-bz .jm-itab.on{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.18)}
.jm-rcpt>.row{margin-bottom:14px}
.jm-rcpt>.jm-mline{margin:0 0 22px}
.jm-per{display:flex;gap:6px;margin:0 0 14px}
.jm-per a{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 10px;border-radius:24px;border:1.5px solid var(--field);color:var(--ink);text-decoration:none;font-size:16px;font-weight:600;white-space:nowrap}
.jm-per a.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.jm-ph2{margin:0 0 10px;font:600 22px/1.25 'Clash Grotesk','Instrument Sans',sans-serif}
.jm-tiles{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:700px){.jm-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jm-tile{padding:14px;border-radius:var(--r-lg);background:var(--card);border:1px solid var(--line);min-width:0}
.jm-tile dt{font-size:16px;line-height:1.3;color:var(--sub)}
.jm-tile dd{margin:4px 0 0;display:flex;flex-direction:column;gap:2px}
.jm-tile dd b{font:600 26px/1.15 'Clash Grotesk','Instrument Sans',sans-serif;overflow-wrap:anywhere}
.jm-tile dd span{font-size:15px;line-height:1.35;color:var(--sub)}
.jm-tile.xp dd b{color:var(--jm-bk)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .jm-tile.xp dd b{color:#8DB6E6}}
:root[data-theme=dark] .jm-tile.xp dd b{color:#8DB6E6}
.jm-tile.keep{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.jm-trips{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.jm-trip{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card);overflow:hidden}
.jm-rc{margin:-4px 14px 12px;font-size:15px;color:var(--sub)}
.jm-msgs{margin-bottom:6px}

/* ---------- days off, receipts, the final call, the outreach email ---------- */
.jm-form .fi>input{font-size:18px}
.jm-form .stp-pick{margin:0 0 var(--v-group)}
.jm-form .stp-pick legend{margin:0 0 8px;font-size:18px;font-weight:600}
.jm-form .stp-opt span{font-size:18px}
.jm-form .row .btn{min-height:52px;font-size:18px}
.jm-offs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.jm-offs li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r-md);background:var(--jm-off);color:var(--jm-off-ink)}
.jm-offs .jm-rt span{color:var(--jm-off-ink)}
.jm-offs .btn{min-height:44px;background:var(--card);color:var(--ink)}
.jm-rtrips{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.jm-rtrip{padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.jm-rtrip h3{margin:0 0 2px;font:600 20px/1.25 'Clash Grotesk','Instrument Sans',sans-serif}
.jm-rlk{margin:4px 0}
.jm-rlk a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:17px;font-weight:600}
.jm-rlk svg{width:20px;height:20px}
.jm-rcps{list-style:none;margin:6px 0;padding:0;display:grid;gap:6px}
.jm-rcp{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.jm-rcp .jm-rt b{font-size:17px}
.jm-rcp .jm-rt{flex:1 1 180px;min-width:0}   /* review fix, Oct 25: on a phone View and Remove go under the words, never squeezing them */
.jm-rb{display:flex;gap:8px}
.jm-rb .btn{min-height:44px}
.jm-radd{margin:8px 0 0}
.jm-radd .btn{min-height:48px;font-size:17px}
.jm-up{margin:0 0 var(--v-field)}
.jm-upl{margin:0 0 6px;font-size:17px;font-weight:600}
.jm-em{margin:0 0 8px}
/* a receipt's kind: the three choices in one row (the page's one task stays on a phone's screen) */
#jr-k{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#jr-k legend{grid-column:1/-1}
#jr-k .stp-opt span{min-height:56px;padding:8px 8px 8px 38px;font-size:17px;line-height:1.2}
#jr-k .stp-opt span:before{left:10px;width:20px;height:20px;margin-top:-10px}

/* ---------- a request's terms (review fix, Oct 25) ---------- */
.jm-terms{flex-direction:column;gap:8px}
.jm-tno{margin:0 0 12px}

/* ---------- larger on a computer (JOE-MODE-V1-SPEC item 10; review fix, Oct 25): the words a size up at 900px and wider ---------- */
@media (min-width:900px){
  .jm .jm-lead,.jm-it-m,.jm-half,.jm-qa dd,.jm-empty,.jm-offc p,.jm-pw,.jm-kick{font-size:20px}
  .jm-rt b{font-size:20px}
  .jm-rt span,.jm-it-k,.jm-it-due,.jm-chk,.jm-chk.sm,.jm-tile dt,.jm-leg,.jm-qa dt{font-size:18px}
  .jm-note,.jm-rc{font-size:17px}
  .jm-mline{font-size:21px}
  .jm-pay>div{font-size:20px}
  .jm-pay.sm>div{font-size:18px}
  .jm-pay>div.you dd{font-size:27px}
  .jm-tile dd span{font-size:16px}
  .jm-tile dd b{font-size:28px}
  .jm-it h3{font-size:24px}
  .jm-it-get{font-size:20px}
}
