:root {
  --bg: #f6f5f0;
  --ink: #183c34;
  --muted: #667970;
  --brand: #125c4d;
  --line: #dce4db;
  --gold: #e8b966;
  --red: #9b2936;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 650;
  min-height: 46px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.app-shell {
  max-width: 850px;
  margin: auto;
  padding: 32px 20px;
}
.hero {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 25px;
}
.logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 20px;
  background: white;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 6px;
}
h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.13;
  letter-spacing: -0.04em;
  margin: 0;
}
h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
.hero p:last-child {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 520px;
}
.card {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 26px #193c3407;
}
.steps {
  display: flex;
  justify-content: space-between;
  padding: 25px 2px;
  gap: 10px;
}
.steps span {
  color: var(--muted);
  font-size: 14px;
}
.steps [aria-current] {
  color: var(--brand);
  font-weight: 800;
}
.steps b {
  margin-left: 6px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.section-head h2 {
  margin-bottom: 0;
}
.pill {
  background: #eaf2e9;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 12px;
  white-space: nowrap;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
}
.defaults {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin: 20px 0;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd7cd;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}
textarea {
  resize: vertical;
}
.dropzone {
  border: 2px dashed #bbd1c3;
  background: #f5f9f2;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
}
.dropzone span:last-of-type {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.dropzone input {
  max-width: 100%;
  font-size: 13px;
  border: 0;
  background: transparent;
}
.dropzone input::file-selector-button {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.plus {
  font-size: 35px;
  line-height: 1;
  color: var(--brand);
}
.photo-list {
  display: grid;
  gap: 16px;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
}
.photo-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.photo-top img {
  width: 72px;
  height: 80px;
  object-fit: contain;
  background: #f0f1ed;
  border-radius: 8px;
}
.photo-name {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.remove {
  background: #f8edef;
  color: var(--red);
  padding: 8px 12px;
}
.photo-controls {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 10px;
  margin-top: 12px;
}
.photo-controls label {
  margin-bottom: 8px;
  font-size: 12px;
}
.fit-select {
  grid-column: 1/-1;
}
.preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7e9e4;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin: 10px 0;
}
.preview-frame canvas {
  max-width: 100%;
  max-height: 150px;
  box-shadow: 0 1px 8px #0002;
}
.warning {
  font-size: 12px;
  color: #925700;
  margin: 5px 0;
}
.primary {
  background: var(--brand);
  color: #fff;
}
.secondary {
  background: #edf2ea;
  color: var(--ink);
}
.wide {
  width: 100%;
  margin-top: 18px;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.actions > * {
  flex: 1;
}
.empty {
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}
.notice {
  background: #fff3d8;
  border: 1px solid #f0dcaf;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  margin: 14px 0;
}
.install-help {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 14px;
}
.install-help summary {
  font-weight: 650;
  color: var(--brand);
}
.error {
  color: var(--red);
  background: #fff0f2;
  padding: 15px;
  border: 1px solid #e6b5bd;
  border-radius: 12px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
}
.consent input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.review-row span {
  overflow-wrap: anywhere;
}
.review-contact {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
progress {
  width: 100%;
  accent-color: var(--brand);
  height: 20px;
}
.success {
  text-align: center;
}
.success-mark {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #e8f4df;
  border-radius: 50%;
  font-size: 30px;
  margin-bottom: 20px;
}
.order-id {
  font-size: 16px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
footer {
  padding: 30px 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
footer span {
  font-weight: 400;
  letter-spacing: 0;
}
@media (max-width: 540px) {
  .app-shell {
    padding: 22px 14px;
  }
  .hero {
    gap: 12px;
    align-items: flex-start;
  }
  .logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .hero p:last-child {
    font-size: 14px;
  }
  h1 {
    font-size: 27px;
  }
  .card {
    padding: 20px 16px;
  }
  .defaults {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .defaults label {
    margin-bottom: 10px;
  }
  .steps {
    font-size: 12px;
  }
  .steps b {
    margin-left: 2px;
  }
  .steps span {
    font-size: 12px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .actions button {
    padding: 12px 8px;
    font-size: 14px;
  }
  .section-head h2 {
    font-size: 23px;
  }
  footer {
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media print {
  body {
    background: white;
  }
  .no-print {
    display: none !important;
  }
  .card {
    box-shadow: none;
    border: 0;
  }
  .app-shell {
    max-width: none;
  }
}
