:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#333;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f9f9f9;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:#fff;color:#333;min-height:100vh}.app{min-height:100vh;display:flex;flex-direction:column}.navbar{background:#fff;padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.nav-brand{color:#e94560;font-size:1.5rem;font-weight:700;text-decoration:none}.main-content{flex:1;padding:.5rem;margin:0;width:100%;box-sizing:border-box;overflow-x:auto}.comic-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-top:1.5rem}.comic-card{background:#fff;border-radius:12px;padding:1.5rem;cursor:pointer;transition:transform .2s,box-shadow .2s;border:1px solid #ddd}.comic-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #00000026}.comic-card h3{color:#e94560;margin-bottom:.5rem}.comic-card p{color:#666;font-size:.9rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s}.btn-primary{background:#e94560;color:#fff}.btn-primary:hover{background:#d63850}.btn-secondary{background:#666;color:#fff}.btn-secondary:hover{background:#555}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;color:#333}.form-group input,.form-group textarea,.form-group select{width:100%;padding:.75rem;border:1px solid #ccc;border-radius:8px;background:#fff;color:#333;font-size:1rem}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#e94560}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.page-header h1{font-size:2rem}.panel-editor{display:flex;gap:.75rem;align-items:flex-start;justify-content:flex-start;overflow-x:auto;width:100%}.chat-panel{width:400px;background:#f5f5f5;border-radius:12px;padding:1rem;border:1px solid #ddd;flex-shrink:0;display:flex;flex-direction:column;height:calc(100vh - 180px)}.chat-panel .chat-messages{flex:1;overflow-y:auto;margin-bottom:1rem;background:#fff;border-radius:8px;padding:.75rem;border:1px solid #ddd}.chat-panel .chat-message{margin-bottom:.75rem;padding:.5rem .75rem;border-radius:8px;font-size:.85rem;line-height:1.4}.chat-panel .chat-message.user{background:#e94560;color:#fff;margin-left:20%}.chat-panel .chat-message.assistant{background:#e8e8e8;color:#333;margin-right:20%}.chat-panel .chat-message img{max-width:100%;border-radius:4px;margin-top:.5rem}.chat-panel .chat-input-area{display:flex;flex-direction:column;gap:.5rem}.chat-panel .chat-input-area textarea{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:6px;resize:none;font-size:.85rem;font-family:inherit}.chat-panel .chat-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.canvas-container{flex:1;background:#fff;border-radius:12px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #ddd}.canvas-container img{max-width:100%;max-height:100%;object-fit:contain}.panel-overlay{position:absolute;border:2px solid #e94560;background:#e9456033;cursor:move;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.5rem;color:#fff;text-shadow:0 0 4px black}.panel-overlay:hover{background:#e945604d}.panel-overlay .resize-handle{position:absolute;width:12px;height:12px;background:#e94560;border-radius:50%}.panel-overlay .resize-handle.se{bottom:-6px;right:-6px;cursor:se-resize}.sidebar{width:600px;background:#f5f5f5;border-radius:12px;padding:1.5rem;overflow-y:auto;border:1px solid #ddd;flex-shrink:0}.sidebar h2{margin-bottom:1rem;color:#333}.panel-list-item{background:#fff;padding:1rem;border-radius:8px;margin-bottom:.5rem;cursor:pointer;border:1px solid #ddd}.panel-list-item.active{border:2px solid #e94560}.panel-list-item h4{margin-bottom:.25rem;color:#333}.panel-list-item small{color:#666}.modal-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;padding:2rem;border-radius:12px;width:90%;max-width:500px;border:1px solid #ddd}.modal h2{margin-bottom:1.5rem}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-top:1rem}.page-thumbnail{background:#fff;border-radius:8px;padding:.5rem;cursor:pointer;border:2px solid #ddd;transition:border-color .2s}.page-thumbnail:hover{border-color:#e94560}.page-thumbnail img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:4px}.page-thumbnail p{text-align:center;margin-top:.5rem;color:#666}
