:root {
  --orange: #ff5a1f;
  --orange-dark: #e94d16;
  --orange-soft: #fff4ef;
  --orange-softer: #fff8f5;
  --text: #222222;
  --regular: #555555;
  --secondary: #8b8f96;
  --disabled: #c7c7c7;
  --page: #f6f7f8;
  --card: #ffffff;
  --soft: #fafafa;
  --border: #e8eaed;
  --divider: #f0f1f2;
  --success: #1aa775;
  --success-soft: #eaf8f2;
  --warning: #d98b19;
  --warning-soft: #fff7e5;
  --danger: #e54d4d;
  --danger-soft: #fff0f0;
  --blue: #378fbd;
  --blue-dark: #2879a4;
  --blue-soft: #edf7fc;
  --purple: #7e57c2;
  --purple-soft: #f3effc;
  --shadow: 0 18px 50px rgb(31 45 61 / 12%);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #eef0f2;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: #eef0f2;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(255 90 31 / 18%);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.2em;
}

.demo-toolbar {
  position: sticky;
  z-index: 60;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 10px 24px;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #e2e5e8;
  box-shadow: 0 3px 14px rgb(31 45 61 / 5%);
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
  color: white;
  font-size: 17px;
  font-weight: 700;
}

.demo-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-brand strong {
  font-size: 16px;
}

.demo-brand small {
  color: var(--secondary);
  font-size: 11px;
}

.demo-tabs {
  display: flex;
  padding: 4px;
  border-radius: 10px;
  background: #f1f3f5;
}

.demo-tabs button {
  min-width: 108px;
  height: 38px;
  padding: 0 18px;
  border-radius: 7px;
  background: transparent;
  color: #66707a;
  font-size: 14px;
  font-weight: 600;
}

.demo-tabs button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 9px rgb(31 45 61 / 9%);
}

.reset-demo {
  justify-self: end;
  min-width: 68px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: var(--secondary);
  font-size: 12px;
}

.demo-root {
  min-height: calc(100vh - 72px);
}

.app-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(52px, 7vw, 120px);
  min-height: calc(100vh - 72px);
  padding: 36px 28px;
  background: #f1f2f3;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  width: 390px;
  height: 844px;
  flex: 0 0 auto;
  border: 8px solid #1d1e20;
  border-radius: 42px;
  background: var(--page);
  box-shadow: 0 28px 70px rgb(31 45 61 / 20%);
}

.phone-shell::before {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 50%;
  width: 106px;
  height: 25px;
  content: "";
  transform: translateX(-50%);
  border-radius: 14px;
  background: #1d1e20;
}

.phone-status {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0 20px;
  background: white;
  color: #111;
  font-size: 12px;
}

.phone-status strong {
  font-size: 14px;
}

.phone-status span {
  letter-spacing: -0.4px;
}

.phone-status b {
  padding: 2px 5px;
  border-radius: 5px;
  background: #64c86c;
  color: white;
}

.phone-content {
  position: absolute;
  top: 43px;
  right: 0;
  bottom: 13px;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--page);
  scrollbar-width: none;
}

.phone-content::-webkit-scrollbar {
  display: none;
}

.home-indicator {
  position: absolute;
  z-index: 12;
  bottom: 4px;
  left: 50%;
  width: 124px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #1e1f20;
}

.app-notes {
  width: min(430px, 34vw);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.app-notes h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.app-notes p {
  margin: 0;
  color: #69727d;
  font-size: 16px;
  line-height: 1.8;
}

.app-notes ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.app-notes li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3f4852;
  font-size: 14px;
}

.app-notes li .icon {
  color: var(--success);
}

.app-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  height: 54px;
  padding: 0 10px;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--divider);
}

.app-header h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.app-back {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #333;
}

.text-action {
  justify-self: end;
  padding: 8px 2px;
  background: transparent;
  color: var(--orange);
  font-size: 13px;
  white-space: nowrap;
}

.app-header-space {
  width: 70px;
}

.profile-screen {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 64px;
  overflow: hidden;
  background: var(--page);
}

.profile-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px 20px;
  scrollbar-width: none;
}

.profile-scroll::-webkit-scrollbar {
  display: none;
}

.profile-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.profile-top-actions > div {
  display: flex;
  gap: 4px;
}

.profile-top-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #30343a;
}

.profile-user-card,
.profile-watch-card,
.profile-tool-grid,
.profile-support-grid {
  border: 1px solid #f0f1f2;
  border-radius: 12px;
  background: white;
}

.profile-user-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
}

.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid #fff1e9;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8d57, var(--orange));
  color: white;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgb(255 90 31 / 18%);
}

.profile-user-card h1,
.profile-watch-card h2,
.profile-official-banner h2 {
  margin: 0;
}

.profile-user-card h1 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 650;
}

.profile-user-card p,
.profile-watch-card p,
.profile-official-banner p {
  margin: 0;
  color: var(--secondary);
  font-size: 10px;
}

.profile-user-card > button {
  padding: 6px 2px;
  background: transparent;
  color: var(--secondary);
  font-size: 11px;
}

.profile-watch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 11px 14px;
}

.profile-watch-card span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 650;
}

.profile-watch-card h2 {
  margin: 3px 0 2px;
  font-size: 13px;
  font-weight: 600;
}

.profile-watch-card > button {
  min-width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
}

.profile-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 4px;
  margin-top: 8px;
  padding: 12px 6px;
}

.profile-tool-grid button {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--regular);
}

.profile-tool-grid button i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #fafafa;
  color: #33383e;
  font-style: normal;
}

.profile-primary-grid button i {
  background: var(--orange-soft);
  color: var(--orange);
}

.profile-tool-grid button strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-utility-grid {
  grid-template-rows: repeat(2, auto);
}

