:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#24262b;background:#f7f8fa;font-synthesis:none;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button,input,textarea,select,summary{outline-offset:4px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #5a6ca6}button{transition:background .16s,color .16s,opacity .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}.app{max-width:1080px;margin:0 auto;padding:0 36px 64px}.topbar{height:112px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e1e4e9}.brand{font-size:26px;font-weight:650;letter-spacing:-1.5px}.brand-dot{color:#58715f}.top-label{color:#797d87;font-size:14px}.transport{margin-left:auto;display:flex;padding:4px;border:1px solid #dfe3e9;border-radius:9px;background:#eceef2;gap:3px}.transport button{border:0;border-radius:6px;background:transparent;color:#6b707b;padding:8px 14px;font-size:14px}.transport button[aria-pressed=true]{background:#fff;color:#262a32;box-shadow:0 1px 4px #20293812}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;padding-top:42px}.editor{min-width:0}.mode-tabs{display:flex;gap:28px;border-bottom:1px solid #e1e4e9;margin-bottom:28px}.mode-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:0 1px 15px;color:#8a8e98;font-size:16px}.mode-tabs button[aria-selected=true]{color:#24262b;border-bottom-color:#24262b}fieldset{border:0;margin:0;padding:0;min-width:0}.upload{width:100%;min-height:226px;background:#fff;border:1px dashed #cfd4de;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:26px;color:#717887}.upload:hover,.upload.dragging{background:#f0f3f9;border-color:#7d8eab}.upload span{color:#3c424c;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload small{font-size:14px;color:#9095a0}.upload.has-image{min-height:166px}.image-tools{display:flex;justify-content:space-between;align-items:center;margin:16px 0 24px}.quiet{border:1px solid #dfe3e9;background:#fff;color:#4c5360;border-radius:7px;padding:7px 10px;font-size:14px}.quiet:hover{background:#eceff3}.check{display:flex;align-items:center;gap:7px;font-size:14px;color:#5b626e}.check input{width:16px;height:16px;accent-color:#3c5149}.slider-label{display:flex;flex-direction:column;gap:14px;margin-bottom:22px}.slider-label>span{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#626975}.slider-label output{font-variant-numeric:tabular-nums;color:#858b96}.slider-label input{accent-color:#374b41;width:100%;height:3px;margin:0}.settings{margin-top:24px;border-top:1px solid #e1e4e9;padding-top:18px}.settings summary{font-size:14px;color:#686f7b;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}.settings summary:after{content:"+";font-size:18px;color:#89909b}.settings[open] summary:after{content:"\2212"}.settings-body{padding-top:25px}.token-settings input,.text-fields input,.text-fields textarea{width:100%;border:1px solid #dde1e7;border-radius:8px;background:#fff;padding:12px 13px;color:#2d333b}.token-settings input{margin-top:15px;font-size:14px}.text-fields{display:grid;gap:10px}.text-fields textarea{min-height:220px;resize:vertical;line-height:1.6}.text-fields input::placeholder,.text-fields textarea::placeholder{color:#a1a6b0}.text-footer{display:flex;align-items:center;justify-content:space-between;color:#959aa4;font-size:14px}.text-footer select{appearance:none;border:0;background:transparent url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23858b96'/%3E%3C/svg%3E") no-repeat right center;padding:6px 20px 6px 0;font-size:14px;color:#646c79}.connection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px;font-size:14px;color:#6b7280}.actions{display:flex;gap:10px;margin-top:28px}.primary,.secondary{min-height:46px;border-radius:8px;padding:11px 20px;font-weight:550;border:1px solid #dce1e7}.primary{background:#293d34;color:#fff;border-color:#293d34;flex:1}.primary:hover:not(:disabled){background:#1d3026}.secondary{background:#fff;color:#4d5664}.secondary:hover:not(:disabled){background:#eef1f5}.status{min-height:32px;display:flex;align-items:flex-start;gap:8px;margin-top:16px;font-size:14px;line-height:1.5;color:#65776c}.status.error{color:#a84439}.status canvas{flex:0 0 20px;box-shadow:none;margin:0}.text-button{border:0;background:none;color:#707886;font-size:14px;padding:5px 0;text-decoration:underline;text-underline-offset:4px;margin-right:18px}.preview{min-width:0}.preview-meta{display:flex;justify-content:space-between;font-size:14px;color:#838995;margin:0 0 20px;min-height:25px;align-items:center}.preview-meta span:last-child{font-variant-numeric:tabular-nums}.paper-stage{display:flex;justify-content:center;align-items:flex-start;background:#eceef2;border-radius:12px;padding:32px 28px;min-height:490px;max-height:74vh;overflow:auto;scrollbar-width:thin}.paper-stage canvas{width:100%;max-width:384px;height:auto;background:#fff;box-shadow:0 5px 15px #20263213;image-rendering:pixelated;animation:paper-in .2s ease-out}.empty-paper{background:#fff;width:100%;max-width:280px;height:340px;display:grid;place-items:center;color:#c4c8cf;font-size:14px;box-shadow:0 3px 12px #2026320b}.dialog-shade{position:fixed;inset:0;background:#121b2c55;display:grid;place-items:center;padding:24px;backdrop-filter:blur(4px);z-index:10;animation:fade-in .15s ease-out}.dialog{background:#fff;border-radius:14px;padding:28px;width:100%;max-width:360px;box-shadow:0 25px 80px #0b162333}.dialog h2{font-size:20px;font-weight:600;margin:0 0 10px}.dialog p{font-size:14px;color:#808794;margin:0 0 26px}.dialog-actions{display:flex;gap:10px}.dialog-actions button{flex:1}progress{width:100%;height:4px;accent-color:#58715f;margin-top:18px}@keyframes paper-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media(max-width:760px){.app{padding:0 20px 36px}.topbar{height:85px;gap:10px}.workspace{grid-template-columns:1fr;gap:32px;padding-top:28px}.paper-stage{min-height:300px;max-height:60vh}.transport button{padding:7px 11px}.empty-paper{height:240px}.preview{grid-row:2}.top-label{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.image-sizing{display:grid;gap:18px;margin:0 0 24px}.image-sizing>label:first-child{display:grid;gap:9px;font-size:14px;color:#626975}.image-sizing select{width:100%;padding:10px 28px 10px 12px;border:1px solid #dfe3e9;border-radius:7px;background:#fff;color:#4c5360;font-size:14px}
