/* Option 4 · Day planner layout: icon rail, date header, week strip. Swap this file (and layouts/planner.js) to change layouts.
   The rail, the avatar and the header's top strip are the school's own colors (--brand-*); everything else uses the platform's. */
.jb-app { display: flex; flex-direction: column; min-height: calc(100vh / var(--zf, 1)); background: var(--paper); }
.jb-body { flex: 1 1 auto; display: flex; min-width: 0; }
.jb-rail { width: 68px; flex: none; background: var(--brand-b); padding: 14px 10px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: var(--jb-head, 0px); height: calc(100vh / var(--zf, 1) - var(--jb-head, 0px)); height: calc(100dvh / var(--zf, 1) - var(--jb-head, 0px)); overflow-y: auto; scrollbar-width: none; }
.jb-rail::-webkit-scrollbar { display: none; }
.jb-rail .grp { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--on-brand-b-rule); }
.jb-rail .grp:last-child { border-bottom: 0; }
.jb-rail .gname { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-brand-b-muted); padding: 4px 0; text-align: center; }
.jb-rail a { position: relative; width: 48px; height: 48px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--on-brand-b); transition: background-color .15s; }
.jb-rail a:hover { background: var(--on-brand-b-hover); }
.jb-rail a[aria-current="page"] { background: var(--paper); color: var(--brand-b-text); }
.jb-rail a .jb-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; font-size: 10px; border: 2px solid var(--brand-b); }
.jb-rail a .jb-ico { width: 23px; height: 23px; }
.jb-rail a:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
/* the hover name beside an icon-only menu item (positioned by railTips in layouts/planner.js) */
.jb-railtip { position: fixed; z-index: 60; transform: translateY(-50%); pointer-events: none; padding: 6px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 18px rgba(20, 20, 40, .22); }
.jb-railtip::before { content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--ink); }
.jb-railtip.in { animation: jb-railtip-in .14s ease-out; }
@keyframes jb-railtip-in { from { opacity: 0; transform: translate(-4px, -50%); } }
@media (prefers-reduced-motion: reduce) { .jb-railtip.in { animation: none; } }

