:root { color-scheme: dark; --bg: #070b18; --bg-soft: #0b1122; --card: rgba(17, 24, 45, 0.82); --card-solid: #11182d; --border: rgba(148, 163, 184, 0.16); --border-strong: rgba(148, 163, 184, 0.28); --text: #e5eefc; --muted: #8b9bb7; --faint: #61708c; --cyan: #22d3ee; --cyan-strong: #06b6d4; --indigo: #6366f1; --green: #34d399; --red: #fb7185; --amber: #fbbf24; --radius: 14px; --shadow: 0 22px 60px rgba(0, 0, 0, 0.38); --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text); background: radial-gradient(1100px 600px at 10% -10%, rgba(34, 211, 238, 0.14), transparent 55%), radial-gradient(900px 600px at 100% 0%, rgba(99, 102, 241, 0.18), transparent 50%), linear-gradient(180deg, #080d1c 0%, #070b18 55%, #060916 100%); overflow: hidden; } button, input, select, textarea { font: inherit; } code { font-family: var(--mono); font-size: 0.92em; color: #a5f3fc; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.16); padding: 0.08em 0.4em; border-radius: 6px; word-break: break-all; } .app { height: 100vh; display: flex; flex-direction: column; } .titlebar { -webkit-app-region: drag; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); background: linear-gradient(180deg, rgba(11, 17, 34, 0.65), rgba(11, 17, 34, 0.18)); backdrop-filter: blur(18px); } /* Leave room for macOS traffic lights when using hiddenInset. */ html.mac .titlebar { padding-left: 88px; } .brand { display: flex; align-items: center; gap: 14px; min-width: 0; } .logo { width: 46px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 8px 20px rgba(34, 211, 238, 0.18)); } .logo svg { width: 100%; height: 100%; display: block; } .brand-text h1 { margin: 0; font-size: 18px; letter-spacing: 0.2px; font-weight: 650; } .brand-text p { margin: 3px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0.3px; } .header-actions { -webkit-app-region: no-drag; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; } .pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); background: rgba(15, 23, 42, 0.7); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.08); } .pill-ok { color: #bbf7d0; border-color: rgba(52, 211, 153, 0.28); background: rgba(16, 185, 129, 0.08); } .pill-ok::before { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); } .pill-warn { color: #fde68a; border-color: rgba(251, 191, 36, 0.26); background: rgba(251, 191, 36, 0.07); } .pill-warn::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12); } .pill-bad { color: #fecdd3; border-color: rgba(251, 113, 133, 0.28); background: rgba(251, 113, 133, 0.08); } .pill-bad::before { background: var(--red); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12); } .layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 14px; padding: 14px 22px 10px; overflow: hidden; } .column { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; padding-right: 2px; } .column::-webkit-scrollbar { width: 10px; } .column::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } .card { background: linear-gradient(180deg, rgba(17, 24, 45, 0.88), rgba(13, 19, 36, 0.86)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; } .card h2 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: 0.6px; color: #c7d2fe; text-transform: uppercase; } .muted { color: var(--muted); font-size: 12px; } .hint { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); } .row { display: flex; gap: 10px; align-items: stretch; } .select, input[type="text"] { width: 100%; min-width: 0; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(8, 13, 26, 0.9); color: var(--text); padding: 0 12px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; } .select:focus, input[type="text"]:focus { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); } .select option { background: #0d1427; color: var(--text); } button { border: 1px solid transparent; border-radius: 10px; height: 38px; padding: 0 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease; white-space: nowrap; } button:active { transform: translateY(1px); } button:disabled { cursor: not-allowed; opacity: 0.45; } .primary { color: #052027; background: linear-gradient(135deg, #67e8f9, #22d3ee 55%, #06b6d4); box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18); } .primary:hover:not(:disabled) { background: linear-gradient(135deg, #a5f3fc, #67e8f9 55%, #22d3ee); } .secondary { color: #dbeafe; background: rgba(30, 41, 59, 0.9); border-color: var(--border-strong); } .secondary:hover:not(:disabled) { background: rgba(51, 65, 85, 0.95); } .ghost { color: var(--muted); background: transparent; border-color: transparent; } .ghost:hover:not(:disabled) { color: var(--text); background: rgba(148, 163, 184, 0.08); } .small { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; } .danger { color: #fff1f2; background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 12px 28px rgba(225, 29, 72, 0.18); } .link { height: auto; padding: 0; border: 0; background: none; color: var(--cyan); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } .link:hover { color: #a5f3fc; } .dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px; border: 1px dashed rgba(148, 163, 184, 0.35); border-radius: 12px; background: radial-gradient(300px 120px at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%), rgba(8, 13, 26, 0.48); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; padding: 16px; text-align: center; } .dropzone:hover, .dropzone.dragover { border-color: rgba(34, 211, 238, 0.65); background: radial-gradient(340px 150px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%), rgba(8, 13, 26, 0.62); } .dropzone:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.55); outline-offset: 2px; } .drop-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.22); font-size: 18px; } .drop-text { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; justify-content: center; font-size: 13px; color: #dbeafe; } .drop-text span { color: var(--muted); } .path { margin: 2px 0 0; font-family: var(--mono); font-size: 11px; color: var(--faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fw-info { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; border: 1px solid var(--border); background: rgba(15, 23, 42, 0.72); color: #cbd5e1; } .chip strong { color: var(--cyan); font-weight: 650; } .chip.ok { border-color: rgba(52, 211, 153, 0.25); background: rgba(16, 185, 129, 0.08); color: #bbf7d0; } .chip.warn { border-color: rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.07); color: #fde68a; } .error { margin: 10px 0 0; color: #fecdd3; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; } .hidden { display: none !important; } .segmented { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(8, 13, 26, 0.7); border: 1px solid var(--border); margin-bottom: 14px; } .segmented button { flex: 1; height: 34px; background: transparent; border: 0; color: var(--muted); border-radius: 8px; font-size: 12.5px; } .segmented button.active { color: #03171c; background: linear-gradient(135deg, #67e8f9, #22d3ee); box-shadow: 0 8px 22px rgba(34, 211, 238, 0.15); } .option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; } .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field > span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.2px; } .field em { font-style: normal; color: var(--faint); } .input-row { display: flex; gap: 8px; } .input-row input { flex: 1; } .checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; } .checkbox input { width: 16px; height: 16px; accent-color: var(--cyan); } .field-inline { align-self: end; height: 38px; } .tip { margin-top: 14px; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(99, 102, 241, 0.22); background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.05)); font-size: 12px; line-height: 1.55; color: #c7d2fe; } .tip strong { color: #e0e7ff; } .action-card { display: flex; flex-direction: column; gap: 12px; } .top-action { height: 34px; padding: 0 16px; border-radius: 9px; font-size: 12.5px; } .progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; } #stage { color: #dbeafe; font-weight: 600; } #percent { font-family: var(--mono); color: var(--cyan); font-size: 12px; } .bar { height: 9px; border-radius: 999px; background: rgba(8, 13, 26, 0.9); border: 1px solid var(--border); overflow: hidden; margin-top: 9px; } #bar-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #6366f1); box-shadow: 0 0 18px rgba(34, 211, 238, 0.35); transition: width 0.25s ease; } #bar-fill.error { background: linear-gradient(90deg, #fb7185, #e11d48); box-shadow: 0 0 18px rgba(251, 113, 133, 0.3); } #bar-fill.success { background: linear-gradient(90deg, #34d399, #10b981); box-shadow: 0 0 18px rgba(52, 211, 153, 0.3); } .message { margin: 9px 0 0; min-height: 18px; font-size: 12px; color: var(--muted); line-height: 1.5; } .actions { display: flex; gap: 10px; } .actions .primary, .actions .danger { flex: 1; height: 42px; font-size: 14px; } .warning { margin: 0; text-align: center; font-size: 11px; color: rgba(251, 191, 36, 0.8); } .models-card summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; display: flex; justify-content: space-between; gap: 10px; } .models-card summary::-webkit-details-marker { display: none; } .models-card summary::after { content: "▾"; color: var(--faint); } .models-card[open] summary::after { content: "▴"; } .models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .model { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: rgba(8, 13, 26, 0.55); min-width: 140px; } .model strong { font-size: 12px; color: #dbeafe; font-weight: 600; } .model span { font-size: 10.5px; color: var(--faint); } .log-card { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-bottom: 10px; } .log-actions { display: flex; gap: 2px; } .log { flex: 1; min-height: 0; margin: 0; padding: 12px; overflow: auto; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.1); background: rgba(4, 8, 17, 0.82); font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: #b6c6e2; white-space: pre-wrap; word-break: break-word; } .log .line { display: block; } .log .t { color: #4b5b76; margin-right: 8px; } .log .info { color: #c7d2fe; } .log .ok { color: #86efac; } .log .warn { color: #fde68a; } .log .err { color: #fecdd3; } .log .cmd { color: #67e8f9; } .log .muted { color: #64748b; } .log::-webkit-scrollbar { width: 10px; } .log::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } .footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 28px 12px; font-size: 11px; color: var(--faint); border-top: 1px solid rgba(148, 163, 184, 0.06); } .footer a { color: #7dd3fc; text-decoration: none; } .footer a:hover { text-decoration: underline; } .toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(680px, 86vw); padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.96); color: #e2e8f0; font-size: 12.5px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); z-index: 50; animation: toast-in 0.18s ease-out; } .toast.err { border-color: rgba(251, 113, 133, 0.4); color: #ffe4e6; } .toast.ok { border-color: rgba(52, 211, 153, 0.35); color: #dcfce7; } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } } .modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2, 6, 16, 0.72); backdrop-filter: blur(10px); } .modal-card { width: min(560px, 92vw); border-radius: 16px; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #111a30, #0b1122); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); padding: 22px 24px; } .modal-card h2 { margin: 0 0 10px; font-size: 17px; } .modal-card p, .modal-card li { color: var(--muted); font-size: 12.5px; line-height: 1.7; } .modal-card ol { margin: 8px 0 14px; padding-left: 20px; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; } @media (max-width: 980px) { .layout { grid-template-columns: 1fr; overflow: auto; } .column { overflow: visible; } .log-card { min-height: 320px; } .titlebar { padding-left: 26px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }