html,body{margin:0;padding:0;height:100%;width:100%}body{overflow-x:hidden;overscroll-behavior-y:none;-webkit-font-smoothing:antialiased}#root{min-height:100%;width:100%}.hw-studio{height:100vh;height:100dvh;background:#1a1a1a;color:#fff;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;padding:8px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}*{box-sizing:border-box}.hw-header{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"back title logo";align-items:center;background:#2d2d2d;padding:12px 15px;border-radius:8px;margin-bottom:10px;border:1px solid #444;gap:15px;flex-shrink:0}.hw-header-left{grid-area:back;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.hw-back-btn{background:rgba(0,255,255,.1);border:1px solid #00ffff;padding:10px 20px;border-radius:8px;color:#0ff;text-decoration:none;font-size:.9rem;font-weight:400;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:5px;width:fit-content;touch-action:manipulation;white-space:nowrap}.hw-back-btn:hover{background:rgba(0,255,255,.2);transform:translateY(-1px)}.hw-header-title{grid-area:title;text-align:center;justify-self:center}.hw-header-title h1{margin:0;font-size:1.4rem;background:linear-gradient(90deg,#00bfff,#00ffff);-webkit-background-clip:text;background-clip:text;color:transparent;text-transform:uppercase;letter-spacing:2px}.hw-header-title p{margin:5px 0 0;color:#ccc;font-size:.85rem;text-transform:uppercase;letter-spacing:1px}.hw-header-right{grid-area:logo;display:flex;align-items:center;justify-content:flex-end}.hw-logo{height:60px;width:auto;display:block}.hw-controls{display:flex;flex-direction:column;align-items:center;background:#2d2d2d;padding:10px 15px;border-radius:8px;margin-bottom:10px;border:1px solid #444;gap:10px;flex-shrink:0}.hw-status{width:100%;display:flex;justify-content:center;min-height:44px;align-items:center}.hw-status-message{padding:10px 15px;border-radius:4px;font-weight:500;text-align:center;width:100%;max-width:400px}.hw-status-error{background:#4a1a1a;color:#ff6b6b;border:1px solid #8b0000}.hw-actions{width:100%;display:flex;justify-content:center}.hw-action-buttons{display:flex;flex-wrap:wrap;gap:10px;width:100%;max-width:700px;justify-content:center}.hw-action-btn{flex:1 1 calc(50% - 5px);min-width:140px;padding:12px 20px;border:none;border-radius:8px;font-weight:600;font-size:.9rem;cursor:pointer;transition:all .3s ease;touch-action:manipulation;user-select:none;-webkit-user-select:none;position:relative;overflow:hidden;box-shadow:0 4px 6px #0000004d}.hw-action-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease;pointer-events:none}.hw-action-btn:hover:before{left:100%}.hw-action-btn:active{transform:translateY(2px);box-shadow:0 2px 4px #0000004d}.dbscan-btn{background:linear-gradient(135deg,#9370db 0%,#7b5db3 100%);color:#fff;border:1px solid rgba(255,255,255,.1)}.dbscan-btn:hover{background:linear-gradient(135deg,#a485e6 0%,#8c6ec4 100%);box-shadow:0 6px 12px #9370db66}.animate-btn{background:linear-gradient(135deg,#00ff7f 0%,#00cc66 100%);color:#000;border:1px solid rgba(255,255,255,.2);font-weight:700}.animate-btn:hover{background:linear-gradient(135deg,#1aff8f 0%,#00e673 100%);box-shadow:0 6px 12px #00ff7f66}.undo-btn{background:linear-gradient(135deg,#ffa500 0%,#ff8c00 100%);color:#fff;border:1px solid rgba(255,255,255,.1)}.undo-btn:hover{background:linear-gradient(135deg,#ffb31a 0%,#ffa01a 100%);box-shadow:0 6px 12px #ffa50066}.clear-btn{background:linear-gradient(135deg,#ff4444 0%,#cc3333 100%);color:#fff;border:1px solid rgba(255,255,255,.1)}.clear-btn:hover{background:linear-gradient(135deg,#ff5555 0%,#dd4444 100%);box-shadow:0 6px 12px #f446}.hw-action-btn:disabled{background:linear-gradient(135deg,#666 0%,#555 100%)!important;color:#aaa;cursor:not-allowed;opacity:.5;box-shadow:none!important}.hw-action-btn:disabled:before{display:none}.hw-action-btn:disabled:active{transform:none}.hw-content{display:grid;grid-template-columns:1fr;gap:12px;flex:1 1 auto;overflow:hidden;min-height:0;-webkit-overflow-scrolling:touch}.hw-left-panel,.hw-right-panel{background:#2d2d2d;border-radius:8px;padding:15px;border:1px solid #444;order:2}.hw-center-panel{background:#2d2d2d;border-radius:8px;padding:15px;border:1px solid #444;order:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.hw-panel-section{display:flex;flex-direction:column;height:100%}.hw-panel-header{margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid #333}.hw-panel-title{font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#0ff;margin:0}.hw-control-group{background:#1a1a1a;border:1px solid #333;border-radius:8px;margin-bottom:12px;overflow:hidden}.hw-group-header{padding:10px 12px;background:#222;border-bottom:1px solid #333}.hw-group-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#ccc}.hw-group-content{padding:12px}.hw-control-item{margin-bottom:12px}.hw-control-item:last-child{margin-bottom:0}.hw-control-label{margin-bottom:8px}.hw-control-label span{font-size:11px;color:#999;text-transform:uppercase;letter-spacing:.5px}.hw-arrow-control{display:flex;align-items:center;background:#0a0a0a;border:1px solid #333;border-radius:6px;overflow:hidden;height:40px}.hw-arrow-btn{background:transparent;border:none;color:#666;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;font-size:16px;padding:0;touch-action:manipulation}.hw-arrow-btn:hover:not(:disabled){background:#1a1a1a;color:#0ff}.hw-arrow-btn:disabled{opacity:.3;cursor:not-allowed}.hw-value-display{flex:1;text-align:center;font-size:14px;font-weight:600;color:#fff;font-family:SF Mono,Monaco,monospace}.hw-color-selector{margin-top:8px}.hw-color-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hw-color-btn{width:100%;aspect-ratio:1;min-height:40px;border:2px solid transparent;border-radius:6px;cursor:pointer;transition:all .2s;touch-action:manipulation}.hw-color-btn[data-color="#00ffff"]{background:#00ffff}.hw-color-btn[data-color="#ff44aa"]{background:#ff44aa}.hw-color-btn[data-color="#00ff7f"]{background:#00ff7f}.hw-color-btn[data-color="#ffa500"]{background:#ffa500}.hw-color-btn[data-color="#9370db"]{background:#9370db}.hw-color-btn[data-color="#ff6b6b"]{background:#ff6b6b}.hw-color-btn:active{transform:scale(.95)}.hw-color-active{border-color:#0ff;box-shadow:0 0 10px #00ffff80}.hw-tips-content{font-size:12px;color:#ccc;line-height:1.6}.hw-tips-content p{margin:0 0 8px;padding-left:4px}.hw-tips-content p:last-child{margin-bottom:0}.hw-canvas-container{display:flex;flex-direction:column;align-items:center;width:100%;gap:12px;flex:1 1 auto;min-height:0}.hw-canvas-container h3{margin:0;color:#00bfff;font-size:1rem}.hw-canvas-wrapper{position:relative;width:100%;max-width:900px;margin:0 auto;border:1px solid #333;flex:1 1 auto;min-height:0;max-height:100%;aspect-ratio:900 / 810}.hw-canvas{width:100%;height:100%;border-radius:8px;background:#1a1a1a;border:2px solid #333;transition:border-color .3s ease;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;cursor:crosshair;display:block}.hw-canvas-active{border-color:#f4a}.hw-canvas-demo-mode{cursor:pointer}.hw-canvas-hidden{display:none}.hw-demo-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;cursor:pointer;background:#000;border:2px solid #ff44aa;border-radius:8px}.hw-dev-btn-auto{background:linear-gradient(135deg,#9370db 0%,#7b5db3 100%)!important;border:1px solid #b19cd9!important}.hw-dev-btn-preview{background:linear-gradient(135deg,#00aa00 0%,#008800 100%)!important;border:1px solid #00ff00!important}.hw-dev-btn-download{background:linear-gradient(135deg,#ff6b00 0%,#ff5500 100%)!important;border:1px solid #ff8533!important}.hw-demo-controls{position:absolute;top:15px;left:50%;transform:translate(-50%);background:rgba(0,0,0,.85);padding:12px 20px;border-radius:20px;color:#00bfff;font-size:12px;text-align:center;border:1px solid rgba(0,191,255,.3);max-width:90%;z-index:5}.hw-demo-content{display:flex;flex-direction:column;align-items:center;gap:8px}.hw-demo-dots{display:flex;gap:6px;align-items:center}.hw-demo-dot{width:8px;height:8px;border-radius:50%;background:#444;transition:all .3s ease}.hw-demo-dot-active{background:#00ffff;width:10px;height:10px}.hw-demo-labels{display:flex;gap:15px;font-size:11px;color:#666}.hw-demo-labels span{transition:color .3s ease}.hw-demo-label-active{color:#0ff;font-weight:600}.hw-demo-instruction{color:#fff;font-weight:400;font-size:11px}.hw-start-drawing-btn{position:absolute;top:15px;right:15px;background:linear-gradient(135deg,#00ffff 0%,#0080ff 100%);padding:10px 20px;border-radius:20px;color:#000;font-size:14px;font-weight:600;border:2px solid rgba(255,255,255,.2);transition:all .3s ease;cursor:pointer;z-index:10;touch-action:manipulation}.hw-start-drawing-btn:active{transform:scale(.95)}.hw-canvas-info{margin:0;color:#00ff7f;font-weight:600;font-size:.9rem;text-align:center;min-height:24px;opacity:1;transition:opacity .3s ease}.hw-canvas-info-visible{opacity:1}.hw-loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;justify-content:center;align-items:center;z-index:1000}.hw-loading-spinner{display:flex;flex-direction:column;align-items:center;gap:15px;color:#fff;font-size:1rem;font-weight:600}.hw-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.2);border-top:4px solid #00bfff;border-radius:50%;animation:hw-spin 1s linear infinite}@keyframes hw-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.hw-studio{padding:10px}.hw-header{padding:12px 20px;margin-bottom:12px;gap:20px}.hw-back-btn{width:auto;max-width:none}.hw-header-title h1{font-size:1.6rem}.hw-header-title p{font-size:.9rem}.hw-logo{height:70px}.hw-controls{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"status actions empty";align-items:center;padding:12px 20px;margin-bottom:12px}.hw-status{grid-area:status;width:auto;min-width:200px;justify-self:start}.hw-actions{grid-area:actions;width:auto;justify-self:center}.hw-action-buttons{flex-wrap:nowrap;width:auto}.hw-action-btn{flex:0 1 auto;padding:12px 20px;font-size:.95rem}.hw-content{grid-template-columns:minmax(200px,240px) 1fr minmax(200px,240px);gap:15px}.hw-left-panel,.hw-right-panel{order:0;max-height:none;overflow-y:auto;overflow-x:hidden}.hw-center-panel{order:0}.hw-color-buttons{grid-template-columns:repeat(3,1fr);gap:8px}.hw-color-btn{min-height:36px}}@media screen and (min-width: 1024px){.hw-studio{padding:15px}.hw-header{padding:15px 25px;margin-bottom:15px}.hw-header-title h1{font-size:1.8rem}.hw-header-title p{font-size:.95rem}.hw-logo{height:80px}.hw-controls{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"status actions empty";align-items:center;padding:15px 25px;margin-bottom:15px}.hw-content{grid-template-columns:minmax(240px,280px) 1fr minmax(240px,280px);gap:20px}.hw-left-panel,.hw-right-panel,.hw-center-panel{padding:20px}.hw-panel-title{font-size:15px}.hw-control-group{margin-bottom:16px}.hw-group-header{padding:12px 16px}.hw-group-content{padding:16px}.hw-control-item{margin-bottom:16px}.hw-canvas-container h3{font-size:1.1rem}.hw-canvas-info{font-size:1rem}.hw-tips-content{font-size:13px}.hw-demo-controls{font-size:14px;padding:15px 30px;top:20px}.hw-demo-dots{gap:8px}.hw-demo-dot{width:10px;height:10px}.hw-demo-labels{gap:20px;font-size:12px}.hw-demo-instruction{font-size:12px}.hw-start-drawing-btn{padding:12px 24px;font-size:16px;top:20px;right:20px}}@media screen and (min-width: 1366px){.hw-studio{padding:20px}.hw-content{grid-template-columns:280px 1fr 280px}}@media (hover: none) and (pointer: coarse){.hw-action-btn,.hw-arrow-btn,.hw-color-btn,.hw-back-btn{min-height:44px}}.hw-canvas,.hw-action-btn,.hw-arrow-btn,.hw-color-btn{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hw-left-panel,.hw-right-panel{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}@media screen and (max-width: 767px),screen and (max-height: 500px) and (max-width: 1024px){.hw-studio{padding:0!important;position:relative}.hw-header,.hw-controls,.hw-left-panel,.hw-right-panel{display:none!important}.hw-content{display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;overflow:hidden!important}.hw-center-panel{width:100%!important;height:100%!important;padding:0!important;margin:0!important;border:none!important;border-radius:0!important;background:#1a1a1a!important}.hw-canvas-container{width:100%!important;height:100%!important;gap:0!important}.hw-canvas-container h3,.hw-canvas-info{display:none!important}.hw-canvas-wrapper{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:unset!important;border:none!important;border-radius:0!important;margin:0!important}.hw-canvas{width:100%!important;height:100%!important;border:none!important;border-radius:0!important}.hw-mobile-back{position:fixed!important;top:16px!important;left:16px!important;width:44px!important;height:44px!important;background:rgba(0,0,0,.7)!important;border:2px solid #00ffff!important;border-radius:50%!important;color:#0ff!important;font-size:20px!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;z-index:1000!important;text-decoration:none!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}.hw-mobile-back:active{transform:scale(.95)!important;background:rgba(0,255,255,.2)!important}.hw-mobile-color-picker{position:fixed!important;top:16px!important;right:16px!important;z-index:1000!important}.hw-mobile-color-current{width:44px!important;height:44px!important;border-radius:50%!important;border:3px solid #fff!important;cursor:pointer!important;box-shadow:0 2px 10px #00000080!important}.hw-mobile-color-current:active{transform:scale(.95)!important}.hw-mobile-color-options{position:absolute!important;top:52px!important;right:0!important;background:rgba(0,0,0,.85)!important;border-radius:12px!important;padding:10px!important;display:none!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;border:1px solid #444!important}.hw-mobile-color-options.hw-mobile-color-options-open{display:grid!important}.hw-mobile-color-option{width:40px!important;height:40px!important;border-radius:50%!important;border:2px solid transparent!important;cursor:pointer!important}.hw-mobile-color-option:active{transform:scale(.9)!important}.hw-mobile-color-option.hw-mobile-color-option-active{border-color:#fff!important;box-shadow:0 0 0 2px #ffffff80!important}.hw-mobile-toolbar{position:fixed!important;bottom:24px!important;right:20px!important;z-index:1000!important}.hw-mobile-toolbar-toggle{width:56px!important;height:56px!important;border-radius:50%!important;background:linear-gradient(135deg,#00bfff 0%,#0080ff 100%)!important;border:none!important;color:#fff!important;font-size:24px!important;cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 4px 20px #00bfff66!important;transition:transform .2s ease,background .2s ease!important}.hw-mobile-toolbar-toggle:active{transform:scale(.95)!important}.hw-mobile-toolbar-toggle.hw-mobile-toolbar-toggle-open{background:linear-gradient(135deg,#ff4444 0%,#cc3333 100%)!important;box-shadow:0 4px 20px #f446!important}.hw-mobile-toolbar-menu{position:absolute!important;bottom:70px!important;right:0!important;display:none!important;flex-direction:column!important;gap:10px!important;padding:12px!important;background:rgba(0,0,0,.9)!important;border-radius:16px!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;border:1px solid #444!important;min-width:140px!important}.hw-mobile-toolbar-menu.hw-mobile-toolbar-menu-open{display:flex!important}.hw-mobile-toolbar-btn{display:flex!important;align-items:center!important;gap:10px!important;padding:12px 16px!important;border:none!important;border-radius:12px!important;font-size:15px!important;font-weight:600!important;cursor:pointer!important;white-space:nowrap!important;transition:transform .1s ease!important}.hw-mobile-toolbar-btn:active{transform:scale(.95)!important}.hw-mobile-toolbar-btn-icon{font-size:18px!important}.hw-mobile-toolbar-btn.hw-mobile-btn-patterns{background:linear-gradient(135deg,#9370db 0%,#7b5db3 100%)!important;color:#fff!important}.hw-mobile-toolbar-btn.hw-mobile-btn-animate{background:linear-gradient(135deg,#00ff7f 0%,#00cc66 100%)!important;color:#000!important}.hw-mobile-toolbar-btn.hw-mobile-btn-undo{background:linear-gradient(135deg,#ffa500 0%,#ff8c00 100%)!important;color:#fff!important}.hw-mobile-toolbar-btn.hw-mobile-btn-clear{background:linear-gradient(135deg,#ff4444 0%,#cc3333 100%)!important;color:#fff!important}.hw-mobile-toolbar-btn:disabled{opacity:.4!important;cursor:not-allowed!important}.hw-demo-controls,.hw-start-drawing-btn{display:none!important}}@media screen and (min-width: 768px) and (min-height: 501px){.hw-mobile-back,.hw-mobile-color-picker,.hw-mobile-toolbar{display:none!important}}.hw-tips-btn{width:100%;padding:10px 12px;background:#1a1a1a;border:1px solid #333;border-radius:8px;color:#ccc;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .2s ease}.hw-tips-btn:hover{background:#222;border-color:#0ff;color:#0ff}.hw-tips-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:25vh}.hw-tips-modal-content{position:relative;background:#1e1e2e;border:1px solid #444;border-radius:12px;width:320px;max-width:90vw;box-shadow:0 8px 32px #00000080;animation:hw-tips-fadein .15s ease-out}@keyframes hw-tips-fadein{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.hw-tips-modal-header{padding:14px 16px;border-bottom:1px solid #333}.hw-tips-modal-title{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#0ff}.hw-tips-modal-close{position:absolute;top:-12px;right:-12px;background:#1e1e2e;border:2px solid #ff4444;color:#f44;font-size:14px;font-weight:700;cursor:pointer;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;transition:all .2s ease}.hw-tips-modal-close:hover{background:#ff4444;color:#fff}.hw-tips-modal-body{padding:14px 16px}.hw-tips-modal-body p{margin:0 0 10px;font-size:13px;color:#ccc;line-height:1.5;padding-left:4px}.hw-tips-modal-body p:last-child{margin-bottom:0}
