/* /account: your profile. js/account.js (who you are, settings), js/profile.js (the header, tabs, Overview, Badges,
   Activity, your photo, Eben's peek) and js/eben.js (the Eben tab). Built with Compact (.cx, in f39.css): dense,
   still WCAG 2.2 AA. Breakpoints are the site's four. */

.pf [hidden], .eb-peek[hidden] { display: none !important; }   /* hidden wins over a component's own display */

/* ---------- The header: who you are, your level, your numbers ---------- */
.pf-head { position: relative; overflow: hidden; background: var(--ink); color: var(--scroll);
  background-image: radial-gradient(ellipse 60% 120% at 92% -10%, rgba(186, 149, 84, .26), transparent 60%),
    radial-gradient(ellipse 40% 90% at 0% 120%, rgba(42, 91, 140, .32), transparent 60%); }
.pf-head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5) var(--s-7); align-items: end; padding-block: var(--s-7) var(--s-6); }
.pf-id { display: flex; align-items: center; gap: var(--s-5); min-width: 0; }
.pf-pic { position: relative; flex: none; width: 116px; height: 116px; }
.pf-avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px var(--gold); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-pic-btn { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 3px solid var(--ink);
  border-radius: 50%; background: var(--gold); color: var(--ink); cursor: pointer; transition: background .15s var(--ease); }
.pf-pic-btn:hover { background: var(--scroll); }
.pf-pic-btn svg { width: 20px; height: 20px; }
.pf-who { min-width: 0; }
.pf-who .eyebrow { color: var(--muted-on-dark); margin-bottom: var(--s-2); }
.pf-who h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; margin: 0 0 var(--s-2); color: var(--scroll); overflow-wrap: anywhere; }
.pf-who h1:focus { outline: none; }
.pf-meta { margin: 0 0 var(--s-3); color: var(--muted-on-dark); font-size: var(--fs-small); }
.pf-level { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: .2rem .9rem .2rem .3rem; border: 1.5px solid var(--gold);
  border-radius: var(--radius-pill); color: var(--scroll); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: .875rem; }
.pf-level b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .875rem; }
.pf-level:hover { background: rgba(186, 149, 84, .18); }
.pf-kpis { list-style: none; display: grid; grid-template-columns: repeat(4, auto); margin: 0; padding: 0; }
.pf-kpis li + li { border-left: 1px solid var(--line-on-dark); }
.pf-kpis a { display: grid; gap: 2px; min-width: 96px; padding: var(--s-2) var(--s-5); color: var(--scroll); text-decoration: none; border-radius: var(--radius); }
.pf-kpis a:hover { background: rgba(247, 243, 236, .07); }
.pf-kpi-n { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.pf-kpi-n small { font-size: .5em; font-weight: 600; color: var(--muted-on-dark); letter-spacing: 0; }
.pf-kpi-l { font-size: .8125rem; color: var(--muted-on-dark); }
.pf-head .bar39 { height: 6px; }
.pf-loading { padding-block: var(--s-7); }
.pf-loading .lead { margin: 0; }

/* ---------- Tabs: Overview · Badges · Activity · Eben · Settings (links to #ids, so every tab has an address) ---------- */
.pf-tabs { position: sticky; top: 76px; z-index: 6; background: color-mix(in srgb, var(--scroll) 96%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pf-tabs ul { list-style: none; display: flex; gap: var(--s-1); margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.pf-tabs ul::-webkit-scrollbar { display: none; }
.pf-tabs a { display: flex; align-items: center; gap: .5em; min-height: 52px; padding: 0 var(--s-4); margin-bottom: -1px; border-bottom: 3px solid transparent;
  color: var(--stone); text-decoration: none; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.pf-tabs a:hover { color: var(--ink); border-bottom-color: var(--line); }
.pf-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.pf-tabs a:focus-visible { outline-offset: -3px; }
.pf-tabs .cx-chip { font-size: .6875rem; padding: .1em .55em; }
.pf-tabs li:first-child a { margin-left: calc(-1 * var(--s-4)); }

/* ---------- Panels ---------- */
.pf-body { padding-block: var(--s-6) var(--s-9); }
.pf-panel, .pf [id] { scroll-margin-top: 150px; }
.pf-panel:focus { outline: none; }
.pf-panel > h2:focus, .pf-panel h2[tabindex="-1"]:focus { outline: none; }
.pf-panel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-5); }
.pf-panel-head h2 { font-size: var(--fs-h3); margin: 0; }
.pf-panel-head p { margin: var(--s-1) 0 0; color: var(--stone); max-width: 62ch; }
.pf-body .form-msg[data-ac-note] { margin: 0 0 var(--s-5); }
.pf-body .form-msg[data-ac-note]:empty { display: none; }

.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: var(--cx-gap); align-items: start; }
.pf-main, .pf-rail { display: grid; gap: var(--cx-gap); min-width: 0; }
.pf-main > :empty { display: none; }

/* Up next: the study card (js/profile.js), compact on Cedar */
.pf-up.pt-continue { grid-template-columns: 148px minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6); margin: 0; }
.pf-up.pt-continue h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.05; margin: 0 0 var(--s-3); color: var(--scroll); }
.pf-up .pt-sub { font-size: 1rem; margin-bottom: var(--s-3); }
.pf-up .pt-weeks { max-width: 26rem; margin-bottom: var(--s-4); gap: 5px; }
.pf-up .pt-weeks a, .pf-up .pt-weeks li > span { min-height: 36px; font-size: .8125rem; }
@media (pointer: coarse) { .pf-up .pt-weeks a, .pf-up .pt-weeks li > span { min-height: 44px; } }
.pf-up .btn { padding: .7rem 1.1rem; font-size: .8125rem; min-height: 44px; }
.pf-up .cx-k { color: var(--accent-on-dark); margin-bottom: var(--s-2); }

