.starterSetup {
  --starter-panel-max-width: 760px;
  --starter-panel-max-height: 760px;
  --starter-panel-inset: 34px;
  position: absolute;
  z-index: 30;
  box-sizing: border-box;
  width: min(var(--starter-panel-max-width), calc(100vw - var(--starter-panel-inset) - var(--starter-panel-inset)));
  max-width: calc(100vw - var(--starter-panel-inset) - var(--starter-panel-inset));
  max-height: calc(100dvh - var(--starter-panel-inset) - var(--starter-panel-inset));
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.54), rgba(255,255,255,.18)),
    rgba(255, 248, 232, .96);
  box-shadow: 0 18px 44px rgba(42, 34, 22, .16);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.starterHead {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.starterHead h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: 0;
}
.starterThemes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.starterThemeSelectWrap {
  display: none;
}
.starterThemeSelectButton,
.starterThemeSelectMenu {
  display: none;
}
.starterTheme {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  padding: 8px;
  border: 1px solid rgba(83, 70, 50, .20);
  border-radius: 16px;
  background: rgba(255, 253, 246, .72);
}
.starterTheme.active {
  border-color: var(--dancheong-red);
  box-shadow: inset 0 0 0 2px rgba(183, 72, 72, .12);
}
.starterTheme input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.starterTheme span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.starterTheme b {
  font-size: 12.5px;
  color: var(--text);
}
.starterTheme small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.starterTheme img {
  width: 42px;
  height: 42px;
  border: 2px solid white;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(38, 31, 24, .16);
}
.starterGender {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(83, 70, 50, .16);
  border-radius: 16px;
  background: rgba(255, 253, 246, .66);
}
.starterGender > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.starterGender label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(83, 70, 50, .18);
  border-radius: 12px;
  background: rgba(255, 248, 232, .8);
  font-size: 13px;
  font-weight: 900;
}
.starterGender label.active {
  border-color: rgba(199, 72, 114, .45);
  background: rgba(199, 72, 114, .10);
  color: #8a2f4c;
}
.starterGender input {
  width: auto;
}
.starterOptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.starterOptions label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(83, 70, 50, .18);
  border-radius: 14px;
  background: rgba(255, 253, 246, .66);
}
.starterOptions .starterCountOption {
  justify-content: space-between;
}
.starterCountOption > span:first-child {
  min-width: 0;
}
.starterCountControls {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  margin-left: auto;
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  overflow: hidden;
}
.starterCountControls[hidden] {
  display: none;
}
.starterCountBtn[hidden] {
  display: none;
}
.starterCountBtn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}
.starterCountBtn:hover {
  background: rgba(183, 72, 72, .10);
}
.starterOptions .starterCount {
  width: 34px;
  min-width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(83, 70, 50, .14);
  border-right: 1px solid rgba(83, 70, 50, .14);
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.starterOptions .starterCount::-webkit-outer-spin-button,
.starterOptions .starterCount::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.starterOptions input { width: auto; }
.starterPreview {
  min-height: 172px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(83, 70, 50, .20);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(39, 98, 75, .10) 1px, transparent 1px),
    rgba(243, 238, 230, .8);
  background-size: 24px 24px;
}
.starterPreviewRow {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 10px;
}
.starterPreviewRow::before,
.starterPreviewRow::after {
  content: "";
  align-self: center;
  width: 28px;
  height: 1px;
  background: rgba(120, 145, 132, .42);
}
.starterPreviewRow:empty { display: none; }

