:root{color:#1d2430;background:#eef3f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr}.toolbar{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:20px clamp(16px,4vw,40px);background:#fff;border-bottom:1px solid #e2e8f0}.toolbar-brand{min-width:0}.eyebrow{margin:0 0 4px;color:#64748b;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}h1,h2,p{margin-top:0}h1{margin-bottom:4px;font-size:clamp(1.45rem,3vw,2.1rem);line-height:1.15;letter-spacing:-.01em}.privacy-badge{display:inline-flex;align-items:center;font-size:.72rem;padding:2px 9px;border-radius:999px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;letter-spacing:.02em;white-space:nowrap;cursor:help;font-weight:600;text-transform:none}.ghost-button{background:transparent;color:#1f2937;border-color:#cbd5e1}.ghost-button:hover:not(:disabled){background:#f1f5f9}.toolbar-copy{margin-bottom:0;color:#64748b}.toolbar-actions{display:flex;gap:12px}.file-button,button{min-height:42px;border:1px solid #1f2937;border-radius:8px;background:#1f2937;color:#fff;padding:10px 16px;cursor:pointer;white-space:nowrap}.file-button input{display:none}button:disabled{cursor:not-allowed;opacity:.45}.workspace{display:grid;grid-template-columns:minmax(300px,360px) 1fr;min-height:0}.controls{display:flex;flex-direction:column;gap:12px;padding:16px;background:#eef4f8;border-right:1px solid #d9e2ec;overflow-y:auto}.tool-tabs,.tool-choices{display:grid;gap:8px}.tool-tabs,.tool-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.tab-button,.mini-tab,.selection-remove-button,.image-card{background:#fff;color:#1f2937}.tab-button.is-active,.mini-tab.is-active,.image-card.is-active{background:#1f2937;color:#fff}.tool-panel{display:grid;gap:10px}.inline-control{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;font-size:.92rem}.inline-control label{font-weight:600;color:#475569;font-size:.86rem;white-space:nowrap}.inline-control input[type=range]{width:100%}.inline-control input[type=text],.inline-control select{padding:8px 10px;font-size:.92rem}.inline-control input[type=text],.inline-control select{min-width:0}.inline-control output{text-align:right;font-size:.84rem;min-width:48px}.color-control input[type=color]{grid-column:2 / span 1;min-height:36px}.color-control .icon-button{grid-column:3}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;min-height:36px;background:#fff;color:#475569;border:1px solid #cbd5e1;font-size:.86rem;border-radius:8px}.icon-button:hover:not(:disabled){border-color:#94a3b8;color:#1f2937}.history-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.history-button{font-weight:500}.tool-panel[hidden]{display:none}.section-block,.selection-list-panel{display:grid;gap:12px;padding:14px;border:1px solid #d6e1ea;border-radius:8px;background:#ffffffd6}.control-group{display:grid;gap:10px}.control-group label,.checkbox-row{font-weight:700}.range-row{display:grid;grid-template-columns:1fr 64px;align-items:center;gap:12px}input[type=range]{width:100%;accent-color:#0f766e}input[type=text],select,input[type=color]{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;background:#fff;color:#1d2430}input[type=color]{min-height:44px;padding:4px}output{color:#475569;font-variant-numeric:tabular-nums}.helper-text,.tips p,.image-list-empty,.selection-list-empty{margin:0;color:#64748b;line-height:1.55}.selection-status{display:flex;align-items:center;justify-content:space-between;border:1px solid #cbd5e1;border-radius:8px;padding:12px;background:#fff;color:#475569}.selection-status strong{min-width:40px;border-radius:8px;padding:4px 8px;background:#0f766e;color:#fff;text-align:center}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;color:#475569;font-size:.92rem}.section-heading span:last-child{color:#64748b}.selection-list,.image-list{display:grid;gap:8px}.selection-item{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border:1px solid #d6e1ea;border-radius:8px;padding:10px;background:#fff;transition:border-color .12s ease,box-shadow .12s ease,background .12s ease;cursor:default}.selection-effect-chip{display:inline-flex;align-items:center;justify-content:center;min-width:56px;min-height:28px;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:600;border:1px solid transparent;cursor:pointer;letter-spacing:.02em}.selection-effect-chip.effect-mosaic{background:#e0e7ff;color:#3730a3;border-color:#c7d2fe}.selection-effect-chip.effect-blur{background:#f3e8ff;color:#6b21a8;border-color:#e9d5ff}.selection-effect-chip.effect-blackout{background:#1f2937;color:#fff;border-color:#111827}.selection-effect-chip.effect-cover{background:#fef3c7;color:#92400e;border-color:#fde68a}.selection-effect-chip.effect-box{background:#fee2e2;color:#b91c1c;border-color:#fecaca}.selection-effect-chip.effect-highlight{background:#fef9c3;color:#854d0e;border-color:#fef08a}.selection-effect-chip.effect-spotlight{background:#cffafe;color:#155e75;border-color:#a5f3fc}.selection-effect-chip:hover{transform:scale(1.05)}.tool-group-label{margin:10px 0 4px;font-size:.72rem;font-weight:600;color:var(--muted, #64748b);letter-spacing:.02em}.logo-upload-button{width:100%;display:inline-flex;align-items:center;justify-content:center;font-size:.88rem;padding:10px}.logo-preview-row{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #d6e1ea;border-radius:8px;background:#f8fafc}.logo-preview-row img{max-width:64px;max-height:48px;object-fit:contain;background:linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;border-radius:4px;padding:4px}.logo-warn{margin:0;padding:8px 10px;border-radius:6px;background:#fef3c7;color:#92400e;font-size:.84rem;font-weight:500}.logo-safe-hint{margin:-4px 0 0;font-size:.8rem;color:#64748b;line-height:1.45}.measure-x-button{width:100%;justify-content:center}.auto-detect-button{width:100%;justify-content:center;background:#f0fdfa;color:#115e59;border-color:#99f6e4;font-weight:500}.auto-detect-button:hover:not(:disabled){background:#ccfbf1;border-color:#5eead4}.zoom-controls{position:absolute;bottom:12px;right:12px;display:inline-flex;align-items:center;background:#0f172ad9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:10px;padding:4px;gap:2px;z-index:5;box-shadow:0 4px 16px #0f172a52}.zoom-controls button{min-height:32px;min-width:36px;padding:4px 10px;background:transparent;color:#fff;border:none;border-radius:6px;font-size:.92rem;font-weight:600}.zoom-controls button:hover:not(:disabled){background:#ffffff26}.zoom-controls button:disabled{opacity:.4;cursor:not-allowed}.zoom-controls span{color:#fff;font-size:.82rem;padding:0 6px;display:inline-flex;align-items:center;min-width:50px;justify-content:center;font-variant-numeric:tabular-nums}.add-annotation-button{width:100%;justify-content:center}.annotation-list{display:grid;gap:6px}.annotation-item{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff}.annotation-swatch{width:14px;height:14px;border-radius:4px;border:1px solid rgba(15,23,42,.2)}.annotation-item span{font-size:.86rem;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pan-hint{position:absolute;top:12px;left:50%;transform:translate(-50%);padding:6px 14px;background:#0f766eeb;color:#fff;font-size:.84rem;font-weight:500;border-radius:999px;z-index:5;pointer-events:none;box-shadow:0 4px 16px #0f766e66}.measure-dialog{border:none;padding:0;border-radius:14px;width:min(720px,calc(100% - 32px));box-shadow:0 24px 60px #0f172a52}.measure-dialog::backdrop{background:#0f172a80;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.measure-dialog-body{padding:22px 26px 24px;display:grid;gap:16px}.measure-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.measure-dialog-header h2{margin:0 0 4px;font-size:1.2rem}.measure-instructions{margin:0;color:#475569;font-size:.9rem;line-height:1.5}.measure-canvas-wrap{background:linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;background-color:#f8fafc;border:1px solid #d6e1ea;border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:center;min-height:220px}#measureCanvas{display:block;max-width:100%;height:auto;cursor:crosshair;touch-action:none}.measure-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.measure-result{color:#475569;font-size:.92rem}.measure-result strong{color:#0f766e;margin-left:8px}.measure-actions{display:flex;gap:8px}.measure-actions .primary-action{width:auto;min-width:120px}.selection-item:hover{border-color:#f59e0b;background:#fffbeb;box-shadow:0 2px 6px #f59e0b33}.selection-item strong{display:block;margin-bottom:4px}.selection-item p{margin-bottom:0;color:#64748b;font-size:.9rem}.selection-remove-button{min-height:30px;min-width:30px;padding:0;border:1px solid #fecaca;background:#fef2f2;color:#b91c1c;font-size:.92rem;line-height:1;border-radius:6px}.selection-remove-button:hover{background:#fee2e2;border-color:#fca5a5}.checkbox-row{display:flex;align-items:center;gap:10px}.checkbox-row input{width:18px;height:18px;accent-color:#0f766e}.action-grid,.apply-row{display:grid;gap:10px}.primary-action{width:100%;min-height:42px;padding:10px 14px;border:1px solid #0f766e;background:linear-gradient(135deg,#0f766e,#115e59);color:#fff;font-weight:600;font-size:.94rem;border-radius:10px;box-shadow:0 4px 12px #0f766e38;transition:transform .08s ease,box-shadow .18s ease,opacity .18s ease;display:inline-flex;align-items:center;justify-content:center;gap:10px}.primary-action-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#ffffff38;color:#fff;font-size:.78rem;font-weight:700;letter-spacing:0}.primary-action:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #0f766e52}.primary-action:active:not(:disabled){transform:translateY(0)}.action-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.action-grid-secondary button{min-height:32px;padding:6px 10px;background:#fff;color:#475569;border:1px solid #cbd5e1;font-size:.84rem;font-weight:500}.action-grid-secondary button:hover:not(:disabled){border-color:#94a3b8;color:#1f2937}.collapsible-section{border:1px solid #d6e1ea;border-radius:10px;background:#ffffffb3;overflow:hidden}.collapsible-section[open]{background:#fffffff2}.collapsible-section summary{list-style:none;cursor:pointer;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#475569;font-size:.92rem;-webkit-user-select:none;user-select:none;min-width:0}.collapsible-section summary>span:first-child{flex-shrink:0}.collapsible-section summary>span:nth-child(2){flex:1;min-width:0;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collapsible-section summary::-webkit-details-marker{display:none}.collapsible-section summary:after{content:"+";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:#e2e8f0;color:#475569;font-weight:700;font-size:1.1rem;line-height:1;transition:transform .18s ease,background .18s ease}.collapsible-section[open] summary:after{content:"−";background:#0f766e;color:#fff}.collapsible-section summary:hover{background:#0f766e0d}.collapsible-title{font-weight:600;color:#1f2937;font-size:.96rem}.collapsible-hint{color:#94a3b8;font-size:.84rem}.collapsible-body{padding:0 14px 14px;display:grid;gap:12px}.transform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cut-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cut-status span{border:1px solid #d6e1ea;border-radius:8px;padding:10px 12px;background:#fff;color:#475569}.export-panel .section-heading{align-items:start}.stage-layout{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto 1fr;gap:14px;padding:18px}.stage-topbar{display:flex;justify-content:space-between;gap:16px;align-items:center}.stage-label{margin-bottom:4px;color:#475569;font-size:.85rem;text-transform:uppercase}.stage-meta{margin-bottom:0;color:#64748b}.image-list{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}.image-card-wrap{position:relative}.image-card{display:grid;gap:8px;padding:8px;border-radius:8px;text-align:left;width:100%;border:1px solid #e2e8f0;background:#fff;transition:box-shadow .12s ease,border-color .12s ease}.image-card:hover{border-color:#94a3b8;box-shadow:0 2px 8px #0f172a14}.image-card.is-active{border-color:#0f766e;box-shadow:0 2px 10px #0f766e38}.image-card img{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:6px;background:#d9e2ec}.image-card span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;color:#475569}.image-card-remove{position:absolute;top:6px;right:6px;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#0f172ac7;color:#fff;font-size:.75rem;cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease,transform .12s ease}.image-card-wrap:hover .image-card-remove,.image-card-remove:focus-visible{opacity:1}.image-card-remove:hover{background:#b91c1c;transform:scale(1.08)}.canvas-panel{min-width:0;min-height:0;padding:18px;border:1px solid #d6e1ea;border-radius:8px;background:#dfe7ed}.drop-zone{position:relative;width:100%;height:calc(100vh - 238px);min-height:460px;overflow:hidden;border:2px dashed #8aa0b3;border-radius:8px;background:linear-gradient(45deg,#cbd5e1 25%,transparent 25%),linear-gradient(-45deg,#cbd5e1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cbd5e1 75%),linear-gradient(-45deg,transparent 75%,#cbd5e1 75%);background-color:#f8fafc;background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.drop-zone.has-image{height:auto;min-height:0;max-width:100%;margin:0 auto}.drop-zone.is-dragging{border-color:#0f766e;outline:3px solid rgba(15,118,110,.18)}.drop-zone.is-busy{opacity:.72;cursor:progress}#processingStatus.is-error{color:#b91c1c;font-weight:600}canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}.empty-state{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;gap:20px;padding:32px 24px;text-align:center;color:#334155}.empty-state[hidden]{display:none}.empty-state h2{margin-bottom:0;font-size:clamp(1.5rem,4vw,2.4rem);line-height:1.15;letter-spacing:-.01em;color:#1e293b}.empty-state p{max-width:520px;margin:0 auto;line-height:1.6;color:#475569}.empty-state kbd{display:inline-block;padding:2px 6px;margin:0 2px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:4px;background:#f8fafc;font-family:ui-monospace,SF Mono,Consolas,monospace;font-size:.82em;color:#1e293b}.empty-icon{margin:0 auto;display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;border-radius:999px;background:linear-gradient(135deg,#ecfdf5,#d1fae5);color:#0f766e;box-shadow:0 8px 24px #0f766e29,inset 0 1px #fff9}.workflow-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 28px;margin:4px auto 0;padding:0;list-style:none;max-width:560px}.workflow-steps li{display:inline-flex;align-items:center;gap:10px;color:#475569;font-size:.95rem;white-space:nowrap}.workflow-steps .step-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#0f766e;color:#fff;font-size:.82rem;font-weight:700;box-shadow:0 1px 3px #0f766e4d}.workflow-steps .step-label{font-weight:500;color:#1f2937}.empty-cta{margin:8px auto 0;font-size:.92rem;color:#475569;border-color:#cbd5e1}@media(max-width:1080px){.workspace{grid-template-columns:1fr}.controls{order:2;border-right:0;border-top:1px solid #d9e2ec}.stage-layout{order:1}.drop-zone{height:58vh;min-height:320px}.workflow-steps{flex-direction:column;align-items:flex-start;gap:10px;max-width:280px;text-align:left}}@media(max-width:720px){.toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions .file-button,.toolbar-actions .ghost-button{flex:1;justify-content:center;text-align:center}.tool-choices,.history-grid,.transform-grid{grid-template-columns:1fr}.help-dialog-body{padding:22px 20px 24px}.canvas-panel,.stage-layout,.controls{padding:14px}}.help-dialog{border:none;padding:0;border-radius:14px;max-width:820px;width:calc(100% - 32px);box-shadow:0 24px 60px #0f172a4d}.help-dialog::backdrop{background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.help-dialog-body{padding:28px 36px 32px;max-height:min(82vh,760px);overflow-y:auto}.help-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.help-dialog-header h2{margin:0;font-size:1.4rem}.help-section{margin-top:22px}.help-section h3{margin:0 0 8px;font-size:1rem;color:#0f766e}.help-section p{margin:0;color:#475569;line-height:1.6}.help-flow,.help-list{margin:0;padding-left:22px;color:#334155;line-height:1.65}.help-flow li,.help-list li{margin-bottom:6px}.help-flow strong,.help-list strong{color:#0f172a}.help-shortcuts{border-collapse:collapse;width:100%;font-size:.92rem}.help-shortcuts td{padding:6px 12px 6px 0;border-bottom:1px dashed #e2e8f0;color:#475569;vertical-align:top}.help-shortcuts td:first-child{white-space:nowrap;width:1%}.help-danger-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:12px;border-top:1px dashed #fecaca;color:#475569;font-size:.92rem}.danger-button{background:#fef2f2;color:#b91c1c;border:1px solid #fca5a5;font-weight:600;font-size:.88rem;padding:8px 14px;border-radius:8px}.danger-button:hover{background:#fee2e2;border-color:#ef4444}.help-section kbd,.help-shortcuts kbd{display:inline-block;padding:2px 7px;margin:0 2px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:4px;background:#f8fafc;font-family:ui-monospace,SF Mono,Consolas,monospace;font-size:.85em;color:#1e293b}
