:root { font-family: "Microsoft YaHei", "Segoe UI", sans-serif; color: #17212b; background: #edf1f4; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { background: #16324f; color: #e8f0f7; padding: 24px 14px; display: flex; flex-direction: column; gap: 24px; }
.brand { font-size: 18px; font-weight: 700; }
nav { display: grid; gap: 4px; }
nav a { color: #c7d5e2; text-decoration: none; padding: 10px 12px; border-radius: 4px; }
nav a:hover, nav a.active { color: #fff; background: #285777; }
.session-status { margin-top: auto; color: #a8c1d6; font-size: 13px; overflow-wrap: anywhere; }
.content { padding: 28px; max-width: 1240px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 15px; margin: 24px 0 12px; }
.muted { margin: 6px 0 0; color: #657585; font-size: 13px; }
.panel { background: #fff; border: 1px solid #d7e0e8; border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; color: #546371; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { padding: 14px; border: 1px solid #e0e8ee; background: #f8fafb; display: grid; gap: 4px; }
.stats strong { color: #1b567d; font-size: 24px; font-variant-numeric: tabular-nums; }
.stats span { color: #657585; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.form-grid.compact { grid-template-columns: minmax(180px, 1fr) auto; }
.plan-form { grid-template-columns: repeat(3, minmax(150px, 1fr)); margin-bottom: 20px; }
label { display: grid; gap: 7px; color: #435261; font-size: 14px; }
input, select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #bfcbd5; border-radius: 4px; color: #17212b; font: inherit; }
input:focus, select:focus { outline: 2px solid #6da9d2; outline-offset: 1px; border-color: #4f90bd; }
.toggle { display: flex; align-items: center; gap: 9px; min-height: 38px; }
.toggle input { width: 16px; min-height: 16px; }
.actions { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
button { min-height: 38px; padding: 8px 14px; border: 1px solid #2371a4; background: #2371a4; color: #fff; border-radius: 4px; cursor: pointer; font: inherit; }
button:hover { background: #175d8c; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary, button.danger { background: #fff; }
button.secondary { border-color: #bfcbd5; color: #344454; }
button.danger { border-color: #c86b6b; color: #9d2a2a; }
button.small { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e6edf2; white-space: nowrap; vertical-align: middle; }
th { color: #657585; font-weight: 600; }
td.wrap { white-space: normal; overflow-wrap: anywhere; }
.empty { text-align: center; color: #8a99a6; padding: 18px; }
.status { display: inline-block; padding: 3px 7px; border-radius: 3px; background: #edf2f5; color: #526272; }
.status.success { background: #e5f3eb; color: #25734a; }
.status.warning { background: #fff4dd; color: #9a6516; }
.status.danger { background: #f9e6e6; color: #a13030; }
.result { min-height: 46px; margin-top: 16px; padding: 12px; background: #f5f8fa; border-left: 3px solid #2371a4; font-family: Consolas, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.notice { min-height: 20px; margin: 4px 0; color: #25734a; font-size: 14px; }
.notice.error { color: #a13030; }
.panel-message { min-height: 20px; margin: 8px 0; color: #657585; font-size: 13px; }
.panel-message.error { color: #a13030; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .shell { grid-template-columns: 1fr; } .sidebar { min-height: auto; padding: 14px; } .session-status { margin: 0; } .content { padding: 16px; } .topbar, .section-title { align-items: flex-start; flex-direction: column; } .form-grid, .form-grid.compact, .plan-form, .stats { grid-template-columns: 1fr; } }