.orgSectionBand {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(126, 111, 87, .22);
  border-radius: 18px;
  background: var(--org-section-bg, rgba(255, 250, 241, .54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 14px 34px rgba(69, 55, 38, .08);
  pointer-events: none;
}

.orgSectionBand.orgSectionTone-sand { --org-section-bg: rgba(255, 250, 241, .58); }
.orgSectionBand.orgSectionTone-cream { --org-section-bg: rgba(253, 247, 232, .58); }
.orgSectionBand.orgSectionTone-linen { --org-section-bg: rgba(250, 244, 233, .58); }
.orgSectionBand.orgSectionTone-wheat { --org-section-bg: rgba(252, 243, 222, .56); }
.orgSectionBand.orgSectionTone-rose { --org-section-bg: rgba(253, 240, 232, .52); }

.orgSectionBand.orgSectionNested {
  border-radius: 16px;
  border-color: rgba(143, 124, 92, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 10px 24px rgba(69, 55, 38, .06);
}

.orgSectionBand.orgSection-direct {
  border-color: rgba(201, 149, 53, .45);
  background: rgba(255, 248, 229, .62);
}

.orgSectionBand.orgSection-external {
  border-color: rgba(104, 135, 148, .55);
  background: rgba(242, 249, 250, .56);
}

.orgSectionBand strong {
  position: absolute;
  left: 18px;
  top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(104, 86, 59, .9);
  color: #fff9ed;
  font-size: 13px;
  box-shadow: 0 5px 14px rgba(67, 52, 31, .18);
}

.orgSectionMenuBtn {
  position: absolute;
  right: 14px;
  top: 13px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(105, 88, 62, .2);
  border-radius: 999px;
  background: rgba(255, 252, 244, .9);
  color: #5d4b32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 6px 16px rgba(67, 52, 31, .12);
}

.orgSectionMenuBtn .bootstrapIcon {
  width: 16px;
  height: 16px;
}

.orgSectionMenuBtn:hover,
.orgSectionMenuBtn:focus-visible {
  background: #fff7e6;
  border-color: rgba(185, 137, 55, .5);
}

.orgSectionBand strong small {
  display: inline-block;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.32);
  font-size: 11px;
  font-weight: 800;
  opacity: .82;
}

.orgSectionBand.orgSection-direct strong {
  background: rgba(178, 126, 37, .94);
}

.orgSectionBand.orgSection-external strong {
  background: rgba(91, 118, 130, .94);
}

.orgStarterSetup {
  --starter-panel-max-width: 760px;
  --starter-panel-max-height: 760px;
}

.orgStarterIntro {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(193, 151, 84, .35);
  border-radius: 14px;
  background: rgba(255, 250, 240, .75);
  color: #5e4d38;
  font-size: 13px;
}

.orgStarterRows {
  display: grid;
  gap: 10px;
}

.orgStarterExecutive {
  display: flex;
  justify-content: flex-start;
}

.orgStarterExecutive label {
  display: grid;
  gap: 5px;
  width: 120px;
  font-size: 12px;
  color: #6c5a41;
}

.orgStarterExecutive input {
  min-height: 38px;
  border: 1px solid rgba(126, 111, 87, .24);
  border-radius: 10px;
  background: #fffaf1;
  padding: 0 10px;
  color: #3e3325;
  font: inherit;
}

.orgStarterRow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 96px 110px 38px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(126, 111, 87, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .52);
}

.orgStarterRow label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #6c5a41;
}

.orgStarterRow input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(126, 111, 87, .24);
  border-radius: 10px;
  background: #fffaf1;
  padding: 0 10px;
  color: #3e3325;
  font: inherit;
}

@media (max-width: 520px) {
  .orgStarterSetup {
    --starter-panel-inset: 8px;
  }
  .orgStarterRow {
    grid-template-columns: minmax(112px, 1fr) 60px 66px 34px;
    gap: 6px;
    padding: 8px;
  }
  .orgStarterRow label {
    min-width: 0;
    font-size: 11px;
  }
  .orgStarterRow input {
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
  }
  .orgStarterRow .iconAction {
    width: 34px;
    height: 36px;
    min-height: 36px;
    align-self: end;
  }
}

@media (max-width: 360px) {
  .orgStarterRow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 10px;
  }
  .orgStarterRow label:first-child {
    grid-column: 1 / 3;
  }
  .orgStarterRow label:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .orgStarterRow label:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .orgStarterRow .iconAction {
    grid-column: 3;
    grid-row: 1;
    width: 36px;
  }
}
.starterPerson {
  width: 58px;
  display: grid;
  justify-items: center;
  gap: 3px;
}
.starterPerson img {
  width: 54px;
  height: 56px;
  border: 2px solid white;
  border-radius: 8px;
  object-fit: cover;
  background: #fff8ed;
  box-shadow: 0 3px 8px rgba(38, 31, 24, .18);
}
.starterPerson b {
  max-width: 68px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #56605a;
  color: white;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.starterActions {
  display: flex;
  justify-content: flex-end;
}

.starterTutorialOverlay {
  position: absolute;
  inset: 0;
  z-index: 230;
  min-width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 248, 232, .46), transparent 32%),
    rgba(42, 34, 22, .42);
  backdrop-filter: blur(3px);
  cursor: default;
}
.starterTutorialCard {
  width: min(1080px, calc(100vw - 88px));
  display: grid;
  grid-template-columns: minmax(380px, 1.18fr) minmax(320px, .82fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(83, 70, 50, .18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.18)),
    rgba(255, 248, 232, .97);
  box-shadow: 0 28px 80px rgba(30, 24, 16, .28);
}
.starterTutorialCharacter {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.54), rgba(255,255,255,.12)),
    rgba(244, 225, 187, .38);
  overflow: hidden;
}
.starterTutorialCharacter img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.starterTutorialBubble {
  display: none;
}
.starterTutorialBubble strong,
.starterTutorialLead strong {
  color: #c74872;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255, 248, 232, .88);
}
.starterTutorialCopy {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.starterTutorialCopy .eyebrow {
  margin-bottom: 8px;
  color: rgba(40, 96, 74, .86);
  font-family: inherit;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}
.starterTutorialCopy h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.16;
  word-break: keep-all;
}
.starterTutorialLead {
  display: none;
  margin: 0 0 18px;
  max-width: 560px;
  color: #5f513d;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 750;
}
.starterTutorialSteps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.starterTutorialSteps span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  color: #514431;
  font-weight: 800;
  line-height: 1.45;
}
.starterTutorialSteps b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d19b36;
  color: #fff8e8;
  box-shadow: 0 5px 12px rgba(42, 34, 22, .14);
}
.starterTutorialActions {
  display: flex;
  justify-content: flex-end;
}
.starterTutorialActions .primary {
  border-radius: 18px;
  min-width: 138px;
}

