.sp-section {
  --sp-ink:#24392f; --sp-muted:#617166; --sp-border:#d9dfd5; --sp-accent:#a94522;
  color:var(--sp-ink); min-width:0; width:100%; padding:0;
}
.sp-section *,.sp-dialog * { box-sizing:border-box }
.sp-heading,.sp-scopeline,.sp-card-head,.sp-dialog-head,.sp-dialog-foot,.sp-aside-actions,.sp-plan-foot,.sp-selection,.sp-inventory-head { display:flex; align-items:center; justify-content:space-between; gap:12px }
.sp-heading { margin:0 0 25px; flex-wrap:wrap }
.sp-heading h1 { font-size:clamp(2rem,3vw,3rem); letter-spacing:-.055em; line-height:1.05; margin:0 0 9px }
.sp-heading p,.sp-muted,.sp-note { color:var(--sp-muted,#617166); font-size:.94rem; margin:0; line-height:1.45 }
.sp-section button,.sp-dialog button,.sp-section select,.sp-dialog select,.sp-dialog input { font:inherit }
.sp-section button,.sp-dialog button { cursor:pointer }
.sp-section button:focus-visible,.sp-dialog :focus-visible,.sp-section select:focus-visible { outline:3px solid #bd693f; outline-offset:2px }
.sp-primary,.sp-secondary,.sp-link { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:36px; border-radius:8px; font-weight:650!important; line-height:1.1 }
.sp-primary { background:var(--sp-accent,#a94522); color:white; border:1px solid transparent; padding:12px 16px }
.sp-primary:hover { background:#8d381c }
.sp-primary:disabled { opacity:.65; cursor:wait }
.sp-secondary { color:var(--sp-ink,#24392f); border:1px solid var(--sp-border,#d9dfd5); background:#fff; padding:8px 12px }
.sp-secondary:hover,.sp-switch button:hover,.sp-child:hover,.sp-item:hover { background:#f0f3ed }
.sp-link,.sp-crumbs button { border:0; background:transparent; color:#294b38; padding:4px 3px; text-decoration:underline; text-underline-offset:3px; font-size:.86rem!important }
.sp-scopeline { min-height:48px; border-block:1px solid var(--sp-border); margin-bottom:18px; flex-wrap:wrap; padding:4px 0 }
.sp-crumbs,.sp-property-control { display:flex; align-items:center; gap:9px; flex-wrap:wrap }
.sp-crumbs { font-size:.86rem }
.sp-crumbs span[aria-current] { font-weight:650 }
.sp-crumbs span[aria-hidden] { color:#9ca59d }
.sp-property-control select { border:1px solid var(--sp-border); border-radius:6px; background:#fff; padding:6px 8px; color:var(--sp-ink); max-width:170px; font-size:.85rem }
.sp-accessible { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
.sp-layout { display:grid; grid-template-columns:minmax(0,1.95fr) minmax(230px,.85fr); gap:16px; align-items:start }
.sp-card { border:1px solid var(--sp-border); background:#fff; border-radius:14px; min-width:0; overflow:hidden }
.sp-card-head { min-height:76px; padding:16px 18px; flex-wrap:wrap }
.sp-card h2 { font-size:1.35rem; font-weight:680; letter-spacing:-.035em; margin:3px 0 0; line-height:1.25 }
.sp-card h3 { font-size:1rem; line-height:1.3; margin:0 }
.sp-kicker { font:600 .71rem/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.065em; text-transform:uppercase; color:var(--sp-muted) }
.sp-switch { background:#edf0ea; border:1px solid #e1e5dc; border-radius:9px; padding:3px; display:flex }
.sp-switch button { color:#536357; background:none; border:0; border-radius:6px; padding:7px 9px; font-size:.83rem; font-weight:650 }
.sp-switch button[aria-pressed=true] { background:#fff; color:#223c2a; box-shadow:0 1px 3px #2335291b }
.sp-board-scroll {
  min-width:0; overflow:auto; border-block:1px solid #dfe4d9;
  background-color:#f3f5ed; background-image:linear-gradient(#d3dbcd86 1px,transparent 1px),linear-gradient(90deg,#d3dbcd86 1px,transparent 1px);
  background-size:16px 16px;
}
.sp-drawing-area { padding:28px 30px 35px; min-height:305px; display:flex; flex-direction:column; align-items:center; justify-content:center }
.sp-board { position:relative; width:min(100%,var(--board-width)); aspect-ratio:var(--ratio); max-width:100%; min-width:1px; min-height:1px; border:2px solid #718574; border-radius:2px; background-color:rgba(255,255,255,.57); box-shadow:4px 4px 0 #64756825 }
.sp-measure { color:#556a59; margin:0 0 9px; font:600 .76rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; background:#f3f5ed; padding:3px 9px; border:1px solid #d1d9ca; border-radius:4px }
.sp-measure span { padding:0 2px; color:#7c8c7e }
.sp-board.sp-elevation { border:5px solid #7b806b; border-top-width:7px; background:repeating-linear-gradient(0deg,#f8f7f1 0 20px,#f1f1e8 20px 21px) }
.sp-tile { position:absolute; min-width:0; min-height:0; border:1.5px solid var(--tile-line,#688678); background:var(--tile-fill,#dbe6d9); border-radius:3px }
.sp-type-property,.sp-type-building { --tile-fill:#d7e5d7; --tile-line:#5f8167 }
.sp-type-room,.sp-type-zone { --tile-fill:#e3e8d4; --tile-line:#849367 }
.sp-type-rack,.sp-type-cabinet { --tile-fill:#e9d8bd; --tile-line:#a18661 }
.sp-type-shelf,.sp-type-drawer { --tile-fill:#e2dcc8; --tile-line:#8e866a }
.sp-type-bin { --tile-fill:#d3e3e5; --tile-line:#728d91 }
.sp-tile-open { display:flex; width:100%; height:100%; min-width:0; min-height:0; border:0; color:#304437; background:transparent; overflow:hidden; flex-direction:column; gap:3px; align-items:center; justify-content:center; font-weight:650!important; padding:0 2px; text-align:center }
.sp-tile-open>span:last-child { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(.7rem,1.1vw,.88rem) }
.sp-tile-mark { width:15px; height:11px; border:1.5px solid var(--tile-line); border-radius:1px; flex-shrink:1; min-height:0 }
.sp-type-rack .sp-tile-mark,.sp-type-shelf .sp-tile-mark { background:repeating-linear-gradient(0deg,transparent 0 3px,var(--tile-line) 3px 4px) }
.sp-type-bin .sp-tile-mark { border-top:3px solid var(--tile-line); border-radius:2px 2px 4px 4px }
.sp-tile:hover,.sp-tile:focus-within { z-index:2; box-shadow:inset 0 0 0 1px var(--tile-line) }
.sp-tile.is-selected { border:2px solid var(--sp-accent); z-index:3 }
.sp-handle { position:absolute; right:-4px; bottom:-4px; height:14px; width:14px; border:2px solid #fff; border-radius:2px; background:var(--sp-accent); cursor:nwse-resize!important; z-index:2 }
.sp-editing .sp-tile-open,.sp-editing .sp-handle { touch-action:none; user-select:none }
.sp-editing .sp-tile-open { cursor:grab }
.sp-editing .sp-tile-open:active { cursor:grabbing }
.sp-add-first { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); white-space:nowrap; padding:8px 10px; background:white; color:#395043; border:1px dashed #adbcae; border-radius:6px; font-size:.88rem!important }
.sp-plan-foot,.sp-selection { padding:11px 17px; font-size:.85rem; color:#5b695f; flex-wrap:wrap }
.sp-plan-foot .sp-link { flex-shrink:0 }
.sp-selection { border-top:1px solid var(--sp-border); color:var(--sp-ink); background:#faf9f2 }
.sp-selection>div { display:flex; align-items:center; gap:10px }
.sp-count { font-weight:650; font-size:.78rem; color:#386044; background:#eaf0e6; border:1px solid #d8e4d8; padding:5px 8px; border-radius:100px; white-space:nowrap }
.sp-child-list,.sp-inventory { border-top:1px solid var(--sp-border) }
.sp-child { display:flex; align-items:center; gap:10px; border:none; border-bottom:1px solid #eef0e9; background:#fff; padding:12px 16px; width:100%; text-align:left; color:var(--sp-ink) }
.sp-child strong,.sp-child small { display:block; overflow-wrap:anywhere }
.sp-child strong { font-size:.92rem }
.sp-child small { margin-top:3px; font-size:.78rem; color:var(--sp-muted) }
.sp-child-icon { display:grid; place-items:center; width:33px; height:33px; flex:none; background:var(--tile-fill); border:1px solid var(--tile-line); color:#53644f; border-radius:7px }
.sp-child>span:last-child { margin-left:auto; font-size:1.25rem; color:#829381 }
.sp-aside-actions,.sp-inventory { padding:13px 16px }
.sp-aside-actions { gap:8px; flex-wrap:wrap }
.sp-inventory-head { margin:0 0 5px }
.sp-item { display:flex; justify-content:space-between; gap:6px; width:100%; background:transparent; border:0; border-top:1px solid #edf0e7; text-align:left; color:var(--sp-ink); font-size:.9rem!important; padding:9px 3px }
.sp-child-list>.sp-muted { padding:16px }
.sp-inventory>.sp-muted { font-size:.85rem; margin-bottom:5px }
.sp-empty { padding:54px 24px; text-align:center; background:#f2f5ec; border:1px dashed #b7c4b3; border-radius:14px }
.sp-empty h2 { margin:10px 0; letter-spacing:-.03em }
.sp-empty p { color:var(--sp-muted); margin:0 auto 18px; max-width:36em }
.sp-empty-symbol { display:inline-grid; place-items:center; width:54px; height:54px; background:#e1e8d8; border-radius:12px }
.sp-dialog { width:min(440px,95vw); max-height:88vh; padding:22px; border:1px solid #d4dccf; border-radius:14px; background:#fff; color:#24392f; box-shadow:0 20px 60px #24392f30; overflow:auto }
.sp-dialog::backdrop { background:#182b2380 }
.sp-dialog-head h2 { margin:0; font-size:1.4rem; letter-spacing:-.04em }
.sp-dialog-head button { border:0; background:#f0f2ec; border-radius:5px; color:#546457; font-size:1.25rem; width:30px; height:30px }
.sp-dialog label { font-size:.86rem; font-weight:650; display:flex; flex-direction:column; margin:14px 0 0; gap:5px }
.sp-dialog input,.sp-dialog select { width:100%; border:1px solid #bdcabc; border-radius:6px; padding:8px 9px; color:#233b2d; background:#fff; font-weight:450 }
.sp-dialog .sp-note { margin-top:12px; font-size:.84rem }
.sp-form-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 12px }
.sp-form-error { color:#903a27; margin:10px 0; font-size:.84rem }
.sp-form-error:empty { display:none }
.sp-dialog-foot { margin-top:22px; justify-content:flex-end }
@media (max-width:920px) { .sp-layout { grid-template-columns:minmax(0,1.65fr) minmax(200px,1fr) } .sp-drawing-area { padding:20px 12px; min-height:250px } }
@media (max-width:760px) { .sp-layout { grid-template-columns:minmax(0,1fr) } .sp-heading { margin-bottom:16px } .sp-card-head { padding:13px 14px } .sp-drawing-area { min-height:230px } .sp-property-control { width:100%; margin-bottom:4px } .sp-plan-foot { padding:9px 13px } }
@media (max-width:400px) { .sp-heading .sp-primary { padding:9px 12px } .sp-tile-mark { display:none } }
