*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#333;background:#f5f5f5}*:focus-visible{outline:3px solid #0066cc;outline-offset:2px}button,a,input,textarea{font:inherit}.app-shell{display:flex;flex-direction:column;height:100vh}.app-header{background:#06c;color:#fff;padding:0 1rem;display:flex;align-items:center;gap:1rem;min-height:60px;box-shadow:0 2px 4px #0000001a}.app-header h1{font-size:1.5rem;font-weight:600}.hamburger{background:transparent;border:none;color:#fff;font-size:1.5rem;cursor:pointer;padding:.5rem;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}.hamburger:hover{background:#ffffff1a;border-radius:4px}.file-drawer{position:fixed;top:60px;left:0;bottom:0;width:280px;background:#fff;border-right:1px solid #ddd;transform:translate(-100%);transition:transform .3s ease;z-index:100;overflow-y:auto;box-shadow:2px 0 4px #0000001a}.file-drawer.open{transform:translate(0)}.drawer-header{padding:1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}.drawer-header h2{font-size:1.1rem;font-weight:600}.upload-btn{background:#06c;color:#fff;padding:.5rem 1rem;border-radius:4px;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;justify-content:center;min-width:80px}.upload-btn:hover{background:#0052a3}.upload-btn:active{background:#004080}.upload-btn input[type=file]{display:none}[data-role=file-drawer]{list-style:none;padding:0}[data-role=file-drawer] li{display:flex;align-items:center;border-bottom:1px solid #f0f0f0}.file-item{flex:1;background:transparent;border:none;padding:.75rem 1rem;text-align:left;cursor:pointer;min-height:44px;transition:background .15s}.file-item:hover{background:#f5f5f5}.file-item:active{background:#e0e0e0}.delete-btn{background:transparent;border:none;cursor:pointer;padding:.5rem;min-width:44px;min-height:44px;font-size:1.2rem;color:#999;transition:color .15s}.delete-btn:hover{color:#d32f2f}.editor-area{flex:1;display:flex;flex-direction:column;overflow:hidden}[data-role=editor-host]{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#fff}.toolbar{padding:.5rem;border-bottom:1px solid #ddd;display:flex;gap:.5rem;background:#fafafa}.toolbar button{background:#06c;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;min-height:44px;min-width:80px;transition:background .15s}.toolbar button:hover{background:#0052a3}.toolbar button:active{background:#004080}.cm-editor{flex:1;overflow:auto;font-size:14px}.preview-pane{flex:1;overflow:auto;padding:1rem;border-left:1px solid #ddd}.preview-pane iframe{min-height:400px}.image-canvas{max-width:100%;height:auto;display:block;margin:1rem auto}.command-palette-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding-top:10vh}.command-palette{background:#fff;border-radius:8px;box-shadow:0 4px 20px #0000004d;width:90%;max-width:600px;overflow:hidden}.command-palette input{width:100%;padding:1rem;border:none;border-bottom:1px solid #ddd;font-size:1rem;min-height:52px}.command-palette ul{list-style:none;max-height:400px;overflow-y:auto}.command-palette li{padding:.75rem 1rem;cursor:pointer;min-height:44px;display:flex;align-items:center;transition:background .15s}.command-palette li:hover{background:#f5f5f5}.command-palette li.selected{background:#e3f2fd}@media (min-width: 720px){.hamburger{display:none}.file-drawer{position:static;transform:translate(0);box-shadow:none}.app-shell{flex-direction:row}.app-header{flex-direction:column;width:280px;min-height:0;padding:1rem}.editor-area{flex:1}[data-role=editor-host]{flex-direction:row}.preview-pane,.cm-editor{width:50%}}@media (hover: none) and (pointer: coarse){button,a,input[type=file]+span{min-height:44px;min-width:44px}}
