:root {
  --sky: #d7f0ff;
  --ink: #12324a;
  --line: #9fd3ef;
  --card: rgba(255, 255, 255, 0.88);
  --en: #0b4f6c;
  --zh: #1f3d2b;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff 0, transparent 50%),
    linear-gradient(180deg, #bfe9ff, #87ceeb);
}
body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-columns: 1fr 280px;
  gap: 10px;
  padding: 10px;
}
.top, .composer, .board, .side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}
.brand span { display: block; font-size: 12px; opacity: 0.75; }
.actions, .composer { display: flex; gap: 8px; align-items: center; }
.composer { grid-column: 1 / -1; padding: 8px; }
.composer input { flex: 1; min-width: 120px; }
button, select, input, textarea {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
}
button {
  background: #0ea5e9;
  color: #fff;
  border: 0;
  cursor: pointer;
}
button.ghost { background: #e8f6ff; color: var(--ink); }
body.live-on #btn-live { background: #dc2626; }
body.live-on .caption { background: #dcfce7; }
.caption {
  flex: 1;
  min-width: 160px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #e8f6ff;
  font-size: 14px;
}
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: hidden;
}
.pane { display: flex; flex-direction: column; min-height: 0; }
.pane h2 {
  margin: 0;
  padding: 10px 14px 6px;
  font-size: 16px;
}
.pane.zh h2 { color: var(--zh); }
.pane.en h2 { color: var(--en); }
.col {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 16px;
}
.row {
  padding: 8px 10px;
  margin: 0 0 8px;
  border-radius: 10px;
  background: #f4fbff;
  border-left: 4px solid #0ea5e9;
}
.row .meta { font-size: 11px; opacity: 0.65; margin-bottom: 4px; }
.row.active { outline: 2px solid #0369a1; }
.side { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side textarea { flex: 1; min-height: 120px; resize: none; }
.status { font-size: 12px; line-height: 1.4; }
#rec-list { margin: 0; padding-left: 18px; font-size: 12px; overflow: auto; max-height: 90px; }
@media (orientation: portrait) {
  body { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .board { min-height: 52vh; }
  .side { min-height: 180px; }
}