.profile-utility-grid button:nth-child(4n + 1) i::after,
.profile-support-grid button:nth-child(2) i::after {
  position: absolute;
  width: 6px;
  height: 6px;
  content: "";
  transform: translate(10px, -10px);
  border-radius: 50%;
  background: var(--orange);
}

.profile-tool-grid button i {
  position: relative;
}

.profile-official-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1f2d3d;
  color: #ffe0a6;
}

.profile-official-banner h2 {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
}

.profile-official-banner p {
  color: #c5b58f;
}

.profile-official-banner button {
  min-width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #d6aa4f;
  color: #1f2d3d;
  font-size: 10px;
  font-weight: 700;
}

.profile-support-grid {
  margin-top: 8px;
}

.profile-support-grid [data-action="open-profile-feedback"] {
  color: var(--orange-dark);
}

.profile-support-grid [data-action="open-profile-feedback"] i {
  background: var(--orange-soft);
  color: var(--orange);
}

.profile-version {
  padding: 14px 0 2px;
  color: #b0b4b9;
  text-align: center;
  font-size: 10px;
}

.profile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--divider);
  background: white;
}

.profile-bottom-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  color: var(--secondary);
  font-size: 10px;
}

.profile-bottom-nav button.active {
  color: var(--orange);
  font-weight: 650;
}

.feedback-form {
  padding: 12px 12px 30px;
}

/* 投诉与建议需要在常见 390 × 844 手机视口内完整展示。 */
.compact-feedback {
  padding: 8px 10px 14px;
}

.compact-feedback .form-card {
  margin-bottom: 7px;
  padding: 10px 12px;
  border-radius: 10px;
}

.compact-feedback .form-title {
  grid-template-columns: 3px 1fr auto;
  gap: 7px;
  margin-bottom: 7px;
}

.compact-feedback .form-title > .section-accent {
  width: 3px;
  height: 16px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--orange);
}

.compact-feedback .nature-list {
  gap: 6px;
}

.compact-feedback .nature-option {
  grid-template-columns: 24px 1fr 14px;
  gap: 5px;
  min-height: 48px;
  padding: 5px 7px;
  border-radius: 8px;
}

.compact-feedback .nature-option > i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.compact-feedback .nature-option > i svg {
  width: 17px;
  height: 17px;
}

.compact-feedback .nature-option strong {
  font-size: 11px;
}

.compact-feedback .nature-copy {
  gap: 1px;
}

.compact-feedback .nature-copy small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 8.5px;
  line-height: 1.2;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-feedback .textarea-wrap {
  padding: 8px 9px 6px;
}

.compact-feedback .textarea-wrap textarea {
  height: 74px;
  line-height: 1.5;
}

.compact-feedback .textarea-wrap > small {
  margin-top: 1px;
}

.compact-feedback .upload-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.compact-feedback .compact-card {
  padding: 10px 12px 0;
}

.compact-feedback .contact-title {
  margin-bottom: 0;
}

.compact-feedback .inline-row {
  min-height: 43px;
  gap: 8px;
}

.compact-feedback .row-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.compact-feedback .contact-switch {
  min-height: 43px;
}

.compact-feedback .primary-button {
  height: 44px;
}

.form-card,
.mobile-detail-card,
.timeline-card,
.reply-card {
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 12px;
  background: white;
  border: 1px solid #f0f0f0;
}

.form-title {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 9px;
  margin-bottom: 14px;
}

.form-title > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.form-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.form-title h2 small {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 400;
}

.form-title p {
  margin: 3px 0 0;
  color: var(--secondary);
  font-size: 11px;
}

.form-title em {
  color: var(--orange);
  font-size: 10px;
  font-style: normal;
}

.section-count {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 400;
}

.nature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nature-option {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 7px;
  min-height: 64px;
  padding: 7px 8px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--text);
}

.nature-option > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #f7f7f7;
  color: #60666d;
}

.nature-option strong {
  font-size: 12px;
  font-weight: 600;
}

.nature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.nature-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--secondary);
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nature-check {
  display: grid;
  width: 16px;
  place-items: center;
}

.nature-option.selected {
  border-color: #f4a27c;
  background: var(--orange-softer);
  color: var(--orange-dark);
}

.nature-option.selected > i {
  background: #ffe7dc;
  color: var(--orange);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.module-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--regular);
  font-size: 12px;
}

.module-option.selected {
  border-color: #f4a27c;
  background: var(--orange-softer);
  color: var(--orange-dark);
  font-weight: 600;
}

.module-option .icon {
  position: absolute;
  top: 4px;
  right: 4px;
}

.dynamic-context {
  margin-top: 12px;
  padding: 11px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px dashed #dedfe2;
}

.dynamic-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--secondary);
  font-size: 11px;
}

.context-field {
  display: grid;
  gap: 5px;
}

.context-field + .context-field {
  margin-top: 8px;
}

.context-field > span {
  color: var(--regular);
  font-size: 11px;
}

.context-field input,
.context-field select {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #e0e2e5;
  border-radius: 7px;
  background: white;
  color: var(--text);
  font-size: 12px;
}

