:root {
  --ink: #1B1A17;
  --paper: #F5F4F0;
  --side: #FAF9F6;
  --card: #FFFFFF;
  --line: #E4E1D8;
  --line-soft: #EFEDE8;
  --text: #26241F;
  --muted: #8A8781;
  --green: #2E7D32; --green-bg: #E6F4EA;
  --red: #B3261E; --red-bg: #FDECEA;
  --amber: #8A6D00; --amber-bg: #FFF4CC;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--paper); color: var(--text); font-size: 14px; line-height: 1.6; }
.shell { max-width: 1280px; margin: 14px auto 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 4px rgba(27,26,23,.06); overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }
.topbar .title { font-size: 17px; font-weight: 700; color: var(--ink); }
.pill { display: inline-block; font-size: 12px; border-radius: 20px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.muted { background: var(--line-soft); color: var(--muted); }
.actions span { display: inline-block; border: 1px solid var(--ink); border-radius: 6px; padding: 5px 12px; margin-left: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.actions span:hover { background: var(--line-soft); }
.cols { display: grid; grid-template-columns: 230px 1fr 300px; min-height: 660px; }
.col { padding: 14px; }
.col.side { background: var(--side); }
.col + .col { border-left: 1px solid var(--line); }
.label { font-size: 11px; color: var(--muted); letter-spacing: .12em; margin: 16px 0 8px; }
.label:first-child { margin-top: 0; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; background: var(--card); }
.box.active { border-color: var(--ink); box-shadow: 0 1px 3px rgba(27,26,23,.08); font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #35A853; margin-right: 6px; }
.dot.off { background: #bbb; }
.muted { color: var(--muted); font-size: 12px; }
.seatline { display: flex; align-items: center; gap: 8px; }
.mini-av { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.msg { display: flex; gap: 10px; margin-bottom: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.bubble { border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 9px 12px; background: var(--card); max-width: 88%; white-space: pre-wrap; word-break: break-word; }
.msg.user { flex-direction: row-reverse; }
.msg.user .bubble { background: var(--ink); color: #fff; border: none; border-radius: 12px 4px 12px 12px; }
.msg.system .bubble { background: var(--side); border-style: dashed; color: var(--muted); font-size: 13px; }
.who { font-size: 13px; margin-bottom: 3px; }
.badge { border-radius: 4px; padding: 1px 6px; font-size: 11px; margin-left: 6px; font-weight: 400; }
.dispatch { text-align: center; margin: 12px 0; }
.dispatch span { background: var(--side); border: 1px dashed var(--muted); border-radius: 20px; padding: 4px 12px; font-size: 12px; color: var(--muted); display: inline-block; margin: 2px; }
.banner { background: var(--green-bg); border: 1px solid #BFE3C6; color: var(--green); border-radius: 8px; padding: 9px 12px; text-align: center; font-weight: 600; margin: 12px 0; }
.composer { border: 1px solid var(--ink); border-radius: 12px; padding: 12px; margin-top: 14px; background: var(--card); box-shadow: 0 2px 8px rgba(27,26,23,.06); }
.composer textarea { width: 100%; border: none; outline: none; resize: vertical; font: inherit; font-size: 14px; background: transparent; }
.atchip { display: inline-block; border-radius: 20px; padding: 2px 9px; font-size: 12px; margin-right: 6px; cursor: pointer; }
.btn-send { background: var(--ink); color: #fff; border-radius: 6px; padding: 5px 16px; font-size: 13px; cursor: pointer; }
.btn-ghost { border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seatcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.seatcard .sub { margin-top: 8px; font-size: 12px; color: var(--muted); }
.seatcard .acts { color: var(--muted); font-size: 12px; }
.seatcard .acts span { cursor: pointer; margin-left: 8px; }
.seatcard .acts span:hover { color: var(--ink); }
.btn-add { display: block; border: 1.5px dashed var(--ink); border-radius: 10px; padding: 10px; text-align: center; color: var(--ink); font-weight: 600; cursor: pointer; }
.btn-add:hover { background: var(--line-soft); }
.logline { font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; align-items: baseline; }
.logline .sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative; top: -1px; }
.qrow { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; background: var(--card); }
.qbar { height: 6px; border-radius: 3px; background: var(--line-soft); margin: 6px 0 4px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--ink); }
.qbar i.warn { background: #C9A227; }
.qbar i.full { background: var(--red); }
.qrow .big { font-size: 15px; font-weight: 700; }
.qrow.full { border-color: var(--red); }
.qrow.fused { border-color: var(--amber); }
input, select { font: inherit; font-size: 13px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .col + .col { border-left: none; border-top: 1px solid var(--line); } }
