:root { --acc: #ea580c; --accd: #c2410c; --accbg: #fdf2ea }
.app { height: 100vh; height: 100dvh } #vStart { overflow: auto } #vWork { overflow: hidden }
.col { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel) } .bar .sp { flex: 1 }
.stage { flex: 1; position: relative; overflow: hidden; cursor: grab; touch-action: none } .stage:active { cursor: grabbing } .stage canvas { position: absolute; inset: 0 }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; font-size: 11.5px; color: var(--tx3); background: var(--panel); border-top: 1px solid var(--line); font-family: var(--mono) }
.ly { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 13px; cursor: pointer }
.ly i { width: 12px; height: 12px; flex: none } .ly span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .ly em { font-style: normal; color: var(--tx3); font-family: var(--mono); font-size: 12px }
#lays { max-height: 210px; overflow: auto }
.none { font-size: 13px; color: var(--tx3) } .fn { font-weight: 700; margin-bottom: 6px; word-break: break-word }
#info table { width: 100%; border-collapse: collapse; font-size: 12.5px } #info th { text-align: left; color: var(--tx2); font-weight: 600; padding: 4px 8px 4px 0; vertical-align: top; width: 38%; word-break: break-word } #info td { padding: 4px 0; word-break: break-word; border-bottom: 1px solid var(--line2) }
#info { max-height: 260px; overflow: auto }
.seg.v { flex-direction: column } .seg.v button { border-right: 0; border-bottom: 1px solid var(--line); text-align: left } .seg.v button:last-child { border-bottom: 0 }
.hint { font-size: 12px; color: var(--tx3); margin: 8px 0 0; line-height: 1.45 }
.go .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px } .go .row2 .btn { width: auto }
.stage canvas { display: block } .stage.pick canvas { cursor: crosshair }
.busy { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--tx2) } .drop.wait { opacity: .6; pointer-events: none }
#facts { width: 100%; border-collapse: collapse; font-size: 12.5px } #facts th { text-align: left; color: var(--tx2); font-weight: 600; padding: 4px 8px 4px 0; width: 36%; vertical-align: top } #facts td { padding: 4px 0; border-bottom: 1px solid var(--line2); word-break: break-word }
#legend div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0 } #legend i { width: 12px; height: 12px } #legend em { margin-left: auto; font-style: normal; color: var(--tx3); font-family: var(--mono); font-size: 11.5px }
#legend .bar { height: 10px; margin-top: 10px } #legend .ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--tx2) }
#legend:empty { display: none } #legend { margin-top: 10px }
.mlab { position: absolute; transform: translate(-50%, -140%); background: #facc15; color: #111; font-weight: 700; font-size: 12px; padding: 2px 6px; pointer-events: none; font-family: var(--mono) }
.mbox { position: absolute; left: 12px; top: 12px; background: rgba(17,24,39,.88); color: #e5e7eb; font-size: 12.5px; padding: 10px 12px; max-width: 360px; line-height: 1.5 } .mbox .dim { color: #9ca3af; font-size: 11.5px }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink) }
.rng { white-space: nowrap; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--tx2) } .rng input { flex: 1; accent-color: var(--acc) }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; background: var(--line); border-radius: 0; outline: none }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; background: var(--acc); border: 0; border-radius: 0; cursor: pointer }
input[type=range]::-moz-range-thumb { width: 12px; height: 20px; background: var(--acc); border: 0; border-radius: 0; cursor: pointer }
#legend label { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; cursor: pointer } #legend i { width: 14px; height: 4px }
.lay { display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--panel); border-top: 1px solid var(--line) } .lay input { flex: 1 } #layerN { font-family: var(--mono); font-size: 12.5px; color: var(--tx2); min-width: 210px; text-align: right }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px }
