base.css 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  1. :root {
  2. color-scheme: dark;
  3. --bg-page: #1e1f22;
  4. --bg-page-overlay-1: #2d3138;
  5. --bg-page-overlay-2: #2b2f37;
  6. --bg-topbar-1: #31353b;
  7. --bg-topbar-2: #2a2d32;
  8. --bg-panel-1: #2f3237;
  9. --bg-panel-2: #2a2d31;
  10. --bg-subpanel: #1f2227;
  11. --bg-input: #1f2124;
  12. --bg-button-1: #3c4148;
  13. --bg-button-2: #33373e;
  14. --bg-button-hover-1: #454b54;
  15. --bg-button-hover-2: #373b43;
  16. --bg-rail-1: #2f3339;
  17. --bg-rail-2: #282b31;
  18. --bg-rail-btn-1: #3e434c;
  19. --bg-rail-btn-2: #363a42;
  20. --bg-rail-btn-active-1: #335782;
  21. --bg-rail-btn-active-2: #2d4c73;
  22. --bg-stage: #1a1c20;
  23. --bg-stage-inner: #111317;
  24. --bg-output: #181a1e;
  25. --text-main: #d6d8dc;
  26. --text-secondary: #a9b1bd;
  27. --text-muted: #99a1ad;
  28. --text-title: #e6e8eb;
  29. --text-code: #d5e7ff;
  30. --line-main: #43464d;
  31. --line-soft: #383b42;
  32. --line-input: #4a4e56;
  33. --accent: #4d94ff;
  34. --accent-soft: rgba(77, 148, 255, 0.2);
  35. --danger: #ff7575;
  36. --ok: #70d080;
  37. --danger-border: rgba(255, 117, 117, 0.45);
  38. --ok-border: rgba(112, 208, 128, 0.45);
  39. --fail-border: rgba(255, 117, 117, 0.45);
  40. --selected-bg: rgba(77, 148, 255, 0.15);
  41. --tip-bg: rgba(214, 167, 92, 0.12);
  42. --tip-border: rgba(214, 167, 92, 0.4);
  43. --grid-line: rgba(148, 164, 186, 0.16);
  44. --shadow-panel: 0 4px 14px rgba(0, 0, 0, 0.24);
  45. --shadow-stage: 0 12px 24px rgba(0, 0, 0, 0.36);
  46. --rail-width: 44px;
  47. --bottom-dock-space: 0px;
  48. --bottom-dock-gap: 4px;
  49. }
  50. html[data-theme="light"] {
  51. color-scheme: light;
  52. --bg-page: #f5f6f8;
  53. --bg-page-overlay-1: #dfe4ee;
  54. --bg-page-overlay-2: #e8edf6;
  55. --bg-topbar-1: #f7f9fd;
  56. --bg-topbar-2: #edf2fa;
  57. --bg-panel-1: #ffffff;
  58. --bg-panel-2: #f8fbff;
  59. --bg-subpanel: #f7f9fc;
  60. --bg-input: #ffffff;
  61. --bg-button-1: #f5f9ff;
  62. --bg-button-2: #e7effb;
  63. --bg-button-hover-1: #f0f6ff;
  64. --bg-button-hover-2: #dfe8f7;
  65. --bg-rail-1: #eef2f8;
  66. --bg-rail-2: #e6ebf3;
  67. --bg-rail-btn-1: #f8fbff;
  68. --bg-rail-btn-2: #e6eef8;
  69. --bg-rail-btn-active-1: #cce1ff;
  70. --bg-rail-btn-active-2: #b9d5ff;
  71. --bg-stage: #f0f4fa;
  72. --bg-stage-inner: #e9edf5;
  73. --bg-output: #f9fbff;
  74. --text-main: #1f2733;
  75. --text-secondary: #415063;
  76. --text-muted: #5b687a;
  77. --text-title: #111827;
  78. --text-code: #11407e;
  79. --line-main: #c7d2e0;
  80. --line-soft: #d5deea;
  81. --line-input: #b7c5d8;
  82. --accent: #2f6dcf;
  83. --accent-soft: rgba(47, 109, 207, 0.18);
  84. --danger: #c0392b;
  85. --ok: #2e7d32;
  86. --danger-border: rgba(192, 57, 43, 0.45);
  87. --ok-border: rgba(46, 125, 50, 0.45);
  88. --fail-border: rgba(192, 57, 43, 0.45);
  89. --selected-bg: rgba(47, 109, 207, 0.14);
  90. --tip-bg: rgba(214, 167, 92, 0.14);
  91. --tip-border: rgba(214, 167, 92, 0.45);
  92. --grid-line: rgba(109, 129, 158, 0.18);
  93. --shadow-panel: 0 4px 12px rgba(25, 45, 85, 0.08);
  94. --shadow-stage: 0 10px 20px rgba(32, 49, 79, 0.16);
  95. }
  96. * {
  97. box-sizing: border-box;
  98. }
  99. html,
  100. body {
  101. margin: 0;
  102. width: 100%;
  103. height: 100%;
  104. }
  105. body {
  106. font-family: "JetBrains Mono", "Cascadia Code", "Consolas", "Microsoft YaHei UI", sans-serif;
  107. color: var(--text-main);
  108. background:
  109. radial-gradient(circle at 0 0, var(--bg-page-overlay-1) 0, transparent 42%),
  110. radial-gradient(circle at 100% 100%, var(--bg-page-overlay-2) 0, transparent 34%),
  111. var(--bg-page);
  112. }
  113. code {
  114. color: var(--text-code);
  115. font-size: 12px;
  116. }
  117. .app {
  118. position: relative;
  119. height: 100vh;
  120. display: flex;
  121. flex-direction: column;
  122. overflow: hidden;
  123. }
  124. .topbar {
  125. height: 44px;
  126. display: flex;
  127. justify-content: space-between;
  128. align-items: center;
  129. padding: 8px 14px;
  130. border-bottom: 1px solid var(--line-main);
  131. background: linear-gradient(180deg, var(--bg-topbar-1) 0%, var(--bg-topbar-2) 100%);
  132. }
  133. .topbar h1 {
  134. margin: 0;
  135. font-size: 14px;
  136. font-weight: 600;
  137. letter-spacing: 0.03em;
  138. color: var(--text-title);
  139. }
  140. .topbar-actions {
  141. display: flex;
  142. align-items: center;
  143. gap: 12px;
  144. }
  145. .theme-switch {
  146. display: flex;
  147. align-items: center;
  148. gap: 6px;
  149. margin: 0;
  150. font-size: 12px;
  151. color: var(--text-muted);
  152. }
  153. .theme-switch select {
  154. height: 28px;
  155. min-width: 90px;
  156. }
  157. .session-meta {
  158. font-size: 12px;
  159. color: var(--text-muted);
  160. }
  161. .layout {
  162. flex: 1;
  163. min-height: 0;
  164. display: flex;
  165. gap: 0;
  166. padding: 8px;
  167. overflow: auto;
  168. }
  169. .tool-window {
  170. min-height: 0;
  171. display: flex;
  172. align-items: stretch;
  173. flex: 0 0 auto;
  174. }
  175. .icon-rail {
  176. width: var(--rail-width);
  177. background: linear-gradient(180deg, var(--bg-rail-1), var(--bg-rail-2));
  178. border: 1px solid var(--line-soft);
  179. display: flex;
  180. flex-direction: column;
  181. align-items: center;
  182. gap: 6px;
  183. padding: 8px 6px;
  184. overflow-y: auto;
  185. overflow-x: hidden;
  186. }
  187. .icon-rail-left {
  188. border-radius: 8px 0 0 8px;
  189. border-right: 0;
  190. }
  191. .icon-rail-right {
  192. border-radius: 0 8px 8px 0;
  193. border-left: 0;
  194. }
  195. .rail-btn {
  196. width: 30px;
  197. min-height: 60px;
  198. border: 1px solid var(--line-input);
  199. border-radius: 6px;
  200. padding: 6px 3px;
  201. font-size: 11px;
  202. line-height: 1.2;
  203. letter-spacing: 0.03em;
  204. background: linear-gradient(180deg, var(--bg-rail-btn-1), var(--bg-rail-btn-2));
  205. color: var(--text-main);
  206. writing-mode: vertical-rl;
  207. text-orientation: mixed;
  208. cursor: pointer;
  209. user-select: none;
  210. }
  211. .rail-btn:hover {
  212. border-color: var(--accent);
  213. }
  214. .rail-btn.active {
  215. border-color: var(--accent);
  216. background: linear-gradient(180deg, var(--bg-rail-btn-active-1), var(--bg-rail-btn-active-2));
  217. box-shadow: inset 0 0 0 1px var(--accent);
  218. }
  219. .rail-btn-output {
  220. margin-top: auto;
  221. }
  222. .tool-content {
  223. min-width: 0;
  224. min-height: 0;
  225. overflow: hidden;
  226. transition: opacity 0.12s ease;
  227. }
  228. .tool-content-left,
  229. .tool-content-right {
  230. border: 1px solid var(--line-soft);
  231. padding: 8px;
  232. background: linear-gradient(180deg, var(--bg-panel-1) 0%, var(--bg-panel-2) 100%);
  233. }
  234. .tool-content-left {
  235. border-left: 0;
  236. border-radius: 0 8px 8px 0;
  237. }
  238. .tool-content-right {
  239. border-right: 0;
  240. border-radius: 8px 0 0 8px;
  241. }
  242. .tool-window.collapsed .tool-content {
  243. width: 0 !important;
  244. padding: 0;
  245. border-width: 0;
  246. opacity: 0;
  247. pointer-events: none;
  248. }
  249. .edge-splitter {
  250. width: 8px;
  251. min-width: 8px;
  252. cursor: col-resize;
  253. position: relative;
  254. flex: 0 0 auto;
  255. }
  256. .edge-splitter::before {
  257. content: "";
  258. position: absolute;
  259. top: 12px;
  260. bottom: 12px;
  261. left: 2px;
  262. width: 4px;
  263. border-radius: 4px;
  264. background: linear-gradient(180deg, transparent 0%, var(--line-main) 18%, var(--line-main) 82%, transparent 100%);
  265. opacity: 0.75;
  266. }
  267. .edge-splitter:hover::before {
  268. background: linear-gradient(180deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  269. }
  270. .edge-splitter.disabled {
  271. width: 0;
  272. min-width: 0;
  273. pointer-events: none;
  274. }
  275. .edge-splitter.disabled::before {
  276. display: none;
  277. }
  278. .stack {
  279. min-height: 0;
  280. height: 100%;
  281. display: flex;
  282. flex-direction: column;
  283. gap: 8px;
  284. }
  285. .stack.stack-icon-mode .panel-slot-active {
  286. flex: 1 1 0;
  287. }
  288. .stack .panel-slot-hidden {
  289. display: none !important;
  290. }
  291. .stack.stack-two-open {
  292. gap: 0;
  293. }
  294. .stack.stack-two-open .panel-slot-active {
  295. flex: 0 0 auto;
  296. min-height: 0;
  297. }
  298. .panel-height-splitter {
  299. display: none;
  300. flex: 0 0 10px;
  301. position: relative;
  302. cursor: row-resize;
  303. }
  304. .panel-height-splitter::before {
  305. content: "";
  306. position: absolute;
  307. left: 12px;
  308. right: 12px;
  309. top: 3px;
  310. height: 4px;
  311. border-radius: 4px;
  312. background: linear-gradient(90deg, transparent, var(--line-main), transparent);
  313. opacity: 0.75;
  314. }
  315. .panel-height-splitter:hover::before {
  316. background: linear-gradient(90deg, transparent, var(--accent), transparent);
  317. }
  318. .stack.stack-two-open .panel-height-splitter {
  319. display: block;
  320. }
  321. .panel-height-splitter.disabled {
  322. display: none !important;
  323. }
  324. .panel {
  325. background: linear-gradient(180deg, var(--bg-panel-1) 0%, var(--bg-panel-2) 100%);
  326. border: 1px solid var(--line-soft);
  327. border-radius: 8px;
  328. padding: 10px;
  329. min-height: 0;
  330. display: flex;
  331. flex-direction: column;
  332. box-shadow: var(--shadow-panel);
  333. }
  334. .panel-top,
  335. .panel-fill {
  336. max-height: none;
  337. overflow: hidden;
  338. }
  339. .panel-fill {
  340. min-height: 200px;
  341. }
  342. .panel-scroll-box {
  343. display: flex;
  344. flex-direction: column;
  345. }
  346. .panel-scroll-body {
  347. min-height: 0;
  348. overflow: auto;
  349. padding-right: 2px;
  350. }
  351. .panel-lock-scroll {
  352. overflow: hidden;
  353. }
  354. .center-panel {
  355. flex: 1 1 auto;
  356. min-width: 620px;
  357. margin: 0 4px;
  358. display: flex;
  359. flex-direction: column;
  360. min-height: 0;
  361. overflow: auto;
  362. }
  363. .app.dock-open #leftContent,
  364. .app.dock-open #rightContent,
  365. .app.dock-open .center-panel {
  366. margin-bottom: calc(var(--bottom-dock-space) + var(--bottom-dock-gap));
  367. }
  368. .app.dock-open .center-panel {
  369. overflow: auto;
  370. }
  371. h2 {
  372. margin: 2px 0 10px;
  373. font-size: 13px;
  374. line-height: 1.3;
  375. letter-spacing: 0.04em;
  376. text-transform: uppercase;
  377. color: var(--text-secondary);
  378. flex-shrink: 0;
  379. }
  380. h3 {
  381. margin: 0;
  382. font-size: 12px;
  383. font-weight: 600;
  384. letter-spacing: 0.03em;
  385. color: var(--text-secondary);
  386. }
  387. label {
  388. display: flex;
  389. flex-direction: column;
  390. gap: 5px;
  391. margin: 8px 0;
  392. font-size: 12px;
  393. color: var(--text-secondary);
  394. }
  395. input,
  396. select,
  397. textarea,
  398. button {
  399. font-family: inherit;
  400. font-size: 12px;
  401. }
  402. input,
  403. select,
  404. textarea {
  405. border: 1px solid var(--line-input);
  406. border-radius: 5px;
  407. padding: 7px 8px;
  408. background: var(--bg-input);
  409. color: var(--text-main);
  410. transition: border-color 0.12s ease, box-shadow 0.12s ease;
  411. }
  412. input:focus,
  413. select:focus,
  414. textarea:focus {
  415. border-color: var(--accent);
  416. outline: none;
  417. box-shadow: 0 0 0 2px var(--accent-soft);
  418. }
  419. textarea {
  420. min-height: 78px;
  421. resize: vertical;
  422. }
  423. button {
  424. border: 1px solid var(--line-input);
  425. border-radius: 5px;
  426. padding: 7px 10px;
  427. background: linear-gradient(180deg, var(--bg-button-1), var(--bg-button-2));
  428. color: var(--text-main);
  429. cursor: pointer;
  430. transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  431. }
  432. button:hover {
  433. border-color: var(--accent);
  434. background: linear-gradient(180deg, var(--bg-button-hover-1), var(--bg-button-hover-2));
  435. }
  436. button:active {
  437. filter: brightness(0.97);
  438. }
  439. button:focus-visible {
  440. outline: none;
  441. box-shadow: 0 0 0 2px var(--accent-soft);
  442. }
  443. button:disabled {
  444. opacity: 0.58;
  445. cursor: not-allowed;
  446. }
  447. .btn-loading {
  448. position: relative;
  449. padding-left: 26px;
  450. }
  451. .btn-loading::before {
  452. content: "";
  453. position: absolute;
  454. left: 10px;
  455. top: 50%;
  456. width: 10px;
  457. height: 10px;
  458. margin-top: -5px;
  459. border: 2px solid currentColor;
  460. border-right-color: transparent;
  461. border-radius: 50%;
  462. animation: btn-spin 0.75s linear infinite;
  463. }
  464. .danger-btn {
  465. border-color: var(--danger-border);
  466. color: var(--danger);
  467. }
  468. .row {
  469. display: flex;
  470. gap: 8px;
  471. margin: 8px 0;
  472. flex-wrap: wrap;
  473. align-items: center;
  474. }
  475. .row > input,
  476. .row > select {
  477. flex: 1 1 180px;
  478. min-width: 120px;
  479. }
  480. .row > button {
  481. flex: 0 0 auto;
  482. }
  483. .block {
  484. padding: 8px;
  485. border: 1px dashed var(--line-main);
  486. border-radius: 6px;
  487. margin: 8px 0;
  488. background: var(--bg-subpanel);
  489. }
  490. .hidden {
  491. display: none !important;
  492. }
  493. .small-output {
  494. margin: 8px 0 0;
  495. padding: 8px;
  496. border-radius: 6px;
  497. background: var(--bg-subpanel);
  498. border: 1px solid var(--line-main);
  499. color: var(--text-secondary);
  500. white-space: pre-wrap;
  501. word-break: break-word;
  502. min-height: 48px;
  503. }
  504. .preview-card {
  505. border: 1px solid var(--line-main);
  506. border-radius: 6px;
  507. min-height: 140px;
  508. background: var(--bg-subpanel);
  509. display: flex;
  510. align-items: center;
  511. justify-content: center;
  512. overflow: auto;
  513. }
  514. #emulatorPreview {
  515. width: 100%;
  516. height: auto;
  517. max-height: 190px;
  518. object-fit: contain;
  519. }
  520. .selected-info {
  521. font-size: 12px;
  522. color: var(--text-muted);
  523. margin-bottom: 6px;
  524. flex-shrink: 0;
  525. }
  526. #sessionImagesPanel .row {
  527. flex-shrink: 0;
  528. }
  529. .image-list {
  530. display: flex;
  531. flex-direction: column;
  532. gap: 6px;
  533. border: 1px solid var(--line-main);
  534. border-radius: 8px;
  535. padding: 6px;
  536. background: var(--bg-subpanel);
  537. overflow: auto;
  538. min-height: 0;
  539. flex: 1;
  540. }
  541. .image-item {
  542. display: flex;
  543. align-items: center;
  544. gap: 8px;
  545. border: 1px solid var(--line-input);
  546. border-radius: 6px;
  547. padding: 5px;
  548. background: linear-gradient(180deg, var(--bg-panel-1), var(--bg-panel-2));
  549. cursor: pointer;
  550. min-width: 0;
  551. }
  552. .image-item.active {
  553. border-color: var(--accent);
  554. box-shadow: inset 0 0 0 1px var(--accent);
  555. }
  556. .image-item.selected {
  557. background: var(--selected-bg);
  558. }
  559. .image-item .selector {
  560. display: flex;
  561. align-items: center;
  562. }
  563. .image-item img {
  564. width: 52px;
  565. height: 36px;
  566. object-fit: cover;
  567. border-radius: 4px;
  568. background: var(--bg-subpanel);
  569. border: 1px solid var(--line-main);
  570. flex-shrink: 0;
  571. }
  572. .image-item .image-name {
  573. flex: 1;
  574. min-width: 0;
  575. font-size: 12px;
  576. color: var(--text-main);
  577. overflow: hidden;
  578. text-overflow: ellipsis;
  579. white-space: nowrap;
  580. }
  581. .stage-wrap {
  582. flex: 0 0 auto;
  583. min-height: 300px;
  584. height: min(68vh, 760px);
  585. max-height: min(68vh, 760px);
  586. display: block;
  587. overflow: auto;
  588. border: 1px solid var(--line-main);
  589. border-radius: 8px;
  590. background:
  591. linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
  592. linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
  593. var(--bg-stage);
  594. padding: 12px;
  595. }
  596. .stage-canvas-holder {
  597. min-width: 100%;
  598. width: max-content;
  599. text-align: center;
  600. }
  601. .image-stage {
  602. position: relative;
  603. display: inline-block;
  604. width: auto !important;
  605. height: auto !important;
  606. min-width: 320px;
  607. min-height: 180px;
  608. border: 1px solid var(--line-main);
  609. border-radius: 6px;
  610. overflow: hidden;
  611. background: var(--bg-stage-inner);
  612. vertical-align: top;
  613. line-height: 0;
  614. box-shadow: var(--shadow-stage);
  615. }
  616. #mainImage {
  617. position: relative;
  618. display: block;
  619. width: auto;
  620. height: auto;
  621. max-width: none;
  622. max-height: none;
  623. object-fit: fill;
  624. user-select: none;
  625. pointer-events: none;
  626. }
  627. #mainImage:not([src]),
  628. #mainImage[src=""] {
  629. display: none;
  630. }
  631. .no-image {
  632. position: absolute;
  633. inset: 0;
  634. display: flex;
  635. align-items: center;
  636. justify-content: center;
  637. color: var(--text-muted);
  638. font-size: 12px;
  639. pointer-events: none;
  640. }
  641. .roi {
  642. position: absolute;
  643. border-style: solid;
  644. cursor: move;
  645. user-select: none;
  646. z-index: 3;
  647. }
  648. .roi .tag {
  649. position: absolute;
  650. left: 0;
  651. top: -19px;
  652. font-size: 10px;
  653. padding: 2px 5px;
  654. border-radius: 4px;
  655. background: rgba(10, 12, 14, 0.86);
  656. color: #f3f8ff;
  657. }
  658. html[data-theme="light"] .roi .tag {
  659. background: rgba(24, 33, 49, 0.82);
  660. }
  661. .roi .resize-handle {
  662. position: absolute;
  663. width: 10px;
  664. height: 10px;
  665. right: -5px;
  666. bottom: -5px;
  667. background: #fff;
  668. border: 1px solid currentColor;
  669. border-radius: 2px;
  670. cursor: nwse-resize;
  671. }
  672. .roi-front {
  673. border-width: 2px;
  674. border-color: #ff6b6b;
  675. color: #ff6b6b;
  676. }
  677. .roi-back {
  678. border-width: 2px;
  679. border-color: #7fd67f;
  680. color: #7fd67f;
  681. }
  682. .roi-test-front {
  683. border-width: 2px;
  684. border-color: #7fa7ff;
  685. color: #7fa7ff;
  686. border-style: dashed;
  687. pointer-events: none;
  688. }
  689. .roi-test-back {
  690. border-width: 2px;
  691. border-color: #58c7c7;
  692. color: #58c7c7;
  693. border-style: dashed;
  694. pointer-events: none;
  695. }
  696. .roi-values {
  697. display: grid;
  698. grid-template-columns: 1fr 1fr;
  699. gap: 8px;
  700. margin-top: 8px;
  701. flex-shrink: 0;
  702. }
  703. .output-panel {
  704. margin-top: 8px;
  705. border: 1px solid var(--line-main);
  706. border-radius: 8px;
  707. background: var(--bg-subpanel);
  708. display: flex;
  709. flex-direction: column;
  710. min-height: 200px;
  711. max-height: 360px;
  712. flex: 1 1 auto;
  713. overflow: hidden;
  714. }
  715. .center-output-panel {
  716. flex: 0 0 auto;
  717. height: clamp(180px, 24vh, 300px);
  718. min-height: 180px;
  719. max-height: 320px;
  720. }
  721. .output-header {
  722. display: flex;
  723. align-items: center;
  724. justify-content: space-between;
  725. border-bottom: 1px solid var(--line-main);
  726. padding: 8px 10px;
  727. }
  728. .output-log {
  729. margin: 0;
  730. padding: 8px 10px;
  731. font-size: 12px;
  732. line-height: 1.5;
  733. white-space: pre-wrap;
  734. word-break: break-word;
  735. overflow: auto;
  736. flex: 1;
  737. color: var(--text-main);
  738. background: var(--bg-output);
  739. }
  740. .dir-selectors {
  741. display: flex;
  742. align-items: center;
  743. flex-wrap: wrap;
  744. gap: 6px;
  745. padding: 8px;
  746. border: 1px solid var(--line-main);
  747. border-radius: 6px;
  748. background: var(--bg-subpanel);
  749. }
  750. .breadcrumb-root-prefix {
  751. color: var(--text-muted);
  752. font-weight: 700;
  753. line-height: 1;
  754. padding: 0 2px;
  755. }
  756. .breadcrumb-sep {
  757. color: var(--text-muted);
  758. font-weight: 600;
  759. }
  760. .breadcrumb-select {
  761. min-width: 130px;
  762. max-width: 230px;
  763. height: 30px;
  764. padding: 4px 8px;
  765. }
  766. .current-dir {
  767. font-size: 12px;
  768. color: var(--text-muted);
  769. margin: 8px 0 6px;
  770. }
  771. .tip {
  772. font-size: 12px;
  773. color: #d6a75c;
  774. background: var(--tip-bg);
  775. border: 1px solid var(--tip-border);
  776. padding: 6px;
  777. border-radius: 6px;
  778. margin-bottom: 6px;
  779. }
  780. .rule-editor-panel {
  781. min-width: 0;
  782. overflow: hidden;
  783. }
  784. .rule-editor-scroll {
  785. display: flex;
  786. flex: 1 1 auto;
  787. flex-direction: column;
  788. min-height: 0;
  789. min-width: 0;
  790. overflow: hidden;
  791. }
  792. .rule-list {
  793. border: 1px solid var(--line-main);
  794. border-radius: 8px;
  795. background: var(--bg-subpanel);
  796. min-height: 220px;
  797. max-height: none;
  798. flex: 2 1 0;
  799. overflow-y: auto;
  800. overflow-x: hidden;
  801. padding: 6px;
  802. display: flex;
  803. flex-direction: column;
  804. gap: 6px;
  805. }
  806. .rule-detail-scroll {
  807. min-height: 0;
  808. flex: 1 1 0;
  809. overflow-y: auto;
  810. overflow-x: hidden;
  811. padding-right: 2px;
  812. }
  813. .rule-item {
  814. display: flex;
  815. align-items: center;
  816. gap: 8px;
  817. border: 1px solid var(--line-input);
  818. border-radius: 6px;
  819. background: linear-gradient(180deg, var(--bg-panel-1), var(--bg-panel-2));
  820. padding: 5px;
  821. cursor: pointer;
  822. }
  823. .rule-item.active {
  824. border-color: var(--accent);
  825. box-shadow: inset 0 0 0 1px var(--accent);
  826. }
  827. .rule-thumb-wrap {
  828. position: relative;
  829. width: 44px;
  830. height: 30px;
  831. border-radius: 4px;
  832. background: var(--bg-subpanel);
  833. border: 1px solid var(--line-main);
  834. flex-shrink: 0;
  835. overflow: hidden;
  836. }
  837. .rule-thumb {
  838. display: block;
  839. width: 100%;
  840. height: 100%;
  841. object-fit: cover;
  842. }
  843. .rule-thumb:not([src]),
  844. .rule-thumb[src=""] {
  845. display: none;
  846. }
  847. .rule-thumb-empty {
  848. position: absolute;
  849. inset: 0;
  850. display: flex;
  851. align-items: center;
  852. justify-content: center;
  853. font-size: 11px;
  854. color: var(--text-muted);
  855. pointer-events: none;
  856. }
  857. .rule-thumb-wrap.has-image .rule-thumb-empty {
  858. display: none;
  859. }
  860. .rule-item-text {
  861. flex: 1;
  862. min-width: 0;
  863. font-size: 12px;
  864. color: var(--text-main);
  865. overflow: hidden;
  866. text-overflow: ellipsis;
  867. white-space: nowrap;
  868. }
  869. .rule-editor-panel.rule-editor-compact .form-grid {
  870. grid-template-columns: 1fr;
  871. }
  872. .form-grid {
  873. display: grid;
  874. grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  875. gap: 8px;
  876. min-width: 0;
  877. }
  878. .form-grid label {
  879. min-width: 0;
  880. }
  881. .form-grid input,
  882. .form-grid select,
  883. .form-grid textarea {
  884. width: 100%;
  885. min-width: 0;
  886. }
  887. .form-grid .full {
  888. grid-column: 1 / -1;
  889. }
  890. .action-row {
  891. align-items: center;
  892. }
  893. #saveRulesBtn.save-ok {
  894. border-color: var(--ok-border);
  895. color: var(--ok);
  896. box-shadow: inset 0 0 0 1px var(--ok-border);
  897. }
  898. #saveRulesBtn.save-fail {
  899. border-color: var(--fail-border);
  900. color: var(--danger);
  901. box-shadow: inset 0 0 0 1px var(--fail-border);
  902. }
  903. .stack.stack-icon-mode .panel-scroll-body,
  904. .stack.stack-icon-mode .image-list,
  905. .stack.stack-icon-mode .rule-detail-scroll {
  906. min-height: 0;
  907. overflow-y: auto;
  908. overflow-x: hidden;
  909. }
  910. .layout-resizing {
  911. cursor: col-resize !important;
  912. user-select: none;
  913. }
  914. .layout-resizing * {
  915. transition: none !important;
  916. }
  917. @media (max-width: 1800px) {
  918. .center-panel {
  919. min-width: 520px;
  920. }
  921. }
  922. @media (max-width: 720px) {
  923. .layout {
  924. padding: 6px;
  925. gap: 6px;
  926. }
  927. .topbar {
  928. padding: 8px 10px;
  929. }
  930. .topbar h1 {
  931. font-size: 13px;
  932. }
  933. .topbar-actions {
  934. gap: 8px;
  935. }
  936. .theme-switch {
  937. font-size: 11px;
  938. }
  939. .row {
  940. gap: 6px;
  941. }
  942. .form-grid {
  943. grid-template-columns: 1fr;
  944. }
  945. .form-grid .full {
  946. grid-column: span 1;
  947. }
  948. .roi-values {
  949. grid-template-columns: 1fr;
  950. }
  951. }
  952. @keyframes btn-spin {
  953. to {
  954. transform: rotate(360deg);
  955. }
  956. }
  957. .bottom-output-dock {
  958. position: absolute;
  959. left: calc(8px + var(--rail-width) + 6px);
  960. right: calc(8px + var(--rail-width) + 6px);
  961. bottom: 8px;
  962. height: 220px;
  963. z-index: 20;
  964. display: flex;
  965. flex-direction: column;
  966. min-height: 0;
  967. pointer-events: none;
  968. }
  969. .bottom-output-resize {
  970. height: 10px;
  971. cursor: row-resize;
  972. pointer-events: auto;
  973. position: relative;
  974. }
  975. .bottom-output-resize::before {
  976. content: "";
  977. position: absolute;
  978. left: 16px;
  979. right: 16px;
  980. top: 3px;
  981. height: 4px;
  982. border-radius: 4px;
  983. background: linear-gradient(90deg, transparent, var(--line-main), transparent);
  984. }
  985. .bottom-output-resize:hover::before {
  986. background: linear-gradient(90deg, transparent, var(--accent), transparent);
  987. }
  988. .output-dock-panel {
  989. margin-top: 0;
  990. max-height: none;
  991. flex: 1 1 auto;
  992. min-height: 0;
  993. pointer-events: auto;
  994. }
  995. .output-dock-panel .output-log {
  996. min-height: 0;
  997. }
  998. .bottom-dock-resizing {
  999. cursor: row-resize !important;
  1000. user-select: none;
  1001. }