:root { --bg: #f5f6f8; --panel: #ffffff; --text: #1c1f26; --muted: #6b7280; --line: #e4e7ec; --line-strong: #d0d5dd; --accent: #4f46e5; --accent-soft: #eef0ff; --accent-text: #ffffff; --ok: #12a150; --warn: #c27c0e; --warn-soft: #fff6e5; --err: #d92d20; --err-soft: #fdecea; --w: #6366f1; --kv: #f59e0b; --c: #94a3b8; --row-hover: #fafbfc; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); --radius: 10px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color-scheme: light; } @media (prefers-color-scheme: dark) { :root { --bg: #0f1115; --panel: #171a21; --text: #e6e8ec; --muted: #8b93a1; --line: #262b35; --line-strong: #343a46; --accent: #818cf8; --accent-soft: #1f2240; --accent-text: #0f1115; --ok: #3ccf7f; --warn: #f0b33c; --warn-soft: #2b2312; --err: #ff6b5e; --err-soft: #2e1714; --w: #818cf8; --kv: #fbbf24; --c: #64748b; --row-hover: #1b1f27; --shadow: none; color-scheme: dark; } } * { box-sizing: border-box; } html, body { margin: 0; } body { background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } button, input, select, textarea { font: inherit; color: inherit; } [hidden] { display: none !important; } .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 10px; font-size: 16px; } .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; } .logo::before, .logo::after { content: ""; position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 2px; background: var(--accent-text); } .logo::before { bottom: 8px; } .logo::after { bottom: 4px; left: 6px; right: 6px; } .engine-pill { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); } .engine-pill.ok .dot { background: var(--ok); } .engine-pill.err .dot { background: var(--err); } .layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; padding: 16px 20px 40px; align-items: start; } .side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; } .content { min-width: 0; display: flex; flex-direction: column; gap: 12px; } .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; } .card h2 { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .row { display: flex; gap: 8px; align-items: center; } .row > input[type=text], .row > select { flex: 1; min-width: 0; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; } .field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .field b { color: var(--text); font-weight: 600; } .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; } .check input { margin: 2px 0 0; accent-color: var(--accent); } .muted { color: var(--muted); } .hint { margin: 0; font-size: 12px; color: var(--muted); } .hint:empty { display: none; } .hint code, .model-details code { font-family: var(--mono); font-size: 11.5px; background: var(--bg); padding: 1px 4px; border-radius: 4px; word-break: break-all; } input[type=text], input[type=password], input[type=number], input[type=search], select, textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--panel); outline: none; min-width: 0; } input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } textarea { resize: vertical; } .num { width: 96px !important; flex: none; } input[type=range] { flex: 1; accent-color: var(--accent); } .btn { padding: 7px 14px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; white-space: nowrap; font-weight: 500; } .btn:hover:not(:disabled) { border-color: var(--accent); } .btn:disabled { opacity: .5; cursor: default; } .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .btn.primary:hover:not(:disabled) { filter: brightness(1.08); } .btn.danger { color: var(--err); border-color: var(--err); } .btn.ghost { background: transparent; } .btn.small { padding: 4px 10px; font-size: 12px; align-self: flex-start; } .btn.icon { padding: 7px 10px; } .btn.busy { position: relative; color: transparent !important; } .btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .linkbtn { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; } .seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; } .seg button { border: none; background: transparent; padding: 7px 4px; cursor: pointer; font-size: 13px; } .seg button + button { border-left: 1px solid var(--line-strong); } .seg button.active { background: var(--accent); color: var(--accent-text); font-weight: 600; } body[data-engine=ollama] .only-lmstudio, body[data-engine=ollama] .only-openai, body[data-engine=lmstudio] .only-ollama, body[data-engine=lmstudio] .only-openai, body[data-engine=lmstudio] .only-server, body[data-engine=openai] .only-lmstudio, body[data-engine=openai] .only-ollama, body[data-engine=openai] .not-openai { display: none !important; } .model-details { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; } .model-details:empty { display: none; } .badge { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; } .badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.err { background: var(--err-soft); color: var(--err); } .badge:empty { display: none; } .vram { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); } .vram-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .vram-head b { color: var(--text); font-size: 13px; } .vram-bar { position: relative; height: 12px; border-radius: 6px; background: var(--line); display: flex; overflow: visible; } .vram-bar > div[class^=seg] { height: 100%; transition: width .25s; } .vram-bar .seg-w { background: var(--w); border-radius: 6px 0 0 6px; } .vram-bar .seg-kv { background: var(--kv); } .vram-bar .seg-c { background: var(--c); border-radius: 0 6px 6px 0; } .vram-bar .limit { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--err); border-radius: 1px; display: none; } .vram.over .vram-head b { color: var(--err); } .vram-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); } .vram-legend b { color: var(--text); font-weight: 600; } .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; } .sw.w { background: var(--w); } .sw.kv { background: var(--kv); } .sw.c { background: var(--c); } .vram-lines { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; } .vram-lines b { color: var(--text); } .vram-lines .over { color: var(--err); font-weight: 600; } .drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--panel); padding: 48px 20px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer; } .drop.drag { border-color: var(--accent); background: var(--accent-soft); } .drop p { margin: 6px 0; } .drop-icon { width: 44px; height: 52px; margin: 0 auto 10px; border-radius: 6px; border: 2px solid var(--muted); position: relative; opacity: .7; } .drop-icon::before, .drop-icon::after { content: ""; position: absolute; left: 8px; right: 8px; height: 3px; border-radius: 2px; background: var(--muted); } .drop-icon::before { bottom: 16px; } .drop-icon::after { bottom: 9px; right: 14px; } .filebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); } .fileinfo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; } .fileinfo b { word-break: break-all; } .inline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .inline select { width: auto; padding: 3px 6px; } .actions { display: flex; gap: 8px; } .progress { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; } .progress .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } #progressFill { height: 100%; width: 0; background: var(--accent); transition: width .3s; } .progress.done #progressFill { background: var(--ok); } .progress.error #progressFill { background: var(--err); } .pstats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); } .pstats b { color: var(--text); } .tabletools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; } .filters, .export { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .filters input[type=search] { width: 200px; } .export select { width: auto; } .tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); max-height: calc(100vh - 250px); } table.cues { width: 100%; border-collapse: collapse; table-layout: fixed; } .cues thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); } .cues td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: pre-wrap; word-wrap: break-word; } .cues tr:hover td { background: var(--row-hover); } .c-id { width: 52px; } .c-time { width: 104px; } .c-act { width: 40px; } td.id { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; } td.time { color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.5; } td.tr { outline: none; border-left: 2px solid transparent; } td.tr:focus { background: var(--accent-soft); border-left-color: var(--accent); } td.tr.pending { color: var(--muted); font-style: italic; } td.tr.edited { border-left-color: var(--ok); } tr.active td { background: var(--accent-soft); } tr.flagged td.tr { background: var(--warn-soft); } tr.removed td.src, tr.removed td.tr { text-decoration: line-through; opacity: .5; } .badge.song { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); } tr.err td.tr { background: var(--err-soft); } .flags { display: block; margin-top: 4px; } .flags .badge { margin-right: 4px; font-weight: 500; } .rowbtn { border: none; background: none; cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 5px; font-size: 15px; } .rowbtn:hover { color: var(--accent); background: var(--accent-soft); } .rowbtn.busy { animation: spin 1s linear infinite; } .logbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; } .logbox summary { cursor: pointer; font-size: 13px; font-weight: 500; } #log { font-family: var(--mono); font-size: 11.5px; max-height: 240px; overflow: auto; margin-top: 8px; } #log div { padding: 1px 0; } #log .warn { color: var(--warn); } #log .error { color: var(--err); } .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 100; max-width: min(640px, 90vw); box-shadow: 0 8px 24px rgba(0,0,0,.2); } .toast.err { background: var(--err); color: #fff; } @media (max-width: 900px) { .layout { grid-template-columns: 1fr; padding: 12px; } .side { position: static; max-height: none; overflow: visible; } .c-time { width: 0; } td.time, th.c-time { display: none; } .tablewrap { max-height: none; } } /* model downloads */ .pull { border-top: 1px solid var(--line); padding-top: 8px; } .pull summary { cursor: pointer; font-size: 13px; font-weight: 500; } .pull-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; } .pull-body .row > input { flex: 1; min-width: 0; } .chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; } .chip:hover:not(:disabled) { border-color: var(--accent); } .chip:disabled { opacity: .55; cursor: default; } .chip.warn { border-color: color-mix(in srgb, var(--warn) 60%, transparent); } .pull-list { display: flex; flex-direction: column; gap: 8px; } .pull-list:empty { display: none; } .pull-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; } .pull-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .pull-name { font-size: 12px; word-break: break-all; } .pull-item .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; } .pull-item .bar > div { height: 100%; width: 0; background: var(--accent); transition: width .3s; } .pull-item.done .bar > div { background: var(--ok); } .pull-item.error .bar > div { background: var(--err); width: 100% !important; } .pull-item.cancelled .bar > div { background: var(--muted); } .pull-item.indeterminate .bar > div { width: 30% !important; animation: slide 1.2s ease-in-out infinite; } @keyframes slide { from { margin-left: -30%; } to { margin-left: 100%; } } .pull-stats { font-size: 12px; color: var(--muted); } .pull-actions { display: flex; gap: 6px; justify-content: flex-end; } .pull-actions:empty { display: none; } .pull-item.paused .bar > div { background: var(--warn); } .pull-item.error .pull-stats { color: var(--err); }