.progression-panel{margin-top:20px;min-width:0}.progression-panel *{min-width:0}.pg-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line-strong);padding-bottom:12px;margin-bottom:20px}.pg-tabs button{border:1px solid transparent;border-radius:7px;padding:9px 14px;background:transparent;color:var(--text-soft)}.pg-tabs button.active{color:var(--line);background:var(--accent-text);font-weight:650}.pg-content{min-width:0}.pg-intro h2{margin-bottom:4px}.pg-intro p{font-size:12px;margin-bottom:17px}.pg-muted{color:var(--muted);font-size:12px}.pg-field{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--text-soft);min-width:0}.pg-field input,.pg-field select{width:100%;padding:8px 10px;font-size:12px;min-width:0}.pg-character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:12px}.pg-budget{margin:15px 0;color:var(--text-soft);font-size:12px}.pg-attributes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.pg-attribute{display:flex;flex-direction:column;gap:8px;background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:8px;padding:12px;color:var(--text);font-size:13px}.pg-attribute small{display:block;color:var(--muted);font-size:10px}.pg-attribute input{padding:8px}.pg-total{font-size:11px;color:var(--accent-text)}.pg-warning{border:1px solid #9f7447;background:#392c1d;border-radius:7px;padding:9px 12px;margin-top:13px}.pg-warning p{color:#ebc998;margin:0;font-size:11px}.pg-box{border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);padding:14px;margin-top:15px}.pg-box h3{font-size:13px;margin:0 0 9px}.pg-box p{font-size:11px;margin:4px 0;color:var(--muted)}.pg-chips{display:flex;flex-wrap:wrap;gap:6px}.pg-chips span{border:1px solid var(--muted-dim);background:var(--line);padding:4px 8px;border-radius:5px;font-size:11px}.pg-gear{border-top:1px solid var(--line-strong);padding:18px 0}.pg-gear-title h3{margin:0;font-size:15px}.pg-gear-title small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.pg-rune-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.pg-rune-card{background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:10px}.pg-rune-title{display:flex;justify-content:space-between;gap:8px;font-size:12px}.pg-rune-title span{color:var(--accent-text)}.pg-rune-values{border-top:1px solid var(--line-strong);padding-top:8px}.pg-stat{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:11px;border-bottom:1px solid var(--line)}.pg-stat span{color:var(--text-soft)}.pg-stat b{white-space:nowrap}.pg-master-head{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,140px) minmax(120px,1fr) auto;gap:10px;align-items:end;margin-bottom:18px}.pg-meter{border:1px solid var(--line-strong);border-radius:7px;padding:8px 10px;font-size:11px}.pg-meter small{display:block;color:var(--accent-text)}.pg-grade{border-top:1px solid var(--line-strong);margin-top:17px;padding-top:15px}.pg-grade-title{display:flex;gap:10px;align-items:baseline;justify-content:space-between}.pg-grade-title h3{font-size:14px;margin:0 0 10px}.pg-grade-title span{font-size:11px;color:var(--muted)}.pg-grade>p{font-size:11px}.pg-node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pg-node{border:1px solid var(--line-strong);background:var(--surface-raised);border-radius:7px;padding:11px;display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:10px;align-items:start}.pg-node b{font-size:12px;display:block;overflow-wrap:anywhere}.pg-node small{font-size:10px;color:var(--muted);display:block}.pg-node .pg-field{text-align:right}.pg-node-detail{grid-column:1/-1;border-top:1px solid var(--line-strong);padding-top:7px}.pg-node-detail p{font-size:11px;color:var(--text-soft);overflow-wrap:anywhere;margin:6px 0}.pg-synergy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px}.pg-synergy{display:flex;gap:9px;padding:10px;background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:7px;align-items:flex-start}.pg-synergy input{margin-top:2px}.pg-synergy b{display:block;font-size:11px}.pg-synergy small{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.pg-conditional{border-top:1px solid var(--line-strong);margin-top:12px;padding-top:10px}.pg-conditional h4{font-size:12px;margin:0 0 6px}.pg-conditional p{overflow-wrap:anywhere}
@media(max-width:760px){.pg-attributes{grid-template-columns:repeat(2,minmax(0,1fr))}.pg-rune-grid{grid-template-columns:1fr}.pg-master-head{grid-template-columns:repeat(2,minmax(0,1fr))}.pg-node-grid,.pg-synergy-grid{grid-template-columns:1fr}}
@media(max-width:390px){.pg-character-grid,.pg-master-head,.pg-attributes{grid-template-columns:1fr}.pg-grade-title{display:block}.pg-node{grid-template-columns:minmax(0,1fr) 62px}.pg-tabs button{flex:1;padding:8px 5px;font-size:11px}.progression-panel{padding:14px}.pg-rune-title{flex-wrap:wrap}}

.pg-master-head button{white-space:normal;line-height:1.35;min-width:0}

.pg-rune-presets{margin:0 0 20px}.pg-rune-presets h3{font-size:13px;margin:0}.pg-rune-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.pg-rune-preset{display:flex;flex-direction:column;gap:7px;padding:10px;text-align:left;background:var(--surface);color:var(--text-soft);border:1px solid var(--line-strong);border-radius:3px;cursor:pointer;min-width:0}.pg-rune-preset:hover{border-color:var(--muted)}.pg-rune-preset.is-active{border-color:var(--accent);background:var(--surface-raised)}.pg-rune-preset:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}.pg-preset-colors{display:flex;gap:5px;align-items:center;height:17px}.pg-preset-colors i{width:17px;height:17px;text-align:center;font-size:10px;line-height:15px;font-style:normal;border:1px solid currentColor;border-radius:2px}.pg-preset-colors .color-Attack{color:#d97379}.pg-preset-colors .color-Defense{color:#76a1d6}.pg-preset-colors .color-Assist{color:#c5b579}.pg-preset-colors>b{margin-left:auto;color:var(--accent-text);font-size:13px}.pg-preset-effects{display:grid;gap:4px;width:100%;font-size:11px;line-height:1.4}.pg-preset-effects>span{display:flex;justify-content:space-between;gap:8px}.pg-preset-effects strong{font-weight:600;white-space:nowrap;color:var(--text)}.pg-preset-effects>span>span{overflow-wrap:anywhere}
@container builder-editor (max-width:360px){.pg-rune-preset-grid{grid-template-columns:1fr}}
@media(max-width:390px){.pg-rune-preset-grid{grid-template-columns:1fr}}

/* RU mastery: concentric grades and four directions; rings are not prerequisite edges. */
.pg-game-mastery{max-width:1360px;margin:auto}.pg-game-toolbar{display:flex;gap:24px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line)}.pg-game-toolbar h2{font-size:17px;margin:0 0 6px}.pg-game-toolbar select{max-width:220px;height:34px;padding:5px 9px}.pg-game-toolbar>label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;color:var(--muted);max-width:115px}.pg-game-toolbar>label input{width:65px;padding:7px;height:34px;color:var(--text)}.pg-game-toolbar>label>span{font-size:10px}.pg-master-points{margin-left:auto;display:grid;grid-template-columns:auto auto;gap:5px 16px;align-items:center;min-width:170px}.pg-master-points>span{font-size:11px;color:var(--muted)}.pg-master-points>b{font-size:21px;font-weight:600}.pg-master-points small{font-size:13px;color:var(--muted)}.pg-master-points progress{grid-column:1/-1;appearance:none;height:3px;width:100%;border:0;background:#29252b;accent-color:#c5ab77}.pg-master-points progress::-webkit-progress-bar{background:#29252b}.pg-master-points progress::-webkit-progress-value{background:#c5ab77}
.pg-mastery-stage{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.pg-mastery-wheel{position:relative;aspect-ratio:1;width:100%;max-width:980px;margin:20px auto;background:radial-gradient(circle,transparent 19%,#0e0e1255 20%,transparent 70%),conic-gradient(from 0deg,#7f3b4222 0deg 90deg,#a2874b22 90deg 180deg,#3a699122 180deg 270deg,#68458222 270deg 360deg);border-radius:50%}.pg-mastery-track{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--diameter);aspect-ratio:1;border:1px solid #5b52504d;border-radius:50%;box-shadow:0 0 0 5px #19171c30,inset 0 0 0 5px #19171c30;pointer-events:none}.pg-mastery-track.track-AA{border-style:dashed;border-color:#5b4a6d66}.pg-direction{position:absolute;font-size:12px;letter-spacing:.05em;z-index:2}.direction-Attack{right:12%;top:4%;color:#d28c90}.direction-Util{left:10%;top:4%;color:#b396d6}.direction-Defense{left:12%;bottom:4%;color:#8eb9d8}.direction-Tactic{right:12%;bottom:4%;color:#cdbb8e}.pg-weapon-heart{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:12%;aspect-ratio:1;display:grid;place-items:center;background:#111116;border:1px solid #6a5e46;box-shadow:0 0 0 5px #0b0b0e,0 0 0 6px #51473555;z-index:2}.pg-weapon-heart>img{width:94%;height:94%;object-fit:contain}.pg-weapon-heart>span{font-size:10px;text-align:center;line-height:1.15}.pg-weapon-heart>b{position:absolute;bottom:-18px;font-size:12px;font-weight:500;color:#dcc291}
.pg-mastery-node{position:absolute;transform:translate(-50%,-50%);width:5.8%;aspect-ratio:1;padding:2px;border:1px solid #7f7b774d;border-radius:50%;background:#111116;display:block;cursor:pointer;z-index:3;color:#c9c4bd}.pg-mastery-node>img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:contain;filter:grayscale(.8);opacity:.6}.pg-mastery-node>span{position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);font-size:10px;line-height:14px;min-width:17px;text-align:center;border-radius:2px;border:1px solid #504b46;background:#141318;color:#b5aea5}.pg-mastery-node.kind-synergies{border-radius:5px;width:6.2%;border-color:#8b754e66}.pg-mastery-node.grade-AA{border-radius:4px;border-color:#8b729066}.pg-mastery-node.is-active{border-color:#d2b77e;box-shadow:0 0 0 2px #aa874530}.pg-mastery-node.is-active>img{filter:none;opacity:1}.pg-mastery-node.is-active>span{color:#f2d79e;border-color:#8a7144}.pg-mastery-node.is-selected,.pg-mastery-node:hover,.pg-mastery-node:focus-visible{outline:2px solid #d6c192;outline-offset:3px;z-index:5}.pg-mastery-inspector{border-left:1px solid var(--line);padding:20px 0 0 22px;min-width:0;align-self:stretch}.pg-mastery-detail-head{display:flex;gap:12px;align-items:center;min-height:55px;margin-bottom:20px}.pg-mastery-detail-head>img{width:48px;height:48px;border:1px solid #68543b;background:#17141a}.pg-mastery-detail-head small{font-size:10px;color:#b7a68b}.pg-mastery-detail-head h3{font-size:15px;line-height:1.4;margin:5px 0 0}.pg-mastery-rank{display:flex;gap:12px;align-items:flex-end;padding-bottom:16px;border-bottom:1px solid var(--line)}.pg-mastery-rank>button{height:36px;width:36px;font-size:23px;line-height:1;background:#242128;border:1px solid #665745;color:#e2c997;border-radius:3px}.pg-mastery-rank>label{flex:1;font-size:10px;color:var(--muted)}.pg-mastery-rank select{width:100%;height:36px;margin-top:5px;text-align:center;font-size:15px;padding:4px}.pg-mastery-rank>button:disabled{opacity:.28;cursor:not-allowed}.pg-mastery-values h4{font-size:10px;font-weight:500;color:#b8a883;text-transform:uppercase;letter-spacing:.08em;margin:15px 0 7px}.pg-mastery-values .stat-row{font-size:12px;padding:5px 0}.pg-mastery-values p,.pg-mastery-description{font-size:12px;line-height:1.7;color:#c6c1bf;white-space:pre-line}.pg-mastery-requirement{font-size:11px;line-height:1.5;color:#b5a17d}.pg-master-experts{margin-top:25px;padding-top:15px;border-top:1px solid var(--line)}.pg-master-experts>div:first-child{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.pg-master-experts h3{font-size:13px;margin:0 0 12px;color:var(--text)}.pg-expert-icons{display:grid;grid-template-columns:repeat(6,1fr);gap:9px 7px;margin-bottom:12px}.pg-expert-icons .pg-mastery-node{position:relative;left:auto;top:auto;transform:none;width:100%;border-radius:4px}.pg-master-experts>small{font-size:10px;color:var(--muted)}.pg-master-total{border-top:1px solid var(--line);margin-top:18px;padding-top:13px;font-size:12px}.pg-master-total .stat-row{font-size:11px;padding:5px 0}
@media(max-width:1100px){.pg-mastery-stage{grid-template-columns:minmax(0,1fr) 230px;gap:12px}.pg-mastery-inspector{padding-left:12px}.pg-game-toolbar{gap:14px}.pg-master-points{min-width:145px}}
@media(max-width:760px){.pg-game-toolbar{flex-wrap:wrap;gap:12px}.pg-game-toolbar h2{font-size:15px}.pg-game-toolbar>div:first-child{flex:1}.pg-master-points{margin-left:0;flex:1}.pg-game-toolbar>button{height:32px;padding:5px 10px}.pg-mastery-stage{display:block}.pg-mastery-inspector{border-left:0;border-top:1px solid var(--line);padding:18px 0}.pg-mastery-wheel{margin:16px auto 20px}.pg-direction{font-size:10px}.pg-mastery-node{padding:1px}.pg-mastery-node>span{font-size:8px;min-width:12px;line-height:11px;bottom:-7px}.pg-mastery-node.is-selected,.pg-mastery-node:hover{outline-width:1px;outline-offset:2px}.pg-weapon-heart>b{font-size:10px}.pg-expert-icons{grid-template-columns:repeat(12,minmax(0,1fr));gap:5px}.pg-mastery-detail-head{margin-bottom:10px}.pg-mastery-rank{max-width:270px}.pg-mastery-values{display:grid;grid-template-columns:1fr}.pg-mastery-wheel{max-width:520px}}
@media(max-width:420px){.pg-expert-icons{grid-template-columns:repeat(6,minmax(0,1fr));max-width:270px}.pg-game-toolbar select{max-width:170px}}

@media(min-width:761px){.pg-mastery-wheel{max-width:980px}.pg-game-toolbar{padding-bottom:12px}.pg-game-toolbar h2{font-size:15px}.pg-mastery-inspector{padding-top:14px}.pg-mastery-detail-head{margin-bottom:12px}.pg-master-experts{margin-top:18px;padding-top:12px}}

.pg-game-toolbar>label{flex-wrap:nowrap;max-width:none;white-space:nowrap}.pg-mastery-node>img{filter:grayscale(.55);opacity:.8}.pg-mastery-node.is-active>img{filter:none;opacity:1}

@media(max-width:760px){.pg-game-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.pg-game-toolbar>div:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.pg-game-toolbar h2{margin:0;font-size:14px}.pg-game-toolbar select{max-width:165px}.pg-game-toolbar>button{grid-column:1/-1;justify-self:end}.pg-master-points{min-width:0;font-size:11px;gap:4px 8px}.pg-master-points>span{max-width:100px}.pg-game-toolbar>label{font-size:10px}}

.pg-mastery-max{width:100%;margin-top:10px;min-height:36px}.pg-mastery-max:disabled{opacity:.35;cursor:not-allowed}

/* Keep the wheel large independently of viewport height. */
.pg-mastery-node{touch-action:manipulation;user-select:none;-webkit-user-select:none}.pg-mastery-node>span{font-size:12px;line-height:16px;min-width:20px}.pg-mastery-detail-head>img{width:56px;height:56px}.pg-mastery-values p,.pg-mastery-description{font-size:13px}
.pg-mastery-canvas{min-width:0}
@media(min-width:761px) and (max-width:1000px){.pg-mastery-stage{grid-template-columns:1fr}.pg-mastery-inspector{border-left:0;border-top:1px solid var(--line);padding:20px 0}.pg-master-experts{max-width:420px}.pg-mastery-wheel{max-width:760px}}
@media(max-width:760px){.pg-mastery-canvas{overflow-x:auto;overscroll-behavior-x:contain}.pg-mastery-wheel{min-width:620px;max-width:760px}.pg-expert-icons{grid-template-columns:repeat(6,minmax(0,1fr));max-width:360px;gap:10px}.pg-direction{font-size:12px}}
.pg-mastery-inspector>.pg-master-experts:first-child{margin-top:0;padding-top:0;border-top:0;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--line)}

/* Allocated ranks stay prominent; inspecting a node has a separate white outline. */
.pg-mastery-node:not(.is-active){border-color:#48454f;background:#0d0d12;box-shadow:none}
.pg-mastery-node:not(.is-active)>img{filter:grayscale(1) brightness(.7);opacity:.55}
.pg-mastery-node:not(.is-active)>span{border-color:#45414a;background:#111116;color:#85818e}
.pg-mastery-node.is-active{border:2px solid #ffe0a0;background:#57401e;box-shadow:0 0 0 2px #17120a,0 0 0 3px #b88f42,0 0 12px #e8b35244;z-index:4}
.pg-mastery-node.is-active>img{filter:none;opacity:1}
.pg-mastery-node.is-active>span{border:1px solid #ffdf91;background:#f0c66e;color:#21180c;font-weight:800;min-width:19px;box-shadow:0 1px 3px #000c}
.pg-mastery-node:hover{outline:1px solid #bdb7c2;outline-offset:3px}
.pg-mastery-node:not(.is-active):hover>img{filter:grayscale(.7);opacity:.8}
.pg-mastery-node.is-selected,.pg-mastery-node:focus-visible{outline:2px solid #fff;outline-offset:5px;z-index:5}
.pg-attribute-star{position:absolute;top:-8px;right:-8px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;border:1px solid #c9a956;background:#241d11;color:#ffe29a;font-size:14px;font-style:normal;line-height:1;pointer-events:none;text-shadow:0 1px 2px #000}
.pg-attribute-star.is-earned{background:#f0c66e;color:#21180c;border-color:#ffe29a;text-shadow:none}
.pg-attribute-legend{margin:12px 0 0;color:var(--muted);font-size:12px}.pg-attribute-legend>span{color:#ffe29a;margin-right:5px}
.pg-attribute-milestones{margin-top:16px;padding:12px;border:1px solid #c9a95655;border-radius:5px;background:#c9a95608}.pg-attribute-milestones h4{margin:0 0 8px;color:#ffe29a;font-size:12px}.pg-attribute-milestones p{font-size:12px;color:var(--muted);margin:5px 0}.pg-attribute-milestones .is-earned{color:#ffe29a}

.pg-total.is-over-cap{color:#ff9aa4}.pg-total.is-over-cap small{display:block;font-size:11px;line-height:1.4}

.pg-rune-effect+.pg-rune-effect{margin-top:10px}.pg-rune-effect>small{color:var(--muted)}.pg-rune-effect.is-negative>small{color:#ff9aa4}
