:root { color: #262933; background: #fbfcfd; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
.topbar { min-height: 70px; padding: 20px 32px; display: flex; gap: 24px; align-items: center; background: white; border-bottom: 1px solid #f2f2f5; }
.brand { color: #262933; font-size: 20px; font-weight: 600; text-decoration: none; }
.topbar nav { margin-left: auto; display: flex; gap: 28px; }
.topbar nav a { color: #595e73; font-size: 14px; text-decoration: none; }
.topbar nav a.active { color: #1f4fe5; }
main { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 48px; }
.page-context { color: #666b7d; font-size: 14px; margin: 0 0 24px; }
.card { border: 1px solid #d6dbe5; border-radius: 14px; background: white; padding: 32px; }
h1 { margin: 0 0 16px; font-size: 30px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
h2 { margin: 0 0 12px; font-size: 22px; }
p { color: #666b7d; line-height: 1.55; margin: 0 0 24px; overflow-wrap: anywhere; }
.card > p:last-child { margin-bottom: 0; }
.small-copy { font-size: 14px; }
.engine-setup-motion { display: inline-flex; width: 18px; margin-left: 5px; justify-content: space-between; vertical-align: middle; }
.engine-setup-motion-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .25; animation: engine-setup-dot 1.2s ease-in-out infinite; }
.engine-setup-motion-dot:nth-child(2) { animation-delay: .15s; }
.engine-setup-motion-dot:nth-child(3) { animation-delay: .3s; }
@keyframes engine-setup-dot {
  0%, 60%, 100% { opacity: .25; }
  30% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .engine-setup-motion-dot { animation: none; }
}
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.platform { min-height: 94px; border: 1px solid #d6dbe5; border-radius: 14px; background: white; padding: 16px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: left; }
.platform.selected { border: 2px solid #1f4fe5; background: #f6f8ff; padding: 15px; }
.platform:disabled { cursor: not-allowed; opacity: .55; }
.platform-badge { display: none; }
.platform small { color: #666b7d; font-size: 13px; }
.continue-guidance { margin: 12px 0 0; }
.inline-status { margin-top: 20px; padding: 16px; border: 1px solid #dbe0eb; border-radius: 10px; background: #f8f9fc; }
.inline-status p { margin: 8px 0 12px; }
.button { min-height: 46px; border-radius: 10px; padding: 10px 22px; border: 1px solid transparent; cursor: pointer; font-weight: 600; line-height: 1.4; text-align: center; }
.button-primary { background: #1f4fe5; color: white; border-color: #1f4fe5; }
.button-secondary { background: #f5f7fc; color: #292e3b; border-color: #dbe0eb; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.text-button { min-height: 44px; border: 0; background: transparent; color: #666b7d; padding: 8px 0; cursor: pointer; text-align: left; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.secondary-actions { margin-top: 12px; flex-direction: column; align-items: flex-start; gap: 0; }
.current-transfer-banner { display: grid; gap: 8px; margin-bottom: 16px; }
.current-transfer-banner .button { justify-self: start; }
.secondary-details { margin: 20px 0 0; color: #666b7d; font-size: 14px; line-height: 1.6; }
.secondary-details summary { cursor: pointer; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
.secondary-details p { margin: 8px 0 16px; }
.secondary-details .button { margin: 8px 0; }
.retention-consent { margin: 0 0 24px; }
.retention-consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.5; }
.retention-consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; }
.retention-consent p { margin: 8px 0 0 28px; }
.engine-state { color: #262933; }
.phone-preview-pairing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; margin-top: 24px; }
.phone-preview-qr { display: block; width: 240px; height: 240px; border: 1px solid #dbe0eb; border-radius: 10px; background: #edf0f5; }
.phone-preview-guidance { min-width: 0; }
.phone-preview-guidance p { margin: 12px 0 0; font-size: 14px; }
.phone-preview-guidance-above p { margin: 0 0 12px; }
.phone-preview-guidance-actions { margin-top: 12px; }
.stop-transfer-feedback { margin-bottom: 20px; }
.stop-transfer-feedback strong { display: block; font-size: 16px; line-height: 1.4; }
.inline-status.stop-transfer-feedback p { margin: 8px 0 12px; font-size: 16px; }
.phone-preview-qr-column { min-width: 0; }
.phone-preview-actions { margin: 24px 0 0; }
.phone-preview-pairing-layout .phone-preview-actions { margin: 0; }
.stop-transfer-dialog { width: min(520px, calc(100% - 32px)); border: 1px solid #d6dbe5; border-radius: 14px; padding: 32px; color: #262933; box-shadow: 0 12px 32px rgb(20 23 31 / 18%); }
.stop-transfer-dialog::backdrop { background: rgb(20 23 31 / 38%); }
.stop-transfer-dialog h2 { margin: 0 0 12px; }
.stop-transfer-dialog p { margin-bottom: 28px; }
.stop-transfer-dialog-actions { justify-content: flex-end; }
.phone-preview-placeholder { display: grid; place-items: center; width: 240px; min-height: 240px; padding: 20px; border: 1px solid #dbe0eb; border-radius: 10px; background: #edf0f5; color: #666b7d; text-align: center; }
.task-result-preview { margin-top: 20px; }
.phone-preview-result-column .task-result-preview { margin-top: 0; }
.result-counts { margin-bottom: 12px; color: #262933; font-weight: 600; }
.result-preview-details { border-top: 1px solid #e8ebf0; padding-top: 8px; }
.result-preview-details summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: #292e3b; font-weight: 600; }
.result-preview-details summary small { margin-left: 8px; color: #666b7d; font-size: 12px; font-weight: 400; }
.result-preview-list { display: grid; gap: 10px; max-height: 360px; overflow: auto; padding-right: 4px; }
.result-preview-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; }
.result-preview-item img, .result-preview-cover { width: 88px; height: 56px; border-radius: 8px; object-fit: cover; background: #edf0f5; }
.result-preview-item span { min-width: 0; }
.result-preview-item strong, .result-preview-item small { display: block; overflow-wrap: anywhere; }
.result-preview-item small { margin-top: 5px; color: #666b7d; }
.received-result { margin-top: 20px; }
.review-toolbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 24px; border-bottom: 1px solid #cdd3df; background: #eef2ff; color: #3b4357; }
.review-toolbar > span { font-size: 12px; color: #666b7d; }
.review-steps { display: flex; gap: 6px; overflow-x: auto; }
.review-steps button { min-height: 34px; border: 1px solid #c8d0e5; border-radius: 8px; background: white; color: #3b4357; cursor: pointer; white-space: nowrap; }
.review-steps button.active { border-color: #1f4fe5; background: #1f4fe5; color: white; }
.review-toolbar select { min-height: 34px; margin-left: 6px; border: 1px solid #c8d0e5; border-radius: 8px; background: white; }
.review-flow-button { min-height: 34px; border: 1px solid #1f4fe5; border-radius: 8px; background: white; color: #1f4fe5; cursor: pointer; white-space: nowrap; }
.review-flow-button.active { background: #1f4fe5; color: white; }
.synthetic-qr { display: grid; place-items: center; width: 240px; height: 240px; border: 12px solid white; outline: 1px solid #dbe0eb; border-radius: 10px; background: repeating-conic-gradient(#262933 0 25%, #fff 0 50%) 50% / 28px 28px; color: #1f4fe5; font-weight: 700; text-shadow: 0 0 4px white; }
.progress-track { width: 100%; height: 8px; border-radius: 4px; overflow: hidden; background: #e8ebf0; margin: 24px 0; }
.progress-track span { display: block; height: 100%; background: #1f4fe5; }
.last-delivered-source { font-size: 14px; }
.result-warning { margin: 16px 0; }
.result-warning p { margin: 0 0 8px; }
.single-state { margin: 0; }
.layout-grid, .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.public-platform-grid .platform { cursor: default; }
:is(button, a, input, summary):focus-visible { outline: 3px solid #1f4fe5; outline-offset: 4px; }
@media (max-width: 560px) {
  .review-toolbar { position: static; grid-template-columns: minmax(0, 1fr); }
  .review-toolbar > * { min-width: 0; }
  .topbar { padding: 16px 24px; }
  .topbar nav { display: none; }
  main { width: calc(100% - 32px); padding-top: 24px; }
  .card { padding: 24px 20px; }
  h1 { font-size: 27px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform { min-height: 72px; }
  .phone-preview-pairing-layout { grid-template-columns: 1fr; }
  .phone-preview-actions { margin: 16px 0 0; }
}
