:root { --bg: #0f1419; --surface: #171d25; --surface-2: #1c2430; --fg: #e8eef5; --muted: #8b98a5; --accent: #ff8a65; --accent-2: #3dd6c3; --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --line: #2a3441; --danger: #fb7185; --font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --radius: 12px; } * { box-sizing: border-box; } body { margin: 0; width: 390px; max-height: 600px; overflow: auto; font: 13px/1.45 var(--font); background: radial-gradient(120% 80% at 0% 0%, rgba(255, 138, 101, 0.16), transparent 55%), radial-gradient(90% 70% at 100% 0%, rgba(61, 214, 195, 0.1), transparent 50%), var(--bg); color: var(--fg); } .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; gap: 10px; } .brand { display: flex; align-items: center; gap: 10px; } .brand img { border-radius: 8px; background: var(--surface); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); } .title { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; } .title-ico { color: var(--accent); } .sub { color: var(--muted); font-size: 11px; margin-top: 2px; } .top-right { display: flex; align-items: center; gap: 6px; } .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); } .pill.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); color: var(--ok); } .pill.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); color: var(--warn); } .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } } .account-bar { display: flex; align-items: center; gap: 6px; padding: 0 14px 8px; font-size: 12px; color: var(--muted); } .account-bar > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 10px 8px; } .tabs button { appearance: none; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 10px; padding: 8px 4px; font: 600 11px/1.2 var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease; } .tabs button:hover { color: var(--fg); background: var(--surface-2); } .tabs button.active { color: var(--fg); background: var(--surface); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-1px); } .panel-host { padding: 0 12px 8px; min-height: 180px; } .tab-pane { animation: fadeIn 0.2s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .card { background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; backdrop-filter: blur(8px); } .card h2 { margin: 0 0 4px; font-size: 14px; } .card p { margin: 0 0 10px; color: var(--muted); font-size: 12px; } .chip-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; } .active-chip { border-color: var(--accent) !important; color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 12%, var(--surface)) !important; } .row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; } .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .field { display: grid; gap: 4px; flex: 1; min-width: 100px; font-size: 11px; color: var(--muted); } .field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #121820; color: var(--fg); border-radius: 10px; padding: 8px 10px; font: inherit; outline: none; transition: border-color 0.15s ease; } .field textarea { min-height: 72px; resize: vertical; } .field input:focus, .field textarea:focus { border-color: var(--accent); } button.primary, button.danger, button.ghost { appearance: none; border-radius: 10px; border: 1px solid transparent; padding: 8px 12px; font: 700 12px/1.2 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform 0.12s ease, filter 0.12s ease, background 0.15s ease; } button.primary:hover, button.danger:hover, button.ghost:hover { transform: translateY(-1px); } button.primary { background: linear-gradient(135deg, var(--accent), #ff6b4a); color: #1a1210; } button.danger { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); } button.ghost { background: var(--surface-2); color: var(--fg); border-color: var(--line); } button.sm { padding: 5px 8px; font-size: 11px; } button.icon-btn { padding: 6px; } .jobs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .empty-hint { color: var(--muted); padding: 8px 0; } .job-item { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; } .job-item:hover { background: var(--surface-2); } .job-item.active { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); } .job-item .k { font-weight: 700; font-size: 12px; } .job-item .s { color: var(--muted); font-size: 11px; margin-top: 2px; } .badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); } .badge.completed { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); } .badge.failed, .badge.cancelled { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); } .badge.running, .badge.queued { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); } .result { margin: 0 12px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px; } .result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .result-head strong { display: inline-flex; align-items: center; gap: 6px; } .result-body { font-size: 12px; color: var(--muted); max-height: 140px; overflow: auto; white-space: pre-wrap; } .ok-line { color: var(--ok); font-weight: 700; } .err-line { color: var(--bad); font-weight: 700; } .foot { padding: 6px 14px 12px; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 4px; } .toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(8px); background: #e8eef5; color: #0f1419; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 20; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }