:root{--accent:#21558c;--bg:#f4f7fb;--panel:#fff;--line:#d7e0eb;--text:#23374e;--muted:#6e8197;--workspace-blue:#174c81;--workspace-red:#b33043;--workspace-gold:#d4ae45}
html{scroll-padding-top:126px}body{background:#f4f7fb;color:#23374e;font-family:'DM Sans',Arial,sans-serif;font-size:13px}body>aside{width:210px;background:#fff;padding:29px 18px;border-color:#dce5ef}main{margin-left:210px;padding:0 30px;max-width:1700px}.reference-sheet main{padding:0 26px;max-width:1700px}.brand span{font-size:23px;letter-spacing:3px}.brand{gap:10px}.brand small{font-size:8px;letter-spacing:1.3px}.character-picker{display:block;color:#7890aa;font-size:9px;letter-spacing:1px;margin:24px 0 12px}.character-picker select{width:100%;border:1px solid #cfdaea;background:#f7faff;color:#2b4d73;font-size:12px;margin-top:9px;padding:10px;min-width:0}.aside-bottom{font-family:Arial,sans-serif;font-size:14px}.sidebar-motto{font-size:13px;letter-spacing:4px;font-weight:900;color:#1d4c7c}.aside-bottom small{font-size:10px;max-width:165px;color:#8b9aaf;line-height:1.8}main>header{height:64px;gap:10px;border-color:#dbe4ef}main>header>span:first-child{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:1px;color:#6b7f99}main>header>span:first-child strong{color:#244b77;letter-spacing:2px;font-size:12px}.breadcrumb-slash{color:#b5c3d4}.workspace-save{flex:0 0 auto;color:#5e7c65;font-size:9px!important;letter-spacing:0!important;margin-left:auto;margin-right:4px!important}.workspace-save.save-failed{color:#b52e42}header button,.button{font-size:11px;padding:9px 12px}.sheet-head{padding:22px 0 17px!important}.sheet-head h2{font-size:31px;margin-top:8px}.sheet-head #save{display:none}.sheet-head>.tag{letter-spacing:2px}.sheet-head p{line-height:1.7}.tabs{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:6px;margin:0 0 20px;padding:10px 0;background:#f4f7fb;border-bottom:1px solid #d3deeb;overflow-x:auto;scrollbar-width:thin;isolation:isolate}.tabs button{padding:10px 13px!important;border:1px solid transparent!important;border-radius:7px!important;font-size:11px!important;white-space:nowrap;color:#57718e;background:transparent}.tabs button.selected{color:#fff!important;background:#1e5288!important;border-color:#1e5288!important;box-shadow:0 3px 8px #1e528822}.tabs button:hover{background:#e5edf7}.tabs .open-fan{margin-left:auto;color:#24568a!important;border-color:#b6cbe2!important;background:#fff}.card{border-color:#d8e2ef;border-radius:9px;box-shadow:0 3px 14px #24446705}.progression-content .card{padding:25px}.continue-session{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:25px 28px;margin-bottom:25px;background:linear-gradient(120deg,#fff,#eaf2fc);border:1px solid #c4d5e9;border-left:4px solid #d0a945;border-radius:10px;box-shadow:0 5px 18px #31557d08}.continue-session h2{font-size:31px;margin:8px 0}.continue-session p:last-child{font-size:12px;color:#71869f;line-height:1.7}.continue-session>div:last-child{display:flex;flex-direction:column;gap:9px;min-width:170px}.continue-session button{font-size:12px}.intro{padding:30px 0}.intro h1{font-size:46px;line-height:1.1}.intro .sigil{height:130px;width:130px;margin-right:25px}.intro .sigil span{font-size:45px}.home-welcome{padding-bottom:20px}.home-welcome h2{font-size:28px}.portal-grid{gap:18px}.hero-card{border-radius:9px;padding:24px;transition:transform .15s,box-shadow .15s}.hero-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #204c7c12}.hero-card:active{transform:translateY(0)}.hero-emblem{width:45px;height:48px}.hero-card h2{font-size:29px}.hero-meta{border-color:#cedeed}.campaign-help{background:#f8fbff}.hero-reference{border:1px solid #bacfe6;border-top:3px solid #24588c;border-radius:8px;box-shadow:0 5px 20px #31578106;background:#fff;gap:18px;padding:18px}.session-toolbar{padding-bottom:15px;border-color:#d7e2ef}.session-toolbar button{border-radius:5px;font-size:11px;padding:9px 12px}.session-toolbar #sheet-evolve{background:#eaf2fc;border-color:#b2cae6;color:#1e5289}.session-toolbar>span{font-size:9px}.section-jump{position:sticky;top:60px;z-index:20;display:flex;align-items:center;flex-wrap:nowrap!important;overflow-x:auto;gap:6px!important;background:#fff;padding:8px 0 10px!important;box-shadow:0 4px 0 #fff;scrollbar-width:thin}.section-jump a{flex:0 0 auto;border-radius:5px;padding:7px 9px;white-space:nowrap;font-size:10px!important;background:#f8fafc;border-color:#d9e4f0;color:#52718f}.section-jump .active-section{background:#e4effc;border-color:#9fbfe3;color:#184d87}.section-picker{flex:0 0 auto;max-width:175px;margin:0;padding:7px 9px;border-radius:5px;border:1px solid #bdcfe4;font-size:11px;color:#274f7b;background:#fff}.section-arrival{animation:arrive-highlight .85s ease-out}@keyframes arrive-highlight{0%{box-shadow:inset 0 0 0 3px #dbb85170}100%{box-shadow:inset 0 0 0 3px transparent}}.hero-reference .card h3,.hero-reference .attribute-section,.hero-reference .quirk-section,#character-passive-section{scroll-margin-top:125px}.hero-reference .identity-section{padding-bottom:18px;border-color:#dce5ef}.hero-reference .identity-section .fields label{font-size:9px;color:#7e91a9;letter-spacing:.4px}.hero-reference .identity-section .fields input{font-size:13px;padding:6px 0;color:#2b4b6f}.hero-reference .identity-section .resource-readout{gap:8px;margin-top:18px}.resource-readout .stat{border-radius:6px;border-width:1px;background:#f7faff;padding:11px 8px}.resource-readout .stat label{font-size:9px;letter-spacing:.5px}.resource-readout .stat strong{font-size:22px;margin-top:7px}.resource-readout .resource-0,.resource-readout .resource-1{border-color:#dfb5bf;background:#fff5f6}.resource-readout .resource-1 strong{color:#ae3047}.resource-readout .resource-2{border-color:#b5cee9}.life-with-controls{position:relative}.life-with-controls progress{display:block;width:100%;height:5px;border:0;border-radius:3px;margin:9px 0;overflow:hidden;appearance:none}.life-with-controls progress::-webkit-progress-bar{background:#efdde2;border-radius:4px}.life-with-controls progress::-webkit-progress-value{background:#bd3a50;border-radius:4px}.life-with-controls progress::-moz-progress-bar{background:#bd3a50}.life-actions{display:flex;gap:5px;margin-top:8px}.life-actions button{flex:1;font-size:9px;padding:5px 4px;border-radius:4px}.life-actions .damage-button{color:#aa2e43;background:#fff;border-color:#e4bac4}.life-actions .heal-button{color:#34725b;background:#fff;border-color:#bdd7ca}.hero-reference .quirk-compact-stats>div{border-radius:6px;border-color:#c9d8eb;border-top-color:#cfad4b}.hero-reference .quirk-compact-stats button{border-radius:4px;background:#edf4fd;color:#25568b}.hero-reference .skill-bonus-input{transition:border-color .12s,box-shadow .12s}.hero-reference .skill-bonus-input:focus{outline:0;box-shadow:0 0 0 3px #d9e9fa}.hero-reference .passive-section textarea{border-radius:6px;background:#fafcff;padding:14px}.hero-reference .passive-section .hint{font-size:10px}.hero-reference>.conditions-section,.hero-reference>.gear-section,.hero-reference>.knowledge-section,.hero-reference>.story-section{padding-top:18px;border-color:#dce5ef}.hero-reference textarea{border-radius:5px;border-color:#d1deed}.field-readonly{cursor:default}.creation-steps{gap:10px}.creation-steps button{border-radius:7px}.creation-steps .active{box-shadow:0 2px 8px #24527d0a}.creation-attributes label{border-radius:7px}.creation-attributes input{border-radius:5px}.creation-actions{padding:15px 0;position:sticky;bottom:0;z-index:20;background:#f4f7bf00;backdrop-filter:blur(10px);border-top:1px solid #d9e4f2}.creation-actions button{background:#fff}.creation-actions button.primary{background:#1d528a;color:#fff}.evolution-summary .stats .stat{background:#f5f9ff;border-color:#cbdced;border-radius:6px}.level-rewards,.upgrade-option{border-radius:7px}.evolution-grid{gap:18px}.earn-xp-form input{min-height:40px;border-radius:5px}.power-overview .stats .stat{border-radius:6px;background:#f7faff}.power-filters{padding:18px;background:#fff;border:1px solid #d2e0ef;border-radius:8px;position:relative}.power-filters input,.power-filters select{border-radius:5px;min-height:37px;border-color:#c6d6e8}.catalog-tools{grid-column:1/-1;display:flex;align-items:center;gap:12px;justify-content:space-between;padding-top:6px;border-top:1px solid #e3eaf3}.catalog-tools .check-label{margin:0;font-size:11px;display:flex;gap:8px}.catalog-tools .check-label input{width:16px;min-height:16px;margin:0}.catalog-tools>button{font-size:11px;padding:7px 12px}.power-list-item{border-radius:7px;border-color:#c4d5e9;box-shadow:0 3px 12px #234f7b06;margin:14px 0}.power-list-title{padding:13px 17px}.power-list-title h3{font-size:22px}.power-full-description{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.power-item-actions{gap:10px;align-items:center}.power-item-actions .power-details-button{background:#fff;border-color:#c7d7e9;color:#285888;font-weight:500}.power-item-actions .price-origin{font-size:9px}.price-origin{line-height:1.6}.power-list-item.purchased{border-color:#c7ac50;border-width:1px}.power-list-item.purchased .power-list-title{background:#fff9e9}.skill-node{border-radius:6px;box-shadow:0 2px 8px #31557905}.skill-node .skill-heading .tag{font-size:8px}.tree-categories button{border-radius:5px}.tree-categories .chosen{background:#e7f0fb!important;color:#1c5188!important;border-color:#a5c2e3!important}.ability-dialog,.fan-dialog{border-radius:10px;border-color:#c4d5e8;box-shadow:0 18px 80px #152b4840}.ability-dialog>h2{font-size:38px;margin-right:20px}.ability-detail{border-radius:5px;overflow:hidden}.ability-detail header{background:#edf3fb;color:#244e7d}.ability-detail h3{color:#244e7d}.ability-detail>p{font-size:15px;color:#435973}.modal-purchase-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #d4dfed}.modal-purchase-actions>span{font-size:12px;color:#6e829c;margin-right:auto}.modal-purchase-actions>strong{font-size:12px;color:#3c775b}.modal-purchase-actions>.primary{width:auto;min-width:160px;background:#24598f;color:#fff;border-color:#24598f}.modal-purchase-actions small{width:100%;color:#a43c50}.fan-dialog{background:linear-gradient(145deg,#fff,#edf4fc)}.fan-dialog h2{color:#1c4b7b;font-size:32px}.fan-tabs{padding-bottom:8px}.fan-tabs button{color:#41617f;border-color:#c8d9ea;background:#fff;border-radius:5px}.fan-tabs .selected{background:#1f568d;color:#fff;border-color:#1f568d}.fan-card{background:linear-gradient(150deg,#fff,#edf4fd);border-color:#9bb8da}.fan-card:hover,.fan-card:focus-visible{background:#f6faff;border-color:#2b649e}.fan-card strong{color:#184d82}.fan-card-category{color:#7d91a9}.fan-card-effect{color:#5a708b}.fan-card-cost{color:#a2384b}.fan-footer{border-color:#c6d6e9}.fan-browse{display:flex;align-items:flex-end;gap:15px;justify-content:space-between;padding-top:6px}.fan-browse label{font-size:9px;letter-spacing:1px;color:#6e87a2;width:min(320px,70%)}.fan-browse input{margin-top:6px;padding:9px 11px;font-size:12px;border-radius:5px;border-color:#c4d5e7;background:#fff}.fan-browse>div{display:flex;gap:7px}.fan-browse button{font-size:18px;min-width:40px;padding:7px;border-radius:5px}.ability-fan{scrollbar-color:#8faccb #e9f0f7;min-height:320px}.quick-roll-result{position:fixed;right:22px;bottom:22px;z-index:70;width:320px;max-width:calc(100vw - 28px);padding:22px;background:#fff;border:1px solid #b7cde5;border-top:4px solid #d0ac46;border-radius:10px;box-shadow:0 10px 50px #1a3b672f;color:#24496e}.quick-roll-result>strong{display:block;font-size:48px;font-weight:900;font-style:italic;text-align:center;margin:12px 0;color:#1b4d82}.quick-roll-result>p{font-size:12px;text-align:center;line-height:1.7;overflow-wrap:anywhere;max-height:80px;overflow:auto;color:#6b8199}.quick-roll-result>div{display:flex;gap:8px;margin-top:15px}.quick-roll-result>div button{flex:1;font-size:11px;border-radius:5px}.quick-roll-result .close-quick-roll{position:absolute;top:8px;right:10px;padding:1px 5px;font-size:20px;border:0;background:none;color:#8299b3}.roll-result-enter{animation:roll-enter .16s ease-out}@keyframes roll-enter{from{transform:translateY(10px);opacity:.6}to{transform:translateY(0);opacity:1}}.interaction-notice{position:fixed;left:230px;bottom:22px;z-index:75;max-width:calc(100vw - 40px);display:flex;align-items:center;gap:13px;background:#eff6ff;color:#224f80;border:1px solid #a7c4e3;border-radius:7px;padding:14px 17px;box-shadow:0 6px 20px #244f7e16;font-size:12px}.interaction-notice button{font-size:11px;padding:5px 8px;background:#fff}.interaction-notice .close-notice{border:0;background:transparent;padding:0 3px;font-size:20px}#toast{z-index:90;bottom:20px;background:#edf5ff;color:#245581;border-color:#b6cde7;border-radius:7px;box-shadow:0 7px 22px #264c7412}.reference-sheet .dice{border-radius:7px;margin-top:20px}.reference-sheet .dice #dice-buttons button{border-radius:5px}.reference-sheet .dice .die{border-radius:7px}.card input:not([readonly]):focus,.card textarea:focus,.card select:focus{outline:0;border-color:#5886ba;box-shadow:0 0 0 3px #e0ecfa}button:focus-visible,a:focus-visible{outline:3px solid #9abce3;outline-offset:3px}button{transition:background .12s,border-color .12s,transform .12s}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;transform:none;opacity:.45}
@media(max-width:1050px){body>aside{position:relative;width:auto;inset:auto;display:flex;align-items:center;gap:14px;padding:13px 20px;border:0;border-bottom:1px solid #d7e3f0;min-height:65px}.brand{font-size:24px}.brand span{font-size:20px;letter-spacing:2px}.brand small{display:none}body>aside>.label,body>aside>#characters,body>aside>.aside-bottom{display:none}body>aside>.nav{display:none}.character-picker{margin:0 0 0 auto;max-width:230px;font-size:8px;letter-spacing:.7px;min-width:100px}.character-picker select{padding:7px 9px;margin-top:4px;font-size:11px}body>aside>#new{width:auto;margin:0;padding:10px;font-size:11px;white-space:nowrap}main,.reference-sheet main{margin:0;padding:0 20px;max-width:none}main>header{height:56px}.workspace-save{font-size:8px!important}.tabs{top:0}.interaction-notice{left:20px}}
@media(max-width:640px){main,.reference-sheet main{padding:0 12px}body>aside{padding:12px 14px;gap:10px}.brand span{font-size:18px}.character-picker{max-width:180px}.character-picker select{max-width:165px}body>aside>#new{display:none!important}main>header{gap:7px;height:53px}main>header>span:first-child{gap:7px;font-size:9px;letter-spacing:0}main>header>span:first-child strong{font-size:10px;letter-spacing:1px}.workspace-save{display:none!important}header button,.button{font-size:10px;padding:8px}.sheet-head{padding:19px 0 12px!important}.sheet-head h2{font-size:27px}.sheet-head p{font-size:11px}.tabs{padding:7px 0;gap:5px;margin-bottom:16px}.tabs button{padding:9px 11px!important;font-size:10px!important;border-radius:5px!important}.tabs .open-fan{margin-left:0}.hero-reference{padding:11px;gap:13px}.hero-reference .identity-section .resource-readout{grid-template-columns:1fr 1fr}.session-toolbar{gap:7px}.session-toolbar>span{width:auto;font-size:8px}.session-toolbar button{font-size:10px;padding:8px}.section-jump{top:51px;padding:6px 0 8px!important}.section-jump a{padding:7px 8px;font-size:9px!important}.section-picker{max-width:145px;padding:7px;font-size:10px}.continue-session{padding:20px;flex-direction:column;align-items:flex-start;gap:12px;margin-top:8px}.continue-session>div:last-child{width:100%;flex-direction:row;min-width:0}.continue-session>div:last-child button{flex:1;font-size:10px}.continue-session h2{font-size:28px}.intro{padding:25px 0 12px}.intro h1{font-size:36px}.intro .eyebrow{font-size:8px}.intro p:last-child{font-size:11px}.home-welcome{gap:12px;padding-bottom:16px}.home-welcome h2{font-size:24px}.home-welcome>div p:last-child{font-size:11px}.home-welcome .primary{font-size:11px}.hero-card{padding:20px}.progression-content .card{padding:19px}.progression-content .card>h3{font-size:22px}.creation-steps{gap:5px}.creation-steps button{padding:10px 7px}.creation-actions{gap:7px}.power-filters{padding:14px;gap:11px}.catalog-tools{gap:7px;flex-wrap:wrap}.catalog-tools .check-label{font-size:10px}.power-navigation button{font-size:10px}.power-item-actions{padding:12px;gap:7px}.power-item-actions button{font-size:10px;padding:8px 10px}.power-item-actions .price-origin{width:100%;flex-basis:100%;order:3}.power-list-title h3{font-size:19px}.ability-dialog{padding:30px 20px}.ability-dialog>h2{font-size:29px}.fan-dialog{padding:30px 15px 20px}.fan-dialog h2{font-size:27px}.modal-purchase-actions{gap:8px}.modal-purchase-actions>.primary{width:100%;font-size:12px}.quick-roll-result{right:12px;bottom:12px;padding:18px;width:290px}.quick-roll-result>strong{font-size:40px;margin:8px 0}.quick-roll-result>p{font-size:11px;max-height:55px}.interaction-notice{left:12px;right:12px;bottom:12px;font-size:11px;padding:12px;max-width:none}.interaction-notice>span{flex:1}.fan-browse label{max-width:70%}.fan-browse input{font-size:11px}.fan-browse button{min-width:33px;padding:5px}.card input,.card select,.card textarea{font-size:14px}.hero-reference .identity-section .fields input{font-size:12px}.life-actions button{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}


.hero-reference .life-inline-controls{margin-top:10px}.hero-reference .life-inline-controls>label{display:block;font-size:8px;letter-spacing:.5px;color:#976a74}.hero-reference .life-inline-controls input{display:block;width:100%;padding:6px 8px;margin-top:4px;border:1px solid #dfbac3;border-radius:4px;background:#fff;text-align:center;color:#8d3043;font-size:15px}.hero-reference .life-actions button{min-height:30px}.resource-readout{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.resource-readout{grid-template-columns:repeat(2,minmax(0,1fr))}}
