/* Shade Studio: theme typography and surfaces. Swatch images have no colour effects. */
:root{color-scheme:light;--ink:#251b19;--muted:#6a5e58;--paper:#faf7f3;--line:#dcd2ca;--blush:#e8cdc2}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 Arial,Helvetica,sans-serif}main{max-width:1180px;margin:auto;padding:44px 36px}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.12}h1{font-size:clamp(46px,7vw,82px);letter-spacing:-.045em;margin:20px 0}h2{font-size:clamp(30px,4vw,44px);letter-spacing:-.025em;margin:12px 0 20px}h3{font-size:23px;margin:0}em{font-weight:400}.eyebrow,.signature{font-size:10px;font-weight:bold;letter-spacing:.19em}.studio-header{border-top:1px solid var(--line);padding:36px 0 28px}.studio-header p{max-width:470px;color:var(--muted);font-size:16px}.signature{margin-top:26px;letter-spacing:.12em}.signature span{padding:0 14px;color:#a38b78}.steps{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0;font-size:12px}.steps b{font-weight:400;color:#8e6b51;margin-right:9px}.subtle,.fine-print{font-size:12px;color:var(--muted)}.fine-print{max-width:820px;margin-top:22px;font-size:11px}details{border-bottom:1px solid var(--line);padding:14px 0}summary{cursor:pointer;font-size:13px}summary span{float:right}.instructions ol{padding-left:20px;font-size:13px;max-width:760px}.instructions li{margin:10px 0}.photo-intro{display:grid;grid-template-columns:.75fr 1.25fr;gap:36px;padding:28px 0}.privacy{padding:6px 0;border:0;font-size:12px}.check{display:flex;align-items:flex-start;gap:10px;font-size:12px;margin:16px 0}.check input{width:19px;height:19px;flex:none;accent-color:var(--ink)}.file-label{display:block;font-weight:bold;font-size:13px}.file-label small{display:block;color:var(--muted);font-weight:normal;font-size:11px;margin:4px 0 10px}input[type=file]{max-width:100%;width:100%;font:12px Arial}input::file-selector-button{background:var(--ink);color:white;border:1px solid var(--ink);padding:13px 16px;font:700 11px Arial;cursor:pointer;margin-right:12px}input:disabled{opacity:.5}button{background:var(--ink);color:white;border:1px solid var(--ink);padding:13px 18px;cursor:pointer;font:600 12px Arial;min-height:44px;border-radius:0}button:disabled{opacity:.4;cursor:not-allowed}.text-button{padding:9px 0;border:0;background:transparent;color:var(--muted);text-decoration:underline;font-weight:normal;font-size:11px}a{color:inherit;text-underline-offset:5px}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #42647e;outline-offset:4px}.section-heading,.shelf-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading h2{margin-bottom:0}.studio{border-top:1px solid var(--line);padding-top:30px}.brand-picker{display:flex;gap:0;border-bottom:1px solid var(--line);margin:24px 0 0}.brand-picker button{background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:14px 18px}.brand-picker button[aria-pressed=true]{border-bottom-color:var(--ink);color:var(--ink)}.shade-navigation{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.arrow{background:transparent;color:var(--ink);border:1px solid var(--line);font-size:20px;width:44px;padding:5px}.comparison{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;scroll-margin-top:18px}.comparison.with-photo{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-panel,.shade-panel{min-width:0;margin:0}.panel-heading{display:flex;min-height:60px;flex-direction:column;gap:6px;padding-bottom:12px}.panel-heading h3{font-size:23px}.panel-heading span{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.photo-stage,.shade-stage{aspect-ratio:9/16;width:100%;height:auto;min-height:0;position:relative;background:#eee7df;display:flex;justify-content:center;align-items:center;overflow:hidden}.shade-stage{background:#f3ede6}.shade-stage img{display:block;width:100%;height:100%;object-fit:contain;filter:none;opacity:1;mix-blend-mode:normal}.photo-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%}#photo-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;color:var(--muted)}#photo-placeholder h3{font-style:italic;font-size:26px}#photo-placeholder p{font-size:12px}.portrait-mark{display:flex;align-items:center;justify-content:center;width:66px;height:86px;border:1px solid #b6a89b;border-radius:50%;font-size:26px;margin-bottom:25px;font-weight:normal}.shelf-heading{margin:30px 0 18px}.shelf-heading h3{font-size:25px}.shade-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:14px 10px}.shade-choice{padding:5px;background:transparent;border:1px solid transparent;color:var(--ink);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;font-size:11px;line-height:1.3;font-weight:normal}.shade-choice img{display:block;width:100%;height:auto;aspect-ratio:941/1672;object-fit:contain;filter:none;opacity:1;mix-blend-mode:normal}.shade-choice[aria-pressed=true]{border-color:var(--ink);outline:1px solid var(--ink);outline-offset:2px}.sample-note{background:#e8cdc2;margin:40px 0 0;padding:32px}.sample-note h2{font-size:35px}.sample-note p{max-width:640px;font-size:13px}.sample-note a{display:inline-block;border-bottom:1px solid var(--ink);text-decoration:none;font-size:11px;font-weight:bold;letter-spacing:.08em;padding:12px 0 5px}.notice{padding:16px;border-left:2px solid var(--ink)}footer{display:flex;justify-content:space-between;gap:18px;font-size:11px;color:var(--muted);padding:26px 0 0}footer span{font-size:9px}#pilot{margin:25px 0}#pilot select{padding:10px;width:100%}#pilot input[type=range]{width:100%}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.card{padding:16px;border:1px solid var(--line)}[hidden]{display:none!important}p:empty{display:none}@media(max-width:600px){main{padding:25px 16px}.studio-header{padding:20px 0}.steps{font-size:10px;gap:6px}.steps b{display:block;margin:0}.photo-intro{grid-template-columns:1fr;gap:8px}.photo-intro h2 br{display:none}.photo-intro h2{font-size:30px}.brand-picker button{flex:1;font-size:11px;padding:12px 5px}.comparison{gap:8px}.panel-heading h3{font-size:17px}.panel-heading span{font-size:8px}.section-heading>.subtle{display:none}.shelf-heading{align-items:start;gap:10px}.shelf-heading h3{font-size:22px}.shelf-heading span{font-size:10px}.shade-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 7px}.shade-choice{padding:3px;font-size:10px}#photo-placeholder{padding:10px}#photo-placeholder h3{font-size:20px}#photo-placeholder p{font-size:11px}.sample-note{padding:24px 18px}.sample-note h2{font-size:30px}footer{flex-direction:column;gap:5px}}

.save-row{display:flex;align-items:center;gap:18px;margin:22px 0 0}.save-row button{font-size:11px;letter-spacing:.05em}@media(max-width:600px){.save-row{flex-direction:column;align-items:stretch;gap:8px}.save-row span{font-size:11px}}

/* Keep each original contained in a true portrait panel at every width. */
.photo-stage canvas{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%}
.shade-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.before-photo{margin:24px 0 0;padding:24px;background:#eee6df;border:1px solid var(--line)}
.before-photo h2{font-size:30px;margin:8px 0 18px}.photo-tips{display:grid;grid-template-columns:1fr 1fr;gap:18px 30px;list-style:none;padding:0;margin:0;counter-reset:tip}.photo-tips li{counter-increment:tip;position:relative;padding-left:32px;font-size:13px}.photo-tips li:before{content:'0' counter(tip);position:absolute;left:0;top:0;font-size:10px;color:var(--muted)}.photo-tips strong{display:block}.photo-tips p{margin:3px 0 0;color:var(--muted)}.before-photo .sample-first{border-top:1px solid var(--line);padding-top:16px;margin:20px 0 0;font-size:12px}@media(max-width:600px){.before-photo{padding:20px 16px}.photo-tips{grid-template-columns:1fr;gap:14px}.before-photo h2{font-size:27px}}

/* Compact photo controls and touch navigation keep the comparison in place. */
.photo-consent{padding:16px 0 22px;max-width:780px}
.photo-consent .check{margin-bottom:8px}
.photo-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.photo-actions button{width:100%;min-width:0;min-height:50px;padding:10px 6px;background:transparent;color:var(--ink);border:1px solid var(--line);font:700 10px/1.35 Arial,Helvetica,sans-serif;letter-spacing:.06em;text-decoration:none;text-transform:uppercase;text-align:center}
.photo-actions button:not(:disabled):hover{background:#eee6df;border-color:var(--ink)}
.photo-action-note{grid-column:1/-1;margin:0;font-size:10px;color:var(--muted)}
#upload-photo{max-width:100%;padding:14px 18px}
#shade-swipe{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
#selected-swatch{-webkit-user-drag:none}
.swipe-hint{display:none;margin:9px 0 0;text-align:center}
@media(pointer:coarse){.swipe-hint{display:block}}
@media(max-width:600px){#upload-photo{font-size:11px;padding:12px 9px}.swipe-hint{display:block;font-size:10px}}

/* Two clear paths, with optional local photo adjustments. */
.mode-choice{margin-bottom:28px}.mode-choice h2{font-size:34px}
.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-options button{background:transparent;color:var(--ink);border:1px solid var(--line);text-align:left;padding:21px}
.mode-options strong{display:block;font:24px Georgia,serif;font-weight:400}
.mode-options span{display:block;font-size:12px;font-weight:normal;line-height:1.5;margin-top:8px}
.mode-options button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.photo-quality-note{font-size:12px;margin-top:18px;color:var(--muted)}
.automatic-panel{margin:6px 0 24px;padding:22px;border:1px solid var(--line)}
.auto-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.auto-results:empty{display:none}.suggestion{padding:6px;background:transparent;color:var(--ink);border:1px solid var(--line);font-size:11px;font-weight:normal;line-height:1.5}
.suggestion img{display:block;width:100%;height:150px;object-fit:contain;filter:none;mix-blend-mode:normal;opacity:1;margin-bottom:8px}
.suggestion[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px}
.photo-adjust{margin-top:8px;padding:10px 0}.photo-adjust summary{font-size:12px}.photo-adjust label{display:block;font-size:11px}.photo-adjust input[type=range]{width:100%;accent-color:var(--ink);min-height:32px;margin:0}.photo-adjust output{float:right}
.photo-stage canvas{width:100%;height:100%;max-width:100%;max-height:100%}
.photo-stage.is-adjusting{touch-action:none;cursor:grab;user-select:none}.photo-stage.is-adjusting:active{cursor:grabbing}
@media(max-width:600px){.mode-choice h2{font-size:28px}.mode-options{gap:8px}.mode-options button{padding:15px 12px}.mode-options strong{font-size:21px}.mode-options span{font-size:11px}.automatic-panel{padding:18px 14px}.auto-results{gap:8px}.suggestion img{height:115px}.photo-adjust .subtle{font-size:10px}.photo-adjust summary{font-size:11px}}
