* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 14px;
}

.phone {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 28px);
}

.chat-header {
  padding: 14px;
  border-bottom: 1px solid #000;
}

.chat-header strong {
  display: block;
  font-size: 18px;
}

.chat-header span {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.chat-box {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.35;
  font-size: 14px;
}

.bot {
  background: #fafafa;
}

.user {
  margin-left: auto;
  background: #fff;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

button,
.file-btn {
  border: 1px solid #000;
  background: #fff;
  border-radius: 4px;
  padding: 11px 10px;
  font-size: 14px;
  cursor: pointer;
}

button:active,
.file-btn:active {
  transform: translateY(1px);
}

.form {
  margin-top: 12px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 11px;
  margin-top: 5px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.bottom-input {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.file-btn {
  width: 40%;
  text-align: center;
}

.file-btn input {
  display: none;
}

.bottom-input button {
  width: 60%;
  background: #111;
  color: #fff;
}

.small-note {
  font-size: 12px;
  line-height: 1.35;
}

.result {
  border: 1px solid #000;
  border-radius: 4px;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.result a {
  color: #000;
  text-decoration: underline;
}

.chat-footer {
  border-top: 1px solid #000;
  padding: 12px 14px;
  font-size: 13px;
}

.chat-footer a {
  color: #000;
}

.hidden {
  display: none;
}
