*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Arial,sans-serif}body{background:#e9ece4;color:#171a12;display:flex;flex-direction:column;align-items:center;padding:12px;gap:12px}body.dark{background:#14170f;color:#edf0e5}.tools{display:flex;gap:6px;max-width:560px;width:100%;min-height:36px;align-items:center}.tools button,.tools select{font:inherit;font-size:12px;border:1px solid #aeb4a3;border-radius:10px;min-height:34px;background:#fff;color:#171a12;padding:6px 10px;cursor:pointer}.tools select{flex:1;min-width:0}.dark .tools button,.dark .tools select{background:#25291f;color:#edf0e5;border-color:#48503b}.tools button[aria-pressed=true]{background:#e5f36a;color:#171a12}#device{position:relative;width:100%;max-width:440px;flex:1;min-height:0;max-height:956px;overflow:hidden;border-radius:24px;box-shadow:0 8px 50px #0002;background:#f7f8f2}.dark #device{background:#090b08}#viewport{height:100%;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}#viewport::-webkit-scrollbar{display:none}#canvas,#fixed,#dialog{position:relative;width:100%;line-height:0}#canvas>svg,#fixed>svg,#dialog>svg{display:block;width:100%;height:auto}#fixed{position:absolute;bottom:0;left:0;pointer-events:none}#fixed .hotspot{pointer-events:auto}.hotspot{position:absolute;display:block;margin:0;padding:0;border:0;border-radius:7px;background:transparent;color:transparent;cursor:pointer;touch-action:manipulation}.hotspot:focus-visible{outline:3px solid #668413;outline-offset:-3px;background:#e5f36a44}.show-hints .hotspot{background:#a9c80022;outline:1px dashed #778d29}.hotspot:active{background:#e5f36a22}#overlay{position:absolute;inset:0;background:#0007;z-index:5;display:grid;place-items:center;overflow:auto;padding:20px}#overlay[hidden]{display:none}#dialog{max-height:100%;flex-shrink:0}.loading{font-size:14px;line-height:1.5;padding:30px}#error{position:fixed;bottom:20px;background:#422;color:#fff;padding:16px;max-width:90%;border-radius:12px;z-index:10}@media(max-width:500px){body{padding:0;gap:0}.tools{padding:5px 8px;min-height:44px;background:#f7f8f2}.dark .tools{background:#090b08}#device{border-radius:0;max-height:none;max-width:440px;box-shadow:none}#device #canvas>svg{border-radius:0}.tools button,.tools select{font-size:11px;min-height:30px;padding:5px 7px}}