.context-columns {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

.textarea-wrap {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fafafa;
}

.textarea-wrap:focus-within {
  border-color: #f1a07b;
  background: white;
}

.textarea-wrap textarea {
  display: block;
  width: 100%;
  height: 122px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.textarea-wrap textarea::placeholder {
  color: #a8abb1;
}

.textarea-wrap > small {
  display: block;
  margin-top: 4px;
  text-align: right;
  color: var(--secondary);
  font-size: 10px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.upload-button,
.upload-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 8px;
}

.upload-button {
  display: grid;
  place-content: center;
  gap: 3px;
  text-align: center;
  border: 1px dashed #cfd2d6;
  background: #fafafa;
  color: #6f747b;
  cursor: pointer;
}

.upload-button:hover {
  border-color: #ef9b74;
  background: var(--orange-softer);
  color: var(--orange);
}

.upload-button span {
  font-size: 11px;
}

.upload-button small {
  color: var(--secondary);
  font-size: 9px;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview > button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: white;
}

.upload-preview.failed img {
  opacity: 0.45;
}

.upload-failed {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  color: var(--danger);
  font-size: 10px;
}

.upload-failed button {
  padding: 4px 8px;
  border-radius: 5px;
  background: white;
  color: var(--danger);
  font-size: 10px;
}

.privacy-tip {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 10px;
  line-height: 1.45;
}

.compact-card {
  padding: 15px 13px 0;
}

.contact-title {
  margin-bottom: 4px;
}

.inline-row {
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 10px;
}

.row-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
}

.row-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.row-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.row-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.row-main strong {
  font-size: 13px;
  font-weight: 600;
}

.row-main span {
  overflow: hidden;
  color: var(--secondary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-value {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  background: transparent;
  color: var(--regular);
  font-size: 11px;
}

.phone-input {
  width: 112px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e0e2e5;
  border-radius: 7px;
  background: #fafafa;
  font-size: 11px;
}

.contact-switch {
  display: flex;
  align-items: center;
  min-height: 57px;
  border-top: 1px solid var(--divider);
  cursor: pointer;
}

.contact-switch > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.contact-switch b {
  font-size: 12px;
  font-weight: 500;
}

.contact-switch small {
  color: var(--secondary);
  font-size: 9px;
}

.contact-switch input {
  position: absolute;
  opacity: 0;
}

.contact-switch i {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #d6d8dc;
  transition: background 160ms ease;
}

.contact-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  content: "";
  transition: transform 160ms ease;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
}

.contact-switch input:checked + i {
  background: var(--orange);
}

.contact-switch input:checked + i::after {
  transform: translateX(18px);
}

.environment-card {
  padding-bottom: 0;
}

.environment-toggle {
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--text);
}

.environment-summary {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--secondary);
  font-size: 10px;
  white-space: nowrap;
}

.environment-open .environment-summary .icon,
.environment-card:has(.environment-detail) .environment-summary .icon {
  transform: rotate(90deg);
}

.environment-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 11px 0 13px;
  gap: 8px 12px;
  border-top: 1px solid var(--divider);
}

.environment-detail > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.environment-detail span {
  color: var(--secondary);
  font-size: 9px;
}

.environment-detail strong {
  overflow: hidden;
  color: var(--regular);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safe-collection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 5px 0 10px;
  color: var(--secondary);
  font-size: 9px;
}

.primary-button {
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 600;
}

.primary-button:active {
  background: var(--orange-dark);
}

.primary-button:disabled {
  background: #d7d9dc;
  color: #fff;
}

.spinner {
  width: 15px;
  height: 15px;
  animation: spin 700ms linear infinite;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: white;
  border-radius: 50%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.instant-help {
  margin-top: 14px;
  padding-bottom: 10px;
}

.instant-help-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 400;
}

.instant-help-title span {
  height: 1px;
  background: #dadde0;
}

.instant-help-title strong {
  font-weight: 400;
}

.help-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 14px;
}

.help-button strong {
  font-weight: 500;
}

.help-button.online {
  background: #13c86b;
  color: white;
}

.help-button.call {
  border: 1px solid var(--orange);
  background: white;
  color: var(--orange);
}

.statement-link {
  display: block;
  margin: 3px auto 0;
  padding: 5px 12px;
  background: transparent;
  color: var(--orange);
  font-size: 12px;
}

.success-screen {
  padding: 52px 22px 30px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.success-screen h2 {
  margin: 0 0 9px;
  font-size: 22px;
}

.success-screen > p {
  margin: 0 auto 24px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
}

.process-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 32px;
}

.process-preview > div {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
}

.process-preview > div:not(:last-child)::after {
  position: absolute;
  top: 5px;
  left: 54%;
  width: 92%;
  height: 1px;
  content: "";
  background: #dfe1e4;
}

.process-preview i {
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid #d2d4d7;
  border-radius: 50%;
  background: var(--page);
}

.process-preview .done i {
  border-color: var(--orange);
  background: var(--orange);
}

.process-preview span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.process-preview strong {
  font-size: 11px;
}

.process-preview small {
  color: var(--secondary);
  font-size: 8px;
}

.secondary-text-button {
  margin-top: 13px;
  padding: 8px;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
}

.history-screen,
.history-detail-screen {
  padding: 12px 12px 28px;
}

.history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 10px;
}

.history-summary span {
  font-size: 12px;
  font-weight: 600;
}

.history-summary small {
  color: var(--secondary);
  font-size: 9px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-card {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1px solid #f0f0f0;
  border-radius: 11px;
  background: white;
  color: var(--text);
}

.history-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-card time {
  color: var(--secondary);
  font-size: 9px;
}

.history-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 7px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-card > p {
  margin: 0;
  color: var(--secondary);
  font-size: 10px;
}

.history-card aside {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  margin-top: 10px;
  padding: 9px;
  border-radius: 7px;
  background: var(--orange-softer);
  color: var(--regular);
  font-size: 10px;
}

.history-card aside b {
  color: var(--orange);
}

.history-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--divider);
  color: var(--secondary);
  font-size: 9px;
}

.status-chip,
.priority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-chip.warning,
.priority-chip.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-chip.info,
.priority-chip.info {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-chip.purple,
.priority-chip.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.status-chip.success,
.priority-chip.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-chip.neutral,
.priority-chip.neutral {
  background: #f0f1f2;
  color: #71767c;
}

.status-chip.danger,
.priority-chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.detail-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 11px;
}

.detail-status-card.warning { background: var(--warning-soft); color: var(--warning); }
.detail-status-card.info { background: var(--blue-soft); color: var(--blue); }
.detail-status-card.purple { background: var(--purple-soft); color: var(--purple); }
.detail-status-card.success { background: var(--success-soft); color: var(--success); }
.detail-status-card.neutral { background: #eceef0; color: #6e747b; }

.status-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 72%);
}

