.estate-scene {
  position:relative;display:flex;flex-direction:column;height:100%;min-height:0;
  overflow:hidden;border:1px solid #b9b4a2;border-radius:12px;
  background:#f5f3e9;color:#293a32;isolation:isolate;
}
.estate-tools {
  flex:none;display:flex;align-items:center;gap:8px;min-height:52px;
  padding:4px 12px;background:#faf8f1;border-bottom:1px solid #cfcab6;
}
.estate-tools button,.estate-locate,.est-close,.est-zoom button {min-height:44px;}
.estate-tools button,.est-zoom button,.est-close {display:inline-flex;align-items:center;justify-content:center;gap:5px;}
.estate-tools [data-estate-manager] {padding:0 10px;border-radius:5px;font-size:.88rem;}
.estate-tools [aria-expanded="true"],.estate-tools [data-estate-manager]:hover {background:#e9e9d9;}
.estate-tools .action-btn {margin-left:auto;font-size:.88rem;padding:4px 13px;}
.estate-locate {display:flex;align-items:center;gap:6px;min-width:0;color:#536152;}
.estate-locate select {max-width:15.2rem;min-width:0;min-height:42px;background:transparent;border:0;color:#263b31;font-size:.94rem;}
.estate-workspace {display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;position:relative;}
.has-estate-sheet .estate-workspace {grid-template-columns:minmax(0,1fr) minmax(248px,26%);}
.est-map-shell {
  position:relative;overflow:hidden;min-width:0;min-height:0;
  background:linear-gradient(180deg,#3d5447aa,#45513dcc),var(--estate-terrain) center/cover;
}
#estate-viewport {position:absolute;inset:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;}
#estate-viewport:active {cursor:grabbing;}
#estate-layer {
  position:absolute;left:0;top:0;transform-origin:0 0;
  background:#869355 var(--estate-terrain) center/100% 100% no-repeat;
  isolation:isolate;
}
.estate-ground,.est-rampart {pointer-events:none;position:absolute;}
.estate-ground {inset:0;}
.estate-object {
  position:absolute;display:block;transform:translate(-50%,-100%);padding:0;border:0;
  background:none;border-radius:18%;cursor:pointer;line-height:1;
  touch-action:none;-webkit-tap-highlight-color:transparent;
}
.estate-object::before {
  content:'';position:absolute;left:50%;bottom:0;width:100%;height:100%;min-width:var(--est-hit,44px);
  min-height:var(--est-hit,44px);transform:translateX(-50%);border-radius:20%;
}
.est-sprite,.est-thumb,.est-mini-sprite {
  display:block;background-image:url('./assets/estate-buildings.webp');
  background-repeat:no-repeat;background-size:400% 400%;
}
.est-sprite {position:absolute;inset:0;pointer-events:none;filter:drop-shadow(2px 4px 2px #34341959);}
.est-footprint {
  display:block;position:absolute;left:8%;bottom:0;width:84%;height:25%;
  border-radius:50%;pointer-events:none;
}
.estate-object[aria-pressed="true"] .est-footprint,.estate-object:focus-visible .est-footprint {
  border:3px solid #ffe29a;outline:3px solid #354a39;background:#e5cf633f;
}
@media (hover:hover) {
  .estate-object:hover .est-sprite {filter:drop-shadow(0 0 2px #fffbbc) drop-shadow(2px 4px 2px #34341966) brightness(1.08);}
  .estate-object:hover + .est-caption {display:block;z-index:calc(var(--caption-depth) + 2);}
}
.est-caption {
  display:none;position:absolute;z-index:var(--caption-depth);transform:translate(-50%,-3px);
  padding:4px 7px;white-space:nowrap;background:#324334ed;border:1px solid #d8c38a;color:#fff8df;
  font-size:.9375rem;font-weight:700;line-height:1.15;border-radius:4px;pointer-events:none;
}
.estate-object[aria-pressed="true"] + .est-caption {display:block;z-index:calc(var(--caption-depth) + 1);}
.estate-object:focus-visible + .est-caption {display:block;z-index:calc(var(--caption-depth) + 2);}
.keep-plot + .est-caption,.estate-object.empty + .est-caption {display:block;}
.keep-plot + .est-caption {transform:translate(-50%,-100%);}
.estate-object.land .est-footprint,.estate-object.site .est-footprint {
  width:72%;height:60%;left:14%;bottom:0;transform:rotate(-6deg) skewX(-30deg);
  background:repeating-linear-gradient(172deg,#b1aa7633 0 4px,#91865538 5px 7px),#827a5538;
  border:2px dashed #766e42;border-radius:16%;
}
.estate-object.empty .est-footprint,.estate-object.site .est-footprint {border-color:#ffe6a2;background-color:#775c355f;}
.est-survey {
  display:grid;place-items:center;position:absolute;left:50%;bottom:6px;transform:translateX(-50%);
  width:29px;height:29px;border:2px solid #d6cba7;border-radius:50% 50% 4px 4px;
  color:white;background:#45553d;font-size:23px;font-weight:600;box-shadow:0 2px 5px #272f1d5c;
}
.estate-object.locked .est-survey {width:23px;height:23px;color:#f8efcd;background:#656e52;font-size:18px;}
.est-scaffold {
  position:absolute;left:12%;right:12%;bottom:7%;height:37%;pointer-events:none;
  border:3px solid #815c37;border-top:4px solid #b98a50;
  background:
    repeating-linear-gradient(36deg,transparent 0 18px,#ad7d47 19px 22px,transparent 23px 36px),
    repeating-linear-gradient(141deg,transparent 0 19px,#8b663d 20px 23px,transparent 24px 36px),
    linear-gradient(0deg,#b792535c,#e4d2a016);
  transform:skewY(8deg);
}
.estate-object.site .est-scaffold {height:44%;bottom:9%;}
.est-scaffold i {position:relative;display:inline-block;width:3px;height:124%;margin:0 11%;background:#916536;top:-19%;}
.est-standard {position:absolute;left:9%;bottom:14%;height:28%;border-left:2px solid #755634;}
.est-standard:after {content:'';display:block;width:16px;height:9px;clip-path:polygon(0 0,100% 20%,62% 60%,100% 94%,0 88%);background:#276b58;}
.est-standard.banner-gold:after {background:linear-gradient(0deg,#caa055 0 37%,#41765a 38%);}
.growth-2 .est-footprint {box-shadow:0 1px 0 1px #a89462;}
.siege-gate .est-footprint {box-shadow:0 0 0 4px #c3633b,0 0 12px 6px #ad442a;background:#b35c2e55;}
.est-nameplate,.est-siege,.est-queue,.est-zoom {
  position:absolute;z-index:2;color:#fff9e7;background:#263c31ed;border:1px solid #bfaf84;
  border-radius:7px;box-shadow:0 2px 8px #27342330;
}
.est-nameplate {left:13px;top:13px;display:flex;align-items:center;gap:9px;padding:8px 13px;pointer-events:none;}
.est-nameplate>span {font-size:1.22rem;color:#e2cf92;}
.est-nameplate strong,.est-nameplate small {display:block;line-height:1.35;}
.est-nameplate strong {font-family:var(--serif);font-size:1.12rem;color:inherit;}
.est-nameplate small {font-size:.76rem;color:#e0dcc4;}
.est-siege {right:12px;top:12px;min-height:44px;background:#7b3b2b;padding:4px 9px;}
.est-queue {left:12px;bottom:12px;display:flex;align-items:center;gap:5px;min-height:44px;max-width:calc(100% - 170px);padding:6px 9px;font-size:.81rem;}
.est-queue span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.est-queue .timer {white-space:nowrap;color:#f7d89d;}
.est-zoom {right:12px;bottom:12px;display:flex;overflow:hidden;}
.est-zoom button {width:44px;padding:0;color:inherit;border-right:1px solid #8f9c8177;border-radius:0;}
.est-zoom button:last-child {border-right:0;}
.est-zoom button:hover {background:#415b46;}
.est-sheet {
  display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;
  background:var(--panel,#fdfbf3);border-left:1px solid #bcb59d;
}
.est-sheet-head {display:flex;align-items:flex-start;justify-content:space-between;gap:4px;flex:none;padding:13px 11px 12px 16px;border-bottom:1px solid #dfdacc;}
.est-sheet-head h2 {font-family:var(--serif);font-size:1.27rem;line-height:1.3;color:#263f35;}
.est-sheet-head small,.est-card-summary small {display:block;font-size:.77rem;color:#5b6e58;}
.est-close {width:44px;padding:0;margin:-4px -2px -3px 0;flex:none;color:#667463;}
.est-sheet-body {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scrollbar-width:thin;}
.est-card-summary {display:flex;align-items:center;gap:12px;margin:0 0 12px;}
.est-card-summary strong {font-size:1.15rem;color:#3a5140;}
.est-thumb {width:64px;height:58px;flex:none;}
.est-desc {color:#525c4c;font-size:.9rem;line-height:1.55;margin:0 0 12px;}
.est-stat {display:flex;justify-content:space-between;gap:8px;align-items:baseline;padding:5px 0;border-bottom:1px dotted #d9d6c6;font-size:.86rem;}
.est-stat span,.est-cost small {color:#64705e;}
.est-cost,.est-project {margin-top:14px;}
.est-cost strong {font-size:.85rem;}
.est-cost>div {display:flex;flex-wrap:wrap;gap:3px 9px;margin:.4rem 0;}
.est-cost small,.est-cost .resource-inline {font-size:.78rem;}
.est-project {font-size:.88rem;color:#53684e;}
.est-medical {display:flex;gap:5px;flex-wrap:wrap;margin-top:9px;}
.est-medical button {min-height:44px;font-size:.82rem;}
.est-sheet-actions {flex:none;display:flex;flex-wrap:wrap;gap:5px;padding:8px 12px;border-top:1px solid #ded9c7;}
.est-sheet-actions button {flex:1 1 auto;font-size:.87rem;min-height:44px;white-space:nowrap;}
.est-sheet-actions small {order:2;flex:1 1 100%;font-size:.76rem;color:#776647;}
.est-service {background:#e9e9d9;border:1px solid #cccfb9;border-radius:5px;padding:5px 10px;}
.est-service .icon {margin-right:4px;}
.est-register {padding:4px 8px;}
.est-register button {display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:5px;font-size:.88rem;border-bottom:1px solid #e4dfcb;}
.est-register small {display:block;font-size:.76rem;color:#6b745d;}
.est-register b {margin-left:auto;font-size:.75rem;color:#626c53;white-space:nowrap;}
.est-mini-sprite {width:44px;height:43px;flex-shrink:0;}
@media(max-width:760px) {
  .estate-scene {border-radius:6px;}
  .estate-tools {min-height:46px;padding:0 5px;gap:2px;}
  .estate-locate {flex:1 1 auto;gap:0;}
  .estate-locate>.icon {display:none;}
  .estate-locate select {flex:1;width:100%;font-size:.85rem;}
  .estate-tools [data-estate-manager],.estate-tools .action-btn {padding:2px 7px;white-space:nowrap;font-size:.81rem;}
  .estate-tools [data-estate-manager] .icon {display:none;}
  .has-estate-sheet .estate-workspace {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(150px,39%);}
  .est-sheet {border-left:0;border-top:1px solid #b6b29e;}
  .est-sheet-head {align-items:center;padding:2px 8px 1px 12px;}
  .est-sheet-head>div {display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;}
  .est-sheet-head h2 {font-size:1.04rem;}
  .est-sheet-head small {font-size:.74rem;}
  .est-close {margin:0;}
  .est-sheet-body {padding:7px 12px;}
  .est-card-summary {float:right;margin:0 0 4px 7px;gap:2px;}
  .est-thumb {width:37px;height:34px;}
  .est-card-summary strong {font-size:.81rem;}
  .est-card-summary small {display:none;}
  .est-desc {margin:0 0 4px;font-size:.82rem;}
  .est-stat {clear:both;font-size:.81rem;padding:2px 0;}
  .est-sheet-actions {gap:3px;padding:3px 7px;}
  .est-nameplate {left:7px;top:7px;padding:5px 8px;gap:5px;}
  .est-nameplate strong {font-size:.9rem;}.est-nameplate small {font-size:.72rem;}
  .est-siege {right:7px;top:7px;font-size:.77rem;}
  .est-queue {left:6px;bottom:6px;max-width:calc(100% - 153px);}
  .est-zoom {right:6px;bottom:6px;}
}
@media (orientation:landscape) and (max-height:500px) {
  .estate-tools {min-height:44px;padding-top:0;padding-bottom:0;}
  .has-estate-sheet .estate-workspace {grid-template-columns:minmax(0,1fr) minmax(215px,31%);grid-template-rows:minmax(0,1fr);}
  .est-sheet {border-left:1px solid #b6b29e;}
  .est-sheet-head {padding:2px 4px 2px 10px;}
}

/* Keep object labels readable as their anchors follow the scene. */
.est-caption {transform:translate(-50%,-3px) scale(var(--est-label-scale,1));transform-origin:center top;}
.keep-plot + .est-caption {transform:translate(-50%,-100%) scale(var(--est-label-scale,1));transform-origin:center bottom;}
.est-sheet-head {align-items:center;}
.est-sheet-head>div {min-width:0;flex:1;}
.est-sheet-head [data-estate-expand] {min-height:44px;padding:4px 7px;color:#344b3c;white-space:nowrap;font-size:.875rem;}
.est-sheet-body {scroll-padding-block:8px;}
.est-level {display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;}
.est-level strong {font-size:1.04rem;}
.est-level>span,.est-job-time {color:#425740;font-size:.9rem;}
.est-stat {align-items:baseline;font-size:.9rem;}
.est-stat strong {text-align:right;}
.est-cost-lines {display:grid;gap:3px;margin:8px 0;}
.est-cost-lines div {display:flex;align-items:baseline;justify-content:space-between;gap:6px;font-size:.875rem;}
.est-cost-lines dt {display:inline-flex;align-items:center;gap:4px;color:#344538;}
.est-cost-lines dd {margin:0;text-align:right;}
.est-cost-lines dd span {color:#52634e;}
.est-cost-lines dd em {display:block;font-style:normal;font-weight:600;color:#8b3523;}
.est-blocker {padding:4px 0;margin:0;color:#774624;font-size:.9rem;}
.est-sheet-actions {max-height:45%;overflow:auto;}
.est-sheet-actions button {white-space:normal;}
#est-extra {margin-top:9px;}
.est-manager-controls {padding:5px 12px;display:flex;gap:6px;border-bottom:1px solid #dfdacc;}
.est-manager-controls label {font-size:.83rem;color:#465744;min-width:0;flex:1;}
.est-manager-controls input,.est-manager-controls select {width:100%;min-width:0;height:44px;display:block;margin-top:2px;padding:4px 6px;border:1px solid #afbaaa;background:#fffcf6;color:#243c2f;border-radius:4px;font:inherit;}
.est-register button {min-height:48px;padding:6px 10px;font-size:.94rem;}
.est-register small,.est-register b {font-size:.83rem;color:#50614b;}
.est-no-match {padding:.5rem;line-height:1.5;}
@media(max-width:760px) and (orientation:portrait) {
  .has-estate-sheet .estate-workspace {grid-template-rows:minmax(0,1fr) minmax(158px,42%);}
  .has-estate-sheet.estate-expanded .estate-workspace {grid-template-rows:minmax(0,1fr) minmax(170px,62%);}
  .est-sheet-head>div {gap:4px 8px;}
  .est-sheet-head [data-estate-expand] {font-size:.86rem;}
  .est-sheet-body {padding:5px 12px;}
  .est-cost-lines {margin:4px 0;}
  .est-cost-lines div,.est-stat {font-size:.875rem;}
}
.estate-tools [data-estate-find] {width:44px;flex:none;color:#354c3c;padding:0;}
/* At large text sizes a fixed header and footer can leave only one line for
   costs. Scroll the expanded sheet as one page when its contents need room. */
@media(max-width:760px) and (orientation:portrait) {
  .estate-expanded .est-sheet:not(:has(.est-register)) {overflow-y:auto;overscroll-behavior:contain;}
  .estate-expanded .est-sheet:not(:has(.est-register)) .est-sheet-body {flex:1 0 auto;overflow:visible;}
  .estate-expanded .est-sheet:not(:has(.est-register)) .est-sheet-actions {max-height:none;overflow:visible;}
}
/* The ground anchor, opaque hit contour and footprint come from estate art metadata. */
.estate-object{transform:translate(var(--anchor-x,-50%),var(--anchor-y,-100%));pointer-events:none;border-radius:0}
.estate-object::before{content:none}
.estate-hit{position:absolute;inset:0;pointer-events:auto;clip-path:var(--hit-contour);z-index:4}
.estate-object.land .estate-hit,.estate-object.site .estate-hit{inset:auto 10% 0;height:max(85%,var(--est-hit));clip-path:polygon(45% 0,100% 35%,100% 80%,54% 100%,0 74%,0 35%)}
.estate-object.land .est-survey{pointer-events:none}
.est-footprint{left:50%;bottom:-1%;width:var(--ground-width);height:var(--ground-depth);transform:translateX(-50%);border-radius:0;z-index:2}
.estate-object.house .est-footprint,.estate-object.house[aria-pressed="true"] .est-footprint,.estate-object.house:focus-visible .est-footprint,.estate-object.house.guide-highlight .est-footprint{border:0;outline:0;box-shadow:none;background:transparent}
.estate-object.house[aria-pressed="true"] .est-footprint,.estate-object.house:focus-visible .est-footprint,.estate-object.house.guide-highlight .est-footprint{filter:drop-shadow(0 1px 1px #493812) drop-shadow(0 0 3px #ffe162)}
.estate-object.house[aria-pressed="true"] .est-footprint i,.estate-object.house:focus-visible .est-footprint i,.estate-object.house.guide-highlight .est-footprint i{display:block;position:absolute;inset:0;background:#ffe49a;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%,50% 0,50% 3px,5px 50%,50% calc(100% - 3px),calc(100% - 5px) 50%,50% 3px)}
.estate-object.empty .est-footprint,.estate-object.locked .est-footprint,.estate-object.site .est-footprint{left:13%;width:74%;height:60%;bottom:6%;transform:skewX(-26deg) rotate(-9deg);border-radius:8%}
.estate-object.empty .est-footprint,.estate-object.site .est-footprint{border:2px dashed #e8d7aa;background:repeating-linear-gradient(173deg,#b2a17155 0 3px,#8c795d55 5px 7px),#947d5496;box-shadow:0 1px 0 2px #6b624c75}
.estate-object.locked .est-footprint{opacity:.68}
.est-caption{padding:3px 8px 4px;color:#fcf3d5;background:#20382cee;border:1px solid #dab978;border-radius:2px 6px;box-shadow:0 2px 3px #201e1770;font:700 .9rem/1.25 var(--serif);letter-spacing:.015em;align-items:center;gap:4px}
.est-caption::after{content:'';position:absolute;left:calc(50% - 3px);bottom:-4px;width:6px;height:6px;transform:rotate(45deg);background:#23392b;border-bottom:1px solid #dab978;border-right:1px solid #dab978}
.est-caption .icon{width:1em;height:1em;color:#eace92;vertical-align:-1px;margin-right:3px}
.est-caption-level{display:none;font-size:.86em;white-space:nowrap}
.estate-object[aria-pressed=true]+.est-caption .est-caption-level,.estate-object:focus-visible+.est-caption .est-caption-level,.estate-object:hover+.est-caption .est-caption-level{display:inline}
.est-caption[hidden]{display:none!important}
@media(min-width:761px){
  .landmark-plot + .est-caption{display:block}
  .estate-object.empty .est-survey{display:none}
  .estate-object.empty + .est-caption{transform:translate(-50%,-100%) scale(var(--est-label-scale));transform-origin:center bottom}
}
.est-smoke{position:absolute;top:12%;left:40%;width:7%;height:12%;border-radius:50%;background:radial-gradient(ellipse,#ded9bf9a,transparent 68%);pointer-events:none;opacity:0}
@media(min-width:761px) and (prefers-reduced-motion:no-preference){
  .est-smoke{animation:forge-smoke 4.8s ease-out infinite}
  .est-standard::after{transform-origin:0 20%;animation:estate-banner 3.6s ease-in-out infinite alternate}
  @keyframes forge-smoke{0%{transform:translate(0,0) scale(.4);opacity:0}18%{opacity:.7}100%{transform:translate(17px,-25px) scale(2.2);opacity:0}}
  @keyframes estate-banner{0%,12%{transform:skewY(-4deg) scaleX(.85)}85%,100%{transform:skewY(5deg) scaleX(1)}}
}
.estate-minimap{position:absolute;z-index:2;right:16px;bottom:14px;width:clamp(108px,8.4vw,158px);aspect-ratio:1.54;padding:3px;color:#f0dc9c;background:#283a30;border:1px solid #ceae70;border-radius:6px 2px;box-shadow:0 2px 9px #17271ec0}
.est-mini-map{position:relative;display:block;overflow:hidden;width:100%;height:100%;border:1px solid #837850;border-radius:2px;background:linear-gradient(#75804b33,#253a2d33),var(--estate-terrain) center/100% 100%}
.est-mini-view{position:absolute;border:1px solid #fff3b4;box-shadow:0 0 0 90px #17291d69,inset 0 0 2px #102b18;pointer-events:none}
.est-mini-pin{position:absolute;width:3px;height:3px;border-radius:50%;background:#d0c38b;box-shadow:0 1px 1px #183325}
.est-mini-pin.keep,.est-mini-pin.active{width:6px;height:6px;border:1px solid #fff4be;background:#385747;transform:translate(-50%,-50%) rotate(45deg);border-radius:1px}
.est-mini-pin.active{background:#ffdd7a}
@media(min-width:761px) and (min-height:501px){
  .estate-scene{border:0;border-radius:0;--panel-width:clamp(320px,22vw,380px)}
  .estate-tools{position:absolute;inset:15px 16px auto auto;z-index:5;min-height:44px;border:1px solid #b89b66;background:#1f352ceb;color:#f3e7cb;border-radius:4px;box-shadow:0 2px 10px #25352645;padding:0 4px;gap:2px}
  .estate-locate,.estate-locate select,.estate-tools [data-estate-find]{color:#f4e9cf}
  .estate-locate{padding-left:6px}.estate-locate select{max-width:10.1rem}.estate-locate option{background:#f8f0db;color:#2d4030}
  .estate-tools .action-btn,.estate-tools button{white-space:nowrap;border:0;background:transparent;color:#f8e7bd;padding:3px 8px}
  .estate-tools [aria-expanded="true"],.estate-tools button:hover{background:#3b5140;color:#ffebbb}
  .has-estate-sheet .estate-workspace,.estate-workspace{display:block}
  .est-map-shell{position:absolute;inset:0}
  .estate-scene .est-sheet{position:absolute;top:76px;right:16px;width:var(--panel-width);height:min(650px,calc(100% - 162px));max-height:calc(100% - 162px);z-index:4}
  .est-nameplate,.est-queue{display:none}
  .est-siege{top:74px;left:16px;right:auto}
  .est-zoom{right:calc(28px + clamp(108px,8.4vw,158px));bottom:15px;gap:7px;background:transparent;border:0;box-shadow:none}
  .est-zoom button{height:44px;border-radius:50%;border:1px solid #c5a66a;background:#1a342cee;color:#f9d48c;box-shadow:0 2px 6px #242c1f80}
  .est-zoom button:last-child{border:1px solid #c5a66a}
}
@media(max-width:1150px),(max-height:570px){.estate-minimap{display:none}.est-zoom{right:12px}}
@media(min-width:761px) and (max-width:1050px) and (min-height:501px){
  .estate-tools{right:6px;top:12px}.estate-tools .action-btn,.estate-tools button{padding-inline:4px}
  .estate-locate select{width:108px}.estate-tools button .icon{display:none}
}
@media(min-width:761px) and (min-height:501px) and (max-height:740px){
  .estate-scene .est-sheet{top:68px;height:calc(100% - 138px);max-height:calc(100% - 138px)}
}
@media(max-width:760px){.estate-tools [data-estate-manager],.est-zoom button{min-height:44px}.estate-minimap{display:none}}
.est-padlock{position:relative;display:block;width:10px;height:8px;margin-top:4px;background:#eee8ce;border-radius:1px}
.est-padlock::before{content:'';position:absolute;bottom:5px;left:2px;width:6px;height:8px;border:1.7px solid #eee8ce;border-radius:50% 50% 0 0;box-sizing:border-box}
.estate-bridge{position:absolute;pointer-events:none;user-select:none;filter:drop-shadow(1px 3px 2px #36453d50)}
.estate-object.site .est-scaffold{height:58%;bottom:12%;background:
 repeating-linear-gradient(36deg,transparent 0 18px,#a37e4d 19px 21px,transparent 22px 36px),
 repeating-linear-gradient(141deg,transparent 0 19px,#805b38 20px 22px,transparent 23px 35px),
 linear-gradient(0deg,#aa91756b 15%,#c6b59b80 27%,transparent 28%)}
.estate-object.building + .est-caption,.estate-object.upgrading + .est-caption{display:block}

.estate-tools {background:#203b32;border-color:#ac966a;color:#fbf1db}
.estate-locate,.estate-locate select,.estate-tools [data-estate-find] {color:#fbf1db}
.estate-locate option {background:#f7f1e3;color:#203b32}
.estate-tools [data-estate-manager] {color:#f4e8c8}
.estate-tools [data-estate-manager]:hover,.estate-tools [aria-expanded=true] {background:#3c574a}
.estate-tools .action-btn {
  background:#e5cc91;color:#283c2c;border:1px solid #b89c62;border-radius:3px;
  box-shadow:inset 0 1px 0 #fbefce;font-weight:750;
}
.estate-tools .action-btn:hover:enabled {background:#f5dda1;color:#243a2b}
.estate-tools .action-btn:disabled {background:#36473a;color:#d0c7ac;box-shadow:none}
.estate-tools button:focus-visible,.est-zoom button:focus-visible {outline:2px solid #ffe19b;outline-offset:-3px}
.est-zoom {gap:0;padding:2px;background:#1b352df5;border:1px solid #ac966a;border-radius:5px;box-shadow:0 3px 11px #192a2266}
.est-zoom button,.est-zoom button:last-child {
  border:0;border-radius:3px;background:transparent;color:#fff0c9;box-shadow:none;
}
.est-zoom button + button {border-left:1px solid #c6b58145}
.est-zoom button:hover {background:#3a5345}
.est-caption {font-family:var(--sans);font-weight:650;background:#20382ef5;border-color:#baa575;border-radius:3px;padding:3px 7px}
.estate-object[aria-pressed=true] + .est-caption {
  color:#25382d;background:#efdaa2;border-color:#816b47;
}
.estate-object[aria-pressed=true] + .est-caption .icon {color:#5c5735}
.estate-object[aria-pressed=true] + .est-caption::after {background:#efdaa2;border-color:#816b47}
@media(min-width:761px) and (min-height:501px){
  .estate-tools {padding:3px;min-height:46px;border-radius:5px}
  .estate-tools button:not(.action-btn) {color:#f5e9cd}
  .estate-tools .action-btn {padding-inline:12px}
  .estate-scene .est-sheet {height:auto}
  .est-zoom {bottom:14px}
}
@media(max-width:760px){
  .estate-tools {padding-inline:7px;gap:3px}
  .estate-tools .action-btn {min-height:44px;padding-inline:11px}
  .estate-tools [data-estate-manager] {padding-inline:8px}
  .est-nameplate {border-radius:4px;box-shadow:0 2px 8px #192a2247}
}
