/* Ref49 development sheet. Closed summaries retain their existing compact layout. */
.development125:not([open])>.dev125-mobile-panes,
.development125:not([open])>.dev125-columns,
.development125:not([open])>.dev125-return,
.development125:not([open]) .dev125-open-title,
.development125:not([open]) .dev125-close-label {display:none!important}
html body.pc-redesign[data-layout=sidebar] details.current-building-upgrade.development125[open] {
 position:fixed!important;z-index:500!important;
 top:60px!important;bottom:85px!important;left:calc(var(--layout-sidebar,230px) + 10px)!important;right:12px!important;
 width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;
 min-height:0!important;margin:0!important;padding:12px!important;box-sizing:border-box;
 border:1px solid #b28c45!important;border-radius:0!important;
 background:#101314 url('assets/pc-v124/ui/panel-dark@medium.webp') center/580px auto!important;
 box-shadow:0 0 0 100vmax #050707bc,0 8px 40px #000b!important;
 overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:10px!important;
 color:#f0dfb9!important;font:16px/1.35 Georgia,serif!important;
}
html body.pc-redesign details.development125[open]>summary {
 flex:none;min-height:58px!important;padding:10px 14px!important;box-sizing:border-box;
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;
 background:linear-gradient(#0d1012cb,#0d1012e0),url('assets/pc-v124/ui/panel-dark@medium.webp') center/580px auto!important;
 border:1px solid #b28c45!important;color:#f0d495!important;cursor:pointer;
 font:700 clamp(22px,2vw,36px)/1.15 Georgia!important;list-style:none;
}
html body.pc-redesign details.development125[open]>summary::-webkit-details-marker {display:none}
html body.pc-redesign details.development125[open]>summary::after {display:none!important}
.development125[open]::details-content {display:flex;flex-direction:column;flex:1;min-height:0;gap:10px;overflow:hidden}
.development125[open] .dev125-closed-title {display:none!important}
.development125[open] .dev125-close-label {font:16px Georgia;white-space:nowrap;flex:none;color:#ead2a3;margin-left:auto}
.development125[open]>.dev125-mobile-panes {display:none}
.development125[open]>.dev125-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr) minmax(0,1.1fr);gap:10px;flex:1;min-height:0;min-width:0;overflow:hidden}
.development125[open] .dev125-columns>section {min-height:0;min-width:0;border:1px solid #aa8546;background:#0b1011c9;padding:14px;display:flex;flex-direction:column;gap:12px;overflow:auto;scrollbar-width:thin}
.development125[open] :is(h2,h3,p) {margin:0!important}
.development125[open] h2 {font:700 clamp(22px,1.6vw,30px)/1.15 Georgia!important;color:#f2d89e!important;padding-bottom:10px;border-bottom:1px solid #a1844380}
.development125[open] h3 {font:700 clamp(17px,1.3vw,24px)/1.2 Georgia!important;color:#e9ce91!important}
.development125[open] .dev125-level {text-align:center;font-size:20px;color:#f2dba4;border:1px solid #a18443;background:#24190edb;padding:9px}
.development125[open] .dev125-building>img {width:100%;height:35%;min-height:90px;max-height:45dvh;flex:1 1 auto;object-fit:cover;object-position:center;border:1px solid #ad8948}
.development125[open] .building-facts {display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;width:100%;font-size:16px;background:#11181799!important}
.development125[open] .building-facts>div {display:flex!important;justify-content:space-between!important;gap:12px;padding:12px 7px!important;border-bottom:1px solid #8f773d77}
.development125[open] .building-facts dt {color:#d7c8a5}
.development125[open] .building-facts dd {margin:0;color:#ffe2a1;font-weight:bold;font-size:19px}
.development125[open] .dev125-next-emblem {align-self:center;width:clamp(90px,12vw,170px);aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#f0cf86;font:700 clamp(45px,5vw,80px)/1 Georgia;background:radial-gradient(ellipse,#503b2060,#131918);border:3px double #b28c45;box-shadow:inset 0 0 0 6px #0c1112,0 3px 16px #0008;margin:8px 0}
.development125[open] .dev125-next-emblem small {font:14px Georgia;letter-spacing:.1em;margin-top:8px}
.development125[open] .dev125-note {font-size:13px!important;line-height:1.4;color:#c7b897}
.development125[open] .dev125-benefits>.dev125-note {margin-top:auto!important}
.development125[open] .dev125-requirements,
.development125[open] .dev125-prices {margin:0;display:flex;flex-direction:column;gap:0}
.development125[open] :is(.dev125-requirements,.dev125-prices)>div {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #8f773d77;font-size:15px}
.development125[open] :is(.dev125-requirements,.dev125-prices) dd {display:flex;gap:8px;margin:0;flex:none;font-weight:bold}
.development125[open] .is-met dd>span {color:#b5cf8a}
.development125[open] .is-unmet {color:#f0ad95}
.development125[open] .dev125-upgrade>h3 {display:flex;justify-content:space-between;align-items:center;gap:6px}
.development125[open] .dev125-upgrade h3 small {font:12px Georgia;color:#c8ba9a}
.development125[open] .dev125-duration {display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #8f773d77}
.development125[open] .dev125-upgrade>[data-action=build] {margin-top:auto!important;min-height:48px!important;font-size:19px!important;flex:none}
.development125[open] .dev125-job {display:flex;flex-direction:column;gap:15px}
.development125[open] .dev125-return {position:absolute!important;z-index:2;right:26px;top:26px;min-height:38px!important;font-size:15px!important;padding:7px 14px!important}
.development125-page[open]>summary {pointer-events:none;padding-right:220px!important}
.development125-page[open] .dev125-close-label {visibility:hidden}
@media(max-height:800px) and (min-width:1000px) {
 html body.pc-redesign[data-layout=sidebar] details.current-building-upgrade.development125[open] {gap:7px!important;padding:8px!important}
 html body.pc-redesign details.development125[open]>summary {min-height:45px!important;padding:8px!important;font-size:25px!important}
 .development125[open] .dev125-columns>section {padding:10px;gap:9px}
 .development125[open] .building-facts>div {padding:8px 5px!important}
 .development125[open] :is(.dev125-requirements,.dev125-prices)>div {font-size:13px;padding:7px 0}
 .development125[open] .dev125-return {right:18px;top:18px;min-height:32px!important}
}
@media(max-width:999px) {
 html body.pc-redesign[data-layout=sidebar] details.current-building-upgrade.development125[open] {inset:5px!important;padding:8px!important;gap:7px!important;height:calc(100dvh - 10px)!important;width:calc(100vw - 10px)!important;max-height:calc(100dvh - 10px)!important}
 html body.pc-redesign details.development125[open]>summary {min-height:56px!important;padding:8px!important;font-size:21px!important}
 .development125[open] .dev125-close-label {font-size:13px}
 .development125[open]>.dev125-mobile-panes {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none}
 .development125[open] .dev125-mobile-panes label {position:relative;min-width:0;cursor:pointer;margin:0!important}
 .development125[open] .dev125-mobile-panes input {position:absolute;width:1px;height:1px;opacity:0}
 .development125[open] .dev125-mobile-panes span {display:block;text-align:center;font:15px Georgia;padding:11px 4px;border:1px solid #997840;color:#ead6a9;background:#111819}
 .development125[open] .dev125-mobile-panes input:checked+span {border-color:#edc86f;color:#ffe4a3;background:#44321c}
 .development125[open] .dev125-mobile-panes input:focus-visible+span {outline:2px solid #ffe4a3;outline-offset:2px}
 .development125[open]>.dev125-columns {display:block}
 .development125[open] .dev125-columns>section {display:none;height:100%;box-sizing:border-box;padding:12px;gap:12px}
 .development125[open]:has(.dev125-mobile-panes input[value=building]:checked) .dev125-building,
 .development125[open]:has(.dev125-mobile-panes input[value=benefits]:checked) .dev125-benefits,
 .development125[open]:has(.dev125-mobile-panes input[value=upgrade]:checked) .dev125-upgrade {display:flex}
 .development125[open] .dev125-building>img {height:30%;max-height:45dvh;object-fit:cover}
 .development125[open] .dev125-upgrade>[data-action=build] {min-height:48px!important}
 .development125[open] .dev125-return {right:16px;top:25px;max-width:42%;min-height:34px!important;font-size:12px!important}
 html body.pc-redesign details.development125-page[open]>summary {padding-right:45%!important;font-size:17px!important}
}
@media(max-width:999px) and (max-height:550px) {
 html body.pc-redesign details.development125[open]>summary {min-height:36px!important;font-size:18px!important;padding:5px 8px!important}
 .development125[open] .dev125-mobile-panes span {padding:7px 4px;font-size:13px}
 .development125[open] .dev125-columns>section {gap:6px;padding:8px}
 .development125[open] .dev125-columns h2 {font-size:20px!important;padding-bottom:5px}
 .development125[open] .dev125-building>img {width:46%;height:100%;max-height:none;float:left}
 .development125[open]:has(.dev125-mobile-panes input[value=building]:checked) .dev125-building {display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr}
 .development125[open] .dev125-building>img {grid-row:2/4;grid-column:1;width:100%;min-height:0}
 .development125[open] .dev125-building>h2 {grid-column:1/3}
 .development125[open] .dev125-building>.dev125-level {grid-column:2;font-size:14px;padding:5px}
 .development125[open] .dev125-building>h3 {display:none}
 .development125[open] .dev125-building>.building-facts {grid-column:2;grid-row:3;align-self:start}
 .development125[open] .building-facts>div {font-size:13px;padding:6px!important}
 .development125[open] .building-facts dd {font-size:15px}
 .development125[open] .dev125-next-emblem {width:70px;font-size:33px;margin:0}
 .development125[open] .dev125-next-emblem small {font-size:9px;margin-top:3px}
 .development125[open]:has(.dev125-mobile-panes input[value=benefits]:checked) .dev125-benefits {display:grid;grid-template-columns:100px 1fr;grid-template-rows:auto auto 1fr}
 .development125[open] .dev125-benefits h2 {grid-column:1/3}
 .development125[open] .dev125-benefits>.dev125-next-emblem {grid-column:1;grid-row:2/4}
 .development125[open] .dev125-benefits>.dev125-note {display:none}
 .development125[open]:has(.dev125-mobile-panes input[value=upgrade]:checked) .dev125-upgrade {display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:min-content;column-gap:15px}
 .development125[open] .dev125-upgrade>h2 {display:none}
 .development125[open] .dev125-upgrade>h3:first-of-type {grid-column:1;grid-row:1}
 .development125[open] .dev125-requirements {grid-column:1;grid-row:2/6}
 .development125[open] .dev125-upgrade>h3:nth-of-type(2) {grid-column:2;grid-row:1}
 .development125[open] .dev125-prices {grid-column:2;grid-row:2}
 .development125[open] .dev125-duration {grid-column:2;grid-row:3;padding:4px 0;font-size:12px}
 .development125[open] .dev125-upgrade>[data-action=build] {grid-column:2;grid-row:4;min-height:34px!important;font-size:14px!important}
 .development125[open] .dev125-upgrade>.dev125-note {grid-column:2;grid-row:5;font-size:10px!important}
 .development125[open] :is(.dev125-requirements,.dev125-prices)>div {font-size:12px;padding:6px 0}
 .development125[open] .dev125-upgrade h3 {font-size:16px!important}
 .development125[open] .dev125-upgrade h3 small {font-size:10px}
 .development125[open] .dev125-return {top:14px;min-height:29px!important}
}
