/* Battle command art: lightweight vector engravings, lacquer and aged brass. */
#bt .warTools,#bt>.selectionActions{background:linear-gradient(180deg,#263c36,#101e1b)!important;border-top:1px solid #a38b55!important;box-shadow:inset 0 2px #0b1513,inset 0 3px #52624b55,0 -4px 12px #0003!important}
#bt .camera423 button,#bt .warTools button,#bt .selectionActions button,#bt .commandPopup .popupActions button,#bt .commandPinnedActions button{
 position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:7px;
 border:1px solid #857650!important;border-radius:3px!important;
 background:linear-gradient(135deg,#ffffff06,transparent 45%),linear-gradient(#2b4038,#1b2e28 52%,#15251f)!important;
 color:#eee4c9!important;box-shadow:inset 0 0 0 2px #10201b,inset 0 3px 0 2px #c5af7433,0 2px 2px #0005!important;
 text-shadow:0 1px 2px #0009;font-weight:600!important;letter-spacing:.025em;line-height:1.25!important;
 transition:filter .12s,box-shadow .12s;touch-action:manipulation;
}
#bt .warTools button::after,#bt .selectionActions button::after,#bt .commandPopup .popupActions button::after{
 content:"";position:absolute;inset:4px;border-left:1px solid #cbb47540;border-right:1px solid #cbb47540;pointer-events:none;
}
#bt .warTools button::before,#bt .selectionActions button::before,#bt .commandPopup .popupActions button::before{
 content:"";display:var(--command-icon-display,none);width:19px;height:19px;flex:0 0 19px;background:currentColor;opacity:.86;pointer-events:none;
 mask:var(--command-icon) center/contain no-repeat;-webkit-mask:var(--command-icon) center/contain no-repeat;
}
#bt #bEnd,#bt .commandPopup .popupActions button.primary{background:linear-gradient(#cbb17b,#b99a60 52%,#9b7c47)!important;color:#19251e!important;border-color:#dac28b!important;text-shadow:0 1px #f5e5b34d;box-shadow:inset 0 0 0 2px #624f2d,inset 0 3px 0 2px #f2db9d88,0 2px 2px #0005!important}
#bt .phoneAttack551,#bt #nearAttack,#bt #attackConfirm,#bt .commandPopup .popupActions button.attack{background:linear-gradient(#834b3b,#603329 55%,#48271f)!important;color:#ffebcc!important;border-color:#bd9470!important;box-shadow:inset 0 0 0 2px #3c251e,inset 0 3px 0 2px #ce9c6540,0 2px 2px #0005!important}
#bt .warTools button.on{background:linear-gradient(#52664c,#2e4938)!important;border-color:#e0c985!important;color:#ffedbd!important;box-shadow:inset 0 0 0 2px #26392a,inset 0 -3px #c8ad63!important}
#bt .warTools button:disabled,#bt .selectionActions button:disabled,#bt .commandPopup .popupActions button:disabled{opacity:.42!important;filter:saturate(.35);cursor:default}
#bt .warTools button:focus-visible,#bt .selectionActions button:focus-visible,#bt .commandPopup button:focus-visible{outline:2px solid #ffdea0;outline-offset:2px}
#bt .warTools button:active:not(:disabled),#bt .selectionActions button:active:not(:disabled),#bt .commandPopup .popupActions button:active:not(:disabled){filter:brightness(.85);box-shadow:inset 0 2px 6px #0009!important;transform:none!important}
@media(hover:hover){#bt .warTools button:hover:not(:disabled),#bt .selectionActions button:hover:not(:disabled),#bt .commandPopup .popupActions button:hover:not(:disabled){filter:brightness(1.15)}}
@media(min-width:901px){#bt.mapFirst421 .warTools .mini{min-height:42px!important;padding:8px 14px!important;font-size:13px!important}#bt .selectionActions button{min-height:40px!important;padding:7px 13px!important}#bt .commandPopup .popupActions button{min-height:44px!important}}
@media(max-width:560px){#bt .warTools button{flex-direction:column;gap:2px!important;font-size:10px!important;letter-spacing:0}#bt .warTools button::before{width:15px;height:15px;flex-basis:15px}#bt .selectionActions button{gap:4px!important}#bt .selectionActions button::before,#bt .commandPopup .popupActions button::before{width:16px;height:16px;flex-basis:16px}}
@media(prefers-reduced-motion:reduce){#bt button{transition:none!important}}
#bt #bThreat{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s4-7%2010-7%2010%207%2010%207-4%207-10%207S2%2012%202%2012Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
#bt #bUndoTurn{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205%203%2010l5%205M3%2010h11a6%206%200%200%201%200%2012%22%2F%3E%3C%2Fsvg%3E")}
.formation[data-operation="march"] .orderEmblem,#bt #bAuto{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2020V3m0%201h13l-3%205%203%205H6%22%2F%3E%3C%2Fsvg%3E")}
#bt #bSpeed{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m4%206%207%206-7%206V6Zm9%200%207%206-7%206V6Z%22%2F%3E%3C%2Fsvg%3E")}
#bt #bEnd{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h12v18H6zM9%207h6M9%2011h6M9%2015h6M10%2019h4%22%2F%3E%3C%2Fsvg%3E")}
.formation[data-operation="break"] .orderEmblem,#bt .phoneAttack551,#bt #nearAttack,#bt #attackConfirm{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2019%2013-13%202-4-4%202L3%2017m0-4%208%208M3%2021l3-3%22%2F%3E%3C%2Fsvg%3E")}
#bt #nearSkills{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205q4-2%208%201%204-3%208-1v14q-4-2-8%201-4-3-8-1V5Zm8%201v14M7%209h2m-2%204h2m6-4h2m-2%204h2%22%2F%3E%3C%2Fsvg%3E")}
.formation[data-operation="hold"] .orderEmblem,#bt #bWait{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v6c0%205-8%209-8%209s-8-4-8-9V6l8-3Zm0%204v9m-4-5h8%22%2F%3E%3C%2Fsvg%3E")}
#bt #bCancel{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M18%206%206%2018%22%2F%3E%3C%2Fsvg%3E")}
#bt #bHeal{--command-icon-display:block;--command-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203h8v4l4%205v8H4v-8l4-5V3Zm4%208v6m-3-3h6%22%2F%3E%3C%2Fsvg%3E")}

#bt .camera423{background:linear-gradient(#283c33,#15251f)!important;border:1px solid #8a7750!important;border-radius:3px!important;box-shadow:inset 0 0 0 2px #101c16,0 2px 5px #0006!important;padding:4px!important;gap:4px!important}#bt .camera423 button:focus-visible{outline:2px solid #ffdea0;outline-offset:1px}#bt .camera423 button:active{filter:brightness(.82)}

/* Campaign choices share the battle command material palette. */
.modal:has(.formationList) .mb{background:radial-gradient(ellipse at top,#32403655,transparent 65%),#14221e!important}
.formationList{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:12px 0!important}
.formationList .formation{position:relative;display:grid!important;grid-template-columns:40px 80px 1fr!important;grid-template-rows:auto auto;gap:3px 12px!important;align-items:center;text-align:left;padding:10px 74px 10px 12px!important;min-height:72px;overflow:hidden;border:1px solid #7a7353!important;border-radius:3px!important;background:linear-gradient(110deg,#314039,#172822 70%)!important;color:#e6dcc3!important;box-shadow:inset 0 0 0 3px #0d1c16,inset 0 5px 0 3px #e3c58515,0 4px 8px #0003!important}
.formationList .formation::after{content:"";position:absolute;inset:7px;border:1px solid #a8966230;pointer-events:none}
.formation .orderEmblem{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:38px;height:44px;background:linear-gradient(#4c5140,#242f26);border:1px solid #ac955c;box-shadow:inset 0 0 0 3px #202c22;clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%);color:#d8c28b}
.formation .orderEmblem::before{content:"";width:24px;height:24px;background:currentColor;mask:var(--command-icon) center/contain no-repeat;-webkit-mask:var(--command-icon) center/contain no-repeat}
.formationList .formation b{grid-column:2;grid-row:1/3;font-family:Batang,serif;font-size:20px!important;letter-spacing:.08em;color:#ecd8a5}
.formation .orderEffect{grid-column:3;grid-row:1;font-size:16px!important;color:#f0dfb4!important;font-weight:600}
.formation .orderHint{grid-column:3;grid-row:2;font-size:14px!important;color:#b8c1ad!important;line-height:1.5}
.formation .orderChosen{display:none;position:absolute;right:20px;top:50%;transform:translateY(-50%);padding:6px 10px;border:1px solid #e0bc77;color:#ffe1a0;font-size:12px;letter-spacing:.08em;background:#19291f}
.formationList .formation.on{border-color:#e2bd75!important;background:linear-gradient(110deg,#514b2d,#263a2b 60%,#172820)!important;box-shadow:inset 0 0 0 3px #152119,inset 4px 0 #efc87d,0 3px 12px #0006!important}
.formation.on .orderChosen{display:block}.formation.on .orderEmblem{background:linear-gradient(#827044,#3f422b);color:#fff0bc}
#brief_go{display:block;width:100%;min-height:56px!important;margin-top:18px!important;border:1px solid #e2c58b!important;border-radius:3px;background:linear-gradient(#d1b87f,#ac8c51)!important;color:#19271e!important;font-family:Batang,serif;font-size:23px!important;letter-spacing:.18em;box-shadow:inset 0 0 0 3px #665431,inset 0 5px 0 3px #f6e4ad66,0 3px 7px #0005!important;text-shadow:0 1px #f2dfa966}
.storyChoice,.v5-council button,.approachCard{border:1px solid #8b7a52!important;border-radius:3px!important;background:linear-gradient(115deg,#2f4137,#172920)!important;color:#eee1c2!important;box-shadow:inset 0 0 0 3px #112119,inset 0 5px 0 3px #c9ac651a,0 3px 7px #0004!important}
.storyChoice .choiceNo{background:#51482d!important;color:#f3d898!important;border:1px solid #a88d52!important;font-family:Batang,serif}
.v5-council button.selected{border-color:#e3c27d!important;background:linear-gradient(110deg,#514b2d,#233c2a)!important}
.formationList button:focus-visible,.storyChoice:focus-visible,.v5-council button:focus-visible,.approachCard:focus-visible,#brief_go:focus-visible{outline:2px solid #f6d490;outline-offset:3px}
@media(hover:hover){.formationList button:hover,.storyChoice:hover,.v5-council button:hover,.approachCard:hover{filter:brightness(1.12)}}
.formationList button:active,.storyChoice:active,.v5-council button:active,.approachCard:active,#brief_go:active{filter:brightness(.9)}
@media(max-width:600px){.formationList{gap:9px!important}.formationList .formation{grid-template-columns:32px 1fr!important;grid-template-rows:auto auto auto;gap:2px 9px!important;padding:10px 12px!important;min-height:88px}.formation .orderEmblem{width:30px;height:38px;grid-row:1/4}.formation .orderEmblem::before{width:25px;height:25px}.formationList .formation b{grid-column:2;grid-row:1;font-size:17px!important;line-height:1.25}.formation .orderEffect{grid-column:2;grid-row:2;font-size:13px!important}.formation .orderHint{grid-column:2;grid-row:3;font-size:12px!important}.formation .orderChosen{top:15px;right:14px;transform:none;font-size:10px;padding:3px 7px}#brief_go{min-height:54px!important;font-size:21px!important}}

/* Story decisions: indigo lacquer plaques within the dialogue frame. */
.v5-story .storyChoices{display:grid;gap:12px!important;margin-top:20px!important}
.v5-story .storyChoices .storyChoice{position:relative;display:grid!important;grid-template-columns:46px minmax(0,1fr) 18px!important;align-items:center!important;gap:18px!important;text-align:left;min-height:86px!important;width:100%;padding:16px 20px!important;border:1px solid #b49b60!important;border-radius:2px!important;background:linear-gradient(110deg,#334567,#192c50 60%,#12203a)!important;box-shadow:inset 0 0 0 3px #101c35,inset 0 5px 0 3px #aab9d216,0 4px 9px #050e2399!important;color:#f0e4c8!important;transition:background .15s,box-shadow .15s}
.v5-story .storyChoices .storyChoice::before{content:"";position:absolute;inset:6px;border-top:1px solid #d6bd7b35;border-bottom:1px solid #d6bd7b35;pointer-events:none}
.v5-story .storyChoices .storyChoice::after{content:"";width:8px;height:8px;border-top:2px solid #cbb378;border-right:2px solid #cbb378;transform:rotate(45deg);opacity:.55;justify-self:center}
.v5-story .storyChoices .choiceNo{display:grid!important;place-items:center;width:42px!important;height:46px!important;padding:0!important;border:1px solid #a48c56!important;background:linear-gradient(#6c603b,#383c32)!important;color:#f0d69a!important;font:600 17px Georgia,serif!important;letter-spacing:.07em;box-shadow:inset 0 0 0 3px #242d30;clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%)}
.v5-story .storyChoices .choiceBody{display:block!important;min-width:0;white-space:normal!important;overflow-wrap:anywhere!important;color:#f2e5c6!important;line-height:1.5!important}
.v5-story .storyChoices .choiceBody strong{display:block;font-size:18px;font-weight:600;letter-spacing:.025em}
.v5-story .storyChoices .choiceBody small{display:block;margin-top:5px;font-size:14px;font-weight:400;line-height:1.5;color:#bcc9dc}
@media(hover:hover){.v5-story .storyChoices .storyChoice:hover{background:linear-gradient(110deg,#675b37,#364563 70%,#243859)!important;border-color:#e6ca87!important;box-shadow:inset 0 0 0 3px #1d2b43,inset 4px 0 #edd097,0 3px 12px #0005!important;filter:none}.v5-story .storyChoices .storyChoice:hover::after{opacity:1}}
.v5-story .storyChoices .storyChoice:focus-visible{outline:2px solid #f1d290;outline-offset:3px;background:linear-gradient(110deg,#5c5236,#243c5c)!important}
.v5-story .storyChoices .storyChoice:active{background:linear-gradient(#293a56,#17253e)!important;box-shadow:inset 0 3px 10px #0009!important;transform:translateY(1px)!important}
@media(max-width:600px){.v5-story .storyChoices{gap:9px!important;margin-top:12px!important}.v5-story .storyChoices .storyChoice{grid-template-columns:30px minmax(0,1fr) 9px!important;gap:10px!important;min-height:78px!important;padding:12px!important}.v5-story .storyChoices .choiceNo{width:28px!important;height:37px!important;font-size:12px!important}.v5-story .storyChoices .choiceBody strong{font-size:14px}.v5-story .storyChoices .choiceBody small{font-size:12px;margin-top:4px}.v5-story .storyChoices .storyChoice::after{width:6px;height:6px}}
@media(prefers-reduced-motion:reduce){.v5-story .storyChoices .storyChoice{transition:none!important;transform:none!important}}
@media(max-width:600px){.v5-story .dialogue:has(.storyChoices) .storyChoices{margin-left:-68px!important;width:calc(100% + 68px)!important}}

/* Camp: a dispatch desk and officer folio, without spreadsheet cell borders. */
#mg .campBody{background:radial-gradient(ellipse at top left,#705b3020,transparent 65%),#13231d!important;padding:24px!important}
#mg .campGoals{position:relative;padding:18px 22px 18px 28px!important;border:0!important;border-left:3px solid #c6a866!important;background:linear-gradient(90deg,#a3853c20,transparent)!important;box-shadow:none!important;color:#ccd0bc;line-height:1.7}
#mg .campGoals b{display:block;color:#f0d69a;font:600 23px Batang,serif;letter-spacing:.05em}#mg .campGoals br{display:none}
#mg .campFoot{display:flex!important;flex-wrap:wrap;gap:12px;margin:20px 0 26px!important;padding:0!important;border:0!important}
#mg #go{flex:1;order:-1;min-height:62px!important;margin:0!important;font:600 23px Batang,serif;letter-spacing:.12em;background:linear-gradient(#cfb67d,#a2834e)!important;color:#19251d;border:1px solid #d7bd82!important;border-radius:3px;box-shadow:inset 0 0 0 3px #5d5030,inset 0 5px 0 3px #f7e2ab66,0 4px 8px #0006!important}
#mg .campFoot .mini,#mg .v5-hall+nav button,#mg #v5Council{border:1px solid #a18b58!important;background:linear-gradient(#354839,#192b22)!important;color:#ebdbb5!important;box-shadow:inset 0 0 0 3px #13241c,inset 0 5px 0 3px #cbb27c22!important;border-radius:3px!important;min-height:52px}
#mg .v5-camp nav{background:#12231e!important;padding:14px 22px!important;min-height:0!important}
.growthReadiness{display:flex!important;justify-content:space-around;align-items:start;gap:18px!important;padding:18px 10px!important;margin:18px 0!important;background:transparent!important;border:0!important;border-top:1px solid #a58b493b!important;border-bottom:1px solid #a58b493b!important}
.growthReadiness>div{flex:1;text-align:center;padding:5px!important;border:0!important;background:none!important;display:flex;flex-direction:column;align-items:center;gap:7px}
.growthReadiness b{display:grid;place-items:center;min-width:76px;min-height:66px;padding:7px 12px;box-sizing:border-box;background:linear-gradient(#394937,#202f23);border:1px solid #9f8954;box-shadow:inset 0 0 0 3px #14241b;clip-path:polygon(0 0,100% 0,100% 82%,50% 100%,0 82%);color:#f0d99e!important;font:600 23px Georgia,serif!important}
.growthReadiness small{color:#c5cbb6!important;font-size:12px!important}.growthReadiness .xpReadout{font-size:10px!important;opacity:.8}
#mg .fortunePanel{border:0!important;background:linear-gradient(100deg,#8b70341c,transparent)!important;padding:16px 18px!important;border-left:2px solid #937b4a!important;margin:20px 0!important}
#mg .fortuneSeal{width:54px!important;height:54px!important;display:grid;place-items:center;border-radius:50%;background:radial-gradient(#526047,#233625);border:3px double #bda365!important;font:600 18px Batang,serif!important;box-shadow:0 0 0 4px #b9a16a12}
#mg .fortuneHead strong{font-size:17px!important}#mg .fortuneHead small{font-size:12px!important}#mg .fortuneOdds b{font:600 23px Georgia,serif!important;color:#e1c789}.fortuneMeter{height:4px!important;opacity:.8}
#mg .v5-equipment{border:1px solid #796a46!important;background:linear-gradient(#27382c,#17271e)!important;box-shadow:inset 0 0 0 3px #112218;border-radius:3px;padding:4px}
#mg .v5-equipment summary{padding:16px!important;color:#ead5a4;font:600 17px Batang,serif;cursor:pointer}
.body:has(#mg) #side{background:linear-gradient(120deg,#303b2d,#13251c 65%)!important;border:1px solid #a88b52!important;box-shadow:inset 0 0 0 4px #0c1c14,0 6px 18px #0005;padding:18px!important}
.body:has(#mg) #side .panel{background:none!important;border:0!important;padding:0!important}
.body:has(#mg) #side .ph{padding:12px 4px 18px;border-bottom:1px solid #a287493f}.body:has(#mg) #side .ph b{font:600 25px Batang,serif;color:#ecd5a0}
.body:has(#mg) #side .portrait{border:3px double #c7ab70!important;box-shadow:0 0 0 3px #12221b,0 4px 10px #0006}
.body:has(#mg) #side .bar{border:1px solid #857451!important;border-radius:3px;overflow:hidden;height:12px;margin-top:8px;background:#101b15}.body:has(#mg) #side .bar b{font-size:10px;line-height:10px}.body:has(#mg) #side .bar.hp i{background:linear-gradient(#83aa77,#447253)}
.body:has(#mg) #side .stats{gap:12px!important;margin:20px 0!important}.body:has(#mg) #side .stats>div{position:relative;display:grid!important;grid-template-columns:1fr auto;gap:4px;padding:10px!important;border:0!important;border-left:2px solid #a99259!important;background:linear-gradient(90deg,#c3aa6820,transparent)!important}
.body:has(#mg) #side .stats span{font-size:12px;color:#bfc7af}.body:has(#mg) #side .stats b{font:600 25px Georgia,serif;color:#f1d68d}.body:has(#mg) #side .stats i{grid-column:1/-1;text-align:left;font-size:11px;color:#99ad92}
.body:has(#mg) #side .sec{background:none!important;border:0!important;border-bottom:1px solid #a58d4e44;padding:10px 0!important;margin-top:22px!important;color:#d8bc7f;letter-spacing:.1em}
.body:has(#mg) #side .tree{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:12px 0!important}
.body:has(#mg) #side .tree .tk{grid-column:1/-1;width:auto!important;writing-mode:horizontal-tb!important;font-size:11px!important;color:#bdbda2;letter-spacing:.18em}
.body:has(#mg) #side .node{min-height:44px!important;padding:8px 3px!important;min-width:0;border:1px solid #89794d!important;background:linear-gradient(#35452f,#1c3021)!important;color:#cfd4bd;box-shadow:inset 0 0 0 2px #14251a;border-radius:3px;font-size:11px!important}
.body:has(#mg) #side .node.can{border-color:#d8bb7c!important;color:#fae3af!important;background:linear-gradient(#65583a,#313d28)!important;box-shadow:inset 0 0 0 2px #253022,0 0 7px #c4a45b22}
.body:has(#mg) #side .node.has{color:#c4d6b2!important;opacity:.8}.body:has(#mg) #side .node:disabled:not(.has){opacity:.35}
.body:has(#mg) #side .mem{border:0!important;border-bottom:1px solid #a48b4633!important;padding:14px 2px!important;gap:12px}.body:has(#mg) #side .mem .spr{filter:drop-shadow(0 3px 3px #0008)}
@media(max-width:600px){#mg .campBody{padding:14px!important}#mg .campGoals{padding:12px 15px!important}#mg .campGoals b{font-size:20px}#mg #go{font-size:19px!important;min-width:190px}.growthReadiness{gap:8px!important}.growthReadiness b{min-width:64px;font-size:19px!important}.growthReadiness small{font-size:11px!important}#mg .fortunePanel{padding:14px 10px!important}#mg .fortuneHead strong{font-size:14px!important}#mg .fortuneOdds{gap:12px}.body:has(#mg) #side .tree{gap:6px!important}}

#mg .fortuneSeal{white-space:nowrap!important;flex-shrink:0;letter-spacing:0!important}.body:has(#mg) #side .node:disabled:not(.has){opacity:.55}
/* Quiet strategic markers; names and stock remain in terrain inspection. */
.tile.goal::before{content:''!important;width:12px!important;height:12px!important;inset:5px auto auto 5px!important;border:2px solid #e3c87d!important;transform:rotate(45deg);background:#302c20aa!important;box-shadow:0 1px 3px #111;pointer-events:none}
.tile .siteFlag{font-size:0!important;width:14px!important;height:20px!important;background:linear-gradient(90deg,#bc995b 2px,transparent 2px)!important;clip-path:polygon(0 0,100% 0,75% 40%,15% 40%,15% 100%,0 100%);background-color:#bfaa70!important;pointer-events:none}
.tile .siteFlag.owned{background-color:#65a796!important}.tile .siteStock{display:none!important}
.recordSlots{display:grid;gap:12px}.recordSlot{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px;border:1px solid #9c8654;background:linear-gradient(120deg,#24372f,#101d19);box-shadow:inset 0 0 0 3px #0c151a}.recordSlot strong,.recordSlot small{display:block;margin-top:6px}.recordSlot b{color:#e3ca89}.recordSlot small{color:#b7b8a7}.recordButtons{display:flex;gap:8px;flex-shrink:0}.recordButtons .btn{min-width:80px;min-height:44px}.recordBackup{margin-top:20px}.recordBackup summary,.titleDifficulty summary{cursor:pointer;padding:12px;color:#d5c18f}.titleDifficulty{border-bottom:1px solid #756845;margin-bottom:12px}.titleActions>#loadFile{width:100%;min-height:54px;margin:10px 0}.titleDifficulty .diffrow{margin:0 0 12px}
@media(max-width:600px){.recordSlot{display:block;padding:12px}.recordButtons{margin-top:12px}.recordButtons .btn{flex:1}.recordSlot strong{font-size:15px}.recordIntro{font-size:14px}}

.recordSlot strong{padding:0!important;min-height:0!important;line-height:1.4!important}.recordSlot small{line-height:1.4!important}.recordButtons .btn{padding:10px 14px!important;margin:0!important}.recordSlot>div{min-height:0!important}
/* Title command plaques share the battlefield lacquer and aged brass. */
.titleActions{max-width:720px;margin-inline:auto}
.titleActions .titleDifficulty{border:0;margin:0 0 18px}
.titleDifficulty summary{font-size:13px;letter-spacing:.18em;text-align:left;color:#d2c298;padding:8px 3px}
.titleActions .diffrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.titleActions .diffrow .opt{position:relative;min-width:0;min-height:86px;padding:14px 8px;border:1px solid #907b4c;color:#d9cda9;background:linear-gradient(135deg,#243a32ee,#0c1b18f5);box-shadow:inset 0 0 0 3px #111f19,inset 0 0 0 4px #536047,0 3px 5px #0008;transition:filter .15s,transform .15s}
.titleActions .diffrow .opt b{display:block;font-family:Batang,serif;font-size:21px;letter-spacing:.04em;color:#ead9a9}
.titleActions .diffrow .opt span{display:block;font-size:13px!important;margin-top:6px;color:#b8c0b0}
.titleActions .diffrow .opt.on{background:linear-gradient(135deg,#655333,#342b1e);border-color:#f0cf82;box-shadow:inset 0 0 0 3px #221d15,inset 0 0 0 4px #b39859,0 3px 5px #0008}
.titleActions .diffrow .opt.on::after{content:'◆';position:absolute;right:8px;top:6px;font-size:9px;color:#efd491}
.titleActions .diffrow .opt.on span{color:#e3cfa2}
.titleActions>#start,.titleActions>#cont,.titleActions>#loadFile{position:relative;display:block;width:100%;min-height:60px;margin:12px 0;padding:16px 42px;border:1px solid #b2985c;border-radius:2px;background:linear-gradient(100deg,#243a31f5,#13251ff5);box-shadow:inset 0 0 0 3px #142018,inset 0 0 0 4px #5b684c,0 4px 9px #0008;color:#efdfb9;font-family:Batang,serif;font-size:22px;letter-spacing:.09em}
.titleActions>#start{background:linear-gradient(110deg,#6a3026,#381c19);border-color:#d7b572;box-shadow:inset 0 0 0 3px #291814,inset 0 0 0 4px #a77e48,0 4px 9px #0008}
.titleActions>#start::before,.titleActions>#cont::before,.titleActions>#loadFile::before{content:'◆';position:absolute;left:20px;top:50%;transform:translateY(-50%);font-size:10px;color:#bfa46a}
.titleActions .titleFooter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:22px}
.titleActions .titleFooter button{min-height:46px;padding:11px 8px;margin:0;border:1px solid #776849;background:linear-gradient(#1d2c25e8,#111e18f0);color:#cbbc96;font-size:14px;box-shadow:inset 0 0 0 2px #111b16}
.titleActions button:hover{filter:brightness(1.16)}.titleActions button:active{transform:translateY(1px)}.titleActions button:focus-visible,.titleDifficulty summary:focus-visible{outline:2px solid #f3d18c;outline-offset:3px}
@media(max-width:600px){.titleActions .diffrow{gap:7px}.titleActions .diffrow .opt{min-height:78px;padding:13px 3px}.titleActions .diffrow .opt b{font-size:17px}.titleActions .diffrow .opt span{font-size:12px!important}.titleActions>#start,.titleActions>#cont,.titleActions>#loadFile{font-size:19px;min-height:54px;padding:14px 30px}.titleActions .titleFooter button{font-size:12px}.titleActions .titleDifficulty{margin-bottom:12px}}
/* Story recap and decisions use the same restrained dialogue lacquer. */
.storyReviewPanel{background:linear-gradient(125deg,#1d2f4b,#101e33);color:#e7e1d1;border:1px solid #bca165;box-shadow:0 18px 55px #000a,inset 0 0 0 4px #101b2c,inset 0 0 0 5px #7b704b}
.storyReviewHeader{padding:18px 24px;background:linear-gradient(110deg,#243751,#15273c);border-bottom:1px solid #998454}
.storyReviewSeal{font-size:0;width:38px;height:46px;background:linear-gradient(#6b5735,#34352a);box-shadow:inset 0 0 0 3px #202b31;border-color:#a89059;clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%)}
.storyReviewSeal::after{content:'◆';font-size:16px;color:#dcc58c}
.storyReviewHeader h2{font-size:24px;color:#ebd7a5}.storyReviewHeader p{color:#b2bcd0}.storyReviewCount{color:#adbad0}
.storyReviewList{padding:8px 24px 20px;scrollbar-color:#81744f #142239}
.storyReviewEntry{padding:20px 0;border-bottom:1px solid #ac985235;gap:16px}
.storyReviewWords h3{color:#e4c789!important;font-size:16px}.storyReviewWords p{color:#e6e1d2!important;font-size:17px;line-height:1.85}
.storyReviewEntry.narration{grid-template-columns:1fr;border-left:2px solid #9e8957;padding:12px 16px;margin:18px 0;background:#d8bf7910;border-bottom:0}
.storyReviewEntry.narration .storyReviewPortrait,.storyReviewEntry.narration h3{display:none}
.storyReviewEntry.narration .storyReviewWords p{color:#bfc9d5!important;font-size:16px;margin:0}
.storyReview .portrait{border-color:#b29862;box-shadow:0 3px 6px #0005}
.storyReviewFooter{background:linear-gradient(110deg,#1c3043,#122333);border-top:1px solid #8f7c50;padding:14px 24px;color:#aeb9c5}
.storyReviewFooter>span{font-size:12px;color:#aeb9c5}
#storyReviewContinue{min-height:48px;padding:12px 24px;background:linear-gradient(110deg,#39494a,#203333);border:1px solid #b39a62;box-shadow:inset 0 0 0 3px #172a2d,inset 0 0 0 4px #67705b;color:#f0dfb6;font-size:17px;font-family:Batang,serif}
#storyReviewContinue:hover{filter:brightness(1.12)}#storyReviewContinue:active{box-shadow:inset 0 3px 8px #0008}#storyReviewContinue:focus-visible{outline:2px solid #efd18b;outline-offset:3px}
.v5-story .storyChoices .storyChoice{background:linear-gradient(110deg,#2a3c57,#192b45 65%,#152238)!important;border-color:#9a8759!important}
.v5-story .storyChoices .choiceNo{background:linear-gradient(#554e37,#303a37)!important}
@media(max-width:600px){.storyReview.modal{padding:10px}.storyReviewPanel{max-height:calc(100dvh - 20px)}.storyReviewHeader{padding:14px;gap:10px}.storyReviewHeader h2{font-size:21px}.storyReviewSeal{width:30px;height:39px}.storyReviewHeader p{font-size:11px}.storyReviewCount{display:none}.storyReviewList{padding:4px 14px 14px}.storyReviewEntry{grid-template-columns:42px minmax(0,1fr);gap:12px}.storyReview .portrait{width:40px!important;height:50px!important}.storyReviewWords p,.storyReviewEntry.narration .storyReviewWords p{font-size:14px;line-height:1.8}.storyReviewWords h3{font-size:14px}.storyReviewEntry.narration{margin:12px 0;padding:10px 12px}.storyReviewFooter{padding:12px 14px}#storyReviewContinue{font-size:15px;padding:10px 18px}}
/* Always-open camp workshop; keep the shop and smith in their familiar columns. */
#mg .v5-equipment{margin-top:22px;padding:18px!important;background:linear-gradient(120deg,#29392e,#17271f)!important}
#mg .equipmentHeading{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px;margin:0 0 20px;padding:5px 0 14px;border-bottom:1px solid #9c86544d;color:#ead6a4;font:600 22px Batang,serif;letter-spacing:.06em}
#mg .equipmentHeading small{color:#adb8a2;font:400 12px sans-serif;letter-spacing:.08em}
#mg .v5-equipment .mg2{gap:22px;margin:0;padding:0}
#mg .v5-equipment .mg2>section{min-width:0;padding:14px;background:linear-gradient(145deg,#101f1970,#29392b50);border:1px solid #7d714440;box-shadow:inset 0 2px #c3aa5e15}
#mg .v5-equipment .sec{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;background:none;border:0;border-bottom:1px solid #9c865459;padding:0 0 12px;margin:0 0 8px;color:#dfc58c;font:600 17px Batang,serif}
#mg .v5-equipment .inv{position:relative;display:flex;align-items:center;gap:10px;min-height:76px;margin:8px 0;padding:12px 10px;border:1px solid #7b74413b;background:linear-gradient(100deg,#43523b35,#13241b50);box-shadow:inset 2px 0 #9c895643}
#mg .v5-equipment .inv>span:first-child{display:grid;place-items:center;flex-shrink:0;min-width:40px;min-height:42px;background:radial-gradient(#56604466,#15271b);border:1px solid #82734b55;box-shadow:inset 0 0 0 2px #18291e}
#mg .v5-equipment .inv>span:nth-child(2){min-width:0;overflow-wrap:anywhere;color:#e0dcc3;font-size:14px}
#mg .v5-equipment .inv>.is{min-width:0;color:#abbca4;font-size:11px}
#mg .v5-equipment .mini{flex-shrink:0;min-height:44px;padding:9px 12px;border:1px solid #ab925b;background:linear-gradient(#44503a,#243425);box-shadow:inset 0 0 0 2px #172a1d;color:#ead3a0;font-size:13px;white-space:nowrap}
#mg .v5-equipment .inv>.mini{margin-left:auto}
#mg .v5-equipment .mini:disabled{opacity:.45;box-shadow:none;border-color:#706b4d;cursor:default}
#mg .v5-equipment .mini:not(:disabled):hover{filter:brightness(1.15)}#mg .v5-equipment .mini:not(:disabled):active{box-shadow:inset 0 3px 6px #0008}#mg .v5-equipment .mini:focus-visible{outline:2px solid #efd18b;outline-offset:3px}
#mg .v5-equipment .mg2>section>small{display:block;margin-top:14px;line-height:1.7;color:#a8b69d;font-size:12px}
@media(max-width:600px){#mg .v5-equipment{padding:12px!important}#mg .equipmentHeading{font-size:20px;gap:8px;margin-bottom:14px}#mg .v5-equipment .mg2{grid-template-columns:minmax(0,1fr)!important;gap:16px}#mg .v5-equipment .mg2>section{padding:10px}#mg .v5-equipment .inv{padding:10px 7px;gap:7px;flex-wrap:wrap}#mg .v5-equipment .inv>.is{flex-basis:100%;order:4;margin-left:47px}#mg .v5-equipment .inv>span:nth-child(2){flex:1;font-size:13px}#mg .v5-equipment .mini{padding:9px;font-size:12px}}
/* Terrain art stays visible; objective/supply annotations live in inspection. */
#bt #battleGrid .tile.goal::before,#bt #battleGrid .tile .cellObjective,#bt #battleGrid .tile .siteFlag,#bt #battleGrid .tile .siteStock,#bt #battleGrid .tile .supplyFlag{display:none!important}
#bt #battleGrid.v5-grid[data-v52] .tile.goal,#bt #battleGrid .tile.goal{box-shadow:none!important;animation:none!important}
/* Compact readiness strip, leaving space for the always-open workshop. */
:is(#mg,.modal) .growthReadiness{justify-content:flex-start;align-items:center;gap:12px!important;padding:10px 0!important;margin:12px 0!important}
:is(#mg,.modal) .growthReadiness>div{display:grid!important;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:4px 9px;padding:3px!important}
:is(#mg,.modal) .growthReadiness b{display:inline!important;min-width:0;min-height:0;padding:0;background:none;border:0;box-shadow:none;clip-path:none;font-size:20px!important}
:is(#mg,.modal) .growthReadiness .xpReadout{grid-column:1/-1;font-size:10px!important;line-height:1.3}
:is(#mg,.modal) .growthReadiness small{font-size:12px!important;line-height:1.4}
@media(max-width:600px){:is(#mg,.modal) .growthReadiness{gap:6px!important}:is(#mg,.modal) .growthReadiness>div{gap:3px;grid-template-columns:1fr}:is(#mg,.modal) .growthReadiness b{font-size:18px!important}:is(#mg,.modal) .growthReadiness small{font-size:10px!important}}
/* One command dossier: identity, paired vitals, then actions. */
body .commandPopup .hfCommandHead430.commandVitals57{display:block!important;background:linear-gradient(135deg,#253b31,#13251f)!important;padding:12px!important;border-bottom:1px solid #9a8351!important;color:#efe3c6!important;flex:none}
.commandVitals57 .commandIdentity57{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.commandVitals57 .commandIdentity57 .portrait{width:48px!important;height:58px!important;object-fit:cover;border:1px solid #ac9157}
.commandVitals57 .commandIdentity57 b{font-size:21px!important;color:#f1d48f!important;line-height:1.2}
.commandVitals57 .commandIdentity57 small{display:block;font-size:12px;color:#b9c3ac;margin-top:4px}
.commandVitals57 .commandMeters57{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.commandVitals57 .commandMeter57{display:grid;grid-template-columns:auto 1fr;gap:5px;font-size:12px;min-width:0}
.commandVitals57 .commandMeter57 strong{text-align:right;font-size:16px;color:#f2ead5;font-variant-numeric:tabular-nums}
.commandVitals57 .commandMeter57 strong small{font-size:12px;color:#b9c3ac}
.commandVitals57 .commandMeter57>i{grid-column:1/-1;height:5px;display:block;background:#0b1714;border:1px solid #5a6250}
.commandVitals57 .commandMeter57>i>em{display:block;height:100%;background:#88ad75;border:0;margin:0;padding:0}
.commandVitals57 .commandMeter57.mana>i>em{background:#77a8c4}
.commandVitals57 .commandAttributes57{display:flex;justify-content:space-between;gap:7px;border-top:1px solid #54604b;margin-top:11px;padding-top:8px;font-size:12px;color:#b9c3ac}
.commandVitals57 .commandAttributes57 b{font-size:14px!important;color:#ebd59f!important;margin-left:3px}
body .commandPopup .popupHead{background:#182d25!important;border-bottom:1px solid #665e3b!important;color:#c9c8ac!important;min-height:32px!important}
body .commandPopup .popupHead small{font-size:12px!important}
body .commandPopup .popupBody{background:#172b23!important;color:#e7dfc5!important}
@media(max-width:900px){body #bt .commandPopup .hfCommandHead430.commandVitals57{display:block!important;padding:8px 10px!important}.commandVitals57 .commandIdentity57{margin-bottom:6px;gap:8px}.commandVitals57 .commandIdentity57 .portrait{width:32px!important;height:38px!important}.commandVitals57 .commandIdentity57 b{font-size:17px!important}.commandVitals57 .commandAttributes57{margin-top:7px;padding-top:5px}}
body .commandVitals57 .commandMeter57 strong{white-space:nowrap;font-size:14px!important}
body .commandVitals57 .commandMeter57 strong small{display:inline!important;margin:0!important;font-size:11px!important}
body .commandVitals57 .commandAttributes57 b{display:inline!important}
/* Battle reports share the campaign's lacquer-green and aged-brass finish. */
.resultSheet.battleResult57{position:relative;display:grid!important;grid-template-columns:clamp(100px,17vw,180px) minmax(0,1fr)!important;gap:clamp(20px,4vw,44px)!important;padding:clamp(22px,4vw,44px)!important;background:radial-gradient(ellipse at top left,#34463766,transparent 65%),linear-gradient(135deg,#1e342a,#101e19)!important;color:#e9e1c9!important;border:1px solid #a48c53!important;box-shadow:inset 0 0 0 5px #14231e,inset 0 0 0 6px #776440,0 12px 26px #0005;align-items:start!important}
.battleResult57::before{content:'';position:absolute;top:0;left:25%;right:25%;height:3px;background:linear-gradient(90deg,transparent,#e0bd6f,transparent)}
.battleResult57>.portrait{width:100%!important;height:auto!important;max-height:250px;object-fit:cover;border:2px solid #ad9157!important;padding:4px;background-color:#0e1915;background-size:400% 300%;aspect-ratio:3/4;box-shadow:0 6px 18px #0006}
.battleResult57>div{min-width:0}
.battleResult57 .resultKicker57{font-size:12px;color:#b6bfa8;letter-spacing:.14em;margin:0 0 10px}
.battleResult57 h1{font-size:clamp(32px,5vw,56px)!important;line-height:1.1;margin:0 0 14px!important;color:#f0d496!important;text-shadow:0 2px 1px #0007;letter-spacing:.15em}
.battleResult57 p{font-size:clamp(15px,1.6vw,19px)!important;line-height:1.8;color:#e0dfcf!important;margin:18px 0!important}
.battleResult57 small{font-size:12px!important;color:#bbc4b0!important;line-height:1.7;display:block}
.battleResult57 .resultStars{font-size:24px!important;letter-spacing:.25em;color:#dfb963!important;margin:0 0 6px!important}
.battleResult57 .rewardRow{display:flex!important;flex-wrap:wrap;gap:8px!important;padding:16px 0!important;margin:18px 0!important;border-top:1px solid #716444!important;border-bottom:1px solid #716444!important;color:#ecd699!important}
.battleResult57 .rewardRow>span,.battleResult57 .rewardRow>.rewardItem57{padding:9px 14px;border:1px solid #857346;background:linear-gradient(#364633,#203126);box-shadow:inset 0 1px #bba77344;font-size:15px;font-weight:700;color:#efdb9f!important}
.battleResult57 .resultActions{display:flex!important;flex-wrap:wrap;gap:12px!important;margin-top:22px!important}
.battleResult57 .resultActions .btn{flex:1;min-width:150px;min-height:52px!important;padding:13px 20px!important;font-size:17px!important;color:#17251d!important;background:linear-gradient(#dfc480,#af914f)!important;border:1px solid #ecd193!important;box-shadow:inset 0 0 0 3px #66563244,0 3px 0 #080f0c;border-radius:2px}
.battleResult57 .resultActions .btn.ghost{background:linear-gradient(#2c4136,#1a2c23)!important;color:#e2d6b2!important;border-color:#8e7e55!important}
.battleResult57 .resultActions .btn:hover{filter:brightness(1.1)}
.battleResult57 .resultActions .btn:active{transform:translateY(1px)}
.resultSheet.battleResult57.defeat57{background:radial-gradient(ellipse at top left,#63423955,transparent 65%),linear-gradient(135deg,#2d2b24,#171e19)!important}
.battleResult57.defeat57 h1{color:#d9ac84!important}
@media(max-width:600px){.resultSheet.battleResult57{grid-template-columns:72px minmax(0,1fr)!important;gap:14px!important;padding:20px 16px!important}.battleResult57>.portrait{max-height:104px;padding:2px}.battleResult57 h1{font-size:34px!important}.battleResult57 .resultKicker57{font-size:10px;letter-spacing:.04em}.battleResult57 p{font-size:14px!important}.battleResult57 .resultActions{flex-direction:column;gap:9px!important}.battleResult57 .resultActions .btn{width:100%;min-width:0;font-size:15px!important}.battleResult57 .rewardRow{gap:6px!important}.battleResult57 .rewardRow>span,.battleResult57 .rewardRow>.rewardItem57{font-size:12px;padding:7px 9px}}

.battleResult57 .rewardItem57{cursor:pointer;min-height:44px;text-decoration:underline;text-underline-offset:4px}.battleResult57 .rewardItem57:hover,.battleResult57 .rewardItem57:focus-visible{filter:brightness(1.18);outline:1px solid #dfc480;outline-offset:2px}

/* Each officer owns a separate forge row, never a nested item column. */
#mg .memberForgeBlock420{min-width:0;margin-top:16px;padding-top:12px;border-top:1px solid #9c895666}
#mg .memberForgeBlock420>.small{margin-bottom:8px;color:#d6c487}
#mg .v5-equipment .memberForge420{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center}
#mg .v5-equipment .memberForge420>.mini{white-space:normal;max-width:110px;margin:0;min-height:44px}
#mg .v5-equipment .memberForge420 small{line-height:1.5}
@media(max-width:400px){#mg .v5-equipment .memberForge420{grid-template-columns:32px minmax(0,1fr)}#mg .v5-equipment .memberForge420>.mini{grid-column:2;justify-self:start;max-width:none}}
#mg .v5-equipment .memberForge420>span:first-child{grid-column:1;grid-row:1}
#mg .v5-equipment .memberForge420>span:nth-child(2){grid-column:2;grid-row:1}
#mg .v5-equipment .memberForge420>.mini{grid-column:3;grid-row:1}
@media(max-width:400px){#mg .v5-equipment .memberForge420>.mini{grid-column:2;grid-row:2}}

/* Treasury is visible at the spending point, including after payment. */
.purse58{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;padding:12px;background:linear-gradient(110deg,#40331f,#172920 70%);border:1px solid #a38b51;box-shadow:inset 0 0 0 3px #d1b77015;margin:0 0 16px;color:#f5e3ac}
.purse58>div{min-width:0;padding:4px 10px;border-left:1px solid #bea06355}
.purse58>div:first-child{border-left:0}
.purse58 small{display:block;font-size:12px;color:#c7c5ac;letter-spacing:.06em}
.purse58 strong{display:block;font-size:27px;line-height:1.35;font-variant-numeric:tabular-nums;color:#ffe2a1}
.purse58 em{font-size:12px;font-style:normal;margin-left:5px;color:#cebd8c}
.purseCost58,.purseAfter58{display:block;font-size:12px;line-height:1.7;font-variant-numeric:tabular-nums}
.purseCost58{color:#d5baa0}.purseAfter58{color:#b9d1b1}
.forgePurse58{margin:0;border-width:0 0 1px;flex-shrink:0}
@media(max-width:600px){.purse58{gap:3px;padding:9px 5px;grid-template-columns:1.25fr 1fr 1fr}.purse58>div{padding:3px 7px}.purse58 strong{font-size:23px}.purse58 small,.purseCost58,.purseAfter58{font-size:11px}.forgeModal .forgeStage{height:clamp(100px,24vh,220px);min-height:100px}.forgeModal .forgeWindow{max-height:calc(100dvh - 16px);overflow-y:auto}}

#mg .smithSection58{position:relative;overflow:visible}
#mg .smithPurse58{position:sticky;top:8px;z-index:6;margin-bottom:12px;background:#17261e;box-shadow:0 5px 12px #0006}
#mg .smithPurse58 .purse58{margin:0;padding:8px 5px}
#mg .smithPurse58 .purse58 strong{font-size:23px}

/* Equipment rows reserve a complete line for names; prices never squeeze them. */
#mg .v5-equipment .mg2{grid-template-columns:repeat(2,minmax(0,1fr))}
#mg .v5-equipment .mg2>section{container-type:inline-size}
#mg .v5-equipment .inv,#mg .v5-equipment .memberForge420{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 10px;min-height:0;padding:12px}
#mg .v5-equipment .inv>span:first-child{grid-column:1;grid-row:1;min-width:32px;min-height:36px}
#mg .v5-equipment .inv>span:nth-child(2){grid-column:2;grid-row:1;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:14px;line-height:1.5}
#mg .v5-equipment .inv>span:nth-child(2) small{display:block;white-space:normal;word-break:keep-all;font-size:11px;line-height:1.5}
#mg .v5-equipment .inv>.mini,#mg .v5-equipment .memberForge420>.mini{grid-column:2;grid-row:2;justify-self:end;margin:0;max-width:none;white-space:nowrap;min-height:40px;padding:7px 12px}
#mg .v5-equipment .inv>.is{grid-column:2;grid-row:3;margin:0;font-size:11px}
#mg .v5-equipment .sec{font-size:16px;word-break:keep-all}
.purse58 small,.purse58 strong,.purse58 em{white-space:nowrap;letter-spacing:0}
#mg .smithPurse58 .purse58{display:flex;flex-wrap:wrap;gap:6px 14px;padding:9px}
#mg .smithPurse58 .purse58>div{display:flex;align-items:baseline;gap:6px;border:0;padding:0}
#mg .smithPurse58 .purse58 small{font-size:11px}
#mg .smithPurse58 .purse58 strong{font-size:18px}
#mg .smithPurse58 .purse58 em{display:none}
@media(max-width:1050px){#mg .v5-equipment .mg2{grid-template-columns:minmax(0,1fr)!important;gap:16px}#mg .v5-equipment .mg2>section{padding:12px}#mg .v5-equipment .inv{margin:7px 0}}
@container(max-width:320px){#mg .v5-equipment .inv>span:nth-child(2){font-size:12px}#mg .v5-equipment .inv{gap:5px 7px;padding:9px 7px}}

@container(min-width:360px){#mg .v5-equipment .inv{grid-template-columns:36px minmax(0,1fr) auto}#mg .v5-equipment .inv>.mini{grid-column:3;grid-row:1}#mg .v5-equipment .inv>.is{grid-row:2}}

/* Camp conversations occupy the council space directly beneath the cast. */
.v5-camp>nav.talk-open{display:block!important;padding:10px!important}
.v5-camp>nav.talk-open>:not(.v5-camp-conversation){display:none!important}
.v5-camp-conversation{width:100%;box-sizing:border-box;border:1px solid #b59b61;background:#15251e;padding:10px;color:#eadbb6}
.v5-camp-conversation>header{display:flex!important;align-items:center;justify-content:space-between;padding:0 0 8px!important;background:none!important}
.v5-camp-conversation>header button{min-height:40px;padding:6px 15px;color:#ecdbb5;background:#23352a;border:1px solid #a28a53}
.v5-camp-conversation .v5-camp-talk{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px;border:3px double #bca265;background:#142651;cursor:pointer}
.v5-camp-conversation .portrait{width:76px!important;height:96px!important;object-fit:cover}
.v5-camp-conversation .v5-camp-talk b{color:#efcc79;font-size:18px}
.v5-camp-conversation .v5-camp-talk p{font-size:16px;line-height:1.65;margin:8px 0;word-break:keep-all;overflow-wrap:break-word}
.v5-camp-conversation .v5-camp-talk small{font-size:12px;color:#adc1d9}
@media(max-width:600px){.v5-camp-conversation .v5-camp-talk{grid-template-columns:52px minmax(0,1fr);gap:9px;padding:9px}.v5-camp-conversation .portrait{width:52px!important;height:68px!important}.v5-camp-conversation .v5-camp-talk p{font-size:14px}}
.v5-camp-conversation>header>b{white-space:nowrap;flex:1}
.v5-camp-conversation>header button{flex:0 0 auto!important;width:auto!important;min-width:56px;max-width:80px;margin:0!important}

/* Readable command feedback without covering the unit or movement cells. */
#bt #battleGrid.v5-grid[data-v52] .tile.reach{background:#55bde34d!important;box-shadow:inset 0 0 0 1px #b4ecffc9!important}
#bt #battleGrid.v5-grid[data-v52] .tile.selected{box-shadow:inset 0 0 0 3px #ffe5a2!important}
#bt #battleGrid .tile.aim{outline:2px solid #ffbc79;outline-offset:-3px}
.forecastRemain58{padding:7px 9px;margin:6px 0;background:#11281f;border-left:3px solid #c7aa69;font-size:13px;color:#f1e4bb}
.forecastRemain58 b{font-size:18px;color:#ffd780}.forecastRemain58 small{display:block;font-size:11px;color:#becabd;line-height:1.5}
#battleGrid .battleFloat:not(.note){font-weight:900;text-shadow:0 2px 0 #161010,2px 0 #161010,-2px 0 #161010,0 -2px #161010;z-index:220}
#battleGrid .unit.isHit .unitVisual{filter:brightness(1.65) contrast(1.12)}
@media(prefers-reduced-motion:reduce){#battleGrid .unit.isHit .unitVisual{filter:none}}