/* ---------- Get set up: the checklist ---------- */
.pf-setup-top { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-4); }
.pf-setup-top .cx-meter { flex: 1; }
.pf-setup-top b { font-family: var(--font-display); font-size: var(--cx-fs-sm); white-space: nowrap; }
.pf-todo { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.pf-todo:first-child { border-top: 0; padding-top: 0; }
.pf-check { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--stone); border-radius: 50%; color: transparent; }
.pf-check svg { width: 14px; height: 14px; }
.pf-todo.is-done .pf-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-todo h3 { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; line-height: 1.35; margin: 2px 0 2px; }
.pf-todo.is-done h3 { color: var(--stone); font-weight: 600; }
.pf-todo-why { font-size: var(--cx-fs-sm); color: var(--stone); margin: 0 0 var(--s-2); }
.pf-todo-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.pf-todo-form { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.pf-todo-form input { flex: 1; min-width: 0; min-height: var(--cx-tap); padding: .3rem .7rem; font: inherit; font-size: var(--cx-fs); color: var(--ink);
  border: 1.5px solid rgba(22, 21, 20, .3); border-radius: var(--radius); background: #fff; }
.pf-todo-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(186, 149, 84, .45); }
.pf-done-list summary { display: flex; align-items: center; min-height: var(--cx-tap); margin-top: var(--s-2); cursor: pointer; font-size: var(--cx-fs-sm); font-weight: 600; color: var(--stone); }
.pf-done-list summary:hover { color: var(--ink); }
.pf-done-list .cx-list { margin-top: var(--s-2); }
.pf-all-set { display: flex; align-items: center; gap: var(--s-3); }
.pf-all-set .pf-check { flex: none; background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-all-set p { margin: 0; }

/* ---------- Your path: level, the road, your next steps, the steps you've taken ---------- */
.pf-path-top { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); }
.pf-path-top .jy-ring { width: 96px; height: 96px; color: var(--ink); }
.pf-path-top .jy-ring-k { fill: var(--stone); }
.pf-path-top .jy-ring-n { fill: var(--ink); }
.pf-path-top .jy-ring-on { stroke: var(--accent); }
.pf-path-top h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; margin: 2px 0 var(--s-1); }
.pf-path-top p { margin: 0; }
.pf-path-about { color: var(--stone); font-size: var(--cx-fs-sm); margin-bottom: var(--s-2) !important; }
.pf-path-n { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2) !important; font-size: var(--cx-fs-sm); }
.pf-path-n .cx-meter { flex: 1; max-width: 220px; }

