:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --paper-deep: #efe7d8;
  --panel: rgba(255, 252, 245, 0.82);
  --panel-strong: #fffdf8;
  --ink: #14281f;
  --muted: #5f645f;
  --line: rgba(35, 42, 35, 0.16);
  --line-strong: rgba(35, 42, 35, 0.28);
  --green: #1f3a2b;
  --green-soft: #63745f;
  --gold: #c9a16d;
  --wood: #69462c;
  --shadow: 0 22px 55px rgba(48, 39, 28, 0.14);
  --soft-shadow: 0 10px 28px rgba(48, 39, 28, 0.1);
  --radius: 22px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    repeating-radial-gradient(ellipse at 16% 12%, transparent 0 22px, rgba(37, 56, 46, 0.045) 23px 24px, transparent 25px 42px),
    repeating-radial-gradient(ellipse at 84% 20%, transparent 0 24px, rgba(37, 56, 46, 0.04) 25px 26px, transparent 27px 46px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(180deg, #fffaf0 0%, #f5eee2 52%, #efe7d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.8), transparent 25%),
    linear-gradient(90deg, rgba(255,255,255,.38), transparent 18%, transparent 82%, rgba(255,255,255,.32));
  opacity: 0.5;
}

button,
input,
select {
  font: inherit;
}

button,
label,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 54px;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  grid-template-areas:
    "topbar topbar"
    "intro intro"
    "preview source"
    "preview source";
  column-gap: clamp(26px, 4vw, 54px);
  row-gap: 22px;
  align-items: start;
  min-height: calc(100vh - 56px);
}

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand__mark {
  width: 86px;
  height: 36px;
  position: relative;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  inset: auto;
  border-color: var(--green);
  border-style: solid;
  transform: rotate(-45deg);
}

.brand__mark::before {
  left: 18px;
  top: 11px;
  width: 34px;
  height: 34px;
  border-width: 3px 3px 0 0;
}

.brand__mark::after {
  left: 42px;
  top: 17px;
  width: 24px;
  height: 24px;
  border-width: 3px 3px 0 0;
}

.icon-button {
  display: grid;
  position: absolute;
  right: 0;
  top: 8px;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.62);
  color: var(--green);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.icon-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.intro {
  grid-area: intro;
  text-align: center;
  width: min(980px, 100%);
  margin: 0 auto 8px;
}

.intro h1,
.section-heading h2,
.build-notes h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.intro h1 {
  font-size: clamp(54px, 7vw, 98px);
  line-height: 0.95;
}

.ornament {
  width: 156px;
  height: 18px;
  margin: 20px auto 16px;
  position: relative;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
  transform: scaleX(-1);
}

.ornament {
  background:
    linear-gradient(45deg, transparent 43%, var(--gold) 44%, var(--gold) 56%, transparent 57%)
    center / 12px 12px no-repeat;
}

.intro p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.34;
}

.preview-wrap {
  grid-area: preview;
  position: relative;
  min-height: clamp(430px, 54vw, 610px);
  overflow: hidden;
  border: 1px solid rgba(255, 252, 245, 0.72);
  border-radius: 30px;
  background: rgba(255, 252, 245, 0.72);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.preview-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 18, 0.26) 72%, rgba(251, 247, 238, 0.1));
  pointer-events: none;
}

.sample-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(430px, 54vw, 610px);
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 0;
  transition: opacity 220ms ease;
}

.preview-card {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 5vw, 54px);
  right: clamp(22px, 5vw, 54px);
  bottom: clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.88);
  color: var(--green);
  box-shadow: 0 16px 36px rgba(39, 33, 26, 0.18);
}

.sample-switcher {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3vw, 32px);
  top: clamp(18px, 3vw, 32px);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 252, 245, 0.68);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.76);
  box-shadow: 0 14px 30px rgba(39, 33, 26, 0.12);
}

.sample-switcher button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.sample-switcher button.is-active {
  background: var(--green);
  color: #fffdf8;
}

.preview-card span:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
}

.preview-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-panel {
  display: grid;
}

.route-source-panel {
  grid-area: source;
  display: grid;
  gap: 12px;
}

.source-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: stretch;
}

.strava-button {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #1f3a2b, #16281f);
  color: #fffdf8;
  box-shadow: 0 18px 34px rgba(22, 42, 32, 0.22);
  padding: 14px 20px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 820;
  cursor: pointer;
}

.strava-button > span:last-child {
  display: none;
}

#strava-button-label {
  white-space: nowrap;
}

.strava-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #fc7b22, #ec4f18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.strava-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}

.activity-picker {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.7);
  box-shadow: var(--soft-shadow);
}

.activity-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.activity-picker__header strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.activity-picker__header button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.86);
  color: var(--green);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.activity-filters {
  display: grid;
  grid-template-columns: 1fr 150px 178px;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(31, 58, 43, 0.08);
}

