*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7f6;
  --ink: #263238;
  --muted: #90a4ae;
  --soft-line: #e0f2f1;
  --teal: #00897b;
  --teal-dark: #00796b;
  --cyan: #18c8d8;
  --splash: #00251a;
  --deck: #071923;
  --shadow: 0 2px 10px rgba(0, 105, 92, 0.1);
}

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

body {
  margin: 0;
  background: #101113;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

.uxr-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(318px, 390px) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.research-panel {
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(245, 247, 246, 0.98);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  padding: 22px;
}

.brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-row img {
  width: 56px;
  height: 42px;
  object-fit: contain;
}

.eyebrow,
.scenario-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.panel-copy {
  margin: 18px 0;
  color: #546e7a;
  font-size: 14px;
  line-height: 1.5;
}

.scenario-card,
.feedback-form {
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.scenario-card {
  margin-bottom: 16px;
}

.scenario-card p:last-of-type {
  color: #546e7a;
  font-size: 14px;
  line-height: 1.45;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ghost-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.12s ease, background 0.12s ease;
}

.ghost-button {
  border: 1.5px solid #b2dfdb;
  background: #ffffff;
  color: #546e7a;
  padding: 8px 14px;
  font-size: 12px;
}

.ghost-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.primary-button {
  width: 100%;
  background: var(--teal);
  color: #ffffff;
  padding: 13px 16px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.28);
}

.ghost-button:active,
.primary-button:active,
.tab-button:active,
.wi-fab:active {
  transform: scale(0.98);
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screen-pill {
  border-radius: 999px;
  background: #e0f2f1;
  color: var(--teal-dark);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: #455a64;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.12);
}

input[type="range"] {
  accent-color: var(--teal);
  padding: 0;
}

.range-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.range-label strong {
  color: var(--teal);
  font-size: 13px;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  width: 100%;
  color: #455a64;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce6ea;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 10px;
  color: #546e7a;
  font-size: 12px;
}

.check input {
  width: auto;
}

.feedback-status {
  min-height: 18px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.phone-stage {
  display: grid;
  place-items: center;
  min-width: 0;
}

.phone-label {
  margin-bottom: 12px;
  color: #6f747b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.iphone {
  position: relative;
  width: min(393px, calc(100vw - 28px));
  aspect-ratio: 393 / 852;
  max-height: calc(100vh - 64px);
  border-radius: 54px;
  background: #0b0b0c;
  box-shadow:
    0 0 0 1px #36383c,
    0 0 0 4px #080808,
    0 28px 74px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.iphone::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 128px;
  width: 3px;
  height: 38px;
  border-radius: 2px 0 0 2px;
  background: #2b2d31;
  box-shadow: 0 50px 0 #2b2d31, 0 94px 0 #2b2d31;
}

.iphone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 178px;
  width: 3px;
  height: 74px;
  border-radius: 0 2px 2px 0;
  background: #2b2d31;
}

.browser {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: var(--bg);
}

.dynamic-island {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 50%;
  width: 118px;
  height: 33px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #060607;
}

.status-bar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  color: #17242b;
  padding: 8px 22px 0;
}

#clock {
  min-width: 54px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.status-spacer {
  width: 118px;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bars {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(to top, #17242b 35%, transparent 35%) 0 0 / 3px 12px,
    linear-gradient(to top, #17242b 55%, transparent 55%) 5px 0 / 3px 12px,
    linear-gradient(to top, #17242b 78%, transparent 78%) 10px 0 / 3px 12px,
    linear-gradient(to top, rgba(23, 36, 43, 0.35) 100%, transparent 100%) 15px 0 / 3px 12px;
  background-repeat: no-repeat;
}

.wifi {
  width: 17px;
  height: 12px;
  border: 2px solid #17242b;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  position: relative;
}

.wifi::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #17242b;
}

.battery {
  width: 27px;
  height: 13px;
  border: 1px solid rgba(23, 36, 43, 0.45);
  border-radius: 4px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 17px;
  height: 7px;
  border-radius: 2px;
  background: #17242b;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 4px;
  width: 3px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: rgba(23, 36, 43, 0.45);
}

.safari-top {
  height: 47px;
  border-bottom: 1px solid rgba(23, 36, 43, 0.08);
  background: var(--bg);
  padding: 6px 12px 8px;
}

.address-bar {
  height: 33px;
  border-radius: 17px;
  background: #e7ecef;
  color: #59666d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.lock {
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: #6b757c;
  position: relative;
}

.lock::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 6px;
  height: 8px;
  border: 2px solid #6b757c;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.app-frame {
  position: relative;
  height: calc(100% - 48px - 47px - 68px);
  background: var(--bg);
  overflow: hidden;
}

.safari-bottom {
  height: 68px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid rgba(23, 36, 43, 0.1);
  background: rgba(247, 248, 249, 0.94);
  color: #0a84ff;
  padding: 9px 18px 8px;
  backdrop-filter: blur(16px);
}

.safari-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
}

.muted {
  color: #b7c0c7;
  cursor: default;
}

.chevron {
  color: #b0bec5;
  font-size: 22px;
  font-weight: 300;
}

.chevron.left,
.chevron.right {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  font-size: 0;
}

.chevron.left {
  transform: rotate(-45deg);
}

.chevron.right {
  transform: rotate(135deg);
}

.chevron.small {
  font-size: 18px;
}

.reload-icon,
.share-icon,
.tabs-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  display: block;
}

.reload-icon {
  border-left-color: transparent;
  border-radius: 50%;
}

.share-icon {
  border-top: 0;
  border-radius: 4px;
  position: relative;
}

.share-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -9px;
  width: 2px;
  height: 16px;
  background: currentColor;
}

