.home-edit-panel{--home-edit-ring:var(--disc-accent,#476b7b);padding-bottom:4px}.home-edit-panel .home-edit-intro{margin:0 0 16px;font-size:14px}.home-edit-panel .home-edit-fieldset{padding:0;margin:0;min-width:0;border:0}.home-edit-meta{display:grid;gap:12px;margin-bottom:16px}.home-edit-field{display:flex;flex-direction:column;gap:5px;font-weight:700}.home-edit-field>span{display:block}.home-edit-field small{font-weight:400;color:var(--disc-muted)}.home-edit-panel input,.home-edit-panel select,.home-edit-panel textarea{min-height:44px;width:100%;border:1px solid var(--disc-edge);border-radius:8px;background:var(--disc-paper);color:var(--disc-ink);font:inherit;padding:10px 12px;line-height:1.5}.home-edit-panel textarea{resize:vertical}.home-edit-panel :is(button,input,select,textarea,canvas):focus-visible{outline:3px solid var(--home-edit-ring);outline-offset:3px}.home-edit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--disc-soft);padding:5px;border:1px solid var(--disc-edge);border-radius:10px}.home-edit-tabs button{border:0;border-radius:6px;min-height:46px;font:inherit;font-weight:800;color:var(--disc-muted);background:transparent;cursor:pointer}.home-edit-tabs button[aria-selected=true]{color:var(--disc-ink);background:var(--disc-paper);box-shadow:0 1px 4px #0001}.home-edit-history{display:flex;gap:8px;align-items:center;margin:12px 0}.home-edit-history>span{margin-left:auto;color:var(--disc-muted);font-size:11px}.home-edit-panel .home-edit-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:9px 13px;border:1px solid var(--disc-edge);border-radius:8px;color:var(--disc-ink);background:var(--disc-paper);font:inherit;font-weight:700;line-height:1.4;cursor:pointer}.home-edit-panel .home-edit-button:hover:not(:disabled){background:var(--disc-tint)}.home-edit-panel .home-edit-button.is-primary{color:var(--disc-paper);background:var(--disc-accent);border-color:var(--disc-accent)}.home-edit-panel .home-edit-button.is-primary:hover:not(:disabled){filter:brightness(1.1)}.home-edit-panel :is(button,input,select,textarea):disabled{opacity:.5;cursor:wait}.home-edit-panel .home-edit-button:disabled{cursor:default}.home-edit-panel .is-selected{box-shadow:inset 0 0 0 2px var(--disc-accent);background:var(--disc-tint)}.home-edit-preview{overflow:hidden;border:1px solid var(--disc-edge);border-radius:10px;background:var(--disc-soft);margin-bottom:14px}.home-edit-preview canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.home-edit-options{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:14px}.home-edit-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.home-edit-help{margin:8px 0 12px;color:var(--disc-muted);font-size:12px;line-height:1.7}.home-edit-map-wrap{width:100%;height:360px;max-height:55vh;min-height:240px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;border:2px solid var(--disc-edge);border-radius:9px;background:var(--disc-soft);scrollbar-width:auto}.home-edit-panel .home-edit-map{display:block;min-width:768px;max-width:none;width:768px;height:576px;image-rendering:pixelated;touch-action:pan-x pan-y;cursor:crosshair}.home-edit-map-caption{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;font-size:11px;color:var(--disc-muted);margin-top:6px}.home-edit-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}.home-edit-selected>span{font-weight:700}.home-edit-selected>div{display:flex;gap:7px;flex-shrink:0}.home-edit-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.home-edit-panel .home-edit-furniture{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-height:63px;text-align:left;border:1px solid var(--disc-edge);border-radius:8px;background:var(--disc-paper);color:var(--disc-ink);font:inherit;font-weight:700;padding:8px;cursor:pointer}.home-edit-furniture small{font-weight:400;font-size:10px;color:var(--disc-muted)}.home-edit-note{font-size:11px;line-height:1.8;color:var(--disc-muted);margin:12px 0}.home-edit-status{min-height:45px;display:flex;align-items:center;border:1px solid var(--disc-edge);border-radius:8px;background:var(--disc-soft);padding:10px 12px;margin:16px 0 10px;line-height:1.6}.home-edit-status[data-kind=error]{border-color:#bb7256;color:var(--disc-ink);background:color-mix(in srgb,var(--disc-paper) 85%,#bc5639)}.home-edit-status[data-kind=success]{border-color:#739163}.home-edit-conflict{padding:12px;background:var(--disc-tint);border:1px solid var(--disc-edge);border-radius:8px}.home-edit-conflict p{margin:0 0 10px}.home-edit-conflict .home-edit-button{margin:0 6px 5px 0}.home-edit-actions{display:flex;flex-wrap:wrap;gap:8px}.home-edit-actions>.home-edit-button{flex:1 1 125px}.home-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--disc-edge);padding-top:14px;margin-top:16px}.home-edit-footer>span{font-size:10px;color:var(--disc-muted);text-align:right}.home-edit-panel fieldset:disabled .home-edit-map{cursor:wait;opacity:.7}@media(max-width:520px){.home-edit-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.home-edit-selected{align-items:flex-start;flex-direction:column}.home-edit-selected>div{width:100%}.home-edit-selected .home-edit-button{flex:1}.home-edit-history>span{font-size:10px}.home-edit-panel .home-edit-button{padding:9px 10px}.home-edit-map-wrap{height:360px;max-height:55vh}.home-edit-field>span{font-size:12px}.home-edit-field small{font-size:10px}.home-edit-footer{align-items:flex-start}}@media(prefers-reduced-motion:reduce){.home-edit-panel *{scroll-behavior:auto}}
#content-dialog.home-editor-dialog{width:min(1280px,calc(100vw - 32px));max-width:calc(100vw - 24px)}
.home-edit-panel :is(input,select,textarea,button),.home-edit-panel :is(.home-edit-tabs,.home-edit-preview,.home-edit-map-wrap,.home-edit-status,.home-edit-conflict){border-radius:0!important}
.home-edit-panel .home-edit-button,.home-edit-panel .home-edit-furniture{border-width:2px;box-shadow:2px 2px 0 var(--disc-edge)}
.home-edit-meta-shell{margin:0 0 14px;border:2px solid var(--disc-edge);padding:10px 12px;background:var(--disc-soft)}
.home-edit-meta-shell summary{min-height:28px;cursor:pointer;font-size:12px;color:var(--disc-muted)}
.home-edit-meta-shell .home-edit-meta{margin:12px 0 0;grid-template-columns:1fr 1fr}
.home-edit-preview{max-width:640px;margin-left:auto;margin-right:auto}
.home-edit-exterior-modes{display:flex;gap:8px;margin:0 0 12px}.home-edit-exterior-modes>button{flex:1}
.home-edit-template-shell,.home-edit-pixel-preview,.home-edit-image-shell{border:2px solid var(--disc-edge);background:var(--disc-soft);padding:10px;margin:12px 0}
.home-edit-template-shell>summary,.home-edit-pixel-preview>summary,.home-edit-image-shell>summary{min-height:36px;line-height:36px;font-weight:700;cursor:pointer}
.home-edit-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-edit-panel .home-edit-template{min-width:0;border:2px solid var(--disc-edge);background:var(--disc-paper);color:var(--disc-ink);font:inherit;padding:6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px}
.home-edit-template:hover{background:var(--disc-tint)}.home-edit-template canvas{display:block;width:120px;max-width:100%;height:auto;image-rendering:pixelated}.home-edit-template span{font-size:13px;font-weight:700}.home-edit-template small{font-size:10px;line-height:1.5;color:var(--disc-muted)}
@media(max-width:520px){.home-edit-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-edit-exterior-modes{flex-wrap:wrap}.home-edit-exterior-modes>button{flex-basis:140px}}
@media(max-width:600px){.home-edit-meta-shell .home-edit-meta{grid-template-columns:minmax(0,1fr)}}
/* 发布后自动规划: homestead preview under the exterior options. */
.home-lot-preview{margin:18px auto 6px;max-width:420px;padding:12px;background:#f1ead3;border:1px solid #cdbb8e;color:#4f4330}
.home-lot-preview figcaption{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;font-size:12px;line-height:1.7;color:#5b4a2e}
.home-lot-preview figcaption strong{font-size:13px;color:#3f3423}
.home-lot-preview canvas{display:block;width:100%;height:auto;image-rendering:pixelated;border:1px solid #b7a679}
