:root { --acc: #0d9488; --accd: #0b7a70; --accbg: #e9f7f5 }
.chips { display: flex; border: 1px solid var(--line); background: var(--panel); flex-wrap: wrap }
.chips button { border: 0; border-right: 1px solid var(--line); background: none; padding: 12px 18px; font-weight: 600; color: var(--tx2); cursor: pointer; text-align: center }
.chips button:last-child { border-right: 0 } .chips button.on { background: var(--ink); color: #fff }
.chips small { display: block; font-weight: 500; font-size: 11.5px; color: var(--tx3) } .chips button.on small { color: #c9ced6 }
.stage { flex: 1; display: flex; flex-direction: column; padding: 22px; gap: 12px; min-width: 0; min-height: 0 }
.view { flex: 1; min-height: 320px; position: relative; overflow: hidden; background: #1a1d22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23222630'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23222630'/%3E%3C/svg%3E") }
.view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block }
.box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(10,12,16,.55); cursor: move; touch-action: none }
.box::before, .box::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, transparent 33.2%, rgba(255,255,255,.35) 33.3%, rgba(255,255,255,.35) 33.6%, transparent 33.7%, transparent 66.5%, rgba(255,255,255,.35) 66.6%, rgba(255,255,255,.35) 66.9%, transparent 67%) }
.box::after { background: linear-gradient(to bottom, transparent 33.2%, rgba(255,255,255,.35) 33.3%, rgba(255,255,255,.35) 33.6%, transparent 33.7%, transparent 66.5%, rgba(255,255,255,.35) 66.6%, rgba(255,255,255,.35) 66.9%, transparent 67%) }
.box .h { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--acc) }
.box .h.tl { left: -8px; top: -8px; cursor: nwse-resize } .box .h.br { right: -8px; bottom: -8px; cursor: nwse-resize }
.view .msg { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(20,22,26,.86); color: #fff; padding: 8px 14px; font-weight: 600; font-size: 13px; pointer-events: none }
.view .msg:empty { display: none }
.cbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap } .cbar .s { color: var(--tx2); font-size: 13px } .cbar .sp { flex: 1 }
.strip2 { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; flex: none }
.strip2 .it { flex: none; width: 130px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; position: relative; border-bottom: 3px solid transparent }
.strip2 .it.sel { border-bottom-color: var(--acc); background: var(--accbg) }
.strip2 .it .im { height: 76px; background: #eceef1 center/cover no-repeat }
.strip2 .it .t { padding: 5px 8px; font-size: 11.5px } .strip2 .it b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.strip2 .it span { font-family: var(--mono); color: var(--tx2); font-size: 11px }
.strip2 .it .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; background: rgba(20,22,26,.75); color: #fff; cursor: pointer; display: none }
.strip2 .it:hover .x { display: block }
.wh { display: flex; gap: 8px; align-items: end; margin-top: 10px } .wh label { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--tx2) } .wh input { width: 100%; margin-top: 4px } .wh span { padding-bottom: 9px; color: var(--tx3) }
.side .row input[type=range] { width: 100%; accent-color: var(--acc) }
.side .row input[type=color] { width: 48px; height: 32px; border: 1px solid var(--line); padding: 2px; background: #fff }
.go .btn { width: 100% }
.est .n { font-size: 21px }
