* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf8f4;
  color: #30332e;
  font:
    16px/1.6 system-ui,
    sans-serif;
}
.shell {
  max-width: 1260px;
  margin: auto;
  padding: 24px;
}
nav,
.section-head,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
nav {
  padding: 0 0 28px;
}
a {
  color: #355d62;
}
button,
.file-button {
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid #b4ac9c;
  border-radius: 7px;
  padding: 10px 16px;
  min-height: 44px;
  background: white;
  color: #30332e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
button:hover,
.file-button:hover {
  background: #eee9df;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: #aa9163;
  color: #181c19;
  border-color: #aa9163;
  font-weight: 650;
}
button[aria-pressed="true"] {
  background: #303b32;
  color: #fff;
  border-color: #303b32;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible,
.file-button:focus-within {
  outline: 3px solid #287690;
  outline-offset: 3px;
}
.actions {
  justify-content: flex-start;
}
.intro {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  border-top: 1px solid #ded8ca;
  border-bottom: 1px solid #ded8ca;
  padding: 44px 0;
  margin-bottom: 36px;
}
.intro h1 {
  font:
    500 clamp(2rem, 4vw, 3.3rem) / 1.13 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 12px 0 20px;
}
.intro p {
  max-width: 770px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #716044;
}
.steps {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 10px 0 10px 22px;
  font-size: 0.9rem;
}
.intro-art {
  background: #eae2d1;
  border-radius: 110px 110px 12px 12px;
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #514934;
}
.intro-art > span:first-child {
  font: italic 52px Georgia;
  color: #927c52;
}
.intro-art p {
  font: 24px/1.3 Georgia;
}
.dot {
  align-self: flex-end;
  background: #354738;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 30px;
}
.workbench {
  background: white;
  padding: 26px;
  border: 1px solid #e1ddd5;
  border-radius: 16px;
  box-shadow: 0 6px 25px #40351d08;
}
.section-head h2 {
  font: 500 28px Georgia;
  margin: 4px 0 16px;
}
.section-head .eyebrow {
  margin: 0;
}
.editor-tools {
  padding: 16px 0;
  border-top: 1px solid #eee;
}
.editor-tools details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
details p,
.hint,
.muted,
footer {
  font-size: 0.88rem;
  color: #60635d;
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.scene {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #f0ece3;
}
.scene > img {
  width: 100%;
  height: auto;
  display: block;
}
.point {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #53452e;
  color: #fff;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #514833;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  touch-action: none;
}
.point:hover {
  background: #6b593d;
}
.point.dragging {
  cursor: grabbing;
}
.point-row {
  border-bottom: 1px solid #ded8ca;
  padding: 14px 0;
}
.point-row p {
  margin: 5px 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.point-row .actions {
  gap: 4px;
}
.point-row button {
  font-size: 0.78rem;
  padding: 5px 8px;
  min-height: 36px;
}
#status {
  border-left: 3px solid #a78f61;
  padding: 10px 14px;
  background: #f7f4ed;
  font-size: 0.9rem;
}
iframe {
  width: 100%;
  height: 870px;
  border: 0;
  border-radius: 12px;
  background: #faf8f3;
}
dialog {
  width: min(620px, 94vw);
  border: 1px solid #b5aa91;
  border-radius: 14px;
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  color: #30332e;
}
dialog::backdrop {
  background: #25332b99;
}
dialog label {
  display: block;
  margin: 12px 0;
}
dialog input:not([type="checkbox"]):not([type="file"]),
dialog textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #aaa18f;
  border-radius: 6px;
  padding: 10px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
dialog h2 {
  font: 500 26px Georgia;
  margin-top: 0;
}
dialog p {
  font-size: 0.9rem;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
}
footer {
  padding: 28px 0;
  text-align: center;
}
[hidden] {
  display: none !important;
}
#qr img {
  width: 210px;
  height: 210px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.gallery article {
  background: white;
  border: 1px solid #ddd6c6;
  border-radius: 12px;
  padding: 20px;
}
.gallery h2 {
  font: 500 24px Georgia;
}
.gallery p {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .intro {
    grid-template-columns: 1fr;
  }
  .intro-art {
    display: none;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .shell {
    padding: 16px;
  }
  .workbench {
    padding: 16px;
  }
  .steps {
    gap: 8px 30px;
  }
  .section-head {
    align-items: start;
  }
  iframe {
    height: 750px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
