:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172026;
  background: #f4f7f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  width: min(860px, calc(100% - 28px));
  margin: 40px auto;
}

.card {
  background: white;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 14px 40px rgba(0,0,0,.07);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef3f4;
  margin-bottom: 8px;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.intro {
  font-size: 18px;
  line-height: 1.55;
  color: #4c5a61;
}

.notice {
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid #d8e1e4;
  border-radius: 12px;
  background: #f9fbfb;
  line-height: 1.5;
}

.chat {
  display: grid;
  gap: 14px;
  margin: 28px 0 22px;
}

.message {
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.5;
  max-width: 92%;
}

.message.user {
  justify-self: end;
  background: #172026;
  color: white;
}

.message.assistant {
  justify-self: start;
  background: #edf2f4;
}

.message.urgent {
  background: #fff1f1;
  border: 1px solid #efb6b6;
}

.message h2, .message h3 { margin-top: 0; }
.message p:last-child { margin-bottom: 0; }

.question-list {
  margin: 8px 0 0 20px;
  padding: 0;
}

.recommendations {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.test {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid #d7dfe2;
}

.test-name {
  margin: 0 0 4px;
  font-size: 17px;
}

.test-reason {
  margin: 0;
  color: #536168;
  font-size: 14px;
}

.test-price {
  font-weight: 750;
  white-space: nowrap;
}

.total {
  margin-top: 12px;
  font-weight: 800;
  text-align: right;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 14px;
  border: 1px solid #bfcbd0;
  border-radius: 12px;
  font: inherit;
  line-height: 1.45;
}

textarea:focus {
  outline: 3px solid rgba(23,32,38,.12);
  border-color: #172026;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  background: #172026;
  color: white;
}

button.secondary {
  background: #e9eef0;
  color: #172026;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

.status {
  min-height: 24px;
  margin-top: 12px;
  color: #58666c;
  font-size: 14px;
}

.small {
  color: #647278;
  font-size: 13px;
}

@media (max-width: 600px) {
  .shell { margin: 14px auto; }
  .card { border-radius: 12px; }
  .message { max-width: 100%; }
  .test { align-items: flex-start; }
}
