.rec-container{max-width:1200px;margin:0 auto;padding:24px 18px 46px}.rec-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:start}.rec-main{min-width:0}.rec-aside{padding:20px;position:sticky;top:16px}.rec-aside h2{margin:0 0 16px;font-size:1.05rem}.rec-help{margin-top:22px;color:var(--muted,#8895a8);font-size:13px;line-height:1.55}.rec-progress{display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:700;letter-spacing:.01em;margin-bottom:9px}.rec-track{height:6px;border-radius:20px;background:var(--line,rgba(130,150,175,.2));overflow:hidden;margin-bottom:26px}.rec-track>div{height:100%;width:0;background:var(--accent,#237bd0);transition:width .2s}.rec-title{margin:0 0 8px;font-size:clamp(1.45rem,3vw,2rem)}.rec-subtitle{color:var(--muted,#8895a8);line-height:1.55;margin:0 0 20px}.rec-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rec-choice{display:block;width:100%;text-align:left;padding:17px;border:1px solid var(--line,rgba(140,155,175,.25));border-radius:12px;background:var(--panel-bg,var(--surface,#17263b));color:inherit;cursor:pointer;font:inherit;min-height:92px}.rec-choice:hover{border-color:var(--accent,#428fe5)}.rec-choice.is-selected{border:2px solid var(--accent,#428fe5);padding:16px;background:rgba(64,130,210,.12)}.rec-choice strong{font-size:15px;display:block;margin-bottom:6px}.rec-choice small{font-size:12px;line-height:1.4;color:var(--muted,#a5b2c2);display:block}.rec-tags{margin:12px 0;font-size:13px}.rec-footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.rec-footer button:disabled{opacity:.45;cursor:not-allowed}.rec-field{display:grid;gap:8px;max-width:420px}.rec-field select{padding:12px;border-radius:9px;max-width:400px}.rec-summary-item{border-bottom:1px solid var(--line,rgba(140,155,175,.2));padding:10px 0;font-size:13px}.rec-summary-item strong{display:block;font-size:12px;margin-bottom:4px}.rec-summary-item span{color:var(--muted,#a5b2c2)}.rec-results{display:grid;gap:12px}.rec-result{border:1px solid var(--line,rgba(140,155,175,.3));border-radius:13px;padding:16px}.rec-result.selected{border:2px solid var(--accent,#428fe5);padding:15px}.rec-result-title{font-size:1.1rem;font-weight:700}.rec-rank{color:var(--muted,#a5b2c2);font-size:12px}.rec-result-body{font-size:13px;color:var(--muted,#a5b2c2);line-height:1.55;margin-top:10px}.rec-result-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.rec-result-controls button{font-size:12px}.rec-chip{display:inline-block;margin:4px 5px 0 0;padding:4px 8px;border-radius:18px;background:rgba(100,130,175,.13);font-size:11px}.rec-note{padding:13px;border-radius:10px;background:rgba(90,135,200,.1);line-height:1.5;margin-top:18px;font-size:13px}.rec-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.rec-selected-title{font-size:1.3rem;margin:10px 0}.rec-hidden{display:none!important}.rec-checkbox{display:flex;gap:10px;align-items:center;padding:8px 0;font-size:13px}.rec-detail{padding:13px;border:1px solid var(--line,rgba(140,155,175,.25));border-radius:10px;margin-top:15px;font-size:13px}.rec-detail summary{cursor:pointer;font-weight:600}.rec-detail ul{padding-left:21px;line-height:1.6}.rec-error{color:#f4a5a5;font-size:13px}.rec-button-row{display:flex;gap:8px;flex-wrap:wrap}.rec-subchoice{margin-top:15px;max-width:430px}.rec-subchoice label{display:block;margin-bottom:6px;font-size:13px}.rec-subchoice select{padding:10px;width:100%}@media(max-width:850px){.rec-layout{grid-template-columns:1fr}.rec-aside{position:static}.rec-choices{grid-template-columns:1fr}.rec-container{padding:14px 10px 30px}}@media(max-width:560px){.rec-choice{min-height:70px}.rec-main{padding:16px}.rec-footer button{flex:1}}
.rec-entry-link{margin:12px 0 16px}

/* Temporary developer scoring sidebar */
.rec-dev-meta{font-size:12px;line-height:1.8;padding:10px 12px;border:1px solid var(--line,rgba(140,155,175,.25));border-radius:9px;overflow-wrap:anywhere}
.rec-dev-subhead{font-size:13px;margin:18px 0 8px;font-weight:700}
.rec-dev-result{border-bottom:1px solid var(--line,rgba(140,155,175,.2));font-size:12px;padding:8px 0}
.rec-dev-result summary{cursor:pointer;line-height:1.5}.rec-dev-result summary b{float:right;font-variant-numeric:tabular-nums}
.rec-dev-term{display:flex;gap:6px;justify-content:space-between;font-size:11px;line-height:1.45;padding:5px 0;align-items:flex-start}
.rec-dev-term span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.rec-dev-hint{font-size:12px;line-height:1.5;color:var(--muted,#8895a8)}

/* 0.1.55: choice cards inherit the selected PyRoller accent and display mode.
   Applies to light, dark and all special presets through shared theme tokens. */
.rec-choice,.rec-choice:visited{
  background:var(--py-panel-soft,var(--panel))!important;
  color:var(--py-text,var(--text))!important;
  border:2px solid var(--py-border-strong,var(--line))!important;
  box-shadow:none!important;
}
.rec-choice strong{color:var(--py-text-strong,var(--text))!important}
.rec-choice small{color:var(--py-muted,var(--muted))!important}
.rec-choice:hover:not(:disabled){
  background:var(--py-panel-tint,var(--py-panel-soft))!important;
  border-color:var(--py-primary,var(--accent))!important;
}
.rec-choice.is-selected,.rec-choice.is-selected:hover:not(:disabled){
  background:var(--py-primary-glass,var(--py-panel-tint))!important;
  border-color:var(--py-primary,var(--accent))!important;
  box-shadow:inset 0 0 0 1px var(--py-primary,var(--accent))!important;
}
.rec-choice:focus-visible{outline:3px solid var(--py-primary,var(--accent))!important;outline-offset:3px}
.rec-choice:disabled{opacity:.45;cursor:not-allowed}
.rec-footer{margin:8px 0 26px;align-items:center;min-height:45px}.rec-level-inline{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:18px 0 20px}.rec-level-inline label{font-weight:700}.rec-level-inline select{padding:10px 16px;border-radius:9px;min-width:170px;border:1px solid var(--line,#8abca0);font:inherit}.rec-level-inline+.rec-subtitle{margin-top:8px}

/* 0.1.6 layout corrections: no empty header row / dead space. */
.rec-container{padding-top:6px!important}
.rec-main{min-width:0}
.rec-level-inline{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin:14px 0 17px}
.rec-level-inline label{flex:0 0 auto;margin:0}
.rec-level-inline select{display:inline-block!important;flex:0 0 auto!important;width:122px!important;min-width:0!important;max-width:122px!important;padding:8px 10px!important;margin:0!important;height:auto!important}
.rec-main .rec-track{margin-bottom:16px}
.rec-main .rec-footer{margin:4px 0 17px}
.rec-aside{top:8px}
/* Show the standard Home menu action at all widths, not only mobile. */
.topbar .theme-fields .theme-menu-home.rec-home-menu-action{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap}
@media(max-width:850px){.rec-container{padding-top:4px!important}}

/* 0.1.7 recommendation controls and modal */
.rec-actions{justify-content:flex-end}.rec-actions button:disabled{opacity:.45;cursor:not-allowed}
.rec-result-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.rec-result-title{font-size:1.2rem;line-height:1.35}.rec-exclude-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.rec-exclude-actions button{font-size:12px}.rec-result-controls{margin-top:12px}.rec-rank{display:none}
.rec-modal{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.64);display:flex;align-items:center;justify-content:center;padding:18px}
.rec-modal-panel{background:var(--panel-bg,var(--surface,#fff));color:inherit;border:1px solid var(--line,#94bfa9);border-radius:14px;width:min(760px,100%);max-height:88vh;overflow:auto;padding:22px;box-shadow:0 20px 75px rgba(0,0,0,.3)}
.rec-modal-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.rec-modal-header h2{margin:0;font-size:1.25rem}.rec-modal-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 12px}.rec-modal-page{line-height:1.6;min-height:115px}.rec-exclusion-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line,#cadacf)}
@media(max-width:750px){.rec-result-top{display:block}.rec-exclude-actions{justify-content:flex-start;margin-top:12px}.rec-modal-panel{padding:14px}}
/* Restore the normal collapsible PyRoller display menu; do not force an always-visible Home button. */
.topbar .theme-fields .theme-menu-home.rec-home-menu-action{display:none!important}
/* Keep the existing PyRoller hamburger compact; expanded menu is a floating panel. */
.topbar>.theme-controls,.topbar>.theme-controls.theme-expanded{position:relative!important;width:58px!important;min-width:58px!important;max-width:58px!important;overflow:visible!important}
.topbar>.theme-controls.theme-expanded .theme-fields{position:absolute!important;z-index:60!important;top:calc(100% + 10px);right:0;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:10px!important;width:min(290px,calc(100vw - 26px))!important;min-width:0!important;max-width:calc(100vw - 26px)!important;padding:14px!important;border:1px solid var(--line,#a6cdb8);border-radius:14px;background:var(--panel-bg,var(--surface,#fff));box-shadow:0 12px 35px rgba(0,0,0,.18);box-sizing:border-box!important}
.topbar>.theme-controls.theme-expanded .theme-fields .theme-field{width:100%;display:flex;flex-direction:column;gap:5px!important}
.topbar>.theme-controls.theme-expanded .theme-fields select{width:100%!important;max-width:none!important}
.topbar>.theme-controls.theme-expanded .theme-fields .theme-menu-home{display:flex!important;width:100%;justify-content:center;align-items:center;min-height:42px}
@media(max-width:760px){.topbar>.theme-controls.theme-expanded .theme-fields{width:min(290px,calc(100vw - 24px))!important}}

/* v0.1.8: compact one-row masthead and a floating, theme-consistent settings popover */
body.creator-app .topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:14px!important;min-height:0!important;height:auto!important;padding:12px 26px!important;box-sizing:border-box!important}
body.creator-app .topbar .brand-row{flex:1 1 auto;min-width:0;max-width:calc(100% - 78px);flex-wrap:nowrap}
body.creator-app .topbar .brand-row>div{min-width:0}
body.creator-app .topbar .brand{font-size:clamp(20px,2.1vw,28px);line-height:1.18}
body.creator-app .topbar .subbrand{line-height:1.35}
body.creator-app .topbar>.theme-controls,body.creator-app .topbar>.theme-controls.theme-expanded{position:relative!important;flex:0 0 58px!important;align-self:center!important;margin-left:auto!important;min-height:58px!important;height:58px!important;width:58px!important;min-width:58px!important;max-width:58px!important;box-sizing:border-box!important}
body.creator-app .topbar>.theme-controls.theme-expanded .theme-fields{position:absolute!important;top:calc(100% + 9px)!important;right:0!important;width:250px!important;max-width:calc(100vw - 24px)!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:11px!important;padding:16px!important;border:2px solid var(--py-border-soft,var(--line))!important;border-radius:16px!important;background:linear-gradient(150deg,var(--py-panel-soft,#fff),var(--py-panel,#f1f7f4))!important;box-shadow:0 15px 32px rgba(0,0,0,.23)!important}
body.creator-app .topbar>.theme-controls.theme-expanded .theme-fields .theme-menu-home{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:40px}
body.creator-app .topbar>.theme-controls.theme-expanded .theme-fields .theme-field{display:flex;flex-direction:column;align-items:stretch;width:100%}
body.creator-app .topbar>.theme-controls.theme-expanded .theme-fields select{width:100%!important;max-width:none!important}
body.creator-app .topbar .theme-controls .theme-toggle-button{transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
body.creator-app .topbar .theme-controls .theme-toggle-button:active{transform:scale(.92)}
@media(max-width:620px){body.creator-app .topbar{padding:10px 13px!important}body.creator-app .topbar .brand{font-size:19px}body.creator-app .topbar .subbrand{font-size:12px}}
/* Popup visual hierarchy, matching the site's softly graded panels. */
.rec-modal{background:rgba(10,25,30,.65);backdrop-filter:blur(3px)}
.rec-modal-panel{background:linear-gradient(155deg,var(--py-panel-soft,#fff) 0%,var(--panel,#fff) 63%,var(--py-panel-soft-2,#eef7f2) 100%)!important;border:2px solid var(--py-border-soft,var(--line))!important;box-shadow:0 24px 75px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.22)!important;border-radius:20px!important;padding:0!important;animation:rec-modal-enter .2s ease-out}
@keyframes rec-modal-enter{from{opacity:0;transform:translateY(13px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.rec-modal-header{padding:22px 26px!important;background:linear-gradient(110deg,var(--py-panel-soft-2,#edf7f1),var(--py-panel-soft,#fff))!important;border-bottom:2px solid var(--py-border-soft,var(--line));border-radius:18px 18px 0 0}
#recModalBody{padding:20px 26px 26px!important}
.rec-modal-header h2{font-size:1.35rem!important}
.rec-modal-intro{background:var(--py-panel-soft-2,#eff7f2);border-left:4px solid var(--accent,#27835e);border-radius:9px;padding:14px 16px;line-height:1.6;margin-bottom:18px}
.rec-modal-section{border:1px solid var(--py-border-soft,var(--line));background:var(--py-panel-soft,#fff);border-radius:13px;padding:17px;margin:12px 0 18px}
.rec-modal-section h3{margin:0 0 12px}
.rec-modal-tabs{margin:0 0 16px!important}.rec-exclusion-entry{padding:12px 0!important}
.rec-modal .btn,.rec-actions .btn,.rec-result .btn{transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease}
.rec-modal .btn:not(:disabled):hover,.rec-actions .btn:not(:disabled):hover,.rec-result .btn:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 12px rgba(0,0,0,.13)}
.rec-modal .btn:not(:disabled):active,.rec-actions .btn:not(:disabled):active,.rec-result .btn:not(:disabled):active{transform:translateY(1px) scale(.97)}
.rec-actions #showExclusions:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}
@media(max-width:750px){.rec-modal-header{padding:15px 17px!important}#recModalBody{padding:15px 17px 19px!important}}

.rec-result-blurb{font-size:1.02rem;line-height:1.55;color:var(--text);margin:0;}
.rec-result-note{font-size:.95rem;line-height:1.45;color:var(--muted);margin:.5rem 0 0;}
.rec-result-body{display:flex;flex-direction:column;gap:.2rem;}

/* 0.1.10 compact result descriptions and unlock hints */
.rec-result-note{font-size:.78rem!important;line-height:1.3!important;font-style:italic!important;margin:0 0 6px!important;color:var(--muted,#6d8278)!important}
.rec-result-blurb{font-size:.92rem!important;line-height:1.48!important}
.rec-result-body{margin-top:7px!important;gap:0!important}
/* Center the hamburger vertically against the masthead, not the viewport or an expanded menu. */
body.creator-app .topbar>.theme-controls,body.creator-app .topbar>.theme-controls.theme-expanded{align-self:center!important;margin-top:0!important;margin-bottom:0!important;top:auto!important;bottom:auto!important;transform:none!important}
body.creator-app .topbar{align-items:center!important}

/* Grouped species comparison, 0.1.17 */
.rec-species-option-label{display:block;font-weight:600;margin:12px 0;}
.rec-species-option-label select{display:block;width:100%;max-width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--py-panel-soft,#fff);color:var(--text);font:inherit;}
.rec-species-caution{font-size:.85rem;line-height:1.45;color:var(--muted);margin-top:10px;}
.rec-result-controls{flex-wrap:wrap;}
#recBeginnerSpeciesGuide .beginner-guide-tooltip{max-height:min(50vh,400px);overflow:auto;}
#recBeginnerSpeciesGuide .beginner-trait{overflow:visible;}
.rec-species-trait{padding:10px 0;border-bottom:1px solid var(--line);}
.rec-dev-term{display:flex;justify-content:space-between;gap:18px;}

/* 0.1.18: keep scrolling inside the rounded dialog shell, below its header. */
.rec-modal-panel{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;min-height:0;max-height:90vh;max-height:90dvh;}
.rec-modal-header{flex:none;}
#recModalBody{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;}
.rec-species-modal .rec-modal-panel{width:min(1100px,100%);}
.rec-species-modal #recModalPage{border:0;background:transparent;padding:0;margin:0;box-shadow:none;}
.rec-species-modal .beginner-human-guide{border:0;background:transparent;padding:0;box-shadow:none;border-radius:0;gap:22px;}
.rec-species-modal .beginner-lore-card,.rec-species-modal .beginner-language-guidance,.rec-species-modal .beginner-consideration,.rec-species-modal .beginner-advice{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;}
.rec-species-modal .beginner-trait-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));}
.rec-dm-tag{display:inline-block;font-size:12px;font-weight:600;line-height:1.4;padding:4px 9px;border:1px solid var(--py-border-soft,var(--line));border-radius:6px;color:var(--text);background:var(--py-panel-soft-2,var(--panel));vertical-align:middle;}
.rec-dm-notice{margin:0 0 20px;line-height:1.6;}
@media(max-width:600px){.rec-modal{padding:10px}.rec-modal-header{gap:10px}.rec-modal-header h2{font-size:1.1rem!important}.rec-dm-tag{margin-top:4px}}

.rec-standard-filter{display:flex;align-items:center;gap:8px;font-size:14px}.rec-standard-filter input{width:18px;height:18px}#codex-linkedSpellDrawer{z-index:10100!important}

/* 0.1.23 — compact mainline choices, using the Beginner Builder hover helper. */
.rec-build-choices-modal .rec-modal-panel{width:min(1120px,100%)}
.rec-build-choices-modal #recModalPage{border:0;padding:0;background:transparent;box-shadow:none}
.rec-build-choices-modal .rec-choice-intro{margin:0 0 10px;font-size:.9rem;line-height:1.4}
.rec-build-choice{border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:10px 0;background:var(--py-panel-soft,var(--panel))}
.rec-build-choice h3{font-size:1rem;margin:0 0 3px;line-height:1.4}
.rec-choice-plan{display:flex;align-items:center;flex-wrap:wrap;gap:9px 18px;margin:8px 0 12px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--py-panel-soft,var(--panel))}
.rec-choice-plan>label:first-child{display:flex;align-items:center;gap:9px;flex:1;min-width:235px}
.rec-plan-toggle{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:.87rem}
.rec-plan-toggle input{width:16px;height:16px;margin:0}
.rec-choice-plan select,.rec-choice-slot select{font:inherit;background:var(--py-panel-soft,var(--panel));color:var(--text);border:1px solid var(--line);border-radius:6px;padding:7px 9px;box-sizing:border-box;min-width:0;max-width:100%}
.rec-choice-plan select{flex:1}
.rec-choice-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:7px 0 2px}
.rec-choice-slot{min-width:0}
.rec-choice-slot select{display:block;width:100%;margin:4px 0 0;font-size:.9rem}
.rec-choice-label{display:flex;align-items:center;gap:6px;min-height:21px}
.rec-choice-label label{font-size:.83rem;font-weight:600;margin:0}
.rec-build-choices-modal .rec-choice-reference{margin:0;background:transparent;border:0;padding:0}
.rec-choice-reference>summary{cursor:pointer;display:list-item;font-size:.82rem;color:var(--muted);padding:3px 0;line-height:1.4}
.rec-choice-reference .feature-table-scroll{overflow-x:auto;max-width:100%;margin:5px 0 8px}
.rec-choice-reference .feature-table{width:100%;min-width:610px;table-layout:auto;border-collapse:collapse;font-size:.85rem}
.rec-choice-reference .feature-table.has-requirements{min-width:770px}
.rec-choice-reference .feature-table th,.rec-choice-reference .feature-table td{text-align:left;vertical-align:top;padding:7px 9px;border-bottom:1px solid var(--line);line-height:1.4;word-break:normal;overflow-wrap:normal}
.rec-choice-name-col{width:31%}.has-requirements .rec-choice-name-col{width:29%}.rec-choice-requirement-col{width:22%}
.rec-choice-reference td:first-child{white-space:nowrap}
.rec-choice-reference td:first-child strong{white-space:nowrap}
.rec-humanoid-detail{display:block;margin-top:8px;font-size:.83rem;font-weight:600}
.rec-humanoid-detail input{display:block;width:100%;box-sizing:border-box;padding:7px 9px;margin-top:4px;background:var(--py-panel-soft,var(--panel));color:var(--text);border:1px solid var(--line);border-radius:6px;font:inherit}
#codex-linkedSpellDrawer{z-index:10130!important}
@media(max-width:680px){.rec-choice-slots{grid-template-columns:minmax(0,1fr);gap:8px}.rec-choice-plan{gap:8px 14px}.rec-choice-plan>label:first-child{flex-basis:100%;min-width:0}.rec-build-choice{padding:9px 10px}}

/* 0.1.24: native Builder helper styling; notify without replacing player picks. */
.rec-choice-label{flex-wrap:wrap}
.rec-new-recommendation{display:inline-flex;align-items:center;border:1px solid var(--py-border,var(--line));border-radius:5px;background:var(--py-panel-tint,var(--panel));color:var(--py-primary,var(--accent));font-size:11px;font-weight:600;line-height:1.3;padding:3px 6px;white-space:nowrap}
/* 0.1.25: inspect Genie spell options without leaving the build editor. */
.rec-inline-link{appearance:none;display:inline;border:0;padding:0;background:transparent;color:var(--py-primary,var(--accent));font:inherit;text-decoration:underline;cursor:pointer}
.rec-inline-link:focus-visible{outline:2px solid var(--py-primary,var(--accent));outline-offset:3px}
.rec-genie-options-table td:nth-child(2){min-width:240px}
.rec-genie-options-table td:last-child{min-width:155px}
.rec-genie-spell-overlay{position:fixed;inset:0;z-index:10110;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.rec-genie-spell-panel{display:flex;flex-direction:column;width:min(940px,100%);max-height:88vh;max-height:88dvh;min-height:0;overflow:hidden;border:2px solid var(--py-border-soft,var(--line));border-radius:14px;background:var(--py-panel,var(--panel));color:var(--text);box-shadow:0 20px 70px rgba(0,0,0,.35)}
.rec-genie-spell-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid var(--line);flex:none}
.rec-genie-spell-header h2{margin:0;font-size:1.15rem}
.rec-genie-spell-body{padding:12px 18px 18px;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.rec-genie-spell-body>p{margin:0 0 12px;font-size:.88rem;line-height:1.5}
.rec-genie-spell-body .feature-table-scroll{overflow-x:auto;max-width:100%}
.rec-genie-spell-table{border-collapse:collapse;width:100%;min-width:660px}
.rec-genie-spell-table th,.rec-genie-spell-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:.9rem}
.rec-genie-spell-table td:nth-child(-n+2){white-space:nowrap}
.rec-genie-spell-table .feature-spell-link{white-space:nowrap}
@media(max-width:600px){.rec-genie-spell-overlay{padding:10px}.rec-genie-spell-header{padding:12px}.rec-genie-spell-body{padding:12px}}
/* Build explanations: share the Beginner Builder text in a compact reading layout. */
.rec-build-info-modal .rec-modal-panel{width:min(1040px,100%)}
.rec-build-info-modal #recModalPage.rec-build-info{border:0;padding:0;box-shadow:none;background:transparent}
.rec-build-info{min-width:0}.rec-build-info h3{margin:16px 0 8px}.rec-build-info h3:first-child{margin-top:0}.rec-build-info h4{margin:0 0 5px;font-size:.96rem}.rec-build-info p{margin:5px 0 10px;line-height:1.5}.rec-info-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.rec-build-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.rec-build-info-panel{border-top:1px solid var(--line,#94bfa9);padding-top:10px;min-width:0}.rec-build-info-panel p{font-size:.94rem}
.rec-build-info-features{margin:10px 0}.rec-build-info-features>summary{cursor:pointer;font-weight:700;padding:8px 0}.rec-build-info-table-frame{max-width:100%;overflow-x:auto;border:1px solid var(--line,#94bfa9);border-radius:9px}.rec-build-info-table{width:100%;min-width:660px;border-collapse:collapse;font-size:.9rem}.rec-build-info-table th,.rec-build-info-table td{padding:8px;text-align:left;vertical-align:top}.rec-build-info-table th:nth-child(1){width:45px}.rec-build-info-table th:nth-child(2){width:230px}.rec-build-info-table td:nth-child(2)>strong{white-space:nowrap}.rec-build-info-table tr+tr{border-top:1px solid var(--line,#94bfa9)}
.rec-build-info-next,.rec-info-tradeoff{padding:10px 12px;border-left:3px solid var(--py-accent,var(--line,#94bfa9));background:var(--py-panel-soft-2,rgba(128,128,128,.07));margin:12px 0}.rec-build-info-next p{display:inline-block;margin:3px 12px 3px 0}.rec-build-info-next .feature-rich-text{display:block}
.rec-info-preference{padding:12px 0;border-bottom:1px solid var(--line,#94bfa9)}.rec-info-preference h3{font-size:1.05rem}.rec-info-evidence{margin-top:10px}.rec-info-evidence>p{font-size:.94rem}.rec-info-evidence>p:has(>strong){margin-bottom:3px}
@media(max-width:680px){.rec-build-info-grid{grid-template-columns:1fr}.rec-info-preference{padding:8px 0}}
/* Player summary; scoring diagnostics are kept on dev.html. */
.rec-player-aside{padding:18px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-gutter:stable;box-sizing:border-box}
.rec-player-aside h2{font-size:1.12rem;margin-bottom:12px}.rec-player-level{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.78rem}.rec-player-level>button{font:inherit;font-weight:700;color:inherit;background:var(--py-panel-soft-2,rgba(128,128,128,.1));border:1px solid var(--line);border-radius:20px;padding:6px 10px;cursor:pointer}.rec-player-level>button>span{font-size:.7rem;font-weight:400}
.rec-player-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;list-style:none;padding:14px 0;margin:0;border-bottom:1px solid var(--line)}.rec-player-journey li{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.73rem;text-align:center;color:var(--muted)}.rec-player-journey li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1px solid var(--line);font-weight:700}.rec-player-journey li[aria-current]{font-weight:700;color:inherit}.rec-player-journey li[aria-current]>span{border:2px solid var(--accent);background:var(--py-panel-soft-2,rgba(128,128,128,.1))}.rec-player-journey small{font-size:.64rem}.rec-player-journey li.complete>span{background:var(--py-panel-soft-2,rgba(128,128,128,.1))}
.rec-player-preferences{margin-top:13px}.rec-player-preferences>summary{font-size:.9rem;font-weight:700;cursor:pointer;padding:3px 0 8px}.rec-player-answer{display:flex;justify-content:space-between;align-items:center;gap:9px;width:100%;font:inherit;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 0;background:transparent;color:inherit;cursor:pointer}.rec-player-answer>span:first-child{min-width:0}.rec-player-answer strong{display:block;font-size:.69rem;color:var(--muted);font-weight:600;margin-bottom:2px}.rec-player-answer span span{display:block;font-size:.79rem;line-height:1.4}.rec-player-edit{font-size:.69rem;color:var(--accent);flex:none}.rec-player-answer:hover .rec-player-edit{text-decoration:underline}.rec-player-answer:focus-visible,.rec-player-level button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.rec-player-selection{padding:13px 0 0}.rec-player-selection h3{font-size:.88rem;margin:0 0 6px}.rec-player-optional{font-size:.67rem;font-weight:400;color:var(--muted);margin-left:5px}.rec-player-picked{font-size:.84rem;font-weight:600;line-height:1.45;margin:0 0 9px;overflow-wrap:anywhere}.rec-player-empty{font-size:.78rem;line-height:1.5;color:var(--muted);margin:0 0 9px}.rec-player-actions{display:flex;gap:7px;flex-wrap:wrap}.rec-player-selection .btn{font-size:.72rem;padding:6px 10px}.rec-player-hint{font-size:.72rem;line-height:1.45;color:var(--muted);margin:15px 0 0;padding-top:12px;border-top:1px solid var(--line)}
@media(max-width:850px){.rec-player-aside{grid-row:1;position:static;max-height:none}.rec-player-journey{display:none}.rec-player-aside h2{margin-bottom:8px}.rec-player-selection{display:inline-block;vertical-align:top;width:calc(50% - 12px);margin-right:10px}.rec-player-preferences{margin-top:8px}.rec-player-hint{margin-top:10px}.rec-player-selection .btn{min-height:36px}}
@media(max-width:440px){.rec-player-selection{display:block;width:100%;margin-right:0}}

@media(max-width:850px){.rec-player-aside:has(#answerOverview[data-summary-stage="0"]) .rec-player-selection,.rec-player-aside:has(#answerOverview[data-summary-stage="0"]) .rec-player-hint{display:none}}
/* Keep the scrollbar inside the panel padding, below a fixed header. */
.rec-player-aside{display:flex;flex-direction:column;overflow:hidden;padding:18px!important;min-height:0}
.rec-player-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px;flex:none}.rec-player-header h2{margin:0!important}.rec-save-actions{display:flex;gap:5px}.rec-save-actions .btn{font-size:.73rem;min-height:32px;padding:5px 9px}
.rec-player-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;padding:2px 8px 6px 2px}.rec-player-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:5px}.rec-save-status{font-size:.73rem;line-height:1.4;margin:10px 0 0;flex:none}.rec-save-status[hidden]{display:none}
.rec-player-scroll::-webkit-scrollbar{width:9px}.rec-player-scroll::-webkit-scrollbar-thumb{background:var(--line,#94bfa9);border:2px solid transparent;border-radius:10px;background-clip:padding-box}.rec-player-scroll::-webkit-scrollbar-button{display:none}
.rec-future-levels{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.rec-future-levels [aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:1px}.rec-future-option{padding:16px 0;border-top:1px solid var(--line)}.rec-future-option h4{margin:0 0 8px;font-size:1.05rem}.rec-future-option>p{font-size:.92rem;line-height:1.5;margin:6px 0}.rec-future-option>details>summary{cursor:pointer;font-size:.88rem;font-weight:600;margin-top:10px}.rec-future-option .rec-build-info>h3{display:none}
@media(max-width:850px){.rec-player-scroll{overflow:visible;padding:0;scrollbar-gutter:auto}.rec-player-aside{max-height:none}.rec-player-header{margin-bottom:8px}}
