/* Scoped to the on-demand training view; native/full training stays available. */
.ph8520-training { --ph8520-ink:#173450; --ph8520-muted:#698096; --ph8520-border:#dbe5ef; --ph8520-fill:#f6f9fd; --ph8520-accent:#2867dc; }
html body .row.ph8520-training-layout {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(195px,236px);
  align-items:start; gap:16px; width:min(calc(100% - 28px),1320px);
  max-width:none; margin-inline:auto!important;
}
html body .row.ph8520-training-layout:has(> .ph8520-training-members) {
  grid-template-columns:minmax(148px,183px) minmax(0,1fr) minmax(195px,236px);
}
.ph8520-training-layout::before,.ph8520-training-layout::after { display:none!important; }
.ph8520-training-layout > :is(.ph8520-training-main,.ph8520-training-members,.ph8520-training-aside) { min-width:0; }
.ph8520-training-aside { position:sticky; top:calc(var(--ph85191-navbar-height,60px) + var(--ph85191-ticker-height,30px) + 14px); overflow-wrap:anywhere; }
.ph8520-training-aside .ph8520-training-desktop-toc { max-height:42dvh; overflow:auto; }
.ph8520-training-members > summary,.ph8520-training-jump > summary {
  display:flex; align-items:center; gap:8px; padding:10px 13px; min-height:44px;
  box-sizing:border-box; cursor:pointer; list-style:none; border:1px solid var(--ph8520-border,#dbe5ef);
  border-radius:11px; background:var(--ph8520-fill,#f6f9fd); color:var(--ph8520-ink,#173450);
  font-weight:700; transition:background-color .2s ease,border-color .2s ease;
}
.ph8520-training-members > summary::-webkit-details-marker,.ph8520-training-jump > summary::-webkit-details-marker { display:none; }
.ph8520-training-members > summary:hover,.ph8520-training-jump > summary:hover { border-color:var(--ph8520-accent,#2867dc); }
.ph8520-training-members > .section { max-height:42dvh; overflow:auto; margin-top:5px; }
.ph8520-training-jump { display:none; margin:0 0 12px; }
.ph8520-training-jump > summary > strong { flex:1; }
.ph8520-jump-count { border-radius:12px; padding:1px 7px; font-size:11px; background:color-mix(in srgb,var(--ph8520-accent) 10%,transparent); }
.ph8520-training-jump nav { margin-top:5px; padding:5px; border:1px solid var(--ph8520-border); border-radius:11px; background:var(--ph8520-fill); max-height:44dvh; overflow:auto; }
.ph8520-training-jump ol { list-style:none; padding:0; margin:0; }
.ph8520-training-jump a { display:flex; gap:8px; align-items:center; padding:8px; border-radius:7px; color:var(--ph8520-ink); overflow-wrap:anywhere; transition:background-color .18s ease; }
.ph8520-training-jump a:hover,.ph8520-training-jump a[aria-current="location"] { background:color-mix(in srgb,var(--ph8520-accent) 12%,transparent); }
.ph8520-training-jump a span { display:grid; place-items:center; min-width:25px; height:25px; color:var(--ph8520-accent); border-radius:6px; background:color-mix(in srgb,var(--ph8520-accent) 10%,transparent); }
.ph8520-training-layout .ph8520-member { display:flex; align-items:center; gap:7px; min-width:0; }
.ph8520-training-layout .ph8520-member > img { flex:0 0 20px; margin:0; }
.ph8520-training-layout .ph8520-member > .user-profile-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph8520-training-layout .section { box-sizing:border-box; width:100%!important; max-width:100%; margin-left:0!important; margin-right:0!important; }
.ph8520-training .section { overflow:hidden; opacity:1!important; transform:none!important; }
.ph8520-training .ph8520-eyebrow { color:var(--ph8520-accent); font:750 10px/1.4 system-ui,sans-serif; letter-spacing:.1em; }
.ph8520-training .ph8520-title { margin:8px 0 12px; color:var(--ph8520-ink); font-size:26px; line-height:1.3; }
.ph8520-overview-counts { display:flex; flex-wrap:wrap; gap:7px; }
.ph8520-overview-counts > span { padding:4px 9px; border:1px solid var(--ph8520-border); border-radius:999px; color:var(--ph8520-muted); background:var(--ph8520-fill); font-size:11px; }
.ph8520-training .ph8520-description { margin:14px 0 12px; color:var(--ph8520-muted); font-size:13px; line-height:1.7; white-space:pre-line; }
.ph8520-full-link { color:var(--ph8520-accent); font-size:11px; }
.ph8520-about { margin:12px 0; color:var(--ph8520-muted); font-size:12px; }
.ph8520-about > summary { cursor:pointer; padding:4px 0; }
.ph8520-summary { display:flex; align-items:center; gap:12px; box-sizing:border-box; min-height:76px; padding:15px 18px; list-style:none; cursor:pointer; color:var(--ph8520-ink); background:var(--ph8520-fill); }
.ph8520-summary::-webkit-details-marker { display:none; }
.ph8520-summary::marker { content:''; }
.ph8520-summary:hover { filter:brightness(.985); }
.ph8520-summary:focus-visible { outline:2px solid var(--ph8520-accent); outline-offset:-3px; border-radius:12px; }
.ph8520-summary-icon,.ph8520-node-number { display:grid; flex:0 0 34px; width:34px; height:34px; place-items:center; border:1px solid var(--ph8520-border); border-radius:10px; color:var(--ph8520-accent); background:rgba(64,131,221,.08); font-size:16px; font-weight:750; }
.ph8520-summary-copy { flex:1 1 auto; min-width:0; }
.ph8520-summary-copy > strong,.ph8520-summary-copy > h2 { display:block; margin:0!important; color:var(--ph8520-ink)!important; font-size:15px!important; line-height:1.45!important; }
.ph8520-summary-copy > small { display:block; margin-top:5px; color:var(--ph8520-muted); font-size:11px; line-height:1.4; }
.ph8520-stage-progress { display:block; width:min(100%,115px); height:3px; margin-top:7px; border-radius:4px; overflow:hidden; background:var(--ph8520-border); }
.ph8520-stage-progress i { display:block; width:clamp(0%,var(--progress),100%); height:100%; background:linear-gradient(90deg,var(--ph8520-accent),#ad8c52); border-radius:inherit; transform-origin:left; }
.ph8520-chevron { flex:0 0 18px; font-size:17px; color:var(--ph8520-muted); transition:transform .16s ease; }
.ph8520-training details[open] > summary .ph8520-chevron { transform:rotate(180deg); }
.ph8520-training details[open] > summary { border-bottom:1px solid var(--ph8520-border); }
.ph8520-node-status { flex:0 0 auto; font-size:10px; font-weight:700; }
.ph8520-training .ph8520-section { margin-bottom:12px!important; scroll-margin-top:106px; }
.ph8520-section-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; margin:24px 0 12px; }
.ph8520-section-heading h2 { margin:0; font-size:19px; color:var(--ph8520-ink); }
.ph8520-section-heading > span { color:var(--ph8520-muted); font-size:11px; }
.ph8520-load-state { display:flex; flex-wrap:wrap; align-items:center; gap:12px; min-height:70px; padding:16px 18px; color:var(--ph8520-muted); font-size:12px; }
.ph8520-load-state a { color:var(--ph8520-accent); }
.ph8520-load-state .button { margin:0; }
/* A single table contract, independent of when the section is loaded. Avoid
   the generic data-table enhancer: it splits SSR headers but not lazy ones. */
.ph8520-training [data-ph-training-lazy="section"] > [data-ph-training-content] { container:ph8522-section / inline-size; }
.ph8520-training .ph8520-problem-scroll { margin:0; padding:0; overflow-x:auto; overscroll-behavior-x:contain; }
.ph8520-training .ph8520-problem-table { min-width:620px; width:100%; margin:0; table-layout:fixed!important; border-collapse:separate; border-spacing:0; color:var(--ph8520-ink); font-size:13px; }
.ph8520-training .ph8520-problem-table th,
.ph8520-training .ph8520-problem-table td { display:table-cell!important; box-sizing:border-box; height:auto; padding:12px 10px!important; border:0; border-bottom:1px solid var(--ph8520-border); vertical-align:middle; text-align:left; overflow:visible; text-overflow:clip; white-space:normal; }
.ph8520-training .ph8520-problem-table col { display:table-column!important; }
.ph8520-training .ph8520-problem-table th { height:48px; background:var(--ph8520-fill); color:var(--ph8520-muted); font-size:12px; font-weight:700; line-height:20px; white-space:nowrap; }
.ph8520-training .ph8520-problem-table td { background:transparent; font-size:13px; line-height:1.55; }
.ph8520-training .ph8520-problem-table tbody tr:last-child td { border-bottom:0; }
.ph8520-training .ph8520-problem-table tbody tr { transition:background-color .18s ease; }
.ph8520-training .ph8520-problem-table tbody tr:is(:hover,:focus-within) { background:var(--ph8520-fill); }
.ph8520-training .ph8520-problem-table .col--name { width:auto!important; min-width:210px; overflow-wrap:anywhere; }
.ph8520-training .ph8520-problem-table .col--status { width:96px!important; }
.ph8520-training .ph8520-problem-table td.col--status { font-size:11px; }
.ph8520-training .ph8520-problem-table .ph8522-status-self { width:140px!important; }
.ph8520-training .ph8520-problem-table .col--tried,
.ph8520-training .ph8520-problem-table .col--ac { width:48px!important; text-align:center; font-variant-numeric:tabular-nums; }
.ph8520-training .ph8520-problem-table .col--difficulty { width:68px!important; text-align:center; font-variant-numeric:tabular-nums; }
.ph8520-training .ph8520-problem-table .col--status__text { display:flex; align-items:center; gap:4px; white-space:normal; }
.ph8520-training .ph8520-problem-table .record-status--text { font-size:11px; line-height:1.5; }
.ph8520-training .ph8520-problem-table .ph8522-empty { color:var(--ph8520-muted); font-weight:400; }
.ph8520-training .ph8520-problem-table .ph8521-problem-title,
.ph8520-training .ph8520-problem-table .ph8521-problem-title > a { color:var(--ph8520-ink); font-size:13px; font-weight:600; line-height:1.55; }
.ph8520-training .ph8520-problem-table .ph8521-problem-title { display:block; }
.ph8520-training .ph8521-problem-link { display:inline; overflow-wrap:anywhere; }
.ph8520-training .ph8521-problem-link b { margin-inline-end:7px; }
.ph8520-training .ph8520-problem-table .star-form + .ph8521-problem-title { padding-left:25px; }
.ph8520-training .ph8520-problem-table .ph8521-problem-title b { font-size:12px; font-weight:700; }
.ph8520-training .ph8520-problem-table .ph8521-problem-title > a:hover { color:var(--ph8520-accent); text-decoration:underline; }
.ph8520-training .ph8520-problem-table .star-form { float:left; width:21px; margin:0 4px 0 0; }
.ph8520-training .ph8520-problem-table .star { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:21px; height:22px; min-width:0; min-height:0; margin:0; padding:0!important; border:0; border-radius:5px; background:transparent; box-shadow:none; color:var(--ph8520-muted); font-size:13px; line-height:1.15!important; cursor:pointer; }
.ph8520-training .ph8520-problem-table .star.activated { color:#cf941d; }
.ph8520-training .ph8520-problem-table .star { transition:color .18s ease,background-color .18s ease,transform .18s ease; }
.ph8520-training .ph8520-problem-table .star:is(:hover,:focus-visible) { color:#a66b19; transform:scale(1.06); }
.ph8520-training .ph8520-problem-table .star:active { transform:scale(.93); }
.ph8520-training .ph8520-problem-table a:focus-visible,
.ph8520-training .ph8520-problem-table .star:focus-visible { outline:2px solid var(--ph8520-accent); outline-offset:2px; border-radius:4px; }
.ph8520-training .ph8520-problem-scroll:focus-visible { outline:2px solid var(--ph8520-accent); outline-offset:-2px; }
.ph8520-training .ph8520-problem-table td::before { content:none; }
/* Respond to the actual content column, not the viewport: a tablet with side
   panels needs the same readable layout as a phone. One DOM, no duplicate rows. */
@container ph8522-section (max-width:620px) {
  .ph8520-training .ph8520-problem-scroll { overflow:visible; }
  .ph8520-training .ph8520-problem-table { display:block; min-width:0; width:100%; }
  .ph8520-training .ph8520-problem-table colgroup { display:none; }
  /* Keep table headers available to assistive technology. Explicit table,
     row and cell roles survive the visual grid layout across browsers. */
  .ph8520-training .ph8520-problem-table thead { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .ph8520-training .ph8520-problem-table tbody { display:block; width:100%; }
  .ph8520-training .ph8520-problem-table tbody { box-sizing:border-box; padding:8px; background:var(--ph8520-fill); }
  .ph8520-training .ph8520-problem-table tbody tr { display:grid; grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap:7px; box-sizing:border-box; margin:0 0 7px; padding:9px 10px; border:1px solid var(--ph8520-border); border-radius:10px; background:var(--ph8520-card,#fff); }
  .ph8520-training .ph8520-problem-table tbody tr:last-child { margin-bottom:0; border-bottom:1px solid var(--ph8520-border); }
  .ph8520-training .ph8520-problem-table tbody tr:is(:hover,:focus-within) { background:var(--ph8520-card,#fff); border-color:color-mix(in srgb,var(--ph8520-accent) 32%,var(--ph8520-border)); }
  .ph8520-training .ph8520-problem-table tbody td[role="cell"] { display:block!important; width:auto!important; min-width:0; height:auto; margin:0; padding:0!important; border:0; text-align:left; overflow-wrap:anywhere; }
  .ph8520-training .ph8520-problem-table tbody td::before { display:block; content:attr(data-label); color:var(--ph8520-muted); font-size:10px; font-weight:600; line-height:15px; }
  .ph8520-training .ph8520-problem-table tbody .col--name { order:1; grid-column:1 / -1; }
  .ph8520-training .ph8520-problem-table tbody .col--name::before { content:none; }
  .ph8520-training .ph8520-problem-table tbody .col--status { order:2; }
  .ph8520-training .ph8520-problem-table tbody :is(.col--tried,.col--ac,.col--difficulty) { order:3; font-weight:700; }
  .ph8520-training .ph8520-problem-table tbody :is(.col--tried,.col--ac,.col--difficulty)[role="cell"] { padding:2px 5px!important; text-align:center; background:var(--ph8520-fill); border-radius:6px; }
  .ph8520-training .ph8520-problem-table tbody tr:not(:has(.col--status)),.ph8520-training .ph8520-problem-table.ph8522-compare tbody tr { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .ph8520-training .ph8520-problem-table.ph8522-compare tbody .col--status { grid-column:span 3; }
  .ph8520-training .ph8520-problem-table.ph8522-compare tbody :is(.col--tried,.col--ac,.col--difficulty),.ph8520-training .ph8520-problem-table tbody tr:not(:has(.col--status)) :is(.col--tried,.col--ac,.col--difficulty) { grid-column:span 2; }
  .ph8520-training .ph8520-problem-table .ph8521-problem-title { min-width:0; padding-top:0; }
  .ph8520-training .ph8520-problem-table .ph8521-problem-link { display:grid; gap:2px; line-height:1.4; }
  .ph8520-training .ph8520-problem-table .ph8521-problem-link b { margin:0; color:var(--ph8520-accent); font-size:10px; }
  .ph8520-training .ph8520-problem-table .star-form { float:right; width:38px; margin:0 0 0 8px; }
  .ph8520-training .ph8520-problem-table .star { width:38px; height:38px; background:var(--ph8520-fill); border:1px solid var(--ph8520-border); border-radius:8px; font-size:15px; }
  .ph8520-training .ph8520-problem-table .star-form + .ph8521-problem-title { min-height:38px; padding-left:0; }
}
.ph8520-page-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid var(--ph8520-border); color:var(--ph8520-muted); font-size:11px; }
.ph8520-page-footer .button { margin:0; font-size:11px; }
.ph8520-page-footer [aria-disabled="true"] { opacity:.65; cursor:wait; }
.ph8520-theory-body { overflow-wrap:anywhere; }
.ph8520-theory-body img { max-width:100%; height:auto; }
html.theme--dark .ph8520-training,html.theme--dark .ph8520-training-layout { --ph8520-ink:#edcf8b; --ph8520-muted:#9fb2c7; --ph8520-border:#2b4058; --ph8520-fill:#132236; --ph8520-accent:#8dbaff; --ph8520-card:#19293d; }
@media(max-width:1100px) {
  html body .row.ph8520-training-layout:has(> .ph8520-training-members) { grid-template-columns:minmax(0,1fr) minmax(188px,216px); }
  .ph8520-training-members { grid-column:1 / -1; }
}
@media(max-width:880px) {
  html body .row.ph8520-training-layout,html body .row.ph8520-training-layout:has(> .ph8520-training-members) { grid-template-columns:minmax(0,1fr); gap:9px; width:calc(100% - 22px); }
  .ph8520-training-aside { position:static; }
  .ph8520-training-desktop-toc { display:none!important; }
  .ph8520-training-jump { display:block; }
}
@media(max-width:600px) {
  .ph8520-summary { gap:9px; padding:13px 12px; }
  .ph8520-summary-copy > strong,.ph8520-summary-copy > h2 { font-size:13px!important; }
  .ph8520-node-status { display:none; }
  .ph8520-training .ph8520-title { font-size:23px; }
  .ph8520-section-heading { margin-top:20px; }
  .ph8520-page-footer { flex-wrap:wrap; }
  .ph8520-page-footer .button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; }
}
@media(prefers-reduced-motion:no-preference) {
  html.ph-atmosphere-motion .ph8520-training details[open] > .ph8520-lazy-content,
  html.ph-atmosphere-motion .ph8520-training-jump[open] nav,
  html.ph-atmosphere-motion .ph8520-training [data-ph-training-arrive] { animation:ph8520-rise .23s ease-out both; }
  html.ph-atmosphere-motion .ph8520-training details[open] .ph8520-stage-progress i { animation:ph8520-grow .4s ease-out both; }
}
@keyframes ph8520-rise { from { opacity:.45; transform:translateY(4px); } to { opacity:1; transform:none; } }
@keyframes ph8520-grow { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media(prefers-reduced-motion:reduce) {
  .ph8520-training *, .ph8520-training-layout :is(summary,a) { transition:none!important; animation:none!important; }
}

/* Stage headings share one title row, one progress/reward row and equal reward
   slots. Queries follow the content column, including layouts with sidebars. */
[data-ph-journey="2"] .ph8520-section { container:phjourney-stage / inline-size;border:1px solid var(--ph8520-border);border-radius:14px;box-shadow:0 5px 16px #17345007; }
html body [data-ph-journey="2"] .ph-journey-stage-head { position:relative;isolation:isolate;align-items:center;gap:14px;min-height:126px;padding:18px 16px;background:linear-gradient(115deg,color-mix(in srgb,var(--ph8520-accent) 4%,var(--ph8520-fill)),var(--ph8520-fill) 65%);filter:none;transition:background-color .2s ease,box-shadow .2s ease; }
[data-ph-journey="2"] .ph-journey-stage-head > * { position:relative;z-index:1; }
[data-ph-journey="2"] .ph-journey-stage-head::before { content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 3px 0 #b99b65;opacity:.55;transition:opacity .25s ease; }
[data-ph-journey="2"] .ph-journey-stage-head::after { content:'';position:absolute;left:8%;bottom:0;width:110px;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#d0a552,transparent);opacity:0; }
[data-ph-journey="2"] .ph-journey-stage-head:is(:hover,:focus-visible)::before,[data-ph-journey="2"] details[open] > .ph-journey-stage-head::before { opacity:1; }
[data-ph-journey="2"] .ph-journey-stage-head:hover { box-shadow:inset 0 0 28px #bfa15f0b; }
[data-ph-journey="2"] .ph-journey-stage-head .ph8520-node-number { position:relative;align-self:center;flex:0 0 42px;width:42px;height:46px;border-radius:12px;background:linear-gradient(145deg,var(--ph8520-fill),color-mix(in srgb,var(--ph8520-accent) 12%,var(--ph8520-fill)));border-color:color-mix(in srgb,var(--ph8520-accent) 20%,var(--ph8520-border));box-shadow:inset 0 1px #ffffff66,0 3px 9px #17345009;font-size:18px;font-variant-numeric:tabular-nums; }
[data-ph-journey="2"] .ph-journey-stage-head .ph8520-node-number::after { content:'';position:absolute;inset:-5px;border:1px solid transparent;border-top-color:#bc9b5b66;border-bottom-color:#79abb933;border-radius:16px;pointer-events:none;opacity:0; }
[data-ph-journey="2"] .ph-journey-stage-title { display:flex;align-items:baseline;justify-content:space-between;gap:10px 16px;min-width:0;margin-bottom:12px; }
html body [data-ph-journey="2"] .ph-journey-stage-title > h2 { flex:1;min-width:0;margin:0!important;padding:0;color:var(--ph8520-ink)!important;font-size:15px!important;line-height:1.6!important;font-weight:700;overflow-wrap:anywhere; }
html body [data-ph-journey="2"] .ph-journey-stage-title > .ph8520-node-status { display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;align-self:center;padding:3px 8px;border:1px solid color-mix(in srgb,var(--ph8520-accent) 15%,var(--ph8520-border));border-radius:20px;background:color-mix(in srgb,var(--ph8520-accent) 5%,var(--ph8520-fill));color:var(--ph8520-muted)!important;font-size:10px!important;line-height:1.5;font-weight:600;white-space:nowrap; }
[data-ph-journey="2"] .ph8520-node-status::before { content:'';width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.75; }
html body [data-ph-journey="2"] .ph-journey-stage-title > .ph8520-node-status.progress { color:#337c83!important;border-color:#9bc8cc77;background:#eff9f655; }
html body [data-ph-journey="2"] .ph-journey-stage-title > .ph8520-node-status.done { color:#277954!important;border-color:#9ac8ab77;background:#eef9f455; }
[data-ph-journey="2"] .ph-journey-stage-bottom { display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0; }
[data-ph-journey="2"] .ph-journey-stage-progress { flex:1;min-width:110px;max-width:230px; }
[data-ph-journey="2"] .ph-journey-stage-progress > small { display:flex;align-items:baseline;flex-wrap:wrap;gap:3px;color:var(--ph8520-muted);font-size:11px;line-height:1.7; }
[data-ph-journey="2"] .ph-journey-stage-progress > small > span { margin-inline:3px;opacity:.6; }
[data-ph-journey="2"] .ph-journey-stage-progress b { font-weight:650;font-variant-numeric:tabular-nums;color:var(--ph8520-ink); }
[data-ph-journey="2"] .ph8520-stage-progress { width:100%;height:5px;margin-top:7px;background:color-mix(in srgb,var(--ph8520-accent) 10%,var(--ph8520-border));box-shadow:inset 0 1px 2px #17345008; }
[data-ph-journey="2"] .ph8520-stage-progress > i { position:relative;overflow:hidden;min-width:0;background:linear-gradient(90deg,#477f9a,#c3a15b); }
[data-ph-journey="2"] .ph8520-stage-progress > i::after { content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff70,transparent);transform:translateX(-100%); }
[data-ph-journey="2"] .ph-journey-rewards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:0 0 350px;max-width:100%;min-width:0;align-items:stretch; }
[data-ph-journey="2"] .ph-journey-rewards:empty { display:none; }
[data-ph-journey="2"] .ph-journey-rewards:has(> :only-child) { grid-template-columns:minmax(0,1fr);flex-basis:175px; }
html body [data-ph-journey="2"] .ph-journey-rewards > :is(.ph-stage-mini,.ph-core-mini) { box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:56px;margin:0;padding:7px 9px;border-radius:10px;box-shadow:inset 0 1px #ffffff90,0 2px 7px #17345008;line-height:1.4; }
html body [data-ph-journey="2"] .ph-journey-rewards > .ph-stage-mini { display:flex;align-items:center;justify-content:space-between;gap:6px;white-space:normal; }
[data-ph-journey="2"] .ph-stage-mini-copy { display:grid;align-content:center;gap:3px;min-width:0; }
[data-ph-journey="2"] .ph-stage-mini-label { font-size:11px;font-weight:700;line-height:1.4; }
[data-ph-journey="2"] .ph-stage-mini-value { gap:4px;line-height:1.4; }
[data-ph-journey="2"] .ph-stage-mini-unit { font-size:10px;white-space:nowrap; }
[data-ph-journey="2"] .ph-stage-mini .ph8570-currency-icon { flex:none;width:20px;height:20px; }
html body [data-ph-journey="2"] .ph-stage-mini .ph-stage-hint { font-size:10px;line-height:1.3;padding:3px 0 3px 6px;font-variant-numeric:tabular-nums; }
[data-ph-journey="2"] .ph-stage-mini .ph-stage-own { font-size:10px;white-space:nowrap; }
html body [data-ph-journey="2"] .ph-stage-mini .ph-stage-claim { min-height:30px;padding:3px 6px;font-size:10px;line-height:1.35; }
[data-ph-journey="2"] .ph-journey-rewards .ph-core-mini { display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:3px 6px;align-items:center; }
[data-ph-journey="2"] .ph-journey-rewards .ph-core-gem { grid-column:1;grid-row:1/3;width:12px;font-size:16px; }
[data-ph-journey="2"] .ph-journey-rewards .ph-core-mini-copy { display:contents; }
[data-ph-journey="2"] .ph-core-mini-copy b { grid-column:2/-1;grid-row:1;display:flex;align-items:baseline;justify-content:space-between;gap:4px;font-size:11px;font-weight:700;letter-spacing:0;white-space:nowrap; }
[data-ph-journey="2"] .ph-core-mini-copy small { grid-column:2;grid-row:2;font-size:11px;font-variant-numeric:tabular-nums; }
[data-ph-journey="2"] .ph-core-mini-copy [data-ph-core-progress] { font-size:10px;font-variant-numeric:tabular-nums; }
[data-ph-journey="2"] .ph-core-claim { grid-column:3;grid-row:2;position:relative;isolation:isolate;overflow:hidden;min-height:26px;max-width:100%;padding:3px 6px;font-size:10px;border-radius:7px; }
[data-ph-journey="2"] .ph-core-done { grid-column:3;grid-row:2; }
[data-ph-journey="2"] .ph-core-claim::after { content:'';position:absolute;inset:-20% -50%;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#fff8 50%,transparent 60%);transform:translateX(-70%);opacity:0; }
[data-ph-journey="2"] .ph-core-mini.is-error { grid-template-rows:auto auto; }
[data-ph-journey="2"] .ph-core-mini.is-error .ph-core-feedback { position:static;grid-column:1/-1;width:auto;max-width:none;padding:5px 0 0;border:0;box-shadow:none;background:transparent; }
[data-ph-journey="2"] .ph8520-chevron { align-self:center;flex-basis:16px;transition:transform .3s cubic-bezier(.2,.8,.2,1),color .2s ease; }
[data-ph-journey="2"] .ph-journey-stage-head:hover .ph8520-chevron { color:var(--ph8520-accent); }
[data-ph-journey="2"] .ph8520-problem-table tbody tr:is(:hover,:focus-within) .ph8521-problem-link { color:var(--ph8520-accent); }
[data-ph-journey="2"] .ph8520-problem-table .star:hover { transform:rotate(-9deg) scale(1.12); }
[data-ph-journey="2"] .ph8520-problem-table .star:active { transform:scale(.9); }
@container phjourney-stage (max-width:700px) {
 html body [data-ph-journey="2"] .ph-journey-stage-head { gap:11px;padding:16px 13px; }
 [data-ph-journey="2"] .ph-journey-stage-head .ph8520-node-number { width:34px;flex-basis:34px;height:40px;font-size:16px; }
 [data-ph-journey="2"] .ph-journey-rewards { flex-basis:320px; }
 [data-ph-journey="2"] .ph-journey-stage-progress { min-width:92px; }
 [data-ph-journey="2"] .ph-journey-stage-progress > small { gap:2px;font-size:10px; }
}
@container phjourney-stage (max-width:600px) {
 [data-ph-journey="2"] .ph-journey-stage-title { align-items:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:10px; }
 html body [data-ph-journey="2"] .ph-journey-stage-title > h2 { flex-basis:100%;font-size:14px!important;line-height:1.55!important; }
 html body [data-ph-journey="2"] .ph-journey-stage-title > .ph8520-node-status { padding:2px 7px;font-size:9px!important; }
 [data-ph-journey="2"] .ph-journey-stage-bottom { flex-direction:column;align-items:stretch;gap:12px; }
 [data-ph-journey="2"] .ph-journey-stage-progress { max-width:none; }
 [data-ph-journey="2"] .ph-journey-rewards,[data-ph-journey="2"] .ph-journey-rewards:has(> :only-child) { width:100%;flex-basis:auto; }
 [data-ph-journey="2"] .ph-journey-rewards .ph-core-mini { grid-template-columns:12px minmax(0,1fr); }
 [data-ph-journey="2"] .ph-core-claim { grid-column:1/-1;grid-row:3;width:100%;min-height:30px; }
 [data-ph-journey="2"] .ph-core-done { grid-column:1/-1;grid-row:3;justify-self:center;line-height:1; }
 [data-ph-journey="2"] .ph-journey-stage-head .ph8520-node-number { align-self:flex-start;margin-top:2px; }
 [data-ph-journey="2"] .ph-journey-stage-head > .ph8520-chevron { align-self:flex-start;margin-top:10px; }
}
@container phjourney-stage (max-width:390px) {
 html body [data-ph-journey="2"] .ph-journey-stage-head { gap:8px;padding:14px 10px; }
 [data-ph-journey="2"] .ph-journey-stage-head .ph8520-node-number { width:28px;flex-basis:28px;height:34px;font-size:15px;border-radius:9px; }
 [data-ph-journey="2"] .ph-journey-rewards { gap:6px; }
 html body [data-ph-journey="2"] .ph-journey-rewards > :is(.ph-stage-mini,.ph-core-mini) { padding:6px; }
 [data-ph-journey="2"] .ph-journey-rewards > .ph-stage-mini { flex-direction:column;align-items:flex-start;justify-content:center;gap:5px; }
 html body [data-ph-journey="2"] .ph-stage-mini .ph-stage-hint { padding:0;border-left:0; }
 [data-ph-journey="2"] .ph-core-mini-copy b { flex-wrap:wrap;gap:1px 4px;font-size:10px; }
 [data-ph-journey="2"] .ph-stage-mini-label { font-size:10px; }
 [data-ph-journey="2"] .ph-stage-mini-unit { font-size:9px; }
 [data-ph-journey="2"] .ph8520-stage-progress { height:4px; }
}
html.theme--dark [data-ph-journey="2"] .ph-journey-stage-head { background:linear-gradient(115deg,#21364a,#192d41 70%); }
html.theme--dark [data-ph-journey="2"] .ph-journey-stage-head .ph8520-node-number { box-shadow:inset 0 1px #ffffff12,0 3px 9px #0002; }
html.theme--dark body [data-ph-journey="2"] .ph-journey-stage-title > .ph8520-node-status.progress { color:#8ad4d2!important;background:#28484e88;border-color:#4b777f; }
html.theme--dark body [data-ph-journey="2"] .ph-journey-stage-title > .ph8520-node-status.done { color:#9fd9ba!important;background:#28423888;border-color:#4e7866; }
html.theme--dark body [data-ph-journey="2"] .ph-journey-rewards > :is(.ph-stage-mini,.ph-core-mini) { box-shadow:inset 0 1px #ffffff0a,0 2px 7px #0002; }
@keyframes ph-journey-rune { 0%,100%{opacity:.2;transform:rotate(-8deg)}50%{opacity:.8;transform:rotate(8deg)} }
@keyframes ph-journey-trail { 0%,25%{opacity:0;transform:translateX(0)}40%{opacity:.8}75%,100%{opacity:0;transform:translateX(350px)} }
@keyframes ph-journey-stream { 0%,25%{transform:translateX(-100%)}70%,100%{transform:translateX(100%)} }
@keyframes ph-journey-gem { 0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(12deg)} }
@keyframes ph-journey-claim { 0%,55%{opacity:0;transform:translateX(-70%)}65%{opacity:.8}85%,100%{opacity:0;transform:translateX(70%)} }
@keyframes ph-journey-ready { 0%,100%{box-shadow:inset 0 1px #ffffff90,0 2px 7px #b58c3f18}50%{box-shadow:inset 0 1px #ffffff90,0 0 14px #c99d4538} }
@media(prefers-reduced-motion:no-preference) {
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-journey-stage-head.ph-arena-playing .ph8520-node-number::after { animation:ph-journey-rune 7s ease-in-out infinite; }
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-journey-stage-head.ph-arena-playing::after { animation:ph-journey-trail 8s ease-in-out infinite; }
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-journey-stage-head.ph-arena-playing .ph8520-stage-progress > i::after { animation:ph-journey-stream 5s ease-in-out infinite; }
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-journey-stage-head.ph-arena-playing :is(.ph-core-gem,.ph8570-currency-icon) { animation:ph-journey-gem 4.4s ease-in-out infinite; }
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-journey-stage-head.ph-arena-playing .ph-core-claim::after { animation:ph-journey-claim 6s ease-in-out infinite; }
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-journey-stage-head.ph-arena-playing .ph-core-mini.is-ready { animation:ph-journey-ready 3.6s ease-in-out infinite; }
 html.ph-atmosphere-motion [data-ph-journey="2"] .ph-core-row.ph-arena-playing .ph-core-problem-badge > .ph-core-gem { animation:ph-journey-gem 4.4s ease-in-out infinite; }
}
html.ph-arena-suspended [data-ph-journey="2"] .ph-journey-stage-head * { animation-play-state:paused!important; }
@media(prefers-reduced-motion:reduce) {
 [data-ph-journey="2"] .ph-journey-stage-head,[data-ph-journey="2"] .ph-journey-stage-head::before,[data-ph-journey="2"] .ph-journey-stage-head::after,[data-ph-journey="2"] .ph-journey-stage-head * { animation:none!important;transition:none!important; }
}

/* Leave the full utility rail available on desktop. On training phones a
   compact launcher keeps reward buttons and problem titles unobstructed. */
.ph-journey-tools-toggle { display:none!important; }
@media(max-width:600px) {
 body:has([data-ph-journey="2"]) .ph-dock-tools .ph-journey-tools-toggle { display:inline-grid!important;place-items:center;flex:none;cursor:pointer; }
 body:has([data-ph-journey="2"]) .ph-dock-tools:not(.is-journey-tools-open) > :is(a,span,details) { display:none!important; }
 body:has([data-ph-journey="2"]) .ph-dock-tools.is-journey-tools-open .ph-journey-tools-toggle { color:#fff2b8;border-color:#c4a15d;box-shadow:0 0 14px #c4a15d30; }
 body:has([data-ph-journey="2"]) .ph-journey-tools-toggle:focus-visible { outline:2px solid #b99349;outline-offset:3px; }
}
