:root {
  --bg: #f4efe7;
  --bg-deep: #dfd3c2;
  --panel: rgba(255, 250, 244, 0.88);
  --panel-strong: rgba(255, 248, 238, 0.96);
  --line: rgba(76, 56, 36, 0.14);
  --ink: #2d241d;
  --muted: #746353;
  --accent: #b55d3d;
  --accent-soft: #e9b69d;
  --teal: #1d6e6a;
  --gold: #c69232;
  --shadow: 0 24px 80px rgba(76, 56, 36, 0.14);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --chat-block-padding: 18px 20px;
  --chat-block-radius: 24px;
  --hero-soft-radius: 34px;
  --input-soft-radius: 20px;
  --shadow-soft: 0 14px 34px rgba(76, 56, 36, 0.08);
  --shadow-strong: 0 28px 80px rgba(76, 56, 36, 0.16);
  --focus-ring: 0 0 0 4px rgba(181, 93, 61, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(135deg, #f8f2e8 0%, #efe2d1 48%, #e4d8ca 100%);
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: rgba(181, 93, 61, 0.18);
}

button,
input,
textarea {
  font: inherit;
}

button,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-left {
  top: -10rem;
  left: -8rem;
  background: rgba(182, 96, 61, 0.22);
}

.ambient-right {
  right: -10rem;
  bottom: -12rem;
  background: rgba(29, 110, 106, 0.18);
}

.page-shell {
  width: min(1380px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
  position: relative;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.95), rgba(255, 245, 235, 0.74)),
    linear-gradient(120deg, rgba(181, 93, 61, 0.12), rgba(29, 110, 106, 0.06));
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 28px 30px;
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(115deg, transparent 0%, rgba(29, 110, 106, 0.06) 44%, transparent 74%);
  pointer-events: none;
}

.eyebrow,
.panel-kicker,
.metric-label,
.composer-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: end;
}

