:root{--bg: #efefed;--surface: #fbf8f4;--surface-strong: #ffffff;--surface-2: #f3ece4;--surface-3: #f8f2ec;--border: #e9ddd1;--border-strong: #dfcdbf;--text: #29231f;--muted: #746a62;--primary: #d36b46;--primary-hover: #bd5836;--primary-soft: #f7e9df;--success: #3e704d;--success-soft: #e8f3e9;--danger: #b74a37;--stage: #f5f1ec;--checker-a: #ffffff;--checker-b: #ece8e3;--radius: 16px;--shadow: 0 18px 45px rgba(54, 42, 34, .08), 0 2px 8px rgba(54, 42, 34, .05);color-scheme:light;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;line-height:1.45;color:var(--text)}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100%}body{background:var(--surface);-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer;background:none;border:0}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}:focus-visible{outline:3px solid rgba(211,107,70,.28);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{color:var(--primary);font-size:12px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.app-frame{height:100vh;height:100dvh}.app{height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:0;border-radius:0;box-shadow:none}.topbar{min-height:72px;padding:0 24px;display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);align-items:center;gap:24px;flex-shrink:0}.brand{grid-column:1;display:inline-flex;align-items:center;gap:13px;width:max-content;font-size:22px;font-weight:760}.brand-mark{color:var(--primary);flex:none}.topbar-actions{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;font-size:14px}.topbar-link{height:42px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border:1px solid transparent;border-radius:999px;font-weight:650;white-space:nowrap;transition:color .15s,background .15s,border-color .15s}.topbar-link:hover{color:var(--text);background:var(--surface-2)}.topbar-link.active{color:#91543d;background:var(--primary-soft)}.flow-steps{grid-column:2;list-style:none;display:flex;align-items:center}.flow-steps li{display:flex;align-items:center;gap:9px;color:#948a81;font-size:16px;white-space:nowrap}.flow-steps li:not(:last-child):after{content:"";width:50px;border-top:1px solid var(--border-strong);margin:0 16px}.flow-steps li.active{color:var(--text);font-weight:650}.flow-steps li.done{color:var(--text)}.step-dot{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%;background:#ece5dc;color:#8c8279;font-weight:700}.flow-steps .active .step-dot,.flow-steps .done .step-dot{background:var(--primary);color:#fff}.main{flex:1;min-height:0;display:flex}.history-main{overflow:auto;flex-direction:column}.history-main>.history-page{flex:1 0 auto}.btn{height:42px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:999px;font-weight:680;transition:background .15s,border-color .15s,transform .15s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover:not(:disabled){background:var(--primary-hover)}.btn.danger{background:var(--danger);color:#fff}.btn.secondary{background:var(--surface-strong);border:1px solid var(--border-strong)}.btn.secondary:hover:not(:disabled){background:var(--surface-3);border-color:#cfb7a5}.btn.big{width:100%;height:50px;font-size:16px}.btn.grow{flex:1}.link{color:#91543d;font-weight:650}.link:hover{text-decoration:underline}.danger-link{color:var(--danger)}.row{display:flex;gap:9px}.badge{padding:2px 7px;border-radius:999px;color:var(--success);background:var(--success-soft);font-size:9px;font-weight:750;letter-spacing:.03em;text-transform:uppercase}.seg{display:inline-flex;gap:3px;padding:3px;border-radius:999px;background:var(--surface-2)}.seg button{min-height:30px;padding:4px 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);border-radius:999px;white-space:nowrap}.seg button.on{background:#fff;color:var(--text);box-shadow:0 1px 4px #412d2017}.seg.wide{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:12px}.seg.wide button{width:100%;min-width:0;min-height:48px;padding:6px 5px;flex-direction:column;gap:2px;overflow:hidden;border-radius:9px;white-space:normal;line-height:1.15;text-align:center}.seg.wide button>span:first-child{max-width:100%;overflow:hidden;text-overflow:ellipsis}.seg.wide .badge{font-size:8px;padding:2px 6px}.upload{flex:1;min-width:0;overflow:auto;padding:76px 28px 42px;display:flex;flex-direction:column;align-items:center;gap:26px}.upload-heading{max-width:980px;text-align:center}.upload-heading h1{margin:10px 0 20px;font-size:clamp(38px,4vw,64px);line-height:1.04;letter-spacing:-.045em}.upload-heading p{max-width:740px;margin:auto;color:var(--muted);font-size:clamp(17px,1.6vw,22px)}.dropzone{width:min(1030px,100%);min-height:300px;padding:42px 24px;border:2px dashed #e2aa8d;border-radius:28px;background:var(--primary-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#875f4b;text-align:center;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.dropzone:hover,.dropzone.over,.dropzone:focus-visible{border-color:var(--primary);background:#f8e3d6;transform:translateY(-2px);outline:none}.dropzone svg{color:var(--primary)}.dropzone p{font-size:16px}.dropzone small{color:var(--muted)}.upload-choose{min-width:220px;height:56px;font-size:17px}.upload-note{color:var(--muted);text-align:center}.upload-note strong{color:var(--text);font-weight:650}.bonus-banner{margin:0 24px 8px;padding:10px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;color:#875f4b;background:var(--primary-soft);border:1px solid #efcdb9;border-radius:14px;font-size:14px;flex-shrink:0}.bonus-banner strong{color:var(--text)}.bonus-banner p{margin:0}.bonus-banner.welcome{color:var(--success);background:var(--success-soft);border-color:#cfe3d2;justify-content:space-between}@media(max-width:560px){.bonus-banner{margin:0 16px 8px}}.upload-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 34px;color:var(--success);font-size:14px}.error-card{width:min(480px,100%);padding:28px;display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--border);border-radius:var(--radius)}.error-text{margin-bottom:8px;color:var(--danger);font-size:13px}.analyzing{flex:1;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;margin:6px 24px 16px;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:28px}.analyzing>img{max-width:75%;max-height:75%;object-fit:contain;opacity:.3;filter:blur(1px)}.analyzing-card{position:absolute;display:flex;align-items:center;gap:15px;padding:18px 22px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.analyzing-card>div:last-child{display:flex;flex-direction:column}.spinner{width:24px;height:24px;flex:none;border:3px solid #efd6c8;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.workspace{flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.42fr) minmax(360px,.58fr);gap:22px;padding:4px 24px 16px}.stage-area{min-width:0;min-height:0;position:relative;display:flex}.preview-card{flex:1;min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;padding:48px 16px 14px;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:28px}.preview-badge{position:absolute;top:22px;right:22px;z-index:4;padding:7px 14px;color:var(--success);background:var(--success-soft);border-radius:999px;font-size:12px;font-weight:720}.banner{position:absolute;top:12px;left:50%;z-index:8;transform:translate(-50%);padding:8px 15px;color:#fff;background:var(--text);border-radius:999px;font-size:13px;pointer-events:none}.canvas{flex:1;min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:18px}.canvas-viewport{flex:1;min-height:250px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#fff;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.canvas-viewport:active{cursor:grabbing}.canvas-viewport.picking{cursor:crosshair}.canvas-stage{position:relative;flex-shrink:0;transform-origin:center;box-shadow:0 4px 20px #261e1917}.canvas-stage.checker{background-color:var(--checker-a);background-image:linear-gradient(45deg,var(--checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--checker-b) 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.canvas-stage.plain{background:#fff}.layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}.live-preview-layer{image-rendering:auto}.canvas-stage.zoomed .pixelated-when-zoomed{image-rendering:pixelated}.split-handle{position:absolute;top:0;bottom:0;width:24px;margin-left:-12px;display:flex;justify-content:center;cursor:ew-resize}.split-handle:before{content:"";width:2px;background:var(--primary);box-shadow:0 0 0 1px #ffffffb3}.split-handle span{position:absolute;top:50%;width:24px;height:24px;margin-top:-12px;border:2px solid white;border-radius:50%;background:var(--primary)}.corner-label{position:absolute;top:12px;padding:3px 8px;color:#fff;background:#29231fbf;border-radius:999px;font-size:10px;font-weight:720;letter-spacing:.05em;text-transform:uppercase;pointer-events:none}.corner-label.left{left:12px}.corner-label.right{right:12px}.canvas-toolbar{position:absolute;left:50%;bottom:0;z-index:6;padding:4px;display:flex;flex-wrap:wrap;justify-content:center;gap:7px;background:#fbf8f4f0;border:1px solid var(--border);border-radius:999px;box-shadow:0 3px 14px #29231f14;transform:translate(-50%);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.source-chip{position:absolute;left:16px;bottom:14px;z-index:7;padding:7px 10px;display:flex;align-items:center;gap:9px;max-width:100%;background:#f8f2ecf2;border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 14px #29231f0f;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.source-chip img{width:36px;height:36px;object-fit:contain;background:#fff;border-radius:8px}.source-chip>span:not(.source-size){min-width:0;display:flex;flex-direction:column}.source-chip small{color:var(--muted)}.source-chip strong{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.source-size{color:var(--muted);font-size:12px;white-space:nowrap}.panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:transparent}.panel-scroll{flex:1;min-height:0;overflow-y:auto;padding:2px 8px 12px 0;display:flex;flex-direction:column;gap:13px;scrollbar-color:#d9c9bd transparent}.panel-heading h1{margin:3px 0;font-size:clamp(26px,2.25vw,35px);line-height:1.06;letter-spacing:-.035em}.panel-heading p{color:var(--muted);font-size:13px}.detected{padding:9px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;background:var(--success-soft);border-radius:12px}.detected .muted{color:var(--success);font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.detected strong{flex-basis:100%;font-size:13px}.detected .link{font-size:12px}.shading-suggestion{padding:9px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:var(--success-soft);border-radius:12px;font-size:13px}.shading-suggestion .link{font-size:12px}.panel-section{display:flex;flex-direction:column;gap:6px}.panel-section h3{font-size:16px;line-height:1.2}.section-title{display:flex;align-items:center;gap:7px}.setting-tip{position:relative;display:inline-flex}.setting-tip>button{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);background:#fff;border:1px solid var(--border-strong);border-radius:50%;font-family:Georgia,serif;font-size:12px;font-weight:700;line-height:1}.setting-tip>button:hover,.setting-tip>button:focus-visible{color:var(--primary);border-color:var(--primary)}.setting-tooltip{position:absolute;top:calc(100% + 8px);left:-8px;z-index:20;width:min(300px,calc(100vw - 48px));padding:10px 12px;color:#fff;background:var(--text);border-radius:10px;box-shadow:var(--shadow);font-size:12px;font-weight:450;line-height:1.4;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .12s,transform .12s,visibility .12s;pointer-events:none}.setting-tooltip:before{content:"";position:absolute;left:12px;bottom:100%;border:5px solid transparent;border-bottom-color:var(--text)}.setting-tip:hover .setting-tooltip,.setting-tip:focus-within .setting-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.section-help{color:var(--muted);font-size:12px;line-height:1.35}.choices{display:flex;flex-direction:column;gap:8px}.choices.compact{flex-direction:row}.choices.compact .choice{flex:1;min-width:0;align-items:center;padding:8px 6px;text-align:center}.choices.compact .choice-label{flex-direction:column;gap:3px}.choice{padding:11px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:#fff;border:1px solid var(--border);border-radius:14px;transition:border-color .12s,background .12s}.choice:hover{border-color:#d2bba9}.choice.selected{border-color:var(--primary);background:#fff8f4;box-shadow:inset 0 0 0 1px var(--primary)}.choice-label{display:flex;align-items:center;gap:8px;font-weight:680}.choice-hint{color:var(--muted);font-size:12.5px}.colors{display:flex;flex-direction:column;gap:10px}.stepper{display:flex;align-items:center;gap:8px}.stepper button{width:32px;height:32px;border:1px solid var(--border);border-radius:9px;background:#fff;font-size:17px}.stepper input{flex:1;accent-color:var(--primary)}.stepper-value{min-width:22px;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.swatches{padding:10px;display:flex;flex-wrap:wrap;gap:7px;background:#ece7e2;border:1px solid #e0d7cf;border-radius:13px}.swatch{position:relative;width:31px;height:31px;overflow:hidden;border:1.5px solid rgba(41,35,31,.3);border-radius:9px;box-shadow:0 1px 2px #29231f1a,inset 0 0 0 1px #ffffff59}.swatch.selected{outline:2px solid var(--primary);outline-offset:2px}.swatch.cleared{background-color:#fff;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0}.swatch-from{position:absolute;right:0;bottom:0;width:13px;height:13px;border-top:1px solid rgba(255,255,255,.85);border-left:1px solid rgba(255,255,255,.85);border-top-left-radius:4px}.swatch.add{border:1px dashed var(--muted);color:var(--muted);font-size:20px}.swatch-editor{padding:9px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;background:var(--surface-2);border-radius:11px}.swatch-editor>button{padding:5px 8px;background:#fff;border:1px solid var(--border);border-radius:8px;font-size:12px}.color-field{margin-right:auto;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px}.color-field input{width:32px;height:28px;padding:0;background:none;border:1px solid var(--border);border-radius:7px;cursor:pointer}.panel-footer{padding:10px 8px 2px 0;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--border);background:var(--surface)}.done-line{display:flex;align-items:center;gap:8px}.done-line .link{margin-left:auto;font-size:12px}.saved-line{margin-top:6px;color:var(--success);font-size:11px}.saved-link{width:max-content;text-decoration:none;font-weight:650}.saved-link:hover{text-decoration:underline;text-underline-offset:3px}.check{color:var(--success);font-weight:800}.details{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;font-size:12px}.details dt{color:var(--muted)}.details dt.indent{padding-left:10px}.details dd{text-align:right;font-variant-numeric:tabular-nums}.run{display:flex;flex-direction:column;gap:10px}.run-head{display:flex;align-items:baseline;gap:8px}.run-clock{color:var(--muted);font-variant-numeric:tabular-nums}.run-left{margin-left:auto;color:var(--muted);font-size:12px}.groups{list-style:none;display:flex;flex-direction:column;gap:6px;font-size:12px}.groups li{display:grid;grid-template-columns:14px 1fr auto;align-items:center;column-gap:6px;color:var(--muted)}.group-time{font-variant-numeric:tabular-nums}.group-detail{grid-column:2/4;color:var(--muted)}.groups .dot{width:9px;height:9px;border:1.5px solid var(--muted);border-radius:50%}.groups .active{color:var(--text)}.groups .active .group-label{font-weight:700}.groups .active .dot{border-color:var(--primary);background:var(--primary);animation:pulse 1s ease-in-out infinite alternate}.groups .done .dot,.groups .reused .dot{border-color:var(--success);background:var(--success)}.groups .reused .group-time{color:var(--success)}@keyframes pulse{to{opacity:.3}}.progress{height:5px;overflow:hidden;background:var(--surface-2);border-radius:99px}.progress div{height:100%;background:var(--primary);transition:width .25s linear}.credits-chip{color:var(--muted);font-weight:700}.new-conversion{color:var(--primary)}.new-conversion:hover{color:var(--primary-hover)}.new-conversion .label-short{display:none}@media(max-width:560px){.new-conversion .label-full{display:none}.new-conversion .label-short{display:inline}}.account-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;align-items:start}.account-column{display:flex;flex-direction:column;gap:24px;min-width:0}.account-card{display:flex;flex-direction:column;gap:11px;min-width:0;padding:24px;background:var(--surface-strong);border:1px solid var(--border);border-radius:20px}.account-card h2{font-size:20px}.account-card h3{margin-top:10px;font-size:14px}.account-balance{display:flex;align-items:baseline;gap:10px}.account-balance strong{font-size:44px;letter-spacing:-.03em;line-height:1}.account-email{display:flex;flex-wrap:wrap;align-items:center;gap:10px;overflow-wrap:anywhere}.account-verified{color:var(--success);background:var(--success-soft)}.account-unverified{color:var(--danger);background:#fbebe6}.account-danger{margin-top:10px;padding-top:14px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--border)}.account-ledger{width:100%;border-collapse:collapse;font-size:14px}.account-ledger th{padding:0 8px 8px;color:var(--muted);font-size:12px;font-weight:650;text-align:left;border-bottom:1px solid var(--border)}.account-ledger td{padding:10px 8px;border-bottom:1px solid var(--border);vertical-align:top}.account-ledger tr:last-child td{border-bottom:0}.account-ledger .num{text-align:right;white-space:nowrap}.account-ledger .plus{color:var(--success);font-weight:700}.account-ledger .minus{font-weight:700}@media(max-width:900px){.account-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:560px){.account-card{padding:18px}.account-ledger{font-size:12px}.account-ledger td{padding:9px 5px}}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;padding:18px;display:flex;align-items:center;justify-content:center;background:#29231f7a;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog{width:100%;max-width:440px;max-height:calc(100vh - 36px);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:0 30px 80px #29231f38}.dialog.wide{max-width:640px}.dialog.extra-wide{max-width:1480px;height:calc(100vh - 36px);display:flex;flex-direction:column}.dialog.extra-wide .dialog-body{flex:1;min-height:0}.dialog-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.dialog-head h2{font-size:19px}.dialog-close{width:34px;height:34px;color:var(--muted);border-radius:50%;font-size:25px;line-height:1}.dialog-close:hover{background:var(--surface-2)}.dialog-body{padding:20px}.auth-form,.paywall,.stack{display:flex;flex-direction:column;gap:11px}.auth-links{display:flex;justify-content:space-between;gap:15px}.text-input{width:100%;height:44px;padding:0 13px;color:inherit;background:#fff;border:1px solid var(--border-strong);border-radius:11px}.text-input:focus{outline:2px solid var(--primary);outline-offset:-1px}.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.or:before,.or:after{content:"";flex:1;border-top:1px solid var(--border)}.code-row{display:flex;gap:8px}.code-row .btn{height:44px}.packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px}.pack{padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:1px solid var(--border);border-radius:13px}.pack:hover:not(:disabled){border-color:var(--primary);background:#fff8f4}.pack-price{color:var(--primary);font-weight:750}.checkout{min-height:420px}.help-content{display:flex;flex-direction:column;gap:18px}.help-content section{display:grid;grid-template-columns:36px 1fr;gap:13px}.help-content h3{margin-bottom:3px;font-size:16px}.help-content p{color:var(--muted)}.help-number{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#fff;background:var(--primary);border-radius:50%;font-weight:750}.retention-note{padding:15px;background:var(--success-soft);border-radius:13px}.retention-note p{margin-top:3px;color:var(--success)}.upload-about{width:100%;max-width:980px;margin-top:26px;display:flex;flex-direction:column;gap:18px;text-align:center}.upload-about h2{font-size:clamp(24px,2.2vw,30px);letter-spacing:-.03em}.upload-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;text-align:left}.upload-about-grid>div{padding:20px;background:var(--surface-strong);border:1px solid var(--border);border-radius:18px}.upload-about-grid h3{margin-bottom:6px;font-size:16px}.upload-about-grid p,.upload-about-note{color:var(--muted);line-height:1.5}.upload-about-note{max-width:760px;margin:0 auto;font-size:14px}.content-page{max-width:1120px;margin:0 auto}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.faq h3{margin-top:8px;font-size:15px}.faq p{color:var(--muted);line-height:1.55}.legal{max-width:760px;display:flex;flex-direction:column;gap:12px;line-height:1.6}.legal h1{margin:3px 0 0;font-size:clamp(34px,3vw,44px);letter-spacing:-.04em;line-height:1.1}.legal h2{margin-top:16px;font-size:20px}.legal ul{padding-left:22px;display:flex;flex-direction:column;gap:7px}.legal p,.legal li{color:var(--text)}.auth-legal{margin-top:4px;text-align:center}.site-footer{width:100%;padding:22px 52px 28px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;color:var(--muted);font-size:13px;border-top:1px solid var(--border)}.site-footer nav{display:flex;flex-wrap:wrap;gap:8px 20px}.site-footer a{color:inherit;overflow-wrap:anywhere}.site-footer a:hover{color:var(--text);text-decoration:underline}.upload .site-footer{max-width:980px;margin-top:auto;padding:22px 0 0}@media(max-width:900px){.upload-about-grid,.content-grid{grid-template-columns:minmax(0,1fr)}.site-footer{padding:20px 18px 24px}}.history-page{width:100%;padding:32px 52px 60px}.history-head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:22px}.history-head h1{margin:3px 0 4px;font-size:clamp(36px,3.2vw,48px);letter-spacing:-.04em;line-height:1.05}.history-head p{color:var(--muted);font-size:15px;line-height:1.45}.history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,370px));gap:24px}.history-card{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:24px}.history-preview{width:100%;aspect-ratio:1.12;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--stage);color:var(--muted)}.history-preview img{width:100%;height:100%;padding:18px;object-fit:contain}.ownership{position:absolute;top:12px;right:12px;padding:5px 10px;color:#91543d;background:var(--primary-soft);border-radius:999px;font-size:11px;font-weight:750}.ownership.owned{color:var(--success);background:var(--success-soft)}.history-card-body{padding:17px}.history-card-title{display:flex;align-items:center;gap:8px}.history-card-title h2{flex:1;min-width:0}.history-card-delete{flex:none;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:9px}.history-card-delete:hover{color:var(--danger);background:#fbebe6}.history-card h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.history-card-body>p{color:var(--muted);font-size:12px}.history-card-body .expires{margin:2px 0 14px}.history-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.history-card-actions .btn{min-width:0;padding-inline:10px}.history-alert{margin-bottom:22px;padding:13px 16px;color:var(--danger);background:#fbebe6;border-radius:12px}.history-claim-note{margin-bottom:18px;padding:12px 15px;color:var(--success);background:var(--success-soft);border-radius:12px}.history-filters{width:max-content;margin:0 0 20px}.history-loading,.history-state{min-height:260px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.load-more{display:flex;margin:28px auto 0}.history-empty{min-height:400px;padding:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;background:#fff;border:1px dashed var(--border-strong);border-radius:24px}.history-empty p{margin-bottom:8px;color:var(--muted)}.empty-mark{width:56px;height:56px;display:flex;align-items:center;justify-content:center;color:var(--primary);background:var(--primary-soft);border-radius:16px;font-size:36px}.history-signed-out{display:flex;align-items:center;justify-content:center}.history-auth-card{width:min(460px,100%);padding:30px;background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}.history-auth-card h1{margin:7px 0;font-size:30px}.history-auth-card>p{margin-bottom:20px}.history-detail{display:flex;flex-direction:column;gap:14px}.history-version-tabs{display:flex;gap:7px;overflow:auto;padding-bottom:2px}.history-version-tabs button{flex:none;padding:7px 11px;color:var(--muted);background:var(--surface-2);border-radius:999px;font-size:12px}.history-version-tabs button.on{color:#fff;background:var(--text)}.history-detail-preview{height:min(50vh,420px);display:flex;align-items:center;justify-content:center;background:var(--stage);border-radius:16px}.history-detail-preview img{width:100%;height:100%;padding:20px;object-fit:contain}.history-detail-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:13px}.history-delete{margin-left:auto;font-size:13px}.history-confirm{display:flex;flex-direction:column;gap:18px}.history-confirm p{line-height:1.5}.history-confirm-actions{display:flex;justify-content:flex-end;gap:9px}.history-detail-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px}.history-editor-loading{height:100%;min-height:360px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.history-editor{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px}.history-editor-preview{min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background-color:#f5f2ee;background-image:linear-gradient(45deg,#e7e2dd 25%,transparent 25%),linear-gradient(-45deg,#e7e2dd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7e2dd 75%),linear-gradient(-45deg,transparent 75%,#e7e2dd 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;border:1px solid var(--border);border-radius:16px}.history-editor-preview{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.history-editor-preview.white{background:#fff}.history-editor-preview.zoomed{cursor:grab}.history-editor-preview.zoomed:active{cursor:grabbing}.history-editor-preview img{width:100%;height:100%;padding:32px;object-fit:contain;transform-origin:center;will-change:transform}.history-preview-loading{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);font-size:12px}.history-preview-updating{position:absolute;top:14px;right:14px;z-index:2;padding:6px 9px;display:flex;align-items:center;gap:6px;color:var(--muted);background:#fbf8f4eb;border:1px solid var(--border);border-radius:999px;box-shadow:0 2px 10px #29231f1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);font-size:11px;pointer-events:none}.history-preview-updating .spinner{width:12px;height:12px;border-width:2px}.history-preview-background{position:absolute;left:14px;bottom:14px;box-shadow:0 2px 10px #29231f1f}.history-preview-background button{min-width:48px}.history-zoom{position:absolute;right:14px;bottom:14px;box-shadow:0 2px 10px #29231f1f}.history-zoom button{min-width:34px;font-variant-numeric:tabular-nums}.history-zoom button:disabled{opacity:.4}.history-editor-controls{min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:13px}.history-editor-controls h3{font-size:18px}.history-editor-controls .muted{margin-top:2px;font-size:12px;line-height:1.4}.history-color-warning{padding:10px 12px;display:flex;flex-direction:column;gap:3px;color:#85502e;background:#fff2df;border:1px solid #f0d7b7;border-radius:10px;font-size:12px;line-height:1.4}.history-color-warning strong{color:#754326;font-size:12px}.history-color-mode.seg.wide{grid-template-columns:repeat(2,minmax(0,1fr))}.history-color-mode.seg.wide button{min-height:40px}.history-editor-swatches{max-height:164px;overflow:auto;align-content:flex-start}.history-color-tools{padding:10px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;background:var(--surface-2);border-radius:12px}.history-color-tools .color-field{min-width:116px}.history-color-tools .btn{height:34px;padding:0 10px;font-size:12px}.history-reset{align-self:flex-start;font-size:12px}.history-reset:disabled{opacity:.45;cursor:default}.history-editor-error{padding:10px 12px;color:var(--danger);background:#fbebe6;border-radius:10px;font-size:12px}.history-editor-actions{margin-top:auto;padding-top:13px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;border-top:1px solid var(--border)}.history-editor-actions .save-status{color:var(--muted);font-size:11px}.history-editor-actions .btn{min-width:0;padding-inline:12px}.history-editor-actions .btn.primary{height:auto;min-height:46px;padding:10px 20px;line-height:1.2;text-wrap:balance}@media(max-width:1180px){.topbar{padding:0 18px;grid-template-columns:minmax(185px,1fr) auto minmax(185px,1fr);gap:14px}.brand{font-size:18px}.brand-mark{width:34px;height:34px}.flow-steps li:not(:last-child):after{width:24px;margin:0 10px}.workspace{grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:18px;padding:4px 18px 18px}.source-chip strong{max-width:110px}.source-chip .source-size{display:none}.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:860px){.app-frame{padding:0}.app{border:0;border-radius:0;box-shadow:none}.topbar{min-height:116px;padding:12px 18px;grid-template-columns:1fr auto;grid-template-rows:auto auto}.brand{grid-column:1;grid-row:1}.flow-steps{grid-column:1/-1;grid-row:2;justify-self:center}.topbar-actions{grid-column:2;grid-row:1;gap:8px}.topbar.history-topbar{min-height:72px;grid-template-rows:auto}.workspace{display:flex;flex-direction:column;gap:22px;padding:10px 18px 28px;overflow-y:auto}.stage-area{flex:none;height:55vh;min-height:430px}.canvas-toolbar{position:static;margin:7px auto 0;transform:none}.source-chip{position:static;margin-top:8px;align-self:flex-start}.panel{flex:none;min-height:0}.panel-scroll{overflow:visible;padding-right:0}.panel-footer{padding-right:0;padding-bottom:20px}.history-page{padding:30px 24px 50px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dialog.extra-wide{height:auto;display:block}.history-editor{height:auto;grid-template-columns:1fr}.history-editor-preview{height:42vh;min-height:300px}}@media(max-width:560px){.topbar{min-height:108px;padding:10px 13px;gap:8px}.brand{gap:8px;font-size:16px}.brand-mark{width:31px;height:31px}.topbar-actions{gap:5px}.topbar-link{height:34px;padding:0 10px;font-size:12px}.credits-chip{height:34px;padding:0 11px;font-size:12px}.topbar-actions>.btn.secondary{height:34px;padding:0 12px;font-size:12px}.flow-steps{width:100%;justify-content:center}.flow-steps li{gap:5px;font-size:12px}.flow-steps li:not(:last-child):after{width:18px;margin:0 6px}.step-dot{width:27px;height:27px;font-size:12px}.upload{padding:44px 16px 30px;gap:20px}.upload-heading h1{font-size:38px}.dropzone{min-height:280px;border-radius:22px}.upload-benefits{flex-direction:column;gap:7px}.analyzing{margin:12px}.analyzing-card{max-width:calc(100% - 28px)}.analyzing-card .muted{font-size:12px}.workspace{padding:8px 12px 24px}.stage-area{height:52vh;min-height:380px}.preview-card{padding:48px 10px 12px;border-radius:20px}.preview-badge{top:14px;right:14px}.canvas-toolbar{gap:5px}.seg button{padding:4px 8px;font-size:12px}.source-chip{width:100%}.source-size{margin-left:auto}.choices.compact{flex-direction:column}.choices.compact .choice{align-items:flex-start;text-align:left}.choices.compact .choice-label{flex-direction:row}.panel-heading h1{font-size:31px}.history-page{padding:26px 14px 40px}.history-head{align-items:flex-start;flex-direction:column}.history-head .btn{width:100%}.history-grid{grid-template-columns:1fr}.history-preview{aspect-ratio:1.35}.dialog-backdrop{padding:10px}.dialog{max-height:calc(100vh - 20px);border-radius:18px}.dialog-body{padding:14px}.history-card-actions,.history-detail-actions{grid-template-columns:1fr}.history-editor-preview{min-height:240px}.history-editor-actions{grid-template-columns:1fr 1fr}.history-editor-actions .save-status{grid-column:1/-1}}