.detail-status-card h2 {
  margin: 0;
  font-size: 16px;
}

.detail-status-card p {
  margin: 3px 0 0;
  color: var(--regular);
  font-size: 10px;
}

.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-heading strong {
  font-size: 14px;
}

.detail-heading span {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 9px;
}

.mobile-detail-card > p {
  margin: 12px 0;
  color: var(--regular);
  font-size: 12px;
  line-height: 1.7;
}

.record-image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.mobile-detail-card dl {
  margin: 0;
  border-top: 1px solid var(--divider);
}

.mobile-detail-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--divider);
}

.mobile-detail-card dl div:last-child {
  border-bottom: 0;
}

.mobile-detail-card dt {
  color: var(--secondary);
  font-size: 10px;
}

.mobile-detail-card dd {
  margin: 0;
  color: var(--regular);
  font-size: 10px;
}

.reply-card {
  border-color: #f9d9ca;
  background: var(--orange-softer);
}

.reply-card > div {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 6px;
  color: var(--orange);
}

.reply-card strong {
  font-size: 12px;
}

.reply-card time {
  color: var(--secondary);
  font-size: 9px;
}

.reply-card p {
  margin: 9px 0 0 26px;
  color: var(--regular);
  font-size: 11px;
  line-height: 1.6;
}

.timeline-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
  min-height: 48px;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 11px;
  bottom: -2px;
  left: 5px;
  width: 1px;
  content: "";
  background: #dfe1e4;
}

.timeline-item i {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 2px solid #c7cbd0;
  border-radius: 50%;
  background: white;
}

.timeline-item.active i {
  border-color: var(--orange);
  background: var(--orange);
}

.timeline-item span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-item strong {
  font-size: 10px;
  font-weight: 500;
}

.timeline-item small {
  color: var(--secondary);
  font-size: 9px;
}

.mock-image {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 78px;
  place-items: end start;
  padding: 7px;
  border: 1px solid #e4e6e8;
  border-radius: 8px;
  background: #f2f3f5;
  color: #58606a;
  font-size: 9px;
}

.mock-image::before,
.mock-image::after {
  position: absolute;
  content: "";
}

.mock-image::before {
  top: 13px;
  right: 12px;
  left: 12px;
  height: 7px;
  border-radius: 2px;
  background: #d0d4d8;
  box-shadow: 0 14px 0 #dfe2e5, 0 28px 0 #dfe2e5;
}

.mock-image::after {
  top: 9px;
  left: 10px;
  width: 3px;
  height: 46px;
  background: var(--orange);
}