.jb-main { flex: 1 1 auto; min-width: 0; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
/* full-width header, always at the top: school logo, date, search, role switch, bell, account */
.jb-top { position: sticky; top: 0; z-index: 35; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 32px 12px 32px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 4px 14px rgba(40,30,20,.04); }
.jb-top .logolink { display: inline-flex; }
html { scroll-padding-top: calc(var(--jb-head, 0px) + 12px); }
.jb-top .logo { height: 54px; width: auto; max-width: 260px; object-fit: contain; }
.jb-top .date { flex: 1 1 220px; display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 22px; }
.jb-top .date .d1 { font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-text); }
.jb-top .date .d2 { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.05; }
.jb-top .date .d2 .sh { display: none; }
.jb-top .who { display: flex; align-items: center; gap: 12px; }
.jb-top .who .nm { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.jb-top .who .nm .g { font-family: var(--serif); font-size: 18px; }
.jb-top .who .nm .r { font-size: 13px; color: var(--ink-3); }
.jb-top .me { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-a); color: var(--on-brand-a); border: 0; font-weight: 700; font-size: 14px; cursor: pointer; }
.jb-menu { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 40; display: flex; flex-direction: column; }
.jb-menu a, .jb-menu button { text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; color: var(--ink); font-size: 15px; cursor: pointer; }
.jb-menu a:hover, .jb-menu button:hover { background: var(--chip-soft); }
.jb-menu-h { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.jb-menu [role="menuitemradio"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jb-menu [aria-checked="true"] { color: var(--maroon-text); font-weight: 700; }
.jb-menu [role="menuitemradio"] svg { width: 18px; height: 18px; }
.jb-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 4px; }
.jb-notif { position: relative; }
.jb-notif .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--maroon); }
.jb-pop { position: absolute; right: 0; top: 48px; width: min(360px, calc(100vw / var(--zf, 1) - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); z-index: 40; padding: 8px 14px; max-height: 420px; overflow: auto; }

.jb-week { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jb-week .day { min-height: 62px; min-width: 84px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #333; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; line-height: 1.2; text-decoration: none; }
.jb-week .day .n { font-size: 18px; }
.jb-week .day .note { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-week .day.on { background: var(--maroon); border-color: var(--maroon); color: var(--on-maroon); }
.jb-week .day.on .note { color: var(--on-maroon); opacity: .8; }

.jb-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.jb-page-head .jb-h1 { font-size: 32px; }
/* Today: the week sits on the greeting's line, to its right (it wraps below on narrow screens) */
.jb-page-head:has(> .jb-headstrip) { align-items: center; }
.jb-page-head > .jb-headstrip:empty { display: none; }
.jb-headstrip .jb-week { flex-wrap: nowrap; }
/* phones: no five-day strip (the Dashboard's Tonight card has Week →) */
@media (max-width: 760px) { .jb-page-head > .jb-headstrip, #jb-strip { display: none !important; } }

/* timeline */
.jb-tl { display: grid; grid-template-columns: 52px 18px minmax(0, 1fr); column-gap: 10px; }
.jb-tl .tm { font-size: 13px; font-weight: 700; color: var(--sage-text); text-align: right; padding-top: 1px; }
.jb-tl .rail { display: flex; flex-direction: column; align-items: center; }
.jb-tl .rail .pt { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--sage); background: #fff; flex: none; }
.jb-tl .rail .pt.now { background: var(--maroon); border-color: var(--maroon); }
.jb-tl .rail .pt.past { background: var(--sage-soft); border-color: var(--sage-soft); }
.jb-tl .rail .ln { flex: 1; width: 2px; background: var(--line); min-height: 22px; }
.jb-tl .bd { display: flex; flex-direction: column; padding-bottom: 14px; align-items: flex-start; }
.jb-tl .bd .tt { font-weight: 600; color: var(--ink); text-decoration: none; }
.jb-tl .bd a.tt:hover { text-decoration: underline; }
.jb-tl .bd.past .tt { color: var(--ink-3); }
.jb-upnext { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon-text); background: var(--maroon-tint); padding: 3px 8px; border-radius: 4px; }

/* docked list beside the menu (people split view): names stay scrollable and clickable while a profile is open */
.jb-sublist { width: 264px; flex: none; position: sticky; top: var(--jb-head, 0px); height: calc(100vh / var(--zf, 1) - var(--jb-head, 0px)); height: calc(100dvh / var(--zf, 1) - var(--jb-head, 0px)); background: var(--sage-mist); border-right: 1px solid var(--sage-line); display: flex; flex-direction: column; }
.jb-sublist[hidden] { display: none; }
.jb-sl-head { padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--sage-line); }
.jb-sl-head .back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--sage-text); text-decoration: none; }
.jb-sl-head .back .jb-ico { width: 16px; height: 16px; }
.jb-sl-head .back:hover { text-decoration: underline; }
.jb-sl-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.jb-sl-search .jb-ico { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.jb-sl-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; width: 100%; min-width: 0; }
.jb-sl-search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }
.jb-sl-list { flex: 1 1 auto; overflow-y: auto; padding: 6px 8px 28px; overscroll-behavior: contain; }
.jb-sl-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; line-height: 1.25; font-size: 14.5px; }
.jb-sl-list a[hidden] { display: none; }
.jb-sl-list a .sb { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.jb-sl-list a:hover { background: rgba(255, 255, 255, .7); }
.jb-sl-list a:focus-visible { outline: 2px solid var(--sage); outline-offset: -2px; }
.jb-sl-list a[aria-current="page"] { background: #fff; color: var(--maroon-text); font-weight: 700; box-shadow: inset 3px 0 0 var(--maroon), 0 1px 2px rgba(0, 0, 0, .06); }
.jb-sl-group { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 4px; }
.jb-sl-group[hidden] { display: none; }
.jb-sl-none { padding: 10px; font-size: 14px; }
.jb-sl-mobileback { display: none; margin: 0; }
.jb-sl-mobileback a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--sage-text); text-decoration: none; }
body:not(.jb-has-sublist) .jb-sl-mobileback { display: block; }
@media (max-width: 1100px) { .jb-sublist { width: 220px; } }

