/* Qualification demo: iOS grouped UI inside Grow */

body.is-qualify {
  background: #F2F2F7;
  color: #1C1C1E;
}

body.is-qualify .site-header {
  background: rgba(242, 242, 247, 0.78);
}

body.is-qualify .site-footer {
  background: #F2F2F7;
}

.q-page {
  padding: 2.25rem 0 4.5rem;
}

.q-wrap {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.q-hero {
  max-width: none;
  margin-bottom: 1.5rem;
}

.q-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  letter-spacing: -0.042em;
  margin: 0 0 0.65rem;
  max-width: 18ch;
}

.q-hero > p {
  color: #636366;
  font-size: 1.0625rem;
  margin: 0 0 1.35rem;
  max-width: 46ch;
}

.q-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8E8E93;
  margin-bottom: 0.85rem;
}

.q-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55);
  animation: q-pulse 1.8s ease-out infinite;
}

@keyframes q-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.q-mode {
  display: inline-flex;
  padding: 3px;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  gap: 0;
}

.q-mode button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1C1C1E;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.q-mode button.is-on {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.q-rep {
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: #000;
  color: #fff;
  border-radius: 20px;
  max-width: 720px;
}

.q-rep-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.q-rep-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.q-rep.is-empty .q-rep-name { color: rgba(255, 255, 255, 0.38); }

.q-rep-note {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 46ch;
}

.q-rep-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.7rem;
}

.q-rep-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.q-rep-fields input {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  min-height: 48px;
}

.q-rep-fields input::placeholder { color: rgba(255, 255, 255, 0.35); }

