* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: #101218; color: #d6dae3;
    font: 14px/1.6 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
a { color: #7fb2ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 238px; flex: 0 0 238px; background: #141720;
    border-right: 1px solid #262b37; padding: 18px 14px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.catalog-version {
    color: #8c96a8; font-size: 12px; line-height: 1.5;
    background: #0e1015; border: 1px solid #262b37; border-radius: 8px;
    padding: 8px 10px; margin-bottom: 14px; word-break: break-all;
}
.catalog-version code { color: #9be7c4; }
.tree { display: flex; flex-direction: column; gap: 3px; }
.tree a { color: #aeb7c8; padding: 4px 8px; border-radius: 6px; }
.tree a:hover { background: #1e2431; color: #fff; text-decoration: none; }
.tree-group {
    color: #6f7a8e; font-size: 11px; text-transform: uppercase;
    letter-spacing: .08em; margin: 14px 8px 4px;
}
.tree details { margin-left: 4px; }
.tree summary { cursor: pointer; color: #cdd5e4; padding: 4px 6px; }
.tree details a { margin-left: 12px; font-size: 13px; }
.sidebar-foot {
    display: flex; align-items: center; gap: 10px;
    margin-top: 22px; padding-top: 14px; border-top: 1px solid #262b37;
}
.main { flex: 1; min-width: 0; }
.main .wrap { max-width: none; }
.top {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    background: #171a22; border-bottom: 1px solid #262b37;
    padding: 12px 22px; position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 16px; color: #fff; white-space: nowrap; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
nav a { color: #aeb7c8; }
nav a:hover { color: #fff; }
.who { color: #8c96a8; margin-right: 8px; }
.inline { display: inline; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 22px 80px; }
h1 { font-size: 22px; margin: 0 0 18px; color: #fff; }
h2 { font-size: 16px; margin: 26px 0 10px; color: #e8ecf5; }
.muted { color: #8c96a8; }
.small { font-size: 12px; }
.banner { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.banner.ok { background: #123326; color: #9be7c4; border: 1px solid #1f5a43; }
.banner.bad { background: #3a1a1f; color: #ffb3bd; border: 1px solid #6b2a34; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.card { background: #171a22; border: 1px solid #262b37; border-radius: 10px; padding: 16px; }
.card .num { font-size: 28px; font-weight: 700; color: #fff; }
.card .label { color: #8c96a8; font-size: 13px; }
.panel { background: #171a22; border: 1px solid #262b37; border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.panel summary { cursor: pointer; color: #cdd5e4; font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
input, select, textarea, button {
    font: inherit; color: #dce2ee; background: #0e1015;
    border: 1px solid #303747; border-radius: 7px; padding: 7px 9px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #4f7fd0; }
button { cursor: pointer; background: #202634; border-color: #364054; padding: 7px 12px; }
button:hover { border-color: #5878b8; }
button.primary { background: #2456a6; border-color: #2456a6; color: #fff; }
button.primary:hover { background: #2e66c2; }
button.danger { background: #4a1f27; border-color: #6b2a34; color: #ffb3bd; }
button.link { background: transparent; border: 0; color: #8fbaff; padding: 0; }
table { width: 100%; border-collapse: collapse; background: #141720; border: 1px solid #262b37; border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #222735; vertical-align: top; }
th { background: #1b1f29; color: #aeb7c8; font-weight: 600; font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #171b25; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 12px; background: #232a38; color: #aeb7c8; }
.tag.ok { background: #123326; color: #9be7c4; }
.tag.warn { background: #3a2e14; color: #f3cf85; }
.tag.bad { background: #3a1a1f; color: #ffb3bd; }
.actions { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.actions form { display: flex; gap: 6px; align-items: center; }
.actions input[type=number] { width: 72px; }
.actions input[type=text], .actions input[type=password] { width: 130px; }
.actions select { width: 92px; }
.login-box { max-width: 380px; margin: 9vh auto; background: #171a22; border: 1px solid #262b37; border-radius: 12px; padding: 26px; }
.login-box h1 { margin-bottom: 4px; }
.login-box label { display: block; margin-top: 14px; color: #aeb7c8; font-size: 13px; }
.login-box input { width: 100%; margin-top: 5px; }
.login-box button { width: 100%; margin-top: 20px; padding: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
pre.mock { background: #0e1015; border: 1px solid #303747; border-radius: 8px; padding: 10px; overflow: auto; }