.activity-search input,
.activity-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.activity-search input {
  padding: 0 14px;
}

.activity-filters select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding: 0 34px 0 12px;
  cursor: pointer;
}

.activity-search input:focus,
.activity-filters select:focus {
  border-color: rgba(31, 58, 43, 0.48);
  box-shadow: 0 0 0 3px rgba(31, 58, 43, 0.08);
}

.activity-count {
  margin: 0;
  padding: 0 18px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.activity-list {
  display: grid;
  max-height: min(420px, 44vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(31, 58, 43, 0.34) transparent;
  scrollbar-width: thin;
}

.activity-list::-webkit-scrollbar {
  width: 10px;
}

.activity-list::-webkit-scrollbar-track {
  background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(31, 58, 43, 0.3);
  background-clip: padding-box;
}

.activity-empty {
  padding: 24px 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.activity-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
}

.activity-card__map {
  display: block;
  width: 92px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(31, 58, 43, 0.16);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(31, 58, 43, 0.05) 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(31, 58, 43, 0.045) 14px),
    rgba(239, 231, 216, 0.72);
}

.activity-card__map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.activity-card__map path {
  fill: none;
  stroke: #8e3f2e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.activity-card__map > span {
  display: block;
  width: 42px;
  height: 3px;
  margin: 27px auto 0;
  border-radius: 999px;
  background: rgba(31, 58, 43, 0.25);
}

@media (max-width: 760px) {
  .activity-filters {
    grid-template-columns: 1fr;
  }
}

.activity-card:last-child {
  border-bottom: 0;
}

.activity-card:hover,
.activity-card.is-selected {
  background: rgba(237, 228, 212, 0.7);
}

.activity-card strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.activity-card small,
.activity-card span {
  color: var(--muted);
  font-size: 13px;
}

.activity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 7px;
}

.activity-card__chevron {
  align-self: center;
  color: var(--green);
  font-size: 32px;
}

@media (max-width: 560px) {
  .activity-card {
    grid-template-columns: 70px 1fr auto;
  }

  .activity-card__map {
    width: 70px;
    height: 48px;
  }
}

.dropzone {
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  gap: 6px 16px;
  align-items: center;
  min-height: 92px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.72);
  color: var(--green);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.source-actions .dropzone {
  grid-template-columns: 1fr;
  gap: 3px;
  align-content: center;
  justify-items: center;
  height: 100%;
  min-height: 82px;
  padding: 12px 10px;
  border-color: rgba(35, 42, 35, 0.18);
  background: rgba(255, 252, 245, 0.58);
  box-shadow: none;
  text-align: center;
}

.source-actions .dropzone__icon {
  display: none;
}

.source-actions .dropzone__main {
  font-size: 16px;
  line-height: 1.05;
}

.source-actions .dropzone__sub {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.source-actions .dropzone__chevron {
  display: none;
}

.dropzone.is-dragging {
  border-color: var(--green);
  background: rgba(255, 252, 245, 0.96);
  transform: translateY(-2px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone__icon {
  grid-column: 1;
  grid-row: span 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 245, 0.8);
  color: var(--green);
}

.dropzone__icon svg,
.trust-strip svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dropzone__icon svg {
  width: 30px;
}

.dropzone__main {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.dropzone__sub {
  grid-column: 2;
  grid-row: 2;
}

.dropzone__sub,
.metric__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dropzone__chevron {
  grid-column: 3;
  grid-row: span 2;
  justify-self: end;
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.route-summary div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(35, 42, 35, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.56);
}

.route-summary strong {
  color: var(--green);
  font-size: clamp(18px, 2vw, 24px);
}

.product-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 22px;
  align-items: start;
  margin-top: clamp(28px, 5vw, 64px);
}

.inspection-step {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 252, 245, 0.58);
  box-shadow: var(--soft-shadow);
}

.inspect-wrap {
  position: relative;
  min-height: clamp(420px, 58vw, 660px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.06), rgba(255, 250, 241, 0.76) 72%),
    linear-gradient(135deg, #d5d7cc, #8f9a8e 46%, #344236 100%);
  cursor: grab;
  touch-action: none;
}

.inspect-wrap:active {
  cursor: grabbing;
}

#inspect-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 58vw, 660px);
}

.production-shell {
  min-height: 100vh;
  width: min(100%, 1540px);
}

.production-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.3fr);
  gap: 22px;
  align-items: start;
  margin-top: clamp(18px, 3vw, 38px);
}

.production-view,
.production-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 252, 245, 0.64);
  box-shadow: var(--soft-shadow);
}

