.date-v2-content,
.date-v2-transition {
  margin: 12px 0;
  padding: 12px 16px;
  color: var(--date-v2-ink);
  border: 1px solid var(--date-v2-line);
  border-radius: 18px;
  background: var(--date-v2-glass);
  overflow-wrap: anywhere;
}
.date-v2-content-sceneCue {
  border: 0;
  background: transparent;
  color: var(--date-v2-muted);
}
.date-v2-content p,
.date-v2-transition p { margin: 0 0 8px; line-height: 1.55; color: inherit; }
.date-v2-transition > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.date-v2-transition button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  font: inherit;
  color: var(--date-v2-ink);
  background: var(--date-v2-glass);
  border: 1px solid var(--date-v2-line);
  border-radius: 14px;
}
.date-v2-transition button:focus-visible { outline: 2px solid var(--date-v2-ink); outline-offset: 3px; }
.date-v2-transition button:disabled { opacity: .5; }
.date-v2-turn-status { color: var(--date-v2-muted); font-size: 13px; }

.date-v2-view {
  --date-v2-ink: #f9f1f5;
  --date-v2-muted: rgba(249, 241, 245, .76);
  --date-v2-line: rgba(255, 235, 245, .34);
  --date-v2-glass: rgba(42, 28, 43, .56);
  --date-v2-glass-strong: rgba(246, 236, 247, .84);
  width: 100%;
  min-height: calc(var(--app-viewport-height, 100dvh) - 96px);
  margin: -36px -24px -74px;
  overflow: hidden;
  background: #1c1720;
}

.date-v2-root,
.date-v2-world,
.date-v2-selection-panel {
  min-height: calc(var(--date-v2-viewport-height, var(--visual-viewport-height, 100dvh)) - 96px);
}

.date-v2-root {
  width: 100%;
  color: var(--date-v2-ink);
  background: #1c1720;
}

.date-v2-world {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #211923;
}

.date-v2-background,
.date-v2-background-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.date-v2-background-picture {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  overflow: hidden;
  background: #302139;
}

.date-v2-background-picture.is-fallback {
  background: #302139;
}

.date-v2-background-picture.is-fallback::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(79, 48, 82, .72), rgba(28, 20, 34, .92));
}

.date-v2-background {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(.94);
}

.date-v2-background-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 8, 17, .58) 0%, rgba(20, 10, 24, .08) 33%, rgba(26, 15, 31, .18) 58%, rgba(24, 16, 29, .88) 100%),
    linear-gradient(90deg, rgba(15, 10, 18, .2), transparent 45%, rgba(17, 9, 22, .22));
  backdrop-filter: blur(1px);
}

.date-v2-world-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(100%, 1180px);
  min-height: inherit;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) max(14px, env(safe-area-inset-bottom));
}

.date-v2-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 2px 0 12px;
}

.date-v2-header-button,
.date-v2-end-button,
.date-v2-more-button,
.date-v2-send-button,
.date-v2-primary-button,
.date-v2-quiet-button,
.date-v2-more-sheet button,
.date-v2-resume-note button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--date-v2-line);
  border-radius: 999px;
  color: var(--date-v2-ink);
  background: rgba(42, 27, 45, .46);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.date-v2-header-button,
.date-v2-end-button {
  padding: 0 16px;
  white-space: nowrap;
}

.date-v2-end-button {
  border-color: rgba(255, 197, 219, .58);
  background: rgba(35, 20, 38, .38);
}

.date-v2-header-copy {
  min-width: 0;
  padding-top: 2px;
}

.date-v2-header-copy span,
.date-v2-status-kicker,
.date-v2-card-kicker {
  display: block;
  color: rgba(255, 221, 235, .84);
  font-size: 11px;
  letter-spacing: .08em;
}

.date-v2-header-copy h1,
.date-v2-status-screen h1,
.date-v2-paused-panel h1,
.date-v2-completed-panel h1 {
  margin: 2px 0 0;
  color: var(--date-v2-ink);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.date-v2-header-copy small {
  display: block;
  margin-top: 4px;
  color: var(--date-v2-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.date-v2-conversation {
  align-self: end;
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  max-height: 42vh;
  margin: 0 auto 16px;
  padding: 12px 0;
  overflow: auto;
  scrollbar-width: thin;
}

.date-v2-message {
  width: fit-content;
  max-width: min(86%, 560px);
  padding: 9px 14px 12px;
  border: 1px solid rgba(255, 236, 245, .42);
  border-radius: 18px 18px 18px 5px;
  color: #453649;
  background: var(--date-v2-glass-strong);
  box-shadow: 0 12px 32px rgba(17, 7, 21, .18);
  overflow-wrap: anywhere;
}

.date-v2-message-user {
  justify-self: end;
  border-radius: 18px 18px 5px 18px;
  color: #fff7fb;
  background: rgba(151, 91, 171, .82);
}

.date-v2-message-meta {
  margin-bottom: 3px;
  color: rgba(74, 51, 73, .72);
  font-size: 11px;
}

.date-v2-message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.date-v2-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 230, 243, .7);
  border-radius: 50%;
  object-fit: cover;
  color: #fff4fa;
  background: rgba(66, 40, 75, .72);
}

.date-v2-avatar-fallback {
  font-size: 16px;
}

.date-v2-message-user .date-v2-message-meta {
  color: rgba(255, 242, 250, .8);
}

.date-v2-message p {
  margin: 0;
  color: inherit;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
}

.date-v2-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 auto 12px;
}

