:root{--bg:#f5f7fa;--panel:#fff;--ink:#17202a;--muted:#657384;--line:#dbe2ea;--brand:#117865;--brand-dark:#0d5f51;--accent:#b7791f;--ok:#147a42;--shadow:0 16px 44px rgba(18,32,48,.08);font-family:Arial,"Microsoft YaHei",sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
button{border:0;background:var(--brand);color:#fff;border-radius:6px;padding:10px 14px;cursor:pointer;font-weight:700}
button:hover{background:var(--brand-dark)}
button.secondary{background:#e8eef3;color:var(--ink)}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px;background:#fff}
textarea{min-height:96px}
.auth{min-height:100vh;display:grid;place-items:center;padding:24px}
.card,.panel{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:18px}
.card{width:min(460px,100%)}
.form{display:grid;gap:14px}
.msg{margin:12px 0;padding:10px;background:#fff4df;border-left:4px solid var(--accent)}
.shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr}
aside{background:#15212c;color:#fff;padding:22px 18px}
.nav{display:grid;gap:8px}
.nav button{background:transparent;text-align:left;color:#d8e0e8}
.nav button.active,.nav button:hover{background:rgba(255,255,255,.12)}
main{padding:24px}
.topbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:18px}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.span-12{grid-column:span 12}
.span-6{grid-column:span 6}
.span-4{grid-column:span 4}
.muted{color:var(--muted)}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{border-bottom:1px solid var(--line);padding:10px;text-align:left}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.user-table th,.user-table td{vertical-align:middle}.balance-pill{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border-radius:6px;background:#eef8f5;color:var(--brand-dark);font-weight:700}.inline-form{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.inline-form input{width:160px;min-width:0}.password-form input{width:180px}.inline-form button{white-space:nowrap;padding:9px 12px}
.stat-card{display:grid;gap:6px}.stat-card p{margin:0;color:var(--muted)}.stat-card strong{font-size:28px;line-height:1;color:var(--brand-dark)}.stat-card span{color:var(--muted);font-size:13px}
.upload-table th,.upload-table td{vertical-align:middle}.time-cell{white-space:nowrap;color:var(--muted);font-size:13px}.task-chip{display:inline-block;max-width:260px;padding:4px 8px;border-radius:6px;background:#eef3f7;color:#263645;line-height:1.45;word-break:break-word}.file-edit{display:flex;align-items:center;gap:8px;min-width:280px}.file-edit input{width:220px}.file-edit button,.upload-table .actions button{padding:8px 10px;white-space:nowrap}.nowrap{flex-wrap:nowrap}.note-cell{max-width:160px;word-break:break-word;color:var(--muted)}.status-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef8f5;color:var(--brand-dark);font-weight:700;white-space:nowrap}
.bot-button-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.bot-button-head h3{margin:0}.bot-button-table{table-layout:fixed}.bot-button-table col.check{width:44px}.bot-button-table col.sort{width:58px}.bot-button-table col.text{width:26%}.bot-button-table col.type{width:20%}.bot-button-table col.reply{width:auto}.bot-button-table col.ops{width:92px}.bot-button-table th,.bot-button-table td{vertical-align:middle}.bot-button-table textarea{min-height:44px;resize:vertical}.bot-button-table button{white-space:nowrap}.bot-button-table input[type=checkbox]{width:auto}.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pager button{padding:7px 11px}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.42);display:grid;place-items:center;padding:20px;z-index:20}
.modal.hidden{display:none}
.modal-box{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:18px}
.notice-box p{margin:8px 0 16px;line-height:1.6;word-break:break-word}
@media(max-width:900px){.shell{grid-template-columns:1fr}.span-4,.span-6,.span-12{grid-column:span 12}.bot-button-table{min-width:780px}.panel{overflow:auto}}