.q-rep-inline {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 980px;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.q-split {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.q-device {
  position: relative;
  width: min(100%, 390px);
  margin-inline: auto;
  min-height: 820px;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
  background: #0A0A0C;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 22px 60px rgba(0, 0, 0, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.18) inset;
}

.q-bezel {
  pointer-events: none;
  position: absolute;
  inset: 12px 12px auto 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.q-island {
  width: 118px;
  height: 34px;
  background: #000;
  border-radius: 20px;
}

.q-screen-stack {
  position: relative;
  min-height: 796px;
  height: auto;
  border-radius: 40px;
  overflow: hidden;
  background: #F2F2F7;
}

.q-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1), transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.q-screen.is-active {
  position: relative;
  min-height: 796px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.q-screen.is-exit {
  opacity: 0;
  transform: translateX(-24px);
}

.q-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 52px 18px 8px;
  min-height: 78px;
}

.q-time, .q-back {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1C1C1E;
  justify-self: start;
}

.q-back {
  appearance: none;
  border: 0;
  background: none;
  color: #007AFF;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.q-nav-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.q-scroll {
  flex: 1;
  overflow: auto;
  padding: 4px 18px 28px;
  -webkit-overflow-scrolling: touch;
}

.q-large-title {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  color: #000;
}

.q-sub {
  color: #636366;
  font-size: 0.9375rem;
  margin: 0 0 1.15rem;
  line-height: 1.45;
}

.q-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6C6C70;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.1rem 0 0.45rem;
}

.q-group {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.q-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
  margin: 0;
  font-size: 0.9375rem;
}

.q-row:last-child { border-bottom: 0; }

.q-row span { color: #1C1C1E; flex: 0 0 auto; min-width: 5.5rem; }

.q-row input[type="text"],
.q-row input[type="email"],
.q-row input[type="tel"],
.q-row input[type="number"],
.q-row select {
  border: 0;
  background: transparent;
  font: inherit;
  text-align: right;
  width: 100%;
  min-height: 44px;
  color: #1C1C1E;
  outline: none;
}

.q-row input::placeholder { color: #C7C7CC; }

.q-screen-stack .q-scroll,
.q-screen-stack form,
.q-screen-stack .q-group {
  min-width: 0;
  max-width: 100%;
}

.q-screen-stack .q-group {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: grid;
  gap: 0.9rem;
}

.q-screen-stack .q-row {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0;
  border: 0;
}

.q-screen-stack .q-row > span {
  flex: none;
  min-width: 0;
  color: #3A3A3C;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.q-screen-stack .q-row input[type="text"],
.q-screen-stack .q-row input[type="email"],
.q-screen-stack .q-row input[type="tel"],
.q-screen-stack .q-row input[type="number"],
.q-screen-stack .q-row select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.q-screen-stack .q-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238E8E93' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.q-screen-stack .q-row input:focus,
.q-screen-stack .q-row select:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14);
}

.q-money {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.q-money-prefix {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  padding: 0 0.15rem 0 0.9rem;
  color: #8E8E93;
  font-size: 1.0625rem;
  font-weight: 600;
}

.q-screen-stack .q-money input[type="text"],
.q-screen-stack .q-money input[type="number"] {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding-left: 0.35rem;
  min-height: 52px;
}

.q-money:focus-within {
  border-color: #007AFF;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14);
}

.q-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.q-pill {
  appearance: none;
  border: 0;
  background: #fff;
  color: #1C1C1E;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 980px;
  cursor: pointer;
  box-shadow: 0 0 0 0.5px rgba(60, 60, 67, 0.18);
}

.q-pill.is-on {
  background: #007AFF;
  color: #fff;
  box-shadow: none;
}

.q-hint {
  font-size: 0.8125rem;
  color: #8E8E93;
  margin: 0.55rem 0 0;
}

.q-legal {
  margin: 1.15rem 0 0.85rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.2rem 0;
}

.q-legal summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  list-style: none;
}

.q-legal summary::-webkit-details-marker { display: none; }

.q-legal-body {
  padding: 0 1rem 1rem;
  font-size: 0.75rem;
  color: #636366;
  max-height: 14rem;
  overflow: auto;
  line-height: 1.5;
}

.q-legal-body p { margin: 0 0 0.7rem; }
.q-legal-body a { color: #007AFF; }

.q-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: #3A3A3C;
  margin: 0.55rem 0;
  align-items: start;
  line-height: 1.4;
}

.q-check input { margin-top: 0.15rem; accent-color: #007AFF; }

.q-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  appearance: none;
  border: 0;
  background: #007AFF;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: -0.02em;
}

.q-btn[disabled] { opacity: 0.45; }

.q-btn-ghost {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: #007AFF;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem;
  cursor: pointer;
}

.q-error {
  color: #FF3B30;
  font-size: 0.8125rem;
  margin: 0.75rem 0 0;
}

.q-home-bar {
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: end;
  padding-bottom: 8px;
}

.q-home-bar::after {
  content: "";
  width: 128px;
  height: 5px;
  border-radius: 100px;
  background: #1C1C1E;
}

/* Journey */
.q-journey {
  flex: 1;
  position: relative;
  min-height: 640px;
  background:
    radial-gradient(120% 80% at 50% 0%, #3A3A4A 0%, transparent 55%),
    #111114;
  color: #fff;
}

.q-journey [hidden] {
  display: none !important;
}

.q-lock {
  height: 100%;
  padding: 92px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.q-lock-time {
  font-size: 4.4rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.q-lock-date {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.2rem;
  font-size: 1.05rem;
}

.q-toast {
  width: 100%;
  margin-top: 2.2rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 22px;
  padding: 0.85rem 1rem;
  transform: translateY(-12px);
  opacity: 0;
}

.q-toast.is-in {
  animation: q-drop 0.7s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes q-drop {
  to { transform: none; opacity: 1; }
}

.q-toast-app { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.q-toast-title { font-weight: 700; margin-top: 0.15rem; }
.q-toast-body { font-size: 0.875rem; opacity: 0.88; margin-top: 0.1rem; }

.q-imessage {
  position: absolute;
  inset: 0;
  background: #F2F2F7;
  color: #000;
  display: flex;
  flex-direction: column;
  padding-top: 54px;
}

.q-im-head {
  text-align: center;
  padding: 0.35rem 0 0.7rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}

.q-im-head span { display: block; font-weight: 700; font-size: 0.9375rem; }
.q-im-head small { color: #8E8E93; }

.q-im-thread {
  flex: 1;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: auto;
}

.q-bubble {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.35;
  align-self: flex-start;
  background: #E9E9EB;
  animation: q-pop 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.q-bubble.is-sms {
  align-self: flex-start;
  background: #E9E9EB;
  color: #000;
  border-bottom-left-radius: 6px;
}

.q-bubble a.q-app-link,
button.q-app-link {
  display: block;
  margin-top: 0.45rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: #007AFF;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
  word-break: break-all;
}

.q-sms-foot {
  text-align: center;
  font-size: 0.6875rem;
  color: #8E8E93;
  margin: 0;
  padding: 0.35rem 0 0.85rem;
}

.q-sms-card {
  background: #F2F2F7;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.q-sms-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.q-sms-card p {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  color: #636366;
}

.q-sms-card pre {
  white-space: pre-wrap;
  font-size: 0.75rem;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.q-sms-open {
  font-size: 0.8125rem;
  font-weight: 600;
}

@keyframes q-pop {
  from { transform: scale(0.92) translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.q-call {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(120% 90% at 50% 20%, #3A3A48, #141416);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 108px 24px 32px;
  text-align: center;
}

.q-call-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.q-call-name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-top: 0.45rem;
}

.q-call-sub { color: rgba(255,255,255,0.62); font-size: 0.875rem; margin-top: 0.25rem; }

.q-wave {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 42px;
  margin: 1.75rem 0 1.1rem;
}

.q-wave span {
  width: 5px;
  height: 12px;
  border-radius: 99px;
  background: #34C759;
  animation: q-bar 0.9s ease-in-out infinite;
}

.q-wave span:nth-child(2) { animation-delay: 0.08s; }
.q-wave span:nth-child(3) { animation-delay: 0.16s; }
.q-wave span:nth-child(4) { animation-delay: 0.24s; }
.q-wave span:nth-child(5) { animation-delay: 0.1s; }
.q-wave span:nth-child(6) { animation-delay: 0.22s; }
.q-wave span:nth-child(7) { animation-delay: 0.05s; }
.q-wave span:nth-child(8) { animation-delay: 0.18s; }

@keyframes q-bar {
  0%, 100% { height: 10px; opacity: 0.55; }
  50% { height: 36px; opacity: 1; }
}

.q-call-script {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  min-height: 6.5em;
  margin: 0;
}

.q-call-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.35rem;
}

.q-call-end {
  position: relative;
  z-index: 5;
  width: 68px;
  height: 68px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #FF3B30;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.35);
}

.q-call-end svg {
  display: block;
  pointer-events: none;
  transform: rotate(135deg);
}

.q-call-end:active { transform: scale(0.94); }

.q-call-end-label {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.q-app-open {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #007AFF;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  text-align: center;
}

.q-drop {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem 1rem;
  text-align: center;
  margin-bottom: 0.7rem;
  min-width: 0;
  overflow: hidden;
}

.q-drop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.q-drop-grid .q-drop { margin-bottom: 0; }

.q-drop.is-slot {
  min-height: 9.5rem;
  border: 1.5px dashed rgba(0, 122, 255, 0.35);
}

.q-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.q-drop strong { display: block; font-size: 0.9375rem; overflow-wrap: anywhere; }
.q-drop span {
  display: block;
  font-size: 0.75rem;
  color: #8E8E93;
  margin-top: 0.25rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.q-files {
  text-align: left;
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: #007AFF;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.q-links { margin-top: 0.35rem; }

.q-link-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  color: inherit;
  padding: 0.85rem 1rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  text-decoration: none;
  min-width: 0;
}

.q-link-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.q-link-row:first-of-type { border-radius: 14px 14px 0 0; }
.q-link-row:last-of-type { border-radius: 0 0 14px 14px; border-bottom: 0; }
.q-link-row:only-of-type { border-radius: 14px; }

.q-link-row strong { display: block; font-size: 0.875rem; color: #007AFF; }
.q-link-row small { display: block; color: #8E8E93; font-size: 0.75rem; margin-top: 0.15rem; line-height: 1.35; }

.q-process {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px 32px;
}

.q-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  background: conic-gradient(from 120deg, #007AFF, #64D2FF, #34C759, #007AFF);
  animation: q-spin 1.4s linear infinite;
  mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
}

@keyframes q-spin { to { transform: rotate(1turn); } }

.q-steps-live {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  width: 100%;
  text-align: left;
}

.q-steps-live li {
  padding: 0.55rem 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  color: #8E8E93;
  font-size: 0.875rem;
}

.q-steps-live li.is-on { color: #007AFF; font-weight: 600; }
.q-steps-live li.is-done { color: #1C1C1E; }

.q-stamp {
  text-align: center;
  padding: 0.5rem 0 0.5rem;
}

.q-stamp-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #34C759;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  animation: q-pop 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}

.q-stamp.is-refer .q-stamp-mark { background: #FF9F0A; }
.q-stamp.is-no .q-stamp-mark { background: #FF3B30; }

.q-facts {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.q-facts div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  font-size: 0.8125rem;
  min-width: 0;
}

.q-facts div:last-child { border-bottom: 0; }
.q-facts dt { color: #8E8E93; flex: 0 1 auto; max-width: 42%; }
.q-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  flex: 1 1 7rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.q-flow {
  margin-top: 1.1rem;
}

.q-flow-track {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.q-node {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.q-node.is-src { background: #007AFF; color: #fff; }

.q-pipe {
  height: 2px;
  width: 18px;
  background: repeating-linear-gradient(90deg, #007AFF 0 8px, transparent 8px 14px);
  background-size: 18px 2px;
  animation: q-dash 0.7s linear infinite;
}

@keyframes q-dash { to { background-position: 18px 0; } }

.q-dest {
  background: #fff;
  border-radius: 14px;
  margin-top: 0.7rem;
}

.q-dest li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  font-size: 0.8125rem;
}

.q-dest li:last-child { border-bottom: 0; }

.q-desk {
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.q-desk-head h2 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}

.q-desk-head p { color: #636366; font-size: 0.9375rem; margin: 0 0 1rem; }

.q-desk-card { margin-bottom: 0.85rem; }

.q-toggle span { min-width: 0; flex: 1; text-align: left; }
.q-toggle input { width: auto; accent-color: #007AFF; }

.q-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #636366;
}

.q-field input {
  border: 0;
  background: #F2F2F7;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: #1C1C1E;
}

.q-desk-actions { margin-bottom: 1.1rem; }
.q-desk-actions .q-btn-ghost {
  width: auto;
  margin: 0;
  padding: 0;
}

.q-kv {
  margin: 0;
}

.q-kv div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
}

.q-kv dt { color: #8E8E93; }
.q-kv dd { margin: 0; font-weight: 600; }

.q-muted { color: #8E8E93; font-size: 0.875rem; }

.q-payload pre {
  background: #F2F2F7;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.6875rem;
  overflow: auto;
  max-height: 220px;
  margin: 0;
}

@media (max-width: 980px) {
  .q-split { grid-template-columns: 1fr; }
  .q-split[data-view="applicant"] .q-col-broker { display: none; }
  .q-split[data-view="broker"] .q-col-app { display: none; }
  .q-device {
    width: min(100%, 430px);
    max-height: none;
    min-height: 960px;
    height: auto;
    aspect-ratio: auto;
  }
  .q-screen-stack,
  .q-screen.is-active {
    min-height: 936px;
  }
}

@media (max-width: 640px) {
  .q-page { padding: 0.75rem 0 3.5rem; }
  .q-hero { margin-bottom: 1.1rem; }
  .q-hero h1 { font-size: 1.85rem; }
  .q-device {
    width: 100%;
    height: auto;
    min-height: calc(100dvh + 14rem);
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
  }
  .q-bezel, .q-home-bar { display: none; }
  .q-screen-stack {
    border-radius: 18px;
    min-height: calc(100dvh + 14rem);
    overflow: visible;
  }
  .q-screen { position: relative; min-height: 0; }
  .q-screen.is-active {
    min-height: calc(100dvh + 10rem);
    height: auto;
  }
  .q-screen:not(.is-active) { display: none; }
  .q-nav { padding-top: 18px; min-height: 48px; }
  .q-scroll {
    overflow: visible;
    flex: none;
    padding-bottom: 3.5rem;
  }
  .q-legal-body { max-height: 22rem; }
  .q-rep-fields { grid-template-columns: 1fr; }
  .q-rep { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .q-live, .q-orb, .q-wave span, .q-pipe, .q-toast { animation: none !important; }
  .q-toast { opacity: 1; transform: none; }
}
