:root {
  color-scheme: light;
  --ink: #1d1a16;
  --muted: #6d655d;
  --paper: #f7f3eb;
  --line: #d8c9b8;
  --accent: #b42318;
  --accent-dark: #7f1d1d;
  --jade: #146c5f;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(29, 26, 22, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 26, 22, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.command {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

h2 {
  font-size: 20px;
}

.status {
  min-width: 96px;
  border: 1px solid var(--ink);
  background: var(--jade);
  color: white;
  padding: 9px 12px;
  text-align: center;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 300px;
  gap: 18px;
  padding-top: 22px;
}

.composer,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
  border-radius: 8px;
}

.composer {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: 16px/1.6 "Songti SC", serif;
  padding: 10px 12px;
}

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

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 14px;
}

button:hover {
  background: var(--accent-dark);
}

.panel {
  min-height: 520px;
  overflow: hidden;
}

.panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.panelHead span {
  color: var(--muted);
  font-size: 13px;
}

.replyList,
.eventList {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding: 16px;
}

.reply,
.event {
  border-left: 4px solid var(--accent);
  background: #fffdf8;
  padding: 12px;
}

.event {
  border-left-color: var(--jade);
}

.meta {
  color: var(--muted);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 6px;
}

.text {
  font-size: 17px;
  line-height: 1.7;
}

.tts {
  margin-top: 8px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 260px;
  }

  .command {
    align-items: start;
    flex-direction: column;
  }
}
