:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202124;background:#fff;font-synthesis:none;--red:#dc2626;--ink:#202124;--muted:#62656b;--line:#e4e4e7;--surface:#f7f7f8}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}svg{width:22px;height:22px;flex-shrink:0}h1,h2,h3,p{margin:0}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b91c1c;outline-offset:4px}a:hover{color:#b91c1c}.skip{position:fixed;top:-80px;left:20px;padding:12px 20px;background:#202124;color:white;z-index:10}.skip:focus{top:10px}.site-header{border-bottom:1px solid var(--line)}.header-inner{max-width:1400px;margin:auto;padding:0 48px;min-height:88px;display:flex;align-items:center;gap:72px}.brand{display:inline-flex;align-items:center;font-weight:740;font-size:24px;letter-spacing:-1px;line-height:1;white-space:nowrap}.brand-mark{display:grid;place-items:center;background:var(--red);color:#fff;width:31px;height:33px;border-radius:6px;margin-right:11px}.brand-mark svg{width:24px}.brand-domain{font-weight:420;color:var(--muted)}.header-inner nav{display:flex;align-self:stretch;gap:32px}.header-inner nav a{display:flex;align-items:center;border-bottom:2px solid transparent;font-size:15px;font-weight:560;padding:2px 0 0}.header-inner nav a[aria-current]{border-color:var(--red)}.header-note{margin-left:auto;color:var(--muted);font-size:14px}.tool-main,.guides-main{max-width:1400px;padding:44px 48px 0;margin:auto}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:32px}.eyebrow{color:var(--muted);font-size:12px;letter-spacing:1.5px;font-weight:650;line-height:1.5}.page-intro h1{font-size:36px;font-weight:660;letter-spacing:-1.2px;line-height:1.2;margin:10px 0 12px}.page-intro>div>p:last-child{color:var(--muted);font-size:16px}.intro-detail{font-size:14px;color:var(--muted);border-left:1px solid var(--line);padding-left:22px}.tool-layout{display:grid;grid-template-columns:238px minmax(0,1fr);gap:26px}.tool-nav{padding-top:5px}.nav-label{display:block;color:#777a7f;font-size:12px;font-weight:700;letter-spacing:1.4px;margin:0 14px 10px}.nav-label:not(:first-child){margin-top:25px}.tool-nav>a{display:flex;gap:12px;padding:14px 13px;align-items:center;position:relative;border-radius:5px;margin-bottom:4px;font-size:14px;font-weight:610;line-height:1.3}.tool-nav>a>svg{width:21px;color:#73757a}.tool-nav small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}.tool-nav>a[aria-current]{color:#b91c1c;background:#fdf0f0}.tool-nav>a[aria-current]>svg{color:var(--red)}.active-line{height:18px;width:3px;position:absolute;right:0;background:var(--red);border-radius:3px}.nav-help{margin:30px 14px 0;padding-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.nav-help a{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:550;color:var(--ink);margin-top:8px}.nav-help svg{width:16px}.workbench{border:1px solid #dcdde0;border-radius:9px;min-width:0;overflow:hidden;align-self:start;box-shadow:0 3px 10px #20212403}.workbench-top{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;gap:12px}.workbench-top>span{display:flex;align-items:center;gap:9px}.workbench-top svg{width:18px;height:18px}.workbench-top .local-note{font-size:12px;font-weight:400;color:var(--muted)}.workbench-body{display:grid;grid-template-columns:minmax(0,1fr) 235px;min-height:368px}.file-area{padding:23px;min-width:0}.dropzone{background:var(--surface);border:1px dashed #c9cbd0;border-radius:5px;min-height:314px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px 16px;transition:border-color .15s}.dropzone.dragging{border-color:var(--red);background:#fff2f2}.upload-icon{color:#8b8e95;margin-bottom:15px}.upload-icon svg{height:34px;width:34px}.dropzone h2{font-size:19px;font-weight:570;letter-spacing:-.35px}.dropzone p{font-size:14px;color:var(--muted);margin:6px 0 20px}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:44px;padding:11px 18px;border-radius:5px;border:1px solid transparent;font-size:14px;font-weight:580;line-height:1.45;text-align:center}.button.primary{background:var(--red);color:white}.button.primary:hover{background:#b91c1c;color:#fff}.button.primary:disabled{background:#ececef;color:#72747a}.button svg{width:17px;height:17px}.file-picker{position:relative;cursor:pointer}.file-picker:focus-within{outline:3px solid #b91c1c;outline-offset:4px}.file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-types{font-size:12px;color:#72747a;margin-top:17px}.settings{padding:22px 20px;background:#fcfcfd;border-left:1px solid var(--line);display:flex;flex-direction:column}.settings h2{font-size:14px;font-weight:650;margin-bottom:22px}.settings label{display:block;font-size:13px;font-weight:530;margin-bottom:20px}.settings select,.settings input[type=number]{display:block;background:white;border:1px solid #d8d9dc;border-radius:4px;padding:9px 10px;width:100%;min-height:41px;margin-top:8px;color:var(--ink)}.settings input[type=range]{width:100%;display:block;margin:16px 0 4px;accent-color:var(--red)}.settings output{float:right;font-size:12px;color:var(--muted);font-weight:450}.field-note{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:14px}.settings-bottom{margin-top:auto;padding-top:25px}.settings-bottom .button{width:100%;font-size:13px;padding:11px 8px}.status{font-size:12px;color:var(--muted);line-height:1.5;margin-top:13px}.status.error{color:#b91c1c}.text-button{font-size:12px;border:0;background:none;color:var(--muted);padding:10px 0;text-decoration:underline}.workbench-footer{display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid var(--line);padding:13px 15px;font-size:12px;color:var(--muted);background:#fff}.workbench-footer svg{width:14px;height:14px}.related-section{margin-top:58px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.section-title h2{font-size:23px;font-weight:620;letter-spacing:-.6px;line-height:1.3;margin-top:7px}.section-title>a{display:flex;align-items:center;gap:12px;font-size:13px;white-space:nowrap}.section-title>a svg{width:17px}.guide-list{border-top:1px solid var(--line)}.guide-row{display:flex;align-items:center;gap:24px;padding:23px 4px;border-bottom:1px solid var(--line)}.guide-number{font-size:13px;color:#898b90;align-self:flex-start;padding-top:3px;font-variant-numeric:tabular-nums}.guide-row>div{flex:1}.guide-row .eyebrow{font-size:12px;letter-spacing:1px}.guide-row h3{font-size:18px;font-weight:560;line-height:1.4;letter-spacing:-.25px;margin-top:5px}.guide-row p{font-size:14px;color:var(--muted);margin-top:6px}.guide-row>svg{width:20px;color:var(--muted)}.ad-slot{min-height:132px;min-width:0;background:#fafafa;border:1px solid #eeeef0;margin:40px 0;text-align:center;padding:12px 0;contain:layout}.ad-slot>span{display:block;margin-bottom:10px}.ad-slot .adsbygoogle{width:100%;min-height:90px}.ad-slot>span{font-size:12px;letter-spacing:1px;color:#73757a}.ad-placeholder{min-height:90px;display:flex;align-items:center;justify-content:center;color:#777980;font-size:13px;letter-spacing:.04em}.site-footer{max-width:1304px;margin:32px auto 0;border-top:1px solid var(--line);padding:30px 0 35px;display:flex;justify-content:space-between;gap:25px}.site-footer .brand{font-size:19px}.site-footer .brand-mark{width:24px;height:26px;margin-right:8px}.site-footer .brand-mark svg{width:19px}.site-footer p{font-size:12px;color:var(--muted);margin-top:12px}.site-footer>div:last-child{display:flex;align-items:center;gap:25px;font-size:12px;color:var(--muted)}.unit-input{position:relative}.unit-input span{position:absolute;right:12px;top:11px;color:var(--muted)}.unit-input input{padding-right:40px!important}.settings fieldset{border:0;padding:0;margin:0}.settings legend{font-size:13px;margin-bottom:8px}.crop-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.crop-grid label{font-size:12px;margin-bottom:10px}.crop-grid input{margin-top:3px!important}.file-list:not(:empty){margin-top:16px}.file-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.file-row img{width:52px;height:52px;object-fit:contain;background:var(--surface);border:1px solid var(--line);border-radius:3px}.file-row>div{flex:1;min-width:0}.file-row strong{display:block;font-size:13px;font-weight:550;overflow-wrap:anywhere}.file-row small{font-size:12px;color:var(--muted)}.file-row button{background:#fff;border:1px solid var(--line);border-radius:4px;width:30px;min-height:32px;color:var(--ink);padding:0}.file-row button:disabled{opacity:.3}.file-actions{display:flex;gap:4px;flex:0!important}.has-files .dropzone{min-height:95px;padding:15px;flex-direction:row;gap:12px;flex-wrap:wrap}.has-files .dropzone h2,.has-files .dropzone>p,.has-files .upload-icon{display:none}.has-files .file-types{margin:0;max-width:170px}.result{margin-top:20px;background:#f7f7f8;border:1px solid var(--line);padding:18px;border-radius:5px}.result h3{font-size:17px}.result p{font-size:13px;margin:9px 0 14px;color:var(--muted)}.result img{max-width:100%;max-height:340px;display:block;margin:0 auto 16px;background:repeating-conic-gradient(#e5e5e5 0% 25%,white 0% 50%) 0 / 16px 16px}.result .button{background:var(--ink);color:white}.guides-main{max-width:1150px;padding-top:58px}.editorial-intro{padding-bottom:35px}.editorial-intro h1{font-size:48px;line-height:1.12;letter-spacing:-1.7px;font-weight:640;margin:17px 0 22px}.editorial-intro>p:last-child{color:var(--muted);line-height:1.7}.category-nav{display:flex;gap:25px;flex-wrap:wrap;border-block:1px solid var(--line);padding:17px 0}.category-nav a{font-size:14px}.category-nav span{font-size:12px;color:#777;margin-left:5px}.category-section{margin-top:36px;scroll-margin-top:20px}.category-section>h2{font-size:23px;font-weight:610;letter-spacing:-.5px;margin-bottom:18px}.article-main{max-width:1150px;margin:auto;padding:32px 48px 0}.breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);margin-bottom:35px}.article-header{max-width:800px}.article-header h1{font-size:42px;font-weight:660;letter-spacing:-1.25px;line-height:1.2;margin:14px 0 18px}.article-summary{font-size:19px;line-height:1.6;color:var(--muted)}.article-dates{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:23px 0 32px;padding-bottom:24px;border-bottom:1px solid var(--line)}.article-layout{display:grid;grid-template-columns:minmax(0,720px) 225px;gap:50px}.prose{font-size:16px;line-height:1.85;min-width:0}.prose p{margin:0 0 20px}.prose>p:first-child{background:var(--surface);border-left:3px solid var(--red);padding:20px 24px;margin-bottom:30px}.prose h2{font-size:26px;line-height:1.35;font-weight:650;letter-spacing:-.6px;margin:38px 0 15px;scroll-margin-top:25px}.prose h3{font-size:19px;line-height:1.4;margin:28px 0 12px}.prose a{color:#b91c1c;text-decoration:underline;text-underline-offset:3px}.prose li{padding-left:4px;margin-bottom:10px}.prose ol,.prose ul{padding-left:23px;margin:0 0 24px}.prose table{display:block;overflow:auto;border-collapse:collapse;width:100%;font-size:14px;margin:24px 0}.prose th,.prose td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:12px;min-width:110px}.prose th{background:var(--surface);font-weight:600}.prose blockquote{margin:20px 0;padding:8px 20px;border-left:2px solid #aaa;color:var(--muted)}.article-sidebar>div{position:sticky;top:30px;border-top:2px solid var(--ink);padding-top:18px}.article-sidebar nav{display:flex;flex-direction:column;gap:13px;margin:18px 0 24px}.article-sidebar nav a{font-size:13px;color:var(--muted);line-height:1.5}.article-sidebar .button{font-size:13px}.article-tool{background:var(--surface);border:1px solid var(--line);padding:20px 24px;margin-top:35px}.article-tool>span{display:block;font-size:12px;color:var(--muted)}.article-tool a{display:flex;justify-content:space-between;font-size:16px;font-weight:560;text-decoration:none;margin-top:7px}.article-tool svg{width:19px}.narrow{max-width:850px;min-height:65vh}.narrow>h1{font-size:36px;line-height:1.25;margin:12px 0 28px}.narrow>.button{margin-top:25px}[hidden]{display:none!important}@media(min-width:1500px){.tool-main{padding-top:55px}.page-intro{margin-bottom:38px}.workbench-body{min-height:410px}.dropzone{min-height:356px}}@media(max-width:1150px){.header-inner{gap:40px;padding-inline:28px}.tool-main,.guides-main{padding-inline:28px}.tool-layout{grid-template-columns:205px minmax(0,1fr);gap:18px}.tool-nav>a{font-size:13px;padding-inline:10px}.workbench-body{grid-template-columns:minmax(0,1fr) 200px}.file-area{padding:18px}.settings{padding:20px 16px}.dropzone h2{font-size:17px}.site-footer{margin-inline:28px}.workbench-top .local-note{display:none}.article-layout{gap:30px;grid-template-columns:minmax(0,1fr) 190px}.site-footer>div:last-child{gap:17px}.page-intro h1{font-size:32px}}@media(max-width:850px){.header-note{display:none}.header-inner{justify-content:space-between;min-height:74px}.tool-layout{display:block}.tool-nav{display:flex;overflow-x:auto;gap:8px;padding-bottom:13px;margin-bottom:13px}.tool-nav>a{flex-shrink:0;border:1px solid var(--line);padding:11px 13px;margin:0;gap:8px}.tool-nav>a[aria-current]{border-color:#efb6b6}.tool-nav small,.nav-label,.nav-help,.active-line{display:none}.intro-detail{display:none}.workbench-body{grid-template-columns:minmax(0,1fr) 230px}.file-area{padding:22px}.article-main{padding-inline:28px}.article-layout{display:block}.article-sidebar{display:none}.site-footer{flex-direction:column}.site-footer>div:last-child{justify-content:space-between}.article-header h1{font-size:36px}}@media(max-width:560px){.header-inner{padding-inline:20px;gap:15px;min-height:72px}.brand{font-size:20px;letter-spacing:-.7px}.brand-mark{width:27px;height:29px;margin-right:8px}.header-inner nav{gap:18px}.header-inner nav a{font-size:13px}.tool-main,.guides-main{padding:28px 20px 0}.page-intro{margin-bottom:23px}.page-intro h1{font-size:29px;letter-spacing:-.85px;max-width:330px}.page-intro>div>p:last-child{font-size:14px;max-width:350px;line-height:1.7}.tool-nav{margin-right:-20px;padding-right:20px}.tool-nav>a{font-size:12px}.tool-nav svg{width:18px}.workbench-top{padding:15px 18px;font-size:13px}.workbench-body{display:block}.file-area{padding:16px}.dropzone{min-height:262px}.dropzone h2{font-size:18px}.settings{border-left:0;border-top:1px solid var(--line);padding:20px}.settings h2{margin-bottom:16px}.settings-bottom{padding-top:5px}.settings-bottom .button{font-size:14px}.settings label{font-size:14px;margin-bottom:16px}.settings select{font-size:16px}.settings input[type=number]{font-size:16px}.field-note,.status{font-size:13px}.workbench-footer{font-size:12px;text-align:center;padding:12px}.related-section{margin-top:37px}.section-title{align-items:flex-end;gap:16px}.section-title h2{font-size:22px;max-width:220px}.section-title>a{font-size:12px;white-space:normal;gap:5px}.guide-row{gap:14px;padding:22px 0}.guide-row h3{font-size:17px}.guide-row p{font-size:13px}.guide-number{font-size:12px}.guide-row>svg{width:17px}.ad-slot{margin-top:28px;min-height:132px}.site-footer{margin-inline:20px;padding-bottom:25px}.site-footer>div:last-child{flex-wrap:wrap;gap:15px}.site-footer>div:last-child>span{width:100%}.editorial-intro h1{font-size:37px;letter-spacing:-1.2px}.editorial-intro>p:last-child{font-size:15px}.category-nav{gap:15px}.category-nav a{font-size:13px}.article-main{padding:24px 20px 0}.breadcrumb{font-size:12px;margin-bottom:25px}.article-header h1{font-size:32px;letter-spacing:-.8px}.article-summary{font-size:17px}.article-dates{gap:8px;font-size:12px;flex-direction:column}.prose>p:first-child{padding:18px}.prose h2{font-size:24px}.prose td,.prose th{padding:10px}.file-row{flex-wrap:wrap}.file-actions{margin-left:auto}.file-row strong{font-size:12px}.narrow>h1{font-size:30px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Document scanner: photo, perspective editor, then a page strip. */
.button.secondary{background:#fff;color:var(--ink);border-color:#d8d9dc}.button.secondary:hover{background:var(--surface)}.scanner{overflow:visible}.scanner .workbench-top{border-radius:9px 9px 0 0}.scan-steps{list-style:none;margin:0;padding:18px 22px;display:flex;gap:22px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.scan-steps li{display:flex;align-items:center;gap:8px}.scan-steps li>span{border:1px solid #d8d9dc;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-size:12px;color:var(--ink)}.scan-input-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:20px 22px;border-bottom:1px solid var(--line)}.scan-input-bar>span{font-size:12px;color:var(--muted);margin-left:auto}.scan-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px}.scan-main{padding:22px;min-width:0}.scan-empty{min-height:365px;background:var(--surface);border:1px dashed #c9cbd0;border-radius:5px;padding:28px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.scan-empty.dragging{border-color:var(--red);background:#fff2f2}.scan-empty>span{color:#81848a;margin-bottom:17px}.scan-empty>span svg{width:38px;height:38px}.scan-empty h2{font-size:21px;font-weight:590;letter-spacing:-.5px}.scan-empty p{font-size:15px;margin-top:12px;color:var(--muted);line-height:1.7}.scan-empty small{font-size:12px;color:var(--muted);max-width:320px;margin-top:22px}.scan-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.scan-editor-top h2{font-size:17px;font-weight:600;line-height:1.4}.scan-editor-top .text-button{white-space:nowrap;font-size:12px}.scan-instruction{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 18px}.scan-stage{position:relative;margin:22px auto 18px;max-width:100%;width:100%;background:#ededf0;user-select:none}.scan-stage>img{display:block;width:100%;height:auto;pointer-events:none}.scan-stage>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.scan-stage polygon{fill:#dc26261a;stroke:var(--red);stroke-width:2;vector-effect:non-scaling-stroke}.scan-corner{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;border:2px solid white;box-shadow:0 0 0 1px #b91c1c;background:var(--red);color:white;border-radius:50%;padding:0;display:grid;place-items:center;line-height:1;font-size:13px;font-weight:650;touch-action:none;cursor:move;z-index:1}.scan-corner:focus-visible{outline:3px solid var(--ink);outline-offset:3px}.scan-corner-actions{display:flex;gap:10px;flex-wrap:wrap}.scan-corner-actions .button{font-size:13px}.scan-coordinate-details{margin-top:18px;border-top:1px solid var(--line);padding-top:13px}.scan-coordinate-details summary{font-size:13px;cursor:pointer;color:var(--muted)}.scan-coordinate-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.scan-coordinate-grid fieldset{border:1px solid var(--line);border-radius:4px;display:flex;gap:10px;padding:8px 12px}.scan-coordinate-grid legend{font-size:12px;color:var(--muted)}.scan-coordinate-grid label{font-size:12px;min-width:0;flex:1}.scan-coordinate-grid input{display:block;width:100%;padding:6px;margin-top:4px;border:1px solid #d8d9dc;border-radius:3px;min-height:38px;font-size:14px}.scan-settings{border-left:1px solid var(--line)}.scan-settings .field-note{font-size:12px}.scan-preview>img{max-width:100%;max-height:640px;display:block;margin:18px auto;box-shadow:0 2px 10px #00000012;border:1px solid #ddd}.scan-preview>p{font-size:13px;color:var(--muted)}.scan-preview-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.scan-pages{border-top:1px solid var(--line);padding:22px}.scan-pages h2 span{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.scan-pages .scan-editor-top p{font-size:13px;color:var(--muted);margin-top:5px}.scan-page-list{display:flex;gap:14px;overflow-x:auto;padding:4px 0 15px;margin-top:15px}.scan-page-card{flex:0 0 124px;border:1px solid var(--line);border-radius:4px;padding:9px;background:#fafafa}.scan-page-card>img{display:block;width:104px;height:130px;object-fit:contain;background:#eee}.scan-page-card strong{display:block;font-size:13px;margin-top:9px}.scan-page-card>span{font-size:12px;color:var(--muted)}.scan-page-actions{display:flex;gap:5px;margin-top:9px}.scan-page-actions button{flex:1;background:#fff;border:1px solid #d8d9dc;border-radius:3px;min-height:34px;color:var(--ink)}.scan-page-actions button:disabled{opacity:.35}.scan-export-bar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:17px}.scan-export-bar>label{font-size:13px;min-width:170px;margin-right:auto}.scan-export-bar select{display:block;min-height:43px;padding:8px 10px;margin-top:8px;width:100%;border:1px solid #d8d9dc;background:white;border-radius:4px}.scanner .workbench-footer{border-radius:0 0 9px 9px;text-align:center}.scan-camera-dialog{border:1px solid var(--line);border-radius:8px;width:min(680px,calc(100% - 30px));max-height:90dvh;overflow:auto;padding:22px;color:var(--ink)}.scan-camera-dialog::backdrop{background:#202124a8}.scan-camera-dialog video{display:block;max-height:55dvh;width:100%;background:#202124;border-radius:4px}.scan-camera-dialog #camera-status{font-size:14px;line-height:1.6;margin:14px 0}.scan-camera-actions{display:flex;flex-wrap:wrap;gap:10px}.scan-camera-dialog .scan-instruction{margin:15px 0 0}.scan-settings .status{font-size:13px}.scan-status.error{color:#b91c1c}@media(max-width:1150px){.scan-layout{grid-template-columns:minmax(0,1fr) 195px}.scan-main{padding:20px}.scan-steps{gap:13px;font-size:12px}.scan-input-bar>span{width:100%;margin-left:0}.scan-editor-top{flex-wrap:wrap}.scan-coordinate-grid{grid-template-columns:1fr}}@media(max-width:850px){.scan-layout{grid-template-columns:minmax(0,1fr) 220px}.scan-coordinate-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.scan-layout{display:block}.scan-settings{border-left:0;border-top:1px solid var(--line)}.scan-steps{padding:16px;gap:9px;justify-content:space-between;font-size:12px}.scan-steps li{gap:5px}.scan-steps li>span{width:20px;height:20px}.scan-input-bar{padding:17px}.scan-main{padding:22px}.scan-empty{min-height:250px;padding:20px}.scan-empty h2{font-size:20px}.scan-empty p{font-size:14px}.scan-empty small{margin-top:15px}.scan-corner{width:38px;height:38px}.scan-pages{padding:18px}.scan-export-bar{align-items:stretch}.scan-export-bar>label{width:100%}.scan-coordinate-grid{grid-template-columns:1fr 1fr;gap:8px}.scan-coordinate-grid fieldset{padding:7px;gap:7px}.scan-coordinate-grid input{font-size:16px;padding:5px}.scan-preview-actions .button{font-size:13px}.scan-input-bar .button{font-size:14px}.scan-settings .status{font-size:14px}}@media(max-width:360px){.scan-steps{flex-wrap:wrap;justify-content:flex-start}.scan-coordinate-grid{grid-template-columns:1fr}}

/* Keep language selection visible and distinct from the main navigation. */
.header-inner{gap:32px}
.header-inner .language-switch{align-self:center;gap:4px;margin-left:auto;flex-shrink:0}
.header-inner .language-switch a{justify-content:center;min-width:36px;min-height:36px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:13px}
.header-inner .language-switch a[aria-current]{color:var(--red);border-color:var(--red);background:#fff5f5}
@media(max-width:560px){.header-inner{flex-wrap:wrap;gap:8px 16px;padding-top:14px;padding-bottom:0}.header-inner>.brand{order:0}.header-inner .language-switch{order:1}.header-inner>nav:not(.language-switch){order:2;flex-basis:100%;min-height:40px;gap:24px}}

/* Dedicated ad columns keep advertising outside the file controls. */
.ad-layout{max-width:1800px;margin:auto;padding:0 24px;display:grid;grid-template-columns:160px minmax(0,1fr) 160px;gap:24px;align-items:start}
.ad-layout>.tool-main{grid-column:2;grid-row:1;width:100%;min-width:0;padding:24px 0 0}
.ad-layout>[data-ad-placement="left"]{grid-column:1;grid-row:1}
.ad-layout>[data-ad-placement="right"]{grid-column:3;grid-row:1}
.ad-slot[data-ad-placement="top"]{margin:0 0 32px}
.ad-layout>.ad-slot{margin:24px 0 0;min-height:632px}
.ad-layout>.ad-slot .ad-placeholder,.ad-layout>.ad-slot .adsbygoogle{min-height:600px}
@media(max-width:1250px){.ad-layout{display:block;padding:0}.ad-layout>.tool-main{padding:24px 32px 0}.ad-layout>.ad-slot{display:none}}
@media(max-width:620px){.ad-layout>.tool-main{padding:18px 18px 0}.ad-slot[data-ad-placement="top"]{margin-bottom:24px;min-height:100px}.ad-slot[data-ad-placement="top"] .ad-placeholder,.ad-slot[data-ad-placement="top"] .adsbygoogle{min-height:60px}}

.quality-levels{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);font-weight:400;margin-top:8px}