.production-view {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.production-canvas-wrap {
  min-height: min(820px, calc(100vh - 150px));
}

.production-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(15, 25, 20, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.production-canvas-wrap.is-processing::after {
  opacity: 1;
}

#production-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(820px, calc(100vh - 150px));
  transition: filter 260ms ease, transform 260ms ease, opacity 260ms ease;
}

.production-canvas-wrap.is-processing #production-canvas {
  filter: blur(10px) saturate(0.72);
  opacity: 0.62;
  transform: scale(1.012);
}

.viewer-processing {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: min(330px, calc(100% - 44px));
  gap: 10px;
  justify-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 252, 245, 0.64);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.78);
  box-shadow: 0 18px 42px rgba(20, 40, 31, 0.18);
  color: var(--green);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.viewer-processing[hidden] {
  display: none;
}

.viewer-processing__mark {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(31, 58, 43, 0.16);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: viewer-spin 1s linear infinite;
}

.viewer-processing strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 520;
  line-height: 1;
}

.viewer-processing span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

@keyframes viewer-spin {
  to {
    transform: rotate(360deg);
  }
}

.production-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  position: sticky;
  top: 22px;
}

.production-panel > div:first-child {
  display: grid;
  gap: 6px;
}

.production-panel > div:first-child strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.route-location {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.route-context-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.56);
}

#route-mini-map {
  display: block;
  width: 100%;
  min-height: 138px;
}

#route-mini-map rect {
  fill: rgba(239, 231, 216, 0.72);
  stroke: rgba(31, 58, 43, 0.12);
}

#route-mini-map path {
  fill: none;
  stroke: #8e3f2e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.route-context-card__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.route-context-card__actions a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.88);
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.route-context-card__actions a:hover {
  border-color: rgba(31, 58, 43, 0.34);
  background: rgba(237, 228, 212, 0.72);
}

.production-summary {
  grid-template-columns: repeat(2, 1fr);
}

.palette-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(35, 42, 35, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.5);
}

.palette-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.palette-panel strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 520;
  line-height: 1.05;
}

.palette-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.palette-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 252, 245, 0.78);
  padding: 5px;
  cursor: pointer;
}

.palette-option span {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 36px;
  overflow: hidden;
  border-radius: 11px;
  background:
    linear-gradient(135deg, var(--terrain) 0 62%, var(--route) 62% 100%);
}

.palette-option.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 58, 43, 0.1);
}

.production-progress {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(35, 42, 35, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.58);
}

.production-progress[hidden] {
  display: none;
}

.production-progress__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.production-progress__header span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.production-progress__header strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 520;
  line-height: 1;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 58, 43, 0.11);
}

.progress-track span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f3a2b, #63745f);
  transition: width 420ms ease;
}

.production-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.artifact-actions {
  display: grid;
  gap: 10px;
}

.checkout-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(35, 42, 35, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.62);
}

.checkout-panel strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 540;
  line-height: 1.05;
}

.checkout-panel .primary-button,
.checkout-panel .secondary-button {
  min-height: 54px;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.15;
}

.checkout-panel .primary-button {
  justify-content: space-between;
}

.checkout-panel .primary-button span {
  font-size: 18px;
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.coupon-field {
  display: grid;
  gap: 7px;
}

.coupon-field span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coupon-field input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.74);
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
}

.artifact-actions .primary-button {
  min-height: 54px;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
}

.view-controls {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.76);
  box-shadow: 0 14px 30px rgba(39, 33, 26, 0.14);
}

.view-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.view-button.is-active {
  background: var(--green);
  color: #fffdf8;
}

.controls,
.order-panel,
.build-notes,
.trust-strip {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 252, 245, 0.62);
  box-shadow: var(--soft-shadow);
}

.controls {
  padding: clamp(20px, 4vw, 32px);
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2,
.build-notes h2 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.98;
}

.section-heading p,
.build-notes p,
.order-panel p,
.note-list p {
  color: var(--muted);
  line-height: 1.45;
}

.section-heading p {
  margin: 10px 0 0;
  font-size: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.field-grid label,
.slider-row {
  display: grid;
  gap: 8px;
}

.field-grid label span,
.slider-row span,
.toggle-row label {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.field-grid input,
.field-grid select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.72);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.field-grid input:focus,
.field-grid select:focus,
.slider-row input:focus-visible,
.primary-button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(31, 58, 43, 0.18);
  outline-offset: 2px;
}

.slider-row {
  margin-top: 22px;
}

.slider-row input,
.toggle-row input {
  accent-color: var(--green);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.62);
}

.order-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.order-panel > div {
  display: grid;
  gap: 4px;
}

#price-value {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: 0;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 68px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #1d392b, #172a20);
  color: #fffdf8;
  box-shadow: 0 18px 34px rgba(22, 42, 32, 0.22);
  font-size: 21px;
  font-weight: 820;
  cursor: pointer;
}

