:root {
  color-scheme: light;
  --paper: #f3efe7;
  --paper-strong: #fbf8f2;
  --paper-deep: #e7dfd0;
  --ink: #16212b;
  --muted: #61707d;
  --line: rgba(22, 33, 43, 0.14);
  --line-strong: rgba(22, 33, 43, 0.24);
  --accent: #0d9488;
  --accent-strong: #115e59;
  --accent-soft: rgba(13, 148, 136, 0.14);
  --sun: #c67b1a;
  --error: #b42318;
  --shadow: 0 24px 70px rgba(17, 29, 38, 0.14);
  --shadow-strong: 0 34px 100px rgba(17, 29, 38, 0.22);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 123, 26, 0.18), transparent 26rem),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.18), transparent 32rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--paper) 100%);
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.eyebrow,
.section-label,
.stream-badge {
  margin: 0;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  color: var(--accent-strong);
}

.section-copy,
.section-value,
.composer-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(251, 248, 242, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.chat-page-shell,
.auth-shell {
  width: min(1480px, calc(100vw - 1.5rem));
  margin: 0 auto;
  padding: 0.9rem 0 1.2rem;
}

.topbar,
.topbar-actions,
.topbar-brand,
.composer-actions,
.message-meta,
.stream-card-header,
.rolling-screen-header,
.turn-stream-item-meta,
.turn-fact-row,
.auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.topbar {
  padding: 1rem 1.15rem;
}

.topbar-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
}

.topbar-brand h1,
.auth-hero h1,
.auth-card h2,
.turn-modal-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.topbar-brand h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.topbar-actions {
  margin-left: auto;
  flex-wrap: wrap;
}

.account-chip,
.stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  white-space: nowrap;
}

.stream-badge {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.control {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.control-inline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

select,
textarea,
input,
.ghost-button,
.send-button,
.auth-mode-tab,
.session-button {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

select,
textarea,
input {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

select {
  min-width: 7rem;
  padding: 0.72rem 0.9rem;
}

textarea,
input {
  padding: 0.95rem 1rem;
}

textarea {
  resize: vertical;
  min-height: 7.5rem;
  line-height: 1.55;
}

.ghost-button,
.send-button,
.auth-mode-tab,
.session-button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.ghost-button,
.send-button {
  cursor: pointer;
}

.ghost-button:hover,
.send-button:hover,
.auth-mode-tab:hover,
.session-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.send-button {
  padding: 0.95rem 1.3rem;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(17, 94, 89, 0.2);
}

.ghost-button:disabled,
.send-button:disabled,
.session-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.error-banner {
  margin: 0.9rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.08);
  color: var(--error);
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  min-height: calc(100vh - 10rem);
}

.session-rail,
.chat-stage {
  padding: 1rem;
}

.rail-header,
.chat-stage-header {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.session-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.session-button {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  cursor: pointer;
}

.session-button-active {
  border-color: rgba(13, 148, 136, 0.34);
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.72);
}

.session-button-title,
.session-button-meta {
  display: block;
}

.session-button-title {
  color: var(--ink);
  font-weight: 600;
}

.session-button-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.messages {
  display: grid;
  gap: 1rem;
  min-height: 32rem;
  max-height: calc(100vh - 23rem);
  overflow: auto;
  padding: 1rem 0.2rem 0 0;
  align-content: start;
}

.messages[data-empty="true"] {
  place-items: center;
}

.message {
  max-width: min(100%, 56rem);
  padding: 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  animation: rise-in 220ms ease;
  box-shadow: 0 12px 28px rgba(17, 29, 38, 0.05);
}

.message-user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(13, 148, 136, 0.05));
}

.message-assistant {
  margin-right: auto;
}

.message-pending {
  border-style: dashed;
}

.message-meta {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.message-role {
  color: var(--accent-strong);
  text-transform: capitalize;
}

.message-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.6;
}

.empty-state {
  width: min(100%, 38rem);
  padding: 1.7rem;
  border-radius: 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 0.5rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.7rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.composer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.composer-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.composer-actions {
  margin-top: 0.9rem;
}

.turn-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 226, 184, 0.18), transparent 30rem),
    rgba(52, 35, 20, 0.18);
  backdrop-filter: blur(14px);
  z-index: 100;
}

.turn-modal[hidden] {
  display: none;
}

