
    :root { color-scheme: dark; --bg:#0f1419; --panel:#171e26; --panel-2:#1d2731; --line:#2b3742; --text:#e8eef3; --muted:#8b9aa7; --accent:#e6a45f; --accent-2:#7cc4b4; --danger:#e77c7c; --ok:#83cf9b; --shadow:0 18px 48px rgba(0,0,0,.22); }
    * { box-sizing:border-box; }
    body { margin:0; min-width:1080px; background:var(--bg); color:var(--text); font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
    button,input,textarea,select { font:inherit; }
    button { border:1px solid var(--line); color:var(--text); background:#202b35; padding:8px 12px; border-radius:6px; cursor:pointer; transition:.18s ease; }
    button:hover { border-color:#70818f; background:#2a3844; }
    button.primary { color:#161a1e; background:var(--accent); border-color:var(--accent); font-weight:700; }
    button.primary:hover { background:#f1b976; }
    button.danger { color:#ffd7d7; border-color:#744349; background:#3a252b; }
    button:disabled { cursor:not-allowed; opacity:.48; }
    input,textarea,select { width:100%; background:#10171d; color:var(--text); border:1px solid var(--line); border-radius:5px; padding:8px 10px; outline:none; }
    input:focus,textarea:focus,select:focus { border-color:var(--accent-2); box-shadow:0 0 0 2px rgba(124,196,180,.12); }
    textarea { min-height:112px; resize:vertical; }
    .shell { display:grid; grid-template-columns:252px 1fr; min-height:100vh; }
    .sidebar { border-right:1px solid var(--line); background:#121920; padding:24px 16px; display:flex; flex-direction:column; gap:22px; }
    .brand { display:flex; align-items:center; gap:10px; padding:0 8px; }
    .brand-mark { width:34px; height:34px; display:grid; place-items:center; background:var(--accent); color:#161a1e; font-weight:900; border-radius:8px; }
    .brand strong { display:block; font-size:16px; letter-spacing:.02em; }
    .brand small { color:var(--muted); }
    nav { display:grid; gap:5px; }
    nav button { text-align:left; border-color:transparent; background:transparent; color:#b5c0c9; }
    nav button.active,nav button:hover { color:var(--text); background:#202b35; border-color:var(--line); }
    .side-note { margin-top:auto; border-top:1px solid var(--line); padding:16px 8px 0; color:var(--muted); font-size:12px; }
    .main { padding:24px 28px 36px; max-width:1680px; width:100%; }
    .topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:22px; }
    h1,h2,h3,p { margin:0; }
    h1 { font-size:24px; letter-spacing:-.02em; }
    h2 { font-size:17px; }
    h3 { font-size:14px; }
    .subtitle { color:var(--muted); margin-top:4px; }
    .status-chip { display:flex; align-items:center; gap:9px; color:var(--muted); background:var(--panel); border:1px solid var(--line); border-radius:999px; padding:7px 12px; white-space:nowrap; }
    .dot { width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px rgba(131,207,155,.12); }
    .dot.busy { background:var(--accent); box-shadow:0 0 0 4px rgba(230,164,95,.12); }
    .view { display:none; }
    .view.active { display:block; }
    .grid { display:grid; gap:16px; }
    .grid.two { grid-template-columns:minmax(0,1.45fr) minmax(350px,.85fr); }
    .grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow); }
    .panel-head { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px 18px; border-bottom:1px solid var(--line); }
    .panel-body { padding:18px; }
    .toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
    .toolbar .grow { flex:1; min-width:220px; }
    .hint { color:var(--muted); font-size:12px; }
    .field { display:grid; gap:6px; margin-bottom:13px; }
    .field label { color:#c7d1d9; font-size:12px; }
    .field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .field-row.three { grid-template-columns:repeat(3,1fr); }
    .account-table { width:100%; border-collapse:collapse; }
    .account-table th,.account-table td { padding:11px 10px; border-bottom:1px solid #26313b; text-align:left; vertical-align:middle; }
    .account-table th { color:var(--muted); font-size:12px; font-weight:500; }
    .account-table tr:last-child td { border-bottom:0; }
    .account-table tbody tr:hover { background:#1b252e; }
    .account-table td:first-child { width:34px; }
    .account-table input[type=checkbox] { width:15px; height:15px; accent-color:var(--accent); }
    .uid { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; color:#f2d0a1; }
    .tag { display:inline-flex; align-items:center; padding:3px 7px; border-radius:4px; background:#26343e; color:#bdcbd5; font-size:12px; }
    .tag.ok { color:#bce9c7; background:#1d3a2a; }
    .tag.warn { color:#f4d8aa; background:#3a3021; }
    .tag.err { color:#ffc1c1; background:#42262b; }
    .empty { text-align:center; color:var(--muted); padding:42px 18px; }
    .stat { padding:17px 18px; }
    .stat small { color:var(--muted); }
    .stat strong { display:block; font-size:26px; margin-top:4px; }
    .progress-wrap { margin-top:14px; background:#10171d; height:8px; border-radius:99px; overflow:hidden; }
    .progress { height:100%; background:var(--accent); width:0; transition:width .25s ease; }
    .log { height:370px; overflow:auto; background:#0d1318; padding:13px; font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:pre-wrap; }
    .log .time { color:#6f7e89; }
    .log .error { color:#ffaaa7; }
    .log .success { color:#a8e3b7; }
    .split { display:flex; justify-content:space-between; align-items:center; gap:10px; }
    .stack { display:grid; gap:12px; }
    .check { display:flex; align-items:center; gap:8px; color:#c7d1d9; }
    .check input { width:16px; height:16px; accent-color:var(--accent); }
    .models { max-height:250px; overflow:auto; border:1px solid var(--line); border-radius:5px; }
    .models label { display:flex; align-items:flex-start; gap:8px; padding:10px; border-bottom:1px solid #26313b; cursor:pointer; }
    .models label:last-child { border-bottom:0; }
    .models input { width:16px; margin-top:3px; }
    .toast { position:fixed; right:24px; bottom:24px; z-index:5; max-width:420px; padding:12px 15px; background:#273641; color:var(--text); border:1px solid #506674; border-radius:6px; box-shadow:var(--shadow); opacity:0; transform:translateY(8px); pointer-events:none; transition:.2s; }
    .toast.show { opacity:1; transform:none; }
    .danger-text { color:var(--danger); }
    @media (max-width:1200px) { body { min-width:0; } .shell { grid-template-columns:1fr; } .sidebar { position:static; border-right:0; border-bottom:1px solid var(--line); padding:14px 18px; } nav { display:flex; overflow:auto; } nav button { white-space:nowrap; } .side-note { display:none; } .main { padding:18px; } .grid.two { grid-template-columns:1fr; } }
  
[data-layout="layout-0"] {margin-top:16px}
[data-layout="layout-1"] {margin-top:17px}
[data-layout="layout-2"] {margin-top:12px}
[data-layout="layout-3"] {margin-top:13px}
[data-layout="layout-4"] {margin-top:14px}
[data-layout="layout-5"] {border:0;border-top:1px solid var(--line);margin:20px 0}
[data-layout="layout-6"] {margin-top:10px}
[hidden] { display:none !important; }
.login-screen { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { display:grid; gap:16px; width:min(420px,100%); padding:34px; background:var(--panel); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.login-card .brand-mark { margin-bottom:4px; }
.button-link { display:inline-block; color:var(--text); padding:8px 12px; text-decoration:none; border:1px solid var(--line); border-radius:6px; }
.upload-controls { display:flex; gap:6px; align-items:center; margin-top:4px; }
.upload-controls button { padding:5px 9px; font-size:12px; }
.note { margin-top:12px; }
.upload-status { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); padding:12px 20px; background:var(--panel-2); border:1px solid var(--accent); border-radius:8px; z-index:10; }
dialog { padding:0; width:min(900px,90vw); max-height:85vh; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:10px; }
dialog::backdrop { background:rgba(0,0,0,.7); }
pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:60vh; overflow:auto; }
.log { overflow-wrap:anywhere; }
.account-table td { max-width:240px; overflow-wrap:anywhere; }
.toolbar select { width:auto; }
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }
.table-scroll { overflow:auto; }