.mock-image.video { background: #eef3f7; }
.mock-image.video::after { background: var(--blue); }
.mock-image.paper { background: #fff7f2; }
.mock-image.paper-alt { background: #f4f7fb; }
.mock-image.uploaded { background: #fff7f2; }

.mock-image span {
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Admin */

.admin-shell {
  position: relative;
  min-width: 1180px;
  min-height: calc(100vh - 72px);
  background: #f3f5f7;
}

.admin-topbar {
  position: fixed;
  z-index: 20;
  top: 72px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
  background: var(--blue);
  color: white;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logo span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.admin-logo strong {
  font-size: 18px;
  font-weight: 600;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.admin-user i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

.admin-sidebar {
  position: fixed;
  z-index: 15;
  top: 128px;
  bottom: 0;
  left: 0;
  width: 208px;
  background: white;
  border-right: 1px solid #e1e5e8;
}

.admin-sidebar nav {
  display: grid;
  gap: 3px;
  padding: 14px 10px;
}

.admin-sidebar a,
.nav-group > span {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 6px;
  color: #515a65;
  font-size: 13px;
  text-decoration: none;
}

.nav-group > span .icon:last-child {
  margin-left: auto;
  transform: rotate(90deg);
}

.nav-group {
  padding: 4px 0;
}

.nav-group.active > span {
  color: var(--blue-dark);
  font-weight: 600;
}

.nav-group a {
  min-height: 38px;
  margin-left: 12px;
  padding-left: 34px;
  font-size: 12px;
}

.nav-group a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
}

.admin-main {
  min-height: calc(100vh - 72px);
  margin-left: 208px;
  padding: 74px 22px 30px;
}

.breadcrumb {
  margin-bottom: 14px;
  color: #8a929a;
  font-size: 11px;
}

.breadcrumb span {
  margin: 0 7px;
  color: #b2b7bc;
}

.admin-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-page-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.admin-page-title p {
  margin: 4px 0 0;
  color: #7a838d;
  font-size: 12px;
}

.outline-button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #cbdde7;
  border-radius: 6px;
  background: white;
  color: var(--blue-dark);
  font-size: 12px;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  background: white;
}

.admin-filters .keyword-filter,
.admin-filters .date-filter {
  grid-column: span 2;
}

.admin-filters .filter-actions {
  grid-column: span 2;
}

.admin-filters label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-filters label > span {
  color: #6f7881;
  font-size: 10px;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dce1e5;
  border-radius: 5px;
  background: white;
  color: #3f4750;
  font-size: 11px;
}

.date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.date-range em {
  color: #8e969e;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.date-range input {
  min-width: 0;
}

.admin-filters .search-field {
  position: relative;
  display: flex;
  align-self: end;
  align-items: center;
}

.search-field .icon {
  position: absolute;
  z-index: 1;
  left: 9px;
  color: #9da4ab;
}

.search-field input {
  padding-left: 34px;
}

.filter-actions {
  display: flex;
  align-self: end;
  gap: 8px;
}

.filter-actions button,
.admin-primary {
  height: 34px;
  padding: 0 14px;
  border-radius: 5px;
  background: white;
  color: #5c6570;
  font-size: 11px;
}

.filter-actions .admin-primary,
.admin-primary {
  background: var(--blue);
  color: white;
}

.table-card {
  overflow: hidden;
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  background: white;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #e7eaed;
}

.table-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-toolbar strong {
  font-size: 13px;
}

.table-toolbar span {
  color: #90979e;
  font-size: 10px;
}

.table-toolbar > small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8a929a;
  font-size: 10px;
}

.feedback-table-wrap {
  overflow-x: auto;
}

.feedback-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.feedback-table th {
  height: 40px;
  padding: 0 10px;
  text-align: left;
  border-bottom: 1px solid #e5e8eb;
  background: #f7f8f9;
  color: #68717a;
  font-size: 10px;
  font-weight: 600;
}

.feedback-table td {
  height: 82px;
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid #eceef0;
  color: #3f4750;
  font-size: 11px;
}

.feedback-table tr:last-child td {
  border-bottom: 0;
}

.feedback-table tbody tr:hover {
  background: #fbfcfd;
}

.feedback-table th:nth-child(1) { width: 60px; }
.feedback-table th:nth-child(2) { width: 124px; }
.feedback-table th:nth-child(3) { width: 300px; }
.feedback-table th:nth-child(4) { width: 112px; }
.feedback-table th:nth-child(5) { width: 88px; }
.feedback-table th:nth-child(6) { width: 168px; }
.feedback-table th:nth-child(7) { width: 108px; }
.feedback-table th:nth-child(8) { width: 164px; }

.sequence-cell {
  color: #717982;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.feedback-table td > strong,
.feedback-table td > small {
  display: block;
}

.feedback-table td > strong {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
}

.feedback-table td > small {
  overflow: hidden;
  color: #8c949c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-link {
  padding: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 600;
}

.overdue-text {
  margin-top: 5px;
  color: var(--danger) !important;
}

.overdue-row {
  box-shadow: inset 3px 0 var(--danger);
}

.nature-label {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 600;
}

.feedback-type-cell {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.schema-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
}

.schema-label.current {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.schema-label.legacy {
  background: #f0f1f3;
  color: #747c85;
}

.edit-record-summary > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.content-cell p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 6px;
  color: #404850;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-cell > div {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8a929a;
  font-size: 9px;
}

.content-cell > div span {
  padding: 2px 5px;
  border-radius: 3px;
  background: #f1f3f5;
}

.priority-chip {
  margin-left: 4px;
  min-height: 22px;
}

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.row-actions button {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d6e2e9;
  border-radius: 4px;
  background: white;
  color: var(--blue-dark);
  font-size: 10px;
}

.row-actions button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.row-actions button.danger {
  border-color: #f0c9c9;
  color: var(--danger);
}

.empty-table {
  padding: 40px;
  text-align: center;
  color: #9ba2a9;
}

.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 72px 0 0;
  background: rgb(18 29 39 / 34%);
}

.admin-drawer {
  position: fixed;
  z-index: 75;
  top: 72px;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(620px, 55vw);
  flex-direction: column;
  background: #f5f7f8;
  box-shadow: -18px 0 50px rgb(31 45 61 / 18%);
}

.admin-drawer.edit-drawer {
  width: min(480px, 48vw);
}

.admin-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 20px;
  border-bottom: 1px solid #e0e4e7;
  background: white;
}

.admin-drawer > header div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.admin-drawer > header span {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 600;
}

.admin-drawer > header h2 {
  margin: 0;
  font-size: 18px;
}

.admin-drawer > header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: #6b737b;
}

.drawer-body {
  overflow-y: auto;
  padding: 16px 18px 30px;
}

.edit-record-summary {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  background: white;
}

.edit-record-summary span {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 600;
}

.edit-record-summary p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: #59626b;
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.drawer-section {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  background: white;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #3f4750;
}

.drawer-title .icon {
  color: var(--blue);
}

.drawer-title strong {
  font-size: 13px;
}

.view-feedback-content {
  margin: 0 0 14px;
  color: #424a53;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.muted-line {
  padding: 12px;
  border-radius: 6px;
  background: #f7f8f9;
  color: #969da4;
  font-size: 10px;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.admin-image-grid .mock-image {
  min-height: 104px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e5e8eb;
  border-radius: 6px;
  background: #e5e8eb;
}

.info-grid > div {
  display: flex;
  min-width: 0;
  min-height: 56px;
  padding: 9px 11px;
  flex-direction: column;
  gap: 4px;
  background: #fafbfb;
}

.info-grid > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.info-grid span {
  color: #8d959d;
  font-size: 9px;
}

.info-grid strong {
  overflow: hidden;
  color: #424a53;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.environment-admin {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.handling-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.handling-grid.edit-only-grid {
  grid-template-columns: 1fr;
}

.edit-drawer .drawer-textarea textarea {
  height: 150px;
}

.handling-grid label,
.drawer-textarea {
  display: grid;
  gap: 6px;
}

.handling-grid label.full {
  grid-column: 1 / -1;
}

.handling-grid span,
.drawer-textarea > span {
  color: #69727b;
  font-size: 10px;
}

.handling-grid select {
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dce1e5;
  border-radius: 5px;
  background: white;
  color: #424a53;
  font-size: 11px;
}

.drawer-textarea {
  margin-top: 12px;
}

.drawer-textarea em {
  margin-left: 6px;
  color: #9aa1a8;
  font-size: 9px;
  font-style: normal;
}

.drawer-textarea.public em {
  color: var(--orange);
}

.drawer-textarea textarea {
  height: 82px;
  padding: 9px;
  resize: vertical;
  border: 1px solid #dce1e5;
  border-radius: 5px;
  color: #424a53;
  font-size: 11px;
  line-height: 1.6;
}

.drawer-textarea.public textarea {
  border-color: #f2cab7;
  background: var(--orange-softer);
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.drawer-actions button {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid #d9e1e6;
  border-radius: 5px;
  background: white;
  color: #59626b;
  font-size: 10px;
}

.drawer-actions .admin-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.drawer-actions .danger-text {
  margin-left: auto;
  border-color: transparent;
  color: var(--danger);
}

.admin-timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 9px;
  min-height: 47px;
}

.admin-timeline > div:not(:last-child)::after {
  position: absolute;
  top: 11px;
  bottom: -2px;
  left: 5px;
  width: 1px;
  content: "";
  background: #dfe3e6;
}

.admin-timeline i {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 2px solid #bdc4ca;
  border-radius: 50%;
  background: white;
}

.admin-timeline .active i {
  border-color: var(--blue);
  background: var(--blue);
}

.admin-timeline span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-timeline strong {
  color: #4d555e;
  font-size: 10px;
  font-weight: 500;
}

.admin-timeline small {
  color: #969da4;
  font-size: 9px;
}

.toast-root {
  position: fixed;
  z-index: 200;
  top: 88px;
  left: 50%;
  display: grid;
  width: min(360px, calc(100vw - 30px));
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 11px 14px;
  animation: toast-in 180ms ease-out;
  text-align: center;
  border-radius: 7px;
  background: rgb(36 40 44 / 94%);
  color: white;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  font-size: 12px;
}

.toast.success { background: rgb(20 135 92 / 95%); }
.toast.warning { background: rgb(190 119 20 / 95%); }

@keyframes toast-in {
  from { transform: translateY(-8px); opacity: 0; }
}

.modal-backdrop {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(17 25 33 / 45%);
}

.confirm-modal {
  width: min(360px, 100%);
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  background: white;
  box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
}

.modal-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.confirm-modal h2 {
  margin: 0;
  font-size: 18px;
}

.confirm-modal p {
  margin: 10px 0 22px;
  color: #737b84;
  font-size: 12px;
  line-height: 1.7;
}

.confirm-modal > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-modal button {
  height: 38px;
  border-radius: 6px;
  background: #f0f2f4;
  color: #5f6871;
  font-size: 12px;
}

.confirm-modal button.confirm {
  background: var(--blue);
  color: white;
}

@media (max-width: 1100px) {
  .app-notes { display: none; }
  .app-stage { padding: 24px; }
  .admin-filters { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 700px) {
  .demo-toolbar {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 8px 12px;
  }

  .demo-brand small,
  .reset-demo {
    display: none;
  }

  .demo-tabs button {
    min-width: auto;
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .demo-root {
    min-height: calc(100vh - 64px);
  }

  .app-stage {
    min-height: calc(100vh - 64px);
    padding: 0;
    background: var(--page);
  }

  .phone-shell {
    width: 100%;
    height: calc(100vh - 64px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-shell::before,
  .home-indicator {
    display: none;
  }

  .phone-content {
    bottom: 0;
  }

  body[data-view="admin"] {
    overflow-x: auto;
  }

  .admin-topbar,
  .admin-drawer {
    top: 64px;
  }

  .drawer-backdrop {
    inset: 64px 0 0;
  }
}

/* Standalone landing and clean scenario routes */

body[data-entry="landing"] {
  background: #f7f7f8;
}

body[data-entry="app"] {
  overflow-x: hidden;
  background: var(--page);
}

body[data-entry="capture"] {
  overflow-x: hidden;
  background: var(--page);
}

body[data-entry="admin"] {
  overflow-x: auto;
  background: #f3f5f7;
}

.demo-root {
  min-height: 100vh;
}

.landing-page {
  min-height: 100vh;
  background: #f7f7f8;
}

.landing-hero {
  padding: 52px 24px 48px;
  background: linear-gradient(135deg, #ff5a1f 0%, #f4511e 68%, #e94716 100%);
  color: white;
}

.landing-hero-inner,
.landing-content {
  width: min(920px, 100%);
  margin: 0 auto;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: rgb(255 255 255 / 88%);
  font-size: 13px;
}

.landing-brand span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.landing-brand strong {
  font-weight: 500;
  letter-spacing: .4px;
}

.landing-kicker {
  margin: 0 0 8px;
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
  font-weight: 500;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.8px;
}

.landing-subtitle {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: 15px;
  line-height: 1.75;
}

.landing-content {
  display: grid;
  gap: 34px;
  padding: 32px 20px 48px;
}

.entry-section {
  display: grid;
  gap: 14px;
}

.entry-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.entry-section-title > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-section-title span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.entry-section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.entry-section-title p {
  margin: 0;
  color: #8b8f96;
  font-size: 12px;
}

.scene-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid #eaebed;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 28px rgb(31 45 61 / 5%);
}

.scene-summary {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 18px;
}

.scene-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.app-icon {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.academic-icon {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.capture-icon {
  background: #fff5df;
  color: #c67b00;
}

.scene-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.scene-tags span {
  padding: 3px 7px;
  border-radius: 4px;
  background: #f3f4f5;
  color: #737b84;
  font-size: 10px;
}

.scene-tags .scene-type.app {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.scene-tags .scene-type.academic {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.scene-summary h3 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 600;
}

.scene-summary p {
  margin: 0;
  color: #747c85;
  font-size: 13px;
  line-height: 1.7;
}

.version-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.capture-entry-actions {
  display: grid;
  gap: 10px;
}

.capture-scene-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f3f4f5;
}

.capture-scene-switch button {
  height: 32px;
  border-radius: 6px;
  background: transparent;
  color: #777e86;
  font-size: 11px;
  font-weight: 600;
}

.capture-scene-switch button.active {
  background: white;
  color: var(--orange-dark);
  box-shadow: 0 2px 8px rgb(31 45 61 / 9%);
}

.version-button {
  display: flex;
  min-width: 0;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid #e6e8ea;
  border-radius: 8px;
  background: white;
  color: #4f5862;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.version-button:hover {
  border-color: #f4aa89;
  box-shadow: 0 8px 22px rgb(31 45 61 / 8%);
  transform: translateY(-2px);
}

.version-button span {
  display: grid;
  gap: 5px;
}

.version-button b {
  font-size: 13px;
  font-weight: 600;
}

.version-button small {
  color: #9a9fa5;
  font-size: 9px;
  white-space: nowrap;
}

.version-button .icon {
  color: #a9aeb3;
}

.version-button.primary {
  border-color: #ffd5c5;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.version-button.primary.academic {
  border-color: #cce7f4;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.backend-system-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border: 1px dashed #dfe3e7;
  border-radius: 8px;
  background: rgb(255 255 255 / 58%);
}

.backend-system-note > span {
  flex: 0 0 auto;
  color: #6d747c;
  font-size: 11px;
  font-weight: 600;
}

.backend-system-note p {
  margin: 0;
  color: #969ca2;
  font-size: 11px;
  line-height: 1.6;
}

.backend-system-note strong {
  color: #68717a;
  font-weight: 600;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
  color: #a0a5aa;
  font-size: 11px;
}

.landing-footer button {
  padding: 7px 10px;
  border: 1px solid #e1e3e5;
  border-radius: 6px;
  background: white;
  color: #858b91;
  font-size: 11px;
}

body[data-entry="app"] .app-stage,
body[data-entry="capture"] .app-stage {
  display: block;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  background: var(--page);
}

body[data-entry="app"] .phone-shell,
body[data-entry="capture"] .phone-shell {
  width: 100%;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-entry="app"] .phone-shell::before,
body[data-entry="app"] .home-indicator,
body[data-entry="app"] .app-notes,
body[data-entry="capture"] .phone-shell::before,
body[data-entry="capture"] .home-indicator,
body[data-entry="capture"] .app-notes {
  display: none;
}

body[data-entry="app"] .phone-content,
body[data-entry="capture"] .phone-content {
  bottom: 0;
}

/* Screenshot feedback scenarios */

.capture-phone-shell { background: white; }

.phone-status.dark {
  background: #073f42;
  color: white;
}

.phone-status.dark b { background: rgb(255 255 255 / 22%); }

.capture-phone-content {
  overflow: hidden;
  background: white;
}

.capture-source {
  position: relative;
  min-height: 100%;
  background: white;
  color: #242424;
}

.question-source { padding-bottom: 78px; }

.question-nav {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid #f2f2f2;
  background: white;
}

.question-nav button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: transparent;
  color: #27292c;
}

.question-nav > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  font-size: 18px;
}

.question-nav strong { position: relative; }

.question-nav strong::after {
  position: absolute;
  right: 2px;
  bottom: -17px;
  left: 2px;
  height: 3px;
  content: "";
  border-radius: 3px;
  background: var(--orange);
}

.question-nav span { color: #aaaeb3; }

.question-progress {
  padding: 14px 18px 0;
  background: white;
}

.question-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question-progress strong { font-size: 18px; }
.question-progress span { color: #555; font-size: 14px; }

.question-progress > i {
  display: block;
  height: 5px;
  margin: 13px -18px 0;
  background: #ececec;
}

.question-progress > i b {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
}

.question-capture-body { padding: 28px 18px 18px; }

.question-capture-body em {
  display: inline-flex;
  height: 27px;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-style: normal;
}

.question-capture-body h1 {
  margin: 20px 0 22px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}

.question-capture-body > div {
  display: grid;
  gap: 12px;
}

.question-capture-body button {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #eceef0;
  border-radius: 10px;
  background: #fafafa;
  color: #3e4349;
  text-align: left;
}

.question-toolbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 72px;
  border-top: 1px solid #ededed;
  background: white;
}

.question-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  color: #555c64;
  font-size: 11px;
}

.video-source {
  min-height: 100%;
  padding-bottom: 24px;
  background: #f7f7f8;
}

.video-player-mock {
  position: relative;
  height: 250px;
  padding: 10px 16px;
  background: radial-gradient(circle at 50% 42%, #0d5f60 0%, #073f42 54%, #052f32 100%);
  color: white;
}

.video-player-mock > button {
  position: absolute;
  top: 8px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: transparent;
  color: white;
}

.video-player-mock > button:first-child { left: 8px; }
.video-player-mock > button:nth-child(2) { right: 8px; font-size: 18px; letter-spacing: 2px; }

.video-title-art {
  position: absolute;
  top: 44px;
  right: 35px;
  left: 35px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.video-title-art strong,
.video-title-art span {
  color: #ffd34f;
  font-weight: 700;
}

.video-title-art strong { font-size: 21px; }
.video-title-art span { font-size: 16px; }
.video-title-art small { margin-top: 7px; color: rgb(255 255 255 / 82%); font-size: 11px; }

.video-controls {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
}

.video-controls i {
  height: 4px;
  border-radius: 4px;
  background: rgb(255 255 255 / 45%);
}

.video-controls i b {
  display: block;
  width: 27%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.video-controls span { font-size: 9px; }

.video-chapter-strip {
  display: flex;
  overflow: hidden;
  height: 64px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: white;
}

.video-chapter-strip strong {
  flex: 0 0 47px;
  color: #555;
  font-size: 11px;
  text-align: center;
}

.video-chapter-strip span {
  overflow: hidden;
  min-width: 170px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f5f6f7;
  color: #777d84;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-chapter-strip span.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.course-rating {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  margin-top: 9px;
  padding: 0 15px;
  background: white;
}

.course-rating strong { color: var(--orange); font-size: 13px; }
.course-rating span { color: #c7cbd0; font-size: 21px; letter-spacing: 2px; }
.course-rating button { background: transparent; color: #c7cbd0; font-size: 12px; }

.course-catalog { padding: 18px 15px; }

.course-catalog h1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  font-size: 20px;
}

.catalog-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.catalog-group strong { font-size: 13px; }
.catalog-group i { margin-right: 5px; color: #9da2a8; font-style: normal; }
.catalog-group span { color: #9da2a8; font-size: 10px; }
.catalog-group b { color: var(--orange); }

.lesson-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 81px;
  margin-bottom: 10px;
  padding: 13px 48px 13px 15px;
  border-radius: 9px;
  background: white;
}

.lesson-card strong { font-size: 14px; }
.lesson-card small { color: #999fa5; font-size: 10px; }
.lesson-card span { color: #a4a9af; font-size: 10px; }
.lesson-card .icon { position: absolute; top: 30px; right: 17px; color: #9da2a8; }

.capture-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  overflow: hidden;
  background: rgb(0 0 0 / 48%);
}

.capture-preview {
  position: absolute;
  top: 62px;
  right: 24px;
  bottom: 224px;
  left: 24px;
  display: grid;
  place-items: center;
}

.capture-preview img {
  display: block;
  max-width: min(240px, 80%);
  max-height: 100%;
  border: 1px solid rgb(255 255 255 / 45%);
  background: white;
  box-shadow: 0 12px 35px rgb(0 0 0 / 30%);
  object-fit: contain;
}

.capture-share-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: #f2f2f2;
}

.capture-share-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 25px 10px 20px;
  background: white;
}

.capture-share-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  background: transparent;
  color: #31343a;
  font-size: 12px;
}

.capture-share-actions i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-style: normal;
}

.capture-share-actions .wechat { background: #08c56b; }
.capture-share-actions .moments { background: #75c744; }
.capture-share-actions .feedback { background: #f6c74b; }
.capture-share-actions .album { background: #30a8da; }

.capture-cancel {
  width: 100%;
  height: 58px;
  margin-top: 9px;
  background: white;
  color: #26292e;
  font-size: 16px;
}

.admin-feedback-image {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e4e7ea;
  border-radius: 8px;
  background: #f6f7f8;
}

.admin-feedback-image img {
  display: block;
  width: 100%;
  height: 150px;
  background: white;
  object-fit: contain;
}

.admin-feedback-image figcaption {
  overflow: hidden;
  padding: 7px 8px;
  color: #747c85;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-entry="admin"] .admin-shell {
  min-height: 100vh;
}

body[data-entry="admin"] .admin-topbar {
  top: 0;
}

body[data-entry="admin"] .admin-sidebar {
  top: 56px;
}

body[data-entry="admin"] .admin-main {
  min-height: 100vh;
}

body[data-entry="admin"] .drawer-backdrop {
  inset: 56px 0 0;
}

body[data-entry="admin"] .admin-drawer {
  top: 56px;
}

.annotation-panel {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  overflow: hidden;
  width: min(356px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  border: 1px solid #f0d7a3;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 18px 60px rgb(36 41 46 / 22%);
}

.annotation-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2e3c4;
  background: #fff8e9;
}

.annotation-panel > header div {
  display: grid;
  gap: 2px;
}

.annotation-panel > header span {
  color: #b17a14;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
}

.annotation-panel > header strong {
  color: #3f3b33;
  font-size: 14px;
}

.annotation-panel > header button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: #9b7b3e;
  transform: rotate(90deg);
}

.annotation-list {
  overflow-y: auto;
  max-height: min(480px, calc(100vh - 150px));
  padding: 6px 14px;
}

.annotation-list article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #f0eadf;
}

.annotation-list article:last-child {
  border-bottom: 0;
}

.annotation-list i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #f2b84b;
  color: white;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.annotation-list strong {
  color: #49443b;
  font-size: 12px;
}

.annotation-list p {
  margin: 5px 0 0;
  color: #7f776a;
  font-size: 10px;
  line-height: 1.65;
}

.annotation-panel > footer {
  padding: 9px 14px;
  border-top: 1px solid #f2e3c4;
  color: #a18c64;
  font-size: 9px;
  text-align: right;
}

.annotation-reopen {
  position: fixed;
  z-index: 99;
  right: 18px;
  bottom: 18px;
  display: none;
  height: 38px;
  padding: 0 15px;
  border: 1px solid #e6c37d;
  border-radius: 20px;
  background: #fff8e9;
  color: #9b6b12;
  box-shadow: 0 8px 28px rgb(36 41 46 / 15%);
  font-size: 11px;
  font-weight: 600;
}

body.annotations-collapsed .annotation-panel {
  display: none;
}

body.annotations-collapsed .annotation-reopen {
  display: block;
}

@media (max-width: 720px) {
  .landing-hero {
    padding: 36px 20px 32px;
  }

  .landing-brand {
    margin-bottom: 24px;
  }

  .landing-content {
    gap: 28px;
    padding: 24px 16px 36px;
  }

  .entry-section-title {
    display: grid;
    gap: 5px;
  }

  .scene-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .version-actions {
    grid-template-columns: 1fr 1fr;
  }

  .backend-system-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body[data-entry="app"] .annotation-panel,
  body[data-entry="capture"] .annotation-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

/* Standard APP delivery shell */
body[data-entry="app"] .app-stage,
body[data-entry="capture"] .app-stage {
  display: grid;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background: #eef0f3;
}

body[data-entry="app"] .phone-shell,
body[data-entry="capture"] .phone-shell {
  width: 390px;
  height: min(844px, calc(100vh - 48px));
  border: 1px solid #dfe3e8;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgb(36 41 46 / 15%);
}

@media (max-width: 480px) {
  body[data-entry="app"] .app-stage,
  body[data-entry="capture"] .app-stage {
    width: 100vw;
    min-height: 100dvh;
    padding: 0;
    background: var(--page);
  }

  body[data-entry="app"] .phone-shell,
  body[data-entry="capture"] .phone-shell {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
