body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #1f2933; background: #f5f7fa; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #d9e0e7; }
.brand { font-weight: 600; color: inherit; text-decoration: none; }
nav { display: flex; gap: 16px; flex: 1; }
nav a { color: #1b6ca8; text-decoration: none; }
.logout { display: flex; align-items: center; gap: 8px; margin: 0; }
.who { color: #52606d; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
button { padding: 8px 16px; border: 0; border-radius: 6px; background: #1b6ca8; color: #fff; font: inherit; cursor: pointer; }
.login { max-width: 360px; margin: 48px auto; display: grid; gap: 12px; }
.login label { display: grid; gap: 4px; }
.login input { padding: 8px; border: 1px solid #b7c2cd; border-radius: 6px; font: inherit; }
.error { margin: 0; padding: 8px 12px; border-radius: 6px; background: #fde8e8; color: #9b1c1c; }
.tabs { display: flex; gap: 16px; margin: 0 0 16px; }
.tabs a { color: #1b6ca8; text-decoration: none; padding-bottom: 4px; }
.tabs a.current { border-bottom: 2px solid #1b6ca8; font-weight: 600; }
.list { width: 100%; border-collapse: collapse; background: #fff; }
.list th, .list td { padding: 8px 12px; border-bottom: 1px solid #e4e9ee; text-align: left; }
.list tr.open { background: #fff4d6; }
.muted { color: #52606d; }
.notice { margin: 0 0 16px; padding: 8px 12px; border-radius: 6px; background: #e6f2fb; color: #1b4a73; }
.chat { display: grid; gap: 8px; margin: 16px 0; }
.msg { padding: 8px 12px; border-radius: 6px; background: #fff; border: 1px solid #e4e9ee; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.staff { background: #e8f5e9; }
.msg.assistant { background: #f0f4f8; }
.msg .meta { display: block; font-size: 13px; color: #52606d; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.actions form { margin: 0; }
.reply { display: grid; gap: 8px; margin-top: 16px; }
.reply textarea { padding: 8px; border: 1px solid #b7c2cd; border-radius: 6px; font: inherit; min-height: 96px; }
.editor { display: grid; gap: 8px; }
.editor textarea { padding: 8px; border: 1px solid #b7c2cd; border-radius: 6px; font: 14px/1.4 ui-monospace, monospace; }
.editor input[type=text] { padding: 8px; border: 1px solid #b7c2cd; border-radius: 6px; font: inherit; width: 60%; }
.inline { display: inline; margin: 0 0 0 8px; }
.diff { padding: 8px 12px; background: #fff; border: 1px solid #e4e9ee; overflow-x: auto; white-space: pre-wrap; }
.stats-scroll { overflow-x: auto; }
.stats-scroll .list th:nth-child(3), .stats-scroll .list td:nth-child(3) { min-width: 200px; }
.stats-scroll .list th:last-child, .stats-scroll .list td:last-child { white-space: nowrap; }
