@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap");

:root {
  --bg-app: #212121;
  --bg-sidebar: #171717;
  --bg-sidebar-hover: #252525;
  --bg-surface: #2a2a2a;
  --bg-surface-2: #303030;
  --bg-soft: #262626;
  --bg-soft-2: #1f1f1f;
  --bg-chat-user: #303030;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-main: #ececec;
  --text-soft: #b6b6b6;
  --text-dim: #8d8d8d;
  --accent: #10a37f;
  --accent-strong: #19c38f;
  --danger: #ef6666;
  --danger-bg: rgba(239, 102, 102, 0.1);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.2);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 260px;
  --chat-width: 860px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-app);
}

body {
  color: var(--text-main);
  font: 15px/1.55 "Noto Sans KR", "Manrope", sans-serif;
}

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

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

button {
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: var(--bg-app);
}

.sidebar {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
}

.sidebar-top,
.sidebar-footer {
  padding: 14px 12px;
}

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

.brand-row {
  margin-bottom: 14px;
}

.brand-link {
  justify-content: flex-start;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0c5b46, #10a37f);
  color: #fff;
  font: 700 16px/1 "Manrope", sans-serif;
}

.brand-copy h1,
.brand-copy p {
  margin: 0;
}

.brand-copy h1 {
  font: 700 18px/1.2 "Manrope", sans-serif;
}

.brand-label {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-credit {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
}

.sidebar-primary-btn,
.sidebar-btn,
.top-btn,
.quick-btn,
.send-btn,
.icon-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.sidebar-primary-btn:hover,
.sidebar-btn:hover,
.top-btn:hover,
.quick-btn:hover,
.send-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.sidebar-primary-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
}

.sidebar-primary-btn:hover {
  background: var(--bg-surface-2);
  border-color: var(--line-strong);
}

.sidebar-utility-row,
.footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-btn,
.top-btn {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-soft);
}

.sidebar-btn:hover,
.top-btn:hover,
.icon-btn:hover {
  background: var(--bg-sidebar-hover);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.top-btn.danger {
  color: #f4bcbc;
  border-color: rgba(239, 102, 102, 0.18);
}

.top-btn.danger:hover {
  background: var(--danger-bg);
  border-color: rgba(239, 102, 102, 0.28);
  color: #ffd8d8;
}

.sidebar-search {
  display: block;
  margin-top: 10px;
}

.sidebar-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #222;
  padding: 0 14px;
  outline: none;
}

.sidebar-search input:focus,
.composer textarea:focus,
.modal-form input:focus,
.survey-field input:focus,
.survey-field select:focus,
.survey-field textarea:focus,
.review-feedback textarea:focus {
  border-color: rgba(16, 163, 127, 0.66);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.12);
}

.sidebar-scroll {
  overflow: auto;
  padding: 0 8px 8px;
}

.sidebar-block {
  display: grid;
  gap: 10px;
}

.chat-list-panel {
  padding: 4px 0 0;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.block-head.subtle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tiny-badge {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  text-align: center;
}

.chat-tree,
.tree-group,
.folder-items {
  display: grid;
  gap: 6px;
}

.tree-label {
  padding: 8px 10px 4px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.folder-card {
  background: transparent;
  border-radius: var(--radius-sm);
}

.folder-head,
.chat-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
}

.folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.folder-head:hover,
.chat-item:hover {
  background: var(--bg-sidebar-hover);
}

.folder-head strong,
.chat-item strong,
.chat-item span {
  display: block;
}

.folder-head strong,
.chat-item strong {
  font-weight: 600;
  font-size: 14px;
}

.folder-head span,
.chat-item span {
  color: var(--text-dim);
  font-size: 12px;
}

.folder-card.collapsed .folder-items {
  display: none;
}

.chat-item.active {
  background: #2c2c2c;
  border-color: var(--line);
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.footer-badges {
  display: grid;
  gap: 8px;
}

.footer-badge {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft-2);
  color: var(--text-soft);
  font-size: 12px;
}

.footer-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #64748b;
}

.footer-badge.loading::before {
  background: #f59e0b;
}

.footer-badge.ok::before {
  background: #22c55e;
}

.footer-badge.error::before {
  background: #ef4444;
}

