:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--bg: #f3efe7;--bg-alt: #e8dcc9;--panel: rgba(255, 252, 246, .82);--panel-border: rgba(72, 55, 34, .14);--text: #1c1917;--muted: #6f6256;--accent: #b85c38;--accent-dark: #8f4528;--shadow: 0 24px 60px rgba(69, 43, 18, .14)}html{height:100%;background:radial-gradient(circle at top left,rgba(184,92,56,.18),transparent 38%),radial-gradient(circle at bottom right,rgba(143,69,40,.16),transparent 34%),linear-gradient(145deg,#f3efe7,#e8dcc9)!important;background-attachment:fixed!important}body{min-height:100vh;margin:0!important;padding:0;color:var(--text);background:none!important;background-color:transparent!important}button,input,select{font:inherit}button{border:0;border-radius:999px;padding:.95rem 1.3rem;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;font-weight:700;cursor:pointer;box-shadow:0 14px 30px #b85c383d}button:disabled{opacity:.55;cursor:not-allowed}.app-shell{max-width:1380px;margin:0 auto;padding:2rem}.hero-card,.panel{border:1px solid var(--panel-border);background:var(--panel);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--shadow)}.hero-card{border-radius:28px;padding:1.6rem 1.8rem;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}.eyebrow{margin:0 0 .45rem;text-transform:uppercase;letter-spacing:.18em;color:var(--accent-dark);font-size:.78rem;font-weight:800}h1,h2,h3,p{margin-top:0}h1{margin-bottom:.7rem;font-size:clamp(2rem,4vw,3.6rem);line-height:.98;max-width:12ch}.hero-copy{margin-bottom:0;max-width:60ch;color:var(--muted);font-size:1.03rem}.status-chip,.dimension-pill{border-radius:999px;padding:.75rem 1rem;background:#ffffffb8;border:1px solid rgba(72,55,34,.12);color:var(--muted);white-space:nowrap}.workspace-grid{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:1.4rem}.panel{border-radius:26px;padding:1.25rem}.controls-panel{display:flex;flex-direction:column;gap:1rem}.field{display:flex;flex-direction:column;gap:.45rem;font-weight:700}.field span{color:var(--muted)}.field-help{color:var(--muted);font-weight:500;line-height:1.35}.signature-source{display:grid;grid-template-columns:72px 1fr;gap:.9rem;align-items:center;padding:.9rem;border-radius:18px;border:1px solid rgba(72,55,34,.16);background:#ffffffb8;cursor:grab;-webkit-user-select:none;user-select:none}.signature-source:active{cursor:grabbing}.signature-source img{width:72px;height:72px;object-fit:contain;border-radius:14px;background:#ffffffe6;border:1px solid rgba(72,55,34,.08)}.signature-source strong,.signature-source span{display:block}.signature-source strong{margin-bottom:.25rem}.signature-source span{color:var(--muted);font-weight:500;line-height:1.35}.field input[type=file],.field input[type=range],.field select{width:100%}.field input[type=file],.field select{border-radius:16px;border:1px solid rgba(72,55,34,.16);padding:.85rem .95rem;background:#ffffffb8}.navigation-row{display:grid;grid-template-columns:auto 1fr auto;gap:.5rem;align-items:center}.nav-button{padding:.75rem 1rem;font-size:.95rem;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;border:0;border-radius:10px;cursor:pointer;font-weight:600}.nav-button:disabled{opacity:.4;cursor:not-allowed}.page-select{width:100%;padding:.75rem .95rem;border-radius:10px;border:1px solid rgba(72,55,34,.16);background:#ffffffb8;font-weight:600;cursor:pointer}.delete-button{width:100%;padding:.85rem 1rem;margin-top:.5rem;background:#ff6347f2;border:0;border-radius:12px;color:#fff;font-weight:700;cursor:pointer;box-shadow:0 4px 12px #ff634733}.delete-button:hover{background:#ff4529}.action-row{display:flex;gap:.75rem;flex-wrap:wrap}.error-box,.tip-box{border-radius:18px;padding:.95rem 1rem}.error-box{margin:0;color:#7e1c1c;background:#ffddddd9;border:1px solid rgba(126,28,28,.16)}.tip-box{background:#ffffff8f;border:1px solid rgba(72,55,34,.1);color:var(--muted)}.tip-box strong{display:block;margin-bottom:.5rem;color:var(--text)}.tip-box p{margin-bottom:.35rem}.preview-panel{min-height:76vh;display:flex;flex-direction:column;gap:1rem}.preview-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.preview-header h2{margin-bottom:.25rem}.preview-header p{margin-bottom:0;color:var(--muted)}.preview-wrap{flex:1;overflow:auto;padding:1.5rem;border-radius:22px;background:#ffffff57;border:1px dashed rgba(72,55,34,.15)}.pdf-pages-scroll{display:flex;flex-direction:column;gap:2rem;align-items:flex-start}.pdf-page-container{width:100%;display:flex;flex-direction:column;gap:.75rem}.page-number{margin:0;padding:.5rem 1rem;font-size:.9rem;color:var(--muted);font-weight:600;text-align:center}.canvas-stage{position:relative;display:inline-block;max-width:100%}.canvas-stage canvas{display:block;border-radius:16px;background:#fff;box-shadow:0 10px 30px #432b112e;cursor:crosshair}.stamp-overlay{position:absolute;border:2px solid rgba(184,92,56,.95);background:#fff6;box-shadow:0 10px 24px #432b1138,inset 0 0 0 1px #ffffff8c;pointer-events:auto;border-radius:10px;overflow:hidden;touch-action:none;cursor:grab;display:flex;align-items:stretch;justify-content:stretch}.stamp-overlay.is-selected{border-color:#8f4528;box-shadow:0 12px 28px #432b1147,0 0 0 2px #b85c382e}.stamp-overlay:active{cursor:grabbing}.stamp-overlay img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;-webkit-user-select:none;user-select:none}.stamp-resize-handle{position:absolute;right:0;bottom:0;width:18px;height:18px;padding:0;border:0;border-radius:10px 0 0;background:linear-gradient(135deg,#b85c38,#8f4528);cursor:se-resize;box-shadow:0 0 0 1px #ffffff80}.stamp-resize-handle:after{content:"";position:absolute;right:4px;bottom:4px;width:7px;height:7px;border-right:2px solid rgba(255,255,255,.9);border-bottom:2px solid rgba(255,255,255,.9);opacity:.95}.empty-state{min-height:52vh;display:grid;place-items:center;text-align:center;color:var(--muted)}.empty-state h3{margin-bottom:.4rem;color:var(--text)}@media(max-width:980px){.hero-card,.workspace-grid{grid-template-columns:1fr;display:grid}.hero-card{align-items:flex-start}.preview-panel{min-height:58vh}}@media(max-width:640px){.app-shell{padding:1rem}.hero-card,.panel{border-radius:22px}h1{font-size:2.2rem}}*{box-sizing:border-box}html,body,#root{min-height:100%}
