styles.css 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423
  1. :root {
  2. color-scheme: dark;
  3. --bg: #070b18;
  4. --bg-soft: #0b1122;
  5. --card: rgba(17, 24, 45, 0.82);
  6. --card-solid: #11182d;
  7. --border: rgba(148, 163, 184, 0.16);
  8. --border-strong: rgba(148, 163, 184, 0.28);
  9. --text: #e5eefc;
  10. --muted: #8b9bb7;
  11. --faint: #61708c;
  12. --cyan: #22d3ee;
  13. --cyan-strong: #06b6d4;
  14. --indigo: #6366f1;
  15. --green: #34d399;
  16. --red: #fb7185;
  17. --amber: #fbbf24;
  18. --radius: 14px;
  19. --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  20. --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  21. }
  22. * {
  23. box-sizing: border-box;
  24. }
  25. html,
  26. body {
  27. height: 100%;
  28. margin: 0;
  29. }
  30. body {
  31. margin: 0;
  32. font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
  33. "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  34. color: var(--text);
  35. background:
  36. radial-gradient(1100px 600px at 10% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
  37. radial-gradient(900px 600px at 100% 0%, rgba(99, 102, 241, 0.18), transparent 50%),
  38. linear-gradient(180deg, #080d1c 0%, #070b18 55%, #060916 100%);
  39. overflow: hidden;
  40. }
  41. button,
  42. input,
  43. select,
  44. textarea {
  45. font: inherit;
  46. }
  47. code {
  48. font-family: var(--mono);
  49. font-size: 0.92em;
  50. color: #a5f3fc;
  51. background: rgba(34, 211, 238, 0.08);
  52. border: 1px solid rgba(34, 211, 238, 0.16);
  53. padding: 0.08em 0.4em;
  54. border-radius: 6px;
  55. word-break: break-all;
  56. }
  57. .app {
  58. height: 100vh;
  59. display: flex;
  60. flex-direction: column;
  61. }
  62. .titlebar {
  63. -webkit-app-region: drag;
  64. display: flex;
  65. align-items: center;
  66. justify-content: space-between;
  67. gap: 20px;
  68. padding: 14px 22px 12px;
  69. border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  70. background: linear-gradient(180deg, rgba(11, 17, 34, 0.65), rgba(11, 17, 34, 0.18));
  71. backdrop-filter: blur(18px);
  72. }
  73. /* Leave room for macOS traffic lights when using hiddenInset. */
  74. html.mac .titlebar {
  75. padding-left: 88px;
  76. }
  77. .brand {
  78. display: flex;
  79. align-items: center;
  80. gap: 14px;
  81. min-width: 0;
  82. }
  83. .logo {
  84. width: 46px;
  85. height: 46px;
  86. flex: 0 0 auto;
  87. filter: drop-shadow(0 8px 20px rgba(34, 211, 238, 0.18));
  88. }
  89. .logo svg {
  90. width: 100%;
  91. height: 100%;
  92. display: block;
  93. }
  94. .brand-text h1 {
  95. margin: 0;
  96. font-size: 18px;
  97. letter-spacing: 0.2px;
  98. font-weight: 650;
  99. }
  100. .brand-text p {
  101. margin: 3px 0 0;
  102. color: var(--muted);
  103. font-size: 12px;
  104. letter-spacing: 0.3px;
  105. }
  106. .header-actions {
  107. -webkit-app-region: no-drag;
  108. display: flex;
  109. align-items: center;
  110. gap: 10px;
  111. flex: 0 0 auto;
  112. }
  113. .pill {
  114. display: inline-flex;
  115. align-items: center;
  116. gap: 8px;
  117. height: 30px;
  118. padding: 0 12px;
  119. border-radius: 999px;
  120. font-size: 12px;
  121. color: var(--muted);
  122. border: 1px solid var(--border);
  123. background: rgba(15, 23, 42, 0.7);
  124. max-width: 360px;
  125. overflow: hidden;
  126. text-overflow: ellipsis;
  127. white-space: nowrap;
  128. }
  129. .pill::before {
  130. content: "";
  131. width: 7px;
  132. height: 7px;
  133. border-radius: 50%;
  134. background: var(--faint);
  135. box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.08);
  136. }
  137. .pill-ok {
  138. color: #bbf7d0;
  139. border-color: rgba(52, 211, 153, 0.28);
  140. background: rgba(16, 185, 129, 0.08);
  141. }
  142. .pill-ok::before {
  143. background: var(--green);
  144. box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
  145. }
  146. .pill-warn {
  147. color: #fde68a;
  148. border-color: rgba(251, 191, 36, 0.26);
  149. background: rgba(251, 191, 36, 0.07);
  150. }
  151. .pill-warn::before {
  152. background: var(--amber);
  153. box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
  154. }
  155. .pill-bad {
  156. color: #fecdd3;
  157. border-color: rgba(251, 113, 133, 0.28);
  158. background: rgba(251, 113, 133, 0.08);
  159. }
  160. .pill-bad::before {
  161. background: var(--red);
  162. box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
  163. }
  164. .layout {
  165. flex: 1;
  166. min-height: 0;
  167. display: grid;
  168. grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  169. gap: 14px;
  170. padding: 14px 22px 10px;
  171. overflow: hidden;
  172. }
  173. .column {
  174. min-width: 0;
  175. min-height: 0;
  176. display: flex;
  177. flex-direction: column;
  178. gap: 14px;
  179. overflow: auto;
  180. padding-right: 2px;
  181. }
  182. .column::-webkit-scrollbar {
  183. width: 10px;
  184. }
  185. .column::-webkit-scrollbar-thumb {
  186. background: rgba(148, 163, 184, 0.18);
  187. border-radius: 999px;
  188. border: 3px solid transparent;
  189. background-clip: content-box;
  190. }
  191. .card {
  192. background: linear-gradient(180deg, rgba(17, 24, 45, 0.88), rgba(13, 19, 36, 0.86));
  193. border: 1px solid var(--border);
  194. border-radius: var(--radius);
  195. box-shadow: var(--shadow);
  196. padding: 14px 16px;
  197. }
  198. .card-head {
  199. display: flex;
  200. align-items: center;
  201. justify-content: space-between;
  202. gap: 14px;
  203. margin-bottom: 12px;
  204. }
  205. .card h2 {
  206. margin: 0;
  207. font-size: 13px;
  208. font-weight: 650;
  209. letter-spacing: 0.6px;
  210. color: #c7d2fe;
  211. text-transform: uppercase;
  212. }
  213. .muted {
  214. color: var(--muted);
  215. font-size: 12px;
  216. }
  217. .hint {
  218. margin: 10px 0 0;
  219. font-size: 12px;
  220. line-height: 1.6;
  221. color: var(--muted);
  222. }
  223. .row {
  224. display: flex;
  225. gap: 10px;
  226. align-items: stretch;
  227. }
  228. .select,
  229. input[type="text"] {
  230. width: 100%;
  231. min-width: 0;
  232. height: 38px;
  233. border-radius: 10px;
  234. border: 1px solid var(--border-strong);
  235. background: rgba(8, 13, 26, 0.9);
  236. color: var(--text);
  237. padding: 0 12px;
  238. outline: none;
  239. transition: border-color 0.15s ease, box-shadow 0.15s ease;
  240. }
  241. .select:focus,
  242. input[type="text"]:focus {
  243. border-color: rgba(34, 211, 238, 0.6);
  244. box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
  245. }
  246. .select option {
  247. background: #0d1427;
  248. color: var(--text);
  249. }
  250. button {
  251. border: 1px solid transparent;
  252. border-radius: 10px;
  253. height: 38px;
  254. padding: 0 16px;
  255. font-size: 13px;
  256. font-weight: 600;
  257. cursor: pointer;
  258. transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  259. white-space: nowrap;
  260. }
  261. button:active {
  262. transform: translateY(1px);
  263. }
  264. button:disabled {
  265. cursor: not-allowed;
  266. opacity: 0.45;
  267. }
  268. .primary {
  269. color: #052027;
  270. background: linear-gradient(135deg, #67e8f9, #22d3ee 55%, #06b6d4);
  271. box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
  272. }
  273. .primary:hover:not(:disabled) {
  274. background: linear-gradient(135deg, #a5f3fc, #67e8f9 55%, #22d3ee);
  275. }
  276. .secondary {
  277. color: #dbeafe;
  278. background: rgba(30, 41, 59, 0.9);
  279. border-color: var(--border-strong);
  280. }
  281. .secondary:hover:not(:disabled) {
  282. background: rgba(51, 65, 85, 0.95);
  283. }
  284. .ghost {
  285. color: var(--muted);
  286. background: transparent;
  287. border-color: transparent;
  288. }
  289. .ghost:hover:not(:disabled) {
  290. color: var(--text);
  291. background: rgba(148, 163, 184, 0.08);
  292. }
  293. .small {
  294. height: 30px;
  295. padding: 0 10px;
  296. font-size: 12px;
  297. border-radius: 8px;
  298. }
  299. .danger {
  300. color: #fff1f2;
  301. background: linear-gradient(135deg, #fb7185, #e11d48);
  302. box-shadow: 0 12px 28px rgba(225, 29, 72, 0.18);
  303. }
  304. .link {
  305. height: auto;
  306. padding: 0;
  307. border: 0;
  308. background: none;
  309. color: var(--cyan);
  310. font-weight: 600;
  311. cursor: pointer;
  312. text-decoration: underline;
  313. text-underline-offset: 3px;
  314. }
  315. .link:hover {
  316. color: #a5f3fc;
  317. }
  318. .dropzone {
  319. position: relative;
  320. display: flex;
  321. flex-direction: column;
  322. align-items: center;
  323. justify-content: center;
  324. gap: 6px;
  325. min-height: 104px;
  326. border: 1px dashed rgba(148, 163, 184, 0.35);
  327. border-radius: 12px;
  328. background:
  329. radial-gradient(300px 120px at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%),
  330. rgba(8, 13, 26, 0.48);
  331. cursor: pointer;
  332. transition: border-color 0.15s ease, background 0.15s ease;
  333. padding: 16px;
  334. text-align: center;
  335. }
  336. .dropzone:hover,
  337. .dropzone.dragover {
  338. border-color: rgba(34, 211, 238, 0.65);
  339. background:
  340. radial-gradient(340px 150px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
  341. rgba(8, 13, 26, 0.62);
  342. }
  343. .dropzone:focus-visible {
  344. outline: 2px solid rgba(34, 211, 238, 0.55);
  345. outline-offset: 2px;
  346. }
  347. .drop-icon {
  348. width: 34px;
  349. height: 34px;
  350. display: grid;
  351. place-items: center;
  352. border-radius: 10px;
  353. color: var(--cyan);
  354. background: rgba(34, 211, 238, 0.1);
  355. border: 1px solid rgba(34, 211, 238, 0.22);
  356. font-size: 18px;
  357. }
  358. .drop-text {
  359. display: flex;
  360. gap: 6px;
  361. align-items: baseline;
  362. flex-wrap: wrap;
  363. justify-content: center;
  364. font-size: 13px;
  365. color: #dbeafe;
  366. }
  367. .drop-text span {
  368. color: var(--muted);
  369. }
  370. .path {
  371. margin: 2px 0 0;
  372. font-family: var(--mono);
  373. font-size: 11px;
  374. color: var(--faint);
  375. max-width: 100%;
  376. overflow: hidden;
  377. text-overflow: ellipsis;
  378. white-space: nowrap;
  379. }
  380. .fw-info {
  381. display: flex;
  382. flex-wrap: wrap;
  383. gap: 8px;
  384. margin-top: 12px;
  385. }
  386. .chip {
  387. display: inline-flex;
  388. align-items: center;
  389. gap: 6px;
  390. height: 26px;
  391. padding: 0 9px;
  392. border-radius: 8px;
  393. font-size: 11.5px;
  394. border: 1px solid var(--border);
  395. background: rgba(15, 23, 42, 0.72);
  396. color: #cbd5e1;
  397. }
  398. .chip strong {
  399. color: var(--cyan);
  400. font-weight: 650;
  401. }
  402. .chip.ok {
  403. border-color: rgba(52, 211, 153, 0.25);
  404. background: rgba(16, 185, 129, 0.08);
  405. color: #bbf7d0;
  406. }
  407. .chip.warn {
  408. border-color: rgba(251, 191, 36, 0.25);
  409. background: rgba(251, 191, 36, 0.07);
  410. color: #fde68a;
  411. }
  412. .error {
  413. margin: 10px 0 0;
  414. color: #fecdd3;
  415. font-size: 12px;
  416. line-height: 1.5;
  417. white-space: pre-wrap;
  418. word-break: break-word;
  419. }
  420. .hidden {
  421. display: none !important;
  422. }
  423. .segmented {
  424. display: flex;
  425. gap: 4px;
  426. padding: 4px;
  427. border-radius: 11px;
  428. background: rgba(8, 13, 26, 0.7);
  429. border: 1px solid var(--border);
  430. margin-bottom: 14px;
  431. }
  432. .segmented button {
  433. flex: 1;
  434. height: 34px;
  435. background: transparent;
  436. border: 0;
  437. color: var(--muted);
  438. border-radius: 8px;
  439. font-size: 12.5px;
  440. }
  441. .segmented button.active {
  442. color: #03171c;
  443. background: linear-gradient(135deg, #67e8f9, #22d3ee);
  444. box-shadow: 0 8px 22px rgba(34, 211, 238, 0.15);
  445. }
  446. .option-grid {
  447. display: grid;
  448. grid-template-columns: 1fr 1fr;
  449. gap: 10px 12px;
  450. }
  451. .field {
  452. display: flex;
  453. flex-direction: column;
  454. gap: 6px;
  455. min-width: 0;
  456. }
  457. .field > span {
  458. font-size: 11.5px;
  459. color: var(--muted);
  460. letter-spacing: 0.2px;
  461. }
  462. .field em {
  463. font-style: normal;
  464. color: var(--faint);
  465. }
  466. .input-row {
  467. display: flex;
  468. gap: 8px;
  469. }
  470. .input-row input {
  471. flex: 1;
  472. }
  473. .checkbox {
  474. display: flex;
  475. align-items: center;
  476. gap: 8px;
  477. font-size: 12px;
  478. color: var(--muted);
  479. cursor: pointer;
  480. user-select: none;
  481. }
  482. .checkbox input {
  483. width: 16px;
  484. height: 16px;
  485. accent-color: var(--cyan);
  486. }
  487. .field-inline {
  488. align-self: end;
  489. height: 38px;
  490. }
  491. .tip {
  492. margin-top: 14px;
  493. padding: 11px 12px;
  494. border-radius: 10px;
  495. border: 1px solid rgba(99, 102, 241, 0.22);
  496. background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.05));
  497. font-size: 12px;
  498. line-height: 1.55;
  499. color: #c7d2fe;
  500. }
  501. .tip strong {
  502. color: #e0e7ff;
  503. }
  504. .action-card {
  505. display: flex;
  506. flex-direction: column;
  507. gap: 12px;
  508. }
  509. .top-action {
  510. height: 34px;
  511. padding: 0 16px;
  512. border-radius: 9px;
  513. font-size: 12.5px;
  514. }
  515. .progress-head {
  516. display: flex;
  517. align-items: baseline;
  518. justify-content: space-between;
  519. gap: 12px;
  520. font-size: 12px;
  521. }
  522. #stage {
  523. color: #dbeafe;
  524. font-weight: 600;
  525. }
  526. #percent {
  527. font-family: var(--mono);
  528. color: var(--cyan);
  529. font-size: 12px;
  530. }
  531. .bar {
  532. height: 9px;
  533. border-radius: 999px;
  534. background: rgba(8, 13, 26, 0.9);
  535. border: 1px solid var(--border);
  536. overflow: hidden;
  537. margin-top: 9px;
  538. }
  539. #bar-fill {
  540. height: 100%;
  541. width: 0%;
  542. border-radius: 999px;
  543. background: linear-gradient(90deg, #22d3ee, #6366f1);
  544. box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
  545. transition: width 0.25s ease;
  546. }
  547. #bar-fill.error {
  548. background: linear-gradient(90deg, #fb7185, #e11d48);
  549. box-shadow: 0 0 18px rgba(251, 113, 133, 0.3);
  550. }
  551. #bar-fill.success {
  552. background: linear-gradient(90deg, #34d399, #10b981);
  553. box-shadow: 0 0 18px rgba(52, 211, 153, 0.3);
  554. }
  555. .message {
  556. margin: 9px 0 0;
  557. min-height: 18px;
  558. font-size: 12px;
  559. color: var(--muted);
  560. line-height: 1.5;
  561. }
  562. .actions {
  563. display: flex;
  564. gap: 10px;
  565. }
  566. .actions .primary,
  567. .actions .danger {
  568. flex: 1;
  569. height: 42px;
  570. font-size: 14px;
  571. }
  572. .warning {
  573. margin: 0;
  574. text-align: center;
  575. font-size: 11px;
  576. color: rgba(251, 191, 36, 0.8);
  577. }
  578. .models-card summary {
  579. cursor: pointer;
  580. font-size: 12px;
  581. color: var(--muted);
  582. list-style: none;
  583. display: flex;
  584. justify-content: space-between;
  585. gap: 10px;
  586. }
  587. .models-card summary::-webkit-details-marker {
  588. display: none;
  589. }
  590. .models-card summary::after {
  591. content: "▾";
  592. color: var(--faint);
  593. }
  594. .models-card[open] summary::after {
  595. content: "▴";
  596. }
  597. .models {
  598. display: flex;
  599. flex-wrap: wrap;
  600. gap: 8px;
  601. margin-top: 12px;
  602. }
  603. .model {
  604. display: flex;
  605. flex-direction: column;
  606. gap: 2px;
  607. padding: 8px 10px;
  608. border-radius: 9px;
  609. border: 1px solid var(--border);
  610. background: rgba(8, 13, 26, 0.55);
  611. min-width: 140px;
  612. }
  613. .model strong {
  614. font-size: 12px;
  615. color: #dbeafe;
  616. font-weight: 600;
  617. }
  618. .model span {
  619. font-size: 10.5px;
  620. color: var(--faint);
  621. }
  622. .log-card {
  623. display: flex;
  624. flex-direction: column;
  625. flex: 1;
  626. min-height: 0;
  627. padding-bottom: 10px;
  628. }
  629. .log-actions {
  630. display: flex;
  631. gap: 2px;
  632. }
  633. .log {
  634. flex: 1;
  635. min-height: 0;
  636. margin: 0;
  637. padding: 12px;
  638. overflow: auto;
  639. border-radius: 10px;
  640. border: 1px solid rgba(148, 163, 184, 0.1);
  641. background: rgba(4, 8, 17, 0.82);
  642. font-family: var(--mono);
  643. font-size: 11.5px;
  644. line-height: 1.6;
  645. color: #b6c6e2;
  646. white-space: pre-wrap;
  647. word-break: break-word;
  648. }
  649. .log .line {
  650. display: block;
  651. }
  652. .log .t {
  653. color: #4b5b76;
  654. margin-right: 8px;
  655. }
  656. .log .info {
  657. color: #c7d2fe;
  658. }
  659. .log .ok {
  660. color: #86efac;
  661. }
  662. .log .warn {
  663. color: #fde68a;
  664. }
  665. .log .err {
  666. color: #fecdd3;
  667. }
  668. .log .cmd {
  669. color: #67e8f9;
  670. }
  671. .log .muted {
  672. color: #64748b;
  673. }
  674. .log::-webkit-scrollbar {
  675. width: 10px;
  676. }
  677. .log::-webkit-scrollbar-thumb {
  678. background: rgba(148, 163, 184, 0.18);
  679. border-radius: 999px;
  680. border: 3px solid transparent;
  681. background-clip: content-box;
  682. }
  683. .footer {
  684. display: flex;
  685. align-items: center;
  686. justify-content: space-between;
  687. gap: 18px;
  688. padding: 8px 28px 12px;
  689. font-size: 11px;
  690. color: var(--faint);
  691. border-top: 1px solid rgba(148, 163, 184, 0.06);
  692. }
  693. .footer a {
  694. color: #7dd3fc;
  695. text-decoration: none;
  696. }
  697. .footer a:hover {
  698. text-decoration: underline;
  699. }
  700. .toast {
  701. position: fixed;
  702. left: 50%;
  703. bottom: 28px;
  704. transform: translateX(-50%);
  705. max-width: min(680px, 86vw);
  706. padding: 10px 16px;
  707. border-radius: 10px;
  708. border: 1px solid rgba(148, 163, 184, 0.25);
  709. background: rgba(15, 23, 42, 0.96);
  710. color: #e2e8f0;
  711. font-size: 12.5px;
  712. box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  713. z-index: 50;
  714. animation: toast-in 0.18s ease-out;
  715. }
  716. .toast.err {
  717. border-color: rgba(251, 113, 133, 0.4);
  718. color: #ffe4e6;
  719. }
  720. .toast.ok {
  721. border-color: rgba(52, 211, 153, 0.35);
  722. color: #dcfce7;
  723. }
  724. @keyframes toast-in {
  725. from {
  726. opacity: 0;
  727. transform: translate(-50%, 8px);
  728. }
  729. to {
  730. opacity: 1;
  731. transform: translate(-50%, 0);
  732. }
  733. }
  734. .modal {
  735. position: fixed;
  736. inset: 0;
  737. z-index: 100;
  738. display: grid;
  739. place-items: center;
  740. padding: 24px;
  741. background: rgba(2, 6, 16, 0.72);
  742. backdrop-filter: blur(10px);
  743. }
  744. .modal-card {
  745. width: min(560px, 92vw);
  746. border-radius: 16px;
  747. border: 1px solid var(--border-strong);
  748. background: linear-gradient(180deg, #111a30, #0b1122);
  749. box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  750. padding: 22px 24px;
  751. }
  752. .modal-card h2 {
  753. margin: 0 0 10px;
  754. font-size: 17px;
  755. }
  756. .modal-card p,
  757. .modal-card li {
  758. color: var(--muted);
  759. font-size: 12.5px;
  760. line-height: 1.7;
  761. }
  762. .modal-card ol {
  763. margin: 8px 0 14px;
  764. padding-left: 20px;
  765. }
  766. .modal-actions {
  767. display: flex;
  768. justify-content: flex-end;
  769. gap: 10px;
  770. margin-top: 18px;
  771. }
  772. @media (max-width: 980px) {
  773. .layout {
  774. grid-template-columns: 1fr;
  775. overflow: auto;
  776. }
  777. .column {
  778. overflow: visible;
  779. }
  780. .log-card {
  781. min-height: 320px;
  782. }
  783. .titlebar {
  784. padding-left: 26px;
  785. }
  786. }
  787. @media (prefers-reduced-motion: reduce) {
  788. *,
  789. *::before,
  790. *::after {
  791. animation-duration: 0.01ms !important;
  792. transition-duration: 0.01ms !important;
  793. }
  794. }
  795. /* ── Navigation tabs ─────────────────────────────────────────────── */
  796. .tabs {
  797. display: flex;
  798. gap: 4px;
  799. padding: 0 22px;
  800. border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  801. background: rgba(8, 13, 26, 0.35);
  802. flex: 0 0 auto;
  803. }
  804. .tab {
  805. height: 38px;
  806. padding: 0 16px;
  807. border: 0;
  808. border-bottom: 2px solid transparent;
  809. border-radius: 0;
  810. background: transparent;
  811. color: var(--muted);
  812. font-size: 12.5px;
  813. font-weight: 600;
  814. cursor: pointer;
  815. }
  816. .tab:hover {
  817. color: var(--text);
  818. background: rgba(148, 163, 184, 0.05);
  819. }
  820. .tab.active {
  821. color: var(--cyan);
  822. border-bottom-color: var(--cyan);
  823. }
  824. .view {
  825. display: none;
  826. }
  827. .view.active {
  828. display: flex;
  829. }
  830. #view-flash.active {
  831. display: grid;
  832. }
  833. .page {
  834. flex: 1;
  835. min-height: 0;
  836. overflow: auto;
  837. padding: 16px 22px 14px;
  838. flex-direction: column;
  839. gap: 14px;
  840. }
  841. .page-head {
  842. display: flex;
  843. align-items: flex-start;
  844. justify-content: space-between;
  845. gap: 18px;
  846. }
  847. .page-head h2 {
  848. margin: 0;
  849. font-size: 18px;
  850. font-weight: 650;
  851. letter-spacing: 0.2px;
  852. }
  853. .page-head p {
  854. margin: 5px 0 0;
  855. font-size: 12px;
  856. color: var(--muted);
  857. line-height: 1.6;
  858. }
  859. .page-actions {
  860. display: flex;
  861. align-items: center;
  862. gap: 8px;
  863. flex-wrap: wrap;
  864. justify-content: flex-end;
  865. }
  866. .page-actions .small {
  867. height: 32px;
  868. }
  869. .danger-text {
  870. color: #fecdd3 !important;
  871. }
  872. .danger-text:hover {
  873. background: rgba(251, 113, 133, 0.1) !important;
  874. }
  875. /* ── Project management ──────────────────────────────────────────── */
  876. .project-layout,
  877. .resource-layout {
  878. display: grid;
  879. grid-template-columns: 270px minmax(0, 1fr);
  880. gap: 14px;
  881. min-height: 0;
  882. flex: 1;
  883. }
  884. .project-list-card,
  885. .resource-categories-card {
  886. display: flex;
  887. flex-direction: column;
  888. min-height: 0;
  889. padding-bottom: 10px;
  890. }
  891. .project-list-card .select {
  892. margin-bottom: 10px;
  893. }
  894. .project-list,
  895. .resource-categories {
  896. display: flex;
  897. flex-direction: column;
  898. gap: 4px;
  899. overflow: auto;
  900. min-height: 0;
  901. }
  902. .project-item,
  903. .resource-category {
  904. display: flex;
  905. flex-direction: column;
  906. align-items: flex-start;
  907. gap: 3px;
  908. width: 100%;
  909. height: auto;
  910. min-height: 48px;
  911. padding: 9px 10px;
  912. border-radius: 9px;
  913. border: 1px solid transparent;
  914. background: transparent;
  915. color: var(--text);
  916. text-align: left;
  917. cursor: pointer;
  918. }
  919. .project-item:hover,
  920. .resource-category:hover {
  921. background: rgba(148, 163, 184, 0.06);
  922. }
  923. .project-item.active,
  924. .resource-category.active {
  925. border-color: rgba(34, 211, 238, 0.28);
  926. background: rgba(34, 211, 238, 0.08);
  927. }
  928. .project-item strong,
  929. .resource-category strong {
  930. font-size: 12.5px;
  931. font-weight: 600;
  932. color: #dbeafe;
  933. }
  934. .project-item span,
  935. .resource-category span {
  936. font-size: 10.5px;
  937. color: var(--faint);
  938. max-width: 100%;
  939. overflow: hidden;
  940. text-overflow: ellipsis;
  941. white-space: nowrap;
  942. }
  943. .project-detail-card,
  944. .resource-detail-card {
  945. display: flex;
  946. flex-direction: column;
  947. min-height: 0;
  948. overflow: hidden;
  949. }
  950. .project-detail-card > .hidden {
  951. display: none;
  952. }
  953. .empty {
  954. display: grid;
  955. place-items: center;
  956. min-height: 240px;
  957. color: var(--faint);
  958. font-size: 13px;
  959. }
  960. .detail-head {
  961. display: flex;
  962. align-items: flex-start;
  963. justify-content: space-between;
  964. gap: 14px;
  965. padding-bottom: 12px;
  966. border-bottom: 1px solid var(--border);
  967. margin-bottom: 12px;
  968. }
  969. .detail-title {
  970. min-width: 0;
  971. }
  972. .detail-title h2 {
  973. margin: 0;
  974. font-size: 17px;
  975. color: #e0e7ff;
  976. }
  977. .detail-title p {
  978. margin: 4px 0 0;
  979. font-size: 11.5px;
  980. color: var(--muted);
  981. word-break: break-all;
  982. }
  983. .project-grid {
  984. display: grid;
  985. grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  986. gap: 12px;
  987. min-height: 0;
  988. }
  989. .project-info-card,
  990. .project-editor-card,
  991. .sub-card {
  992. border: 1px solid var(--border);
  993. border-radius: 11px;
  994. background: rgba(8, 13, 26, 0.42);
  995. padding: 12px;
  996. min-height: 0;
  997. }
  998. .info-list {
  999. margin: 0;
  1000. display: grid;
  1001. grid-template-columns: 112px minmax(0, 1fr);
  1002. gap: 7px 10px;
  1003. font-size: 11.5px;
  1004. }
  1005. .info-list dt {
  1006. color: var(--faint);
  1007. }
  1008. .info-list dd {
  1009. margin: 0;
  1010. color: #dbeafe;
  1011. word-break: break-all;
  1012. }
  1013. .code-editor {
  1014. width: 100%;
  1015. height: 300px;
  1016. resize: vertical;
  1017. min-height: 220px;
  1018. border-radius: 9px;
  1019. border: 1px solid var(--border-strong);
  1020. background: rgba(4, 8, 17, 0.9);
  1021. color: #dbeafe;
  1022. padding: 12px;
  1023. font-family: var(--mono);
  1024. font-size: 12px;
  1025. line-height: 1.65;
  1026. outline: none;
  1027. tab-size: 2;
  1028. }
  1029. .code-editor:focus {
  1030. border-color: rgba(34, 211, 238, 0.55);
  1031. box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
  1032. }
  1033. .sub-card {
  1034. margin-top: 12px;
  1035. }
  1036. .file-list {
  1037. max-height: 180px;
  1038. overflow: auto;
  1039. display: flex;
  1040. flex-direction: column;
  1041. gap: 2px;
  1042. }
  1043. .file-row {
  1044. display: grid;
  1045. grid-template-columns: 18px minmax(0, 1fr) 80px;
  1046. gap: 8px;
  1047. align-items: center;
  1048. padding: 5px 7px;
  1049. border-radius: 6px;
  1050. font-size: 11.5px;
  1051. color: #cbd5e1;
  1052. cursor: pointer;
  1053. }
  1054. .file-row:hover {
  1055. background: rgba(148, 163, 184, 0.07);
  1056. }
  1057. .file-row.active {
  1058. background: rgba(34, 211, 238, 0.08);
  1059. color: #a5f3fc;
  1060. }
  1061. .file-row .size {
  1062. text-align: right;
  1063. color: var(--faint);
  1064. font-family: var(--mono);
  1065. font-size: 10.5px;
  1066. }
  1067. .project-log,
  1068. .resource-log {
  1069. height: 150px;
  1070. margin-top: 12px;
  1071. flex: 0 0 auto;
  1072. }
  1073. /* ── Resource download ───────────────────────────────────────────── */
  1074. .resource-detail {
  1075. flex: 1;
  1076. min-height: 0;
  1077. overflow: auto;
  1078. display: flex;
  1079. flex-direction: column;
  1080. gap: 10px;
  1081. }
  1082. .resource-child {
  1083. border: 1px solid var(--border);
  1084. border-radius: 10px;
  1085. background: rgba(8, 13, 26, 0.38);
  1086. padding: 11px 12px;
  1087. }
  1088. .resource-child-head {
  1089. display: flex;
  1090. align-items: flex-start;
  1091. justify-content: space-between;
  1092. gap: 12px;
  1093. }
  1094. .resource-child-head h3 {
  1095. margin: 0;
  1096. font-size: 12.5px;
  1097. color: #dbeafe;
  1098. }
  1099. .resource-child-head p {
  1100. margin: 3px 0 0;
  1101. font-size: 10.5px;
  1102. color: var(--faint);
  1103. }
  1104. .resource-versions {
  1105. margin-top: 9px;
  1106. display: flex;
  1107. flex-direction: column;
  1108. gap: 8px;
  1109. }
  1110. .resource-version {
  1111. border-top: 1px solid rgba(148, 163, 184, 0.1);
  1112. padding-top: 8px;
  1113. }
  1114. .resource-version-head {
  1115. display: flex;
  1116. align-items: center;
  1117. justify-content: space-between;
  1118. gap: 10px;
  1119. font-size: 11.5px;
  1120. color: #c7d2fe;
  1121. }
  1122. .resource-files {
  1123. margin-top: 6px;
  1124. display: flex;
  1125. flex-direction: column;
  1126. gap: 2px;
  1127. }
  1128. .resource-file {
  1129. display: grid;
  1130. grid-template-columns: minmax(0, 1fr) 92px;
  1131. gap: 8px;
  1132. font-size: 10.5px;
  1133. color: var(--faint);
  1134. padding: 2px 0;
  1135. }
  1136. .resource-file span:first-child {
  1137. overflow: hidden;
  1138. text-overflow: ellipsis;
  1139. white-space: nowrap;
  1140. }
  1141. .resource-file span:last-child {
  1142. text-align: right;
  1143. font-family: var(--mono);
  1144. }
  1145. .resource-progress-card {
  1146. flex: 0 0 auto;
  1147. }
  1148. .resource-progress-card .resource-log {
  1149. height: 120px;
  1150. }
  1151. .path-inline {
  1152. max-width: 55%;
  1153. overflow: hidden;
  1154. text-overflow: ellipsis;
  1155. white-space: nowrap;
  1156. font-family: var(--mono);
  1157. font-size: 10.5px;
  1158. }
  1159. /* ── MCP page ────────────────────────────────────────────────────── */
  1160. .mcp-card {
  1161. flex: 0 0 auto;
  1162. }
  1163. .code-block {
  1164. margin: 10px 0 0;
  1165. padding: 14px;
  1166. border-radius: 10px;
  1167. border: 1px solid rgba(148, 163, 184, 0.12);
  1168. background: rgba(4, 8, 17, 0.86);
  1169. color: #bae6fd;
  1170. font-family: var(--mono);
  1171. font-size: 11.5px;
  1172. line-height: 1.6;
  1173. overflow: auto;
  1174. max-height: 260px;
  1175. white-space: pre-wrap;
  1176. word-break: break-word;
  1177. }
  1178. .mcp-meta {
  1179. display: flex;
  1180. flex-direction: column;
  1181. gap: 5px;
  1182. margin-top: 10px;
  1183. font-size: 10.5px;
  1184. color: var(--faint);
  1185. }
  1186. .mcp-tools {
  1187. display: flex;
  1188. flex-wrap: wrap;
  1189. gap: 7px;
  1190. }
  1191. .mcp-tool {
  1192. padding: 7px 9px;
  1193. border-radius: 8px;
  1194. border: 1px solid var(--border);
  1195. background: rgba(8, 13, 26, 0.5);
  1196. font-family: var(--mono);
  1197. font-size: 10.5px;
  1198. color: #c7d2fe;
  1199. }
  1200. @media (max-width: 1100px) {
  1201. .project-layout,
  1202. .resource-layout {
  1203. grid-template-columns: 220px minmax(0, 1fr);
  1204. }
  1205. .project-grid {
  1206. grid-template-columns: 1fr;
  1207. }
  1208. }
  1209. @media (max-width: 860px) {
  1210. .project-layout,
  1211. .resource-layout {
  1212. grid-template-columns: 1fr;
  1213. }
  1214. .project-list-card,
  1215. .resource-categories-card {
  1216. max-height: 230px;
  1217. }
  1218. .page-head {
  1219. flex-direction: column;
  1220. }
  1221. .detail-head {
  1222. flex-direction: column;
  1223. }
  1224. }