.estate-economy-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 20px);padding:0;border:3px double #8b7549;background:#eee3bf;color:#352c1c;box-shadow:0 12px 60px #0009;font:16px Georgia,serif;overflow:hidden}
.estate-economy-dialog::backdrop{background:#1d1b1380}
.estate-economy-dialog[open]{display:flex;flex-direction:column}
.estate-economy-dialog header{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #ac9667;background:#e5d7ac;flex-shrink:0}
.estate-economy-dialog header>div{flex:1}.estate-economy-dialog h2{margin:2px 0;font-size:25px}
.estate-economy-dialog small,.estate-economy-kicker,.estate-economy-muted{color:#746544}
.estate-economy-content{padding:16px 20px;overflow:auto;overscroll-behavior:contain;min-height:0}
.estate-economy-dialog article{border-top:1px solid #b8a77c;margin-top:18px;padding-top:12px}
.estate-prerequisite-trail{padding:10px 12px;margin-bottom:12px;border:1px solid #b8a77c;background:#e4d5a8;overflow-wrap:anywhere}.estate-prerequisite-trail p{margin:0 0 6px;font-size:13px}.estate-building-prerequisites article{margin-top:10px;padding-top:8px}
.estate-economy-dialog h3{margin:4px 0 10px;font-size:20px}
.estate-economy-dialog p{line-height:1.5;margin:8px 0 14px}
.estate-economy-dialog button,.estate-economy-dialog select,.estate-economy-dialog input:not([type=checkbox]){min-height:44px;border:1px solid #a08a57;border-radius:3px;color:inherit;background:#f5ebce;padding:8px 12px;font:inherit;max-width:100%;box-sizing:border-box}
.estate-economy-dialog button{cursor:pointer;margin:3px 0}.estate-economy-dialog button:hover{background:#dfc996}
.estate-economy-dialog :focus-visible{outline:3px solid #885044;outline-offset:2px}
.estate-economy-dialog :disabled{opacity:.55;cursor:wait}
.estate-economy-dialog label{color:#352c1c;display:flex;gap:6px;flex-direction:column;margin:8px 0}
.estate-economy-actions{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.estate-economy-benefits{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.estate-economy-benefits p{background:#e4d5a8;padding:12px;margin:0}
.estate-economy-dialog .estate-economy-commit,.estate-economy-dialog .estate-economy-champion{flex-direction:row;align-items:center;gap:12px;line-height:1.5;padding:8px;border:1px solid #b5a077}
.estate-economy-dialog input[type=checkbox]{width:24px;height:24px;min-width:24px;accent-color:#824332}
.estate-economy-champion button{margin-left:auto}
.estate-economy-dialog .estate-economy-champion{display:flex}
.estate-economy-dialog .estate-economy-champion label{flex:1;flex-direction:row;align-items:center;margin:0;min-height:44px}
.estate-economy-champion>button{flex-shrink:0}
.estate-storage-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.estate-economy-error{background:#f0c9b4;color:#7e2f20;padding:12px;border:1px solid #b87054}
.estate-economy-dialog footer{padding:10px 16px;border-top:1px solid #b8a77c;font-size:12px;color:#746544;flex-shrink:0}
.estate-officer-management{min-height:44px;padding:7px 10px;border:1px solid #a08a57;background:#eee3bf;color:#352c1c;cursor:pointer}
@media(max-height:500px){.estate-economy-dialog header{padding:6px 12px}.estate-economy-dialog h2{font-size:20px}.estate-economy-content{padding:10px 14px}.estate-economy-dialog footer{padding:5px 12px}}
@media(max-width:520px){.estate-economy-benefits{grid-template-columns:1fr}.estate-economy-dialog{width:calc(100vw - 12px)}.estate-economy-dialog header{flex-wrap:wrap}.estate-economy-dialog h2{font-size:21px}.estate-economy-champion{flex-wrap:wrap}}

.estate-upgrade-requirements{overflow-x:auto}.estate-upgrade-requirements table{width:100%;border-collapse:collapse;font-size:13px}.estate-upgrade-requirements th,.estate-upgrade-requirements td{padding:7px 5px;border-bottom:1px solid #b8a77c;text-align:right}.estate-upgrade-requirements th:first-child{text-align:left}.estate-upgrade-requirements input{width:94px}.estate-economy-dialog :disabled{cursor:not-allowed}
.estate-upgrade-targets{position:absolute;inset:0;pointer-events:none;z-index:6}
/* Keep the shared city hex face above the parchment modal's button defaults. */
#modal.bailey-modal .estate-upgrade-targets button.estate-site-action{--cl-action-size:48px;padding:6px 3px 9px!important;border:0!important;border-radius:0!important;background:var(--cl-action-border)!important;color:var(--cl-action-text)!important;font:900 .56rem/1 "Cinzel",Georgia,serif!important;text-align:center;gap:2px;margin:0}
#modal.bailey-modal .estate-upgrade-targets .estate-site-action .wheel-action-name{white-space:nowrap}
#modal.bailey-modal .estate-upgrade-targets .estate-site-action:disabled{opacity:1;cursor:not-allowed}
#modal.bailey-modal .estate-upgrade-targets .estate-site-action span{font-family:inherit;flex:none}
#modal.bailey-modal .estate-upgrade-targets .estate-site-action :is(span,.cl-icon){color:var(--cl-action-text)!important}
#modal.bailey-modal .estate-upgrade-targets .estate-site-action:focus-visible{outline-color:transparent!important}
.estate-site-actions{display:flex;justify-content:space-between;gap:12px;flex:none;padding-top:8px}
#modal.bailey-modal :is(.estate-site-actions,.estate-directory-site)>.estate-site-action{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:auto;font-size:13px;white-space:nowrap;margin:0}
.estate-directory:has(.estate-site-action){width:340px;max-width:calc(100% - 20px);box-sizing:border-box}
.estate-directory-site{display:flex;align-items:center;gap:6px;margin-bottom:6px}
#modal.bailey-modal .estate-directory-site>[data-estate-directory-building]{flex:1;min-width:0;flex-wrap:wrap;margin:0;overflow-wrap:anywhere}
.estate-construction-timers{position:absolute;inset:0;pointer-events:none;z-index:3}
.estate-construction-timer{position:absolute;height:40px;pointer-events:none;text-align:center;filter:drop-shadow(0 1px 2px #332b2566)}
.estate-construction-timer>i{position:absolute;left:50%;top:100%;height:1px;background:#6b4b21;transform-origin:0 0;z-index:-1}.estate-district.estate-timer-obscured{visibility:hidden}
.estate-construction-timer svg{display:block;width:100%;height:40px;overflow:visible;fill:none}
.estate-construction-timer path{stroke-linecap:round}.estate-timer-edge{stroke:#4c3a24;stroke-width:9}.estate-timer-track{stroke:#efe0b5;stroke-width:6}.estate-timer-fill{stroke:#b98326;stroke-width:5;stroke-dasharray:100;stroke-dashoffset:100}
#modal.bailey-modal .estate-construction-timer>span{position:absolute;left:50%;top:24px;transform:translateX(-50%);padding:2px 5px;border:1px solid #a28c64;border-radius:2px;background:#f0e4c7f2;color:#332e23!important;font:600 10px/1.1 "Segoe UI",Arial,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
#modal.bailey-modal .estate-directory button>.estate-construction-note{flex-basis:100%;font-size:10px;color:#6b4b21;line-height:1.3;white-space:normal}
.estate-milestone{margin:12px 0;padding:12px;border:1px solid #af965f;background:#e4d5a8}.estate-milestone progress{display:block;width:100%;height:10px;margin:8px 0;accent-color:#876b34}.estate-milestone p{margin-bottom:0}
.estate-status-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.estate-status-totals p{padding:10px;background:#e4d5a8;margin:0}.estate-status-totals b{display:block;font-size:22px}
.estate-starter-guide{padding-left:24px}.estate-starter-guide li{padding:10px 0;border-bottom:1px solid #b8a77c}.estate-starter-guide li p{margin:6px 0}.estate-starter-guide button{margin-right:6px}
#modal.bailey-modal .estate-directory-filters{position:static;top:0;background:var(--paper);padding:4px 0 8px;z-index:1;border-bottom:1px solid var(--rule);margin-bottom:10px}#modal.bailey-modal .estate-directory-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px}#modal.bailey-modal .estate-directory-filters select{width:100%;min-height:44px;padding:8px;border:1px solid var(--rule);background:#f5ebce;color:var(--ink);font:14px "Segoe UI",sans-serif}#modal.bailey-modal .estate-directory-filters p,#modal.bailey-modal [data-estate-filter-empty]{padding-top:6px;font-size:12px}
#modal.bailey-modal .estate-readiness-note{flex-basis:100%;font-size:10px;line-height:1.3;white-space:normal;color:#6b4b21;text-align:left}#modal.bailey-modal .estate-directory-site>[data-estate-directory-building]{justify-content:flex-start;text-align:left}
#modal.bailey-modal .estate-header>div{position:relative}#modal.bailey-modal .estate-completion-feedback{position:absolute;inset:0;display:flex;align-items:center;gap:4px;min-height:44px;background:var(--paper);z-index:1}.estate-completion-feedback>span{flex:1;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.3}#modal.bailey-modal .estate-completion-feedback button{padding:4px;flex:none;width:44px}
.estate-economy-dialog .estate-champion-card{display:flex;flex-wrap:wrap;margin:8px 0;background:#f3e8c9}.estate-champion-card>span:first-child,.estate-champion-card label>span{flex:1;min-width:0}.estate-champion-card strong,.estate-champion-card small{display:block}.estate-champion-state{font-size:12px;color:#49583b}.estate-champion-xp{flex-basis:100%;font-size:12px;color:#746544}.estate-champion-xp progress{display:block;width:100%;height:9px;accent-color:#876b34;margin:2px 0 6px}.estate-expedition-card{padding:12px;margin:8px 0;background:#e4d5a8;border:1px solid #b8a77c}.estate-expedition-card p{margin:6px 0}
@media(max-width:700px){#modal.bailey-modal .estate-header{gap:6px}#modal.bailey-modal .estate-header [data-estate-status]{padding:8px}.estate-champion-state{flex-basis:100%}.estate-status-totals p{font-size:12px}.estate-status-totals b{font-size:18px}}
#modal.bailey-modal .estate-directory{scroll-padding-top:8px}
@media(max-height:500px){#modal.bailey-modal .estate-directory{scroll-padding-top:8px}#modal.bailey-modal .estate-directory-filters{position:static}}
.estate-economy-dialog progress{-webkit-appearance:none;appearance:none;border:0;border-radius:2px;overflow:hidden;background:#d5c49b}.estate-economy-dialog progress::-webkit-progress-bar{background:#d5c49b}.estate-economy-dialog progress::-webkit-progress-value{background:#876b34}.estate-economy-dialog progress::-moz-progress-bar{background:#876b34}
.estate-production-item>progress{width:100%;height:12px}.estate-production-quantity{display:block}.estate-production-quantity input[type=range]{display:block;width:100%;min-height:44px;padding:0;accent-color:#876b34}.estate-production-controls{display:flex;align-items:end;gap:8px}.estate-production-controls label{flex:1;min-width:0}.estate-production-controls input{width:100%}.estate-production-reserves{margin-top:12px}.estate-production-reserves summary{min-height:44px;cursor:pointer;padding:10px 0}.estate-production-reserves[open] summary{margin-bottom:4px}
.estate-economy-dialog .estate-production-item{border:0;margin:0;padding:0}.estate-production-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.estate-production-heading h3{margin:0}.estate-production-heading>span{font-size:12px;color:#5b6540}.estate-economy-dialog .estate-production-recipe{margin:12px 0 6px}.estate-economy-dialog .estate-production-use,.estate-production-note{color:#746544;font-size:13px}.estate-economy-dialog .estate-production-use{margin:0 0 12px}.estate-production-quantity>span{display:flex;align-items:center;justify-content:space-between;gap:10px}.estate-production-controls{align-items:end;flex-wrap:wrap}.estate-economy-dialog .estate-production-controls .estate-production-amount{flex:0 1 100px;margin:0;font-size:12px}.estate-production-controls>button{min-width:44px;flex-shrink:0}.estate-production-controls>[data-economy-action=productionMax]{margin-left:auto}.estate-production-controls>span{padding-bottom:14px}.estate-production-materials{width:100%;border-collapse:collapse;margin-top:14px;font-variant-numeric:tabular-nums}.estate-production-materials th,.estate-production-materials td{padding:8px 0;text-align:right;font-weight:400}.estate-production-materials th:first-child{text-align:left}.estate-production-materials thead th{font-size:12px;color:#746544;border-bottom:1px solid #b8a77c}.estate-production-materials td small{display:block;font-size:12px}.estate-economy-dialog .estate-production-storage{font-size:13px;margin:10px 0}.estate-production-details{border-top:1px solid #b8a77c;margin-top:16px}.estate-production-details>summary{cursor:pointer;min-height:44px;padding:12px 0}.estate-production-details>.estate-production-reserves{margin-top:8px}.estate-economy-dialog .estate-production-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.estate-production-footer>div{flex:1;min-width:0}.estate-production-footer small,.estate-production-footer b{display:block}.estate-production-footer b{font-size:16px;color:#352c1c;margin:2px 0}.estate-economy-dialog .estate-production-footer>button{background:#694735;border-color:#694735;color:#fff2d0;font-size:14px;flex:0 1 auto;max-width:55%;min-height:44px}.estate-economy-dialog .estate-production-footer>button:hover{background:#80583e}.estate-economy-dialog .estate-production-completion{padding:10px;background:#e4d5a8;margin-top:0}.estate-production-blockers p{font-size:13px}.estate-production-blockers button{font-size:13px}
.estate-production-trail{border-bottom:1px solid #b8a77c;margin-bottom:12px;padding-bottom:8px}.estate-production-trail p{font-size:12px;margin:0 0 4px;overflow-wrap:anywhere}

/* Building services: illustrated folio, ruled ledger and painted-wood actions. */
.estate-economy-dialog{--estate-ink:var(--cl-text,#352b20);--estate-muted:var(--cl-text-muted,#705d45);--estate-rule:var(--cl-border-faded,#b19a71);--estate-paper:var(--cl-panel,#ede1c2);--estate-oxblood:#702f35;--estate-brass:#967344;box-sizing:border-box;width:min(1080px,calc(100vw - 24px));height:min(720px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:4px;border:1px solid #554334;border-radius:2px;background:#b6a081;color:var(--estate-ink);box-shadow:inset 0 0 0 1px #dfc99e,inset 0 0 0 3px #584738,0 18px 70px #17140fd4;font:14px/1.45 "Segoe UI",Arial,sans-serif;color-scheme:light}
.estate-economy-dialog *{box-sizing:border-box}.estate-economy-dialog [hidden]{display:none!important}.estate-economy-dialog::backdrop{background:#1718128c;backdrop-filter:blur(2px)}
.estate-economy-dialog>header{min-height:82px;padding:13px 20px;gap:10px;border-bottom:3px double #a98b5b;background:linear-gradient(105deg,#34271f,#483429);color:#f3e5c6;box-shadow:inset 0 1px #9b8055}
.estate-economy-dialog>header>div{min-width:0}.estate-economy-dialog>header small{display:flex;align-items:center;gap:10px;color:#dac39b;font:600 10px/1.3 "Segoe UI",Arial,sans-serif;text-transform:uppercase;letter-spacing:.13em}.estate-economy-dialog>header small>span{padding-left:10px;border-left:1px solid #93764e;color:#cdbd9e;letter-spacing:.07em}
.estate-economy-dialog h2{margin:5px 0 0;font:500 26px/1.15 "Cinzel",Georgia,serif;letter-spacing:.02em}.estate-economy-dialog h3{font:600 19px/1.3 Georgia,serif;color:var(--estate-ink);margin:0 0 10px}.estate-economy-dialog p{line-height:1.5}
.estate-economy-dialog button,.estate-economy-dialog select,.estate-economy-dialog input:not([type=checkbox]){font:600 13px/1.3 "Segoe UI",Arial,sans-serif;min-height:44px;border:1px solid #a18b65;border-radius:2px;background:linear-gradient(#fcf2d9,#ede0bd);color:var(--estate-ink);box-shadow:inset 0 1px #fff8e8,0 1px 1px #46332016;transition:background-color .12s,border-color .12s,box-shadow .12s}
.estate-economy-dialog button:hover:not(:disabled){background:#e6d1a7;border-color:#7c5d39;box-shadow:inset 0 1px #fff4d7,0 2px 3px #46332022}.estate-economy-dialog button:active:not(:disabled){box-shadow:inset 0 2px 4px #4b382530}.estate-economy-dialog :focus-visible{outline:2px solid #476874;outline-offset:3px}.estate-economy-dialog :disabled{opacity:.58;cursor:not-allowed}
.estate-economy-dialog>header button{background:#ffffff08;border-color:#987c55;color:#f3e5c6;box-shadow:inset 0 1px #ffffff0b;margin:0;flex:none}.estate-economy-dialog>header button:hover:not(:disabled){background:#674d37;color:#fff4d7}.estate-economy-dialog>header [data-economy-action=close]{width:44px;padding:0;font:28px/1 Georgia,serif;border-color:#8a7253;background:transparent}.estate-economy-dialog>header :focus-visible{outline-color:#efd09a}
.estate-economy-workspace{display:grid;min-height:0;flex:1;background:var(--estate-paper);overflow:hidden}.estate-economy-workspace.estate-with-identity{grid-template-columns:238px minmax(0,1fr)}
.estate-economy-dialog .estate-economy-content{min-width:0;min-height:0;padding:22px 26px;background:radial-gradient(ellipse at top right,#fff9e73b,transparent 70%),var(--estate-paper);scrollbar-color:#aa8e60 #e5d6b2;scrollbar-width:thin;scroll-padding:12px;overflow:auto}
.estate-building-identity{min-height:0;overflow:auto;overscroll-behavior:contain;border-right:1px solid var(--estate-rule);padding:18px 18px 12px;background:linear-gradient(100deg,#ded0aa,#e7dabc 90%,#d2bc94);scrollbar-color:#aa8e60 #dfcdac;scrollbar-width:thin}
.estate-building-portrait{position:relative;display:grid;place-items:center;isolation:isolate;min-height:174px;margin:0 -3px 16px;border:1px solid #b89e72;background:radial-gradient(ellipse at 50% 75%,#9c8b5f40,transparent 62%),linear-gradient(140deg,#f1e8d0,#dbcfad);box-shadow:inset 0 0 0 3px #e7d8b6,inset 0 0 0 4px #c4af86}.estate-building-portrait::before,.estate-building-portrait::after{content:"";position:absolute;width:5px;height:5px;top:7px;left:7px;background:#8f7249;box-shadow:0 1px #f3e4c4}.estate-building-portrait::after{left:auto;right:7px}
.estate-building-portrait img{position:relative;width:100%;height:148px;object-fit:contain;padding:10px 9px 5px;filter:drop-shadow(0 5px 3px #46382330)}.estate-building-portrait>span{padding:3px 8px 8px;color:#645137;font:10px Georgia,serif;text-transform:uppercase;letter-spacing:.1em}.estate-building-plan img{filter:grayscale(.85) opacity(.55)}
.estate-building-rank>span:first-child{display:block;padding-bottom:8px;border-bottom:1px solid #b89e72;font:600 12px "Segoe UI",Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em}.estate-building-rank b{font:500 30px/1 Georgia,serif;margin-left:5px;letter-spacing:0}.estate-building-rank small{font-size:11px;color:#645137;letter-spacing:0}.estate-building-state{display:block;margin-top:9px;font-size:11px;color:#48553c}.estate-building-state::before{content:"";display:inline-block;width:5px;height:5px;background:#656c46;transform:rotate(45deg);margin:0 7px 2px 1px}
.estate-economy-dialog .estate-building-category{font:600 11px/1.5 "Segoe UI",Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#6e5234;margin:17px 0 6px}.estate-economy-dialog .estate-building-purpose{font:13px/1.55 Georgia,serif;margin:0 0 17px}.estate-building-benefit{border-top:1px solid #b89e72;padding-top:12px}.estate-building-benefit>small{font:600 10px "Segoe UI",Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#645137}.estate-economy-dialog .estate-building-benefit p{margin:6px 0 0;font-size:12px;line-height:1.6}
.estate-building-identity .estate-milestone{margin:17px 0 12px;padding:11px;border-left:3px solid var(--estate-brass);background:#f5e8c45c;font-size:11px}.estate-building-identity .estate-milestone b{font-weight:600;color:#614829}.estate-building-identity .estate-milestone p{font-size:11px;line-height:1.55}.estate-building-identity>.estate-economy-muted{font-size:11px}.estate-economy-dialog .estate-building-permanence{margin:16px 0 0;padding-top:11px;border-top:1px solid #b89e72;font:italic 11px/1.5 Georgia,serif;color:#645137}
.estate-building-services>article,.estate-building-prerequisites article{padding:18px;margin:0 0 16px;border:1px solid #bea87f;background:#faf0d63b;box-shadow:inset 0 1px #fff7e8}.estate-economy-dialog .estate-production-item{padding:0;border:0;background:transparent;box-shadow:none}.estate-building-services>p:first-child{margin-top:0}.estate-economy-dialog label{font-size:12px;font-weight:600;gap:5px}.estate-economy-dialog select{min-width:0;width:100%;font-weight:400;padding-right:26px}.estate-economy-actions{display:flex;flex-wrap:wrap;gap:10px 14px}.estate-economy-actions>label{flex:1 1 160px}.estate-economy-dialog .estate-economy-actions>button{align-self:end;flex:none}
.estate-economy-dialog .estate-action-primary{border-color:#54252a;background:linear-gradient(#813d42,#692c32);color:#fff1d6;box-shadow:inset 0 1px #a0625e,0 2px 3px #46292228}.estate-economy-dialog .estate-action-primary:hover:not(:disabled){background:linear-gradient(#964a4f,#793239);border-color:#472126;box-shadow:inset 0 1px #b67b69,0 2px 4px #46292230}
.estate-production-heading{padding-bottom:13px;border-bottom:1px solid var(--estate-rule)}.estate-production-heading h3{font-size:25px}.estate-production-heading>span{padding:5px 9px;border:1px solid #9ca477;background:#d9dfbc80;font:600 11px "Segoe UI",Arial,sans-serif;color:#465038;border-radius:2px}.estate-economy-dialog .estate-production-recipe{margin:15px 0 5px;font:16px/1.5 Georgia,serif}.estate-production-use{font-size:12px}
.estate-economy-dialog .estate-production-quantity{margin:24px 0 3px}.estate-production-quantity>span{font-size:13px}.estate-production-quantity small{font-weight:400}.estate-economy-dialog input[type=range]{box-shadow:none;border:0;background:transparent;accent-color:#896536}.estate-economy-dialog .estate-production-controls{gap:8px;padding:5px 0 15px}.estate-economy-dialog .estate-production-controls input{font:600 18px/1.3 "Segoe UI",Arial,sans-serif;text-align:center;background:#faf0d5}.estate-production-controls>button{width:44px}.estate-production-controls>[data-economy-action=productionMax]{width:auto;min-width:64px}.estate-production-controls>span{font-size:12px;font-weight:400}
.estate-economy-dialog .estate-production-materials,.estate-upgrade-requirements table{font:13px/1.4 "Segoe UI",Arial,sans-serif;margin:12px 0}.estate-production-materials thead th,.estate-upgrade-requirements thead th{background:#dfcfaa;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:10px;border-top:1px solid var(--estate-rule);border-bottom:1px solid var(--estate-rule)}.estate-production-materials tbody th,.estate-production-materials td,.estate-upgrade-requirements tbody th,.estate-upgrade-requirements td{padding:13px 10px;border-bottom:1px solid #c9b68f;font-weight:400;vertical-align:middle}.estate-production-materials tbody th,.estate-upgrade-requirements tbody th{font-weight:600}.estate-material-shortage{color:#8b342d;font-weight:600!important}.estate-material-shortage small{display:block;margin-top:2px;font-size:10px;color:#8b342d}.estate-material-ready{color:#435b3b}.estate-economy-dialog .estate-production-storage{padding:10px 12px;border-left:2px solid #a08352;background:#e5d7b280;font-size:12px}
.estate-economy-dialog .estate-economy-benefits{gap:12px;margin-bottom:15px}.estate-economy-benefits p{border:1px solid #bfa780;background:#e5d6b380;padding:14px;font-size:13px}.estate-economy-benefits p:last-child{border-top:3px solid #917043;background:#f8efd780}.estate-economy-benefits b{display:inline-block;margin-bottom:6px;font:600 10px "Segoe UI",Arial,sans-serif;text-transform:uppercase;letter-spacing:.09em;color:#645137}.estate-order-readiness{padding:12px 14px;border-left:3px solid #917043;background:#e4d7b480;font-size:12px}
.estate-gathering-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0;gap:10px}.estate-gathering-stats p{margin:0;padding:12px;border:1px solid #bda780;background:#e7d9b763}.estate-gathering-stats small,.estate-gathering-stats span{display:block;font-size:11px;color:var(--estate-muted)}.estate-gathering-stats b{display:block;margin:6px 0;font:500 25px/1.1 Georgia,serif;font-variant-numeric:tabular-nums}
.estate-economy-dialog .estate-champion-card{padding:11px 12px;border-left:3px solid #9b7c4c;background:#f8efd6;box-shadow:inset 0 1px #fff8e4}.estate-champion-card strong{font:600 15px Georgia,serif}.estate-champion-card small{font-size:11px;margin-top:4px}.estate-champion-state{border:1px solid #b0b691;padding:3px 6px;background:#dce2bf6b;font-size:10px}.estate-champion-xp{padding-top:8px;border-top:1px solid #d7c49f;font-size:10px;line-height:1.5}.estate-economy-dialog .estate-expedition-card{background:#f5eacb;border:1px solid #bba37c;border-left:3px solid #806139;padding:14px}.estate-expedition-card>b{font:600 16px Georgia,serif}.estate-expedition-card p{font-size:12px}.estate-storage-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.estate-storage-list button{padding:14px;text-align:left;line-height:1.7}
.estate-economy-dialog footer{min-height:34px;padding:10px 20px;border-top:3px double #b59c72;background:#dfcfaa;color:#645137;font:11px/1.4 "Segoe UI",Arial,sans-serif}.estate-economy-dialog .estate-order-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:80px;padding:12px 20px;background:linear-gradient(#ebdfc1,#ded0ad);box-shadow:0 -3px 8px #4c39230a}.estate-order-total{flex:1;min-width:0}.estate-order-total small{display:block;font-size:10px;color:#645137}.estate-order-total b{display:block;margin:3px 0;font:600 20px/1.2 Georgia,serif;color:var(--estate-ink);font-variant-numeric:tabular-nums}.estate-order-footer>button{flex:none;margin:0!important;min-height:46px;padding:10px 17px!important}.estate-order-footer>.estate-action-primary{min-width:150px}
.estate-economy-dialog .estate-prerequisite-trail,.estate-economy-dialog .estate-production-trail{background:#e3d2ad;border:1px solid #b79d71;padding:10px 12px;margin-bottom:18px}.estate-prerequisite-trail button,.estate-production-trail button{font-size:11px}.estate-building-prerequisites h3{margin-top:18px}.estate-building-prerequisites article{margin-bottom:10px;padding:12px}.estate-building-prerequisites article p{font-size:12px}.estate-economy-error{border-left:3px solid #8a3d2d;font-size:13px}
@media(min-width:1020px){.estate-building-services[data-building-service=guild-master]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.estate-building-services[data-building-service=guild-master]>article{padding:14px;min-width:0}.estate-building-services[data-building-service=guild-master] .estate-economy-actions>label{flex-basis:110px}.estate-building-services[data-building-service=guild-master] .estate-champion-card{flex-wrap:wrap}.estate-building-services[data-building-service=guild-master] .estate-champion-card>button{font-size:11px;padding:6px;min-width:44px}.estate-building-services[data-building-service=guild-master] .estate-champion-state{font-size:9px}}
@media(max-width:900px){.estate-economy-workspace.estate-with-identity{grid-template-columns:190px minmax(0,1fr)}.estate-building-identity{padding:14px}.estate-building-portrait{min-height:135px}.estate-building-portrait img{height:112px}.estate-economy-dialog .estate-economy-content{padding:18px}.estate-economy-dialog>header{min-height:68px;padding:10px 16px}.estate-economy-dialog h2{font-size:23px}}
@media(max-width:650px){.estate-economy-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.estate-economy-workspace.estate-with-identity{grid-template-columns:138px minmax(0,1fr)}.estate-building-identity{padding:10px}.estate-building-portrait{min-height:92px;margin-bottom:10px}.estate-building-portrait img{height:75px;padding:5px}.estate-building-portrait>span{font-size:8px;padding-bottom:5px}.estate-building-purpose{font-size:12px!important}.estate-building-category{font-size:10px!important}.estate-building-rank b{font-size:23px}.estate-building-state{font-size:10px}.estate-economy-dialog>header{padding:8px 10px;gap:6px}.estate-economy-dialog>header small{font-size:9px;letter-spacing:.07em}.estate-economy-dialog>header small>span{display:none}.estate-economy-dialog>header [data-economy-action=refresh]{padding:6px;font-size:11px}.estate-economy-dialog h2{font-size:20px}.estate-economy-dialog .estate-economy-content{padding:13px}.estate-economy-dialog .estate-order-footer{gap:7px;padding:8px 10px}.estate-order-footer>button{padding:8px!important;font-size:12px}.estate-order-footer>.estate-action-primary{min-width:0}.estate-order-total b{font-size:16px}.estate-order-total small{font-size:9px}.estate-gathering-stats{gap:6px}.estate-gathering-stats p{padding:7px}.estate-gathering-stats b{font-size:20px}.estate-gathering-stats small,.estate-gathering-stats span{font-size:9px}.estate-production-heading h3{font-size:22px}.estate-economy-benefits{gap:8px!important}.estate-economy-benefits p{padding:9px;font-size:12px}.estate-building-services>article{padding:12px}.estate-production-materials tbody th,.estate-production-materials td,.estate-upgrade-requirements tbody th,.estate-upgrade-requirements td{padding:10px 6px}.estate-production-materials thead th,.estate-upgrade-requirements thead th{padding:8px 6px}.estate-economy-actions>label{flex-basis:130px}}
@media(max-height:500px){.estate-economy-dialog>header{min-height:60px;padding-top:6px;padding-bottom:6px}.estate-economy-dialog h2{font-size:21px;margin-top:3px}.estate-economy-dialog .estate-order-footer{min-height:66px;padding-top:7px;padding-bottom:7px}.estate-building-portrait{min-height:94px}.estate-building-portrait img{height:76px}.estate-building-identity{padding-top:10px}.estate-economy-dialog .estate-economy-content{padding-top:14px}.estate-order-total b{font-size:18px}.estate-building-services>article{padding:12px}.estate-building-category{margin-top:10px!important}.estate-economy-dialog .estate-production-quantity{margin-top:16px}}
@media(max-width:440px){.estate-economy-workspace.estate-with-identity{display:block;overflow:auto}.estate-building-identity{overflow:visible;border-right:0;border-bottom:1px solid var(--estate-rule)}.estate-building-portrait{float:left;width:110px;margin:0 12px 8px 0}.estate-building-permanence{clear:both}.estate-economy-dialog .estate-economy-content{overflow:visible}.estate-order-footer{flex-wrap:wrap}.estate-order-total{flex-basis:100%}.estate-economy-dialog>header small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.estate-economy-dialog button,.estate-economy-dialog input,.estate-economy-dialog select{transition:none}}
.estate-production-quantity input[type=range]{appearance:none;-webkit-appearance:none;cursor:pointer;--estate-quantity-progress:0%}.estate-production-quantity input[type=range]::-webkit-slider-runnable-track{height:6px;border:1px solid #9f875e;border-radius:3px;background:linear-gradient(to right,#957343 var(--estate-quantity-progress),#d0c09b var(--estate-quantity-progress));box-shadow:inset 0 1px 2px #68523730}.estate-production-quantity input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-7px;width:18px;height:18px;border:2px solid #b89964;border-radius:50%;background:#6e3438;box-shadow:0 1px 2px #46342350}.estate-production-quantity input[type=range]::-moz-range-track{height:4px;border:1px solid #9f875e;border-radius:3px;background:#d0c09b}.estate-production-quantity input[type=range]::-moz-range-progress{height:4px;background:#957343}.estate-production-quantity input[type=range]::-moz-range-thumb{width:14px;height:14px;border:2px solid #b89964;border-radius:50%;background:#6e3438}.estate-production-quantity input[type=range]:disabled{cursor:not-allowed}
.estate-construction-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.estate-construction-summary p{margin:0!important;padding:12px;border:1px solid #c2ab83;background:#e4d5b350}.estate-construction-summary small{display:block;font-size:10px;color:#645137}.estate-construction-summary b{display:block;margin-top:6px;font:500 21px Georgia,serif;font-variant-numeric:tabular-nums}