.tabs-icon {
  border-radius: 4px;
  box-shadow: 4px -4px 0 -1px rgba(247, 248, 249, 0.94), 4px -4px 0 1px currentColor;
}

.home-indicator {
  position: absolute;
  z-index: 21;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 124px;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 36, 43, 0.55);
}

.wi-safe {
  position: relative;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

.wi-scroll {
  height: 100%;
  overflow: auto;
  padding-bottom: 108px;
  scrollbar-width: none;
}

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

.screen-in {
  animation: screenIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stagger-card {
  animation: cardIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stagger-card:nth-of-type(2) {
  animation-delay: 35ms;
}

.stagger-card:nth-of-type(3) {
  animation-delay: 70ms;
}

.stagger-card:nth-of-type(4) {
  animation-delay: 105ms;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wi-splash {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--splash);
}

.wi-splash img {
  width: 170px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24));
  animation: splashLogo 900ms cubic-bezier(0.12, 0.78, 0.28, 1.1) both;
}

@keyframes splashLogo {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.wi-toast {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 0;
  background: #e0f2f1;
  color: var(--teal-dark);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  animation: toastDrop 220ms ease both;
}

@keyframes toastDrop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.voice-capture-card {
  position: absolute;
  z-index: 38;
  left: 16px;
  right: 16px;
  bottom: 68px;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #b2dfdb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 77, 64, 0.18);
  backdrop-filter: blur(16px);
  animation: sheetLift 180ms ease both;
}

.inline-feedback {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 32px);
  margin: 0 16px 12px;
  color: #78909c;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

.inline-feedback span {
  max-width: 86px;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-feedback button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d8ece9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(0, 105, 92, 0.07);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.inline-feedback button:active {
  transform: scale(0.94);
}

.inline-feedback button.selected {
  border-color: rgba(0, 137, 123, 0.55);
  background: #e0f2f1;
  color: var(--teal-dark);
}

.inline-feedback .spark-message {
  width: auto;
  min-width: 40px;
  padding: 0 8px;
  border-color: rgba(24, 200, 216, 0.42);
  background: linear-gradient(135deg, #f4fffc 0%, #ecfbff 100%);
  color: var(--teal-dark);
}

.inline-feedback.compact {
  margin: 0;
}

.inline-feedback.mini {
  margin: 10px 0 0;
}

.inline-feedback.dark {
  color: rgba(255, 255, 255, 0.62);
}

.inline-feedback.dark button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
}

.inline-feedback.dark button.selected,
.inline-feedback.dark .spark-message {
  border-color: rgba(124, 231, 212, 0.48);
  background: rgba(124, 231, 212, 0.18);
  color: #ffffff;
}

.deck-feedback {
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
}

.sheet-feedback {
  display: flex;
  justify-content: center;
  padding: 0 14px 8px;
}

.onboarding-feedback-slot {
  position: absolute;
  z-index: 9;
  top: 12px;
  right: 14px;
}

.onboarding-feedback-slot .inline-feedback span {
  display: none;
}

.inline-feedback-backdrop {
  position: absolute;
  z-index: 41;
  inset: 0;
  background: rgba(7, 25, 35, 0.22);
  backdrop-filter: blur(1px);
}

.inline-feedback-sheet {
  position: absolute;
  z-index: 42;
  left: 16px;
  right: 16px;
  bottom: 72px;
  overflow: hidden;
  border: 1px solid rgba(224, 242, 241, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  animation: sheetLift 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.inline-feedback-sheet header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px 8px;
}

.inline-feedback-sheet header span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(135deg, #e0f7f4, #edf8ff);
  font-size: 17px;
}

.inline-feedback-sheet header div {
  flex: 1;
  min-width: 0;
}

.inline-feedback-sheet strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 18px;
}

.inline-feedback-sheet p {
  margin: 1px 0 0;
  overflow: hidden;
  color: #78909c;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-feedback-sheet header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: var(--bg);
  color: #607d8b;
  padding: 0;
  font-size: 22px;
}

.inline-feedback-sheet textarea {
  width: calc(100% - 28px);
  min-height: 96px;
  margin: 0 14px;
  resize: none;
  border-color: #d8ece9;
  background: #fbfdfc;
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
}

.inline-feedback-sheet footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px 14px;
}

.inline-feedback-sheet footer button {
  min-width: 72px;
  border: 0;
  border-radius: 999px;
  background: #eef5f4;
  color: #607d8b;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
}

.inline-feedback-sheet footer button:last-child {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.24);
}

.voice-mic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(0, 137, 123, 0.1);
  animation: voicePulse 1200ms ease-in-out infinite;
}

