.healer-mode{width:min(1180px,calc(100vw - 32px))!important;max-height:90vh!important}
.healer-mode #buildingPanelStandard,.healer-mode #buildingAction{display:none!important}
#healerConsole{display:flex;flex-direction:column;min-height:0;height:min(710px,calc(90vh - 55px));overflow:hidden;padding:12px 18px 5px;color:#44331f}
#healerConsole[hidden]{display:none!important}
.healer-summary{display:flex;align-items:center;gap:13px;flex:0 0 auto;padding-bottom:10px;border-bottom:1px solid #a68e5b66}
.healer-summary>img{width:72px;height:68px;object-fit:contain}
.healer-summary h2{font:700 20px Georgia;margin:0 0 5px}.healer-summary p{font:12px/1.4 Georgia;margin:0;color:#756344}
.healer-stock{margin-left:auto;display:flex;gap:8px}.healer-stock button{background:#c4ad7940;border:1px solid #ac915c;border-radius:6px;display:grid;grid-template-columns:36px 1fr;column-gap:6px;padding:7px 10px;min-width:126px;text-align:left;color:inherit}
.healer-stock img{width:34px;height:38px;object-fit:contain;grid-row:1/3}.healer-stock span{font:11px Georgia}.healer-stock b{font:700 15px Georgia}
.healer-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.3fr);gap:20px;min-height:0;flex:1;padding-top:8px}
.healer-personnel,.healer-military{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#a48c5b #d6c6a0}
.healer-personnel{padding-right:8px}.healer-military{border-left:1px solid #ad945e66;padding-left:18px;display:flex;flex-direction:column;overflow:hidden}
.healer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 9px;flex:0 0 auto}.healer-section-heading h3{font:700 16px Georgia;margin:0}.healer-section-heading>small{font:11px Georgia;color:#756344;text-align:right}
.healer-role{display:flex;gap:11px;align-items:center;background:linear-gradient(110deg,#a7935c14,#eadbb238);padding:6px 9px;border:1px solid #b59c6a55;border-radius:7px;margin-bottom:7px;min-height:89px}
#healerConsole .healer-portrait,#healerConsole .hospital-unit-art{padding:0;background:none;box-shadow:none;border:0;flex:0 0 auto;cursor:pointer}
.healer-portrait img{display:block;width:58px;height:82px;object-fit:contain;filter:drop-shadow(0 2px 2px #0002)}
.healer-role>div{flex:1;min-width:0}.healer-role-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.healer-role-heading strong{font:700 14px Georgia}.healer-role-heading>span{white-space:nowrap;font:700 12px Georgia;color:#6d532a}
.healer-role p{font:11px/1.4 Georgia;margin:4px 0;color:#6c5b41}.healer-role label{display:flex}.healer-role input{width:100%;margin:3px 0;accent-color:#7b6535}.healer-role small{font:10px/1.3 Georgia;color:#7b6535;display:block;min-height:0}.healer-role.is-locked{background:#a3967520}.healer-role.is-locked img{filter:saturate(.35);opacity:.7}
.civilian-care{display:flex;gap:10px;align-items:center;border:1px solid #83936466;background:#a6b2821c;border-radius:7px;padding:7px 9px;margin:11px 0}
.civilian-care>img{width:59px;height:87px;object-fit:contain;flex:0 0 auto}.civilian-care>div{min-width:0;flex:1}.civilian-care h3{font:700 14px Georgia;margin:0}.civilian-care .healer-role-heading>b{font:700 20px Georgia;color:#705c35}.civilian-care strong{display:block;font:700 11px/1.4 Georgia;color:#596b3d;margin-top:4px}.civilian-care p{font:11px/1.4 Georgia;margin:4px 0}.civilian-care small{font:10px/1.4 Georgia;color:#756344}
.healer-brewing{border-top:1px solid #a68e5b55;padding-top:10px}.healer-recipe{display:flex;align-items:center;gap:7px}.healer-recipe img{width:32px;height:32px;object-fit:contain}.healer-recipe b{font:700 15px Georgia}.healer-recipe>span{margin:0 6px;color:#7b6535}.healer-recipe>small{font:10px/1.4 Georgia;margin-left:auto;text-align:right;max-width:140px}
.healer-control{display:flex;gap:8px;margin:8px 0}.healer-control input{width:76px;min-width:0}.healer-control>button{flex:1}
.healer-control button,.hospital-toolbar button,.hospital-row-action,.hospital-order>button{border:1px solid #a58a55;border-radius:4px;background:linear-gradient(#8a6b40,#523a22);color:#fff1d0;padding:7px 11px;font:700 12px Georgia;cursor:pointer}
#healerCraftStatus{display:block;font:10px/1.5 Georgia;color:#756344;min-height:15px}
.healing-materials{display:flex;gap:8px;flex:0 0 auto}.healing-materials>button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #b59c6a88;border-radius:5px;background:#c1aa7822;padding:7px;color:#534024;cursor:pointer;font:700 12px Georgia}.healing-materials>button[aria-pressed=true]{background:linear-gradient(#e8dab4,#d0bb85);border-color:#8c6a2b;box-shadow:inset 0 0 0 1px #b39960}.healing-materials img{width:32px;height:36px;object-fit:contain}.healing-materials small{display:block;font:11px Georgia;margin-top:4px;color:#756344}
.hospital-toolbar{display:flex;align-items:center;gap:7px;margin:9px 0;flex:0 0 auto}.hospital-toolbar>span{font:11px/1.4 Georgia;color:#756344;margin-right:auto}.hospital-toolbar>button{font-size:10px;padding:6px 8px;white-space:nowrap}.hospital-toolbar>button:last-child{background:#c7b48844;color:#6a542f}
.hospital-units{min-height:150px;flex:1;overflow:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:#a48c5b #d6c6a0}
.hospital-unit{display:flex;align-items:center;gap:10px;border:1px solid #b59c6a66;background:#b8a16b12;border-radius:6px;padding:9px;margin-bottom:8px;min-height:101px}
.hospital-unit-art img{width:56px;height:77px;object-fit:contain;display:block}.hospital-unit-main{flex:1;min-width:0}.hospital-unit h4{font:700 14px Georgia;margin:0 0 5px}.hospital-unit-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font:10px Georgia;color:#7a6644}.hospital-unit-meta>small{font:10px Georgia;color:#64733f}
#healerConsole .hospital-available{border:0;background:none;box-shadow:none;padding:0;min-width:0;color:#476f68;font:700 12px Georgia;text-decoration:underline;text-underline-offset:2px}
.hospital-quantity{display:flex;gap:9px;align-items:center;margin-top:7px}.hospital-quantity>input[type=number]{width:61px!important;flex:0 0 61px;min-width:0;padding:5px!important;height:28px;font-size:12px!important;text-align:center}.hospital-quantity>input[type=range]{flex:1;min-width:0;accent-color:#6b8063;margin:0}
.hospital-unit progress{width:100%;height:5px;accent-color:#74885b;display:block;margin-top:6px}.hospital-unit progress[hidden]{display:none}.hospital-row-action{flex:0 0 auto;min-width:65px;padding:7px 9px;font-size:11px}
.hospital-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:220px;color:#84704e;font:14px Georgia}.hospital-empty img{width:84px;height:118px;object-fit:contain;opacity:.6}
.hospital-order{display:flex;align-items:center;gap:14px;border-top:1px solid #a68e5b88;padding-top:10px;margin-top:7px;flex:0 0 auto}.hospital-order>div{flex:1;min-width:0}.hospital-order strong{font:700 14px Georgia;display:block}.hospital-order span{font:11px Georgia;color:#756344;display:block;margin-top:4px}.hospital-order>button{min-width:145px;min-height:36px}
#healerConsole .healer-note{font:10px/1.45 Georgia;color:#756344;margin:8px 0 2px;flex:0 0 auto}
#healerFeedback{font:11px/1.4 Georgia;color:#8d492b;min-height:16px;margin:5px 0 0;flex:0 0 auto}
.healer-mode button:disabled{opacity:.45;cursor:default}.healer-mode :is(button,input):focus-visible{outline:2px solid #8e773c;outline-offset:2px}
.auto-production{display:flex;align-items:center;gap:8px;font:12px Georgia;margin:10px 0;padding:8px;border:1px solid #bba577;border-radius:4px}.auto-production b{margin-left:auto;color:#7a5b91}.auto-production input{accent-color:#7c633a}
#healerConsole .auto-production{font-size:10px;margin:6px 0;padding:6px}
#saveFailureNotice{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);z-index:9000;padding:10px 18px;background:#692d23ee;border:1px solid #debc80;color:#fff1d2;border-radius:5px;font:13px Georgia;box-shadow:0 3px 14px #0008}
@media(max-width:800px){.healer-layout{grid-template-columns:minmax(265px,.88fr) minmax(0,1.12fr);gap:12px}.healer-military{padding-left:12px}.healer-summary h2{font-size:17px}.healer-stock button{min-width:106px;padding:6px}.hospital-toolbar>span{display:none}.hospital-toolbar>button:first-of-type{margin-left:auto}.hospital-unit{gap:6px;padding:7px}.hospital-unit-art img{width:43px;height:67px}.hospital-row-action{min-width:50px;padding:6px}.hospital-unit h4{font-size:12px}.hospital-order>button{min-width:120px}.healer-role-heading strong{font-size:12px}}
@media(max-width:590px){#healerConsole{height:calc(90vh - 55px);overflow:auto}.healer-summary{flex-wrap:wrap}.healer-summary>img{width:50px;height:50px}.healer-summary p{font-size:10px}.healer-stock{width:100%;margin-left:0}.healer-stock button{flex:1}.healer-layout{display:flex;flex-direction:column;overflow:visible}.healer-personnel{overflow:visible;padding-right:0}.healer-military{overflow:visible;border-left:0;border-top:1px solid #ad945e66;padding:12px 0 0}.hospital-units{max-height:360px;flex:auto}.hospital-order{position:sticky;bottom:0;background:#dac9a4;padding:10px;z-index:1}.healer-role{min-height:80px}.healer-portrait img{height:73px}.healer-summary h2{font-size:16px}}
#healerConsole .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.village-screen .building-panel.healer-mode{display:flex!important;flex-direction:column;overflow:hidden}
.village-screen .building-panel.healer-mode[hidden]{display:none!important}
.healer-mode #healerConsole{flex:1;height:auto;min-height:0}
.healer-mode .panel-heading,.healer-mode .building-panel-actions{flex:0 0 auto}
.healer-mode .building-panel-actions{padding:7px 16px!important;margin:0!important}

/* Healer's Hut keeps the three professions inside the same full-width deck. */
.village-screen #buildingPanel.healer-mode{width:min(1200px,calc(100vw - 20px))!important;max-height:min(92vh,820px)!important}
.village-screen #buildingPanel.healer-mode>.panel-heading{height:68px!important;min-height:68px!important;padding:0 10px!important;gap:10px;border-radius:5px 5px 0 0}
#buildingPanel.healer-mode>.panel-heading>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#buildingPanel.healer-mode .healer-deck-tabs{display:flex;align-items:stretch;align-self:stretch;gap:4px;min-width:0;margin-right:auto}
#buildingPanel:not(.healer-mode) .healer-deck-tabs{display:none}
#buildingPanel.healer-mode .healer-deck-tabs button{height:100%;width:76px;min-width:65px;padding:2px 8px;display:grid;place-items:center;border:0;border-radius:0;background:transparent;cursor:pointer;box-shadow:none}
#buildingPanel.healer-mode .healer-deck-tabs button img{display:block;max-height:59px;max-width:58px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
#buildingPanel.healer-mode .healer-deck-tabs button[aria-selected=true]{background:linear-gradient(#f5e6b12b,#e7c67e50);box-shadow:inset 0 -3px #dfc187}
#buildingPanel.healer-mode .healer-deck-tabs button:hover{background:#e3c99530}
#buildingPanel.healer-mode .panel-heading-controls,#buildingPanel.healer-mode .building-design-actions{height:100%;align-items:stretch!important;gap:3px}
.village-screen #buildingPanel.healer-mode .panel-heading :is(.building-design-card,.panel-close){width:64px!important;min-width:64px!important;height:100%!important;min-height:64px!important;border:0!important;border-radius:0!important;padding:4px!important;background:transparent!important}
.village-screen #buildingPanel.healer-mode .panel-heading :is(.building-design-card,.panel-close):hover{background:#d9c48b2a!important}
#buildingPanel.healer-mode .panel-heading .building-design-card svg{display:none}
#buildingPanel.healer-mode .healer-control-icon{display:block;width:50px;height:50px;object-fit:contain;filter:drop-shadow(0 2px 3px #0009)}
#buildingPanel:not(.healer-mode) .healer-control-icon{display:none}
#buildingPanel.healer-mode .panel-close{font-size:0!important}
#buildingPanel.healer-mode #healerConsole{padding:12px 18px 8px;min-height:0;overflow:hidden}
#healerConsole .healer-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.35fr);gap:18px;min-height:0;flex:1;padding:0}
#healerConsole .healer-personnel{grid-column:1;grid-row:1;overflow:auto;padding:0 12px 0 0;border-right:1px solid #a98b5866}
#healerConsole .healer-military,#healerConsole .healer-gathering,#healerConsole .healer-brewing{grid-column:2;grid-row:1;min-height:0;overflow:auto;padding:0 2px 0 0;border:0;display:none}
#healerConsole[data-healer-tab=shaman] .healer-military,#healerConsole[data-healer-tab=gatherer] .healer-gathering,#healerConsole[data-healer-tab=brewer] .healer-brewing{display:flex;flex-direction:column}
#healerConsole .healer-role{display:none;flex-direction:column;align-items:stretch;padding:8px 14px 12px;gap:2px;background:linear-gradient(135deg,#efe2bd77,#bb9f6750);min-height:0}
#healerConsole[data-healer-tab=shaman] [data-role-card=shaman],#healerConsole[data-healer-tab=gatherer] [data-role-card=gatherer],#healerConsole[data-healer-tab=brewer] [data-role-card=brewer],#healerConsole[data-healer-tab=brewer] [data-role-card=beerBrewer]{display:flex}
#healerConsole .healer-portrait{align-self:center}
#healerConsole .healer-portrait img{width:min(220px,100%);height:205px;object-fit:contain;filter:drop-shadow(0 8px 6px #0005)}
#healerConsole[data-healer-tab=brewer] .healer-role{flex-direction:row;align-items:center;min-height:117px}
#healerConsole[data-healer-tab=brewer] .healer-portrait img{width:92px;height:112px}
#healerConsole .healer-role p{font-size:12px;line-height:1.45;margin:5px 0 10px}
#healerConsole .healer-role input[type=range]{height:22px;width:100%;accent-color:#8c6939;cursor:pointer}
#healerConsole .healer-studies{margin-top:12px}
#healerConsole .healer-studies h3{font:700 14px Georgia;margin:0 0 7px;color:#594021}
#healerConsole .healer-research-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:7px;padding:8px;margin:0 0 7px;border:1px solid #b2965e88;border-radius:5px;background:#f3e6c777}
#healerConsole .healer-research-card>img{width:50px;height:50px;object-fit:contain;grid-row:span 2}
#healerConsole .healer-research-card strong,#healerConsole .healer-research-card small,#healerConsole .healer-research-card p{display:block}
#healerConsole .healer-research-card strong{font:700 12px/1.25 Georgia}
#healerConsole .healer-research-card small{font:10px/1.35 Georgia;color:#705c3a;margin-top:3px}
#healerConsole .healer-research-card p{font:10px/1.3 Georgia;margin:4px 0}
#healerConsole .healer-research-card button{grid-column:2;justify-self:start;background:linear-gradient(#947449,#543820);border:1px solid #987747;border-radius:4px;color:#fff1d0;padding:5px 11px;cursor:pointer;font:700 11px Georgia}
#healerConsole .healer-gathering .healer-output-art{display:flex;align-items:center;gap:18px;background:#f2e5c76b;border:1px solid #b3976477;border-radius:8px;padding:24px}
#healerConsole .healer-output-art img{width:154px;height:174px;object-fit:contain}
#healerConsole .healer-output-art strong{font:700 23px Georgia;color:#5c713c}
#healerConsole .healer-output-art p{font:13px/1.55 Georgia;color:#695538}
#healerConsole .healer-brewing{gap:6px}
#healerConsole .healer-brewing .healer-section-heading{margin:5px 0}
#healerConsole .healer-beer-heading{margin-top:18px!important;padding-top:14px;border-top:1px solid #ac936654}
#healerConsole .healer-recipe{min-height:52px;border-radius:5px;padding:5px 10px;background:#f0dfb862}
#healerConsole .healer-recipe img{width:43px;height:43px}
#healerConsole .healer-control{display:flex;gap:8px;margin:3px 0}
#healerConsole .healer-control input{width:88px;height:35px;box-sizing:border-box}
#healerConsole .healer-control button{min-width:120px}
#healerConsole .hospital-unit{min-height:88px}
#healerConsole .hospital-quantity input[type=range]{height:20px;accent-color:#63816b}
#healerConsole .hospital-toolbar{justify-content:flex-end}
#healerConsole .hospital-toolbar>span{display:none}
#buildingPanel.healer-mode>.building-panel-actions{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:8px 15px!important}
#buildingPanel.healer-mode .healer-footer-stock{display:flex;gap:6px;min-width:0;flex:1}
#buildingPanel:not(.healer-mode) .healer-footer-stock{display:none}
#buildingPanel.healer-mode .healer-footer-stock button{display:flex;align-items:center;gap:5px;min-width:0;max-width:164px;flex:1;background:#ede0bf;border:1px solid #b9a16d;border-radius:4px;padding:4px 6px;color:#503b22;cursor:pointer;box-shadow:0 1px 3px #0002}
#buildingPanel.healer-mode .healer-footer-stock img{width:33px;height:33px;object-fit:contain}
#buildingPanel.healer-mode .healer-footer-stock span{font:11px/1.2 Georgia;min-width:0;overflow:hidden;text-overflow:ellipsis}
#buildingPanel.healer-mode .healer-footer-stock b{font:700 12px Georgia;margin-left:auto}
#buildingPanel.healer-mode .building-actions{display:flex!important;align-items:center;gap:6px}
#buildingPanel.healer-mode .building-feedback{display:none}
#buildingPanel.healer-mode .game-action{min-height:34px;padding:6px 12px!important}
@media(max-width:730px){
  #buildingPanel.healer-mode .healer-deck-tabs button{width:55px;min-width:48px}
  #buildingPanel.healer-mode .healer-deck-tabs button img{max-height:48px;max-width:46px}
  .village-screen #buildingPanel.healer-mode .panel-heading :is(.building-design-card,.panel-close){width:48px!important;min-width:48px!important}
  #buildingPanel.healer-mode .healer-control-icon{width:40px;height:40px}
  #healerConsole .healer-layout{grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:10px}
  #healerConsole .healer-portrait img{height:145px}
  #healerConsole .healer-output-art img{width:80px;height:110px}
  #buildingPanel.healer-mode .healer-footer-stock span{display:none}
  #buildingPanel.healer-mode .healer-footer-stock button{flex:0 0 54px;justify-content:center}
  #buildingPanel.healer-mode .healer-footer-stock img{width:28px;height:28px}
}
@media(max-width:540px){
  #buildingPanel.healer-mode #healerConsole{overflow:auto}
  #healerConsole .healer-layout{display:flex;flex-direction:column;overflow:visible}
  #healerConsole .healer-personnel{overflow:visible;border-right:0;padding:0}
  #healerConsole .healer-military,#healerConsole .healer-gathering,#healerConsole .healer-brewing{overflow:visible;border-top:1px solid #a98b5866;padding-top:10px}
  #healerConsole .hospital-units{max-height:260px}
  #buildingPanel.healer-mode>.building-panel-actions{flex-wrap:wrap}
}

/* Research uses the shared ledger resource presentation. */
.healer-research-card{grid-template-columns:64px minmax(0,1fr) auto!important;align-items:center}.healer-research-card>img{width:64px!important;height:64px!important;object-fit:contain}.healer-study-cost{display:flex;flex-wrap:wrap;gap:5px 10px;margin:5px 0}.healer-study-cost .ledger-cost{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}.healer-study-cost .ledger-cost img{width:25px;height:25px;object-fit:contain}.healer-study-cost .insufficient{color:#a43e2c}.healer-study-instant{grid-column:3;justify-self:stretch}.healer-study-instant:empty{display:none}
