/* The approved FRAME design system, with task-specific preview layouts. */
.tool-editor .content-width{max-width:1180px}.tool-editor .workspace-heading p{max-width:850px;margin-inline:auto}.tool-editor .workspace-heading{padding:28px 0 40px}.tool-editor .preview-pane{min-height:510px}.tool-editor .preview-toolbar{min-height:65px;padding:18px 22px}.tool-editor .filename-wrap{font-size:14px}.source-icon{font-size:25px;font-weight:400;color:#8a99ab}.tool-editor .editor-controls{padding:24px}.tool-editor .preview-bottom{margin-top:auto;padding:17px 22px;font-size:11px}.tool-editor .preview-stage{min-height:380px;position:relative;display:flex;justify-content:center;align-items:center;padding:6px 22px 12px;overflow:hidden;gap:12px}.preview-stage>canvas,.result-frame canvas,.image-cell canvas{display:block;max-width:100%;max-height:410px;width:auto;height:auto;object-fit:contain;border-radius:7px}.result-frame{display:flex;align-items:center;justify-content:center;position:relative;max-width:100%;max-height:410px}.image-cell{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;flex:1}.image-cell>small{font-size:11px;color:#8d9cb1}.preview-stage.two-up{align-items:center;gap:16px}.preview-stage.two-up .image-cell canvas{max-height:330px}.preview-stage.histogram-stage{flex-direction:column;gap:18px}.histogram-stage .source-photo{max-height:230px}.histogram-stage .histogram-canvas{max-height:170px;max-width:100%;width:100%;border-radius:0}.preview-stage.checkerboard .result-frame{background:repeating-conic-gradient(#e0e7ef 0% 25%,#fafbfd 0% 50%) 50%/16px 16px}.preview-stage .generated-frame{padding:15px;background:white;max-width:100%;border-radius:9px;display:flex;align-items:center;justify-content:center}.generated-frame canvas{max-height:370px;max-width:100%}.view-actions{display:flex;gap:12px;margin-left:auto;white-space:nowrap}.view-actions button{font-size:11px;color:#8e9eb3;padding:0}.view-actions button.active{color:var(--blue);font-weight:750}.tool-editor .form-row{margin:17px 0}.tool-editor .form-row input[type=number]{width:132px}.tool-editor .form-row select{width:150px}.tool-editor .range-label{margin:21px 0}.tool-editor .settings-actions{margin-top:25px}.tool-editor .settings-actions>.button{width:100%;font-size:14px}.tool-editor .tool-guide{padding-top:52px}.tool-editor .guide-steps{margin-bottom:55px}.tool-editor .guide-steps h3{font-size:19px}.tool-editor .guide-steps p{font-size:14px;line-height:1.8}.tool-editor .workspace-status{font-size:12px;max-width:900px;margin-inline:auto;padding:22px 10px}.tool-editor .original-note{font-size:10px;line-height:1.8;margin-top:23px}.tool-editor .settings-title h2{font-size:23px}.tool-editor .output-settings{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.output-settings>label{display:block;font-size:13px;color:#78899f}.output-settings>label>select{display:block;width:100%;padding:9px 11px;border:1px solid #d8e2ef;border-radius:5px;background:white;color:#667c9b;margin-top:8px;font-size:13px}.tool-editor .output-settings .range-label{display:grid;font-size:13px}.tool-editor .control-description{font-size:11px;color:#98a7bc;line-height:1.8;margin:15px 0 0}.tool-editor .small-label{font-size:11px;color:#94a4bb;margin:20px 0 10px}.choice-buttons{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 20px}.choice-buttons button{border:1px solid #d9e3f0;background:white;color:#7c90ad;font-size:11px;padding:8px 10px;border-radius:5px;min-width:0}.choice-buttons button.active{color:var(--blue);border-color:#79aff3;background:#f1f7ff}.choice-buttons .choice-icon{display:block;font-size:21px;line-height:1.1;margin-bottom:4px}.choice-buttons.arrangements{display:grid;grid-template-columns:repeat(3,1fr)}.choice-buttons.arrangements button{font-size:10px;padding:10px 4px}.color-control{display:flex;align-items:center;gap:10px;font-size:13px;color:#7589a5;margin:18px 0}.color-control>span{flex:1;min-width:0}.color-control input[type=color]{width:42px;height:33px;border:1px solid #d9e3f0;background:#fff;padding:2px;border-radius:4px}.color-control code{font:11px var(--sans);color:#8da0bc}.text-field{display:block;font-size:12px;color:#8b9db8;margin-top:18px}.text-field textarea{width:100%;min-height:78px;resize:vertical;margin-top:8px;border:1px solid #d8e3f1;border-radius:5px;font-size:13px;line-height:1.7;padding:10px;color:#6c82a0;background:#fff}.numeric-field{position:relative}.numeric-field .unit{font-size:10px;color:#a4b3c9;position:absolute;right:8px;bottom:10px;pointer-events:none}.quiet-button{padding:0;color:var(--blue);font-size:11px;margin:13px 0 2px}.result-hint{font-size:12px;line-height:1.8;color:#91a3bd;margin-top:18px}.color-result-large{height:112px;width:100%;border:1px solid #d9e3ef;border-radius:9px;margin:20px 0}.color-values{display:grid;grid-template-columns:35px 1fr 28px;gap:9px;align-items:center;font-size:12px;color:#8a9ebc;margin-bottom:12px}.color-values code{font:12px var(--sans);border:1px solid #dce5f1;padding:8px;border-radius:5px;min-width:0;overflow:hidden}.color-values button{font-size:15px;padding:4px;color:#879fbe}.recent-colors{display:flex;flex-wrap:wrap;gap:7px}.recent-colors button{height:29px;width:29px;border-radius:5px;border:1px solid #0001}.palette-list{display:flex;flex-direction:column;gap:7px;margin-top:20px}.palette-row{display:flex;align-items:center;gap:10px;border:1px solid #dfe7f3;border-radius:5px;padding:6px 8px;background:white;min-width:0;font-size:12px;color:#879dbc}.palette-row>span:first-child{height:24px;width:35px;border-radius:3px;flex-shrink:0}.palette-row>span:last-child{margin-left:auto;color:#afbdd1;font-size:12px}.palette-output{display:flex;gap:0;border-radius:7px;overflow:hidden;max-width:100%;min-height:180px;width:100%}.palette-output>div{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;text-align:center}.palette-output span{font-size:9px;background:#fffffff3;color:#7b90b0;padding:9px 0}.palette-source{height:195px;max-width:100%;width:100%;object-fit:cover;border-radius:7px;margin-bottom:17px}.palette-stage{display:flex;flex-direction:column;width:100%;max-width:100%}.file-statistics{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:13px 22px 18px;text-align:center}.file-statistics>div{padding:0 15px;font-size:11px;color:#8398b7}.file-statistics>div+div{border-left:1px solid #d9e3f0}.file-statistics strong{display:block;font-size:17px;color:#6d85a6;margin-top:4px}.file-statistics small{display:block;font-size:10px;color:#a7b7d1;margin-top:3px}.source-filmstrip{display:flex;align-items:center;gap:9px;overflow:auto;padding:4px 22px 20px}.source-filmstrip button{height:58px;width:70px;min-width:70px;border:1px solid #cbdaf0;border-radius:6px;overflow:hidden;padding:4px;background:white;position:relative}.source-filmstrip button img{height:100%;width:100%;object-fit:cover;border-radius:3px}.source-filmstrip button .order{position:absolute;top:3px;left:3px;font-size:9px;background:#ffffffde;color:#7f98ba;padding:0 4px;border-radius:2px}.source-filmstrip .add-source{color:var(--blue);font-size:23px;border-style:dashed;background:transparent}.layer-list{margin-top:19px;display:flex;flex-direction:column;gap:8px}.layer-row{display:flex;gap:10px;align-items:center;border:1px solid #dce6f3;border-radius:6px;padding:7px;background:white;font-size:11px;color:#8ea4c3}.layer-row img{height:36px;width:47px;object-fit:cover;border-radius:3px}.layer-row small{font-size:9px;color:#b1bfd4;display:block}.preview-selection{position:absolute;border:2px solid #fff;box-shadow:0 0 0 1000px #15263e4d;pointer-events:none;background:linear-gradient(90deg,transparent 33%,#ffffff65 33.2%,transparent 33.6%,transparent 66%,#ffffff65 66.2%,transparent 66.6%),linear-gradient(transparent 33%,#ffffff65 33.2%,transparent 33.6%,transparent 66%,#ffffff65 66.2%,transparent 66.6%)}.preview-selection i{height:10px;width:10px;border:2px solid white;border-radius:50%;background:var(--blue);position:absolute}.preview-selection i:nth-child(1){left:-6px;top:-6px}.preview-selection i:nth-child(2){right:-6px;top:-6px}.preview-selection i:nth-child(3){left:-6px;bottom:-6px}.preview-selection i:nth-child(4){right:-6px;bottom:-6px}.split-grid{position:absolute;inset:0;display:grid;pointer-events:none}.split-grid>div{border:1px solid #ffffffc9;display:flex;align-items:flex-start;justify-content:flex-start;padding:7px;min-width:0}.split-grid span{font-size:10px;background:#ffffffd9;color:#8199ba;padding:2px 6px;border-radius:3px}.focus-band{position:absolute;left:0;right:0;border-top:1px dashed #fff;border-bottom:1px dashed #fff;pointer-events:none}.focus-band>span{position:absolute;left:10px;top:7px;font-size:10px;background:#ffffffdd;color:#829abc;padding:3px 7px;border-radius:3px}.text-bounds{border:1px solid #fff;position:absolute;pointer-events:none;right:4%;bottom:4%;height:12%;width:45%}.text-bounds:after{content:'';width:7px;height:7px;background:white;position:absolute;right:-4px;bottom:-4px}.pixel-loupe{position:absolute;width:79px;height:79px;background:white;border:3px solid white;box-shadow:0 2px 8px #26487925;border-radius:8px;z-index:3;pointer-events:none;overflow:hidden;image-rendering:pixelated}.pixel-loupe canvas{height:100%;width:100%;border-radius:0}.pixel-loupe:after{content:'+';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:white;font-size:25px;text-shadow:0 1px 2px #293b54}.picker-crosshair{position:absolute;font-size:27px;color:white;text-shadow:0 1px 3px #23415e;pointer-events:none;transform:translate(-50%,-50%)}.tile-information{font-size:12px;color:#8ca3c2;margin:18px 0;line-height:1.9}.tile-information strong{color:#6f8cb3}.mini-histograms{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:0 22px 17px}.mini-histograms canvas{width:100%;height:85px;border-radius:4px}.mini-histograms small{display:block;text-align:center;font-size:10px;color:#9cafc9;margin-top:5px}.blank-state{min-height:370px;padding:30px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;width:100%;color:#9caec8}.blank-state>svg{height:38px;width:38px;stroke-width:1.2;margin-bottom:15px}.blank-state h3{font-size:22px;font-weight:850;color:#6d87ac;margin:8px 0}.blank-state p{font-size:13px;line-height:1.8;max-width:330px;margin:0 0 20px}.blank-state .button{font-size:13px;min-height:39px}.blank-state.error-state h3{color:#8b6b6b}.inline-status{margin-top:14px;padding:10px 12px;background:#f2f7ff;color:#839fc5;border-radius:5px;font-size:11px;line-height:1.7}.inline-status.error{background:#fff7f5;color:#ae8177}.tool-explainer{display:grid;grid-template-columns:1fr 1.2fr;align-items:center;gap:50px;background:#f1f5fa;border-radius:14px;padding:35px;margin-bottom:65px}.tool-explainer h2{font-size:29px;margin-bottom:17px}.tool-explainer p{font-size:14px;line-height:1.9;color:#839bc0;margin:0}.tool-explainer figure{margin:0;min-width:0}.tool-explainer canvas,.tool-explainer img{max-height:215px;max-width:100%;width:auto;height:auto;border-radius:6px;margin:auto}.tool-explainer figcaption{font-size:10px;color:#9bafce;line-height:1.8;text-align:center;margin-top:13px}.tool-explainer .detail-palette{display:flex;min-height:145px;border-radius:5px;overflow:hidden}.detail-palette>span{flex:1}.batch-preview{min-height:400px;width:100%;padding:0}.batch-table{width:100%;border-collapse:collapse;font-size:11px;color:#91a6c6}.batch-table th{font-size:10px;font-weight:650;color:#a4b6d1;text-align:left;border-bottom:1px solid #dce6f2;padding:13px 12px}.batch-table td{padding:17px 12px;border-bottom:1px solid #e0e8f3}.batch-table .file-cell{display:flex;align-items:center;gap:10px}.batch-table img{width:60px;height:43px;object-fit:cover;border-radius:4px}.batch-table .file-cell strong{font-size:11px;font-weight:750;display:block;color:#7894bb}.batch-table .file-cell small{font-size:9px;color:#aabbd5}.batch-table .ready{font-size:10px;color:#7e9b8b}.tool-editor[data-kind=histogram] .editor-workspace,.tool-editor[data-kind=palette] .editor-workspace{grid-template-columns:minmax(0,1fr) 330px}.review-header{height:85px;display:flex;align-items:center;justify-content:space-between;padding:0 50px;border-bottom:1px solid #e3e8ef}.review-header>span{font-size:13px;color:#8c9ab0}.review-main{max-width:1240px;width:calc(100% - 80px);margin:45px auto}.review-main>h1{font-size:36px;font-weight:850;margin-bottom:15px;letter-spacing:-1px}.review-main>p{font-size:15px;color:#8798b1}.review-filter{display:flex;align-items:center;gap:20px;margin:30px 0}.review-filter input{border:1px solid #d9e2ef;padding:11px 14px;min-width:300px;border-radius:6px;font-size:13px;outline:none}.review-filter>span{font-size:13px;color:#93a5bf}.review-groups{display:flex;gap:22px;flex-wrap:wrap;margin:25px 0 45px;font-size:13px;color:#5e8bca}.review-group{margin-bottom:45px;scroll-margin-top:25px}.review-group>h2{font-size:25px;margin-bottom:24px;font-weight:850;letter-spacing:-.5px}.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.review-card{border:1px solid #dde5f0;border-radius:9px;overflow:hidden;min-width:0;padding-bottom:18px;background:white}.review-image{height:232px;display:block;overflow:hidden;background:#f3f6fa;border-bottom:1px solid #e6edf6}.review-image img{width:100%;height:auto;min-height:232px;object-fit:cover;object-position:top}.review-card h3{font-size:16px;font-weight:800;padding:0 16px;margin:16px 0 7px}.review-card>p{font-size:12px;line-height:1.7;color:#95a7c0;margin:0 16px 15px;min-height:41px}.review-links{display:flex;gap:12px;margin:0 16px;font-size:11px;color:var(--blue)}.review-state-links{display:flex;gap:15px;font-size:10px;color:#9baec9;margin:12px 16px 0}
@media(max-width:1000px){.tool-editor .editor-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:18px}.tool-editor .editor-controls{padding:21px}.tool-editor .preview-stage{padding:6px 17px 12px}.tool-editor .filename-wrap{font-size:12px}.tool-editor .filename-wrap>#filename{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.tool-explainer{gap:30px;padding:30px}.tool-explainer h2{font-size:26px}.tool-explainer p{font-size:13px}.tool-editor .form-row input[type=number]{width:120px}.tool-editor .guide-steps h3{font-size:17px}.tool-editor .guide-steps p{font-size:13px}.review-grid{grid-template-columns:repeat(2,1fr)}.batch-table img{width:43px;height:35px}.batch-table td,.batch-table th{padding-inline:8px}.batch-table .file-cell{gap:7px}}
@media(max-width:700px){.tool-editor .content-width{width:calc(100% - 36px)}.tool-editor .workspace-heading{padding:25px 0 30px}.tool-editor .workspace-heading h1{font-size:34px;letter-spacing:-1px}.tool-editor .workspace-heading p{font-size:14px;line-height:1.7}.tool-editor .editor-workspace{display:flex;flex-direction:column;gap:17px}.tool-editor .preview-pane{min-height:0}.tool-editor .preview-toolbar{padding:15px 16px;min-height:58px}.tool-editor .filename-wrap{font-size:12px;gap:8px}.tool-editor .filename-wrap>#filename{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tool-editor .source-icon{font-size:22px}.tool-editor .replace-image{font-size:10px}.tool-editor .preview-stage{padding:0 16px 8px;min-height:240px;max-height:none}.preview-stage>canvas,.result-frame canvas,.image-cell canvas{max-height:290px;max-width:100%;width:auto;height:auto}.result-frame{max-height:290px}.preview-stage.two-up{min-height:260px}.preview-stage.two-up .image-cell:first-child{display:none}.preview-stage.two-up .image-cell canvas{max-height:280px}.preview-stage.two-up.manual-compare .image-cell:first-child{display:flex}.preview-stage.two-up.manual-compare .image-cell canvas{max-height:185px}.tool-editor .preview-bottom{padding:14px 16px;font-size:10px;gap:10px}.view-actions{gap:10px}.view-actions button{font-size:10px}.tool-editor .editor-controls{padding:23px;width:100%}.tool-editor .settings-title h2{font-size:24px}.tool-editor .form-row{font-size:13px;margin:20px 0}.tool-editor .form-row input[type=number]{width:145px;font-size:14px}.tool-editor .form-row select{width:150px;font-size:13px}.tool-editor .range-label{font-size:13px;gap:18px;margin:25px 0}.tool-editor .settings-actions>.button{min-height:46px;font-size:15px}.tool-editor .original-note{font-size:10px}.tool-editor .control-description{font-size:11px}.tool-editor .small-label{font-size:11px}.tool-editor .output-settings>label{font-size:13px}.tool-editor .output-settings>label>select{font-size:14px;padding:10px}.choice-buttons button{font-size:11px;padding:9px 11px}.choice-buttons.arrangements button{font-size:11px;padding:12px 5px}.color-control{font-size:13px}.color-control input[type=color]{width:44px;height:35px}.color-control code{font-size:11px}.tool-editor .workspace-status{font-size:11px;padding:19px 9px}.tool-editor .tool-guide{padding-top:35px}.tool-editor .tool-guide>h2{font-size:27px;line-height:1.3;margin:0 auto 28px}.tool-editor .guide-steps{margin-bottom:35px}.tool-editor .guide-steps h3{font-size:19px}.tool-editor .guide-steps p{font-size:13px;line-height:1.9}.tool-explainer{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding:25px 21px;border-radius:12px;margin-bottom:40px}.tool-explainer h2{font-size:25px;margin-bottom:13px}.tool-explainer p{font-size:13px}.tool-explainer canvas,.tool-explainer img{max-height:190px}.tool-explainer figcaption{font-size:10px}.tool-editor .tool-faq>h2{font-size:27px}.file-statistics{padding:10px 16px 16px}.file-statistics strong{font-size:16px}.file-statistics>div{font-size:10px}.source-filmstrip{padding:4px 16px 17px;gap:8px}.source-filmstrip button{min-width:62px;width:62px;height:51px}.palette-stage{padding-top:7px}.palette-source{height:170px;margin-bottom:12px}.palette-output{min-height:125px}.palette-output span{font-size:8px;padding:7px 0}.histogram-stage .source-photo{max-height:185px}.histogram-stage .histogram-canvas{max-height:145px;width:100%}.preview-stage.histogram-stage{min-height:340px;gap:13px}.mini-histograms{padding:0 16px 16px;gap:12px}.mini-histograms canvas{height:66px}.pixel-loupe{height:61px;width:61px;border-width:2px;border-radius:6px}.picker-crosshair{font-size:24px}.blank-state{min-height:270px;padding:23px}.blank-state h3{font-size:21px}.blank-state p{font-size:12px}.color-result-large{height:100px}.batch-preview{min-height:0}.batch-table thead{display:none}.batch-table tr{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:15px 0;border-bottom:1px solid #dbe5f2}.batch-table td{border:0;padding:0 12px;font-size:10px}.batch-table .file-column{grid-column:1/-1}.batch-table .file-cell img{width:59px;height:42px}.batch-table .file-cell strong{font-size:12px}.batch-table .file-cell small{font-size:9px}.batch-table .ready-cell{display:none}.review-header{height:75px;padding:0 21px}.review-header>span{font-size:10px;max-width:145px;text-align:right}.review-main{width:calc(100% - 36px);margin-top:30px}.review-main>h1{font-size:30px}.review-main>p{font-size:13px;line-height:1.9}.review-filter{gap:15px;margin:23px 0}.review-filter input{min-width:0;flex:1;padding:11px 12px;font-size:12px}.review-filter>span{font-size:11px;white-space:nowrap}.review-groups{gap:15px 20px;font-size:12px;margin-bottom:32px}.review-grid{grid-template-columns:1fr;gap:20px}.review-group>h2{font-size:23px}.review-card h3{font-size:17px}.review-card>p{font-size:12px;min-height:0}.review-links{font-size:12px}.review-state-links{font-size:11px}.review-image{height:245px}}
/* QR modules keep their square geometry at every viewport. */
.tool-editor[data-kind="qr"] .generated-frame{width:min(100%,400px);height:auto;aspect-ratio:1;padding:24px;flex:none}
.tool-editor[data-kind="qr"] .generated-frame canvas{width:100%;height:100%;max-width:100%;max-height:none;aspect-ratio:1;object-fit:contain;flex:none}
.selected-color-detail{display:flex;align-items:center;gap:28px;justify-content:center;min-height:190px}.selected-color-detail>span{display:block;height:135px;width:135px;border-radius:10px;border:1px solid #0001}.selected-color-detail strong{font-size:23px;font-weight:800;color:#6e86a9}.selected-color-detail small{display:block;font-size:12px;color:#9badc6;margin-top:8px}
@media(max-width:700px){.tool-editor[data-kind="qr"] .generated-frame{width:min(100%,275px);padding:19px}.selected-color-detail{gap:20px;min-height:150px}.selected-color-detail>span{width:105px;height:105px}.selected-color-detail strong{font-size:19px}.selected-color-detail small{font-size:10px}}

.continue-tools{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;font-size:12px;color:#7589a5}.continue-tools summary{cursor:pointer}.continue-tools .button{width:100%;margin-top:14px;font-size:12px}.continue-tools a{display:block;margin-top:12px;color:var(--blue)}.inline-status{font-size:12px;line-height:1.7;margin-top:14px;color:#61758d}.inline-status.error{color:#ad3448}.source-filmstrip .remove-source{position:absolute;right:1px;top:1px;background:white;min-width:20px;width:20px;height:20px;font-size:13px;border-radius:50%}.source-filmstrip .source-item{position:relative;flex-shrink:0}.source-filmstrip .source-item>button{width:62px}.source-filmstrip .source-item>.remove-source{width:20px}.batch-remove{font-size:11px;color:#647d9b}.preview-stage canvas{touch-action:none}.loading-preview{font-size:13px;color:#8295ab}.tool-editor [aria-busy=true]{cursor:progress}

@media(max-width:700px){.tool-editor .batch-table .ready-cell{display:block;grid-column:1/-1}.batch-table .ready-cell .ready{display:none}.batch-remove{padding:5px 0}.source-filmstrip{overflow-x:auto}}

.tool-editor .preview-stage .histogram-canvas{width:min(100%,435px);height:auto;max-height:none;flex:none}.tool-editor .result-frame{overflow:hidden}.tool-editor .preview-stage .mini-histograms canvas{height:auto}.preview-selection{pointer-events:none}
