| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423 |
- :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;
- }
- }
- /* ── Navigation tabs ─────────────────────────────────────────────── */
- .tabs {
- display: flex;
- gap: 4px;
- padding: 0 22px;
- border-bottom: 1px solid rgba(148, 163, 184, 0.08);
- background: rgba(8, 13, 26, 0.35);
- flex: 0 0 auto;
- }
- .tab {
- height: 38px;
- padding: 0 16px;
- border: 0;
- border-bottom: 2px solid transparent;
- border-radius: 0;
- background: transparent;
- color: var(--muted);
- font-size: 12.5px;
- font-weight: 600;
- cursor: pointer;
- }
- .tab:hover {
- color: var(--text);
- background: rgba(148, 163, 184, 0.05);
- }
- .tab.active {
- color: var(--cyan);
- border-bottom-color: var(--cyan);
- }
- .view {
- display: none;
- }
- .view.active {
- display: flex;
- }
- #view-flash.active {
- display: grid;
- }
- .page {
- flex: 1;
- min-height: 0;
- overflow: auto;
- padding: 16px 22px 14px;
- flex-direction: column;
- gap: 14px;
- }
- .page-head {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 18px;
- }
- .page-head h2 {
- margin: 0;
- font-size: 18px;
- font-weight: 650;
- letter-spacing: 0.2px;
- }
- .page-head p {
- margin: 5px 0 0;
- font-size: 12px;
- color: var(--muted);
- line-height: 1.6;
- }
- .page-actions {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- justify-content: flex-end;
- }
- .page-actions .small {
- height: 32px;
- }
- .danger-text {
- color: #fecdd3 !important;
- }
- .danger-text:hover {
- background: rgba(251, 113, 133, 0.1) !important;
- }
- /* ── Project management ──────────────────────────────────────────── */
- .project-layout,
- .resource-layout {
- display: grid;
- grid-template-columns: 270px minmax(0, 1fr);
- gap: 14px;
- min-height: 0;
- flex: 1;
- }
- .project-list-card,
- .resource-categories-card {
- display: flex;
- flex-direction: column;
- min-height: 0;
- padding-bottom: 10px;
- }
- .project-list-card .select {
- margin-bottom: 10px;
- }
- .project-list,
- .resource-categories {
- display: flex;
- flex-direction: column;
- gap: 4px;
- overflow: auto;
- min-height: 0;
- }
- .project-item,
- .resource-category {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 3px;
- width: 100%;
- height: auto;
- min-height: 48px;
- padding: 9px 10px;
- border-radius: 9px;
- border: 1px solid transparent;
- background: transparent;
- color: var(--text);
- text-align: left;
- cursor: pointer;
- }
- .project-item:hover,
- .resource-category:hover {
- background: rgba(148, 163, 184, 0.06);
- }
- .project-item.active,
- .resource-category.active {
- border-color: rgba(34, 211, 238, 0.28);
- background: rgba(34, 211, 238, 0.08);
- }
- .project-item strong,
- .resource-category strong {
- font-size: 12.5px;
- font-weight: 600;
- color: #dbeafe;
- }
- .project-item span,
- .resource-category span {
- font-size: 10.5px;
- color: var(--faint);
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .project-detail-card,
- .resource-detail-card {
- display: flex;
- flex-direction: column;
- min-height: 0;
- overflow: hidden;
- }
- .project-detail-card > .hidden {
- display: none;
- }
- .empty {
- display: grid;
- place-items: center;
- min-height: 240px;
- color: var(--faint);
- font-size: 13px;
- }
- .detail-head {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 14px;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--border);
- margin-bottom: 12px;
- }
- .detail-title {
- min-width: 0;
- }
- .detail-title h2 {
- margin: 0;
- font-size: 17px;
- color: #e0e7ff;
- }
- .detail-title p {
- margin: 4px 0 0;
- font-size: 11.5px;
- color: var(--muted);
- word-break: break-all;
- }
- .project-grid {
- display: grid;
- grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
- gap: 12px;
- min-height: 0;
- }
- .project-info-card,
- .project-editor-card,
- .sub-card {
- border: 1px solid var(--border);
- border-radius: 11px;
- background: rgba(8, 13, 26, 0.42);
- padding: 12px;
- min-height: 0;
- }
- .info-list {
- margin: 0;
- display: grid;
- grid-template-columns: 112px minmax(0, 1fr);
- gap: 7px 10px;
- font-size: 11.5px;
- }
- .info-list dt {
- color: var(--faint);
- }
- .info-list dd {
- margin: 0;
- color: #dbeafe;
- word-break: break-all;
- }
- .code-editor {
- width: 100%;
- height: 300px;
- resize: vertical;
- min-height: 220px;
- border-radius: 9px;
- border: 1px solid var(--border-strong);
- background: rgba(4, 8, 17, 0.9);
- color: #dbeafe;
- padding: 12px;
- font-family: var(--mono);
- font-size: 12px;
- line-height: 1.65;
- outline: none;
- tab-size: 2;
- }
- .code-editor:focus {
- border-color: rgba(34, 211, 238, 0.55);
- box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
- }
- .sub-card {
- margin-top: 12px;
- }
- .file-list {
- max-height: 180px;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
- .file-row {
- display: grid;
- grid-template-columns: 18px minmax(0, 1fr) 80px;
- gap: 8px;
- align-items: center;
- padding: 5px 7px;
- border-radius: 6px;
- font-size: 11.5px;
- color: #cbd5e1;
- cursor: pointer;
- }
- .file-row:hover {
- background: rgba(148, 163, 184, 0.07);
- }
- .file-row.active {
- background: rgba(34, 211, 238, 0.08);
- color: #a5f3fc;
- }
- .file-row .size {
- text-align: right;
- color: var(--faint);
- font-family: var(--mono);
- font-size: 10.5px;
- }
- .project-log,
- .resource-log {
- height: 150px;
- margin-top: 12px;
- flex: 0 0 auto;
- }
- /* ── Resource download ───────────────────────────────────────────── */
- .resource-detail {
- flex: 1;
- min-height: 0;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .resource-child {
- border: 1px solid var(--border);
- border-radius: 10px;
- background: rgba(8, 13, 26, 0.38);
- padding: 11px 12px;
- }
- .resource-child-head {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 12px;
- }
- .resource-child-head h3 {
- margin: 0;
- font-size: 12.5px;
- color: #dbeafe;
- }
- .resource-child-head p {
- margin: 3px 0 0;
- font-size: 10.5px;
- color: var(--faint);
- }
- .resource-versions {
- margin-top: 9px;
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .resource-version {
- border-top: 1px solid rgba(148, 163, 184, 0.1);
- padding-top: 8px;
- }
- .resource-version-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- font-size: 11.5px;
- color: #c7d2fe;
- }
- .resource-files {
- margin-top: 6px;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
- .resource-file {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 92px;
- gap: 8px;
- font-size: 10.5px;
- color: var(--faint);
- padding: 2px 0;
- }
- .resource-file span:first-child {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .resource-file span:last-child {
- text-align: right;
- font-family: var(--mono);
- }
- .resource-progress-card {
- flex: 0 0 auto;
- }
- .resource-progress-card .resource-log {
- height: 120px;
- }
- .path-inline {
- max-width: 55%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-family: var(--mono);
- font-size: 10.5px;
- }
- /* ── MCP page ────────────────────────────────────────────────────── */
- .mcp-card {
- flex: 0 0 auto;
- }
- .code-block {
- margin: 10px 0 0;
- padding: 14px;
- border-radius: 10px;
- border: 1px solid rgba(148, 163, 184, 0.12);
- background: rgba(4, 8, 17, 0.86);
- color: #bae6fd;
- font-family: var(--mono);
- font-size: 11.5px;
- line-height: 1.6;
- overflow: auto;
- max-height: 260px;
- white-space: pre-wrap;
- word-break: break-word;
- }
- .mcp-meta {
- display: flex;
- flex-direction: column;
- gap: 5px;
- margin-top: 10px;
- font-size: 10.5px;
- color: var(--faint);
- }
- .mcp-tools {
- display: flex;
- flex-wrap: wrap;
- gap: 7px;
- }
- .mcp-tool {
- padding: 7px 9px;
- border-radius: 8px;
- border: 1px solid var(--border);
- background: rgba(8, 13, 26, 0.5);
- font-family: var(--mono);
- font-size: 10.5px;
- color: #c7d2fe;
- }
- @media (max-width: 1100px) {
- .project-layout,
- .resource-layout {
- grid-template-columns: 220px minmax(0, 1fr);
- }
- .project-grid {
- grid-template-columns: 1fr;
- }
- }
- @media (max-width: 860px) {
- .project-layout,
- .resource-layout {
- grid-template-columns: 1fr;
- }
- .project-list-card,
- .resource-categories-card {
- max-height: 230px;
- }
- .page-head {
- flex-direction: column;
- }
- .detail-head {
- flex-direction: column;
- }
- }
|