.date-v2-suggestion {
  min-height: 44px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(255, 225, 241, .7);
  border-radius: 999px;
  color: #fff6fb;
  background: rgba(41, 26, 48, .58);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.date-v2-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 235, 246, .22);
  border-radius: 28px;
  background: rgba(35, 22, 41, .62);
  backdrop-filter: blur(18px);
}

.date-v2-composer textarea,
.date-v2-confirm-field textarea {
  width: 100%;
  min-height: 44px;
  max-height: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 238, 247, .24);
  border-radius: 20px;
  outline: 0;
  color: var(--date-v2-ink);
  background: rgba(255, 244, 250, .12);
  resize: vertical;
  overflow-wrap: anywhere;
}

.date-v2-composer textarea::placeholder,
.date-v2-confirm-field textarea::placeholder {
  color: rgba(255, 239, 247, .62);
}

.date-v2-more-button,
.date-v2-send-button {
  padding: 0 16px;
}

.date-v2-send-button,
.date-v2-primary-button {
  border-color: transparent;
  color: #321e39;
  background: linear-gradient(135deg, #f4c2dd, #c994ed);
  font-weight: 700;
}

.date-v2-more-sheet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(100%, 860px);
  margin: 8px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 235, 246, .28);
  border-radius: 18px;
  background: rgba(32, 19, 38, .8);
  backdrop-filter: blur(20px);
}

.date-v2-more-sheet button {
  padding: 0 14px;
}

.date-v2-selection-panel {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) max(24px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(26, 18, 31, .96), rgba(39, 24, 42, .97)),
    #261a2a;
}

.date-v2-selection-body {
  width: min(100%, 900px);
  margin: 0 auto;
  padding-top: clamp(28px, 8vh, 90px);
}

.date-v2-lead {
  max-width: 620px;
  margin: 0 auto 22px;
  color: var(--date-v2-muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  text-align: center;
}

.date-v2-scene-grid,
.date-v2-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.date-v2-intent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.date-v2-scene-card,
.date-v2-intent-card {
  min-height: 142px;
  padding: 20px;
  border: 1px solid rgba(255, 223, 240, .28);
  border-radius: 22px;
  color: var(--date-v2-ink);
  background: linear-gradient(145deg, rgba(255, 235, 245, .16), rgba(88, 45, 94, .25));
  text-align: left;
  cursor: pointer;
}

.date-v2-scene-card {
  display: grid;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
  align-items: center;
}

.date-v2-scene-thumbnail {
  display: block;
  width: 88px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 244, 250, .12);
}

.date-v2-scene-card-copy {
  display: block;
  min-width: 0;
}

.date-v2-scene-card strong,
.date-v2-intent-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.date-v2-scene-card small,
.date-v2-intent-card span {
  display: block;
  margin-top: 8px;
  color: var(--date-v2-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.date-v2-intent-card.is-selected,
.date-v2-scene-card:focus-visible,
.date-v2-intent-card:focus-visible {
  border-color: rgba(255, 206, 230, .9);
  background: linear-gradient(145deg, rgba(250, 192, 220, .34), rgba(132, 91, 170, .36));
}

.date-v2-wide-button {
  display: block;
  width: min(100%, 340px);
  margin: 24px auto 0;
}

.date-v2-resume-note {
  display: grid;
  gap: 5px;
  width: min(100%, 620px);
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 224, 239, .24);
  border-radius: 18px;
  background: rgba(255, 237, 246, .08);
}

.date-v2-resume-note span {
  color: var(--date-v2-muted);
  font-size: 13px;
}

.date-v2-resume-note button {
  justify-self: start;
  margin-top: 5px;
  padding: 0 14px;
}

.date-v2-status-screen,
.date-v2-paused-panel,
.date-v2-completed-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  width: min(100%, 620px);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 72px) clamp(20px, 6vw, 56px);
  text-align: center;
}