.footer-badge.subtle::before {
  background: var(--accent);
}

.workspace {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg-app);
}

.workspace-header {
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-meta,
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.model-pill {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-main);
  font: 600 14px/1 "Manrope", sans-serif;
}

.model-pill:hover {
  background: var(--bg-soft);
}

.auth-pill {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
}

.oauth-providers {
  display: grid;
  gap: 8px;
}

.oauth-btn {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.oauth-btn:hover {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.oauth-hint {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.oauth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 70px);
  height: 1px;
  background: var(--line);
}

.oauth-divider::before {
  left: 0;
}

.oauth-divider::after {
  right: 0;
}

.conversation-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.conversation-head {
  width: min(var(--chat-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 0;
}

.conversation-head h2 {
  margin: 0 0 6px;
  font: 700 18px/1.25 "Manrope", sans-serif;
}

.workspace-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
}

.welcome-panel,
.chat-log {
  width: min(var(--chat-width), calc(100% - 32px));
  margin: 0 auto;
}

.welcome-panel {
  align-self: center;
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
  padding: 40px 0 12px;
}

.welcome-copy h3,
.welcome-copy p,
.welcome-copy .welcome-kicker {
  margin: 0;
}

.welcome-kicker {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-copy h3 {
  margin-top: 10px;
  font: 700 clamp(32px, 5vw, 48px)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.welcome-copy p {
  max-width: 620px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 16px;
}

.welcome-chips,
.toolbar-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-btn {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-soft);
}

.quick-btn:hover {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.quick-btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.chat-log {
  min-height: 0;
  overflow: auto;
  padding: 24px 0 18px;
}

.message-row {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.message-row.user {
  justify-items: end;
}

.message-row.assistant {
  justify-items: start;
}

.message-card {
  width: 100%;
  max-width: var(--chat-width);
  display: grid;
  gap: 8px;
}

.message-row.user .message-card {
  width: min(78%, 760px);
  padding: 14px 18px;
  border-radius: 24px;
  background: var(--bg-chat-user);
}

.message-role {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.72;
}

.message-row.assistant .message-text {
  font-size: 16px;
}

.message-meta {
  color: var(--text-dim);
  font-size: 12px;
}

.evidence-panel,
.warning-panel {
  width: 100%;
  max-width: var(--chat-width);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft-2);
  padding: 14px;
}

.evidence-panel h4,
.warning-panel h4 {
  margin: 0 0 10px;
  color: var(--text-soft);
  font: 700 12px/1 "Manrope", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evidence-list,
.warning-list {
  display: grid;
  gap: 10px;
}

.evidence-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.evidence-item strong,
.evidence-item span,
.evidence-item p,
.evidence-item div {
  display: block;
  margin: 0;
}

.evidence-item strong {
  margin-bottom: 4px;
}

.evidence-url {
  margin-bottom: 8px;
  color: #8de0ca;
  font-size: 12px;
  word-break: break-all;
}

.evidence-item p {
  color: var(--text-soft);
  font-size: 14px;
}

.evidence-snippet {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

.warning-item {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(239, 102, 102, 0.1);
  border: 1px solid rgba(239, 102, 102, 0.2);
  color: #ffd6d6;
}

.composer-shell {
  position: sticky;
  bottom: 0;
  z-index: 3;
  width: min(calc(var(--chat-width) + 32px), 100%);
  margin: 0 auto;
  padding: 12px 16px 18px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(33, 33, 33, 0) 0%, rgba(33, 33, 33, 0.92) 20%, rgba(33, 33, 33, 1) 100%);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.composer {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.composer textarea {
  width: 100%;
  min-height: 24px;
  max-height: 220px;
  resize: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 2px;
  outline: none;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.composer-hint {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 12px;
}

.send-btn {
  min-width: 96px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--accent);
  border-color: transparent;
  color: white;
}

.send-btn:hover {
  background: var(--accent-strong);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--text-main);
}

.mobile-only {
  display: none;
}

.empty-state {
  padding: 14px 12px;
  color: var(--text-dim);
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}

.modal {
  border: 0;
  padding: 0;
  width: min(420px, calc(100vw - 28px));
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.modal-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #1f1f1f;
  color: var(--text-main);
}

.modal-form h2,
.modal-form p {
  margin: 0;
}

.modal-form p {
  color: var(--text-soft);
}

.modal-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #111;
  outline: none;
}

.modal-form menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
}

.survey-shell {
  min-height: 100vh;
  padding: 28px 18px 40px;
  display: grid;
  gap: 18px;
  background: var(--bg-app);
}

.survey-hero,
.survey-card {
  width: min(980px, 100%);
  margin: 0 auto;
}

.survey-hero {
  display: grid;
  gap: 10px;
}

.survey-kicker {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.survey-hero h1 {
  margin: 0;
  font: 700 clamp(32px, 4vw, 48px)/1.08 "Manrope", sans-serif;
}

.survey-description {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
}

.survey-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.survey-chip {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft-2);
  color: var(--text-soft);
  font-size: 13px;
}

.survey-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: #1b1b1b;
  box-shadow: var(--shadow-lg);
}

.survey-form {
  display: grid;
  gap: 16px;
}

.survey-grid {
  display: grid;
  gap: 16px;
}

.survey-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.survey-field {
  display: grid;
  gap: 8px;
}

.survey-field span {
  font-weight: 600;
}

.survey-field input,
.survey-field select,
.survey-field textarea,
.review-feedback textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #111;
  padding: 12px 14px;
  outline: none;
}

.survey-field textarea,
.review-feedback textarea {
  resize: vertical;
}

.survey-hint {
  color: var(--text-dim);
  font-size: 12px;
}

.survey-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
}

.survey-check input {
  margin-top: 2px;
}

.survey-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.survey-status {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.survey-status.loading {
  color: #ffe2ab;
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.survey-status.ok {
  color: #c2f6e7;
  border-color: rgba(16, 163, 127, 0.32);
  background: rgba(16, 163, 127, 0.08);
}

.survey-status.error {
  color: #ffd6d6;
  border-color: rgba(239, 102, 102, 0.28);
  background: rgba(239, 102, 102, 0.12);
}

.review-stack {
  display: grid;
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft-2);
}

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

.review-card-head h2,
.review-card-head p {
  margin: 0;
}

.review-card-head h2 {
  font: 700 22px/1.2 "Manrope", sans-serif;
}

.review-card-head p {
  color: var(--text-soft);
  margin-top: 6px;
}

.review-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-badge {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}

.review-problem {
  display: grid;
  gap: 12px;
}

.review-block {
  display: grid;
  gap: 6px;
}

.review-block-label {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-block-body {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  white-space: pre-wrap;
  word-break: break-word;
}

.review-history {
  display: grid;
  gap: 8px;
}

.review-history-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #111;
  border: 1px solid var(--line);
}

.review-history-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-vote-btn {
  min-width: 136px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.review-vote-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.review-vote-btn.yes:hover {
  background: rgba(16, 163, 127, 0.14);
}

.review-vote-btn.no:hover {
  background: rgba(239, 102, 102, 0.14);
}

.review-secondary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.review-secondary-card h3,
.review-secondary-card p {
  margin: 0;
}

.review-secondary-card p {
  color: var(--text-soft);
}

.review-feedback {
  display: grid;
  gap: 8px;
}

.review-feedback label {
  color: var(--text-soft);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .workspace-header {
    padding-inline: 16px;
  }

  .welcome-panel,
  .chat-log,
  .conversation-head {
    width: min(var(--chat-width), calc(100% - 24px));
  }

  .composer-shell {
    width: min(calc(var(--chat-width) + 24px), 100%);
    padding-inline: 12px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 20;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-only {
    display: inline-grid;
  }

  .workspace-header,
  .composer-toolbar,
  .composer-actions,
  .survey-actions,
  .review-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-actions {
    justify-content: flex-start;
  }

  .survey-grid.two {
    grid-template-columns: 1fr;
  }

  .message-row.user .message-card {
    width: min(92%, 760px);
  }
}

@media (max-width: 640px) {
  .welcome-copy h3 {
    font-size: 34px;
  }

  .survey-shell {
    padding-inline: 12px;
  }

  .survey-card,
  .review-card,
  .review-secondary-card {
    padding: 16px;
  }

  .sidebar-utility-row,
  .footer-actions {
    grid-template-columns: 1fr;
  }
}