.pf-road { position: relative; margin: 0 0 var(--s-2); }
.pf-road-track { position: absolute; top: 15px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; border-radius: 3px; background: var(--linen); }
.pf-road-track span { display: block; height: 100%; width: calc(var(--fill) * 100%); border-radius: inherit; background: var(--gold); }
.pf-road ol { position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--s-1); margin: 0; padding: 0; }
.pf-stop { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: start; gap: 3px; width: 100%; padding: 0 2px var(--s-1);
  text-align: center; cursor: pointer; border-radius: var(--radius); min-height: var(--cx-tap); }
.pf-stop:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pf-stop-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--stone);
  font-family: var(--font-display); font-weight: 800; font-size: .8125rem; color: var(--ink); transition: transform .15s var(--ease); }
.pf-stop:hover .pf-stop-dot { transform: scale(1.1); }
.pf-stop.is-past .pf-stop-dot { background: var(--gold); border-color: var(--gold); }
.pf-stop.is-here .pf-stop-dot { background: var(--ink); border-color: var(--ink); color: var(--scroll); box-shadow: 0 0 0 4px rgba(186, 149, 84, .45); }
.pf-stop[aria-expanded="true"] .pf-stop-dot { outline: 2px solid var(--accent); outline-offset: 3px; }
.pf-stop-name { font-family: var(--font-display); font-weight: 700; font-size: .75rem; line-height: 1.2; color: var(--ink); }
.pf-stop:not(.is-past):not(.is-here) .pf-stop-name { color: var(--stone); }
.pf-stop-info { margin: var(--s-3) 0 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--gold); background: var(--scroll); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--cx-fs-sm); }
.pf-stop-info:empty { display: none; }
.pf-stop-info b { font-family: var(--font-display); }
.pf-stop-info p { margin: 0; }

.pf-sub-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: var(--s-5) 0 var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pf-sub-h h3 { font-family: var(--font-display); font-size: .9375rem; margin: 0; }
.pf-next { list-style: none; display: grid; gap: var(--s-2); margin: 0; padding: 0; }
.pf-next li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); align-items: center; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pf-next li:hover { border-color: var(--accent); }
.pf-next-art { width: 52px; height: 52px; display: grid; place-items: center; }
.pf-next-art .f39-badge { width: 52px; height: auto; }
.pf-next-wk { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--cedar); color: var(--scroll); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.pf-next-main { min-width: 0; }
.pf-next-main p { margin: 0; }
.pf-next-k { font-size: .75rem; color: var(--stone); }
.pf-next-name { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.pf-next-main .cx-meter { margin: 4px 0 2px; max-width: 240px; }
.pf-next-amt { font-size: .75rem; color: var(--stone); }
.pf-next .cx-chip { justify-self: end; }
.pf-next-go { grid-column: 3; justify-self: end; }
.pf-taken summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--cx-tap); cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }
.pf-taken[open] summary { margin-bottom: var(--s-1); }
.pf-taken .cx-row time { margin-left: auto; font-size: .75rem; color: var(--stone); white-space: nowrap; }
.pf-taken .cx-row a { font-weight: 600; }
.pf-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.pf-mark svg { width: 12px; height: 12px; }
.pf-path-note { margin: var(--s-4) 0 0; font-size: .75rem; color: var(--stone); }

