*{box-sizing:border-box}body{margin:0;background:linear-gradient(125deg,#f1f6f7,#fffaf4);color:#112e48;font:16px/1.85 Tahoma,Arial,sans-serif}main{max-width:930px;margin:auto;padding:24px clamp(14px,4vw,52px) 60px}header,.actions,.result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}header{border-bottom:1px solid #dce6e9;padding:4px 0 16px}a{color:#1b5870}header span{font:11px Georgia;letter-spacing:2px;color:#b18a54}.heading{margin:32px 0 18px}.eyebrow{color:#bc935e;font:11px Georgia;letter-spacing:2px}h1{font-size:clamp(31px,6vw,56px);line-height:1.35;margin:7px 0 12px}h1 em{font-style:normal;color:#b48b58}h2{font-size:clamp(20px,3.5vw,28px);margin:0}h3{font-size:20px}p{margin:10px 0}details,.upload-panel,#edit,.archive{margin:18px 0;background:#fff;border:1px solid #d9e4e9;border-radius:19px;padding:clamp(14px,3vw,25px);box-shadow:0 8px 28px #17375009}details summary{cursor:pointer;font-weight:700}.upload{display:flex;flex-direction:column;gap:8px;cursor:pointer;background:#edf5f9;border:1.5px dashed #9eb7c8;padding:18px;border-radius:14px;font-weight:bold}.upload input{max-width:100%;font:inherit}.upload small,.privacy{color:#5e7180;font-size:12px;font-weight:normal}.privacy{margin:10px 0 0}button{cursor:pointer;font:inherit;border:1px solid #aec4d0;background:#fff;color:#123b59;border-radius:13px;padding:10px 17px}button:disabled{opacity:.5;cursor:not-allowed}button[aria-pressed=true],#show,#save,#download{background:#102f4c;color:#fff;border-color:#102f4c}.actions{justify-content:flex-start;margin-top:17px}.actions label{font-size:13px}.result-head{margin:27px 0 14px}.result-head span{font-size:13px;border-radius:100px;background:#f9eddc;color:#76542b;padding:5px 12px}.comparison{position:relative;overflow:hidden;border-radius:18px;border:1px solid #dce6ee;background:#dce7e9;isolation:isolate}.comparison canvas{display:block;width:100%;height:auto}.compare-divider{position:absolute;top:0;bottom:0;left:50%;border-left:2px solid #fff;pointer-events:none;transform:translateX(-50%);filter:drop-shadow(0 0 2px #2449)}.compare-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:42px;width:42px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#113a58;font-size:24px;box-shadow:0 2px 12px #0004}.compare-label{position:absolute;top:16px;padding:5px 15px;border-radius:20px;background:#fff;color:#123450;font-weight:700;pointer-events:none;box-shadow:0 2px 8px #0003}.compare-label.before{left:16px}.compare-label.after{right:16px}.comparison input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;direction:ltr}.board{background:#eaf0f3;border-radius:12px;overflow:auto;text-align:center}#editor{max-width:100%;max-height:65vh;width:auto;height:auto;touch-action:none;cursor:crosshair}#edit p,.archive p{font-size:13px;color:#5c7180}.consent{display:flex;align-items:flex-start;gap:9px;line-height:1.6;margin:15px 0}.consent input{min-width:19px;width:19px;height:19px}.notice{padding:14px;border-radius:13px;background:#faf0e4;color:#765c38;font-size:12px}.archive{background:#fdfefe}#message:not(:empty){border:1px solid #d7e5ec;color:#28596e;background:#eaf4f8;border-radius:10px;padding:10px 12px;white-space:pre-wrap}#message:empty{display:none}[hidden]{display:none!important}@media(max-width:550px){h1{font-size:30px}.compare-label{top:8px;padding:2px 9px;font-size:12px}.compare-divider span{height:33px;width:33px;font-size:18px}#download{width:100%}button{font-size:13px}}.quality{font-size:12px;color:#28596e;background:#eef5f8;border:1px solid #d7e5ec;border-radius:11px;padding:9px 12px;margin-top:12px}
.quality:empty{display:none}
.quality.warn{background:#fff4e4;border-color:#edd6a7;color:#7e5625}
input[type=range]{accent-color:#ac8851}
button:focus-visible,.upload:focus-within,input:focus-visible{outline:3px solid #9ea8d2;outline-offset:2px}

#editor{display:block;margin:auto;width:100%;height:auto;max-height:none}.board{max-height:70vh}#slide{touch-action:none}

.embedded body{background:transparent}.embedded header{display:none}.embedded main{max-width:none;padding:18px clamp(14px,4vw,52px) 30px}.embedded .heading{margin-top:12px}

#demo-animation{display:block;width:100%;height:680px;object-fit:contain;background:#f7f6f2}
#result.sample-mode #compare,#result.sample-mode #slide,#result.sample-mode #divider,#result.sample-mode .compare-label,#result.sample-mode .patient-controls,#result.sample-mode #pixel-diff{display:none}
#result:not(.sample-mode) #demo-animation,#result:not(.sample-mode) .sample-controls{display:none}
.sample-controls small{font-size:12px;color:#5e7180}
@media(max-width:550px){#demo-animation{height:520px}}
