.session-controller{display:grid!important;grid-template-columns:1fr auto;gap:12px 20px;margin-bottom:18px!important;background:linear-gradient(120deg,#fff,#f1f6fd)!important;padding:20px!important;border:1px solid #c7d8eb!important;border-left:3px solid #c3a54b!important;border-radius:7px}.session-controller .eyebrow{font-size:8px;letter-spacing:1.3px;margin:0 0 7px;color:#7f95ad}.session-controller h3,.hero-reference .session-controller h3{text-align:left;margin:0;color:#244f7e;font:800 21px Arial,sans-serif}.session-controller h3 span{font-size:13px;font-weight:500;color:#8397ad}.session-controller>div>p:last-child{font-size:10px;color:#8094ab;margin:8px 0 0}.session-controller-actions{display:flex;gap:7px;align-items:center}.session-controller button{font-size:10px;padding:9px 12px;border-radius:5px;color:#355e8a}.session-controller-actions .primary{background:#24588f;color:#fff;border-color:#24588f}.session-controller>details,.session-controller>.controller-guide{grid-column:1/-1;margin:0}.session-controller summary{font-size:10px;color:#5a7c9e;cursor:pointer}.session-controller details>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.session-controller .hint{font-size:10px!important;color:#8396ad;line-height:1.7}.session-controller details .hint{margin-top:10px}.hero-reference .session-controller{margin-bottom:16px!important}.effects-panel{margin-top:16px!important}.effects-panel>details{border-top:1px solid #dce5ef;margin-top:16px;padding-top:12px}.effects-panel summary{font-size:11px;line-height:1.6;color:#4d7196;cursor:pointer}.effects-panel .hint{font-size:11px;line-height:1.8;color:#7f94ab}.active-rule-effect{position:relative;padding:12px;border:1px solid #cbdced;border-left:3px solid #bfa64f;border-radius:5px;background:#fcfdff;margin:10px 0}.active-rule-effect>div{display:flex;gap:10px;justify-content:space-between;align-items:baseline}.active-rule-effect strong{font-size:11px;color:#325b87}.active-rule-effect small{font-size:9px;color:#8a9caf;white-space:nowrap}.active-rule-effect p{font-size:10px;line-height:1.7;color:#7a91aa;margin:7px 0}.active-rule-effect button{font-size:9px;padding:5px 9px;color:#a35d69;border-color:#dfced3;border-radius:4px;background:#fff}.effects-panel form label,.automatic-choices label{display:block;font-size:9px;color:#7189a3;margin-top:12px}.effects-panel form input,.effects-panel form select,.automatic-choices select{display:block;width:100%;border:1px solid #bfd2e8;border-radius:5px;margin-top:5px;padding:8px 9px;font-size:11px;background:#fff;color:#325c86;min-width:0}.effect-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.effects-panel form button{font-size:11px;padding:9px 13px;margin-top:16px;border-radius:5px;background:#245a90;color:#fff;border-color:#245a90}.automatic-choices{margin-top:16px!important}.automatic-choices summary{font-size:12px;color:#355f8b;cursor:pointer}.automatic-choices .hint{font-size:10px;line-height:1.8;color:#8a9bad}.automatic-choices .check-label{display:flex;align-items:center;gap:9px;line-height:1.6}.automatic-choices .check-label input{width:15px;height:15px;margin:0;flex:0 0 auto}.attribute-rule-choice{border:1px solid #d6e2ef;border-radius:5px;padding:10px;margin:14px 0 0}.attribute-rule-choice legend{font-size:10px;color:#657e9a;padding:0 5px}.use-widget{padding:13px;border:1px solid #c6d8ed;border-radius:6px;margin:14px 0;background:#f4f8fd}.use-widget-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:11px}.use-widget-top strong{font-size:12px;color:#2f5c8b}.use-widget-top>span{font-size:9px;color:#8b9db0;line-height:1.5}.use-actions{display:flex;gap:7px;flex-wrap:wrap}.use-actions button{font-size:10px;padding:8px 10px;border:1px solid #adc6e4;color:#2e5d8e;background:#fff;border-radius:5px}.use-actions button[data-use-roll]{background:#24568b;border-color:#24568b;color:#fff}.use-actions button:disabled{opacity:.4;cursor:not-allowed}.use-widget>details{margin-top:12px;padding-top:10px;border-top:1px solid #d5e2f0}.use-widget summary{font-size:10px;color:#6384a4;cursor:pointer}.usage-settings{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;align-items:end}.usage-settings label{font-size:8px;color:#7f95ab;flex:1;min-width:90px;display:block}.usage-settings input,.usage-settings select{margin-top:5px;border:1px solid #c4d5e9;border-radius:4px;padding:8px;background:#fff;color:#365d87;width:100%;min-width:0;font-size:10px}.usage-settings button,.use-widget [data-manual-refill]{font-size:10px;padding:8px 10px;border-radius:4px;color:#43698f;background:#fff;border-color:#c6d5e6}.use-widget .hint{font-size:9px;line-height:1.7;color:#8296ac;margin:12px 0 0}.combat-uses-badge{display:block;font-size:9px;color:#5c7fa3;background:#f5f9ff;padding:8px 13px;border-top:1px solid #e0e9f3}.equipped-choice{font-size:8px;color:#7d93aa;letter-spacing:.5px;display:block;margin-bottom:15px}.equipped-choice select{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #b9cfe8;border-radius:5px;background:#f9fbfe;color:#325c88;font-size:11px}.condition-duration{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.condition-duration label{font-size:8px!important;color:#8c7b64!important}.condition-duration input,.condition-duration select,.hero-reference .condition-duration input{display:block;width:100%;margin:5px 0 0;padding:8px;border:1px solid #dfd2bd;border-radius:4px;background:#fffdf8;font-size:10px;color:#84714d;min-width:0}.skill-budget{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px 13px;margin:13px 0;border:1px solid #c5d8ec;border-left:3px solid #bfa54c;border-radius:5px;background:#f6faff}.skill-budget strong{font-size:12px;color:#335e8c}.skill-budget span{font-size:10px;color:#7c94ad}.skill-budget small{width:100%;font-size:9px;line-height:1.7;color:#8a9eb4}.skill-budget.over-budget{background:#fff5f6;border-color:#d9b6c0}.skill-budget.over-budget strong,.skill-budget.over-budget span{color:#a54458}.applied-bonuses{border:1px solid #cbdced;border-radius:6px;margin:14px 0;background:#fff}.applied-bonuses summary{padding:12px 14px;background:#eff6ff;font-size:12px;font-weight:700;color:#305b87;cursor:pointer}.applied-bonuses>div{padding:10px 14px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e3ebf4;font-size:10px}.applied-bonuses strong{color:#486d94}.applied-bonuses span{color:#7e93aa;text-align:right}.applied-bonuses>.hint{margin:12px 14px;font-size:10px;line-height:1.8;color:#8397ae}.fan-workspace .use-widget{padding:11px}.fan-workspace .use-widget h4{margin:0}.session-extras>.effects-panel,.session-extras>.automatic-choices{padding:20px;background:#fff;border:1px solid #cfdeed;border-radius:8px}.session-controller button:focus-visible,.effects-panel button:focus-visible,.use-widget button:focus-visible{outline:2px solid #c5a84d;outline-offset:2px}.combat-view .session-controller{margin-top:0!important}
@media(max-width:600px){.session-controller{grid-template-columns:1fr;padding:16px!important}.session-controller-actions{justify-content:flex-start;flex-wrap:wrap}.session-controller h3{font-size:19px}.active-rule-effect>div{display:block}.active-rule-effect small{display:block;margin-top:6px}.use-widget-top{display:block}.use-widget-top>span{display:block;margin-top:6px}.effect-form-grid{grid-template-columns:1fr 1fr}.applied-bonuses>div{display:block}.applied-bonuses span{display:block;text-align:left;margin-top:6px}.usage-settings{gap:7px}.condition-duration{gap:7px}.session-extras>.effects-panel,.session-extras>.automatic-choices{padding:16px}}
.use-error{font-size:11px;line-height:1.7;color:#a04356;margin:10px 0 0}.ability-use-result{padding:13px;margin-top:15px;border:1px solid #c3d7ef;background:#eff6ff;border-radius:5px;color:#355f8c;font-size:13px;line-height:1.8}.calculated-weapon-damage{font-size:10px;line-height:1.7;color:#6e8aa7;background:#f2f7fd;border-left:2px solid #bdab63;padding:9px;margin-top:13px}
.current-target{display:block;font-size:8px;color:#7d94ac;align-self:center}.current-target input{display:block;width:100%;padding:8px 10px;margin-top:5px;border:1px solid #c4d6eb;border-radius:5px;background:#fff;color:#375e88;font-size:11px}.session-controller:has(.current-target){grid-template-columns:1fr minmax(150px,1fr)}.session-controller-actions{grid-column:1/-1}.session-controller .controller-guide{grid-column:1/-1}@media(max-width:600px){.session-controller:has(.current-target){grid-template-columns:1fr}}
.damage-reduction-choice{display:flex;align-items:center;gap:6px;font-size:9px!important;color:#7d91a8!important;margin-top:10px;letter-spacing:0!important}.damage-reduction-choice input,.hero-reference .damage-reduction-choice input{width:13px;height:13px;flex:0 0 auto;padding:0;margin:0}.damage-reduction-choice small{font-size:8px;margin-left:auto;color:#9aabbc}.combat-view .damage-reduction-choice{margin-bottom:10px}
.session-controller .controller-guide{display:none}.session-controller details[open]~.controller-guide{display:block}.session-controller-actions button{white-space:nowrap;flex:0 0 auto}.session-controller-actions .primary{width:auto!important;min-width:0;flex:0 0 auto}.session-controller h3>span{float:none;margin-left:6px}.combat-view .combat-command{padding:15px 20px;margin-bottom:14px}.combat-view .combat-command h2{font-size:24px;margin:5px 0}.combat-view .combat-command .eyebrow{font-size:8px}.session-controller{gap:10px 16px;padding:15px!important}@media(min-width:1000px){.session-controller:has(.current-target){grid-template-columns:1fr minmax(150px,1fr) auto}.session-controller-actions{grid-column:auto}}

.delete-sheet-button{color:#a82323!important;border-color:#d5a1a1!important;background:#fff!important}#delete-sheet-dialog{max-width:460px;width:calc(100% - 40px);padding:26px;border:1px solid #cbd6e2;border-radius:12px;color:#17304e;background:white}#delete-sheet-dialog::backdrop{background:rgb(13 31 53 / 55%)}#delete-sheet-dialog p{line-height:1.6}.deleted-sheet-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dce4ec}

.defense-rules{margin-top:18px}.defense-rules p{line-height:1.55}.dodge-comparison{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 0}.dodge-comparison label{flex:1;min-width:140px}.dodge-comparison input{width:100%}.dodge-outcome{flex-basis:100%;font-weight:700;color:#a32727}.dodge-outcome[data-success="true"]{color:#16613c}

.defense-value-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.defense-value-card{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;min-height:120px;padding:14px;border:1px solid #cbd8e6;border-top:3px solid #245d91;border-radius:8px;background:#f5f9fd;color:#173b60}.defense-value-card>span{font-size:10px;font-weight:800;letter-spacing:.07em}.defense-value-card>strong{font-size:26px}.defense-value-card>small{font-size:11px;color:#536b82}

.defense-value-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.defense-value-card>strong{font-size:22px}.block-tier-setting{margin-top:10px;font-size:12px}.block-tier-setting label{display:block;margin-top:12px}.block-tier-setting input{max-width:130px;display:block}@media(max-width:480px){.defense-value-grid{grid-template-columns:1fr}.defense-value-card{min-height:100px}}

.turn-actions-panel{margin:12px 0}.turn-actions-panel>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:16px}.turn-actions-panel strong{font-size:27px;color:#174e7e}.turn-actions-panel small{color:#536b82}

.summons-panel{margin-top:16px}.summon-model,.active-summon{border:1px solid #d1deea;border-radius:8px;padding:15px;margin:14px 0}.active-summon{border-top:3px solid #25709b;background:#f5faff}.summon-model header,.active-summon header{display:flex;align-items:center;justify-content:space-between;gap:14px}.summon-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.summon-stats>span{display:flex;flex-direction:column;gap:5px;font-size:10px;text-transform:uppercase;color:#526d83}.summon-stats strong{font-size:15px;color:#173d62}.summon-model details,.active-summon details{font-size:12px;margin:12px 0}.summon-life progress{width:100%;margin-top:8px}.summon-health{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.summon-health label{max-width:130px}.summon-health input{width:100%}.summon-editor{max-width:800px;width:calc(100% - 28px);max-height:85vh;overflow:auto;border:1px solid #b9cbdb;border-radius:12px;padding:25px;color:#17344f;background:white}.summon-editor::backdrop{background:rgb(15 31 49 / 65%)}.summon-editor-summary{padding:12px;border:1px solid #d1deea;background:#f5faff;margin:16px 0}.summon-upgrades{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.summon-upgrades>label{display:flex;align-items:start;justify-content:space-between;gap:10px;border:1px solid #d5e1eb;border-radius:7px;padding:12px}.summon-upgrades>label[hidden]{display:none}.summon-upgrades strong{font-size:12px}.summon-upgrades small{display:block;line-height:1.5;margin-top:6px;color:#536d82}.summon-upgrades input{width:60px;flex-shrink:0}.summon-editor textarea{width:100%;min-height:100px}.summon-editor-problem{color:#a22a2a}.summon-base-table{margin:12px 0}@media(max-width:600px){.summon-upgrades{grid-template-columns:1fr}.summon-model header,.active-summon header{align-items:start;flex-direction:column}}

.awakening-section{margin-top:16px}.awakening-section>.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.awakening-section .eyebrow{font-size:9px;letter-spacing:1.3px;color:#53718a}.master-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;margin-top:15px}.master-ability-card{border:1px solid #c7d8e7;border-top:3px solid #bd9236;background:white;border-radius:8px;padding:18px;min-width:0}.master-ability-card header span{font-size:10px;color:#61768b;letter-spacing:.05em}.master-ability-card h4{font-size:18px;color:#173c61;margin:10px 0}.master-ability-card p{line-height:1.6;font-size:13px;overflow-wrap:anywhere}.master-quirk-change{background:#f2f7fc;border-left:3px solid #2b679a;padding:12px;margin:12px 0}.master-quirk-change p{margin:6px 0 0}.master-unique-panel{margin-top:20px}.master-ability-editor{max-width:680px;width:calc(100% - 30px);max-height:85vh;overflow:auto;background:white;color:#17344f;border:1px solid #bed0e1;border-radius:10px;padding:26px}.master-ability-editor::backdrop{background:rgb(15 31 49 / 60%)}.master-ability-editor form{display:grid;gap:16px}.master-ability-editor label{display:block}.master-ability-editor input,.master-ability-editor textarea,.master-ability-editor select{display:block;width:100%;margin-top:7px}.master-ability-editor textarea{min-height:110px;resize:vertical}.master-editor-problem{color:#a82d2d}

.awakening-modifier-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) auto;align-items:end;gap:10px;margin:12px 0}.awakening-structure-editor,.awakening-system-editor{border:1px solid #d1deea;border-radius:8px;padding:15px}.awakening-child-editor{padding:15px;margin:12px 0;background:#f4f8fc;border:1px solid #cbdce9;border-radius:7px;display:grid;gap:12px}.awakening-child-cards{display:grid;gap:12px;margin:14px 0}.awakening-child-cards>article{border:1px solid #d3dfeb;border-radius:6px;padding:14px;background:#f6f9fd}.awakening-child-cards span{font-size:10px;color:#5d7187}.awakening-child-cards h5{font-size:15px;color:#163f65;margin:8px 0}.awakening-power-choices{max-height:230px;overflow:auto;border:1px solid #d1dfec;padding:8px;margin:10px 0}.awakening-power-choices label{display:flex;align-items:start;gap:10px;padding:9px;border-bottom:1px solid #e4ecf2}.awakening-power-choices label[hidden]{display:none}.awakening-power-choices input,.master-ability-editor .check-label input{width:auto;display:inline-block;margin:0}.awakening-power-choices small{display:block;color:#64788c}.awakening-system-summary{padding:10px;background:#f4f8fc;border-left:3px solid #2d6799}.awakening-system-editor summary{margin-bottom:12px}.master-ability-editor .check-label{display:flex;align-items:center;gap:9px}.awakening-combat-notes{padding:12px;background:#fff8e8;border:1px solid #e4d5b2;border-radius:7px;margin-top:12px}.awakening-combat-notes p{font-size:12px;line-height:1.6}@media(max-width:550px){.awakening-modifier-row{grid-template-columns:1fr}.master-ability-editor{padding:18px}}

.master-card-grid{align-items:start}

.master-ability-group{grid-column:1 / -1}.awakening-child-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}@media(max-width:600px){.awakening-child-cards{grid-template-columns:1fr}}

.tree-tools{grid-template-columns:2fr 1fr 1fr}.tree-rule-info{margin:12px 0;padding:10px 12px;border-left:3px solid #2868a5;background:#f2f7fc;color:#173e64;font-size:12px}.tree-rule-info span{font-weight:700}.tree-rule-info p{margin:6px 0 0}.skill-node[hidden],.branch-title[hidden]{display:none}.tree-rule-choices select{display:block;width:100%;margin:8px 0 16px}.tree-rule-choices input[type=checkbox]{width:auto}.skill-actions{flex-wrap:wrap}@media(max-width:700px){.tree-tools{grid-template-columns:1fr}}

/* Keep small values compact; health controls have their own full-width row. */
.hero-reference .resource-readout{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-areas:"total total initiative initiative move move" "current current current current current current" "xp xp xp tree tree tree";align-items:start;gap:10px}
.hero-reference .resource-readout>.stat{min-height:0;height:auto;padding:12px;border-radius:7px}
.hero-reference .resource-readout>.resource-0{grid-area:total}
.hero-reference .resource-readout>.resource-1{grid-area:current}
.hero-reference .resource-readout>.resource-2{grid-area:initiative}
.hero-reference .resource-readout>.resource-3{grid-area:move}
.hero-reference .resource-readout>.resource-4{grid-area:xp}
.hero-reference .resource-readout>.resource-5{grid-area:tree}
.hero-reference .life-inline-controls{display:grid;grid-template-columns:minmax(80px,130px) minmax(0,1fr);align-items:end;gap:12px;max-width:520px;margin:10px auto 0}
.hero-reference .life-inline-controls .life-actions{display:flex;gap:8px;margin:0}
.hero-reference .life-inline-controls .life-actions button{flex:1;min-height:35px}
.quirk-pool-result>strong{display:flex;flex-wrap:wrap;gap:7px;font-size:20px}
.quirk-die{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:5px;border:1px solid #a9c3df;border-radius:7px;background:#edf5ff;color:#174b80;font-variant-numeric:tabular-nums}
@media(max-width:420px){.hero-reference .resource-readout{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"total initiative" "current current" "move xp" "tree tree"}.hero-reference .life-inline-controls{grid-template-columns:80px minmax(0,1fr);gap:8px}}

.combat-priority{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.2fr);align-items:start;gap:18px;margin-bottom:18px}
.combat-priority-left,.combat-priority-right{display:flex;flex-direction:column;gap:18px;min-width:0}.combat-priority-left>.card,.combat-priority-right>.card{margin:0!important}
.combat-priority>*{min-width:0}.combat-basic-damage{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#edf5ff;border-radius:7px;margin-bottom:15px}.combat-basic-damage span,.combat-basic-damage small{display:block;font-size:10px;line-height:1.5;color:#55718c}.combat-basic-damage strong{display:block;font-size:24px;color:#234f7e;margin:5px 0}.combat-basic-damage button{white-space:nowrap}.combat-roll-tools details{margin:12px 0}.combat-roll-tools summary{cursor:pointer;font-size:12px;color:#315c85}.combat-quirk-pools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.combat-quirk-pools button{font-size:11px;padding:9px 5px}
#combat-free-dice{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;align-items:end;margin:12px 0}#combat-free-dice label{min-width:0;font-size:9px}#combat-free-dice input,#combat-free-dice select{width:100%;min-width:0;margin-top:5px}@media(max-width:820px){.combat-priority{grid-template-columns:minmax(0,1fr)}}@media(max-width:440px){.combat-basic-damage{align-items:flex-start;flex-direction:column}#combat-free-dice{grid-template-columns:1fr 1fr}#combat-free-dice button{min-height:36px}}

.quick-damage-power{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #c8d9eb;border-radius:7px;margin:10px 0;background:#f7faff}.quick-damage-power strong,.quick-damage-power span,.quick-damage-power small{display:block}.quick-damage-power strong{font-size:13px;color:#244f7e}.quick-damage-power span{font-size:17px;font-weight:700;margin:5px 0;color:#244f7e}.quick-damage-power small,.quick-damage-choice small{font-size:10px;color:#607c96}.quick-damage-power .use-error{width:100%;margin:0}.quick-damage-choice{padding:12px 0;border-bottom:1px solid #dce6f0}.quick-damage-choice>label{display:flex;align-items:center;gap:9px;font-size:12px;cursor:pointer}.quick-damage-choice input[type=checkbox]{width:16px;height:16px;flex:0 0 auto;margin:0}.quick-damage-choice form{display:flex;align-items:end;gap:8px;margin:10px 0 0 25px}.quick-damage-choice form label{flex:1;min-width:0;font-size:10px}.quick-damage-choice form input{display:block;width:100%;margin-top:5px}.quick-damage-choice button{white-space:nowrap}.quick-damage-powers>.hint{font-size:11px;line-height:1.6}
.quick-damage-choice>.ranged-power-choice{margin:8px 0 0 25px;font-size:11px}

.hero-reference .hero-status-resources{margin:12px 0 22px}.hero-reference .hero-status-resources .life-inline-controls{grid-template-columns:80px minmax(0,1fr);gap:8px}.hero-reference .hero-status-resources .damage-reduction-choice{flex-wrap:wrap}.hero-reference .hero-status-resources .damage-reduction-choice small{margin-left:0}

/* Consistent flat stat tiles: color accents instead of enclosing outlines. */
:root{--hero-blue:#24588c;--hero-red:#b33449;--hero-gold:#b58b24;--hero-gold-ink:#795b12;--hero-gold-soft:#fbf6e8}
.hero-reference .combat-section .combat-stats-with-range>.stat,.hero-reference .combat-section .combat-stats-with-range>.combat-range-readout{border:0;border-bottom:3px solid var(--hero-blue);border-radius:0;box-shadow:none;background:#f1f5fb;padding:11px 7px}
.hero-reference .combat-section .combat-stats-with-range>.stat:nth-child(2),.hero-reference .combat-section .combat-stats-with-range>.stat:nth-child(4){border-bottom-color:var(--hero-red)}
.hero-reference .combat-section .combat-stats-with-range>.stat:nth-child(3),.hero-reference .combat-section .combat-stats-with-range>.stat:nth-child(6),.hero-reference .combat-section .combat-stats-with-range>.combat-area-tile{border-bottom-color:var(--hero-gold);background:var(--hero-gold-soft)}
.hero-reference .combat-section .combat-area-tile>b{color:var(--hero-gold-ink)}
.hero-reference .resource-readout>.stat{border:0;border-bottom:3px solid var(--hero-blue);border-radius:0;box-shadow:none;background:#f1f5fb}
.hero-reference .resource-readout>.resource-0,.hero-reference .resource-readout>.resource-1{border-bottom-color:var(--hero-red);background:#fff5f6}
.hero-reference .resource-readout>.resource-2,.hero-reference .resource-readout>.resource-5{border-bottom-color:var(--hero-gold);background:var(--hero-gold-soft)}
.hero-reference .resource-readout>.resource-2 strong,.hero-reference .resource-readout>.resource-5 strong{color:var(--hero-gold-ink)}
.hero-reference .quirk-compact-stats>div{border:0;border-bottom:3px solid var(--hero-blue);border-radius:0;box-shadow:none;background:#f1f5fb}
.hero-reference .quirk-compact-stats>div:nth-child(2){border-bottom-color:var(--hero-red);background:#fff5f6}
.hero-reference .quirk-compact-stats>div:nth-child(3){border-bottom-color:var(--hero-gold);background:var(--hero-gold-soft)}
.defense-value-grid>.defense-value-card{border:0;border-bottom:3px solid var(--hero-blue);border-radius:0;box-shadow:none;background:#f1f5fb}
.defense-value-grid>.defense-value-card:nth-child(2){border-bottom-color:var(--hero-red)}
.defense-value-grid>.defense-value-card:nth-child(3){border-bottom-color:var(--hero-gold);background:var(--hero-gold-soft)}
/* Prefer a full-width sheet on small screens to cramped half-width panels. */
@container hero-sheet (max-width:759px){.hero-sheet-columns{display:flex;flex-direction:column}.hero-sheet-column>.skill-section{border-left:0;padding-left:0}}
@container hero-sheet (max-width:480px){
 .hero-reference .combat-section .combat-stats-with-range{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:6px}
 .hero-reference .combat-stats-with-range>.stat:nth-child(1){grid-column:1;grid-row:1}
 .hero-reference .combat-stats-with-range>.stat:nth-child(2){grid-column:2;grid-row:1}
 .hero-reference .combat-stats-with-range>.stat:nth-child(3){grid-column:1 / -1;grid-row:2}
 .hero-reference .combat-stats-with-range>.combat-reach-tile{grid-column:1;grid-row:3}
 .hero-reference .combat-stats-with-range>.combat-area-tile{grid-column:2;grid-row:3}
 .hero-reference .combat-stats-with-range>.stat:nth-child(4){grid-column:1;grid-row:4}
 .hero-reference .combat-stats-with-range>.stat:nth-child(5){grid-column:2;grid-row:4}
 .hero-reference .combat-stats-with-range>.stat:nth-child(6){grid-column:1 / -1;grid-row:5}
 .hero-reference .combat-section .mental-choice{max-width:100%;width:100%;min-width:0;font-size:12px;min-height:36px}
 .hero-reference .combat-section .mental-roll{width:100%;min-height:36px}
 .hero-reference .resource-readout{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'total initiative' 'current current' 'move xp' 'tree tree'}
 .hero-reference .resource-readout .life-inline-controls{grid-template-columns:70px minmax(0,1fr);gap:8px}
 .hero-reference .resource-readout .life-actions{flex-wrap:wrap}
 .hero-reference .resource-readout .life-actions button{min-height:36px}
}
@media(max-width:480px){.session-tests .combat-mental-test{grid-template-columns:minmax(0,1fr)}.quick-damage-choice form{flex-wrap:wrap;margin-left:0}.quick-damage-choice form label{flex-basis:100%}.quick-damage-choice form button{min-height:36px}}

/* A shared blue foundation, with color reserved for accents. */
.hero-reference .combat-section .combat-stats-with-range>.stat:nth-child(n),
.hero-reference .combat-section .combat-stats-with-range>.combat-range-readout:nth-child(n),
.hero-reference .resource-readout>.stat:nth-child(n),
.hero-reference .quirk-compact-stats>div:nth-child(n),
.defense-value-grid>.defense-value-card:nth-child(n){background:#f1f5fb}

/* Numeric readouts stay dark; borders and accents carry the palette. */
.hero-reference .combat-section .combat-stats-with-range>.stat:nth-child(n)>strong,
.hero-reference .combat-section .combat-range-readout:nth-child(n)>b,
.hero-reference .resource-readout>.stat:nth-child(n)>strong,
.hero-reference .quirk-compact-stats>div:nth-child(n)>strong,
.defense-value-grid>.defense-value-card:nth-child(n)>strong,
.hero-reference .skill-row-total,
.hero-reference .combat-quick-stats strong,
.combat-view .combat-quick-stats strong,
.combat-view .combat-health-number,
.turn-actions-panel strong,
.quick-damage-power span,
.combat-basic-damage strong,
.combat-action-buttons strong{color:#111}
.hero-reference .attribute-section .attribute-ring>.stat:nth-child(n) input{color:#111}
.hero-reference .life-inline-controls input,
.combat-view .combat-health-controls input{color:#111}

.destiny-initiative-roll{display:block;margin:9px auto 0;padding:6px 10px;font-size:10px;border-radius:4px}

.future-window-panel .hint{font-size:11px;line-height:1.6}.future-window-panel small{font-size:10px;color:#627d97}.future-window-use{display:grid;gap:12px;margin-top:16px}.future-window-use fieldset{border:0;padding:0;margin:0}.future-window-use legend,.future-window-use>label{font-size:10px;color:#4c6d8d}.future-window-dice{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.future-window-dice label{cursor:pointer;position:relative}.future-window-dice input{position:absolute;opacity:0;width:1px;height:1px}.future-window-dice span{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:7px;background:#eef4fb;color:#111;font-size:20px;font-weight:800;border-bottom:3px solid #24588c}.future-window-dice input:checked+span{background:#e3edf9;border-bottom-color:#b58b24;box-shadow:inset 0 0 0 2px #b58b24}.future-window-dice input:focus-visible+span{outline:3px solid #24588c;outline-offset:2px}.future-window-use select{display:block;width:100%;min-width:0;margin-top:7px}.future-window-panel button{min-height:36px}.future-window-panel .session-panel-heading{flex-wrap:wrap}.future-window-panel .session-panel-heading>span{font-size:11px;color:#607c96}

/* Invocações: cartões de modelo mais claros e com informações agrupadas. */
.summon-model-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;align-items:start}
.summon-model{padding:0;overflow:hidden;border-top:3px solid var(--hero-gold,#b58b24);background:var(--dark-tile,#f7faff);box-shadow:0 5px 16px #0b1b2b12}
.summon-model header{padding:14px 16px 12px;border-bottom:1px solid var(--line,#d1deea)}
.summon-model header h4{margin:0;font-size:17px;font-weight:800;letter-spacing:.01em;color:var(--text,#173d62)}
.summon-model header>span{padding:5px 9px;border:1px solid var(--line,#d1deea);border-radius:999px;background:var(--panel,#fff);color:var(--muted,#657b93);font-size:9px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.summon-model .summon-stats{gap:7px;margin:12px 14px}
.summon-model .summon-stats>span{min-height:54px;justify-content:center;padding:8px 10px;border:1px solid var(--line,#d1deea);border-radius:6px;background:var(--panel,#fff);font-size:9px;letter-spacing:.06em}
.summon-model .summon-stats strong{font-size:16px;color:var(--text,#173d62)}
.summon-model details{margin:0;padding:0 14px;border-top:1px solid var(--line,#d1deea)}
.summon-model details summary{padding:11px 0;color:var(--accent,#2c659b);font-size:11px;font-weight:700;cursor:pointer}
.summon-model details[open]{padding-bottom:8px}
.summon-model details>p{margin:4px 0 8px;color:var(--muted,#526d83);font-size:11px;line-height:1.6}
.summon-model>.use-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px 14px;margin:0}
.summon-model>.use-actions button{border-radius:5px;font-size:10px}
.summon-model>.use-actions button:first-child{background:#2468b5;border-color:#3985dc;color:#fff}
.summon-model>.use-actions button:first-child:hover{background:#1d5799}
@media(max-width:600px){.summon-model header{align-items:center;flex-direction:row}.summon-model .summon-stats{gap:6px;margin:10px}.summon-model .summon-stats>span{padding:7px;min-height:50px}.summon-model>.use-actions{gap:6px}.summon-model>.use-actions button{flex:1 1 auto}}