.voice-mic svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(0, 137, 123, 0.1); }
  50% { box-shadow: 0 0 0 10px rgba(0, 137, 123, 0.05); }
}

.voice-capture-card div {
  min-width: 0;
  flex: 1;
}

.voice-capture-card strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
}

.voice-capture-card p {
  overflow: hidden;
  margin: 1px 0 6px;
  color: #607d8b;
  font-size: 11.5px;
  line-height: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.voice-capture-card i {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
}

.voice-capture-card i b {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  animation: voiceBar 760ms ease-in-out infinite;
}

.voice-capture-card i b:nth-child(2) { animation-delay: 90ms; }
.voice-capture-card i b:nth-child(3) { animation-delay: 180ms; }
.voice-capture-card i b:nth-child(4) { animation-delay: 270ms; }
.voice-capture-card i b:nth-child(5) { animation-delay: 360ms; }

@keyframes voiceBar {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 16px; opacity: 1; }
}

.voice-capture-card button {
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

.wi-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 16px;
}

.wi-mark {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.wi-greeting-text {
  flex: 1;
}

.wi-greeting h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.wi-greeting p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #ffffff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.user-avatar.small {
  width: 36px;
  height: 36px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.smart-block {
  padding: 0 16px 10px;
}

.smart-input-wrap {
  position: relative;
}

.smart-overlay {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 60px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  animation: sheetLift 180ms ease both;
}

.smart-overlay button {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-bottom: 1px solid var(--bg);
  background: #ffffff;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  text-align: left;
}

.smart-overlay button span:nth-child(2) {
  flex: 1;
}

.smart-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--soft-line);
  border-radius: 24px;
  background: #ffffff;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 105, 92, 0.08);
}

.smart-input.focused {
  border-color: var(--teal);
}

.smart-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
}

.smart-input button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
}

.mic-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #e0f2f1 !important;
  color: var(--teal);
  transition: transform 120ms ease, background 120ms ease;
}

.mic-button:active {
  transform: scale(0.94);
  background: var(--teal) !important;
  color: #ffffff;
}

.mic-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mi {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.mi.teal {
  color: var(--teal);
}

.section-link,
.section-text {
  margin: 4px 16px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.section-link {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
}

.section-link span:first-child {
  flex: 1;
}

.bit-list-card,
.memory-item {
  width: calc(100% - 32px);
  margin: 0 16px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: inherit;
  text-align: left;
}

.bits-review-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  border: 1px solid #c8ece6;
  border-radius: 18px;
  background: linear-gradient(135deg, #e7f8f5 0%, #ffffff 100%);
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0, 105, 92, 0.08);
  animation: cardIn 260ms ease both;
}

.bits-review-prompt div {
  min-width: 0;
}

.bits-review-prompt strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
}

.bits-review-prompt p {
  overflow: hidden;
  margin: 2px 0 0;
  color: #607d8b;
  font-size: 11px;
  line-height: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bits-review-prompt button {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
}

.bits-review-prompt button:nth-of-type(1) {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 137, 123, 0.24);
}

.bits-review-prompt button:nth-of-type(2) {
  background: #edf4f3;
  color: #607d8b;
}

.accent-strip {
  height: 5px;
}

.accent-strip.mint {
  background: #b2dfdb;
}

.bit-list-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
}

.bit-emoji {
  width: 34px;
  flex: 0 0 34px;
  font-size: 28px;
  line-height: 34px;
}

.bit-copy {
  min-width: 0;
  flex: 1;
}

.bit-copy strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.bit-copy p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.memory-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.memory-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e0f2f1;
  color: var(--teal);
  font-size: 13px;
}

.memory-copy {
  min-width: 0;
  flex: 1;
}

.memory-copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.memory-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: #546e7a;
  font-size: 13px;
  line-height: 18px;
}

.memory-body time {
  align-self: flex-start;
  margin-top: 2px;
  color: #b0bec5;
  font-size: 11px;
}

.wi-fab {
  position: absolute;
  z-index: 13;
  right: 24px;
  bottom: 84px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 32px;
  background: var(--cyan);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 14px rgba(0, 137, 123, 0.22);
  font-size: 34px;
  line-height: 1;
}

.bits-add-fab {
  right: 24px;
  bottom: 86px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent !important;
  color: transparent;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.bits-add-fab img {
  width: 72px;
  height: 72px;
  max-width: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-7px, -7px) scale(1.05);
}

.nudge-fab {
  width: 52px;
  height: 52px;
  right: 20px;
  bottom: 88px;
  background: var(--teal);
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.45);
}

.wi-tabbar {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--soft-line);
  background: #ffffff;
}

.tab-button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-style: normal;
  font-weight: 600;
}

.tab-button .tab-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.tab-button .tab-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.tab-button:nth-child(2) .tab-icon svg,
.tab-button:nth-child(3) .tab-icon svg {
  fill: currentColor;
  stroke: none;
}

