/* Mandali · Panch (Lounge, Video, Live, Members). Operate mode: calm, scannable, phone first.
   Loaded after styles.css; only applies inside the Panch theme. */

/* ---------- Header ---------- */
body.panch .pz-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 2px 0 14px; }
body.panch .pz-head .pz-eye { width: 52px; height: 52px; }
body.panch .pz-head .pz-eye span { font-size: 1.4rem; }
.pz-head-t { min-width: 0; }
body.panch .pz-head h1 { font-size: 1.75rem; line-height: 1.05; margin: 0; }
body.panch .pz-head h1 em { font-style: italic; font-weight: 400; color: #E5DCCB; font-size: .78em; }
body.panch .pz-head p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 13px 6px 11px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; touch-action: manipulation; user-select: none;
  transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 160ms; }
.pz-pill:active { transform: scale(.97); }
.pz-pill b { display: block; font: 600 12.5px/1.15 var(--sans); }
.pz-pill small { display: block; font: 500 11.5px/1.3 var(--mono, ui-monospace, monospace); color: var(--muted); white-space: nowrap; }
.pz-pill.on { border-color: #F2665E88; background: linear-gradient(180deg, rgba(217, 119, 107,.14), rgba(217, 119, 107,.04)); }
.pz-pill.on b { color: #E8A49A; }
.pz-pill .pz-dot { flex: none; }
.pz-clock { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }
@media (max-width: 440px) { body.panch .pz-head h1 em { display: none; } }
@media (max-width: 370px) { .pz-pill small { display: none; } }

/* ---------- Tabs: one segmented bar ---------- */
body.panch .wrap.pz > .tabs { border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; background: var(--panel); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; }
body.panch .wrap.pz > .tabs::-webkit-scrollbar { display: none; }
body.panch .wrap.pz > .tabs .tab { flex: 1 1 0; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 6px; border: 0; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--muted);
  touch-action: manipulation; transition: background-color 160ms, color 160ms; }
body.panch .wrap.pz > .tabs .tab[aria-selected="true"] { background: var(--raise); color: var(--gold); box-shadow: inset 0 0 0 1px #E7CB8C33; }
@media (hover: hover) and (pointer: fine) { body.panch .wrap.pz > .tabs .tab:hover { color: var(--text); } }

/* ---------- Shared pieces ---------- */
.pv { display: flex; flex-direction: column; gap: 16px; }
#pvMain { display: flex; flex-direction: column; gap: 16px; }
#pvMain[hidden] { display: none; }
.pv-thumb { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #262A35 0%, #14161C 55%, #0E0F14 100%); box-shadow: inset 0 0 0 1px #ffffff10; }
.pv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 12, 16,.75)); pointer-events: none; }
.pv-n { position: absolute; z-index: 1; left: 7px; top: 7px; padding: 2px 7px; border-radius: 7px; font: 700 11px/1.5 var(--mono, ui-monospace, monospace); color: #0E0F14; background: var(--gold); }
.pv-dur { position: absolute; z-index: 1; right: 7px; bottom: 7px; padding: 1px 6px; border-radius: 6px; font: 600 11px/1.5 var(--mono, ui-monospace, monospace); color: #fff; background: rgba(0,0,0,.66); }
.pv-done { position: absolute; z-index: 1; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--peacock); color: #0E0F14; }
.pv-pbar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); }
.pv-pbar i { display: block; height: 100%; background: var(--gold); }
.pv-thumb.sm { width: 92px; border-radius: 10px; }
.pv-thumb.sm .pv-n { left: 5px; top: 5px; font-size: 10px; padding: 1px 6px; }
.pv-kick { display: block; font: 600 11.5px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.pv-meta { display: block; font-size: .84rem; color: var(--muted); }
.pv-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-b { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font: 600 11.5px/1.6 var(--sans); white-space: nowrap; }
.pv-b.notes { background: rgba(217, 188, 133,.14); color: #B9C6E0; }
.pv-b.quiz { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px #E7CB8C40; }
.pv-b.score { background: var(--gold); color: #0E0F14; }
.pv-b.prac { background: rgba(255,255,255,.06); color: var(--muted); }
.pv-b.seen { background: rgba(217, 188, 133,.2); color: #B9C6E0; }
.pv-b.adm { background: rgba(255,255,255,.06); color: var(--muted); font-weight: 500; }

/* ---------- Search ---------- */
.pv-searchbox { position: relative; }
.pv-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 8px 0 15px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--muted); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.pv-search:focus-within { border-color: #E7CB8C88; color: var(--gold); }
.pv-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 16px/1 var(--sans); }
.pv-search input::placeholder { color: var(--muted); opacity: .85; }
.pv-search input::-webkit-search-cancel-button { display: none; }
.pv-qx[hidden] { display: none; }
.pv-qx { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--raise); color: var(--text); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.pv-res { display: flex; flex-direction: column; gap: 12px; }
.pv-res:empty { display: none; }
.pv-rescount { margin: 0; font-size: .9rem; color: var(--muted); }
.pv-hitset { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 10px 12px 8px; }
.pv-hithead { display: flex; gap: 12px; align-items: center; width: 100%; padding: 2px 0 10px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; }
.pv-hithead strong { display: block; font-size: .98rem; line-height: 1.3; }
.pv-hithead small { color: var(--muted); font-size: .8rem; }
.pv-hitterm { margin: 6px 2px 8px; font-size: .92rem; line-height: 1.5; color: var(--text); }
.pv-hitterm b { color: var(--gold); margin-right: 6px; }
mark { background: rgba(217, 188, 133,.28); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Hero: continue / up next ---------- */
.pv-hero { display: grid; gap: 0; width: 100%; padding: 0; text-align: left; cursor: pointer; border-radius: 20px; overflow: hidden; touch-action: manipulation;
  border: 1px solid #E7CB8C55; background: var(--panel); color: var(--text); transition: transform 160ms cubic-bezier(.23,1,.32,1); }
.pv-hero:active { transform: scale(.985); }
.pv-hero-img { position: relative; display: block; aspect-ratio: 16 / 8; background: radial-gradient(120% 90% at 30% 20%, #262A35 0%, #14161C 55%, #0E0F14 100%); }
.pv-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 16,.05) 30%, rgba(11, 12, 16,.85)); }
.pv-hero-play { position: absolute; left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #0E0F14;
  background: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 6px rgba(217, 188, 133,.18); }
.pv-hero-play svg { width: 22px; height: 22px; margin-left: 3px; }
.pv-hero-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.pv-hero-body strong { font-family: var(--serif); font-size: 1.28rem; line-height: 1.22; font-weight: 600; }
@media (min-width: 760px) {
  .pv-hero { grid-template-columns: 1.1fr 1fr; }
  .pv-hero-img { aspect-ratio: auto; min-height: 220px; }
  .pv-hero-body { justify-content: center; padding: 22px 24px; }
  .pv-hero-body strong { font-size: 1.5rem; }
}

/* ---------- Progress ---------- */
.pv-stats { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pv-ring { position: relative; width: 76px; height: 76px; }
.pv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pv-ring circle { fill: none; stroke-width: 7; }
.pv-ring .bg { stroke: var(--line); }
.pv-ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray 500ms cubic-bezier(.23,1,.32,1); }
.pv-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pv-ring b { font: 600 22px/1 var(--mono, ui-monospace, monospace); color: var(--text); }
.pv-ring small { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.pv-statcol { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pv-statcol p { margin: 0; font-size: .9rem; color: var(--muted); }
.pv-statcol p b { color: var(--text); font-family: var(--mono, ui-monospace, monospace); font-weight: 600; }
.pv-tracks { display: grid; gap: 6px; margin-top: 6px; }
.pv-track { display: grid; grid-template-columns: 82px 1fr 36px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.pv-track span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-track i { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pv-track i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--peacock), var(--gold)); }
.pv-track small { text-align: right; font-family: var(--mono, ui-monospace, monospace); }
.pv-chips { margin: 0 -2px; padding: 0 2px 2px; scrollbar-width: none; }
.pv-chips::-webkit-scrollbar { display: none; }
.pv-chips .pz-chip { min-height: 38px; touch-action: manipulation; }

/* ---------- Session list ---------- */
.pv-list { display: flex; flex-direction: column; gap: 10px; }
.pv-group { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 14px 2px 2px; }
.pv-group:first-child { margin-top: 0; }
.pv-group span { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); font-weight: 600; }
.pv-group small { font-size: .78rem; color: var(--muted); font-family: var(--mono, ui-monospace, monospace); white-space: nowrap; }
.pv-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.pv-card.done { background: color-mix(in srgb, var(--panel) 80%, var(--ink)); }
.pv-card.done .pv-body strong { color: #BFD3CF; }
.pv-open { display: grid; grid-template-columns: 128px 1fr; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; }
.pv-open:active .pv-thumb { transform: scale(.97); }
.pv-open .pv-thumb { transition: transform 140ms cubic-bezier(.23,1,.32,1); align-self: start; }
.pv-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 1px; }
.pv-body strong { font-size: .98rem; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-tstog { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted);
  font: 600 13px/1 var(--sans); cursor: pointer; touch-action: manipulation; }
.pv-tstog i { margin-left: auto; font-style: normal; transition: transform 200ms cubic-bezier(.23,1,.32,1); }
.pv-tstog[aria-expanded="true"] { color: var(--gold); }
.pv-tstog[aria-expanded="true"] i { transform: rotate(180deg); }
.pv-ts { padding: 2px 8px 8px; }
.pv-tsrow { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--text); text-align: left; font-size: .93rem; line-height: 1.35; cursor: pointer; touch-action: manipulation; transition: background-color 140ms; }
.pv-tsrow:first-child { border-top: 0; }
.pv-tsrow:active { background: var(--raise); }
.pv-tsrow b { font: 600 12.5px/1 var(--mono, ui-monospace, monospace); text-align: center; padding: 6px 0; border-radius: 8px; background: rgba(217, 188, 133,.14); color: #B9C6E0; }
.pv-tsrow.L b { background: var(--gold-soft); color: var(--gold); }
.pv-tsrow em { font: 600 10px/1.5 var(--mono, ui-monospace, monospace); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 760px) { .pv-open { grid-template-columns: 200px 1fr; } .pv-body strong { font-size: 1.05rem; } }
@media (hover: hover) and (pointer: fine) { .pv-card:hover { border-color: #E7CB8C55; } .pv-tsrow:hover { background: var(--raise); } }

/* ---------- Session page ---------- */
.pv-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 40px; padding: 0 14px 0 8px; margin-bottom: -4px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.pv-back:active { transform: scale(.97); }
.pv-session .player { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.pv-shead { display: flex; flex-direction: column; gap: 8px; }
.pv-shead h2 { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; font-weight: 600; color: var(--text); }
.pv-sum { margin: 2px 0 0; font-size: 1rem; line-height: 1.55; color: var(--text); }
.pv-take { padding: 14px 16px 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(217, 188, 133,.12), rgba(217, 188, 133,.08)); border: 1px solid #E7CB8C44; }
.pv-take h3 { margin: 0 0 8px; font: 600 11.5px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.pv-take ol { margin: 0; padding: 0; list-style: none; counter-reset: tk; display: grid; gap: 8px; }
.pv-take li { counter-increment: tk; display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: .98rem; line-height: 1.45; color: var(--text); }
.pv-take li::before { content: counter(tk); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11.5px/1 var(--mono, ui-monospace, monospace); color: #0E0F14; background: var(--gold); margin-top: 1px; }
.pv-session .ck { margin-top: 0; }
.pv-mark { min-height: 48px; }
.pv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-np { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; min-width: 0; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.pv-np:active { transform: scale(.98); }
.pv-np .pv-thumb.sm { width: 100%; }
.pv-np small { display: block; font: 600 11px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.pv-np strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.3; font-weight: 600; }
.pv-np.next { text-align: right; }
.pv-np.empty { border: 0; background: none; }
@media (min-width: 760px) { .pv-np { flex-direction: row; align-items: center; } .pv-np .pv-thumb.sm { width: 120px; } .pv-np.next { flex-direction: row-reverse; } }

/* ---------- Latest-recording card (Lounge, Live) ---------- */
.pz-latest:empty { display: none; }
.pz-latest { margin-bottom: 16px; }
.pz-h3.sm { font-size: .95rem; margin: 0 0 8px; color: var(--muted); }
.pv-mini { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 16px; border: 1px solid #E7CB8C44; background: var(--panel); color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.pv-mini:active { transform: scale(.985); }
.pv-mini small { display: block; font: 600 11px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.pv-mini strong { display: block; margin-top: 2px; font-size: .95rem; line-height: 1.3; }
.pv-mini em { display: block; margin-top: 2px; font-style: normal; font-size: .8rem; color: var(--muted); }

/* ---------- Loading ---------- */
.pv-skel { display: grid; gap: 12px; }
.pv-skel i { display: block; height: 96px; border-radius: 16px; background: linear-gradient(90deg, var(--panel), var(--raise), var(--panel)); background-size: 200% 100%; animation: pvSh 1.2s linear infinite; }
.pv-skel i:first-child { height: 190px; }
@keyframes pvSh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pv-skel i { animation: none; } .pv-ring .fg { transition: none; } }

/* ---------- Members and Live polish ---------- */
body.panch .pz-livecard { border-radius: 20px; }
body.panch .pz-member { border-radius: 14px; }
body.panch .pz-member > div { min-width: 0; flex: 1; }
.pz-mprog { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 6px; }
.pz-mprog i { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pz-mprog i b { display: block; height: 100%; background: linear-gradient(90deg, var(--peacock), var(--gold)); }
.pz-mprog small { font: 500 11.5px/1.3 var(--mono, ui-monospace, monospace); color: var(--muted); white-space: nowrap; }

/* phones: the class pill shares the title row; the member line runs full width under both */
@media (max-width: 520px) {
  body.panch .pz-head { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; }
  body.panch .pz-head .pz-eye { grid-row: 1 / 3; }
  body.panch .pz-head-t { display: contents; }
  body.panch .pz-head h1 { grid-column: 2; grid-row: 1; align-self: end; }
  body.panch .pz-head p { grid-column: 2 / 4; grid-row: 2; margin: 2px 0 0; }
  body.panch .pz-head .pz-pill { grid-column: 3; grid-row: 1; min-height: 38px; padding: 4px 11px 4px 9px; }
}

/* =================== Panch Plus (panchx.js) =================== */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.px-noscroll { overflow: hidden; }
.px-in { animation: pxIn 260ms cubic-bezier(.23,1,.32,1) both; }
@keyframes pxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Your Panch day */
.px-daywrap { margin-bottom: 16px; display: grid; gap: 12px; }
.px-daywrap:empty { display: none; }
.px-day { position: relative; overflow: hidden; padding: 16px; border-radius: 20px; border: 1px solid #E7CB8C44;
  background: radial-gradient(120% 140% at 100% 0%, rgba(217, 188, 133,.20), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(217, 188, 133,.10), transparent 60%), var(--panel); }
.px-day-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.px-hi { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--text); font-weight: 600; }
.px-sub { margin: 4px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.px-card-id { text-align: right; padding: 8px 10px; border-radius: 12px; background: rgba(11, 12, 16,.55); box-shadow: inset 0 0 0 1px #E7CB8C33; min-width: 92px; }
.px-card-id > span { display: block; font: 600 9.5px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.px-card-id b { display: block; font: 600 22px/1.1 var(--mono, ui-monospace, monospace); color: var(--text); margin-top: 3px; }
.px-card-id small { color: var(--muted); font-size: 11px; }
.px-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.px-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px; border-radius: 14px; text-align: left; cursor: pointer; touch-action: manipulation;
  border: 1px solid var(--line); background: rgba(11, 12, 16,.45); color: var(--text); transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 160ms; }
.px-tile:active { transform: scale(.97); }
.px-tile b { font-size: .92rem; line-height: 1.25; }
.px-tile small { font-size: .76rem; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.px-tile.done { border-color: rgba(217, 188, 133,.5); }
.px-tile.warn { border-color: #F2665E66; }
.px-tile.warn .px-tile-k { color: #E8A49A; }
.px-tile-k { font: 600 10.5px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.px-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.px-lvl { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; align-items: center; font-size: .76rem; color: var(--muted); }
.px-lvl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-lvl small { font: 600 11px/1 var(--mono, ui-monospace, monospace); color: var(--gold); }
.px-lvl i { grid-column: 1 / -1; display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.px-lvl i b { display: block; height: 100%; background: linear-gradient(90deg, var(--peacock), var(--gold)); }

/* Ask bar + sheet */
.px-askbar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 12px; padding: 0 12px 0 14px; border-radius: 14px; cursor: pointer; touch-action: manipulation;
  border: 1px dashed #E7CB8C66; background: rgba(217, 188, 133,.06); color: var(--muted); font: 500 14.5px/1.2 var(--sans); text-align: left; transition: transform 140ms cubic-bezier(.23,1,.32,1), background-color 160ms; }
.px-askbar:active { transform: scale(.985); }
.px-askbar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.px-askbar em { font: 600 10.5px/1 var(--mono, ui-monospace, monospace); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.px-askbar.slim { margin-top: -6px; min-height: 40px; font-size: 13.5px; }
.px-askbar.big { min-height: 52px; margin: 0 0 14px; }
.px-sheet { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 9, 12,.6); animation: pxFade 200ms ease-out both; }
.px-sheet.out { animation: pxFadeOut 180ms ease-out both; }
.px-sheet-card { width: min(680px, 100%); max-height: 88dvh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; border: 1px solid #E7CB8C44; border-bottom: 0;
  background: linear-gradient(180deg, #0E2D30, var(--ink)); box-shadow: 0 -20px 60px rgba(0,0,0,.5); animation: pxUp 280ms cubic-bezier(.23,1,.32,1) both; padding-bottom: env(safe-area-inset-bottom); }
.px-sheet.out .px-sheet-card { animation: pxDown 180ms ease-out both; }
@keyframes pxFade { from { opacity: 0; } } @keyframes pxFadeOut { to { opacity: 0; } }
@keyframes pxUp { from { transform: translateY(40px); opacity: .6; } } @keyframes pxDown { to { transform: translateY(40px); opacity: 0; } }
.px-sheet-h { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.px-sheet-h h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--gold); }
.px-sheet-h p { margin: 4px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.px-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.px-x.sm { width: 34px; height: 34px; border-radius: 10px; }
.px-thread { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.px-qa { display: flex; flex-direction: column; gap: 8px; }
.px-q { align-self: flex-end; max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--gold-soft); box-shadow: inset 0 0 0 1px #E7CB8C40; color: var(--text); font-size: .95rem; line-height: 1.45; }
.px-a { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--panel); border: 1px solid var(--line); font-size: .98rem; line-height: 1.6; color: var(--text); }
.px-a p { margin: 0 0 8px; } .px-a p:last-child { margin-bottom: 0; } .px-a ul { margin: 0 0 8px; padding-left: 18px; } .px-a b { color: var(--gold); }
.px-think { color: var(--muted); font-style: italic; animation: pxPulse 1.4s ease-in-out infinite; }
@keyframes pxPulse { 50% { opacity: .45; } }
.px-err { color: #E8A49A; margin: 0; }
.px-cites { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.px-cite { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11, 12, 16,.5); color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; font-size: .88rem; }
.px-cite b { font: 600 12px/1 var(--mono, ui-monospace, monospace); color: #0E0F14; background: var(--peacock); padding: 5px 7px; border-radius: 7px; }
.px-empty { display: flex; flex-direction: column; gap: 6px; padding: 8px 2px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.px-empty b { color: var(--text); font-family: var(--serif); font-size: 1.1rem; }
.px-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.px-sugg button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: .86rem; cursor: pointer; touch-action: manipulation; text-align: left; }
.px-askform { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.px-askform textarea { width: 100%; min-height: 48px; max-height: 140px; resize: vertical; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 400 16px/1.4 var(--sans); }
.px-askform .btn { min-height: 48px; }
.px-focus { grid-column: 1 / -1; font: 600 11px/1.3 var(--mono, ui-monospace, monospace); color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }

/* Today's map */
.px-map { padding: 14px 16px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 16px; }
.px-map.compact { margin: 0; padding: 12px 14px; }
.px-map h3 { margin: 0; font-family: var(--serif); font-size: 1.12rem; color: var(--text); }
.px-map-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.px-map-h span { font: 500 11.5px/1.3 var(--mono, ui-monospace, monospace); color: var(--muted); }
.px-rail { position: relative; height: 54px; margin: 22px 6px 6px; }
.px-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px; border-radius: 2px; background: var(--line); }
.px-band { position: absolute; top: 19px; height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(217, 188, 133,.25), rgba(217, 188, 133,.25)); box-shadow: inset 0 0 0 1px rgba(217, 188, 133,.35); }
.px-rail b { position: absolute; top: 14px; width: 2px; height: 26px; transform: translateX(-1px); }
.px-rail b span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10.5px/1 var(--mono, ui-monospace, monospace); }
.px-wall.pe { background: var(--peacock); } .px-wall.pe span { top: 30px; color: #B9C6E0; }
.px-wall.ce { background: #D9776B; } .px-wall.ce span { top: 30px; color: #E8A49A; }
.px-mp { background: transparent; border-left: 2px dashed #8DAAA5; } .px-mp span { top: 30px; color: var(--muted); }
.px-spot { top: 8px !important; height: 38px !important; width: 3px !important; background: var(--gold); box-shadow: 0 0 10px rgba(217, 188, 133,.7); border-radius: 2px; }
.px-spot span { top: -16px !important; color: var(--gold); font-size: 11.5px !important; }
.px-map-legend { display: flex; gap: 14px; margin-top: 18px; font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.px-map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.px-map-legend i.pe { background: var(--peacock); } .px-map-legend i.ce { background: #D9776B; } .px-map-legend i.band { background: rgba(217, 188, 133,.4); }
.px-map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.px-map-grid > div { padding: 10px 12px; border-radius: 12px; background: var(--raise); display: flex; flex-direction: column; gap: 2px; }
.px-map-grid span { font-size: .74rem; color: var(--muted); }
.px-map-grid b { font: 600 15px/1.3 var(--mono, ui-monospace, monospace); color: var(--text); }
.px-map-grid small { font-size: .72rem; color: var(--muted); } .px-map-grid small.up { color: #4DB38F; } .px-map-grid small.dn { color: #D9776B; }
.px-map-read { margin: 12px 0 0; font-size: .92rem; line-height: 1.55; color: var(--text); }
.px-map-read b { color: var(--gold); font-family: var(--mono, ui-monospace, monospace); font-weight: 600; }
.px-map.empty p { margin: 6px 0 0; }

/* Practice hub */
.px-hubhead { margin: 0 0 14px; }
.pz-practice .pv-back { margin-bottom: 14px; }
.px-hubhead h2 { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--text); }
.px-hubhead h2 em { color: var(--gold); font-weight: 400; }
.px-hubhead p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.px-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .px-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.px-hubtile { display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 14px; border-radius: 18px; text-align: left; cursor: pointer; touch-action: manipulation;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 160ms; }
.px-hubtile:active { transform: scale(.97); }
.px-hubtile b { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; font-weight: 600; margin-top: auto; }
.px-hubtile small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.px-hubtile.hot { border-color: #E7CB8C88; background: radial-gradient(120% 120% at 100% 0%, rgba(217, 188, 133,.14), transparent 60%), var(--panel); }
.px-hubtile.done { border-color: rgba(217, 188, 133,.45); }
@media (hover: hover) and (pointer: fine) { .px-hubtile:hover, .px-tile:hover { border-color: #E7CB8C66; } }

.px-panel { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); margin-top: 12px; }
.px-panel > p { line-height: 1.55; }
.px-big { margin: 6px 0 8px; font: 600 3rem/1 var(--mono, ui-monospace, monospace); color: var(--gold); }
.px-big small { font-size: 1.1rem; color: var(--muted); margin-left: 4px; }
.px-qtext { margin: 6px 0 12px; font-size: 1.12rem; line-height: 1.4; color: var(--text); font-family: var(--sans); font-weight: 600; }
.px-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.px-dots i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.px-dots i.on { background: var(--gold); } .px-dots i.ok { background: #4DB38F; } .px-dots i.no { background: #D9776B; }
.px-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ck-o.sel { border-color: var(--gold); background: var(--gold-soft); }

/* Rulebook */
.px-check { border-color: #E7CB8C55; }
.px-ckrow { display: flex; gap: 12px; align-items: flex-start; padding: 9px 2px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; color: var(--text); cursor: pointer; }
.px-ckrow:first-of-type { border-top: 0; }
.px-ckrow input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #D9BC85; }
.px-ckrow input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: #E7CB8C88; }
.px-rules { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.px-rule { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px 8px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.px-rule p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--text); }
.px-rule.on { border-color: #E7CB8C66; }
.px-star { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: #3E615D; font-size: 20px; cursor: pointer; touch-action: manipulation; transition: transform 160ms cubic-bezier(.23,1,.32,1), color 160ms; }
.px-star[aria-pressed="true"] { color: var(--gold); }
.px-star:active { transform: scale(.85); }
.px-from { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--raise); color: var(--muted); font: 600 11px/1 var(--mono, ui-monospace, monospace); cursor: pointer; touch-action: manipulation; }

/* Lists: tests, moments, drills */
.px-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.px-test { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; }
.px-test[disabled] { opacity: .5; cursor: default; }
.px-test strong { display: block; font-size: 1rem; } .px-test small { color: var(--muted); font-size: .82rem; } .px-test i { font-style: normal; color: var(--muted); font-size: 1.3rem; }
.px-medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--mono, ui-monospace, monospace); color: var(--muted); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.px-test.won .px-medal { color: #0E0F14; background: radial-gradient(circle at 40% 35%, #F6E6BC, #D9BC85 55%, #9A7A33); box-shadow: 0 0 0 3px rgba(217, 188, 133,.18); }
.px-moment { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.px-mo-open { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; padding: 2px; touch-action: manipulation; }
.px-mo-open b { font: 600 12.5px/1 var(--mono, ui-monospace, monospace); text-align: center; padding: 7px 0; border-radius: 8px; background: var(--gold-soft); color: var(--gold); }
.px-mo-open strong { display: block; font-size: .95rem; } .px-mo-open small { color: var(--muted); font-size: .8rem; }

/* Red pen */
.px-newtrade summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.px-form { display: grid; gap: 4px; margin-top: 12px; }
.px-trade { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.px-trade.fresh { border-color: #F2665E88; box-shadow: 0 0 0 3px rgba(217, 119, 107,.12); }
.px-trade-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.px-trade-h b { font-size: 1rem; } .px-trade-h span { color: var(--muted); font-size: .82rem; }
.px-trade-m { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.px-trade-m span { padding: 2px 8px; border-radius: 999px; background: var(--raise); font: 500 12px/1.6 var(--mono, ui-monospace, monospace); color: var(--muted); }
.px-trade-m span.up { color: #4DB38F; } .px-trade-m span.dn { color: #D9776B; }
.px-trade p { margin: 6px 0 0; font-size: .92rem; line-height: 1.5; color: var(--text); }
.px-red { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid #D9776B; background: rgba(217, 119, 107,.08); }
.px-red span { font: 600 10.5px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: #E8A49A; }
.px-red p { margin: 4px 0 0; font-size: .96rem; line-height: 1.5; color: var(--text); font-family: var(--serif); font-style: italic; }
.px-redform { display: grid; gap: 8px; margin-top: 10px; }
.px-redform textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #F2665E55; background: rgba(11, 12, 16,.5); color: var(--text); font: 400 16px/1.4 var(--sans); }
.px-redform .btn { justify-self: end; }

/* Arena */
.px-chartbox { margin: 10px -4px 6px; padding: 6px 4px; border-radius: 14px; background: #0E0F14; border: 1px solid var(--line); touch-action: none; }
.px-chart { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.px-chart .g { stroke: rgba(255,255,255,.06); stroke-width: 1; } .px-chart .g.v { stroke-dasharray: 2 4; }
.px-chart .ax { fill: #6F8E89; font: 500 11px var(--mono, ui-monospace, monospace); }
.px-chart .px-after { fill: rgba(217, 188, 133,.04); }
.px-chart .px-cut { stroke: #E7CB8C88; stroke-width: 1.5; stroke-dasharray: 4 4; }
.px-mk line { stroke-width: 2; stroke-dasharray: 6 4; } .px-mk text { font: 600 11px var(--mono, ui-monospace, monospace); } .px-mk .lbl { font: 600 11px var(--sans); }
.px-mk.you line { stroke: #B9C6E0; } .px-mk.you text { fill: #B9C6E0; } .px-mk.zone.you rect { fill: rgba(217, 188, 133,.18); stroke: #B9C6E0; stroke-dasharray: 4 3; }
.px-mk.me line { stroke: #D9BC85; } .px-mk.me text { fill: #D9BC85; } .px-mk.zone.me rect { fill: rgba(217, 188, 133,.16); stroke: #D9BC85; }
.px-mk.zone rect { stroke-width: 1.5; }
.px-tasks, .px-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.px-tasks .pz-chip small { opacity: .7; font-size: .76rem; margin-left: 4px; }
.px-picks .ck-o { width: auto; flex: 1 1 calc(50% - 8px); margin: 0; }
.px-result { margin-top: 14px; }

/* Session tools */
.pv-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-tool { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 13.5px/1.2 var(--sans); cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.pv-tool:active { transform: scale(.97); }
.pv-tool svg { color: var(--gold); flex: none; }

/* Celebrations */
.px-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9900; }
.px-badge { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 20px; background: rgba(8, 9, 12,.7); animation: pxFade 200ms ease-out both; }
.px-badge.out { animation: pxFadeOut 180ms ease-out both; }
.px-badge-card { width: min(340px, 100%); text-align: center; padding: 24px 20px 20px; border-radius: 24px; border: 1px solid #E7CB8C66; background: radial-gradient(120% 100% at 50% 0%, rgba(217, 188, 133,.18), transparent 60%), var(--panel); animation: pxPop 420ms cubic-bezier(.23,1,.32,1) both; }
.px-badge-card h3 { margin: 4px 0 6px; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.px-badge-card p { margin: 0 0 14px; color: var(--text); line-height: 1.5; }
.px-badge-k { font: 600 11px/1.3 var(--mono, ui-monospace, monospace) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; margin: 10px 0 0 !important; }
.px-feather { width: 96px; height: 128px; transform-origin: 50% 96%; animation: pxUnfold 700ms cubic-bezier(.23,1,.32,1) 80ms both; filter: drop-shadow(0 8px 20px rgba(217, 188, 133,.35)); }
@keyframes pxPop { from { opacity: 0; transform: scale(.95) translateY(6px); } }
@keyframes pxUnfold { from { opacity: 0; transform: scaleY(.25) scaleX(.6) rotate(-14deg); } 70% { transform: scaleY(1.04) scaleX(1.02) rotate(2deg); } to { opacity: 1; transform: none; } }
.pz-eye.px-bloom { animation: pxBloom 1.2s cubic-bezier(.23,1,.32,1) both; }
@keyframes pxBloom { 0% { transform: scale(.82) rotate(-18deg); box-shadow: 0 0 0 0 rgba(217, 188, 133,.0); } 55% { transform: scale(1.08) rotate(4deg); box-shadow: 0 0 0 14px rgba(217, 188, 133,.16); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(217, 188, 133,0); } }
::view-transition-group(pz-player) { animation-duration: 360ms; animation-timing-function: cubic-bezier(.23,1,.32,1); }
.pz-count .d { display: inline-block; min-width: .6em; text-align: center; }
.pz-count .d.flip { animation: pxFlip 280ms cubic-bezier(.23,1,.32,1); }
@keyframes pxFlip { from { transform: translateY(-45%); opacity: 0; } }
.pz-count.soon { color: #E8A49A; }
@media (prefers-reduced-motion: reduce) {
  .px-in, .px-sheet, .px-sheet-card, .px-badge-card, .px-feather, .pz-eye.px-bloom, .pz-count .d.flip, .px-think { animation: none !important; }
  ::view-transition-group(pz-player) { animation: none; }
}
@media (max-width: 380px) { body.panch .wrap.pz > .tabs .tab { font-size: .84rem; padding: 8px 2px; } .px-hi { font-size: 1.2rem; } }

/* =================== Peacock colour, v2 (Nov 2026) ===================
   The old grade was one flat teal-black. This one borrows the feather itself: teal crown, royal-blue eye,
   a violet shimmer and a champagne edge. Glows sit on one fixed layer behind everything, so cards stay cheap. */
body.panch {
  --ink: #0B0C10; --panel: #14161C; --raise: #1B1E26; --line: #2A2D36;
  --gold: #D9BC85; --gold-soft: rgba(217, 188, 133, 0.13);
  --text: #ECE6DA; --muted: #A59E90; --peacock: #8FA6D6; --peacock-deep: #2A2D36; --pblue: #6F86B8; --pviolet: #8C6E96;
  --pz-surface: linear-gradient(158deg, rgba(34, 36, 46, .54) 0%, rgba(20, 22, 29, .6) 46%, rgba(22, 26, 40, .6) 100%);
  --pz-edge: rgba(217, 188, 133, .2);
  background: #0B0C10; isolation: isolate;
}
body.panch::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(72% 44% at 104% -4%, rgba(217, 188, 133, .46), transparent 70%),
    radial-gradient(64% 42% at -8% 22%, rgba(111, 134, 184, .40), transparent 70%),
    radial-gradient(56% 36% at 108% 56%, rgba(140, 110, 150, .26), transparent 70%),
    radial-gradient(70% 34% at 16% 94%, rgba(217, 188, 133, .20), transparent 70%),
    radial-gradient(60% 30% at 90% 100%, rgba(217, 188, 133, .16), transparent 70%),
    linear-gradient(180deg, #0D0E13 0%, #0B0C10 52%, #0F1118 100%); }
body.panch .topbar { background: linear-gradient(180deg, rgba(34, 36, 46, .55), rgba(22, 26, 40, .18) 70%, transparent), #0B0C10; border-bottom-color: rgba(217, 188, 133, .14); }
body.panch .bottom-nav { background: rgba(11, 12, 16, .94); border-top-color: rgba(217, 188, 133, .14); }

/* surfaces: translucent feather glass over the glows */
body.panch .card, body.panch .row, .pz-post, .pz-compose, .pz-member, .pv-card, .pv-stats, .pv-hitset, .pv-np:not(.empty), .pv-mini, .pv-tool, .pv-search,
.px-map, .px-hubtile, .px-panel, .px-a, .pz-pill, .pz-day, body.panch .wrap.pz > .tabs, .pf-card {
  background: var(--pz-surface); border-color: var(--pz-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.pv-card.done { background: linear-gradient(158deg, rgba(28, 30, 38, .5), rgba(16, 17, 22, .62)); }
.px-tile { background: rgba(11, 12, 16, .42); border-color: rgba(217, 188, 133, .16); }
.px-map-grid > div { background: rgba(11, 12, 16, .42); }

/* hero cards: an iridescent feather rim (opaque inside so the rim stays a rim) */
.px-day, .pv-hero, .pz-livecard {
  border: 1px solid transparent;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(217, 188, 133, .26), transparent 58%) padding-box,
    radial-gradient(90% 110% at 0% 100%, rgba(111, 134, 184, .22), transparent 62%) padding-box,
    radial-gradient(60% 70% at 70% 110%, rgba(217, 188, 133, .12), transparent 70%) padding-box,
    linear-gradient(160deg, #1C1F28, #14161C 55%, #101219) padding-box,
    conic-gradient(from 210deg at 50% 50%, #D9BC85, #8FA6D6, #6F86B8, #8C6E96, #8FA6D6, #D9BC85) border-box;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6), 0 0 34px -12px rgba(217, 188, 133, .35); }
.pv-hero-img { background: radial-gradient(120% 90% at 30% 20%, #2A2E3A 0%, #171A22 50%, #101219 100%); }
.pv-thumb { background: radial-gradient(120% 90% at 30% 20%, #2A2E3A 0%, #171A22 55%, #101219 100%); }

/* header: gilded title */
body.panch .pz-head h1 { background: linear-gradient(100deg, #F1DFB4 0%, #D9BC85 42%, #E5DCCB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.panch .pz-head h1 em { -webkit-text-fill-color: #E5DCCB; }

/* tabs: the selected segment glows gold-to-teal */
body.panch .wrap.pz > .tabs .tab[aria-selected="true"] { color: #F1DFB4; background: linear-gradient(135deg, rgba(217, 188, 133, .24), rgba(217, 188, 133, .16) 60%, rgba(111, 134, 184, .16));
  box-shadow: inset 0 0 0 1px rgba(217, 188, 133, .42), 0 6px 16px -8px rgba(217, 188, 133, .45); }

/* progress bars and rings pick up the full feather */
.pv-track i b, .pz-mprog i b, .px-lvl i b { background: linear-gradient(90deg, var(--pblue), var(--peacock) 45%, var(--gold)); }
body.panch .btn:not(.ghost):not(.quiet):not(.danger):not(:disabled) { background: linear-gradient(135deg, #F3DCA2, #E2BF72); color: #0E0F14; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(217, 188, 133, .6); }
body.panch .btn:disabled { background: rgba(217, 188, 133, .08); color: #C9B27A; border: 1px dashed rgba(217, 188, 133, .35); opacity: 1; box-shadow: none; }

/* =================== Flow networks (panchflow.js) =================== */
.pf-card { position: relative; padding: 14px 14px 12px; border: 1px solid var(--pz-edge); border-radius: 20px; margin: 0 0 16px; overflow: hidden; }
.pf-card:empty { display: none; }
.pf-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(80% 50% at 85% 0%, rgba(217, 188, 133, .14), transparent 70%), radial-gradient(70% 40% at 0% 100%, rgba(111, 134, 184, .12), transparent 70%); }
.pf-card > * { position: relative; }
#pfLearn { margin-top: 16px; }
.pf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-head h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-head p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.pf-live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font: 700 10px/1.6 var(--mono, ui-monospace, monospace); letter-spacing: .08em; color: #E8A49A; background: rgba(217, 119, 107, .14); }
.pf-live i { width: 6px; height: 6px; border-radius: 50%; background: #E0645A; }
@media (prefers-reduced-motion: no-preference) { .pf-live i { animation: pzPulse 1.6s ease-in-out infinite; } }
.pf-modes { display: flex; gap: 4px; margin: 12px 0 10px; padding: 3px; border-radius: 12px; background: rgba(11, 12, 16, .5); border: 1px solid rgba(217, 188, 133, .12); }
.pf-modes button { flex: 1 1 0; min-height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 13px/1.1 var(--sans); cursor: pointer; touch-action: manipulation; user-select: none; transition: background-color 160ms, color 160ms; }
.pf-modes button[aria-selected="true"] { background: linear-gradient(135deg, rgba(217, 188, 133, .22), rgba(217, 188, 133, .14)); color: #F1DFB4; box-shadow: inset 0 0 0 1px rgba(217, 188, 133, .35); }
.pf-modes button:disabled { opacity: .4; cursor: default; }
.pf-modes button:active:not(:disabled) { transform: scale(.97); }
.pf-bar, .pf-tb { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 600 12px/1.2 var(--mono, ui-monospace, monospace); }
.pf-bar i, .pf-tb i { display: block; height: 6px; border-radius: 99px; background: rgba(217, 119, 107, .75); overflow: hidden; }
.pf-bar i b, .pf-tb i b { display: block; height: 100%; background: linear-gradient(90deg, #1FA587, #4DB38F); border-right: 2px solid #0B0C10; transition: width 400ms cubic-bezier(.23, 1, .32, 1); }
.up { color: #7FCDB0; } .dn { color: #E8A49A; }
.pf-wrap { margin: 8px -10px 0; min-height: 120px; }
.pf-cv { display: block; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; }
.pf-skel { height: 300px; margin-top: 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(24, 26, 33, .5), rgba(30, 32, 40, .7), rgba(24, 26, 33, .5)); background-size: 200% 100%; animation: pvSh 1.2s linear infinite; }
.pf-sel { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(11, 12, 16, .5); border: 1px solid rgba(217, 188, 133, .12); min-height: 44px; }
.pf-sel h4 { margin: 0 0 4px; font: 600 14.5px/1.3 var(--sans); color: var(--text); }
.pf-sel p { margin: 3px 0 0; font-size: .9rem; line-height: 1.45; color: var(--text); }
.pf-sel p small { color: var(--muted); font-family: var(--mono, ui-monospace, monospace); font-size: 11.5px; }
.pf-sel .q { color: var(--muted); }
.pf-sel .pf-mut, .pf-hint { color: var(--muted) !important; font-size: .88rem; margin: 0; line-height: 1.45; }
.pf-strikes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pf-strikes span { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); font: 500 12px/1.4 var(--mono, ui-monospace, monospace); color: var(--muted); }
.pf-strikes b { color: var(--text); font-weight: 600; }
.pf-open { margin-top: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(217, 188, 133, .45); background: rgba(217, 188, 133, .1); color: var(--gold); font: 600 13.5px/1 var(--sans); cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.pf-open:active { transform: scale(.97); }
.pf-read { margin: 12px 0 0; font-size: .96rem; line-height: 1.6; color: var(--text); }
.pf-read b { color: var(--gold); font-family: var(--mono, ui-monospace, monospace); font-weight: 600; font-size: .92em; }
.pf-cap { margin: 10px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.pf-teaserwrap:empty { display: none; }
.pf-teaser { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--pz-edge); background: var(--pz-surface); color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; user-select: none; transition: transform 140ms cubic-bezier(.23, 1, .32, 1), border-color 160ms; }
.pf-teaser:active { transform: scale(.98); }
.pf-tk { font: 600 10.5px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pf-go { font-size: .86rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .pf-teaser:hover { border-color: rgba(217, 188, 133, .45); } .pf-modes button:hover:not(:disabled):not([aria-selected="true"]) { color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .pf-skel { animation: none; } .pf-bar i b, .pf-tb i b { transition: none; } }
@media (max-width: 380px) { .pf-card { padding: 12px 12px 10px; } .pf-wrap { margin: 8px -8px 0; } .pf-modes button { font-size: 12px; } }

/* =================== Live: class card (no countdown) =================== */
.pz-livebar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; margin: 0 0 14px; border-radius: 14px; text-decoration: none; color: #F3D6D0;
  background: linear-gradient(135deg, rgba(217, 119, 107, .28), rgba(217, 119, 107, .1)); border: 1px solid rgba(217, 119, 107, .5); touch-action: manipulation; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.pz-livebar:active { transform: scale(.98); }
.pz-livebar b { font: 600 15px/1.2 var(--sans); }
.pz-livebar span:last-child { margin-left: auto; font-weight: 600; color: #fff; }
.pz-livebar:empty, #pzLiveBar:empty { display: none; }
.pz-classcard { padding: 16px; border-radius: 20px; border: 1px solid var(--pz-edge); background: var(--pz-surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); margin: 0 0 18px; }
.pz-classhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pz-classk { margin: 0; font: 600 10.5px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pz-classhead h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 1.3rem; display: flex; align-items: center; gap: 8px; color: var(--text); }
.pz-classwait { font-size: .84rem; color: var(--muted); text-align: right; max-width: 48%; line-height: 1.35; }
.pz-classcard .pz-week { margin-bottom: 4px; }

/* =================== Today's market, on the chart (panchread.js) =================== */
.pr-card { position: relative; padding: 16px; border: 1px solid var(--pz-edge); border-radius: 20px; margin: 0 0 16px; background: var(--pz-surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
@media (max-width: 420px) { .pr-card { padding: 12px; } }
.pr-head h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--text); }
.pr-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.pr-k { margin: 0 !important; font: 600 10.5px/1.3 var(--mono, ui-monospace, monospace) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--gold) !important; }
.pr-type { margin: 12px 0 0; }
.pr-chip { display: inline-flex; padding: 5px 11px; border-radius: 999px; font: 600 13px/1.3 var(--sans); color: #F1DFB4; background: rgba(217, 188, 133, .14); box-shadow: inset 0 0 0 1px rgba(217, 188, 133, .4); }
.pr-chip.t-tup, .pr-chip.t-nvup { color: #7FCDB0; background: rgba(77, 179, 143, .14); box-shadow: inset 0 0 0 1px rgba(77, 179, 143, .45); }
.pr-chip.t-tdn, .pr-chip.t-nvdn { color: #E8A49A; background: rgba(217, 119, 107, .14); box-shadow: inset 0 0 0 1px rgba(217, 119, 107, .45); }
.pr-lead { margin: 10px 0 0; font-size: 1rem; line-height: 1.55; color: var(--text); }
.pr-read { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 34px; margin: 12px 0 6px; padding: 6px 10px; border-radius: 10px; background: rgba(11, 12, 16, .5); font: 500 12px/1.35 var(--mono, ui-monospace, monospace); color: var(--muted); }
.pr-read b { color: var(--gold); font-weight: 600; } .pr-read .iv { color: #F1DFB4; } .pr-read .pcr { color: #B9C6E0; }
.pr-chart { margin: 0; }
.pr-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pr-svg .g { stroke: rgba(236, 226, 206, .07); stroke-width: 1; }
.pr-svg .ax { fill: #8F887B; font: 500 10px var(--mono, ui-monospace, monospace); }
.pr-svg .u line { stroke: #4DB38F; stroke-width: 1; } .pr-svg .u rect { fill: #4DB38F; }
.pr-svg .d line { stroke: #D9776B; stroke-width: 1; } .pr-svg .d rect { fill: #D9776B; }
.pr-svg .pr-line { fill: none; stroke: #B9C6E0; stroke-width: 1.6; }
.pr-svg .pr-ib { fill: rgba(217, 188, 133, .07); }
.pr-svg .pr-ibl { stroke: rgba(217, 188, 133, .45); stroke-width: 1; stroke-dasharray: 2 4; }
.pr-svg .pr-ref { stroke-width: 1; }
.pr-svg .pr-ref.pdc { stroke: rgba(200, 220, 230, .45); stroke-dasharray: 6 5; }
.pr-svg .pr-ref.mp { stroke: rgba(160, 130, 170, .7); stroke-dasharray: 1 4; stroke-linecap: round; stroke-width: 1.6; }
.pr-svg .pr-ref.sd { stroke: rgba(143, 166, 214, .75); stroke-dasharray: 5 4; }
.pr-svg .pr-tag { font: 600 9px var(--mono, ui-monospace, monospace); letter-spacing: .04em; paint-order: stroke; stroke: #0E0F14; stroke-width: 3px; stroke-linejoin: round; }
.pr-svg .pr-tag.ib { fill: #D9BC85; } .pr-svg .pr-tag.pdc { fill: #B9CCD6; } .pr-svg .pr-tag.mp { fill: #BBA6C0; } .pr-svg .pr-tag.sd { fill: #9FB3DD; }
.pr-svg .pr-last { stroke: rgba(217, 188, 133, .5); stroke-dasharray: 1 3; }
.pr-svg .pr-lastbg { fill: var(--gold); } .pr-svg .pr-lasttx { fill: #0E0F14; font: 700 10px var(--mono, ui-monospace, monospace); }
.pr-svg .pr-mk line { stroke: rgba(217, 188, 133, .7); stroke-width: 1; }
.pr-svg .pr-mk circle { fill: var(--gold); stroke: #0E0F14; stroke-width: 2; }
.pr-svg .pr-mk text { fill: #0E0F14; font: 700 11px var(--mono, ui-monospace, monospace); }
.pr-svg .pr-mk.on circle { fill: #fff; }
.pr-svg .pr-pane { fill: rgba(11, 12, 16, .45); stroke: rgba(217, 188, 133, .1); }
.pr-svg .pr-pl { fill: #A59E90; font: 600 10px var(--mono, ui-monospace, monospace); }
.pr-svg .pr-pl tspan.iv, .pr-svg .pr-sd.iv { fill: #F1DFB4; } .pr-svg .pr-pl tspan.pcr, .pr-svg .pr-sd.pcr { fill: #B9C6E0; } .pr-svg .pr-pl tspan.st, .pr-svg .pr-sd.st { fill: #9FB3DD; }
.pr-svg .pr-sl { fill: none; stroke-width: 1.6; stroke-linejoin: round; } .pr-svg .pr-sl.iv { stroke: #D9BC85; } .pr-svg .pr-sl.pcr { stroke: #8FA6D6; } .pr-svg .pr-sl.st { stroke: #8FA6D6; }
.pr-svg .pr-area { stroke: none; } .pr-svg .pr-area.iv { fill: rgba(217, 188, 133, .08); } .pr-svg .pr-area.pcr { fill: rgba(217, 188, 133, .08); } .pr-svg .pr-area.st { fill: rgba(143, 166, 214, .08); }
.pr-svg .pr-xh { stroke: rgba(245, 234, 210, .55); stroke-width: 1; } .pr-svg .pr-xd { fill: #fff; stroke: #0E0F14; stroke-width: 1.5; }
.pr-svg .pr-hit { fill: transparent; cursor: crosshair; }
/* the chart draws itself in once: candles sweep left to right, then the numbers pop */
@media (prefers-reduced-motion: no-preference) {
  .pr-chart.in .pr-candles { animation: prSweep 900ms cubic-bezier(.23, 1, .32, 1) both; }
  .pr-chart.in .pr-sl { stroke-dasharray: 1400; animation: prDraw 1100ms cubic-bezier(.23, 1, .32, 1) 200ms both; }
  .pr-chart.in .pr-mk { transform-box: fill-box; transform-origin: center; animation: prPop 320ms cubic-bezier(.23, 1, .32, 1) calc(700ms + var(--d)) both; }
  .pr-svg .pr-mk.on circle { animation: prPulse 900ms cubic-bezier(.23, 1, .32, 1); }
}
@keyframes prSweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes prDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes prPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes prPulse { 0% { stroke-width: 2; } 40% { stroke-width: 6; stroke: rgba(217, 188, 133, .5); } 100% { stroke-width: 2; } }
.pr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.pr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pr-legend i { width: 16px; height: 0; border-top: 2px dashed; }
.pr-legend i.ib { border: 0; height: 10px; background: rgba(217, 188, 133, .2); border-radius: 2px; } .pr-legend i.sd { color: #8FA6D6; } .pr-legend i.pdc { color: #B9CCD6; } .pr-legend i.mp { color: #A58FAE; border-top-style: dotted; }
.pr-h { margin: 20px 0 10px; font: 600 15px/1.3 var(--sans); color: var(--text); }
.pr-h small { font: 500 11.5px var(--mono, ui-monospace, monospace); color: var(--muted); margin-left: 6px; }
.pr-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr-notes li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(11, 12, 16, .42); border: 1px solid rgba(217, 188, 133, .1); cursor: pointer; touch-action: manipulation; transition: border-color 160ms; }
.pr-notes li:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pr-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0E0F14; font: 700 12px/1 var(--mono, ui-monospace, monospace); margin-top: 1px; }
.pr-time { font: 600 11px/1.3 var(--mono, ui-monospace, monospace); color: var(--gold); letter-spacing: .04em; }
.pr-notes p { margin: 2px 0 0; font-size: .95rem; line-height: 1.55; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .pr-notes li:hover { border-color: rgba(217, 188, 133, .4); } }
.pr-score { display: grid; grid-template-columns: 1fr; border-radius: 14px; overflow: hidden; border: 1px solid rgba(217, 188, 133, .12); }
.pr-score > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 12px; background: rgba(11, 12, 16, .38); }
.pr-score > div:nth-child(even) { background: rgba(11, 12, 16, .22); }
.pr-score span { font-size: .88rem; color: var(--muted); }
.pr-score b { font: 600 13.5px/1.3 var(--mono, ui-monospace, monospace); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.pr-score small { grid-column: 1 / -1; font-size: .8rem; color: #B5AE9F; line-height: 1.35; }
@media (min-width: 640px) { .pr-score > div { grid-template-columns: 170px minmax(0, 1fr) auto; } .pr-score small { grid-column: auto; text-align: right; } .pr-score b { text-align: left; } }
.pr-rec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .pr-rec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pr-rec > div { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; background: radial-gradient(120% 100% at 100% 0%, rgba(217, 188, 133, .12), transparent 60%), rgba(11, 12, 16, .42); border: 1px solid rgba(217, 188, 133, .2); }
.pr-rec b { font: 600 26px/1.05 var(--mono, ui-monospace, monospace); color: var(--gold); }
.pr-rec span { font-size: .86rem; line-height: 1.35; color: var(--text); }
.pr-rec small { font: 500 11px/1.3 var(--mono, ui-monospace, monospace); color: var(--muted); margin-top: auto; }
.pr-note { margin: 10px 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.pr-levels { display: grid; gap: 2px; border-radius: 14px; overflow: hidden; }
.pr-levels > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(11, 12, 16, .38); }
.pr-levels span { font-size: .9rem; color: var(--text); }
.pr-levels b { font: 600 14px var(--mono, ui-monospace, monospace); color: var(--text); font-variant-numeric: tabular-nums; }
.pr-levels small { font: 500 11.5px var(--mono, ui-monospace, monospace); color: var(--muted); text-align: right; }
.pr-levels > div.cur { background: linear-gradient(90deg, rgba(217, 188, 133, .22), rgba(217, 188, 133, .06)); }
.pr-levels > div.cur span, .pr-levels > div.cur b { color: var(--gold); }
.pr-foot { margin: 14px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* =================== Lounge, reorganised (Nov 2026) ===================
   1 next step · 2 today in Panch · 3 from me · 4 the lounge */
.pl-top { display: flex; flex-direction: column; }
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin: 2px 0 14px; }
.pl-hi { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--text); }
.pl-sub { margin: 3px 0 0; font-size: .9rem; color: var(--muted); }
.pl-ask { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--pz-edge); background: var(--pz-surface); color: var(--gold); cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.pl-ask:active { transform: scale(.95); } .pl-ask svg { width: 19px; height: 19px; }
.pl-ring { --p: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(217, 188, 133, .16) 0); position: relative; }
.pl-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0E0F14; }
.pl-ring b { position: relative; font: 600 11.5px var(--mono, ui-monospace, monospace); color: var(--gold); }
.pl-k { margin: 0; font: 600 10.5px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.pl-k2 { margin: 20px 2px 8px; color: #A59E90; }
.pl-next { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; border: 1px solid transparent;
  background: radial-gradient(110% 120% at 100% 0%, rgba(217, 188, 133, .26), transparent 58%) padding-box, radial-gradient(90% 110% at 0% 100%, rgba(111, 134, 184, .22), transparent 62%) padding-box,
    linear-gradient(160deg, #1C1F28, #14161C 55%, #101219) padding-box, conic-gradient(from 210deg, #D9BC85, #8FA6D6, #6F86B8, #8C6E96, #8FA6D6, #D9BC85) border-box;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.pl-next b { font: 600 1.15rem/1.3 var(--sans); color: var(--text); margin-top: 4px; }
.pl-next small { font-size: .92rem; line-height: 1.4; color: var(--muted); }
.pl-next .btn { margin-top: 12px; width: 100%; min-height: 46px; }
.pl-agenda { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--pz-edge); background: var(--pz-surface); }
.pl-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; border: 0; border-top: 1px solid rgba(217, 188, 133, .1); background: none; color: var(--text); text-align: left; font: 500 .95rem/1.3 var(--sans); cursor: pointer; touch-action: manipulation; transition: background-color 160ms; }
.pl-row:first-child { border-top: 0; }
.pl-row:active { background: rgba(255, 255, 255, .04); }
.pl-ic { color: var(--gold); font-size: 15px; text-align: center; }
.pl-lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-note { font: 500 12px var(--mono, ui-monospace, monospace); color: var(--muted); white-space: nowrap; }
.pl-note em { font-style: normal; }
.pl-chev { color: var(--muted); font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .pl-row:hover { background: rgba(255, 255, 255, .04); } .pl-ask:hover { border-color: rgba(217, 188, 133, .5); } }
.pz-pin { padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(217, 188, 133, .16), rgba(217, 188, 133, .05)); border: 1px solid rgba(217, 188, 133, .35); }
.pz-pin p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text); }
.pz-pin small { display: block; margin-top: 6px; font-size: .8rem; color: #C9B27A; }
.pz-composebar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; margin-bottom: 10px; border-radius: 999px; border: 1px solid var(--pz-edge); background: var(--pz-surface); color: var(--muted); font: 400 .95rem/1.3 var(--sans); text-align: left; cursor: pointer; touch-action: manipulation; }
.pz-composebar.hidden { display: none; }
.pz-composebar svg { width: 18px; height: 18px; color: var(--gold); }
.pz-compose-foot { display: flex; align-items: center; gap: 10px; } .pz-compose-foot .small { margin-left: auto; }
.pz-filter { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pz-group { margin: 16px 2px 8px; font: 600 11px var(--mono, ui-monospace, monospace); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pz-react.add { font-size: 12.5px; color: var(--muted); }
.pz-reactall { display: inline-flex; gap: 6px; } .pz-reactall.hidden { display: none; }
.px-levels.wide { grid-template-columns: 1fr; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--pz-edge); background: var(--pz-surface); }
.px-levels.wide .px-lvl { display: grid; grid-template-columns: 110px minmax(0, 1fr) 78px; align-items: center; gap: 10px; }
.px-levels.wide .px-lvl small { text-align: right; }
.px-levels.wide .px-lvl { font-size: .88rem; color: var(--text); } .px-levels.wide .px-lvl i { grid-column: auto; height: 6px; }

/* admin: load a prepared class kit */
.pv-admkit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; padding: 10px 12px; border: 1px dashed rgba(224,168,46,.45); border-radius: 12px; }
.pv-admkit small { font-size: 12px; line-height: 1.4; }

/* Live: jump bar to every part of the page */
.pz-jump { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 14px; padding: 8px 4px; background: linear-gradient(180deg, rgba(11, 12, 16, .96), rgba(11, 12, 16, .88)); }
.pz-jump::-webkit-scrollbar { display: none; }
.pz-jump button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pz-edge); background: var(--pz-surface); color: var(--text); font: 600 13px/1 var(--sans); white-space: nowrap; cursor: pointer; touch-action: manipulation; user-select: none; transition: transform 140ms cubic-bezier(.23, 1, .32, 1), border-color 160ms, color 160ms; }
.pz-jump button:active { transform: scale(.97); }
.pz-jump button.on { color: #F1DFB4; border-color: rgba(217, 188, 133, .55); }
@media (hover: hover) and (pointer: fine) { .pz-jump button:hover { border-color: rgba(217, 188, 133, .45); } }
#pfMarket, #pxMap, #prDay, #prNotes, #prScore, #prClassRef, #pzClass, #pzLatest { scroll-margin-top: 130px; }
.pr-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.pr-who > div { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; background: rgba(11, 12, 16, .42); border: 1px solid rgba(217, 188, 133, .12); }
.pr-who > div.win { border-color: rgba(77, 179, 143, .45); } .pr-who > div.lose { border-color: rgba(217, 119, 107, .3); }
.pr-who span { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.pr-who b { font: 600 20px/1.1 var(--mono, ui-monospace, monospace); } .pr-who .win b { color: #7FCDB0; } .pr-who .lose b { color: #E8A49A; }
.pr-who small { font: 500 11px var(--mono, ui-monospace, monospace); color: var(--muted); }
.pr-ref { display: grid; gap: 8px; }
.pr-refbtn { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(217, 188, 133, .25); background: rgba(11, 12, 16, .42); color: var(--text); cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.pr-refbtn:active { transform: scale(.98); }
.pr-refbtn b { font: 600 12px var(--mono, ui-monospace, monospace); color: var(--gold); } .pr-refbtn span { font-size: .95rem; line-height: 1.4; } .pr-refbtn small { font-size: .8rem; color: var(--muted); }

/* =================== Onyx and champagne (Nov 2026) ===================
   Panch's own grade: near-black onyx, warm ivory text, champagne gold, with a little sapphire and mauve.
   Low saturation on purpose, so long sessions are easy on the eyes. Up and down stay green and red, only softer. */
body.panch {
  --ink: #0B0C10; --panel: #14161C; --raise: #1B1E26; --line: #2A2D36;
  --gold: #D9BC85; --gold-soft: rgba(217, 188, 133, .12);
  --text: #ECE6DA; --muted: #A59E90; --peacock: #8FA6D6; --peacock-deep: #2A2D36; --pblue: #6F86B8; --pviolet: #8C6E96;
  --pz-surface: linear-gradient(160deg, rgba(30, 32, 40, .78) 0%, rgba(20, 22, 29, .82) 55%, rgba(18, 19, 26, .86) 100%);
  --pz-edge: rgba(217, 188, 133, .14);
  background: #0B0C10;
}
body.panch::before { background:
  radial-gradient(70% 40% at 100% -6%, rgba(217, 188, 133, .13), transparent 70%),
  radial-gradient(60% 40% at -10% 24%, rgba(111, 134, 184, .12), transparent 70%),
  radial-gradient(60% 34% at 50% 108%, rgba(140, 110, 150, .08), transparent 70%),
  linear-gradient(180deg, #0D0E13 0%, #0B0C10 55%, #0C0D12 100%); }
body.panch .topbar { background: linear-gradient(180deg, rgba(217, 188, 133, .06), transparent 80%), #0B0C10; border-bottom-color: rgba(217, 188, 133, .12); }
body.panch .bottom-nav { background: rgba(11, 12, 16, .95); border-top-color: rgba(217, 188, 133, .12); }
.px-day, .pv-hero, .pz-livecard, .pl-next {
  background: radial-gradient(110% 120% at 100% 0%, rgba(217, 188, 133, .10), transparent 58%) padding-box,
    linear-gradient(160deg, #1C1F28, #14161C 55%, #101219) padding-box,
    linear-gradient(135deg, rgba(241, 223, 180, .7), rgba(217, 188, 133, .25) 40%, rgba(111, 134, 184, .3) 75%, rgba(241, 223, 180, .55)) border-box;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
body.panch .pz-head h1 { background: linear-gradient(100deg, #F6E9C8 0%, #D9BC85 55%, #B9965E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.panch .pz-head h1 em { -webkit-text-fill-color: #CFC6B4; }
body.panch .wrap.pz > .tabs .tab[aria-selected="true"] { color: #F1DFB4; background: linear-gradient(135deg, rgba(217, 188, 133, .2), rgba(217, 188, 133, .08)); box-shadow: inset 0 0 0 1px rgba(217, 188, 133, .4); }
.pv-track i b, .pz-mprog i b, .px-lvl i b { background: linear-gradient(90deg, #6F86B8, #D9BC85); }
body.panch .btn:not(.ghost):not(.quiet):not(.danger):not(:disabled) { background: linear-gradient(135deg, #EEDDB3, #CDAE73); color: #111216; box-shadow: 0 8px 22px -12px rgba(217, 188, 133, .55); }
.pz-jump { background: linear-gradient(180deg, rgba(11, 12, 16, .97), rgba(11, 12, 16, .9)); }
.up { color: #7FCDB0; } .dn { color: #E8A49A; }
.pl-ring::before { background: #111216; }
/* "In simple words" under each explained point */
.pr-simple { margin-top: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(217, 188, 133, .4); background: rgba(217, 188, 133, .08); color: var(--gold); font: 600 12.5px/1 var(--sans); cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.pr-simple:active { transform: scale(.97); }
.pr-simple-box { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(217, 188, 133, .06); border: 1px solid rgba(217, 188, 133, .16); }
.pr-simple-box[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .pr-simple-box:not([hidden]) { animation: prPop 220ms cubic-bezier(.23, 1, .32, 1); } }
.pr-simple-a p, .pr-simple-a li { font-size: .95rem; line-height: 1.6; color: var(--text); margin: 0 0 8px; }
.pr-simple-k { margin: 10px 0 6px; font: 600 10.5px var(--mono, ui-monospace, monospace); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pr-simple-wait { margin: 0; font-size: .9rem; color: var(--muted); }

/* =================== Mentor desk (panchmentor.js) =================== */
.pm-head h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 1.5rem; color: var(--text); }
.pm-sub { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.pm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
@media (min-width: 760px) { .pm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pm-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--pz-edge); background: var(--pz-surface); }
.pm-tile span { font-size: .82rem; color: var(--muted); } .pm-tile b { font: 600 24px/1.1 var(--mono, ui-monospace, monospace); color: var(--gold); } .pm-tile small { font-size: .78rem; color: var(--muted); }
.pm-tile.warn b { color: #E8A49A; } .pm-tile.good b { color: #7FCDB0; }
.pm-list { display: grid; gap: 8px; }
.pm-empty { margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--pz-edge); color: var(--muted); font-size: .9rem; }
.pm-row { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--pz-edge); background: var(--pz-surface); }
.pm-row.hot { border-color: rgba(217, 119, 107, .45); }
.pm-who { display: flex; align-items: center; gap: 10px; } .pm-who b { display: block; color: var(--text); font-size: .98rem; } .pm-who small { color: var(--muted); font-size: .8rem; }
.pm-why { margin: 8px 0 0; font-size: .88rem; color: #E8A49A; } .pm-why.ok { color: #7FCDB0; }
.pm-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .8rem; color: var(--muted); } .pm-stats b { font-family: var(--mono, ui-monospace, monospace); color: var(--text); font-weight: 600; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pm-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(217, 188, 133, .45); background: rgba(217, 188, 133, .1); color: var(--gold); font: 600 13px/1 var(--sans); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.pm-btn.ghost { background: none; color: var(--text); border-color: var(--pz-edge); } .pm-btn:active { transform: scale(.97); }
.pm-miss { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--pz-edge); background: var(--pz-surface); color: var(--text); cursor: pointer; }
.pm-pct { font: 600 20px/1.1 var(--mono, ui-monospace, monospace); color: #E8A49A; }
.pm-miss b { display: block; font: 600 12px var(--mono, ui-monospace, monospace); color: var(--gold); } .pm-miss em { display: block; font-style: normal; font-size: .93rem; line-height: 1.4; margin-top: 2px; } .pm-miss small { color: var(--muted); font-size: .78rem; }
.pm-ask { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--pz-edge); background: var(--pz-surface); } .pm-ask p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--text); } .pm-ask small { color: var(--muted); font-size: .78rem; }
.pm-sess { display: grid; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid var(--pz-edge); }
.pm-sess button { display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 9px 12px; border: 0; background: rgba(20, 22, 29, .7); color: var(--text); text-align: left; cursor: pointer; }
.pm-sess span { grid-row: 1 / 3; font: 600 12px var(--mono, ui-monospace, monospace); color: var(--gold); } .pm-sess em { font-style: normal; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-sess i { grid-column: 3; grid-row: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; } .pm-sess i b { display: block; height: 100%; background: linear-gradient(90deg, #6F86B8, #D9BC85); }
.pm-sess small { grid-column: 2 / 4; font-size: .76rem; color: var(--muted); }
