.stage { display: flex; align-items: flex-start; justify-content: center; gap: 16px; overflow: auto; }
.phone { flex: 0 0 auto; }
.demo-dock, .note-dock {
  flex: 0 0 280px;
  width: 280px;
  max-height: min(852px, calc(100vh - 28px));
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.demo-dock { display: none; }
.ex-switch button {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: #444c45;
  font-size: 13px;
}
.ex-switch button.is-on { border-color: #09c382; background: #f3fff9; color: #067a52; font-weight: 600; }
.demo-dock p, .note-dock .hint { margin: 0 0 10px; font-size: 12px; color: #8a908a; line-height: 1.5; }
.demo-dock button, .note-dock .ex-prefill {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: #444c45;
  font-size: 13px;
}
.demo-dock button.is-on { border-color: #09c382; background: #f3fff9; color: #067a52; font-weight: 600; }
.ex-prefill { background: #fff7e8 !important; border-color: #ffd591 !important; }

.ex-pick, .ex-card, .ex-block { margin: 12px; padding: 14px; background: #fff; border-radius: 12px; }
.ex-pick { display: block; width: calc(100% - 24px); border: 0; text-align: left; cursor: pointer; }
.ex-pick b, .ex-card h3, .ex-block h3 { display: block; margin: 0 0 6px; font-size: 16px; color: #1e2e1f; }
.ex-pick span, .ex-muted { color: #8a908a; font-size: 12px; line-height: 1.5; }
.ex-line { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f4f2f3; position: relative; }
.ex-line label { width: 92px; flex-shrink: 0; color: #696c69; font-size: 13px; line-height: 20px; }
.ex-line .val, .ex-line input, .ex-line textarea, .ex-line select { flex: 1; min-width: 0; font-size: 14px; color: #1e2e1f; }
.ex-line input, .ex-line textarea, .ex-line select { border: 0; background: #f6f6f6; border-radius: 8px; padding: 8px; }
.ex-line textarea { min-height: 88px; resize: vertical; }
.ex-anchor { position: relative; height: 0; z-index: 4; }
.ex-anchor .ex-dot {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.ex-dot .ex-num,
.nav button.ex-dot .ex-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.ex-notes-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 70;
  display: none;
}
.ex-notes-mask.is-open { display: block; }
.ex-notes-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -24px -24px 16px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.ex-notes-head h2 { margin: 0; font-size: 18px; }
.ex-note-close {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.ex-notes-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(720px, 96vw);
  height: 100%;
  background: #fff;
  z-index: 80;
  box-shadow: -8px 0 24px rgba(15, 23, 42, .12);
  transform: translateX(100%);
  transition: transform .2s ease;
  overflow: auto;
  padding: 24px;
}
.ex-notes-panel.is-open { transform: translateX(0); }
.ex-notes-panel h2 { margin: 0 0 8px; font-size: 18px; }
.ex-note-rule { color: #8a908a; font-size: 13px; line-height: 1.6; }
.ex-note-block h3 { font-size: 16px; }
.ex-num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ff4d4f; color: #fff; font-size: 12px; }
.ex-ver { margin-left: 8px; font-size: 12px; color: #8a908a; font-weight: 400; }
.ex-logic { margin: 12px 0; }
.ex-logic h4 { margin: 0 0 6px; font-size: 14px; }
.ex-logic p { margin: 0; font-size: 13px; line-height: 1.6; color: #444c45; }
.ex-notes-panel table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.ex-notes-panel th, .ex-notes-panel td { border: 1px solid #f0f0f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.ex-notes-panel th { background: #f6ffed; }
.ex-note-close { height: 36px; padding: 0 16px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; cursor: pointer; }
.ex-score { padding: 10px 0; border-bottom: 1px solid #f4f2f3; position: relative; }
.ex-score b { display: block; padding-right: 24px; font-size: 14px; color: #1e2e1f; }
.ex-score .ex-muted { display: block; margin: 4px 0; }
.ex-score input { width: 88px; height: 32px; border: 0; background: #f6f6f6; border-radius: 8px; padding: 0 8px; }
.ex-flow { margin: 12px; padding: 12px 12px 4px; background: #fff; border-radius: 12px; }
.ex-step { position: relative; padding: 0 0 14px 18px; font-size: 13px; color: #696c69; }
.ex-step::before { content: ""; position: absolute; left: 0; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; }
.ex-step.is-done { color: #1e2e1f; }
.ex-step.is-done::before { background: #09c382; }
.ex-step.is-now { color: #d48806; font-weight: 600; }
.ex-step.is-now::before { background: #faad14; }
.ex-step.is-stop { color: #cf1322; }
.ex-step.is-stop::before { background: #ff4d4f; }
.ex-actions { display: flex; gap: 8px; padding: 12px; }
.ex-actions button { flex: 1; height: 40px; border: 0; border-radius: 20px; background: #09c382; color: #fff; font-size: 15px; cursor: pointer; }
.ex-actions .is-no { background: #fff1f0; color: #cf1322; }
.ex-status { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.ex-status.wait { color: #d48806; background: #fff7e6; }
.ex-status.ok { color: #067a52; background: #f6ffed; }
.ex-status.no { color: #cf1322; background: #fff1f0; }
.note-card { border: 1px solid #f0f0f0; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.note-card.is-on { border-color: #ff4d4f; background: #fff2f0; }
.note-card b { display: block; margin-bottom: 6px; font-size: 13px; }
.note-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.note-card td { border-top: 1px solid #f5f5f5; padding: 4px 0; vertical-align: top; }
.note-card td:first-child { width: 72px; color: #8a908a; }
.ex-mine { display: block; width: calc(100% - 24px); margin: 12px; padding: 14px; border: 0; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.ex-mine b { display: block; margin-bottom: 6px; }
.ex-final { margin-top: 8px; font-weight: 600; color: #1e2e1f; }
