:root {
  font-family: system-ui, Arial, sans-serif;
  color: #eaf5ff;
  background: #080e18;
  --accent: #ff6700;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4%;
  background: #0c1523;
  border-bottom: 1px solid #263449;
}
header strong { font-size: 23px; color: var(--accent); }
header span { letter-spacing: 2px; font-size: 13px; }
header small { color: #95a5b8; }
main {
  display: grid;
  grid-template-columns: minmax(290px,380px) 1fr;
  gap: 24px;
  padding: 28px 4%;
  max-width: 1600px;
  margin: auto;
}
.panel,.preview {
  background: #101b2c;
  border: 1px solid #2c3b50;
  border-radius: 18px;
  padding: 24px;
}
.panel h1 { margin: 0; font-size: 25px; }
.panel p { color: #a4b4c6; }
label {
  display: block;
  margin: 15px 0;
  color: #d8e7f4;
  font-size: 13px;
}
input,select,textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #081321;
  border: 1px solid #40506a;
  border-radius: 9px;
  padding: 12px;
  color: #fff;
  font: inherit;
}
input[type=color] { height: 45px; padding: 4px; }
textarea { font-size: 12px; resize: vertical; }
button {
  background: var(--accent);
  color: #101018;
  border: 0;
  border-radius: 9px;
  padding: 12px 17px;
  font-weight: 750;
  cursor: pointer;
}
button.secondary { background: #26374e; color: #eaf5ff; }
.actions { display: flex; gap: 10px; }
.previewHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.previewHead small {
  color: var(--accent);
  letter-spacing: 2px;
}
.previewHead h2 { font-size: 28px; }
.previewHead span {
  background: #24344a;
  padding: 8px;
  border-radius: 8px;
}
.chat {
  height: 390px;
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid #324660;
  border-radius: 15px;
  overflow: hidden;
  background: #0b1524;
}
.chat aside {
  background: #17273b;
  padding: 18px;
  color: #c8d6e6;
}
.chat aside p { font-size: 13px; }
.chat article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.messages {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  padding: 12px 16px;
  border-radius: 12px;
  background: #23374c;
  max-width: 85%;
  align-self: flex-start;
}
.bubble.other {
  align-self: flex-end;
  background: #2d3b51;
}
.bubble.system { border-left: 3px solid var(--accent); }
.compose {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid #34435a;
}
.compose input { margin: 0; }
.player {
  margin-top: 16px;
  background: #17283c;
  border-radius: 13px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.player p { color: #aabbd0; }
.player audio { max-width: 310px; width: 100%; }
.notice { font-size: 13px; color: #aabbd0; }
.preview.boxy .chat {
  max-width: 470px;
  margin: auto;
  height: 440px;
  border-radius: 25px;
  grid-template-columns: 1fr;
  box-shadow: 0 18px 45px #0008;
}
.preview.boxy aside { display: none; }
.preview.ocean { --accent: #25d8ff; }
.preview.sunset { --accent: #ff4f95; }
.preview.light { background: #f1f6fb; color: #19283d; }
.preview.light .chat { background: #fff; color: #1b3047; }
.preview.light .chat aside {
  background: #e5eff8;
  color: #1b3047;
}
.preview.light .bubble { background: #e1ebf5; }
.preview.light .player { background: #e5eff8; color: #19283d; }
@media(max-width:900px) {
  main { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 125px 1fr; }
  header span { display: none; }
  .player { flex-wrap: wrap; }
}