/* ---------- Numbers, recent, Eben (small), your choices ---------- */
.pf-recent .cx-row { align-items: center; }
.pf-recent .f39-badge, .pf-recent .pf-tl-wk { flex: none; width: 36px; height: 36px; }
.pf-tl-wk { display: grid; place-items: center; border-radius: 6px; background: var(--cedar); color: var(--scroll); font-family: var(--font-display); font-weight: 800; font-size: .8125rem; }
.pf-recent .cx-row a { font-weight: 600; color: var(--ink); text-decoration: none; }
.pf-recent .cx-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-recent time { flex: none; font-size: .75rem; color: var(--stone); }
.pf-empty { color: var(--stone); font-size: var(--cx-fs-sm); margin: 0; }
.pf-months .cx-row { min-height: 0; padding: 6px 0; gap: var(--s-3); }
.pf-month { flex: none; width: 3.2em; font-size: var(--cx-fs-sm); color: var(--stone); }
.pf-months .cx-meter { flex: 1; }
.pf-months b { flex: none; min-width: 2ch; text-align: right; font-family: var(--font-display); }

.pf-eben { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.pf-eben .ebb { width: 72px; height: 72px; }
.pf-eben p { margin: 0 0 var(--s-2); }
.pf-eben .cx-k { margin-bottom: 2px; }
.pf-eben-step { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; }

.pf-choices .cx-row { align-items: flex-start; cursor: pointer; }
.pf-choices .cx-row .switch { margin-top: 2px; }
.pf-choices .cx-row b { display: block; font-family: var(--font-display); font-size: .9375rem; line-height: 1.35; }
.pf-choices .cx-row span.cx-sub { display: block; }
/* A switch you can't turn on yet (Just One Thing before Eben is set up): a dashed track and a not-allowed cursor.
   The label keeps its full color, and the note under it says why. */
.pf-choices .cx-row:has(input:disabled) { cursor: not-allowed; }
.pf-choices .switch input:disabled { cursor: not-allowed; }
.pf-choices .switch input:disabled + .switch-track { border-style: dashed; background: var(--linen); }
.pf-choices .switch input:disabled + .switch-track::after { background: var(--stone); opacity: .55; }
.pf-daily-note { margin: 0 0 var(--s-2) !important; padding: var(--s-2) var(--s-3); border-left: 3px solid var(--gold); background: var(--scroll); font-size: var(--cx-fs-sm); }
.pf-choices .pf-choice-link { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); color: inherit; text-decoration: none; width: 100%; }
.pf-choices .pf-choice-link:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Badges tab ---------- */
.pf-groups { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-6); padding: 0; }
.pf-groups a { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.pf-groups a:hover { border-color: var(--accent); }
.pf-groups b { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-size: .9375rem; }
.pf-groups i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.pf-groups span { font-size: .75rem; color: var(--stone); }
.pf-shelf-sec { margin-bottom: var(--s-6); scroll-margin-top: 140px; }
.pf-shelf-sec h3 { display: flex; align-items: center; gap: var(--s-2); font-size: 1.05rem; margin: 0 0 var(--s-4); }
.pf-shelf-sec h3 i { width: 12px; height: 12px; border-radius: 50%; }
.pf-shelf-sec h3 small { font-family: var(--font-body); font-weight: 500; font-size: .8125rem; color: var(--stone); }
.pf-body .pt-shelf { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s-5) var(--s-3); }
.pf-body .pt-badge .f39-badge { max-width: 132px; }
.pf-body .pt-badge-name { font-size: .9375rem; }
.pf-body .pt-badge-status { font-size: .75rem; }

/* ---------- Activity tab ---------- */
.pf-act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: var(--cx-gap); align-items: start; }
.pf-body .pt-tl-m { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: var(--s-5) 0 var(--s-2); }
.pf-body .pt-tl-m:first-child { margin-top: 0; }
.pf-tl { list-style: none; margin: 0; padding: 0; }
.pf-tl li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.pf-tl li:first-child { border-top: 0; }
.pf-tl .f39-badge, .pf-tl .pf-tl-wk { flex: none; width: 40px; height: 40px; }
.pf-tl-k { display: block; font-size: .75rem; color: var(--stone); }
.pf-tl a { font-weight: 600; color: var(--ink); }
.pf-tl time { margin-left: auto; flex: none; font-size: .75rem; color: var(--stone); }

