      :root {
        --bg: #f3f5f8;
        --panel: #ffffff;
        --panel-soft: #f8fafc;
        --line: #d8dee8;
        --text: #172033;
        --muted: #667085;
        --accent: #2563eb;
        --accent-soft: #eaf1ff;
        --ok: #15803d;
        --bad: #b42318;
        --run: #a16207;
        --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
      }
      * { box-sizing: border-box; }
      [hidden] { display: none !important; }
      body { margin: 0; font-family: "Microsoft YaHei", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
      button, input, select, textarea { font: inherit; }
      button { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 6px; padding: 8px 13px; cursor: pointer; white-space: nowrap; }
      button:hover:not(:disabled) { filter: brightness(.96); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .18); }
      button:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
      button.secondary { background: #fff; color: var(--accent); }
      button.ghost { border-color: var(--line); background: #fff; color: var(--text); }
      button.danger { border-color: var(--bad); background: var(--bad); color: #fff; }
      button:disabled { opacity: .55; cursor: not-allowed; }
      .project-row-actions,.detail-title-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
      .project-row-actions button { padding: 6px 9px; font-size: 12px; }
      input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: #fff; color: var(--text); }
      input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37, 99, 235, .18); border-color: var(--accent); }
      textarea { min-height: 180px; resize: vertical; line-height: 1.65; }
      label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px; }
      h1, h2, h3 { margin: 0; }
      h1 { font-size: 18px; }
      h2 { font-size: 22px; }
      h3 { font-size: 15px; }
      .meta, .page-subtitle { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
      .page-subtitle { margin-top: 6px; }

      .app-shell { min-height: 100vh; display: grid; grid-template-rows: 56px minmax(0, 1fr); }
      .topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
        padding: 0 18px;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
      }
      .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
      .app-version { color: var(--muted); font-size: 12px; font-weight: 600; }
      .brand-mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
      .brand-logo { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 8px 18px rgba(37, 99, 235, .22); }
      .license-logo { width: 42px; height: 42px; border-radius: 11px; }
      .top-nav { display: flex; gap: 4px; align-items: center; }
      .top-nav button { border-color: transparent; background: transparent; color: var(--muted); padding: 8px 12px; }
      .top-nav button.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
      .top-actions { display: flex; gap: 8px; align-items: center; }
      .service-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
      .toast-stack { position: fixed; right: 18px; top: 72px; z-index: 1000; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
      .toast { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; line-height: 1.45; pointer-events: auto; }
      .toast.success { border-left-color: var(--ok); }
      .toast.error { border-left-color: var(--bad); }
      .workspace { min-height: 0; }
      .screen { display: none; min-height: calc(100vh - 56px); }
      .screen.active { display: grid; }
      body.license-lock .app-shell { display: block; min-height: 100vh; }
      body.license-lock .topbar { display: none; }
      body.license-lock .workspace { min-height: 100vh; }
      body.license-lock .screen { min-height: 100vh; }

.wide-content{padding:24px;max-width:none;margin:auto;width:100%}.page-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:18px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
table{width:100%;border-collapse:collapse}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}th{background:var(--panel-soft);color:var(--muted);font-size:13px}
dialog{border:1px solid var(--line);border-radius:12px;padding:22px;max-height:90vh;overflow:auto;width:min(780px,95vw)}dialog::backdrop{background:#0f172a66}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.dialog-close{background:white;border-color:var(--line);color:var(--text)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-help{color:var(--muted);font-size:12px;line-height:1.5}.meta{line-height:1.6}.dialog-card{width:100%}input[type=checkbox]{width:auto}
