** {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  background: #090909;
  color: #f7f1e6;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  max-width: 1200px;
  margin: auto;
  background: #111;
}

.profile {
  padding: 28px;
  background: linear-gradient(160deg, #17120c, #0d0d0d);
  border-right: 1px solid #3b2b16;
}

.avatar-wrap {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #b78a3c;
  margin: 10px auto 22px;
  box-shadow: 0 0 40px #8c642633;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 15%;
}

.profile h1 {
  text-align: center;
  letter-spacing: 8px;
  font-size: 38px;
  margin: 0;
  color: #d9aa52;
}

.tag {
  text-align: center;
  color: #c8bda9;
}

.status {
  text-align: center;
  color: #8fd19b;
  margin: 18px;
}

.status span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #55c878;
  border-radius: 50%;
  margin-right: 6px;
}

.bio {
  line-height: 1.6;
  color: #c9c0b3;
}

.chips {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.chips button,
#clear,
#mic,
#send {
  border: 1px solid #4d3718;
  background: #17130d;
  color: #e8c16c;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  touch-action: manipulation;
}

.chips button:hover,
#clear:hover,
#mic:hover,
#send:hover {
  background: #241b10;
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

header {
  padding: 22px 26px;
  border-bottom: 1px solid #292929;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

header b {
  font-size: 20px;
}

header small {
  display: block;
  color: #8f8a82;
  margin-top: 4px;
}

.messages {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.msg {
  max-width: 78%;
  padding: 13px 16px;
  border-radius: 16px;
  margin-bottom: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.msg p {
  margin: 5px 0;
}

.msg.layla {
  background: #1b1916;
  border: 1px solid #30281c;
}

.msg.user {
  margin-left: auto;
  background: #6d4d1c;
}

.composer {
  display: flex;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid #292929;
  width: 100%;
}

.composer input {
  flex: 1;
  min-width: 0;
  background: #181818;
  border: 1px solid #383838;
  color: white;
  border-radius: 14px;
  padding: 15px;
  font-size: 16px;
  outline: none;
}

.composer input:focus {
  border-color: #b78a3c;
}

.composer button {
  width: 48px;
  min-width: 48px;
  height: 48px;