.xh-wrap{margin:.15rem 0 .4rem}
.xh-wrap *{box-sizing:border-box}
.xh-layout{display:grid;grid-template-columns:minmax(320px,44%) 1fr;gap:16px;align-items:start}
.xh-pane-left{align-self:stretch}
.xh-pane-left{display:flex;flex-direction:column;gap:16px}
.xh-sticky{position:sticky;top:72px;display:flex;flex-direction:column;gap:16px}
.xh-pane-right{display:flex;flex-direction:column;gap:16px;min-width:0}
.xh-card{background:#fff;border:1px solid #edf0f3;border-radius:14px;padding:16px;box-shadow:0 2px 10px rgba(20,40,70,.05)}
.xh-card-t{display:flex;align-items:center;font-size:14px;font-weight:700;color:#2b3038;margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #eef0f2}
.xh-card-t::before{content:"";width:5px;height:15px;border-radius:3px;background:linear-gradient(180deg,#ff7a00,#ff2d55);margin-right:9px}
.xh-stage{position:relative;background:#f6f8fa;border:1px solid #edf0f2;border-radius:14px;box-shadow:inset 0 1px 4px rgba(0,0,0,.04);display:flex;align-items:center;justify-content:center;min-height:320px;padding:18px;overflow:hidden;cursor:pointer;transition:.2s}
.xh-stage.drop-on{background:#eef7ff;border-color:#4a90d9}
.xh-stage canvas{max-width:100%;max-height:520px;display:block;border-radius:10px;background:transparent;cursor:grab;touch-action:none}
.xh-stage canvas.dragging{cursor:grabbing}
.xh-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9aa1ab;font-size:13px;text-align:center;line-height:1.9;pointer-events:none;padding:18px}
.xh-empty::before{content:"";display:block;width:58px;height:58px;margin:0 auto 16px;border:2px dashed #c9d2dc;border-radius:16px;background:rgba(255,255,255,.85)}
.xh-empty b{display:block;font-size:15px;color:#7b8494;margin-bottom:4px}
.xh-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:#8a929d;background:#fff;border:1px solid #edf0f2;border-radius:12px;padding:10px 14px;margin-top:12px;box-shadow:0 2px 10px rgba(20,40,70,.05)}
.xh-bar b{color:#333;font-weight:600}
.xh-weather-card{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px}
.xh-weather-card .xh-card-t,.xh-weather-card .xh-toggles{grid-column:1 / -1}
.xh-group{border:1px solid #edf0f3;border-radius:12px;padding:12px 13px;background:#fafbfc;display:flex;flex-direction:column;gap:11px;transition:.15s}
.xh-group .xh-sub{margin-bottom:0}
.xh-group.on{background:#fff7f0;border-color:#ffb37a;box-shadow:0 2px 10px rgba(255,122,0,.12)}
.xh-group.on .xh-sub{color:#ff7a00}
.xh-group.off{opacity:.5}
.xh-sun-group{grid-column:1 / -1}
.xh-duo{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.xh-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;flex-wrap:wrap}
.xh-row label{color:#555;flex-shrink:0;width:92px}
.xh-row select{border:1px solid #dfe4ea;border-radius:8px;padding:6px 9px;background:#fff;font-size:13px;color:#333;min-width:120px}
.xh-row input[type=range]{-webkit-appearance:none;appearance:none;flex:1;min-width:80px;height:5px;border-radius:5px;background:#e6eaef;outline:none}
.xh-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,#ff7a00,#ff2d55);border:2px solid #fff;box-shadow:0 1px 5px rgba(255,80,40,.35);cursor:pointer}
.xh-row input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,#ff7a00,#ff2d55);border:2px solid #fff;cursor:pointer}
.xh-row b{font-weight:600;color:#444;min-width:40px;text-align:center;font-size:12px;background:#f0f2f5;border-radius:7px;padding:3px 0}
.xh-check-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.xh-check{display:inline-flex;align-items:center;gap:8px;color:#555;font-size:13px;cursor:pointer;background:#f6f8fa;border:1px solid #eef0f2;border-radius:9px;padding:8px 11px}
.xh-row label.xh-check{width:auto}
.xh-check input{accent-color:#ff7a00;width:15px;height:15px;flex-shrink:0}
.xh-toggles{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.xh-toggle{position:relative}
.xh-toggle input{position:absolute;opacity:0;pointer-events:none}
.xh-toggle span{display:flex;justify-content:center;align-items:center;padding:9px 4px;border:1px solid #dfe4ea;border-radius:11px;background:#f6f8fa;font-size:12px;color:#555;cursor:pointer;transition:.15s}
.xh-toggle input:checked+span{background:linear-gradient(135deg,#ff7a00,#ff2d55);color:#fff;border-color:transparent;box-shadow:0 2px 8px rgba(255,80,40,.3)}
.xh-follow{display:inline-flex;align-items:center;margin-left:auto}
.xh-sticky.no-follow{position:static;top:auto}
.xh-follow input{position:absolute;opacity:0;pointer-events:none}
.xh-follow-sw{display:inline-flex;align-items:center;padding:5px 11px;border:1px solid #dfe4ea;border-radius:9px;background:#f6f8fa;font-size:12px;color:#555;cursor:pointer;transition:.15s}
.xh-follow input:checked+.xh-follow-sw{background:linear-gradient(135deg,#ff7a00,#ff2d55);color:#fff;border-color:transparent;box-shadow:0 2px 8px rgba(255,80,40,.3)}
.xh-sub{font-size:12px;font-weight:600;color:#99a1ab;letter-spacing:.02em;margin-bottom:2px}
.xh-half .xh-row{margin-bottom:13px}
.xh-half .xh-row:last-child{margin-bottom:0}
.xh-half .xh-check-row{margin-bottom:13px}
.xh-actions{display:flex;gap:10px;flex-wrap:wrap}
.xh-btn{flex:1;min-width:120px;border:none;border-radius:11px;padding:12px 0;font-size:15px;cursor:pointer;transition:.2s}
.xh-btn-main{background:linear-gradient(135deg,#ff7a00,#ff2d55);color:#fff;font-weight:600;box-shadow:0 3px 10px rgba(255,80,40,.28)}
.xh-btn-main:hover{opacity:.92}
.xh-btn:not(.xh-btn-main){background:#fff;border:1px solid #dfe4ea;color:#555}
.xh-progress{display:none;background:#e9edf2;border-radius:10px;height:28px;position:relative;overflow:hidden}
.xh-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#ff7a00,#ff2d55);transition:none}
.xh-progress span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:13px;font-weight:700;color:#ffff00;text-shadow:0 1px 2px rgba(0,0,0,.6),0 0 3px rgba(0,0,0,.4);letter-spacing:.02em;z-index:1}
.xh-result{text-align:center;display:none}
.xh-result img{max-width:100%;border-radius:12px;box-shadow:0 1px 8px rgba(0,0,0,.12);background:#fff}
.xh-result-bar{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px;flex-wrap:wrap}
.xh-result-bar a{flex:none;padding:10px 26px;text-decoration:none}
.xh-result-bar span{font-size:13px;color:#888}
.night .xh-card,.night .xh-stage,.night .xh-bar,.night .xh-group{background:#23262d;border-color:#3a3f4a}
.night .xh-group.on{background:#2e2722;border-color:#ff8a3d}
.night .xh-card-t{color:#e8eaed}
.night .xh-card-t{border-bottom-color:#333842}
.night .xh-sub{color:#9aa0aa}
.night .xh-row label,.night .xh-check{color:#bbb}
.night .xh-check{background:#2a2e37;border-color:#3a3f4a}
.night .xh-row select,.night .xh-btn:not(.xh-btn-main),.night .xh-toggle span{background:#23262d;border-color:#3a3f4a;color:#ccc}
.night .xh-toggle span{background:#2a2e37}
.night .xh-row b{color:#ddd;background:#333842}
.night .xh-row input[type=range]{background:#3a3f4a}
.night .xh-progress{background:#1c1f25}
@media (max-width:900px){
  .xh-layout{grid-template-columns:1fr;gap:14px}
  .xh-sticky{position:sticky;top:60px;gap:14px;z-index:20}
  .xh-preview-card{position:relative;z-index:20;background:#fff;box-shadow:0 4px 16px rgba(20,40,70,.12)}
  .xh-pane-left,.xh-pane-right{gap:14px}
  .xh-stage{min-height:210px;padding:14px}
  .xh-stage canvas{max-height:230px}
  .xh-weather-card{grid-template-columns:1fr;gap:13px;position:relative;z-index:1}
  .xh-toggles{grid-template-columns:repeat(3,1fr);gap:8px}
  .xh-duo{grid-template-columns:1fr;gap:14px;position:relative;z-index:1}
  .xh-row label{width:78px}
}
@media (max-width:480px){
  .xh-card{padding:14px}
  .xh-stage{min-height:190px}
  .xh-stage canvas{max-height:200px}
  .xh-row{gap:8px}
  .xh-row label{width:70px;font-size:12px}
  .xh-row b{min-width:36px}
  .xh-actions{gap:10px}
}