/* ---------- Settings tab ---------- */
.pf-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cx-gap); align-items: start; }
.pf-settings .cx-card h3 { font-family: var(--font-display); font-size: var(--cx-fs-h); margin: 0 0 var(--s-3); }
.pf-settings .cx-card > p { font-size: var(--cx-fs); }
.pf-settings .field { margin-bottom: var(--s-4); }
.pf-settings .field input { padding: .55rem .8rem; }
.pf-settings .acct-facts { margin-bottom: var(--s-4); font-size: var(--cx-fs); }
.pf-settings .acct-btns { gap: var(--s-2); }
.pf-photo-row { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.pf-photo-row .pf-avatar { width: 72px; height: 72px; font-size: 1.6rem; box-shadow: none; }
.pf-danger { border-top: 4px solid var(--danger); }
.pf-danger summary { display: flex; align-items: center; min-height: var(--cx-tap); cursor: pointer; font-family: var(--font-display); font-weight: 700; }
.pf-danger details[open] summary { margin-bottom: var(--s-3); }
.pf-body .btn--google { min-height: 44px; }

/* ---------- Your photo (a drawer: choose, move, zoom, save) ---------- */
dialog.pf-photo { width: min(480px, 100vw); }
.pf-photo-in { padding: var(--s-7) var(--s-6) var(--s-6); }
.pf-photo-in h2 { font-size: var(--fs-h3); margin: 0 0 var(--s-2); padding-right: 44px; }
.pf-photo-in > p { font-size: var(--cx-fs-sm); color: var(--stone); }
.pf-crop { position: relative; width: min(288px, 100%); aspect-ratio: 1; margin: var(--s-5) auto var(--s-3); border-radius: 50%; overflow: hidden;
  background: var(--linen) repeating-conic-gradient(rgba(22, 21, 20, .05) 0 25%, transparent 0 50%) 0 0 / 24px 24px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); touch-action: none; }
