:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#252c2a;background:#f7f8fa;font-synthesis:none;--green:#2e6650;--line:#dfe4e2;--muted:#777f7c}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit}
button,a,label,summary{-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
a{color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #87b09c;outline-offset:4px}
.site-header{padding:26px 24px 22px;display:flex;flex-direction:column;align-items:center;gap:22px;background:white;border-bottom:1px solid #e6ebe8}
.brand{display:flex;align-items:center;font-size:28px;font-weight:750;letter-spacing:-1px;text-decoration:none;white-space:nowrap}
.brand-accent{color:var(--green)}
.brand-mark{width:36px;height:39px;margin-right:10px;display:grid;place-items:center;background:#eaf0ed;border-radius:10px}
.brand-mark img{width:29px;height:29px}
.tools{border:1px solid #e6ebe8;padding:5px;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:min(720px,100%);background:#f7f9f7;border-radius:12px}
.tool{position:relative;display:flex;align-items:center;cursor:pointer;font-size:14px;font-weight:650;white-space:nowrap}
.tool input{position:absolute;opacity:0;width:1px;height:1px}
.tool-content{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:10px 12px;border:1px solid transparent;border-radius:8px;color:#65736b;transition:background .15s,border-color .15s,color .15s}
.tool-name{display:flex;gap:8px;align-items:center}
.tool b{font-size:18px;font-weight:400}
.tool:has(input:checked) .tool-content{background:#edf3ef;border-color:#d1e0d5;color:var(--green)}
.tool:has(input:focus-visible) .tool-content{outline:3px solid #87b09c;outline-offset:2px}



.tool:hover .tool-content{border-color:#becdc1}
.tool:has(input:disabled){opacity:.65;cursor:wait}
.tool.unavailable,.tool:has(#image-mode-status:not([hidden])){cursor:not-allowed}
.tool:has(#image-mode-status) .tool-content{flex-direction:column;gap:2px}
#image-mode-status{font-size:10px;font-weight:400;line-height:1.1}
main{width:min(900px,100%);margin:0 auto;padding:36px 24px 42px;flex:1}
.intro{text-align:center;margin-bottom:26px}
h1{font-size:36px;line-height:1.2;letter-spacing:-1px;margin:0 0 12px;font-weight:700}
.intro p{font-size:15px;line-height:1.7;color:#748078;margin:0 auto;max-width:470px}

.dropzone{text-align:center;padding:24px 8px 16px;border:2px dashed transparent;border-radius:12px;transition:background .15s,border-color .15s}
.dropzone.dragging{border-color:#7aa78c;background:#edf5ee}
.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:19px 35px;border:1px solid transparent;border-radius:8px;min-height:62px;text-decoration:none;font-weight:650;font-size:18px;transition:background .15s,box-shadow .15s}
.button.primary{color:#fff;background:var(--green);box-shadow:0 5px 13px #224c3612}
.button.primary:hover:not(:disabled){background:#24543f;box-shadow:0 6px 18px #224c3624}
.button.outline{background:white;border-color:var(--line);color:var(--green);font-size:14px;min-height:44px;padding:12px 20px}
.select-file{min-width:250px;font-size:19px;min-height:66px}
.drop-copy{margin:16px 0 7px;color:#6b746f;font-size:13px}
.fine{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0}
.convert{display:flex;margin:22px auto 0;min-width:240px}
.dropzone:has(.file-card:not([hidden])) .select-file{min-height:auto;min-width:0;font-size:13px;padding:9px 15px;background:white;color:var(--green);border:1px solid var(--line);box-shadow:none}
.dropzone:has(.file-card:not([hidden])) .select-file svg{display:none}
.file-card{display:flex;align-items:center;text-align:left;gap:15px;width:min(480px,100%);margin:0 auto 18px;padding:18px;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:0 3px 14px #223e2c06}
.file-card>div{min-width:0;flex:1}
.file-card strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere;display:block;font-weight:600}
.file-card small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.file-kind{border:1px solid #c8dcd0;background:#edf3ef;color:var(--green);padding:15px 8px;border-radius:4px;font-size:11px;font-weight:700}
.remove-file{background:transparent;color:#89948f;border:0;width:30px;height:30px;font-size:24px;line-height:1}
.remove-file:hover{color:#9d3636}
.settings{max-width:480px;margin:12px auto 0;padding-top:20px;border-top:1px solid #edf0ed;text-align:left}
.format-note{max-width:430px;margin:12px auto 0;text-align:center;font-size:12px;color:var(--muted);line-height:1.7}
.pdf-title-field{max-width:480px;margin:12px auto 18px;text-align:left}
.pdf-title-field label{display:block;font-size:13px;font-weight:600}
.pdf-title-field label span{font-weight:400;color:var(--muted)}
.pdf-title-field input{display:block;width:100%;margin:8px 0;background:white;border:1px solid #d8dfdb;border-radius:6px;padding:12px;color:#44534a;font-size:14px}
.pdf-title-field small{display:block;font-size:11px;line-height:1.5;color:var(--muted)}
.fen-input-panel{max-width:480px;margin:12px auto 0;text-align:left}
.fen-input-panel label,.fen-result-label{display:block;font-size:13px;font-weight:600;color:#425c4c;margin:0 0 9px}
.fen-input-panel textarea{width:100%;resize:vertical;min-height:94px;border:1px solid #d8dfdb;border-radius:7px;padding:13px;background:#fff;color:#44534a;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.fen-input-panel textarea::placeholder{color:#929b95}
.fen-input-panel small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:7px}
.image-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;max-width:480px;margin:16px auto 0;padding-top:20px;border-top:1px solid #edf0ed;text-align:left}
.image-settings label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.image-settings select{width:100%;background:#fff;border:1px solid #d8dfdb;border-radius:6px;padding:11px 8px;color:#44534a;font-size:13px}
.image-settings .fine{grid-column:1/-1;margin:0;font-size:11px}
.fen-result-panel{max-width:640px;margin:0 auto 25px;text-align:left;background:white;border:1px solid var(--line);border-radius:10px;padding:19px 22px}
.fen-value{display:block;width:100%;border:1px solid #d8dfdb;border-radius:7px;padding:13px;background:#f8faf8;color:#44534a;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;user-select:text;white-space:pre-wrap}
.fen-copy-actions{display:flex;align-items:center;gap:13px;margin-top:10px;min-height:44px}
#copy-fen-status{font-size:12px;line-height:1.6;color:#557461}
.lichess-edit{margin:0 0 0 auto;font-size:12px;line-height:1.8;color:#748078;text-align:right}
.lichess-edit>span{display:block}
.lichess-edit a{color:var(--green);font-weight:600;text-underline-offset:3px;white-space:nowrap}
.notice{margin:0 auto 20px;border:1px solid #ebc7b9;border-radius:7px;padding:14px 18px;background:#fff5ef;color:#8d4530;font-size:13px;line-height:1.6;max-width:600px}
.job-panel{text-align:center;max-width:760px;margin:0 auto}
.job-name{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin:0 0 22px}
h2{font-size:26px;font-weight:650;line-height:1.35;letter-spacing:-.5px;margin:12px 0}
progress{appearance:none;display:block;width:min(430px,100%);height:9px;margin:28px auto 15px;border:0;border-radius:10px;overflow:hidden;accent-color:var(--green);background:#e0e7e2}
progress::-webkit-progress-bar{background:#e0e7e2}
progress::-webkit-progress-value{background:var(--green);border-radius:10px}
#progress-panel>.text-button{margin-top:15px}
#retry{margin-top:18px}
.text-button{border:0;background:none;font-size:12px;color:#657e6e;text-decoration:underline;text-underline-offset:4px;padding:5px}
.text-button:hover{color:#244e38}
.success-mark{display:grid;place-items:center;background:#e6f0e9;color:var(--green);border-radius:50%;width:48px;height:48px;margin:0 auto 15px;font-size:26px}
.result-summary{font-size:13px;color:var(--muted);margin:10px 0 25px}
.result-actions{display:flex;justify-content:center;gap:18px;margin:14px 0 26px;flex-wrap:wrap}


.preview-details{text-align:left;background:white;border:1px solid var(--line);border-radius:12px;padding:0 24px;margin:0 0 28px;box-shadow:0 5px 22px #1f392008;scroll-margin-top:22px}
.preview-details>summary{font-size:13px;padding:17px 0;color:#546d5d}
.preview-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:4px 0 22px;gap:12px 15px;font-size:12px}
.position-heading strong{display:block;font-size:17px;color:#314b3a;font-weight:650}
.position-heading>span{display:block;margin-top:5px;color:#829087;font-size:11px}
.preview-nav{display:flex;align-items:center;gap:12px;flex-shrink:0}
.preview-nav button{border:1px solid #cedacf;border-radius:8px;background:#f5f8f4;color:#3d5c43;width:43px;height:41px;font-size:22px;line-height:1}
.preview-nav button:hover:not(:disabled){background:#e4eddf;border-color:#9fba9b}
.preview-nav button:disabled{cursor:default;opacity:.35}
#position-counter{min-width:44px;text-align:center;color:#65776a;font-variant-numeric:tabular-nums;font-size:12px}
.comparison{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:0 auto 20px;max-width:640px}
.comparison.single{grid-template-columns:1fr;max-width:270px}
.comparison figure{margin:0;min-width:0}
.comparison figcaption{text-align:center;font-size:11px;color:#768379;margin-top:12px}
.board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;border:1px solid #708967;width:100%;overflow:hidden}
.board .square{position:relative;background:#edf0dd;aspect-ratio:1}
.board .square.dark{background:#81966d}
.square img{position:absolute;width:92%;height:92%;top:4%;left:4%}
.source-frame{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);background:white}
.source-frame img{width:100%;height:100%;object-fit:contain}
.output-frame{aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#fff}
.output-frame>img{width:100%;height:100%;object-fit:contain;border:1px solid var(--line)}
.board-surface{position:relative;flex:0 1 100%;width:100%;min-width:0;aspect-ratio:1}
.board-surface>img{display:block;width:100%;height:100%;object-fit:contain;border:0}
.board-surface>.board{border:0}
.review-overlay{position:absolute;inset:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));pointer-events:none;z-index:1}
.review-square{position:relative;min-width:0;min-height:0;box-shadow:inset 0 0 0 2px #bf7600,inset 0 0 0 3px #fff5d0;border-radius:2px;background:transparent}
.review-square-number{position:absolute;top:2px;left:2px;display:grid;place-items:center;min-width:13px;height:13px;padding:0 2px;border-radius:2px;background:#fff2c6;color:#734300;font-size:10px;font-weight:700;line-height:1;box-shadow:0 0 0 1px #bf7600}
.board-surface.review-all{box-shadow:0 0 0 2px #bf7600}
.position-feedback{max-width:640px;margin:24px auto 20px;padding-top:22px;border-top:1px solid #e3e9e5;text-align:left}
.position-feedback h3{font-size:14px;font-weight:600;color:#425c4c;margin:0 0 13px}
.feedback-ratings{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:17px}
.feedback-rating{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid #d8e0da;border-radius:8px;background:#fff;color:#66736b;font-size:13px}
.feedback-rating:hover:not(:disabled){border-color:#8caf99;background:#f5f8f5}
.feedback-rating[aria-pressed="true"]{border-color:#649278;background:#edf5ef;color:#27583e;box-shadow:0 0 0 1px #649278}
#feedback-dislike[aria-pressed="true"]{border-color:#bb9470;background:#fbf5ee;color:#80532e;box-shadow:0 0 0 1px #bb9470}
.position-feedback label{display:block;font-size:12px;font-weight:600;color:#53665a;margin-bottom:8px}
.position-feedback label span{font-weight:400;color:var(--muted)}
.position-feedback textarea{display:block;resize:vertical;min-height:86px;width:100%;padding:12px;border:1px solid #d8dfdb;border-radius:7px;background:#fff;color:#44534a;font-size:13px;line-height:1.6}
.position-feedback textarea::placeholder{color:#929b95}
#feedback-help{font-size:11px;line-height:1.5;color:#869089;margin:8px 0 13px}
.feedback-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.feedback-actions .button{min-height:38px;padding:9px 15px;font-size:12px}
#feedback-status{font-size:12px;color:#557461;line-height:1.5;margin:0;flex:1;min-width:160px}
#feedback-status[data-error="true"]{color:#944a3c}
.history-section{max-width:560px;margin:32px auto 0;border-top:1px solid #e4e8e5;padding-top:14px}
.history-section>summary{list-style:none;text-align:center;font-size:12px;color:#89968c;padding:6px}
.history-section>summary::after{content:'⌄';margin-left:8px}
.history-row{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:16px 3px;width:100%;color:#425c4c}
.history-row strong{font-size:12px;font-weight:550;overflow-wrap:anywhere;display:block}
.history-row small{font-size:10px;display:block;margin-top:5px;color:#8c998f}
.history-label{font-size:11px;white-space:nowrap}
footer{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;font-size:14px;line-height:1.6;color:#7b877f;padding:23px 20px;border-top:1px solid #e6ebe8;background:#fff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#upload-panel{max-width:600px;margin:0 auto;padding:22px 28px 28px;background:#fff;border:1px solid #e3e9e5;border-radius:16px;box-shadow:0 8px 30px #223e2c04}
.settings label{display:block;font-size:13px;font-weight:600}
.settings label span{font-weight:400;color:var(--muted)}
.settings input{display:block;width:100%;margin:8px 0;background:white;border:1px solid #d8dfdb;border-radius:6px;padding:12px;color:#44534a;font-size:14px}
.settings small{display:block;color:var(--muted);line-height:1.5;font-size:11px}
footer p{margin:0}
footer p span{font-weight:650;color:#637268}
.footer-version{font-size:12px;color:#879389;letter-spacing:.4px}
@media(max-width:640px){.site-header{gap:18px;padding:22px 16px 18px}.brand{font-size:26px}.tools{width:100%;max-width:380px}.tool-content{padding:10px 6px;font-size:12px}.tool-name{gap:5px}.tool b{font-size:15px}main{padding:28px 16px 32px}h1{font-size:30px}.intro p{font-size:14px;max-width:340px}.intro{margin-bottom:22px}#upload-panel{padding:16px 18px 24px}.dropzone{padding:22px 0 14px}.select-file{font-size:18px;min-height:62px;min-width:230px}.comparison{gap:14px}.preview-details{padding:0 14px}.preview-nav{gap:7px}.position-heading strong{font-size:15px}.file-card{padding:14px;gap:11px}.history-section{margin-top:28px}.button{padding-left:24px;padding-right:24px}}
@media(max-width:640px){.tools{grid-template-columns:repeat(2,minmax(0,1fr))}.fen-result-panel{padding:16px}.image-settings{gap:10px}}
@media(max-width:400px){.site-header{padding-left:12px;padding-right:12px}.tools{gap:2px;padding:4px}.tool-content{padding:9px 2px;font-size:11px}.tool-name{gap:3px}.tool b{font-size:12px}.comparison{grid-template-columns:1fr;max-width:280px}.comparison.single{max-width:280px}.image-settings{grid-template-columns:1fr}.fen-copy-actions{flex-wrap:wrap}}

/* Approved compact layout: shared structure for all four conversion tools. */
body.converter-page{color:#263b32;background:#f6f8f6;--line:#e0e7e2;--muted:#687970}
body.converter-page :focus-visible{outline-color:#5e977d}
body.converter-page button:disabled{cursor:default;opacity:.45}
body.converter-page .site-header{padding:19px 24px 18px;gap:16px}
body.converter-page main{padding:18px 24px 32px}
body.converter-page .workspace{width:100%;max-width:850px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 25px #233e2e04;overflow:hidden}
body.converter-page .workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 28px;border-bottom:1px solid var(--line)}
body.converter-page .heading-title{display:flex;align-items:center;gap:13px;min-width:0}
body.converter-page .section-mark{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:8px;background:#f0f5f1;color:#547a63}
body.converter-page .section-mark svg{width:22px;height:22px}
body.converter-page .workspace-heading h1{margin:0;font-size:24px;font-weight:650;letter-spacing:-.6px;line-height:1.3}
body.converter-page .workspace-heading .job-name{margin:0;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);text-align:right}
body.converter-page .workspace-heading .job-name:empty{display:none}
body.converter-page .workspace:has(#job-panel[hidden]) .job-name{display:none}
body.converter-page .notice{max-width:none;margin:16px 28px;border-radius:7px}
body.converter-page #upload-panel{max-width:none;margin:0;padding:20px 28px;border:0;border-radius:0;box-shadow:none;background:transparent}
body.converter-page .dropzone{padding:23px 24px;text-align:center;border:1.5px dashed #cbdacc;background:#fafcf9;border-radius:8px}
body.converter-page .dropzone.dragging{border-color:#4e835c;background:#eef6ed}
body.converter-page .button{gap:10px;min-height:42px;padding:11px 18px;border-radius:6px;font-size:13px;font-weight:600;white-space:nowrap}
body.converter-page .button.primary{box-shadow:none}
body.converter-page .button.primary:hover:not(:disabled){background:#24523e;box-shadow:none}
body.converter-page .button.outline{border-color:#d4dfd7;font-size:13px;min-height:42px;padding:11px 18px}
body.converter-page .button.outline:hover:not(:disabled){background:#f4f8f3;border-color:#98b39f}
body.converter-page .select-file{min-width:200px;min-height:46px;font-size:14px}
body.converter-page .select-file svg{width:21px;height:21px}
body.converter-page .drop-copy{margin:14px 0 5px;font-size:13px;color:#687970}
body.converter-page .dropzone>.fine{margin:5px 0 0;font-size:11px}
body.converter-page .convert{min-width:180px;margin:18px auto 0}
body.converter-page .file-card{margin-bottom:16px;padding:15px;box-shadow:none}
body.converter-page .settings,body.converter-page .image-settings{max-width:none;margin:18px 0 0;padding-top:0;border-top:0}
body.converter-page .image-settings{gap:10px 24px}
body.converter-page .image-settings .source-orientation{grid-column:1/-1;display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:400;line-height:1.5;cursor:pointer}
body.converter-page .source-orientation input{width:16px;height:16px;flex:none;margin:0;accent-color:#416a51}
body.converter-page .settings label,body.converter-page .image-settings label,body.converter-page .pdf-title-field label,body.converter-page .fen-input-panel label{font-size:12px}
body.converter-page .settings input,body.converter-page .pdf-title-field input{padding:11px 12px;font-size:13px}
body.converter-page .settings small,body.converter-page .pdf-title-field small,body.converter-page .fen-input-panel small{font-size:11px;line-height:1.6}
body.converter-page .pdf-title-field{max-width:none;margin:18px 0 0}
body.converter-page .format-note{max-width:none;margin:14px 0 0;text-align:left;font-size:11px}
body.converter-page .fen-input-panel{max-width:none;margin:0}
body.converter-page .fen-input-panel textarea{display:block;min-height:125px;border-radius:6px;padding:11px 12px}
body.converter-page .fen-input-panel .convert{margin:18px 0 0}
body.converter-page .job-panel{max-width:none;margin:0}
body.converter-page #progress-panel{padding:28px}
body.converter-page #progress-message{margin:0;font-size:23px;letter-spacing:-.4px}
body.converter-page #progress-detail{max-width:530px;margin:0 auto;min-height:40px;font-size:13px;line-height:1.7;color:#687970}
body.converter-page progress{margin:24px auto 17px}
body.converter-page .completion-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 28px;border-bottom:1px solid #e5ece5;background:#f5f9f5;text-align:left;font-size:12px;color:#5f7566}
body.converter-page .completion-label{display:flex;align-items:center;gap:9px;min-width:0;color:#315f44}
body.converter-page .completion-label .success-mark{width:22px;height:22px;flex-shrink:0;margin:0;background:#e0eddf;color:#2e6c47;font-size:14px}
body.converter-page .completion-label h2{font-size:13px;font-weight:550;line-height:1.5;letter-spacing:0;margin:0}
body.converter-page .completion-bar.needs-review{background:#fff8e9;border-bottom-color:#efd9aa}
body.converter-page .completion-bar.needs-review .completion-label{color:#805017}
body.converter-page .completion-bar.needs-review .success-mark{background:#f8e5b7;color:#825513}
body.converter-page .image-review-message{margin:0;padding:12px 28px;border-bottom:1px solid #efd9aa;background:#fffbf2;color:#805017;font-size:12px;line-height:1.7;text-align:left}
body.converter-page .completion-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-left:auto}
body.converter-page #conversion-time{margin:0;font-size:11px;line-height:1.5;color:#5f7566}
body.converter-page .button.restart-button{min-height:44px;padding:8px 12px;font-size:12px;font-weight:650;border-color:#afc5b6;box-shadow:0 1px 2px #2b4a3210}
body.converter-page .result-summary{margin:0;padding:12px 28px;border-bottom:1px solid #edf0ec;text-align:left;font-size:12px;line-height:1.6;color:var(--muted)}
body.converter-page .result-summary:empty,body.converter-page[data-mode="image_fen"] .result-summary,body.converter-page[data-mode="fen_image"] .result-summary{display:none}
body.converter-page .preview-details{margin:0;padding:0 28px;border:0;border-radius:0;box-shadow:none;scroll-margin-top:18px}
body.converter-page .preview-details>summary{padding:14px 0;font-size:12px;color:#637969}
body.converter-page .preview-header{gap:12px 16px;margin:0 0 14px}
body.converter-page .position-heading strong{font-size:16px;letter-spacing:-.15px}
body.converter-page .position-heading>span{font-size:12px;color:#63776a;margin-top:5px}
body.converter-page .preview-nav{gap:10px}
body.converter-page .preview-nav button{width:44px;height:44px;border-radius:6px;font-size:21px}
body.converter-page .lichess-edit{font-size:12px;line-height:1.7}
body.converter-page .lichess-edit>span{font-size:11px;color:#708075}
body.converter-page .comparison{gap:12px;max-width:660px;margin:0 auto 17px}
body.converter-page .comparison.single{max-width:330px}
body.converter-page .comparison figcaption{display:block;text-align:left;margin:0 0 7px;font-size:12px;font-weight:550;color:#576f60}
body.converter-page .source-frame,body.converter-page .output-frame{overflow:hidden}
body.converter-page .source-frame img,body.converter-page .output-frame>img{display:block}
body.converter-page .position-feedback{max-width:none;margin:17px -28px 0;padding:15px 28px;border-top:1px solid var(--line)}
body.converter-page .feedback-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
body.converter-page .position-feedback h3{margin:0;font-size:13px;font-weight:600;color:#344e3f}
body.converter-page .feedback-ratings{gap:8px;margin:0;flex-shrink:0}
body.converter-page .feedback-rating{gap:7px;padding:9px 11px;border-radius:6px;font-size:12px;white-space:nowrap;min-height:38px}
body.converter-page .feedback-rating[aria-pressed="true"]{border-color:#7a9d83;background:#eaf3eb;color:#2d5b3c;box-shadow:none}
body.converter-page #feedback-dislike[aria-pressed="true"]{border-color:#c3a47c;background:#fbf3e9;color:#785c37;box-shadow:none}
body.converter-page .position-feedback textarea{min-height:58px;padding:8px 11px;border-radius:6px}
body.converter-page .position-feedback textarea::placeholder{color:#849087}
body.converter-page #feedback-help{margin:0;flex:1;min-width:200px;color:#758277;font-size:11px;line-height:1.6}
body.converter-page .feedback-actions{gap:12px;margin-top:9px}
body.converter-page .feedback-actions .button{min-height:38px;padding:9px 14px}
body.converter-page #feedback-status{flex-basis:100%;min-width:0}
body.converter-page #feedback-status:empty{display:none}
body.converter-page #preview-empty{padding-bottom:14px}
body.converter-page .fen-result-panel{max-width:none;margin:0;padding:15px 28px 16px;border:0;border-top:1px solid var(--line);border-radius:0;background:#f9fbf8}
body.converter-page .fen-result-label{font-size:13px;margin-bottom:9px}
body.converter-page .fen-result-content{display:flex;align-items:center;gap:12px}
body.converter-page .fen-value{flex:1;min-width:0;width:auto;padding:11px 13px;border-radius:6px;border-color:#dde4dc;background:#fff;color:#435b47;font-size:12px;line-height:1.8}
body.converter-page .fen-copy-actions{flex-shrink:0;flex-direction:column;align-items:flex-end;gap:5px;margin:0;min-height:0}
body.converter-page .fen-copy-actions .button{white-space:nowrap}
body.converter-page #copy-fen-status{font-size:11px;line-height:1.5}
body.converter-page #copy-fen-status:empty{display:none}
body.converter-page .result-output{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 28px 16px;border-top:1px solid var(--line);background:#f9fbf8;text-align:left}
body.converter-page .result-output:has(#download-main[hidden]){display:none}
body.converter-page .result-output .pdf-title-field{flex:1;min-width:0;margin:0}
body.converter-page .result-output #download-main{flex-shrink:0;margin-left:auto}
body.converter-page .history-section{max-width:850px;margin:18px auto 0;padding-top:12px}
body.converter-page .history-section>summary{text-align:left;padding:4px 0;color:#637969}
body.converter-page .history-section>summary::after{float:right}
body.converter-page .history-row{padding:15px 0}
body.converter-page .history-row small{font-size:11px;color:#7a897c}
body.converter-page footer{padding:22px 20px;font-size:14px;color:#728073}
body.converter-page footer p span{color:#526b58;font-weight:600}
body.converter-page .footer-version{font-size:11px;letter-spacing:0}

@media(max-width:680px){
  body.converter-page .site-header{padding:19px 16px 18px;gap:15px}
  body.converter-page main{padding:18px 14px 25px}
  body.converter-page .workspace-heading{padding:16px 20px}
  body.converter-page .workspace-heading h1{font-size:21px}
  body.converter-page .workspace-heading .job-name{max-width:27%;font-size:11px}
  body.converter-page .section-mark{width:33px;height:33px}
  body.converter-page .notice{margin:14px 20px}
  body.converter-page #upload-panel{padding:18px 20px}
  body.converter-page .dropzone{padding:23px 18px}
  body.converter-page .settings,body.converter-page .image-settings{margin-top:18px}
  body.converter-page .image-settings{gap:10px 16px}
  body.converter-page #progress-panel{padding:24px 20px}
  body.converter-page #progress-message{font-size:21px}
  body.converter-page .completion-bar{padding:10px 20px;row-gap:10px}
  body.converter-page .completion-actions{gap:10px}
  body.converter-page .result-summary{padding:11px 20px}
  body.converter-page .image-review-message{padding:11px 20px}
  body.converter-page .preview-details{padding:0 20px}
  body.converter-page .preview-header{gap:10px}
  body.converter-page .position-heading strong{font-size:16px}
  body.converter-page .comparison{gap:12px}
  body.converter-page .position-feedback{margin-left:-20px;margin-right:-20px;padding:15px 20px}
  body.converter-page .feedback-header{align-items:flex-start;flex-direction:column;gap:10px}
  body.converter-page .feedback-ratings{width:100%}
  body.converter-page .feedback-rating{flex:1;justify-content:center}
  body.converter-page .fen-result-panel,body.converter-page .result-output{padding:15px 20px 16px}
  body.converter-page .fen-result-content{gap:9px}
  body.converter-page .fen-value{font-size:11px}
  body.converter-page .fen-copy-actions .button{padding:10px 12px}
  body.converter-page .lichess-edit>span{display:none}
  body.converter-page .history-section{margin-top:18px}
  body.converter-page .tools{max-width:720px}
  body.converter-page .tool-content{padding:9px 5px;min-height:42px;font-size:12px}
  body.converter-page .tool-name{gap:5px}
  body.converter-page .tool b{font-size:15px}
}
@media(min-width:441px) and (max-width:640px){body.converter-page .tools{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:540px){
  body.converter-page .completion-actions{width:100%;margin-left:0;justify-content:space-between}
  body.converter-page .button.restart-button{white-space:normal;text-align:center;max-width:220px}
  body.converter-page #conversion-time{font-size:10px}
  body.converter-page .preview-header{margin-bottom:12px}
  body.converter-page .result-output{flex-direction:column;align-items:stretch;gap:14px}
  body.converter-page .result-output #download-main{margin-left:0;align-self:flex-start}
}
@media(max-width:440px){
  body.converter-page .tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.converter-page .brand{font-size:26px}
  body.converter-page .workspace-heading{padding:17px}
  body.converter-page .workspace-heading .job-name{font-size:10px}
  body.converter-page .section-mark{display:none}
  body.converter-page .notice{margin:14px 17px}
  body.converter-page #upload-panel{padding:18px 17px}
  body.converter-page .select-file{min-width:0;max-width:100%;font-size:13px}
  body.converter-page .dropzone{padding:23px 15px}
  body.converter-page .image-settings{grid-template-columns:1fr;gap:17px}
  body.converter-page .completion-bar{padding:10px 17px;align-items:flex-start;flex-direction:column;gap:9px}
  body.converter-page .completion-actions{gap:9px}
  body.converter-page .button.restart-button{max-width:180px;font-size:11px}
  body.converter-page .result-summary{padding:11px 17px}
  body.converter-page .image-review-message{padding:11px 17px}
  body.converter-page .preview-details{padding:0 17px}
  body.converter-page .preview-nav{gap:7px}
  body.converter-page .preview-nav button{width:40px;height:40px}
  body.converter-page .comparison{grid-template-columns:1fr;max-width:290px;gap:18px}
  body.converter-page .comparison.single{max-width:290px}
  body.converter-page .position-feedback{margin-left:-17px;margin-right:-17px;padding:15px 17px}
  body.converter-page .feedback-actions{flex-wrap:wrap}
  body.converter-page #feedback-status{min-width:100%}
  body.converter-page .fen-result-panel,body.converter-page .result-output{padding:15px 17px 16px}
  body.converter-page .fen-result-content{flex-direction:column;align-items:stretch}
  body.converter-page .fen-value{width:100%}
  body.converter-page .fen-copy-actions{align-self:flex-end}
  body.converter-page .feedback-rating{padding:9px 8px;font-size:11px}
}