/* phones: the rail becomes a bottom tab bar with "More" */
.jb-tabbar, .jb-more { display: none; }
@media (max-width: 760px) {
  .jb-rail { display: none; }
  .jb-sublist { display: none !important; }
  .jb-sl-mobileback { display: block; }
  .jb-main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); gap: 16px; }
  .jb-top { flex-wrap: nowrap; gap: 10px; padding: 8px 12px; }
  .jb-top .logo { height: 34px; max-width: 96px; }
  .jb-top .date { flex: 1 1 auto !important; padding-left: 10px; min-width: 0; overflow: hidden; }
  .jb-top .date .d1 { display: none; }
  .jb-top .date .d2 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jb-top .date .d2 .lg { display: none; }
  .jb-top .date .d2 .sh { display: inline; }
  .jb-top .jb-top-search { flex: 0 0 auto !important; margin-left: 0; }
  .jb-top .jb-iconbtn, .jb-top .me { width: 40px; height: 40px; min-height: 40px; }
  .jb-top .who .nm { display: none; }
  /* logo, date, then search, bell and the avatar at the far right */
  .jb-top .logolink { order: 0; } .jb-top .date { order: 1; } .jb-top .jb-top-search { order: 2; } .jb-top .jb-helpbtn { order: 3; }
  .jb-top .jb-acct { order: 4; } .jb-top .jb-notif { order: 5; } .jb-top .who { order: 6; }
  .jb-week { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  /* every day card the same width; a long note is trimmed inside its card instead of spilling past it */
  .jb-week .day { flex: 0 0 84px; width: 84px; min-width: 0; padding: 6px 8px; }
  .jb-week .day .note { max-width: 100%; }
  /* the floating pill tab bar (pwa-floating-tab-bar): clear of the edges and the home indicator, one height everyone clears */
  .jb-tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 460px; z-index: 30; padding: 4px; gap: 2px; justify-content: space-around; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 28px; box-shadow: 0 6px 24px rgba(27,20,15,.16), 0 1px 4px rgba(27,20,15,.08); }
  .jb-tabbar a, .jb-tabbar button { position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; padding: 6px 2px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #6A6A6A; text-decoration: none; font-size: 10.5px; font-weight: 700; letter-spacing: -.1px; background: none; border: 0; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
  .jb-tabbar a > span:not(.jb-badge), .jb-tabbar button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
  .jb-tabbar :is(a, button) svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .jb-tabbar :is(a, button):active { opacity: .7; }
  .jb-tabbar [aria-current="page"] { color: var(--maroon-text); background: color-mix(in srgb, var(--maroon) 16%, transparent); }
  .jb-tabbar .jb-badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: 10px; border: 2px solid #fff; }
  /* More: a pop-up in the middle of the screen (swipe down to close), like every other panel on a phone */
  .jb-more.open { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 60; background: rgba(27,20,15,.38); padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); }
  .jb-more .panel { position: relative; width: 100%; max-width: 520px; max-height: calc(82vh / var(--zf, 1)); max-height: calc(82dvh / var(--zf, 1)); overflow: auto; background: var(--paper); border-radius: 20px; padding: 14px 16px 18px; box-shadow: 0 20px 60px rgba(20,16,12,.25); animation: jb-pop-in .18s cubic-bezier(.2, .9, .3, 1); }
  .jb-more .panel.jb-snap { transition: transform .22s cubic-bezier(.2, .9, .3, 1); }
  .jb-more .panel .gname { font-family: var(--caps); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-text); margin: 12px 0 6px; }
  .jb-more .panel .gr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .jb-more .panel a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; }
}