.pf-crop canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pf-crop canvas:active { cursor: grabbing; }
.pf-crop canvas:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 50%; }
.pf-crop-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-6); text-align: center; font-size: var(--cx-fs-sm); color: var(--stone); pointer-events: none; }
.pf-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center; max-width: 288px; margin: 0 auto var(--s-2); }
.pf-zoom label { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.pf-zoom input { width: 100%; min-height: 36px; accent-color: var(--accent); }
.pf-crop-help { text-align: center; font-size: .75rem; color: var(--stone); margin: 0 auto var(--s-5) !important; }
.pf-photo-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.pf-photo-rule { max-width: 34ch; margin: var(--s-4) auto 0 !important; text-align: center; font-size: var(--cx-fs-sm); color: var(--stone); }
.pf-photo-rule a { color: var(--accent); white-space: nowrap; }

/* ---------- Eben peeks in from the side (only while Eben is off or not set up; js/profile.js) ---------- */
.eb-peek { position: fixed; right: 0; bottom: max(14vh, 92px);   /* clear of the music player's button (.f39p) */ z-index: 40; display: flex; align-items: center; gap: var(--s-2); pointer-events: none; }
.eb-peek > * { pointer-events: auto; }
.eb-peek-head { width: 132px; height: 132px; margin-right: -40px; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 30px rgba(22, 21, 20, .3), 0 0 0 4px #fff;
  transform: rotate(-12deg); }
.eb-peek-head img { width: 100%; height: 100%; }
.eb-peek-bubble { position: relative; max-width: 290px; padding: var(--s-4) var(--s-4) var(--s-3); background: var(--ink); color: var(--scroll); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(22, 21, 20, .35); font-size: .9375rem; line-height: 1.45; }
.eb-peek-bubble::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; background: var(--ink); transform: translateY(-50%) rotate(45deg); border-radius: 3px; }
.eb-peek-bubble p { margin: 0 0 var(--s-3); }
.eb-peek-bubble b { color: var(--gold); font-family: var(--font-display); }
.eb-peek-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.eb-peek-btns .cx-btn--quiet { color: var(--muted-on-dark); }
.eb-peek-btns .cx-btn--quiet:hover { color: var(--scroll); }
.eb-peek.is-in .eb-peek-head { animation: eb-peek-head .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.eb-peek.is-in .eb-peek-bubble { animation: eb-peek-say .45s .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes eb-peek-head { from { transform: translateX(140%) rotate(20deg); } 70% { transform: translateX(-6%) rotate(-18deg); } }
@keyframes eb-peek-say { from { opacity: 0; transform: translateX(16px) scale(.92); } }

/* ---------- Sizes ---------- */
@media (max-width: 1279px) {
  .pf-kpis a { min-width: 84px; padding-inline: var(--s-4); }
  .pf-kpi-n { font-size: 1.8rem; }
}
@media (max-width: 1023px) {
  .pf-head-in { grid-template-columns: 1fr; align-items: start; }
  .pf-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-on-dark); padding-top: var(--s-3); }
  .pf-kpis li:first-child a { padding-left: 0; }
  /* One column, with the guidance first: set up, then up next, then the rest. */
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-main, .pf-rail { display: contents; }
  .pf-setup { order: 1; } .pf-up { order: 2; } .pf-path { order: 3; } .pf-eben-card { order: 4; }
  .pf-nums { order: 5; } .pf-recent { order: 6; } .pf-choices { order: 7; }
  .pf-act { grid-template-columns: minmax(0, 1fr); }
  .pf-up.pt-continue { grid-template-columns: 120px minmax(0, 1fr); padding: var(--s-5); }
}
@media (max-width: 767px) {
  .pf-tabs { top: 64px; }
  .pf-head-in { padding-block: var(--s-6) var(--s-5); }
  .pf-pic { width: 88px; height: 88px; }
  .pf-avatar { font-size: 2rem; }
  .pf-pic-btn { width: 40px; height: 40px; right: -8px; bottom: -8px; }
  .pf-kpis a { padding-inline: var(--s-2); min-width: 0; }
  .pf-kpi-n { font-size: 1.5rem; }
  .pf-settings { grid-template-columns: minmax(0, 1fr); }
  .pf-up.pt-continue { grid-template-columns: minmax(0, 1fr); }
  .pf-up .pt-continue-badge { width: 120px; justify-self: start; }
  .pf-path-top { gap: var(--s-4); }
  .pf-path-top .jy-ring { width: 80px; height: 80px; }
  .eb-peek { bottom: 84px; }
  .eb-peek-head { width: 92px; height: 92px; margin-right: -28px; }
  .eb-peek-bubble { max-width: min(250px, calc(100vw - 96px)); font-size: .875rem; }
}
@media (max-width: 479px) {
  .pf-id { gap: var(--s-4); }
  .pf-pic { width: 72px; height: 72px; }
  .pf-avatar { font-size: 1.6rem; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--gold); }
  .pf-pic-btn { width: 36px; height: 36px; border-width: 2px; }
  .pf-pic-btn svg { width: 16px; height: 16px; }
  .pf-who h1 { font-size: 1.9rem; }
  .pf-head-in { padding-block: var(--s-5) var(--s-4); gap: var(--s-4); }
  .pf-who .eyebrow { margin-bottom: var(--s-1); }
  .pf-kpis a { padding-block: var(--s-1); }
  .pf-kpi-n { font-size: 1.35rem; }
  .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-2); }
  .pf-kpis li:nth-child(3) { border-left: 0; }
  .pf-kpis li:nth-child(3) a { padding-left: 0; }
  .pf-tabs a { padding: 0 var(--s-3); font-size: .85rem; }
  .pf-tabs li:first-child a { margin-left: calc(-1 * var(--s-3)); }
  .pf-next li { grid-template-columns: 44px minmax(0, 1fr); }
  .pf-next-art, .pf-next-art .f39-badge { width: 44px; }
  .pf-next-go { grid-column: 2; justify-self: start; }
  .pf-stop-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* names in the box below */
  .pf-stop-dot { width: 28px; height: 28px; }
  .pf-road-track { top: 13px; }
  .pf-up .pt-weeks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pf-photo-in { padding: var(--s-6) var(--s-4) var(--s-5); }
}