.primary-button span {
  font-size: 34px;
  line-height: 1;
}

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.7);
  color: var(--green);
  font-size: 16px;
  font-weight: 820;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.secondary-button:focus-visible {
  outline: 3px solid rgba(31, 58, 43, 0.18);
  outline-offset: 2px;
}

.confirmation {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 760;
}

.admin-shell {
  max-width: 1180px;
}

.admin-panel {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.68);
  box-shadow: var(--soft-shadow);
}

.admin-login label {
  display: grid;
  gap: 8px;
}

.admin-login label span {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login input {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.78);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.admin-login .primary-button {
  min-height: 54px;
  border-radius: 16px;
  padding: 0 22px;
  font-size: 16px;
}

.admin-orders {
  display: grid;
  gap: 16px;
}

.admin-order-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.72);
  box-shadow: var(--soft-shadow);
}

.admin-order-card__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.admin-order-card__header strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 540;
  line-height: 1;
}

.order-status {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.order-status.is-paid {
  border-color: rgba(31, 58, 43, 0.28);
  background: rgba(31, 58, 43, 0.1);
  color: var(--green);
}

.admin-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-order-grid > div,
.admin-order-files {
  padding: 14px;
  border: 1px solid rgba(35, 42, 35, 0.09);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.54);
}

.admin-order-grid strong,
.admin-order-grid p,
.admin-order-files p {
  margin: 5px 0 0;
  color: var(--green);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-order-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-order-files .metric__label {
  width: 100%;
}

.admin-order-files a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--green);
  font-weight: 820;
  text-decoration: none;
}

.admin-order-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  overflow: hidden;
}

.trust-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  color: var(--green);
  font-weight: 760;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip svg {
  width: 34px;
  flex: 0 0 auto;
}

.build-notes {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: clamp(24px, 5vw, 62px);
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.build-notes h2 {
  font-size: clamp(36px, 4vw, 52px);
}

.build-notes p {
  margin: 14px 0 0;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-list article {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.note-list h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 17px;
}

.note-list p {
  margin: 0;
}

@media (max-width: 1100px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .activity-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .app-shell {
    max-width: 520px;
    padding: 22px 16px 34px;
  }

  .studio {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: auto;
  }

  .topbar,
  .intro,
  .preview-wrap,
  .route-source-panel,
  .upload-panel {
    width: 100%;
  }

  .source-actions {
    grid-template-columns: 1fr;
  }

  .source-actions .dropzone {
    grid-template-columns: 46px 1fr;
    min-height: 68px;
  }

  .topbar {
    justify-content: center;
    position: relative;
  }

  .icon-button {
    position: absolute;
    right: 0;
    top: 2px;
  }

  .brand {
    font-size: 44px;
  }

  .intro h1 {
    font-size: clamp(54px, 14vw, 76px);
  }

  .preview-wrap {
    min-height: 420px;
    margin-top: -6px;
  }

  .sample-photo {
    min-height: 420px;
  }

  .product-flow {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .production-grid {
    grid-template-columns: 1fr;
  }

  .production-panel {
    position: static;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .build-notes,
  .note-list {
    grid-template-columns: 1fr;
  }

  .note-list article {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-inline: 14px;
  }

  .brand {
    font-size: 40px;
  }

  .brand__mark {
    width: 74px;
    height: 30px;
  }

  .brand__mark::before {
    left: 16px;
    width: 28px;
    height: 28px;
  }

  .brand__mark::after {
    left: 38px;
    width: 20px;
    height: 20px;
  }

  .icon-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .intro h1 {
    font-size: clamp(48px, 13vw, 64px);
  }

  .intro p {
    font-size: 21px;
  }

  .preview-wrap {
    min-height: 360px;
    border-radius: 26px;
  }

  .sample-photo {
    min-height: 360px;
  }

  .preview-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 15px 18px;
  }

  .sample-switcher {
    right: 14px;
    top: 14px;
  }

  .production-view,
  .production-panel {
    border-radius: 22px;
  }

  .production-canvas-wrap,
  #production-canvas {
    min-height: 520px;
  }

  .dropzone {
    grid-template-columns: 54px 1fr 18px;
    min-height: 86px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .dropzone__icon {
    width: 54px;
    height: 54px;
  }

  .dropzone__main {
    font-size: 24px;
  }

  .source-actions .dropzone__main {
    font-size: 20px;
  }

  .route-summary {
    gap: 8px;
  }

  .route-summary div {
    padding: 12px 10px;
  }

  .route-summary strong {
    font-size: 18px;
  }

  .admin-login,
  .admin-order-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-card__header {
    display: grid;
  }

  .controls,
  .order-panel,
  .build-notes {
    border-radius: 22px;
  }

  .section-heading h2 {
    font-size: 46px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .trust-strip div {
    flex-direction: column;
    gap: 7px;
    min-height: 98px;
    text-align: center;
    font-size: 13px;
  }

  .trust-strip svg {
    width: 30px;
  }
}