.tab-button em {
  font-style: normal;
  font-size: 10.5px;
}

.tab-button.active {
  color: var(--teal);
}

.deck-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--deck);
}

.deck-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #ffffff;
}

.deck-header button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
}

.deck-header strong {
  flex: 1;
  text-align: center;
  font-size: 16px;
}

.deck-header span {
  min-width: 46px;
  color: rgba(255, 255, 255, 0.56);
  text-align: right;
  font-size: 13px;
}

.deck-stage {
  position: relative;
  flex: 1;
  margin: 10px 22px 12px;
  touch-action: pan-y;
}

.deck-card {
  position: absolute;
  inset: 0;
  border-left: 6px solid;
  border-radius: 28px;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
  touch-action: pan-y;
  will-change: transform, opacity;
  contain: layout paint;
  backface-visibility: hidden;
  user-select: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
}

.deck-card:not(.top-card) {
  pointer-events: none;
}

.deck-card.dragging {
  transition: none;
  cursor: grabbing;
}

.deck-card.fly-away {
  transform: translate3d(-530px, 16px, 0) rotate(-13deg) !important;
  opacity: 0;
}

.deck-card.fly-away-right {
  transform: translate3d(530px, 16px, 0) rotate(13deg) !important;
  opacity: 0;
}

.deck-card.share-ready {
  box-shadow: 0 18px 36px rgba(0, 137, 123, 0.45);
}

.stack-0 { transform: translateX(0) translateY(0) scale(1) rotate(0deg); z-index: 4; opacity: 1; }
.stack-1 { transform: translateX(18px) translateY(12px) scale(0.965) rotate(2.5deg); z-index: 3; opacity: 0.9; }
.stack-2 { transform: translateX(36px) translateY(23px) scale(0.93) rotate(5deg); z-index: 2; opacity: 0.7; }
.stack-3 { transform: translateX(50px) translateY(32px) scale(0.9) rotate(7deg); z-index: 1; opacity: 0.46; }

.card-glow {
  position: absolute;
  top: -80px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 110px;
  background: rgba(255, 255, 255, 0.3);
}

.deck-icon {
  font-size: 52px;
  margin-bottom: 18px;
}

.deck-card h2 {
  margin: 0 0 14px;
  color: #203039;
  font-size: 26px;
  line-height: 32px;
  font-weight: 900;
}

.deck-card p {
  margin: 0;
  color: rgba(32, 48, 57, 0.74);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.deck-card-accent {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  height: 5px;
  border-radius: 999px;
  opacity: 0.86;
}

.deck-footer {
  padding: 4px 28px 20px;
}

.deck-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.deck-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7ce7d4;
}

.deck-footer p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  font-size: 13px;
}

.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.3px;
}

.swipe-hint-dot {
  opacity: 0.5;
}

.share-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding-bottom: 28px;
  z-index: 20;
  animation: sheetLift 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.share-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
}

.share-bit-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.share-sheet-header div {
  flex: 1;
}

.share-sheet-header strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #263238;
}

.share-sheet-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #90a4ae;
}

.share-sheet-header > button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f5f7f6;
  color: #90a4ae;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.share-targets {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 4px;
  gap: 4px;
}

.share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 8px 6px;
  min-width: 52px;
  border-radius: 14px;
  transition: background 0.14s ease;
}

.share-target:active {
  background: #f5f7f6;
}

.share-target span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.share-target em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #546e7a;
  text-align: center;
  line-height: 1.2;
}

.deck-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.deck-empty strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.deck-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 20px;
}

.simple-header {
  display: flex;
  align-items: center;
  padding: 16px 16px 8px;
}

.simple-header h2 {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 16px 10px;
  scrollbar-width: none;
}

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

.filter-scroll button {
  flex: 0 0 auto;
  border: 1.5px solid #b2dfdb;
  border-radius: 20px;
  background: #ffffff;
  color: #546e7a;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
}

.filter-scroll button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.bucket-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 4px;
}

.bucket-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.bucket-label i {
  flex: 1;
  height: 1px;
  background: #cfd8dc;
}

.nudge-card {
  margin: 0 16px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 105, 92, 0.06);
  touch-action: pan-y;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nudge-dismiss {
  transform: translateX(-440px) !important;
  opacity: 0;
}

.nudge-top,
.nudge-actions,
.nudge-actions div {
  display: flex;
  align-items: center;
}

.nudge-top {
  justify-content: space-between;
  margin-bottom: 8px;
}

.nudge-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.nudge-due em {
  font-style: normal;
  font-weight: 900;
}

.nudge-icons {
  color: #b0bec5;
  letter-spacing: 4px;
}

.nudge-card p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.nudge-card p.done {
  color: #b0bec5;
  text-decoration: line-through;
}

