:root{color:#3f352e;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--yellow:#f7bf3c;--yellow-light:#fff1c9;--orange:#ff7b3d;--orange-dark:#e96125;--brown:#3f352e;--muted:#857970;--line:#eadfd4;--blue:#b7cee1;background:#fffdf8;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-width:0;max-width:100%;min-height:100%;overflow-x:hidden}html{scroll-behavior:smooth}body{writing-mode:horizontal-tb;text-orientation:mixed;word-break:keep-all;overflow-wrap:break-word;line-break:auto;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;min-height:100vh;margin:0}img,canvas{max-width:100%}button,input{font:inherit}button,label,p,span,h1,h2,h3{writing-mode:horizontal-tb;text-orientation:mixed;word-break:keep-all;overflow-wrap:break-word;white-space:normal;max-width:100%}button{-webkit-tap-highlight-color:transparent}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{width:100%;min-width:0;max-width:100%;min-height:100vh;overflow-x:hidden}.site-header{z-index:10;background:var(--yellow);border-bottom:1px solid #eeb335;width:100%;position:sticky;top:0}.header-inner{justify-content:center;align-items:center;width:100%;min-width:0;max-width:1180px;margin:0 auto;padding:5px 24px 4px;display:flex}.header-title-group{justify-content:center;align-items:center;gap:4px;min-width:0;max-width:100%;display:flex}.site-header h1{color:#fff;letter-spacing:-.03em;text-align:center;white-space:nowrap;min-width:0;margin:0;font-size:20px;line-height:1.25}.header-help-button{color:#ffffffd1;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:1px solid #0000;border-radius:10px;flex:0 0 44px;place-items:center;width:44px;height:44px;padding:0;transition:color .15s,border-color .15s,background-color .15s;display:inline-grid}.header-help-button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.header-help-button:hover{color:#fff;background:#ffffff1f;border-color:#ffffff38}.header-help-button:active{color:#fff;background:#ffffff2e;border-color:#ffffff47}.header-help-button:focus-visible{outline-offset:2px;background:#ffffff24;outline:3px solid #fff}main{background:#fffdf8;width:100%;min-width:0;max-width:100%;padding:32px 24px 100px}.workspace{width:min(100%,1180px);min-width:0;margin:0 auto}.in-app-notice{width:min(100%,1180px);min-width:0;color:var(--brown);background:#fff8e9;border:1px solid #efd6b8;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;margin:0 auto 20px;padding:13px 16px;display:flex}.in-app-notice p{min-width:0;margin:0;font-size:14px;line-height:1.55}.in-app-notice button{min-width:52px;min-height:44px;color:var(--orange-dark);cursor:pointer;background:#fff;border:1px solid #efc8ac;border-radius:9px;flex:none;padding:0 10px;font-weight:700}.in-app-notice button:focus-visible,.help-modal-close:focus-visible{outline-offset:2px;outline:3px solid #ff7b3d33}.workspace.has-results{grid-template-columns:minmax(320px,400px) minmax(0,1fr);align-items:start;gap:40px;display:grid}.upload-section{width:100%;min-width:0;max-width:560px;margin:0 auto}.preview-panel,.result-panel{box-shadow:none;background:#fffefa;border:1px solid #0000;border-radius:18px;padding:24px}.workspace.has-results .preview-panel{position:sticky;top:72px}.workspace.has-results .upload-card{border-width:3px}.upload-card{aspect-ratio:1080/1260;border:8px solid var(--yellow-light);background:#fff;border-radius:12px;place-items:center;width:100%;display:grid;overflow:hidden}.upload-card img{object-fit:contain;width:100%;height:100%;display:block}.empty-upload{text-align:center;flex-direction:column;align-items:center;width:100%;min-width:0;padding:24px;display:flex}.upload-icon{width:58px;height:58px;color:var(--orange);background:#fff2e9;border-radius:50%;place-items:center;margin-bottom:16px;display:grid}.upload-icon svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:27px}.empty-upload h2{letter-spacing:-.03em;width:100%;min-width:0;max-width:100%;margin:0;font-size:18px}.empty-upload .upload-guide{margin:9px 0 22px}.processing-state{width:100%;min-width:0;color:var(--brown);flex-direction:column;align-items:center;display:flex}.processing-state p{text-align:center;width:100%;min-width:0;max-width:100%;margin:16px 0 0;font-size:17px;font-weight:700}.loading-spinner{border:4px solid var(--yellow-light);border-top-color:var(--orange);border-radius:50%;width:36px;height:36px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.button{letter-spacing:-.01em;word-break:keep-all;overflow-wrap:break-word;white-space:normal;cursor:pointer;border:1px solid #0000;border-radius:10px;min-width:0;max-width:100%;min-height:44px;padding:0 22px;font-weight:700;transition:background-color .16s,border-color .16s,box-shadow .16s}.button:focus-visible{outline-offset:2px;outline:3px solid #ff7b3d33}.button-primary{color:#fff;background:var(--orange);box-shadow:0 1px 3px #d3521924}.button-primary:hover:not(:disabled){background:var(--orange-dark);box-shadow:0 2px 5px #d3521929}.button-secondary{color:var(--orange-dark);background:#fffaf4;border-color:#efc8ac}.button-secondary:hover:not(:disabled){background:#fff4ea;border-color:#eeb895}.button:disabled{cursor:not-allowed;opacity:.45}.button:disabled[data-reorder-locked=true]{cursor:default;opacity:1}.preview-meta{width:100%;min-width:0;padding-top:18px}.upload-guide{width:100%;min-width:0;max-width:100%;color:var(--muted);text-align:center;font-size:13px}.upload-error{color:#c8482d;text-align:center;width:100%;min-width:0;max-width:100%;margin:14px 0 0;font-size:14px;font-weight:700}.processing-error{color:#c8482d;text-align:center;width:100%;min-width:0;max-width:100%;margin:14px 0 0;font-size:14px}.button-row{justify-content:center;gap:12px;width:100%;display:flex}.results-section{text-align:center;width:100%;min-width:0;max-width:760px;margin:72px auto 0}.workspace.has-results .upload-section{max-width:400px}.workspace.has-results .results-section{max-width:760px;margin:0}.results-section h2{width:100%;min-width:0;max-width:100%;color:var(--brown);letter-spacing:-.03em;margin:0;font-size:23px}.results-section h2 span{color:var(--orange-dark);font-size:16px}.result-header{border-bottom:1px solid #f0e7dc;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px;padding-bottom:20px;display:flex}.result-heading{text-align:left;min-width:0}.result-summary{text-align:left}.result-summary strong{color:var(--orange-dark);margin-top:10px;font-size:16px;display:block}.result-summary p{color:var(--muted);margin:5px 0 0;font-size:13px}.restore-order-button{flex:none;min-height:38px;padding-inline:14px;font-size:13px}.result-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;width:100%;min-width:0;display:grid}.result-cell{cursor:grab;touch-action:pan-y;flex-direction:column;align-items:flex-start;min-width:0;transition:opacity .15s,box-shadow .15s;display:flex}.result-cell:active{cursor:grabbing}.result-cell.is-dragging{opacity:.42;outline-offset:2px;outline:2px solid #ff7b3d8c}.result-cell.is-drag-over{box-shadow:0 0 0 3px #ff7b3db3}.result-grid.is-reordering{-webkit-user-select:none;user-select:none}.result-cell-header{justify-content:space-between;align-items:center;width:100%;min-height:24px;display:flex}.result-thumbnail{aspect-ratio:1;touch-action:pan-y;background-color:#b2c7da;border:1px solid #526b7e2e;width:100%;overflow:hidden}.result-thumbnail img{object-fit:contain;background:0 0;width:100%;height:100%;display:block}.cell-number{color:#526b7e;background-color:#fffdf8;border-radius:3px;place-items:center;min-width:20px;height:20px;margin-bottom:4px;padding:0 4px;font-size:16px;font-weight:700;line-height:1;display:grid}.download-button{margin-top:28px}footer{color:#a0968e;text-align:center;width:100%;min-width:0;max-width:100%;padding:24px 20px 40px;font-size:12px}.help-modal-backdrop{z-index:100;padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));background:#3f352e6b;place-items:center;display:grid;position:fixed;inset:0}.help-modal{width:min(100%,680px);min-width:0;max-height:calc(100dvh - 32px);color:var(--brown);background:#fffdf9;border:1px solid #f0dfcf;border-radius:20px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 22px 64px #3f352e29}.help-modal-header{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;display:flex}.help-modal-header h2{color:#5a3828;letter-spacing:-.03em;text-align:left;margin:0;font-size:23px}.help-modal-close{color:#c66b43;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:1px solid #0000;border-radius:10px;flex:none;place-items:center;width:44px;height:44px;padding:0;transition:color .15s,border-color .15s,background-color .15s;display:inline-grid}.help-modal-close svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.help-modal-close:hover{color:var(--orange-dark);background:#fff8f1;border-color:#e9c5ac}.help-modal-close:active{color:var(--brown);background:#fff3e8;border-color:#e4bda3}.help-modal-close:focus-visible{outline-offset:2px;background:#fff8f1;outline:3px solid #c66b438c}.help-modal-content{overscroll-behavior:contain;text-align:left;-webkit-overflow-scrolling:touch;min-width:0;padding:4px 22px 24px;overflow-y:auto}.help-modal-content section{padding-top:20px}.help-modal-content h3{color:var(--orange-dark);text-align:left;margin:0 0 10px;font-size:17px}.help-modal-content ul,.help-modal-content ol{margin:0;padding-left:23px}.help-modal-content ul{list-style-position:outside}.help-modal-content li{text-align:left;padding-left:3px;line-height:1.6}.help-modal-content li+li{margin-top:9px}.help-modal-content code{font-family:inherit;font-weight:700}.help-modal-content .help-step-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;align-items:stretch;gap:11px;min-width:0;padding:0;list-style:none;display:grid}.help-modal-content .help-step-card{box-sizing:border-box;background:#fff7eecc;border:1px solid #f4d3b4;border-radius:11px;align-items:center;gap:10px;min-width:0;height:100%;margin:0;padding:15px;display:flex;box-shadow:0 2px 8px #5a382809}.help-step-number{color:#fff;background:var(--orange);border-radius:50%;flex:0 0 27px;place-items:center;width:27px;height:27px;font-size:13px;font-weight:800;line-height:1;display:grid}.help-step-text{text-align:left;min-width:0;margin:0;line-height:1.6}.help-modal-content .help-notes{background:#fff8e8;border:1px solid #f2d8aa;border-radius:11px;margin-top:20px;padding:15px 16px}.help-notes h3{margin-bottom:10px}@media (width>=481px){.help-modal-content .help-step-grid{grid-template-rows:repeat(2,1fr);grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.workspace.has-results{display:block}.workspace.has-results .preview-panel{max-width:560px;position:static}.workspace.has-results .results-section{max-width:760px;margin:56px auto 0}}@media (width>=769px) and (width<=1100px) and (orientation:portrait){.workspace.has-results{grid-template-columns:minmax(0,1fr)}.workspace.has-results .preview-panel{max-width:560px;position:static}.workspace.has-results .results-section{max-width:760px;margin:16px auto 0}}@media (width<=640px){.header-inner{padding:6px 16px 5px}.site-header h1{font-size:18px}main{padding:28px 16px 72px}.preview-panel,.result-panel{border-radius:16px;padding:18px}.upload-card{border-radius:14px;display:block}.empty-upload,.processing-state{justify-content:center;height:100%}.button{width:100%;min-height:48px;padding-inline:14px}.in-app-notice{align-items:flex-start}.button-row{display:block}.button-row .button{width:100%;min-width:0;display:block}.button-row .button+.button{margin-top:8px}.results-section{margin-top:56px}.result-header{display:block}.result-heading,.result-summary{text-align:center}.result-order-help{display:none}.restore-order-button{width:100%;margin-top:12px}.result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.result-cell{display:block}.cell-number{min-width:22px;height:22px;margin-bottom:4px;padding-inline:5px;font-size:13px;display:inline-grid}.download-button{width:100%}}@media (width<=480px){.header-inner{padding-inline:16px}main{padding:24px 12px 64px}.empty-upload{padding:20px 14px}.empty-upload h2{font-size:17px}.empty-upload .button{width:100%;max-width:100%}.upload-guide{font-size:12px;line-height:1.5}.results-section{margin-top:48px}.results-section h2{margin-bottom:16px;font-size:21px}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}footer{padding-inline:16px;line-height:1.6}.help-modal-backdrop{padding:max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left))}.help-modal{border-radius:16px;max-height:calc(100dvh - 16px)}.help-modal-header{padding:14px 16px}.help-modal-content{padding:2px 16px 20px}.help-modal-content .help-step-card,.help-modal-content .help-notes{padding:14px}}@media (pointer:coarse){.header-inner{padding-block:5px}}[data-touch-reorder-mode=tablet-native] .result-cell,[data-touch-reorder-mode=tablet-native] .result-thumbnail{touch-action:auto}[data-touch-reorder-mode=mobile-disabled] .result-cell,[data-touch-reorder-mode=mobile-disabled] .result-thumbnail{touch-action:pan-y}[data-touch-reorder-mode=mobile-disabled] .result-cell{cursor:default}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.header-help-button,.help-modal-close,.result-cell{transition:none}.loading-spinner{animation:none}}.access-shell{background:var(--background);width:100%;min-height:100vh}.access-main{place-items:center;min-height:100vh;padding:32px 16px;display:grid}.access-card{background:#fffdf9;border:1px solid #f0dfcf;border-radius:20px;width:min(100%,440px);padding:36px;box-shadow:0 12px 36px #5e422a14}.access-card h1{color:var(--brown);text-align:center;letter-spacing:-.03em;margin:0;font-size:25px}.access-description{color:var(--muted);text-align:center;margin:12px 0 28px;line-height:1.6}.access-status{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:24px;min-height:180px;display:flex}.access-form{gap:10px;display:grid}.access-form label{color:var(--brown);font-size:14px;font-weight:700}.access-form input{width:100%;min-width:0;min-height:48px;color:var(--brown);font:inherit;background:#fff;border:1px solid #d9c8b8;border-radius:10px;padding:10px 13px;font-size:16px}.access-form input:focus{border-color:var(--orange);outline:3px solid #ff7b3d26}.access-form input[aria-invalid=true]{border-color:#c8482d}.access-form .button{margin-top:10px}.access-error{color:#c8482d;margin:0;font-size:14px;line-height:1.5}@media (width<=480px){.access-main{padding-inline:12px}.access-card{border-radius:16px;padding:28px 20px}.access-card h1{font-size:22px}}