.date-v2-status-screen p,
.date-v2-paused-panel p,
.date-v2-completed-panel p {
  max-width: 560px;
  margin: 0;
  color: var(--date-v2-muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.date-v2-status-screen .date-v2-primary-button,
.date-v2-completed-panel .date-v2-primary-button {
  margin-top: 10px;
  padding: 0 22px;
}

.date-v2-paused-panel {
  min-height: 360px;
  margin-top: clamp(60px, 12vh, 120px);
  border: 1px solid rgba(255, 232, 244, .3);
  border-radius: 28px;
  background: rgba(31, 18, 37, .74);
  backdrop-filter: blur(18px);
}

.date-v2-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}

.date-v2-panel-actions button {
  padding: 0 17px;
}

.date-v2-confirm-field {
  display: grid;
  gap: 7px;
  width: min(100%, 500px);
  color: var(--date-v2-muted);
  text-align: left;
}

.date-v2-fiction-note {
  color: rgba(255, 221, 235, .7);
  font-size: 12px;
  line-height: 1.5;
}

.date-v2-completed-panel ul {
  width: min(100%, 500px);
  margin: 0;
  padding-left: 22px;
  color: var(--date-v2-muted);
  text-align: left;
  line-height: 1.7;
}

.date-v2-header-button:hover,
.date-v2-end-button:hover,
.date-v2-more-button:hover,
.date-v2-quiet-button:hover,
.date-v2-more-sheet button:hover,
.date-v2-resume-note button:hover,
.date-v2-scene-card:hover,
.date-v2-intent-card:hover,
.date-v2-suggestion:hover {
  border-color: rgba(255, 220, 237, .82);
  transform: translateY(-1px);
}

.date-v2-header-button:focus-visible,
.date-v2-end-button:focus-visible,
.date-v2-scene-card:focus-visible,
.date-v2-more-button:focus-visible,
.date-v2-send-button:focus-visible,
.date-v2-primary-button:focus-visible,
.date-v2-quiet-button:focus-visible,
.date-v2-more-sheet button:focus-visible,
.date-v2-resume-note button:focus-visible,
.date-v2-suggestion:focus-visible,
.date-v2-composer textarea:focus-visible,
.date-v2-confirm-field textarea:focus-visible {
  outline: 3px solid rgba(255, 220, 237, .9);
  outline-offset: 3px;
}

.date-v2-view button:disabled {
  cursor: not-allowed;
}

@media (min-width: 701px) {
  .date-v2-view {
    border-radius: 24px;
    box-shadow: 0 24px 72px rgba(23, 10, 29, .3);
  }
}

@media (max-width: 700px) {
  .date-v2-view {
    position: fixed;
    inset: var(--visual-viewport-top, 0px) 0 auto;
    z-index: 30;
    width: auto;
    max-width: none;
    height: var(--date-v2-viewport-height, var(--visual-viewport-height, 100dvh));
    min-height: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
  }

  .date-v2-root,
  .date-v2-world,
  .date-v2-selection-panel {
    min-height: var(--date-v2-viewport-height, var(--visual-viewport-height, 100dvh));
  }

  .date-v2-world-content {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .date-v2-header {
    gap: 8px;
  }

  .date-v2-header-button,
  .date-v2-end-button {
    padding: 0 11px;
    font-size: 12px;
  }

  .date-v2-composer {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 7px;
  }

  .date-v2-composer textarea {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .date-v2-more-button,
  .date-v2-send-button {
    padding: 0 12px;
    font-size: 13px;
  }

  .date-v2-selection-panel {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .date-v2-selection-body {
    padding-top: 32px;
  }

  .date-v2-scene-grid,
  .date-v2-intent-grid {
    grid-template-columns: 1fr;
  }

  .date-v2-scene-card,
  .date-v2-intent-card {
    min-height: 112px;
    padding: 16px;
  }

  .date-v2-scene-thumbnail {
    width: 72px;
    height: 92px;
  }

  .date-v2-conversation {
    max-height: 45vh;
    margin-bottom: 10px;
    overscroll-behavior-y: contain;
  }
}

@media (min-width: 480px) and (max-width: 700px) {
  .date-v2-world-content,
  .date-v2-selection-body {
    width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
  }

  .date-v2-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .date-v2-header-copy h1 {
    font-size: 19px;
  }

  .date-v2-header-copy small {
    font-size: 12px;
  }

  .date-v2-end-button {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .date-v2-scene-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .date-v2-scene-thumbnail {
    width: 64px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .date-v2-view *,
  .date-v2-view *::before,
  .date-v2-view *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