.turn-modal-dialog {
  width: min(70vw, 960px);
  height: 60vh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 30px;
  border: 1px solid rgba(255, 250, 241, 0.42);
  background:
    radial-gradient(circle at top left, rgba(255, 222, 169, 0.36), transparent 18rem),
    radial-gradient(circle at bottom right, rgba(242, 191, 123, 0.22), transparent 20rem),
    linear-gradient(180deg, rgba(251, 241, 225, 0.84) 0%, rgba(244, 228, 204, 0.76) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.turn-modal-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 0.8fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem 0.85rem;
  border-bottom: 1px solid rgba(22, 33, 43, 0.1);
}

.turn-modal-copy .eyebrow {
  color: var(--accent-strong);
}

.turn-modal-copy h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.turn-modal-copy .section-copy {
  margin-top: 0.35rem;
  color: rgba(22, 33, 43, 0.7);
}

.work-buddy-stage {
  position: relative;
  min-height: 138px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 242, 221, 0.14)),
    rgba(255, 248, 238, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.work-buddy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  animation: buddy-drift 3.2s ease-in-out infinite;
}

.work-buddy-face {
  position: absolute;
  inset: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f8d9a8, var(--sun));
  box-shadow:
    inset 0 -8px 16px rgba(112, 63, 8, 0.22),
    0 12px 26px rgba(198, 123, 26, 0.35);
  animation: buddy-bob 1.4s ease-in-out infinite;
}

.work-buddy-eye {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #243341;
}

.work-buddy-mouth {
  position: absolute;
  bottom: 26px;
  width: 18px;
  height: 10px;
  border-bottom: 3px solid #243341;
  border-radius: 0 0 18px 18px;
}

.work-buddy-hand {
  position: absolute;
  top: 56px;
  width: 24px;
  height: 8px;
  border-radius: 999px;
  background: rgba(198, 123, 26, 0.88);
  box-shadow: 0 4px 10px rgba(112, 63, 8, 0.18);
}

.work-buddy-hand-left {
  left: 2px;
  transform-origin: right center;
  animation: buddy-wave-left 1.6s ease-in-out infinite;
}

.work-buddy-hand-right {
  right: 2px;
  transform-origin: left center;
  animation: buddy-wave-right 1.1s ease-in-out infinite;
}

.work-buddy-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 94, 89, 0.16);
}

.work-buddy-orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff4d8;
  box-shadow: 0 0 18px rgba(255, 208, 133, 0.8);
}

.work-buddy-orbit-a {
  animation: orbit-spin 4.8s linear infinite;
}

.work-buddy-orbit-b {
  inset: 10px;
  animation: orbit-spin 3.1s linear infinite reverse;
}

.work-buddy-bubble {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bubble-float 2.2s ease-in-out infinite;
}

.work-buddy-dots {
  position: absolute;
  bottom: 18px;
  right: 24px;
  display: inline-flex;
  gap: 0.4rem;
}

.work-buddy-dots span,
.work-buddy-spark {
  display: block;
  border-radius: 999px;
  background: rgba(255, 238, 204, 0.92);
}

.work-buddy-dots span {
  width: 9px;
  height: 9px;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.work-buddy-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.work-buddy-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.work-buddy-card {
  position: absolute;
  width: 70px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 244, 228, 0.36));
  box-shadow: 0 14px 30px rgba(112, 63, 8, 0.12);
}

.work-buddy-card-a {
  left: 10%;
  top: 18%;
  animation: card-float-a 4.4s ease-in-out infinite;
}

.work-buddy-card-b {
  right: 13%;
  bottom: 20%;
  animation: card-float-b 4.8s ease-in-out infinite;
}

.work-buddy-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 20px rgba(255, 210, 143, 0.7);
}

.work-buddy-spark-a {
  left: 18%;
  bottom: 18%;
  animation: spark-drift 3s ease-in-out infinite;
}

.work-buddy-spark-b {
  right: 26%;
  top: 22%;
  width: 7px;
  height: 7px;
  animation: spark-drift 2.4s ease-in-out infinite reverse;
}

.work-buddy-spark-c {
  left: 32%;
  top: 18%;
  width: 6px;
  height: 6px;
  animation: spark-drift 2.8s ease-in-out infinite;
}

.turn-live-panel,
.turn-live-feed {
  display: grid;
  min-height: 0;
}

.turn-live-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem 1.05rem 1rem;
}

.turn-live-header,
.turn-stream-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.turn-live-header {
  flex-wrap: wrap;
}

.turn-live-snapshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.turn-snapshot,
.turn-live-feed {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 245, 231, 0.26)),
    rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.turn-snapshot {
  padding: 0.85rem 0.9rem;
}