.nudge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag-chip,
.source-chip {
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tag-health { background: #fce4ec; color: #c62828; }
.tag-personal { background: #ede7f6; color: #6a1b9a; }
.tag-work { background: #e3f2fd; color: #1565c0; }
.tag-home { background: #e8f5e9; color: #2e7d32; }
.tag-travel { background: #fff8e1; color: #e65100; }
.source-chip { background: #f1f8f6; color: #607d8b; text-transform: none; }

.nudge-actions {
  justify-content: space-between;
}

.nudge-actions div {
  gap: 6px;
}

.nudge-actions button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #e8f5e9;
  color: #43a047;
  font-size: 15px;
  font-weight: 800;
}

.nudge-actions .snooze {
  background: #fff3e0;
  color: #f57c00;
}

.nudge-actions .edit {
  background: #eceff1;
  color: #78909c;
}

.nudge-actions .comment {
  background: #e0f2f1;
  color: var(--teal);
}

.empty-nudges {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 60px 32px 0;
}

.empty-nudges div {
  font-size: 40px;
}

.empty-nudges strong {
  color: var(--ink);
  font-size: 16px;
}

.empty-nudges p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.vibe-composer,
.vibe-card {
  margin: 0 16px 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.vibe-composer {
  padding: 16px;
}

.vibe-composer > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.compose-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.self-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 18px;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.compose-row textarea {
  min-height: 52px;
  max-height: 120px;
  flex: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fafafa;
  resize: none;
  padding: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 21px;
}

.compose-row textarea:focus {
  border-color: var(--teal);
  background: #f1f8f6;
}

.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.compose-chips {
  display: flex;
  gap: 8px;
}

.compose-chips button {
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.vibe-button {
  border: 0;
  border-radius: 20px;
  background: var(--teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 137, 123, 0.35);
}

.vibe-card {
  overflow: hidden;
  margin-bottom: 12px;
}

.vibe-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
}

.vibe-card-head div:nth-child(2) {
  flex: 1;
}

.vibe-card-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.vibe-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #a5d6a7;
}

.vibe-card > p {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.vibe-tags span {
  border-radius: 12px;
  background: #e0f2f1;
  color: var(--teal-dark);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.vibe-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f4f3;
  padding: 10px 14px;
}

.chat-header {
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.chat-header div {
  min-width: 0;
  flex: 1;
}

.chat-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sms-mode-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 10px;
}

.sms-mode-row button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid #d7ece9;
  border-radius: 14px;
  background: #ffffff;
  color: #607d8b;
  padding: 7px 4px;
  font-size: 10.5px;
  font-weight: 800;
}

.sms-mode-row button.active {
  border-color: #b2dfdb;
  background: #e0f2f1;
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(0, 137, 123, 0.1);
}

.sms-mode-row svg,
.group-toggle svg,
.thread-composer svg,
.compose-send svg,
.chat-compose-fab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-category-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 16px 10px;
  scrollbar-width: none;
}

.chat-category-row::-webkit-scrollbar {
  display: none;
}

.chat-category-row button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7ece9;
  border-radius: 999px;
  background: #ffffff;
  color: #546e7a;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
}

.chat-category-row button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.chat-category-row b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.08);
  padding: 0 5px;
  font-size: 10px;
}

.chat-category-row button.active b {
  background: rgba(255, 255, 255, 0.24);
}

.compose-prediction svg,
.chat-meta > i svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.compose-prediction span {
  min-width: 0;
  flex: 1;
}

.compose-prediction strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 17px;
  font-weight: 800;
}

.compose-prediction em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  font-style: normal;
  font-weight: 700;
}

.chat-row {
  width: calc(100% - 32px);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 16px 9px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  padding: 12px;
  text-align: left;
  box-shadow: var(--shadow);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.chat-avatar svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-main {
  min-width: 0;
  flex: 1;
}

.chat-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
}

.chat-main strong em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf4f3;
  color: #607d8b;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-main p {
  overflow: hidden;
  margin: 3px 0 4px;
  color: #607d8b;
  font-size: 12.5px;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-main > i {
  color: #90a4ae;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
}

.chat-meta {
  min-width: 38px;
  display: grid;
  justify-items: end;
  gap: 5px;
  align-self: stretch;
}

.chat-meta time {
  color: #90a4ae;
  font-size: 10px;
  font-weight: 800;
}

.chat-meta b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 6px;
  font-size: 10px;
}

.chat-meta > i {
  color: #f9a825;
}

.chat-compose-fab {
  position: absolute;
  z-index: 13;
  right: 22px;
  bottom: 78px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 27px;
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 105, 92, 0.3);
}

.thread-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(245, 247, 246, 0.96);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.thread-header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: #ffffff;
  color: var(--teal);
  font-size: 28px;
  line-height: 24px;
}

.thread-header .chat-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 19px;
}

.thread-header div {
  min-width: 0;
  flex: 1;
}

.thread-header strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thread-header p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.thread-header > i {
  color: #f9a825;
}

.thread-header > i svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.thread-body {
  min-height: 314px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 10px;
}

.message-bubble {
  max-width: 82%;
  align-self: flex-start;
  border-radius: 18px 18px 18px 5px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px 7px;
  box-shadow: 0 1px 5px rgba(0, 105, 92, 0.08);
}

.message-bubble.outgoing {
  align-self: flex-end;
  border-radius: 18px 18px 5px 18px;
  background: var(--teal);
  color: #ffffff;
}

