:root {
  --ink: #0c1727;
  --ink-2: #16243a;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --line: #dce4ef;
  --muted: #6d7b8e;
  --blue: #1677ff;
  --cyan: #20b8f0;
  --lime: #c9f43f;
  --green: #19a974;
  --orange: #ff9f43;
  --red: #e5484d;
  --shadow: 0 18px 60px rgba(12, 23, 39, 0.12);
  font-family: Bahnschrift, "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.muted { color: var(--muted); }
.online-dot { width: 9px; height: 9px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(201,244,63,.14); display: inline-block; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.1fr) minmax(420px, .9fr); background: var(--ink); overflow: hidden; }
.login-brand { position: relative; padding: clamp(60px,9vw,150px); color: white; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.login-brand::before { content:""; position:absolute; inset:-20%; z-index:-1; background: radial-gradient(circle at 28% 45%, rgba(32,184,240,.25), transparent 28%), linear-gradient(135deg, transparent 43%, rgba(201,244,63,.08) 43% 44%, transparent 44% 51%, rgba(32,184,240,.10) 51% 52%, transparent 52%); }
.login-brand h1 { font-size: clamp(42px,6vw,78px); line-height:.98; margin: 20px 0 25px; letter-spacing:-.06em; max-width: 620px; }
.brand-copy { color:#b7c4d6; max-width: 490px; font-size: 17px; line-height:1.8; }
.brand-mark { width: 42px; height:42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); background:var(--lime); color:var(--ink); font-weight:900; letter-spacing:-.08em; clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 24% 100%, 0 76%); }
.brand-mark.large { width: 58px; height:58px; font-size:20px; }
.signal-lines { display:flex; gap:9px; align-items:end; height:72px; margin-top:45px; }
.signal-lines i { width:5px; background:linear-gradient(var(--lime),var(--cyan)); animation:pulse 1.8s ease-in-out infinite; }
.signal-lines i:nth-child(1){height:18px}.signal-lines i:nth-child(2){height:48px;animation-delay:.15s}.signal-lines i:nth-child(3){height:30px;animation-delay:.3s}.signal-lines i:nth-child(4){height:66px;animation-delay:.45s}.signal-lines i:nth-child(5){height:38px;animation-delay:.6s}
@keyframes pulse { 0%,100%{opacity:.45;transform:scaleY(.7)}50%{opacity:1;transform:scaleY(1)} }
.login-panel { background:#eef3f9; display:grid; place-items:center; padding:50px; position:relative; }
.login-panel::after { content:""; position:absolute; inset:24px; border:1px solid rgba(12,23,39,.08); pointer-events:none; }
.login-card { width:min(440px,100%); position:relative; z-index:1; }
.login-card h2 { font-size:36px; margin:18px 0 8px; letter-spacing:-.04em; }
.login-card label, .field { display:grid; gap:8px; margin-top:22px; font-size:13px; font-weight:700; color:#445166; }
input, select, textarea { width:100%; border:1px solid var(--line); background:#fff; border-radius:7px; padding:12px 13px; outline:none; color:var(--ink); transition:.18s border-color,.18s box-shadow; }
input:focus,select:focus,textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,119,255,.10); }
textarea { min-height:95px; resize:vertical; }
.login-card input { padding:16px 15px; background:rgba(255,255,255,.84); }
.form-error { min-height:20px; color:var(--red); font-size:13px; }

.btn { border:0; border-radius:6px; padding:10px 16px; font-weight:750; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:.18s transform,.18s background,.18s box-shadow; }
.btn:hover { transform:translateY(-1px); }
.btn.primary { color:white; background:var(--blue); box-shadow:0 7px 20px rgba(22,119,255,.2); }
.btn.primary:hover { background:#0667e8; }
.btn.secondary { background:var(--ink); color:white; }
.btn.ghost { color:#506078; background:#fff; border:1px solid var(--line); }
.btn.danger { color:white; background:var(--red); }
.btn.full { width:100%; padding:15px; margin-top:28px; justify-content:space-between; }
.btn.small { padding:7px 10px; font-size:12px; }
.danger-text { color:var(--red)!important; }

.app-shell { min-height:100vh; display:grid; grid-template-columns:232px 1fr; }
.sidebar { position:fixed; inset:0 auto 0 0; width:232px; background:var(--ink); color:white; padding:24px 17px; display:flex; flex-direction:column; z-index:10; overflow:hidden; }
.sidebar::after { content:""; position:absolute; width:220px; height:220px; border:1px solid rgba(201,244,63,.09); transform:rotate(45deg); bottom:-120px; right:-120px; }
.brand-row { display:flex; gap:12px; align-items:center; padding:0 8px 28px; border-bottom:1px solid rgba(255,255,255,.09); }
.brand-row strong { display:block; font-size:16px; }.brand-row small{display:block;color:#7f91a9;font-size:9px;letter-spacing:.14em;margin-top:4px}
#nav { display:grid; gap:7px; margin-top:26px; }
.nav-btn { border:0; background:transparent; color:#98a8bc; border-radius:6px; padding:12px 13px; display:flex; align-items:center; gap:13px; text-align:left; font-weight:650; position:relative; }
.nav-btn:hover { background:rgba(255,255,255,.05); color:white; }
.nav-btn.active { color:white; background:rgba(32,184,240,.12); }
.nav-btn.active::before { content:""; position:absolute; left:0; width:3px; height:22px; background:var(--lime); }
.nav-icon { width:22px; color:var(--cyan); font-size:18px; text-align:center; }
.side-status { margin-top:auto; display:flex; gap:12px; align-items:center; padding:14px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:8px; position:relative; z-index:1; }
.side-status strong,.side-status small{display:block}.side-status strong{font-size:12px}.side-status small{font-size:10px;color:#7f91a9;margin-top:3px;letter-spacing:.08em}
.workspace { grid-column:2; min-width:0; }
.topbar { height:92px; background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); padding:0 30px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:8; backdrop-filter:blur(18px); }
.topbar h1 { margin:0; font-size:24px; letter-spacing:-.04em; }
.top-actions { display:flex; align-items:center; gap:10px; position:relative; }
.icon-btn { width:40px;height:40px;border:1px solid var(--line);background:white;border-radius:6px;font-size:20px;color:#536278; }
.user-chip { border:0;background:#f1f5fa;border-radius:7px;padding:6px 10px 6px 6px;display:flex;align-items:center;gap:9px;text-align:left;color:var(--ink); }
.user-chip>span { width:34px;height:34px;display:grid;place-items:center;background:var(--ink);color:var(--lime);border-radius:5px;font-weight:900; }
.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:12px}.user-chip small{font-size:10px;color:var(--muted);margin-top:2px}.user-chip b{font-size:12px;color:var(--muted)}
.user-menu { position:absolute; right:0; top:52px; width:160px; background:white; border:1px solid var(--line); box-shadow:var(--shadow); border-radius:7px; padding:6px; }
.user-menu button { border:0; background:transparent; width:100%; text-align:left; padding:10px; border-radius:5px; color:#415067; }
.user-menu button:hover { background:#f2f6fa; }
#content { padding:28px 30px 50px; }

.hero-strip { position:relative; overflow:hidden; background:var(--ink); color:white; border-radius:9px; padding:26px 30px; display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.hero-strip::after { content:""; position:absolute; right:-60px; width:360px; height:180px; background:repeating-linear-gradient(115deg,transparent 0 18px,rgba(201,244,63,.12) 18px 20px); transform:skewX(-12deg); }
.hero-strip h2 { margin:0 0 8px; font-size:25px; }.hero-strip p{margin:0;color:#a9b8ca;font-size:13px}.hero-strip .hero-data{position:relative;z-index:1;text-align:right}.hero-data strong{font-size:28px;color:var(--lime);display:block}.hero-data span{font-size:10px;letter-spacing:.14em;color:#8fa2b9}
.stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.stat-card { background:white;border:1px solid var(--line);border-radius:8px;padding:19px;position:relative;overflow:hidden; }
.stat-card::after { content:""; position:absolute; right:-16px; top:-16px; width:55px;height:55px;border:9px solid var(--tone,#1677ff);opacity:.08;transform:rotate(45deg); }
.stat-card span{font-size:12px;color:var(--muted)}.stat-card strong{font-size:29px;display:block;margin:10px 0 6px;letter-spacing:-.05em}.stat-card small{font-size:11px;color:var(--green)}
.panel { background:white;border:1px solid var(--line);border-radius:8px;margin-bottom:18px; }
.panel-header { padding:18px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px; }
.panel-header h2 { margin:0;font-size:16px; }.panel-header p{margin:4px 0 0;color:var(--muted);font-size:11px}
.toolbar { padding:16px 19px;display:flex;gap:10px;flex-wrap:wrap;align-items:end;border-bottom:1px solid var(--line);background:#fbfcfe; }
.toolbar .field { margin:0;min-width:150px;gap:5px;font-size:11px; }.toolbar input,.toolbar select{padding:9px 10px}
.toolbar-actions { margin-left:auto;display:flex;gap:8px; }
.table-wrap { overflow:auto; }
table { width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px; }
th { text-align:left;padding:12px 14px;background:#f5f7fa;color:#526178;font-size:11px;letter-spacing:.02em;border-bottom:1px solid var(--line); }
td { padding:13px 14px;border-bottom:1px solid #e8edf4;color:#3e4b5d;vertical-align:middle; }
tbody tr:hover { background:#f8fbff; }
tbody tr:last-child td { border-bottom:0; }
.product-tag { color:#08755a;background:#e5f8ef;border:1px solid #c4efdb;padding:5px 8px;border-radius:5px;font-weight:750; }
.account-code { font-family:Consolas,monospace;font-weight:700;color:var(--ink); }
.status { display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:700; }
.status::before { content:"";width:6px;height:6px;border-radius:50%;background:currentColor; }
.status.active{color:#08755a;background:#e5f8ef}.status.pending_binding{color:#8a6500;background:#fff4cc}.status.expired{color:#a65100;background:#fff0df}.status.disabled{color:#a62d32;background:#ffe7e8}
.row-actions { display:flex;gap:4px; }.text-btn{border:0;background:transparent;color:var(--blue);font-size:12px;padding:5px}.text-btn:hover{background:#edf5ff;border-radius:4px}.text-btn.danger{color:var(--red)}
.empty { padding:54px!important;text-align:center;color:var(--muted); }.empty strong{display:block;color:#405067;margin-bottom:8px;font-size:15px}
.pagination { padding:13px 18px;display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line);color:var(--muted);font-size:11px; }
.pagination button { border:1px solid var(--line);background:white;border-radius:4px;padding:6px 9px;color:#4d5c70}.pagination button:disabled{opacity:.4;cursor:not-allowed}
.mono { font-family:Consolas,monospace; }.subtle{color:var(--muted);font-size:10px;margin-top:3px;display:block}.positive{color:var(--green)}.negative{color:var(--red)}

.modal-layer,.confirm-layer { position:fixed;inset:0;background:rgba(7,15,27,.68);z-index:100;display:grid;place-items:center;padding:24px;backdrop-filter:blur(5px); }
.modal-card { width:min(760px,100%);max-height:calc(100vh - 48px);background:white;border-radius:9px;box-shadow:0 28px 100px rgba(0,0,0,.35);overflow:auto; }
.modal-card>header { padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:start;position:sticky;top:0;background:white;z-index:2; }
.modal-card h2{margin:0;font-size:23px}.modal-close{border:0;background:transparent;font-size:28px;color:#8290a2;line-height:1}.modal-body{padding:22px 24px}.modal-card footer{padding:17px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:0;background:white}
.form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px; }.form-grid .field{margin:0}.form-grid .span-2{grid-column:span 2}.required{position:relative}.required::before{content:"*";position:absolute;left:-10px;top:1px;color:var(--red)}
.modal-layer[data-locked="1"] .modal-close,.modal-layer[data-locked="1"] .modal-cancel{display:none}
.quick-days { display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.quick-days button{border:1px solid #bcd6fa;color:var(--blue);background:#edf5ff;border-radius:4px;padding:7px 12px;font-size:12px;font-weight:700}.quick-days button:hover{background:var(--blue);color:white}
.key-box { background:var(--ink);color:white;border-radius:7px;padding:15px;margin-top:14px;word-break:break-all;font-family:Consolas,monospace;position:relative}.key-box button{position:absolute;right:8px;top:8px}.notice{border-left:3px solid var(--orange);background:#fff8ea;padding:11px 13px;color:#705522;font-size:12px;line-height:1.6;margin-bottom:15px}
.confirm-card{width:min(400px,100%);background:white;border-radius:9px;padding:28px;text-align:center;box-shadow:var(--shadow)}.warning-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#fff0df;color:#d36a00;font-size:24px;font-weight:900;margin:0 auto 15px}.confirm-card h3{margin:0 0 9px}.confirm-card p{color:var(--muted);font-size:13px;line-height:1.6}.confirm-card>div:last-child{display:flex;justify-content:center;gap:9px;margin-top:20px}
.toast { position:fixed;right:24px;bottom:24px;z-index:200;background:var(--ink);color:white;border-left:4px solid var(--lime);padding:13px 17px;border-radius:6px;box-shadow:var(--shadow);font-size:13px;max-width:380px;animation:toastin .22s ease-out}.toast.error{border-color:var(--red)}@keyframes toastin{from{transform:translateY(15px);opacity:0}}

@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(2,1fr)}.app-shell{grid-template-columns:76px 1fr}.sidebar{width:76px;padding:20px 10px}.brand-row>div:last-child,.nav-btn span:last-child,.side-status>div{display:none}.brand-row{padding:0 7px 25px}.nav-btn{justify-content:center;padding:12px}.workspace{grid-column:2}.side-status{justify-content:center;padding:14px 8px}}
@media(max-width:700px){.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-panel{padding:28px}.app-shell{display:block}.sidebar{position:fixed;inset:auto 10px 10px 10px;width:auto;height:62px;flex-direction:row;padding:7px;z-index:20;border-radius:9px;box-shadow:var(--shadow)}.brand-row,.side-status{display:none}#nav{margin:0;display:flex;width:100%;justify-content:space-around;gap:2px}.nav-btn{flex:1}.workspace{padding-bottom:80px}.topbar{height:78px;padding:0 16px}.top-actions .icon-btn{display:none}.user-chip div,.user-chip b{display:none}#content{padding:18px 14px 30px}.hero-strip{padding:20px}.hero-data{display:none}.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:14px}.stat-card strong{font-size:24px}.toolbar-actions{margin-left:0;width:100%}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:span 1}.modal-layer{padding:10px}.modal-card{max-height:calc(100vh - 20px)}}
