:root {
  color-scheme: light;
  --page: #f5f5f3;
  --surface: #fff;
  --ink: #191b1a;
  --muted: #545a57;
  --line: #dcded9;
  --soft: #eff0ec;
  --charcoal: #202522;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
button, input { font: inherit; }
button, .faux-button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
:focus-visible { outline: 2px solid #365d91; outline-offset: 4px; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topbar { border-bottom: 1px solid var(--line); }
.header-row, .topright, .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-row { min-height: 72px; }
.wordmark { color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: #606961; }
.topright { font-size: 13px; }
.topright a { font-weight: 650; text-underline-offset: 4px; }
.internal, .file-hint, .small-note, .engine-status { color: var(--muted); font-size: 13px; }
.studio, .results { margin-block: 42px 0; scroll-margin-top: 24px; }
.upload-zone {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.upload-content { padding: clamp(36px, 6vw, 84px); align-self: center; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.03; font-weight: 680; letter-spacing: -.068em; margin-bottom: 19px; }
.upload-content p { max-width: 30ch; font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-bottom: 26px; }
.upload-action { position: relative; width: fit-content; }
.upload-action input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-action input:focus-visible + label { outline: 2px solid #365d91; outline-offset: 4px; }
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--charcoal);
  color: white;
  font-size: 14px;
  font-weight: 650;
}
.primary-btn:hover:not(:disabled), .secondary-btn:hover:not(:disabled) { background: #39413c; }
.secondary-btn { color: var(--ink); background: var(--soft); border-color: var(--line); }
.secondary-btn:hover:not(:disabled) { color: #fff; }
.file-hint { margin-top: 12px; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 17px -4px -8px; }
.subtle-btn, .text-btn {
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.subtle-btn:hover:not(:disabled), .text-btn:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.sample-actions span { margin-left: 4px; }
.upload-visual { position: relative; min-width: 0; margin: 0; display: grid; background: #d9ddd4; }
.upload-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.upload-visual figcaption { position: relative; place-self: end start; margin: 19px; padding: 5px 10px; border-radius: 5px; background: #1c211ee8; color: #fff; font-size: 12px; }
.session-status { margin-top: 12px; }
.engine-status { display: inline-flex; align-items: center; gap: 7px; }
.engine-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #68776c; }
#work-stage, .result-image-panel, .refinement-panel { padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); min-width: 0; }
.mode-bar, .result-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mode-bar h1, .result-head h1 { font-size: clamp(26px, 4vw, 42px); letter-spacing: -.05em; margin: 0; }
.selection-guide { margin: 8px 0 16px; color: var(--muted); font-size: 14px; }
.canvas-shell { border-radius: 12px; overflow: hidden; background: var(--soft); }
.canvas-zone {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}
.canvas-zone img { display: block; max-width: 100%; max-height: 64vh; width: auto; height: auto; user-select: none; }
.canvas-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; opacity: .78; z-index: 2; }
.tools { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 18px; padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.tool-block { display: grid; gap: 6px; }
.control-label { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; }
.tool-toggle { display: flex; padding: 3px; background: var(--soft); border-radius: 10px; }
.tool-toggle button { min-height: 40px; padding: 4px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; }
.tool-toggle button.selected { background: var(--charcoal); color: #fff; }
.size-control { min-width: 125px; max-width: 210px; flex: 1; }
.size-control input { width: 100%; height: 40px; margin: 0; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: #34483b; }
#brush-output { display: none; }
.shadow-controls { padding-top: 5px; }
.shadow-controls p { margin: 0 0 6px; }
.shadow-controls p:empty, #tap-status:empty, #metrics:empty { display: none; }
.shadow-controls button + button { margin-left: 12px; }
#accept-shadow { color: #65470e; }
#shadow-overlay { pointer-events: none; z-index: 3; opacity: .8; }
#tap-status { margin: 7px 0 0; }
.work-actions { display: grid; gap: 10px; padding-top: 15px; }
#ai-consent-row { background: var(--soft); border-radius: 9px; padding: 10px 12px; }
.small-note label, label.small-note { display: flex; align-items: start; gap: 7px; }
.small-note input { margin: .24em 0 0; flex: 0 0 auto; }
#mask-tip { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.edit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.edit-error { margin: 0; color: #9c2432; font-size: 14px; font-weight: 650; }
.result-head { margin-bottom: 20px; }
.count-pill { font-size: 13px; color: var(--muted); }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 18px; align-items: start; }
.compare { display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--soft); }
.compare img { display: block; max-width: 100%; grid-area: 1 / 1; }
.compare #compare-result { position: relative; }
.compare-control { display: flex; align-items: center; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 13px; }
.compare-control input { flex: 1; min-width: 0; }
#metrics { overflow-wrap: anywhere; }
#preview-note { margin-bottom: 0; }
.refinement-panel h3 { font-size: 18px; letter-spacing: -.025em; margin-bottom: 8px; }
.version-list, .choose-refine { display: grid; gap: 7px; margin: 12px 0; }
.version-item, .choose-refine label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
}
.version-item.active, .choose-refine label:has(input:checked) { background: var(--soft); border-color: #68776c; }
.version-item span { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.choose-refine { border: 0; padding: 0; }
.choose-refine label { justify-content: start; cursor: pointer; }
.choose-refine input { margin: 0; }
.full-width, #refine-button { width: 100%; }
.refine-divider { border-top: 1px solid var(--line); margin: 18px 0; }
#refine-help { color: var(--muted); font-size: 13px; }
#new-photo { margin-top: 7px; }
.how { margin-block: 54px; padding-top: 26px; border-top: 1px solid var(--line); }
.how h2 { font-size: 23px; letter-spacing: -.035em; margin-bottom: 14px; }
.how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 40px; margin-bottom: 0; padding-left: 21px; color: var(--muted); font-size: 14px; }
.how li strong { color: var(--ink); }
.foot-row { border-top: 1px solid var(--line); padding-block: 18px 25px; font-size: 13px; color: var(--muted); }
#toast, .edit-progress:not(:empty) {
  position: fixed; z-index: 31; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  background: var(--charcoal); color: white; border-radius: 10px; padding: 11px 16px;
  box-shadow: 0 8px 24px #19201d38; font-size: 14px; pointer-events: none;
}
#toast { z-index: 30; opacity: 0; transition: opacity .2s; }
#toast.show { opacity: 1; }
.edit-progress:not(:empty) { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.edit-progress:not(:empty)::before, .tap-marker::before {
  content: ""; display: block; width: 21px; height: 21px; flex: 0 0 21px;
  border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%;
  animation: cye-spin .85s linear infinite;
}
@keyframes cye-spin { to { transform: rotate(360deg); } }
.tap-marker { position: absolute; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; filter: drop-shadow(0 0 3px #181a19); }
.tap-progress {
  position: absolute; top: 0; left: 0; width: max-content; max-width: calc(100% - 16px); z-index: 5;
  padding: 7px 11px; border-radius: 7px; background: #202522ed; color: white; pointer-events: none;
  font-size: 13px; font-weight: 650; line-height: 1.4;
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .upload-zone { min-height: 430px; }
  .upload-content { padding: 30px; }
  .result-layout { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 28px); }
  .header-row { min-height: 58px; }
  .internal { display: none; }
  .studio, .results { margin-top: 18px; }
  .upload-zone { grid-template-columns: 1fr; min-height: auto; border-radius: 16px; }
  .upload-content { padding: 29px 20px 22px; }
  .desktop-break { display: none; }
  .upload-content h1 { font-size: clamp(37px, 10vw, 52px); margin-bottom: 12px; }
  .upload-content p { margin-bottom: 19px; }
  .upload-visual { min-height: 220px; aspect-ratio: 16 / 10; }
  .upload-visual figcaption { margin: 10px; }
  #work-stage, .result-image-panel, .refinement-panel { border-radius: 14px; }
  .mode-bar h1, .result-head h1 { font-size: 27px; }
  .count-pill { text-align: right; }
  .edit-actions .primary-btn { width: 100%; }
  .how { margin-block: 36px; }
  .how ol { grid-template-columns: 1fr; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .edit-progress:not(:empty)::before, .tap-marker::before { animation: none; }
}

:root {
  --page: #f6f3ee;
  --surface: #fdfbf7;
  --ink: #202321;
  --muted: #555c56;
  --line: #dfdbd3;
  --soft: #eeeee7;
  --charcoal: #202321;
  --sage: #64796e;
}

.upload-zone {
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  min-height: 0;
  box-shadow: 0 18px 48px #33291c0b;
}

.upload-content { padding: clamp(36px, 5vw, 74px); }
.upload-content h1 { font-size: clamp(36px, 5.7vw, 75px); }
.wordmark span { color: var(--sage); }

.upload-visual {
  display: block;
  padding: clamp(12px, 2.6vw, 32px);
  aspect-ratio: auto;
  min-height: 0;
  background: #282e2a;
  color: #fff;
}
.demo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 13px;
  background: #353f37;
  overflow: hidden;
}
.upload-visual img {
  inset: 0;
  display: block;
  object-position: center;
}
.demo-controls {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin-top: 14px;
}
.demo-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 360px);
  min-width: 0;
  border: 1px solid #606b62;
  border-radius: 10px;
  background: #1e2420;
  padding: 3px;
  margin: 0;
}
.demo-switch label { position: relative; cursor: pointer; }
.demo-switch label span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 5px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
}
.demo-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.demo-switch input:checked + span { background: #ebeee7; color: #202321; }
.demo-switch input:focus-visible + span { outline: 2px solid #cfe1cf; outline-offset: 2px; }
.upload-visual figcaption {
  place-self: auto;
  min-height: 1.5em;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #e0e5df;
  font-size: 13px;
}
.questions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px 50px;
  padding: clamp(20px, 4.5vw, 57px);
  margin-block: 0 46px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #e9ebe4;
}
.questions h2 {
  font-size: clamp(25px, 3.5vw, 43px);
  letter-spacing: -.05em;
  line-height: 1.1;
  margin-bottom: 9px;
}
.questions p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.question-list details { border-top: 1px solid #c8cec4; }
.question-list details:last-child { border-bottom: 1px solid #c8cec4; }
.question-list summary { padding: 13px 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 650; }
.question-list details p { padding-bottom: 15px; }
@media (max-width: 720px) {
  .upload-zone, .questions { grid-template-columns: 1fr; }
  .desktop-break { display: none; }
  .upload-content { padding: 30px 24px; }
}
@media (max-width: 570px) {
  .demo-frame { border-radius: 9px; }
  .demo-controls { gap: 7px; margin-top: 9px; }
  .questions { gap: 15px; }
}

.launch-price {
  color: var(--muted);
  font-size: 13px;
  margin: 15px 0 0;
}
.upload-content .launch-price { font-size: 13px; margin: 15px 0 0; }
.sample-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.practice-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.practice-intro h1 { font-size: clamp(30px, 5vw, 52px); }
.practice-intro p { max-width: 55ch; color: var(--muted); }
.practice-picker .upload-action, .practice-picker .file-hint,
.practice-picker .launch-price, .practice-picker #practice-link,
.practice-picker .upload-content > h1, .practice-picker .upload-content > p { display: none; }
#brush-controls { margin-bottom: 9px; }
#tap-status { margin: 4px 0 10px; }
#local-model-row { margin-bottom: 8px; }
.compare-window { max-height: 68vh; overflow: auto; border-radius: 10px; }
.compare { width: 100%; margin-inline: auto; }
.compare img { width: 100%; height: auto; }
.zoom-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.zoom-controls input { min-width: 60px; max-width: 140px; flex: 1; }
.zoom-controls output { min-width: 4ch; }
#download-status:empty { display: none; }
@media (max-width: 570px) {
  .practice-intro { display: block; }
  .practice-intro a { display: inline-flex; align-items: center; }
  .topright { gap: 10px; }
}

.album { display: none; margin-block: 42px 56px; }
.album-mode .album { display: block; }
.album-mode #studio, .album-mode #results, .album-mode .session-status,
.album-mode .how, .album-mode .questions, .album-mode a[href="#how"] { display: none !important; }
.album [hidden] { display: none !important; }
.album-intro { color: var(--muted); max-width: 52ch; }
.album-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.album-setup section, .album-review, .album-order {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: clamp(15px, 3vw, 26px);
}
.album h2 { font-size: 22px; margin-bottom: 9px; letter-spacing: -.035em; }
.album input[type="file"] { display: block; max-width: 100%; margin: .4em 0; }
.album-consent { display: flex; gap: 9px; align-items: start; margin: 10px 0; color: var(--muted); font-size: 14px; }
.album-consent input { flex: 0 0 auto; margin-top: 5px; }
.album-reference-preview, .album-photo-frame { position: relative; width: fit-content; max-width: 100%; line-height: 0; margin: 10px 0; }
.album-reference-preview canvas, #album-photo { display: block; max-width: 100%; max-height: 57vh; height: auto; width: auto; border-radius: 9px; }
.album-reference-preview canvas { cursor: crosshair; }
#album-mask { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .66; touch-action: none; cursor: crosshair; }
.album-marker { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 29px; height: 29px; background: var(--charcoal); border: 1px solid #fff; border-radius: 50%; color: #fff; line-height: 1; font-size: 22px; pointer-events: none; }
.album-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(205px,1fr)); gap: 10px; }
.album-photos li { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); padding: 8px; border-radius: 9px; }
.album-photos img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; }
.album-photos strong, .album-photos small { display: block; overflow-wrap: anywhere; }
.album-photos .subtle-btn { min-height: 34px; padding-block: 0; }
.album-review, .album-order { margin-top: 16px; }
.album-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.album-tools button, .album-setup button { width: auto; min-height: 42px; }
.album-tools [aria-pressed="true"] { color: #fff; background: var(--charcoal); }
@media(max-width:620px) { .album-setup { grid-template-columns: 1fr; } }

.tap-marker { color: #fff; font-weight: 700; font-size: 16px; line-height: 21px; text-align: center; }
.tap-marker::before { position: absolute; inset: 0; }

.album-file-picker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.album-file-picker label { cursor: pointer; width: auto; }
.album-file-picker input:focus-visible + label { outline: 2px solid #365d91; outline-offset: 4px; }
.album-file-picker input:disabled + label { cursor: not-allowed; opacity: .48; pointer-events: none; }
.album-setup .album-photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 1fr)); }

.info-page { max-width: 720px; padding-bottom: 48px; }
.info-page h1 { font-size: clamp(34px, 6vw, 54px); }
.info-page h2 { font-size: 21px; margin-bottom: 8px; }
.info-page section + section { margin-top: 22px; }
.info-page p { color: var(--muted); }
.info-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* Photography studio */
:root {
  --page: #f3f0e9;
  --surface: #fffdf8;
  --ink: #1e211e;
  --muted: #565c54;
  --line: #ddd7cc;
  --soft: #eeebe3;
  --charcoal: #222a23;
}
.topbar { background: var(--surface); }
.topright a { text-decoration: none; }
.topright a:hover { text-decoration: underline; }
.upload-zone {
  background: #1e2721;
  border-color: #374237;
  border-radius: 27px;
  box-shadow: 0 22px 54px #25271e24;
  color: #f7f2e7;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}
.upload-content { padding: clamp(28px, 4.2vw, 61px); }
.upload-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 6.25vw, 88px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 21px;
}
.upload-content h1 em { color: #efc683; }
.upload-content > p:not(.launch-price) { color: #e0e2d8; line-height: 1.55; }
.upload-content .faux-button {
  color: #26241b; background: #efd09a; border-color: #f0d6a9;
  box-shadow: 0 6px 18px #151d16a0;
}
.upload-content .faux-button:hover { background: #ffe0aa; }
.upload-content .file-hint, .upload-content .launch-price { color: #c6cec2; }
.upload-content .launch-price strong { color: #f6edda; }
.upload-content .sample-actions { gap: 0 14px; margin-top: 11px; }
.upload-content .subtle-btn { color: #f4ead7; }
.upload-visual {
  margin: clamp(9px, 1.55vw, 19px);
  background: #333f34;
  padding: clamp(10px, 1.35vw, 17px);
  border: 1px solid #4b584b;
  border-radius: 17px;
}
.demo-frame { border-radius: 9px; box-shadow: 0 9px 19px #17201977; }
.demo-controls { grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 8px; }
.demo-switch { width: 100%; background: #242d26; border-color: #5c685c; }
.demo-switch input:checked + span { background: #f1d6a4; color: #25271e; }
.demo-controls figcaption { text-align: center; }
#work-stage, .result-image-panel, .refinement-panel, .album-setup section, .album-review, .album-order {
  box-shadow: 0 10px 26px #272b2010;
}
.canvas-shell, .compare-window { background: #272e28; }
.result-image-panel { padding: clamp(12px, 2.3vw, 24px); }
.mode-bar, .result-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#brush-controls { border-bottom: 0; align-items: center; }
.tool-toggle { border: 1px solid var(--line); }
#ai-consent-row, .album-order .album-consent { color: var(--ink); }
.questions { background: #e8e8dc; }
@media (max-width: 720px) {
  .upload-zone { grid-template-columns: 1fr; border-radius: 20px; }
  .upload-content { padding: 29px 23px 15px; }
  .upload-content h1 { font-size: clamp(47px, 11vw, 71px); }
  .upload-visual { margin: 0 10px 10px; }
}

/* Homepage and upload */
.upload-zone {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  overflow: visible;
}
.upload-content { padding: 24px 0; }
.upload-content h1 { margin-bottom: 18px; }
.upload-content h1 em { color: #365344; }
.upload-content > p:not(.launch-price) { color: var(--muted); }
.upload-visual { margin: 0; background: #242b26; }
.photo-drop {
  width: 100%;
  max-width: 380px;
  padding: 21px 14px 16px;
  border: 1px dashed #9ca89c;
  border-radius: 13px;
  background: #fdfbf6;
  text-align: center;
}
.photo-drop.drag-active { outline: 2px solid #365344; outline-offset: -2px; background: #e6ede5; }
.upload-content .faux-button { background: #365344; border-color: #365344; color: #fff; box-shadow: none; }
.upload-content .faux-button:hover { background: #284235; }
.drop-hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.upload-content .file-hint { color: var(--muted); margin-top: 5px; }
.upload-content .subtle-btn { color: #314c3e; }
.fallback-sample { display: none; }
.practice-picker .fallback-sample { display: inline-flex; }
.album-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(21px, 4vw, 42px);
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e7ebe3;
}
.album-feature h2 { font-size: clamp(25px, 4vw, 40px); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 8px; }
.album-feature p { color: var(--muted); max-width: 53ch; margin: 0; }
.album-feature .secondary-btn { white-space: nowrap; text-decoration: none; flex: 0 0 auto; }
.album-mode .album-feature, .practice-mode .album-feature, body:has(#studio.hidden) .album-feature,
body:has(#work-stage:not(.hidden)) .album-feature { display: none; }
@media (max-width: 720px) {
  .upload-zone { grid-template-columns: 1fr; gap: 18px; }
  .upload-content { padding: 13px 0 0; }
  .photo-drop { max-width: none; }
  .album-feature { flex-direction: column; align-items: flex-start; margin-top: 30px; }
}
@media (hover: none) { .drop-hint { display: none; } }

.editor-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); gap:22px; align-items:start; }
.editor-controls { min-width:0; }
.editor-controls .tools { padding:0; margin:0 0 10px; gap:4px 8px; }
.editor-controls .work-actions { padding-top:5px; }
.editor-controls .edit-actions .primary-btn { width:100%; }
.editor-more { margin-top:12px; border-top:1px solid var(--line); padding-top:8px; }
.editor-more summary { cursor:pointer; min-height:32px; font-size:14px; font-weight:650; }
.editor-more .size-control { margin-bottom:5px; }
.edit-path { display:flex; gap:14px; margin:9px 0 13px; font-size:13px; color:var(--muted); }
.edit-path strong { color:var(--ink); }
.keyboard-help { margin:8px 0; }
.keyboard-cursor { position:absolute; z-index:6; width:18px; height:18px; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 2px #151515; transform:translate(-50%,-50%); pointer-events:none; }
.keyboard-cursor[hidden], #demo-mask-overlay[hidden] { display:none; }
.demo-frame.verified-demo { background:#202722; }
.verified-demo img { object-fit:contain; }
#demo-mask-overlay { position:absolute; inset:0; background:#ff4c8499; mask:url('/mask-practice.png') center / contain no-repeat luminance; pointer-events:none; }
@media (max-width:720px) {
  .editor-layout { grid-template-columns:1fr; gap:12px; }
  .tool-toggle button, .editor-controls .subtle-btn { min-height:44px; }
}

.gallery-frame img { object-fit: cover; object-position: center 43%; }
.gallery-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.gallery-button { background: transparent; color: #f4f1e8; border: 0; min-height: 44px; padding: 4px 8px; font-size: 13px; font-weight: 650; }
.gallery-button:hover { text-decoration: underline; text-underline-offset: 4px; }
#editing-example:not([hidden]) { padding-top: 6px; }

.edit-percent { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }

/* Contractor Brain palette option */
:root {
  color-scheme: dark;
  --page: #03080f;
  --surface: #0b1521;
  --ink: #e8edf1;
  --muted: #9aa7b4;
  --line: #25384a;
  --soft: #132334;
  --charcoal: #132334;
  --sage: #65b5ff;
  --accent: #168df2;
}
.upload-content h1 em, .upload-content .subtle-btn, a:hover { color: var(--sage); }
.photo-drop, .questions, .album-feature { background: var(--surface); border-color: var(--line); }
.photo-drop.drag-active { background: var(--soft); outline-color: var(--accent); }
.upload-content .faux-button, .primary-btn, .demo-switch input:checked + span {
  color: #03080f;
  background: var(--accent);
  border-color: var(--accent);
}
.upload-content .faux-button:hover, .primary-btn:hover:not(:disabled) { color: #03080f; background: #65b5ff; }
.upload-visual, .canvas-shell, .compare-window, .demo-frame.verified-demo { background: var(--surface); border-color: var(--line); }
.demo-switch { background: var(--page); border-color: var(--line); }
.version-item, .choose-refine label { background: var(--surface); }
.version-item.active, .choose-refine label:has(input:checked) { border-color: var(--accent); }
.tool-toggle button.selected, .album-tools [aria-pressed="true"] { background: var(--accent); color: #03080f; }
#accept-shadow { color: #f2ce91; }
.edit-error { color: #ff9da9; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }
:focus-visible, .upload-action input:focus-visible + label, .album-file-picker input:focus-visible + label { outline-color: var(--sage); }

.album-feature[hidden] { display: none; }

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 32px;
}

.seo-related {
  padding-block: 20px;
}

.seo-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px 24px;
  padding-inline-start: 20px;
}

.seo-related a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.seo-comparison figure {
  margin: 0;
}

.seo-comparison img {
  display: block;
  max-width: 100%;
  height: auto;
}
