:root{color-scheme:light;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100vh;background:#f5f0eb;color:#333}.app{min-height:100vh;display:flex;flex-direction:column}.header{text-align:center;padding:1.25rem 1rem .75rem;background:#fff;border-bottom:2px solid #e0d6cc}.header h1{margin:0;font-size:1.75rem;font-weight:700;color:#2c2c2c;letter-spacing:-.02em}.subtitle{margin:.25rem 0 0;font-size:.9rem;color:#888}.layout{display:flex;flex:1;min-height:0}.sidebar{width:240px;background:#fff;border-right:2px solid #e0d6cc;padding:1rem;display:flex;flex-direction:column;gap:1rem;overflow-y:auto}.section h2{margin:0 0 .5rem;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#999}.palette{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.color-btn{width:100%;aspect-ratio:1;border:3px solid transparent;border-radius:8px;cursor:pointer;transition:transform .1s,border-color .15s;padding:0}.color-btn:hover{transform:scale(1.1)}.color-btn.active{border-color:#333;transform:scale(1.1);box-shadow:0 0 0 2px #fff,0 0 0 4px #333}.selected-preview{display:flex;align-items:center;gap:8px;margin-top:.5rem;font-size:.85rem;color:#666}.preview-swatch{width:28px;height:28px;border-radius:6px;border:2px solid #ccc}.page-list{display:flex;flex-direction:column;gap:4px}.page-btn{background:#f5f0eb;border:2px solid transparent;border-radius:8px;padding:.5rem .75rem;font-size:.9rem;cursor:pointer;text-align:left;transition:background .15s,border-color .15s}.page-btn:hover{background:#ebe4db}.page-btn.active{background:#333;color:#fff;border-color:#333}.tools{display:flex;flex-direction:column;gap:4px}.tool-btn{background:#f5f0eb;border:2px solid #e0d6cc;border-radius:8px;padding:.5rem .75rem;font-size:.85rem;cursor:pointer;transition:background .15s}.tool-btn:hover{background:#ebe4db}.progress{margin-top:auto;font-size:.8rem;color:#aaa;text-align:center;padding-top:.5rem;border-top:1px solid #e0d6cc}.canvas-area{flex:1;display:grid;place-items:center;padding:2rem;background:#eae5df}.canvas-area svg{filter:drop-shadow(0 2px 12px rgba(0,0,0,.08));border-radius:12px}@media(max-width:700px){.layout{flex-direction:column}.sidebar{width:100%;flex-direction:row;flex-wrap:wrap;border-right:none;border-bottom:2px solid #e0d6cc;padding:.75rem;gap:.75rem}.section{flex:1;min-width:140px}.palette{grid-template-columns:repeat(6,1fr)}.canvas-area{padding:1rem}}