.message-bubble strong {
  display: block;
  margin-bottom: 3px;
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 900;
}

.message-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
}

.message-bubble time {
  display: block;
  margin-top: 4px;
  color: rgba(38, 50, 56, 0.45);
  font-size: 9.5px;
  font-weight: 800;
  text-align: right;
}

.message-bubble.outgoing time {
  color: rgba(255, 255, 255, 0.62);
}

.thread-composer {
  position: sticky;
  bottom: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 8px;
  border: 1px solid #d7ece9;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  padding: 7px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
}

.thread-composer button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  background: #e0f2f1;
  color: var(--teal);
  font-size: 21px;
  font-weight: 700;
}

.thread-composer button:last-child {
  background: var(--teal);
  color: #ffffff;
}

.thread-composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 2px;
  font-size: 14px;
}

.compose-sheet {
  position: absolute;
  z-index: 37;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86%;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  padding: 0 16px 24px;
  animation: sheetLift 230ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.compose-sheet header {
  display: flex;
  align-items: center;
  padding: 10px 0 12px;
}

.compose-sheet h3 {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.compose-sheet header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: var(--bg);
  color: #78909c;
  font-size: 22px;
}

.group-toggle {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7ece9;
  border-radius: 18px;
  background: #f7fbfa;
  color: var(--teal);
  padding: 12px;
  text-align: left;
}

.group-toggle.active {
  border-color: var(--teal);
  background: #e0f2f1;
}

.group-toggle svg {
  width: 24px;
  height: 24px;
}

.group-toggle span {
  min-width: 0;
  flex: 1;
}

.group-toggle strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.group-toggle em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  font-style: normal;
  font-weight: 700;
}

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

.compose-recipients button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3efed;
  border-radius: 16px;
  background: #ffffff;
  padding: 9px;
  text-align: left;
}

.compose-recipients button.selected {
  border-color: var(--teal);
  background: #f1fbf9;
  box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.08);
}

.compose-recipients span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.compose-recipients strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compose-message {
  margin-top: 2px;
}

.compose-message textarea {
  min-height: 86px;
  resize: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
}

.compose-prediction {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  border-radius: 16px;
  background: #f1fbf9;
  color: var(--teal);
  padding: 11px;
}

.compose-send {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 23px;
  background: var(--teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 137, 123, 0.28);
}

.response-badge {
  border-radius: 12px;
  background: #e0f2f1;
  color: #00695c;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.respondents {
  display: flex;
}

.respondents span {
  width: 26px;
  height: 26px;
  margin-left: -8px;
  border: 2px solid #ffffff;
  border-radius: 13px;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}

.respondents span:first-child {
  margin-left: 0;
}

.sheet-backdrop {
  position: absolute;
  z-index: 30;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.match-sheet {
  position: absolute;
  z-index: 31;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  padding-bottom: 28px;
  animation: sheetLift 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sheetLift {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  margin: 12px auto 4px;
}

.match-sheet header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 4px;
}

.matched-pill {
  border-radius: 20px;
  background: #e0f2f1;
  color: var(--teal);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.match-sheet header button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}

.match-sheet h3 {
  margin: 8px 20px 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.match-sheet > p {
  margin: 0 20px 12px;
  color: var(--muted);
  font-size: 13px;
}

.match-sheet blockquote {
  margin: 0 20px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: #546e7a;
  padding: 12px;
  font-size: 13px;
  line-height: 19px;
}

.match-list {
  max-height: 280px;
  overflow: auto;
}

.match-person {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--bg);
  background: transparent;
  padding: 13px 20px;
  text-align: left;
}

.match-person.selected {
  background: #f1fbf9;
}

.match-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 21px;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.match-person span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.match-person strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.match-person em {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.match-person i {
  border-radius: 12px;
  background: #e0f2f1;
  color: var(--teal-dark);
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.match-person b {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #e0e0e0;
  color: transparent;
  font-size: 13px;
}

.match-person.selected b {
  background: var(--teal);
  color: #ffffff;
}

.match-sheet footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.match-sheet footer span {
  color: #607d8b;
  font-size: 14px;
  font-weight: 600;
}

.match-sheet footer button {
  border: 0;
  border-radius: 22px;
  background: var(--teal);
  color: #ffffff;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 137, 123, 0.35);
}

.profile-backdrop {
  position: absolute;
  z-index: 34;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1px);
}

.profile-menu {
  position: absolute;
  z-index: 35;
  top: 144px;
  right: 28px;
  width: 248px;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: profilePop 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes profilePop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-menu header {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--soft-line);
  background: var(--bg);
  padding: 20px 16px;
}

.profile-menu header img {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  object-fit: cover;
  margin-bottom: 8px;
}

.profile-menu header strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.profile-menu header p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 3px 0 0;
  color: #43a047;
  font-size: 11px;
  font-weight: 600;
}

.profile-menu header p span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #43a047;
}

.profile-toggle-row,
.profile-item {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--bg);
  background: #ffffff;
  padding: 13px 16px;
  text-align: left;
}