/* ---------- interactive beginner tutorial ---------- */
dialog.guidedTutorialDialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(820px, calc(100dvh - 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 70, 50, .3);
  border-radius: 28px;
  background: #eee8d9;
  box-shadow: 0 32px 100px rgba(28, 22, 16, .38);
}
dialog.guidedTutorialDialog::backdrop {
  background: rgba(25, 27, 21, .62);
  backdrop-filter: blur(5px);
}
.guidedTutorialShell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 84% 14%, rgba(199, 72, 114, .08), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(40, 96, 74, .1), transparent 26%),
    #eee8d9;
}
.guidedTutorialHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 13px 24px;
}
.guidedTutorialHead > div { display: grid; gap: 4px; min-width: 0; }
.guidedTutorialHead strong { color: #3d3428; font-size: 21px; }
.guidedTutorialSafe {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}
.guidedTutorialClose {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(83, 70, 50, .24);
  border-radius: 13px;
  background: rgba(255, 250, 240, .82);
  color: #463b2e;
  font-size: 22px;
  line-height: 1;
}
.guidedTutorialProgress {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  padding: 0 24px 16px;
}
.guidedTutorialProgress span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(83, 70, 50, .16);
  transition: background .22s ease, transform .22s ease;
}
.guidedTutorialProgress span.done {
  background: linear-gradient(90deg, #d49a32, #28604a);
  transform: scaleY(1.18);
}
.guidedTutorialBody {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  padding: 0 18px 18px;
}
.guidedTutorialStage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(83, 70, 50, .2);
  border-radius: 22px;
  background: #f9f1df;
  box-shadow: 0 14px 38px rgba(42, 34, 22, .1);
}
.guidedMockToolbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(83, 70, 50, .18);
  background: rgba(255, 250, 240, .92);
}
.guidedMockToolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(83, 70, 50, .24);
  border-radius: 12px;
  background: #fffaf0;
  color: #463b2e;
  font-size: 12px;
  font-weight: 900;
}
.guidedMockToolbar button:first-child { color: #fffaf0; background: var(--green); }
.guidedMockToolbar button:first-child b { font-size: 18px; line-height: 1; }
.guidedTutorialStage.initialViewer [data-tutorial-add] { visibility: hidden; }
.guidedMockCanvas {
  position: relative;
  min-height: 440px;
  overflow: auto;
  background-color: #f3eee6;
  background-image:
    linear-gradient(rgba(83, 70, 50, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 70, 50, .08) 1px, transparent 1px),
    linear-gradient(rgba(201, 155, 69, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 155, 69, .13) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  transition: background-color .3s ease, background-image .3s ease;
}
.guidedTutorialStage.viewerComplete .guidedMockCanvas {
  background-color: #f8efd9;
  background-image:
    linear-gradient(rgba(248, 239, 217, .30), rgba(248, 239, 217, .30)),
    url("/assets/canvas-backgrounds/hanji-familymap-01.webp");
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.guidedMockLine {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 2px;
  height: 19%;
  background: #8da093;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}
.guidedTutorialStage.relationCreated .guidedMockLine { transform: scaleY(1); }
.guidedMockPerson,
.guidedMockResult {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 118px;
  padding: 10px 9px 9px;
  border: 1px solid rgba(83, 70, 50, .24);
  border-radius: 20px;
  background: rgba(255, 250, 240, .94);
  color: #3d3428;
  box-shadow: 0 10px 24px rgba(42, 34, 22, .13);
}
.guidedMockPerson.me { left: 15%; top: 33%; }
.guidedMockPerson.placeholder,
.guidedMockResult { right: 15%; top: 33%; }
.guidedTutorialStage.relationCreated .guidedMockPerson.me {
  left: 50%;
  top: 61%;
  transform: translateX(-50%);
  transition: left .3s ease, top .3s ease, transform .3s ease;
}
.guidedTutorialStage.relationCreated .guidedMockResult {
  right: auto;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
}
.guidedMockPerson.placeholder { touch-action: none; user-select: none; cursor: grab; }
.guidedMockPerson.placeholder.guidedDragging {
  z-index: 30;
  cursor: grabbing;
  opacity: .94;
  transition: none;
}
.guidedMockPerson.me.guidedDropTarget {
  outline: 5px solid rgba(40, 96, 74, .72);
  outline-offset: 6px;
  background: rgba(226, 234, 216, .96);
  transform: scale(1.04);
}
.guidedDragMotionHint {
  position: absolute;
  z-index: 18;
  left: 50%;
  top: 17%;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 13px;
  border: 1px dashed rgba(40, 96, 74, .5);
  border-radius: 999px;
  background: rgba(255, 250, 240, .94);
  color: var(--green);
  box-shadow: 0 8px 20px rgba(42, 34, 22, .12);
  transform: translateX(-50%);
  pointer-events: none;
}
.guidedDragMotionHint b { font-size: 12px; }
.guidedDragMotionHint span { color: #756750; font-size: 9px; font-weight: 800; }
.guidedDragHint {
  position: absolute;
  z-index: 18;
  right: 5%;
  top: 50%;
  width: min(350px, 52%);
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(40, 96, 74, .3);
  border-radius: 20px;
  background: rgba(255, 252, 244, .96);
  color: #3d3428;
  box-shadow: 0 16px 38px rgba(42, 34, 22, .18), inset 0 1px 0 rgba(255,255,255,.8);
  transform: translateY(-50%);
  pointer-events: none;
}
.guidedDragHint .guidedCompletionEyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}
.guidedDragHint > b { color: #72521e; font-size: 17px; line-height: 1.3; }
.guidedDragHint > p { margin: 0; color: #665846; font-size: 11px; font-weight: 750; line-height: 1.55; }
.guidedDragHint ul { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.guidedDragHint li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding-top: 6px;
  border-top: 1px solid rgba(83, 70, 50, .12);
}
.guidedDragHint li strong { color: var(--green); font-size: 10px; }
.guidedDragHint li span { color: #756750; font-size: 9px; font-weight: 800; line-height: 1.4; }
.guidedTutorialStage.relationCreated.tutorialComplete .guidedMockPerson.me {
  left: 8%;
  top: 59%;
  transform: none;
}
.guidedTutorialStage.relationCreated.tutorialComplete .guidedMockResult {
  right: auto;
  left: 8%;
  top: 8%;
  transform: none;
}
.guidedTutorialStage.tutorialComplete .guidedMockLine { display: none; }
.guidedTutorialStage.dragDemoPlaying .guidedMockPerson.placeholder {
  z-index: 24;
  cursor: grabbing;
  filter: drop-shadow(0 12px 14px rgba(42, 34, 22, .2));
}
.guidedMockPerson img,
.guidedMockResult img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  background: #efe5cf;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.guidedMockPerson b,
.guidedMockResult b { max-width: 100%; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guidedMockPerson small { color: var(--pink); font-size: 9px; font-weight: 900; }
.guidedMockCardMenuBtn {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 9px;
  background: rgba(255, 250, 240, .94);
  color: #5b4d3b;
  font-size: 10px;
  font-weight: 950;
}
.guidedMockRelation,
.guidedMockForm,
.guidedMockCardActions {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 51%;
  width: min(330px, calc(100% - 28px));
  padding: 14px;
  border: 1px solid rgba(83, 70, 50, .25);
  border-radius: 18px;
  background: rgba(255, 250, 240, .98);
  box-shadow: 0 18px 42px rgba(42, 34, 22, .2);
  transform: translate(-50%, -50%);
}
.guidedMockRelation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.guidedMockRelation strong { grid-column: 1 / -1; margin-bottom: 3px; text-align: center; font-size: 13px; }
.guidedMockRelation button,
.guidedMockForm button,
.guidedMockCardActions button {
  min-height: 40px;
  border: 1px solid rgba(40, 96, 74, .2);
  border-radius: 11px;
  background: rgba(226, 234, 216, .62);
  color: var(--green);
  font-weight: 900;
}
.guidedMockForm { display: grid; gap: 12px; }
.guidedMockForm strong { font-size: 17px; }
.guidedMockForm label { display: grid; gap: 6px; color: #5a4d3b; font-size: 12px; font-weight: 900; }
.guidedMockForm input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(83, 70, 50, .28);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.guidedMockForm button { color: #fffaf0; background: var(--green); }
.guidedMockCardActions { display: grid; gap: 8px; }
.guidedMockCardActions strong { text-align: center; font-size: 14px; }
.guidedMockCardActions button:first-of-type { color: #fffaf0; background: var(--green); }
.guidedMockResult { border-color: rgba(40, 96, 74, .4); }
.guidedTutorialStage.viewerComplete .guidedMockCardMenuBtn { display: none; }
.guidedTutorialStage.viewerComplete .guidedMockResult,
.guidedTutorialStage.viewerComplete .guidedMockPerson.me {
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.guidedMockResult.guidedLongPressing,
.guidedMockPerson.guidedLongPressing {
  animation: guidedLongPressHold .65s linear both;
}
.guidedTutorialStage.longPressComplete .guidedMockResult {
  outline: 4px solid rgba(40, 96, 74, .7);
  outline-offset: 5px;
}
@keyframes guidedLongPressHold {
  0% { box-shadow: 0 0 0 0 rgba(40, 96, 74, .28), 0 10px 24px rgba(42, 34, 22, .13); }
  100% { box-shadow: 0 0 0 12px rgba(40, 96, 74, .05), 0 13px 28px rgba(42, 34, 22, .18); }
}
.guidedTutorialDialog [hidden] { display: none !important; }
.guidedTarget {
  z-index: 20 !important;
  outline: 4px solid rgba(212, 154, 50, .9) !important;
  outline-offset: 4px;
  animation: guidedTargetPulse 1.25s ease-in-out infinite;
}
@keyframes guidedTargetPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(212, 154, 50, .13), 0 10px 24px rgba(42, 34, 22, .13); }
  50% { box-shadow: 0 0 0 11px rgba(212, 154, 50, .04), 0 13px 30px rgba(42, 34, 22, .18); }
}
.guidedTutorialPointer {
  --guided-pointer-size: 132px;
  position: fixed;
  z-index: 2147483646;
  width: var(--guided-pointer-size);
  height: var(--guided-pointer-size);
  pointer-events: none;
  filter: drop-shadow(0 6px 5px rgba(71, 48, 14, .2));
}
.guidedTutorialPointer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .8;
  transform-origin: center;
  animation: guidedPointerBob 1.15s ease-in-out infinite;
}
.guidedTutorialPointer.placeRight img { transform: scaleX(-1); }
.guidedTutorialPointer.placeBelow img { transform: scaleY(-1); }
.guidedTutorialPointer.placeRight.placeBelow img { transform: scale(-1, -1); }
.guidedTutorialPointer span {
  position: absolute;
  z-index: 2;
  left: 2px;
  top: -7px;
  width: max-content;
  max-width: 170px;
  min-height: 36px;
  padding: 8px 13px;
  border: 2px solid rgba(103, 66, 24, .72);
  border-radius: 18px 18px 18px 7px;
  background: rgba(255, 191, 77, .88);
  color: #4f3517;
  box-shadow:
    inset 0 0 0 2px rgba(255, 247, 220, .58),
    0 5px 14px rgba(83, 53, 17, .16);
  font-size: 11px;
  font-weight: 950;
  line-height: 16px;
  text-shadow: 0 1px rgba(255, 248, 224, .76);
  white-space: nowrap;
}
.guidedTutorialPointer.placeRight span { right: 2px; left: auto; }
.guidedTutorialPointer.placeBelow span { top: auto; bottom: -7px; }
@keyframes guidedPointerBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}
.guidedTutorialCoach {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 210px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(83, 70, 50, .2);
  border-radius: 22px;
  background: rgba(255, 250, 240, .92);
  box-shadow: 0 14px 38px rgba(42, 34, 22, .09);
}
.guidedTutorialCoach > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 36%;
  border-bottom: 1px solid rgba(83, 70, 50, .16);
}
.guidedTutorialCoach > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}
.guidedTutorialCoach span {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}
.guidedTutorialCoach h2 {
  margin: 0 0 10px;
  color: #3d3428;
  font-size: 23px;
  line-height: 1.25;
  word-break: keep-all;
}
.guidedTutorialCoach p {
  margin: 0;
  color: #6a5d4b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  word-break: keep-all;
}
.guidedTutorialCoach .primary { width: 100%; margin-top: auto; }
.profileSettingActions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
