:root {
  --ink: #e8eef1;
  --muted: #84949a;
  --bg: #071013;
  --panel: #0d191d;
  --panel-2: #111f23;
  --line: #203238;
  --cyan: #72e1d1;
  --green: #62d997;
  --amber: #e9b96b;
  --red: #ff726d;
  --font-display: "Bahnschrift", "DIN Alternate", "Microsoft YaHei", sans-serif;
  --font-body: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 78% 8%, #123038 0, transparent 30%), linear-gradient(140deg, #071013, #091418 55%, #071013); font-family: var(--font-body); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.eyebrow { margin: 0 0 6px; color: var(--cyan); font: 700 11px/1 var(--font-display); letter-spacing: .18em; }
h1,h2,strong { font-family: var(--font-display); }
h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: .98; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { position: relative; width: min(580px, 100%); padding: clamp(30px, 6vw, 58px); border: 1px solid #264148; border-radius: 4px; background: linear-gradient(145deg, rgba(17,34,39,.96), rgba(8,18,21,.98)); box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.05); }
.login-card::before { content: ""; position: absolute; top: -1px; left: 44px; width: 86px; height: 3px; background: var(--cyan); box-shadow: 0 0 24px rgba(114,225,209,.65); }
.brand-mark { width: 48px; height: 48px; margin-bottom: 34px; position: relative; border: 1px solid #2f4b52; display: grid; place-items: center; transform: rotate(45deg); }
.brand-mark span { position: absolute; width: 6px; height: 22px; background: var(--cyan); border-radius: 9px; }
.brand-mark span:nth-child(1) { transform: translateX(-9px); height: 13px; }
.brand-mark span:nth-child(3) { transform: translateX(9px); height: 16px; }
.login-copy { max-width: 440px; margin: 20px 0 34px; color: var(--muted); line-height: 1.8; }
label { display: block; margin-bottom: 9px; color: #a8b6ba; font-size: 13px; font-weight: 700; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input,textarea { width: 100%; color: var(--ink); background: #071114; border: 1px solid #2a3d42; border-radius: 4px; outline: none; transition: border .18s, box-shadow .18s; }
input { height: 48px; padding: 0 14px; }
textarea { padding: 12px 14px; resize: vertical; line-height: 1.6; }
input:focus,textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(114,225,209,.1); }
.primary,.danger,.refresh-button { border: 0; border-radius: 4px; padding: 0 20px; font-weight: 800; }
.primary { color: #03211e; background: var(--cyan); }
.primary:hover { filter: brightness(1.08); }
.form-error { min-height: 22px; color: var(--red); font-size: 13px; }
.security-note,.live-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.topbar { position: sticky; top: 0; z-index: 10; height: 76px; padding: 0 clamp(18px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7,16,19,.88); backdrop-filter: blur(18px); }
.brand-lockup,.top-actions { display: flex; align-items: center; gap: 14px; }
.brand-lockup strong { font-size: 19px; }
.brand-mark.compact { width: 32px; height: 32px; margin: 0; }
.brand-mark.compact span { width: 4px; height: 14px; }
.brand-mark.compact span:nth-child(1) { transform: translateX(-6px); height: 9px; }
.brand-mark.compact span:nth-child(3) { transform: translateX(6px); height: 11px; }
.ghost,.icon-button { color: #a8b6ba; background: transparent; border: 1px solid #2a3d42; border-radius: 4px; }
.ghost { height: 38px; padding: 0 14px; }
.page { width: min(1440px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 54px) 80px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.hero p:last-child { margin: 16px 0 0; color: var(--muted); }
.refresh-button { height: 44px; color: var(--ink); background: #14252a; border: 1px solid #2a4148; }
.refresh-button span { display: inline-block; margin-right: 8px; color: var(--cyan); font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 18px; }
.stats article { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 22px; background: linear-gradient(135deg, rgba(17,32,36,.94), rgba(10,22,25,.94)); border: 1px solid var(--line); border-radius: 4px; }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 3px; background: rgba(255,255,255,.04); font-size: 19px; }
.stat-icon.cyan { color: var(--cyan); }.stat-icon.green { color: var(--green); }.stat-icon.red { color: var(--red); }.stat-icon.amber { color: var(--amber); }
.stats strong { display: block; font-size: 30px; line-height: 1; }
.stats small { display: block; margin-top: 8px; color: var(--muted); }
.panel { margin-top: 18px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 4px; background: rgba(12,25,29,.92); box-shadow: 0 22px 70px rgba(0,0,0,.18); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.count-chip,.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.count-chip { color: var(--muted); background: #142328; border: 1px solid #263b41; }
.filters { display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 14px; margin: 26px 0 18px; }
.search-box { position: relative; margin: 0; }
.search-box span { position: absolute; left: 14px; top: 10px; color: var(--cyan); font-size: 22px; }
.search-box input { padding-left: 42px; }
.segmented { display: flex; padding: 4px; border: 1px solid #273a40; background: #081316; border-radius: 4px; }
.segmented button { min-width: 70px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-weight: 700; }
.segmented button.selected { color: var(--ink); background: #1b3036; box-shadow: inset 0 0 0 1px #31515a; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 950px; }
th { padding: 13px 12px; color: #65777c; text-align: left; font: 700 11px/1 var(--font-display); letter-spacing: .12em; border-bottom: 1px solid var(--line); }
td { padding: 17px 12px; border-bottom: 1px solid rgba(32,50,56,.72); vertical-align: middle; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: rgba(114,225,209,.035); }
.pack-cell strong { display: block; font-size: 15px; }
.pack-cell small,.subtle { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.mono { max-width: 220px; color: #b5c5c9; font: 12px/1.5 Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.active { color: var(--green); background: rgba(98,217,151,.1); border: 1px solid rgba(98,217,151,.24); }
.badge.suspended { color: var(--red); background: rgba(255,114,109,.1); border: 1px solid rgba(255,114,109,.28); }
.row-action { width: 34px; height: 34px; color: var(--cyan); background: #102126; border: 1px solid #294149; border-radius: 3px; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-state span { display: block; color: var(--cyan); font-size: 34px; }.empty-state strong { display: block; color: var(--ink); margin-top: 10px; }
.audit-list { margin-top: 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.audit-item { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start; padding: 15px; background: #0c181c; }
.audit-item .mark { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255,114,109,.45); }
.audit-item.resume .mark { background: var(--green); box-shadow: 0 0 10px rgba(98,217,151,.4); }
.audit-item p { margin: 0; }.audit-item small { color: var(--muted); }
.detail-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; color: var(--ink); background: #0b171a; border: 1px solid #2c454c; border-radius: 4px; box-shadow: 0 50px 140px #000; }
.detail-dialog::backdrop { background: rgba(1,7,9,.78); backdrop-filter: blur(8px); }
.dialog-frame { margin: 0; }
.dialog-frame header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; background: #0b171a; border-bottom: 1px solid var(--line); }
.icon-button { width: 36px; height: 36px; font-size: 22px; }
.detail-content { padding: 24px 26px; display: grid; gap: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-field { min-width: 0; padding: 13px; background: #0e1d21; border: 1px solid #20343a; }
.detail-field small { display: block; margin-bottom: 7px; color: #6f8186; }.detail-field strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.action-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.action-chip { padding: 7px 10px; color: #b8c7cb; background: #112328; border: 1px solid #284149; font-size: 12px; }
.control-zone { margin: 0 26px 26px; padding: 20px; background: rgba(255,114,109,.045); border: 1px solid rgba(255,114,109,.25); }
.control-zone p { margin: 7px 0 18px; color: var(--muted); font-size: 13px; }.control-zone textarea { margin-bottom: 12px; }
.danger { min-height: 44px; color: #220606; background: var(--red); }.danger.resume { color: #062016; background: var(--green); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 420px; padding: 14px 18px; color: var(--ink); background: #163036; border: 1px solid #37606a; border-radius: 4px; box-shadow: 0 15px 50px #0008; transform: translateY(100px); opacity: 0; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; }.live-state { display:none; } }
@media (max-width: 640px) { .password-row,.filters { grid-template-columns: 1fr; }.primary { min-height: 48px; }.stats { grid-template-columns: 1fr 1fr; }.stats article { padding: 15px; min-height: 90px; }.stats strong { font-size: 24px; }.hero { align-items: start; }.hero h1 { font-size: 38px; }.refresh-button { font-size: 0; width: 44px; padding: 0; }.refresh-button span { margin: 0; font-size: 20px; }.detail-grid { grid-template-columns: 1fr; }.topbar { height: 66px; }.brand-lockup .eyebrow { display:none; } }