.profile-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #546e7a;
}

.profile-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-icon.teal {
  color: var(--teal);
}

.profile-toggle-row > span:nth-child(2),
.profile-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.profile-toggle-row strong,
.profile-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.profile-toggle-row em,
.profile-item em {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  font-style: normal;
  font-weight: 500;
}

.profile-item.danger strong,
.profile-item.danger .profile-icon {
  color: #e53935;
}

.switch {
  position: relative;
  width: 42px;
  height: 25px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #e0e0e0;
}

.switch b {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease;
}

.switch.on {
  background: #b2dfdb;
}

.switch.on b {
  transform: translateX(17px);
  background: var(--teal);
}

.profile-confirm {
  padding: 16px;
}

.profile-confirm strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.profile-confirm p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-confirm button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-confirm button.danger {
  background: #e53935;
}

.profile-confirm button.secondary {
  background: var(--bg);
  color: #546e7a;
  margin-bottom: 0;
}

.secondary-sheet {
  position: absolute;
  z-index: 36;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78%;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  padding: 0 0 28px;
  animation: sheetLift 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.secondary-sheet header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

.secondary-sheet h3 {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.secondary-sheet header button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}

.integration-row,
.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--bg);
  padding: 13px 20px;
}

.integration-row > span,
.friend-row > span {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.integration-row div,
.friend-row div {
  flex: 1;
}

.integration-row strong,
.friend-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.integration-row p,
.friend-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.integration-row i {
  border-radius: 12px;
  background: #eceff1;
  color: #78909c;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.integration-row i.active {
  background: #e0f2f1;
  color: var(--teal-dark);
}

.onboarding-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.onboarding-content {
  height: 100%;
  overflow: auto;
  padding: 38px 22px 22px;
  scrollbar-width: none;
}

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

.onboarding-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.onboarding-progress span {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--soft-line);
}

.onboarding-progress span.active {
  background: var(--teal);
}

.onboarding-title {
  margin-bottom: 18px;
  animation: titleIn 400ms ease both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-title.center {
  text-align: center;
}

.onboarding-title h2,
.photo-picker h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 25px;
  line-height: 30px;
  font-weight: 800;
}

.onboarding-title p,
.photo-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.photo-picker {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
}

.photo-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  border: 3px solid var(--teal);
  border-radius: 70px;
  background: #e0f2f1;
  padding: 0;
  margin: 0 0 32px;
}

.photo-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.photo-avatar i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 18px;
  background: var(--teal);
  color: #ffffff;
}

.photo-avatar i svg,
.action-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onboarding-actions {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.onboarding-actions button,
.onboarding-bottom,
.skip-button {
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
}

.onboarding-actions .primary,
.onboarding-bottom.primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

.onboarding-actions .secondary {
  border: 1.5px solid #b2dfdb;
  background: #ffffff;
  color: var(--teal);
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.skip-button {
  margin-top: auto;
  background: transparent;
  color: var(--muted);
  padding: 16px 24px;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-grid.single {
  display: grid;
}

.onboard-tile,
.onboard-row,
.connect-row {
  border: 2px solid transparent;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.onboard-tile:active,
.onboard-row:active,
.connect-row:active {
  transform: scale(0.98);
}

.onboard-tile {
  width: calc(50% - 5px);
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px;
}

.onboard-tile.wide,
.option-grid.single .onboard-tile {
  width: 100%;
}

.onboard-tile.selected,
.onboard-row.selected,
.connect-row.connected {
  border-color: var(--teal);
  background: #f0faf8;
}

.onboard-tile > span,
.onboard-row > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.onboard-tile div,
.onboard-row div,
.connect-row div {
  min-width: 0;
  flex: 1;
}

.onboard-tile strong,
.onboard-row strong,
.connect-row strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.onboard-tile em,
.onboard-row em,
.connect-row em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
}

.onboard-tile b,
.onboard-row b {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.option-list,
.connect-list {
  display: grid;
  gap: 10px;
}

.onboard-row,
.connect-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 15px;
  padding: 10px 13px;
}

.connect-row > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 21px;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}

.connect-row b {
  border-radius: 12px;
  background: #e0f2f1;
  color: var(--teal-dark);
  padding: 5px 8px;
  font-size: 11px;
}

.sms-import-card {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #c8ece6;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1fbf9 0%, #ffffff 100%);
  padding: 13px;
  box-shadow: 0 2px 12px rgba(0, 105, 92, 0.08);
  animation: cardIn 260ms ease both;
}

.sms-import-card header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.sms-import-card header > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: #e0f2f1;
  color: var(--teal);
}

.sms-import-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sms-import-card header div {
  min-width: 0;
  flex: 1;
}

.sms-import-card header strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.sms-import-card header p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.sms-import-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8edea;
}

.sms-import-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal) 0%, var(--cyan) 100%);
  transform-origin: left;
  animation: smsImportFill 900ms ease-out both;
}

@keyframes smsImportFill {
  from { transform: scaleX(0.08); }
  to { transform: scaleX(1); }
}

