/* 跨次元衣橱 · 内部工具风：简洁优先，三端以顶栏配色区分 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Hiragino Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif; background: #f4f4f5; color: #1f2430; }
header#topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: #fff; background: #3f3f46; }
body.end-admin header#topbar { background: #3730a3; }
body.end-jp header#topbar { background: #0f766e; }
body.end-cn header#topbar { background: #b91c1c; }
header .brand { display: flex; align-items: baseline; gap: 12px; }
header h1 { font-size: 19px; margin: 0; }
.end-name { font-size: 14px; font-weight: 700; background: rgba(255,255,255,.18); padding: 2px 10px; border-radius: 999px; }
.toplink { color: #fff; text-decoration: none; margin-right: 10px; font-size: 14px; }
main { max-width: 1180px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: #8a8f98; font-size: 12px; padding: 18px 0 26px; }
.hidden { display: none !important; }
button { cursor: pointer; border: 1px solid #c9ccd4; background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
button.primary { background: #1f2430; color: #fff; border-color: #1f2430; }
button.warn { border-color: #d97706; color: #b45309; }
button.danger { border-color: #dc2626; color: #dc2626; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { border: 1px solid #c9ccd4; border-radius: 8px; padding: 7px 9px; font-size: 14px; width: 100%; background: #fff; }
label { display: block; font-size: 13px; color: #444a57; margin: 8px 0; }
label input, label select, label textarea { margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: 13px; }
th, td { border-bottom: 1px solid #e7e8ec; padding: 8px; text-align: left; vertical-align: top; }
th { background: #fafafa; color: #555b68; font-weight: 600; }
.card { background: #fff; border: 1px solid #e3e4e9; border-radius: 12px; padding: 14px; margin: 12px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid #e3e4e9; border-radius: 12px; padding: 12px; }
.stat b { font-size: 20px; display: block; }
.stat span { color: #6b7280; font-size: 12px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef0f4; font-size: 12px; color: #374151; }
.badge.bad { background: #fee2e2; color: #b91c1c; }
.badge.warnb { background: #fef3c7; color: #92400e; }
.badge.ok { background: #dcfce7; color: #166534; }
#tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
#tabs button.active { background: #1f2430; color: #fff; border-color: #1f2430; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { width: auto; }
.mut { color: #6b7280; font-size: 12px; }
.err-text { color: #b91c1c; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.entry-card { display: block; text-decoration: none; color: #1f2430; background: #fff; border: 1px solid #e3e4e9; border-top: 6px solid #3f3f46; border-radius: 12px; padding: 18px; }
.entry-card strong { font-size: 18px; display: block; margin-bottom: 6px; }
.entry-card span { color: #6b7280; font-size: 13px; }
.entry-card.end-admin { border-top-color: #3730a3; }
.entry-card.end-jp { border-top-color: #0f766e; }
.entry-card.end-cn { border-top-color: #b91c1c; }
#modal { position: fixed; inset: 0; background: rgba(15, 18, 26, .45); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; z-index: 40; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 14px; max-width: 640px; width: 100%; padding: 18px; position: relative; }
#modalClose { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: 20px; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #1f2430; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 60; max-width: 92vw; text-align: center; }
#toast.error { background: #b91c1c; }
.kv { font-size: 13px; line-height: 1.9; }
.kv b { color: #555b68; font-weight: 600; margin-right: 6px; }
.log { font-size: 12px; color: #4b5563; line-height: 1.8; }
h2 { font-size: 17px; } h3 { font-size: 15px; margin: 14px 0 8px; }
.checkline { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.checkline input[type="checkbox"] { width: auto; }
.checkline input[type="text"] { flex: 1; }