.turn-snapshot-label,
.turn-stream-kind {
  margin: 0;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.turn-snapshot-text {
  margin: 0.48rem 0 0;
  color: rgba(22, 33, 43, 0.86);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.turn-live-feed {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.turn-live-marquee {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem 0.6rem;
  border-bottom: 1px solid rgba(22, 33, 43, 0.08);
}

.turn-live-marquee span {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(22, 33, 43, 0.64);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pill-glow 2.2s ease-in-out infinite;
}

.turn-live-marquee span:nth-child(2) {
  animation-delay: 0.15s;
}

.turn-live-marquee span:nth-child(3) {
  animation-delay: 0.3s;
}

.turn-live-marquee span:nth-child(4) {
  animation-delay: 0.45s;
}

.turn-stream {
  display: grid;
  gap: 0.65rem;
  overflow: auto;
  padding: 0.8rem 0.9rem 0.9rem;
  align-content: start;
}

.turn-stream-item {
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 246, 233, 0.18)),
    rgba(255, 255, 255, 0.14);
  animation: rise-in 180ms ease;
}

.turn-stream-item[data-tone="success"] {
  border-color: rgba(17, 94, 89, 0.22);
}

.turn-stream-item[data-tone="error"] {
  border-color: rgba(180, 35, 24, 0.26);
}

.turn-stream-item-meta {
  color: rgba(22, 33, 43, 0.58);
  font-size: 0.82rem;
}

.turn-stream-detail {
  margin: 0.45rem 0 0;
  color: rgba(22, 33, 43, 0.84);
  line-height: 1.5;
}

.turn-facts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(22, 33, 43, 0.08);
}

.turn-fact-row {
  align-items: start;
  gap: 0.6rem;
}

.turn-fact-label {
  color: rgba(17, 94, 89, 0.85);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turn-fact-value {
  color: rgba(22, 33, 43, 0.72);
  text-align: right;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 470px);
  gap: 1.2rem;
  align-items: center;
  min-height: 100vh;
}

.auth-hero {
  padding: 2rem;
}

.auth-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.auth-copy {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-hero-panel {
  width: min(100%, 32rem);
  margin-top: 1.6rem;
  padding: 1.15rem;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.auth-feature-list {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.6;
}

.auth-card {
  padding: 1.2rem;
}

.auth-card-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.auth-card h2 {
  font-size: 2.3rem;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.auth-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.46);
  text-decoration: none;
}

.auth-mode-tab[data-active="true"] {
  border-color: rgba(13, 148, 136, 0.38);
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-strong);
}

.auth-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.2rem;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes buddy-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes buddy-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-3deg);
  }

  50% {
    transform: translate(-48%, -53%) rotate(3deg);
  }
}

@keyframes buddy-wave-left {
  0%,
  100% {
    transform: rotate(18deg);
  }

  50% {
    transform: rotate(-10deg);
  }
}

@keyframes buddy-wave-right {
  0%,
  100% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(18deg);
  }
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes dot-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes card-float-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(-8deg);
  }

  50% {
    transform: translate(12px, -10px) rotate(-2deg);
  }
}

@keyframes card-float-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(10deg);
  }

  50% {
    transform: translate(-10px, 8px) rotate(4deg);
  }
}

@keyframes spark-drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-8px) scale(1.2);
    opacity: 1;
  }
}

@keyframes pill-glow {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.58);
    transform: translateY(0);
  }

  50% {
    background: rgba(255, 244, 222, 0.88);
    transform: translateY(-2px);
  }
}

@media (max-width: 1120px) {
  .chat-layout,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    padding-bottom: 0;
  }

  .turn-modal-dialog {
    width: min(78vw, 960px);
  }

  .turn-modal-hero,
  .turn-live-snapshots {
    grid-template-columns: 1fr;
  }

  .work-buddy-stage {
    min-height: 126px;
  }
}

@media (max-width: 760px) {
  .chat-page-shell,
  .auth-shell {
    width: min(100vw - 0.9rem, 100%);
    padding-top: 0.45rem;
  }

  .panel {
    border-radius: 22px;
  }

  .topbar,
  .topbar-actions,
  .composer-actions,
  .control-inline,
  .turn-live-header {
    flex-direction: column;
    align-items: stretch;
  }

  .turn-modal-hero {
    grid-template-columns: 1fr;
  }

  .messages {
    max-height: none;
    min-height: 24rem;
  }

  .turn-modal {
    padding: 0.45rem;
  }

  .turn-modal-dialog {
    width: 90vw;
    height: 60vh;
    border-radius: 24px;
  }

  .turn-modal-hero {
    padding: 0.8rem 0.85rem 0.7rem;
  }

  .turn-live-panel {
    padding: 0.75rem 0.85rem 0.85rem;
  }

  .work-buddy-stage {
    min-height: 118px;
  }

  .work-buddy {
    width: 104px;
    height: 104px;
  }

  .work-buddy-bubble {
    top: 14px;
    right: 14px;
  }

  .turn-live-marquee,
  .turn-stream {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .turn-fact-value {
    text-align: left;
  }
}
