:root{--paper:#f5f3ec;--ink:#292d28;--muted:#77796e;--line:#dcded2;--rust:#a04b34;--sage:#e5e8dd;--white:#fffefa;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans)}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--rust);outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.15}h1{font-size:clamp(44px,5vw,76px);letter-spacing:-2.7px}h2{font-size:34px;letter-spacing:-.8px}h3{font-size:25px;letter-spacing:-.4px}.topbar{max-width:1440px;margin:auto;padding:27px 58px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:19px;line-height:1.05;letter-spacing:-.5px}.brand svg{width:35px;height:42px;color:var(--rust)}.brand-dot{color:var(--rust)}nav{display:flex;align-items:center;gap:28px;font-size:12px}nav a{border-bottom:1px solid var(--ink);padding:4px 0}.quiet{background:none;border:0;padding:6px 0}.quiet:hover{color:var(--rust)}.button{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:45px;border:1px solid var(--line);background:transparent;padding:10px 20px;border-radius:3px;font-size:12px;font-weight:500;white-space:nowrap}.button:hover{background:var(--sage);border-color:#c6c9ba}.button.primary{background:var(--rust);color:#fffaf0;border-color:var(--rust)}.button.primary:hover{background:#853c2a}.button.small{min-height:38px;padding:8px 15px}.button.dark{background:var(--ink);color:var(--paper);border-color:var(--ink)}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2px;font-weight:600;color:var(--muted)}.muted{color:var(--muted);font-size:12px}.home{max-width:1240px;margin:auto;padding:65px 48px 60px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center;padding-bottom:68px}.hero-copy .eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:27px}.little-line{display:inline-block;width:25px;height:1px;background:var(--rust)}.hero h1 em{color:var(--rust);font-weight:400}.hero-copy>p{max-width:330px;font-size:14px;line-height:1.85;color:#72766a;margin:24px 0 27px}.hero .button{min-height:48px}.hero-note{display:block;margin-top:15px;font-size:10px;color:var(--muted)}.hero-art{position:relative;min-height:370px;display:flex;align-items:center;justify-content:center;background:#e8e8de;border:1px solid #dfdfd3;padding:30px 55px}.hero-photo{width:68%;height:285px;object-fit:cover;transform:rotate(-5deg);box-shadow:0 5px 16px #26271b17;border:9px solid #fbfaf6}.hero-study{position:absolute;right:23px;bottom:21px;width:47%;height:210px;object-fit:cover;object-position:top;border:12px solid #fffdf5;box-shadow:0 3px 12px #26271b18;transform:rotate(6deg);background:#f7f4ec}.art-caption{position:absolute;top:16px;left:20px;font:italic 12px var(--serif);color:#7a7d70}.art-number{position:absolute;left:22px;bottom:17px;font-size:9px;letter-spacing:1.5px;color:var(--muted)}.section-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px;gap:20px}.section-heading h2{font-size:29px}.section-heading h2 span{font-family:var(--sans);font-size:11px;color:var(--muted);margin-left:12px;vertical-align:middle;letter-spacing:0}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.project-card{border:0;text-align:left;padding:0;background:none;display:block;width:100%;color:inherit}.project-image{height:210px;position:relative;overflow:hidden;background:var(--sage);border-radius:2px}.project-image>img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.project-card:hover img{transform:scale(1.03)}.card-tag{position:absolute;left:13px;top:13px;background:#faf9f0ed;padding:3px 9px;font-size:9px;letter-spacing:1px;text-transform:uppercase}.project-card h3{font-size:22px;margin-top:14px}.project-card .meta{font-size:11px;color:var(--muted);margin-top:5px}.add-card{height:210px;border:1px dashed #b9bdae;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted)}.add-card:hover{background:#ebede3}.add-card b{font:32px var(--serif);font-weight:400;color:var(--rust)}.add-card span{font-size:12px;color:var(--ink)}.add-card small{font-size:10px}.practice-strip{margin-top:48px;border-top:1px solid var(--line);padding-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.practice-strip article{display:flex;gap:16px}.practice-strip article>span{font:italic 23px var(--serif);color:#aeb2a2}.practice-strip h4{margin:0 0 4px;font-size:12px;font-weight:500}.practice-strip p{color:var(--muted);font-size:11px;max-width:230px}.footer{max-width:1324px;margin:auto;padding:20px 10px 27px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:10px;color:var(--muted);gap:15px}.footer>span:first-child{font:italic 13px var(--serif)}.workspace{max-width:1324px;margin:auto;padding:30px 35px 55px}.breadcrumb{font-size:11px;color:var(--muted);margin-bottom:22px}.breadcrumb a:hover{color:var(--rust)}.workspace-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.workspace-title h1{font-size:43px;letter-spacing:-1.3px}.workspace-title .eyebrow{margin-bottom:8px}.workspace-actions{display:flex;gap:8px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:27px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:12px 0 13px;font-size:12px;color:var(--muted)}.tabs button.active{border-color:var(--rust);color:var(--ink)}.tabs button span{font-size:9px;margin-left:5px;color:var(--muted)}.study-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:35px}.reference-card{position:sticky;top:20px;align-self:start}.reference-card>img{width:100%;max-height:330px;object-fit:contain;background:#e5e5dc;padding:16px;cursor:zoom-in}.reference-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.reference-heading .quiet{font-size:10px}.reference-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.reference-tools .button{font-size:10px;padding:6px 10px;min-height:32px}.reference-card .muted{margin-top:13px}.note-label{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-top:22px}.note-label textarea{margin-top:8px;min-height:90px;border:0;border-bottom:1px solid var(--line);background:transparent;padding:8px 0;font-size:12px;resize:vertical}.study-intro{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:22px}.study-intro h2{font-size:30px}.study-intro p{font-size:12px;color:var(--muted);margin-top:7px}.switch{display:flex;align-items:center;gap:9px;font-size:11px;white-space:nowrap}.switch input{accent-color:var(--rust);width:16px;height:16px}.sketch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.study-card{position:relative;min-width:0}.study-paper{width:100%;aspect-ratio:3/4;background:#fffdf5;border:1px solid #e5e1d6;padding:12px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.study-paper>img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}.study-card.chosen .study-paper{border-color:var(--rust)}.chosen-tag{position:absolute;top:7px;left:7px;padding:2px 7px;background:var(--rust);color:white;font-size:9px;letter-spacing:.7px}.empty-sketch{color:#b5b5a7;font:italic 24px var(--serif);text-align:center}.empty-sketch svg{width:65px;height:70px;display:block;margin:0 auto 15px;stroke:#9da28f;fill:none;stroke-width:1.2}.study-caption{display:flex;align-items:center;justify-content:space-between;margin-top:13px}.study-caption h3{font-size:22px}.study-caption button{font-size:10px;border:0;background:none;padding:5px;color:var(--rust)}.study-card p{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.6;min-height:32px}.study-card .button{width:100%;min-height:32px;font-size:10px;padding:6px;margin-top:10px}.study-tools{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.study-tools .section-heading{padding-bottom:14px}.study-tools h3{font-size:23px}.lens-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.lens-card{border:1px solid var(--line);background:#eeefe6;padding:16px;display:flex;align-items:center;gap:16px;cursor:pointer;text-align:left}.lens-card:hover{background:#e3e6d9}.lens-icon{display:flex;flex:none;height:30px;width:45px}.lens-icon i{flex:1;background:#30342f}.lens-icon i:nth-child(2){background:#919585}.lens-icon i:nth-child(3){background:#f7f5ec}.lens-icon.colour i{background:#b98155}.lens-icon.colour i:nth-child(2){background:#919e85}.lens-icon.colour i:nth-child(3){background:#cbbea0}.lens-card strong{font:19px var(--serif);font-weight:400}.lens-card small{display:block;font-size:10px;color:var(--muted)}.lens-card>span:last-child{margin-left:auto}.saved-studies{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.saved-studies .study-paper{aspect-ratio:1}.empty-state{padding:65px 24px;border:1px dashed #c9cdbf;text-align:center;background:#eef0e6}.empty-state p{max-width:370px;margin:15px auto 22px;color:var(--muted);font-size:13px}.session-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.session-grid .project-image{height:250px}.session-grid .button{margin-top:10px;min-height:32px;font-size:10px}.session-note{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);font-size:12px;padding:9px 0;resize:vertical;min-height:58px}.comparison{max-width:900px;margin:auto}.compare-selects{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:end;margin-bottom:20px}.compare-selects label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}select{display:block;width:100%;background:var(--white);border:1px solid var(--line);padding:10px;margin-top:7px;font-size:12px;text-transform:none;letter-spacing:0}.compare-stage{position:relative;max-height:65vh;aspect-ratio:4/5;margin:auto;background:#e6e8dd;overflow:hidden;max-width:650px}.compare-stage img{position:absolute;width:100%;height:100%;object-fit:contain;inset:0}.compare-stage #compare-overlay{clip-path:inset(0 50% 0 0)}.wipe-line{position:absolute;top:0;bottom:0;left:50%;width:1px;background:white;pointer-events:none}.wipe-line:after{content:'↔';position:absolute;top:48%;left:-18px;width:36px;height:36px;border-radius:50%;background:var(--white);color:var(--rust);display:grid;place-items:center;box-shadow:0 1px 8px #0003}.wipe-range{width:100%;accent-color:var(--rust);margin:18px 0 6px}.compare-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.record-layout{display:grid;grid-template-columns:1fr 1fr;gap:35px}.record-layout label{font-size:13px}.record-layout textarea{min-height:210px;background:#fffdf5;border:1px solid var(--line);padding:20px;font-family:var(--serif);font-size:20px;line-height:1.7}.record-layout .muted{margin-top:12px}.record-summary{margin-top:30px;border-top:1px solid var(--line);padding-top:20px;display:flex;gap:25px;flex-wrap:wrap;font-size:12px}.danger{color:#963f30}.image-dialog{max-width:860px;width:calc(100% - 30px)}.image-dialog>img{max-height:65vh;width:100%;object-fit:contain;background:#eeeee5}.image-dialog #image-details{font-size:11px;color:var(--muted);margin:15px 0;max-height:120px;overflow:auto}.image-dialog details summary{cursor:pointer}.image-dialog li{margin-bottom:5px}.crop-dialog{width:min(700px,calc(100% - 24px))}#crop-stage{position:relative;margin:20px auto;width:fit-content;max-width:100%;line-height:0}#crop-image{max-width:100%;max-height:50vh;object-fit:contain}#crop-overlay,#corner-handles{position:absolute;inset:0;width:100%;height:100%;overflow:visible}#crop-overlay{pointer-events:none}#crop-overlay polygon{fill:#a04b3422;stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke}#corner-handles button{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;background:var(--rust);color:white;border:2px solid white;border-radius:50%;touch-action:none;font-size:10px;display:grid;place-items:center}.crop-controls{display:flex;gap:12px;align-items:end}.crop-controls label{font-size:10px;max-width:120px}.crop-controls .button{margin-left:auto}.crop-controls+p{margin-top:12px}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:5px;padding:30px;max-height:94dvh;max-width:calc(100% - 30px);width:470px;box-shadow:0 25px 90px #1f281c33}dialog::backdrop{background:#23291f80;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.icon-button{border:0;background:none;font-size:25px;line-height:1;padding:2px 8px;color:var(--muted)}dialog h2{margin-bottom:24px}label{display:block}input:not([type=checkbox]):not([type=range]):not([type=file]),textarea{display:block;width:100%;border:1px solid var(--line);padding:11px 12px;background:var(--white);border-radius:2px;margin-top:7px}#new-form>label{margin:20px 0 10px;font-size:12px}input[type=file]{display:block;width:100%;padding:12px 0;font-size:11px}#new-form .button{margin-top:25px;width:100%}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);padding:13px 23px;background:var(--ink);color:var(--paper);font-size:12px;border-radius:4px;opacity:0;pointer-events:none;z-index:20;max-width:90%;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}#busy:not([hidden]){position:fixed;inset:0;display:grid;place-items:center;background:#f5f3ecdb;backdrop-filter:blur(4px);z-index:30}.busy-card{text-align:center;padding:32px;max-width:90vw}.busy-card p{font-size:12px;color:var(--muted);margin-top:12px}.spinner{width:30px;height:30px;border:1px solid #ccd0c0;border-top:2px solid var(--rust);border-radius:50%;display:block;animation:spin 1s linear infinite;margin:0 auto 25px}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1450px){.home{padding-top:85px;padding-bottom:85px}.hero{padding-bottom:85px}}@media(max-width:950px){.topbar{padding:23px 28px}nav{gap:17px}.home{padding:45px 28px}.hero{gap:30px}.hero-art{padding:25px;min-height:330px}.hero-photo{width:78%;height:250px}.hero-study{height:180px;right:10px}.study-layout{grid-template-columns:210px 1fr;gap:24px}.study-intro{align-items:start}.study-intro h2{font-size:25px}.study-intro .button{gap:10px;padding:9px}.sketch-grid{gap:10px}.study-paper{padding:7px}.footer{margin:0 28px}.workspace{padding:25px 28px}.project-grid{gap:18px}.reference-card>img{padding:10px}}@media(max-width:680px){.topbar{padding:18px 20px}.brand{font-size:16px;gap:7px}.brand svg{width:29px;height:35px}nav{gap:14px}nav>a{display:none}nav .quiet{font-size:10px}nav #restore{display:none}nav .button{font-size:10px;padding:7px 10px;min-height:36px}.home{padding:35px 20px}.hero{display:flex;flex-direction:column;gap:30px;padding-bottom:37px;align-items:stretch}.hero h1{font-size:54px;letter-spacing:-2px}.hero-copy .eyebrow{margin-bottom:20px}.hero-copy>p{max-width:310px;margin:18px 0 20px;font-size:13px}.hero-art{min-height:290px;width:100%;max-width:450px;align-self:center}.hero-photo{height:230px;width:59%}.hero-study{width:40%;height:175px;right:32px}.project-grid{grid-template-columns:1fr 1fr;gap:18px}.project-image,.add-card{height:170px}.project-card h3{font-size:20px}.practice-strip{grid-template-columns:1fr;gap:18px;margin-top:30px}.practice-strip article>span{width:25px}.practice-strip p{max-width:100%}.footer{margin:0 20px;flex-direction:column;gap:8px;padding:19px 0 25px}.workspace{padding:20px 18px 35px}.workspace-title{align-items:start}.workspace-title h1{font-size:34px;max-width:250px}.workspace-actions{flex-direction:column}.workspace-actions .button{min-height:30px;padding:5px 9px;font-size:10px}.tabs{gap:22px;overflow-x:auto}.tabs button{white-space:nowrap;font-size:11px}.study-layout{display:flex;flex-direction:column;gap:25px}.reference-card{position:static;display:grid;grid-template-columns:110px 1fr;gap:0 17px}.reference-heading{grid-column:1/-1;margin-bottom:8px}.reference-card>img{grid-row:2/5;height:140px;max-height:140px}.reference-tools{margin-top:0;align-content:start}.reference-card>.muted{font-size:10px;margin-top:7px}.reference-card .note-label{grid-column:1/-1;margin-top:16px}.reference-card textarea{min-height:50px}.study-intro{flex-wrap:wrap;gap:15px}.study-intro h2{font-size:29px}.study-intro>div:first-child{width:100%}.study-intro .button{margin-left:auto}.sketch-grid{gap:10px}.study-paper{padding:6px;aspect-ratio:3/4}.empty-sketch{font-size:16px}.empty-sketch svg{width:40px;height:47px}.study-caption h3{font-size:22px}.study-card p{font-size:10px;min-height:48px}.study-card .button{font-size:10px}.study-caption{margin-top:10px}.study-caption button{font-size:10px}.lens-card{padding:12px;gap:10px}.lens-icon{width:30px;height:24px}.lens-card strong{font-size:18px}.lens-card small{font-size:9px}.session-grid{grid-template-columns:1fr 1fr;gap:17px}.session-grid .project-image{height:190px}.record-layout{grid-template-columns:1fr;gap:24px}.record-layout textarea{min-height:150px;font-size:18px}.compare-selects{gap:10px}.compare-selects label{font-size:9px}.compare-selects select{font-size:11px;padding:8px 4px}.crop-controls{gap:8px;flex-wrap:wrap}.crop-controls label{max-width:90px}.crop-controls .button{width:100%;margin-top:7px}.image-dialog,dialog{padding:20px}.saved-studies{grid-template-columns:1fr 1fr}}@media(max-width:380px){nav{gap:9px}.topbar{padding:15px}.hero h1{font-size:48px}.project-grid{gap:12px}.project-image,.add-card{height:145px}.sketch-grid{grid-template-columns:1fr}.study-paper{aspect-ratio:4/3}.study-card p{min-height:0}.lens-grid{grid-template-columns:1fr}}
[hidden]{display:none!important}.project-card{align-self:start}.footer .quiet{padding:0;color:var(--rust);font-size:10px}
.detail-control{display:flex;gap:9px;align-items:center;font-size:11px;white-space:nowrap}.detail-control select{margin:0;min-width:99px;width:auto;padding:8px 9px}.study-settings{display:flex;gap:14px;align-items:end;margin-bottom:18px;flex-wrap:wrap}.study-settings label{font-size:10px;color:var(--muted)}.study-settings select{margin-top:4px;font-size:11px;padding:7px 9px}.study-meta{font-size:9px;color:var(--muted);margin-top:7px;letter-spacing:.2px}#image-viewport{overflow:auto;max-height:65vh;background:#eeeee5;margin-bottom:12px;overscroll-behavior:contain}#image-viewport img{display:block;max-height:65vh;width:100%;object-fit:contain}#image-viewport.inspect img{width:auto;max-width:none;max-height:none}#inspect-image{margin-bottom:8px}.study-intro>div:first-child{flex:1;min-width:200px}@media(max-width:950px) and (min-width:681px){.study-intro{flex-wrap:wrap}.study-intro>div:first-child{width:100%;flex:none}}@media(max-width:680px){.detail-control select{min-height:40px}.study-settings{gap:12px}.study-settings label:last-child{flex:1}.study-settings select{min-height:40px}.study-meta{font-size:9px}.study-intro>div:first-child{flex:none}}
.study-compare-entry{display:flex;gap:15px;align-items:center;margin:0 0 20px}.study-compare-entry .muted{font-size:10px}.comparison-workspace{max-width:none}.comparison-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:15px}.comparison-heading h2{font-size:32px}.comparison-heading p{margin-top:8px}.compare-modes{display:flex;border:1px solid var(--line);border-radius:3px;white-space:nowrap}.compare-modes button{border:0;background:transparent;padding:10px 15px;font-size:11px}.compare-modes button.active{background:var(--ink);color:var(--paper)}.compare-reference-switch{margin-bottom:22px}.compare-reference-switch input{accent-color:var(--rust)}.compare-with-reference{display:grid;grid-template-columns:175px minmax(0,1fr);gap:28px}.compare-with-reference.reference-hidden{grid-template-columns:1fr}.reference-hidden .compare-reference{display:none}.compare-reference>img{width:100%;max-height:310px;object-fit:contain;background:var(--sage);padding:10px;margin-top:12px}.compare-reference>p{font-size:10px;margin-top:10px}.compare-main{min-width:0}.compare-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.compare-picture{background:#fffdf5;border:1px solid var(--line);height:440px;display:flex;align-items:center;justify-content:center;padding:12px}.compare-picture img{width:100%;height:100%;object-fit:contain}.compare-pane-label{font:21px var(--serif);margin:13px 0 12px;min-height:25px}.compare-pane-actions{display:flex;flex-wrap:wrap;gap:7px}.compare-pane-actions .button{font-size:10px;padding:8px 10px;min-height:35px;white-space:normal}.compare-pane-actions .quiet{font-size:10px;padding:6px}.comparison-note{margin-top:24px}.wipe-actions{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:17px}.drawing-workspace{width:min(1180px,calc(100% - 30px))}.drawing-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:25px;align-items:start}.drawing-reference>img{width:100%;max-height:42vh;object-fit:contain;background:var(--sage);padding:10px}.drawing-reference .muted{margin:10px 0}.drawing-reference .quiet{font-size:10px}.drawing-paper{min-width:0;background:#fffdf5;padding:12px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center}.underlay-control{margin:23px 0 14px;font-size:11px}.underlay-control input{display:block;width:100%;margin:10px 0;accent-color:var(--rust)}.underlay-control span{font-size:10px;color:var(--muted)}@media(max-width:900px){.compare-with-reference{grid-template-columns:130px minmax(0,1fr);gap:18px}.compare-picture{height:350px}.drawing-layout{grid-template-columns:160px minmax(0,1fr);gap:18px}}@media(max-width:680px){.study-compare-entry{align-items:start;flex-direction:column;gap:8px}.study-compare-entry .button{width:100%}.comparison-heading{align-items:start;flex-direction:column;gap:17px}.comparison-heading h2{font-size:29px}.compare-with-reference{display:flex;flex-direction:column;gap:15px}.compare-reference{display:grid;grid-template-columns:80px 1fr;gap:8px 15px}.compare-reference .eyebrow{grid-column:2;grid-row:1;align-self:end}.compare-reference>img{grid-column:1;grid-row:1/3;margin:0;height:100px;padding:6px}.compare-reference>p{grid-column:2;margin:0;max-width:200px}.compare-pair{gap:10px}.compare-picture{height:250px;padding:7px}.compare-pane-label{font-size:18px;min-height:43px;line-height:1.3}.compare-pane-actions{flex-direction:column;align-items:stretch}.compare-pane-actions .button{font-size:10px;min-height:40px}.compare-pane-actions .quiet{text-align:left}.drawing-layout{grid-template-columns:105px minmax(0,1fr);gap:12px}.drawing-reference>img{max-height:170px;padding:5px}.drawing-reference .eyebrow{font-size:8px;letter-spacing:1px}.drawing-reference .muted{font-size:9px}.drawing-reference .reference-heading{flex-wrap:wrap;gap:5px}.drawing-paper{padding:5px;min-height:260px}.drawing-reference .button{font-size:9px;white-space:normal;padding:7px;min-height:40px}.underlay-control{margin-top:15px;font-size:10px}.drawing-workspace{padding:15px}.drawing-workspace #drawing-canvas{max-height:55vh!important}.wipe-actions{gap:10px}}@media(max-width:380px){.compare-picture{height:205px}.drawing-layout{grid-template-columns:85px minmax(0,1fr)}}
.image-dialog.drawing-workspace{max-width:1180px;width:calc(100% - 30px)}.drawing-workspace input[type=color]{padding:0!important;display:inline-block!important;min-height:30px;border:1px solid var(--line)!important;background:var(--white)!important}
.manual-crop-stage{position:relative;width:fit-content;max-width:100%;margin:20px auto;overflow:hidden;line-height:0;touch-action:none}.manual-crop-stage>img{display:block;max-width:100%;max-height:52vh;user-select:none}.manual-crop-box{position:absolute;border:2px solid white;box-shadow:0 0 0 2000px #20251f80;cursor:move;touch-action:none}.manual-crop-box button{position:absolute;width:28px;height:28px;border:2px solid white;border-radius:50%;background:var(--rust);transform:translate(-50%,-50%);touch-action:none}.manual-crop-box [data-crop-handle=nw]{left:0;top:0}.manual-crop-box [data-crop-handle=ne]{left:100%;top:0}.manual-crop-box [data-crop-handle=se]{left:100%;top:100%}.manual-crop-box [data-crop-handle=sw]{left:0;top:100%}.crop-thirds{position:absolute;inset:0;background:linear-gradient(to right,transparent 32.9%,#fff8 33%,transparent 33.4%,transparent 66%,#fff8 66.2%,transparent 66.6%),linear-gradient(to bottom,transparent 32.9%,#fff8 33%,transparent 33.4%,transparent 66%,#fff8 66.2%,transparent 66.6%);pointer-events:none}.crop-ratio-row{display:flex;gap:18px;align-items:end;margin-top:20px}.crop-ratio-row label{flex:1;font-size:11px}#save-manual-crop{margin-top:18px}.study-results{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px;background:var(--sage);margin:0 0 18px;scroll-margin-top:20px}.study-results p{font-size:11px;color:var(--muted);margin-top:5px}.study-results label{min-width:190px;font-size:10px}.study-results select{margin-top:4px}.crop-controls input{max-width:140px}@media(max-width:680px){.study-results{flex-direction:column;align-items:stretch}.manual-crop-stage>img{max-height:45vh}.crop-ratio-row{gap:12px}}

/* Keep controls clear of the home indicator in the installed iPhone app. */
body{padding-bottom:env(safe-area-inset-bottom)}
/* The WKWebView extends behind the status bar; reserve its reported safe areas. */
body{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}
/* Keep the document inside its viewport; image inspection scrolls in its own panel. */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.study-layout>*,.reference-card,.reference-card>*,.study-intro>*,.compare-selects>*{min-width:0;max-width:100%}
.workspace-title h1{overflow-wrap:anywhere}
input[type=file]{display:block;width:100%;max-width:100%;min-width:0}
dialog form,.upload-field{min-width:0;max-width:100%}
@media(max-width:680px),(pointer:coarse){
 /* iOS zooms focused fields below 16px and can retain that zoom after its picker closes. */
 input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important;max-width:100%;min-width:0}
 .reference-card{grid-template-columns:110px minmax(0,1fr)}
 .study-settings{flex-wrap:wrap}
 .study-settings label{min-width:0}
}
