/* Owner editor and parcel detail: original photographs stay opaque and clean. */
/* The shared main overflow:hidden creates an unintended scrolling ancestor.
   Clip overflow without a scroll container so sticky previews follow the page. */
.dashboard-shell { overflow: visible; overflow: clip; }
.space-viewport { box-shadow: none; background: #050608; --space-preview-height: min(560px, calc(100dvh - 140px)); width: min(100%, 660px, calc(var(--space-preview-height) * var(--space-ratio, 1))); min-width: 0; min-height: 0; max-height: none; height: auto; align-self: start; position: sticky; top: 110px; scroll-margin-top: 110px; }
.space-editor-shell { align-items: start; }
.space-viewport .space-empty[hidden], .space-viewport .parcel-image[hidden] { display: none; }
.space-image-layer .parcel-image { filter: none; opacity: 1; }
.space-decoration-preview { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.space-decoration-tools { display: grid; gap: 16px; min-width: 0; margin: 5px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid rgba(180,175,255,.22); }
.space-decoration-tools legend { padding: 0 8px 0 0; color: #f4f2ff; font: 700 16px/1.4 Inter, sans-serif; }
.space-decoration-tools label { font: 500 12px/1.5 Inter, sans-serif; letter-spacing: 0; text-transform: none; }
.decoration-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.space-decoration-tools select { appearance: auto; min-height: 44px; width: 100%; padding: 10px 8px; border: 1px solid #55506f; border-radius: 0; background: #11111e; color: #f4f2ff; font: 500 12px/1.4 Inter, sans-serif; }
.space-decoration-tools select option { background: #11111e; color: #f4f2ff; }
.space-decoration-tools select[hidden] { display: none; }
.decoration-category { min-width: 0; border: 1px solid #37344e; background: #0d0e19; }
.decoration-category summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 48px; padding: 11px 12px; color: #f4f2ff; font: 600 12px/1.4 Inter, sans-serif; cursor: pointer; list-style: none; }
.decoration-category summary::after { content: "+"; margin-left: auto; color: #afa3ff; font-size: 20px; }
.decoration-category[open] summary::after { content: "−"; }
.decoration-category summary::-webkit-details-marker { display: none; }
.decoration-summary { color: #aca6c5; font: 400 11px/1.4 Inter, sans-serif; }
.decoration-category > .editor-help { padding: 0 12px 12px; font-size: 11px; }
.decoration-swatch-grid, .decoration-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 10px 12px; }
.decoration-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.decoration-swatch { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 44px; gap: 5px; padding: 4px 4px 8px; border: 1px solid #49435f; border-radius: 0; background: #141321; color: #cbc6df; cursor: pointer; font: 500 10px/1.3 Inter, sans-serif; letter-spacing: 0; text-transform: none; transition: border-color .16s, background .16s; }
.decoration-swatch:hover { border-color: #b1a1ff; background: #201d34; }
.decoration-swatch[aria-pressed=true] { border-color: #63efbd; box-shadow: inset 0 0 0 1px #63efbd; color: #fff; background: #172726; }
.decoration-swatch canvas { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; background: #17192e; }
.decoration-swatch span { overflow-wrap: anywhere; }
.decoration-colors { display: grid; gap: 12px; }
.decoration-color-label { display: grid; grid-template-columns: 1fr 60px; align-items: center; gap: 12px; }
.space-decoration-tools .decoration-animation-label { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.space-decoration-tools .decoration-animation-label input { width: 20px; height: 20px; margin: 0; accent-color: #a99cff; }
.space-decoration-tools input[type=color] { width: 60px; height: 44px; padding: 4px; border: 1px solid #55506f; background: #11111e; cursor: pointer; }
.space-decoration-tools .decoration-intensity-label { display: grid; grid-template-columns: auto minmax(30px, 1fr) 42px; }
.space-decoration-tools input[type=range], .space-editor-tools .edit-zoom { min-height: 44px; cursor: pointer; }
.decoration-reset { justify-self: start; min-height: 44px; padding: 8px 12px; border: 1px solid #55506f; background: transparent; color: #dad6f1; font: 500 12px/1.4 Inter, sans-serif; cursor: pointer; }
.decoration-preview-jump { display: none; }
.space-decoration-tools :is(button,select,input,summary):focus-visible { outline: 2px solid #60efbf; outline-offset: 3px; }
.space-decoration-tools :disabled { opacity: .55; cursor: not-allowed; }
.space-controls button { min-height: 44px; }
.space-review-preview { display: block; width: min(100%, 320px); height: auto; max-height: none; margin-top: 14px; border: 1px solid #55506f; background: #050608; }
@media (max-width: 720px) {
  .space-viewport { position: relative; top: auto; --space-preview-height: min(560px, 70dvh); }
  .decoration-preview-jump { display: block; position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #aaa0e2; background: #25213d; color: #f4f2ff; box-shadow: 0 5px 16px #050608b3; font: 600 12px/1.4 Inter, sans-serif; cursor: pointer; }
}
@media (max-width: 480px) {
  .decoration-options { grid-template-columns: 1fr; }
  .space-decoration-tools { padding-top: 14px; }
}