.sms-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.sms-import-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #ffffff;
  color: #546e7a;
  padding: 8px 9px;
  font-size: 10.5px;
  font-weight: 850;
}

.sms-import-grid b {
  color: var(--teal-dark);
  font-size: 11px;
}

.default-sms-prompt {
  margin-top: 12px;
  border-top: 1px solid #e4f1ef;
  padding-top: 12px;
}

.default-sms-prompt strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.default-sms-prompt div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.default-sms-prompt button {
  border: 1px solid #c8ece6;
  border-radius: 14px;
  background: #ffffff;
  color: #546e7a;
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
}

.default-sms-prompt button.selected {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.connect-compact {
  padding: 24px 18px 14px;
}

.connect-compact .onboarding-progress {
  margin-bottom: 12px;
}

.connect-compact .onboarding-title {
  margin-bottom: 10px;
}

.connect-compact .onboarding-title h2 {
  font-size: 22px;
  line-height: 26px;
}

.connect-compact .onboarding-title p {
  font-size: 12px;
  line-height: 16px;
}

.connect-compact .connect-list {
  gap: 7px;
}

.connect-compact .connect-row {
  min-height: 47px;
  gap: 9px;
  border-width: 1.5px;
  border-radius: 13px;
  padding: 7px 9px;
}

.connect-compact .connect-row > span {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 17px;
  font-size: 11px;
}

.connect-compact .connect-row strong {
  font-size: 13px;
  line-height: 15px;
  margin-bottom: 0;
}

.connect-compact .connect-row em {
  font-size: 10.5px;
  line-height: 13px;
}

.connect-compact .connect-row b {
  padding: 4px 7px;
  font-size: 10px;
}

.connect-compact .sms-import-card {
  margin-top: 8px;
  border-radius: 15px;
  padding: 10px;
}

.connect-compact .sms-import-card header {
  gap: 8px;
  margin-bottom: 8px;
}

.connect-compact .sms-import-card header > span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 16px;
}

.connect-compact .sms-import-card svg {
  width: 17px;
  height: 17px;
}

.connect-compact .sms-import-card header strong {
  font-size: 12.5px;
}

.connect-compact .sms-import-card header p {
  font-size: 10.5px;
}

.connect-compact .sms-import-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.connect-compact .sms-import-grid span {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 6px 3px;
  font-size: 8.5px;
  text-align: center;
}

.connect-compact .sms-import-grid b {
  font-size: 10px;
}

.connect-compact .default-sms-prompt {
  margin-top: 8px;
  padding-top: 8px;
}

.connect-compact .default-sms-prompt strong {
  font-size: 11.5px;
  line-height: 15px;
}

.connect-compact .default-sms-prompt div {
  gap: 7px;
  margin-top: 7px;
}

.connect-compact .default-sms-prompt button {
  border-radius: 12px;
  padding: 8px;
  font-size: 11px;
}

.connect-compact .onboarding-bottom {
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

.connect-note {
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.onboarding-bottom {
  width: 100%;
  margin-top: 24px;
  padding: 15px 16px;
}

.onboarding-loading {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  background: var(--splash);
  padding: 32px;
}

.onboarding-loading .orb {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.12;
  animation: orbPulse 2400ms ease-in-out infinite;
}

.onboarding-loading .one { width: 300px; height: 300px; left: -80px; top: 30px; }
.onboarding-loading .two { width: 200px; height: 200px; right: -30px; bottom: 90px; animation-delay: 600ms; }
.onboarding-loading .three { width: 150px; height: 150px; left: 30px; bottom: 70px; animation-delay: 1200ms; }

@keyframes orbPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.1; }
  50% { transform: scale(1.2); opacity: 0.25; }
}

.onboarding-loading img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 40px;
  animation: splashLogo 500ms cubic-bezier(0.12, 0.78, 0.28, 1.1) both;
}

.loading-steps {
  position: relative;
  width: 100%;
  height: 116px;
  margin-bottom: 20px;
}

.loading-steps div {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #ffffff;
  opacity: 0;
  animation: loadingStep 900ms ease both;
}

.loading-steps span {
  font-size: 40px;
}

.loading-steps strong {
  font-size: 18px;
  text-align: center;
}

.loading-steps em {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-style: normal;
}

@keyframes loadingStep {
  0% { opacity: 0; transform: translateY(8px); }
  25%, 75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

.loading-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.loading-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  animation: loadingFill 4500ms linear both;
}

@keyframes loadingFill {
  from { width: 0; }
  to { width: 100%; }
}

.reward-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.reward-cards article {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: cardIn 360ms ease both;
}

.reward-cards article span {
  font-size: 28px;
}

.reward-cards article strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 3px;
}

.reward-cards article p {
  margin: 0;
  color: #607d8b;
  font-size: 13px;
}

@media (max-width: 940px) {
  .uxr-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .research-panel {
    max-height: none;
    order: 2;
  }

  .phone-stage {
    order: 1;
  }
}

@media (max-width: 440px) {
  .uxr-shell {
    padding: 10px;
  }

  .research-panel {
    border-radius: 20px;
  }
}