.hero h1,
.panel-header h2 {
  font-family: "Manrope", sans-serif;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 58ch;
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 16px 0 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-metric {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(76, 56, 36, 0.08);
  background: rgba(255, 250, 244, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.hero-metric strong {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.hero-metric-label,
.report-meta-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-note {
  background: rgba(255, 248, 240, 0.82);
  border: 1px solid rgba(181, 93, 61, 0.18);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-note strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-guide {
  margin-top: 24px;
  background: rgba(255, 249, 242, 0.78);
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-guide .panel-header {
  margin-bottom: 8px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 24px;
  align-content: start;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.56), transparent);
  pointer-events: none;
}

.chat-panel {
  padding: 24px;
  display: grid;
  gap: 20px;
  min-height: 78vh;
}

.report-panel {
  padding: 22px;
  border-radius: var(--hero-soft-radius);
  position: sticky;
  top: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.report-panel > .panel-header,
.chat-panel > .panel-header {
  padding: 16px 18px;
  border-radius: var(--input-soft-radius);
  border: 1px solid rgba(76, 56, 36, 0.08);
  background: rgba(255, 249, 242, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.panel-header.compact {
  align-items: center;
}

.panel-header h2 {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.status-chip.idle {
  background: rgba(29, 110, 106, 0.08);
  border-color: rgba(29, 110, 106, 0.14);
  color: var(--teal);
}

.status-chip.working {
  background: rgba(198, 146, 50, 0.12);
  border-color: rgba(198, 146, 50, 0.24);
  color: #8a641f;
}

.status-chip.error {
  background: rgba(181, 93, 61, 0.12);
  border-color: rgba(181, 93, 61, 0.22);
  color: var(--accent);
}

.status-chip.completed {
  background: rgba(29, 110, 106, 0.14);
  border-color: rgba(29, 110, 106, 0.24);
  color: var(--teal);
}

.progress-panel {
  background: rgba(255, 248, 240, 0.88);
  border: 1px solid rgba(181, 93, 61, 0.12);
  border-radius: var(--input-soft-radius);
  padding: var(--chat-block-padding);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.progress-head strong,
.progress-head span {
  font-size: 0.98rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(116, 99, 83, 0.14);
  overflow: hidden;
  position: relative;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 18px rgba(29, 110, 106, 0.24);
}

.progress-hint {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(76, 56, 36, 0.1);
  background: rgba(255, 251, 246, 0.84);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.progress-step.is-active {
  border-color: rgba(29, 110, 106, 0.22);
  background: rgba(29, 110, 106, 0.12);
  color: var(--teal);
  transform: translateY(-1px);
}

.progress-step.is-complete {
  border-color: rgba(198, 146, 50, 0.24);
  background: rgba(198, 146, 50, 0.14);
  color: #8a641f;
}

.questionnaire-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
  border-radius: var(--chat-block-radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(244, 237, 227, 0.92)),
    linear-gradient(120deg, rgba(29, 110, 106, 0.05), rgba(181, 93, 61, 0.06));
}

.question-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.question-card {
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.question-prompt {
  display: block;
  font-size: 1.08rem;
  line-height: 1.8;
}

.question-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.question-option {
  border: 1px solid rgba(76, 56, 36, 0.12);
  border-radius: 20px;
  background: rgba(255, 248, 240, 0.88);
  color: var(--ink);
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.7;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.question-option:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 93, 61, 0.28);
  box-shadow: 0 10px 20px rgba(76, 56, 36, 0.08);
}

.question-option:focus-visible {
  outline: none;
  border-color: rgba(181, 93, 61, 0.42);
  box-shadow: var(--focus-ring), 0 10px 20px rgba(76, 56, 36, 0.08);
}

.crisis-banner {
  background: rgba(122, 23, 23, 0.94);
  color: #fff6f2;
  border-radius: var(--chat-block-radius);
  padding: 18px 20px;
  border: 1px solid rgba(255, 214, 204, 0.18);
  box-shadow: 0 18px 40px rgba(87, 18, 18, 0.2);
  animation: rise 0.35s ease both;
  position: relative;
  overflow: hidden;
}

.crisis-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #ffd7c7, #ffc09e);
}

.crisis-banner strong {
  display: block;
  font-family: "Manrope", sans-serif;
  margin-bottom: 8px;
}

.crisis-banner p {
  margin: 0;
  line-height: 1.7;
}

.chat-messages {
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  display: grid;
  gap: 14px;
  align-content: start;
}

.chat-messages::-webkit-scrollbar {
  width: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(76, 56, 36, 0.15);
  border-radius: 999px;
}

.message {
  padding: var(--chat-block-padding);
  border-radius: var(--chat-block-radius);
  animation: rise 0.45s ease both;
  box-shadow: var(--shadow-soft);
}

.message-assistant {
  width: 100%;
  max-width: 100%;
  justify-self: start;
  border-radius: var(--input-soft-radius);
  background: rgba(255, 247, 239, 0.95);
  border: 1px solid rgba(181, 93, 61, 0.14);
  box-shadow: 0 14px 34px rgba(181, 93, 61, 0.08);
}

.message-user {
  width: min(100%, 92%);
  justify-self: end;
  background: rgba(34, 102, 99, 0.92);
  color: #f7fbfb;
  border: 1px solid rgba(29, 110, 106, 0.18);
  box-shadow: 0 18px 34px rgba(20, 78, 76, 0.16);
}

.message-error {
  border-color: rgba(181, 93, 61, 0.38);
}

.message-meta {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  opacity: 0.8;
}

.message-meta span:last-child {
  margin-left: auto;
}

.message-body {
  font-size: 1.04rem;
  line-height: 1.95;
  white-space: pre-wrap;
  text-align: left;
}

.composer {
  margin-top: auto;
  background: var(--panel-strong);
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: var(--chat-block-radius);
  padding: var(--chat-block-padding);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.composer-label {
  display: block;
  margin-bottom: 12px;
}

.composer-input-wrap {
  position: relative;
  isolation: isolate;
}

.composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--input-soft-radius);
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  padding: 16px 18px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.composer textarea {
  resize: vertical;
  min-height: 132px;
  font-size: 1.04rem;
  line-height: 1.8;
  padding-bottom: 74px;
  padding-right: 132px;
}

.composer textarea::placeholder {
  color: rgba(116, 99, 83, 0.78);
}

.composer textarea:focus {
  outline: none;
  border-color: rgba(181, 93, 61, 0.42);
  box-shadow: var(--focus-ring);
  transform: translateY(-1px);
}

.composer-actions,
.action-row,
.report-topline,
.trait-list,
.chip-row,
.guide-list {
  display: grid;
}

.composer-actions {
  margin-top: 16px;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.prompt-chip {
  border: 1px solid rgba(76, 56, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.94);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.94rem;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.prompt-chip:hover {
  border-color: rgba(181, 93, 61, 0.3);
  box-shadow: 0 12px 20px rgba(76, 56, 36, 0.08);
}

.prompt-chip:focus-visible {
  outline: none;
  border-color: rgba(181, 93, 61, 0.42);
  box-shadow: var(--focus-ring), 0 12px 20px rgba(76, 56, 36, 0.08);
}

.composer-meta {
  display: grid;
  gap: 8px;
}

.composer-support {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.draft-status,
.character-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.92);
  border: 1px solid rgba(76, 56, 36, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.microcopy,
.empty-state,
.reasoning-text,
.guide-list {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.report-topline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.report-content {
  display: grid;
  gap: 18px;
}

.report-meta-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-meta-item {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76, 56, 36, 0.08);
  background: rgba(255, 251, 246, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.report-meta-item strong {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.summary-card,
.metric-card,
.trait-card,
.empty-state {
  background: rgba(255, 251, 246, 0.88);
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.summary-card {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 249, 242, 0.96), rgba(247, 239, 228, 0.92)),
    linear-gradient(120deg, rgba(181, 93, 61, 0.08), rgba(29, 110, 106, 0.04));
}

.summary-meta {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-text {
  margin: 10px 0 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.metric-card {
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 93, 61, 0.16);
  box-shadow: 0 16px 28px rgba(76, 56, 36, 0.08);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.trait-list {
  gap: 12px;
}

.trait-card {
  padding: 14px 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trait-card:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 93, 61, 0.18);
  box-shadow: 0 14px 26px rgba(76, 56, 36, 0.08);
}

.trait-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.trait-description {
  margin: 6px 0 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

.trait-score-group {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 64px;
}

.trait-level {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(181, 93, 61, 0.1);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.trait-label-row strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
}

.trait-bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(116, 99, 83, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(76, 56, 36, 0.06);
}

.trait-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 14px rgba(198, 146, 50, 0.26);
}

.report-block {
  margin-top: 18px;
}

.report-block h3 {
  font-family: "Manrope", sans-serif;
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.chip-row {
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  gap: 10px;
}

.trait-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(29, 110, 106, 0.1);
  color: var(--teal);
  font-size: 0.98rem;
  font-weight: 600;
}

.reasoning-text {
  margin: 0;
  background: rgba(255, 251, 246, 0.72);
  border: 1px solid rgba(76, 56, 36, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.empty-state {
  padding: 18px;
}

.guide-list {
  gap: 10px;
  padding-left: 20px;
  margin: 8px 0 0;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #d17a57);
  color: #fff9f5;
  box-shadow: 0 16px 28px rgba(181, 93, 61, 0.22);
}

.composer-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-width: 96px;
  min-height: 48px;
  padding-inline: 18px;
  background: linear-gradient(135deg, #8c3f24, #c65f37);
  color: #fffaf6;
  border: 1px solid rgba(255, 249, 245, 0.68);
  box-shadow: 0 14px 26px rgba(181, 93, 61, 0.3);
}

.composer-send:hover {
  background: linear-gradient(135deg, #7d351d, #b8542f);
}

.composer-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 48px;
  padding-inline: 20px;
  background: rgba(255, 247, 240, 0.98);
  border-color: rgba(181, 93, 61, 0.26);
  box-shadow: 0 10px 18px rgba(76, 56, 36, 0.1);
}

.composer-reset:hover {
  border-color: rgba(181, 93, 61, 0.42);
  box-shadow: 0 14px 24px rgba(76, 56, 36, 0.12);
}

.secondary-button,
.ghost-button {
  background: rgba(255, 250, 245, 0.82);
  color: var(--ink);
  border: 1px solid rgba(76, 56, 36, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.composer textarea:focus-visible {
  outline: none;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  box-shadow: var(--focus-ring), 0 16px 28px rgba(76, 56, 36, 0.12);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hidden {
  display: none;
}

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

@keyframes floatAmbient {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 18px, 0) scale(1.06);
  }
}

@media (max-width: 1120px) {
  .hero-copy,
  .workspace {
    grid-template-columns: 1fr;
  }

  .report-panel {
    position: static;
    top: auto;
  }

  .chat-panel {
    min-height: auto;
  }

  .chat-messages {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
  }

  .hero,
  .chat-panel,
  .report-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }

  .hero-metrics,
  .progress-steps,
  .report-meta-bar {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .status-chip {
    align-self: flex-start;
  }

  .hero-guide {
    padding: 16px;
    border-radius: 20px;
  }

  .report-topline {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-auto-flow: row;
  }

  .composer-actions {
    grid-template-columns: 1fr;
  }

  .composer-support {
    gap: 8px;
  }

  .draft-status,
  .character-count {
    width: fit-content;
  }

  .composer textarea {
    min-height: 156px;
    padding-right: 18px;
    padding-bottom: 84px;
  }

  .composer-send {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .composer-reset {
    width: 100%;
  }

  .message {
    max-width: 100%;
  }

  .trait-label-row {
    flex-direction: column;
  }

  .trait-score-group {
    justify-items: start;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100vw - 14px, 100%);
    padding-top: 10px;
    padding-bottom: 28px;
  }

  .hero,
  .chat-panel,
  .report-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-lead,
  .microcopy,
  .empty-state,
  .reasoning-text,
  .guide-list,
  .message-body {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .panel-header h2 {
    font-size: 1.55rem;
  }

  .progress-step {
    min-height: 38px;
    font-size: 0.84rem;
  }

  .prompt-suggestions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prompt-chip {
    width: 100%;
    justify-content: center;
  }

  .composer-send,
  .composer-reset {
    min-height: 46px;
  }

  .metric-card,
  .report-meta-item,
  .summary-card,
  .trait-card,
  .question-card,
  .progress-panel {
    padding: 14px;
  }

  .message {
    padding: 16px;
  }

  .message-meta {
    gap: 10px;
    font-size: 0.78rem;
  }
}

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