/* header search (Option 4 places it between the date and the account buttons) */
.jb-top-search { flex: 1 1 300px; max-width: 480px; display: flex; justify-content: flex-end; }
.jb-gsearch { position: relative; width: 100%; }
.jb-gsearch .jb-search { min-height: 44px; }
.jb-gsearch-btn, .jb-gsearch-x { display: none; }
@media (max-width: 760px) {
  .jb-top-search { flex: 0 0 auto; order: 2; }
  .jb-gsearch { display: none; }
  .jb-gsearch-btn { display: inline-flex; }
  /* tapping search: the box grows across the whole header (the other buttons step aside) */
  .jb-top.jb-searching > :not(.jb-top-search) { display: none; }
  .jb-top.jb-searching .jb-top-search { flex: 1 1 auto !important; }
  .jb-top.jb-searching .jb-gsearch-btn { display: none; }
  .jb-top.jb-searching .jb-gsearch { display: flex; align-items: center; gap: 8px; animation: jb-search-grow .22s cubic-bezier(.2,.8,.2,1); transform-origin: right center; }
  .jb-top.jb-searching .jb-gsearch .jb-search { flex: 1 1 auto; min-height: 40px; }
  .jb-top.jb-searching .jb-gsearch .jb-kbd { display: none; }
  .jb-top.jb-searching .jb-gsearch-x { display: inline-flex; flex: 0 0 auto; background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 600; color: var(--maroon-text); cursor: pointer; }
  .jb-top.jb-searching .jb-sr-pop { position: fixed; left: 8px; right: 8px; top: calc(var(--jb-head, 56px) + 4px); max-height: calc(70vh / var(--zf, 1)); }
}
@keyframes jb-search-grow { from { opacity: 0; transform: scaleX(.35); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jb-top.jb-searching .jb-gsearch { animation: none; } }
.jb-top .date { flex: 0 1 auto; }
.jb-top-search { flex: 1 1 260px; max-width: 520px; margin-left: auto; }
@media (max-width: 1500px) { .jb-top .who .nm { display: none; } }
/* small tablets and phones on their side: one header row (the search box gives way) and, when the screen is short, a slimmer one */
@media (min-width: 761px) and (max-width: 1100px) { .jb-top { flex-wrap: nowrap; } .jb-top .date { min-width: 0; } .jb-top-search { flex: 1 1 140px; min-width: 0; } .jb-top .jb-iconbtn, .jb-top .me { flex: none; } .jb-top .date .d2 { white-space: nowrap; font-size: min(36px, 4vw); } }
@media (min-width: 761px) and (max-height: 500px) { .jb-top { padding-top: 6px; padding-bottom: 6px; } .jb-top .date .d1 { display: none; } .jb-top .logo { max-height: 40px; width: auto; } }
@media (max-width: 1100px) { .jb-top .jb-kbd { display: none; } }
/* hub tabs: a hub's pages across the top of each of them; on setup pages, the way back to Manage account */
.jb-hubtabs { margin-bottom: -4px; }
.jb-hubtabs .jb-badge { margin-left: 6px; vertical-align: 2px; }
.jb-hubtabs.jb-crumb { font-size: 14px; }
@media (max-width: 760px) { .jb-hubtabs.jb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; } .jb-hubtabs.jb-tabs a { white-space: nowrap; } }
/* Manage account: one card per settings area */
.jb-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.jb-manage a { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; color: var(--ink); }
.jb-manage a:hover { border-color: var(--maroon-line); background: var(--maroon-wash); }
.jb-manage .jb-ico { width: 22px; height: 22px; color: var(--maroon-text); flex: none; margin-top: 2px; }
.jb-manage b { display: block; font-size: 16px; margin-bottom: 2px; }
.jb-manage span { font-size: 14px; color: var(--ink-3); }
/* Manage account: the left menu turns into that section's menu (layouts/planner.js railFor) */
.jb-rail .jb-railsep { flex: none; width: 28px; height: 1px; margin: 4px auto; background: var(--on-brand-b-rule, rgba(255,255,255,.18)); }
.jb-rail a.jb-railback { opacity: .8; }
.jb-rail a.jb-railback:hover { opacity: 1; }
/* the "← Manage account" link above account pages: the menu does this on wide screens, phones keep it */
@media (min-width: 761px) { .jb-hubtabs.jb-crumb { display: none; } }
/* the Manage account menu has more items than the main one: a little tighter so all of them fit on the screen */
.jb-rail.mgmt { gap: 2px; padding-top: 10px; }
.jb-rail.mgmt a { height: 42px; }
.jb-rail.mgmt a .jb-ico { width: 21px; height: 21px; }
.jb-rail.mgmt a.jb-railback { position: sticky; top: -10px; z-index: 1; background: var(--brand-b); opacity: 1; color: var(--on-brand-b-muted, var(--on-brand-b)); box-shadow: 0 6px 8px -6px rgba(0, 0, 0, .25); }
.jb-rail.mgmt a.jb-railback:hover { color: var(--on-brand-b); background: var(--brand-b); }
/* the platform owner's account switcher (header → Accounts) */
.jb-acctpop { position: absolute; right: 0; top: 48px; width: min(400px, calc(100vw / var(--zf, 1) - 32px)); max-height: min(560px, calc(100vh / var(--zf, 1) - 90px)); max-height: min(560px, calc(100dvh / var(--zf, 1) - 90px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 50px rgba(20, 16, 12, .2); z-index: 41; overflow: hidden; }
.jb-acctpop .hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; font-size: 15px; color: var(--ink); }
.jb-acctpop .hd .jb-ico { width: 20px; height: 20px; color: var(--ink-3); }
.jb-acctpop .sr { padding: 0 14px 10px; border-bottom: 1px solid var(--line-soft); }
.jb-acctpop .sr input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14.5px; background: var(--paper); }
.jb-acctpop .sr input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); background: #fff; }
.jb-acctpop .ls { overflow-y: auto; padding: 6px 6px 8px; overscroll-behavior: contain; }
.jb-acctpop .ls > p { padding: 10px 12px; margin: 0; }
.jb-acctpop .ls hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.jb-acctpop .it { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.jb-acctpop .it:hover, .jb-acctpop .it:focus-visible { background: var(--chip-soft); outline: none; }
.jb-acctpop .it .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-4, #b9b4ad); box-sizing: border-box; }
.jb-acctpop .it.on { cursor: default; }
.jb-acctpop .it.on .dot { border-color: #EA580C; background: radial-gradient(circle, #EA580C 0 4px, transparent 4.5px); }
.jb-acctpop .it .nm { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.jb-acctpop .it .nm small { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--chip-soft); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.jb-acctpop .it .ct { grid-column: 2; font-size: 12px; color: var(--ink-3); }
.jb-acctpop .it.busy { opacity: .55; }
.jb-acctpop a.it { text-decoration: none; }
.jb-acctpop a.it.busy { opacity: .55; pointer-events: none; }
/* the Edwin console, first in the Accounts menu (the way back to the master admin) */
.jb-acctpop .it.console .mark, .pf-acctpop .it.console .mark { width: 18px; height: 18px; border-radius: 5px; background: #1f1f24; color: #fff; font: 800 11px/18px var(--sans); text-align: center; }
.jb-acctpop .it.console .nm { font-weight: 600; }
/* phones: notifications and the accounts list drop down across the screen under the header (the bell is no longer at the
   right edge, so a panel lined up with it ran off the left side) */
@media (max-width: 760px) {
  .jb-top .jb-pop, .jb-top .jb-acctpop { position: fixed; left: 8px; right: 8px; top: calc(var(--jb-head, 56px) + 6px); width: auto; max-height: calc(75vh / var(--zf, 1)); overflow-y: auto; }
}
/* the bell: Messages (unread threads, new texts) above Notifications */
.jb-pop .jb-pop-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 14px 4px; font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-text); }
.jb-pop .jb-pop-h a { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; color: var(--maroon-text); text-decoration: none; }
.jb-pop .jb-msg { align-items: flex-start; }
.jb-pop .jb-pop-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--maroon) 10%, transparent); color: var(--maroon-text); margin-right: 10px; }
.jb-pop .jb-pop-ic .jb-ico { width: 16px; height: 16px; }
/* phones: "Edit home screen" leads the account menu */
.jb-menu .jb-menu-primary { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--maroon-text); }
.jb-menu .jb-menu-primary .jb-ico { width: 18px; height: 18px; flex: 0 0 auto; }
/* phones: swiping right goes back (layouts/planner.js swipeBack): the page follows the finger, an arrow fills in */
.jb-main.jb-backsnap { transition: transform .22s cubic-bezier(.2, .9, .3, 1); }
.jb-backarrow { position: fixed; left: 10px; top: 50%; z-index: 80; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--maroon-text); box-shadow: 0 4px 16px rgba(20,16,12,.18); opacity: 0; pointer-events: none; transition: background .12s, color .12s; }
.jb-backarrow .jb-ico { width: 22px; height: 22px; }
.jb-backarrow.go { background: var(--maroon); color: var(--on-maroon, #fff); }

/* touch screens: small controls get an invisible 44px touch area (same idea as .ag-check::after); the look doesn't change */
@media (pointer: coarse) {
  .jb-info, .jb-wtool, .ag-addday, .ag-edit, .ag-fold, .jb-banner-x, .dk-switch button, .ac-chip { position: relative; }
  .jb-info::after, .jb-wtool::after, .ag-addday::after, .ag-edit::after, .ag-fold::after, .jb-banner-x::after, .dk-switch button::after, .ac-chip::after { content: ''; position: absolute; }
  .jb-info::after { inset: -12px; }
  .jb-wtool::after, .jb-banner-x::after { inset: -8px; }
  .ag-addday::after, .ag-edit::after, .ag-fold::after { inset: -7px; }
  .dk-switch button::after { inset: -9px 0; }
  .ac-chip::after { inset: -8px 0; }
}
