.desk-jump {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #111820;
  color: var(--on-ink);
  padding: 8px 16px;
  font-size: 12px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a3340;
}
.desk-jump a {
  color: var(--brass);
  margin-left: 12px;
  text-decoration: none;
}

.stage-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #0f141c;
}

.phone {
  width: var(--phone-w);
  min-height: var(--phone-h);
  height: 100vh;
  max-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.phone.is-ink { background: var(--ink); color: var(--on-ink); }

.app-header {
  height: var(--header);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--ink);
  border-bottom: 1px solid var(--panel);
  color: var(--on-ink);
}
.app-header .left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.app-header .title {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.app-header .back {
  width: auto;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--on-ink);
  font-size: 13px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.tally {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--tally-dim);
  color: var(--on-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 2px;
}
.tally img { width: 6px; height: 6px; display: block; }
.tally i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tally);
  display: block;
}

.view { display: none; flex: 1; flex-direction: column; min-height: 0; }
.view.is-on { display: flex; }

.scroll { flex: 1; overflow: auto; min-height: 0; }

.btn {
  height: 44px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
}
.btn-tally { background: var(--tally); border-color: var(--tally-dim); color: var(--on-ink); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ink {
  background: var(--ink);
  border-color: #6b7380;
  color: #6b7380;
}
.btn-teal { background: var(--teal); border-color: #fff; color: var(--on-ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field label { font-size: 12px; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.field textarea { height: 72px; padding: 8px 12px; resize: vertical; }

.chip-row { display: flex; gap: 12px; }
.chip {
  flex: 1;
  height: 40px;
  border-radius: var(--r-btn);
  border: 1px solid #6b7380;
  background: var(--ink);
  color: #6b7380;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}
.chip.is-on { background: var(--teal); border-color: #fff; color: var(--on-ink); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px;
}
.note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: #eef1f4;
  border-radius: 6px;
  padding: 10px 12px;
}
.note.warn { background: #f8efe0; color: #7a5716; }

.bottom-bar {
  padding: 12px 16px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.bottom-bar.dual { display: flex; gap: 10px; }
.bottom-bar.dual .btn { flex: 1; }

@media (min-width: 1100px) {
  .desk-jump { display: flex; }
}
