:root { color-scheme: light; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: #27334a; background: radial-gradient(circle at 15% 10%, #e8e2fb 0, transparent 40%), linear-gradient(145deg, #f7f6fd, #e8effb); }
.wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-wrap { flex-direction: column; gap: 20px; justify-content: flex-start; }
.card { width: min(100%, 440px); padding: 32px; background: rgba(255,255,255,.94); border: 1px solid #e4e2ef; border-radius: 24px; box-shadow: 0 18px 60px rgba(38,43,80,.12); }
.wide { width: min(100%, 960px); }
.brand { font-family: Georgia, serif; font-size: 34px; font-weight: 700; letter-spacing: .04em; color: #47406e; }
h1 { margin: 20px 0 8px; font-size: 24px; }
h2 { margin: 22px 0 10px; font-size: 18px; }
p { line-height: 1.6; }
.muted { color: #69758a; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin: 22px 0; }
.tabs button { flex: 1; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid #bbb8d5; border-radius: 12px; background: #fff; color: #403c60; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #f2effc; }
button.primary, .button.primary { color: white; background: #7667b2; border-color: #7667b2; }
button.primary:hover, .button.primary:hover { background: #62539c; }
button:disabled { opacity: .55; cursor: wait; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9cbd8; border-radius: 10px; background: white; color: #27334a; font: inherit; }
input:focus { outline: 2px solid #a69be3; outline-offset: 1px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.actions > * { flex: 1; }
.message { min-height: 22px; margin: 16px 0 0; font-size: 14px; }
.message.error { color: #aa2525; }
.message.success { color: #176649; }
a { color: #5545a0; }
.foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; }
.hidden { display: none !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 8px; border-bottom: 1px solid #e9e8f2; text-align: left; white-space: nowrap; }
th { color: #657085; }
td button { min-height: 34px; padding: 5px 10px; }
td button + button { margin-left: 6px; }
.record-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.record-list button { font-size: 13px; min-height: 36px; }
.chat-entry { padding: 14px; margin: 10px 0; border: 1px solid #e5e3f0; border-radius: 12px; background: #faf9ff; }
.chat-entry pre, .record-json { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.65; }
.record-json { max-height: 70vh; overflow: auto; padding: 14px; border: 1px solid #e5e3f0; border-radius: 12px; background: #faf9ff; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { min-width: 150px; padding: 16px; border: 1px solid #e5e3f0; border-radius: 14px; }
.stat strong { display: block; margin-top: 6px; font-size: 24px; }
@media (max-width: 520px) { .card { padding: 22px; } }
