.studio-tour-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.tour-main { max-width: 1280px; padding-bottom: 42px; }
.tour-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 355px); gap: 17px; align-items: start; }
.tour-workspace:has(.tour-owner[hidden]) { grid-template-columns: minmax(0, 1fr); }
.tour-workspace:has(.tour-viewer[hidden]) { grid-template-columns: minmax(0, 670px); }
.tour-owner { display: grid; gap: 17px; }
.tour-viewer { min-width: 0; }
.tour-screen { aspect-ratio: 16 / 10; min-height: 290px; max-height: 65dvh; }
.tour-screen img { object-fit: contain; background: #302f28; }
.tour-screen .visual-state { z-index: 1; }
.tour-hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tour-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: min(40%, 175px);
  min-height: 38px;
  overflow: hidden;
  padding: 6px 12px;
  border: 1px solid #fdf9eb;
  border-radius: 24px;
  pointer-events: auto;
  background: #294131ed;
  color: #fffdfa;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tour-foot { display: grid; justify-items: start; gap: 9px; padding: 15px 17px 18px; }
.tour-rooms { display: flex; gap: 7px; flex-wrap: wrap; }
.tour-note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.tour-note.error, #page-status.error { color: var(--error); }

.tour-button {
  display: inline-flex;
  min-height: 38px;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.tour-button[aria-pressed="true"] { border-color: #729378; background: var(--green-soft); }
.tour-button.primary { border-color: var(--green); background: var(--green); color: white; }
.tour-button:disabled { opacity: .55; cursor: default; }

.tour-editor { display: grid; gap: 9px; }
.tour-editor h2 { margin-bottom: 2px; }
.tour-card .setting-block { border-bottom: 0; }
.tour-editor label, .tour-share label { font-size: 13px; }
.tour-fieldset { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.tour-fieldset legend { padding: 0; font-size: 14px; font-weight: 700; }
.tour-list, .tour-order { display: grid; gap: 7px; margin-top: 9px; }
.tour-list + .tour-note, .tour-note + .tour-button { margin-top: 8px; }
.tour-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfaf6;
  text-align: left;
}
.tour-list-item > span, .tour-candidate-label > span { display: grid; min-width: 0; gap: 3px; }
.tour-list-item strong { font-size: 13px; overflow-wrap: anywhere; }
.tour-candidate-label { display: flex; align-items: center; gap: 7px; min-width: 0; cursor: pointer; }
.tour-candidate-label input { accent-color: var(--green); }
.tour-candidate-label small { color: var(--muted); overflow-wrap: anywhere; }
.tour-order { margin-bottom: 0; padding: 0; list-style: none; }
.tour-order li { display: flex; gap: 6px; align-items: center; }
.tour-order li input { flex: 1; min-width: 0; }
.tour-order .tour-button { min-width: 35px; padding-inline: 7px; }
.tour-editor input:not([type="checkbox"]), .tour-share input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--hair);
  border-radius: 7px;
  background: #fbfaf6;
  color: var(--ink);
  padding: 6px 9px;
}
.tour-share { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; width: 100%; }
.tour-share label, .tour-share p { flex-basis: 100%; }
.tour-share input { flex: 1 1 190px; width: auto; }
@media (max-width: 765px) {
  .tour-workspace { grid-template-columns: minmax(0, 1fr); }
  .tour-screen { aspect-ratio: 4 / 3; min-height: 250px; }
}
