.dr17 {
  --dr-ink: #17364b;
  --dr-paper: #f3f2ea;
  --dr-line: #a9b5ad;
  --dr-edge: clamp(20px, 5.4vw, 104px);
  color: var(--dr-ink);
  background: var(--dr-paper);
  padding: clamp(26px, 4vw, 70px) var(--dr-edge) clamp(50px, 7vw, 120px);
  font: 400 1rem/1.42 var(--sa-sans);
}
.dr17 *, .dr17 *::before, .dr17 *::after { box-sizing: border-box; }
.dr17 :is(h1, h2, p, figure, fieldset, legend) { margin: 0; padding: 0; }
.dr17 :is(button, a, input) { color: inherit; font: inherit; }
.dr17 button { cursor: pointer; }
.dr17 :is(a, button, input, canvas):focus-visible { outline: 3px solid #a73614; outline-offset: 4px; }
.dr17 a { text-decoration: underline; text-underline-offset: .2em; }
.dr17 :is(button, input):disabled { opacity: .45; cursor: default; }
.dr17-head, .dr17-work { max-width: 1520px; margin-inline: auto; }
.dr17-head {
  display: grid;
  grid-template-columns: minmax(0,1.46fr) minmax(0,.83fr);
  align-items: end;
  gap: clamp(26px, 6vw, 100px);
  padding-bottom: clamp(24px, 3.5vw, 58px);
}
.dr17-head a { display: inline-flex; font-size: .89rem; margin-bottom: clamp(14px, 2vw, 30px); }
.dr17-head h1 {
  color: var(--dr-ink);
  font: 600 clamp(60px, 7.45vw, 136px)/.83 var(--sa-condensed);
  letter-spacing: -.053em;
  text-transform: uppercase;
}
.dr17-head > p { max-width: 33ch; font-size: clamp(1rem, 1.45vw, 1.5rem); line-height: 1.32; letter-spacing: -.025em; }
.dr17-work { display: grid; grid-template-columns: minmax(0,1.46fr) minmax(0,.83fr); gap: clamp(26px, 6vw, 100px); align-items: start; border-top: 1px solid var(--dr-line); padding-top: 22px; }
.dr17-proof { min-width: 0; }
.dr17-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid #94b5b3;
  background: linear-gradient(148deg, #d2e7da 2%, #b8dcd6 31%, #9cc7ce 70%, #8cb7c1 100%);
}
.dr17-plate-label, .dr17-stage-base { position: absolute; z-index: 2; left: clamp(15px, 2.1vw, 35px); right: clamp(15px, 2.1vw, 35px); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dr17-plate-label { top: clamp(16px, 2vw, 30px); font: 600 .9rem/1 var(--sa-condensed); letter-spacing: .09em; text-transform: uppercase; }
.dr17-stage-base { bottom: clamp(14px, 1.9vw, 30px); font-size: clamp(.94rem, 1.16vw, 1.25rem); }
.dr17-stage-base button { min-height: 40px; border: 1px solid #375b64; padding: 6px 16px; background: transparent; border-radius: 100px; }
.dr17-stage-base button:hover:not(:disabled) { color: #f8f6ec; background: var(--dr-ink); }
.dr17-body { position: relative; width: 62%; max-width: 500px; aspect-ratio: 1389/1380; filter: drop-shadow(5px 10px 5px #16384759) drop-shadow(19px 23px 16px #16384732); }
.dr17-hardware { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.dr17-screen { position: absolute; width: 91%; height: auto; aspect-ratio: 1; left: 4.5%; top: 4.5%; border-radius: 50%; cursor: grab; touch-action: none; }
.dr17-screen:active { cursor: grabbing; }
.dr17-proof figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font-size: .88rem; padding-top: 13px; line-height: 1.4; }
.dr17-proof figcaption span { max-width: 39ch; }
.dr17-proof figcaption a { flex: none; }
.dr17-desk { min-width: 0; }
.dr17-film-label, .dr17-crop label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dr17-film-label h2 { font: 600 clamp(30px,3vw,56px)/.98 var(--sa-condensed); letter-spacing: -.035em; }
.dr17-film-label > span { font-size: .88rem; }
.dr17-film { display: flex; gap: 4px; margin-top: 12px; padding: 9px 10px; background: #1b2c32; }
.dr17-film button { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 2px 3px 3px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: #d4dbd6; font: 600 .82rem/1.2 var(--sa-condensed); letter-spacing: .07em; }
.dr17-film button[aria-pressed="true"] { color: #fefbf0; border-bottom-color: #cced81; }
.dr17-thumb { display: block; position: relative; width: clamp(48px, 5.2vw, 86px); max-width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.dr17-thumb :is(img, canvas) { position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; }
.dr17-thumb img[hidden] { display: none; }
.dr17-photo { display: flex; align-items:center; gap: clamp(10px, 1.4vw, 23px); padding: 16px 0; border-bottom:1px solid var(--dr-line); }
.dr17-upload { background: #ddeb8d; font-weight: 600!important; border: 1px solid var(--dr-ink); padding: 10px 13px; min-height: 44px; white-space: nowrap; }
.dr17-photo p, .dr17-file-note { font-size:.85rem; line-height:1.4; }
.dr17-input { display:none; }
.dr17-method { border:0; padding-top:5px!important; margin-top:15px!important; }
.dr17-method legend, .dr17-crop label { font-size: 1rem; font-weight: 600; }
.dr17-method > div { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.dr17-method button { display:flex; align-items:center; gap:8px; padding:7px 12px; min-height:38px; font-size:.94rem; border:1px solid var(--dr-line); border-radius:30px; background:transparent; }
.dr17-method button::before { content:""; width:13px; height:13px; border-radius:50%; background:conic-gradient(#a83b34,#e9ba57,#649c90,#a83b34); }
.dr17-method button[data-dr-method="indigo"]::before { background:linear-gradient(36deg,#153c78,#d3e5e5); }
.dr17-method button[aria-pressed="true"] { border-color:var(--dr-ink); box-shadow:inset 0 0 0 1px var(--dr-ink); }
.dr17-crop { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 20px; align-items:center; padding:15px 0; margin-bottom:15px; border-bottom:1px solid var(--dr-line); }
.dr17-crop label { grid-column:1 / -1; }
.dr17-crop output { font-size:.88rem; font-weight:400; font-variant-numeric:tabular-nums; }
.dr17-crop input { width:100%; min-width:0; height:30px; margin:0; accent-color:#1e526d; }
.dr17-reset { background: transparent; padding: 5px 0; border:0; font-size:.85rem!important; text-decoration:underline; text-underline-offset:.2em; }
.dr17-export { display:flex; flex-wrap:wrap; gap:6px; }
.dr17-export button { min-height:44px; padding:10px clamp(9px,1.1vw,17px); background:transparent; border:1px solid var(--dr-ink); font-size:.93rem; }
.dr17-export .dr17-primary { background:var(--dr-ink); color:#f7f7ee; }
.dr17-export button:hover:not(:disabled), .dr17-upload:hover { box-shadow:inset 0 0 0 2px #70929b; }
.dr17-file-note { margin-top:9px!important; max-width:45ch; }
.dr17-status { min-height:1.45em; margin-top:8px!important; font-size:.9rem; color:#1f5265; }
@media (min-width: 1750px) { .dr17-head h1 { font-size:136px; } }
@media (max-width: 935px) {
  .dr17 { --dr-edge:clamp(20px,3.7vw,40px); }
  .dr17-head, .dr17-work { grid-template-columns:minmax(0,1.12fr) minmax(0,.9fr); gap:26px; }
  .dr17-head h1 { font-size:clamp(60px,8.9vw,85px); }
  .dr17-stage { aspect-ratio:.93; }
  .dr17-body { width:73%; }
  .dr17-proof figcaption { display:grid; gap:6px; }
}
@media (max-width: 710px) {
  .dr17-head, .dr17-work { display:block; }
  .dr17-head a { margin-bottom:17px; }
  .dr17-head h1 { font-size:clamp(55px,12.3vw,82px); }
  .dr17-head > p { margin-top:16px; max-width:40ch; font-size:1.04rem; }
  .dr17-work { padding-top:15px; }
  .dr17-stage { aspect-ratio:1.25; }
  .dr17-body { width:58%; }
  .dr17-proof figcaption { display:flex; }
  .dr17-desk { margin-top:28px; }
  .dr17-thumb { width:clamp(55px,13vw,81px); }
  .dr17-crop { gap:5px 14px; }
  .dr17-photo { padding:15px 0; }
  .dr17-photo p { font-size:.86rem; }
}
@media (max-width: 399px) {
  .dr17-proof figcaption { display:grid; }
  .dr17-plate-label { font-size:.8rem; }
  .dr17-stage-base { font-size:.88rem; }
  .dr17-stage-base button { min-height:35px; padding:5px 11px; }
}
